/* Reference-led dashboard skin. All rules are scoped; data, controls and other modules keep their behavior. */
.dashboard-shell {
    --color-primary: #111214;
    --color-primary-ink: #111214;
    --color-border: #e2e4e8;
    --color-muted-foreground: #686d76;
    background: #f8f8f9;
}
.dashboard-shell [data-app-header] { height: 52px; border-color: #eaebec; background: #ffffffc9; padding-inline: 28px; gap: 12px; }
.dashboard-shell .dashboard-search-trigger {
    width: min(440px, 39vw); height: 36px; border-radius: 22px;
    border-color: #e8e9ea; background: #fafafb; font-size: 12px;
    box-shadow: inset 0 1px 2px #ffffff;
}
.dashboard-shell .dashboard-search-trigger kbd { border-radius: 6px; background: #fff; color: #5e5f63; box-shadow: 0 1px 2px #11121408; }
.dashboard-shell #main-content { padding: 18px 30px 28px; }
.quality-dashboard { --dashboard-shadow: 0 2px 3px #11121404, 0 5px 18px #11121405, 0 12px 30px #11121405; }
.quality-dashboard > p:first-child { font-size: 11px; margin: 0 0 12px 5px; }
.quality-dashboard > .flex { gap: 16px; }
.quality-dashboard .dashboard-welcome > div { margin: 0; gap: 14px; }
.quality-dashboard .dashboard-welcome h1 { font-size: 27px; line-height: 1.15; font-weight: 650; letter-spacing: -.85px; }
.quality-dashboard .dashboard-welcome p { font-size: 13px; color: #707174; margin-top: 6px; }
.quality-dashboard .dashboard-date { border-radius: 22px; white-space: nowrap; font-size: 12px; box-shadow: 0 2px 3px #11121405, 0 4px 12px #11121404; }
.quality-dashboard .dashboard-date svg { color: #656669; }
.quality-dashboard .dashboard-period { border-radius: 24px; background: #ececed; padding: 3px; gap: 3px; }
.quality-dashboard .dashboard-period button { border-radius: 20px; min-height: 30px; font-size: 12px; padding: 5px 14px; }
.quality-dashboard .surface, .quality-dashboard .surface-interactive {
    border-radius: 19px; border-color: #eaebec; box-shadow: var(--dashboard-shadow); background: #fff;
}
.quality-dashboard .dashboard-kpis { gap: 14px; }
.quality-dashboard .dashboard-kpis > * { padding: 12px 18px; gap: 8px; min-height: 104px; }
.quality-dashboard .dashboard-kpis > :nth-child(1), .quality-dashboard .dashboard-kpis > :nth-child(2) { background: #fff; }
.quality-dashboard .dashboard-kpis > :nth-child(3) { background: #fff; }
.quality-dashboard .dashboard-kpis > :nth-child(4) { background: #fff; }
.quality-dashboard .dashboard-kpis .size-10 { border-radius: 16px; width: 42px; height: 42px; background: #f1f1f2; color: #111214; }
.quality-dashboard .dashboard-kpis > :nth-child(3) .size-10 { background: #fff3e5; color: #686d76; }
.quality-dashboard .dashboard-kpis > :nth-child(4) .size-10 { background: #ebebec; color: #111214; }
.quality-dashboard .dashboard-kpis .text-2xl { font-size: 29px; line-height: 1; font-weight: 650; letter-spacing: -.8px; }
.quality-dashboard .dashboard-kpis .text-\[13px\] { font-size: 12px; }
.quality-dashboard .dashboard-kpis .text-xs { font-size: 11px; }
.quality-dashboard .dashboard-kpis [role=progressbar] { height: 5px; background: #e7e8e9; }
.quality-dashboard .dashboard-kpis [role=progressbar] > div { background: #111214; }
.quality-dashboard :is(.dashboard-main-grid,.dashboard-secondary-grid,.dashboard-bottom-grid) { gap: 16px; }
.quality-dashboard section.surface { padding: 16px; min-width: 0; }
.dashboard-section-heading { display: flex; align-items: flex-start; gap: 11px; min-width: 0; }
.dashboard-section-heading .dashboard-section-icon { width: 25px; height: 25px; flex-shrink: 0; margin-top: 1px; color: #111214; stroke-width: 1.8; }
.dashboard-section-heading h2 { font-size: 15px; font-weight: 650; line-height: 1.3; letter-spacing: -.35px; color: #111214; }
.dashboard-section-heading p { margin-top: 3px; font-size: 11px; color: #707174; line-height: 1.4; }
.quality-dashboard section[aria-labelledby=ts-t] [x-ref=map] { height: clamp(205px, 15vw, 270px); border-radius: 13px; border-color: #e9eaeb; }
.quality-dashboard .leaflet-container { font: 11px/1.45 var(--font-sans); }
.quality-dashboard .leaflet-control-attribution { font-size: 9px; line-height: 1.25; }
.quality-dashboard .leaflet-control-zoom { border: 1px solid #e0e1e4; border-radius: 5px; box-shadow: 0 2px 5px #11121418; }
.quality-dashboard .leaflet-control-zoom a { width: 27px; height: 27px; line-height: 27px; }
.quality-dashboard section[aria-labelledby=ts-t] ul[aria-label] { gap: 6px 15px; font-size: 11px; }
.quality-dashboard section[aria-labelledby=ts-t] ul[aria-label] .size-2\.5 { width: 8px; height: 8px; }
.quality-dashboard section[aria-labelledby=ts-t] p.text-xs { font-size: 11px; }
.quality-dashboard section[aria-labelledby=ts-t] p.text-\[11px\] { font-size: 10px; line-height: 1.5; }
.quality-dashboard section[aria-labelledby=op-t] [role=group] button { font-size: 11px; padding: 5px 10px; }
.quality-dashboard section[aria-labelledby=op-t] input[type=search] { width: 170px; height: 31px; border-radius: 20px; font-size: 11px; background: #fbfbfc; }
.quality-dashboard section[aria-labelledby=op-t] table { min-width: 520px; font-size: 11px; }
.quality-dashboard section[aria-labelledby=op-t] thead { font-size: 9px; letter-spacing: .025em; background: #f2f2f3; }
.quality-dashboard section[aria-labelledby=op-t] th { padding: 9px 8px; white-space: nowrap; }
.quality-dashboard section[aria-labelledby=op-t] td { padding: 10px 8px; }
.quality-dashboard section[aria-labelledby=op-t] td .text-xs { font-size: 10px; }
.quality-dashboard section[aria-labelledby=op-t] tbody tr { transition: background-color 170ms; }
.quality-dashboard section[aria-labelledby=op-t] tbody tr:hover { background: #f9f9fa; }
.quality-dashboard section[aria-labelledby=op-t] .overflow-x-auto { border-color: #eaebec; }
.quality-dashboard section[aria-labelledby=to-t] ul, .quality-dashboard section[aria-labelledby=ac-t] ul { margin-top: 12px; }
.quality-dashboard section[aria-labelledby=to-t] li, .quality-dashboard section[aria-labelledby=ac-t] li { min-height: 43px; padding: 7px 2px; gap: 11px; }
.quality-dashboard section[aria-labelledby=to-t] .size-8 { background: #eff0f1; }
.quality-dashboard section[aria-labelledby=ac-t] .size-9 { width: 26px; height: 26px; }
.quality-dashboard section[aria-labelledby=ac-t] time { font-size: 11px; white-space: nowrap; }
.quality-dashboard section[aria-labelledby=hc-t] .h-52 { height: 135px; }
.quality-dashboard section[aria-labelledby=hc-t] .bg-gradient-to-t { background: #111214; border-radius: 5px 5px 0 0; }
.quality-dashboard section[aria-labelledby=hc-t] > p { font-size: 11px; }
.quality-dashboard section[aria-labelledby=rp-t] > ul { gap: 7px; margin-top: 12px; }
.quality-dashboard section[aria-labelledby=rp-t] li a { padding: 5px 12px; border-radius: 14px; background: #fbfbfc; gap: 10px; }
.quality-dashboard section[aria-labelledby=rp-t] li a .size-10 { width: 30px; height: 30px; border-radius: 50%; }
.quality-dashboard section[aria-labelledby=rp-t] li a .text-sm { font-size: 12px; }
.quality-dashboard section[aria-labelledby=rp-t] li a .text-xs { font-size: 10px; }
.quality-dashboard section[aria-labelledby=rp-t] > div:last-child { margin-top: 12px; padding-top: 10px; }
@media(min-width: 1280px) {
    .quality-dashboard .dashboard-bottom-grid { grid-template-columns: minmax(0,55fr) minmax(0,45fr); }
    .quality-dashboard .dashboard-bottom-grid > section { grid-column: auto; }
}
@media(max-width: 1023px) {
    .dashboard-shell #main-content { padding: 20px; }
    .dashboard-shell [data-app-header] { padding-inline: 14px; }
}
@media(max-width: 639px) {
    .dashboard-shell #main-content { padding: 18px 14px; }
    .dashboard-shell [data-app-header] { gap: 5px; padding-inline: 8px; }
    .quality-dashboard .dashboard-welcome h1 { font-size: 25px; }
    .quality-dashboard .dashboard-welcome > div > div:last-child { flex-wrap: wrap; }
    .quality-dashboard .dashboard-date { font-size: 11px; padding-inline: 10px; }
    .quality-dashboard .dashboard-period button { padding-inline: 12px; }
    .quality-dashboard .dashboard-kpis { gap: 10px; }
    .quality-dashboard .dashboard-kpis > * { padding: 13px; min-height: 119px; }
    .quality-dashboard .dashboard-kpis > * > .flex:first-child { align-items: flex-start; gap: 8px; }
    .quality-dashboard .dashboard-kpis .size-10 { width: 32px; height: 32px; border-radius: 12px; }
    .quality-dashboard .dashboard-kpis .size-5 { width: 18px; height: 18px; }
    .quality-dashboard .dashboard-kpis .text-2xl { font-size: 27px; }
    .quality-dashboard .dashboard-kpis .text-\[13px\] { font-size: 11px; }
    .quality-dashboard section.surface { padding: 15px; }
    .quality-dashboard section[aria-labelledby=ts-t] [x-ref=map] { height: 235px; }
    .dashboard-section-heading { gap: 9px; }
    .dashboard-section-heading .dashboard-section-icon { width: 22px; height: 22px; }
    .dashboard-section-heading h2 { font-size: 14px; }
}
@media(prefers-reduced-motion: reduce) {
    .quality-dashboard * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media(min-width: 640px) {
    .quality-dashboard section[aria-labelledby=ts-t] > div:first-child { flex-wrap: nowrap; }
    .quality-dashboard section[aria-labelledby=ts-t] > div:first-child > div:last-child { flex-shrink: 0; }
    .quality-dashboard section[aria-labelledby=ts-t] [role=tab] { padding: 4px 8px; font-size: 11px; }
    .quality-dashboard section[aria-labelledby=ts-t] button.size-8, .quality-dashboard section[aria-labelledby=ts-t] a.size-8 { width: 28px; height: 28px; }
    .quality-dashboard section[aria-labelledby=to-t] li { min-height: 38px; padding-block: 4px; }
    .quality-dashboard section[aria-labelledby=to-t] .size-8 { width: 30px; height: 30px; }
    .quality-dashboard section[aria-labelledby=ac-t] li { min-height: 32px; padding-block: 3px; }
    .quality-dashboard section[aria-labelledby=ac-t] ul { gap: 0; }
}

.quality-dashboard .dashboard-kpis .text-xs { line-height: 1.2; }
.quality-dashboard section[aria-labelledby=ts-t] > [x-show] { margin-top: 12px; }
.quality-dashboard section[aria-labelledby=ts-t] ul[aria-label] { margin-top: 8px; line-height: 1.2; }
.quality-dashboard section[aria-labelledby=ts-t] p.text-xs { margin-top: 5px; line-height: 1.25; }
.quality-dashboard section[aria-labelledby=ts-t] p.text-\[11px\] { margin-top: 3px; line-height: 1.3; }
.quality-dashboard section[aria-labelledby=to-t] li p:first-child { line-height: 1.2; }
.quality-dashboard section[aria-labelledby=to-t] li p.text-xs { line-height: 1.15; }
.quality-dashboard section[aria-labelledby=hc-t] > p { line-height: 1.3; }
@media(min-width: 640px) {
    .quality-dashboard section[aria-labelledby=ac-t] li { min-height: 30px; padding-block: 2px; }
    .quality-dashboard section[aria-labelledby=to-t] ul, .quality-dashboard section[aria-labelledby=ac-t] ul { margin-top: 10px; }
}
