/* Device theme: all selectors are scoped so the light theme is unchanged. */
:root[data-theme="dark"]{color-scheme:dark;--paper:#111619;--card:#1b2227;--ink:#edf2f3;--muted:#9ba9af;--line:#344047;--green:#dce7e9;--sidebar:#151b1f}
:root[data-theme="dark"] body,:root[data-theme="dark"] main,:root[data-theme="dark"] .shell{background:#111619;color:#edf2f3}
:root[data-theme="dark"] .topbar{background:#192025;border-color:#344047}
:root[data-theme="dark"] .sidebar{background:#151b1f;border-right:1px solid #303a40}
:root[data-theme="dark"] .sidebar .brand{background:#192025!important}
:root[data-theme="dark"] .brand img{filter:brightness(0) invert(1)}
:root[data-theme="dark"] .breadcrumb,:root[data-theme="dark"] .breadcrumb span:last-child,:root[data-theme="dark"] .profile small,:root[data-theme="dark"] .sidebar-label,:root[data-theme="dark"] .sidebar-foot,:root[data-theme="dark"] .nav a,:root[data-theme="dark"] .search-trigger,:root[data-theme="dark"] .icon-btn,:root[data-theme="dark"] .footer,:root[data-theme="dark"] .subhead,:root[data-theme="dark"] .muted,:root[data-theme="dark"] .online{color:#a8b9bf}
:root[data-theme="dark"] .nav a.active{background:#0f4c5c;color:#fff}
:root[data-theme="dark"] .nav a:hover{background:#273138}
:root[data-theme="dark"] .nav a[href="/control"]{color:#ff9a94}
:root[data-theme="dark"] h1,:root[data-theme="dark"] h2,:root[data-theme="dark"] h3,:root[data-theme="dark"] .profile strong,:root[data-theme="dark"] .plan-contract-col,:root[data-theme="dark"] .mobile-contract,:root[data-theme="dark"] .employee small{color:#e7eef0}
:root[data-theme="dark"] .btn,:root[data-theme="dark"] input,:root[data-theme="dark"] select,:root[data-theme="dark"] textarea,:root[data-theme="dark"] .input-search,:root[data-theme="dark"] .search-trigger{background:#20292f;border-color:#3a4850;color:#e5edef}
:root[data-theme="dark"] .btn.primary{background:#0f4c5c;border-color:#236677;color:#fff}
:root[data-theme="dark"] .btn.control-access{background:#9e413f!important;border-color:#9e413f!important;color:#fff!important}
:root[data-theme="dark"] .btn.vacation-access{background:#7FE0D4!important;color:#17251a!important}
:root[data-theme="dark"] .btn.published-button{background:#27363d;color:#e4eef0}
:root[data-theme="dark"] .planning-switch{background:#202a30;border-color:#3a4a53}
:root[data-theme="dark"] .planning-switch button{color:#a6b7bf}
:root[data-theme="dark"] .planning-switch button.active{background:#0f4c5c;color:#fff}
:root[data-theme="dark"] .planning-active-filter,:root[data-theme="dark"] .planning-jump,:root[data-theme="dark"] .week-picker,:root[data-theme="dark"] .week-picker strong,:root[data-theme="dark"] .plan-person-col,:root[data-theme="dark"] .plan-person-col small,:root[data-theme="dark"] .employee .sub{color:#c0cdd2}
:root[data-theme="dark"] .schedule.schedule-enhanced tbody>tr:nth-child(odd)>td{background:#20282e}
:root[data-theme="dark"] .schedule.schedule-enhanced tbody>tr:nth-child(even)>td{background:#182025}
:root[data-theme="dark"] .schedule.schedule-enhanced thead th{background:#2c353b!important;color:#fff!important}
:root[data-theme="dark"] .table-wrap{border-color:#35434a}
:root[data-theme="dark"] .schedule td{border-bottom-color:#344047}
:root[data-theme="dark"] .schedule .shift.off{background:#2a3339!important;color:#b5c5cc}
:root[data-theme="dark"] .reviewed-shift,:root[data-theme="dark"] .month-reviewed,:root[data-theme="dark"] .daily-reviewed{background:#2e383f;color:#fff;border-color:#72818a}
:root[data-theme="dark"] .reviewed-shift .automatic-pay-tag{color:#fff!important}
:root[data-theme="dark"] .plan-person-summary small,:root[data-theme="dark"] .plan-person-col .employee small,:root[data-theme="dark"] .plan-contract-col small{color:#aabcc4}
:root[data-theme="dark"] .plan-person-summary .reviewed-delta.positive,:root[data-theme="dark"] .plan-person-summary>strong.positive{color:#ff6b6b}
:root[data-theme="dark"] .plan-person-summary .reviewed-delta.negative,:root[data-theme="dark"] .plan-person-summary>strong.negative{color:#309050}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .stat{background:#1c252b;border-color:#34444d}
:root[data-theme="dark"] .card p,:root[data-theme="dark"] .stat-label,:root[data-theme="dark"] .stat small,:root[data-theme="dark"] .card small,:root[data-theme="dark"] .page-heading p{color:#aabdc5}
:root[data-theme="dark"] .card-header{border-color:#344047}
:root[data-theme="dark"] .stat-number{color:#fff}
:root[data-theme="dark"] .notice{background:#203039;border-color:#38515e;color:#cadce3}
:root[data-theme="dark"] .plan-person-head .input-search,:root[data-theme="dark"] .plan-layout-switch{background:#36424a}
:root[data-theme="dark"] .plan-layout-switch button{color:#cbd6db}
:root[data-theme="dark"] .plan-layout-switch button[aria-pressed="true"]{background:#fff;color:#20282d}
:root[data-theme="dark"] .brand-workspace{color:#e7eef0}
:root[data-theme="dark"] .sidebar .brand{background:#192025!important}
:root[data-theme="dark"]{--lime:#25343c}
:root[data-theme="dark"] .nav a.active{background:#0f4c5c!important;color:#fff!important}
:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .control-note,:root[data-theme="dark"] .pay-times input,:root[data-theme="dark"] .control-table .break-input{background:#20292f;color:#e5edef;border-color:#3a4850}
:root[data-theme="dark"] label,:root[data-theme="dark"] .subhead,:root[data-theme="dark"] .contract-help,:root[data-theme="dark"] .permission-list>small,:root[data-theme="dark"] .employee-details-group>small,:root[data-theme="dark"] .permission-option small,:root[data-theme="dark"] .form-error:empty{color:#b1c0c7}
:root[data-theme="dark"] .permission-group{border-color:#344047}
:root[data-theme="dark"] .permission-children{border-color:#44555e}
:root[data-theme="dark"] .modal,:root[data-theme="dark"] .login-card,:root[data-theme="dark"] .setup-card,:root[data-theme="dark"] .terminal-feedback{background:#1b242a;color:#edf2f3;border-color:#344047}
:root[data-theme="dark"] .modal p,:root[data-theme="dark"] .modal dt,:root[data-theme="dark"] .modal small,:root[data-theme="dark"] .login-card p{color:#bdcbd1}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#91a1aa;opacity:1}
:root[data-theme="dark"] input[type=checkbox]{accent-color:#237e91}
:root[data-theme="dark"] table{background:#1b242a}
:root[data-theme="dark"] thead th{background:#27323a;color:#e1ebef}
:root[data-theme="dark"] td,:root[data-theme="dark"] th{border-color:#344047}
:root[data-theme="dark"] .control-table th:nth-last-child(2),:root[data-theme="dark"] .control-table td:nth-last-child(2),:root[data-theme="dark"] .control-table th:last-child,:root[data-theme="dark"] .control-table td:last-child,:root[data-theme="dark"] .daily-schedule .daily-person,:root[data-theme="dark"] .daily-total{background:#1c252b}
:root[data-theme="dark"] .control-confirmed{background:#213139}
:root[data-theme="dark"] .control-confirmed .pay-times input{background:#26363d}
:root[data-theme="dark"] .control-day{background:#202a30;border-color:#35464e;color:#aebfc8}
:root[data-theme="dark"] .control-day strong,:root[data-theme="dark"] .control-day small{color:#c9d8de}
:root[data-theme="dark"] .control-day.active{background:#0f4c5c;border-color:#0f4c5c}
:root[data-theme="dark"] .control-day.active strong,:root[data-theme="dark"] .control-day.active small{color:#fff}
:root[data-theme="dark"] .month-shift.off,:root[data-theme="dark"] .slot-cell.unstaffed,:root[data-theme="dark"] .forecast-box{background:#2a3339;color:#b5c5cc}
:root[data-theme="dark"] .month-shift.vacation,:root[data-theme="dark"] .shift.off.vacation{background:#3a3428!important;color:#edd9a6}
:root[data-theme="dark"] .month-shift.permission,:root[data-theme="dark"] .shift.off.permission{background:#332c42!important;color:#d6c5f3}
:root[data-theme="dark"] .reviewed-shift .automatic-pay-tag,:root[data-theme="dark"] .month-reviewed .automatic-pay-tag,:root[data-theme="dark"] .daily-reviewed .automatic-pay-tag{color:#fff!important}
:root[data-theme="dark"] .reviewed-shift .confirmed-time-lock,:root[data-theme="dark"] .month-reviewed .confirmed-time-lock,:root[data-theme="dark"] .daily-reviewed .confirmed-time-lock{color:#c3d0d4}
:root[data-theme="dark"] .control-table .positive,:root[data-theme="dark"] .reviewed-delta.positive,:root[data-theme="dark"] .payroll-amount.positive,:root[data-theme="dark"] .schedule-enhanced .plan-person-summary>strong.positive{color:#ff6b6b}
:root[data-theme="dark"] .control-table .negative,:root[data-theme="dark"] .reviewed-delta.negative,:root[data-theme="dark"] .payroll-amount.negative,:root[data-theme="dark"] .payroll-table .payroll-amount.negative,:root[data-theme="dark"] .schedule-enhanced .plan-person-summary>strong.negative{color:#309050}
:root[data-theme="dark"] .notice.orange,:root[data-theme="dark"] .access-alert,:root[data-theme="dark"] .missing-exit-notice{background:#3a3020;border-color:#8c7346;color:#f0d59f}
:root[data-theme="dark"] .tag{background:#2a3a43;color:#d2e5ec}
:root[data-theme="dark"] .tag.orange{background:#45351e;color:#f0d59f}
:root[data-theme="dark"] .tag.red{background:#472d2b;color:#ffb7ad}
:root[data-theme="dark"] .test-cleanup-toggle,:root[data-theme="dark"] .test-punch-delete{background:#382624!important;border-color:#b2645f!important;color:#ffb3ac!important}
:root[data-theme="dark"] .channels,:root[data-theme="dark"] .chat-main,:root[data-theme="dark"] .chat-compose,:root[data-theme="dark"] .employee-chat{background:#1b242a;border-color:#344047}
:root[data-theme="dark"] .channel{color:#c0cdd2}
:root[data-theme="dark"] .channel.active{background:#263943;color:#fff}
:root[data-theme="dark"] .bubble,:root[data-theme="dark"] .employee-message{background:#29353d;color:#e8eff2}
:root[data-theme="dark"] .message.own .bubble,:root[data-theme="dark"] .employee-message.own{background:#173f4d;color:#fff}
:root[data-theme="dark"] .attendance-alert-message .bubble,:root[data-theme="dark"] .employee-message.attendance-alert-message{background:#3a3020!important;color:#f1ddb9;border-color:#8c7346!important}
:root[data-theme="dark"] .touch-terminal,:root[data-theme="dark"] .kiosk-screen,:root[data-theme="dark"] .kiosk-main{background:#111619;color:#e7eef0}
:root[data-theme="dark"] .terminal-key-row>button{background:#27343c;color:#fff}
:root[data-theme="dark"] .terminal-key-row>button:hover{background:#354750}
:root[data-theme="dark"] .terminal-feedback{background:#1b242a}
:root[data-theme="dark"] .terminal-restaurant,:root[data-theme="dark"] .kiosk-clock>div,:root[data-theme="dark"] .kiosk-clock p,:root[data-theme="dark"] .terminal-identify>label{color:#d5e3e8}
:root[data-theme="dark"] .terminal-mode{background:#253139}
:root[data-theme="dark"] .terminal-mode button{color:#bccbd2}
:root[data-theme="dark"] .terminal-mode button[aria-pressed="true"],:root[data-theme="dark"] .terminal-continue{background:#0f4c5c;color:#fff}
:root[data-theme="dark"] .terminal-code{background:transparent;color:#fff;border-color:#93a6af}
:root[data-theme="dark"] .search-trigger kbd{background:#34454f;color:#c4d3da}
:root[data-theme="dark"] #toast{background:#293a43;color:#fff}

:root[data-theme="dark"] .celebration-card{background:linear-gradient(135deg,#342d27,#20292f);border-color:#685b43}
:root[data-theme="dark"] .celebration-card.anniversaries-card{background:linear-gradient(135deg,#20372f,#20292f);border-color:#3c6253}
:root[data-theme="dark"] .celebration-card .birthday-item p{color:#e7eef0}
:root[data-theme="dark"] .celebration-card .birthday-date{color:#fff;background:#0f4c5c}

:root[data-theme="dark"] .btn.admin-delete{color:#ff9b94;border-color:#8b5350;background:transparent}
:root[data-theme="dark"] .btn.admin-delete:hover{background:#402b2a;border-color:#ff9b94}

:root[data-theme="dark"] .vacation-blocked-note{background:#3a3020;border-color:#8c7346;color:#f0d59f}

:root[data-theme="dark"] .tabs button[data-tab="Pedidos"],:root[data-theme="dark"] .tabs button[data-tab="Pedidos"].active{background:#9e413f;color:#fff;border-color:#9e413f}
