/* Atualização final SABOR DA CARNE: aparência e fluxo próprios de açougue */
:root{
  --brand:#6b050d!important;
  --brand2:#b41d2b!important;
  --meat:#8b0b16;
  --meat-dark:#3b0307;
  --cream:#fff7ed;
  --butcher-line:#f4c7c7;
  --field-h:50px;
}
body{background:linear-gradient(180deg,#fff7ed 0,#f8fafc 320px)!important;}
.topbar{background:linear-gradient(135deg,#370005,#6b050d 55%,#9f1220)!important;border-bottom:3px solid #fbbf24;}
.butcher-brand{gap:10px!important;}
.butcher-brand img{background:#fff!important;border:2px solid #fff2!important;box-shadow:0 8px 20px #0003;}
.butcher-brand span{font-weight:950!important;letter-spacing:.03em;}
.butcher-brand small{display:block;font-size:11px;color:#fed7aa;font-weight:800;margin-left:4px;white-space:nowrap;}
.sidebar{background:linear-gradient(180deg,#270306,#111827)!important;color:#ffe4e6!important;}
.sidebar a{color:#ffe4e6!important;border:1px solid transparent;}
.sidebar a:hover,.sidebar a.active{background:linear-gradient(135deg,#6b050d,#9f1220)!important;color:#fff!important;border-color:#fecdd3!important;box-shadow:0 10px 26px rgba(107,5,13,.22);}
.nav-group-title{color:#fbbf24!important;}
.card.butcher-card,.butcher-card{border-color:#fecdd3!important;background:linear-gradient(180deg,#fff,#fff7ed)!important;}
.eyebrow{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:#fee2e2;color:#7f1d1d;font-weight:950;font-size:12px;padding:7px 11px;margin-bottom:8px;text-transform:uppercase;letter-spacing:.06em;}
.butcher-hero{padding:22px;border-radius:24px;background:radial-gradient(circle at right top,#fecaca 0,#fff7ed 35%,#fff 70%);border:1px solid #fecdd3;box-shadow:0 18px 42px rgba(107,5,13,.10);margin-bottom:18px;}
.butcher-hero.small{padding:18px 20px;}
.butcher-hero h1{font-size:clamp(28px,3vw,42px);color:#3b0307;}
.meat-stat .kpi-icon{background:linear-gradient(135deg,#fee2e2,#fff7ed)!important;color:#7f1d1d;}
.quick-tags{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;}
.quick-tags button{min-height:34px;padding:8px 12px;border-radius:999px;background:#fff1f2;color:#7f1d1d;border:1px solid #fecdd3;}
.table-search{max-width:420px!important;}
.badge.blue{background:#fee2e2!important;color:#7f1d1d!important;}

/* PDV estilo frente de caixa de açougue */
.pdv-balcao{max-width:1500px;margin:0 auto;}
.pdv-window{background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 20px 50px rgba(15,23,42,.15);overflow:hidden;}
.pdv-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;background:linear-gradient(90deg,#4a0006,#6b050d 62%,#3b0307);color:#fff;padding:14px 18px;border-bottom:4px solid #fbbf24;}
.pdv-logo-block{display:flex;align-items:center;gap:12px;min-width:0;}
.pdv-logo-block img{width:58px;height:58px;object-fit:contain;background:#fff;border-radius:10px;padding:4px;}
.pdv-logo-block b{display:block;font-size:22px;letter-spacing:.03em;}
.pdv-logo-block small{display:block;color:#fed7aa;font-weight:800;margin-top:2px;}
.pdv-status{display:flex;gap:10px;align-items:center;}
.pdv-status>div{min-width:92px;text-align:center;border-left:1px solid #ffffff33;padding-left:10px;}
.pdv-status span{display:block;color:#fecaca;font-size:12px;font-weight:850;}
.pdv-status b{display:block;color:#fff;font-size:16px;font-weight:950;}
.pdv-main-grid{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:470px;}
.pdv-left-panel{background:#f3f4f6;border-right:1px solid #d1d5db;padding:16px;display:flex;flex-direction:column;gap:14px;}
.customer-box label,.pdv-notes label{font-weight:950;color:#3b0307;}
.scale-card{background:#fff;border:1px solid #fecdd3;border-radius:18px;padding:16px;text-align:center;box-shadow:0 10px 26px #7f1d1d12;}
.scale-icon{font-size:44px;line-height:1;}
.scale-card h3{margin:8px 0 6px;color:#3b0307;}
.scale-card p{font-size:13px;color:#64748b;margin:0 0 12px;}
.ghost-dark{background:#111827!important;color:#fff!important;margin-top:8px;}
.pdv-help-box{margin-top:auto;background:#fff7ed;border:1px dashed #f59e0b;border-radius:16px;padding:12px;color:#7f1d1d;}
.pdv-help-box b{display:block;margin-bottom:5px;}
.pdv-help-box span{font-size:13px;line-height:1.4;}
.pdv-center-panel{padding:16px;background:#fff;}
.product-entry{display:grid;grid-template-columns:minmax(260px,1fr) minmax(220px,.7fr) 115px 140px 130px;gap:10px;align-items:end;margin-bottom:14px;}
.product-entry .field{grid-column:auto!important;}
.product-search-field{position:relative;}
.pdv-suggestions{position:absolute;z-index:30;left:0;right:0;top:100%;background:#fff;border:1px solid #fecdd3;border-radius:14px;box-shadow:0 18px 40px #0002;max-height:310px;overflow:auto;margin-top:6px;}
.pdv-suggestions button{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;border-radius:0;background:#fff;border-bottom:1px solid #f1f5f9;color:#111827;text-align:left;}
.pdv-suggestions button:hover{background:#fff1f2;}
.pdv-suggestions span{color:#7f1d1d;font-weight:900;white-space:nowrap;}
.add-meat{height:50px;background:linear-gradient(135deg,#6b050d,#b91c1c)!important;}
.pdv-cart-wrap{height:385px;overflow:auto;border-radius:4px!important;}
.pdv-table{min-width:760px;}
.pdv-table th{background:#f3f4f6!important;color:#6b050d!important;font-size:13px!important;}
.pdv-table td{font-size:15px;vertical-align:middle!important;}
.empty-cart{text-align:center;color:#64748b;padding:70px 20px!important;font-size:18px!important;}
.pdv-notes{margin-top:12px;}
.pdv-footer-bar{display:grid;grid-template-columns:360px minmax(360px,1fr) 260px 210px;gap:12px;align-items:stretch;background:#4a0006;color:#fff;padding:12px 14px;border-top:1px solid #7f1d1d;}
.pay-area{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.pdv-footer-bar .pay-btn{background:#fff!important;color:#4a0006!important;border:2px solid #fecdd3!important;border-radius:10px!important;min-height:54px!important;font-weight:950!important;}
.pdv-footer-bar .pay-btn.active{background:#fbbf24!important;color:#3b0307!important;border-color:#fff!important;box-shadow:0 0 0 3px #fbbf2444;}
.money-area{display:grid;grid-template-columns:repeat(3,minmax(105px,1fr));gap:8px;align-items:end;}
.money-area label{color:#fecaca!important;font-size:12px!important;}
.money-area input,.money-area select{min-height:44px!important;line-height:44px!important;border-radius:9px!important;font-weight:950!important;font-size:17px!important;text-align:right!important;}
.final-total{display:flex;flex-direction:column;justify-content:center;text-align:right;padding:6px 10px;background:#6b050d;border-radius:10px;border:1px solid #fecdd344;}
.final-total span{color:#fecaca;font-weight:900;}
.final-total b{font-size:31px;line-height:1.1;color:#fff;}
.final-total small{color:#fed7aa;font-weight:750;line-height:1.2;}
.finish-sale{background:#fff!important;color:#6b050d!important;border-radius:10px!important;font-size:20px!important;font-weight:950!important;border:3px solid #fbbf24!important;min-height:82px!important;}
.hotkeys{display:flex;gap:8px;background:#f3f4f6;padding:8px;border-top:1px solid #d1d5db;}
.hotkeys span{flex:1;text-align:center;background:#fff;border:1px solid #d1d5db;border-radius:8px;padding:8px;color:#6b050d;font-weight:950;font-size:12px;}

@media(max-width:1150px){
  .pdv-main-grid{grid-template-columns:1fr;}
  .pdv-left-panel{border-right:0;border-bottom:1px solid #d1d5db;display:grid;grid-template-columns:1fr 1fr 1fr;}
  .product-entry{grid-template-columns:1fr 1fr;}
  .product-entry .small{grid-column:auto!important;}
  .add-meat{grid-column:1/-1;}
  .pdv-footer-bar{grid-template-columns:1fr;}
  .final-total{text-align:left;}
}
@media(max-width:720px){
  .butcher-brand small{display:none;}
  .pdv-topline{display:block;text-align:left;}
  .pdv-status{margin-top:12px;justify-content:space-between;}
  .pdv-status>div{min-width:0;flex:1;}
  .pdv-left-panel{display:block;}
  .scale-card,.pdv-help-box{margin-top:12px;}
  .product-entry{grid-template-columns:1fr;}
  .money-area{grid-template-columns:1fr 1fr;}
  .hotkeys{display:none;}
}


.app-footer,.app-powered{font-size:12px;color:#7f1d1d;text-align:center;font-weight:800;opacity:.88;margin:18px auto 8px}.app-powered{margin-top:auto;background:#fff;border:1px solid #fecdd3;border-radius:14px;padding:10px}
.pdv-only-body{background:#111827!important;min-height:100vh;margin:0;overflow:auto}.pdv-standalone-window{max-width:none;width:100vw;min-height:100vh;border-radius:0;border:0;box-shadow:none}.pdv-standalone-top{position:sticky;top:0;z-index:40}.pdv-actions{display:flex;gap:8px;flex-wrap:wrap}.pdv-actions .btn{border-color:#ffffff66!important;color:#fff!important;background:#ffffff18!important}.pdv-actions .btn:hover{background:#fff!important;color:#6b050d!important}
.scale-sync-mini{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid #fecdd3;border-radius:18px;padding:13px;box-shadow:0 10px 26px #7f1d1d12}.scale-sync-mini img{width:48px;height:48px;object-fit:contain;background:#fff;border-radius:12px}.scale-sync-mini b{display:block;color:#3b0307;font-size:15px}.scale-sync-mini span{display:block;color:#64748b;font-size:12px;line-height:1.35;margin-top:2px}.scale-sync-mini.active{border-color:#22c55e;background:#f0fdf4}.barcode-box{background:#fff;border:1px solid #d1d5db;border-radius:18px;padding:13px}.barcode-box label{font-weight:950;color:#3b0307}.barcode-box input{margin-top:6px;font-size:18px;font-weight:900;letter-spacing:.04em}.barcode-box small{display:block;margin-top:7px;color:#64748b;line-height:1.35}.scale-use-warning{background:#fff7ed;border:1px dashed #f59e0b;border-radius:14px;padding:10px 12px;color:#7f1d1d;font-weight:850;margin:-4px 0 12px}.pdv-table th:nth-child(6),.pdv-table td:nth-child(6){text-align:center;white-space:nowrap}.hotkeys span{min-width:110px}
.balanca-admin-card{border:2px solid #fecdd3!important;background:linear-gradient(180deg,#fff,#fff7ed)!important}.balanca-admin-head{display:flex;align-items:center;gap:16px}.balanca-admin-head img{width:82px;height:82px;object-fit:contain;background:#fff;border-radius:18px;border:1px solid #fecdd3;padding:5px}.balanca-admin-head h2{margin:0;color:#3b0307}.scale-admin-result{margin-top:12px;background:#111827;color:#fff;border-radius:14px;padding:12px;min-height:48px;line-height:1.5}.checkline{display:flex!important;gap:8px;align-items:center;min-height:50px}
@media (min-width:1300px){.pdv-main-grid{grid-template-columns:310px minmax(0,1fr);min-height:calc(100vh - 186px)}.pdv-cart-wrap{height:calc(100vh - 410px);min-height:330px}.product-entry{grid-template-columns:minmax(280px,1fr) minmax(220px,.7fr) 120px 150px 145px}}
@media(max-width:850px){.pdv-status{flex-wrap:wrap}.pdv-actions{margin-top:12px}.scale-sync-mini,.barcode-box,.app-powered{margin-top:12px}}



.pdv-only-body{overflow:auto!important;min-height:100dvh!important;}
.pdv-standalone-window{min-height:100dvh!important;display:flex!important;flex-direction:column!important;overflow:visible!important;}
.pdv-main-grid{flex:1 1 auto!important;min-height:0!important;}
.pdv-center-panel{min-width:0!important;display:flex!important;flex-direction:column!important;}
.pdv-cart-wrap{flex:1 1 auto!important;height:auto!important;min-height:180px!important;max-height:none!important;}
.pdv-footer-bar,.hotkeys{flex:0 0 auto!important;}
.pdv-table{width:100%!important;min-width:680px!important;}
@media (min-width:1300px){
  .pdv-main-grid{min-height:0!important;}
  .pdv-cart-wrap{height:auto!important;min-height:260px!important;}
}
@media (max-width:1280px){
  .pdv-topline{padding:10px 12px!important;gap:10px!important;}
  .pdv-logo-block img{width:48px!important;height:48px!important;}
  .pdv-logo-block b{font-size:18px!important;}
  .pdv-logo-block small{font-size:11px!important;}
  .pdv-status>div{min-width:74px!important;padding-left:6px!important;}
  .pdv-main-grid{grid-template-columns:250px minmax(0,1fr)!important;}
  .pdv-left-panel{padding:12px!important;gap:10px!important;}
  .pdv-center-panel{padding:12px!important;}
  .product-entry{grid-template-columns:minmax(220px,1fr) minmax(180px,.7fr) 95px 120px 112px!important;gap:8px!important;}
  .pdv-footer-bar{grid-template-columns:280px minmax(280px,1fr) 220px 170px!important;gap:8px!important;padding:8px 10px!important;}
  .finish-sale{min-height:66px!important;font-size:17px!important;}
  .final-total b{font-size:24px!important;}
  .hotkeys{padding:6px!important;gap:5px!important;}
  .hotkeys span{font-size:11px!important;min-width:82px!important;padding:6px!important;}
}
@media (max-width:1100px){
  .pdv-topline{position:relative!important;}
  .pdv-main-grid{grid-template-columns:1fr!important;}
  .pdv-left-panel{display:grid!important;grid-template-columns:1fr 1fr!important;align-items:start!important;}
  .pdv-help-box,.app-powered{display:none!important;}
  .product-entry{grid-template-columns:1fr 1fr 105px 130px!important;}
  .add-meat{grid-column:1/-1!important;}
  .pdv-footer-bar{grid-template-columns:1fr!important;}
  .money-area{grid-template-columns:repeat(3,minmax(110px,1fr))!important;}
  .final-total{text-align:left!important;}
}
@media (max-width:760px){
  .pdv-logo-block{align-items:flex-start!important;}
  .pdv-topline{display:block!important;}
  .pdv-actions{margin-top:10px!important;}
  .pdv-left-panel{display:block!important;}
  .scale-sync-mini,.barcode-box{margin-top:10px!important;}
  .product-entry{grid-template-columns:1fr!important;}
  .money-area{grid-template-columns:1fr 1fr!important;}
  .pay-area{grid-template-columns:1fr 1fr!important;}
  .pdv-table{min-width:620px!important;}
}
@media (max-height:760px) and (min-width:900px){
  .pdv-topline{padding-top:8px!important;padding-bottom:8px!important;}
  .pdv-logo-block img{width:42px!important;height:42px!important;}
  .pdv-left-panel{gap:8px!important;padding:10px!important;}
  .pdv-center-panel{padding:10px!important;}
  .product-entry{margin-bottom:8px!important;}
  .pdv-notes{margin-top:6px!important;}
  .pdv-footer-bar{padding:7px 9px!important;}
  .finish-sale{min-height:58px!important;}
  .money-area input,.money-area select{min-height:38px!important;line-height:38px!important;}
  .hotkeys{display:none!important;}
}

/* Correção final: cards de conferência e tabelas largas em telas menores */
.stat.mini{padding:14px!important;border:1px solid #fecdd3;border-radius:16px;background:#fff7ed}.stat.mini span{display:block;font-size:12px;color:#7f1d1d;font-weight:900;text-transform:uppercase}.stat.mini b{display:block;font-size:24px;color:#111827;line-height:1.1;margin-top:5px}.stat.mini small{display:block;color:#64748b;margin-top:5px;font-weight:800}.table-wrap{max-width:100%;overflow:auto}.main{max-width:1600px}.card h2{line-height:1.15}@media(max-width:900px){.grid.grid-4,.grid.grid-3,.grid.grid-2{grid-template-columns:1fr!important}.title-row{display:block}.title-row .actions{margin-top:10px}.card{padding:14px!important}}


/* Visual profissional para açougue - Sabor da Carne */
:root{
  --bg:#f8f1e9;
  --card:#fffdf8;
  --line:#ead8c4;
  --text:#2a0b0f;
  --muted:#7a5b50;
  --brand:#6b050d;
  --brand2:#9f1239;
  --brand3:#f59e0b;
  --danger:#b91c1c;
  --ok:#15803d;
  --shadow:0 16px 34px rgba(83,21,21,.10);
}
body{background:linear-gradient(180deg,#fff7ed 0,#f8f1e9 260px,#f5eadc 100%)!important;color:var(--text)!important;}
.topbar{background:linear-gradient(135deg,#3b0307 0,#6b050d 46%,#9f1239 100%)!important;border-bottom:3px solid #f59e0b;box-shadow:0 16px 36px rgba(59,3,7,.28)!important;}
.brand{justify-content:flex-start!important;}
.brand img{background:#fff7ed!important;border:2px solid rgba(245,158,11,.48)!important;box-shadow:0 6px 16px rgba(0,0,0,.20)!important;}
.brand span{font-weight:950!important;text-transform:uppercase!important;letter-spacing:.04em!important;}
.butcher-brand small{display:block;color:#fed7aa;font-weight:850;font-size:12px;margin-top:2px;}
.sidebar{background:linear-gradient(180deg,#2a0b0f,#45060c 56%,#250407)!important;color:#fff7ed!important;border-right:3px solid #f59e0b;}
.sidebar a{color:#fff7ed!important;border:1px solid transparent!important;min-height:46px;font-weight:850;}
.sidebar a:hover,.sidebar a.active{background:#fff7ed!important;color:#5b0710!important;border-color:#f59e0b!important;box-shadow:0 8px 20px rgba(0,0,0,.16)!important;}
.nav-group-title{color:#fbbf24!important;text-align:left!important;margin-top:18px!important;}
.main{max-width:1500px!important;}
.card{background:rgba(255,253,248,.96)!important;border:1px solid #ead8c4!important;border-radius:22px!important;box-shadow:var(--shadow)!important;}
.title-row{align-items:center!important;}
.title-row h1{color:#4a0006!important;font-weight:950!important;letter-spacing:-.02em!important;}
h1,h2,h3{text-wrap:balance;} h2,h3{color:#4a0006!important;font-weight:925!important;}
.muted{color:#7a5b50!important;}
.stat{border-top:5px solid #8b1e2d!important;min-height:112px;}
.stat b{color:#4a0006!important;font-weight:950!important;letter-spacing:-.03em;}
.kpi-icon{display:grid;place-items:center;min-width:54px;width:54px;height:54px;border-radius:18px;background:#fff1f2;border:1px solid #fecdd3;}
label{color:#4a0006!important;font-weight:900!important;letter-spacing:.01em!important;}
input,select,textarea{background:#fff!important;border:1px solid #d6bda7!important;border-radius:14px!important;min-height:48px!important;padding:12px 14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.7)!important;}
input:focus,select:focus,textarea:focus{border-color:#9f1239!important;outline:4px solid rgba(159,18,57,.14)!important;}
.btn,button{border-radius:14px!important;font-weight:900!important;letter-spacing:.01em!important;}
.btn.primary,button.primary{background:linear-gradient(135deg,#6b050d,#9f1239)!important;color:#fff!important;box-shadow:0 10px 20px rgba(107,5,13,.20)!important;}
.btn.blue{background:linear-gradient(135deg,#7f1d1d,#b45309)!important;color:#fff!important;}
.table-wrap{border-color:#ead8c4!important;border-radius:18px!important;box-shadow:0 8px 24px rgba(83,21,21,.07)!important;}
th{text-align:center!important;background:#fff1f2!important;color:#6b050d!important;border-bottom:2px solid #fecdd3!important;font-weight:950!important;}
td{vertical-align:middle!important;} td:first-child,th:first-child{text-align:center!important;}
.badge{font-weight:900!important;border:1px solid rgba(0,0,0,.04);}
.login-page{background:radial-gradient(circle at 20% 10%,rgba(251,191,36,.32),transparent 28%),linear-gradient(135deg,#2a0b0f,#6b050d 55%,#9f1239)!important;}
.login-card{text-align:center!important;border:2px solid #f59e0b!important;background:#fffdf8!important;}
.login-card form{text-align:left!important;}
.pdv-only-body{background:#2a0b0f!important;}
.pdv-window{background:#fff7ed!important;}
.pdv-topline{background:linear-gradient(135deg,#3b0307,#6b050d 58%,#9f1239)!important;border-bottom:3px solid #f59e0b!important;color:#fff!important;}
.pdv-logo-block b{letter-spacing:.04em!important;}
.pdv-left-panel{background:#fff3e4!important;border-color:#e7c8a9!important;}
.pdv-center-panel{background:#fffdf8!important;}
.product-entry{background:#fff7ed!important;border:1px solid #ead8c4!important;border-radius:18px!important;padding:14px!important;align-items:end!important;}
.pdv-footer-bar{background:linear-gradient(135deg,#3b0307,#6b050d)!important;border-top:3px solid #f59e0b!important;}
.finish-sale{background:#fbbf24!important;color:#3b0307!important;border-color:#fff7ed!important;box-shadow:0 12px 22px rgba(245,158,11,.32)!important;}
.final-total{background:#4a0006!important;border-color:#f59e0b!important;}
.pay-btn.active{outline:3px solid rgba(251,191,36,.35)!important;}
.form-grid{align-items:end!important;}
.field{justify-content:end!important;}
.actions{justify-content:flex-end!important;}
.app-footer,.app-powered{display:none!important;}
@media(max-width:900px){.actions{justify-content:stretch!important}.actions .btn,.actions button{flex:1 1 auto}.card{text-align:left!important}.title-row{gap:10px!important}.sidebar{border-right:0!important}.brand span{font-size:15px!important}.butcher-brand small{display:none!important}}
@media(max-width:640px){.card{border-radius:18px!important}.title-row{text-align:left!important}.stat{min-height:96px}.topbar{border-bottom-width:2px}.main{padding:10px!important}}

/* ===== PDV SEM ROLAGEM EXTERNA ===== */
html:has(.pdv-standalone-window),
html:has(.pdv-window),
body:has(.pdv-standalone-window),
body:has(.pdv-window),
html:has(body.pdv-only-body),
body.pdv-only-body{
  width:100vw !important;
  height:100vh !important;
  max-width:100vw !important;
  max-height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
  overflow-x:hidden !important;
  overflow-y:hidden !important;
  scrollbar-width:none !important;
  overscroll-behavior:none !important;
}

html:has(.pdv-standalone-window)::-webkit-scrollbar,
body:has(.pdv-standalone-window)::-webkit-scrollbar,
body.pdv-only-body::-webkit-scrollbar{
  width:0 !important;
  height:0 !important;
  display:none !important;
}

body:has(.pdv-standalone-window) *,
body:has(.pdv-window) *,
body.pdv-only-body *{
  box-sizing:border-box !important;
}

body.pdv-only-body .pdv-standalone-window,
body.pdv-only-body .pdv-window,
body:has(.pdv-standalone-window) .pdv-standalone-window,
body:has(.pdv-window) .pdv-window{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  max-width:100vw !important;
  max-height:100vh !important;
  margin:0 !important;
  border-radius:0 !important;
  overflow:hidden !important;
}

body.pdv-only-body .pdv-main-grid,
body:has(.pdv-standalone-window) .pdv-main-grid,
body:has(.pdv-window) .pdv-main-grid{
  min-width:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
}

body.pdv-only-body .pdv-left-panel,
body.pdv-only-body .pdv-center-panel,
body:has(.pdv-standalone-window) .pdv-left-panel,
body:has(.pdv-standalone-window) .pdv-center-panel,
body:has(.pdv-window) .pdv-left-panel,
body:has(.pdv-window) .pdv-center-panel{
  min-width:0 !important;
  min-height:0 !important;
  overflow:hidden !important;
}

body.pdv-only-body .pdv-cart-wrap,
body:has(.pdv-standalone-window) .pdv-cart-wrap,
body:has(.pdv-window) .pdv-cart-wrap{
  min-width:0 !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}

body.pdv-only-body .pdv-table,
body:has(.pdv-standalone-window) .pdv-table,
body:has(.pdv-window) .pdv-table{
  width:100% !important;
  max-width:100% !important;
  min-width:0 !important;
}

body.pdv-only-body .pdv-footer-bar,
body:has(.pdv-standalone-window) .pdv-footer-bar,
body:has(.pdv-window) .pdv-footer-bar{
  min-width:0 !important;
  overflow:hidden !important;
}
/* ===== FIM PDV SEM ROLAGEM EXTERNA ===== */

/* ===== PDV ALINHAMENTO CENTRALIZADO FINAL ===== */
body.pdv-only-body,
body.pdv-only-body #pdvForm{
  width:100vw !important;
  height:100vh !important;
  margin:0 !important;
  padding:0 !important;
  overflow:hidden !important;
}

body.pdv-only-body .pdv-standalone-window,
body.pdv-only-body .pdv-window{
  position:fixed !important;
  inset:0 !important;
  width:100vw !important;
  height:100vh !important;
  display:grid !important;
  grid-template-rows:92px minmax(0,1fr) 150px 38px !important;
  overflow:hidden !important;
  border-radius:0 !important;
}

body.pdv-only-body .pdv-topline{
  height:92px !important;
  min-height:92px !important;
  display:grid !important;
  grid-template-columns:minmax(360px,1fr) auto minmax(280px,1fr) !important;
  align-items:center !important;
  gap:18px !important;
  padding:10px 18px !important;
}

body.pdv-only-body .pdv-logo-block{
  height:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  min-width:0 !important;
}

body.pdv-only-body .pdv-logo-block img{
  width:58px !important;
  height:58px !important;
  flex:0 0 58px !important;
}

body.pdv-only-body .pdv-status{
  height:58px !important;
  display:grid !important;
  grid-template-columns:repeat(3,105px) !important;
  align-items:center !important;
  justify-content:center !important;
  gap:0 !important;
  margin:0 auto !important;
}

body.pdv-only-body .pdv-status > div{
  height:58px !important;
  min-width:0 !important;
  padding:0 14px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  text-align:center !important;
}

body.pdv-only-body .pdv-actions{
  height:58px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:10px !important;
  margin:0 !important;
}

body.pdv-only-body .pdv-actions .btn,
body.pdv-only-body .pdv-actions button{
  height:50px !important;
  min-height:50px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 18px !important;
}

body.pdv-only-body .pdv-main-grid{
  height:auto !important;
  min-height:0 !important;
  display:grid !important;
  grid-template-columns:330px minmax(0,1fr) !important;
  align-items:stretch !important;
  overflow:hidden !important;
}

body.pdv-only-body .pdv-left-panel{
  height:100% !important;
  min-height:0 !important;
  padding:16px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-start !important;
  gap:14px !important;
  overflow:hidden !important;
}

body.pdv-only-body .pdv-center-panel{
  height:100% !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  padding:16px !important;
  overflow:hidden !important;
}

body.pdv-only-body .product-entry{
  flex:0 0 auto !important;
  width:100% !important;
  min-height:124px !important;
  display:grid !important;
  grid-template-columns:minmax(360px,1.35fr) minmax(260px,.95fr) 130px 155px 150px !important;
  align-items:end !important;
  gap:10px !important;
  padding:14px !important;
  margin:0 0 12px 0 !important;
}

body.pdv-only-body .product-entry .field{
  min-width:0 !important;
  min-height:88px !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:flex-end !important;
}

body.pdv-only-body .field label,
body.pdv-only-body .money-area label,
body.pdv-only-body .pdv-notes label,
body.pdv-only-body .customer-box label,
body.pdv-only-body .barcode-box label{
  min-height:18px !important;
  margin:0 0 7px 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-start !important;
  line-height:1.1 !important;
}

body.pdv-only-body .product-entry input,
body.pdv-only-body .product-entry select{
  width:100% !important;
  height:62px !important;
  min-height:62px !important;
}

body.pdv-only-body .product-entry .small input{
  text-align:center !important;
  font-weight:950 !important;
}

body.pdv-only-body .add-meat{
  width:100% !important;
  height:62px !important;
  min-height:62px !important;
  align-self:end !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 12px !important;
}

body.pdv-only-body .pdv-cart-wrap{
  flex:1 1 auto !important;
  min-height:0 !important;
  height:auto !important;
  max-height:none !important;
  width:100% !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
}

body.pdv-only-body .pdv-table{
  width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
}

body.pdv-only-body .pdv-table th,
body.pdv-only-body .pdv-table td{
  height:54px !important;
  padding:10px 12px !important;
  text-align:center !important;
  vertical-align:middle !important;
}

body.pdv-only-body .pdv-table th:nth-child(2),
body.pdv-only-body .pdv-table td:nth-child(2){
  width:28% !important;
  text-align:left !important;
}

body.pdv-only-body .pdv-notes{
  flex:0 0 80px !important;
  min-height:80px !important;
  margin:12px 0 0 0 !important;
}

body.pdv-only-body .pdv-notes input{
  height:54px !important;
  min-height:54px !important;
  width:100% !important;
}

body.pdv-only-body .pdv-footer-bar{
  height:150px !important;
  min-height:150px !important;
  display:grid !important;
  grid-template-columns:390px minmax(520px,1fr) 280px 225px !important;
  align-items:center !important;
  gap:12px !important;
  padding:10px 14px !important;
  overflow:hidden !important;
}

body.pdv-only-body .pay-area{
  height:100% !important;
  display:grid !important;
  grid-template-columns:1fr 1fr !important;
  grid-template-rows:1fr 1fr !important;
  gap:8px !important;
  align-items:stretch !important;
}

body.pdv-only-body .pay-btn{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  padding:0 10px !important;
}

body.pdv-only-body .money-area{
  height:100% !important;
  min-width:0 !important;
  display:grid !important;
  grid-template-columns:repeat(3,minmax(150px,1fr)) !important;
  gap:10px !important;
  align-items:center !important;
}

body.pdv-only-body .money-area > div{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  justify-content:center !important;
}

body.pdv-only-body .money-area > div[hidden]{
  display:none !important;
}

body.pdv-only-body .money-area input,
body.pdv-only-body .money-area select{
  width:100% !important;
  height:62px !important;
  min-height:62px !important;
  text-align:right !important;
  font-size:18px !important;
  font-weight:950 !important;
}

body.pdv-only-body .final-total{
  height:100% !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  padding:10px 12px !important;
}

body.pdv-only-body .final-total span,
body.pdv-only-body .final-total b,
body.pdv-only-body .final-total small{
  width:100% !important;
  text-align:center !important;
  line-height:1.12 !important;
}

body.pdv-only-body .finish-sale{
  height:100% !important;
  min-height:0 !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  padding:0 14px !important;
}

body.pdv-only-body .hotkeys{
  height:38px !important;
  min-height:38px !important;
  display:grid !important;
  grid-template-columns:repeat(6,1fr) !important;
  align-items:center !important;
  gap:8px !important;
  padding:4px 8px !important;
  overflow:hidden !important;
}

body.pdv-only-body .hotkeys span{
  height:28px !important;
  min-height:28px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  margin:0 !important;
  padding:0 6px !important;
}

@media (max-width:1500px){
  body.pdv-only-body .pdv-standalone-window,
  body.pdv-only-body .pdv-window{
    grid-template-rows:82px minmax(0,1fr) 132px 34px !important;
  }

  body.pdv-only-body .pdv-topline{
    height:82px !important;
    min-height:82px !important;
    grid-template-columns:minmax(300px,1fr) auto minmax(220px,1fr) !important;
    padding:8px 12px !important;
  }

  body.pdv-only-body .pdv-logo-block img{
    width:48px !important;
    height:48px !important;
    flex-basis:48px !important;
  }

  body.pdv-only-body .pdv-logo-block b{
    font-size:18px !important;
  }

  body.pdv-only-body .pdv-logo-block small{
    font-size:11px !important;
  }

  body.pdv-only-body .pdv-status{
    grid-template-columns:repeat(3,88px) !important;
    height:52px !important;
  }

  body.pdv-only-body .pdv-main-grid{
    grid-template-columns:300px minmax(0,1fr) !important;
  }

  body.pdv-only-body .product-entry{
    grid-template-columns:minmax(260px,1.25fr) minmax(190px,.8fr) 110px 135px 130px !important;
    min-height:112px !important;
    padding:12px !important;
    gap:8px !important;
  }

  body.pdv-only-body .product-entry input,
  body.pdv-only-body .product-entry select,
  body.pdv-only-body .add-meat{
    height:54px !important;
    min-height:54px !important;
  }

  body.pdv-only-body .pdv-footer-bar{
    height:132px !important;
    min-height:132px !important;
    grid-template-columns:320px minmax(420px,1fr) 245px 190px !important;
    padding:8px 10px !important;
    gap:8px !important;
  }

  body.pdv-only-body .money-area input,
  body.pdv-only-body .money-area select{
    height:52px !important;
    min-height:52px !important;
  }
}

@media (max-height:760px) and (min-width:900px){
  body.pdv-only-body .pdv-standalone-window,
  body.pdv-only-body .pdv-window{
    grid-template-rows:74px minmax(0,1fr) 118px 0px !important;
  }

  body.pdv-only-body .hotkeys{
    display:none !important;
  }

  body.pdv-only-body .pdv-topline{
    height:74px !important;
    min-height:74px !important;
  }

  body.pdv-only-body .product-entry{
    min-height:100px !important;
    margin-bottom:8px !important;
  }

  body.pdv-only-body .pdv-notes{
    flex-basis:68px !important;
    min-height:68px !important;
    margin-top:8px !important;
  }

  body.pdv-only-body .pdv-notes input{
    height:44px !important;
    min-height:44px !important;
  }

  body.pdv-only-body .pdv-footer-bar{
    height:118px !important;
    min-height:118px !important;
  }
}
/* ===== FIM PDV ALINHAMENTO CENTRALIZADO FINAL ===== */
