:root {
    --diagnostics1012-body: 16px;
    --diagnostics1012-body-ar: 17px;
    --diagnostics1012-label: 14px;
    --diagnostics1012-card-title: 20px;
    --diagnostics1012-section: clamp(24px, 2vw, 28px);
    --diagnostics1012-kpi: clamp(38px, 3vw, 50px);
    --diagnostics1012-radius: 24px;
}

body.page-lab {
    font-size: var(--diagnostics1012-body);
}

html[dir="rtl"] body.page-lab {
    font-size: var(--diagnostics1012-body-ar);
}

body.page-lab .diagnostics1012-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    gap: 20px;
    align-items: stretch;
    margin-bottom: 18px;
    padding: 30px 32px;
    overflow: hidden;
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 12%, rgba(255,255,255,.17), transparent 34%),
        linear-gradient(120deg, #083344 0%, #0f766e 44%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 22px 56px rgba(15, 118, 110, .18);
}

body.page-lab .diagnostics1012-hero h1 {
    max-width: 900px;
    margin: 9px 0 10px;
    font-size: clamp(34px, 3.25vw, 46px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

body.page-lab .diagnostics1012-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255,255,255,.87);
    font-size: 17px;
    line-height: 1.7;
}

html[dir="rtl"] body.page-lab .diagnostics1012-hero p { font-size: 18px; }

body.page-lab .diagnostics1012-hero-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-self: end;
}

body.page-lab .diagnostics1012-hero-summary article {
    min-width: 0;
    padding: 15px 16px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 18px;
    background: rgba(255,255,255,.11);
    backdrop-filter: blur(10px);
}

body.page-lab .diagnostics1012-hero-summary span {
    display: block;
    margin-bottom: 5px;
    color: rgba(255,255,255,.72);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

body.page-lab .diagnostics1012-hero-summary strong {
    display: block;
    overflow-wrap: anywhere;
    font-size: 15px;
    line-height: 1.45;
}

body.page-lab .diagnostics1012-control {
    margin-bottom: 16px;
    padding: 24px 26px;
    border-radius: var(--diagnostics1012-radius);
}

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

body.page-lab .diagnostics1012-control-head h2 {
    margin: 4px 0 6px;
    font-size: var(--diagnostics1012-section);
    line-height: 1.18;
}

body.page-lab .diagnostics1012-control-head p {
    max-width: 860px;
    margin: 0;
    color: #64748b;
}

body.page-lab .diagnostics1012-parity-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #99f6e4;
    border-radius: 999px;
    background: #f0fdfa;
    color: #0f766e;
    font-size: 13px;
    font-weight: 850;
}

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

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

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

body.page-lab .diagnostics1012-filter input,
body.page-lab .diagnostics1012-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-lab .diagnostics1012-filter input,
html[dir="rtl"] body.page-lab .diagnostics1012-filter select { font-size: 17px; }

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

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

body.page-lab .diagnostics1012-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-lab .diagnostics1012-period-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

body.page-lab .diagnostics1012-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-lab .diagnostics1012-period-strip span {
    display: block;
    margin-bottom: 6px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

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

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

body.page-lab .diagnostics1012-state {
    margin-bottom: 18px;
    padding: 22px 24px;
    border-radius: 20px;
}

body.page-lab .diagnostics1012-state-error {
    border: 1px solid #fecaca;
    background: #fff8f8;
}

body.page-lab .diagnostics1012-state h2 {
    margin: 4px 0 6px;
    font-size: 22px;
}

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

body.page-lab .diagnostics1012-insight {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
    padding: 24px 26px;
    border: 1px solid #99f6e4;
    border-radius: 22px;
    background: linear-gradient(120deg, #f0fdfa 0%, #ffffff 58%, #eff6ff 100%);
}

body.page-lab .diagnostics1012-insight-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: #ccfbf1;
    color: #0f766e;
    font-size: 25px;
    font-weight: 900;
}

body.page-lab .diagnostics1012-insight h2 {
    margin: 4px 0 7px;
    font-size: var(--diagnostics1012-section);
}

body.page-lab .diagnostics1012-insight p {
    margin: 7px 0 0;
    color: #334155;
    font-weight: 650;
}

body.page-lab .diagnostics1012-section-head { margin: 24px 0 12px; }
body.page-lab .diagnostics1012-section-head h2 { font-size: var(--diagnostics1012-section); }
body.page-lab .diagnostics1012-section-head p { margin: 0; color: #64748b; }

body.page-lab .diagnostics1012-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    align-items: start;
}

body.page-lab .diagnostics1012-chart-card {
    min-width: 0;
    padding: 18px 16px 14px;
    border-radius: var(--diagnostics1012-radius);
}

body.page-lab .diagnostics1012-chart-head {
    min-height: 58px;
    margin-bottom: 8px;
}

body.page-lab .diagnostics1012-chart-head h3 {
    margin: 0 0 5px;
    color: #0f172a;
    font-size: var(--diagnostics1012-card-title);
    line-height: 1.25;
}

body.page-lab .diagnostics1012-chart-head span {
    color: #64748b;
    font-size: 13px;
    font-weight: 750;
}

body.page-lab .diagnostics1012-chart-stage { min-height: 320px; }
body.page-lab .diagnostics1012-chart-card canvas { width: 100%; min-height: 320px; }

body.page-lab .diagnostics1012-chart-state {
    display: grid;
    place-items: center;
    min-height: 280px;
    padding: 24px;
    border-radius: 16px;
    background: #f8fafc;
    color: #64748b;
    font-size: 16px;
    font-weight: 750;
    text-align: center;
}

body.page-lab .diagnostics1012-chart-state[hidden] { display: none !important; }

body.page-lab .diagnostics1012-table-card { border-radius: var(--diagnostics1012-radius); }
body.page-lab .diagnostics1012-table-card th,
body.page-lab .diagnostics1012-table-card td {
    font-size: 15px;
    line-height: 1.45;
}

html[dir="rtl"] body.page-lab .diagnostics1012-table-card th,
html[dir="rtl"] body.page-lab .diagnostics1012-table-card td { font-size: 16px; }

body.page-lab .diagnostics1012-table-card tbody td:first-child {
    color: #0f172a;
    font-weight: 800;
}

@media (max-width: 1500px) {
    body.page-lab .diagnostics1012-hero { grid-template-columns: 1fr; }
    body.page-lab .diagnostics1012-filter { grid-template-columns: repeat(4, minmax(145px, 1fr)); }
    body.page-lab .diagnostics1012-filter .btn { width: 100%; }
}

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

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

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