:root[data-theme="dark"]{
 --color-background:#101a15;--color-surface:#18251e;--color-text:#e3eee6;--color-muted:#afc0b4;--color-text-muted:#afc0b4;--color-border:#35473d;
 --color-primary:#a5d58b;--color-primary-hover:#bce6a8;--color-primary-light:#293e29;--color-primary-dark:#1d331e;--color-accent:#b1d888;
 --color-danger:#ff9bad;--color-warning:#f4c181;--color-info:#d6b4f5;
 --green:var(--color-primary);--light:#bce6a8;--ink:var(--color-text);--muted:var(--color-muted);--bg:var(--color-background);--line:var(--color-border);
 --brand-leaf-700:#a5d58b;--brand-leaf-800:#bce6a8;--brand-leaf-950:#1d331e;--brand-soil-950:#e3eee6;--brand-soil-700:#c5d4c9;--brand-soil-500:#afc0b4;
 --brand-sand-50:#101a15;--brand-sand-100:#18251e;--brand-sand-200:#35473d;--shadow-sm:0 2px 8px #0002;--shadow-md:0 12px 32px #0005;--shadow-rest:0 5px 18px #0003;--shadow-lift:0 14px 34px #0004;
 color-scheme:dark
}
html[data-theme="dark"] body{color:var(--color-text);background:var(--color-background)}
html[data-theme="dark"] :is(.sidebar,.topbar,.card,.modal-card,.login-panel,.login-box,.login-mobile-sheet,.bottom-navigation,.search-results,.profile-menu,.bed-card,.culture-card,.table-card,.settings-card){background-color:var(--color-surface);color:var(--color-text);border-color:var(--color-border)}
html[data-theme="dark"] :is(input,select,textarea,option){background:#111c16!important;color:#e3eee6!important;border-color:#526659!important;caret-color:#bce6a8}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#9eafa3!important;opacity:1}
html[data-theme="dark"] :is(input,select,textarea):disabled{color:#afc0b4!important;opacity:.7}
html[data-theme="dark"] :is(.primary,.order-action,.bottom-nav-primary){color:#102013!important;background:#a5d58b!important;border-color:#a5d58b!important;box-shadow:none}
html[data-theme="dark"] :is(.primary,.order-action,.bottom-nav-primary) :is(span,b,small,svg){color:inherit!important;stroke:currentColor}
html[data-theme="dark"] :is(.primary,.order-action):hover{background:#bce6a8!important}
html[data-theme="dark"] :is(.secondary,.text-action,.icon-btn,.filter,.date-select){color:#c5dfbd;background-color:transparent;border-color:var(--color-border)}
html[data-theme="dark"] :is(.secondary,.icon-btn):hover{background-color:#2b3e30}
html[data-theme="dark"] :is(.danger,.stock-low,.required){color:#ff9bad!important}
html[data-theme="dark"] :is(.badge,.order-status,.brand-tag){background:#293d31;color:#d4e6d9}
html[data-theme="dark"] :is(.badge.green,.badge.success,.order-status.concluido){background:#24452e;color:#b7e4bf}
html[data-theme="dark"] :is(.badge.orange,.badge.amber,.order-status.aguardando-aprovacao){background:#47391f;color:#f6d295}
html[data-theme="dark"] :is(.badge.red,.badge.danger){background:#492a31;color:#ffc0cb}
html[data-theme="dark"] :is(.badge.blue,.order-status.em-producao){background:#243e4c;color:#b4ddf2}
html[data-theme="dark"] :is(.badge.purple,.order-status.aguardando-producao){background:#3e2e4a;color:#dfc2ef}
html[data-theme="dark"] :is(.nav-item.active,.subnav a.active,.bottom-nav-item.active){background:#293e29;color:#bce6a8}
html[data-theme="dark"] :is(th,td){color:var(--color-text);border-color:var(--color-border)}
html[data-theme="dark"] th{color:#afc0b4;background:#1d2e24}
html[data-theme="dark"] tbody tr:hover{background:#22372a}
html[data-theme="dark"] :is(.modal,.sidebar-overlay.visible){background-color:#0009}
html[data-theme="dark"] :is(.home-quick-actions button,.home-day-summary article,.marketing-stats article){background:var(--color-surface);color:var(--color-text);border-color:var(--color-border)}
html[data-theme="dark"] .progress-ring{background:conic-gradient(#a5d58b calc(var(--progress)*1%),#35473d 0)}
html[data-theme="dark"] :is(.progress-ring:before,.donut:after,.status-donut:before){background:var(--color-surface);color:var(--color-text)}
html[data-theme="dark"] .login-art{color:#f1f6ee;background-color:#1d331e}
html[data-theme="dark"] .login-art :is(h1,p,em,small){color:#f1f6ee}
html[data-theme="dark"] .login-brand-lockup:not(.login-brand-lockup-light),html[data-theme="dark"] .brand-home{background:#f3f5ed;border-radius:10px;padding:8px;color:#294d03}
html[data-theme="dark"] .login-brand-lockup:not(.login-brand-lockup-light) span{color:#294d03}
html[data-theme="dark"] svg text{fill:#cad7ce}
html[data-theme="dark"] :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #b5dda0;outline-offset:3px}
html[data-theme="dark"] .theme-options button{color:var(--color-text);background:var(--color-surface)}
html[data-theme="dark"] .theme-options button[aria-pressed=true]{background:#293e29;color:#bce6a8}
html[data-theme="dark"] .home-workspace .home-quick-actions>button:hover{background:#293e29}
@media print{html[data-theme="dark"] body{background:white!important;color:black!important}}
html[data-theme="dark"] #app .home-workspace .home-quick-actions>button{background:#18251e!important;border:1px solid #35473d!important}
html[data-theme="dark"] #app .home-workspace .home-quick-actions>button:hover{background:#293e29!important;border-color:#a5d58b!important}
html[data-theme="dark"] .home-workspace .text-action{color:#bce6a8}
html[data-theme="dark"] .bottom-nav-primary{background:transparent!important;color:#bce6a8!important;border:0!important}
html[data-theme="dark"] .bottom-nav-primary>.material-symbols-rounded{background:#a5d58b!important;color:#102013!important}
html[data-theme="dark"] .today>time{color:#102013!important}
html[data-theme="dark"] .avatar:not(.has-photo),html[data-theme="dark"] .profile-photo-fallback{color:#d8ecd2;background-color:#29432f}
