/* MOJO TEAM — refined dual themes. Light is the default experience. */
:root{--mojo-radius:20px;--mojo-line-soft:rgba(148,112,58,.16)}
html[data-theme='light']{color-scheme:light;--bg:#f6f3ed;--bg2:#fbfaf7;--surface:#ffffff;--surface2:#f8f4ec;--surface3:#eee7dc;--line:#e2d8c8;--text:#27231e;--muted:#756f66;--gold:#c79a47;--gold2:#9b6c20;--gold3:#77501b;--danger:#b95757;--ok:#4f8c69;--shadow:0 22px 60px rgba(70,55,35,.10);--soft:0 9px 28px rgba(70,55,35,.07)}
html[data-theme='light'] body{background:radial-gradient(circle at 84% -12%,rgba(207,167,94,.18),transparent 33%),radial-gradient(circle at 8% 22%,rgba(230,215,188,.44),transparent 27%),linear-gradient(180deg,#fbfaf7 0,#f5f1e9 52%,#f0ebe2 100%);color:var(--text)}
html[data-theme='light'] body:before{opacity:.2;background-image:linear-gradient(rgba(104,83,53,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(104,83,53,.025) 1px,transparent 1px)}
html[data-theme='light'] .topbar{background:rgba(255,255,255,.82);border-color:rgba(160,125,73,.16);box-shadow:0 10px 30px rgba(70,55,35,.07)}
html[data-theme='light'] .brand h1,html[data-theme='light'] .brand h2{color:#25211c}html[data-theme='light'] .brand small{color:#9c7741}
html[data-theme='light'] .card,html[data-theme='light'] .approval-panel,html[data-theme='light'] .approval-kpi{background:linear-gradient(150deg,rgba(255,255,255,.99),rgba(249,246,240,.99));border-color:#e6ddcf;box-shadow:var(--soft)}
html[data-theme='light'] .hero,html[data-theme='light'] .pos-hero,html[data-theme='light'] .employee-pos-alert{background:linear-gradient(135deg,#fffdf9 0,#f8f0e1 48%,#ffffff 100%);border-color:#e3cfaa;box-shadow:0 18px 50px rgba(119,86,34,.08)}
html[data-theme='light'] .metric{background:linear-gradient(155deg,#fff,#f8f4ec)}
html[data-theme='light'] .eyebrow,html[data-theme='light'] .approval-eyebrow{color:#9b6c20}
html[data-theme='light'] .input,html[data-theme='light'] select,html[data-theme='light'] textarea,html[data-theme='light'] .branch-filter,html[data-theme='light'] .approval-search-wrap .input{background:#fff;color:#27231e;border-color:#ddd2c2;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
html[data-theme='light'] .input:focus,html[data-theme='light'] select:focus,html[data-theme='light'] textarea:focus{border-color:#c79a47;box-shadow:0 0 0 3px rgba(199,154,71,.13)}
html[data-theme='light'] .btn{background:#f7f2e9;color:#30291f;border-color:#ddd0bd}html[data-theme='light'] .btn:hover{border-color:#c8ad80;background:#fbf7f0}
html[data-theme='light'] .btn-primary{background:linear-gradient(135deg,#e8c878,#c9973d);color:#2a2114;border-color:#d8ac58;box-shadow:0 10px 24px rgba(166,118,42,.16)}
html[data-theme='light'] .btn-danger{background:#fff0f0;color:#953f3f;border-color:#e7bcbc}
html[data-theme='light'] .count-pill,html[data-theme='light'] .status{background:#f8f0e3;border-color:#e1cfae;color:#6b5631}html[data-theme='light'] .status.approved{background:#edf7f0;border-color:#bcd8c6;color:#397451}html[data-theme='light'] .status.pending{background:#fff7e5;border-color:#ead29d;color:#8a661f}html[data-theme='light'] .status.rejected{background:#fff0f0;border-color:#e6bcbc;color:#9a4444}
html[data-theme='light'] .bottom-nav{background:rgba(255,255,255,.92);border-top-color:#e6dccd;box-shadow:0 -10px 30px rgba(70,55,35,.06)}html[data-theme='light'] .nav-btn{color:#7b746a}html[data-theme='light'] .nav-btn.active{color:#8f631e;background:linear-gradient(180deg,rgba(199,154,71,.13),rgba(199,154,71,.04));box-shadow:inset 0 0 0 1px rgba(199,154,71,.10)}
html[data-theme='light'] .modal{background:#fff;border-color:#e0d2bd;box-shadow:0 30px 90px rgba(67,49,27,.16)}html[data-theme='light'] .toast{background:#fffaf1;color:#30271b;border-color:#cfb17b}
html[data-theme='light'] .login-wrap:before{border-color:rgba(199,154,71,.13);box-shadow:0 0 100px rgba(199,154,71,.05)}html[data-theme='light'] .login-wrap:after{background:radial-gradient(circle,rgba(199,154,71,.10),transparent 68%)}html[data-theme='light'] .login-card{background:linear-gradient(160deg,rgba(255,255,255,.99),rgba(247,242,233,.99));border-color:#e2cfac;box-shadow:0 32px 90px rgba(75,56,30,.13)}html[data-theme='light'] .login-title{color:#746b60}
html[data-theme='light'] .scope-banner{background:linear-gradient(135deg,#fff,#f7efe2);border-color:#e4d2b2}html[data-theme='light'] .branch-chip{background:#f7eddd;color:#795823;border-color:#dfc79f}
html[data-theme='light'] .approval-kpi.urgent{background:linear-gradient(145deg,#fff8e9,#fff);border-color:#e5c887;box-shadow:0 14px 36px rgba(154,103,27,.08)}html[data-theme='light'] .pending-count{background:#fff8ec;border-color:#dfc28a}html[data-theme='light'] .approval-item,html[data-theme='light'] .employee-day-card{background:#fff;border-color:#e6ddcf}html[data-theme='light'] .approval-number,html[data-theme='light'] .approval-note{background:#faf7f2;border-color:#e6dccd;color:#5e554a}html[data-theme='light'] .employee-day-avatar{background:linear-gradient(145deg,#fff7e8,#eeddbf);border-color:#d7b879;color:#8c611d}html[data-theme='light'] .employee-day-invoices{background:#faf8f4;border-top-color:#e8dfd1}
html[data-theme='light'] .pos-line-num,html[data-theme='light'] .pos-flow-hint span{background:#fff6e6;border-color:#dfc590;color:#8f621d}html[data-theme='light'] .pos-total-summary{background:#faf7f1;border-color:#e5dac8}html[data-theme='light'] .pos-total-summary .grand{background:linear-gradient(135deg,#fff3d8,#fbf5ea);border-color:#dfc18a}html[data-theme='light'] .reception-person-card{background:linear-gradient(150deg,#fff,#f8f2e8);border-color:#e3d0ac}html[data-theme='light'] .reception-permission-note,html[data-theme='light'] .pos-admin-order,html[data-theme='light'] .pos-discount-line{background:#faf7f1;border-color:#e6dbca;color:#655d52}html[data-theme='light'] .pos-admin-queue{background:linear-gradient(145deg,#fffaf0,#fff);border-color:#e3c995}
html[data-theme='light'] .admin-ranking-shell-v2{background:radial-gradient(circle at 50% -6%,rgba(199,154,71,.13),transparent 34%),linear-gradient(160deg,#fff,#f7f2e9 68%);border-color:#e4d4b8}html[data-theme='light'] .admin-rank-card-v2,html[data-theme='light'] .admin-rank-ladder-row-v2{background:linear-gradient(155deg,#fff,#f7f2ea);border-color:#e5d9c7;box-shadow:0 12px 28px rgba(65,49,29,.08)}html[data-theme='light'] .admin-rank-card-v2.leader{background:radial-gradient(circle at 50% 10%,rgba(199,154,71,.16),transparent 35%),linear-gradient(155deg,#fff8e8,#fff);border-color:#d9b979}html[data-theme='light'] .admin-rank-card-v2.second{background:linear-gradient(155deg,#f8f9fb,#fff)}html[data-theme='light'] .admin-rank-card-v2.third{background:linear-gradient(155deg,#fff7f1,#fff)}html[data-theme='light'] .admin-rank-badge-v2,html[data-theme='light'] .admin-rank-number-v2{background:#fff7e9;border-color:#e2cca1;color:#8e621e}html[data-theme='light'] .admin-rank-kpis-v2 span{background:#fbf7ef;border-color:#e9dfd0}html[data-theme='light'] .admin-rank-kpis-v2 b{color:#322b22}
html[data-theme='light'] .mojo-report-builder,html[data-theme='light'] .mojo-period-card{background:#fff;border-color:#e4dacb}html[data-theme='light'] .mojo-report-types button,html[data-theme='light'] .mojo-quick button{background:#faf7f1;border-color:#e3d8c8}html[data-theme='light'] .mojo-mode-tabs{background:#f5f0e8;border-color:#e0d4c3}
html[data-theme='light'] .pwa-update-banner{background:rgba(255,252,245,.98);border-color:#ddc18c;box-shadow:0 18px 50px rgba(68,48,21,.16)}html[data-theme='light'] .pwa-update-banner strong{color:#80571d}html[data-theme='light'] .pwa-update-banner small{color:#756b5d}html[data-theme='light'] .pwa-install-btn{background:linear-gradient(135deg,#fff7e8,#f2dfbd);color:#80571d;border-color:#dfc18b;box-shadow:0 12px 28px rgba(88,62,26,.14)}

/* Dark option stays elegant but softer than pure black */
html[data-theme='dark']{--bg:#0b0c0e;--bg2:#111216;--surface:#15171a;--surface2:#1b1d21;--surface3:#23262b;--line:#332d24;--text:#f6f1e7;--muted:#aaa296;--gold:#d4a853;--gold2:#f0d28c;--gold3:#8f672b;--shadow:0 24px 70px rgba(0,0,0,.42);--soft:0 10px 30px rgba(0,0,0,.24)}

.mojo-theme-switch{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:999px;background:var(--surface2);box-shadow:inset 0 1px rgba(255,255,255,.04)}.mojo-theme-switch button{width:34px;height:30px;border:0;border-radius:999px;background:transparent;color:var(--muted);cursor:pointer;font-size:15px;display:grid;place-items:center}.mojo-theme-switch button.active{background:linear-gradient(135deg,rgba(199,154,71,.22),rgba(199,154,71,.08));color:var(--gold2);box-shadow:inset 0 0 0 1px rgba(199,154,71,.18)}.login-theme-switch{position:absolute;top:15px;inset-inline-end:15px;z-index:3}
@media(max-width:520px){.mojo-theme-switch button{width:31px;height:28px}.top-actions .mojo-theme-switch{display:none}.login-theme-switch{top:10px;inset-inline-end:10px}}
