/* Tema escuro por ótica: não é ativado na landing page nem no SuperAdmin. */
body[data-theme="dark"]{--ink:#e7edf5;--muted:#a0aec0;--line:#2a384c;--bg:#0c1420;--white:#151f2d;--green:#65c69a;--green-dark:#45aa7e;--mint:#19382e;background:var(--bg);color:var(--ink);color-scheme:dark}
body[data-theme="dark"] .sidebar,body[data-theme="dark"] .topbar,body[data-theme="dark"] .panel,body[data-theme="dark"] .stat,body[data-theme="dark"] dialog,body[data-theme="dark"] .company{background:#151f2d;border-color:#2a384c;color:#e7edf5}
body[data-theme="dark"] .sidebar{box-shadow:12px 0 36px #0002}body[data-theme="dark"] .company-icon,body[data-theme="dark"] .stat-icon{background:#20342f;color:#83d8ad}
body[data-theme="dark"] .brand,body[data-theme="dark"] .company strong,body[data-theme="dark"] .panel h3,body[data-theme="dark"] .panel-heading h3,body[data-theme="dark"] td strong,body[data-theme="dark"] .checklist-item h4,body[data-theme="dark"] .dialog-header h2{color:#e7edf5}
body[data-theme="dark"] .main-shell,body[data-theme="dark"] main,body[data-theme="dark"] footer{background:#0c1420;color:#dce5ef}body[data-theme="dark"] footer{border-color:#2a384c}body[data-theme="dark"] footer span,body[data-theme="dark"] .muted,body[data-theme="dark"] .breadcrumb,body[data-theme="dark"] .breadcrumb strong,body[data-theme="dark"] .secure-label,body[data-theme="dark"] .sidebar-bottom,body[data-theme="dark"] .nav-item{color:#a0aec0}
body[data-theme="dark"] .nav-group-label,body[data-theme="dark"] .nav-label{color:#8191a5}body[data-theme="dark"] .nav-item:hover{background:#202d3c;color:#eef5fb}body[data-theme="dark"] .nav-item.active{background:linear-gradient(100deg,#18392f,#1c302d);color:#8be0b3;box-shadow:inset 3px 0 #65c69a}
body[data-theme="dark"] .sidebar-bottom,body[data-theme="dark"] .company{border-color:#2a384c}body[data-theme="dark"] .phase-dot{background:#65c69a}
body[data-theme="dark"] .welcome{background:linear-gradient(120deg,#152b2a,#1c2937);border-color:#29483e}body[data-theme="dark"] .welcome h2{color:#ecf8f1}body[data-theme="dark"] .welcome p,body[data-theme="dark"] .welcome .eyebrow{color:#a8c7b5}body[data-theme="dark"] .checklist-item{border-color:#283648}body[data-theme="dark"] .check-circle{background:#1d3b30;color:#91e0b4}
body[data-theme="dark"] .table-toolbar,body[data-theme="dark"] th{background:#192536;border-color:#2a384c;color:#9aaac0}body[data-theme="dark"] td{color:#bac6d5;border-color:#263449}body[data-theme="dark"] tbody tr:hover{background:#192536}
body[data-theme="dark"] input,body[data-theme="dark"] select,body[data-theme="dark"] textarea{background:#101a28;border-color:#34445a;color:#e7edf5}body[data-theme="dark"] input::placeholder,body[data-theme="dark"] textarea::placeholder{color:#78899f}body[data-theme="dark"] label,body[data-theme="dark"] legend{color:#bac6d5}body[data-theme="dark"] label small{color:#8fa0b5}
body[data-theme="dark"] .button.secondary,body[data-theme="dark"] .icon-button,body[data-theme="dark"] .row-button{background:#1c2939;border-color:#35465c;color:#dce5ef}body[data-theme="dark"] .button.secondary:hover,body[data-theme="dark"] .row-button:hover,body[data-theme="dark"] .icon-button:hover{background:#26364a}
body[data-theme="dark"] .note{background:#242c2a;color:#c2d4c8}body[data-theme="dark"] .empty{color:#9babbe}body[data-theme="dark"] .empty h3{color:#e2eaf3}body[data-theme="dark"] .loading{color:#a0aec0}body[data-theme="dark"] .roadmap article{background:#151f2d;border-color:#2a384c}body[data-theme="dark"] .roadmap h3{color:#e7edf5}body[data-theme="dark"] .roadmap p{color:#a0aec0}
body[data-theme="dark"] .badge{background:#263347;color:#c6d3e2}body[data-theme="dark"] .badge.active{background:#17382e;color:#83d6a8}body[data-theme="dark"] .badge.trial{background:#46391d;color:#f3d37d}body[data-theme="dark"] .badge.blocked,body[data-theme="dark"] .badge.suspended{background:#48292b;color:#ffb0aa}
body[data-theme="dark"] .form-grid,body[data-theme="dark"] .dialog-footer,body[data-theme="dark"] .dialog-header{border-color:#2a384c}body[data-theme="dark"] dialog::backdrop{background:#030811bd}body[data-theme="dark"] .form-error{background:#48292b;color:#ffc2bc}body[data-theme="dark"] .toast{background:#183c31;color:#eafff1}
body[data-theme="dark"] .kanban-column{background:#172233;border-color:#2b3a4f}body[data-theme="dark"] .kanban-column header h3{color:#e7edf5}body[data-theme="dark"] .kanban-count{background:#25344a;color:#dce5ef}body[data-theme="dark"] .lead-card{background:#1c2939;border-color:#34445a;color:#e7edf5}body[data-theme="dark"] .lead-card p,body[data-theme="dark"] .lead-card small{color:#a0aec0}
body[data-theme="dark"] .ticket-message{background:#1c2939;border-color:#34445a;color:#dce5ef}body[data-theme="dark"] .secure-label{color:#85d1a7}body[data-theme="dark"] .support-return{background:#1a392f;border-color:#315843;color:#9be2b8}body[data-theme="dark"] .support-return:hover{background:#214637}
body[data-theme="dark"] .stock-controls{color:#dce5ef}body[data-theme="dark"] details{color:#bac6d5}body[data-theme="dark"] hr{border-color:#2a384c}

/* PDV: identidade índigo com realces âmbar, separada da navegação verde. */
body[data-page="sales"]{--pos:#5146d8;--pos-dark:#3e35b5;--pos-soft:#f0efff;--pos-accent:#e9a23b}
body[data-page="sales"] .page-heading h1{color:var(--pos-dark)}body[data-page="sales"] .page-heading .eyebrow{color:var(--pos)}body[data-page="sales"] .stock-controls{padding:17px 19px;background:linear-gradient(110deg,#f0efff,#fffaf0);border:1px solid #e3e1ff;border-radius:15px;box-shadow:0 8px 26px #29218a0a}body[data-page="sales"] #commerce-new{background:linear-gradient(135deg,#6258e8,#4238bd);color:white;border:0;box-shadow:0 8px 18px #5146d833}body[data-page="sales"] #commerce-new:hover{background:linear-gradient(135deg,#554bd7,#332aa5);transform:translateY(-1px)}body[data-page="sales"] .panel{border-top:3px solid #6d63e8}body[data-page="sales"] tbody tr:hover{background:#f5f4ff}body[data-page="sales"] .row-button{border-color:#dcd9ff;color:#5146d8}body[data-page="sales"] .row-button:hover{background:#f0efff}body[data-page="sales"] #commerce-dialog{border:1px solid #dbd8ff;box-shadow:0 28px 90px #25206b30}body[data-page="sales"] #commerce-dialog .dialog-header{background:linear-gradient(110deg,#f0efff,#fff9ed);border-bottom-color:#e3e1ff}body[data-page="sales"] #commerce-dialog .dialog-header h2{color:#39329e}body[data-page="sales"] #commerce-dialog input:focus,body[data-page="sales"] #commerce-dialog select:focus{border-color:#756be9;box-shadow:0 0 0 3px #5146d81c}body[data-page="sales"] #document-total{display:block;padding:16px;border-radius:12px;background:#f0efff;color:#332ba1;font-size:20px}body[data-page="sales"] #product-search{border-color:#cbc7fa}body[data-page="sales"] #add-item,body[data-page="sales"] #add-payment{border-color:#d8d5ff;color:#4c42cc}
body[data-theme="dark"][data-page="sales"] .page-heading h1{color:#c6c1ff}body[data-theme="dark"][data-page="sales"] .page-heading .eyebrow{color:#a8a1ff}body[data-theme="dark"][data-page="sales"] .stock-controls{background:linear-gradient(110deg,#211f3c,#2d2924);border-color:#3b3766;box-shadow:0 8px 26px #0002}body[data-theme="dark"][data-page="sales"] .panel{border-top-color:#8178ff}body[data-theme="dark"][data-page="sales"] tbody tr:hover{background:#211f39}body[data-theme="dark"][data-page="sales"] .row-button{border-color:#48427d;color:#c4beff}body[data-theme="dark"][data-page="sales"] .row-button:hover{background:#2a2650}body[data-theme="dark"][data-page="sales"] #commerce-dialog{border-color:#49447e}body[data-theme="dark"][data-page="sales"] #commerce-dialog .dialog-header{background:linear-gradient(110deg,#252245,#342d23);border-color:#3a365f}body[data-theme="dark"][data-page="sales"] #commerce-dialog .dialog-header h2{color:#d2ceff}body[data-theme="dark"][data-page="sales"] #document-total{background:#28244d;color:#d5d0ff}body[data-theme="dark"][data-page="sales"] #product-search{border-color:#514b85}body[data-theme="dark"][data-page="sales"] #add-item,body[data-theme="dark"][data-page="sales"] #add-payment{border-color:#514b85;color:#c4beff}

.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:0 11px;border:1px solid var(--line);border-radius:9px;background:#f7f9f7;color:#52635b;font-size:11px;font-weight:650;white-space:nowrap}.theme-toggle:hover{background:#edf3ef}.theme-toggle:disabled{opacity:.6;cursor:wait}body[data-theme="dark"] .theme-toggle{background:#202d3d;border-color:#37485c;color:#e5edf6}body[data-theme="dark"] .theme-toggle:hover{background:#29394d}
@media(max-width:760px){.theme-toggle{min-height:33px;padding:0 8px;font-size:10px}.theme-toggle span{display:none}body[data-page="sales"] .stock-controls{padding:12px}}
body[data-theme="dark"] .ticket-thread{background:#101a28}body[data-theme="dark"] .ticket-message.platform{background:#1a392f}body[data-theme="dark"] .update-installer h3{color:#9cc9ff}body[data-theme="dark"] .update-package-form label{color:#c5d2e1}body[data-theme="dark"] .update-package-form input{background:#101a28}body[data-theme="dark"] .report-bar>div{background:#263449}body[data-theme="dark"] .brand-previews form,body[data-theme="dark"] .brand-form-grid label{background:#151f2d;border-color:#2a384c}body[data-theme="dark"] .brand-previews img{background:#25344a}body[data-theme="dark"] .brand-preview-content b{color:#e7edf5}body[data-theme="dark"] .brand-live-preview{background:#101a28;border-color:#2a384c}body[data-theme="dark"] .brand-preview-sidebar{background:#151f2d;color:#c1cfdf}body[data-theme="dark"] .brand-preview-sidebar strong{color:#e7edf5}body[data-theme="dark"] .brand-preview-sidebar span:first-of-type{background:#20382f;color:#91dfb3}body[data-theme="dark"] .brand-status{background:#18382e;border-color:#315943;color:#9ce0b6}
body[data-page="sales"] #commerce-dialog .button.primary{background:linear-gradient(135deg,#6258e8,#4238bd)!important;color:#fff;border:0;box-shadow:0 7px 16px #5146d833}body[data-page="sales"] #commerce-dialog .button.primary:hover{background:linear-gradient(135deg,#554bd7,#332aa5)!important}body[data-theme="dark"][data-page="sales"] #commerce-dialog .button.primary{background:linear-gradient(135deg,#766dff,#5146d8)!important}
