/* PDV V26 - Frente de caixa clean e funcional */
#pdv .pdv26 { --p26-blue:#168fff; --p26-green:#16a34a; --p26-red:#ef4444; --p26-amber:#f59e0b; --p26-border:rgba(148,163,184,.26); --p26-bg:rgba(255,255,255,.78); --p26-soft:#eef6ff; display:flex; flex-direction:column; gap:10px; height:calc(100vh - 136px); min-height:610px; overflow:hidden; }
body:not(.light) #pdv .pdv26 { --p26-bg:rgba(17,24,39,.86); --p26-soft:rgba(15,23,42,.88); --p26-border:rgba(148,163,184,.18); color:#e5edf8; }
.pdv26-top { display:grid; grid-template-columns:minmax(240px, 1fr) auto; gap:12px; align-items:center; padding:12px 14px; border:1px solid var(--p26-border); border-radius:18px; background:var(--p26-bg); box-shadow:0 16px 40px rgba(15,23,42,.06); }
.pdv26-title .eyebrow { margin:0 0 2px; color:var(--p26-blue); font-size:11px; letter-spacing:.12em; text-transform:uppercase; font-weight:900; }
.pdv26-title h2 { margin:0; font-size:20px; line-height:1; }
.pdv26-title p { margin:4px 0 0; color:var(--muted); font-size:13px; }
.pdv26-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.pdv26-actions button, .pdv26-btn, .pdv26-ghost { border:1px solid var(--p26-border); border-radius:999px; padding:10px 14px; background:rgba(255,255,255,.74); color:inherit; font-weight:900; cursor:pointer; transition:.18s ease; }
body:not(.light) .pdv26-actions button, body:not(.light) .pdv26-btn, body:not(.light) .pdv26-ghost { background:rgba(15,23,42,.9); }
.pdv26-actions button:hover, .pdv26-btn:hover, .pdv26-ghost:hover { transform:translateY(-1px); border-color:rgba(22,143,255,.55); }
.pdv26-primary { background:linear-gradient(135deg,#1da1ff,#0069ff)!important; color:white!important; border-color:transparent!important; box-shadow:0 12px 28px rgba(0,105,255,.18); }
.pdv26-kpis { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.pdv26-kpi { padding:12px 14px; border-radius:16px; border:1px solid var(--p26-border); background:var(--p26-bg); }
.pdv26-kpi span { display:block; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; font-size:10px; font-weight:900; }
.pdv26-kpi strong { display:block; font-size:19px; margin-top:5px; }
.pdv26-kpi .green { color:var(--p26-green); }
.pdv26-workbench { display:grid; grid-template-columns:310px minmax(360px,1fr) 380px; gap:10px; min-height:0; flex:1; }
.pdv26-panel { min-height:0; border:1px solid var(--p26-border); border-radius:20px; background:var(--p26-bg); box-shadow:0 16px 40px rgba(15,23,42,.05); overflow:hidden; }
.pdv26-panel-head { padding:13px 14px 10px; border-bottom:1px solid var(--p26-border); display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.pdv26-panel-head h3 { margin:0; font-size:16px; }
.pdv26-panel-head p { margin:3px 0 0; color:var(--muted); font-size:12px; }
.pdv26-products { display:flex; flex-direction:column; }
.pdv26-search-wrap { padding:12px; display:flex; flex-direction:column; gap:10px; min-height:0; flex:1; }
.pdv26-input, .pdv26-select, .pdv26-textarea { width:100%; border:1px solid rgba(148,163,184,.32); background:rgba(248,251,255,.96); color:#0f172a; border-radius:14px; padding:12px 13px; font:inherit; outline:none; box-sizing:border-box; }
body:not(.light) .pdv26-input, body:not(.light) .pdv26-select, body:not(.light) .pdv26-textarea { background:rgba(2,6,23,.82); color:#e5edf8; border-color:rgba(148,163,184,.22); }
.pdv26-input:focus, .pdv26-select:focus, .pdv26-textarea:focus { border-color:var(--p26-blue); box-shadow:0 0 0 3px rgba(22,143,255,.12); }
.pdv26-inline-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pdv26-results { min-height:0; overflow:auto; display:flex; flex-direction:column; gap:7px; padding-right:2px; }
.pdv26-result { display:grid; grid-template-columns:1fr auto; gap:8px; align-items:center; border:1px solid var(--p26-border); background:rgba(255,255,255,.55); border-radius:14px; padding:10px; cursor:pointer; }
body:not(.light) .pdv26-result { background:rgba(15,23,42,.72); }
.pdv26-result:hover { border-color:rgba(22,143,255,.6); background:rgba(22,143,255,.08); }
.pdv26-result h4 { margin:0; font-size:13px; line-height:1.15; }
.pdv26-result small { color:var(--muted); display:block; margin-top:3px; font-size:11px; }
.pdv26-result strong { color:var(--p26-blue); white-space:nowrap; }
.pdv26-add { width:34px; height:34px; border-radius:50%; border:0; background:var(--p26-blue); color:#fff; font-weight:900; cursor:pointer; }
.pdv26-empty { border:1px dashed var(--p26-border); border-radius:18px; min-height:135px; display:flex; align-items:center; justify-content:center; text-align:center; color:var(--muted); padding:18px; }
.pdv26-sale { display:flex; flex-direction:column; min-width:0; }
.pdv26-sale-body { padding:12px; display:grid; grid-template-rows:auto auto minmax(150px,1fr); gap:10px; min-height:0; height:100%; box-sizing:border-box; }
.pdv26-sale-top { display:grid; grid-template-columns:minmax(260px,1fr) 230px; gap:10px; align-items:end; }
.pdv26-field label, .pdv26-modal label { display:block; color:var(--muted); font-size:12px; font-weight:800; margin-bottom:6px; }
.pdv26-client-box { position:relative; }
.pdv26-suggestions { position:absolute; z-index:50; top:calc(100% + 6px); left:0; right:0; background:var(--p26-bg); border:1px solid var(--p26-border); border-radius:16px; box-shadow:0 18px 40px rgba(15,23,42,.18); max-height:260px; overflow:auto; padding:6px; display:none; }
.pdv26-suggestions.show { display:block; }
.pdv26-suggestion { padding:10px 11px; border-radius:12px; cursor:pointer; display:flex; justify-content:space-between; gap:8px; align-items:center; }
.pdv26-suggestion:hover { background:rgba(22,143,255,.12); }
.pdv26-suggestion strong { font-size:13px; }
.pdv26-suggestion small { color:var(--muted); font-size:11px; }
.pdv26-client-actions { display:flex; gap:8px; margin-top:8px; flex-wrap:wrap; align-items:center; }
.pdv26-selected-client { color:var(--muted); font-size:12px; }
.pdv26-selected-client strong { color:inherit; }
.pdv26-cart { min-height:0; overflow:auto; border:1px solid var(--p26-border); border-radius:18px; padding:8px; background:rgba(255,255,255,.38); }
body:not(.light) .pdv26-cart { background:rgba(2,6,23,.35); }
.pdv26-cart-table { width:100%; border-collapse:separate; border-spacing:0 8px; table-layout:fixed; }
.pdv26-cart-table th { text-align:left; font-size:10px; color:var(--muted); text-transform:uppercase; letter-spacing:.08em; padding:0 8px; }
.pdv26-cart-table td { background:rgba(248,251,255,.85); border-top:1px solid var(--p26-border); border-bottom:1px solid var(--p26-border); padding:10px 8px; vertical-align:middle; }
body:not(.light) .pdv26-cart-table td { background:rgba(15,23,42,.75); }
.pdv26-cart-table td:first-child { border-left:1px solid var(--p26-border); border-radius:14px 0 0 14px; }
.pdv26-cart-table td:last-child { border-right:1px solid var(--p26-border); border-radius:0 14px 14px 0; }
.pdv26-item-name { font-weight:900; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.pdv26-item-meta { color:var(--muted); font-size:11px; margin-top:2px; }
.pdv26-qty { display:inline-flex; align-items:center; gap:6px; border:1px solid var(--p26-border); border-radius:999px; padding:4px; }
.pdv26-qty button { width:28px; height:28px; border:0; border-radius:50%; background:rgba(22,143,255,.12); color:var(--p26-blue); font-weight:900; cursor:pointer; }
.pdv26-qty input { width:42px; text-align:center; border:0; background:transparent; color:inherit; font-weight:900; outline:none; }
.pdv26-remove { width:30px; height:30px; border-radius:50%; border:1px solid rgba(239,68,68,.25); color:var(--p26-red); background:rgba(239,68,68,.07); cursor:pointer; font-weight:900; }
.pdv26-pay { display:flex; flex-direction:column; min-width:0; }
.pdv26-pay-body { padding:12px; display:grid; grid-template-rows:auto auto 1fr auto; gap:10px; min-height:0; height:100%; box-sizing:border-box; }
.pdv26-summary { border:1px solid rgba(22,143,255,.28); background:var(--p26-soft); border-radius:18px; padding:13px; }
.pdv26-summary-line { display:flex; justify-content:space-between; gap:12px; margin:6px 0; }
.pdv26-summary-line span { color:var(--muted); }
.pdv26-summary-line.total { border-top:1px solid var(--p26-border); padding-top:10px; margin-top:10px; font-size:20px; font-weight:900; }
.pdv26-note-row { display:grid; grid-template-columns:115px 1fr; gap:8px; }
.pdv26-method-tabs { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; }
.pdv26-method-tabs button { border:1px solid var(--p26-border); background:rgba(255,255,255,.55); border-radius:12px; padding:10px 5px; cursor:pointer; font-weight:900; color:inherit; }
body:not(.light) .pdv26-method-tabs button { background:rgba(15,23,42,.75); }
.pdv26-method-tabs button.active { background:rgba(22,143,255,.14); border-color:var(--p26-blue); color:var(--p26-blue); }
.pdv26-payment-form { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pdv26-payment-form .full { grid-column:1 / -1; }
.pdv26-payment-list { min-height:0; overflow:auto; display:flex; flex-direction:column; gap:7px; }
.pdv26-pay-row { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:8px; padding:8px 9px; border-radius:13px; border:1px solid var(--p26-border); background:rgba(255,255,255,.5); }
body:not(.light) .pdv26-pay-row { background:rgba(15,23,42,.72); }
.pdv26-pay-row small { color:var(--muted); display:block; }
.pdv26-footer-actions { display:grid; grid-template-columns:1fr 1.4fr; gap:8px; }
.pdv26-modal-overlay { position:fixed; inset:0; background:rgba(15,23,42,.62); backdrop-filter:blur(8px); z-index:9999; display:flex; align-items:center; justify-content:center; padding:24px; }
.pdv26-modal { width:min(760px,96vw); background:#fff; color:#0f172a; border-radius:28px; box-shadow:0 30px 80px rgba(0,0,0,.35); padding:24px; }
body:not(.light) .pdv26-modal { background:#0b1220; color:#e5edf8; border:1px solid rgba(148,163,184,.22); }
.pdv26-modal-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:16px; }
.pdv26-modal-head span { color:var(--p26-blue); text-transform:uppercase; letter-spacing:.12em; font-size:11px; font-weight:900; }
.pdv26-modal-head h2 { margin:4px 0 2px; }
.pdv26-modal-head p { margin:0; color:var(--muted); }
.pdv26-close { width:42px; height:42px; border-radius:50%; border:1px solid var(--p26-border); background:rgba(148,163,184,.08); color:inherit; font-size:24px; cursor:pointer; }
.pdv26-modal-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.pdv26-modal-grid .full { grid-column:1 / -1; }
.pdv26-modal-footer { display:flex; justify-content:flex-end; gap:10px; margin-top:18px; }
@media (max-width: 1280px) { #pdv .pdv26{height:auto;overflow:visible}.pdv26-workbench{grid-template-columns:1fr}.pdv26-panel{min-height:unset}.pdv26-cart,.pdv26-results,.pdv26-payment-list{max-height:320px}.pdv26-sale-body,.pdv26-pay-body{height:auto}.pdv26-kpis{grid-template-columns:repeat(2,1fr)} }
@media (max-width: 720px) { .pdv26-top,.pdv26-sale-top,.pdv26-payment-form,.pdv26-note-row,.pdv26-modal-grid{grid-template-columns:1fr}.pdv26-actions,.pdv26-footer-actions{grid-template-columns:1fr;display:grid}.pdv26-kpis{grid-template-columns:1fr}.pdv26-method-tabs{grid-template-columns:repeat(2,1fr)} }

/* PDV V27 - refinamento frente de caixa: cliente compacto, busca de produto central e tudo em uma tela */
#pdv .pdv27{
  height:calc(100vh - 132px);
  min-height:0;
  gap:8px;
  overflow:hidden;
}
#pdv .pdv27 .pdv27-top{
  padding:9px 12px;
  border-radius:16px;
}
#pdv .pdv27 .pdv26-title h2{font-size:18px;}
#pdv .pdv27 .pdv26-title p{font-size:12px;margin-top:2px;}
#pdv .pdv27 .pdv26-actions{gap:6px;}
#pdv .pdv27 .pdv26-actions button{padding:8px 12px;font-size:12px;}
#pdv .pdv27-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;}
#pdv .pdv27-kpis .pdv26-kpi{padding:9px 12px;border-radius:14px;}
#pdv .pdv27-kpis .pdv26-kpi strong{font-size:16px;margin-top:3px;}
#pdv .pdv27-workbench{
  grid-template-columns:280px minmax(520px,1fr) 355px;
  gap:8px;
  min-height:0;
  flex:1;
}
#pdv .pdv27 .pdv26-panel{border-radius:18px;}
#pdv .pdv27-panel-head{padding:10px 12px 8px;}
#pdv .pdv27-panel-head h3{font-size:15px;}
#pdv .pdv27-panel-head p{font-size:11px;}
#pdv .pdv27-customer-panel{display:flex;flex-direction:column;min-height:0;}
#pdv .pdv27-customer-body{padding:12px;display:flex;flex-direction:column;gap:10px;min-height:0;}
#pdv .pdv27-client-actions{display:grid;grid-template-columns:1fr 1fr;margin:0;gap:7px;}
#pdv .pdv27-selected-client{border:1px solid var(--p26-border);background:var(--p26-soft);border-radius:14px;padding:10px 11px;line-height:1.35;font-size:12px;color:var(--muted);}
#pdv .pdv27-sale-panel{display:flex;flex-direction:column;min-width:0;}
#pdv .pdv27-sale-body{display:grid;grid-template-rows:auto minmax(0,1fr);gap:8px;height:100%;min-height:0;padding:10px;}
#pdv .pdv27-product-search{display:flex;flex-direction:column;gap:7px;min-height:0;}
#pdv .pdv27-product-line{display:grid;grid-template-columns:minmax(280px,1fr) 105px 105px;gap:8px;align-items:center;}
#pdv .pdv27-product-line .pdv26-btn{height:42px;padding:0 10px;white-space:nowrap;}
#pdv .pdv27-product-input{height:42px;font-size:14px;}
#pdv .pdv27-product-results{max-height:138px;min-height:58px;overflow:auto;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;}
#pdv .pdv27-product-results .pdv26-empty{grid-column:1/-1;min-height:56px;padding:10px;}
#pdv .pdv27-product-results .pdv26-result{padding:9px 10px;min-height:54px;}
#pdv .pdv27-product-results .pdv26-result h4{font-size:13px;}
#pdv .pdv27-product-results .pdv26-result small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#pdv .pdv27-cart{min-height:0;overflow:auto;padding:6px;border-radius:16px;}
#pdv .pdv27-cart .pdv26-empty{min-height:120px;}
#pdv .pdv27-cart .pdv26-cart-table{border-spacing:0 6px;}
#pdv .pdv27-cart .pdv26-cart-table td{padding:8px 7px;}
#pdv .pdv27-pay-panel{min-width:0;display:flex;flex-direction:column;}
#pdv .pdv27-pay-body{padding:10px;display:grid;grid-template-rows:auto auto auto minmax(46px,1fr) auto;gap:8px;min-height:0;height:100%;}
#pdv .pdv27-summary{padding:11px 12px;border-radius:16px;}
#pdv .pdv27-summary .pdv26-summary-line{margin:3px 0;font-size:13px;}
#pdv .pdv27-summary .pdv26-summary-line.total{font-size:18px;margin-top:7px;padding-top:7px;}
#pdv .pdv27-note-row{grid-template-columns:92px 1fr;gap:7px;}
#pdv .pdv27-note-row .pdv26-input{height:38px;padding:9px 11px;}
#pdv .pdv27-method-block{min-height:0;}
#pdv .pdv27 .pdv26-method-tabs{gap:5px;}
#pdv .pdv27 .pdv26-method-tabs button{padding:8px 4px;border-radius:11px;font-size:12px;}
#pdv .pdv27-payment-form{grid-template-columns:1fr 1fr;gap:7px;margin-top:7px;}
#pdv .pdv27-payment-form label{font-size:11px;}
#pdv .pdv27-payment-form .pdv26-input,#pdv .pdv27-payment-form .pdv26-select{height:38px;padding:8px 10px;}
#pdv .pdv27-payment-form .pdv26-btn{height:40px;padding:0 10px;}
#pdv .pdv27-payment-list{min-height:0;overflow:auto;}
#pdv .pdv27-payment-list .pdv26-empty{min-height:54px;padding:10px;font-size:12px;}
#pdv .pdv27-footer-actions{grid-template-columns:1fr 1.8fr;gap:7px;}
#pdv .pdv27-footer-actions button{height:44px;border-radius:14px;}
#pdv .pdv27 .pdv26-input,#pdv .pdv27 .pdv26-select{border-radius:13px;}
#pdv .pdv27 .pdv26-suggestions{max-height:210px;}
@media (max-width: 1300px){
  #pdv .pdv27-workbench{grid-template-columns:250px minmax(440px,1fr) 330px;}
  #pdv .pdv27-product-line{grid-template-columns:1fr 92px 92px;}
  #pdv .pdv27-product-results{grid-template-columns:1fr;max-height:125px;}
}
@media (max-width: 980px){
  #pdv .pdv27{height:auto;overflow:visible;}
  #pdv .pdv27-top,#pdv .pdv27-workbench,#pdv .pdv27-kpis{grid-template-columns:1fr;}
  #pdv .pdv27-product-results{max-height:240px;}
}

/* PDV V28 - parcelamento com/sem juros e pré-impressão antes de finalizar */
#pdv .pdv28-interest{
  grid-column:1/-1;
  display:grid;
  gap:6px;
}
#pdv .pdv28-interest > span{
  color:var(--muted);
  font-size:11px;
  font-weight:900;
}
#pdv .pdv28-interest > div{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:6px;
}
#pdv .pdv28-interest button{
  border:1px solid var(--p26-border);
  background:var(--p26-card);
  color:var(--p26-text);
  border-radius:13px;
  padding:9px 10px;
  text-align:left;
  font-weight:900;
  cursor:pointer;
  line-height:1.15;
}
#pdv .pdv28-interest button small{
  display:block;
  margin-top:2px;
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}
#pdv .pdv28-interest button.active{
  border-color:var(--p26-blue);
  background:rgba(28,145,255,.12);
  box-shadow:inset 0 0 0 1px rgba(28,145,255,.22);
}
#pdv .pdv28-helper{
  display:block;
  grid-column:1/-1;
  color:var(--muted);
  font-size:11px;
  font-weight:800;
  margin-top:-3px;
}
.pdv28-receipt-review{
  display:grid;
  grid-template-columns:260px 1fr;
  gap:16px;
  align-items:start;
}
.pdv28-doc-options{
  border:1px solid var(--p26-border);
  background:var(--p26-soft);
  border-radius:18px;
  padding:14px;
  display:grid;
  gap:10px;
  color:var(--p26-text);
}
.pdv28-doc-options label{
  display:flex !important;
  align-items:flex-start;
  gap:8px;
  margin:0 !important;
  padding:10px;
  border:1px solid var(--p26-border);
  border-radius:14px;
  background:var(--p26-card);
  color:var(--p26-text) !important;
}
.pdv28-doc-options label.disabled{opacity:.55;}
.pdv28-doc-options small{display:block;color:var(--muted);}
.pdv28-receipt-box{
  max-height:58vh;
  overflow:auto;
  background:#f8fafc;
  border:1px solid #d7dee9;
  border-radius:18px;
  padding:18px;
}
body:not(.light) .pdv28-receipt-box{background:#eef3f8;color:#0f172a;}
.thermal-receipt{
  width:280px;
  max-width:100%;
  margin:0 auto;
  background:#fff;
  color:#000;
  padding:12px;
  border-radius:8px;
  font-family:Arial, sans-serif;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}
.thermal-receipt h1{
  font-size:18px;
  text-align:center;
  margin:0 0 6px;
  letter-spacing:.04em;
}
.thermal-receipt .center{text-align:center;}
.thermal-receipt p{font-size:12px;line-height:1.3;margin:4px 0;color:#000;}
.thermal-receipt small{font-size:10px;color:#222;}
.thermal-receipt table{width:100%;border-collapse:collapse;}
.thermal-receipt td{font-size:12px;color:#000;padding:3px 0;vertical-align:top;}
.thermal-receipt hr{border:0;border-top:1px dashed #111;margin:8px 0;}
@media (max-width:720px){
  .pdv28-receipt-review{grid-template-columns:1fr;}
}
@media print{
  @page{size:80mm auto;margin:3mm;}
  .print-area{padding:0 !important;}
  .thermal-receipt{
    width:72mm;
    max-width:72mm;
    box-shadow:none;
    border-radius:0;
    padding:0;
  }
}

/* PDV V29 - frente de caixa adaptável para monitores menores */
.workspace:has(#pdv.page-active){
  padding:16px 18px;
  height:100dvh;
  overflow:hidden;
  box-sizing:border-box;
}
.workspace:has(#pdv.page-active) .topbar{
  padding:6px 0 10px;
  gap:10px;
}
.workspace:has(#pdv.page-active) .topbar h1{font-size:clamp(22px,2.2vw,30px);}
.workspace:has(#pdv.page-active) .topbar .eyebrow{font-size:10px;margin-bottom:2px;}
.workspace:has(#pdv.page-active) .topbar-actions .search-box{height:34px;min-width:230px;}
.workspace:has(#pdv.page-active) .topbar-actions button{height:34px;padding:0 14px;font-size:12px;}
#pdv.page-active{height:calc(100dvh - 86px);overflow:hidden;}
#pdv .pdv29{
  height:100%;
  min-height:0;
  gap:6px;
  overflow:hidden;
  --p26-card:#fff;
  --p26-text:#0f172a;
}
body:not(.light) #pdv .pdv29{--p26-card:rgba(15,23,42,.82);--p26-text:#e5edf8;}
#pdv .pdv29-top{
  padding:7px 10px;
  border-radius:14px;
  min-height:44px;
}
#pdv .pdv29 .pdv26-title h2{font-size:16px;line-height:1.05;margin:0;}
#pdv .pdv29 .pdv26-title p{font-size:11px;line-height:1.15;margin:2px 0 0;}
#pdv .pdv29 .pdv26-title .eyebrow{font-size:9px;margin:0 0 1px;}
#pdv .pdv29-actions{gap:5px;}
#pdv .pdv29-actions button{height:32px;padding:0 10px;font-size:11px;white-space:nowrap;}
#pdv .pdv29-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
#pdv .pdv29-kpis .pdv26-kpi{padding:7px 10px;border-radius:12px;min-height:42px;}
#pdv .pdv29-kpis .pdv26-kpi span{font-size:9px;letter-spacing:.09em;}
#pdv .pdv29-kpis .pdv26-kpi strong{font-size:15px;margin-top:2px;}
#pdv .pdv29-workbench{
  grid-template-columns:220px minmax(460px,1fr) 285px;
  gap:7px;
  min-height:0;
  flex:1;
}
#pdv .pdv29 .pdv26-panel{border-radius:14px;min-height:0;}
#pdv .pdv29-panel-head{padding:8px 10px 7px;min-height:0;}
#pdv .pdv29-panel-head h3{font-size:14px;margin:0;line-height:1.1;}
#pdv .pdv29-panel-head p{font-size:10.5px;line-height:1.15;margin:2px 0 0;}
#pdv .pdv29-customer-body{padding:9px;gap:7px;display:flex;flex-direction:column;min-height:0;}
#pdv .pdv29 .pdv26-field label{font-size:10.5px;margin-bottom:4px;}
#pdv .pdv29 .pdv26-input,#pdv .pdv29 .pdv26-select{height:36px;min-height:36px;padding:7px 10px;border-radius:11px;font-size:13px;}
#pdv .pdv29-client-actions{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0;}
#pdv .pdv29-client-actions .pdv26-btn{height:32px;padding:0 8px;font-size:11px;}
#pdv .pdv29-selected-client{padding:8px 9px;border-radius:11px;font-size:11px;line-height:1.25;}
#pdv .pdv26-suggestions{max-height:176px;border-radius:12px;padding:4px;}
#pdv .pdv26-suggestion{padding:8px 9px;}
#pdv .pdv26-suggestion strong{font-size:12px;}
#pdv .pdv26-suggestion small{font-size:10px;}
#pdv .pdv29-sale-body{display:grid;grid-template-rows:auto minmax(0,1fr);height:100%;min-height:0;padding:8px;gap:7px;}
#pdv .pdv29-product-search{position:relative;z-index:20;display:block;min-height:0;}
#pdv .pdv29-product-line{display:grid;grid-template-columns:minmax(220px,1fr) 88px 88px;gap:6px;align-items:center;}
#pdv .pdv29-product-input-wrap{position:relative;min-width:0;}
#pdv .pdv29-product-input{height:38px;font-size:13px;}
#pdv .pdv29-product-line .pdv26-btn{height:38px;border-radius:11px;padding:0 8px;font-size:11px;white-space:nowrap;}
#pdv .pdv29-product-results{
  display:none;
  position:absolute;
  top:calc(100% + 5px);
  left:0;
  right:0;
  z-index:80;
  max-height:190px;
  overflow:auto;
  padding:5px;
  border:1px solid var(--p26-border);
  border-radius:14px;
  background:var(--p26-card);
  box-shadow:0 18px 40px rgba(15,23,42,.22);
}
#pdv .pdv29-product-results.show{display:grid;grid-template-columns:1fr;gap:5px;}
#pdv .pdv29-product-results .pdv29-result{min-height:44px;padding:7px 9px;border-radius:10px;}
#pdv .pdv29-product-results .pdv29-result h4{font-size:12px;line-height:1.05;}
#pdv .pdv29-product-results .pdv29-result small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
#pdv .pdv29-product-results .pdv29-result strong{font-size:12px;}
#pdv .pdv29-product-results .pdv26-add{width:26px;height:26px;font-size:14px;}
#pdv .pdv29-empty-result{min-height:52px;padding:10px;font-size:11px;}
#pdv .pdv29-cart{padding:6px;border-radius:12px;min-height:0;overflow:auto;}
#pdv .pdv29-cart .pdv26-empty{min-height:100%;height:100%;padding:10px;font-size:13px;}
#pdv .pdv29-cart .pdv26-cart-table{border-spacing:0 5px;}
#pdv .pdv29-cart .pdv26-cart-table th{font-size:9px;padding:0 6px;}
#pdv .pdv29-cart .pdv26-cart-table td{padding:6px 6px;}
#pdv .pdv29-cart .pdv26-item-name{font-size:13px;}
#pdv .pdv29-cart .pdv26-item-meta{font-size:10px;}
#pdv .pdv29-cart .pdv26-qty{gap:3px;padding:3px;}
#pdv .pdv29-cart .pdv26-qty button{width:25px;height:25px;}
#pdv .pdv29-cart .pdv26-qty input{width:32px;font-size:12px;}
#pdv .pdv29-pay-body{padding:8px;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto;gap:6px;height:100%;min-height:0;}
#pdv .pdv29-summary{padding:9px;border-radius:12px;}
#pdv .pdv29-summary .pdv26-summary-line{margin:1px 0;font-size:12px;}
#pdv .pdv29-summary .pdv26-summary-line.total{font-size:16px;padding-top:6px;margin-top:5px;}
#pdv .pdv29-note-row{grid-template-columns:80px 1fr;gap:6px;}
#pdv .pdv29-note-row .pdv26-input{height:34px;}
#pdv .pdv29-method-tabs{gap:4px;}
#pdv .pdv29-method-tabs button{height:32px;padding:0 3px;font-size:11px;border-radius:10px;}
#pdv .pdv29-payment-form{grid-template-columns:1fr 1fr;gap:5px;margin-top:5px;}
#pdv .pdv29-payment-form label{font-size:10.5px;}
#pdv .pdv29-payment-form .pdv26-input,#pdv .pdv29-payment-form .pdv26-select{height:34px;min-height:34px;font-size:12px;}
#pdv .pdv29-payment-form .pdv26-btn{height:36px;border-radius:11px;font-size:12px;}
#pdv .pdv29-interest{gap:4px;}
#pdv .pdv29-interest > span{font-size:10px;}
#pdv .pdv29-interest > div{gap:5px;}
#pdv .pdv29-interest button{padding:7px 8px;border-radius:10px;font-size:12px;}
#pdv .pdv29-interest button small{font-size:9px;}
#pdv .pdv29-helper{font-size:10px;margin-top:-1px;line-height:1.2;}
#pdv .pdv29-payment-list{min-height:0;overflow:auto;display:flex;flex-direction:column;gap:5px;}
#pdv .pdv29-payment-list .pdv26-empty{min-height:40px;padding:8px;font-size:11px;}
#pdv .pdv29-payment-list .pdv26-pay-row{padding:6px 7px;border-radius:10px;}
#pdv .pdv29-payment-list .pdv26-pay-row small{font-size:10px;}
#pdv .pdv29-footer-actions{grid-template-columns:.85fr 1.35fr;gap:6px;}
#pdv .pdv29-footer-actions button{height:38px;border-radius:12px;font-size:13px;}
#pdv .pdv26-modal{max-height:92dvh;overflow:auto;}
@media (max-height:720px){
  .workspace:has(#pdv.page-active){padding:10px 14px;}
  .workspace:has(#pdv.page-active) .topbar{padding:3px 0 6px;}
  .workspace:has(#pdv.page-active) .topbar .eyebrow{display:none;}
  .workspace:has(#pdv.page-active) .topbar h1{font-size:22px;}
  #pdv.page-active{height:calc(100dvh - 58px);}
  #pdv .pdv29{gap:5px;}
  #pdv .pdv29-top{padding:5px 9px;min-height:36px;}
  #pdv .pdv29 .pdv26-title p{display:none;}
  #pdv .pdv29-actions button{height:28px;padding:0 8px;}
  #pdv .pdv29-kpis .pdv26-kpi{padding:5px 8px;min-height:32px;}
  #pdv .pdv29-kpis .pdv26-kpi strong{font-size:13px;}
  #pdv .pdv29-workbench{grid-template-columns:200px minmax(360px,1fr) 270px;gap:5px;}
  #pdv .pdv29-panel-head{padding:6px 8px;}
  #pdv .pdv29-panel-head p{display:none;}
  #pdv .pdv29-customer-body,#pdv .pdv29-sale-body,#pdv .pdv29-pay-body{padding:6px;gap:5px;}
  #pdv .pdv29 .pdv26-input,#pdv .pdv29 .pdv26-select{height:32px;min-height:32px;padding:6px 9px;}
  #pdv .pdv29-product-line{grid-template-columns:1fr 78px 78px;gap:5px;}
  #pdv .pdv29-product-line .pdv26-btn{height:32px;font-size:10px;}
  #pdv .pdv29-cart .pdv26-cart-table td{padding:4px 5px;}
  #pdv .pdv29-summary .pdv26-summary-line{font-size:11px;}
  #pdv .pdv29-summary .pdv26-summary-line.total{font-size:14px;}
  #pdv .pdv29-note-row{grid-template-columns:70px 1fr;}
  #pdv .pdv29-method-tabs button{height:28px;font-size:10px;}
  #pdv .pdv29-payment-form .pdv26-input,#pdv .pdv29-payment-form .pdv26-select{height:30px;min-height:30px;}
  #pdv .pdv29-footer-actions button{height:34px;}
}
@media (max-width:1180px){
  .workspace:has(#pdv.page-active){overflow:auto;}
  #pdv.page-active{height:auto;overflow:visible;}
  #pdv .pdv29{height:auto;overflow:visible;}
  #pdv .pdv29-workbench{grid-template-columns:1fr;}
  #pdv .pdv29-cart{min-height:180px;max-height:320px;}
  #pdv .pdv29-pay-body{height:auto;}
}

/* V30 ajustes - clientes e comprovante */
#pdv .pdv29 .pdv26-client-box{position:relative;z-index:40;}
#pdv .pdv29 .pdv26-suggestions{
  background:#ffffff;
  border:1px solid #cbd5e1;
  box-shadow:0 18px 36px rgba(15,23,42,.22);
  padding:8px;
  max-height:220px;
}
body:not(.light) #pdv .pdv29 .pdv26-suggestions{
  background:#ffffff;
  border-color:#cbd5e1;
}
#pdv .pdv29 .pdv30-client-suggestion,
#pdv .pdv29 .pdv30-client-empty{
  width:100%;
  border:1px solid #e2e8f0;
  background:#ffffff;
  border-radius:12px;
  padding:10px 11px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  text-align:left;
}
#pdv .pdv29 .pdv30-client-suggestion + .pdv30-client-suggestion,
#pdv .pdv29 .pdv30-client-empty + .pdv30-client-suggestion,
#pdv .pdv29 .pdv30-client-suggestion + .pdv30-client-empty{margin-top:6px;}
#pdv .pdv29 .pdv30-client-suggestion:hover{background:#eff6ff;border-color:#93c5fd;}
#pdv .pdv29 .pdv30-client-main{display:flex;flex-direction:column;gap:3px;min-width:0;}
#pdv .pdv29 .pdv30-client-main strong{font-size:13px;line-height:1.2;color:#0f172a;white-space:normal;overflow-wrap:anywhere;}
#pdv .pdv29 .pdv30-client-main small{font-size:11px;line-height:1.25;color:#475569;white-space:normal;overflow-wrap:anywhere;}
#pdv .pdv29 .pdv30-client-tag{flex-shrink:0;font-size:10px;font-weight:800;color:#2563eb;background:#dbeafe;border-radius:999px;padding:5px 8px;line-height:1;}
#pdv .pdv29 .pdv30-client-empty strong{font-size:13px;color:#0f172a;}
#pdv .pdv29 .pdv30-client-empty small{font-size:11px;color:#475569;display:block;margin-top:3px;}

.thermal-receipt .receipt-brand{margin-bottom:4px;}
.thermal-receipt .receipt-logo{display:block;width:118px;max-width:100%;height:auto;margin:0 auto 6px;}
.thermal-receipt .receipt-qr-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;align-items:start;margin-top:10px;}
.thermal-receipt .receipt-qr-box{text-align:center;}
.thermal-receipt .receipt-qr-box img{display:block;width:70px;height:70px;margin:0 auto 4px;border:1px solid #dbe2ea;border-radius:8px;}
.thermal-receipt .receipt-qr-box span{display:block;font-size:10px;font-weight:700;line-height:1.2;color:#000;}
.thermal-receipt .receipt-qr-box small{display:block;font-size:9px;line-height:1.2;color:#111;}
.thermal-receipt .receipt-thanks{margin-top:8px;}
@media print{
  .thermal-receipt .receipt-logo{width:100px;margin-bottom:5px;}
  .thermal-receipt .receipt-qr-row{gap:6px;margin-top:8px;}
  .thermal-receipt .receipt-qr-box img{width:56px;height:56px;margin-bottom:3px;border-color:#ddd;}
  .thermal-receipt .receipt-qr-box span{font-size:9px;}
  .thermal-receipt .receipt-qr-box small{font-size:8px;}
}

/* V31 - refinamento PDV, comprovante térmico e página de pedidos */
#pdv.page-active{
  display:flex;
  flex-direction:column;
  min-height:calc(100dvh - 96px);
  overflow:hidden;
}
#pdv .pdv29{
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr);
  gap:7px;
  min-height:0;
  height:100%;
}
#pdv .pdv29-workbench{
  grid-template-columns:190px minmax(0,1fr) 300px;
  align-items:stretch;
}
#pdv .pdv29-sale-panel,
#pdv .pdv29-pay-panel,
#pdv .pdv29-customer-panel{min-width:0;overflow:hidden;}
#pdv .pdv29-cart{max-height:none;}
#pdv .pdv29-cart .pdv26-cart-table td{vertical-align:middle;}
#pdv .pdv29-product-results{max-height:220px;}
#pdv .pdv29-payment-list{padding-right:2px;}
#pdv .pdv29 .pdv26-modal-footer{flex-wrap:wrap;gap:8px;}
#pdv .pdv29 .pdv26-modal-footer .pdv26-btn{flex:1 1 180px;}

@media (max-width:1600px){
  #pdv .pdv29-workbench{grid-template-columns:180px minmax(0,1fr) 290px;}
}
@media (max-width:1440px){
  #pdv .pdv29-workbench{grid-template-columns:170px minmax(0,1fr) 280px;gap:6px;}
  #pdv .pdv29 .pdv26-input,#pdv .pdv29 .pdv26-select{font-size:12px;}
  #pdv .pdv29-summary .pdv26-summary-line.total{font-size:15px;}
}
@media (max-width:1280px){
  #pdv.page-active{overflow:auto;height:auto;}
  #pdv .pdv29{height:auto;}
  #pdv .pdv29-workbench{grid-template-columns:1fr;}
  #pdv .pdv29-customer-panel{order:1;}
  #pdv .pdv29-sale-panel{order:2;}
  #pdv .pdv29-pay-panel{order:3;}
  #pdv .pdv29-cart{min-height:220px;}
}

.thermal-receipt{
  width:280px;
  max-width:280px;
  margin:0 auto;
  padding:10px 12px 12px;
  background:#fff;
  color:#000;
  font-family:Arial, Helvetica, sans-serif;
}
.thermal-receipt p,
.thermal-receipt td,
.thermal-receipt small,
.thermal-receipt strong,
.thermal-receipt span{color:#000;}
.thermal-receipt .receipt-store-name{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;margin:0 0 4px;}
.thermal-receipt .receipt-meta-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:8px 0 6px;}
.thermal-receipt .receipt-meta-grid div{border:1px dashed #111;border-radius:8px;padding:5px 6px;}
.thermal-receipt .receipt-meta-grid span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.06em;opacity:.8;}
.thermal-receipt .receipt-meta-grid strong{display:block;font-size:11px;line-height:1.2;margin-top:2px;}
.thermal-receipt td{font-size:11px;}
.thermal-receipt p{font-size:11px;}
.thermal-receipt .receipt-thanks{font-size:10px;line-height:1.35;}
@media print{
  .thermal-receipt{width:280px;max-width:280px;padding:8px 10px 10px;}
  .thermal-receipt .receipt-meta-grid{gap:4px;margin:6px 0;}
  .thermal-receipt td,.thermal-receipt p{font-size:10px;}
}

.sales-orders-metrics{margin-bottom:18px;grid-template-columns:repeat(5,minmax(0,1fr));}
.sales-orders-header{gap:14px;flex-wrap:wrap;}
.sales-orders-actions{display:flex;gap:10px;flex-wrap:wrap;}
.sales-orders-filters{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:12px;
  margin-top:18px;
  margin-bottom:16px;
}
.sales-orders-filters label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted-text, #64748b);}
.sales-orders-filters input,
.sales-orders-filters select{
  height:42px;
  border-radius:14px;
  border:1px solid rgba(148,163,184,.3);
  background:rgba(255,255,255,.72);
  color:inherit;
  padding:0 14px;
}
body:not(.light) .sales-orders-filters input,
body:not(.light) .sales-orders-filters select{background:rgba(15,23,42,.48);}
.sales-filter-search{grid-column:span 1;}
.sales-orders-table-wrap table{min-width:1120px;}
.sales-client-cell{display:flex;flex-direction:column;gap:3px;}
.sales-client-cell small{font-size:11px;color:var(--muted-text, #64748b);}
.sales-actions-row{display:flex;flex-wrap:wrap;gap:6px;}
.table-action.danger{border-color:#fecaca;color:#b91c1c;background:#fff5f5;}
body:not(.light) .table-action.danger{background:rgba(127,29,29,.2);color:#fecaca;border-color:rgba(248,113,113,.4);}
.sales-status-stack{display:flex;flex-wrap:wrap;gap:6px;align-items:center;}
.sales-status-badge,
.sales-mini-chip{display:inline-flex;align-items:center;justify-content:center;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:700;line-height:1;}
.sales-status-badge.ok,.sales-mini-chip.ok{background:#dcfce7;color:#166534;}
.sales-status-badge.warn,.sales-mini-chip.warn{background:#fef3c7;color:#92400e;}
.sales-status-badge.danger{background:#fee2e2;color:#b91c1c;}
.sales-status-badge.neutral{background:#e2e8f0;color:#334155;}
.sales-empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px 14px;gap:6px;text-align:center;color:var(--muted-text, #64748b);}
.sales-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.sales-detail-card{border:1px solid rgba(148,163,184,.24);border-radius:16px;padding:16px;background:rgba(255,255,255,.65);}
body:not(.light) .sales-detail-card{background:rgba(15,23,42,.45);}
.sales-detail-card.full{grid-column:1 / -1;}
.sales-detail-card h3{margin:0 0 12px;font-size:15px;}
.sales-detail-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.sales-detail-kpis div,
.sales-detail-list div,
.sales-payments-list div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed rgba(148,163,184,.3);}
.sales-detail-kpis span,
.sales-detail-list span,
.sales-payments-list span{color:var(--muted-text, #64748b);font-size:12px;}
.sales-detail-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px;}
.sales-payments-list{display:flex;flex-direction:column;}
.sales-fiscal-box{display:flex;flex-direction:column;gap:10px;}
.sales-fiscal-note{padding:12px 14px;border-radius:14px;background:rgba(59,130,246,.08);border:1px solid rgba(59,130,246,.18);font-size:13px;line-height:1.45;}

@media (max-width:1280px){
  .sales-orders-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
  .sales-orders-filters{grid-template-columns:repeat(2,minmax(0,1fr));}
  .sales-filter-search{grid-column:1 / -1;}
}
@media (max-width:840px){
  .sales-orders-metrics{grid-template-columns:1fr;}
  .sales-orders-filters{grid-template-columns:1fr;}
  .sales-detail-grid{grid-template-columns:1fr;}
  .sales-detail-card.full{grid-column:auto;}
}


/* V33 - auditoria final PDV + Pedidos */
#pdv .pdv29 .pdv26-client-box{overflow:visible;}
#pdv .pdv29 .pdv26-client-box .pdv26-suggestions{
  min-width:330px;
  width:min(370px, calc(100vw - 28px));
  max-height:230px;
  overflow:auto;
  z-index:300;
}
#pdv .pdv29 .pdv30-client-suggestion{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
#pdv .pdv29 .pdv30-client-main strong,
#pdv .pdv29 .pdv30-client-main small{
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:normal;
  overflow-wrap:normal;
}
#pdv .pdv29 .pdv30-client-main strong{font-size:13px;}
#pdv .pdv29 .pdv30-client-main small{font-size:11px;}
#pdv .pdv29 .pdv30-client-tag{
  align-self:center;
  white-space:nowrap;
  padding:5px 7px;
}

#pdv .pdv29-workbench{
  grid-template-columns:170px minmax(420px,1fr) 285px;
  gap:8px;
}
#pdv .pdv29-customer-panel,
#pdv .pdv29-sale-panel,
#pdv .pdv29-pay-panel{min-height:0;}
#pdv .pdv29-pay-body{
  overflow:auto;
  scrollbar-width:thin;
}
#pdv .pdv29-footer-actions{
  position:sticky;
  bottom:0;
  z-index:20;
  background:linear-gradient(180deg, rgba(248,250,252,.72), rgba(248,250,252,1) 40%);
  padding-top:6px;
}
body:not(.light) #pdv .pdv29-footer-actions{
  background:linear-gradient(180deg, rgba(15,23,42,.72), rgba(15,23,42,1) 40%);
}
#pdv .pdv29-payment-form .pdv33-change-helper{
  display:block;
  padding:8px 10px;
  border-radius:10px;
  background:rgba(59,130,246,.08);
  border:1px solid rgba(59,130,246,.16);
  color:#64748b;
  font-size:11px;
  line-height:1.25;
}
#pdv .pdv29-payment-form .pdv33-change-helper.show{
  background:rgba(34,197,94,.12);
  border-color:rgba(34,197,94,.24);
  color:#166534;
  font-weight:800;
}
#pdv .pdv29-payment-form .pdv33-change-helper strong{font-size:13px;}

@media (max-width:1500px){
  #pdv .pdv29-workbench{grid-template-columns:160px minmax(380px,1fr) 270px;gap:6px;}
  #pdv .pdv29-actions button{padding:0 8px;}
  #pdv .pdv29 .pdv26-input,#pdv .pdv29 .pdv26-select{font-size:12px;}
  #pdv .pdv29-method-tabs button{font-size:10.5px;}
  #pdv .pdv29-interest button{font-size:11px;padding:6px;}
}
@media (max-height:880px){
  .workspace:has(#pdv.page-active){padding:8px 12px;}
  .workspace:has(#pdv.page-active) .topbar{padding:2px 0 6px;min-height:0;}
  .workspace:has(#pdv.page-active) .topbar .eyebrow{font-size:10px;}
  .workspace:has(#pdv.page-active) .topbar h1{font-size:24px;line-height:1;}
  .workspace:has(#pdv.page-active) .top-actions{gap:8px;}
  .workspace:has(#pdv.page-active) .top-actions .search-box{height:34px;}
  #pdv.page-active{min-height:calc(100dvh - 76px);height:calc(100dvh - 76px);}
  #pdv .pdv29{gap:5px;}
  #pdv .pdv29-top{padding:5px 8px;min-height:34px;}
  #pdv .pdv29 .pdv26-title h2{font-size:14px;}
  #pdv .pdv29 .pdv26-title p:not(.eyebrow){display:none;}
  #pdv .pdv29-actions button{height:28px;font-size:10.5px;}
  #pdv .pdv29-kpis{gap:5px;}
  #pdv .pdv29-kpis .pdv26-kpi{min-height:34px;padding:5px 8px;}
  #pdv .pdv29-kpis .pdv26-kpi span{font-size:8px;}
  #pdv .pdv29-kpis .pdv26-kpi strong{font-size:13px;}
  #pdv .pdv29-panel-head{padding:6px 8px;}
  #pdv .pdv29-panel-head h3{font-size:13px;}
  #pdv .pdv29-panel-head p{font-size:9.5px;line-height:1.1;}
  #pdv .pdv29-customer-body,
  #pdv .pdv29-sale-body,
  #pdv .pdv29-pay-body{padding:6px;gap:5px;}
  #pdv .pdv29 .pdv26-field label{font-size:9.5px;}
  #pdv .pdv29 .pdv26-input,#pdv .pdv29 .pdv26-select{height:30px;min-height:30px;border-radius:10px;padding:5px 8px;}
  #pdv .pdv29-client-actions .pdv26-btn{height:28px;font-size:10px;}
  #pdv .pdv29-selected-client{font-size:10px;padding:7px;}
  #pdv .pdv29-product-line{grid-template-columns:minmax(200px,1fr) 82px 82px;}
  #pdv .pdv29-product-input{height:32px;}
  #pdv .pdv29-product-line .pdv26-btn{height:32px;}
  #pdv .pdv29-cart .pdv26-cart-table td{padding:4px;}
  #pdv .pdv29-cart .pdv26-item-name{font-size:12px;}
  #pdv .pdv29-cart .pdv26-item-meta{font-size:9.5px;}
  #pdv .pdv29-cart .pdv26-qty button{width:23px;height:23px;}
  #pdv .pdv29-cart .pdv26-qty input{width:30px;}
  #pdv .pdv29-summary{padding:7px;}
  #pdv .pdv29-summary .pdv26-summary-line{font-size:10.5px;}
  #pdv .pdv29-summary .pdv26-summary-line.total{font-size:13px;}
  #pdv .pdv29-note-row .pdv26-input{height:30px;}
  #pdv .pdv29-method-tabs button{height:27px;font-size:10px;}
  #pdv .pdv29-interest button small{display:none;}
  #pdv .pdv29-payment-form{gap:4px;}
  #pdv .pdv29-payment-form .pdv26-input,#pdv .pdv29-payment-form .pdv26-select{height:29px;min-height:29px;}
  #pdv .pdv29-payment-form .pdv26-btn{height:31px;}
  #pdv .pdv29-payment-form .pdv33-change-helper{padding:6px 8px;font-size:10px;}
  #pdv .pdv29-payment-list .pdv26-empty{min-height:34px;padding:6px;}
  #pdv .pdv29-footer-actions button{height:34px;}
}
@media (max-width:1280px){
  #pdv.page-active{height:auto;min-height:auto;overflow:visible;}
  #pdv .pdv29-workbench{grid-template-columns:1fr;}
  #pdv .pdv29-pay-body{overflow:visible;}
  #pdv .pdv29-footer-actions{position:static;}
  #pdv .pdv29 .pdv26-client-box .pdv26-suggestions{min-width:min(330px, calc(100vw - 36px));}
}

/* Pedidos de Vendas - refinamento visual e remoção de pendências fiscais visíveis */
.sales-orders-metrics{grid-template-columns:repeat(4,minmax(0,1fr));}
.sales-orders-table-wrap{
  overflow:auto;
  border-radius:16px;
}
.sales-orders-table-wrap table{
  min-width:1040px;
}
.sales-orders-panel{
  overflow:hidden;
}
.sales-actions-row{
  gap:5px;
}
.sales-actions-row .table-action{
  padding:7px 10px;
  font-size:12px;
  white-space:nowrap;
}
.sales-status-stack .sales-mini-chip:empty{display:none;}
.sales-detail-badges:empty{display:none;}
.pdv26-modal{
  max-height:calc(100dvh - 36px);
  overflow:auto;
}
.pdv26-modal-footer{
  position:sticky;
  bottom:0;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  border-top:1px solid rgba(148,163,184,.18);
  margin-top:12px;
}
body:not(.light) .pdv26-modal-footer{
  background:rgba(15,23,42,.94);
}
@media (max-width:1400px){
  .sales-orders-filters{grid-template-columns:repeat(3,minmax(0,1fr));}
  .sales-filter-search{grid-column:1 / -1;}
  .sales-orders-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:900px){
  .sales-orders-filters{grid-template-columns:1fr;}
  .sales-orders-metrics{grid-template-columns:1fr;}
}


/* V34 - auditoria geral responsiva, cliente no PDV, impressão térmica e pedidos */
html, body { overflow-x:hidden; }
.workspace{min-width:0;}
.page{min-width:0;}
.panel-card{min-width:0;}
.table-wrapper{overflow:auto;-webkit-overflow-scrolling:touch;}
.table-wrapper table{border-collapse:separate;border-spacing:0;}
#clientes .table-wrapper table{min-width:1080px;}
#clientes .table-wrapper td,
#clientes .table-wrapper th{vertical-align:middle;}
#clientes .table-wrapper td{overflow-wrap:anywhere;}
#clientes .table-wrapper{border-radius:24px;}

/* PDV: cliente não pode ficar espremido em telas de MacBook/caixa */
#pdv .pdv29-customer-panel{overflow:visible!important;z-index:80;}
#pdv .pdv29 .pdv26-client-box{position:relative;overflow:visible!important;z-index:240;}
#pdv .pdv29 .pdv26-client-box .pdv26-suggestions{
  position:absolute;
  top:calc(100% + 8px);
  left:0;
  right:auto;
  width:min(460px, calc(100vw - 40px));
  min-width:min(420px, calc(100vw - 40px));
  max-height:250px;
  overflow:auto;
  z-index:9999;
}
#pdv .pdv29 .pdv30-client-suggestion{
  min-height:62px;
  padding:12px 14px;
}
#pdv .pdv29 .pdv30-client-main strong{
  font-size:15px;
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#pdv .pdv29 .pdv30-client-main small{
  font-size:13px;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
#pdv .pdv29 .pdv30-client-tag{font-size:11px;}

/* Abaixo de 1600px, cliente vira faixa superior para sobrar espaço de leitura */
@media (max-width:1600px){
  #pdv .pdv29-workbench{
    grid-template-columns:minmax(0,1fr) 300px!important;
    grid-template-rows:auto minmax(0,1fr);
  }
  #pdv .pdv29-customer-panel{
    grid-column:1 / -1;
    grid-row:1;
  }
  #pdv .pdv29-sale-panel{
    grid-column:1;
    grid-row:2;
  }
  #pdv .pdv29-pay-panel{
    grid-column:2;
    grid-row:2;
  }
  #pdv .pdv29-customer-body{
    display:grid;
    grid-template-columns:minmax(300px,1fr) auto minmax(190px,240px) 190px;
    align-items:end;
    gap:10px;
  }
  #pdv .pdv29-customer-body .pdv26-field{margin:0;}
  #pdv .pdv29-client-actions{display:flex;gap:8px;align-self:end;}
  #pdv #p26ClientState{align-self:stretch;display:flex;align-items:center;}
  #pdv .pdv29-customer-body .pdv26-field:has(#p26Seller){align-self:end;}
  #pdv .pdv29 .pdv26-client-box .pdv26-suggestions{
    width:min(560px, calc(100vw - 360px));
    min-width:420px;
  }
}
@media (max-width:1220px){
  #pdv .pdv29-workbench{grid-template-columns:1fr!important;grid-template-rows:auto auto auto;}
  #pdv .pdv29-customer-panel,
  #pdv .pdv29-sale-panel,
  #pdv .pdv29-pay-panel{grid-column:1;grid-row:auto;}
  #pdv .pdv29-customer-body{grid-template-columns:1fr;align-items:stretch;}
  #pdv .pdv29-client-actions{display:grid;grid-template-columns:1fr 1fr;}
  #pdv .pdv29 .pdv26-client-box .pdv26-suggestions{width:100%;min-width:0;}
}

/* Monitores baixos: tudo mais compacto */
@media (max-height:820px){
  .workspace:has(#pdv.page-active){padding:7px 10px;}
  .workspace:has(#pdv.page-active) .topbar{padding:0 0 5px;}
  .workspace:has(#pdv.page-active) .topbar h1{font-size:22px;}
  #pdv.page-active{height:calc(100dvh - 64px);min-height:calc(100dvh - 64px);}
  #pdv .pdv29-top{padding:5px 8px;}
  #pdv .pdv29 .pdv26-title h2{font-size:13px;}
  #pdv .pdv29-actions button{height:27px;font-size:10px;padding:0 7px;}
  #pdv .pdv29-kpis .pdv26-kpi{padding:5px 8px;min-height:32px;}
  #pdv .pdv29-kpis .pdv26-kpi strong{font-size:13px;}
  #pdv .pdv29-customer-body{gap:6px;}
  #pdv .pdv29-sale-body,#pdv .pdv29-pay-body,#pdv .pdv29-customer-body{padding:6px;}
  #pdv .pdv29-product-input,#pdv .pdv29-product-line .pdv26-btn{height:31px;}
  #pdv .pdv29-cart .pdv26-cart-table td{padding:3px 5px;}
  #pdv .pdv29-summary{padding:6px;}
  #pdv .pdv29-note-row{gap:6px;}
  #pdv .pdv29-method-tabs button{height:27px;}
  #pdv .pdv29-payment-form .pdv26-input,#pdv .pdv29-payment-form .pdv26-select{height:29px;}
  #pdv .pdv29-payment-form .pdv26-btn{height:30px;}
  #pdv .pdv29-footer-actions button{height:32px;}
}

/* Pedidos de vendas clean */
.sales-orders-metrics{
  grid-template-columns:repeat(4,minmax(170px,1fr))!important;
  gap:14px;
}
.sales-orders-metrics .metric-card{
  min-height:104px;
  padding:20px 22px;
}
.sales-orders-metrics .metric-card strong{font-size:28px;}
.sales-orders-panel{padding:22px;}
.sales-orders-header{align-items:center;}
.sales-orders-filters-v34{
  display:grid;
  grid-template-columns:320px 210px minmax(260px,1fr);
  gap:14px;
  align-items:end;
}
.sales-period-button{
  width:100%;
  min-height:54px;
  border:1px solid rgba(148,163,184,.36);
  background:rgba(255,255,255,.75);
  color:inherit;
  border-radius:16px;
  padding:9px 14px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  cursor:pointer;
}
.sales-period-button span{font-weight:800;font-size:14px;}
.sales-period-button small{font-size:12px;color:var(--muted-text,#64748b);margin-top:2px;}
body:not(.light) .sales-period-button{background:rgba(15,23,42,.55);}
.sales-orders-table-wrap{border:1px solid rgba(148,163,184,.18);background:rgba(255,255,255,.45);}
.sales-orders-table-wrap table{min-width:1050px;}
.sales-orders-table-wrap th{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#64748b;}
.sales-orders-table-wrap td{padding:15px 10px;border-bottom:1px solid rgba(148,163,184,.16);}
.sales-actions-row .table-action{border-radius:999px;}
.sales-status-stack{gap:4px;}
.sales-status-stack .sales-mini-chip{display:none!important;}
.sales-detail-badges:empty{display:none!important;}
.sales-detail-card .sales-detail-badges{margin-top:0;}

/* Calendário de período */
.sales-calendar-body{display:flex;flex-direction:column;gap:14px;}
.sales-calendar-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.sales-calendar-toolbar button{
  width:38px;height:38px;border-radius:999px;border:1px solid rgba(148,163,184,.28);
  background:rgba(255,255,255,.78);font-size:24px;line-height:1;cursor:pointer;
}
.sales-calendar-toolbar strong{text-align:center;font-size:15px;}
.sales-calendar-quick{display:flex;gap:8px;flex-wrap:wrap;}
.sales-calendar-quick button{
  border:1px solid rgba(148,163,184,.28);background:rgba(59,130,246,.08);color:#0f172a;
  border-radius:999px;padding:9px 12px;font-weight:800;cursor:pointer;
}
body:not(.light) .sales-calendar-quick button{color:#e2e8f0;background:rgba(59,130,246,.16);}
.sales-calendar-months{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.sales-calendar-month h4{margin:0 0 10px;text-align:center;font-size:15px;}
.sales-calendar-week,.sales-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;}
.sales-calendar-week span{text-align:center;font-size:10px;color:#94a3b8;font-weight:800;}
.sales-calendar-grid button,.sales-calendar-blank{
  min-height:36px;border-radius:12px;border:0;background:transparent;color:inherit;font-weight:700;
}
.sales-calendar-grid button{cursor:pointer;}
.sales-calendar-grid button:hover{background:rgba(59,130,246,.12);}
.sales-calendar-grid button.today{box-shadow:inset 0 0 0 2px rgba(59,130,246,.55);}
.sales-calendar-grid button.in-range{background:rgba(59,130,246,.12);}
.sales-calendar-grid button.selected{background:#0d8bff!important;color:#fff;}
.sales-calendar-grid button.start,.sales-calendar-grid button.end{box-shadow:0 8px 22px rgba(13,139,255,.26);}
@media (max-width:900px){
  .sales-calendar-months{grid-template-columns:1fr;}
  .sales-orders-filters-v34{grid-template-columns:1fr;}
  .sales-orders-metrics{grid-template-columns:1fr!important;}
}

/* Impressão térmica preto e branco + tamanho de cupom */
#printArea{background:#fff!important;color:#000!important;}
.thermal-receipt{
  width:72mm!important;
  max-width:72mm!important;
  padding:3mm 3mm 5mm!important;
  color:#000!important;
  background:#fff!important;
  font-family:Arial, Helvetica, sans-serif!important;
}
.thermal-receipt *{
  color:#000!important;
  box-shadow:none!important;
  text-shadow:none!important;
}
.thermal-receipt hr{
  border:0!important;
  border-top:1px dashed #000!important;
  margin:6px 0!important;
}
.thermal-receipt .receipt-logo{
  filter:grayscale(1) contrast(4)!important;
  width:34mm!important;
}
.thermal-receipt .receipt-qr-box img{
  filter:grayscale(1) contrast(4)!important;
  border:1px solid #000!important;
}
@media print{
  @page{size:80mm 210mm;margin:0;}
  html,body{background:#fff!important;width:80mm!important;margin:0!important;padding:0!important;}
  body *{visibility:hidden!important;}
  #printArea,#printArea *{visibility:visible!important;}
  #printArea{position:absolute!important;left:0!important;top:0!important;width:80mm!important;min-height:auto!important;padding:0!important;margin:0!important;background:#fff!important;}
  .thermal-receipt{width:72mm!important;max-width:72mm!important;margin:0!important;padding:3mm 3mm 5mm!important;}
  .thermal-receipt .receipt-logo{width:32mm!important;}
  .thermal-receipt .receipt-qr-row{display:grid!important;grid-template-columns:1fr 1fr!important;gap:4mm!important;}
  .thermal-receipt .receipt-qr-box img{width:17mm!important;height:17mm!important;}
  .thermal-receipt td,.thermal-receipt p{font-size:9px!important;line-height:1.25!important;}
  .thermal-receipt small{font-size:8px!important;}
}


/* V35 - venda com produto sem estoque mediante confirmação */
#pdv .pdv29-result.pdv35-out-stock{
  border-color:rgba(245,158,11,.48)!important;
  background:linear-gradient(180deg, rgba(255,251,235,.92), rgba(255,255,255,.86))!important;
}
#pdv .pdv29-result.pdv35-out-stock h4{
  color:#92400e!important;
}
#pdv .pdv29-result.pdv35-out-stock em{
  display:inline-flex;
  width:max-content;
  margin-top:4px;
  padding:4px 8px;
  border-radius:999px;
  background:#fef3c7;
  color:#92400e;
  font-style:normal;
  font-size:10px;
  font-weight:900;
  letter-spacing:.02em;
}
body:not(.light) #pdv .pdv29-result.pdv35-out-stock{
  background:linear-gradient(180deg, rgba(120,53,15,.22), rgba(15,23,42,.62))!important;
}
body:not(.light) #pdv .pdv29-result.pdv35-out-stock h4{
  color:#fde68a!important;
}
.pdv35-stock-warning{
  display:grid;
  grid-template-columns:54px minmax(0,1fr);
  gap:16px;
  align-items:start;
  padding:16px;
  border:1px solid rgba(245,158,11,.3);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,251,235,.86), rgba(255,255,255,.76));
}
body:not(.light) .pdv35-stock-warning{
  background:linear-gradient(180deg, rgba(120,53,15,.24), rgba(15,23,42,.58));
}
.pdv35-stock-icon{
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#fef3c7;
  font-size:26px;
}
.pdv35-stock-warning h3{
  margin:0 0 8px;
  font-size:18px;
}
.pdv35-stock-warning p{
  margin:4px 0;
  color:var(--text, #0f172a);
}
.pdv35-stock-warning small{
  display:block;
  margin-top:10px;
  color:var(--muted-text, #64748b);
  line-height:1.45;
}


/* V36 - PDV bloqueado quando caixa estiver fechado */
#pdv .pdv36-closed-state{
  display:none;
}
#pdv .pdv36-cash-closed .pdv29-kpis,
#pdv .pdv36-cash-closed .pdv29-workbench{
  display:none!important;
}
#pdv .pdv36-cash-closed .pdv36-closed-state{
  display:flex;
  flex-direction:column;
  min-height:clamp(440px, calc(100dvh - 240px), 760px);
  border:1px solid rgba(148,163,184,.22);
  border-radius:24px;
  background:linear-gradient(180deg, rgba(255,255,255,.72), rgba(248,250,252,.86));
  box-shadow:0 18px 55px rgba(15,23,42,.06);
  overflow:hidden;
}
body:not(.light) #pdv .pdv36-cash-closed .pdv36-closed-state{
  background:linear-gradient(180deg, rgba(17,24,39,.84), rgba(15,23,42,.9));
  border-color:rgba(148,163,184,.18);
  box-shadow:0 18px 55px rgba(0,0,0,.26);
}
#pdv .pdv36-closed-top{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:12px 16px;
  border-bottom:1px solid rgba(148,163,184,.18);
}
#pdv .pdv36-history{
  margin-left:auto;
  border:0;
  background:transparent;
  color:var(--muted-text,#64748b);
}
#pdv .pdv36-history:hover{
  background:rgba(59,130,246,.08);
  color:#0d8bff;
}
#pdv .pdv36-closed-pill{
  display:inline-flex;
  align-items:center;
  gap:7px;
  height:34px;
  padding:0 14px;
  border-radius:999px;
  background:#fee2e2;
  color:#b91c1c;
  border:1px solid #fecaca;
  font-size:13px;
  font-weight:900;
}
body:not(.light) #pdv .pdv36-closed-pill{
  background:rgba(127,29,29,.35);
  color:#f87171;
  border-color:rgba(248,113,113,.32);
}
#pdv .pdv36-open-mini{
  height:34px;
  padding:0 18px;
  border-radius:999px;
  background:#0d8bff;
  color:#fff;
  border-color:#0d8bff;
  font-weight:900;
}
#pdv .pdv36-closed-panel{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:8px;
  padding:50px 20px;
}
#pdv .pdv36-lock-icon{
  width:62px;
  height:62px;
  border-radius:24px;
  display:grid;
  place-items:center;
  background:rgba(15,23,42,.04);
  border:1px solid rgba(148,163,184,.14);
  font-size:28px;
  margin-bottom:10px;
}
body:not(.light) #pdv .pdv36-lock-icon{
  background:rgba(0,0,0,.18);
  border-color:rgba(148,163,184,.1);
}
#pdv .pdv36-closed-panel h3{
  margin:0;
  font-size:20px;
  letter-spacing:-.02em;
}
#pdv .pdv36-closed-panel p{
  margin:0 0 12px;
  color:var(--muted-text,#64748b);
  font-size:15px;
}
#pdv .pdv36-closed-panel .pdv26-primary{
  height:44px;
  min-width:142px;
  border-radius:999px;
  box-shadow:0 18px 35px rgba(13,139,255,.22);
}
#pdv .pdv36-cash-closed .pdv29-top{
  margin-bottom:8px;
}
#pdv .pdv36-cash-closed .pdv29-actions{
  align-items:center;
}
@media (max-width:900px){
  #pdv .pdv36-cash-closed .pdv36-closed-state{
    min-height:calc(100dvh - 230px);
    border-radius:20px;
  }
  #pdv .pdv36-closed-top{
    flex-wrap:wrap;
  }
  #pdv .pdv36-history{
    margin-left:0;
    width:100%;
    justify-content:flex-start;
  }
}


