:root{
    --theme-bg:#f5f7f6;--theme-surface:#fff;--theme-surface-2:#f8faf9;--theme-surface-3:#eef3f0;
    --theme-text:#3b3b3b;--theme-muted:#6f6240;--theme-border:#d8d8d8;--theme-border-strong:#c1c1c1;
    --theme-accent:#343434;--theme-accent-text:#fff;--theme-hover:#edf4f0;--theme-shadow:0 10px 28px rgba(52,52,52,.08);
    --theme-danger:#963f3f;--theme-danger-bg:#fff4f4;--theme-success:#645329;--theme-success-bg:#f1f1f1;
    --menu-active:#515151;--menu-active-text:#fff;--menu-pdv:#dfba37;--menu-pdv-text:#1e1e1e;
    --menu-text:#545454;--menu-label:#6f6240;--menu-hover:#e3efe9;--menu-icon:#756642;
    --button-border:#b0b0b0;--button-border-hover:#515151;--button-primary-border:#262626;--menu-active-border:#e8e8e8;--menu-pdv-border:#806816;--button-shadow:0 2px 5px rgba(52,52,52,.08);
    color-scheme:light;
}
html[data-theme=dark]{
    --theme-bg:#131313;--theme-surface:#1e1e1e;--theme-surface-2:#262626;--theme-surface-3:#2f2f2f;
    --theme-text:#edf6f1;--theme-muted:#b6b6b6;--theme-border:#434343;--theme-border-strong:#5a5a5a;
    --theme-accent:#cfb678;--theme-accent-text:#171717;--theme-hover:#303030;--theme-shadow:0 12px 32px rgba(0,0,0,.3);
    --theme-danger:#f09a9a;--theme-danger-bg:#3b2222;--theme-success:#d3ba7a;--theme-success-bg:#2d2d2d;
    --menu-active:#cfb678;--menu-active-text:#1c1c1c;--menu-pdv:#dfba37;--menu-pdv-text:#1e1e1e;
    --menu-text:#c8c8c8;--menu-label:#a5a5a5;--menu-hover:#343434;--menu-icon:#bababa;
    --button-border:#756744;--button-border-hover:#cfb678;--button-primary-border:#e0e0e0;--menu-active-border:#535353;--menu-pdv-border:#8d7217;--button-shadow:0 2px 7px rgba(0,0,0,.22);
    color-scheme:dark;
}
html,body{background:var(--theme-bg)!important;color:var(--theme-text)!important}
body,.admin-shell,.admin-content,.pdv-app,.pdv-page,.pdv-workspace,.production-page,.module-page{color:var(--theme-text)}
.admin-shell,.admin-content,.pdv-page,.pdv-workspace,.production-page{background:var(--theme-bg)!important}
.admin-top,.sidebar,.pdv-header,.pdv-tools,.sale-panel,.catalog,.module-card,.data-panel,.panel,.pdv-data-card,
.pdv-operation-form,.operation-info,.closing-report,.order-table,.production-ticket,.equipment-grid article,
.printer-settings,.print-queue,.login,.history-shell,.history-summary,.history-list,.pdv-metrics article,
.production-column,.module-summary article,.stats article{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
.module-dialog,.pdv-dialog,.pdv-action-dialog,.order-dialog,dialog{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
dialog::backdrop{background:rgba(16,16,16,.68)!important;backdrop-filter:blur(3px)}
input,select,textarea{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important;
}
input::placeholder,textarea::placeholder{color:var(--theme-muted)!important;opacity:1}
input:focus,select:focus,textarea:focus{outline:2px solid color-mix(in srgb,var(--theme-accent) 35%,transparent);border-color:var(--theme-accent)!important}
input:disabled,select:disabled,textarea:disabled,button:disabled{background:var(--theme-surface-3)!important;color:var(--theme-muted)!important;opacity:.72}
table,thead,tbody,tr,th,td{border-color:var(--theme-border)!important}
th{background:var(--theme-surface-2)!important;color:var(--theme-muted)!important}
td{background:var(--theme-surface)!important;color:var(--theme-text)!important}
tbody tr:hover td{background:var(--theme-hover)!important}
p,small,label,.menu-label,.page-kicker,.dialog-kicker,.eyebrow{color:var(--theme-muted)}
h1,h2,h3,h4,strong,.product-name,.product-price,.sale-total,.payment-total{color:var(--theme-text)}
a{color:inherit}.sidebar{box-shadow:var(--theme-shadow)}.sidebar a{color:var(--theme-muted)}.sidebar a:hover{background:var(--theme-hover);color:var(--theme-text)}
.sidebar nav .menu-link{position:relative}
.sidebar nav .menu-link.active{background:var(--menu-active)!important;color:var(--menu-active-text)!important;border-color:var(--menu-active)!important;box-shadow:0 5px 14px rgba(37,37,37,.18)}
.sidebar nav .menu-link.active::before{content:"";position:absolute;left:4px;top:9px;bottom:9px;width:4px;border-radius:4px;background:currentColor}
.sidebar nav .menu-link.active .menu-icon{border-color:currentColor!important;color:currentColor!important}
.sidebar nav .pdv-link{background:var(--menu-pdv)!important;color:var(--menu-pdv-text)!important;border-color:var(--menu-pdv)!important}
.sidebar nav .pdv-link .menu-icon{border-color:color-mix(in srgb,var(--menu-pdv-text) 55%,transparent)!important;color:var(--menu-pdv-text)!important}
.sidebar nav .pdv-link.active{box-shadow:0 0 0 3px var(--theme-surface),0 0 0 5px var(--menu-pdv)!important;transform:translateX(2px)}
.sidebar nav .pdv-link.active::before{background:var(--menu-pdv-text)}
.sidebar footer,.sidebar header,.admin-top,.pdv-header,.pdv-tools,.customer-strip,.sale-panel>header,.sale-summary{border-color:var(--theme-border)!important}
.product-card,.cart-row,.payment-line,.client-results article,.suspended-list article,.order-item-row,.history-row{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
.product-card:hover{background:var(--theme-hover)!important;border-color:var(--theme-accent)!important;box-shadow:var(--theme-shadow)}
.product-card:disabled{background:var(--theme-surface-3)!important}
.product-image,.empty-cart,.search-box,.sale-detail-summary p,.sale-detail-lines p,.sale-detail-totals p,
.closing-difference,.closing-expected,.expected,.operation-icon,.equipment-icon,.production-summary,.terminal-token,
.ticket-meta span,.ticket-note,.client-history,.history-summary article{
    background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
button:not(.receive-button):not(.confirm):not(.confirm-payment),.secondary-action,.top-actions a,.pdv-header-actions a,.pdv-header-actions>button{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important;
}
button:hover:not(:disabled),.secondary-action:hover,.top-actions a:hover{filter:brightness(.97);border-color:var(--theme-accent)!important}
html[data-theme=dark] button:hover:not(:disabled),html[data-theme=dark] .secondary-action:hover{filter:brightness(1.12)}
.button,.primary-action,.confirm,.confirm-payment,.receive-button,.order-heading>button,
.pdv-operation-form>button,.ticket-actions button{
    background:var(--theme-accent)!important;color:var(--theme-accent-text)!important;border-color:var(--theme-accent)!important;
}
.danger,.danger-action,.stock-alert{color:var(--theme-danger)!important}.flash.error,.toast.error,.detail-error{background:var(--theme-danger-bg)!important;color:var(--theme-danger)!important}
.flash.success,.toast.success,.pdv-flash.success{background:var(--theme-success-bg)!important;color:var(--theme-success)!important}
.status,.pdv-status,.equipment-status.connected{background:var(--theme-success-bg)!important;color:var(--theme-success)!important}
.cancelled,.equipment-status:not(.connected){background:var(--theme-danger-bg)!important;color:var(--theme-danger)!important}
.sale-detail-totals .total{background:var(--theme-accent)!important;color:var(--theme-accent-text)!important}
.auth-body{background:var(--theme-bg)!important}.auth-theme{position:fixed;top:18px;right:18px;z-index:20}
.theme-toggle{padding:0!important;border:0!important;background:transparent!important;color:inherit!important;line-height:1}
.theme-track{position:relative;width:56px;height:30px;display:flex;align-items:center;justify-content:space-around;border:1px solid var(--theme-border-strong);border-radius:20px;background:var(--theme-surface-3);overflow:hidden;box-shadow:inset 0 1px 3px rgba(0,0,0,.08)}
.theme-sun,.theme-moon{z-index:1;font-size:13px;transition:opacity .3s,transform .35s}.theme-thumb{position:absolute;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.25);transition:transform .35s cubic-bezier(.34,1.56,.64,1),background .3s}
html[data-theme=dark] .theme-thumb{transform:translateX(26px);background:#545454}html[data-theme=dark] .theme-sun{opacity:.35;transform:rotate(-90deg)}html[data-theme=light] .theme-moon{opacity:.35;transform:rotate(90deg)}
html[data-theme=dark] img{filter:brightness(.9)}html[data-theme=light] img{filter:none}
*{scrollbar-color:var(--theme-border-strong) var(--theme-surface-2)}
@media(prefers-reduced-motion:reduce){.theme-thumb,.theme-sun,.theme-moon{transition:none}}

/* Cobertura final dos componentes: estes seletores ficam depois dos estilos
   específicos para que nenhuma página volte a introduzir cores fixas. */
.pdv-tools>a,.pdv-header-actions a,.pdv-header-actions button,
.sale-panel>header button,.quantity button,.dialog-actions button,
.suspended-list button,.client-results button,.dialog-content>button,
.history-shell>header button,.history-row button,.pdv-data-card td button,
.pdv-action-dialog button,.order-dialog button,.order-table td button,
.equipment-grid a,.print-queue>header>a{
    background:var(--theme-surface)!important;
    color:var(--theme-text)!important;
    border-color:var(--theme-border-strong)!important;
}
.pdv-tools>a:hover,.pdv-header-actions a:hover,.equipment-grid a:hover{
    background:var(--theme-hover)!important;
}
.pdv-tools>a.active,.pdv-page-heading>a{
    background:var(--theme-accent)!important;
    color:var(--theme-accent-text)!important;
    border-color:var(--theme-accent)!important;
}
.pdv-tools .tool-icon,.pdv-tools kbd,.pdv-header-actions kbd,.search-box kbd{
    background:var(--theme-surface-3)!important;
    color:var(--theme-muted)!important;
    border-color:var(--theme-border)!important;
}
.pdv-tools>a.active .tool-icon,.pdv-tools>a.active kbd,.pdv-page-heading kbd{
    background:color-mix(in srgb,var(--theme-accent-text) 14%,transparent)!important;
    color:var(--theme-accent-text)!important;
    border-color:color-mix(in srgb,var(--theme-accent-text) 30%,transparent)!important;
}
.search-box{background:var(--theme-surface)!important;border-color:var(--theme-border)!important}
.search-box input{background:transparent!important;border-color:transparent!important;outline:0!important}
.customer-strip{background:var(--theme-surface-2)!important;border-color:var(--theme-border)!important}
.customer-strip>button,.customer-strip>button:first-child,.customer-strip>button:last-child,
.item-discount,.sale-summary #adjustment-button,.payment-line>button{
    background:transparent!important;border-color:transparent!important;
}
.customer-strip>button:first-child,.item-discount,.sale-summary #adjustment-button{color:var(--theme-text)!important}
.cart-items,.empty-cart{background:var(--theme-surface)!important;color:var(--theme-muted)!important}
.empty-cart>span{background:var(--theme-surface-3)!important;color:var(--theme-muted)!important}
.empty-cart p{color:var(--theme-text)!important}
.sale-summary{background:var(--theme-surface-2)!important;border-color:var(--theme-border)!important}
.sale-summary p,.sale-summary span,.cart-row small,.customer-strip small{color:var(--theme-muted)!important}
.sale-summary .sale-total{color:var(--theme-text)!important;border-color:var(--theme-border)!important}
.quantity button:hover{background:var(--theme-hover)!important}
.payment-line,.closing-grid,.history-summary,.client-history{
    background:var(--theme-surface-2)!important;border-color:var(--theme-border)!important;
}
.payment-option,.sale-details,.quick-client,.person-type label{
    background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
.payment-methods button{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important}
.payment-methods button.active{background:var(--theme-accent)!important;color:var(--theme-accent-text)!important;border-color:var(--theme-accent)!important}
.pix-qrcode{background:#fff!important}.pix-qrcode span{color:var(--theme-danger)!important}
.add-payment{background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important}
.closing-grid p,.history-shell>header,.history-row,.quick-client{border-color:var(--theme-border)!important}

.pdv-page,.module-page,.production-page{background:var(--theme-bg)!important;color:var(--theme-text)!important}
.pdv-data-card>header,.data-panel>header,.module-dialog>form>header,.module-dialog footer,
.production-column>header,.production-items,.production-items article,.order-items{
    border-color:var(--theme-border)!important;
}
.pdv-operation-form input,.pdv-operation-form textarea,.order-dialog input,
.order-dialog select,.order-dialog textarea,.production-items select{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important;
}
.terminal-token{background:var(--theme-surface-2)!important;color:var(--theme-text)!important}
.terminal-token code{background:var(--theme-accent)!important;color:var(--theme-accent-text)!important}
.operation-icon.danger{background:var(--theme-danger-bg)!important;color:var(--theme-danger)!important}
.operation-icon.success{background:var(--theme-success-bg)!important;color:var(--theme-success)!important}
.pdv-action-dialog button.danger,.order-dialog button.danger,.order-actions button.danger{
    background:var(--theme-danger-bg)!important;color:var(--theme-danger)!important;border-color:var(--theme-danger)!important;
}
.order-dialog button.confirm{background:var(--theme-accent)!important;color:var(--theme-accent-text)!important;border-color:var(--theme-accent)!important}

.production-summary article,.production-column,.production-ticket{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
.production-column>header small,.ticket-meta span,.ticket-note{
    background:var(--theme-surface-3)!important;color:var(--theme-text)!important;
}
.production-items select{background:var(--theme-surface-2)!important}
.data-panel [type=search],.form-grid input,.form-grid select,.form-grid textarea,
.panel input,.panel select,#search,.login input{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important;
}
.form-grid label>span:first-child{color:var(--theme-muted)!important}
.form-section legend{color:var(--theme-accent)!important;border-color:var(--theme-border)!important}
.form-grid label>span:first-child .required-mark{color:var(--theme-accent)!important}
.form-grid label small{color:var(--theme-muted)!important}
.module-dialog::backdrop,.order-dialog::backdrop,.pdv-dialog::backdrop,.pdv-action-dialog::backdrop{
    background:rgba(13,13,13,.72)!important;
}
.sidebar>footer{background:var(--theme-surface-2)!important}
.sidebar nav .menu-cash-section{border-color:var(--theme-border)!important}
.menu-icon{border-color:var(--theme-border-strong)!important;color:var(--theme-muted)!important}
.user-avatar{background:var(--theme-surface-3)!important;color:var(--theme-text)!important}
.pdv-brand small,.operator small,.cash-status small,.catalog-heading small,.catalog-heading>span,
.history-empty,.pdv-empty,.sale-detail-content header span,.sale-detail-summary span,
.sale-detail-lines small{color:var(--theme-muted)!important}
.cash-status.open>span{background:var(--theme-success)!important;box-shadow:0 0 0 5px var(--theme-success-bg)!important}
.cash-status.closed>span{background:var(--theme-muted)!important;box-shadow:none!important}
.movement-type{background:var(--theme-success-bg)!important;color:var(--theme-success)!important}
.movement-type.saida{background:var(--theme-danger-bg)!important;color:var(--theme-danger)!important}
.row-actions button,.table-actions button,.pdv-data-card td button.secondary{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important;
}
.sidebar.open{box-shadow:0 0 40px rgba(0,0,0,.35)}

/* Bordas permanentes para todas as ações interativas. */
button,
.button,.primary-action,.secondary-action,
.top-actions>a,.pdv-header-actions>a,.pdv-tools>a,
.pdv-page-heading>a,.equipment-grid a,.print-queue>header>a,
.sidebar nav .menu-link{
    border:1px solid var(--button-border)!important;
    border-radius:8px;
    box-shadow:var(--button-shadow);
}
button:hover:not(:disabled),
.button:hover,.primary-action:hover,.secondary-action:hover,
.top-actions>a:hover,.pdv-header-actions>a:hover,.pdv-tools>a:hover,
.pdv-page-heading>a:hover,.equipment-grid a:hover,.print-queue>header>a:hover,
.sidebar nav .menu-link:hover{
    border-color:var(--button-border-hover)!important;
}
button:focus-visible,
.button:focus-visible,.primary-action:focus-visible,.secondary-action:focus-visible,
.top-actions>a:focus-visible,.pdv-header-actions>a:focus-visible,.pdv-tools>a:focus-visible,
.pdv-page-heading>a:focus-visible,.equipment-grid a:focus-visible,.print-queue>header>a:focus-visible,
.sidebar nav .menu-link:focus-visible{
    outline:3px solid color-mix(in srgb,var(--button-border-hover) 36%,transparent)!important;
    outline-offset:2px;
}
.button,.primary-action,.confirm,.confirm-payment,.receive-button,.order-heading>button,
.pdv-operation-form>button,.ticket-actions button,.pdv-page-heading>a{
    border-color:var(--button-primary-border)!important;
}
.danger,.danger-action,.pdv-action-dialog button.danger,.order-dialog button.danger,.order-actions button.danger{
    border-color:var(--theme-danger)!important;
}
.sidebar nav .menu-link{border-color:var(--theme-border-strong)!important}
.sidebar nav .menu-link.active{border-color:var(--menu-active-border)!important}
.sidebar nav .pdv-link{border-color:var(--menu-pdv-border)!important}
button:disabled,.button[aria-disabled=true]{border-color:var(--theme-border)!important;box-shadow:none}
.theme-toggle{border:0!important;box-shadow:none!important;border-radius:20px}
.theme-toggle .theme-track{border:1px solid var(--button-border)!important}

/* Painel lateral: contraste próprio, sem depender das cores antigas do shell. */
.sidebar .brand>span,.sidebar>footer>div>span{color:var(--theme-text)!important}
.sidebar .brand small,.sidebar>footer small{color:var(--menu-label)!important}
.sidebar nav .menu-label{color:var(--menu-label)!important}
.sidebar nav .menu-link{color:var(--menu-text)!important;background:var(--theme-surface)!important}
.sidebar nav .menu-link .menu-icon{color:var(--menu-icon)!important;border-color:var(--button-border)!important}
.sidebar nav .menu-link:hover{
    color:var(--theme-text)!important;
    background:var(--menu-hover)!important;
    border-color:var(--button-border-hover)!important;
}
.sidebar nav .menu-link:hover .menu-icon{color:var(--theme-text)!important;border-color:var(--button-border-hover)!important}
.sidebar nav .menu-link.active{color:var(--menu-active-text)!important;background:var(--menu-active)!important}
.sidebar nav .menu-link.active .menu-icon{color:var(--menu-active-text)!important;border-color:var(--menu-active-border)!important}
.sidebar nav .pdv-link{color:var(--menu-pdv-text)!important;background:var(--menu-pdv)!important}
.sidebar nav .pdv-link .menu-icon{color:var(--menu-pdv-text)!important;border-color:var(--menu-pdv-border)!important}

/* Custos e precificação. */
.costing-tabs,.component-builder,.pricing-fees,.pricing-result{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border)!important;
}
.costing-tabs a{color:var(--theme-muted)!important;border-color:var(--theme-border-strong)!important}
.costing-tabs a.active,.pricing-types input:checked+span{
    background:var(--theme-accent)!important;color:var(--theme-accent-text)!important;border-color:var(--theme-accent)!important;
}
.pricing-types span,.pricing-result p{
    background:var(--theme-surface-2)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important;
}
.component-row select,.component-row input{
    background:var(--theme-surface)!important;color:var(--theme-text)!important;border-color:var(--theme-border-strong)!important;
}

/* Hierarquia somente por tamanho e cor: nenhum elemento usa negrito. */
html,body,button,input,select,textarea,
h1,h2,h3,h4,h5,h6,p,span,small,label,legend,
strong,b,th,td,a,code,kbd{
    font-weight:400!important;
    font-synthesis:none;
}
html[data-theme=light] body,
html[data-theme=light] h1,html[data-theme=light] h2,html[data-theme=light] h3,
html[data-theme=light] h4,html[data-theme=light] strong,
html[data-theme=light] td,html[data-theme=light] label{
    color:var(--theme-text)!important;
}
html[data-theme=light] p,html[data-theme=light] small,
html[data-theme=light] .menu-label,html[data-theme=light] .page-kicker,
html[data-theme=light] .dialog-kicker,html[data-theme=light] .eyebrow,
html[data-theme=light] th{
    color:var(--theme-muted)!important;
}

/* Tema Rhavi premium: grafite + amarelo. Mantém a mesma estrutura do sistema. */
:root{
    --theme-bg:#f6f4ee;
    --theme-surface:#ffffff;
    --theme-surface-2:#fbfaf6;
    --theme-surface-3:#f1eee5;
    --theme-text:#24231f;
    --theme-muted:#706d64;
    --theme-border:#ded9cc;
    --theme-border-strong:#c9c1b0;
    --theme-accent:#e2b92f;
    --theme-accent-text:#211d10;
    --theme-hover:#f7f0d8;
    --theme-shadow:0 14px 34px rgba(53,45,21,.08);
    --theme-danger:#b64949;
    --theme-danger-bg:#fff1f1;
    --theme-success:#846e35;
    --theme-success-bg:#eaf7f0;
    --menu-active:#f1c53b;
    --menu-active-text:#211d10;
    --menu-pdv:#e2b92f;
    --menu-pdv-text:#211d10;
    --menu-text:#4d4a42;
    --menu-label:#8b8579;
    --menu-hover:#f5eed8;
    --menu-icon:#7b7467;
    --button-border:#cfc6b4;
    --button-border-hover:#b9931b;
    --button-primary-border:#b68f12;
    --menu-active-border:#c79e17;
    --menu-pdv-border:#9f7a0a;
    --button-shadow:0 3px 10px rgba(103,78,8,.12);
    color-scheme:light;
}
html[data-theme=dark]{
    --theme-bg:#0f1115;
    --theme-surface:#181b21;
    --theme-surface-2:#20242c;
    --theme-surface-3:#282d36;
    --theme-text:#f3f4f6;
    --theme-muted:#a7adb7;
    --theme-border:#333943;
    --theme-border-strong:#474e5a;
    --theme-accent:#e2b92f;
    --theme-accent-text:#211d10;
    --theme-hover:#292929;
    --theme-shadow:0 18px 42px rgba(0,0,0,.34);
    --theme-danger:#ef8585;
    --theme-danger-bg:#3a2225;
    --theme-success:#c9ae69;
    --theme-success-bg:#2c2c2c;
    --menu-active:#e2b92f;
    --menu-active-text:#211d10;
    --menu-pdv:#e2b92f;
    --menu-pdv-text:#211d10;
    --menu-text:#c2c6ce;
    --menu-label:#818894;
    --menu-hover:#25282f;
    --menu-icon:#aeb3bc;
    --button-border:#4b515c;
    --button-border-hover:#e2b92f;
    --button-primary-border:#f0cf62;
    --menu-active-border:#9d7b0f;
    --menu-pdv-border:#9d7b0f;
    --button-shadow:0 3px 12px rgba(0,0,0,.25);
    color-scheme:dark;
}

html[data-theme=dark] dialog::backdrop{background:rgba(5,6,8,.76)!important}
html[data-theme=light] dialog::backdrop{background:rgba(32,29,22,.42)!important}

.sidebar{
    background:var(--theme-surface)!important;
    border-color:var(--theme-border)!important;
}
.sidebar>header,.sidebar>footer{background:var(--theme-surface)!important}
.sidebar nav .menu-link{
    background:transparent!important;
    border-color:transparent!important;
    color:var(--menu-text)!important;
}
.sidebar nav .menu-link .menu-icon{
    width:30px!important;
    height:30px!important;
    border:0!important;
    border-radius:8px!important;
    color:var(--menu-icon)!important;
    background:transparent!important;
}
.sidebar nav .menu-link .menu-icon svg{width:19px;height:19px;display:block}
.sidebar nav .menu-link:hover{
    background:var(--menu-hover)!important;
    color:var(--theme-text)!important;
    border-color:transparent!important;
    transform:translateX(2px);
}
.sidebar nav .menu-link:hover .menu-icon{color:var(--theme-accent)!important}
.sidebar nav .menu-link.active,
.sidebar nav .pdv-link,
.sidebar nav .pdv-link.active{
    background:var(--menu-active)!important;
    color:var(--menu-active-text)!important;
    border-color:var(--menu-active)!important;
    box-shadow:0 8px 20px rgba(226,185,47,.18)!important;
    transform:none!important;
}
.sidebar nav .menu-link.active::before,
.sidebar nav .pdv-link::before,
.sidebar nav .pdv-link.active::before{display:none!important}
.sidebar nav .menu-link.active .menu-icon,
.sidebar nav .pdv-link .menu-icon,
.sidebar nav .pdv-link.active .menu-icon{
    color:var(--menu-active-text)!important;
    border-color:transparent!important;
}
.sidebar nav .menu-cash-section{
    border-color:var(--theme-border)!important;
}
.sidebar .brand img{filter:drop-shadow(0 5px 12px rgba(226,185,47,.16))}
.sidebar .brand>span{letter-spacing:.01em}
.sidebar .user-avatar{
    background:var(--theme-accent)!important;
    color:var(--theme-accent-text)!important;
    box-shadow:0 5px 14px rgba(226,185,47,.18);
}
.admin-top{
    background:var(--theme-surface)!important;
    border-color:var(--theme-border)!important;
}
.admin-top h1{letter-spacing:-.025em}
.admin-top>div>small{color:var(--theme-accent)!important}
.top-actions>a,.top-actions button,.mobile-menu{
    background:var(--theme-surface-2)!important;
    color:var(--theme-text)!important;
    border-color:var(--theme-border-strong)!important;
}
.top-actions>a:hover,.top-actions button:hover,.mobile-menu:hover{
    border-color:var(--theme-accent)!important;
    color:var(--theme-text)!important;
    background:var(--theme-hover)!important;
}
.top-actions .action-icon{width:17px;height:17px;display:block;flex:0 0 auto}
.top-actions>a,.top-actions form button{display:inline-flex!important;align-items:center!important;gap:8px!important}

.button,.confirm,.confirm-payment,.receive-button,
button[type=submit]:not(.secondary):not(.danger),
.module-card .button{
    background:var(--theme-accent)!important;
    color:var(--theme-accent-text)!important;
    border-color:var(--theme-accent)!important;
    box-shadow:var(--button-shadow)!important;
}
.button:hover,.confirm:hover,.confirm-payment:hover,.receive-button:hover,
button[type=submit]:not(.secondary):not(.danger):hover{
    filter:brightness(1.04);
    transform:translateY(-1px);
}

input:focus,select:focus,textarea:focus{
    outline:3px solid color-mix(in srgb,var(--theme-accent) 22%,transparent)!important;
    border-color:var(--theme-accent)!important;
}

.panel,.module-card,.data-panel,.stats article,.module-summary article{
    box-shadow:var(--theme-shadow);
}

html[data-theme=dark] .sidebar,
html[data-theme=dark] .admin-top{
    background:#15181e!important;
}
html[data-theme=dark] .admin-content,
html[data-theme=dark] .admin-shell{background:#0f1115!important}
html[data-theme=light] .sidebar,
html[data-theme=light] .admin-top{background:#fff!important}
html[data-theme=light] .admin-content,
html[data-theme=light] .admin-shell{background:#f6f4ee!important}
.theme-toggle svg{width:15px;height:15px;display:block;stroke-linecap:round;stroke-linejoin:round}

/* Opção para manter as credenciais no dispositivo atual. */
.login .remember-credentials{
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:9px;
    width:max-content;
    max-width:100%;
    cursor:pointer;
    color:var(--theme-text);
    user-select:none;
}
.login .remember-credentials input{
    width:17px;
    height:17px;
    margin:0;
    padding:0;
    accent-color:var(--theme-accent);
    cursor:pointer;
}
.login .remember-credentials span{
    line-height:1.25;
}
