/* Tema responsivo do ON ERP.
   O tema escuro original permanece como padrão.
   Quando o navegador/SO sinaliza preferência por tema claro,
   este arquivo sobrescreve a interface inteira para a paleta clara. */
@media (prefers-color-scheme: light){
:root{
  color-scheme:light!important;
  --bg:#eef2f8!important;
  --side:#e6ebf3!important;
  --panel:#f8fafc!important;
  --panel2:#f1f4f8!important;
  --line:#d4dbe5!important;
  --text:#202631!important;
  --muted:#707782!important;
  --orange:#ff7448!important;
  --orange2:#e9562e!important;
  --green:#238b51!important;
  --red:#c94e42!important;
  --blue:#3678c8!important;
}
html,body,.app{background:var(--bg)!important;color:var(--text)!important}
body{color:var(--text)!important}
.sidebar{background:var(--side)!important;border-right-color:#cbd3de!important;box-shadow:8px 0 26px rgba(50,64,82,.05)!important}
.brand{border-bottom-color:#cbd3de!important}.brand b{color:#2b313a!important}
.nav-item,.sidebar .nav-group-toggle,.sidebar .nav-subitem{color:#4c5562!important}
.nav-item i,.sidebar .nav-group-toggle b{color:#7f8791!important}
.nav-item:hover,.nav-item.active,.sidebar .nav-group.open>.nav-group-toggle,.sidebar .nav-group.active>.nav-group-toggle{background:#fff1eb!important;color:#252b33!important}
.sidebar .nav-submenu{border-left-color:#ccd4df!important}
.sidebar .nav-subitem:hover,.sidebar .nav-subitem.active{background:#fff6f2!important;color:#202631!important}
.sidebar .nav-empty,.logout{color:#727a85!important}
main{background:var(--bg)!important}.topbar{border-bottom-color:#d3dae4!important}.topbar h1,.user strong{color:#202631!important}.user>span{background:#ffe7dd!important;color:#d9572e!important}.user small{color:#7d8590!important}
.metric,.panel,.module-card,.report-card,.stock-intro,.unit-card,.v6-panel,.v6-card,.v6-permission-group,.v6-unit-card{background:var(--panel)!important;border-color:#d7dde6!important;color:#202631!important;box-shadow:0 5px 16px rgba(54,69,88,.04)!important}
.metric span,.metric small,.panel p,.stock-intro p,.module-card p,.report-card p,.v6-panel p,.v6-card span,.rank small,.hint,.empty,.empty-state,.v6-empty,.v6-sub,.v6-unit-card small{color:#747c87!important}
.metric strong,.panel h2,.stock-intro h2,.module-card h2,.report-card h2,.v6-panel h2,.v6-panel h3,.v6-card strong,.v6-list-row strong{color:#202631!important}
.toolbar label,.form-grid label,.v6-grid label,.v6-stack label{color:#4f5865!important}
input,select,textarea,.v6-check,.v6-filter-box{background:#fff!important;color:#202631!important;border-color:#aeb8c7!important}
input::placeholder,textarea::placeholder{color:#9aa2ad!important}
input:focus,select:focus,textarea:focus{outline:2px solid rgba(255,116,72,.28)!important;border-color:#ff7448!important}
.secondary{background:#fff!important;color:#303844!important;border-color:#b8c1cd!important}.secondary:hover{border-color:#8c97a6!important;background:#f7f9fc!important}
.primary{color:#fff!important}
.section-tabs button,.v6-tabs button{color:#68717c!important}.section-tabs button.active,.v6-tabs button.active{background:#fff1eb!important;color:#202631!important;border-color:#f0b59f!important}
.table-wrap,.v6-table-wrap{background:#fff!important;border-color:#d4dbe5!important}
th,.v6-table th{background:#eef2f7!important;color:#5f6875!important;border-bottom-color:#d5dde7!important}
td,.v6-table td{color:#2e3540!important;border-bottom-color:#e1e6ed!important}
tbody tr:hover,.v6-list-row:hover{background:#f8fafc!important}
.badge{background:#eef1f5!important;color:#59616d!important}.badge.PAID,.badge.AUTHORIZED,.badge.ACTIVE,.badge.CONFIRMED,.yes{color:#237b49!important;background:#e5f5eb!important}.badge.OVERDUE,.badge.CANCELED,.no{color:#b94236!important;background:#fdebe8!important}.badge.PENDING,.badge.OPEN,.badge.PARTIAL{color:#a9671c!important;background:#fff1db!important}
.rank>span{background:#fff0ea!important}.progress{background:#dfe5ec!important}
.modal,.erp-window-overlay{background:rgba(43,50,60,.34)!important;backdrop-filter:blur(4px)!important}
.dialog,.erp-window-card{background:#fbfcfe!important;border-color:#d6dde6!important;color:#202631!important;box-shadow:0 28px 80px rgba(35,44,57,.24)!important}
.close,.erp-window-close{background:#fff!important;color:#55606d!important;border-color:#cbd3dd!important}.close:hover,.erp-window-close:hover{color:#ff7448!important;border-color:#ff7448!important}
.form-error,.erp-window-error{background:#fff0ec!important;color:#b8442f!important;border-color:#f2c1b4!important}.toast{background:#fff7f2!important;color:#2e3540!important;border-color:#f0b59f!important;box-shadow:0 12px 40px rgba(40,50,62,.16)!important}
.v6-breadcrumb{color:#707985!important}.v6-check{border-color:#d5dce5!important}.v6-table-wrap{border-color:#d7dde6!important}.v6-table th{border-bottom-color:#f0b59f!important}.v6-pop{background:#fff!important;border-color:#d3dae4!important;box-shadow:0 18px 45px rgba(38,48,60,.17)!important}.v6-pop button{color:#2e3540!important}.v6-pop button:hover{background:#fff4ef!important}.v6-pop .danger{color:#c84e3c!important}
.v6-list-row{color:#2f3742!important;border-bottom-color:#e0e5ec!important}.v6-permission-group label{color:#4c5562!important}.v6-unit-card{background:#fff!important}.v6-unit-card:has(input:checked){background:#fff2ed!important;border-color:#ff7448!important}.v6-tabs{border-bottom-color:#d6dde6!important}.v6-cart{background:#fffaf7!important;border-color:#efb29d!important;box-shadow:0 12px 40px rgba(44,55,69,.13)!important;color:#202631!important}.v6-totalbar{background:#fff6f1!important;color:#303844!important}.v6-note{background:#fff5f0!important;color:#764838!important;border-color:#efb7a5!important}
.erp-window-head{border-bottom-color:#dde3ea!important}.erp-window-head h2{color:#202631!important}.erp-window-product{background:#f4f7fa!important;border-color:#d7dde6!important}.erp-window-product strong{color:#202631!important}.erp-window-product small{color:#77808b!important}.erp-window-form label{color:#4f5865!important}.erp-window-form input,.erp-window-form textarea,.erp-window-form select{background:#fff!important;color:#202631!important;border-color:#b5bfcc!important}.erp-window-hint{color:#78818c!important}
@media(max-width:760px){.sidebar{background:#f6f8fb!important;border-color:#cbd3de!important;box-shadow:0 12px 50px rgba(43,54,69,.18)!important}}
}