/* V37 - botões mais clean em Pedidos de Vendas */
.sales-actions-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:center!important;
  max-width:280px;
}
.sales-actions-row .table-action{
  min-height:31px!important;
  height:31px!important;
  padding:0 10px!important;
  border-radius:999px!important;
  font-size:11.5px!important;
  font-weight:850!important;
  box-shadow:none!important;
  background:rgba(255,255,255,.76)!important;
  border:1px solid rgba(148,163,184,.28)!important;
}
.sales-actions-row .table-action:hover{
  transform:none!important;
  border-color:rgba(13,139,255,.45)!important;
  color:#0d8bff!important;
  background:rgba(13,139,255,.07)!important;
}
.sales-actions-row .table-action.danger{
  color:#ef4444!important;
  background:rgba(254,242,242,.9)!important;
  border-color:#fecaca!important;
}
.sales-actions-row .table-action.danger:hover{
  background:#fee2e2!important;
  color:#b91c1c!important;
}
body:not(.light) .sales-actions-row .table-action{
  background:rgba(15,23,42,.58)!important;
  color:#dbeafe!important;
  border-color:rgba(148,163,184,.22)!important;
}
body:not(.light) .sales-actions-row .table-action.danger{
  background:rgba(127,29,29,.22)!important;
  color:#fecaca!important;
  border-color:rgba(248,113,113,.34)!important;
}
.sales-orders-table-wrap td:last-child{
  min-width:230px;
}
.sales-orders-table-wrap th:last-child{
  min-width:230px;
}
@media (max-width:1350px){
  .sales-actions-row{
    max-width:none;
    display:grid!important;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .sales-actions-row .table-action{
    width:100%;
    padding:0 8px!important;
  }
}


/* V38 - Pedidos de vendas: ações realmente compactas e clean */
.sales-orders-table-wrap table{
  table-layout:fixed!important;
  width:100%!important;
}
.sales-orders-table-wrap th:nth-child(1), .sales-orders-table-wrap td:nth-child(1){width:70px!important;}
.sales-orders-table-wrap th:nth-child(2), .sales-orders-table-wrap td:nth-child(2){width:150px!important;}
.sales-orders-table-wrap th:nth-child(3), .sales-orders-table-wrap td:nth-child(3){width:180px!important;}
.sales-orders-table-wrap th:nth-child(4), .sales-orders-table-wrap td:nth-child(4){width:130px!important;}
.sales-orders-table-wrap th:nth-child(5), .sales-orders-table-wrap td:nth-child(5){width:170px!important;}
.sales-orders-table-wrap th:nth-child(6), .sales-orders-table-wrap td:nth-child(6){width:140px!important;}
.sales-orders-table-wrap th:nth-child(7), .sales-orders-table-wrap td:nth-child(7){width:120px!important;}
.sales-orders-table-wrap th:nth-child(8), .sales-orders-table-wrap td:nth-child(8){width:260px!important;}

.sales-actions-row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:6px!important;
  align-items:center!important;
  justify-content:flex-start!important;
  max-width:245px!important;
}
.sales-actions-row .table-action{
  min-height:28px!important;
  height:28px!important;
  padding:0 9px!important;
  border-radius:999px!important;
  font-size:11px!important;
  line-height:1!important;
  font-weight:850!important;
  letter-spacing:-.01em!important;
  box-shadow:none!important;
  transform:none!important;
  background:#fff!important;
  border:1px solid rgba(148,163,184,.28)!important;
  color:#0f172a!important;
}
.sales-actions-row .table-action:hover{
  transform:none!important;
  background:#eff6ff!important;
  border-color:rgba(13,139,255,.5)!important;
  color:#0d8bff!important;
}
.sales-actions-row .table-action.danger{
  color:#ef4444!important;
  background:#fff5f5!important;
  border-color:#fecaca!important;
}
.sales-actions-row .table-action.danger:hover{
  background:#fee2e2!important;
  color:#b91c1c!important;
}
body:not(.light) .sales-actions-row .table-action{
  background:rgba(15,23,42,.62)!important;
  color:#e5e7eb!important;
  border-color:rgba(148,163,184,.22)!important;
}
body:not(.light) .sales-actions-row .table-action.danger{
  color:#fecaca!important;
  background:rgba(127,29,29,.24)!important;
  border-color:rgba(248,113,113,.32)!important;
}
.sales-status-stack .sales-mini-chip{
  display:none!important;
}
@media (max-width:1400px){
  .sales-orders-table-wrap table{
    min-width:980px!important;
  }
  .sales-actions-row{
    max-width:230px!important;
  }
  .sales-actions-row .table-action{
    font-size:10.5px!important;
    padding:0 8px!important;
  }
}
