.dashboard-modern { max-width: 1600px; margin: 0 auto; }
.dashboard-hero { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:20px; }
.dashboard-hero-main { flex:1; min-width:0; }
.dashboard-hero h1 { margin:3px 0 5px; font-size:clamp(1.7rem,3vw,2.35rem); letter-spacing:-.04em; }
.dashboard-eyebrow { margin:0; color:var(--primary); font-size:.72rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
.dashboard-plan-summary { width:fit-content; max-width:100%; margin:10px 0 8px; padding:11px 14px; background:var(--surface); border:1px solid var(--border); border-radius:13px; box-shadow:var(--shadow); }
.dashboard-plan-title { margin:0 0 9px; font-size:.82rem; font-weight:850; }
.dashboard-plan-summary dl { display:flex; flex-wrap:wrap; gap:9px 25px; margin:0; }
.dashboard-plan-summary dl div { display:grid; gap:3px; }
.dashboard-plan-summary dt { color:var(--muted); font-size:.68rem; }
.dashboard-plan-summary dd { margin:0; font-weight:800; }
.dashboard-plan-summary .dashboard-vouchers,.dashboard-plan-summary .upgrade-cta { margin-top:12px; }
.dashboard-period { position:relative; display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding:10px 12px; background:var(--surface); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow); }
.dashboard-period > label { font-size:.76rem; font-weight:800; color:var(--muted); }
.dashboard-period select,.dashboard-period input { min-height:38px; padding:6px 10px; }
.dashboard-custom-dates { display:flex; align-items:flex-end; gap:7px; }
.dashboard-custom-dates label { display:grid; gap:2px; margin:0; color:var(--muted); font-size:.66rem; font-weight:800; text-transform:uppercase; }
.dashboard-custom-dates .button { min-height:38px; align-self:flex-end; white-space:nowrap; }
.dashboard-period-loading { position:absolute; right:12px; bottom:-21px; color:var(--primary); font-size:.72rem; font-weight:750; }
[data-dashboard-content] { transition:opacity .16s ease; }
[data-dashboard-content].is-loading { opacity:.42; pointer-events:none; }
.dashboard-quick-actions { display:flex; flex-wrap:wrap; gap:8px; margin:-4px 0 18px; }
.dashboard-kpis { display:grid; grid-template-columns:repeat(5,minmax(150px,1fr)); gap:12px; margin-bottom:14px; }
.dashboard-kpi { position:relative; min-height:144px; display:flex; flex-direction:column; gap:5px; padding:17px; overflow:hidden; color:var(--text); text-decoration:none; background:var(--surface); border:1px solid var(--border); border-radius:16px; box-shadow:var(--shadow); transition:transform .15s ease,border-color .15s ease; }
.dashboard-kpi:hover { transform:translateY(-2px); border-color:color-mix(in srgb,var(--tone) 45%,var(--border)); }
.dashboard-kpi:after { content:""; position:absolute; left:0; right:0; bottom:0; height:4px; background:var(--tone); }
.dashboard-kpi.tone-blue { --tone:#2563eb; --tone-soft:#dbeafe; }.dashboard-kpi.tone-violet { --tone:#7c3aed; --tone-soft:#ede9fe; }.dashboard-kpi.tone-green { --tone:#16a34a; --tone-soft:#dcfce7; }.dashboard-kpi.tone-amber { --tone:#d97706; --tone-soft:#fef3c7; }.dashboard-kpi.tone-red { --tone:#dc2626; --tone-soft:#fee2e2; }
.dashboard-kpi-icon { display:grid; place-items:center; width:31px; height:31px; margin-bottom:5px; border-radius:9px; color:var(--tone); background:var(--tone-soft); font-weight:900; }
.dashboard-kpi-label { color:var(--muted); font-size:.78rem; font-weight:800; text-transform:uppercase; letter-spacing:.04em; }
.dashboard-kpi strong { font-size:clamp(1.45rem,2.4vw,2rem); line-height:1.15; letter-spacing:-.035em; }
.dashboard-kpi small { margin-top:auto; color:var(--muted); font-size:.72rem; line-height:1.35; }
.dashboard-comparison { margin-top:auto; font-size:.7rem; font-weight:800; }.dashboard-comparison.is-up { color:#15803d; }.dashboard-comparison.is-down { color:#b91c1c; }.dashboard-comparison.is-flat { color:var(--muted); }
.dashboard-layout { display:grid; gap:14px; margin-bottom:14px; align-items:start; }.dashboard-layout-primary { grid-template-columns:minmax(0,1.75fr) minmax(300px,.75fr); }.dashboard-layout-secondary,.dashboard-layout-bottom { grid-template-columns:repeat(2,minmax(0,1fr)); }
.dashboard-widget { min-width:0; padding:19px; background:var(--surface); border:1px solid var(--border); border-radius:17px; box-shadow:var(--shadow); }
.dashboard-widget-header { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:17px; }.dashboard-widget-header h2 { margin:3px 0 0; font-size:1.08rem; }.dashboard-widget-header a { font-size:.78rem; font-weight:800; }.dashboard-widget-total { font-size:1.1rem; font-weight:850; }.dashboard-widget-note { max-width:210px; color:var(--muted); font-size:.68rem; text-align:right; }
.dashboard-chart-legend { display:flex; flex-wrap:wrap; gap:7px; }.dashboard-chart-legend button { display:flex; align-items:center; gap:5px; padding:5px 8px; border:0; border-radius:20px; background:var(--surface-soft); color:var(--muted); font-size:.7rem; cursor:pointer; opacity:.5; }.dashboard-chart-legend button.is-active { opacity:1; color:var(--text); }.legend-dot { width:7px; height:7px; border-radius:50%; }.legend-dot.tone-blue { background:#2563eb; }.legend-dot.tone-green { background:#16a34a; }.legend-dot.tone-amber { background:#f59e0b; }
.financial-bars { display:flex; align-items:stretch; gap:5px; height:260px; margin-top:15px; overflow-x:auto; padding:5px 2px 0; }.financial-bar-group { flex:1 0 24px; min-width:24px; display:flex; flex-direction:column; justify-content:flex-end; gap:5px; }.financial-bar-track { height:220px; display:flex; align-items:flex-end; justify-content:center; gap:2px; border-bottom:1px solid var(--border); background:repeating-linear-gradient(to top,transparent 0,transparent 54px,color-mix(in srgb,var(--border) 45%,transparent) 55px); }.financial-bar { width:min(8px,30%); min-height:2px; border-radius:4px 4px 0 0; }.series-billed { background:#2563eb; }.series-collected { background:#16a34a; }.series-remaining { background:#f59e0b; }.financial-bar-group small { height:22px; overflow:hidden; color:var(--muted); font-size:.58rem; text-align:center; white-space:nowrap; }
.dashboard-donut-wrap { display:grid; grid-template-columns:minmax(140px,1fr) 1.1fr; gap:18px; align-items:center; }.dashboard-donut { width:100%; max-width:210px; transform:rotate(-90deg); overflow:visible; }.dashboard-donut-base,.dashboard-donut-segment { fill:none; stroke-width:5; }.dashboard-donut-base { stroke:var(--surface-strong); }.dashboard-donut-segment { transition:stroke-width .15s ease; cursor:pointer; }.dashboard-donut-segment:hover { stroke-width:6.5; }.dashboard-donut-value,.dashboard-donut-label { fill:var(--text); text-anchor:middle; transform:rotate(90deg); transform-origin:center; }.dashboard-donut-value { font-size:6px; font-weight:900; }.dashboard-donut-label { fill:var(--muted); font-size:2.4px; }
.dashboard-donut-legend,.payment-methods ul { display:grid; gap:8px; margin:0; padding:0; list-style:none; }.dashboard-donut-legend a,.payment-methods li { display:grid; grid-template-columns:8px 1fr auto; align-items:center; gap:7px; color:var(--text); text-decoration:none; font-size:.73rem; }.dashboard-donut-legend span,.payment-methods li>span { width:8px; height:8px; border-radius:50%; background:var(--legend-color); }.dashboard-donut-legend em,.payment-methods em { color:var(--muted); font-style:normal; }.dashboard-inline-warning { display:block; margin-top:15px; padding:9px 10px; border-radius:9px; background:#fff7ed; color:#9a3412; font-size:.73rem; font-weight:800; text-decoration:none; }
.mechanic-load-row { display:grid; gap:7px; padding:11px 2px; color:var(--text); text-decoration:none; }.mechanic-load-row+.mechanic-load-row { border-top:1px solid var(--border); }.mechanic-load-meta { display:flex; justify-content:space-between; gap:10px; }.mechanic-load-meta span { color:var(--muted); font-size:.7rem; }.mechanic-load-bars { display:flex; height:7px; gap:3px; }.mechanic-load-bars span { min-width:2px; border-radius:9px; }.load-active { background:#2563eb; }.load-completed { background:#16a34a; }.load-blocked { background:#dc2626; }
.financial-summary-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.financial-summary-grid>div,.financial-summary-grid>a { display:flex; flex-direction:column; gap:5px; min-height:88px; padding:11px; background:var(--surface-soft); border-radius:11px; color:var(--text); text-decoration:none; }.financial-summary-grid span { color:var(--muted); font-size:.7rem; }.financial-summary-grid strong { font-size:.94rem; }.dashboard-financial-summary h3 { margin:18px 0 10px; font-size:.86rem; }.payment-methods { display:grid; grid-template-columns:110px 1fr; gap:20px; align-items:center; }.dashboard-donut-small { max-width:105px; }
.dashboard-count-badge { min-width:27px; padding:4px 8px; border-radius:20px; background:#fee2e2; color:#b91c1c; font-size:.72rem; font-weight:900; text-align:center; }.dashboard-alert { display:grid; grid-template-columns:9px 1fr auto; align-items:center; gap:10px; padding:11px 7px; color:var(--text); text-decoration:none; }.dashboard-alert+.dashboard-alert { border-top:1px solid var(--border); }.alert-marker { width:7px; height:7px; border-radius:50%; background:#64748b; }.severity-critical .alert-marker { background:#dc2626; box-shadow:0 0 0 4px #fee2e2; }.severity-warning .alert-marker { background:#d97706; box-shadow:0 0 0 4px #fef3c7; }.dashboard-alert>span:nth-child(2) { display:grid; gap:3px; }.dashboard-alert strong { font-size:.79rem; }.dashboard-alert small { color:var(--muted); font-size:.66rem; }
.activity-item { position:relative; display:grid; grid-template-columns:10px 1fr auto; align-items:start; gap:10px; padding:9px 5px; color:var(--text); text-decoration:none; }.activity-item+.activity-item { border-top:1px solid var(--border); }.activity-dot { width:8px; height:8px; margin-top:4px; border:2px solid var(--primary); border-radius:50%; background:var(--surface); }.activity-item>span:nth-child(2) { display:grid; }.activity-item strong { font-size:.76rem; }.activity-item small,.activity-item time { color:var(--muted); font-size:.65rem; }.activity-item time { white-space:nowrap; }
.dashboard-empty { min-height:130px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; padding:22px; color:var(--muted); text-align:center; border:1px dashed var(--border); border-radius:12px; }.dashboard-empty strong { color:var(--text); }.dashboard-empty-success { background:color-mix(in srgb,var(--primary-soft) 60%,transparent); }
.mechanic-dashboard { max-width:1250px; margin:0 auto; }.mechanic-dashboard-hero { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:15px; padding:22px; border-radius:18px; color:#fff; background:linear-gradient(125deg,#14532d,#16803c 58%,#22c55e); }.mechanic-dashboard-hero p,.mechanic-dashboard-hero h1,.mechanic-dashboard-hero span { margin:0; }.mechanic-dashboard-hero p { font-size:.72rem; font-weight:850; text-transform:uppercase; letter-spacing:.1em; opacity:.8; }.mechanic-dashboard-hero h1 { margin:3px 0; }.mechanic-dashboard-hero .button { background:#fff; color:#166534; border-color:#fff; }.mechanic-kpis { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:14px; }.mechanic-kpis>div { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:16px; background:var(--surface); border:1px solid var(--border); border-radius:14px; }.mechanic-kpis span { color:var(--muted); font-size:.76rem; font-weight:800; }.mechanic-kpis strong { font-size:1.55rem; }.mechanic-dashboard-grid { display:grid; grid-template-columns:1.5fr .8fr; gap:14px; align-items:start; }.mechanic-task-card { display:grid; gap:4px; margin-bottom:8px; padding:14px; color:var(--text); text-decoration:none; background:var(--surface-soft); border-left:5px solid #64748b; border-radius:11px; }.mechanic-task-card.status-in_progress { border-color:#2563eb; }.mechanic-task-card.status-blocked { border-color:#dc2626; }.mechanic-task-card.status-need_parts { border-color:#d97706; }.mechanic-task-status { width:max-content; padding:3px 7px; border-radius:20px; background:var(--surface); color:var(--muted); font-size:.62rem; font-weight:900; text-transform:uppercase; }.mechanic-task-card small,.mechanic-task-card>span:not(.mechanic-task-status) { color:var(--muted); }.mechanic-part-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:12px 5px; color:var(--text); text-decoration:none; }.mechanic-part-row+.mechanic-part-row { border-top:1px solid var(--border); }.mechanic-part-row span { display:grid; }.mechanic-part-row small { color:var(--muted); }.mechanic-part-row b { color:var(--primary); font-size:.7rem; }
@media(max-width:1150px){.dashboard-kpis{grid-template-columns:repeat(3,1fr)}.dashboard-layout-primary{grid-template-columns:1.35fr .85fr}.dashboard-donut-wrap{grid-template-columns:1fr}.dashboard-donut{max-width:155px;margin:auto}}
@media(max-width:850px){.dashboard-hero{align-items:stretch;flex-direction:column}.dashboard-layout-primary,.dashboard-layout-secondary,.dashboard-layout-bottom,.mechanic-dashboard-grid{grid-template-columns:1fr}.dashboard-kpis{grid-template-columns:repeat(2,1fr)}.mechanic-kpis{grid-template-columns:repeat(2,1fr)}.dashboard-period{width:100%}}
@media(max-width:540px){.dashboard-kpis{grid-template-columns:1fr}.dashboard-kpi{min-height:122px}.dashboard-custom-dates{width:100%;flex-wrap:wrap}.dashboard-custom-dates label{flex:1}.financial-summary-grid{grid-template-columns:1fr}.mechanic-load-meta{flex-direction:column}.payment-methods{grid-template-columns:90px 1fr}.mechanic-dashboard-hero{align-items:stretch;flex-direction:column}.mechanic-kpis{grid-template-columns:1fr 1fr}.dashboard-widget{padding:14px}.activity-item{grid-template-columns:10px 1fr}.activity-item time{grid-column:2}.financial-bars{height:225px}.financial-bar-track{height:185px}}
@media(prefers-reduced-motion:reduce){[data-dashboard-content],.dashboard-kpi,.dashboard-donut-segment{transition:none}}
