/* AGRAVIS dashboard skin: the charcoal/green/yellow brand palette is shared by every module. */
:root{--agravis-deep:#101b13;--agravis-panel:#19251b;--agravis-panel-2:#202e22;--agravis-panel-3:#29392b;--agravis-border:#344536;--agravis-green:#62c72b;--agravis-green-soft:#a3dc7b;--agravis-yellow:#ffed00;--agravis-copy:#e9efe5;--agravis-muted:#a0ae9b}
:root[data-theme=dark]{--brand-green:var(--agravis-green);--brand-yellow:var(--agravis-yellow);--green:var(--agravis-green);--ink:var(--agravis-copy);--muted:var(--agravis-muted);--bg:var(--agravis-deep);--line:var(--agravis-border);--surface:var(--agravis-panel);--surface-raised:var(--agravis-panel-2);--surface-muted:#151f17;--surface-border:var(--agravis-border);color-scheme:dark}
body{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:.005em}
aside{background:linear-gradient(180deg,#18251a 0%,#111a13 100%);border-right:1px solid #304232;border-top:4px solid var(--agravis-green);box-shadow:10px 0 40px #0002}
.brand-logo-panel{border:1px solid #e5eadf;border-bottom:4px solid var(--agravis-yellow);box-shadow:0 8px 24px #0002}
.plant{border-radius:12px}.plant span{line-height:1.7}
nav button{min-height:41px;border-radius:8px;color:#c5d0c2}
nav button:hover{background:#ffffff0d;color:#fff;transform:translateX(2px)}
nav button.active{background:linear-gradient(100deg,#62c72b,#78d944);color:#14230f;box-shadow:0 7px 18px #62c72b35;border-left-color:var(--agravis-yellow)}
.energy-subnav button.active{background:#31442d;color:#dcf5ce;border-left-color:var(--agravis-green)}
main{background:radial-gradient(ellipse at 12% 0%,#23372880 0,transparent 38%),var(--bg)}
.top{border-bottom-color:var(--line)}.top-breadcrumb{font-weight:700}.breadcrumb-separator{color:#667766}
.heading{margin-top:24px}.heading h1{font-size:clamp(25px,2.1vw,34px);letter-spacing:-.8px}.heading p{color:var(--muted)}
.card,.dashboard-welcome,.dashboard-update-list,.dashboard-priority,.dashboard-ticket,.dashboard-link,.management-kpi,.management-metric,.person-chip,.shift-cell,.task-card,.metric-card{transition:background-color .18s,border-color .18s,box-shadow .18s,transform .18s}
.card{border-radius:14px;box-shadow:0 12px 32px #00000020}
.panelhead{border-bottom-color:var(--line)}
.btn,.theme-toggle{border-radius:9px}.primary{box-shadow:0 6px 18px #62c72b30}
.primary:hover{transform:translateY(-1px);box-shadow:0 8px 20px #62c72b40}
.badge{border-radius:999px;padding:5px 10px;font-weight:700}
.dashboard-welcome{position:relative;overflow:hidden;min-height:120px;padding:23px 26px;border:1px solid #3c593e;background:linear-gradient(110deg,#1e3824 0%,#1b2b1e 65%,#253727 100%);border-radius:16px;box-shadow:0 15px 34px #0003}
.dashboard-welcome:after{content:"";position:absolute;width:220px;height:220px;right:8%;top:-130px;border-radius:50%;border:1px solid #ffffff10;box-shadow:0 0 0 24px #ffffff05,0 0 0 48px #ffffff03}
.dashboard-welcome h2{position:relative;margin:7px 0;font-size:23px;letter-spacing:-.4px}.dashboard-welcome p{position:relative}.dashboard-eyebrow{color:var(--agravis-green-soft);letter-spacing:1.6px;font-size:10px;font-weight:800}.dashboard-date{position:relative;z-index:1;color:#d6e2d1}.dashboard-date b{font-size:13px}.dashboard-date span{color:#9eaf9b}
.dashboard-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.dashboard-kpi{position:relative;min-height:138px;padding:18px 19px;border:1px solid var(--agravis-border);border-radius:13px;background:linear-gradient(150deg,#263728,#1d2a1f);color:var(--agravis-copy);text-align:left;box-shadow:0 9px 22px #0002}
.dashboard-kpi:hover{transform:translateY(-3px);border-color:#5e8b50;box-shadow:0 15px 28px #0003}
.dashboard-kpi-top{color:#b7c5b3}.dashboard-kpi-top i{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:#62c72b1a;color:var(--agravis-green-soft)}
.dashboard-kpi strong{color:#f5f8f2;font-size:31px;letter-spacing:-.8px}.dashboard-kpi small{color:#a8b6a4;line-height:1.45}
.dashboard-insights{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.8fr);gap:15px;align-items:stretch}
.dashboard-chart-card{min-width:0;overflow:hidden}.dashboard-chart-card .panelhead{min-height:70px}.dashboard-period{padding:7px 11px;border:1px solid var(--agravis-border);border-radius:8px;color:#bfceba;font-size:11px}
.dashboard-chart-wrap{padding:8px 18px 16px}.dashboard-trend-chart{display:block;width:100%;height:auto;overflow:visible}.dashboard-trend-chart g line{stroke:#394b3c;stroke-width:1;stroke-dasharray:3 6}.dashboard-trend-chart g text{fill:#82927f;font-size:10px;text-anchor:end}.dashboard-trend-chart .trend-month{fill:#899988;font-size:10px;text-transform:capitalize}.trend-area{fill:#62c72b;opacity:.1}.trend-line{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.trend-line-green{stroke:#62c72b}.trend-line-yellow{stroke:#ffed00}.dashboard-chart-legend{display:flex;gap:18px;flex-wrap:wrap;padding:2px 16px 0;color:#a9b8a5;font-size:11px}.dashboard-chart-legend span{display:flex;align-items:center;gap:8px}.dashboard-chart-legend i{width:9px;height:9px;border-radius:50%}.legend-green{background:#62c72b}.legend-yellow{background:#ffed00}
.dashboard-insight-stack{display:grid;grid-template-rows:auto repeat(3,minmax(76px,1fr));gap:9px;min-width:0;padding:3px 0}.dashboard-insight-head{display:flex;align-items:center;justify-content:space-between;padding:3px 2px 5px;color:#aab8a6}.dashboard-insight-head span{font-size:10px;letter-spacing:1.4px;font-weight:800}.dashboard-insight-head b{font-size:11px;color:#d9e4d5}
.dashboard-insight-card{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:2px 12px;width:100%;min-width:0;padding:12px 15px;border:1px solid var(--agravis-border);border-radius:12px;background:linear-gradient(110deg,#233226,#1b281d);color:var(--agravis-copy);text-align:left;cursor:pointer}.dashboard-insight-card:hover{background:#2a3b2c;border-color:#5e8b50}.dashboard-insight-card>span{color:#aebba9;font-size:11px}.dashboard-insight-card strong{grid-row:span 2;grid-column:2;font-size:23px;color:#f2f6ef}.dashboard-insight-card small{color:#8fa08c;font-size:10px}.dashboard-insight-card>i{position:absolute;right:9px;top:7px;color:#83c95b;font-size:11px;font-style:normal}
.dashboard-main-grid{gap:15px}.dashboard-panel .panelhead{padding:16px 19px}.dashboard-priority-list,.dashboard-ticket-list{padding:5px 17px}.dashboard-priority,.dashboard-ticket{color:var(--agravis-copy);background:transparent;border-bottom-color:#344536}.dashboard-priority:hover,.dashboard-ticket:hover,.dashboard-update:hover,.dashboard-link:hover{background:#263629}.dashboard-priority small,.dashboard-ticket small,.dashboard-due{color:#9dab99}.dashboard-updates-grid{gap:14px}.dashboard-update{color:var(--agravis-copy);background:transparent;border-bottom-color:#344536}.dashboard-update time,.dashboard-update small{color:#9dab99}.dashboard-links{column-gap:10px}.dashboard-link{color:var(--agravis-copy);background:transparent;border-bottom-color:#344536}.dashboard-icon{background:#62c72b20;color:#a1dc79;border:1px solid #62c72b24}
.dashboard-actions{padding:2px 0 16px}.dashboard-actions .btn{min-height:39px}.dashboard-actions>span{color:#9dab99}
.dashboard-admin-actions{border-top:1px solid var(--line)}.dashboard-audit-list>div{border-bottom-color:var(--line)}
:root[data-theme=dark] .top,:root[data-theme=dark] .card,:root[data-theme=dark] .profile-menu,:root[data-theme=dark] .top-page-menu,:root[data-theme=dark] .agent-shell,:root[data-theme=dark] .agent-modal,:root[data-theme=dark] .data-file-modal,:root[data-theme=dark] .exam-report-drop,:root[data-theme=dark] .notice,:root[data-theme=dark] .hint,:root[data-theme=dark] .dashboard-welcome,:root[data-theme=dark] .dashboard-update-list,:root[data-theme=dark] .machine-detail-card,:root[data-theme=dark] .contractor-card,:root[data-theme=dark] .personnel-roster,:root[data-theme=dark] .data-vault-panel,:root[data-theme=dark] .finance-panel,:root[data-theme=dark] .audit-panel,:root[data-theme=dark] .meeting-card{background-color:var(--agravis-panel);color:var(--agravis-copy);border-color:var(--agravis-border);box-shadow:0 12px 32px #00000020}
:root[data-theme=dark] .panelhead,:root[data-theme=dark] .filters,:root[data-theme=dark] .exam-type-row,:root[data-theme=dark] .contractor-review-row,:root[data-theme=dark] .contractor-staff-row,:root[data-theme=dark] .personnel-dashboard-row,:root[data-theme=dark] .meeting-action-row,:root[data-theme=dark] .cell-cleaning-entry,:root[data-theme=dark] .audit-entry,:root[data-theme=dark] .machine-maintenance-history,:root[data-theme=dark] .order-row,:root[data-theme=dark] .announcement-card,:root[data-theme=dark] .announcement-preview,:root[data-theme=dark] .improve-proposal,:root[data-theme=dark] .improve-entry{background-color:var(--agravis-panel);color:var(--agravis-copy);border-color:var(--agravis-border)}
:root[data-theme=dark] .stat,:root[data-theme=dark] .team,:root[data-theme=dark] .person,:root[data-theme=dark] .person-chip,:root[data-theme=dark] .shift-cell,:root[data-theme=dark] .shift-summary,:root[data-theme=dark] .shift-summary-head,:root[data-theme=dark] .exam-assignment,:root[data-theme=dark] .exam-assignment-list,:root[data-theme=dark] .data-vault-info,:root[data-theme=dark] .data-vault-folder,:root[data-theme=dark] .data-file-icon,:root[data-theme=dark] .dashboard-kpi,:root[data-theme=dark] .dashboard-panel,:root[data-theme=dark] .contractor-entry-active-list>div,:root[data-theme=dark] .agent-preview,:root[data-theme=dark] .agent-message,:root[data-theme=dark] .task-card,:root[data-theme=dark] .metric-card{background-color:var(--agravis-panel-2);color:var(--agravis-copy);border-color:var(--agravis-border)}
:root[data-theme=dark] .week,:root[data-theme=dark] .day,:root[data-theme=dark] .task,:root[data-theme=dark] .bartrack,:root[data-theme=dark] .hint,:root[data-theme=dark] .line{background:var(--agravis-panel-2);color:var(--agravis-copy);border-color:var(--agravis-border)}
:root[data-theme=dark] .profile-menu,:root[data-theme=dark] .top-page-menu,:root[data-theme=dark] .profile-menu button,:root[data-theme=dark] .top-page-menu button,:root[data-theme=dark] .meeting-action-entry,:root[data-theme=dark] .agent-proposal,:root[data-theme=dark] .agent-message.assistant{background:var(--agravis-panel-2);color:var(--agravis-copy);border-color:var(--agravis-border)}
:root[data-theme=dark] .dashboard-priority,:root[data-theme=dark] .dashboard-ticket,:root[data-theme=dark] .dashboard-link,:root[data-theme=dark] .dashboard-update{background:transparent;color:var(--agravis-copy);border-color:var(--agravis-border)}
:root[data-theme=dark] .dashboard-priority:hover,:root[data-theme=dark] .dashboard-ticket:hover,:root[data-theme=dark] .dashboard-link:hover,:root[data-theme=dark] .dashboard-update:hover{background:#28392b}
:root[data-theme=dark] .dashboard-welcome{background:linear-gradient(110deg,#1e3824 0%,#1b2b1e 65%,#253727 100%)}
:root[data-theme=dark] input:not([type=checkbox]):not([type=radio]),:root[data-theme=dark] select,:root[data-theme=dark] textarea{background:#121d15;color:var(--agravis-copy);border-color:#415443}
:root[data-theme=dark] th{background:#263629;color:#c7d6c2;border-color:var(--agravis-border)}:root[data-theme=dark] td{background:#19251b;color:var(--agravis-copy);border-color:var(--agravis-border)}
:root[data-theme=dark] .btn:not(.primary),:root[data-theme=dark] .rowbtn,:root[data-theme=dark] .view-switch,:root[data-theme=dark] .theme-toggle{background:#253528;color:#dce8d7;border-color:#435746}
:root[data-theme=dark] .btn:not(.primary):hover,:root[data-theme=dark] .rowbtn:hover,:root[data-theme=dark] .theme-toggle:hover{background:#304631;color:#fff}
:root[data-theme=dark] .primary{background:var(--agravis-green);border-color:var(--agravis-green);color:#14210f}
:root[data-theme=dark] .badge.P1{background:#4a2b26;color:#ffc1ac}:root[data-theme=dark] .badge.P2{background:#4b421e;color:#f6e690}:root[data-theme=dark] .badge.P3{background:#294330;color:#b5e5b3}
:root[data-theme=dark] .work-entry,:root[data-theme=dark] .notice,:root[data-theme=dark] .hint,:root[data-theme=dark] .energy-info{background:#253528;color:#d4e2d0;border-color:#425741}
:root[data-theme=dark] dialog{background:var(--agravis-panel);color:var(--agravis-copy);border:1px solid var(--agravis-border);border-top:4px solid var(--agravis-green)}
:root[data-theme=dark] .dashboard-insight-card{background:linear-gradient(110deg,#233226,#1b281d);color:var(--agravis-copy);border-color:var(--agravis-border)}
:root[data-theme=dark] .vds-error{color:#ff9a88}:root[data-theme=dark] .vds-dialog .vds-help{color:#aab8a6}
.vds-auto-findings{display:grid;gap:10px;max-height:46vh;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface-soft,#f7f9f4)}.vds-extraction-status{font-size:12px;line-height:1.5}.vds-finding-review-list{display:grid;gap:9px}.vds-finding-review{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--surface,#fff)}.vds-finding-include{display:flex!important;grid-auto-flow:column;grid-template-columns:auto 1fr;justify-content:start;align-items:center;gap:8px!important;margin:0!important;font-size:12px!important;font-weight:700}.vds-finding-include input{width:auto;margin:0;accent-color:var(--brand-green)}.vds-finding-review textarea,.vds-finding-review select{width:100%;min-width:0}.vds-finding-review .two{grid-template-columns:minmax(0,1fr) 120px}.vds-bulk-assignment{display:grid;gap:9px;padding-top:12px;border-top:1px solid var(--line)}.vds-bulk-assignment>b{font-size:12px}.vds-bulk-assignment>small{font-size:10px;color:var(--muted);line-height:1.45}.vds-bulk-assignment label{display:grid;gap:5px;font-size:11px}
:root[data-theme=dark] .vds-auto-findings{background:#141f16;border-color:var(--agravis-border)}:root[data-theme=dark] .vds-finding-review{background:var(--agravis-panel-2);border-color:var(--agravis-border)}
@media(max-width:600px){.vds-auto-findings{max-height:40vh;padding:8px}.vds-finding-review{padding:9px}.vds-finding-review .two{grid-template-columns:1fr}}
@media(max-width:1100px){.dashboard-insights{grid-template-columns:minmax(0,1.35fr) minmax(235px,.8fr)}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){.dashboard-insights{grid-template-columns:1fr}.dashboard-insight-stack{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:auto auto}.dashboard-insight-head{grid-column:1/-1}.dashboard-insight-card{min-height:103px;grid-template-columns:1fr}.dashboard-insight-card strong{grid-row:auto;grid-column:auto;font-size:20px}.dashboard-insight-card small{white-space:normal}.dashboard-insight-card>i{right:9px;top:8px}}
@media(max-width:700px){.dashboard-welcome{min-height:0;padding:18px}.dashboard-welcome h2{font-size:20px}.dashboard-date{margin-top:8px}.dashboard-kpis{grid-template-columns:1fr 1fr;gap:9px}.dashboard-kpi{min-height:122px;padding:13px}.dashboard-kpi strong{font-size:25px}.dashboard-kpi-top{font-size:10px}.dashboard-insight-stack{grid-template-columns:1fr}.dashboard-insight-head{grid-column:auto}.dashboard-insight-card{min-height:74px;grid-template-columns:minmax(0,1fr) auto}.dashboard-insight-card strong{grid-row:span 2;grid-column:2}.dashboard-chart-wrap{padding:4px 7px 13px}.dashboard-chart-legend{gap:12px;padding:0 8px;font-size:10px}.dashboard-main-grid,.dashboard-updates-grid{grid-template-columns:1fr}}

/* Keep the Overview readable when the user switches to the light theme. */
:root[data-theme=light] .dashboard-welcome{background:linear-gradient(110deg,#eef7e7 0%,#f8fbf4 68%,#fff 100%);border-color:#d6e4ca;color:#1c2b1d;box-shadow:0 10px 26px #304b2414}
:root[data-theme=light] .dashboard-welcome h2,:root[data-theme=light] .dashboard-panel h2{color:#1d2b1e}
:root[data-theme=light] .dashboard-welcome p{color:#435342}
:root[data-theme=light] .dashboard-eyebrow{color:#477b28}
:root[data-theme=light] .dashboard-date{color:#293a2b}
:root[data-theme=light] .dashboard-date span{color:#596957}
:root[data-theme=light] .dashboard-kpi{background:#fff;color:#253226;border-color:#d9e2d5;box-shadow:0 5px 16px #263a2310}
:root[data-theme=light] .dashboard-kpi:hover{background:#fbfef8;border-color:#86b767;box-shadow:0 10px 22px #263a2318}
:root[data-theme=light] .dashboard-kpi-top{color:#52624f}
:root[data-theme=light] .dashboard-kpi-top i{background:#edf6e7;color:#4f8b2e}
:root[data-theme=light] .dashboard-kpi strong{color:#1b2b1d}
:root[data-theme=light] .dashboard-kpi small{color:#596957}
:root[data-theme=light] .dashboard-period{color:#455442;border-color:#d5dfd1;background:#f7faf5}
:root[data-theme=light] .dashboard-trend-chart g line{stroke:#dce5d8}
:root[data-theme=light] .dashboard-trend-chart g text,:root[data-theme=light] .dashboard-trend-chart .trend-month{fill:#586854}
:root[data-theme=light] .dashboard-chart-legend{color:#455442}
:root[data-theme=light] .dashboard-insight-head{color:#4b5d48}
:root[data-theme=light] .dashboard-insight-head b{color:#253326}
:root[data-theme=light] .dashboard-insight-card{background:linear-gradient(110deg,#f5f9f1,#fff);color:#253226;border-color:#d9e2d5}
:root[data-theme=light] .dashboard-insight-card:hover{background:#eef7e8;border-color:#8bb871}
:root[data-theme=light] .dashboard-insight-card>span{color:#435342}
:root[data-theme=light] .dashboard-insight-card strong{color:#1d2c1e}
:root[data-theme=light] .dashboard-insight-card small{color:#596957}
:root[data-theme=light] .dashboard-insight-card>i{color:#4c872b}
:root[data-theme=light] .dashboard-priority,:root[data-theme=light] .dashboard-ticket,:root[data-theme=light] .dashboard-update,:root[data-theme=light] .dashboard-link{background:transparent;color:#263326;border-bottom-color:#e0e7dd}
:root[data-theme=light] .dashboard-priority small,:root[data-theme=light] .dashboard-ticket small,:root[data-theme=light] .dashboard-update time,:root[data-theme=light] .dashboard-update small,:root[data-theme=light] .dashboard-link-copy small,:root[data-theme=light] .dashboard-due{color:#586755}
:root[data-theme=light] .dashboard-priority:hover,:root[data-theme=light] .dashboard-ticket:hover,:root[data-theme=light] .dashboard-update:hover,:root[data-theme=light] .dashboard-link:hover{background:#f2f8ed}
:root[data-theme=light] .dashboard-icon{background:#edf6e7;color:#4b852a;border-color:#e0ecd8}
:root[data-theme=light] .dashboard-arrow{color:#4c872b}
:root[data-theme=light] .dashboard-actions>span{color:#586755}
:root[data-theme=light] .dashboard-audit-list small{color:#586755}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
