
/* GOJD: painel Venda — navegação lateral sempre rolável e estável. */
@media (min-width:921px){
 .sale-app > .sale-sidebar{
  display:grid!important;grid-template-rows:auto minmax(0,1fr) auto!important;
  height:100dvh!important;max-height:100dvh!important;min-height:0!important;
  overflow:hidden!important;
 }
 .sale-app > .sale-sidebar > nav{
  display:flex!important;flex-direction:column!important;
  flex:none!important;height:100%!important;max-height:100%!important;min-height:0!important;
  overflow-y:auto!important;overflow-x:hidden!important;
  overscroll-behavior-y:contain;touch-action:pan-y;
  scrollbar-width:thin!important;scrollbar-color:#82a889 #1c3025!important;
  padding-bottom:25px!important;
 }
 .sale-app > .sale-sidebar > nav > button{flex:0 0 auto!important;min-height:44px!important;}
 .sale-app > .sale-sidebar > .sale-side-bottom{margin-top:0!important;}
}

/* GOJD — composição unificada: legibilidade, scroll interno e caixa misto.
   Não sobrepõe cores de áreas escuras com texto escuro. */
:root{--gojd-p-white:#fff;--gojd-p-text:#1b3122;--gojd-p-secondary:#4a6452;--gojd-p-border:#cbd8ca;--gojd-p-surface:#f5f7f3;}
.sale-app,.merchant-page,.gojd-account-app{font-weight:400!important;color:var(--gojd-p-text);}
.sale-app h1,.merchant-page h1,.gojd-account-app h1,
.sale-app h2,.merchant-page h2,.gojd-account-app h2{
 font-weight:700!important;letter-spacing:-.035em!important;}
.sale-app h3,.merchant-page h3,.gojd-account-app h3,
.sale-app h4,.merchant-page h4,.gojd-account-app h4{
 font-weight:680!important;letter-spacing:-.02em!important;}
.sale-app p,.merchant-page p,.gojd-account-app p,
.sale-app small,.merchant-page small,.gojd-account-app small{
 font-weight:400!important;line-height:1.55!important;
}
.sale-app label,.merchant-page label,.gojd-account-app label{font-weight:590!important;}
.sale-app button,.merchant-page button,.gojd-account-app button{
 font-weight:620!important;letter-spacing:normal!important;
}
.sale-app :is(input,select,textarea),.merchant-page :is(input,select,textarea),
.gojd-account-app :is(input,select,textarea){
 font-weight:500!important;line-height:1.4;color:#1b3423!important;
 background-color:#fff;
}
.sale-app :is(input,select,textarea):focus-visible,
.merchant-page :is(input,select,textarea):focus-visible,
.gojd-account-app :is(input,select,textarea):focus-visible{
 outline:2px solid #5c9769!important;outline-offset:1px;
}
.sale-workspace,.sale-workspace-scroll,.merchant-page>.container,
.merchant-body,.gojd-account-app>.container,.gojd-account-layout,
.gojd-account-section{min-height:0!important;min-width:0!important;}
.sale-app{height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;}
.sale-workspace{height:100%!important;max-height:100%!important;overflow:hidden!important;}
.sale-workspace-scroll{
 flex:1 1 0!important;height:auto!important;min-height:0!important;
 overflow-x:hidden!important;overflow-y:scroll!important;
 scrollbar-width:auto!important;scrollbar-color:#78987d #e9efea!important;
 overscroll-behavior-y:contain;padding-bottom:100px!important;
}
body.gojd-app-mode .merchant-page,
body.gojd-app-mode .gojd-account-app{
 height:100dvh!important;max-height:100dvh!important;overflow:hidden!important;
}
body.gojd-app-mode .merchant-page>.container,
body.gojd-app-mode .gojd-account-app>.container{
 display:flex!important;flex-direction:column!important;height:100%!important;max-height:100%!important;
 min-height:0!important;overflow:hidden!important;
}
body.gojd-app-mode .merchant-body{
 flex:1 1 0!important;height:auto!important;overflow-x:hidden!important;overflow-y:scroll!important;
 scrollbar-width:auto!important;scrollbar-color:#78987d #e9efea!important;
 overscroll-behavior-y:contain;padding-bottom:100px!important;
}
body.gojd-app-mode .gojd-account-layout{
 flex:1 1 0!important;min-height:0!important;max-height:100%!important;overflow:hidden!important;
}
body.gojd-app-mode .gojd-account-section{
 flex:1 1 0!important;min-height:0!important;overflow-y:scroll!important;overflow-x:hidden!important;
 scrollbar-width:auto!important;scrollbar-color:#78987d #e9efea!important;
 overscroll-behavior-y:contain;padding-bottom:100px!important;
}
.sale-sidebar nav,.gojd-account-nav{overflow-y:auto;min-height:0;}
.sale-sidebar nav button,.gojd-account-nav button{font-weight:570!important;}
.sale-sidebar nav button.active,.gojd-account-nav button.active{font-weight:690!important;}
.sale-side-brand .sale-brand-logo{display:block;max-width:174px;max-height:70px;width:auto;height:auto;object-fit:contain;object-position:left center;}
.sale-side-brand .sale-brand-label{font-size:.8rem;color:#c6d9c8;font-weight:600;line-height:1.35;letter-spacing:.025em;}
.sale-side-brand .sale-brand-no-image{color:#daeddb;font-size:.88rem;font-weight:680;letter-spacing:-.02em;}
.sale-side-brand{min-height:94px;flex-wrap:wrap;}
/* Correção crítica: texto branco no resumo verde-escuro; a regra anterior aplicava texto escuro a todos os h3. */
.sale-workspace-scroll .sale-price-card,.sale-workspace-scroll .sale-price-card h3,
.sale-workspace-scroll .sale-price-card strong,.sale-workspace-scroll .sale-price-card span:not(.sale-eyebrow),
.sale-workspace-scroll .sale-price-card .sale-math>div,
.sale-workspace-scroll .sale-price-card .sale-money-hero{
 color:#f6fbf4!important;
}
.sale-workspace-scroll .sale-price-card .sale-eyebrow{
 color:#c6f58c!important;
}
.sale-workspace-scroll .sale-price-card small,.sale-workspace-scroll .sale-price-card p{
 color:#d4e3d6!important;
}
.sale-price-card h3{font-weight:650!important;opacity:1!important;}
.sale-money-hero{font-weight:750!important;letter-spacing:-.035em!important;}
.sale-panel h3,.merchant-editor h3,.gojd-account-section h3{font-size:clamp(1.05rem,1.5vw,1.35rem)!important;}
.sale-workspace-top h1{font-size:clamp(1.45rem,1.7vw,1.8rem)!important;}
.sale-section-heading h2{font-size:clamp(1.6rem,2.35vw,2.3rem)!important;}
.sale-form .sale-field input,.sale-field select{font-size:.86rem!important;font-weight:520!important;}
.sale-order-grid{grid-template-columns:minmax(0,1.55fr) minmax(290px,.7fr);}
.sale-price-card{position:static;}
/* Distribuição de formas e confirmação do caixa sem pop-ups. */
.gojd-mixed-builder{border-top:1px solid #cfdccd;padding:20px 0 8px;margin:20px 0;color:#213d2a;}
.gojd-mixed-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:16px;}
.gojd-mixed-heading h3{margin:6px 0!important;font-size:1.15rem!important;}
.gojd-mixed-heading p{margin:0!important;font-size:.78rem;}
.gojd-mixed-heading button{flex-shrink:0;min-height:38px;}
.gojd-mixed-rows{display:grid;gap:10px;}
.gojd-mixed-row{display:grid;grid-template-columns:minmax(125px,1fr) minmax(145px,1.08fr) minmax(112px,.8fr) auto;gap:10px;align-items:end;padding:13px;background:#f6f9f4;border:1px solid #d7e2d3;}
.gojd-mixed-row>label{display:flex;flex-direction:column;gap:7px;min-width:0;color:#294734;font-size:.73rem!important;}
.gojd-mixed-row :is(input,select){width:100%;min-width:0;min-height:40px;border:1px solid #a8bfa9;border-radius:2px;background:#fff;color:#183521;padding:9px 10px;font-size:.79rem;font-weight:500;font-family:inherit;}
.gojd-mixed-row-actions{display:flex;gap:6px;align-items:end;flex-wrap:wrap;}
.gojd-mixed-row-actions button{min-height:40px;border:1px solid #b6c9b6;background:#fff;color:#274a31;padding:8px 11px;display:inline-flex;gap:6px;align-items:center;font-size:.72rem!important;}
.gojd-mixed-balance{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 20px;padding:14px;margin-top:11px;background:#eaf3e5;color:#264c31;font-size:.78rem;}
.gojd-mixed-balance strong{margin-left:7px;font-weight:740;}
.gojd-mixed-balance.pending{background:#fff4df;color:#67471d;}
.gojd-mixed-balance.excess{background:#fff0ec;color:#813a2e;}
.gojd-mixed-notice{font-size:.73rem!important;color:#516b58!important;margin:13px 0 0!important;line-height:1.6!important;}
.gojd-mixed-settlement{margin:0 0 20px;border-top:3px solid #5e8a60;}
.gojd-mixed-settlement .sale-panel-head p{margin:4px 0;font-size:.7rem;}
.gojd-mixed-progress{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:14px;background:#edf4eb;color:#284e31;font-size:.79rem;}
.gojd-mixed-progress strong{font-weight:750;}
.gojd-mixed-confirm-list{display:grid;gap:1px;margin:15px 0;}
.gojd-mixed-confirm-line{display:grid;grid-template-columns:minmax(125px,.7fr) minmax(0,1.5fr);gap:16px;padding:15px 5px;border-bottom:1px solid #dae4d9;align-items:center;}
.gojd-mixed-method{display:grid;gap:6px;min-width:0;}
.gojd-mixed-method strong{font-size:.85rem;color:#1d3925;font-weight:670;}
.gojd-mixed-method small{font-size:.74rem;color:#526e58;overflow-wrap:anywhere;}
.gojd-mixed-confirm-fields{display:flex;flex-wrap:wrap;gap:12px;align-items:end;justify-content:flex-end;}
.gojd-mixed-confirm-fields label:not(.gojd-mixed-verify){display:grid;gap:6px;min-width:210px;flex:1;font-size:.72rem;}
.gojd-mixed-confirm-fields input:not([type=checkbox]),#gojd-mixed-contract input:not([type=checkbox]){height:40px;max-width:100%;width:100%;padding:8px 10px;border:1px solid #aac1ae;background:#fff;color:#1b3021;}
.gojd-mixed-verify{display:flex;align-items:center;gap:9px;font-size:.73rem;color:#395540;line-height:1.5;}
.gojd-mixed-verify input{accent-color:#427c4b;width:16px;height:16px;}
.gojd-mixed-confirmed{font-weight:680;color:#226231;font-size:.77rem;}
#gojd-mixed-contract{display:grid;gap:14px;margin-top:17px;padding:15px;background:#f0f6ed;}
#gojd-mixed-contract label:not(.gojd-mixed-verify){display:grid;gap:6px;max-width:460px;}
#gojd-mixed-contract button{justify-self:start;}
@media(max-width:1280px){
 .gojd-mixed-row{grid-template-columns:repeat(2,minmax(0,1fr));}
 .gojd-mixed-row-actions{grid-column:1/-1;}
 .sale-order-grid{grid-template-columns:minmax(0,1.3fr) minmax(260px,.75fr);}
}
@media(max-width:980px){
 .sale-order-grid{grid-template-columns:1fr;}
 .sale-quote-aside{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
 .sale-price-card{position:static;}
 .gojd-mixed-confirm-line{grid-template-columns:1fr;}
 .gojd-mixed-confirm-fields{justify-content:flex-start;}
}
@media(max-width:650px){
 .sale-quote-aside{grid-template-columns:1fr;}
 .sale-order-panel{padding:16px!important;}
 .sale-fields{grid-template-columns:1fr!important;}
 .gojd-mixed-heading{flex-direction:column;align-items:stretch;}
 .gojd-mixed-heading button{align-self:flex-start;}
 .gojd-mixed-row{grid-template-columns:1fr;padding:12px;}
 .gojd-mixed-row-actions{grid-column:auto;}
 .gojd-mixed-confirm-fields{flex-direction:column;align-items:stretch;}
 .gojd-mixed-confirm-fields label:not(.gojd-mixed-verify){min-width:0;width:100%;}
 .gojd-mixed-progress{flex-direction:column;}
}

.gojd-merchant-brand-layout{display:flex;align-items:center;gap:18px;min-width:0}
.gojd-panel-brand-actual{display:block;max-width:170px;max-height:52px;width:auto;height:auto;object-fit:contain;object-position:left center;margin-bottom:5px}
.gojd-account-hero .gojd-panel-brand-actual{max-width:150px;max-height:40px;margin-bottom:9px}
@media(max-width:640px){.gojd-merchant-brand-layout{gap:10px}.gojd-panel-brand-actual{max-width:115px;max-height:36px}}
