/* Phase 10.9 — Revenue Legacy Functional Parity
   Executive Leadership UI Standard v1.0
   Screen body floor: 16px EN / 17px AR. */

.page-revenue .revenue109-hero .hero-copy > p,
.page-revenue .revenue109-filter-help,
.page-revenue .revenue109-note-card > p,
.page-revenue .revenue109-chart-card .chart-toolbar p {
    font-size: 16px;
    line-height: 1.6;
}

html[lang="ar"] .page-revenue .revenue109-hero .hero-copy > p,
html[lang="ar"] .page-revenue .revenue109-filter-help,
html[lang="ar"] .page-revenue .revenue109-note-card > p,
html[lang="ar"] .page-revenue .revenue109-chart-card .chart-toolbar p {
    font-size: 17px;
    line-height: 1.72;
}

.page-revenue .revenue109-hero h2 {
    font-size: clamp(34px, 3vw, 44px);
    line-height: 1.08;
    max-width: 920px;
}

.page-revenue .revenue109-period-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.page-revenue .revenue109-period-strip > span {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 70px;
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    background: rgba(255,255,255,.09);
    backdrop-filter: blur(8px);
}

.page-revenue .revenue109-period-strip b {
    font-size: 13px;
    line-height: 1.3;
    color: rgba(255,255,255,.72);
}

.page-revenue .revenue109-period-strip strong {
    font-size: 16px;
    line-height: 1.4;
    color: #fff;
    overflow-wrap: anywhere;
}

.page-revenue .revenue109-filter-card {
    padding: 24px 26px;
}

.page-revenue .revenue109-filter-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.page-revenue .revenue109-filter-heading h2,
.page-revenue .revenue109-summary h2,
.page-revenue .revenue109-chart-card h2 {
    font-size: clamp(24px, 2vw, 28px);
    line-height: 1.2;
}

.page-revenue .revenue109-mode-summary {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f4f0f8;
    border: 1px solid rgba(78,13,115,.12);
}

.page-revenue .revenue109-mode-summary span,
.page-revenue .revenue109-filters label > span,
.page-revenue .revenue109-glance-list dt {
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
}

.page-revenue .revenue109-mode-summary strong,
.page-revenue .revenue109-glance-list dd {
    font-size: 16px;
    line-height: 1.45;
}

.page-revenue .revenue109-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(135px, 1fr));
    gap: 14px;
    align-items: end;
}

.page-revenue .revenue109-filters label {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.page-revenue .revenue109-filters input,
.page-revenue .revenue109-filters select {
    min-height: 48px;
    font-size: 16px;
    border-radius: 12px;
}

.page-revenue .revenue109-update {
    min-height: 48px;
    font-size: 16px;
    white-space: nowrap;
}

.page-revenue .revenue109-alert {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(187,54,54,.25);
    background: #fff3f3;
    color: #8d2323;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 650;
}

.page-revenue .revenue109-filter-help {
    margin: 14px 0 0;
    color: #5d6572;
}

.page-revenue .revenue109-kpis .revenue-kpi > span {
    font-size: 16px;
    line-height: 1.4;
}

.page-revenue .revenue109-kpis .revenue-kpi > strong {
    font-size: clamp(34px, 3vw, 48px);
    line-height: 1.05;
}

.page-revenue .revenue109-kpis .revenue-kpi > small {
    font-size: 14px;
    line-height: 1.45;
}

.page-revenue .revenue109-kpis .delta {
    font-size: 13px;
}

.page-revenue .revenue109-glance-list {
    display: grid;
    gap: 0;
    margin: 18px 0 0;
    border-top: 1px solid #e7e9ed;
}

.page-revenue .revenue109-glance-list > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #e7e9ed;
}

.page-revenue .revenue109-glance-list dt,
.page-revenue .revenue109-glance-list dd {
    margin: 0;
}

.page-revenue .revenue109-data-details summary,
.page-revenue .revenue109-data-details table {
    font-size: 15px;
}

.page-revenue .executive-access-message {
    max-width: 820px;
    margin: 40px auto;
    padding: 34px;
}

.page-revenue .executive-access-message h2 {
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.2;
}

.page-revenue .executive-access-message p {
    font-size: 16px;
    line-height: 1.65;
}

@media (max-width: 1280px) {
    .page-revenue .revenue109-filters {
        grid-template-columns: repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 820px) {
    .page-revenue .revenue109-period-strip,
    .page-revenue .revenue109-filters {
        grid-template-columns: 1fr;
    }
    .page-revenue .revenue109-filter-heading {
        align-items: stretch;
        flex-direction: column;
    }
    .page-revenue .revenue109-mode-summary {
        min-width: 0;
    }
    .page-revenue .revenue109-kpis .revenue-kpi > span,
    .page-revenue .revenue109-filter-help,
    .page-revenue .revenue109-note-card > p {
        font-size: 16px;
    }
}

@media print {
    .page-revenue .revenue109-filter-card,
    .page-revenue .elite-sidebar,
    .page-revenue .elite-topbar,
    .page-revenue .elite-mobile-bar {
        display: none !important;
    }
    .page-revenue .revenue109-hero h2 {
        font-size: 28pt;
    }
}


/* Phase 10.9.2 — Revenue Chart Rendering & Executive UX Closure */
.page-revenue .revenue1092-chart-stage {
    position: relative;
    min-height: 400px;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.page-revenue .revenue1092-chart-canvas {
    width: 100%;
    min-height: 400px;
    margin: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
}

.page-revenue .revenue1092-chart-message {
    min-height: 400px;
    display: grid;
    place-content: center;
    gap: 8px;
    padding: 34px;
    text-align: center;
    color: #4b5b72;
}

.page-revenue .revenue1092-chart-message[hidden] {
    display: none !important;
}

.page-revenue .revenue1092-chart-message strong {
    color: #101b36;
    font-size: 20px;
    line-height: 1.3;
}

.page-revenue .revenue1092-chart-message span {
    max-width: 620px;
    font-size: 16px;
    line-height: 1.6;
}

html[lang="ar"] .page-revenue .revenue1092-chart-message span {
    font-size: 17px;
    line-height: 1.72;
}

.page-revenue .revenue1092-chart-error {
    background: linear-gradient(180deg, #fffaf7 0%, #fff6f2 100%);
}

.page-revenue .revenue1092-insight-list {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.page-revenue .revenue1092-insight-list li {
    position: relative;
    padding: 12px 14px 12px 38px;
    border: 1px solid #e4e9f2;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
    color: #263850;
    font-size: 16px;
    line-height: 1.55;
    font-weight: 650;
}

.page-revenue .revenue1092-insight-list li::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6d28d9, #0ea5e9);
    box-shadow: 0 0 0 5px rgba(109, 40, 217, .08);
}

html[dir="rtl"] .page-revenue .revenue1092-insight-list li {
    padding: 12px 38px 12px 14px;
}

html[dir="rtl"] .page-revenue .revenue1092-insight-list li::before {
    left: auto;
    right: 15px;
}

html[lang="ar"] .page-revenue .revenue1092-insight-list li {
    font-size: 17px;
    line-height: 1.68;
}

@media (max-width: 820px) {
    .page-revenue .revenue1092-chart-stage,
    .page-revenue .revenue1092-chart-canvas,
    .page-revenue .revenue1092-chart-message {
        min-height: 340px;
    }
}
