.dashboard-stats a{position:relative;display:block;overflow:hidden;background:linear-gradient(145deg,#171735e8,#101025e8);border:1px solid #ffffff18;border-radius:18px;padding:20px;box-shadow:0 18px 45px #0004,inset 0 1px 0 #ffffff0e;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease}
.dashboard-stats a:before{content:"";position:absolute;inset:-1px;background:radial-gradient(circle at 85% 5%,#8748ff24,transparent 42%);pointer-events:none}
.dashboard-stats a:hover{transform:translateY(-3px);border-color:#a86cff66;box-shadow:0 24px 55px #0007,0 0 0 1px #8e4dff20,inset 0 1px 0 #ffffff18}
.dashboard-stats a>span{position:relative;display:block;color:var(--muted);font-size:12px}
.dashboard-stats a>b{position:relative;display:block;margin-top:9px;font-size:36px;line-height:1}
.dashboard-stats a>b.produced{color:var(--warn)}
.dashboard-stats a>small{position:relative;display:flex;align-items:center;justify-content:space-between;margin-top:14px;padding-top:12px;border-top:1px solid #ffffff12;color:#aaa8c8;font-size:10px;text-transform:uppercase;letter-spacing:.07em}
.dashboard-stats a>small i{display:grid;width:25px;height:25px;place-items:center;border-radius:9px;background:#ffffff0b;color:#d6b6ff;font-size:14px;font-style:normal;transition:transform .2s ease,background .2s ease}
.dashboard-stats a:hover>small i{transform:translateX(2px);background:#8e45ff33}
.production-panel{position:relative;overflow:hidden;margin-bottom:22px;padding:26px;background:radial-gradient(circle at 85% 0,#313b9240,transparent 32%),linear-gradient(145deg,#12142d,#090b19);border-color:#ffffff1c}
.production-panel:before{content:"";position:absolute;inset:0;background:linear-gradient(115deg,#ffffff09,transparent 22%);pointer-events:none}
.production-head{position:relative;margin-bottom:18px}.production-head h2{margin:5px 0 5px;font-size:22px}.production-head p{margin:0;color:var(--muted);font-size:12px}
.market-live{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #24e7a531;border-radius:999px;background:#24e7a50d;color:#7ef4ca;font-size:10px;font-weight:750;text-transform:uppercase;letter-spacing:.07em}.market-live i{width:7px;height:7px;border-radius:50%;background:#24e7a5;box-shadow:0 0 0 5px #24e7a513,0 0 12px #24e7a5}
.production-overview{position:relative;display:grid;grid-template-columns:repeat(3,minmax(130px,180px)) 1fr;align-items:end;gap:10px;margin-bottom:10px}.production-overview article{padding:12px 14px;border:1px solid #ffffff12;border-radius:13px;background:#080a16a8}.production-overview article span,.production-overview article small{display:block;color:#7f809f;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.production-overview article strong{display:block;margin:5px 0 3px;font-size:22px}.production-overview article small.green{color:#24e7a5}.production-overview article small.red{color:#ff6b7e}
.chart-legend{align-self:center;justify-self:end;display:flex;gap:18px;color:#aaa9c4;font-size:11px}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{width:17px;height:3px;border-radius:4px}.chart-legend i.good{background:#24e7a5;box-shadow:0 0 10px #24e7a5}.chart-legend i.bad{background:#ff5d73;box-shadow:0 0 10px #ff5d73}
.production-chart{position:relative;overflow-x:auto;overflow-y:hidden;margin:0 -6px -8px;padding:0 6px 2px;scrollbar-width:thin;scrollbar-color:#37385f transparent}.market-chart{display:block;width:100%;min-width:720px;height:330px;overflow:visible}.chart-grid line{stroke:#ffffff10;stroke-width:1;stroke-dasharray:3 6}.chart-grid text{fill:#6f718e;font-size:10px;text-anchor:end}.chart-area.good{fill:url(#good-area)}.chart-area.bad{fill:url(#bad-area)}.chart-line{fill:none;stroke-width:3;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}.chart-line.good{stroke:#24e7a5;filter:url(#good-glow)}.chart-line.bad{stroke:#ff5d73;filter:url(#bad-glow)}.chart-point circle{stroke-width:2;vector-effect:non-scaling-stroke;transition:r .18s ease}.chart-point.good circle{fill:#0b1517;stroke:#24e7a5}.chart-point.bad circle{fill:#180d16;stroke:#ff5d73}.chart-point:hover circle{r:8}.chart-date{fill:#777994;font-size:10px;text-anchor:middle}.active-filter{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:-9px 0 16px;padding:11px 14px;border:1px solid #a75bff35;border-radius:12px;background:#8f48ff12;color:#c7c5dc;font-size:11px}.active-filter a{color:#d79cff;font-weight:700}
@media(max-width:900px){.dashboard-stats{grid-template-columns:1fr 1fr}.dashboard-stats a{padding:17px;border-radius:17px}.dashboard-stats a>b{font-size:30px}.production-panel{padding:19px 14px;border-radius:20px}.production-head{align-items:flex-start;gap:12px}.production-overview{grid-template-columns:repeat(3,1fr)}.chart-legend{grid-column:1/-1;justify-self:start;padding:4px 2px}.market-chart{height:285px}.active-filter{margin-top:-5px}}
@media(max-width:520px){.dashboard-stats{gap:9px}.dashboard-stats a{padding:15px}.dashboard-stats a>b{font-size:28px}.dashboard-stats a>small{font-size:8px}.production-head{display:grid}.market-live{justify-self:start}.production-overview{grid-template-columns:1fr 1fr}.production-overview article:nth-child(3){grid-column:1/-1}.production-overview article strong{font-size:20px}.market-chart{min-width:660px;height:260px}.active-filter{align-items:flex-start;flex-direction:column;gap:7px}}

/* Produção à esquerda e gráfico compacto à direita. */
.production-panel{padding:20px}
.dashboard-production-split{position:relative;display:grid;grid-template-columns:minmax(420px,1.05fr) minmax(520px,1fr);gap:18px;align-items:stretch}
.daily-reports-column,.tests-chart-column{min-width:0;padding:20px;border:1px solid #ffffff12;border-radius:16px;background:#080a16a8}
.daily-report-head{margin:0 0 14px;padding:0;border:0}.daily-report-head h2{margin:5px 0 4px;font-size:21px}.daily-report-head span{line-height:1.45}
.dashboard-production-split .daily-report-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.dashboard-production-split .daily-report-grid a{min-height:56px;justify-content:center;padding:8px 10px}.dashboard-production-split .daily-report-grid b{font-size:18px}
.dashboard-production-split .production-head{margin:0 0 14px}.dashboard-production-split .production-head h2{font-size:21px}
.dashboard-production-split .production-overview{grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;margin-bottom:8px}.dashboard-production-split .production-overview article{padding:10px}.dashboard-production-split .chart-legend{grid-column:1/-1;justify-self:start;padding:3px 2px}
.dashboard-production-split .production-chart{margin:0;padding:0;overflow:hidden}.dashboard-production-split .market-chart{width:100%;min-width:0;height:280px}
.chart-legend i.produced{background:#20a8f0;box-shadow:0 0 10px #20a8f0}.production-overview strong.cyan{color:#159ee8}
.chart-area.produced{fill:url(#produced-area)}.chart-line.produced{stroke:#20a8f0;filter:url(#produced-glow)}.chart-point.produced circle{fill:#071725;stroke:#20a8f0}
.chart-value{font-size:11px;font-weight:900;text-anchor:middle;paint-order:stroke;stroke:var(--surface-raised,#fff);stroke-width:4px;stroke-linejoin:round}.chart-value.good{fill:#0ca879}.chart-value.bad{fill:#ed3855}.chart-value.produced{fill:#158fd0}
html[data-theme=light] .daily-reports-column,html[data-theme=light] .tests-chart-column{background:var(--surface-soft)!important;border-color:var(--line)!important}
@media(max-width:1200px){.dashboard-production-split{grid-template-columns:minmax(360px,1.05fr) minmax(440px,1fr)}.dashboard-production-split .market-chart{height:260px}}
@media(max-width:1000px){.dashboard-production-split{grid-template-columns:1fr}.dashboard-production-split .daily-report-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:620px){.production-panel{padding:12px}.daily-reports-column,.tests-chart-column{padding:15px}.dashboard-production-split .daily-report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-production-split .production-overview{grid-template-columns:1fr 1fr}.dashboard-production-split .production-overview article:nth-child(3){grid-column:1/-1}.dashboard-production-split .market-chart{height:240px}}
