/* AgroFrota • dois temas. O modo escuro continua sendo o padrão original. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:105px;font-weight:750}
.theme-toggle:focus-visible{outline:3px solid var(--green2,#28a45e);outline-offset:3px}
.theme-toggle-page{font:600 13px system-ui,sans-serif;width:auto;margin:0;padding:10px 14px;border:1px solid #345142;border-radius:12px;background:#192820;color:#d4eada;cursor:pointer}
.theme-toggle-page:hover{filter:brightness(1.09)}
.login-theme-bar{display:flex;justify-content:flex-end;margin:-12px -10px 18px}
.privacy-theme-bar{display:flex;justify-content:flex-end;margin-bottom:10px}
html[data-theme="light"]{
 color-scheme:light;
 --bg:#f3f8f3;
 --panel:#fff;
 --panel2:#f7fbf8;
 --line:#d6e4d9;
 --text:#193327;
 --muted:#5b7465;
 --green:#176b3b;
 --green2:#21884b;
 --gold:#946314;
 --danger:#b22b3a;
}
html[data-theme="light"] body{background:radial-gradient(ellipse at 17% -10%,#dff2e4,transparent 45%),#f3f8f3;color:var(--text)}
html[data-theme="light"] .shell{color:var(--text)}
html[data-theme="light"] input,
html[data-theme="light"] textarea,
html[data-theme="light"] select{background:#fff;color:#193327;border-color:#c5d8cb}
html[data-theme="light"] input:focus,
html[data-theme="light"] textarea:focus,
html[data-theme="light"] select:focus{border-color:#23864a;box-shadow:0 0 0 3px #23864a1e}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder{color:#70877a}
html[data-theme="light"] label,
html[data-theme="light"] .label-title{color:#365746}
html[data-theme="light"] th{color:#365746;background:#edf5ef}
html[data-theme="light"] td{color:#254232;border-color:#e0e9e1}
html[data-theme="light"] th{border-color:#d9e6dc}
html[data-theme="light"] tr:hover td{background:#e8f5ebaa}
html[data-theme="light"] .stat{background:linear-gradient(145deg,#fff,#f8fcf8);box-shadow:0 5px 22px #264d2910}
html[data-theme="light"] .section{box-shadow:0 5px 22px #294b2d0b}
html[data-theme="light"] .section-header p,
html[data-theme="light"] .stat .sub{color:#617d6b}
html[data-theme="light"] .tag{background:#e1f4e7;color:#176437;border-color:#b7ddc3}
html[data-theme="light"] .btn{background:#fff;color:#24553b;border-color:#bfd7c5}
html[data-theme="light"] .btn:hover{background:#edf8f0;border-color:#65ab7e}
html[data-theme="light"] .btn.primary{background:#176b3b;color:#fff;border-color:#176b3b}
html[data-theme="light"] .btn.primary:hover{background:#11532e;color:#fff}
html[data-theme="light"] .btn.ghost{background:transparent;color:#276c45}
html[data-theme="light"] .btn.danger{color:#a72d38;border-color:#deb3b8}
html[data-theme="light"] .btn.danger:hover{background:#fff0f0}
html[data-theme="light"] .nav{background:#fff;border-color:#d4e6d8;box-shadow:0 5px 23px #264a2d0b}
html[data-theme="light"] .nav .btn{background:transparent;color:#536e5b}
html[data-theme="light"] .nav .btn.active{background:#e2f3e7;color:#176b3b;box-shadow:inset 0 0 0 1px #a7d5b3}
html[data-theme="light"] .pill,
html[data-theme="light"] .tiny-badge{background:#e2f3e7;color:#17643b;border-color:#abd2b6}
html[data-theme="light"] .data-wrap{border-color:#dce8de}
html[data-theme="light"] .month-grid td:first-child,
html[data-theme="light"] .compact-matrix td:first-child{background:#fff}
html[data-theme="light"] .month-grid th:first-child,
html[data-theme="light"] .compact-matrix th:first-child{background:#edf5ef}
html[data-theme="light"] .month-grid .month-total td,
html[data-theme="light"] .compact-matrix .month-total td{background:#e7f2e8}
html[data-theme="light"] .fleet-group-title td,
html[data-theme="light"] .fleet-group-title th,
html[data-theme="light"] .compact-matrix .fleet-group-title td,
html[data-theme="light"] .compact-matrix .fleet-group-title th{background:#dff1e5;color:#155c36}
html[data-theme="light"] .fleet-group-title.third td,
html[data-theme="light"] .fleet-group-title.third th,
html[data-theme="light"] .compact-matrix .third td,
html[data-theme="light"] .compact-matrix .fleet-group-title.third th{background:#fff0d3;color:#7a5111}
html[data-theme="light"] .row-support td,
html[data-theme="light"] .operation-supports td{background:#f2f8f3}
html[data-theme="light"] .profile-card,
html[data-theme="light"] .project-summary,
html[data-theme="light"] .editor-block{background:#f8fbf8;border-color:#d5e6d9}
html[data-theme="light"] .meta-chips span{background:#e4f2e8;color:#245c3d}
html[data-theme="light"] .notice{background:#eaf6ed;color:#2a6743;border-color:#b9d9c3}
html[data-theme="light"] .notice strong{color:#164c2e}
html[data-theme="light"] .notice.warn{background:#fff4df;color:#79501b;border-color:#e6cca2}
html[data-theme="light"] .bar-cell{color:#537561}
html[data-theme="light"] .bar-track{background:#e6f0e7}
html[data-theme="light"] .bar-fill{background:linear-gradient(180deg,#51bd78,#218a4f)}
html[data-theme="light"] .bar-num{color:#1e6640}
html[data-theme="light"] .bar-cell.selected .bar-label{color:#15653a}
html[data-theme="light"] .bar-cell.selected .bar-track{outline-color:#218b53}
html[data-theme="light"] .switchrow{color:#3f6c50}
html[data-theme="light"] .footer{color:#678271}
html[data-theme="light"] .toast{background:#e3f7e9;color:#145630;border-color:#7cbd91;box-shadow:0 13px 38px #294a271f}
html[data-theme="light"] .toast.error{background:#fff0f0;color:#97313c;border-color:#df9fa7}
html[data-theme="light"] .tiny-note{background:#e7f6ea;color:#2c6944}
html[data-theme="light"] .check-list{background:#f9fcf9;border-color:#d4e4d8}
html[data-theme="light"] .child{border-color:#d9e7dc}
html[data-theme="light"] .support-arrow{color:#91611c;border-color:#e3c591}
html[data-theme="light"] .third-pill{color:#8a5b16;background:#fff0d4}
html[data-theme="light"] .operation-editor{background:#fff;color:var(--text);border-color:#c5ddcc;box-shadow:0 20px 60px #17372538}
html[data-theme="light"] .operation-editor::backdrop{background:#16271a88}
html[data-theme="light"] .editor-actions{background:#fff;border-color:#e0ece3}
html[data-theme="light"] .operation-node{color:#234c36}
html[data-theme="light"] .operation-node:hover{background:#edf7ef;border-color:#b3d8bc}
html[data-theme="light"] .operation-node.selected{background:#e3f3e8;border-color:#7bb790;box-shadow:inset 3px 0 #24884e}
html[data-theme="light"] .operation-children{border-color:#d1e3d5}
html[data-theme="light"] .category-filter{border-color:#b8d6c1}
html[data-theme="light"] .category-filter .btn{background:#fff;color:#335e43}
html[data-theme="light"] .category-filter .btn.active{background:#176b3b;color:#fff}
html[data-theme="light"] .compact-matrix tr:not(.fleet-group-title) td{border-right-color:#e1ebe3}
html[data-theme="light"] .sharing-settings{background:#ecf7ef;border-color:#badac3}
html[data-theme="light"] .fleet-matrix.compact-matrix .staff-breakdown td{background:#f4faf5;color:#355d42}
html[data-theme="light"] .staff-role-summary td{border-color:#c2dccb}
html[data-theme="light"] .area-list-item{background:#fff;color:var(--text);border-color:#d3e4d8}
html[data-theme="light"] .area-list-item:hover{background:#eef7f0}
html[data-theme="light"] .area-list-item.active{background:#e1f3e7;border-color:#24834a}
html[data-theme="light"] .planning-picker{background:#fff;border-color:#cadfd0}
html[data-theme="light"] .planning-picker-body{background:#fff;border-color:#c0dac8;box-shadow:0 10px 28px #294c321d}
html[data-theme="light"] .planning-picker-body label{color:#2d503b}
html[data-theme="light"] .timeline-selection{color:#176b3b}
html[data-theme="light"] .timeline-years span{background:#eaf4eb;border-color:#cedfcf;color:#365e44}
html[data-theme="light"] .timeline-month{background:#fff;border-color:#cadfce;color:#335d43}
html[data-theme="light"] .timeline-month:hover{background:#e9f5ec}
html[data-theme="light"] .timeline-month.selected{background:#176b3b;color:#fff;border-color:#176b3b}
html[data-theme="light"] .timeline-month:focus-visible{outline-color:#1b9150}
html[data-theme="light"] .validation-entry{background:#fff;border-color:#d4e6da}
html[data-theme="light"] .validation-entry[open]{background:#fbfefb;border-color:#84bd95}
html[data-theme="light"] .validation-status{background:#e6f6ea;color:#176b3b;border-color:#add7b8}
html[data-theme="light"] .validation-status.pending{background:#fff1d6;color:#805614;border-color:#e4c382}
html[data-theme="light"] .validation-status.error{background:#ffeded;color:#a32c39;border-color:#e5a8b0}
html[data-theme="light"] .validation-breakdown{background:#f8fcf8;border-color:#d5e7d9}
html[data-theme="light"] .validation-steps li{background:#fff;border-color:#d7e6da}
html[data-theme="light"] .validation-steps li::before{background:#d9f0e1;color:#145c32}
html[data-theme="light"] .validation-steps li span{color:#566e5d}
html[data-theme="light"] .validation-steps li b{color:#204c33}
html[data-theme="light"] .validation-steps li small{color:#617d6a}
html[data-theme="light"] .validation-result{background:#e3f4e8}
html[data-theme="light"] .validation-result p{color:#466d52}
html[data-theme="light"] .validation-detail-head span{color:#657d69}
html[data-theme="light"] .stat-inline{border-color:#dbe9de}
html[data-theme="light"] button:focus-visible{outline-color:#227c46}
/* Tabelas com dados e SVGs com legenda explícita não podem herdar texto branco. */
html[data-theme="light"] .fleet-chart svg text,
html[data-theme="light"] .report-charts svg text{fill:#365745}
html[data-theme="light"] #sync-status{background:#fff!important;color:#245a38!important;border-color:#9bc3a7!important;box-shadow:0 2px 12px #294a2b20}
html[data-theme="light"] #session-logout{background:#fff!important;color:#245a38!important;border-color:#9bc3a7!important}
html[data-theme="light"] body.login-page{background:radial-gradient(circle at 20% 5%,#e0f3e4,transparent 48%),#f3f8f3;color:#193327}
html[data-theme="light"] .login-page main{background:#fff;border-color:#c8e1d0;box-shadow:0 18px 60px #244d2c20}
html[data-theme="light"] .login-page h1{color:#146a3a}
html[data-theme="light"] .login-page p{color:#536c5b}
html[data-theme="light"] .login-page label{color:#325543}
html[data-theme="light"] .login-page input{background:#fff;color:#193327;border-color:#bdd6c5}
html[data-theme="light"] .login-page form button{background:#176b3b;color:#fff}
html[data-theme="light"] .login-page #err{color:#a52d3b}
html[data-theme="light"] .login-page a{color:#166d3d!important}
html[data-theme="light"] .theme-toggle-page{background:#fff;color:#176b3b;border-color:#bcd8c4}
html[data-theme="light"] body.privacy-page{background:#f3f8f3;color:#244231}
html[data-theme="light"] .privacy-page h2,
html[data-theme="light"] .privacy-page h3,
html[data-theme="light"] .privacy-page a{color:#176b3b}
@media(max-width:600px){.theme-toggle{min-width:90px}.login-theme-bar{margin:-10px -10px 13px}}
html[data-theme="light"] body > button[title="Encerrar sessão"]{background:#fff!important;color:#245a38!important;border-color:#9bc3a7!important}
