.dashboard-operacional { max-width: 1800px; margin: 0 auto; color: var(--sf-text); }
.dash-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dash-heading h1 { margin: 0; font-size: 1.5rem; font-weight: 650; letter-spacing: -.025em; }
.dash-heading p { margin: 5px 0 0; color: var(--sf-text-muted); font-size: .875rem; }
.dash-refresh { display: inline-flex; gap: 8px; align-items: center; color: var(--sf-text-muted); font-size: .75rem; }
.dash-card { min-width: 0; padding: 20px; background: var(--sf-surface); border: 1px solid var(--sf-border); border-radius: 12px; box-shadow: 0 1px 3px #3c404314; }
.dash-card-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.dash-card-heading h2 { font-size: .95rem; font-weight: 650; line-height: 1.4; margin: 0; color: var(--sf-text); }
.dash-icon { display: inline-flex; flex: 0 0 36px; height: 36px; align-items: center; justify-content: center; border-radius: 10px; font-size: .95rem; }
.dash-blue { color: #2464ac; background: #2464ac12; }
.dash-green { color: #23816a; background: #23816a12; }
.dash-amber { color: #a36a17; background: #a36a1714; }
.dash-availability { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 18px 0 22px; }
.dash-availability-card .dash-card-heading { margin-bottom: 10px; }
.dash-availability-value { font-size: 2rem; font-weight: 600; line-height: 1.2; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dash-period { font-weight: 400; color: var(--sf-text-muted); white-space: nowrap; font-size: .8rem; margin-left: 4px; }
.dash-caption { color: var(--sf-text-muted); font-size: .78rem; line-height: 1.5; margin: 6px 0 0; }
.dash-operations { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,360px),1fr)); gap: 18px; align-items: start; }
.dash-metric { display: flex; align-items: center; gap: 14px; min-height: 68px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--sf-border); }
.dash-metric strong { font-size: 2.1rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--sf-text); }
.dash-metric span { color: var(--sf-text-muted); font-size: .8rem; line-height: 1.5; }
.dash-metric-link, .dash-metric-link:hover { color: var(--sf-text); text-decoration: none; }
.dash-metric-link > i { margin-left: auto; color: var(--sf-text-muted); font-size: .75rem; }
.dash-metric-link:hover strong { color: #2464ac; }
.dash-list { max-height: 390px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--sf-border) transparent; }
.dashboard-operacional .os-prioridade { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 12px 10px; margin: 0; background: transparent; border: 0; border-bottom: 1px solid var(--sf-border); border-radius: 0; text-align: left; color: var(--sf-text); text-decoration: none; font: inherit; }
.dashboard-operacional .os-prioridade:last-child { border-bottom: 0; }
.dashboard-operacional .os-prioridade:hover { background: var(--sf-surface-alt); color: var(--sf-text); }
.dash-os-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .8rem; }
.dash-os-top strong { font-weight: 650; color: #2464ac; }
.dash-os-top i { font-size: .6rem; color: var(--sf-text-muted); }
.dash-os-vehicle { font-size: .83rem; line-height: 1.4; overflow-wrap: anywhere; }
.dash-os-meta { display: flex; gap: 6px; align-items: baseline; color: var(--sf-text-muted); font-size: .73rem; line-height: 1.4; }
.dash-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 28px 16px; background: var(--sf-surface-alt); border: 1px dashed var(--sf-border); border-radius: 8px; margin: 8px 0; }
.dash-empty > i { color: var(--sf-text-muted); font-size: 1.35rem; opacity: .7; }
.dash-empty strong { font-size: .85rem; font-weight: 600; }
.dash-empty p { margin: 0; font-size: .78rem; line-height: 1.6; max-width: 280px; color: var(--sf-text-muted); }
.dash-notice { display: flex; gap: 9px; align-items: center; padding: 11px 12px; margin-top: 12px; background: var(--sf-surface-alt); border: 1px solid var(--sf-border); border-radius: 8px; color: var(--sf-text-muted); text-decoration: none; font-size: .75rem; line-height: 1.5; }
.dash-notice > i:last-child { margin-left: auto; font-size: .6rem; }
.dash-notice:hover { color: var(--sf-text); border-color: #2464ac66; }
.dash-preventiva-totals { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.dash-total { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--sf-border); border-radius: 8px; text-decoration: none; }
.dash-total strong { font-size: 1.65rem; line-height: 1; font-weight: 650; }
.dash-total span { font-size: .72rem; color: var(--sf-text-muted); }
.dash-overdue, .dash-overdue:hover { color: #c34448; background: #c3444808; }
.dash-upcoming, .dash-upcoming:hover { color: #a36a17; background: #a36a1708; }
.dash-total:hover { border-color: currentColor; }
.dash-preventiva-item { padding: 13px 10px; border-bottom: 1px solid var(--sf-border); overflow-wrap: anywhere; }
.dash-preventiva-item:last-child { border-bottom: 0; }
.dash-preventiva-summary { padding-bottom: 12px; border-bottom: 1px solid var(--sf-border); }
.dash-preventiva-summary:last-child { border-bottom: 0; }
.dash-preventiva-summary .dash-preventiva-item { border-bottom: 0; padding-bottom: 4px; }
.dash-preventiva-summary > a { margin-left: 10px; }
.dash-preventivas-page { color: var(--sf-text); }
.dash-preventivas-page .dash-heading { flex-wrap: wrap; gap: 12px; }
.dash-preventivas-page .dash-heading a { text-decoration: none; }
.dash-preventiva-vehicles { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
.dash-preventiva-card-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--sf-border); }
.dash-preventiva-card-header h2 { font-size: 1rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.dash-preventiva-card-header span { font-size: .78rem; }
.dash-preventiva-card-header a { flex-shrink: 0; text-decoration: none; }
.dash-preventiva-vehicle-card > .dash-preventiva-note { margin-top: 14px; }
.dash-preventiva-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dash-preventiva-vehicle { font-size: .82rem; font-weight: 600; color: var(--sf-text); }
.dash-preventiva-service { font-size: .79rem; color: var(--sf-text-muted); margin: 4px 0 6px; }
.dash-status { flex-shrink: 0; padding: 3px 7px; border-radius: 5px; font-size: .65rem; font-weight: 600; line-height: 1.5; }
.dash-status-VENCIDO { color: #b7343a; background: #b7343a12; }
.dash-status-AVISO { color: #986011; background: #98601114; }
.dash-status-SEM_DADOS { color: var(--sf-text-muted); background: var(--sf-surface-alt); }
.dash-preventiva-measures { font-size: .74rem; line-height: 1.6; color: var(--sf-text); }
.dash-preventiva-note { font-size: .71rem; color: var(--sf-text-muted); margin-top: 4px; }
.dash-os-linked { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 3px 7px; border-radius: 5px; background: #2464ac0c; color: #2464ac; text-decoration: none; font-size: .69rem; }
.dash-os-linked:hover { text-decoration: underline; }
.dash-data-note { display: flex; gap: 6px; align-items: baseline; color: var(--sf-text-muted); text-decoration: none; font-size: .73rem; margin-top: 12px; }
.dash-footer-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 0; margin-top: 12px; border-top: 1px solid var(--sf-border); color: #2464ac; text-decoration: none; font-size: .8rem; font-weight: 600; }
.dash-footer-link i { font-size: .7rem; }
.dash-state { min-width: 0; }
.dash-state-message { display: flex; flex-wrap: wrap; gap: 5px 8px; align-items: center; font-size: .75rem; line-height: 1.5; padding: 9px 11px; border-radius: 6px; margin-top: 12px; background: #a36a170a; color: var(--sf-text-muted); }
.dash-state-retry { background: none; border: 0; padding: 0; color: #2464ac; font: inherit; font-weight: 600; }
.dash-state-retry:hover { text-decoration: underline; }
.dash-state-updated { display: flex; gap: 5px; align-items: center; color: var(--sf-text-muted); font-size: .68rem; margin-top: 12px; }
.dash-state-updated i { font-size: .65rem; opacity: .65; }
.dash-state-loading { display: flex; align-items: center; gap: 9px; color: var(--sf-text-muted); padding: 20px 0; font-size: .8rem; }
.dash-chart-card { margin-top: 22px; }
.dashboard-chart { position: relative; height: 300px; min-width: 0; }
.dash-chart-values { font-size: .78rem; color: var(--sf-text-muted); margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--sf-border); }
.dash-chart-values summary { cursor: pointer; }
.dashboard-operacional a:focus-visible, .dashboard-operacional button:focus-visible, .dash-list:focus-visible, .dash-os-linked:focus-visible, .dash-state-retry:focus-visible { outline: 2px solid #2464ac; outline-offset: 3px; border-radius: 5px; }
[data-theme="dark"] :is(.dash-blue,.dash-os-top strong,.dash-os-linked,.dash-footer-link,.dash-state-retry) { color: #8ab4f8; }
[data-theme="dark"] .dash-green { color: #75ceb4; }
[data-theme="dark"] :is(.dash-amber,.dash-upcoming,.dash-status-AVISO) { color: #ebbe75; }
[data-theme="dark"] :is(.dash-overdue,.dash-status-VENCIDO) { color: #f49ba0; }
@media(min-width: 1600px) { .dash-list { max-height: 430px; } }
@media(max-width: 1199px) { .dash-operations { grid-template-columns: repeat(2,minmax(0,1fr)); }  }
@media(max-width: 767px) { .dash-operations,.dash-availability { grid-template-columns: minmax(0,1fr); } .dash-operations > :last-child { grid-column: auto; } .dash-card { padding: 16px; } .dash-heading h1 { font-size: 1.3rem; } .dash-refresh { font-size: .7rem; } .dashboard-chart { height: 250px; } .dash-list { max-height: 360px; } .dash-availability { margin-top: 16px; } }

.dash-operations:has(> :nth-child(4)) { grid-template-columns: repeat(3,minmax(0,1fr)); }
.dash-operations:has(> :only-child) { grid-template-columns: minmax(0,1fr); }
.dash-alert-status { margin-bottom: 16px; }
.dash-alert-status:empty { display: none; }
.dash-no-alerts { display: flex; align-items: center; gap: 9px; padding: 12px 0; font-size: .82rem; color: var(--sf-text-muted); }
.dash-no-alerts i { color: #23816a; }
.dash-document-linked { align-self: flex-start; display: inline-flex; gap: 5px; align-items: center; border-radius: 5px; padding: 3px 7px; font-size: .69rem; color: #2464ac; background: #2464ac0c; }
[data-theme="dark"] .dash-document-linked { color: #8ab4f8; }
@media(max-width:1199px) { .dash-operations:has(> :nth-child(4)) { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width:767px) { .dash-operations:has(> :nth-child(4)) { grid-template-columns: minmax(0,1fr); } }
