/* Vendas Operacionais — padrão visual Produtos / Estoque / Etiquetas / Caixa */
body.sales-operational-mode037 .content{
  background:linear-gradient(145deg,#dcebf3 0%,#eaf4f8 55%,#d8e8f0 100%);
}
body.sales-operational-mode037 #content{min-width:0}
body.sales-operational-mode037 .page-head{margin-bottom:12px}
body.sales-operational-mode037 .page-head h1{color:var(--aurora-steel,#163047)}
body.sales-operational-mode037 .page-head p{color:var(--muted,#66788a)}

.sales-lock037{
  min-height:310px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  text-align:center;
  gap:7px;
  border-color:#b7cfdb;
  background:linear-gradient(145deg,#edf6fa,#e4f0f6);
}
.sales-lock-icon037{font-size:36px;color:#159bb0;margin-bottom:3px}
.sales-lock037>span{font-size:9px;font-weight:950;letter-spacing:.12em;color:#56778b}
.sales-lock037 h2{margin:0;color:#173950;font-size:24px}
.sales-lock037 p{margin:0;color:#60798b;font-size:11px}
.sales-lock037 small{color:#78909d;font-size:9px}
.sales-lock-form037{display:flex;gap:8px;margin-top:10px}
.sales-lock-form037 .input{width:180px;text-align:center;font-size:18px;font-weight:850}
.sales-lock-form037 .btn{min-width:145px}

.sales-filter-card037{
  padding:12px 14px;
  border-color:#b7cfdb;
  background:#fff;
  box-shadow:0 6px 18px rgba(16,40,59,.04);
}
.sales-period037{display:flex;gap:6px;margin-bottom:9px}
.sales-period037 .btn{min-height:32px;padding:5px 9px;font-size:10px}
.sales-filter-grid037{
  display:grid;
  grid-template-columns:repeat(6,minmax(120px,1fr));
  gap:8px;
}
.sales-filter-grid037 label{display:grid;gap:4px}
.sales-filter-grid037 label>span{font-size:8px;font-weight:950;letter-spacing:.06em;color:#60798b}
.sales-filter-grid037 .input,.sales-filter-grid037 .select{min-height:38px;height:38px;padding:6px 9px;font-size:11px;background:#f7fbfd;border-color:#b7cfdb}
.sales-search037{grid-column:span 2}
.sales-filter-foot037{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px}
.sales-filter-foot037 span{font-size:9px;color:#6c8291}
.sales-filter-foot037 .btn{min-height:34px;padding:6px 10px;font-size:10px}

.sales-kpis037{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  margin:10px 0;
}
.sales-kpis037 article{
  min-width:0;
  padding:12px 13px;
  border:1px solid #c3d6e0;
  border-radius:13px;
  background:#f4f9fb;
  box-shadow:0 5px 14px rgba(16,40,59,.04);
}
.sales-kpis037 article>span{display:block;font-size:9px;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#60798b}
.sales-kpis037 article>strong{display:block;margin-top:5px;font-size:20px;color:#173950;letter-spacing:-.025em}
.sales-kpis037 article>small{display:block;margin-top:3px;font-size:9px;color:#7890a0}
.sales-compare037{display:block;margin-top:7px;font-size:10px;font-weight:850;line-height:1.25}
.sales-compare037.up{color:#08794c}.sales-compare037.down{color:#a62d2d}.sales-compare037.neutral{color:#60798b}

.sales-chart-grid037{
  display:grid;
  grid-template-columns:1.25fr 1fr 1fr;
  gap:10px;
  margin-bottom:10px;
}
.sales-chart-card037{
  padding:14px 15px;
  border-color:#b7cfdb;
  background:#fff;
  box-shadow:0 7px 20px rgba(16,40,59,.05);
}
.sales-section-head037>span,.sales-list-head037>div>span{
  display:block;
  margin-bottom:3px;
  font-size:8px;
  font-weight:950;
  letter-spacing:.09em;
  color:#557387;
}
.sales-section-head037 h3,.sales-list-head037 h3{margin:0;color:#173950;font-size:15px}
.sales-section-head037 p,.sales-list-head037 p{margin:3px 0 0;color:#60798b;font-size:9px}
.sales-bars037{display:grid;gap:7px;margin-top:12px}
.sales-bars037>div{
  display:grid;
  grid-template-columns:minmax(72px,.8fr) minmax(90px,1.3fr) auto;
  align-items:center;
  gap:8px;
}
.sales-bars037 span{font-size:9px;color:#23445b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sales-bars037 i{
  position:relative;
  height:9px;
  border-radius:999px;
  background:#e1edf3;
  overflow:hidden;
}
.sales-bars037 i:before{content:"";position:absolute;inset:0 auto 0 0;width:var(--bar,0%);border-radius:inherit;background:linear-gradient(90deg,#159eb2,#32c7c0)}
.sales-bars037 strong{font-size:9px;color:#173950;white-space:nowrap}
.sales-bars037 em{padding:20px 0;text-align:center;color:#71899a;font-size:10px;font-style:normal}

.sales-list037{
  padding:14px 15px;
  border-color:#b7cfdb;
  background:#fff;
  box-shadow:0 7px 20px rgba(16,40,59,.05);
}
.sales-list-head037{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.sales-list-head037>strong{font-size:9px;color:#60798b}
.sales-list037 .table-wrap{border:1px solid #c4d7e1;border-radius:11px;overflow:auto}
.sales-table037{min-width:1020px}
.sales-table037 thead th{background:#e0edf4;color:#173950;border-bottom-color:#b7cfdb;font-size:9px}
.sales-table037 tbody tr:nth-child(odd){background:#edf5f9}
.sales-table037 tbody tr:nth-child(even){background:#e7f1f6}
.sales-table037 tbody tr:hover{background:#dcecf4}
.sales-table037 td{font-size:10px;color:#23445b;border-bottom-color:#c3d6e0}
.sales-view037{min-height:30px;padding:5px 8px;font-size:9px}
.sales-empty037{padding:26px 12px;text-align:center;color:#71899a;font-size:10px}

.sales-detail-modal037{padding:0!important}
.sales-detail037{height:100%;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}
.sales-detail037>header{padding:20px 24px 15px;border-bottom:1px solid #c4d7e1;background:#f4f9fb}
.sales-detail037>header>span{font-size:8px;font-weight:950;letter-spacing:.09em;color:#557387}
.sales-detail037>header h2{margin:4px 0 0;color:#173950;font-size:23px}
.sales-detail037>header p{margin:4px 0 0;color:#60798b;font-size:10px}
.sales-detail037>main{min-height:0;overflow:auto;padding:18px 24px;background:#fff}
.sales-detail037>main h3{margin:16px 0 8px;color:#173950;font-size:14px}
.sales-detail-kpis037{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.sales-detail-kpis037>div{padding:11px 12px;border:1px solid #c4d7e1;border-radius:10px;background:#edf5f9}
.sales-detail-kpis037 span{display:block;font-size:8px;font-weight:900;text-transform:uppercase;color:#60798b}
.sales-detail-kpis037 strong{display:block;margin-top:4px;font-size:16px;color:#173950}
.sales-pay-detail037{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:8px}
.sales-pay-detail037>div{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border:1px solid #c4d7e1;border-radius:10px;background:#edf5f9}
.sales-pay-detail037 span{font-size:10px;color:#60798b}.sales-pay-detail037 strong{font-size:12px;color:#173950}
.sales-detail037>footer{margin:0!important;padding:12px 24px;border-top:1px solid #c4d7e1;background:#f4f9fb;display:grid;grid-template-columns:auto 1fr auto;align-items:center}

/* Tema escuro */
html[data-cp-theme="dark"] body.sales-operational-mode037 .content,
html[data-theme="dark"] body.sales-operational-mode037 .content{background:linear-gradient(145deg,#071725,#0b2232 55%,#081a28)}
html[data-cp-theme="dark"] .sales-filter-card037,
html[data-cp-theme="dark"] .sales-kpis037 article,
html[data-cp-theme="dark"] .sales-chart-card037,
html[data-cp-theme="dark"] .sales-list037,
html[data-theme="dark"] .sales-filter-card037,
html[data-theme="dark"] .sales-kpis037 article,
html[data-theme="dark"] .sales-chart-card037,
html[data-theme="dark"] .sales-list037{background:#0c2131;border-color:#315269}
html[data-cp-theme="dark"] .sales-kpis037 article>strong,
html[data-cp-theme="dark"] .sales-section-head037 h3,
html[data-cp-theme="dark"] .sales-list-head037 h3,
html[data-theme="dark"] .sales-kpis037 article>strong,
html[data-theme="dark"] .sales-section-head037 h3,
html[data-theme="dark"] .sales-list-head037 h3{color:#f4fbff}
html[data-cp-theme="dark"] .sales-filter-grid037 .input,
html[data-cp-theme="dark"] .sales-filter-grid037 .select,
html[data-theme="dark"] .sales-filter-grid037 .input,
html[data-theme="dark"] .sales-filter-grid037 .select{background:#0f2a3e!important;border-color:#41657a!important;color:#f4fbff!important}
html[data-cp-theme="dark"] .sales-table037 thead th,
html[data-theme="dark"] .sales-table037 thead th{background:#14344b;color:#f4fbff;border-color:#315269}
html[data-cp-theme="dark"] .sales-table037 tbody tr:nth-child(odd),
html[data-theme="dark"] .sales-table037 tbody tr:nth-child(odd){background:#102a3d}
html[data-cp-theme="dark"] .sales-table037 tbody tr:nth-child(even),
html[data-theme="dark"] .sales-table037 tbody tr:nth-child(even){background:#0f2739}
html[data-cp-theme="dark"] .sales-table037 td,
html[data-theme="dark"] .sales-table037 td{color:#dbe8f0;border-color:#315269}
html[data-cp-theme="dark"] .sales-bars037 span,
html[data-cp-theme="dark"] .sales-bars037 strong,
html[data-theme="dark"] .sales-bars037 span,
html[data-theme="dark"] .sales-bars037 strong{color:#dbe8f0}
html[data-cp-theme="dark"] .sales-bars037 i,
html[data-theme="dark"] .sales-bars037 i{background:#17374a}
html[data-cp-theme="dark"] .sales-detail037>header,
html[data-cp-theme="dark"] .sales-detail037>footer,
html[data-theme="dark"] .sales-detail037>header,
html[data-theme="dark"] .sales-detail037>footer{background:#0d2537;border-color:#315269}
html[data-cp-theme="dark"] .sales-detail037>main,
html[data-theme="dark"] .sales-detail037>main{background:#0c2131}
html[data-cp-theme="dark"] .sales-detail037>header h2,
html[data-cp-theme="dark"] .sales-detail037>main h3,
html[data-cp-theme="dark"] .sales-detail-kpis037 strong,
html[data-cp-theme="dark"] .sales-pay-detail037 strong,
html[data-theme="dark"] .sales-detail037>header h2,
html[data-theme="dark"] .sales-detail037>main h3,
html[data-theme="dark"] .sales-detail-kpis037 strong,
html[data-theme="dark"] .sales-pay-detail037 strong{color:#f4fbff}
html[data-cp-theme="dark"] .sales-detail-kpis037>div,
html[data-cp-theme="dark"] .sales-pay-detail037>div,
html[data-theme="dark"] .sales-detail-kpis037>div,
html[data-theme="dark"] .sales-pay-detail037>div{background:#102a3d;border-color:#315269}

@media(max-width:1280px){
 .sales-filter-grid037{grid-template-columns:repeat(4,minmax(120px,1fr))}
 .sales-kpis037{grid-template-columns:repeat(3,1fr)}
 .sales-chart-grid037{grid-template-columns:1fr 1fr}
 .sales-chart-grid037>article:last-child{grid-column:1/-1}
}
@media(max-width:820px){
 .sales-filter-grid037,.sales-kpis037,.sales-chart-grid037{grid-template-columns:1fr 1fr}
 .sales-search037{grid-column:1/-1}
 .sales-chart-grid037>article:last-child{grid-column:auto}
 .sales-lock-form037{flex-direction:column;width:min(320px,100%)}
 .sales-lock-form037 .input{width:100%}
}
@media(max-width:620px){
 .sales-filter-grid037,.sales-kpis037,.sales-chart-grid037,.sales-detail-kpis037{grid-template-columns:1fr}
 .sales-filter-foot037,.sales-list-head037{align-items:flex-start;flex-direction:column}
 .sales-detail037>header,.sales-detail037>main,.sales-detail037>footer{padding-left:16px;padding-right:16px}
}