/* Phase 10.11 - Operations Dashboard Recovery */
body.page-operations {
    --operations1011-body: 16px;
    --operations1011-body-ar: 17px;
    --operations1011-section: clamp(24px, 2vw, 28px);
    --operations1011-card-title: 20px;
    --operations1011-kpi: clamp(36px, 3.4vw, 50px);
    --operations1011-label: 14px;
    --operations1011-radius: 22px;
}

body.page-operations .operations-hero .hero-copy > p,
body.page-operations .hero-command-card > p,
body.page-operations .operations1011-control p,
body.page-operations .operations1011-state p,
body.page-operations .operations1011-insight p,
body.page-operations .section-head p {
    font-size: var(--operations1011-body);
    line-height: 1.62;
}

html[dir="rtl"] body.page-operations .operations-hero .hero-copy > p,
html[dir="rtl"] body.page-operations .hero-command-card > p,
html[dir="rtl"] body.page-operations .operations1011-control p,
html[dir="rtl"] body.page-operations .operations1011-state p,
html[dir="rtl"] body.page-operations .operations1011-insight p,
html[dir="rtl"] body.page-operations .section-head p {
    font-size: var(--operations1011-body-ar);
    line-height: 1.72;
}

body.page-operations .operations1011-control {
    padding: 24px 26px;
    border-radius: var(--operations1011-radius);
    margin-bottom: 18px;
}

body.page-operations .operations1011-control-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

body.page-operations .operations1011-control-head h2,
body.page-operations .operations1011-insight h2,
body.page-operations .operations1011-section-head h2,
body.page-operations .operations1011-table-card .section-head h2 {
    margin: 4px 0 6px;
    font-size: var(--operations1011-section);
    line-height: 1.18;
}

body.page-operations .operations1011-control-head p {
    margin: 0;
    color: #64748b;
    max-width: 820px;
}

body.page-operations .operations1011-parity-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eef6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

body.page-operations .operations1011-filter {
    display: grid;
    grid-template-columns: minmax(150px, .9fr) repeat(3, minmax(150px, 1fr)) auto auto;
    gap: 12px;
    align-items: end;
}

body.page-operations .operations1011-filter label {
    display: grid;
    gap: 7px;
    min-width: 0;
}

body.page-operations .operations1011-filter label > span {
    color: #475569;
    font-size: var(--operations1011-label);
    font-weight: 800;
}

body.page-operations .operations1011-filter input,
body.page-operations .operations1011-filter select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #dbe4ef;
    border-radius: 14px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: 16px;
    font-weight: 650;
}

html[dir="rtl"] body.page-operations .operations1011-filter input,
html[dir="rtl"] body.page-operations .operations1011-filter select { font-size: 17px; }

body.page-operations .operations1011-filter.is-year [data-range-field] { display: none; }
body.page-operations .operations1011-filter.is-range [data-year-field] { display: none; }

body.page-operations .operations1011-filter .btn {
    min-height: 48px;
    padding-inline: 20px;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

body.page-operations .operations1011-filter-message {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff7f7;
    color: #9f1239;
    font-size: 15px;
    font-weight: 700;
}

body.page-operations .operations1011-period-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

body.page-operations .operations1011-period-strip article {
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

body.page-operations .operations1011-period-strip span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.page-operations .operations1011-period-strip strong {
    display: block;
    overflow-wrap: anywhere;
    color: #0f172a;
    font-size: 16px;
    line-height: 1.4;
}

html[dir="rtl"] body.page-operations .operations1011-period-strip strong { font-size: 17px; }

body.page-operations .operations1011-state {
    margin-bottom: 18px;
    padding: 22px 24px;
    border-radius: 20px;
}
body.page-operations .operations1011-state-error { border: 1px solid #fecaca; background: #fff8f8; }
body.page-operations .operations1011-state-warning { border: 1px solid #fde68a; background: #fffdf4; }
body.page-operations .operations1011-state h2 { margin: 4px 0 6px; font-size: 22px; }

body.page-operations .operations1011-kpis { margin-bottom: 18px; }
body.page-operations .operations1011-kpi { min-height: 188px; padding: 22px; }
body.page-operations .operations1011-kpi > span { font-size: 15px; font-weight: 800; }
body.page-operations .operations1011-kpi > strong {
    font-size: var(--operations1011-kpi);
    line-height: 1;
    letter-spacing: -.035em;
}
body.page-operations .operations1011-kpi > small { font-size: 14px; line-height: 1.5; }
html[dir="rtl"] body.page-operations .operations1011-kpi > span,
html[dir="rtl"] body.page-operations .operations1011-kpi > small { font-size: 15px; }

body.page-operations .operations1011-insight {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid #ddd6fe;
    border-radius: 22px;
    background: linear-gradient(120deg, #f5f3ff 0%, #ffffff 58%, #f8fafc 100%);
}
body.page-operations .operations1011-insight-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #ede9fe;
    color: #6d28d9;
    font-size: 25px;
    font-weight: 900;
}
body.page-operations .operations1011-insight p {
    margin: 7px 0 0;
    color: #334155;
    font-weight: 650;
}

body.page-operations .operations1011-section-head { margin: 24px 0 12px; }
body.page-operations .operations1011-section-head p { margin: 0; color: #64748b; }

body.page-operations .operations1011-chart-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    align-items: start;
}
body.page-operations .operations1011-chart-card {
    min-width: 0;
    padding: 18px 16px 14px;
    border-radius: var(--operations1011-radius);
}
body.page-operations .operations1011-chart-head {
    min-height: 58px;
    margin-bottom: 8px;
}
body.page-operations .operations1011-chart-head h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: var(--operations1011-card-title);
    line-height: 1.25;
}
body.page-operations .operations1011-chart-head span {
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}
body.page-operations .operations1011-chart-stage { min-height: 300px; }
body.page-operations .operations1011-chart-card canvas {
    width: 100%;
    min-height: 300px;
}
body.page-operations .operations1011-chart-state {
    display: grid;
    place-items: center;
    min-height: 260px;
    padding: 24px;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 16px;
    font-weight: 750;
    text-align: center;
}
body.page-operations .operations1011-chart-state[hidden] { display: none !important; }

body.page-operations .operations1011-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    align-items: start;
}
body.page-operations .operations1011-breakdown-card {
    min-width: 0;
    padding: 22px;
    border-radius: var(--operations1011-radius);
}
body.page-operations .operations1011-breakdown-card h3 {
    margin: 6px 0 16px;
    font-size: var(--operations1011-card-title);
    line-height: 1.25;
}
body.page-operations .operations1011-rank-list { display: grid; gap: 12px; }
body.page-operations .operations1011-rank-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}
body.page-operations .operations1011-rank-row em {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: #eff6ff;
    color: #1d4ed8;
    font-style: normal;
    font-size: 13px;
    font-weight: 900;
}
body.page-operations .operations1011-rank-row strong {
    display: block;
    overflow: hidden;
    color: #172033;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.page-operations .operations1011-rank-row span {
    display: block;
    height: 6px;
    margin-top: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #edf2f7;
}
body.page-operations .operations1011-rank-row i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
}
body.page-operations .operations1011-rank-row b { color: #0f172a; font-size: 15px; }

body.page-operations .operations1011-table-card {
    border-radius: var(--operations1011-radius);
}
body.page-operations .operations1011-table-card th,
body.page-operations .operations1011-table-card td {
    font-size: 15px;
    line-height: 1.45;
}
html[dir="rtl"] body.page-operations .operations1011-table-card th,
html[dir="rtl"] body.page-operations .operations1011-table-card td { font-size: 16px; }
body.page-operations .operations1011-table-card tbody td:first-child { font-weight: 800; color: #0f172a; }

@media (max-width: 1500px) {
    body.page-operations .operations1011-filter { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
    body.page-operations .operations1011-filter .btn { width: 100%; }
    body.page-operations .operations1011-chart-grid,
    body.page-operations .operations1011-breakdown-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1080px) {
    body.page-operations .operations1011-period-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.page-operations .operations1011-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.page-operations .operations1011-chart-grid,
    body.page-operations .operations1011-breakdown-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    body.page-operations .operations1011-control { padding: 20px 16px; }
    body.page-operations .operations1011-control-head { display: grid; }
    body.page-operations .operations1011-parity-badge { justify-self: start; }
    body.page-operations .operations1011-filter,
    body.page-operations .operations1011-period-strip { grid-template-columns: 1fr; }
    body.page-operations .operations1011-insight { grid-template-columns: 1fr; }
    body.page-operations .operations1011-chart-card canvas { min-height: 250px; }
}

@media print {
    body.page-operations .operations1011-control,
    body.page-operations .operations1011-branch,
    body.page-operations .elite-sidebar,
    body.page-operations .elite-topbar,
    body.page-operations .elite-mobile-bar { display: none !important; }
    body.page-operations .operations1011-period-strip { grid-template-columns: repeat(4, 1fr); }
    body.page-operations .operations1011-kpi { min-height: auto; }
}
