@import url("marketplace_design_system.css");
:root{--bg:#f4f6f8;--card:#fff;--text:#17202a;--muted:#6b7280;--primary:#0f3b63;--primary2:#125c99;--accent:#f5b21b;--danger:#b42318;--ok:#027a48;--line:#e5e7eb;--shadow:0 10px 25px rgba(15,23,42,.08);--radius:16px}
*{box-sizing:border-box}body{margin:0;font-family:"Inter","Segoe UI",Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}a{color:var(--primary2);text-decoration:none}small{color:var(--muted)}h1,h2,h3{margin:0 0 8px}p{margin:0 0 10px}.sidebar{position:fixed;inset:0 auto 0 0;width:260px;background:#0b1f33;color:white;padding:20px 14px;overflow:auto;z-index:10}.brand{display:flex;gap:12px;align-items:center;padding:8px 8px 20px}.brand-mark,.login-logo,.catalog-brand{width:48px;height:48px;background:linear-gradient(135deg,var(--accent),#ffcf59);color:#0b1f33;border-radius:14px;display:grid;place-items:center;font-weight:900;font-size:24px}.brand small{display:block;color:#b7c2cf}.sidebar nav{display:flex;flex-direction:column;gap:3px}.sidebar a{color:#e5edf5;padding:11px 12px;border-radius:12px}.sidebar a:hover{background:#14385a}.main{margin-left:260px;min-height:100vh}.main-full{margin-left:0}.topbar{height:64px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:flex-end;gap:16px;padding:0 24px;position:sticky;top:0;z-index:5}.menu-btn{display:none}.content{padding:28px;max-width:1450px;margin:0 auto}.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:20px}.page-head h1{font-size:30px}.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:18px;margin-bottom:18px}.cards{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:16px;margin-bottom:18px}.cards.mini{grid-template-columns:repeat(2,1fr)}.stat span{display:block;color:var(--muted);font-size:14px}.stat strong{display:block;font-size:26px;margin:8px 0}.stat.danger strong{color:var(--danger)}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.sale-grid{align-items:start}.card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px}.btn{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:var(--text);border-radius:12px;padding:10px 14px;font-weight:700;cursor:pointer;min-height:40px}.btn:hover{filter:brightness(.97)}.btn-primary{background:var(--primary);border-color:var(--primary);color:white}.btn-light{background:#f8fafc}.btn-danger{background:var(--danger);border-color:var(--danger);color:white}.btn-sm{font-size:12px;padding:6px 10px;min-height:30px;border-radius:9px}.btn-lg{font-size:18px;padding:14px 20px}.w-100{width:100%}.actions{display:flex;gap:8px;flex-wrap:wrap}.table-row-actions{display:flex;flex-direction:column;gap:4px;min-width:78px;position:sticky;right:0;background:#fff;box-shadow:-6px 0 6px -6px rgba(15,23,42,.15)}.table-row-actions form{margin:0}.table-row-actions .btn{width:100%;white-space:nowrap}tr.row-warning .table-row-actions{background:#fff8e7}tr.row-danger .table-row-actions{background:#fff1f0}th.table-row-actions-head{position:sticky;right:0;background:#f8fafc}.filter-bar,.form-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.filter-bar input{min-width:280px}.form-inline.mini{margin:0}.form-inline.mini input,.form-inline.mini select{min-width:120px;height:34px;padding:6px 8px}label{display:flex;flex-direction:column;gap:6px;font-weight:700;color:#243447}input,select,textarea{width:100%;border:1px solid #cdd5df;border-radius:12px;padding:11px 12px;font-size:15px;background:white;color:var(--text);font-family:inherit}textarea{min-height:88px;resize:vertical}.form-stack{display:flex;flex-direction:column;gap:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.form-grid.compact{grid-template-columns:repeat(3,1fr)}.span-2{grid-column:span 2}.check{flex-direction:row;align-items:center}.check input{width:auto}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;min-width:760px}th,td{border-bottom:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}th{font-size:13px;color:#475569;background:#f8fafc}.badge{display:inline-block;padding:4px 8px;border-radius:999px;background:#eef2f7;color:#334155;font-size:12px}.thumb{width:54px;height:54px;object-fit:cover;border-radius:10px;border:1px solid var(--line);display:inline-grid;place-items:center;font-size:11px;color:var(--muted)}.thumb.empty{background:#f8fafc}.product-img{width:100%;max-height:320px;object-fit:contain;background:#f8fafc;border-radius:14px;border:1px solid var(--line);margin-bottom:14px}.product-detail dl{display:grid;grid-template-columns:140px 1fr;gap:8px}.product-detail dt{font-weight:900;color:#475569}.product-detail dd{margin:0}.related-parts-list{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}.related-part-card{display:flex;align-items:center;gap:12px;padding:8px;border:1px solid var(--line);border-radius:12px}.related-part-card img,.related-part-card .thumb{width:44px;height:44px;object-fit:cover;border-radius:8px;flex-shrink:0}.related-part-card>div{flex:1;min-width:0}.related-part-add-form{display:flex;gap:10px;align-items:flex-start}.related-part-add-form .product-search{flex:1}.related-part-add-form .btn{white-space:nowrap}.row-warning{background:#fff8e7}.row-danger{background:#fff1f0}.muted{opacity:.6}.messages{position:sticky;top:70px;z-index:6}.alert{padding:12px 14px;border-radius:12px;margin-bottom:10px;border:1px solid var(--line);background:white}.alert-success{background:#ecfdf3;border-color:#abefc6;color:#027a48}.alert-danger{background:#fef3f2;border-color:#fecdca;color:#b42318}.alert-warning{background:#fffaeb;border-color:#fedf89;color:#b54708}.alert-info{background:#eff8ff;border-color:#b2ddff;color:#175cd3}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.login-card{width:100%;max-width:420px;background:white;border-radius:24px;box-shadow:var(--shadow);padding:28px;border:1px solid var(--line);text-align:center}.login-logo{margin:0 auto 12px}.product-search{position:relative}.search-results{position:absolute;top:50px;left:0;right:0;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);max-height:380px;overflow:auto;z-index:20;display:none}.search-item{padding:10px;border-bottom:1px solid var(--line);cursor:pointer}.search-item:hover{background:#f8fafc}.sale-total{display:flex;gap:24px;justify-content:flex-end;font-size:18px;margin:16px 0}.receipt{max-width:900px;margin:0 auto}.totals{display:flex;flex-direction:column;align-items:flex-end;gap:8px;font-size:18px}.mt{margin-top:12px}.catalog-page{background:#eef2f7}.catalog-hero{display:flex;gap:16px;align-items:center;background:#0b1f33;color:white;padding:28px;justify-content:center}.catalog-hero p,.catalog-hero small{color:#d9e6f2}.catalog-main{max-width:1180px;margin:0 auto;padding:24px}.catalog-search{display:flex;gap:10px;margin-bottom:18px}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.catalog-card{background:white;border-radius:18px;border:1px solid var(--line);box-shadow:var(--shadow);overflow:hidden;display:flex;flex-direction:column}.catalog-card img,.no-img{width:100%;height:190px;object-fit:contain;background:#f8fafc;display:grid;place-items:center;color:var(--muted)}.catalog-info{padding:16px;display:flex;flex-direction:column;gap:8px}.catalog-info h2{font-size:18px}.eq{font-size:13px;color:#475569}.price{font-size:18px;color:var(--primary)}
@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}.form-grid.compact{grid-template-columns:1fr 1fr}.sidebar{transform:translateX(-100%);transition:.2s}.sidebar-open .sidebar{transform:translateX(0)}.main{margin-left:0}.menu-btn{display:inline-flex;background:white;border:1px solid var(--line);border-radius:10px;padding:8px}.topbar{justify-content:space-between}.content{padding:18px}.page-head{flex-direction:column}.filter-bar input{min-width:100%}}
@media(max-width:640px){.cards{grid-template-columns:1fr}.form-grid,.form-grid.compact{grid-template-columns:1fr}.span-2{grid-column:auto}.catalog-search{flex-direction:column}.sale-total{flex-direction:column;align-items:flex-start}}
@media print{.sidebar,.topbar,.no-print,.messages{display:none!important}.main{margin:0}.content{padding:0}.card{box-shadow:none;border:0}.receipt{max-width:none}body{background:white}table{min-width:0}}

/* Catálogo público melhorado */
.catalog-hero-plus{padding:26px 18px}.catalog-hero-inner{width:100%;max-width:1180px;display:flex;gap:16px;align-items:center;justify-content:space-between}.catalog-title{flex:1}.catalog-promo{background:white;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);padding:18px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.catalog-promo strong{display:block;font-size:19px;margin-bottom:6px}.catalog-promo p{color:#475569;margin:0}.catalog-benefits{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.catalog-benefits span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 12px;color:#334155;font-weight:700;font-size:13px}.catalog-code{color:var(--primary2);font-size:14px}.btn-whatsapp{background:#16a34a;border-color:#16a34a;color:white}.btn-whatsapp:hover{filter:brightness(.94)}.floating-whatsapp{position:fixed;right:18px;bottom:18px;background:#16a34a;color:white;border-radius:999px;padding:13px 18px;font-weight:900;box-shadow:0 12px 28px rgba(22,163,74,.35);z-index:50}.catalog-top-zap{white-space:nowrap}@media(max-width:760px){.catalog-hero-inner{align-items:flex-start}.catalog-top-zap{display:none}.catalog-promo{align-items:flex-start;flex-direction:column}.floating-whatsapp{left:18px;right:18px;text-align:center}.catalog-main{padding-bottom:80px}}

.hint-box {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px 14px;
  color: #475569;
  font-size: 14px;
}

.telegram-integration-card{padding:22px}.telegram-integration-head{display:flex;align-items:center;gap:13px;margin-bottom:18px}.telegram-integration-head p{margin:2px 0 0;color:#64748b}.telegram-mark{width:44px;height:44px;display:grid;place-items:center;flex:0 0 44px;border-radius:14px;background:#e8f5ff;color:#229ed9;font-size:22px;font-weight:900}.telegram-status{margin-left:auto;padding:7px 11px;border:1px solid #e2e8f0;border-radius:999px;background:#f8fafc;color:#64748b;font-size:12px;font-weight:800}.telegram-status.is-connected{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.telegram-connect-form{display:grid;grid-template-columns:minmax(260px,1fr) auto;align-items:end;gap:12px}.telegram-connect-form .btn{margin-bottom:22px}.telegram-connected-details{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:16px}.telegram-connected-details>div{padding:13px 14px;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc}.telegram-connected-details small,.telegram-connected-details strong{display:block}.telegram-connected-details strong{margin-top:5px;color:#172033}.telegram-actions{margin-top:4px}.telegram-hint{margin-top:14px}.telegram-hint code{padding:2px 6px;border-radius:6px;background:#e2e8f0;color:#0f172a}@media(max-width:700px){.telegram-integration-head{align-items:flex-start;flex-wrap:wrap}.telegram-status{margin-left:0}.telegram-connect-form,.telegram-connected-details{grid-template-columns:1fr}.telegram-connect-form .btn{margin-bottom:0}}
.telegram-preferences{display:grid;gap:10px;margin-top:18px;padding-top:18px;border-top:1px solid #e2e8f0}.telegram-preferences-title small{display:block;margin-top:4px}.telegram-preferences-subtitle{margin-top:5px;padding:7px 3px 1px}.telegram-preferences-subtitle strong,.telegram-preferences-subtitle small{display:block}.telegram-preferences-subtitle strong{color:#172033;font-size:13px}.telegram-preferences-subtitle small{margin-top:3px;color:#64748b;font-size:11px}.telegram-option{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:11px;padding:13px 14px;border:1px solid #e2e8f0;border-radius:13px;background:#f8fafc;cursor:pointer}.telegram-option:has(input[type=checkbox]:checked){border-color:#bae6fd;background:#f0f9ff}.telegram-option>input[type=checkbox]{width:18px;height:18px;accent-color:#229ed9}.telegram-option span,.telegram-option span strong,.telegram-option span small{display:block}.telegram-option span small{margin-top:3px}.telegram-option-with-time{grid-template-columns:auto minmax(0,1fr) 118px}.telegram-option-with-time>input[type=time]{padding:9px 10px;background:#fff}.telegram-preferences>.btn{justify-self:start;margin-top:3px}@media(max-width:700px){.telegram-option-with-time{grid-template-columns:auto minmax(0,1fr)}.telegram-option-with-time>input[type=time]{grid-column:2;width:130px}.telegram-preferences>.btn{width:100%}}
.notifications-page-head .telegram-status{margin-left:auto}.notifications-control-card>.card-head{align-items:center}.notifications-control-card>.card-head p,.notifications-history-card>.card-head p{color:#64748b;margin:3px 0 0}.notifications-control-card .telegram-preferences{margin-top:8px;padding-top:8px;border-top:0}.btn-telegram{border-color:#7dd3fc;background:#e8f5ff;color:#0369a1}.btn-telegram:hover{background:#dff2ff}.payable-row-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.payable-row-actions .form-inline{margin-bottom:0}.payable-telegram-form{margin:0}.notification-delivery-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f1f5f9;color:#475569;font-size:12px;font-weight:800}.notification-delivery-status.status-sent{background:#dcfce7;color:#15803d}.notification-delivery-status.status-pending,.notification-delivery-status.status-sending{background:#fff7ed;color:#c2410c}.notification-delivery-status.status-cancelled{background:#fee2e2;color:#b91c1c}
.telegram-message-editor{display:grid;grid-template-columns:minmax(180px,.42fr) minmax(300px,1fr);gap:12px;margin:-2px 0 7px;padding:14px;border:1px dashed #bae6fd;border-radius:13px;background:#f8fcff}.telegram-message-editor label{margin:0}.telegram-message-editor textarea{min-height:110px;resize:vertical;font-family:Consolas,"Courier New",monospace;font-size:12px;line-height:1.45}.telegram-message-editor small{display:block;margin-top:6px;color:#64748b;line-height:1.45}@media(max-width:700px){.telegram-message-editor{grid-template-columns:1fr}}
.telegram-token-refresh{margin:14px 0 20px;border:1px solid #bfdbfe;border-radius:13px;background:#f8fbff;overflow:hidden}.telegram-token-refresh>summary{padding:13px 15px;color:#075b9d;font-weight:800;cursor:pointer}.telegram-token-refresh[open]>summary{border-bottom:1px solid #dbeafe}.telegram-token-refresh .telegram-connect-form{padding:14px 15px 8px}.telegram-token-refresh .telegram-hint{margin:0 15px 15px}
.sale-telegram-form{display:inline-flex;margin:0}.sale-telegram-form .btn{white-space:nowrap}

/* NF-e 55: fluxo fiscal opcional, separado do comprovante interno. */
.fiscal-eyebrow{display:block;margin-bottom:5px;color:#7c3aed;font-size:.68rem;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.btn-fiscal{border-color:#c4b5fd;background:#f5f3ff;color:#6d28d9}.btn-fiscal:hover{background:#ede9fe}.fiscal-safety-banner,.fiscal-environment-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px;padding:15px 18px;border:1px solid #c4b5fd;border-radius:15px;background:#faf8ff}.fiscal-safety-banner strong,.fiscal-safety-banner p,.fiscal-environment-banner p{margin:0}.fiscal-safety-banner strong{color:#6d28d9}.fiscal-safety-banner p{color:#5b6474;font-size:.76rem}.fiscal-settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:16px;align-items:start}.fiscal-settings-form{padding:21px}.fiscal-subhead{margin-top:25px;padding-top:20px;border-top:1px solid #e2e8f0}.fiscal-readiness-column{display:grid;gap:12px}.fiscal-status-card{padding:17px}.fiscal-status-card p{font-size:.75rem;line-height:1.5}.fiscal-status-card ul,.fiscal-issues-card ul{margin:10px 0 14px;padding-left:20px;color:#b45309;font-size:.73rem;line-height:1.55}.fiscal-ok{color:#15803d!important;font-weight:750}.fiscal-environment-banner>div{display:flex;flex-direction:column;gap:3px}.fiscal-environment-banner strong{color:#6d28d9;letter-spacing:.08em}.fiscal-environment-banner span{font-size:.7rem}.fiscal-environment-banner.production{border-color:#fdba74;background:#fff7ed}.fiscal-environment-banner.production strong{color:#c2410c}.fiscal-document-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.fiscal-document-status>div{display:flex;flex-direction:column;gap:5px}.fiscal-document-status small,.fiscal-data-list dt{color:#64748b;font-size:.64rem}.fiscal-document-status strong{overflow:hidden;text-overflow:ellipsis}.fiscal-issues-card{margin-bottom:16px;border-color:#fed7aa;background:#fffbeb}.fiscal-ready-card{margin-bottom:16px;border-color:#bbf7d0;background:#f0fdf4}.fiscal-ready-card strong{color:#15803d}.fiscal-ready-card p{margin:5px 0 0}.fiscal-review-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:14px}.fiscal-data-list{display:grid;gap:9px;margin:0}.fiscal-data-list>div{display:grid;grid-template-columns:140px 1fr;gap:10px;padding-bottom:7px;border-bottom:1px solid #edf1f5}.fiscal-data-list dd{margin:0;font-size:.75rem}.fiscal-items-card{margin-bottom:14px}.fiscal-items-card table{min-width:1050px}.fiscal-action-card{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center}.fiscal-action-card h2,.fiscal-action-card p{margin:0}.fiscal-action-card p{margin-top:5px;color:#64748b;font-size:.72rem}.sale-fiscal-strip{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px;border-color:#ddd6fe;background:#faf8ff}.sale-fiscal-strip>div{display:flex;flex-direction:column}.sale-fiscal-strip span{color:#7c3aed;font-size:.62rem;font-weight:900;text-transform:uppercase}.sale-fiscal-strip strong{margin:4px 0}.sale-fiscal-strip small{color:#64748b}.fiscal-product-box{border-color:#ddd6fe!important;background:#faf8ff!important}
@media(max-width:950px){.fiscal-settings-layout{grid-template-columns:1fr}.fiscal-document-status{grid-template-columns:1fr 1fr}.fiscal-action-card{grid-template-columns:1fr}.fiscal-action-card .btn{width:100%}}
@media(max-width:650px){.fiscal-safety-banner,.fiscal-environment-banner,.sale-fiscal-strip{align-items:flex-start;flex-direction:column}.fiscal-review-grid,.fiscal-document-status{grid-template-columns:1fr}.fiscal-data-list>div{grid-template-columns:1fr}.sale-fiscal-strip .btn{width:100%}}

/* CORRECAO DEFINITIVA DA TELA DE VENDA: a etapa 1 ocupa a linha inteira. */
body.sale-screen .sale-pro-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(340px,400px) !important;
  grid-template-rows:auto auto !important;
  grid-template-areas:"sale-step sale-step" "sale-items sale-summary" !important;
  gap:16px !important;
  align-items:start !important;
  width:100% !important;
  max-width:100% !important;
  overflow:visible !important;
}
body.sale-screen .sale-pro-main{display:contents !important;}
body.sale-screen .sale-add-card{
  grid-area:sale-step !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}
body.sale-screen .sale-items-workspace{
  grid-area:sale-items !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}
body.sale-screen .sale-pro-sidebar{
  grid-area:sale-summary !important;
  position:sticky !important;
  top:0 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  align-self:start !important;
}
body.sale-screen .sale-step-one-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  grid-template-areas:"customer operation" "vehicle vehicle" !important;
}
body.sale-screen .sale-customer-panel,
body.sale-screen .sale-operation-panel,
body.sale-screen .sale-vehicle-panel{width:auto !important;min-width:0 !important;}
@media(max-width:900px){
  body.sale-screen .sale-pro-grid{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto auto !important;
    grid-template-areas:"sale-step" "sale-items" "sale-summary" !important;
  }
  body.sale-screen .sale-pro-sidebar{position:static !important;}
  body.sale-screen .sale-step-one-grid{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:"customer" "operation" "vehicle" !important;
  }
}

/* Etapa 1 compacta: menos altura, mantendo leitura e areas de clique confortaveis. */
body.sale-screen .sale-add-card>.sale-pro-card-head{
  min-height:68px !important;
  padding:16px 28px 13px !important;
}
body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{
  gap:14px !important;
  padding:14px 24px 18px !important;
}
body.sale-screen .sale-step-one-grid>.sale-step-panel{
  padding:14px 16px !important;
  border-radius:15px !important;
}
body.sale-screen .sale-step-one-grid .sale-panel-label{
  margin-bottom:11px !important;
  gap:10px !important;
}
body.sale-screen .sale-step-one-grid .sale-panel-label>span{
  width:36px !important;
  height:36px !important;
  flex-basis:36px !important;
}
body.sale-screen .sale-step-one-grid .sale-panel-label svg{
  width:19px !important;
  height:19px !important;
}
body.sale-screen .sale-customer-field{
  grid-template-columns:minmax(0,1fr) minmax(150px,.72fr) !important;
  grid-template-areas:"caption caption" "search button" "select status" !important;
  gap:7px 10px !important;
}
body.sale-screen .sale-customer-field>#customerSelect{
  margin-top:20px !important;
}
body.sale-screen .sale-customer-field:after{
  margin-top:-2px !important;
}
body.sale-screen .sale-customer-status{
  margin-top:20px !important;
  min-height:44px !important;
}
body.sale-screen .sale-operation-fields{
  grid-template-columns:minmax(150px,1.1fr) minmax(140px,1fr) minmax(140px,1fr) !important;
  gap:10px !important;
  align-items:end !important;
}
body.sale-screen .sale-operation-fields label:first-child{
  grid-column:auto !important;
  padding-bottom:0 !important;
  border-bottom:0 !important;
}
body.sale-screen .sale-step-panel input,
body.sale-screen .sale-step-panel select{
  height:44px !important;
  min-height:44px !important;
}
body.sale-screen .sale-vehicle-panel .sale-panel-label{
  margin-bottom:10px !important;
}
body.sale-screen .sale-vehicle-fields #vehiclePlate{
  height:56px !important;
}
body.sale-screen .sale-vehicle-fields input:not(#vehiclePlate){
  height:48px !important;
}
@media(max-width:900px){
  body.sale-screen .sale-customer-field{
    grid-template-areas:"caption" "search" "button" "select" "status" !important;
  }
  body.sale-screen .sale-customer-field>#customerSelect,
  body.sale-screen .sale-customer-status{margin-top:20px !important;}
  body.sale-screen .sale-operation-fields{grid-template-columns:minmax(0,1fr) !important;}
}

/* Empresas e Servicos integrados ao Marketplace */
.marketplace-city-form select{border:0;background:transparent;color:#172033;font:inherit;font-weight:700;max-width:170px;cursor:pointer}
.marketplace-filter-form{align-items:center}.marketplace-filter-chip input{accent-color:#f4511e}.marketplace-filter-apply{border:0;border-radius:999px;background:#172033;color:#fff;padding:11px 20px;font-weight:800;cursor:pointer}
.marketplace-sponsored-badge{position:absolute;right:12px;top:12px;background:#fff;color:#7357b7;border-radius:999px;padding:6px 10px;font-size:.72rem;font-weight:800;box-shadow:0 5px 18px #17203324}
.company-contact-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.8fr);gap:28px;background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:26px;margin:22px 0;box-shadow:0 10px 35px #1720330a}.company-contact-panel h2{margin-top:0}.company-contact-panel p{color:#64748b}.company-contact-actions{display:flex;align-content:flex-start;align-items:flex-start;flex-wrap:wrap;gap:10px}.company-contact-actions a{border:1px solid #e2e8f0;border-radius:999px;padding:10px 15px;color:#172033;text-decoration:none;font-weight:750;background:#fff;transition:.2s}.company-contact-actions a:hover{border-color:#2563eb;color:#2563eb;transform:translateY(-2px)}
.company-services-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.company-service-card{overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:20px;box-shadow:0 10px 32px #1720330a;transition:.2s}.company-service-card:hover{transform:translateY(-3px);box-shadow:0 16px 38px #17203315}.company-service-card>img{width:100%;height:150px;object-fit:cover}.company-service-card>div{padding:18px}.company-service-card h3{margin:0 0 8px}.company-service-card p{color:#64748b;line-height:1.55}.company-service-card a{display:inline-block;margin-top:14px;color:#fff;background:#16a34a;border-radius:999px;padding:9px 14px;text-decoration:none;font-weight:800}.company-service-meta{display:flex;justify-content:space-between;gap:12px;color:#64748b}.company-service-meta strong{color:#172033}
@media(max-width:900px){.marketplace-city-form{order:3;width:100%}.company-services-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.company-contact-panel{grid-template-columns:1fr}}
@media(max-width:620px){.company-services-grid{grid-template-columns:1fr}.company-contact-panel{padding:18px}.marketplace-city-form select{max-width:220px}}

.catalog-banner-wrap{margin:0 0 16px}
.catalog-banner-img{display:block;width:100%;height:auto;border-radius:20px;border:1px solid var(--line);box-shadow:var(--shadow);background:#071a2d}

/* Galeria de fotos do produto */
.photo-upload-box{background:#f8fafc;border:1px dashed var(--line);border-radius:16px;padding:16px}
.photo-upload-box h3{margin:0 0 6px}
.photo-upload-box p{color:var(--muted);margin-bottom:12px}
.photo-preview{width:100%;height:110px;object-fit:contain;background:#fff;border:1px solid var(--line);border-radius:12px;margin-bottom:8px}
.product-gallery-admin{display:flex;flex-direction:column;gap:10px}
.product-thumbs,.catalog-product-thumbs{display:flex;gap:8px;flex-wrap:wrap}
.product-thumbs button,.catalog-product-thumbs button{border:1px solid var(--line);background:#fff;border-radius:10px;padding:4px;cursor:pointer}
.product-thumbs img{width:64px;height:64px;object-fit:cover;border-radius:8px;display:block}
.catalog-card-link{display:flex;flex-direction:column;color:inherit;text-decoration:none;flex:1}
.catalog-card-link:hover h2{text-decoration:underline}
.catalog-card-action{padding:0 16px 16px}
.catalog-detail-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.catalog-product-detail{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:20px;background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:18px}
.catalog-product-gallery{display:flex;flex-direction:column;gap:12px}
.catalog-product-main-img{width:100%;height:430px;object-fit:contain;background:#f8fafc;border:1px solid var(--line);border-radius:18px;display:grid;place-items:center;color:var(--muted)}
.catalog-product-thumbs button:hover{border-color:var(--primary2)}
.catalog-product-thumbs img{width:82px;height:82px;object-fit:cover;border-radius:8px;display:block}
.catalog-product-info{display:flex;flex-direction:column;gap:12px}
.catalog-product-info h1{font-size:30px;line-height:1.12;margin:0}
.detail-price{font-size:25px}
.catalog-specs{display:grid;grid-template-columns:145px 1fr;gap:8px;margin:8px 0}
.catalog-specs dt{font-weight:900;color:#475569}
.catalog-specs dd{margin:0}
.catalog-note,.catalog-warning{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:12px;color:#334155}
.catalog-warning{background:#fff8e7;color:#8a5a00}
@media(max-width:820px){.catalog-product-detail{grid-template-columns:1fr}.catalog-detail-head{align-items:stretch;flex-direction:column}.catalog-product-main-img{height:320px}.catalog-specs{grid-template-columns:1fr}.catalog-product-thumbs img{width:68px;height:68px}}


.product-tech-box,.photo-upload-box{background:#f8fafc;border:1px solid var(--line);border-radius:16px;padding:16px}
.product-tech-box h3,.photo-upload-box h3{margin-bottom:4px}
.product-tech-box p,.photo-upload-box p{color:var(--muted);margin-bottom:12px}
.catalog-card-specs{display:grid;grid-template-columns:1fr;gap:4px;font-size:13px;color:#475569;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:9px}
.catalog-card-specs span{display:block}
.catalog-specs-tech dt{color:#334155}

/* Marketplace público — Fase 3: descoberta de lojas, sem catálogo ou pedidos. */
.marketplace-page{background:#f8f8f8;color:#27272a}.marketplace-topbar{height:72px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid #ececec;gap:18px}.marketplace-brand{display:flex;align-items:center;gap:9px;color:#27272a}.marketplace-brand span{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#e85720;color:#fff;font-size:14px;font-weight:900}.marketplace-brand strong{font-size:18px;letter-spacing:-.02em}.marketplace-location{font-size:14px;color:#666}.marketplace-main{max-width:1180px;margin:0 auto;padding:32px 24px 56px}.marketplace-hero{min-height:230px;border-radius:24px;padding:36px 42px;background:linear-gradient(115deg,#e64e1f,#fb8541);color:#fff;display:flex;justify-content:space-between;align-items:center;gap:28px;overflow:hidden}.marketplace-hero h1{font-size:clamp(28px,4vw,44px);line-height:1.06;max-width:670px;letter-spacing:-.045em;margin:6px 0 12px}.marketplace-hero p:not(.marketplace-eyebrow){max-width:650px;color:#fff4ee;font-size:16px}.marketplace-eyebrow{font-size:12px;font-weight:900;letter-spacing:.1em;margin:0}.marketplace-hero-mark{display:grid;place-items:center;min-width:105px;height:105px;border:1px solid rgba(255,255,255,.35);border-radius:50%;font-size:44px;background:rgba(255,255,255,.12)}.marketplace-search{margin:-27px auto 0;position:relative;max-width:890px;background:#fff;border-radius:18px;padding:16px;box-shadow:0 14px 35px rgba(75,30,15,.16)}.marketplace-search label{font-size:13px;margin:0 0 7px;color:#4b5563}.marketplace-search-row{display:flex;gap:10px}.marketplace-search input{height:49px;border-color:#dedede;background:#fff;font-size:16px}.marketplace-search button{border:0;border-radius:12px;padding:0 23px;background:#e85720;color:#fff;font-weight:800;cursor:pointer}.marketplace-highlights{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:30px 0 36px}.marketplace-highlights article{display:flex;align-items:center;gap:11px;background:#fff;border:1px solid #ededed;border-radius:15px;padding:15px}.marketplace-highlights article>span{display:grid;place-items:center;min-width:32px;height:32px;border-radius:50%;background:#fff0ea;color:#dc4b19;font-weight:900}.marketplace-highlights strong,.marketplace-highlights small{display:block}.marketplace-highlights strong{font-size:14px}.marketplace-highlights small{font-size:12px;margin-top:2px}.marketplace-section{margin-top:30px}.marketplace-section-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.marketplace-section-head h2{font-size:23px;letter-spacing:-.025em;margin:0}.marketplace-section-head p{font-size:14px;color:#6b7280;margin:4px 0 0}.marketplace-chips{display:flex;gap:9px;flex-wrap:wrap}.marketplace-chip{padding:9px 14px;border:1px solid #dedede;border-radius:999px;background:#fff;color:#454545;font-weight:700;font-size:14px}.marketplace-chip:hover,.marketplace-chip.active{background:#27272a;color:#fff;border-color:#27272a}.marketplace-muted{font-size:14px;color:#6b7280}.marketplace-clear{font-size:14px;font-weight:700;color:#d54717}.marketplace-store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.marketplace-store-card{overflow:hidden;background:#fff;border:1px solid #e9e9e9;border-radius:18px;position:relative;min-height:315px;box-shadow:0 4px 13px rgba(0,0,0,.035)}.marketplace-store-cover{height:92px;background:linear-gradient(135deg,#ffe4d8,#fff6f1)}.marketplace-store-cover img{display:block;width:100%;height:100%;object-fit:cover}.marketplace-store-logo{position:absolute;top:56px;left:18px;width:70px;height:70px;border-radius:17px;background:#fff;border:1px solid #e7e7e7;padding:4px;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,.08)}.marketplace-store-logo img{width:100%;height:100%;border-radius:12px;object-fit:cover}.marketplace-store-logo span{display:grid;place-items:center;width:100%;height:100%;border-radius:12px;background:#f6e3da;color:#bd4319;font-size:26px;font-weight:900}.marketplace-store-content{padding:44px 18px 18px}.marketplace-store-title{display:flex;align-items:center;gap:7px}.marketplace-store-title h3{font-size:19px;line-height:1.2;margin:0}.marketplace-verified{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:#e85720;color:#fff;font-size:11px;font-weight:900}.marketplace-category{font-size:13px;color:#d64c1d;font-weight:800;margin:6px 0}.marketplace-description{min-height:38px;font-size:14px;line-height:1.35;color:#606060;margin:6px 0 13px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.marketplace-store-meta{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:16px}.marketplace-store-meta span{font-size:12px;color:#555;border-radius:999px;background:#f4f4f4;padding:5px 8px}.marketplace-store-meta .marketplace-status.open{background:#e8f8ee;color:#19703d;font-weight:800}.marketplace-store-meta .marketplace-status.closed{background:#f5f5f5;color:#777}.marketplace-store-link{font-size:13px;color:#8a8a8a;font-weight:700}.marketplace-empty{grid-column:1/-1;padding:42px 24px;text-align:center;background:#fff;border:1px dashed #d5d5d5;border-radius:18px;color:#555}.marketplace-empty strong{display:block;font-size:18px;color:#333;margin-bottom:7px}.marketplace-empty a{font-weight:800;color:#d64c1d}
@media(max-width:800px){.marketplace-topbar{padding:0 18px}.marketplace-main{padding:20px 16px 42px}.marketplace-hero{padding:28px 24px;min-height:205px}.marketplace-hero-mark{display:none}.marketplace-highlights{grid-template-columns:1fr}.marketplace-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:540px){.marketplace-topbar{height:62px}.marketplace-location{display:none}.marketplace-main{padding-top:14px}.marketplace-hero{border-radius:19px;padding:25px 20px}.marketplace-hero h1{font-size:29px}.marketplace-search{margin:-18px 8px 0;padding:12px;border-radius:15px}.marketplace-search-row{flex-direction:column}.marketplace-search button{height:43px}.marketplace-highlights{margin:24px 0 28px}.marketplace-store-grid{grid-template-columns:1fr}.marketplace-section-head{align-items:flex-start;flex-direction:column;gap:7px}.marketplace-chip{font-size:13px;padding:8px 12px}}

/* Loja pública — Fase 4 */
.marketplace-store-card{display:block;color:inherit;cursor:pointer}.marketplace-store-card:hover{transform:translateY(-2px);border-color:#e85720;box-shadow:0 10px 22px rgba(83,35,16,.12)}.marketplace-store-card:focus-visible{outline:3px solid #e85720;outline-offset:3px}.marketplace-store-link{color:#d64c1d;font-weight:800}
.marketplace-hero-v2{min-height:176px;padding:28px 42px}.marketplace-hero-v2 h1{max-width:620px;font-size:clamp(29px,3.5vw,40px)}.marketplace-hero-composition{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid rgba(255,255,255,.32);border-radius:18px;background:rgba(255,255,255,.12);color:#fff}.marketplace-hero-composition span{font-size:34px}.marketplace-hero-composition b{font-size:14px;line-height:1.45}.marketplace-segments{margin-top:25px}.marketplace-kicker{font-size:11px!important;font-weight:900!important;letter-spacing:.09em;color:#e85720!important;margin:0 0 3px!important}.marketplace-trust{margin-top:42px;margin-bottom:0}.marketplace-home-v2 .marketplace-search{margin:-20px auto 0}.marketplace-home-v2 .marketplace-store-grid{grid-template-columns:repeat(3,minmax(0,1fr))}@media(max-width:800px){.marketplace-hero-v2{min-height:175px;padding:26px 24px}.marketplace-hero-composition{display:none}.marketplace-home-v2 .marketplace-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.marketplace-hero-v2{min-height:160px;padding:23px 19px}.marketplace-home-v2 .marketplace-store-grid{grid-template-columns:1fr}.marketplace-home-v2 .marketplace-search{margin:-14px 4px 0}.marketplace-chips{flex-wrap:nowrap;overflow-x:auto;padding-bottom:4px}.marketplace-chip{white-space:nowrap}.marketplace-trust{margin-top:28px}}
.public-cart-add{width:calc(100% - 20px);margin:0 10px 12px;border:0;border-radius:10px;background:#e85720;color:#fff;padding:10px;font-weight:800;cursor:pointer}.public-cart-item,.public-cart-summary,.public-checkout-form{background:#fff;border:1px solid #e5e5e5;border-radius:14px;padding:16px;margin:12px 0}.public-cart-item{display:flex;justify-content:space-between;gap:12px}.public-cart-item form{display:flex;gap:7px;margin-top:8px}.public-cart-item input,.public-checkout-form input,.public-checkout-form select,.public-checkout-form textarea{margin:6px 0}.public-checkout-form fieldset{border:1px solid #e5e5e5;border-radius:12px;margin:12px 0;padding:12px}.public-checkout-error{background:#fff1f0;color:#a41e16;border-radius:9px;padding:10px}
.public-card-whatsapp{display:block;margin:0 10px 12px;border:1px solid #16a34a;border-radius:10px;color:#15803d;padding:9px;text-align:center;font-size:13px;font-weight:800}.public-product-badges{display:flex;gap:5px;min-height:18px}.public-product-badges span{background:#fff3ed;color:#d94814;border-radius:6px;padding:3px 6px;font-size:10px;font-weight:900;text-transform:uppercase}.public-product-content del{font-size:12px;color:#64748b;margin-right:5px}.public-product-content em{font-style:normal;color:#c2410c;font-size:12px;font-weight:800}
.g4-cart-page{background:#f8fafc;color:#172033}.g4-cart-top{height:66px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;justify-content:space-between;padding:0 max(18px,calc((100vw - 1160px)/2));font-weight:800}.g4-cart-top a{color:#f4511e}.g4-cart-top span{color:#2563eb;font-size:14px}.g4-cart-wrap{max-width:1100px;margin:auto;padding:26px 20px 56px}.g4-steps{display:flex;align-items:center;justify-content:center;gap:10px;color:#64748b;font-size:13px}.g4-steps b{display:flex;align-items:center;gap:7px}.g4-steps i{font-style:normal;width:25px;height:25px;border-radius:50%;display:grid;place-items:center;background:#e7eefb;color:#2563eb}.g4-steps b:first-child{color:#f4511e}.g4-steps b:first-child i{background:#f4511e;color:white}.g4-steps>span{width:55px;height:1px;background:#d7e0ec}.g4-cart-intro{margin:28px 0 18px}.g4-cart-intro h1{font-size:32px;margin:0}.g4-cart-intro p{color:#64748b}.g4-cart-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:22px;align-items:start}.g4-cart-items{display:grid;gap:14px}.g4-cart-product,.g4-summary,.g4-trust{background:#fff;border:1px solid #e2e8f0;border-radius:17px;box-shadow:0 5px 16px rgba(15,23,42,.04)}.g4-cart-product{padding:16px;display:grid;grid-template-columns:105px 1fr auto;gap:16px}.g4-cart-image{width:105px;height:105px;border-radius:13px;background:#fff3ed;display:grid;place-items:center;overflow:hidden;color:#64748b;font-size:12px}.g4-cart-image img{width:100%;height:100%;object-fit:contain}.g4-cart-info small{color:#2563eb;font-weight:800}.g4-cart-info h2{font-size:17px;margin:4px 0}.g4-cart-info p{font-size:13px;color:#64748b}.g4-cart-info strong{font-size:15px}.g4-cart-info em{font-style:normal;font-size:12px;color:#64748b;font-weight:400}.g4-qty{display:flex;align-items:center;gap:8px;margin-top:12px}.g4-qty button{border:1px solid #cbd5e1;background:#fff;border-radius:8px;min-width:32px;height:32px;font-size:18px;cursor:pointer}.g4-qty .g4-remove{border:0;color:#dc2626;font-size:13px;margin-left:8px;width:auto}.g4-note{display:flex;gap:8px;margin-top:12px;align-items:end}.g4-note label{font-size:12px;flex:1}.g4-note input{padding:9px;border-color:#cbd5e1}.g4-note button{height:39px;border:1px solid #2563eb;background:#eff6ff;color:#2563eb;border-radius:9px;font-weight:800;padding:0 12px}.g4-item-total{text-align:right;white-space:nowrap}.g4-item-total span{display:block;color:#64748b;font-size:12px}.g4-item-total strong{font-size:17px}.g4-summary{padding:20px;position:sticky;top:82px}.g4-summary h2{font-size:20px}.g4-summary>div{display:flex;justify-content:space-between;margin:15px 0;color:#475569}.g4-summary small{color:#64748b}.g4-summary hr{border:0;border-top:1px solid #e2e8f0}.g4-summary .g4-total{color:#172033}.g4-summary .g4-total strong{font-size:24px;color:#f4511e}.g4-checkout,.g4-continue{width:100%;min-height:47px;border-radius:11px;display:flex;align-items:center;justify-content:center;font-weight:900;margin-top:10px}.g4-checkout{background:#f4511e;color:white}.g4-continue{border:1px solid #2563eb;color:#2563eb}.g4-trust{grid-column:1/-1;padding:16px;display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.g4-trust span{color:#2563eb;font-size:14px}.g4-trust b,.g4-trust small{display:block;margin-left:22px}.g4-trust small{color:#64748b;font-size:11px}.g4-empty{padding:46px 20px;text-align:center;background:#fff;border:1px dashed #cbd5e1;border-radius:18px}.g4-empty div{font-size:36px}.g4-empty a{display:inline-flex;background:#f4511e;color:#fff;padding:11px 15px;border-radius:10px;font-weight:800}@media(max-width:760px){.g4-cart-top span{display:none}.g4-cart-layout{grid-template-columns:1fr}.g4-cart-product{grid-template-columns:78px 1fr}.g4-cart-image{width:78px;height:78px}.g4-item-total{grid-column:2;text-align:left}.g4-note{grid-column:1/-1}.g4-summary{position:static}.g4-trust{grid-template-columns:1fr 1fr}.g4-steps{font-size:11px}.g4-steps>span{width:22px}.g4-cart-intro h1{font-size:28px}}@media(max-width:460px){.g4-cart-product{padding:13px;gap:10px}.g4-note{flex-direction:column;align-items:stretch}.g4-note button{width:100%}.g4-trust{grid-template-columns:1fr}.g4-steps b{gap:3px}.g4-steps>span{width:10px}}
.public-store-page{background:#f7f7f7;color:#262626}.public-topbar{height:64px;background:#fff;border-bottom:1px solid #e8e8e8;padding:0 max(18px,calc((100vw - 1180px)/2));display:flex;align-items:center;justify-content:space-between;gap:15px;position:sticky;top:0;z-index:5}.public-topbar a{font-weight:800;color:#bc451b}.public-topbar strong{font-size:15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.public-share,.public-copy{border:1px solid #ddd;border-radius:10px;background:#fff;padding:8px 11px;font-weight:800;color:#444;cursor:pointer}.public-store-main{max-width:1180px;margin:0 auto;padding:24px 20px 54px}.public-store-hero{height:230px;border-radius:22px 22px 0 0;overflow:hidden;background:linear-gradient(125deg,#ffe0d2,#fff4ef)}.public-store-hero img{width:100%;height:100%;object-fit:cover}.public-store-profile{display:grid;grid-template-columns:92px minmax(0,1fr) auto;gap:18px;align-items:center;background:#fff;border:1px solid #e8e8e8;border-top:0;border-radius:0 0 22px 22px;padding:18px 22px 20px}.public-store-logo{width:88px;height:88px;border:1px solid #e3e3e3;border-radius:20px;background:#fff;padding:5px;overflow:hidden}.public-store-logo img{width:100%;height:100%;object-fit:cover;border-radius:15px}.public-store-logo span,.public-logo-fallback{display:grid;place-items:center;width:100%;height:100%;border-radius:15px;background:#fae5dc;color:#c14819;font-weight:900;font-size:30px}.public-store-intro h1{font-size:28px;letter-spacing:-.03em;margin:0 0 5px}.public-store-intro>p{color:#666;max-width:630px}.public-pills{display:flex;gap:7px;flex-wrap:wrap}.public-pills span{font-size:12px;font-weight:700;background:#f3f3f3;padding:5px 8px;border-radius:99px}.public-pills .open{background:#e7f7ec;color:#17723b}.public-store-actions{display:flex;flex-direction:column;gap:8px;min-width:175px}.public-whatsapp{display:inline-flex;align-items:center;justify-content:center;background:#189b54;border-radius:11px;padding:11px 13px;color:#fff!important;font-weight:800;text-align:center}.public-store-info{display:flex;gap:14px;flex-wrap:wrap;padding:15px 4px;color:#5a5a5a;font-size:14px}.public-store-info span{max-width:100%}.public-catalog-search{display:flex;gap:10px;background:#fff;padding:12px;border:1px solid #e5e5e5;border-radius:15px}.public-catalog-search input{height:48px;background:#fff}.public-catalog-search button,.public-filters button{border:0;background:#e85720;color:white;border-radius:11px;padding:0 19px;font-weight:800;cursor:pointer}.public-categories{display:flex;gap:9px;overflow:auto;padding:18px 0;scrollbar-width:thin}.public-categories a{flex:none;padding:9px 12px;border:1px solid #ddd;border-radius:999px;background:#fff;color:#444;font-weight:700;font-size:14px}.public-categories a.active{background:#272727;border-color:#272727;color:#fff}.public-categories small{color:inherit}.public-section{margin-top:28px}.public-section h2{font-size:23px;letter-spacing:-.025em}.public-section-head{display:flex;justify-content:space-between}.public-section-head p{color:#777;font-size:14px}.public-filters{display:flex;gap:9px;align-items:center;flex-wrap:wrap;background:#fff;border:1px solid #e8e8e8;border-radius:14px;padding:11px;margin:13px 0 18px}.public-filters select{width:auto;min-width:155px;padding:9px 10px}.public-filters label{flex-direction:row;align-items:center;font-size:13px;white-space:nowrap}.public-filters label input{width:auto}.public-filters button{height:39px}.public-product-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.public-product-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.public-product-card{background:#fff;border:1px solid #e8e8e8;border-radius:16px;overflow:hidden;min-width:0;transition:transform .15s,box-shadow .15s}.public-product-card:hover{transform:translateY(-2px);box-shadow:0 9px 20px rgba(0,0,0,.08)}.public-product-card>a{display:block;height:100%;color:inherit}.public-product-card img,.public-product-no-image{display:block;width:100%;height:172px;object-fit:contain;background:#fafafa}.public-product-no-image{display:grid;place-items:center;color:#888;font-size:13px}.public-product-no-image.main{height:390px;border-radius:16px}.public-product-content{padding:13px;display:flex;flex-direction:column;gap:7px}.public-product-badges{min-height:19px;display:flex;gap:5px}.public-product-badges span{padding:3px 6px;border-radius:6px;background:#fff0e9;color:#c34518;font-size:10px;font-weight:900;text-transform:uppercase}.public-product-content h3{font-size:16px;line-height:1.2;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.public-product-content p{min-height:34px;margin:0;color:#707070;font-size:13px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.public-product-content small{font-size:12px}.public-product-content strong{font-size:17px;color:#202020}.public-product-content del{font-size:12px;color:#777}.public-product-content em{font-size:12px;color:#ae481e;font-style:normal;font-weight:800}.public-empty{grid-column:1/-1;padding:40px;text-align:center;background:#fff;border:1px dashed #d5d5d5;border-radius:16px}.public-empty strong{font-size:18px}.public-qr{margin-top:35px;background:#fff;border:1px solid #e7e7e7;border-radius:15px;padding:12px;max-width:230px}.public-qr summary{cursor:pointer;font-weight:800}.public-qr img{width:170px;display:block;margin:14px auto 5px}.public-qr p{text-align:center;font-size:12px;color:#666}.public-product-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:28px;background:#fff;border:1px solid #e7e7e7;border-radius:21px;padding:20px}.public-product-main-image{width:100%;height:390px;object-fit:contain;background:#fafafa;border-radius:15px}.public-product-thumbs{display:flex;gap:8px;flex-wrap:wrap;margin-top:9px}.public-product-thumbs button{border:1px solid #ddd;background:#fff;border-radius:8px;padding:3px;cursor:pointer}.public-product-thumbs img{width:54px;height:54px;object-fit:cover;border-radius:5px}.public-product-details h1{font-size:31px;line-height:1.08;letter-spacing:-.035em;margin:7px 0 12px}.public-product-details>p{color:#5e5e5e;line-height:1.45}.public-price{display:block;margin:14px 0;font-size:26px;color:#202020}.public-unavailable-product{background:#fff2ea;padding:10px;border-radius:9px;color:#a34119!important;font-weight:700}.public-tech-specs{display:grid;grid-template-columns:145px 1fr;gap:8px;margin:18px 0}.public-tech-specs dt{font-weight:800;color:#555}.public-tech-specs dd{margin:0;color:#333}.public-unavailable{min-height:100vh;display:grid;place-content:center;text-align:center;padding:25px;background:#f7f7f7}.public-unavailable .public-logo-fallback{width:64px;height:64px;margin:0 auto 17px;border-radius:17px;font-size:19px}.public-unavailable h1{font-size:27px}.public-unavailable p{max-width:400px;color:#666}.public-unavailable a{font-weight:800;color:#c4481c}
@media(max-width:900px){.public-product-grid,.public-product-grid.compact{grid-template-columns:repeat(3,minmax(0,1fr))}.public-store-profile{grid-template-columns:80px 1fr}.public-store-actions{grid-column:1/-1;flex-direction:row}.public-store-actions>*{flex:1}.public-product-detail{grid-template-columns:1fr}.public-product-main-image{height:330px}}
@media(max-width:620px){.public-store-main{padding:14px 13px 38px}.public-store-hero{height:135px;border-radius:16px 16px 0 0}.public-store-profile{grid-template-columns:64px 1fr;padding:14px;border-radius:0 0 16px 16px;gap:12px}.public-store-logo{width:64px;height:64px;border-radius:15px}.public-store-intro h1{font-size:22px}.public-store-intro>p{font-size:13px}.public-store-info{display:grid;gap:7px;padding:13px 3px;font-size:13px}.public-catalog-search{flex-direction:column}.public-catalog-search button{height:42px}.public-filters{align-items:stretch}.public-filters select{width:100%}.public-filters button{width:100%}.public-product-grid,.public-product-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.public-product-card img,.public-product-no-image{height:130px}.public-product-content{padding:10px}.public-product-content h3{font-size:14px}.public-product-content strong{font-size:15px}.public-product-detail{padding:13px;border-radius:16px;gap:16px}.public-product-main-image,.public-product-no-image.main{height:270px}.public-product-details h1{font-size:25px}.public-tech-specs{grid-template-columns:1fr;gap:2px}.public-tech-specs dd{margin-bottom:7px}.public-topbar strong{max-width:135px}}

/* Redesign técnico reutilizável da página pública da loja. */
.public-store-page{background:#f7f9fc;color:#10233f}.public-store-page .public-topbar{background:#fff;border-bottom:1px solid #e5eaf2;box-shadow:0 2px 12px #10233f0d}.public-store-page .public-topbar strong{color:#123b78}.public-store-page .public-topbar a{border-radius:9px}.public-store-page .public-store-main{max-width:1240px;padding:26px 24px 56px}.public-store-page .public-store-hero{height:180px;background:linear-gradient(115deg,#0e326d 0%,#1e5ab6 60%,#f15a24 100%);position:relative;overflow:hidden}.public-store-page .public-store-hero:after{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,transparent 0 34px,#fff1 35px 36px)}.public-store-page .public-store-profile{margin-top:-52px;border:1px solid #e5eaf2;box-shadow:0 16px 38px #10233f14}.public-store-page .public-store-logo{border:3px solid #fff;box-shadow:0 5px 16px #10233f29}.public-store-page .public-store-intro h1{color:#10233f}.public-store-page .public-store-intro>p{color:#607089}.public-store-page .public-store-meta span{border-radius:999px;background:#eff4fb;color:#28486f}.public-store-page .public-store-meta .open{background:#e9f8ef;color:#13743d}.public-store-page .public-store-meta .closed{background:#fff0ed;color:#be401c}.public-store-page .public-store-actions a{background:#f15a24;border-color:#f15a24;color:#fff;border-radius:9px}.public-store-page .public-store-actions a:hover{background:#cf4316}.public-store-page .public-store-info{border-color:#e5eaf2;background:#fff;box-shadow:0 6px 22px #10233f0a}.public-store-page .public-store-info strong{color:#123b78}.public-store-page .public-catalog-search{background:#fff;border:1px solid #dce5f1;border-radius:12px;padding:7px;box-shadow:0 7px 22px #10233f0a}.public-store-page .public-catalog-search input{border:0;background:transparent}.public-store-page .public-catalog-search button,.public-store-page .public-cart-add{background:#f15a24;border-color:#f15a24;border-radius:9px}.public-store-page .public-catalog-search button:hover,.public-store-page .public-cart-add:hover{background:#cf4316}.public-store-page .public-section-title h2{color:#10233f}.public-store-page .public-category-chip{border-color:#dce5f1;background:#fff;color:#26466f;border-radius:999px}.public-store-page .public-category-chip.active,.public-store-page .public-category-chip:hover{background:#123b78;border-color:#123b78;color:#fff}.public-store-page .public-filters{padding:14px;border:1px solid #e5eaf2;background:#fff;border-radius:12px}.public-store-page .public-filters select{border-color:#d4dfed;border-radius:8px}.public-store-page .public-filters button{background:#123b78;border-radius:8px}.public-store-page .public-product-card{border:1px solid #e3eaf3;border-radius:12px;background:#fff;box-shadow:0 8px 22px #10233f0b;transition:transform .18s,box-shadow .18s}.public-store-page .public-product-card:hover{transform:translateY(-3px);box-shadow:0 15px 29px #10233f1c}.public-store-page .public-product-card img,.public-store-page .public-product-no-image{background:#f1f5fa;height:190px}.public-store-page .public-product-no-image{color:#59708e}.public-store-page .public-product-content h3{color:#10233f}.public-store-page .public-product-content small{color:#536d8e}.public-store-page .public-product-content strong{color:#e84e1b}.public-store-page .public-product-badges span{background:#eaf2ff;color:#174a91;border-radius:999px}.public-store-page .public-product-badges span+span{background:#fff0e9;color:#c64217}.public-store-page .public-card-whatsapp{border-radius:8px}.public-store-page .public-empty{border:1px dashed #cad7e8;background:#fff;color:#526b89}@media(max-width:620px){.public-store-page .public-store-main{padding:16px 13px 40px}.public-store-page .public-store-hero{height:138px}.public-store-page .public-store-profile{margin-top:-36px}.public-store-page .public-product-card img,.public-store-page .public-product-no-image{height:145px}.public-store-page .public-store-info{padding:14px}.public-store-page .public-filters{gap:9px}}

/* Marketplace público: navegação comercial compacta, sem dados simulados. */
.marketplace-home-v3{background:#f8fafc;color:#172033}.marketplace-topbar-v3{gap:20px}.marketplace-header-actions{display:flex;align-items:center;gap:17px;margin-left:auto}.marketplace-header-actions a{color:#40516b;font-size:14px;font-weight:750;text-decoration:none}.marketplace-header-actions a:hover{color:#f4511e}.marketplace-topbar-v3 .marketplace-location{margin:0;color:#1e3a8a;background:#eff6ff;border:1px solid #dbeafe;border-radius:999px;padding:8px 12px;font-size:13px}.marketplace-topbar-v3 .marketplace-location b{color:#2563eb;margin-right:5px}.marketplace-hero-v3{min-height:178px;background:linear-gradient(119deg,#1e3a8a,#2563eb 67%,#f4511e);padding:27px 42px}.marketplace-hero-v3 h1{font-size:clamp(29px,3.3vw,41px);max-width:620px}.marketplace-hero-v3 p{max-width:650px}.marketplace-hero-composition-v3{min-width:160px;display:grid;grid-template-columns:34px 1fr;gap:1px 9px;align-items:center}.marketplace-hero-composition-v3 span{grid-row:1/3}.marketplace-hero-composition-v3 small{font-size:11px;opacity:.84}.marketplace-home-v3 .marketplace-search{margin:-19px auto 0;max-width:790px}.marketplace-home-v3 .marketplace-search-row{gap:8px}.marketplace-search-clear{align-self:center;color:#52657f;font-size:13px;font-weight:800;text-decoration:none;padding:8px}.marketplace-search-clear:hover{color:#f4511e}.marketplace-category-row{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;padding:2px 0 7px}.marketplace-category-row .marketplace-chip{white-space:nowrap;display:inline-flex;align-items:center;gap:6px}.marketplace-category-row .marketplace-chip i{font-size:10px;font-style:normal;color:#2563eb}.marketplace-category-row .marketplace-chip.active i{color:#fff}.marketplace-quick-filters{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin:4px 0 28px;padding:13px 14px;background:#fff;border:1px solid #e2e8f0;border-radius:12px}.marketplace-quick-filters>span{font-size:13px;font-weight:850;color:#475569}.marketplace-filter-chip{border:1px solid #dce5f0;background:#fff;border-radius:999px;color:#334155;padding:8px 11px;font-size:13px;font-weight:750;text-decoration:none}.marketplace-filter-chip:hover{border-color:#2563eb;color:#1e3a8a}.marketplace-filter-chip.active{background:#1e3a8a;border-color:#1e3a8a;color:#fff}.marketplace-home-v3 .marketplace-clear{margin-left:auto}.marketplace-open-section{padding:20px;border:1px solid #dbeafe;background:linear-gradient(140deg,#eff6ff,#fff);border-radius:16px}.marketplace-open-section .marketplace-section-head{margin-bottom:13px}.marketplace-store-grid-featured{margin:0}.marketplace-results-head{align-items:end}.marketplace-sort{display:flex;align-items:center;gap:7px}.marketplace-sort label{font-size:12px;color:#64748b;font-weight:750}.marketplace-sort select{border:1px solid #cbd5e1;background:#fff;border-radius:8px;color:#334155;padding:8px;font:inherit;font-size:13px}.marketplace-home-v3 .marketplace-store-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.marketplace-home-v3 .marketplace-store-card{border:1px solid #e2e8f0;box-shadow:0 7px 20px #1720330b}.marketplace-home-v3 .marketplace-store-card:hover{border-color:#b9cae8;box-shadow:0 14px 29px #17203318}.marketplace-home-v3 .marketplace-store-cover{height:120px;background:linear-gradient(130deg,#eff6ff,#fff3ed)}.marketplace-promo-badge{position:absolute;top:10px;right:10px;background:#f4511e;color:#fff;border-radius:999px;padding:5px 8px;font-size:11px;font-weight:900}.marketplace-home-v3 .marketplace-store-logo{border-color:#fff;box-shadow:0 3px 10px #17203322}.marketplace-home-v3 .marketplace-store-title h3{color:#172033}.marketplace-home-v3 .marketplace-category{color:#1e3a8a;font-weight:850}.marketplace-home-v3 .marketplace-description{min-height:38px}.marketplace-home-v3 .marketplace-store-meta{gap:6px}.marketplace-home-v3 .marketplace-store-meta span{border-radius:999px;background:#f1f5f9;color:#536275;padding:5px 7px;font-size:11px}.marketplace-home-v3 .marketplace-store-meta .open{background:#eaf8ef;color:#16803e}.marketplace-home-v3 .marketplace-store-meta .closed{background:#fff0f0;color:#c42c2c}.marketplace-home-v3 .marketplace-store-link{color:#f4511e;font-weight:900}.marketplace-home-v3 .marketplace-store-link b{font-size:16px}.marketplace-home-v3 .marketplace-trust{margin-top:40px}.marketplace-home-v3 :focus-visible{outline:3px solid #2563eb;outline-offset:3px}@media(max-width:800px){.marketplace-header-actions{display:none}.marketplace-topbar-v3 .marketplace-location{margin-left:auto}.marketplace-hero-v3{min-height:166px;padding:24px}.marketplace-hero-composition-v3{display:none}.marketplace-home-v3 .marketplace-store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:540px){.marketplace-topbar-v3{padding:12px 14px}.marketplace-topbar-v3 .marketplace-location{max-width:185px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.marketplace-hero-v3{min-height:153px;padding:20px 18px}.marketplace-hero-v3 h1{font-size:27px}.marketplace-home-v3 .marketplace-search{margin:-13px 4px 0}.marketplace-search-row{flex-wrap:wrap}.marketplace-search-row input{min-width:0;flex:1 1 185px}.marketplace-search-row button{flex:0 0 auto}.marketplace-search-clear{padding:3px 6px}.marketplace-quick-filters{margin-bottom:23px;gap:7px}.marketplace-quick-filters>span{width:100%}.marketplace-filter-chip{font-size:12px;padding:7px 9px}.marketplace-home-v3 .marketplace-clear{margin-left:0}.marketplace-open-section{padding:14px}.marketplace-results-head{align-items:flex-start;gap:10px}.marketplace-sort{width:100%;justify-content:space-between}.marketplace-sort select{flex:1}.marketplace-home-v3 .marketplace-store-grid{grid-template-columns:1fr;gap:13px}.marketplace-home-v3 .marketplace-store-cover{height:112px}.marketplace-home-v3 .marketplace-description{min-height:0}}

/* Correção: perfil da loja não sobrepõe a capa nem as ações. */
.public-store-page .public-store-profile{position:relative;z-index:1;margin-top:0;min-height:126px;grid-template-columns:92px minmax(0,1fr) minmax(175px,auto);border-radius:0 0 18px 18px;border-top:0}.public-store-page .public-store-intro{min-width:0}.public-store-page .public-store-intro h1{display:block;line-height:1.15;margin:0 0 6px}.public-store-page .public-store-actions{align-self:center;justify-self:end;min-width:175px}.public-store-page .public-store-actions>*{box-sizing:border-box;text-align:center}.public-store-page .public-store-hero{position:relative;z-index:0;border-radius:18px 18px 0 0}.public-store-page .public-store-info{position:relative;z-index:1}@media(max-width:700px){.public-store-page .public-store-profile{margin-top:0;min-height:0;grid-template-columns:64px minmax(0,1fr);border-radius:0 0 16px 16px}.public-store-page .public-store-actions{grid-column:1/-1;justify-self:stretch;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-width:0}.public-store-page .public-store-actions>*{min-width:0}}@media(max-width:430px){.public-store-page .public-store-actions{grid-template-columns:1fr}.public-store-page .public-store-intro h1{font-size:20px}}

/* Home G4 Marketplace: estrutura visual baseada na referência enviada. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.marketplace-home-v4{background:#f7f9fc;color:#172033;font-family:Inter,Arial,sans-serif}.marketplace-main-v4{max-width:1400px;padding:20px 28px 60px}.marketplace-topbar-v4{height:72px;padding:0 max(24px,calc((100vw - 1400px)/2));gap:24px;background:#fff}.marketplace-topbar-v4 .marketplace-brand span{width:38px;height:38px;border-radius:11px;background:#f4511e;display:grid;place-items:center;color:#fff;font-size:17px}.marketplace-topbar-v4 .marketplace-brand strong{font-size:17px}.marketplace-location-v4{flex:none;display:flex!important;align-items:center;gap:7px!important;border:1px solid #e2e8f0!important;background:#fff!important;color:#172033!important;padding:10px 14px!important}.marketplace-location-v4 b{font-size:18px;color:#172033!important;margin:0!important}.marketplace-location-v4 i{font-style:normal;color:#64748b;margin-left:3px}.marketplace-header-search{height:42px;max-width:510px;flex:1;display:flex;align-items:center;border:1px solid #e2e8f0;border-radius:999px;background:#fff;overflow:hidden}.marketplace-header-search input{min-width:0;flex:1;border:0;outline:0;padding:0 16px;color:#172033;background:transparent}.marketplace-header-search button{border:0;background:transparent;font-size:24px;line-height:1;padding:0 15px;cursor:pointer}.marketplace-topbar-v4 .marketplace-header-actions{gap:23px}.marketplace-topbar-v4 .marketplace-header-actions a{font-size:13px;color:#172033}.marketplace-hero-v4{min-height:250px;padding:38px 56px;border-radius:25px;background:linear-gradient(112deg,#103eae 0%,#1856d0 37%,#7056ae 65%,#fb5a1d 100%);overflow:hidden;position:relative}.marketplace-hero-v4:after{content:"";position:absolute;inset:0;background:radial-gradient(circle at 71% 60%,#fff3 0 2px,transparent 3px),radial-gradient(ellipse at 75% 45%,transparent 0 31%,#fff2 31.5% 32%,transparent 32.5%);opacity:.8}.marketplace-hero-copy{position:relative;z-index:1;max-width:650px}.marketplace-hero-v4 h1{font-size:38px;line-height:1.12;letter-spacing:-.035em;margin:0 0 9px;color:#fff}.marketplace-hero-v4 p{color:#fff;font-size:16px;margin:0 0 19px}.marketplace-hero-search{display:flex;width:min(625px,100%);height:56px;padding:4px;background:#fff;border-radius:13px;box-shadow:0 8px 22px #10245b38}.marketplace-hero-search input{min-width:0;flex:1;border:0;outline:0;padding:0 17px;background:transparent;color:#172033}.marketplace-hero-search button{min-width:96px;border:0;border-radius:9px;background:#f4511e;color:#fff;font-weight:850;cursor:pointer}.marketplace-hero-chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.marketplace-hero-chips a{border-radius:999px;background:#ffffff1d;color:#fff;border:1px solid #ffffff21;padding:7px 13px;font-size:12px;text-decoration:none}.marketplace-hero-art{position:absolute;z-index:1;right:78px;bottom:11px;width:345px;height:215px}.marketplace-art-phone{position:absolute;z-index:4;right:94px;top:0;width:84px;height:190px;border:5px solid #172033;border-radius:19px;background:#fff;box-shadow:0 13px 22px #1720335c;display:flex;align-items:center;flex-direction:column;padding-top:25px;color:#f4511e}.marketplace-art-phone:before{content:"";position:absolute;top:5px;width:32px;height:4px;border-radius:4px;background:#172033}.marketplace-art-phone b{padding:5px;border-radius:7px;background:#f4511e;color:#fff}.marketplace-art-phone small{margin-top:10px;color:#172033;font-weight:800;font-size:9px}.marketplace-art-phone span{margin-top:27px;color:#2563eb;font-size:35px}.marketplace-art-bag{position:absolute;z-index:5;right:32px;bottom:4px;width:76px;height:80px;background:#f4511e;clip-path:polygon(12% 10%,88% 10%,100% 100%,0 100%);box-shadow:0 8px 13px #17203357;display:grid;place-items:center;color:#fff;font-size:22px}.marketplace-art-bag:before{content:"";position:absolute;top:-15px;width:35px;height:26px;border:4px solid #ffb148;border-bottom:0;border-radius:20px 20px 0 0}.marketplace-art-card{position:absolute;background:#fff;border:4px solid #ffffffa8;border-radius:12px;box-shadow:0 10px 21px #17203347;color:#64748b;font-size:10px;padding:15px}.art-card-one{left:21px;top:26px;width:106px;height:84px;transform:rotate(9deg)}.art-card-one b{display:block;margin-top:7px;color:#f4511e;font-size:24px}.art-card-two{right:-8px;top:43px;width:95px;height:98px;transform:rotate(8deg)}.art-card-two strong{display:block;color:#f5a300;margin-top:17px;font-size:11px}.marketplace-art-pin{position:absolute;z-index:6;right:162px;bottom:37px;width:44px;height:54px;background:#2563eb;border-radius:50% 50% 50% 0;transform:rotate(-45deg);box-shadow:0 7px 14px #17203342;color:#fff;text-align:center;padding-top:10px;font-size:25px}.marketplace-art-pin:after{content:"";position:absolute;left:13px;top:13px;width:17px;height:17px;border-radius:50%;background:#fff}.marketplace-section-title-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:15px}.marketplace-section-title-row h2{font-size:20px;letter-spacing:-.03em;margin:0;color:#172033}.marketplace-section-title-row>div p{margin:4px 0 0;color:#64748b;font-size:13px}.marketplace-section-title-row>a{color:#2563eb;text-decoration:none;font-size:13px;font-weight:850;white-space:nowrap}.marketplace-section-title-row>a b{font-size:20px;margin-left:5px}.marketplace-categories-v4{margin-top:24px}.marketplace-category-cards{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(102px,1fr);gap:12px;overflow-x:auto;padding:1px 1px 8px}.marketplace-category-card{height:84px;display:flex;align-items:center;justify-content:center;gap:7px;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:15px;box-shadow:0 5px 13px #17203308;color:#172033;text-decoration:none;font-size:12px;font-weight:750;transition:.18s}.marketplace-category-card i{font-style:normal;font-size:24px;color:#2563eb}.marketplace-category-card:hover{transform:translateY(-2px);box-shadow:0 9px 16px #17203313}.marketplace-category-card.active{background:#fff5f0;border-color:#f4511e;color:#f4511e}.marketplace-category-card.active i{color:#f4511e}.marketplace-filters-v4{margin-top:14px;padding-top:1px}.marketplace-filter-row{display:flex;gap:10px;align-items:center;overflow-x:auto;padding-bottom:8px}.marketplace-home-v4 .marketplace-filter-chip{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;padding:9px 14px;background:#fff;box-shadow:0 3px 8px #1720330a}.marketplace-home-v4 .marketplace-filter-chip i{font-style:normal;font-size:15px;color:#2563eb}.marketplace-home-v4 .marketplace-filter-chip:first-child i{color:#16a34a}.marketplace-home-v4 .marketplace-filter-chip.active{background:#eff6ff;border-color:#2563eb;color:#1e3a8a}.marketplace-home-v4 .marketplace-clear{color:#f4511e}.marketplace-open-v4{border-top:1px solid #e7edf5;padding-top:16px;margin-top:1px}.marketplace-open-v4 h2 i{font-size:13px;color:#16a34a;font-style:normal;vertical-align:middle}.marketplace-store-grid-v4{grid-template-columns:repeat(5,minmax(0,1fr));gap:13px}.marketplace-home-v4 .marketplace-store-card{min-height:187px;border-radius:15px;box-shadow:0 6px 17px #1720330b;overflow:visible;padding-top:1px}.marketplace-home-v4 .marketplace-store-cover{display:none}.marketplace-home-v4 .marketplace-store-logo{position:relative;top:auto;left:auto;width:68px;height:68px;margin:17px 0 -57px 16px;border-radius:50%;box-shadow:none;padding:0;border:0;background:#fff}.marketplace-home-v4 .marketplace-store-logo img{border-radius:50%}.marketplace-home-v4 .marketplace-store-content{padding:15px 15px 15px 96px;min-height:185px}.marketplace-home-v4 .marketplace-store-title h3{font-size:14px}.marketplace-home-v4 .marketplace-description{display:none}.marketplace-home-v4 .marketplace-category{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.marketplace-home-v4 .marketplace-store-meta{margin-top:12px;display:flex;gap:5px}.marketplace-home-v4 .marketplace-store-meta span{padding:0;background:transparent;font-size:11px}.marketplace-home-v4 .marketplace-store-meta span:not(.open):not(.closed){display:none}.marketplace-home-v4 .marketplace-store-link{position:absolute;bottom:13px;left:15px;font-size:12px}.marketplace-home-v4 .marketplace-promo-badge{top:9px;right:9px}.marketplace-offers-v4{border-top:1px solid #e7edf5;padding-top:16px}.marketplace-offer-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.marketplace-offer-card{position:relative;display:block;min-height:130px;border-radius:16px;overflow:hidden;color:#fff;text-decoration:none;background:linear-gradient(120deg,#173f9d,#f4511e);box-shadow:0 7px 17px #17203316}.marketplace-offer-card.offer-2{background:linear-gradient(120deg,#10284d,#f4511e)}.marketplace-offer-card.offer-3{background:linear-gradient(120deg,#2d409d,#e85720)}.marketplace-offer-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.32}.marketplace-offer-card:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#10265ee8,#10265e18)}.marketplace-offer-card div{position:relative;z-index:1;padding:21px}.marketplace-offer-card span{display:block;font-size:11px;font-weight:900;letter-spacing:.08em;color:#ffb18d}.marketplace-offer-card strong{display:block;font-size:20px;line-height:1.1;margin:5px 0 13px}.marketplace-offer-card small{font-weight:800}.marketplace-all-v4{border-top:1px solid #e7edf5;padding-top:20px}.marketplace-home-v4 .marketplace-store-grid-all{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.marketplace-home-v4 :focus-visible{outline:3px solid #2563eb;outline-offset:3px}@media(max-width:1050px){.marketplace-main-v4{padding:18px 20px 52px}.marketplace-hero-v4{padding:33px}.marketplace-store-grid-v4{grid-template-columns:repeat(3,minmax(0,1fr))}.marketplace-hero-art{right:20px;transform:scale(.85);transform-origin:right bottom}.marketplace-topbar-v4 .marketplace-header-actions{display:none}}@media(max-width:720px){.marketplace-topbar-v4{height:63px;padding:0 14px;gap:10px}.marketplace-topbar-v4 .marketplace-brand strong{display:none}.marketplace-location-v4{min-width:0;flex:1!important;padding:8px 9px!important}.marketplace-location-v4 span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marketplace-header-search{display:none}.marketplace-main-v4{padding:13px 13px 45px}.marketplace-hero-v4{min-height:264px;padding:25px 19px}.marketplace-hero-v4 h1{font-size:30px}.marketplace-hero-v4 p{font-size:14px;max-width:430px}.marketplace-hero-search{height:50px}.marketplace-hero-art{display:none}.marketplace-hero-chips{flex-wrap:nowrap;overflow:hidden}.marketplace-hero-chips a{font-size:11px}.marketplace-category-cards{grid-auto-columns:94px}.marketplace-store-grid-v4,.marketplace-home-v4 .marketplace-store-grid-all{grid-template-columns:1fr}.marketplace-home-v4 .marketplace-store-card{min-height:155px}.marketplace-home-v4 .marketplace-store-content{min-height:153px}.marketplace-offer-grid{grid-template-columns:1fr}.marketplace-results-head{align-items:flex-start}.marketplace-sort{width:100%;justify-content:space-between}.marketplace-sort select{flex:1}}


.sidebar-nav{display:flex;flex-direction:column;gap:4px}
.nav-group{border:1px solid rgba(255,255,255,.08);border-radius:12px;margin:4px 0;padding:4px;background:rgba(255,255,255,.03)}
.nav-group summary{cursor:pointer;color:#ffcf59;font-weight:900;padding:8px 10px;list-style:none}
.nav-group summary::-webkit-details-marker{display:none}
.nav-group summary::after{content:'▾';float:right;color:#b7c2cf}
.nav-group:not([open]) summary::after{content:'▸'}
.nav-group a{display:block;margin:2px 0 2px 8px;font-size:14px}


.labels-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:12px}
.label-card{background:white;border:1px solid #111827;border-radius:10px;padding:10px;min-height:110px;display:flex;flex-direction:column;justify-content:space-between}
.label-card strong{font-size:18px}
.label-card span{font-size:13px;font-weight:700}
.barcode{font-family:'Courier New',monospace;letter-spacing:2px;background:repeating-linear-gradient(90deg,#111 0 2px,#fff 2px 4px);padding-top:28px;font-size:11px;text-align:center}
pre{white-space:pre-wrap;background:#f8fafc;border:1px solid var(--line);border-radius:12px;padding:12px}
@media print{
  .no-print,.sidebar,.topbar{display:none!important}
  .main{margin-left:0!important}
  .content{padding:0!important;max-width:none!important}
  .card{box-shadow:none!important}
  .labels-grid{grid-template-columns:repeat(3,1fr)}
}


/* Nova venda - layout moderno */
.sale-page-modern{max-width:1500px;margin:0 auto}
.sale-hero{background:linear-gradient(135deg,#0b1f33,#0f3b63);color:white;border-radius:26px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;box-shadow:0 16px 38px rgba(15,31,51,.18)}
.sale-hero h1{font-size:34px;margin:4px 0 6px}
.sale-hero p{color:#d9e6f2;margin:0}
.eyebrow{display:inline-flex;background:rgba(245,178,27,.16);color:#ffcf59;border:1px solid rgba(245,178,27,.34);border-radius:999px;padding:6px 10px;font-weight:900;font-size:12px;letter-spacing:.04em;text-transform:uppercase}
.sale-hero-total{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:20px;padding:16px 20px;min-width:230px;text-align:right}
.sale-hero-total span{display:block;color:#dbeafe;font-size:13px;font-weight:700}
.sale-hero-total strong{display:block;font-size:30px;margin-top:4px;color:#fff}
.sale-layout-modern{display:grid;grid-template-columns:minmax(0,1.25fr) 430px;gap:18px;align-items:start}
.sale-left{display:flex;flex-direction:column;gap:18px}
.sale-card-modern{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:18px}
.sale-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.sale-card-head h2{font-size:22px;margin:4px 0}
.sale-card-head p{color:var(--muted);margin:0}
.step-badge{width:30px;height:30px;border-radius:10px;background:linear-gradient(135deg,var(--accent),#ffcf59);display:inline-grid;place-items:center;color:#0b1f33;font-weight:900;margin-right:8px}
.sale-check{background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:10px 12px;min-height:46px}
.sale-search-modern input{height:56px;border-radius:18px;font-size:17px;border:2px solid #dbe4ee;background:#f8fafc}
.sale-search-modern input:focus{outline:none;border-color:var(--primary2);background:#fff;box-shadow:0 0 0 4px rgba(18,92,153,.10)}
.sale-tips{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.sale-tips span{background:#f8fafc;border:1px solid var(--line);border-radius:999px;padding:8px 10px;color:#334155;font-size:13px;font-weight:800}
.sticky-sale-card{position:sticky;top:84px}
.sale-summary-box{background:#0b1f33;color:white;border-radius:18px;padding:14px;margin:14px 0;display:grid;gap:8px}
.sale-summary-box div{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(255,255,255,.12);padding-bottom:8px}
.sale-summary-box div:last-child{border-bottom:0;padding-bottom:0}
.sale-summary-box span{color:#dbeafe;font-weight:700}
.sale-summary-box strong{font-size:22px}
.sale-final-btn{border-radius:16px;box-shadow:0 14px 28px rgba(15,59,99,.18)}
.sale-items-card{margin-top:18px}
.sale-table-modern table{min-width:920px}
.sale-table-modern thead th{background:#0b1f33;color:#e5edf5;border-bottom:0}
.sale-table-modern tbody tr{background:#fff}
.sale-table-modern tbody tr:hover{background:#f8fafc}
.sale-table-modern input{min-width:82px}
@media(max-width:1100px){.sale-layout-modern{grid-template-columns:1fr}.sticky-sale-card{position:static}.sale-hero{align-items:flex-start;flex-direction:column}.sale-hero-total{text-align:left;width:100%}}
@media(max-width:640px){.sale-hero h1{font-size:28px}.sale-card-modern{padding:14px;border-radius:18px}.sale-hero{border-radius:20px;padding:18px}}


.quick-create-box{margin-top:14px;border:1px dashed #cbd5e1;border-radius:18px;background:#f8fafc;padding:12px}
.quick-create-box summary{cursor:pointer;font-weight:900;color:#0f3b63}
.quick-create-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin-top:12px;align-items:end}
.quick-message{margin-top:8px;font-weight:800;color:#334155}
.quick-message.success{color:#15803d}
.quick-message.error{color:#b91c1c}
.item-type-pill{display:inline-flex;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:900;margin-bottom:4px}
.item-type-pill.product{background:#dbeafe;color:#1d4ed8}
.item-type-pill.service{background:#fef3c7;color:#92400e}
.align-end{align-items:end;display:flex}


.sale-action-buttons{display:grid;gap:10px;margin-top:12px}
.sale-action-buttons .btn-light{background:#f8fafc;border:1px solid #cbd5e1;color:#0f172a}


/* Nova venda PRO - layout organizado e otimizado */
.sale-pro-page{max-width:1540px;margin:0 auto}
.sale-pro-hero{display:flex;align-items:stretch;justify-content:space-between;gap:18px;margin-bottom:18px;padding:22px;border-radius:28px;background:linear-gradient(135deg,#071827,#0f3b63);color:#fff;box-shadow:0 18px 42px rgba(2,8,23,.18)}
.sale-pro-title h1{margin:6px 0 6px;font-size:36px;letter-spacing:-.03em}
.sale-pro-title p{margin:0;color:#dbeafe;max-width:760px}
.sale-pro-kpis{display:flex;gap:12px;align-items:stretch}
.sale-pro-kpi{min-width:210px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:16px 18px;text-align:right}
.sale-pro-kpi span{display:block;color:#dbeafe;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.06em}
.sale-pro-kpi strong{display:block;font-size:30px;margin-top:6px;color:#fff}
.sale-pro-kpi.small{min-width:130px}
.sale-pro-kpi.small strong{font-size:18px;text-transform:capitalize}
.sale-pro-grid{display:grid;grid-template-columns:minmax(0,1fr) 390px;gap:18px;align-items:start}
.sale-pro-main{display:grid;gap:18px}
.sale-pro-sidebar{min-width:0}
.sale-pro-card{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:0 14px 34px rgba(15,23,42,.08);padding:18px}
.sale-pro-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}
.sale-pro-card-head h2{margin:4px 0 2px;font-size:21px;letter-spacing:-.02em}
.sale-pro-card-head p{margin:0;color:var(--muted)}
.sale-pro-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.sale-pro-fields.one{grid-template-columns:1fr}
.sale-pro-fields label,.sale-pro-service-grid label,.sale-pro-quick-grid label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:900;color:#334155}
.sale-pro-fields input,.sale-pro-fields select,.sale-pro-fields textarea,
.sale-pro-service-grid input,.sale-pro-service-grid select,
.sale-pro-quick-grid input,.sale-pro-quick-grid select{width:100%;border:1px solid #dbe4ee;background:#f8fafc;border-radius:14px;padding:11px 12px;font-size:14px;color:#0f172a}
.sale-pro-fields textarea{min-height:92px;resize:vertical}
.sale-pro-fields input:focus,.sale-pro-fields select:focus,.sale-pro-fields textarea:focus,
.sale-pro-service-grid input:focus,.sale-pro-service-grid select:focus,
.sale-pro-quick-grid input:focus{outline:none;border-color:#0f3b63;background:#fff;box-shadow:0 0 0 4px rgba(15,59,99,.10)}
.sale-pro-fields .span-2,.sale-pro-quick-grid .span-2{grid-column:span 2}
.sale-pro-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:14px;background:#f8fafc;border:1px solid var(--line);border-radius:18px;padding:6px}
.sale-pro-tab{border:0;background:transparent;border-radius:14px;padding:11px 14px;font-weight:900;color:#64748b;cursor:pointer}
.sale-pro-tab.active{background:#0f3b63;color:#fff;box-shadow:0 10px 20px rgba(15,59,99,.18)}
.sale-pro-panel{display:none}
.sale-pro-panel.active{display:block}
.sale-pro-search-wrap{position:relative}
.sale-pro-search input{height:58px;border-radius:18px;background:#fff;border:2px solid #dbe4ee;font-size:17px}
.sale-pro-helper-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.sale-pro-helper-row span{background:#f8fafc;border:1px solid var(--line);border-radius:999px;padding:8px 10px;color:#334155;font-size:13px;font-weight:800}
.sale-pro-service-grid{display:grid;grid-template-columns:minmax(0,1fr) 110px auto;gap:12px;align-items:end}
.sale-pro-manual-service{margin-top:14px;border:1px dashed #cbd5e1;background:#f8fafc;border-radius:18px;padding:14px}
.sale-pro-manual-service h3{margin:0 0 10px;color:#0f3b63}
.sale-pro-quick-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:end}
.sale-pro-table table{min-width:980px}
.sale-pro-table thead th{position:sticky;top:0;z-index:2;background:#0b1f33;color:#e5edf5;border-bottom:0}
.sale-pro-table tbody tr:hover{background:#f8fafc}
.sale-pro-table input{min-width:82px}
.sale-pro-sticky{position:sticky;top:84px}
.sale-pro-summary{background:linear-gradient(135deg,#071827,#0f3b63);color:#fff;border-radius:20px;padding:14px;margin:14px 0;display:grid;gap:10px}
.sale-pro-summary div{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid rgba(255,255,255,.14);padding-bottom:10px}
.sale-pro-summary div:last-child{border-bottom:0;padding-bottom:0}
.sale-pro-summary span{font-weight:900;color:#dbeafe}
.sale-pro-summary strong{font-size:24px}
.sale-pro-items-card{overflow:hidden}
.sale-pro-sidebar{display:grid;gap:18px}
.sale-pro-sidebar .sale-pro-items-card{padding:0;overflow:hidden}
.sale-pro-sidebar .sale-pro-items-card .sale-pro-card-head{padding:18px 18px 0;margin-bottom:10px}
.sale-pro-selected-table{max-height:520px;overflow:auto;border-top:1px solid var(--line)}
.sale-pro-selected-table table{min-width:0;width:100%;border-collapse:separate;border-spacing:0}
.sale-pro-selected-table thead{display:none}
.sale-pro-selected-table tbody{display:grid}
.sale-pro-selected-table tbody tr{display:grid;grid-template-columns:1fr;gap:8px;padding:14px 18px;border-bottom:1px solid var(--line);background:#fff}
.sale-pro-selected-table tbody tr:nth-child(even){background:#f8fafc}
.sale-pro-selected-table tbody tr.stock-empty-row{background:#ffe4e6}
.sale-pro-selected-table tbody td{display:grid;grid-template-columns:96px minmax(0,1fr);gap:10px;align-items:center;padding:0;border:0}
.sale-pro-selected-table tbody td:nth-child(1)::before{content:"Item";font-weight:900;color:#64748b}
.sale-pro-selected-table tbody td:nth-child(2)::before{content:"Descricao";font-weight:900;color:#64748b}
.sale-pro-selected-table tbody td:nth-child(3)::before{content:"Estoque";font-weight:900;color:#64748b}
.sale-pro-selected-table tbody td:nth-child(4)::before{content:"Qtd.";font-weight:900;color:#64748b}
.sale-pro-selected-table tbody td:nth-child(5)::before{content:"Valor";font-weight:900;color:#64748b}
.sale-pro-selected-table tbody td:nth-child(6)::before{content:"Desc.";font-weight:900;color:#64748b}
.sale-pro-selected-table tbody td:nth-child(7)::before{content:"Total";font-weight:900;color:#64748b}
.sale-pro-selected-table tbody td:nth-child(8){display:flex;justify-content:flex-end}
.sale-pro-selected-table tbody td:nth-child(8)::before{content:""}
.sale-pro-selected-table input{width:100%;min-width:0;height:36px;border-radius:8px;text-align:center}
.sale-pro-selected-table .lineTotal{font-size:18px;font-weight:900;color:#0f172a}
.sale-search-modern .search-results{top:64px;border-radius:18px;padding:8px;background:#fff;box-shadow:0 20px 46px rgba(15,23,42,.16)}
.sale-search-item{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e2e8f0;border-radius:14px;margin-bottom:8px;padding:12px;background:#fff}
.sale-search-item:last-child{margin-bottom:0}
.sale-search-item:hover{background:#f8fafc;border-color:#93b5d2}
.sale-search-item.stock-empty{background:#fff1f2;border-color:#fecdd3}
.sale-search-item strong{display:block;color:#0f172a}
.sale-search-item span{display:block;margin-top:3px;font-weight:800;color:#475569}
.sale-search-item small{display:block;margin-top:5px;color:#64748b}
.sale-search-item.stock-empty small{color:#be123c;font-weight:900}
@media(min-width:1001px){
  body.sale-screen .sale-pro-grid{
    display:flex !important;
    align-items:flex-start !important;
  }
  body.sale-screen .sale-pro-main{
    flex:1 1 0 !important;
    width:auto !important;
    max-width:none !important;
  }
  body.sale-screen .sale-pro-sidebar{
    flex:0 0 390px !important;
    width:390px !important;
    min-width:390px !important;
    max-width:390px !important;
    position:sticky !important;
    top:0 !important;
    align-self:flex-start !important;
    margin-top:0 !important;
  }
}
@media(max-width:1000px){
  .sale-pro-grid{grid-template-columns:1fr}
  .sale-pro-sticky{position:static}
  .sale-pro-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sale-pro-kpis{width:100%}
}

/* G4 Servicos */
.marketplace-path-switch{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0}.marketplace-path-switch a{display:flex;flex-direction:column;gap:5px;padding:18px 22px;border-radius:18px;text-decoration:none;border:1px solid #e2e8f0;background:#fff;color:#172033}.marketplace-path-switch a.buy.active{border-color:#f4511e;box-shadow:0 8px 30px #f4511e16}.marketplace-path-switch a.services{border-color:#2563eb}.marketplace-path-switch b{font-size:1.05rem}.marketplace-path-switch span{color:#64748b}
.services-directory-page,.service-profile-page{margin:0;background:#f8fafc;color:#172033;font-family:Inter,system-ui,-apple-system,sans-serif}.services-topbar{min-height:72px;background:#fff;border-bottom:1px solid #e2e8f0;display:flex;align-items:center;gap:28px;padding:0 max(24px,calc((100vw - 1400px)/2));position:sticky;top:0;z-index:20}.services-topbar nav{display:flex;gap:8px;flex:1}.services-topbar nav a{padding:11px 16px;border-radius:999px;color:#64748b;text-decoration:none;font-weight:800}.services-topbar nav a.active{color:#2563eb;background:#eff6ff}.services-topbar select,.services-topbar button{border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:10px 12px}.services-directory-main,.service-profile-main{max-width:1400px;margin:auto;padding:28px 24px 70px}.services-hero{min-height:340px;border-radius:30px;padding:52px;display:grid;grid-template-columns:1.25fr .75fr;align-items:center;color:#fff;background:linear-gradient(120deg,#1e3a8a,#2563eb 60%,#7357b7);overflow:hidden}.services-hero>div:first-child{max-width:760px}.services-hero>div>span{font-size:.78rem;letter-spacing:.15em;font-weight:900}.services-hero h1{font-size:clamp(2.2rem,5vw,4.4rem);line-height:1.02;margin:12px 0 18px}.services-hero p{font-size:1.15rem;line-height:1.6;opacity:.9}.services-hero form{display:flex;background:#fff;border-radius:16px;padding:6px;box-shadow:0 18px 45px #06143c35}.services-hero input{flex:1;border:0;padding:14px;font:inherit;min-width:0}.services-hero button,.services-filter-bar button{border:0;background:#f4511e;color:#fff;border-radius:12px;padding:0 24px;font-weight:900}.services-hero-art{font-size:5rem;display:grid;grid-template-columns:1fr 1fr;gap:18px;place-items:center;filter:drop-shadow(0 18px 24px #071a5d40);transform:rotate(-4deg)}.services-section{margin-top:48px}.services-section-head{display:flex;justify-content:space-between;align-items:end;margin-bottom:20px}.services-section-head h2{font-size:1.7rem;margin:0}.services-section-head p{color:#64748b;margin:6px 0 0}.service-category-strip{display:flex;gap:12px;overflow:auto;padding:3px 3px 12px}.service-category-strip a{min-width:140px;min-height:120px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-decoration:none;color:#172033;text-align:center;position:relative}.service-category-strip a.active{border-color:#2563eb;background:#eff6ff;color:#2563eb}.service-category-strip i{font-style:normal;font-size:2rem}.service-category-strip small{position:absolute;right:9px;top:8px}.services-filter-bar{margin-top:28px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:14px}.services-filter-bar form{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.services-filter-bar label{border:1px solid #e2e8f0;border-radius:999px;padding:9px 13px}.services-filter-bar button{padding:10px 18px}.services-filter-bar a{color:#f4511e}.service-provider-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.service-provider-card{background:#fff;border:1px solid #e2e8f0;border-radius:22px;overflow:hidden;box-shadow:0 10px 35px #1720330a;transition:.2s}.service-provider-card:hover{transform:translateY(-4px);box-shadow:0 18px 40px #17203316}.service-provider-cover{height:170px;display:block;background:linear-gradient(135deg,#dbeafe,#ede9fe);position:relative}.service-provider-cover img{width:100%;height:100%;object-fit:cover}.service-provider-cover>span{position:absolute;right:12px;top:12px;background:#fff;border-radius:999px;padding:7px 10px;font-weight:900;color:#7357b7}.service-provider-body{padding:20px;position:relative}.service-provider-logo{width:62px;height:62px;border-radius:18px;border:4px solid #fff;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:1.4rem;font-weight:900;margin-top:-52px;position:relative;overflow:hidden}.service-provider-logo img{width:100%;height:100%;object-fit:cover}.service-category{color:#2563eb!important;font-size:.8rem!important;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.service-provider-card h3{font-size:1.25rem;margin:6px 0}.service-provider-card p{color:#64748b;line-height:1.5}.service-provider-card ul{padding-left:20px;color:#475569}.service-provider-meta{display:flex;gap:8px;flex-wrap:wrap}.service-provider-meta span{background:#f1f5f9;border-radius:999px;padding:6px 9px;font-size:.78rem}.service-provider-meta .open{color:#16a34a;background:#f0fdf4}.service-provider-actions{display:flex;gap:10px;margin-top:18px}.service-provider-actions a,.profile-service-list article a{border:1px solid #2563eb;color:#2563eb;border-radius:999px;padding:9px 14px;text-decoration:none;font-weight:900}.service-provider-actions a.whatsapp,.profile-service-list article a{background:#16a34a;border-color:#16a34a;color:#fff}.services-empty{grid-column:1/-1;background:#fff;border:1px dashed #cbd5e1;border-radius:22px;text-align:center;padding:60px}.service-profile-cover{height:330px;border-radius:28px;background:linear-gradient(135deg,#dbeafe,#ede9fe);overflow:hidden}.service-profile-cover img{width:100%;height:100%;object-fit:cover}.service-profile-head{display:grid;grid-template-columns:130px 1fr;gap:24px;align-items:end;margin:-65px 30px 0;position:relative}.service-profile-logo{width:130px;height:130px;border-radius:28px;border:7px solid #f8fafc;background:#2563eb;color:#fff;display:grid;place-items:center;font-size:3rem;font-weight:900;overflow:hidden}.service-profile-logo img{width:100%;height:100%;object-fit:cover}.service-profile-head h1{font-size:2.4rem;margin:4px 0}.service-profile-actions{display:flex;gap:10px;flex-wrap:wrap;margin:28px 30px}.service-profile-actions a{background:#fff;border:1px solid #e2e8f0;border-radius:999px;padding:12px 16px;color:#172033;text-decoration:none;font-weight:900}.service-profile-actions a.primary{background:#16a34a;color:#fff;border-color:#16a34a}.service-profile-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:28px}.profile-service-list{display:grid;gap:14px}.profile-service-list article{display:grid;grid-template-columns:180px 1fr;background:#fff;border:1px solid #e2e8f0;border-radius:20px;overflow:hidden}.profile-service-list article>img{width:100%;height:100%;min-height:180px;object-fit:cover}.profile-service-list article>div{padding:20px}.profile-service-list article h3{margin-top:0}.profile-service-list article div div{display:flex;justify-content:space-between;margin:14px 0;color:#64748b}.service-profile-info{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:24px;height:max-content;position:sticky;top:95px}.service-profile-info p{color:#64748b;line-height:1.55}.store-cross-link{display:block;margin-top:20px;color:#f4511e;font-weight:900;text-decoration:none}
@media(max-width:900px){.services-topbar{flex-wrap:wrap;padding:12px 20px}.services-topbar nav{order:3;width:100%}.services-hero{grid-template-columns:1fr;padding:34px}.services-hero-art{display:none}.service-provider-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.service-profile-layout{grid-template-columns:1fr}.service-profile-info{position:static}.marketplace-path-switch{grid-template-columns:1fr}}
@media(max-width:620px){.services-directory-main,.service-profile-main{padding:18px 14px 50px}.services-hero{min-height:380px;padding:26px 20px}.services-hero form{flex-direction:column}.services-hero button{padding:14px}.service-provider-grid{grid-template-columns:1fr}.service-profile-cover{height:210px}.service-profile-head{grid-template-columns:86px 1fr;margin:-42px 12px 0;gap:12px}.service-profile-logo{width:86px;height:86px;border-radius:20px}.service-profile-head h1{font-size:1.7rem}.service-profile-actions{margin:22px 0}.profile-service-list article{grid-template-columns:1fr}.profile-service-list article>img{height:180px}.services-filter-bar form{align-items:stretch;flex-direction:column}.services-filter-bar label{border-radius:12px}.services-topbar nav a{font-size:.85rem;padding:9px}}

/* Central exclusiva do superadministrador */
.saas-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.saas-summary-grid article{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:20px;box-shadow:0 8px 28px #17203309}.saas-summary-grid span{display:block;color:#64748b;font-weight:700}.saas-summary-grid strong{display:block;font-size:2rem;margin-top:8px;color:#172033}.saas-admin-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:20px}.saas-quick-links{display:grid;gap:10px;margin-bottom:28px}.saas-quick-links a{padding:14px;border:1px solid #e2e8f0;border-radius:14px;text-decoration:none;color:#172033;font-weight:800}.audit-compact{max-height:360px;overflow:auto}.audit-compact p{border-bottom:1px solid #e2e8f0;padding-bottom:10px}.module-admin-group{margin:24px 0}.module-admin-group h3{color:#2563eb;border-bottom:1px solid #e2e8f0;padding-bottom:8px}.module-admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.module-toggle-card{display:flex;gap:12px;align-items:flex-start;border:1px solid #e2e8f0;border-radius:16px;padding:15px;background:#fff;cursor:pointer;transition:.2s}.module-toggle-card:has(input:checked){border-color:#2563eb;background:#eff6ff}.module-toggle-card input{margin-top:4px;accent-color:#2563eb}.module-toggle-card span{display:flex;flex-direction:column;gap:3px}.module-toggle-card small{color:#64748b}.module-toggle-card em{font-size:.75rem;color:#f4511e;font-style:normal}.module-warning{background:#fff7ed;border:1px solid #fed7aa;color:#9a3412;border-radius:14px;padding:13px;margin:18px 0}@media(max-width:950px){.saas-summary-grid{grid-template-columns:repeat(2,1fr)}.saas-admin-grid{grid-template-columns:1fr}.module-admin-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.saas-summary-grid,.module-admin-grid{grid-template-columns:1fr}}
@media(max-width:720px){
  .sale-pro-hero{flex-direction:column;border-radius:22px;padding:18px}
  .sale-pro-title h1{font-size:29px}
  .sale-pro-kpis{display:grid;grid-template-columns:1fr 1fr}
  .sale-pro-kpi{min-width:0;text-align:left}
  .sale-pro-kpi strong{font-size:24px}
  .sale-pro-grid{gap:14px}
  .sale-pro-card{border-radius:20px;padding:14px}
  .sale-pro-fields,.sale-pro-quick-grid,.sale-pro-service-grid{grid-template-columns:1fr}
  .sale-pro-fields .span-2,.sale-pro-quick-grid .span-2{grid-column:auto}
  .sale-pro-tabs{display:grid;grid-template-columns:1fr}
}

/* Pacote avançado: menu lateral, dashboard e fechamento mensal */
.sidebar-pro{width:286px;background:linear-gradient(180deg,#071827 0%,#0b1f33 48%,#0d2b48 100%);padding:16px 12px;box-shadow:12px 0 30px rgba(2,8,23,.16)}
.brand-pro{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.10);border-radius:22px;padding:12px;margin-bottom:12px}.brand-pro strong{color:#fff}.brand-pro small{color:#bdd2e6}.sidebar-quick{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 4px 12px}.sidebar-quick a{background:linear-gradient(135deg,var(--accent),#ffcf59);color:#071827!important;border-radius:14px;text-align:center;font-weight:900;padding:10px 8px!important;box-shadow:0 12px 24px rgba(245,178,27,.16)}.sidebar-nav-pro{gap:7px!important}.sidebar-nav-pro .nav-main{display:flex;align-items:center;gap:9px;background:rgba(255,255,255,.08);font-weight:900}.sidebar-nav-pro .nav-group{border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.045);border-radius:18px;overflow:hidden}.sidebar-nav-pro .nav-group summary{list-style:none;cursor:pointer;padding:12px 12px;color:#fff;font-weight:900;display:flex;align-items:center;gap:8px}.sidebar-nav-pro .nav-group summary::-webkit-details-marker{display:none}.sidebar-nav-pro .nav-group summary:after{content:'›';margin-left:auto;transition:.18s;color:#93b5d2}.sidebar-nav-pro .nav-group[open] summary:after{transform:rotate(90deg)}.sidebar-nav-pro .nav-group a{display:block;margin:0 7px 7px;padding:9px 11px;color:#dbeafe;border-radius:12px;font-size:14px}.sidebar-nav-pro .nav-group a:hover,.sidebar-nav-pro .nav-main:hover{background:rgba(255,255,255,.12)}.sidebar-footer{margin:14px 4px 2px;padding:12px;border-radius:18px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}.sidebar-footer strong{display:block;color:#fff}.sidebar-footer small{display:block;color:#bdd2e6;margin-top:3px}.main{margin-left:286px}.topbar-pro{justify-content:space-between}.topbar-title{display:flex;flex-direction:column}.topbar-actions{display:flex;gap:8px;align-items:center}
.dash-pro{max-width:1540px;margin:0 auto}.dash-hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:24px;border-radius:28px;background:linear-gradient(135deg,#071827,#0f3b63);color:#fff;box-shadow:0 18px 42px rgba(2,8,23,.18)}.dash-hero h1{font-size:38px;margin:6px 0}.dash-hero p{color:#dbeafe}.dash-hero small{color:#cbd5e1}.dash-cards{grid-template-columns:repeat(4,minmax(180px,1fr))}.stat.warning strong{color:#b7791f}.dashboard-priority-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(320px,.6fr);gap:18px}.muted-text{color:var(--muted);margin-bottom:12px}.alert-list{display:grid;gap:10px}.alert-list a{display:flex;align-items:center;gap:12px;border:1px solid var(--line);background:#f8fafc;border-radius:16px;padding:12px;color:#0f172a}.alert-list a:hover{border-color:#93b5d2;background:#fff}.alert-list span{width:38px;height:38px;display:grid;place-items:center;background:#fff;border:1px solid var(--line);border-radius:14px}.alert-list strong{display:block}.alert-list small{display:block;margin-top:3px}.closing-filter-card{padding-bottom:2px}.closing-cards.cards{grid-template-columns:repeat(2,minmax(180px,1fr))}.closing-create-box{display:grid;gap:12px;padding:12px;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px}.monthly-print{background:#fff;padding:26px}.print-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.print-number{text-align:right;border:1px solid var(--line);border-radius:16px;padding:12px 16px}.print-number strong{display:block;font-size:24px}.signature-row{display:grid;grid-template-columns:1fr 1fr;gap:50px;margin-top:70px}.signature-row div{border-top:1px solid #111;text-align:center;padding-top:8px}.print-page{background:#fff}
@media(max-width:1100px){.dashboard-priority-grid{grid-template-columns:1fr}.dash-cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:1000px){.sidebar-pro{transform:translateX(-100%);transition:.2s}.sidebar-open .sidebar-pro{transform:translateX(0)}.main{margin-left:0}.topbar-actions .btn-primary,.topbar-actions .btn-light:first-child{display:none}.dash-hero{align-items:flex-start;flex-direction:column}.dash-cards{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.dash-cards,.closing-cards.cards{grid-template-columns:1fr}.dash-hero h1{font-size:30px}.print-head,.signature-row{grid-template-columns:1fr;display:grid}.print-number{text-align:left}}

/* Menu compacto e retratil */
.sidebar-pro{width:232px;padding:12px 9px}
.main{margin-left:232px}
.sidebar-collapse-btn{position:absolute;right:10px;top:10px;width:34px;height:34px;border:1px solid rgba(255,255,255,.12);border-radius:10px;background:rgba(255,255,255,.08);color:#fff;cursor:pointer;font-weight:900}
.brand-pro{min-height:58px;padding:10px 42px 10px 10px;border-radius:16px}
.brand-mark{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;font-weight:900}
.sidebar-quick{grid-template-columns:1fr;gap:6px}
.sidebar-quick a{padding:9px 8px!important;border-radius:12px}
.sidebar-nav-pro .nav-main,.sidebar-nav-pro .nav-group summary{padding:10px 10px;border-radius:12px}
.sidebar-nav-pro .nav-group{border-radius:14px}
.sidebar-nav-pro .nav-group a{padding:8px 9px;font-size:13px}
.sidebar-footer{padding:10px;border-radius:14px}
body.sidebar-collapsed .sidebar-pro{width:74px;padding:12px 8px}
body.sidebar-collapsed .main{margin-left:74px}
body.sidebar-collapsed .brand-pro{padding:8px;justify-content:center}
body.sidebar-collapsed .brand-pro div:not(.brand-mark),
body.sidebar-collapsed .sidebar-quick,
body.sidebar-collapsed .sidebar-footer,
body.sidebar-collapsed .sidebar-nav-pro .nav-group a{display:none}
body.sidebar-collapsed .sidebar-nav-pro .nav-main,
body.sidebar-collapsed .sidebar-nav-pro .nav-group summary{justify-content:center;font-size:0;padding:11px 8px}
body.sidebar-collapsed .sidebar-nav-pro .nav-main span,
body.sidebar-collapsed .sidebar-nav-pro .nav-group summary span{font-size:18px}
body.sidebar-collapsed .sidebar-nav-pro .nav-group summary:after{display:none}
body.sidebar-collapsed .sidebar-nav-pro .nav-group{padding:0;background:transparent;border-color:transparent}
@media(max-width:1000px){
  body.sidebar-collapsed .main{margin-left:0}
  body.sidebar-collapsed .sidebar-pro{width:232px}
}

/* Venda mais limpa */
.sale-pro-page{max-width:1460px}
.sale-pro-hero{border-radius:18px;padding:14px 16px;margin-bottom:14px;background:#fff;color:#0f172a;border:1px solid var(--line);box-shadow:0 10px 28px rgba(15,23,42,.07)}
.sale-pro-title h1{font-size:28px;margin:4px 0 0;letter-spacing:0}
.sale-pro-title p{display:none}
.sale-pro-kpis{align-items:center}
.sale-pro-kpis .btn{height:40px;display:inline-flex;align-items:center}
.sale-pro-kpi{min-width:168px;border-radius:14px;background:#071827;color:#fff;padding:10px 14px}
.sale-pro-kpi.small{display:none}
.sale-pro-kpi strong{font-size:22px}
.sale-pro-grid{grid-template-columns:minmax(0,1fr) 430px;gap:14px}
.sale-pro-main{gap:14px}
.sale-pro-card{border-radius:16px;padding:14px;box-shadow:0 8px 24px rgba(15,23,42,.06)}
.sale-pro-card-head{margin-bottom:10px}
.sale-pro-card-head h2{font-size:18px;margin:0}
.step-badge{width:24px;height:24px;border-radius:8px;margin-right:6px}
.sale-pro-fields{grid-template-columns:1.25fr .75fr .85fr .6fr 1fr .65fr .75fr;gap:10px}
.sale-pro-fields .span-2{grid-column:span 2}
.sale-pro-fields label,.sale-pro-service-grid label,.sale-pro-quick-grid label{font-size:12px;gap:5px}
.sale-pro-fields input,.sale-pro-fields select,.sale-pro-fields textarea,
.sale-pro-service-grid input,.sale-pro-service-grid select,
.sale-pro-quick-grid input,.sale-pro-quick-grid select{border-radius:10px;padding:9px 10px;background:#fff}
.sale-pro-tabs{background:transparent;border:0;padding:0;margin-bottom:10px}
.sale-pro-tab{background:#f1f5f9;border:1px solid #e2e8f0;border-radius:999px;padding:9px 14px}
.sale-pro-tab.active{background:#071827;color:#fff;box-shadow:none}
.sale-pro-search input{height:52px;border-radius:14px;background:#fff;font-size:16px}
.sale-pro-helper-row{margin-top:9px}
.sale-pro-helper-row span{border-radius:9px;padding:7px 9px;background:#fff;font-size:12px}
.sale-pro-service-grid{grid-template-columns:minmax(0,1fr) 86px auto}
.sale-pro-manual-service{border-radius:14px;padding:12px}
.sale-pro-quick-grid{grid-template-columns:100px minmax(0,1fr) 100px 100px 100px auto;gap:10px}
.sale-pro-sidebar{gap:14px}
.sale-pro-sidebar .sale-pro-items-card{border-radius:16px}
.sale-pro-sidebar .sale-pro-items-card .sale-pro-card-head{padding:14px 14px 0}
.sale-pro-selected-table{max-height:58vh;border-top:0;padding:0 10px 10px}
.sale-pro-selected-table tbody{gap:10px}
.sale-pro-selected-table tbody tr{position:relative;gap:10px;padding:12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.sale-pro-selected-table tbody tr:nth-child(even){background:#fff}
.sale-pro-selected-table tbody tr.stock-empty-row{background:#fff1f2;border-color:#fecdd3}
.sale-pro-selected-table tbody td{display:block;padding:0}
.sale-pro-selected-table tbody td:before{content:none!important}
.sale-item-code{display:flex!important;align-items:center;gap:8px;padding-right:34px!important}
.sale-item-code strong{font-size:13px;color:#334155}
.sale-item-desc strong{display:block;font-size:14px;line-height:1.25;color:#0f172a;padding-right:34px}
.sale-item-desc small{display:block;margin-top:3px;color:#64748b;line-height:1.25}
.sale-pro-selected-table tbody td:nth-child(n+3):nth-child(-n+7){display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:8px}
.sale-pro-selected-table tbody td:nth-child(n+3):nth-child(-n+7)::before{content:attr(data-label)!important;font-size:11px;font-weight:900;color:#64748b;text-transform:uppercase}
.sale-pro-selected-table .stockCell{font-weight:900;color:#334155}
.sale-pro-selected-table tbody tr.stock-empty-row .stockCell{color:#be123c}
.sale-pro-selected-table input{height:34px;border-radius:8px}
.sale-pro-selected-table .lineTotal{font-size:19px;color:#071827}
.sale-item-remove{position:absolute;right:10px;top:10px}
.sale-item-remove .btn{width:28px;height:28px;min-height:0;padding:0;border-radius:50%;background:#fee2e2;color:#991b1b;border:0;font-size:18px;line-height:1}
.sale-pro-sticky{position:static}
.sale-pro-summary{border-radius:14px;background:#071827;margin:10px 0}
.sale-pro-summary strong{font-size:22px}
.sale-search-item{border-radius:12px;box-shadow:0 4px 14px rgba(15,23,42,.04)}
@media(max-width:1180px){
  .sale-pro-grid{grid-template-columns:1fr}
  .sale-pro-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sale-pro-selected-table{max-height:none}
}
@media(max-width:760px){
  .sale-pro-kpis{display:grid;grid-template-columns:1fr 1fr}
  .sale-pro-kpi{grid-column:1/-1;min-width:0}
  .sale-pro-fields,.sale-pro-quick-grid,.sale-pro-service-grid{grid-template-columns:1fr}
  .sale-pro-fields .span-2,.sale-pro-quick-grid .span-2{grid-column:auto}
}

/* Venda: resumo otimizado no estilo PDV */
.sale-pro-grid{grid-template-columns:minmax(0,1fr) 520px;align-items:start}
.sale-pro-sidebar{position:sticky;top:76px}
.sale-resume-panel{padding:0;border-radius:18px;overflow:hidden;background:#fff}
.sale-resume-panel .sale-pro-card-head{padding:22px 22px 8px;margin:0}
.sale-resume-panel .sale-pro-card-head h2{font-size:30px;color:#6b7280;letter-spacing:0;font-weight:900}
.sale-pro-selected-table{max-height:48vh;padding:0;overflow:auto}
.sale-resume-panel .sale-pro-selected-table table{width:100%;min-width:0}
.sale-resume-panel .sale-pro-selected-table tbody{display:block}
.sale-resume-panel .sale-pro-selected-table tbody tr{
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) 32px;
  gap:7px;
  padding:18px 26px 14px;
  border:0;
  border-radius:0;
  border-bottom:1px solid #e5e7eb;
  box-shadow:none;
  background:#fff;
}
.sale-resume-panel .sale-pro-selected-table tbody tr.stock-empty-row{background:#ffc9cc;border-color:#ffc9cc}
.sale-resume-panel .sale-pro-selected-table tbody tr:nth-child(even):not(.stock-empty-row){background:#fff}
.sale-resume-panel .sale-item-code{grid-column:1 / -2;padding:0!important;display:flex!important;gap:8px;align-items:center}
.sale-resume-panel .item-type-pill{display:none}
.sale-resume-panel .sale-item-code strong{font-size:12px;color:#64748b}
.sale-resume-panel .sale-item-desc{grid-column:1 / -2;padding-right:118px!important}
.sale-resume-panel .sale-item-desc strong{font-size:16px;line-height:1.3;color:#5f6368;text-transform:uppercase;letter-spacing:0;font-weight:900}
.sale-resume-panel .sale-item-desc small{display:none}
.sale-resume-panel .stockCell{display:none!important}
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(4),
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(5),
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(6){
  display:grid;
  grid-template-columns:1fr;
  gap:4px;
  align-self:end;
}
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(4)::before,
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(5)::before,
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(6)::before{
  content:attr(data-label)!important;
  display:block;
  text-align:center;
  font-size:12px;
  color:#2f343b;
  font-weight:900;
  text-transform:none;
}
.sale-resume-panel .sale-pro-selected-table input{
  height:26px;
  border:2px solid #d1d5db;
  border-radius:6px;
  background:rgba(255,255,255,.55);
  padding:3px 7px;
  font-size:12px;
}
.sale-resume-panel .lineTotal{
  position:absolute;
  top:38px;
  right:52px;
  font-size:22px;
  font-weight:500;
  color:#111827;
}
.sale-resume-panel .lineTotal::before{content:none!important}
.sale-resume-panel .sale-item-remove{right:18px;top:18px}
.sale-resume-panel .sale-item-remove .btn{background:transparent;color:#ef0000;font-size:18px;font-weight:900}
.sale-resume-tools{display:flex;justify-content:flex-end;padding:12px 6px 10px}
.sale-resume-tools .btn-danger{background:#ff1515;border-color:#ff1515;color:#fff;border-radius:6px;padding:7px 10px}
.sale-resume-panel .sale-pro-summary{
  margin:0;
  border-radius:0;
  background:#0700e8;
  padding:18px 26px;
  gap:13px;
}
.sale-resume-panel .sale-pro-summary div{border:0;padding:0}
.sale-resume-panel .sale-pro-summary span{font-size:18px;color:#fff;font-weight:500}
.sale-resume-panel .sale-pro-summary strong{font-size:30px;color:#fff;line-height:1}
.sale-payment-compact{display:grid;gap:14px;padding:16px 26px 0}
.sale-payment-compact label{display:grid;gap:5px;font-size:12px;font-weight:900;color:#334155}
.sale-payment-compact select,.sale-payment-compact input,.sale-payment-compact textarea{
  width:100%;
  border:1px solid #d9d9d9;
  background:#fff;
  border-radius:6px;
  padding:8px 10px;
  min-height:34px;
}
.sale-payment-compact textarea{min-height:36px;resize:vertical}
.sale-payment-compact .sale-due-field{display:none}
.sale-resume-panel .sale-action-buttons{display:grid;grid-template-columns:1fr;margin-top:16px;border-top:4px solid #06184a}
.sale-resume-panel .sale-action-buttons .btn-light{background:#fff;color:#475569;border:0;border-bottom:1px solid #e5e7eb;border-radius:0;min-height:38px}
.sale-resume-panel .sale-final-btn{
  background:#fff;
  color:#06184a;
  border:0;
  border-radius:0;
  box-shadow:none;
  min-height:46px;
  font-size:17px;
  font-weight:900;
}
body.sidebar-collapsed .sidebar-collapse-btn{
  left:12px;
  right:auto;
  top:12px;
  background:#f5b21b;
  color:#071827;
  border-color:#f5b21b;
}
.collapse-closed{display:none}
body.sidebar-collapsed .collapse-open{display:none}
body.sidebar-collapsed .collapse-closed{display:inline}
body.sidebar-collapsed .sidebar-nav-pro{margin-top:50px}
@media(max-width:1180px){
  .sale-pro-grid{grid-template-columns:1fr}
  .sale-pro-sidebar{position:static}
}
@media(max-width:640px){
  .sale-resume-panel .sale-pro-selected-table tbody tr{grid-template-columns:1fr;gap:8px}
  .sale-resume-panel .sale-item-code,.sale-resume-panel .sale-item-desc{grid-column:1}
  .sale-resume-panel .lineTotal{position:static}
}

/* Refinamento compacto solicitado */
.content{padding:14px}
.sale-pro-page{max-width:1500px}
.sale-pro-hero{padding:10px 12px;margin-bottom:10px;border-radius:14px}
.sale-pro-title h1{font-size:23px}
.sale-pro-kpis .btn{height:34px;padding:7px 10px;font-size:13px}
.sale-pro-kpi{min-width:142px;padding:7px 10px;border-radius:11px}
.sale-pro-kpi strong{font-size:19px}
.sale-pro-grid{grid-template-columns:minmax(0,1fr) 500px;gap:10px}
.sale-pro-main{gap:10px}
.sale-pro-card{padding:12px 14px;border-radius:14px}
.sale-pro-card-head{margin-bottom:8px}
.sale-pro-card-head h2{font-size:17px}
.step-badge{width:23px;height:23px;border-radius:7px;font-size:13px}
.sale-pro-fields{grid-template-columns:minmax(170px,1.45fr) 136px 118px 76px minmax(110px,.9fr) 66px 94px;gap:8px;align-items:end}
.sale-pro-fields label,.sale-pro-service-grid label,.sale-pro-quick-grid label{font-size:11px;line-height:1.15;gap:4px}
.sale-pro-fields input,.sale-pro-fields select,.sale-pro-fields textarea,
.sale-pro-service-grid input,.sale-pro-service-grid select,
.sale-pro-quick-grid input,.sale-pro-quick-grid select{
  min-height:34px;
  padding:7px 9px;
  border-radius:9px;
  font-size:13px;
}
.sale-pro-tabs{gap:6px;margin-bottom:8px}
.sale-pro-tab{padding:7px 12px;font-size:13px}
.sale-pro-search input{height:44px;font-size:14px;border-radius:12px}
.sale-pro-helper-row{display:none}
.sale-pro-service-grid{grid-template-columns:minmax(0,1fr) 72px auto;gap:8px}
.sale-pro-manual-service{padding:10px;margin-top:10px}
.sale-pro-quick-grid{grid-template-columns:90px minmax(0,1fr) 90px 90px 90px auto;gap:8px}
.sale-resume-panel{border-radius:14px}
.sale-resume-panel .sale-pro-card-head{padding:14px 16px 4px}
.sale-resume-panel .sale-pro-card-head h2{font-size:22px;color:#111827}
.sale-resume-panel .sale-pro-selected-table{max-height:43vh}
.sale-resume-panel .sale-pro-selected-table tbody tr{
  grid-template-columns:1fr 1fr 1fr 26px;
  gap:5px 7px;
  padding:10px 14px 11px;
}
.sale-resume-panel .sale-item-code{grid-column:1 / 3}
.sale-resume-panel .sale-item-code strong{font-size:11px}
.sale-resume-panel .sale-item-desc{grid-column:1 / -2;padding-right:86px!important}
.sale-resume-panel .sale-item-desc strong{font-size:14px;line-height:1.18}
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(4),
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(5),
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(6){gap:2px}
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(4)::before,
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(5)::before,
.sale-resume-panel .sale-pro-selected-table tbody td:nth-child(6)::before{font-size:11px}
.sale-resume-panel .sale-pro-selected-table input{height:24px;border-width:1px;border-radius:6px;font-size:12px;padding:2px 6px}
.sale-resume-panel .lineTotal{top:32px;right:44px;font-size:18px;font-weight:900}
.sale-resume-panel .sale-item-remove{right:10px;top:10px}
.sale-resume-panel .sale-item-remove .btn{width:24px;height:24px;font-size:16px;background:#fff;color:#b91c1c;border:1px solid #fecaca}
.sale-resume-tools{padding:8px 10px}
.sale-resume-tools .btn-danger{font-size:12px;padding:6px 8px}
.sale-resume-panel .sale-pro-summary{padding:13px 18px;gap:8px}
.sale-resume-panel .sale-pro-summary span{font-size:16px}
.sale-resume-panel .sale-pro-summary strong{font-size:25px}
.sale-payment-compact{padding:12px 18px 0;gap:9px}
.sale-payment-compact select,.sale-payment-compact input,.sale-payment-compact textarea{min-height:32px;padding:6px 9px}
.sale-resume-panel .sale-action-buttons{margin-top:12px}
.sale-resume-panel .sale-final-btn{min-height:42px}

.sidebar-pro{width:218px;padding:10px 8px;background:#071827}
.main{margin-left:218px}
.brand-pro{min-height:auto;padding:10px 36px 10px 10px;border-radius:14px}
.brand-pro strong{font-size:13px;line-height:1.15}
.brand-pro small{font-size:11px}
.brand-mark{width:34px;height:34px;border-radius:10px}
.sidebar-collapse-btn{width:30px;height:30px;right:8px;top:8px;border-radius:9px}
.sidebar-quick{gap:6px;margin-bottom:8px}
.sidebar-quick a{padding:8px!important;border-radius:10px;font-size:13px}
.sidebar-nav-pro{gap:5px!important}
.sidebar-nav-pro .nav-main,.sidebar-nav-pro .nav-group summary{padding:9px 10px;border-radius:11px;font-size:13px}
.sidebar-nav-pro .nav-group a{font-size:12px;padding:7px 9px}
body.sidebar-collapsed .sidebar-pro{width:52px;padding:8px 6px}
body.sidebar-collapsed .main{margin-left:52px}
body.sidebar-collapsed .brand-pro{display:none}
body.sidebar-collapsed .sidebar-collapse-btn{left:10px;top:10px;width:32px;height:32px}
body.sidebar-collapsed .sidebar-nav-pro{margin-top:48px}
body.sidebar-collapsed .sidebar-nav-pro .nav-main,
body.sidebar-collapsed .sidebar-nav-pro .nav-group summary{padding:9px 6px;border-radius:10px}
body.sidebar-collapsed .sidebar-nav-pro .nav-main span,
body.sidebar-collapsed .sidebar-nav-pro .nav-group summary span{font-size:17px}
@media(max-width:1180px){
  .sale-pro-grid{grid-template-columns:1fr}
  .sale-pro-fields{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:760px){
  .sale-pro-fields,.sale-pro-quick-grid,.sale-pro-service-grid{grid-template-columns:1fr}
}

/* PDV: evita recorte do resumo em notebooks e janelas mais estreitas. */
body.sale-screen .sale-payment-compact{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
}
body.sale-screen .sale-payment-compact label,
body.sale-screen .sale-payment-compact select,
body.sale-screen .sale-payment-compact input,
body.sale-screen .sale-payment-compact textarea{
  min-width:0 !important;
}
body.sale-screen .sale-payment-compact label:nth-child(3){
  grid-column:1 / -1 !important;
}
body.sale-screen .sale-resume-panel .sale-pro-card-head{
  flex-wrap:wrap;
}
body.sale-screen .sale-wait-inline{
  margin-left:auto;
}
@media(min-width:1001px){
  body.sale-screen .sale-pro-main{
    flex:1 1 0 !important;
  }
  body.sale-screen .sale-pro-sidebar{
    top:0 !important;
    margin-top:0 !important;
  }
}
@media(max-width:1000px){
  body.sale-screen .sale-pro-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.sale-screen .sale-pro-main,
  body.sale-screen .sale-pro-sidebar{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body.sale-screen .sale-pro-sidebar{
    position:static !important;
  }
}

/* CORRECAO DEFINITIVA DA TELA DE VENDA - manter como ultima regra. */
body.sale-screen .sale-pro-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(340px,400px) !important;
  grid-template-rows:auto auto !important;
  grid-template-areas:"sale-step sale-step" "sale-items sale-summary" !important;
  gap:16px !important;
  align-items:start !important;
  width:100% !important;
  max-width:100% !important;
  overflow:visible !important;
}
body.sale-screen .sale-pro-main{display:contents !important;}
body.sale-screen .sale-add-card{
  grid-area:sale-step !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}
body.sale-screen .sale-items-workspace{
  grid-area:sale-items !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
}
body.sale-screen .sale-pro-sidebar{
  grid-area:sale-summary !important;
  position:sticky !important;
  top:0 !important;
  width:100% !important;
  min-width:0 !important;
  max-width:100% !important;
  align-self:start !important;
}
body.sale-screen .sale-step-one-grid{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  grid-template-areas:"customer operation" "vehicle vehicle" !important;
}
body.sale-screen .sale-customer-panel,
body.sale-screen .sale-operation-panel,
body.sale-screen .sale-vehicle-panel{width:auto !important;min-width:0 !important;}
@media(max-width:900px){
  body.sale-screen .sale-pro-grid{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-rows:auto auto auto !important;
    grid-template-areas:"sale-step" "sale-items" "sale-summary" !important;
  }
  body.sale-screen .sale-pro-sidebar{position:static !important;}
  body.sale-screen .sale-step-one-grid{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:"customer" "operation" "vehicle" !important;
  }
}

/* Login ERP/PDV: identidade institucional, acesso rápido e estados acessíveis. */
body.login-page{min-width:0;background:#e9f0f6;overflow-x:hidden;font-family:"Segoe UI Variable","Segoe UI",Tahoma,Arial,sans-serif!important;font-optical-sizing:none!important;-webkit-font-smoothing:auto!important;-moz-osx-font-smoothing:auto!important;text-rendering:auto!important}
body.login-page .main{margin-left:0!important}
body.login-page .content{display:grid;place-items:center;max-width:none;min-height:100dvh;margin:0;padding:20px}
body.login-page .messages{display:none}
.login-layout{display:grid;grid-template-columns:minmax(0,48fr) minmax(460px,52fr);width:min(1440px,92vw);min-height:min(720px,calc(100dvh - 40px));overflow:hidden;border:1px solid rgba(196,210,223,.9);border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(8,37,61,.16)}
.login-showcase{position:relative;isolation:isolate;display:grid;place-items:center;overflow:hidden;padding:54px;background-image:url('../img/login-painel.jpg');background-size:cover;background-position:center right;background-repeat:no-repeat;color:#fff}
.login-showcase:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(125deg,transparent 48%,rgba(247,181,44,.11))}
.login-showcase-content{position:relative;z-index:1;width:min(100%,500px)}
.login-logo-filter{position:absolute;overflow:hidden;pointer-events:none}
.login-showcase-logo{display:block;width:229px;height:68px;max-width:100%;margin:0 0 34px;object-fit:contain;object-position:left center;image-rendering:auto;backface-visibility:hidden;filter:url(#loginLogoCleanEdge)}
.login-showcase-kicker{margin:0 0 13px;color:#FF9A3C;font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase}
.login-showcase h1{max-width:450px;margin:0 0 17px;font-size:44px;font-weight:700;line-height:1.12;letter-spacing:-1px}
.login-showcase-description{max-width:420px;margin:0;color:#d9e7f2;font-size:17px;line-height:1.6}
.login-showcase-features{display:grid;gap:12px;margin:28px 0 0;padding:0;list-style:none}
.login-showcase-features li{display:flex;align-items:center;gap:11px;color:#e6f0f9;font-size:14.5px;font-weight:500}
.login-showcase-features svg{width:22px;height:22px;flex:0 0 auto;box-sizing:border-box;padding:4px;border-radius:50%;background:rgba(8,123,250,.22);fill:none;stroke:#7cc0ff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.login-showcase-cta{display:inline-flex;align-items:center;gap:9px;margin-top:30px;padding:12px 22px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.07);color:#fff;font-size:13.5px;font-weight:650;text-decoration:none;transition:background .18s,border-color .18s}
.login-showcase-cta:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.48)}
.login-showcase-cta svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.login-showcase-cta:hover svg{transform:translateX(3px)}
.login-showcase-cta:focus-visible{outline:3px solid rgba(255,212,119,.55);outline-offset:2px}
.login-showcase-orb{position:absolute;z-index:-1;border-radius:50%;pointer-events:none}
.orb-one{top:-170px;right:-190px;width:430px;height:430px;border:1px solid rgba(255,255,255,.15);box-shadow:0 0 0 48px rgba(255,255,255,.035),0 0 0 105px rgba(255,255,255,.025)}
.orb-two{bottom:-110px;left:-125px;width:240px;height:240px;background:rgba(244,181,44,.13)}
.login-form-area{display:grid;place-items:center;padding:34px;background:linear-gradient(145deg,#f9fbfd,#eef3f7)}
.login-card-modern{width:min(100%,540px);padding:48px;border:1px solid #e2e9f1;border-radius:22px;background:rgba(255,255,255,.98);box-shadow:0 14px 38px rgba(15,59,99,.1)}
.login-brand{display:flex;align-items:center;gap:13px;text-align:left}
.login-brand-logo{width:96px;height:auto;max-height:34px;object-fit:contain;object-position:left center}
.login-brand h1{margin:0;color:#071827;font-size:23px;font-weight:650;letter-spacing:0}
.login-brand p{margin:4px 0 0;color:#52677d;font-size:12px;line-height:1.4}
.login-intro{margin:25px 0 19px;text-align:left}
.login-intro h2{margin:0 0 5px;color:#132b42;font-size:23px;font-weight:650;letter-spacing:0}
.login-intro p{margin:0;color:#586c81;font-size:14px}
.login-feedback:empty{display:none}
.login-feedback{margin:0 0 10px}
.login-feedback:focus{outline:0}
.login-feedback .alert{position:relative;display:flex;align-items:center;min-height:44px;margin:0;padding:10px 42px 10px 12px;border-radius:10px;font-size:13px;text-align:left;box-shadow:none;transition:opacity .18s ease,transform .18s ease}
.login-feedback .alert.is-dismissing{opacity:0;transform:translateY(-5px)}
.login-alert-close{position:absolute;top:50%;right:6px;width:30px;height:30px;transform:translateY(-50%);border:0;border-radius:7px;background:transparent;color:currentColor;font-size:1.35rem;line-height:1;cursor:pointer}
.login-alert-close:hover{background:rgba(15,23,42,.08)}
.login-form{display:grid;gap:8px;text-align:left}
.login-form>label{margin-top:7px;color:#243b53;font-size:13px;font-weight:650}
.login-input-wrap{position:relative}
.login-input-wrap>svg{position:absolute;top:50%;left:15px;width:19px;height:19px;transform:translateY(-50%);fill:none;stroke:#617184;stroke-width:1.9;pointer-events:none}
.login-input-wrap input{width:100%;height:56px;padding:11px 48px 11px 46px;border:1px solid #c7d4e0;border-radius:11px;background:#fff;color:#10283f;font-family:inherit;font-size:15px;font-weight:400;transition:border-color .18s,box-shadow .18s}
.login-input-wrap input:hover{border-color:#9eb1c3}
.login-input-wrap input:focus{outline:0;border-color:#12609d;box-shadow:0 0 0 3px rgba(18,96,157,.15)}
.login-input-wrap input::placeholder{color:#8291a1}
.password-toggle{position:absolute;top:50%;right:7px;display:grid;place-items:center;width:36px;height:36px;transform:translateY(-50%);border:0;border-radius:8px;background:transparent;color:#53677c;cursor:pointer}
.password-toggle:hover{background:#edf3f8}
.password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8}
.caps-lock-warning,.login-help{margin:3px 0 0;font-size:12px;line-height:1.45}
.caps-lock-warning{color:#885b00;font-weight:800}
.login-options{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:7px}
.login-remember{display:flex;flex-direction:row!important;align-items:center;gap:8px;margin:0!important;color:#304b65;font-size:12px;font-weight:500;cursor:pointer}
.login-remember input{width:16px;height:16px;margin:0;accent-color:#125e9a}
.login-forgot{padding:3px 0;border:0;background:transparent;color:#075b9d;font-family:inherit;font-size:12px;font-weight:650;cursor:pointer}
.login-forgot:hover,.login-support:hover{text-decoration:underline}
.login-recovery{margin-top:4px;padding:11px 12px;border:1px solid #c5d9e9;border-radius:10px;background:#f3f8fc;color:#314b64;font-size:12px;line-height:1.5}
.login-recovery strong,.login-recovery p{display:block;margin:0 0 2px}
.login-recovery a{color:#075b9d;font-weight:800}
.login-help{color:#68798a}
.login-submit{position:relative;display:flex;align-items:center;justify-content:center;gap:9px;width:100%;height:58px;margin-top:14px;border-radius:12px;background:linear-gradient(90deg,#064BC4 0%,#087BFA 100%);font-family:inherit;font-size:15px;font-weight:650;transition:transform .15s,filter .15s,opacity .15s}
.login-submit:hover:not(:disabled){filter:brightness(1.08)}
.login-submit:active:not(:disabled){transform:translateY(1px)}
.login-submit:disabled{cursor:not-allowed;opacity:.56}
.login-submit.is-loading:disabled{cursor:wait;opacity:.82}
.login-spinner{display:none;width:16px;height:16px;margin-left:9px;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:login-spin .7s linear infinite}
.login-submit.is-loading .login-spinner{display:inline-block}
.login-support{display:block;margin:15px auto 0;color:#075b9d;font-size:12px;font-weight:650;text-align:center;text-decoration:none}
.login-support.is-text{color:#68798a;font-weight:500}
.login-about-link{display:none;margin:9px auto 0;color:#52677d;font-size:12px;font-weight:650;text-align:center;text-decoration:none}
.login-about-link:hover{text-decoration:underline}
.login-footer{margin-top:18px;color:#65778a;font-size:12px;text-align:center}
.login-footer span{padding:0 3px}
.login-alert-close:focus-visible,.password-toggle:focus-visible,.login-forgot:focus-visible,.login-support:focus-visible,.login-remember input:focus-visible,.login-submit:focus-visible{outline:3px solid rgba(18,96,157,.28);outline-offset:2px}
@keyframes login-spin{to{transform:rotate(360deg)}}
@media(max-width:900px){.login-layout{grid-template-columns:minmax(0,48fr) minmax(410px,52fr);width:min(100%,calc(100% - 32px))}.login-showcase{padding:38px}.login-showcase-logo{width:229px;height:68px}.login-showcase h1{font-size:33px;letter-spacing:-.5px}}
@media(max-width:720px){body.login-page .content{display:block;padding:0}.login-layout{display:block;width:100%;min-height:100dvh;border:0;border-radius:0;box-shadow:none}.login-showcase{display:block;min-height:108px;padding:20px 24px}.login-showcase-logo{width:137px;height:41px;margin:0 0 7px}.login-showcase-kicker,.login-showcase-description,.login-showcase-features,.login-showcase-cta{display:none}.login-about-link{display:block}.login-showcase h1{margin:0;font-size:22px;line-height:1.2;letter-spacing:0}.orb-one{top:-105px;right:-75px;width:190px;height:190px}.orb-two{display:none}.login-form-area{min-height:calc(100dvh - 108px);padding:24px 16px;place-items:start center}.login-card-modern{width:min(100%,420px);padding:25px 22px}.login-brand-logo{width:54px;height:54px}.login-intro{margin:21px 0 17px}.login-footer{margin-top:16px}}
@media(max-width:390px){.login-options{align-items:flex-start;flex-direction:column;gap:7px}.login-card-modern{padding:23px 18px}.login-form-area{padding-inline:12px}}
@media(max-height:760px) and (min-width:721px){body.login-page .content{padding:12px}.login-layout{min-height:calc(100dvh - 24px)}.login-showcase{padding:38px}.login-showcase-logo{max-height:70px;margin-bottom:22px}.login-showcase-features{gap:8px;margin-top:18px}.login-showcase-cta{margin-top:20px;padding:10px 19px}.login-card-modern{padding:24px 28px}.login-intro{margin:18px 0 13px}.login-footer{margin-top:12px}.login-support{margin-top:11px}}
@media(prefers-reduced-motion:reduce){.login-input-wrap input,.login-submit,.login-feedback .alert{transition:none}.login-spinner{animation:none}}

/* Mantém o resumo alinhado à etapa 1 em telas de notebook. */
@media(min-width:1001px){
  body.sale-screen .sale-pro-grid{display:flex !important;align-items:flex-start !important;}
  body.sale-screen .sale-pro-main{flex:1 1 0 !important;width:auto !important;max-width:none !important;}
  body.sale-screen .sale-pro-sidebar{
    flex:0 0 390px !important;width:390px !important;min-width:390px !important;max-width:390px !important;
    position:sticky !important;top:0 !important;align-self:flex-start !important;margin-top:0 !important;
  }
}
@media(max-width:1000px){
  body.sale-screen .sale-pro-grid{display:grid !important;grid-template-columns:minmax(0,1fr) !important;}
  body.sale-screen .sale-pro-main,body.sale-screen .sale-pro-sidebar{width:100% !important;min-width:0 !important;max-width:100% !important;}
  body.sale-screen .sale-pro-sidebar{position:static !important;}
}

/* Correção de sobreposição dos blocos da venda */
.sale-pro-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(360px,480px);
  gap:16px;
}
.sale-pro-main,
.sale-pro-sidebar{
  min-width:0;
}
.sale-pro-card,
.sale-resume-panel{
  max-width:100%;
}
.sale-pro-card{
  overflow:hidden;
}
.sale-add-card,
.sale-pro-card:has(.sale-pro-search){
  overflow:visible;
  position:relative;
  z-index:30;
}
.sale-pro-search-wrap,
.product-search{
  overflow:visible;
}
.sale-search-modern .search-results{
  z-index:999;
  max-height:420px;
  overflow:auto;
}
.sale-search-item{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
}
.sale-search-item > div{
  min-width:0;
}
.sale-search-item strong,
.sale-search-item span,
.sale-search-item small{
  overflow:visible;
  white-space:normal;
}
.sale-search-item span{
  color:#111827;
  font-size:14px;
  line-height:1.25;
}
.sale-pro-card-head p{
  display:none;
}
.sale-pro-main .sale-pro-fields{
  grid-template-columns:minmax(220px,2fr) minmax(120px,1fr) minmax(120px,1fr) minmax(90px,.75fr);
  align-items:end;
}
.sale-pro-main .sale-pro-fields .span-2{
  grid-column:span 1;
}
.sale-pro-main .sale-pro-fields label{
  min-width:0;
}
.sale-pro-main .sale-pro-fields input,
.sale-pro-main .sale-pro-fields select{
  min-width:0;
}
.sale-pro-sidebar{
  align-self:start;
  position:sticky;
  top:72px;
}
@media(max-width:1320px){
  .sale-pro-grid{
    grid-template-columns:1fr;
  }
  .sale-pro-sidebar{
    position:static;
  }
  .sale-resume-panel .sale-pro-selected-table{
    max-height:none;
  }
  .sale-resume-panel .sale-pro-selected-table tbody tr{
    grid-template-columns:repeat(3,minmax(120px,1fr)) 30px;
  }
}
@media(max-width:760px){
  .sale-pro-main .sale-pro-fields{
    grid-template-columns:1fr;
  }
}

/* Tela de venda no padrao limpo do modelo */
body.sale-screen{
  background:#eef1f5;
}
body.sale-screen .sidebar-pro{
  display:none;
}
body.sale-screen .main{
  margin-left:0;
}
body.sale-screen .topbar-pro{
  height:66px;
  padding:10px 28px;
  background:#fff;
  border-bottom:1px solid #dbe2ea;
  box-shadow:none;
}
body.sale-screen .menu-btn{
  display:none;
}
body.sale-screen .topbar-title strong{
  font-size:16px;
  letter-spacing:0;
  color:#111827;
  text-transform:uppercase;
}
body.sale-screen .topbar-title small{
  color:#64748b;
  font-size:12px;
}
body.sale-screen .topbar-actions .btn{
  border-radius:12px;
  background:#f8fafc;
  border:1px solid #dce4ee;
  color:#111827;
  min-height:42px;
  padding:10px 14px;
  box-shadow:none;
}
body.sale-screen .content{
  padding:14px 22px 22px;
}
body.sale-screen .sale-pro-page{
  max-width:none;
  margin:0;
}
body.sale-screen .sale-pro-hero{
  min-height:86px;
  padding:12px 14px;
  margin:0 0 12px;
  border-radius:14px;
  background:#fff;
  border:1px solid #dce4ee;
  box-shadow:0 8px 24px rgba(15,23,42,.04);
}
body.sale-screen .eyebrow{
  background:#fff7df;
  color:#f0a000;
  border-color:#ffd983;
  border-radius:999px;
  padding:7px 11px;
  font-size:12px;
}
body.sale-screen .sale-pro-title h1{
  font-size:24px;
  margin:7px 0 0;
  color:#111827;
  font-weight:900;
}
body.sale-screen .sale-pro-kpis .btn{
  display:none;
}
body.sale-screen .sale-pro-kpi{
  min-width:140px;
  padding:11px 14px;
  background:#061827;
  border-radius:11px;
  text-align:right;
}
body.sale-screen .sale-pro-kpi span{
  color:#f8fafc;
  font-size:12px;
  letter-spacing:.08em;
}
body.sale-screen .sale-pro-kpi strong{
  color:#fff;
  font-size:22px;
}
body.sale-screen .sale-pro-grid{
  grid-template-columns:minmax(0,1fr) minmax(390px,500px);
  gap:14px;
  align-items:start;
}
body.sale-screen .sale-pro-main{
  gap:12px;
}
body.sale-screen .sale-pro-card,
body.sale-screen .sale-resume-panel{
  background:#fff;
  border:1px solid #dce4ee;
  border-radius:14px;
  box-shadow:0 10px 26px rgba(15,23,42,.04);
}
body.sale-screen .sale-pro-card{
  padding:14px;
}
body.sale-screen .sale-pro-card-head{
  margin-bottom:11px;
}
body.sale-screen .sale-pro-card-head h2{
  font-size:16px;
  color:#111827;
  font-weight:900;
}
body.sale-screen .step-badge{
  width:24px;
  height:24px;
  border-radius:8px;
  background:#ffbb24;
  color:#111827;
  font-size:13px;
}
body.sale-screen .sale-pro-main .sale-pro-fields{
  grid-template-columns:minmax(260px,1.7fr) 120px 78px 110px minmax(110px,.75fr) 70px;
  gap:8px;
  align-items:end;
}
body.sale-screen .sale-pro-fields label,
body.sale-screen .sale-pro-service-grid label,
body.sale-screen .sale-pro-quick-grid label{
  color:#1f2937;
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
}
body.sale-screen .sale-pro-fields input,
body.sale-screen .sale-pro-fields select,
body.sale-screen .sale-pro-fields textarea,
body.sale-screen .sale-pro-service-grid input,
body.sale-screen .sale-pro-service-grid select,
body.sale-screen .sale-pro-quick-grid input,
body.sale-screen .sale-pro-quick-grid select{
  min-height:34px;
  border:1px solid #d7e0ea;
  border-radius:9px;
  background:#fff;
  padding:7px 10px;
  font-size:13px;
}
body.sale-screen .sale-pro-tabs{
  gap:7px;
  margin-bottom:9px;
}
body.sale-screen .sale-pro-tab{
  border-radius:999px;
  padding:8px 14px;
  border:1px solid #d7e0ea;
  background:#f3f6fa;
  color:#64748b;
  font-size:13px;
}
body.sale-screen .sale-pro-tab.active{
  background:#061827;
  color:#fff;
  border-color:#061827;
}
body.sale-screen .sale-pro-search input{
  height:44px;
  border-radius:11px;
  border:1px solid #d7e0ea;
}
body.sale-screen .sale-pro-sidebar{
  position:sticky;
  top:80px;
}
body.sale-screen .sale-resume-panel{
  padding:0;
  overflow:hidden;
}
body.sale-screen .sale-resume-panel .sale-pro-card-head{
  padding:14px 16px 8px;
}
body.sale-screen .sale-resume-panel .sale-pro-card-head h2{
  font-size:16px;
  color:#111827;
}
body.sale-screen .sale-payment-compact{
  padding:12px 16px 0;
}
body.sale-screen .sale-payment-compact select,
body.sale-screen .sale-payment-compact input,
body.sale-screen .sale-payment-compact textarea{
  border-color:#d7e0ea;
  border-radius:9px;
}
body.sale-screen .sale-pro-summary{
  background:#061827;
  padding:16px 18px;
}
body.sale-screen .sale-pro-summary span{
  font-size:18px;
}
body.sale-screen .sale-pro-summary strong{
  font-size:22px;
}
body.sale-screen .sale-final-btn{
  color:#061827;
}
@media(max-width:1220px){
  body.sale-screen .sale-pro-grid{
    grid-template-columns:1fr;
  }
  body.sale-screen .sale-pro-sidebar{
    position:static;
  }
}
@media(max-width:860px){
  body.sale-screen .sale-pro-main .sale-pro-fields{
    grid-template-columns:1fr 1fr;
  }
}
@media(max-width:560px){
  body.sale-screen .topbar-pro{
    padding:10px 14px;
  }
  body.sale-screen .content{
    padding:10px;
  }
  body.sale-screen .sale-pro-main .sale-pro-fields{
    grid-template-columns:1fr;
  }
}

/* Refinamento do quadro de totais: mais respiro e valores sem cortes. */
body.sale-screen .sale-resume-panel .sale-pro-summary{
  overflow:hidden!important;
  padding:7px 10px 0!important;
  border:1px solid rgba(96,165,250,.16)!important;
  background:linear-gradient(145deg,#071827 0%,#0a2540 100%)!important;
  box-shadow:0 9px 22px rgba(7,24,39,.18)!important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary>div{
  min-height:33px!important;
  padding:0 2px!important;
  border-bottom:1px dashed rgba(148,163,184,.22)!important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary>div span{
  gap:8px!important;
  color:#d7e3f1!important;
  font-size:12px!important;
  font-weight:500!important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary>div span i{
  width:20px!important;
  height:20px!important;
  border-radius:6px!important;
  background:#123e6d!important;
  color:#7db7ff!important;
  font-size:9px!important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary>div strong{
  color:#f8fbff!important;
  font-size:16px!important;
  font-weight:650!important;
  line-height:1.2!important;
  font-variant-numeric:tabular-nums;
  white-space:nowrap;
}
body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child{
  min-height:58px!important;
  margin:5px -10px 0!important;
  padding:0 12px!important;
  border:0!important;
  border-radius:0 0 10px 10px!important;
  background:linear-gradient(90deg,#0b3158,#0a2b4d)!important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child span{
  color:#fff!important;
  font-size:16px!important;
  font-weight:650!important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child strong{
  color:#fff!important;
  font-size:31px!important;
  font-weight:700!important;
  line-height:1.15!important;
  letter-spacing:-.025em!important;
  text-shadow:0 2px 8px rgba(0,0,0,.12);
}
@media(max-width:520px){
  body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child strong{font-size:26px!important}
}

/* Layout inspirado no modelo enviado */
body.sale-screen .sidebar-pro{
  display:flex;
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:88px;
  padding:14px 8px;
  background:linear-gradient(180deg,#061827,#082a45);
  z-index:80;
  overflow:auto;
  box-shadow:8px 0 24px rgba(2,8,23,.16);
}
body.sale-screen .sidebar-collapse-btn,
body.sale-screen .sidebar-footer,
body.sale-screen .sidebar-quick a:nth-child(2),
body.sale-screen .sidebar-nav-pro .nav-group a{
  display:none;
}
body.sale-screen .brand-pro{
  display:grid;
  place-items:center;
  padding:8px 0 18px;
  margin:0;
  background:transparent;
  border:0;
}
body.sale-screen .brand-pro > div:not(.brand-mark){
  display:none;
}
body.sale-screen .brand-mark{
  width:48px;
  height:48px;
  border-radius:14px;
  background:#ff8a00;
  color:#061827;
  font-size:24px;
}
body.sale-screen .sidebar-quick{
  display:block;
  margin:0 0 8px;
}
body.sale-screen .sidebar-quick a:first-child,
body.sale-screen .sidebar-nav-pro .nav-main,
body.sale-screen .sidebar-nav-pro .nav-group summary{
  min-height:64px;
  padding:9px 4px!important;
  margin:0 0 7px;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  color:#fff!important;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  text-align:center;
  font-size:12px;
  font-weight:800;
  line-height:1.1;
}
body.sale-screen .sidebar-quick a:first-child{
  background:#ffb21d;
  color:#061827!important;
}
body.sale-screen .sidebar-nav-pro .nav-main span,
body.sale-screen .sidebar-nav-pro .nav-group summary span{
  font-size:22px;
}
body.sale-screen .sidebar-nav-pro .nav-group summary:after{
  display:none;
}
body.sale-screen .main{
  margin-left:88px;
}
body.sale-screen .topbar-pro{
  margin-left:0;
  height:76px;
  padding:12px 22px 12px 28px;
}
body.sale-screen .topbar-actions .btn:first-child{
  display:inline-flex;
  align-items:center;
  background:#061827;
  color:#fff;
  border-color:#061827;
  font-weight:900;
}
body.sale-screen .sale-pro-hero{
  min-height:112px;
  padding:22px 28px;
  position:relative;
}
body.sale-screen .sale-pro-title h1{
  font-size:34px;
}
body.sale-screen .sale-pro-kpi{
  min-width:150px;
  padding:17px 20px;
}
body.sale-screen .sale-pro-kpi strong{
  font-size:27px;
}
body.sale-screen .sale-pro-grid{
  grid-template-columns:minmax(620px,1fr) minmax(390px,500px);
  gap:14px;
}
body.sale-screen .sale-items-workspace{
  overflow:visible;
}
.sale-work-table{
  margin-top:12px;
  border:1px solid #dce4ee;
  border-radius:10px;
  overflow:hidden;
}
.sale-work-table table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
}
.sale-work-table th{
  background:#f7f9fc;
  color:#334155;
  font-size:12px;
  text-align:left;
  padding:10px 12px;
  border-bottom:1px solid #dce4ee;
}
.sale-work-table td{
  padding:10px 12px;
  border-bottom:1px solid #e6edf5;
  vertical-align:middle;
}
.sale-work-table tr:last-child td{
  border-bottom:0;
}
.sale-item-product strong{
  display:block;
  color:#0f172a;
  font-size:13px;
  font-weight:900;
}
.sale-item-product small{
  display:block;
  color:#64748b;
  margin-top:3px;
}
.sale-qty-cell{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border:1px solid #dce4ee;
  border-radius:10px;
  padding:4px 8px!important;
}
.sale-qty-cell button{
  border:0;
  background:#fff;
  color:#061827;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
}
.sale-qty-cell input{
  width:34px!important;
  border:0!important;
  text-align:center;
  min-height:24px!important;
  padding:0!important;
}
.sale-work-table .unit,
.sale-work-table .disc{
  max-width:110px;
  border:0;
  background:transparent;
  text-align:center;
}
.sale-work-table .lineTotal{
  font-weight:900;
  color:#061827;
  white-space:nowrap;
}
.sale-work-table .sale-item-remove{
  position:static!important;
  top:auto!important;
  right:auto!important;
  text-align:right;
  width:84px;
  vertical-align:middle;
}
.sale-work-table .sale-item-remove .btn{
  width:38px;
  height:38px;
  padding:0;
  border-radius:10px;
  color:#fff;
  background:#dc2626;
  border:1px solid #b91c1c;
  font-size:18px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.sale-work-table .sale-item-remove .btn:hover{
  background:#b91c1c;
  border-color:#991b1b;
}
.sale-work-actions{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top:16px;
  flex-wrap:wrap;
}
.sale-work-actions .btn{
  background:#f1f5f9;
  border-color:#e2e8f0;
  color:#334155;
  border-radius:8px;
}
.weekly-sales-print{
  max-width:1100px;
  margin:0 auto;
}
.weekly-sales-sheet{
  background:#fff;
}
.weekly-category-block{
  margin-top:20px;
}
.weekly-category-block h3{
  margin:0 0 10px;
}
body.sale-screen .sale-summary-list{
  margin:12px 16px 0;
  border:1px solid #dce4ee;
  border-radius:10px;
  overflow:hidden;
}
.sale-summary-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 54px 94px;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid #e6edf5;
}
.sale-summary-row:last-child{
  border-bottom:0;
}
.sale-summary-row strong{
  display:block;
  color:#0f172a;
  font-size:13px;
}
.sale-summary-row small{
  display:block;
  color:#64748b;
  margin-top:3px;
}
.sale-summary-row span,
.sale-summary-row b{
  text-align:right;
  color:#061827;
  font-size:13px;
}
.sale-summary-empty{
  padding:14px;
  color:#64748b;
  font-size:13px;
}
body.sale-screen .sale-resume-tools{
  display:none;
}
body.sale-screen .sale-payment-compact{
  display:grid;
  grid-template-columns:1fr 160px 120px;
  gap:12px;
}
body.sale-screen .sale-payment-compact label:nth-child(4),
body.sale-screen .sale-payment-compact label:nth-child(5){
  grid-column:1 / -1;
}
body.sale-screen .sale-payment-compact .sale-due-field{
  display:grid;
}
body.sale-screen .sale-action-buttons{
  padding:0 16px 14px;
  border-top:0;
}
body.sale-screen .sale-action-buttons .btn-light{
  display:none;
}
body.sale-screen .sale-final-btn{
  min-height:52px;
  background:#ff8500;
  color:#fff;
  border-radius:10px;
  font-size:18px;
}
@media(max-width:1220px){
  body.sale-screen .sale-pro-grid{
    grid-template-columns:1fr;
  }
  .sale-work-table{
    overflow:auto;
  }
}

/* Sidebar final com links reais */
body .sidebar-pro{
  position:fixed!important;
  left:0;
  top:0;
  bottom:0;
  width:88px!important;
  padding:12px 6px!important;
  background:linear-gradient(180deg,#061827 0%,#05243c 58%,#063456 100%)!important;
  display:flex!important;
  flex-direction:column;
  overflow:auto;
  z-index:100;
}
body .main{
  margin-left:88px!important;
}
body .brand-pro{
  display:grid!important;
  place-items:center;
  padding:8px 0 14px!important;
  margin:0!important;
  background:transparent!important;
  border:0!important;
}
body .brand-mark{
  width:48px!important;
  height:48px!important;
  border-radius:12px!important;
  background:#fff!important;
  color:#ff8a00!important;
  font-size:30px!important;
  font-weight:1000!important;
}
body .sidebar-nav-pro{
  display:flex!important;
  flex-direction:column;
  gap:5px!important;
}
body .side-nav-link{
  min-height:62px;
  padding:8px 4px!important;
  border-radius:9px;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  color:#e8f2ff!important;
  background:transparent;
  text-decoration:none;
  text-align:center;
  font-size:11px;
  line-height:1.05;
  border:0;
}
body .side-nav-link:hover{
  background:rgba(255,255,255,.09);
}
body .side-sale-link{
  position:relative;
  background:rgba(255,255,255,.08)!important;
  color:#ffb21d!important;
}
body .side-sale-link:before{
  content:"";
  position:absolute;
  left:-6px;
  top:0;
  bottom:0;
  width:3px;
  background:#ff9f0a;
}
body .side-icon{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  color:currentColor;
}
body .side-icon svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body .side-nav-link strong{
  font-size:11px;
  font-weight:700;
}
body .sidebar-footer{
  margin-top:auto!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body .side-bottom-toggle{
  width:100%;
  min-height:34px;
  border:0;
  background:transparent;
  color:#fff;
  font-size:24px;
  cursor:pointer;
}
body .sidebar-collapse-btn,
body .sidebar-quick{
  display:none!important;
}
body.sidebar-collapsed .sidebar-pro{
  width:0!important;
  padding:0!important;
}
body.sidebar-collapsed .main{
  margin-left:0!important;
}
body.sidebar-collapsed .menu-btn{
  display:inline-flex!important;
}
.sidebar-restore-btn{
  display:none;
}
body.sidebar-collapsed .sidebar-restore-btn{
  display:grid;
  place-items:center;
  position:fixed;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:30px;
  height:62px;
  border:0;
  border-radius:0 12px 12px 0;
  background:#ff9f0a;
  color:#061827;
  font-size:28px;
  font-weight:900;
  cursor:pointer;
  z-index:140;
  box-shadow:0 10px 26px rgba(2,8,23,.24);
}
@media(max-width:1000px){
  body .sidebar-pro{
    transform:none!important;
  }
  body .main{
    margin-left:88px!important;
  }
}

/* Destaque da sidebar acompanha a página atual */
body .side-nav-link,
body .side-sale-link{
  color:#e8f2ff!important;
  background:transparent!important;
  position:relative;
}
body .side-nav-link:before,
body .side-sale-link:before{
  display:none!important;
}
body .side-nav-link.active{
  background:rgba(255,255,255,.08)!important;
  color:#ffb21d!important;
}
body .side-nav-link.active:before{
  content:"";
  display:block!important;
  position:absolute;
  left:-6px;
  top:0;
  bottom:0;
  width:3px;
  background:#ff9f0a;
}
body .side-nav-link.active .side-icon{
  color:#ffb21d!important;
}

/* Correção final: impedir sobreposição dos cards do PDV */
body.sale-screen .content{
  overflow-x:hidden;
}
body.sale-screen .sale-pro-page,
body.sale-screen #saleForm{
  width:100%;
  max-width:100%;
}
body.sale-screen .sale-pro-grid{
  display:grid!important;
  grid-template-columns:minmax(0,calc(100% - 514px)) 500px!important;
  gap:14px!important;
  align-items:start!important;
  width:100%!important;
  max-width:100%!important;
}
body.sale-screen .sale-pro-main,
body.sale-screen .sale-pro-sidebar{
  min-width:0!important;
  max-width:100%!important;
}
body.sale-screen .sale-pro-main{
  display:grid!important;
  gap:14px!important;
}
body.sale-screen .sale-pro-sidebar{
  position:static!important;
  width:100%!important;
}
body.sale-screen .sale-pro-card,
body.sale-screen .sale-resume-panel{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
}
body.sale-screen .sale-pro-main .sale-pro-fields{
  display:grid!important;
  grid-template-columns:minmax(220px,2fr) minmax(118px,1fr) minmax(118px,1fr) minmax(100px,1fr)!important;
  gap:8px!important;
}
body.sale-screen .sale-pro-main .sale-pro-fields label{
  min-width:0!important;
}
body.sale-screen .sale-pro-main .sale-pro-fields input,
body.sale-screen .sale-pro-main .sale-pro-fields select{
  width:100%!important;
  min-width:0!important;
}
body.sale-screen .sale-work-table{
  max-width:100%!important;
  overflow-x:auto!important;
}
body.sale-screen .sale-work-table table{
  min-width:680px!important;
}
body.sale-screen .sale-payment-compact{
  grid-template-columns:1fr 145px 115px!important;
}
@media(max-width:1280px){
  body.sale-screen .sale-pro-grid{
    grid-template-columns:1fr!important;
  }
  body.sale-screen .sale-work-table table{
    min-width:0!important;
  }
}
@media(max-width:860px){
  body.sale-screen .sale-pro-main .sale-pro-fields,
  body.sale-screen .sale-payment-compact{
    grid-template-columns:1fr!important;
  }
}

/* Barra lateral estilo referência */
body .sidebar-pro{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:88px;
  padding:12px 6px;
  background:linear-gradient(180deg,#061827 0%,#05243c 54%,#063456 100%);
  box-shadow:8px 0 24px rgba(2,8,23,.22);
  display:flex;
  flex-direction:column;
  align-items:stretch;
  overflow:auto;
  z-index:90;
}
body .main{
  margin-left:88px;
}
body .brand-pro{
  display:grid;
  place-items:center;
  padding:8px 0 16px;
  margin:0;
  background:transparent;
  border:0;
  box-shadow:none;
}
body .brand-pro > div:not(.brand-mark){
  display:none;
}
body .brand-mark{
  width:48px;
  height:48px;
  border-radius:13px;
  background:linear-gradient(135deg,#fff,#f8fafc);
  color:#ff8a00;
  font-size:30px;
  font-weight:1000;
  display:grid;
  place-items:center;
  line-height:1;
}
body .sidebar-collapse-btn{
  display:none;
}
body .sidebar-quick{
  display:block;
  margin:0 0 8px;
}
body .sidebar-quick a:not(.side-sale-link){
  display:none!important;
}
body .side-sale-link,
body .sidebar-nav-pro .nav-main,
body .sidebar-nav-pro .nav-group summary,
body .side-help,
body .side-bottom-toggle{
  min-height:64px;
  padding:7px 4px!important;
  margin:0 0 6px;
  border-radius:9px;
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  text-align:center;
  color:#e8f2ff!important;
  background:transparent;
  border:0;
  font-size:11px;
  line-height:1.1;
  text-decoration:none;
  cursor:pointer;
}
body .side-sale-link{
  position:relative;
  background:rgba(255,255,255,.08)!important;
  color:#ffb21d!important;
}
body .side-sale-link:before{
  content:"";
  position:absolute;
  left:-6px;
  top:0;
  bottom:0;
  width:3px;
  background:#ff9f0a;
}
body .side-sale-link span,
body .sidebar-nav-pro .nav-main span,
body .sidebar-nav-pro .nav-group summary span,
body .side-help span{
  font-size:22px;
  line-height:1;
}
body .side-icon{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
}
body .side-icon svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
  display:block;
}
body .side-sale-link .side-icon{
  color:#ffb21d;
}
body .side-sale-link strong,
body .sidebar-nav-pro .nav-main strong,
body .sidebar-nav-pro .nav-group summary strong,
body .side-help strong{
  font-size:11px;
  font-weight:700;
}
body .sidebar-nav-pro{
  display:flex;
  flex-direction:column;
  gap:0!important;
}
body .sidebar-nav-pro .nav-main:hover,
body .sidebar-nav-pro .nav-group summary:hover,
body .side-help:hover{
  background:rgba(255,255,255,.08);
}
body .sidebar-nav-pro .nav-group{
  border:0;
  background:transparent;
  padding:0;
  margin:0;
  overflow:visible;
}
body .sidebar-nav-pro .nav-group summary{
  list-style:none;
}
body .sidebar-nav-pro .nav-group summary::-webkit-details-marker{
  display:none;
}
body .sidebar-nav-pro .nav-group summary:after{
  display:none!important;
}
body .sidebar-nav-pro .nav-group a{
  display:none!important;
}
body .sidebar-footer{
  margin-top:auto;
  padding:0;
  background:transparent;
  border:0;
}
body .side-help span{
  width:25px;
  height:25px;
  border:2px solid #dbeafe;
  border-radius:50%;
  display:grid;
  place-items:center;
  font-size:16px;
}
body .side-bottom-toggle{
  width:100%;
  min-height:36px;
  color:#fff;
  background:transparent;
  font-size:24px;
  border:0;
}
body.sidebar-collapsed .sidebar-pro{
  width:0;
  padding:0;
  overflow:hidden;
}
body.sidebar-collapsed .main{
  margin-left:0;
}
@media(max-width:1000px){
  body .sidebar-pro{
    transform:none;
  }
  body .main{
    margin-left:88px;
  }
}

/* Estado ativo final da sidebar: a marca laranja acompanha a tela aberta */
body .sidebar-pro .side-nav-link,
body .sidebar-pro .side-sale-link{
  position:relative!important;
  background:transparent!important;
  color:#e8f2ff!important;
}
body .sidebar-pro .side-nav-link:before,
body .sidebar-pro .side-sale-link:before{
  display:none!important;
}
body .sidebar-pro .side-nav-link .side-icon,
body .sidebar-pro .side-sale-link .side-icon{
  color:currentColor!important;
}
body .sidebar-pro .side-nav-link.active{
  background:rgba(255,255,255,.09)!important;
  color:#ffb21d!important;
}
body .sidebar-pro .side-nav-link.active:before{
  content:"";
  display:block!important;
  position:absolute;
  left:-6px;
  top:0;
  bottom:0;
  width:3px;
  border-radius:0 4px 4px 0;
  background:#ff9f0a;
}

/* Cabeçalho da venda mais compacto para liberar área útil */
body.sale-screen .sale-pro-hero{
  min-height:74px!important;
  padding:14px 18px!important;
  margin:0 0 12px!important;
  align-items:center!important;
  border-radius:14px!important;
}
body.sale-screen .sale-pro-title{
  display:flex!important;
  align-items:center!important;
  gap:16px!important;
  min-width:0!important;
}
body.sale-screen .sale-pro-title .eyebrow{
  flex:0 0 auto!important;
  padding:6px 10px!important;
  font-size:11px!important;
}
body.sale-screen .sale-pro-title h1{
  margin:0!important;
  font-size:28px!important;
  line-height:1.05!important;
}
body.sale-screen .sale-pro-title p{
  display:none!important;
}
body.sale-screen .sale-pro-kpis{
  flex:0 0 auto!important;
  margin-left:auto!important;
}
body.sale-screen .sale-pro-kpi{
  min-width:126px!important;
  padding:12px 16px!important;
  border-radius:10px!important;
}
body.sale-screen .sale-pro-kpi.small{
  display:none!important;
}
body.sale-screen .sale-pro-kpi strong{
  font-size:24px!important;
  line-height:1.1!important;
}
@media(max-width:760px){
  body.sale-screen .sale-pro-hero{
    align-items:flex-start!important;
  }
  body.sale-screen .sale-pro-title{
    flex-direction:column!important;
    align-items:flex-start!important;
    gap:8px!important;
  }
}

/* Remove a faixa superior duplicada da tela de venda */
body.sale-screen .sale-pro-hero{
  display:none!important;
}

body.sale-screen .sale-wait-inline{
  min-height:34px!important;
  padding:7px 11px!important;
  border-radius:9px!important;
  border-color:#fbbf24!important;
  background:#fff7ed!important;
  color:#92400e!important;
  font-size:12px!important;
  font-weight:900!important;
  white-space:nowrap!important;
}

/* Mantem a seta de recolher/abrir menu sempre disponivel */
body .sidebar-pro .sidebar-footer{
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
  margin-top:auto!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
}
body .sidebar-pro .side-bottom-toggle{
  display:grid!important;
  place-items:center!important;
  width:100%!important;
  min-height:34px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#e8f2ff!important;
  font-size:24px!important;
  cursor:pointer!important;
}
body .sidebar-pro .side-bottom-toggle:hover{
  background:rgba(255,255,255,.09)!important;
  color:#ffb21d!important;
}
body.sidebar-collapsed .sidebar-restore-btn{
  display:grid!important;
  place-items:center!important;
}

/* Oculta as barras cinzas do menu, mantendo a rolagem pelo mouse */
body .sidebar-pro{
  overflow-x:hidden!important;
  overflow-y:auto!important;
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
body .sidebar-pro::-webkit-scrollbar{
  width:0!important;
  height:0!important;
}
body .sidebar-pro::-webkit-scrollbar-thumb,
body .sidebar-pro::-webkit-scrollbar-track{
  background:transparent!important;
}

/* Menu de atalhos secundarios da sidebar */
body .side-menu-group{
  position:relative!important;
}
body .side-menu-group .side-nav-link{
  width:100%!important;
  border:0!important;
  cursor:pointer!important;
  font-family:inherit!important;
}
body .side-flyout{
  display:none;
  position:fixed;
  left:96px;
  top:12px;
  width:245px;
  max-height:calc(100vh - 24px);
  overflow:auto;
  padding:10px;
  border:1px solid rgba(148,163,184,.28);
  border-radius:12px;
  background:#fff;
  color:#0f172a;
  box-shadow:0 20px 44px rgba(2,8,23,.24);
  z-index:220;
}
body .side-menu-group.open .side-flyout{
  display:grid;
  gap:5px;
}
body .side-flyout strong{
  display:block;
  padding:5px 8px 8px;
  color:#061827;
  font-size:13px;
}
body .side-flyout a{
  display:block!important;
  padding:9px 10px!important;
  border-radius:8px!important;
  color:#172033!important;
  background:transparent!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.15!important;
}
body .side-flyout a:hover{
  background:#f1f5f9!important;
  color:#061827!important;
}
body .side-flyout-wide{
  width:275px;
}

.document-lookup-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:8px;
  align-items:center;
}
.document-lookup-row .btn{
  white-space:nowrap;
}
#cnpjLookupStatus{
  color:#64748b;
  font-weight:700;
}
@media(max-width:640px){
  .document-lookup-row{
    grid-template-columns:1fr;
  }
}

.sale-quick-customer-btn{
  margin-top:6px;
  align-self:flex-start;
}
.customer-search-caption{
  display:block;
  margin-top:2px;
  color:#64748b;
  font-size:11px;
  font-weight:700;
}
body.sale-screen .customer-search-input{
  min-height:36px;
  padding:8px 10px;
  border-radius:10px;
  font-size:13px;
}
.quick-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:300;
  background:rgba(2,8,23,.42);
  padding:22px;
  align-items:center;
  justify-content:center;
}
.quick-modal.open{
  display:flex;
}
.quick-modal-panel{
  width:min(720px,100%);
  max-height:calc(100vh - 44px);
  overflow:auto;
  background:#fff;
  border:1px solid #dce4ee;
  border-radius:14px;
  box-shadow:0 24px 60px rgba(2,8,23,.28);
  padding:18px;
}
.quick-modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:14px;
}
.quick-modal-head strong{
  display:block;
  font-size:20px;
}
.quick-modal-head small{
  display:block;
  margin-top:3px;
}
.quick-customer-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.quick-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}
#quickCustomerStatus{
  color:#64748b;
  font-weight:700;
}
@media(max-width:720px){
  .quick-customer-grid{
    grid-template-columns:1fr;
  }
  .quick-modal-actions{
    flex-direction:column;
  }
}

/* Sidebar accordion */
body .sidebar-nav-pro.side-accordion{
  display:grid;
  gap:10px;
}
body .sidebar-nav-pro.side-accordion > .side-nav-link,
body .sidebar-nav-pro.side-accordion > .side-menu-group{
  display:none !important;
}
body .side-accordion-group{
  border:1px solid rgba(148,163,184,.16);
  background:linear-gradient(180deg, rgba(14,55,95,.72), rgba(8,28,49,.92));
  border-radius:18px;
  overflow:hidden;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
body .side-accordion-group[open]{
  border-color:rgba(245,178,27,.36);
  box-shadow:0 14px 30px rgba(3,10,20,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
body .side-accordion-group.is-current{
  border-color:rgba(245,178,27,.42);
}
body .side-accordion-summary{
  list-style:none;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px;
  cursor:pointer;
  color:#f8fbff;
  user-select:none;
  transition:background .22s ease, color .22s ease;
}
body .side-accordion-summary::-webkit-details-marker{
  display:none;
}
body .side-accordion-summary:hover{
  background:rgba(18,92,153,.22);
}
body .side-accordion-group[open] > .side-accordion-summary,
body .side-accordion-group.is-current > .side-accordion-summary{
  background:linear-gradient(90deg, rgba(18,92,153,.30), rgba(245,178,27,.12));
}
body .side-accordion-summary strong{
  flex:1;
  font-size:14px;
  font-weight:900;
  letter-spacing:.01em;
}
body .side-chevron{
  margin-left:auto;
  font-size:18px;
  color:#ffbf47;
  transition:transform .22s ease, color .22s ease;
}
body .side-accordion-group[open] .side-chevron{
  transform:rotate(90deg);
  color:#ffd36e;
}
body .side-submenu{
  display:grid;
  gap:8px;
  padding:0 12px 12px;
}
body .side-submenu-link{
  position:relative;
  display:flex;
  align-items:center;
  min-height:40px;
  margin:0;
  padding:10px 12px 10px 18px;
  color:#d7e8fb;
  font-size:13px;
  font-weight:800;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid transparent;
  transition:transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
body .side-submenu-link:before{
  content:"";
  position:absolute;
  left:8px;
  top:50%;
  width:4px;
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,.45);
  transform:translateY(-50%);
}
body .side-submenu-link:hover{
  background:rgba(18,92,153,.18);
  border-color:rgba(147,197,253,.20);
  color:#fff;
  transform:translateX(2px);
}
body .side-submenu-link.active{
  background:linear-gradient(90deg, rgba(18,92,153,.42), rgba(245,178,27,.18));
  border-color:rgba(245,178,27,.34);
  color:#fff8ea;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);
}
body .side-submenu-link.active:before{
  background:#f5b21b;
  box-shadow:0 0 0 4px rgba(245,178,27,.16);
}
body .sidebar-utility-links{
  display:grid;
  gap:8px;
  margin-bottom:12px;
}
body .side-utility-link{
  display:block;
  padding:9px 12px;
  border-radius:12px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#d7e8fb;
  font-size:13px;
  font-weight:800;
  transition:background .18s ease, border-color .18s ease, color .18s ease;
}
body .side-utility-link:hover{
  background:rgba(18,92,153,.18);
  border-color:rgba(147,197,253,.22);
  color:#fff;
}
body .side-utility-link.active{
  background:rgba(245,178,27,.14);
  border-color:rgba(245,178,27,.34);
  color:#fff3cf;
}
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-submenu,
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-chevron,
body.sidebar-collapsed .sidebar-utility-links,
body.sidebar-collapsed .side-help strong{
  display:none;
}
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-accordion-summary{
  justify-content:center;
  padding:12px 8px;
}
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-accordion-summary strong{
  display:none;
}
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-accordion-group{
  background:transparent;
  border-color:transparent;
  box-shadow:none;
}
@media(max-width:1000px){
  body .side-accordion-summary{
    padding:13px;
  }
  body .side-submenu{
    gap:7px;
    padding:0 10px 10px;
  }
  body .side-submenu-link{
    min-height:38px;
    padding:9px 11px 9px 17px;
    font-size:12px;
  }
}

/* Accordion sidebar final override */
body .sidebar-pro{
  width:280px !important;
  padding:14px 12px !important;
  align-items:stretch !important;
}
body .main{
  margin-left:280px !important;
}
body .brand-pro{
  display:flex !important;
  place-items:unset !important;
  justify-content:flex-start !important;
  padding:10px 10px 14px !important;
}
body .brand-pro > div:not(.brand-mark){
  display:block !important;
}
body .sidebar-nav-pro.side-accordion{
  gap:10px !important;
}
body .sidebar-nav-pro.side-accordion .side-accordion-summary{
  min-height:unset !important;
  margin:0 !important;
  padding:14px !important;
  display:flex !important;
  flex-direction:row !important;
  justify-content:flex-start !important;
  text-align:left !important;
  gap:12px !important;
  font-size:14px !important;
}
body .sidebar-nav-pro.side-accordion .side-accordion-summary .side-icon{
  flex:0 0 24px;
}
body .sidebar-nav-pro.side-accordion .side-accordion-summary .side-chevron{
  margin-left:auto !important;
  font-size:18px !important;
}
body .sidebar-nav-pro.side-accordion .side-accordion-summary strong{
  display:block !important;
  font-size:14px !important;
}
body .sidebar-nav-pro.side-accordion .side-submenu{
  display:grid !important;
}
body .sidebar-nav-pro.side-accordion .side-submenu-link{
  display:flex !important;
  min-height:40px !important;
  padding:10px 12px 10px 18px !important;
  text-align:left !important;
  font-size:13px !important;
}
body .sidebar-nav-pro.side-accordion > .side-nav-link,
body .sidebar-nav-pro.side-accordion > .side-menu-group{
  display:none !important;
}
body .sidebar-footer{
  padding:10px !important;
  background:rgba(255,255,255,.06) !important;
  border:1px solid rgba(255,255,255,.08) !important;
}
body .side-help{
  min-height:44px !important;
  margin:0 !important;
  padding:10px 12px !important;
  flex-direction:row !important;
  justify-content:flex-start !important;
  gap:10px !important;
  text-align:left !important;
}
body .side-help strong{
  display:block !important;
  font-size:13px !important;
}
body.sidebar-collapsed .sidebar-pro{
  width:86px !important;
  padding:12px 8px !important;
  overflow:hidden !important;
}
body.sidebar-collapsed .main{
  margin-left:86px !important;
}
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-submenu,
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-chevron,
body.sidebar-collapsed .sidebar-utility-links,
body.sidebar-collapsed .side-help strong{
  display:none !important;
}
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-accordion-summary{
  justify-content:center !important;
  padding:12px 8px !important;
}
body.sidebar-collapsed .sidebar-nav-pro.side-accordion .side-accordion-summary strong{
  display:none !important;
}
body.sidebar-collapsed .brand-pro{
  justify-content:center !important;
  padding:8px !important;
}
body.sidebar-collapsed .sidebar-footer{
  padding:8px !important;
  display:flex !important;
  justify-content:center !important;
}
body.sidebar-collapsed .side-help{
  justify-content:center !important;
  padding:10px !important;
}
body .brand-home-link{
  display:inline-grid !important;
  place-items:center !important;
  padding:0 !important;
  border-radius:13px !important;
  color:inherit !important;
}
body .brand-home-link:hover{
  background:transparent !important;
  filter:brightness(.96);
}

/* Sidebar SaaS premium — camada visual final */
body .sidebar-pro{width:292px!important;padding:16px 13px!important;background:radial-gradient(circle at 15% 0,rgba(37,99,235,.20),transparent 26%),linear-gradient(180deg,#071b2e 0%,#0a2744 54%,#0d3356 100%)!important;border-right:1px solid rgba(148,197,255,.10);box-shadow:14px 0 40px rgba(2,8,23,.22)!important;font-family:Inter,"Segoe UI",Arial,sans-serif;scrollbar-width:none}.main{margin-left:292px!important}
body .brand-pro{position:relative;display:flex!important;align-items:center!important;gap:12px!important;min-height:112px;margin:0 0 14px!important;padding:13px!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:21px!important;background:linear-gradient(135deg,rgba(255,255,255,.095),rgba(255,255,255,.035))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 12px 28px rgba(2,8,23,.15)!important;overflow:hidden}.brand-pro:after{content:"";position:absolute;right:-28px;top:-38px;width:90px;height:90px;border-radius:50%;background:rgba(255,138,0,.07)}
body .brand-mark{position:relative;z-index:1;width:52px!important;height:52px!important;flex:0 0 52px;border-radius:16px!important;background:linear-gradient(145deg,#ffb21d,#ff8500)!important;color:#071b2e!important;font-size:18px!important;font-weight:900!important;box-shadow:0 10px 22px rgba(255,133,0,.22),inset 0 1px 0 rgba(255,255,255,.5)}.sidebar-brand-copy{position:relative;z-index:1;min-width:0;display:flex;flex-direction:column}.sidebar-brand-copy>strong{max-width:165px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:14px;font-weight:750}.sidebar-brand-copy>small{margin-top:3px;color:#a9c2db;font-size:10px;letter-spacing:.045em}.sidebar-brand-copy>span{margin-top:8px;color:#dcecff;font-size:11px;font-weight:650}.sidebar-brand-copy>em{margin-top:3px;color:#5ee39a;font-size:10px;font-style:normal;font-weight:650}
body .sidebar-nav-pro.side-accordion{display:grid!important;gap:8px!important}.sidebar-nav-pro.side-accordion>.side-nav-link{display:flex!important}.sidebar-nav-pro.side-accordion>.side-menu-group{display:block!important}
body .side-accordion-group{position:relative;border:1px solid rgba(148,197,255,.11)!important;border-radius:17px!important;background:linear-gradient(135deg,rgba(255,255,255,.07),rgba(255,255,255,.035))!important;box-shadow:0 5px 14px rgba(2,8,23,.10),inset 0 1px 0 rgba(255,255,255,.035)!important;overflow:hidden;transition:transform .2s ease,background .2s ease,border-color .2s ease,box-shadow .2s ease}.side-accordion-group:hover{transform:translateX(2px);border-color:rgba(147,197,253,.24)!important;background:linear-gradient(135deg,rgba(37,99,235,.13),rgba(255,255,255,.05))!important;box-shadow:0 10px 22px rgba(2,8,23,.16)!important}.side-accordion-group.is-current,.side-accordion-group[open]{border-color:rgba(255,178,29,.27)!important;background:linear-gradient(105deg,rgba(255,255,255,.10),rgba(255,178,29,.07))!important;box-shadow:0 11px 24px rgba(2,8,23,.17)!important}.side-accordion-group.is-current:before{content:"";position:absolute;z-index:2;left:0;top:12px;bottom:12px;width:3px;border-radius:0 4px 4px 0;background:#ff9f0a;box-shadow:0 0 12px rgba(255,159,10,.35)}
body .sidebar-nav-pro.side-accordion .side-accordion-summary{min-height:68px!important;padding:11px 12px!important;gap:11px!important;background:transparent!important}.side-accordion-summary .side-icon{width:38px!important;height:38px!important;flex:0 0 38px!important;border:1px solid rgba(147,197,253,.12);border-radius:12px;background:rgba(255,255,255,.055);transition:transform .2s ease,color .2s ease,background .2s ease}.side-accordion-summary .side-icon svg{width:21px;height:21px}.side-accordion-group:hover .side-icon{transform:scale(1.04);background:rgba(37,99,235,.16)}.side-accordion-group.is-current .side-icon,.side-accordion-group[open] .side-icon{color:#ffb21d!important;background:rgba(255,178,29,.10)}
body .sidebar-nav-pro.side-accordion .side-accordion-summary strong{display:flex!important;flex:1;min-width:0;flex-direction:column;color:#f7fbff;font-size:13px!important;font-weight:700!important;line-height:1.1}.side-accordion-summary strong small{display:block!important;margin-top:4px;color:#93aec8;font-size:10px;font-weight:450;letter-spacing:.01em}.side-accordion-group.is-current .side-accordion-summary strong small{color:#c6d8e9}.side-chevron{color:#8daac4!important;transition:transform .22s ease,color .22s ease!important}.side-accordion-group:hover .side-chevron{transform:translateX(2px);color:#ffb21d!important}.side-accordion-group[open] .side-chevron{transform:rotate(90deg)!important;color:#ffb21d!important}
body .side-submenu{gap:6px!important;padding:0 10px 10px!important}.side-submenu-link{min-height:36px!important;padding:8px 10px 8px 18px!important;border-radius:11px!important;background:rgba(1,12,24,.15)!important;color:#cfe2f5!important;font-size:11.5px!important;font-weight:600!important}.side-submenu-link:hover{transform:translateX(2px);background:rgba(37,99,235,.14)!important}.side-submenu-link.active{background:linear-gradient(90deg,rgba(255,159,10,.20),rgba(37,99,235,.12))!important;border-color:rgba(255,178,29,.26)!important;color:#fff!important}
body .sidebar-pro .side-nav-link{min-height:58px!important;padding:9px 11px!important;display:flex!important;flex-direction:row!important;justify-content:flex-start!important;gap:11px!important;border:1px solid rgba(148,197,255,.11)!important;border-radius:16px!important;background:rgba(255,255,255,.05)!important;text-align:left!important;font-size:13px!important;box-shadow:0 5px 14px rgba(2,8,23,.10);transition:transform .2s ease,background .2s ease,box-shadow .2s ease}.sidebar-pro .side-nav-link:hover{transform:translateX(2px);background:rgba(37,99,235,.13)!important;box-shadow:0 10px 22px rgba(2,8,23,.16)}body .sidebar-pro .side-nav-link.active{color:#fff!important;background:linear-gradient(90deg,rgba(255,159,10,.19),rgba(37,99,235,.12))!important}.sidebar-pro .side-nav-link.active:before{left:0!important;top:10px!important;bottom:10px!important;border-radius:0 4px 4px 0}.sidebar-pro .side-nav-link strong{font-size:12px!important}
body .sidebar-footer{gap:7px!important;margin-top:14px!important;padding:11px!important;border:1px solid rgba(255,255,255,.09)!important;border-radius:18px!important;background:rgba(1,12,24,.20)!important}.sidebar-utility-links{gap:5px!important;margin-bottom:2px!important}.side-utility-link{padding:8px 10px!important;border:0!important;border-radius:10px!important;background:transparent!important;font-size:11.5px!important;font-weight:600!important}.side-utility-link:hover{background:rgba(37,99,235,.13)!important}.side-logout{min-height:40px;display:flex;align-items:center;gap:10px;padding:9px 11px;border-radius:11px;color:#ffd9d4!important;font-size:12px}.side-logout:hover{background:rgba(239,68,68,.12);color:#fff!important}.side-help{min-height:40px!important;background:transparent!important;border:0!important;box-shadow:none!important}.side-bottom-toggle{min-height:30px!important;border-top:1px solid rgba(255,255,255,.07)!important;border-radius:8px!important}
body.sidebar-collapsed .sidebar-pro{width:82px!important;padding:12px 8px!important}.sidebar-collapsed .main{margin-left:82px!important}.sidebar-collapsed .brand-pro{min-height:66px!important;padding:7px!important;justify-content:center!important}.sidebar-collapsed .sidebar-brand-copy{display:none}.sidebar-collapsed .side-accordion-summary strong small{display:none!important}
@media(max-width:1000px){body .sidebar-pro{width:288px!important;transform:translateX(-105%)!important;transition:transform .24s cubic-bezier(.2,.8,.2,1)!important}.sidebar-open .sidebar-pro{transform:translateX(0)!important}.main,body.sidebar-collapsed .main{margin-left:0!important}.menu-btn{display:inline-flex!important}.sidebar-restore-btn{display:none!important}.side-accordion-summary{min-height:64px!important}}
@media(prefers-reduced-motion:reduce){body .sidebar-pro *,body .sidebar-pro{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Dashboard executivo premium */
body:has(.dash-pro){background:#f4f6f8;font-family:Inter,"Segoe UI",Arial,sans-serif}.dash-pro{--dash-ink:#102033;--dash-muted:#65758b;--dash-line:#e3e9f0;display:grid;gap:22px;max-width:1500px;margin:0 auto;color:var(--dash-ink)}
.dash-pro .card{margin:0;border:1px solid var(--dash-line);border-radius:20px;background:#fff;box-shadow:0 8px 24px rgba(15,32,51,.055);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}.dash-pro .card:hover{transform:translateY(-2px);border-color:#d6e0ea;box-shadow:0 14px 30px rgba(15,32,51,.085)}
.executive-hero{position:relative;isolation:isolate;min-height:280px!important;display:grid!important;grid-template-columns:minmax(330px,1.3fr) minmax(250px,.7fr);grid-template-areas:"copy revenue" "actions actions";align-items:center!important;gap:22px!important;padding:36px 40px!important;margin:0!important;border:1px solid rgba(255,255,255,.12);border-radius:26px!important;overflow:hidden;background:radial-gradient(circle at 82% 5%,rgba(59,130,246,.42),transparent 31%),linear-gradient(125deg,#071b2e,#0d3d70 58%,#155a96)!important;box-shadow:0 20px 45px rgba(7,27,46,.22);color:#fff}.executive-hero:before{content:"";position:absolute;z-index:-1;right:-100px;bottom:-210px;width:430px;height:430px;border:55px solid rgba(255,255,255,.045);border-radius:50%}.executive-hero-copy{grid-area:copy}.executive-hero .eyebrow{display:inline-flex;padding:6px 10px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(255,255,255,.09);color:#bcd6f2;font-size:10px;font-weight:750;letter-spacing:.12em;text-transform:uppercase}.dash-greeting{margin:18px 0 5px!important;color:#dbeafe!important;font-size:.88rem!important}.executive-hero h1{margin:0!important;color:#fff;font-size:clamp(2rem,3.3vw,3.35rem)!important;line-height:1;letter-spacing:-.045em}.executive-hero-copy>p:not(.dash-greeting){margin:10px 0 0;color:#c9ddf2;font-size:.94rem}.executive-hero-copy>small{display:block;margin-top:10px;color:#8fb2d2}
.executive-revenue{grid-area:revenue;justify-self:end;min-width:280px;padding:24px;border:1px solid rgba(255,255,255,.14);border-radius:21px;background:rgba(255,255,255,.09);box-shadow:inset 0 1px 0 rgba(255,255,255,.08);backdrop-filter:blur(10px)}.executive-revenue small,.executive-revenue strong,.executive-revenue span{display:block}.executive-revenue small{color:#bcd6f2;font-size:.73rem;text-transform:uppercase;letter-spacing:.08em}.executive-revenue strong{margin:8px 0 6px;color:#fff;font-size:2rem;letter-spacing:-.04em}.executive-revenue span{color:#9fd7b8;font-size:.72rem}
.executive-actions{grid-area:actions;display:flex;gap:9px!important;flex-wrap:wrap}.executive-actions .btn{min-height:39px;padding:9px 13px;border-color:rgba(255,255,255,.16);background:rgba(255,255,255,.09);color:#fff;font-size:.75rem;box-shadow:none}.executive-actions .btn:hover{transform:translateY(-2px);background:rgba(255,255,255,.16)}.executive-actions .btn-primary{border-color:#ff9f0a;background:linear-gradient(135deg,#ffb21d,#ff8500);color:#071b2e;box-shadow:0 8px 20px rgba(255,133,0,.22)}
.dash-cards{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0!important}.dash-cards .stat{position:relative;min-height:144px;padding:20px 19px 17px 20px!important;overflow:hidden}.dash-cards .stat:before{content:"";position:absolute;left:0;top:20px;bottom:20px;width:4px;border-radius:0 4px 4px 0;background:#2563eb}.dash-cards .stat:nth-child(3):before{background:#16a34a}.dash-cards .stat:nth-child(4):before,.dash-cards .stat:nth-child(8):before{background:#f59e0b}.dash-cards .stat:nth-child(5):before{background:#dc2626}.dash-cards .stat:nth-child(6):before{background:#7c3aed}.dash-cards .stat>span{color:var(--dash-muted);font-size:.75rem;font-weight:650;text-transform:uppercase;letter-spacing:.05em}.dash-cards .stat>strong{margin:15px 0 8px;color:var(--dash-ink);font-size:1.65rem;line-height:1;letter-spacing:-.04em}.dash-cards .stat>small{color:#7b8b9e;font-size:.72rem}.dash-cards .stat:after{content:"";position:absolute;right:-20px;top:-25px;width:75px;height:75px;border-radius:50%;background:rgba(37,99,235,.045)}
.dashboard-command-row{display:grid;grid-template-columns:1.35fr .65fr;gap:18px}.dashboard-intelligence{padding:22px!important;background:linear-gradient(135deg,#fff,#f8fbff)!important}.dashboard-intelligence .card-head h2:before{content:"✦";display:inline-grid;place-items:center;width:30px;height:30px;margin-right:9px;border-radius:10px;background:#eff6ff;color:#2563eb}.dashboard-intelligence>p{color:var(--dash-muted);font-size:.8rem}.intelligence-items{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:16px}.intelligence-items a{padding:14px;border:1px solid #e5ebf2;border-radius:14px;background:#fff;color:var(--dash-ink)}.intelligence-items b,.intelligence-items span{display:block}.intelligence-items b{font-size:1rem}.intelligence-items span{margin-top:4px;color:var(--dash-muted);font-size:.7rem}.dashboard-quick-actions{padding:22px!important}.dashboard-quick-actions>div:last-child{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dashboard-quick-actions>div:last-child a{min-height:44px;display:flex;align-items:center;padding:10px 12px;border:1px solid #e4eaf1;border-radius:12px;background:#f8fafc;color:#20364e;font-size:.72rem;font-weight:700;transition:.18s}.dashboard-quick-actions>div:last-child a:hover{transform:translateY(-2px);border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
.dashboard-priority-grid{display:grid;grid-template-columns:1.4fr .6fr;gap:18px}.dashboard-priority-card{padding:22px!important}.dash-pro .card-head{margin-bottom:14px}.dash-pro .card-head h2{font-size:1rem;letter-spacing:-.02em}.dash-pro .card-head>a{color:#2563eb;font-size:.72rem;font-weight:700}.muted-text{color:var(--dash-muted);font-size:.76rem}.alert-list{display:grid;gap:9px}.alert-list a{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid #e6ebf2;border-radius:14px;background:#fbfcfe;color:var(--dash-ink);transition:.18s}.alert-list a:hover{transform:translateX(3px);border-color:#fed7aa;background:#fffaf5}.alert-list a>span{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#fff4ed}.alert-list strong{font-size:.76rem}.alert-list small{display:block;margin-top:3px;font-size:.68rem}
.dash-pro>.grid-2{gap:18px}.dash-pro>.grid-2>.card{padding:22px!important;min-width:0}.dash-pro .table-wrap{border:1px solid #e8edf3;border-radius:14px;overflow:auto}.dash-pro table{min-width:600px}.dash-pro th{position:sticky;top:0;padding:11px 12px;background:#f7f9fc;color:#64748b;font-size:.68rem;text-transform:uppercase;letter-spacing:.04em}.dash-pro td{padding:11px 12px;color:#334155;font-size:.75rem}.dash-pro tbody tr{transition:background .16s}.dash-pro tbody tr:hover{background:#f8fbff}.dash-pro .badge{font-size:.66rem}
@media(max-width:1180px){.dash-cards{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dashboard-command-row,.dashboard-priority-grid{grid-template-columns:1fr}.executive-hero{grid-template-columns:1fr .75fr}}
@media(max-width:760px){.content{padding:14px}.dash-pro{gap:15px}.executive-hero{min-height:0!important;grid-template-columns:1fr;grid-template-areas:"copy" "revenue" "actions";padding:25px 20px!important;border-radius:21px!important}.executive-revenue{justify-self:stretch;min-width:0}.executive-actions{display:grid!important;grid-template-columns:1fr 1fr}.executive-actions .btn{width:100%}.dash-cards{grid-template-columns:1fr!important;gap:10px!important}.dash-cards .stat{min-height:115px}.dashboard-command-row{gap:12px}.intelligence-items{grid-template-columns:1fr}.dashboard-quick-actions>div:last-child{grid-template-columns:1fr}.dash-pro>.grid-2{grid-template-columns:1fr;gap:12px}.dashboard-priority-grid{gap:12px}}
@media(prefers-reduced-motion:reduce){.dash-pro *{transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Privacidade dos valores do dashboard */
.dashboard-eye-toggle{position:absolute;z-index:3;right:22px;top:18px;min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:rgba(3,18,34,.25);color:#e7f2ff;font-family:inherit;font-size:.68rem;cursor:pointer;backdrop-filter:blur(8px);transition:transform .2s ease,background .2s ease,border-color .2s ease}.dashboard-eye-toggle:hover{transform:translateY(-2px);background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28)}.dashboard-eye-toggle span{font-size:1rem;line-height:1}.dashboard-eye-toggle b{font-size:.68rem;font-weight:650}.dashboard-eye-toggle .eye-closed{display:none}.dashboard-eye-toggle[aria-pressed=true] .eye-open{display:none}.dashboard-eye-toggle[aria-pressed=true] .eye-closed{display:inline}.sensitive-value{position:relative;transition:color .16s ease}.values-hidden .sensitive-value{color:transparent!important;text-shadow:none!important;user-select:none}.values-hidden .sensitive-value:after{content:"••••••";position:absolute;left:0;top:50%;transform:translateY(-50%);color:currentColor;color:#8ea3b8;letter-spacing:.11em;font-size:.72em}.values-hidden .executive-revenue .sensitive-value:after{color:#fff;font-size:.62em}.values-hidden .sensitive-value::selection{background:transparent}
@media(max-width:760px){.dashboard-eye-toggle{right:14px;top:13px}.dashboard-eye-toggle b{display:none}}

/* Barra 1 da venda — organização premium reversível */
body.sale-screen .sale-add-card{position:relative;padding:0!important;border:1px solid #dfe7f0!important;border-radius:22px!important;background:linear-gradient(145deg,#fff,#fbfdff)!important;box-shadow:0 12px 32px rgba(15,32,51,.075)!important;overflow:hidden}
body.sale-screen .sale-add-card:before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:linear-gradient(90deg,#ff9f0a,#2563eb)}
body.sale-screen .sale-add-card>.sale-pro-card-head{margin:0!important;padding:20px 22px 15px!important;border-bottom:1px solid #edf1f5;background:linear-gradient(90deg,rgba(255,249,237,.8),rgba(239,246,255,.55))}
body.sale-screen .sale-step-heading{display:flex!important;align-items:center!important;gap:12px!important}.sale-step-heading .step-badge{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:11px;background:linear-gradient(145deg,#ffb21d,#ff8a00);color:#172033;font-size:.8rem;font-weight:900;box-shadow:0 6px 14px rgba(255,138,0,.20)}.sale-step-heading h2{margin:0!important;color:#14213d;font-size:1.05rem!important;letter-spacing:-.02em}.sale-step-heading p{margin:4px 0 0;color:#6b7d91;font-size:.72rem}
body.sale-screen .sale-step-one-grid{display:grid!important;grid-template-columns:minmax(320px,1.2fr) minmax(280px,.8fr)!important;grid-template-areas:"customer operation" "vehicle vehicle"!important;gap:13px!important;padding:16px 18px 18px!important}
.sale-step-panel{min-width:0;padding:14px;border:1px solid #e5ebf2;border-radius:17px;background:#fff;box-shadow:0 4px 14px rgba(15,32,51,.035)}.sale-customer-panel{grid-area:customer}.sale-operation-panel{grid-area:operation}.sale-vehicle-panel{grid-area:vehicle;background:linear-gradient(135deg,#f9fbff,#f4f8fd)}
.sale-panel-label{display:flex;align-items:center;gap:9px;margin-bottom:11px}.sale-panel-label>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border:1px solid #dbe7f3;border-radius:11px;background:#eff6ff;color:#2563eb;font-size:1rem}.sale-customer-panel .sale-panel-label>span{border-color:#fed7aa;background:#fff4ed;color:#f4511e}.sale-panel-label strong,.sale-panel-label small{display:block}.sale-panel-label strong{color:#1b2d42;font-size:.78rem}.sale-panel-label small{margin-top:2px;color:#7b8b9d;font-size:.64rem}
body.sale-screen .sale-step-panel label{gap:5px;color:#40536a;font-size:.69rem;font-weight:650}.sale-customer-field{display:grid!important;grid-template-columns:1fr auto!important;grid-template-areas:"label label" "caption caption" "search button" "select select"!important;gap:6px 8px!important}.sale-customer-field>.customer-search-caption{grid-area:caption}.sale-customer-field>.customer-search-input{grid-area:search}.sale-customer-field>#customerSelect{grid-area:select}.sale-customer-field>.sale-quick-customer-btn{grid-area:button;align-self:stretch!important;width:auto!important;min-width:116px!important;height:44px!important;margin:0!important;border:1px solid #fed7aa!important;border-radius:12px!important;background:#fff4ed!important;color:#c2410c!important;font-size:.7rem!important;box-shadow:none!important}.sale-customer-field>.sale-quick-customer-btn:hover{transform:translateY(-1px);background:#ffeadf!important}
body.sale-screen .sale-step-panel input,body.sale-screen .sale-step-panel select{height:44px!important;min-height:44px!important;padding:9px 11px!important;border:1px solid #d7e0ea!important;border-radius:12px!important;background:#fff!important;color:#172033;font-size:.78rem!important;box-shadow:0 1px 2px rgba(15,32,51,.02);transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}.sale-step-panel input:hover,.sale-step-panel select:hover{border-color:#b9c8d8!important}.sale-step-panel input:focus,.sale-step-panel select:focus{border-color:#3b82f6!important;box-shadow:0 0 0 3px rgba(59,130,246,.12)!important;outline:0}.customer-search-caption{font-size:.62rem!important;color:#7b8b9d!important}
.sale-operation-fields{display:grid;grid-template-columns:1fr 1fr;gap:9px}.sale-operation-fields label:first-child{grid-column:1/-1}.sale-vehicle-fields{display:grid;grid-template-columns:minmax(150px,.65fr) minmax(240px,1.35fr) minmax(145px,.6fr);gap:10px}.sale-vehicle-fields #vehiclePlate{font-weight:800;letter-spacing:.08em;text-transform:uppercase;background:#fffcf7!important}
@media(max-width:1050px){body.sale-screen .sale-step-one-grid{grid-template-columns:1fr!important;grid-template-areas:"customer" "operation" "vehicle"!important}.sale-operation-fields{grid-template-columns:repeat(3,1fr)}.sale-operation-fields label:first-child{grid-column:auto}}
@media(max-width:700px){body.sale-screen .sale-add-card>.sale-pro-card-head{padding:17px 16px 13px!important}.sale-step-heading p{display:none}body.sale-screen .sale-step-one-grid{padding:12px!important;gap:10px!important}.sale-step-panel{padding:12px;border-radius:14px}.sale-customer-field{grid-template-columns:1fr!important;grid-template-areas:"label" "caption" "search" "select" "button"!important}.sale-customer-field>.sale-quick-customer-btn{width:100%!important}.sale-operation-fields,.sale-vehicle-fields{grid-template-columns:1fr}.sale-operation-fields label:first-child{grid-column:auto}}

/* Barra 1 — reprodução fiel da referência aprovada */
body.sale-screen .sale-add-card{border-radius:20px!important;border:1px solid #dfe6ef!important;background:#fff!important;box-shadow:0 14px 38px rgba(15,32,51,.075)!important}
body.sale-screen .sale-add-card:before{height:5px;background:linear-gradient(90deg,#ff9300 0%,#ffb13b 38%,#8bb7ff 72%,#2f80ff 100%)}
body.sale-screen .sale-add-card>.sale-pro-card-head{min-height:116px;padding:27px 28px 22px!important;display:flex;align-items:center;border-bottom:1px solid #e5eaf1;background:linear-gradient(105deg,#fff,#fbfcff)!important}
body.sale-screen .sale-step-heading{gap:16px!important}.sale-step-heading .step-badge{width:54px;height:54px;flex-basis:54px;border-radius:14px;background:linear-gradient(145deg,#ffb12b,#ff9000);color:#fff;font-size:1.25rem;font-weight:700;box-shadow:0 9px 20px rgba(255,144,0,.20)}.sale-step-heading h2{color:#101d35;font-size:1.55rem!important;font-weight:750;letter-spacing:-.035em}.sale-step-heading p{margin-top:7px;color:#405475;font-size:.88rem}
body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(390px,1fr) minmax(390px,1fr)!important;grid-template-areas:"customer operation" "vehicle vehicle"!important;gap:20px!important;padding:26px 28px 30px!important;background:#fff}
body.sale-screen .sale-step-panel{padding:22px 22px 20px;border:1px solid #dfe6ef;border-radius:19px;background:#fff;box-shadow:0 8px 22px rgba(15,32,51,.045)}body.sale-screen .sale-customer-panel{border-right:1px solid #dfe6ef}body.sale-screen .sale-operation-panel{background:#fff}body.sale-screen .sale-vehicle-panel{border-top:1px solid #dfe6ef;background:linear-gradient(105deg,#fff,#fbfcff)}
body.sale-screen .sale-panel-label{gap:14px;margin-bottom:20px}.sale-panel-label>span{width:52px;height:52px;flex-basis:52px;border:1px solid #c9ddff;border-radius:50%;background:linear-gradient(145deg,#f8fbff,#eff6ff);color:#2563eb}.sale-customer-panel .sale-panel-label>span{border:1px solid #ffd2ad;background:linear-gradient(145deg,#fffaf6,#fff2e8);color:#f97316}.sale-panel-label svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sale-panel-label strong{color:#101d35;font-size:1.02rem}.sale-panel-label small{margin-top:6px;color:#526889;font-size:.76rem}
body.sale-screen .sale-step-panel label{color:#13223a;font-size:.76rem;font-weight:700}.sale-customer-field{grid-template-columns:1fr 1fr!important;grid-template-areas:"caption caption" "search search" "button status" "select select"!important;gap:13px 10px!important;font-size:0!important}.sale-customer-field>.customer-search-caption{font-size:.76rem!important;color:#13223a!important;font-weight:700}.sale-customer-field>.customer-search-input{height:49px!important;padding-left:18px!important;font-size:.82rem!important}.sale-customer-field>.sale-quick-customer-btn{width:100%!important;min-width:0!important;height:47px!important;border:1px solid #d9e2ed!important;border-radius:11px!important;background:#fff!important;color:#172033!important;font-size:.75rem!important;font-weight:750!important}.sale-customer-field>.sale-quick-customer-btn:hover{border-color:#93c5fd!important;background:#f8fbff!important}.sale-customer-status{grid-area:status;min-height:47px;display:flex;align-items:center;justify-content:center;padding:8px 12px;border:1px solid #ffd2ad;border-radius:11px;background:#fff7f0;color:#dc3d0b;font-size:.73rem;font-weight:750;text-align:center}.sale-customer-status:before{content:"♙";margin-right:8px;font-size:1rem}.sale-customer-status.identified{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.sale-customer-field>#customerSelect{position:relative;margin-top:30px;height:48px!important;font-size:.78rem!important}.sale-customer-field:after{content:"Cliente selecionado";grid-area:select;align-self:start;margin-top:-3px;color:#13223a;font-size:.76rem;font-weight:700;pointer-events:none}
body.sale-screen .sale-step-panel input,body.sale-screen .sale-step-panel select{height:49px!important;min-height:49px!important;border:1px solid #d6e0eb!important;border-radius:11px!important;padding:10px 14px!important;background:#fff!important;color:#14213d;font-size:.82rem!important}.sale-step-panel input:focus,.sale-step-panel select:focus{border-color:#3b82f6!important;box-shadow:0 0 0 3px rgba(59,130,246,.11)!important}
.sale-operation-fields{grid-template-columns:1fr 1fr;gap:20px 14px}.sale-operation-fields label:first-child{grid-column:1/-1;max-width:52%;padding-bottom:25px;border-bottom:1px solid #e4e9f0}.sale-operation-fields label:first-child input{margin-top:5px}.sale-operation-fields label:not(:first-child){padding-top:0}
.sale-vehicle-panel .sale-panel-label{margin-bottom:20px}.sale-vehicle-fields{grid-template-columns:minmax(180px,.65fr) minmax(300px,1.2fr) minmax(220px,.9fr);align-items:end;gap:24px}.sale-plate-field{position:relative}.sale-plate-field:after{content:"BRASIL";position:absolute;left:1px;right:1px;top:24px;height:17px;display:flex;align-items:center;justify-content:center;border-radius:9px 9px 0 0;background:linear-gradient(180deg,#2563eb,#1748b0);color:#fff;font-size:.48rem;letter-spacing:.12em;pointer-events:none}.sale-vehicle-fields #vehiclePlate{height:64px!important;padding:24px 12px 5px!important;border-color:#b8c6d8!important;border-radius:9px!important;background:#fff!important;color:#0c1628;font-size:1.12rem!important;font-weight:850;letter-spacing:.14em;text-align:center}.sale-vehicle-fields input:not(#vehiclePlate){height:56px!important;font-size:.88rem!important}
@media(max-width:1180px){body.sale-screen .sale-step-one-grid{grid-template-columns:1fr!important;grid-template-areas:"customer" "operation" "vehicle"!important}.sale-operation-fields label:first-child{max-width:none}.sale-vehicle-fields{grid-template-columns:1fr 1.5fr 1fr}}
@media(max-width:760px){body.sale-screen .sale-add-card>.sale-pro-card-head{min-height:86px;padding:20px 17px 16px!important}.sale-step-heading .step-badge{width:42px;height:42px;flex-basis:42px}.sale-step-heading h2{font-size:1.12rem!important}.sale-step-heading p{display:block;font-size:.68rem}body.sale-screen .sale-step-one-grid{padding:15px!important;gap:13px!important}.sale-step-panel{padding:16px!important}.sale-panel-label>span{width:44px;height:44px;flex-basis:44px}.sale-customer-field{grid-template-columns:1fr!important;grid-template-areas:"caption" "search" "button" "status" "select"!important}.sale-operation-fields,.sale-vehicle-fields{grid-template-columns:1fr}.sale-operation-fields label:first-child{grid-column:auto}.sale-customer-field>#customerSelect{margin-top:27px}}

/* Barra 1 usa toda a largura; itens e resumo continuam abaixo */
@media(min-width:1281px){body.sale-screen .sale-pro-grid{display:grid!important;grid-template-columns:minmax(0,1fr) 500px!important;grid-template-areas:"step step" "items sidebar"!important;gap:18px!important;align-items:start!important}body.sale-screen .sale-pro-main{display:contents!important}body.sale-screen .sale-add-card{grid-area:step!important;width:100%!important;max-width:none!important}body.sale-screen .sale-items-workspace{grid-area:items!important;min-width:0!important}body.sale-screen .sale-pro-sidebar{grid-area:sidebar!important;min-width:0!important}body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(430px,1fr) minmax(430px,1fr)!important;gap:24px!important;padding:28px 30px 32px!important}.sale-customer-panel,.sale-operation-panel{min-height:375px}.sale-vehicle-panel{padding-top:24px!important;padding-bottom:25px!important}.sale-vehicle-fields{grid-template-columns:minmax(210px,.62fr) minmax(360px,1.25fr) minmax(260px,.9fr);gap:28px}.sale-operation-fields{gap:24px 18px}}
@media(min-width:1500px){body.sale-screen .sale-step-one-grid{grid-template-columns:1fr 1fr!important;padding-left:36px!important;padding-right:36px!important}.sale-step-panel{padding:25px!important}.sale-customer-field{gap:15px 12px!important}}

/* Correção crítica: barra 1 fora da coluna estreita em notebooks */
@media(min-width:1001px){body.sale-screen .sale-pro-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(350px,390px)!important;grid-template-areas:"step step" "items sidebar"!important;gap:16px!important;align-items:start!important;width:100%!important}body.sale-screen .sale-pro-main{display:contents!important}body.sale-screen .sale-add-card{grid-area:step!important;width:100%!important;max-width:none!important;min-width:0!important}body.sale-screen .sale-items-workspace{grid-area:items!important;min-width:0!important;width:100%!important}body.sale-screen .sale-pro-sidebar{grid-area:sidebar!important;min-width:0!important;width:100%!important}body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"customer operation" "vehicle vehicle"!important;gap:18px!important;padding:22px 24px 25px!important}.sale-customer-panel,.sale-operation-panel{min-width:0!important;min-height:0!important}.sale-customer-field{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.sale-operation-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}.sale-vehicle-fields{grid-template-columns:minmax(160px,.65fr) minmax(230px,1.25fr) minmax(160px,.8fr)!important;gap:16px!important}}
@media(min-width:1001px) and (max-width:1120px){body.sale-screen .sale-pro-grid{grid-template-columns:minmax(0,1fr) 350px!important}body.sale-screen .sale-step-one-grid{padding:18px!important;gap:14px!important}.sale-step-panel{padding:17px!important}.sale-panel-label{margin-bottom:14px!important}.sale-customer-field{grid-template-columns:1fr!important;grid-template-areas:"caption" "search" "button" "status" "select"!important}.sale-operation-fields{grid-template-columns:1fr 1fr!important}.sale-vehicle-fields{grid-template-columns:minmax(150px,.65fr) minmax(210px,1.2fr) minmax(140px,.75fr)!important}}

/* Estrutura definitiva sem depender do zoom/resolução */
body.sale-screen .sale-pro-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(340px,400px)!important;grid-template-rows:auto auto!important;grid-template-areas:"step step" "items sidebar"!important;gap:16px!important;align-items:start!important;width:100%!important;max-width:100%!important}
body.sale-screen .sale-pro-main{display:contents!important}
body.sale-screen .sale-add-card{grid-area:step!important;grid-column:1 / -1!important;grid-row:1!important;width:100%!important;max-width:100%!important;min-width:0!important}
body.sale-screen .sale-items-workspace{grid-area:items!important;grid-column:1!important;grid-row:2!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.sale-screen .sale-pro-sidebar{grid-area:sidebar!important;grid-column:2!important;grid-row:2!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"customer operation" "vehicle vehicle"!important;gap:18px!important;padding:22px 24px 25px!important}
body.sale-screen .sale-customer-panel,body.sale-screen .sale-operation-panel,body.sale-screen .sale-vehicle-panel{min-width:0!important;width:auto!important}
body.sale-screen .sale-customer-field{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
body.sale-screen .sale-operation-fields{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
body.sale-screen .sale-vehicle-fields{grid-template-columns:minmax(160px,.62fr) minmax(230px,1.2fr) minmax(160px,.8fr)!important;gap:16px!important}
@media(max-width:900px){body.sale-screen .sale-pro-grid{grid-template-columns:1fr!important;grid-template-rows:auto auto auto!important;grid-template-areas:"step" "items" "sidebar"!important}body.sale-screen .sale-add-card{grid-column:1!important;grid-row:1!important}body.sale-screen .sale-items-workspace{grid-column:1!important;grid-row:2!important}body.sale-screen .sale-pro-sidebar{grid-column:1!important;grid-row:3!important}body.sale-screen .sale-step-one-grid{grid-template-columns:1fr!important;grid-template-areas:"customer" "operation" "vehicle"!important}.sale-customer-field{grid-template-columns:1fr!important;grid-template-areas:"caption" "search" "button" "status" "select"!important}.sale-operation-fields,.sale-vehicle-fields{grid-template-columns:1fr!important}}

/* Barra 1 — alternativa flat premium, sem cards internos */
body.sale-screen .sale-add-card{border:1px solid #dce5ef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 24px rgba(15,32,51,.065)!important}
body.sale-screen .sale-add-card:before{width:5px;height:auto;right:auto;bottom:0;background:linear-gradient(180deg,#ff9f0a,#2563eb)}
body.sale-screen .sale-add-card>.sale-pro-card-head{padding:16px 20px 13px 24px!important;border-bottom:1px solid #e9eef4;background:#f8fafc!important}
body.sale-screen .sale-step-heading{gap:10px!important}.sale-step-heading .step-badge{width:29px;height:29px;flex-basis:29px;border-radius:9px;font-size:.72rem;box-shadow:none}.sale-step-heading h2{font-size:1rem!important}.sale-step-heading p{font-size:.68rem}
body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(420px,1.35fr) minmax(300px,.65fr)!important;grid-template-areas:"customer operation" "vehicle vehicle"!important;gap:0!important;padding:0 0 0 5px!important}
.sale-step-panel{padding:16px 18px;border:0;border-radius:0;background:#fff;box-shadow:none}.sale-customer-panel{border-right:1px solid #e9eef4}.sale-operation-panel{background:#fcfdff}.sale-vehicle-panel{border-top:1px solid #e9eef4;background:linear-gradient(90deg,#fbfcfe,#f5f8fc)}
.sale-panel-label{gap:8px;margin-bottom:10px}.sale-panel-label>span{width:29px;height:29px;flex-basis:29px;border:0;border-radius:9px;background:#eff6ff;font-size:.82rem;box-shadow:inset 0 0 0 1px rgba(37,99,235,.08)}.sale-customer-panel .sale-panel-label>span{border:0;background:#fff4ed;box-shadow:inset 0 0 0 1px rgba(244,81,30,.08)}.sale-panel-label strong{font-size:.74rem}.sale-panel-label small{font-size:.6rem}
.sale-customer-field{grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto!important;grid-template-areas:"label label label" "caption caption caption" "search select button"!important;gap:5px 8px!important}.sale-customer-field>.sale-quick-customer-btn{min-width:105px!important;height:42px!important;border-color:#dbe5ef!important;background:#fff!important;color:#1d4ed8!important}.sale-customer-field>.sale-quick-customer-btn:hover{border-color:#93c5fd!important;background:#eff6ff!important}
body.sale-screen .sale-step-panel input,body.sale-screen .sale-step-panel select{height:42px!important;min-height:42px!important;border-radius:10px!important;background:#fff!important;font-size:.76rem!important}.sale-operation-fields{grid-template-columns:1fr 1fr;gap:8px}.sale-operation-fields label:first-child{grid-column:1/-1}.sale-vehicle-fields{grid-template-columns:minmax(140px,.55fr) minmax(280px,1.45fr) minmax(140px,.55fr);gap:9px}.sale-vehicle-fields #vehiclePlate{background:#fff!important;border-color:#f5c88a!important}
@media(max-width:1180px){body.sale-screen .sale-step-one-grid{grid-template-columns:1fr!important;grid-template-areas:"customer" "operation" "vehicle"!important}.sale-customer-panel{border-right:0}.sale-operation-panel{border-top:1px solid #e9eef4}.sale-operation-fields{grid-template-columns:repeat(3,1fr)}.sale-operation-fields label:first-child{grid-column:auto}}
@media(max-width:760px){body.sale-screen .sale-step-one-grid{padding-left:5px!important}.sale-step-panel{padding:14px}.sale-customer-field{grid-template-columns:1fr!important;grid-template-areas:"label" "caption" "search" "select" "button"!important}.sale-customer-field>.sale-quick-customer-btn{width:100%!important}.sale-operation-fields,.sale-vehicle-fields{grid-template-columns:1fr}.sale-operation-fields label:first-child{grid-column:auto}}

/* Restauração solicitada: primeiro redesign premium da barra 1 */
body.sale-screen .sale-add-card{padding:0!important;border:1px solid #dfe7f0!important;border-radius:22px!important;background:linear-gradient(145deg,#fff,#fbfdff)!important;box-shadow:0 12px 32px rgba(15,32,51,.075)!important;overflow:hidden}
body.sale-screen .sale-add-card:before{left:0;right:0;top:0;bottom:auto;width:auto;height:4px;background:linear-gradient(90deg,#ff9f0a,#2563eb)}
body.sale-screen .sale-add-card>.sale-pro-card-head{margin:0!important;padding:20px 22px 15px!important;border-bottom:1px solid #edf1f5;background:linear-gradient(90deg,rgba(255,249,237,.8),rgba(239,246,255,.55))!important}
body.sale-screen .sale-step-heading{gap:12px!important}.sale-step-heading .step-badge{width:34px;height:34px;flex-basis:34px;border-radius:11px;font-size:.8rem;box-shadow:0 6px 14px rgba(255,138,0,.20)}.sale-step-heading h2{font-size:1.05rem!important}.sale-step-heading p{font-size:.72rem}
body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(320px,1.2fr) minmax(280px,.8fr)!important;grid-template-areas:"customer operation" "vehicle vehicle"!important;gap:13px!important;padding:16px 18px 18px!important}
body.sale-screen .sale-step-panel{padding:14px;border:1px solid #e5ebf2;border-radius:17px;background:#fff;box-shadow:0 4px 14px rgba(15,32,51,.035)}body.sale-screen .sale-customer-panel{border-right:1px solid #e5ebf2}body.sale-screen .sale-operation-panel{background:#fff}body.sale-screen .sale-vehicle-panel{border-top:1px solid #e5ebf2;background:linear-gradient(135deg,#f9fbff,#f4f8fd)}
body.sale-screen .sale-panel-label{gap:9px;margin-bottom:11px}.sale-panel-label>span{width:34px;height:34px;flex-basis:34px;border:1px solid #dbe7f3;border-radius:11px;background:#eff6ff;font-size:1rem;box-shadow:none}.sale-customer-panel .sale-panel-label>span{border:1px solid #fed7aa;background:#fff4ed}.sale-panel-label strong{font-size:.78rem}.sale-panel-label small{font-size:.64rem}
body.sale-screen .sale-customer-field{grid-template-columns:1fr auto!important;grid-template-areas:"label label" "caption caption" "search button" "select select"!important;gap:6px 8px!important}.sale-customer-field>.sale-quick-customer-btn{min-width:116px!important;height:44px!important;border:1px solid #fed7aa!important;border-radius:12px!important;background:#fff4ed!important;color:#c2410c!important}.sale-customer-field>.sale-quick-customer-btn:hover{background:#ffeadf!important}
body.sale-screen .sale-step-panel input,body.sale-screen .sale-step-panel select{height:44px!important;min-height:44px!important;padding:9px 11px!important;border:1px solid #d7e0ea!important;border-radius:12px!important;background:#fff!important;font-size:.78rem!important}.sale-operation-fields{grid-template-columns:1fr 1fr;gap:9px}.sale-operation-fields label:first-child{grid-column:1/-1}.sale-vehicle-fields{grid-template-columns:minmax(150px,.65fr) minmax(240px,1.35fr) minmax(145px,.6fr);gap:10px}.sale-vehicle-fields #vehiclePlate{background:#fffcf7!important;border-color:#d7e0ea!important}
@media(max-width:1050px){body.sale-screen .sale-step-one-grid{grid-template-columns:1fr!important;grid-template-areas:"customer" "operation" "vehicle"!important}.sale-operation-fields{grid-template-columns:repeat(3,1fr)}.sale-operation-fields label:first-child{grid-column:auto}}
@media(max-width:700px){body.sale-screen .sale-add-card>.sale-pro-card-head{padding:17px 16px 13px!important}.sale-step-heading p{display:none}body.sale-screen .sale-step-one-grid{padding:12px!important;gap:10px!important}.sale-step-panel{padding:12px;border-radius:14px}.sale-customer-field{grid-template-columns:1fr!important;grid-template-areas:"label" "caption" "search" "select" "button"!important}.sale-customer-field>.sale-quick-customer-btn{width:100%!important}.sale-operation-fields,.sale-vehicle-fields{grid-template-columns:1fr}.sale-operation-fields label:first-child{grid-column:auto}}
@media(max-width:1000px){
  body .sidebar-pro{
    width:280px !important;
    transform:translateX(-100%) !important;
  }
  body.sidebar-open .sidebar-pro{
    transform:translateX(0) !important;
  }
  body .main,
  body.sidebar-collapsed .main{
    margin-left:0 !important;
  }
}

/* Sale screen final layout fix */
body.sale-screen .sale-pro-grid{
  display:flex !important;
  gap:16px !important;
  align-items:start !important;
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}
body.sale-screen .sale-pro-main{
  flex:0 1 calc(100% - 416px) !important;
  width:calc(100% - 416px) !important;
  min-width:0 !important;
  max-width:calc(100% - 416px) !important;
  overflow:hidden !important;
}
body.sale-screen .sale-pro-sidebar{
  flex:0 0 400px !important;
  min-width:400px !important;
  width:400px !important;
  max-width:400px !important;
  position:sticky !important;
  top:0 !important;
  align-self:start !important;
}
body.sale-screen .sale-pro-card,
body.sale-screen .sale-resume-panel,
body.sale-screen .sale-items-workspace,
body.sale-screen .sale-work-table{
  width:100% !important;
  max-width:100% !important;
  overflow:hidden !important;
}
body.sale-screen .sale-pro-main > section{
  width:100% !important;
  max-width:100% !important;
}
body.sale-screen .sale-pro-main .sale-pro-fields{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0, 1fr)) !important;
  gap:10px !important;
  align-items:end !important;
}
body.sale-screen .sale-pro-main .sale-pro-fields .span-2{
  grid-column:span 2 !important;
}
body.sale-screen .sale-pro-main .sale-pro-fields label,
body.sale-screen .sale-pro-main .sale-pro-fields input,
body.sale-screen .sale-pro-main .sale-pro-fields select{
  min-width:0 !important;
}
body.sale-screen .sale-pro-service-grid{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 90px auto !important;
  gap:10px !important;
}
body.sale-screen .sale-pro-quick-grid{
  display:grid !important;
  grid-template-columns:repeat(3, minmax(0,1fr)) !important;
  gap:10px !important;
}
body.sale-screen .sale-pro-quick-grid .span-2{
  grid-column:span 2 !important;
}
body.sale-screen .sale-payment-compact{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 150px 120px !important;
  gap:10px !important;
}
body.sale-screen .sale-payment-compact label{
  min-width:0 !important;
}
body.sale-screen .sale-payment-compact label:nth-child(4),
body.sale-screen .sale-payment-compact label:nth-child(5){
  grid-column:1 / -1 !important;
}
body.sale-screen .sale-work-table{
  max-width:100% !important;
  overflow-x:auto !important;
}
body.sale-screen .sale-work-table table{
  min-width:760px !important;
}
body.sale-screen .sale-work-actions{
  align-items:center;
}
@media(max-width:1280px){
  body.sale-screen .sale-pro-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
  }
  body.sale-screen .sale-pro-sidebar{
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    position:static !important;
  }
  body.sale-screen .sale-pro-main{
    max-width:100% !important;
  }
}
@media(max-width:900px){
  body.sale-screen .sale-pro-main .sale-pro-fields,
  body.sale-screen .sale-pro-quick-grid,
  body.sale-screen .sale-payment-compact{
    grid-template-columns:1fr 1fr !important;
  }
  body.sale-screen .sale-pro-main .sale-pro-fields .span-2,
  body.sale-screen .sale-pro-quick-grid .span-2{
    grid-column:1 / -1 !important;
  }
  body.sale-screen .sale-pro-service-grid{
    grid-template-columns:1fr !important;
  }
}
@media(max-width:640px){
  body.sale-screen .sale-pro-main .sale-pro-fields,
  body.sale-screen .sale-pro-quick-grid,
  body.sale-screen .sale-payment-compact{
    grid-template-columns:1fr !important;
  }
}

/* Loja online inicial */
.online-cart-bar{
  position:sticky;
  top:0;
  z-index:40;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 18px;
  background:#fff;
  border-bottom:1px solid var(--line);
  box-shadow:0 8px 22px rgba(15,23,42,.08);
}
.online-cart-bar strong{
  display:block;
  color:#0f172a;
}
.online-cart-bar span{
  display:block;
  color:var(--muted);
  font-size:13px;
  margin-top:2px;
}
.catalog-card-action{
  display:grid;
  gap:8px;
  padding:0 16px 16px;
}
.online-add-btn{
  border-color:var(--primary) !important;
}
.catalog-checkout-grid{
  display:grid;
  grid-template-columns:minmax(0,.85fr) minmax(360px,1.15fr);
  gap:18px;
  align-items:start;
}
.online-checkout-items{
  display:grid;
  gap:10px;
}
.online-checkout-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 78px 110px;
  gap:10px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#f8fafc;
}
.online-checkout-row strong,
.online-checkout-row small{
  display:block;
}
.online-checkout-row small{
  color:var(--muted);
  margin-top:3px;
}
.online-checkout-row input{
  min-width:0;
  text-align:center;
}
.online-checkout-row b{
  text-align:right;
}
.online-checkout-total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line);
}
.online-checkout-total strong{
  font-size:24px;
  color:var(--primary);
}
.online-success-card{
  max-width:980px;
  margin:30px auto;
}
.online-success-card h1{
  font-size:42px;
}
@media(max-width:820px){
  .online-cart-bar{
    align-items:stretch;
    flex-direction:column;
  }
  .catalog-checkout-grid{
    grid-template-columns:1fr;
  }
  .online-checkout-row{
    grid-template-columns:1fr;
  }
  .online-checkout-row b{
    text-align:left;
  }
}

/* Venda no celular: prioriza operacao, itens e depois resumo */
@media(max-width:820px){
  body.sale-screen{
    overflow-x:hidden !important;
  }
  body.sale-screen .content{
    padding:10px !important;
    max-width:100% !important;
    overflow-x:hidden !important;
  }
  body.sale-screen .topbar-pro{
    height:auto !important;
    min-height:54px !important;
    padding:8px 10px !important;
    gap:8px !important;
  }
  body.sale-screen .topbar-title small,
  body.sale-screen .topbar-actions .btn-light:first-child{
    display:none !important;
  }
  body.sale-screen .topbar-actions{
    gap:6px !important;
  }
  body.sale-screen .topbar-actions .btn{
    min-height:34px !important;
    padding:7px 9px !important;
    border-radius:8px !important;
    font-size:12px !important;
  }
  body.sale-screen .sale-pro-page,
  body.sale-screen #saleForm{
    width:100% !important;
    max-width:100% !important;
  }
  body.sale-screen .sale-pro-grid{
    display:flex !important;
    flex-direction:column !important;
    gap:10px !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }
  body.sale-screen .sale-pro-main{
    order:1 !important;
    flex:none !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
    gap:10px !important;
  }
  body.sale-screen .sale-pro-sidebar{
    order:2 !important;
    flex:none !important;
    min-width:0 !important;
    width:100% !important;
    max-width:100% !important;
    position:static !important;
    overflow:visible !important;
  }
  body.sale-screen .sale-pro-card,
  body.sale-screen .sale-resume-panel,
  body.sale-screen .sale-items-workspace{
    width:100% !important;
    max-width:100% !important;
    border-radius:12px !important;
    padding:10px !important;
    overflow:visible !important;
  }
  body.sale-screen .sale-resume-panel{
    padding:0 !important;
  }
  body.sale-screen .sale-pro-card-head{
    align-items:center !important;
    margin-bottom:8px !important;
  }
  body.sale-screen .sale-pro-card-head h2{
    font-size:17px !important;
    line-height:1.15 !important;
  }
  body.sale-screen .sale-pro-main .sale-pro-fields,
  body.sale-screen .sale-pro-quick-grid,
  body.sale-screen .sale-pro-service-grid,
  body.sale-screen .sale-payment-compact{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:9px !important;
  }
  body.sale-screen .sale-pro-main .sale-pro-fields .span-2,
  body.sale-screen .sale-pro-quick-grid .span-2{
    grid-column:1 / -1 !important;
  }
  body.sale-screen .sale-pro-fields input,
  body.sale-screen .sale-pro-fields select,
  body.sale-screen .sale-pro-service-grid input,
  body.sale-screen .sale-pro-service-grid select,
  body.sale-screen .sale-pro-quick-grid input,
  body.sale-screen .sale-pro-quick-grid select,
  body.sale-screen .sale-payment-compact input,
  body.sale-screen .sale-payment-compact select,
  body.sale-screen .sale-payment-compact textarea{
    min-height:42px !important;
    font-size:16px !important;
    border-radius:10px !important;
  }
  body.sale-screen .sale-quick-customer-btn{
    width:100% !important;
    margin-top:6px !important;
  }
  body.sale-screen .sale-pro-tabs{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:6px !important;
  }
  body.sale-screen .sale-pro-tab{
    width:100% !important;
    min-height:42px !important;
    border-radius:10px !important;
  }
  body.sale-screen .sale-pro-search input{
    height:50px !important;
    font-size:16px !important;
  }
  body.sale-screen .sale-search-modern .search-results{
    position:fixed !important;
    left:10px !important;
    right:10px !important;
    top:112px !important;
    max-height:55vh !important;
    z-index:100 !important;
  }
  body.sale-screen .sale-search-item{
    align-items:stretch !important;
    flex-direction:column !important;
  }
  body.sale-screen .sale-work-table{
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }
  body.sale-screen .sale-work-table table{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    border-collapse:separate !important;
  }
  body.sale-screen .sale-work-table thead{
    display:none !important;
  }
  body.sale-screen .sale-work-table tbody{
    display:grid !important;
    gap:10px !important;
    width:100% !important;
  }
  body.sale-screen .sale-work-table tr{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
    width:100% !important;
    padding:10px !important;
    border:1px solid #dce4ee !important;
    border-radius:12px !important;
    background:#fff !important;
  }
  body.sale-screen .sale-work-table td{
    display:grid !important;
    grid-template-columns:84px minmax(0,1fr) !important;
    gap:8px !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
    padding:0 !important;
    border:0 !important;
  }
  body.sale-screen .sale-work-table td::before{
    color:#64748b !important;
    font-size:11px !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
  }
  body.sale-screen .sale-work-table td:nth-child(1)::before{content:"Produto";}
  body.sale-screen .sale-work-table td:nth-child(2)::before{content:"Qtd";}
  body.sale-screen .sale-work-table td:nth-child(3)::before{content:"Valor";}
  body.sale-screen .sale-work-table td:nth-child(4)::before{content:"Desc.";}
  body.sale-screen .sale-work-table td:nth-child(5)::before{content:"Subtotal";}
  body.sale-screen .sale-work-table td:nth-child(6)::before{content:"Remover";}
  body.sale-screen .sale-work-table .sale-item-product{
    grid-template-columns:1fr !important;
    gap:4px !important;
  }
  body.sale-screen .sale-work-table .sale-item-product::before{
    content:"Produto" !important;
  }
  body.sale-screen .sale-work-table .sale-item-product strong,
  body.sale-screen .sale-work-table .sale-item-product small{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    white-space:normal !important;
    overflow:visible !important;
    text-overflow:clip !important;
    line-height:1.25 !important;
  }
  body.sale-screen .sale-work-table .sale-item-product strong{
    font-size:14px !important;
  }
  body.sale-screen .sale-work-table .sale-item-product small{
    color:#64748b !important;
    font-size:12px !important;
    margin-top:2px !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell{
    grid-template-columns:84px 38px minmax(0,1fr) 38px !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell::before{
    content:"Qtd" !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell > button,
  body.sale-screen .sale-work-table .sale-qty-cell > input{
    min-width:0 !important;
    height:38px !important;
    padding:0 !important;
    text-align:center !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell{
    display:grid !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell input{
    width:100% !important;
  }
  body.sale-screen .sale-work-table td input{
    width:100% !important;
    min-width:0 !important;
    height:38px !important;
    font-size:16px !important;
  }
  body.sale-screen .sale-work-table .lineTotal{
    font-size:16px !important;
    font-weight:900 !important;
    color:#071827 !important;
    text-align:left !important;
  }
  body.sale-screen .sale-work-table .sale-item-remove{
    position:static !important;
    display:grid !important;
    grid-template-columns:84px minmax(0,1fr) !important;
  }
  body.sale-screen .sale-work-table .sale-item-remove::before{
    content:"Remover" !important;
  }
  body.sale-screen .sale-work-table .sale-remove-btn{
    width:100% !important;
    min-height:38px !important;
    border-radius:9px !important;
  }
  body.sale-screen .sale-work-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
  body.sale-screen .sale-work-actions .btn:nth-last-child(-n+2){
    display:none !important;
  }
  body.sale-screen .sale-summary-list{
    margin:10px !important;
  }
  body.sale-screen .sale-pro-summary{
    margin:10px !important;
    border-radius:10px !important;
  }
  body.sale-screen .sale-action-buttons{
    padding:0 10px 10px !important;
  }
  body.sale-screen .sale-action-buttons .btn-light{
    display:inline-flex !important;
  }
  body.sale-screen .sale-final-btn{
    min-height:50px !important;
  }
}

/* Refinamento mobile: card de item mais baixo e pronto para uso no balcão */
@media(max-width:820px){
  html:has(body.sale-screen),
  body.sale-screen{
    overscroll-behavior-y:contain;
  }
  body.sale-screen .sale-items-workspace{
    padding:8px !important;
  }
  body.sale-screen .sale-items-workspace .sale-pro-card-head{
    margin-bottom:6px !important;
  }
  body.sale-screen .sale-items-workspace .sale-pro-card-head h2{
    font-size:15px !important;
  }
  body.sale-screen .step-badge{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    border-radius:6px !important;
    font-size:11px !important;
  }
  body.sale-screen .sale-pro-tabs{
    gap:5px !important;
    margin-bottom:7px !important;
  }
  body.sale-screen .sale-pro-tab{
    min-height:34px !important;
    padding:6px 10px !important;
    font-size:11px !important;
  }
  body.sale-screen .sale-pro-search input{
    height:42px !important;
    min-height:42px !important;
    padding:8px 10px !important;
    font-size:14px !important;
  }
  body.sale-screen .sale-pro-helper-row{
    display:none !important;
  }
  body.sale-screen .sale-work-table{
    margin-top:8px !important;
  }
  body.sale-screen .sale-work-table tbody{
    gap:8px !important;
  }
  body.sale-screen .sale-work-table tr{
    gap:6px !important;
    padding:8px !important;
    border-radius:10px !important;
  }
  body.sale-screen .sale-work-table td{
    grid-template-columns:58px minmax(0,1fr) !important;
    gap:6px !important;
  }
  body.sale-screen .sale-work-table td::before{
    font-size:9px !important;
  }
  body.sale-screen .sale-work-table .sale-item-product{
    display:block !important;
  }
  body.sale-screen .sale-work-table .sale-item-product::before{
    display:block !important;
    margin-bottom:3px !important;
    color:#64748b !important;
    font-size:9px !important;
    font-weight:900 !important;
    text-transform:uppercase !important;
  }
  body.sale-screen .sale-work-table .sale-item-product strong{
    font-size:12px !important;
    line-height:1.15 !important;
  }
  body.sale-screen .sale-work-table .sale-item-product small{
    font-size:10px !important;
    line-height:1.15 !important;
    margin-top:1px !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell{
    grid-template-columns:58px 30px minmax(0,1fr) 30px !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell > button,
  body.sale-screen .sale-work-table .sale-qty-cell > input,
  body.sale-screen .sale-work-table td input{
    height:30px !important;
    min-height:30px !important;
    border-radius:7px !important;
    font-size:13px !important;
  }
  body.sale-screen .sale-work-table .lineTotal{
    font-size:13px !important;
  }
  body.sale-screen .sale-work-table .sale-item-remove{
    grid-template-columns:58px minmax(0,1fr) !important;
  }
  body.sale-screen .sale-work-table .sale-remove-btn{
    min-height:32px !important;
    height:32px !important;
    font-size:15px !important;
  }
  body.sale-screen .sale-work-actions{
    gap:6px !important;
    margin-top:8px !important;
  }
  body.sale-screen .sale-work-actions .btn{
    min-height:34px !important;
    padding:7px 10px !important;
    font-size:12px !important;
  }
}

/* PDV UX polish: table widths, actions, empty state and payment layout */
body.sale-screen{
  overflow-x:hidden;
}
body.sale-screen :focus-visible{
  outline:3px solid rgba(245,178,27,.55);
  outline-offset:2px;
}
body.sale-screen .sale-pro-sidebar{
  top:76px !important;
}
body.sale-screen .sale-work-table{
  overflow:hidden !important;
  background:#fff;
}
body.sale-screen .sale-empty-state{
  display:grid;
  gap:4px;
  place-items:center;
  min-height:118px;
  padding:22px;
  color:#475569;
  text-align:center;
  border-bottom:1px solid #e2e8f0;
}
body.sale-screen .sale-empty-state strong{
  color:#0f172a;
  font-size:16px;
}
body.sale-screen .sale-empty-state span{
  color:#64748b;
  font-size:13px;
}
body.sale-screen .sale-empty-state[hidden]{
  display:none !important;
}
body.sale-screen .sale-work-table table{
  width:100% !important;
  min-width:0 !important;
  table-layout:fixed !important;
}
body.sale-screen .sale-work-table .sale-col-product{width:auto}
body.sale-screen .sale-work-table .sale-col-qty{width:74px}
body.sale-screen .sale-work-table .sale-col-unit{width:116px}
body.sale-screen .sale-work-table .sale-col-discount{width:96px}
body.sale-screen .sale-work-table .sale-col-subtotal{width:112px}
body.sale-screen .sale-work-table .sale-col-remove{width:48px}
body.sale-screen .sale-work-table th,
body.sale-screen .sale-work-table td{
  padding:9px 8px !important;
  min-width:0 !important;
}
body.sale-screen .sale-work-table th:last-child,
body.sale-screen .sale-work-table td:last-child{
  text-align:center !important;
  padding-right:8px !important;
}
body.sale-screen .sale-work-table .sale-item-product{
  min-width:0 !important;
}
body.sale-screen .sale-work-table .sale-item-product strong{
  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  line-height:1.2;
  white-space:normal !important;
}
body.sale-screen .sale-work-table .sale-item-product small,
body.sale-screen .sale-work-table .sale-item-note{
  display:block !important;
  overflow:hidden !important;
  white-space:nowrap !important;
  text-overflow:ellipsis !important;
}
body.sale-screen .sale-work-table .sale-item-note{
  margin-top:3px;
  color:#8a5a00;
  font-size:12px;
}
body.sale-screen .sale-work-table .sale-qty-cell{
  width:100% !important;
  gap:2px !important;
  padding:2px 3px !important;
}
body.sale-screen .sale-work-table .sale-qty-cell button{
  width:20px;
  min-width:20px;
  min-height:28px;
  border-radius:7px;
}
body.sale-screen .sale-work-table .sale-qty-cell button:hover{
  background:#eef2f7;
}
body.sale-screen .sale-work-table .sale-qty-cell input,
body.sale-screen .sale-work-table .unit,
body.sale-screen .sale-work-table .disc{
  width:100% !important;
  min-width:0 !important;
  max-width:none !important;
  height:32px !important;
  border:1px solid #dbe4ee !important;
  border-radius:8px !important;
  background:#fff !important;
  padding:4px 6px !important;
  text-align:center !important;
}
body.sale-screen .sale-work-table .lineTotal{
  overflow:hidden;
  text-overflow:ellipsis;
}
body.sale-screen .sale-work-table .sale-item-remove{
  width:48px !important;
  padding-left:4px !important;
  padding-right:4px !important;
}
body.sale-screen .sale-work-table .sale-remove-btn{
  width:34px !important;
  height:34px !important;
  min-height:34px !important;
  border-radius:9px !important;
  padding:0 !important;
}
body.sale-screen .sale-work-table .sale-remove-btn svg{
  width:17px;
  height:17px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body.sale-screen .sale-work-table tbody tr.sale-row-selected{
  background:#fff8e7 !important;
  box-shadow:inset 3px 0 0 var(--accent);
}
body.sale-screen .sale-work-table tbody tr.sale-row-added-flash{
  animation:saleRowAddedFlash .9s ease-out;
}
@keyframes saleRowAddedFlash{
  0%{background:#dcfce7 !important;}
  100%{background:transparent;}
}
body.sale-screen .sale-work-actions{
  justify-content:flex-start !important;
  align-items:center;
}
body.sale-screen .sale-more-actions{
  position:relative;
  margin-left:auto;
}
body.sale-screen .sale-more-menu{
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  z-index:30;
  min-width:230px;
  display:none;
  padding:6px;
  background:#fff;
  border:1px solid #dbe4ee;
  border-radius:12px;
  box-shadow:0 18px 38px rgba(15,23,42,.16);
}
body.sale-screen .sale-more-menu.open{
  display:grid;
  gap:4px;
}
body.sale-screen .sale-menu-item{
  width:100%;
  border:0;
  background:#fff;
  color:#334155;
  border-radius:9px;
  padding:10px 12px;
  text-align:left;
  font-weight:800;
  cursor:pointer;
}
body.sale-screen .sale-menu-item:hover,
body.sale-screen .sale-menu-item:focus-visible{
  background:#f1f5f9;
}
body.sale-screen .sale-menu-item.danger{
  color:#b42318;
}
body.sale-screen .sale-menu-item.danger:hover,
body.sale-screen .sale-menu-item.danger:focus-visible{
  background:#fef3f2;
}
body.sale-screen button:disabled,
body.sale-screen button[aria-disabled="true"]{
  cursor:not-allowed !important;
  opacity:.55;
  filter:grayscale(.18);
}
body.sale-screen .sale-final-btn:disabled{
  background:#cbd5e1 !important;
  border-color:#cbd5e1 !important;
  color:#475569 !important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary{
  background:#071827 !important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary div:nth-child(1) strong,
body.sale-screen .sale-resume-panel .sale-pro-summary div:nth-child(2) strong{
  font-size:20px !important;
  font-weight:800 !important;
  color:#dbeafe !important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary div:last-child{
  padding-top:8px !important;
  border-top:1px solid rgba(255,255,255,.16) !important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary div:last-child span{
  font-size:18px !important;
  font-weight:900 !important;
}
body.sale-screen .sale-resume-panel .sale-pro-summary div:last-child strong{
  font-size:34px !important;
  font-weight:900 !important;
}
body.sale-screen .sale-payment-compact{
  grid-template-columns:minmax(150px,1.15fr) minmax(132px,.8fr) minmax(120px,.75fr) !important;
  align-items:end !important;
}
body.sale-screen .sale-payment-compact select,
body.sale-screen .sale-payment-compact input,
body.sale-screen .sale-payment-compact textarea{
  min-height:40px !important;
  height:auto !important;
}
body.sale-screen .sale-payment-compact select{
  min-width:140px !important;
}
body.sale-screen .sale-payment-compact label:nth-child(4){
  grid-column:1 / -1 !important;
}
body.sale-screen .sale-payment-compact label:nth-child(5){
  grid-column:1 / -1 !important;
}
@media(max-width:1280px){
  body.sale-screen .sale-pro-sidebar{
    position:static !important;
    top:auto !important;
  }
}
@media(max-width:900px){
  body.sale-screen .sale-work-table{
    overflow:visible !important;
  }
  body.sale-screen .sale-work-table table{
    display:block !important;
  }
  body.sale-screen .sale-work-table colgroup{
    display:none !important;
  }
  body.sale-screen .sale-more-actions{
    width:100%;
    margin-left:0;
  }
  body.sale-screen .sale-more-toggle{
    width:100%;
  }
  body.sale-screen .sale-more-menu{
    left:0;
    right:auto;
    width:100%;
  }
}
@media(max-width:640px){
  body.sale-screen .sale-payment-compact{
    grid-template-columns:1fr !important;
  }
}

/* Correção desktop PDV: impede que regras mobile vazem para telas largas */
@media(min-width:1181px){
  body.sale-screen .sale-pro-grid{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    gap:16px !important;
    width:100% !important;
    max-width:100% !important;
    overflow:visible !important;
  }
  body.sale-screen .sale-pro-main{
    order:1 !important;
    flex:1 1 0 !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
    overflow:visible !important;
  }
  body.sale-screen .sale-pro-sidebar{
    order:2 !important;
    flex:0 0 400px !important;
    width:400px !important;
    min-width:400px !important;
    max-width:400px !important;
    position:sticky !important;
    top:0 !important;
    align-self:flex-start !important;
  }
  body.sale-screen .sale-pro-card,
  body.sale-screen .sale-resume-panel,
  body.sale-screen .sale-items-workspace{
    overflow:visible !important;
  }
  body.sale-screen .sale-work-table{
    overflow:hidden !important;
  }
  body.sale-screen .sale-work-table table{
    display:table !important;
    width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
    border-collapse:collapse !important;
  }
  body.sale-screen .sale-work-table colgroup{
    display:table-column-group !important;
  }
  body.sale-screen .sale-work-table thead{
    display:table-header-group !important;
  }
  body.sale-screen .sale-work-table tbody{
    display:table-row-group !important;
  }
  body.sale-screen .sale-work-table tr{
    display:table-row !important;
    width:auto !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    box-shadow:none !important;
  }
  body.sale-screen .sale-work-table th,
  body.sale-screen .sale-work-table td{
    display:table-cell !important;
    width:auto !important;
    padding:9px 8px !important;
    border-bottom:1px solid #e6edf5 !important;
    vertical-align:middle !important;
  }
  body.sale-screen .sale-work-table td::before,
  body.sale-screen .sale-work-table .sale-item-product::before,
  body.sale-screen .sale-work-table .sale-qty-cell::before,
  body.sale-screen .sale-work-table .sale-item-remove::before{
    content:none !important;
    display:none !important;
  }
  body.sale-screen .sale-work-table .sale-item-product{
    display:table-cell !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell{
    display:inline-flex !important;
    grid-template-columns:none !important;
    width:100% !important;
  }
  body.sale-screen .sale-work-table .sale-item-remove{
    display:table-cell !important;
    width:48px !important;
    text-align:center !important;
  }
  body.sale-screen .sale-work-actions{
    display:flex !important;
    grid-template-columns:none !important;
    justify-content:flex-start !important;
  }
  body.sale-screen .sale-work-actions .btn:nth-last-child(-n+2){
    display:inline-flex !important;
  }
  body.sale-screen .sale-more-actions{
    width:auto !important;
    margin-left:auto !important;
  }
  body.sale-screen .sale-payment-compact{
    display:grid !important;
    grid-template-columns:minmax(150px,1.15fr) minmax(132px,.8fr) minmax(120px,.75fr) !important;
  }
}

/* PDV: tabela em modo desktop/tablet; cards apenas no mobile real */
@media(min-width:821px){
  body.sale-screen .sale-work-table{
    overflow:hidden !important;
  }
  body.sale-screen .sale-work-table table{
    display:table !important;
    width:100% !important;
    min-width:0 !important;
    table-layout:fixed !important;
    border-collapse:collapse !important;
  }
  body.sale-screen .sale-work-table colgroup{
    display:table-column-group !important;
  }
  body.sale-screen .sale-work-table thead{
    display:table-header-group !important;
  }
  body.sale-screen .sale-work-table tbody{
    display:table-row-group !important;
  }
  body.sale-screen .sale-work-table tr{
    display:table-row !important;
    width:auto !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
  }
  body.sale-screen .sale-work-table th,
  body.sale-screen .sale-work-table td{
    display:table-cell !important;
    grid-template-columns:none !important;
    width:auto !important;
    padding:9px 8px !important;
    border-bottom:1px solid #e6edf5 !important;
    vertical-align:middle !important;
  }
  body.sale-screen .sale-work-table td::before,
  body.sale-screen .sale-work-table .sale-item-product::before,
  body.sale-screen .sale-work-table .sale-qty-cell::before,
  body.sale-screen .sale-work-table .sale-item-remove::before{
    content:none !important;
    display:none !important;
  }
  body.sale-screen .sale-work-table .sale-item-product{
    display:table-cell !important;
    min-width:0 !important;
  }
  body.sale-screen .sale-work-table .sale-qty-cell{
    display:inline-flex !important;
    grid-template-columns:none !important;
    align-items:center !important;
    justify-content:center !important;
    width:100% !important;
  }
  body.sale-screen .sale-work-table .sale-item-remove{
    display:table-cell !important;
    width:48px !important;
    text-align:center !important;
  }
  body.sale-screen .sale-work-actions{
    display:flex !important;
    grid-template-columns:none !important;
    justify-content:flex-start !important;
    align-items:center !important;
  }
  body.sale-screen .sale-work-actions .btn:nth-last-child(-n+2){
    display:inline-flex !important;
  }
  body.sale-screen .sale-more-actions{
    width:auto !important;
    margin-left:auto !important;
  }
}

@media(min-width:1001px){
  body.sale-screen .sale-pro-grid{
    display:flex !important;
    flex-direction:row !important;
    align-items:flex-start !important;
    gap:16px !important;
    width:100% !important;
    max-width:100% !important;
  }
  body.sale-screen .sale-pro-main{
    order:1 !important;
    flex:1 1 auto !important;
    width:auto !important;
    min-width:0 !important;
    max-width:none !important;
  }
  body.sale-screen .sale-pro-sidebar{
    order:2 !important;
    flex:0 0 390px !important;
    width:390px !important;
    min-width:390px !important;
    max-width:390px !important;
    position:sticky !important;
    top:76px !important;
    align-self:flex-start !important;
  }
}

/* Ajuste final do PDV em janelas estreitas: mantém todo o resumo visível. */
body.sale-screen .sale-payment-compact{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
}
body.sale-screen .sale-payment-compact label,
body.sale-screen .sale-payment-compact select,
body.sale-screen .sale-payment-compact input,
body.sale-screen .sale-payment-compact textarea{
  min-width:0 !important;
}
body.sale-screen .sale-payment-compact label:nth-child(3){
  grid-column:1 / -1 !important;
}
body.sale-screen .sale-resume-panel .sale-pro-card-head{
  flex-wrap:wrap;
}
body.sale-screen .sale-wait-inline{
  margin-left:auto;
}
@media(min-width:1001px){
  body.sale-screen .sale-pro-main{flex:1 1 0 !important;}
  body.sale-screen .sale-pro-sidebar{top:0 !important;margin-top:0 !important;}
}
@media(max-width:1000px){
  body.sale-screen .sale-pro-grid{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) !important;
  }
  body.sale-screen .sale-pro-main,
  body.sale-screen .sale-pro-sidebar{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
  }
  body.sale-screen .sale-pro-sidebar{
    position:static !important;
  }
}

/* ULTIMA REGRA: estrutura estavel da venda em desktop e mobile. */
body.sale-screen .sale-pro-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(340px,400px)!important;grid-template-rows:auto auto!important;grid-template-areas:"full-step full-step" "work summary"!important;gap:16px!important;align-items:start!important;width:100%!important;max-width:100%!important;overflow:visible!important}
body.sale-screen .sale-pro-main{display:contents!important}
body.sale-screen .sale-add-card{grid-area:full-step!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.sale-screen .sale-items-workspace{grid-area:work!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.sale-screen .sale-pro-sidebar{grid-area:summary!important;position:sticky!important;top:0!important;width:100%!important;min-width:0!important;max-width:100%!important;align-self:start!important}
body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"customer operation" "vehicle vehicle"!important}
body.sale-screen .sale-customer-panel,body.sale-screen .sale-operation-panel,body.sale-screen .sale-vehicle-panel{width:auto!important;min-width:0!important}
@media(max-width:900px){body.sale-screen .sale-pro-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;grid-template-areas:"full-step" "work" "summary"!important}body.sale-screen .sale-pro-sidebar{position:static!important}body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"customer" "operation" "vehicle"!important}}

/* Aproveitamento integral da etapa 1: neutraliza a grade generica de formularios. */
body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{
  width:100% !important;
  max-width:none !important;
  box-sizing:border-box !important;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr) !important;
  grid-template-areas:"customer operation" "vehicle vehicle" !important;
  gap:20px !important;
  padding:22px 24px 26px !important;
  align-items:stretch !important;
}
body.sale-screen .sale-add-card>.sale-pro-card-head{
  min-height:88px !important;
  padding:22px 28px 18px !important;
}
body.sale-screen .sale-step-one-grid>.sale-step-panel{
  width:100% !important;
  max-width:none !important;
  min-width:0 !important;
  box-sizing:border-box !important;
}
body.sale-screen .sale-customer-field{
  grid-template-columns:minmax(0,1fr) minmax(150px,.72fr) !important;
}
body.sale-screen .sale-operation-fields{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
}
body.sale-screen .sale-operation-fields label:first-child{
  max-width:none !important;
}
body.sale-screen .sale-vehicle-fields{
  grid-template-columns:minmax(180px,.62fr) minmax(280px,1.25fr) minmax(180px,.72fr) !important;
  gap:20px !important;
}
@media(max-width:900px){
  body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{
    grid-template-columns:minmax(0,1fr) !important;
    grid-template-areas:"customer" "operation" "vehicle" !important;
    padding:16px !important;
    gap:14px !important;
  }
  body.sale-screen .sale-customer-field,
  body.sale-screen .sale-operation-fields,
  body.sale-screen .sale-vehicle-fields{grid-template-columns:minmax(0,1fr) !important;}
}

/* COMPACTACAO FINAL DA ETAPA 1 - manter no fim do arquivo. */
body.sale-screen .sale-add-card>.sale-pro-card-head{min-height:68px!important;padding:16px 28px 13px!important}
body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{gap:14px!important;padding:14px 24px 18px!important}
body.sale-screen .sale-step-one-grid>.sale-step-panel{padding:14px 16px!important;border-radius:15px!important}
body.sale-screen .sale-step-one-grid .sale-panel-label{margin-bottom:11px!important;gap:10px!important}
body.sale-screen .sale-step-one-grid .sale-panel-label>span{width:36px!important;height:36px!important;flex-basis:36px!important}
body.sale-screen .sale-step-one-grid .sale-panel-label svg{width:19px!important;height:19px!important}
body.sale-screen .sale-customer-field{grid-template-columns:minmax(0,1fr) minmax(150px,.72fr)!important;grid-template-areas:"caption caption" "search button" "select status"!important;gap:7px 10px!important}
body.sale-screen .sale-customer-field>#customerSelect{margin-top:20px!important}
body.sale-screen .sale-customer-field:after{margin-top:-2px!important}
body.sale-screen .sale-customer-status{margin-top:20px!important;min-height:44px!important}
body.sale-screen .sale-operation-fields{grid-template-columns:minmax(150px,1.1fr) minmax(140px,1fr) minmax(140px,1fr)!important;gap:10px!important;align-items:end!important}
body.sale-screen .sale-operation-fields label:first-child{grid-column:auto!important;padding-bottom:0!important;border-bottom:0!important}
body.sale-screen .sale-step-panel input,body.sale-screen .sale-step-panel select{height:44px!important;min-height:44px!important}
body.sale-screen .sale-vehicle-panel .sale-panel-label{margin-bottom:10px!important}
body.sale-screen .sale-vehicle-fields #vehiclePlate{height:56px!important}
body.sale-screen .sale-vehicle-fields input:not(#vehiclePlate){height:48px!important}
@media(max-width:900px){body.sale-screen .sale-customer-field{grid-template-areas:"caption" "search" "button" "select" "status"!important}body.sale-screen .sale-customer-field>#customerSelect,body.sale-screen .sale-customer-status{margin-top:20px!important}body.sale-screen .sale-operation-fields{grid-template-columns:minmax(0,1fr)!important}}

/* Compactacao moderada adicional aprovada. */
body.sale-screen .sale-add-card>.sale-pro-card-head{
  min-height:58px !important;
  padding:12px 24px 10px !important;
}
body.sale-screen .sale-step-heading .step-badge{
  width:30px !important;
  height:30px !important;
  flex-basis:30px !important;
}
body.sale-screen .sale-step-heading h2{font-size:.96rem !important;}
body.sale-screen .sale-step-heading p{font-size:.66rem !important;}
body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{
  gap:11px !important;
  padding:11px 20px 14px !important;
}
body.sale-screen .sale-step-one-grid>.sale-step-panel{
  padding:11px 13px !important;
  border-radius:13px !important;
}
body.sale-screen .sale-step-one-grid .sale-panel-label{
  margin-bottom:8px !important;
  gap:8px !important;
}
body.sale-screen .sale-step-one-grid .sale-panel-label>span{
  width:31px !important;
  height:31px !important;
  flex-basis:31px !important;
  border-radius:10px !important;
}
body.sale-screen .sale-step-one-grid .sale-panel-label svg{
  width:17px !important;
  height:17px !important;
}
body.sale-screen .sale-panel-label strong{font-size:.73rem !important;}
body.sale-screen .sale-panel-label small{margin-top:2px !important;font-size:.58rem !important;}
body.sale-screen .sale-customer-field{gap:5px 8px !important;}
body.sale-screen .sale-customer-field>#customerSelect,
body.sale-screen .sale-customer-status{margin-top:17px !important;}
body.sale-screen .sale-customer-status{
  min-height:40px !important;
  padding:5px 9px !important;
  font-size:.66rem !important;
}
body.sale-screen .sale-step-panel input,
body.sale-screen .sale-step-panel select,
body.sale-screen .sale-customer-field>.sale-quick-customer-btn{
  height:40px !important;
  min-height:40px !important;
}
body.sale-screen .sale-operation-fields{gap:8px !important;}
body.sale-screen .sale-vehicle-panel .sale-panel-label{margin-bottom:7px !important;}
body.sale-screen .sale-vehicle-fields{gap:14px !important;}
body.sale-screen .sale-vehicle-fields #vehiclePlate{height:50px !important;}
body.sale-screen .sale-vehicle-fields input:not(#vehiclePlate){height:42px !important;}
body.sale-screen .sale-plate-field:after{top:24px !important;height:14px !important;}
@media(max-width:900px){
  body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{padding:12px !important;gap:10px !important;}
  body.sale-screen .sale-customer-field>#customerSelect,
  body.sale-screen .sale-customer-status{margin-top:17px !important;}
}

/* Cabecalho premium do ERP */
.topbar.topbar-pro{height:72px;padding:0 22px;gap:18px;border-bottom:1px solid #dfe7f0;background:rgba(255,255,255,.94);box-shadow:0 4px 18px rgba(15,32,51,.045);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.topbar-company{display:flex;align-items:center;gap:11px;min-width:0}.topbar-company-mark{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border:1px solid #fed7aa;border-radius:12px;background:linear-gradient(145deg,#fff8ef,#fff1df);color:#f97316;box-shadow:0 5px 12px rgba(249,115,22,.10)}.topbar-company-mark svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.topbar-title{min-width:0}.topbar-title strong{display:block;max-width:390px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#101d35;font-size:.84rem;line-height:1.25;letter-spacing:.005em}.topbar-title small{display:flex;gap:5px;align-items:center;margin-top:3px;color:#718096;font-size:.62rem}.topbar-title small span{color:#f97316}
.topbar-context{display:flex;align-items:center;gap:8px;margin-left:auto}.topbar-status,.topbar-date{height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;color:#526176;font-size:.67rem;font-weight:700;white-space:nowrap}.topbar-status i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}.topbar-date svg{width:15px;height:15px;fill:none;stroke:#64748b;stroke-width:1.8;stroke-linecap:round}.topbar-date b{color:#172033}
.topbar-actions{gap:9px}.topbar-user{height:42px;display:flex;align-items:center;gap:8px;padding:4px 10px 4px 5px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;text-decoration:none;transition:.18s}.topbar-user:hover{border-color:#93c5fd;background:#f8fbff;box-shadow:0 6px 14px rgba(37,99,235,.09);transform:translateY(-1px)}.topbar-avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:linear-gradient(145deg,#10243a,#071827);color:#fff;font-size:.72rem;font-weight:900}.topbar-user>span:last-child{display:flex;flex-direction:column;min-width:0}.topbar-user strong{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033;font-size:.68rem}.topbar-user small{margin-top:2px;color:#7b8b9d;font-size:.56rem}
.topbar-new-sale.btn{height:42px;min-height:42px;padding:0 15px;border:1px solid #071827;border-radius:12px;background:#071827;color:#fff;font-size:.75rem;box-shadow:0 7px 16px rgba(7,24,39,.14);transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.topbar-new-sale.btn span{font-size:1rem;line-height:1}.topbar-new-sale.btn:hover{filter:none;transform:translateY(-1px);background:#102b43;box-shadow:0 10px 20px rgba(7,24,39,.20)}.topbar-logout{width:42px;height:42px;display:grid;place-items:center;border:1px solid #dbe4ee;border-radius:12px;background:#fff;color:#526176;transition:.18s}.topbar-logout svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.topbar-logout:hover{border-color:#fecaca;background:#fff5f5;color:#dc2626;transform:translateY(-1px)}
@media(max-width:1260px){.topbar-status{display:none}.topbar-title strong{max-width:260px}.topbar-user strong{max-width:80px}}
@media(max-width:1080px){.topbar-context{display:none}.topbar-title strong{max-width:330px}.topbar-actions{margin-left:auto}}
@media(max-width:720px){.topbar.topbar-pro{height:62px;padding:0 12px;gap:9px}.topbar-company-mark{display:none}.topbar-title strong{max-width:210px;font-size:.75rem}.topbar-title small{display:none}.topbar-user{display:none}.topbar-new-sale.btn{height:38px;min-height:38px;padding:0 11px}.topbar-logout{width:38px;height:38px}}
@media(max-width:470px){.topbar-title strong{max-width:125px}.topbar-new-sale.btn{font-size:0}.topbar-new-sale.btn span{font-size:1.1rem}.topbar-logout{display:none}}

/* Dados de veiculo opcionais e recolhiveis na venda */
body.sale-screen .sale-vehicle-panel .sale-panel-label{display:flex;align-items:center}
.sale-vehicle-toggle{height:34px;display:inline-flex;align-items:center;gap:7px;margin-left:auto;padding:0 11px;border:1px solid #d8e3ef;border-radius:10px;background:#fff;color:#33506f;font-size:.66rem;font-weight:800;cursor:pointer;transition:.18s}.sale-vehicle-toggle:hover{border-color:#93c5fd;background:#f6faff;color:#1d4ed8;transform:translateY(-1px)}.sale-vehicle-toggle i{font-style:normal;font-size:.9rem;line-height:1}.sale-vehicle-panel .sale-vehicle-fields{overflow:hidden;opacity:1;max-height:110px;transition:max-height .24s ease,opacity .18s ease,margin .24s ease}.sale-vehicle-panel.is-collapsed{padding-bottom:10px!important}.sale-vehicle-panel.is-collapsed .sale-panel-label{margin-bottom:0!important}.sale-vehicle-panel.is-collapsed .sale-vehicle-fields{max-height:0;opacity:0;margin:0!important;pointer-events:none}.sale-vehicle-panel.is-collapsed .sale-vehicle-toggle{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
@media(max-width:520px){.sale-vehicle-toggle-label{display:none}.sale-vehicle-toggle{width:34px;padding:0;justify-content:center}}

/* Etapa 2 premium inspirada na referencia, adaptada ao ERP */
body.sale-screen .sale-items-workspace{border:1px solid #dfe7f0!important;border-radius:18px!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,32,51,.07)!important;overflow:visible!important}
body.sale-screen .sale-items-premium-head{min-height:78px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;margin:0!important;padding:14px 16px!important;border-bottom:1px solid #e8edf4!important;background:linear-gradient(105deg,#fff,#fbfdff)!important}
.sale-items-title{display:flex;align-items:center;gap:11px}.sale-items-title .step-badge{width:34px!important;height:34px!important;flex:0 0 34px!important;border-radius:10px!important;background:linear-gradient(145deg,#2f80ff,#1767df)!important;color:#fff!important;box-shadow:0 6px 13px rgba(37,99,235,.22)!important}.sale-items-title h2{margin:0!important;color:#101d35;font-size:1.02rem!important}.sale-items-title p{display:block!important;margin:3px 0 0!important;color:#718096!important;font-size:.62rem!important}
.sale-items-head-summary{min-width:230px;height:52px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 10px;border:1px solid #e2e8f0;border-radius:12px;background:#fbfdff}.sale-items-cart-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#edf5ff;color:#2563eb;font-size:1.1rem}.sale-items-head-summary>span:nth-child(2){display:flex;flex-direction:column}.sale-items-head-summary strong{color:#213047;font-size:.66rem}.sale-items-head-summary small{margin-top:2px;color:#7b8b9d;font-size:.56rem}.sale-items-head-summary>b{color:#2563eb;font-size:1.25rem}
body.sale-screen .sale-pro-tabs{display:flex!important;gap:7px!important;margin:0!important;padding:12px 16px 10px!important;border-bottom:1px solid #e8edf4!important;background:#fff!important}.sale-pro-tab{position:relative!important;height:36px!important;padding:0 14px!important;border:1px solid #e2e8f0!important;border-radius:11px!important;background:#f8fafc!important;color:#526176!important;font-size:.68rem!important;font-weight:800!important;transition:.18s!important}.sale-pro-tab:hover{border-color:#bfdbfe!important;background:#f2f7ff!important;color:#1d4ed8!important;transform:translateY(-1px)}.sale-pro-tab.active{border-color:#071827!important;background:#071827!important;color:#fff!important;box-shadow:0 6px 13px rgba(7,24,39,.14)!important}.sale-pro-tab.active:after{content:"";position:absolute;left:8px;right:8px;bottom:-11px;height:3px;border-radius:3px;background:#2f80ff}
body.sale-screen .sale-pro-panel{padding:12px 16px 0!important}.sale-pro-search-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) 142px!important;gap:10px!important;align-items:center!important}.sale-search-modern input{height:44px!important;border:1px solid #cfdae8!important;border-radius:11px!important;padding:0 14px 0 40px!important;background:#fff!important;font-size:.72rem!important;box-shadow:none!important}.sale-search-modern:before{left:14px!important;color:#526176!important}.sale-new-product-btn{height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #fdba74;border-radius:11px;background:#fffaf4;color:#ea580c;font-size:.68rem;font-weight:850;cursor:pointer;transition:.18s}.sale-new-product-btn span{font-size:1rem}.sale-new-product-btn:hover{background:#fff1e6;border-color:#fb923c;transform:translateY(-1px)}.sale-pro-helper-row{display:none!important}
body.sale-screen .sale-work-table{margin:12px 16px 0!important;width:calc(100% - 32px)!important;border:1px solid #e4eaf2!important;border-radius:12px!important;background:#fff!important;overflow:auto!important}.sale-work-table table{min-width:690px!important}.sale-work-table thead th{height:38px!important;padding:8px 10px!important;border-bottom:1px solid #e4eaf2!important;background:linear-gradient(180deg,#f9fbfd,#f4f7fa)!important;color:#334155!important;font-size:.6rem!important}.sale-work-table tbody td{padding:9px 10px!important;background:#fff!important}.sale-work-table tbody tr:hover td{background:#fbfdff!important}.sale-item-product{position:relative!important;padding-left:47px!important;min-height:38px!important}.sale-item-product:before{content:"◇";position:absolute;left:4px;top:50%;width:34px;height:34px;display:grid;place-items:center;transform:translateY(-50%);border:1px solid #dbe5ef;border-radius:9px;background:#f7fafc;color:#64748b;font-size:1rem}.sale-item-product strong{font-size:.68rem!important}.sale-item-product small{font-size:.56rem!important}.sale-work-table input{height:34px!important;min-height:34px!important;border-radius:9px!important;font-size:.68rem!important}.sale-qty-cell button{width:27px!important;height:30px!important}.sale-item-remove button,.sale-work-table .btn-danger{border-radius:9px!important;background:#ef4444!important;box-shadow:0 5px 10px rgba(239,68,68,.14)!important}
.sale-items-quantity-summary{height:54px;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:8px;margin:12px 16px 0;padding:7px 10px;border:1px solid #dbeafe;border-radius:11px;background:linear-gradient(90deg,#f4f8ff,#eef5ff)}.sale-items-basket{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:#dfeeff;color:#2563eb}.sale-items-quantity-summary>span:nth-child(2){display:flex;flex-direction:column}.sale-items-quantity-summary span strong{color:#25364e;font-size:.65rem}.sale-items-quantity-summary span small{margin-top:2px;color:#789;font-size:.55rem}.sale-items-quantity-summary>b{display:flex;align-items:center;gap:6px;padding:7px 12px;border:1px solid #dce6f2;border-radius:999px;background:#fff;color:#526176;font-size:.6rem;font-weight:700}.sale-items-quantity-summary>b strong{color:#2563eb;font-size:1rem}.sale-items-quantity-summary>b small{color:#2563eb;font-size:.56rem}
body.sale-screen .sale-work-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:9px!important;margin:12px 16px 16px!important}.sale-work-actions>.btn,.sale-more-actions>.btn{min-height:54px!important;width:100%!important;justify-content:flex-start!important;padding:8px 11px!important;border:1px solid #e2e8f0!important;border-radius:11px!important;background:#fff!important;color:#26364c!important;font-size:.62rem!important;box-shadow:0 4px 11px rgba(15,32,51,.035)!important;transition:.18s!important}.sale-work-actions>.btn:hover,.sale-more-actions>.btn:hover{border-color:#bfdbfe!important;background:#f8fbff!important;transform:translateY(-1px)!important}.sale-more-actions{width:100%!important;margin:0!important}.sale-more-menu{bottom:58px!important;top:auto!important}
@media(max-width:900px){.sale-items-head-summary{min-width:190px}.sale-pro-search-wrap{grid-template-columns:1fr!important}.sale-new-product-btn{width:100%}body.sale-screen .sale-work-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){body.sale-screen .sale-items-premium-head{align-items:flex-start!important;flex-direction:column!important}.sale-items-head-summary{width:100%}.sale-items-quantity-summary{grid-template-columns:34px 1fr}.sale-items-quantity-summary>b{grid-column:1/-1;justify-content:center}.sale-items-quantity-summary{height:auto}.sale-pro-tabs{overflow-x:auto}.sale-pro-tab{flex:none}body.sale-screen .sale-work-actions{grid-template-columns:1fr!important}}

/* Resumo premium da venda */
body.sale-screen .sale-resume-panel{border:1px solid #dfe7f0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 10px 28px rgba(15,32,51,.075)!important;overflow:hidden!important}
body.sale-screen .sale-summary-premium-head{min-height:64px!important;display:flex!important;align-items:center!important;margin:0!important;padding:11px 12px!important;border-bottom:1px solid #e8edf4!important;background:linear-gradient(105deg,#fff,#fbfdff)!important}.sale-summary-heading{display:flex;align-items:center;gap:8px;min-width:0}.sale-summary-heading>span{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;border-radius:9px;background:#edf4ff;color:#2563eb}.sale-summary-heading svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sale-summary-heading h2{margin:0!important;color:#172033!important;font-size:.73rem!important}.sale-summary-heading small{display:block;margin-top:2px;color:#7b8b9d;font-size:.52rem}.sale-summary-premium-head .sale-wait-inline{height:31px!important;min-height:31px!important;display:inline-flex!important;align-items:center!important;gap:5px!important;margin-left:auto!important;padding:0 8px!important;border:1px solid #fdba74!important;border-radius:8px!important;background:#fffaf5!important;color:#ea580c!important;font-size:.54rem!important}.sale-summary-premium-head .sale-wait-inline svg{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round}
body.sale-screen .sale-summary-list{min-height:52px!important;max-height:145px!important;margin:10px 10px 0!important;padding:0!important;border:1px solid #e4eaf2!important;border-radius:10px!important;background:#fbfdff!important;overflow:auto!important}.sale-summary-empty{position:relative!important;min-height:52px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;padding:8px 10px 8px 43px!important;color:#7b8b9d!important;font-size:.53rem!important}.sale-summary-empty:before{content:"";position:absolute;left:10px;top:50%;width:25px;height:25px;transform:translateY(-50%);border-radius:50%;background:#edf4ff;box-shadow:inset 0 0 0 1px #dbeafe}.sale-summary-empty:after{content:"+";position:absolute;left:18px;top:50%;transform:translateY(-53%);color:#2563eb;font-size:.85rem;font-weight:900}.sale-summary-row{padding:7px 9px!important}.sale-summary-row strong{font-size:.58rem!important}.sale-summary-row small,.sale-summary-row span{font-size:.49rem!important}.sale-summary-row b{font-size:.58rem!important}.sale-resume-tools{display:none!important}
body.sale-screen .sale-resume-panel .sale-pro-summary{display:flex!important;flex-direction:column!important;gap:0!important;margin:10px!important;padding:8px 10px 0!important;border:0!important;border-radius:10px!important;background:linear-gradient(145deg,#071827,#0b2742)!important;box-shadow:0 8px 18px rgba(7,24,39,.16)!important}.sale-resume-panel .sale-pro-summary>div{min-height:28px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;padding:0!important;border-bottom:1px dotted rgba(148,163,184,.25)!important}.sale-resume-panel .sale-pro-summary>div span{display:flex!important;align-items:center!important;gap:6px!important;color:#e8eef7!important;font-size:.57rem!important}.sale-resume-panel .sale-pro-summary>div span i{width:17px;height:17px;display:grid;place-items:center;border-radius:5px;background:#123b68;color:#60a5fa;font-style:normal;font-size:.46rem;font-weight:900}.sale-resume-panel .sale-pro-summary>div strong{color:#fff!important;font-size:.72rem!important}.sale-resume-panel .sale-pro-summary>div:last-child{min-height:43px!important;margin:3px -10px 0!important;padding:0 10px!important;border:0!important;border-radius:0 0 10px 10px!important;background:rgba(10,48,86,.62)!important}.sale-resume-panel .sale-pro-summary>div:last-child span{font-size:.66rem!important;font-weight:800!important}.sale-resume-panel .sale-pro-summary>div:last-child strong{font-size:1.35rem!important;letter-spacing:-.03em!important}
.sale-payment-heading{display:flex;align-items:center;gap:6px;margin:10px 11px 5px;color:#26364c}.sale-payment-heading span{width:23px;height:23px;display:grid;place-items:center;border-radius:7px;background:#edf4ff;color:#2563eb}.sale-payment-heading svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.sale-payment-heading strong{font-size:.6rem}
body.sale-screen .sale-payment-compact{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,.72fr)!important;gap:7px!important;padding:0 10px!important}.sale-payment-compact label{gap:4px!important;color:#3b4c62!important;font-size:.54rem!important;font-weight:800!important}.sale-payment-compact label:nth-child(3),.sale-payment-compact label:nth-child(4),.sale-payment-compact label:nth-child(5){grid-column:1/-1!important}.sale-payment-compact select,.sale-payment-compact input,.sale-payment-compact textarea{min-height:34px!important;height:34px!important;padding:6px 9px!important;border:1px solid #d8e1ec!important;border-radius:8px!important;background:#fff!important;font-size:.57rem!important}.sale-payment-compact textarea{height:50px!important;min-height:50px!important;resize:none!important}
body.sale-screen .sale-resume-panel .sale-action-buttons{margin:10px!important}.sale-resume-panel .sale-action-buttons>.btn:first-child{display:none!important}.sale-resume-panel .sale-final-btn{min-height:43px!important;display:grid!important;grid-template-columns:25px minmax(0,1fr) 18px!important;align-items:center!important;padding:0 10px!important;border:0!important;border-radius:9px!important;background:linear-gradient(90deg,#ff6a00,#ff7900)!important;color:#fff!important;box-shadow:0 8px 17px rgba(249,115,22,.23)!important;font-size:.69rem!important;transition:.18s!important}.sale-resume-panel .sale-final-btn:hover{filter:none!important;transform:translateY(-1px)!important;box-shadow:0 11px 21px rgba(249,115,22,.3)!important}.sale-final-check{width:21px;height:21px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#ff6a00;font-size:.65rem}.sale-final-arrow{font-size:.95rem}.sale-secure-note{display:flex;align-items:center;justify-content:center;gap:5px;margin:-3px 0 9px;color:#8a98aa;font-size:.48rem}.sale-secure-note svg{width:11px;height:11px;fill:none;stroke:#64748b;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sale-secure-note span{color:#cbd5e1}
@media(max-width:900px){body.sale-screen .sale-summary-list{max-height:190px!important}.sale-summary-heading h2{font-size:.78rem!important}}

/* Iconografia vetorial da etapa 2 */
.sale-items-cart-icon svg,.sale-items-basket svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sale-pro-tab{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important}.sale-pro-tab svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sale-new-product-btn svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.sale-work-actions>.btn,.sale-more-actions>.btn{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;text-align:left!important}.sale-work-actions>.btn>span:last-child,.sale-more-actions>.btn>span:last-child{display:flex;flex-direction:column;min-width:0}.sale-work-actions>.btn strong,.sale-more-actions>.btn strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#25364e;font-size:.62rem}.sale-work-actions>.btn small,.sale-more-actions>.btn small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;color:#8090a3;font-size:.52rem}.sale-action-icon{width:32px;height:32px;display:grid!important;place-items:center;border-radius:9px}.sale-action-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sale-action-icon.blue{background:#eaf3ff;color:#2563eb}.sale-action-icon.orange{background:#fff1df;color:#f59e0b}.sale-action-icon.green{background:#eaf9ef;color:#16a34a}.sale-action-icon.gray{background:#f0f3f7;color:#475569}

/* Correcao de legibilidade do resumo: evita fonte pixelada em escala pequena. */
body.sale-screen .sale-resume-panel,
body.sale-screen .sale-resume-panel button,
body.sale-screen .sale-resume-panel input,
body.sale-screen .sale-resume-panel select,
body.sale-screen .sale-resume-panel textarea{
  font-family:"Segoe UI",Arial,sans-serif !important;
  font-synthesis:none;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.sale-summary-heading h2{font-size:12px!important;font-weight:700!important;letter-spacing:0!important;line-height:1.25!important}
.sale-summary-heading small{font-size:10px!important;font-weight:400!important;line-height:1.25!important}
.sale-summary-premium-head .sale-wait-inline{font-size:11px!important;font-weight:600!important;letter-spacing:0!important}
.sale-summary-empty{font-size:10px!important;font-weight:400!important;line-height:1.35!important}
.sale-summary-row strong{font-size:11px!important;font-weight:650!important;line-height:1.25!important}
.sale-summary-row small,.sale-summary-row span{font-size:10px!important;font-weight:400!important}
.sale-summary-row b{font-size:11px!important;font-weight:700!important}
.sale-resume-panel .sale-pro-summary>div span{font-size:11px!important;font-weight:500!important;letter-spacing:0!important}
.sale-resume-panel .sale-pro-summary>div strong{font-size:15px!important;font-weight:700!important;letter-spacing:0!important}
.sale-resume-panel .sale-pro-summary>div:last-child span{font-size:14px!important;font-weight:650!important}
.sale-resume-panel .sale-pro-summary>div:last-child strong{font-size:28px!important;font-weight:750!important;letter-spacing:-.025em!important;line-height:1!important}
.sale-payment-heading strong{font-size:11px!important;font-weight:700!important}
.sale-payment-compact label{font-size:11px!important;font-weight:650!important;letter-spacing:0!important;line-height:1.2!important}
.sale-payment-compact select,.sale-payment-compact input,.sale-payment-compact textarea{font-size:12px!important;font-weight:400!important;letter-spacing:0!important;line-height:1.3!important}
.sale-resume-panel .sale-final-btn{font-size:13px!important;font-weight:700!important;letter-spacing:0!important}
.sale-secure-note{font-size:9px!important;font-weight:400!important;letter-spacing:0!important}

/* Estrutura responsiva final: muda posicoes sem alterar o visual dos componentes. */
body.sale-screen .sale-pro-page{container-type:inline-size;container-name:sale-page}
body.sale-screen .sale-pro-grid{
  grid-template-columns:minmax(0,1fr) clamp(340px,35%,400px)!important;
  grid-template-areas:"full-step full-step" "work summary"!important;
  align-items:start!important;
}
body.sale-screen .sale-items-workspace{grid-area:work!important;min-width:0!important}
body.sale-screen .sale-pro-sidebar{grid-area:summary!important;width:100%!important;max-width:400px!important;justify-self:end!important;align-self:start!important}
body.sale-screen .sale-work-table{max-width:calc(100% - 32px)!important;overflow-x:auto!important;overscroll-behavior-inline:contain}
@container sale-page (max-width:1050px){
  body.sale-screen .sale-pro-grid{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto auto!important;
    grid-template-areas:"full-step" "work" "summary"!important;
  }
  body.sale-screen .sale-pro-sidebar{
    position:static!important;
    width:100%!important;
    max-width:none!important;
    justify-self:stretch!important;
  }
  body.sale-screen .sale-summary-list{max-height:190px!important}
}
@container sale-page (max-width:800px){
  body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"customer" "operation" "vehicle"!important;
  }
  body.sale-screen .sale-customer-field,
  body.sale-screen .sale-operation-fields,
  body.sale-screen .sale-vehicle-fields{grid-template-columns:minmax(0,1fr)!important}
}
@supports not (container-type:inline-size){
  @media(max-width:1350px){
    body.sale-screen .sale-pro-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"full-step" "work" "summary"!important}
    body.sale-screen .sale-pro-sidebar{position:static!important;max-width:none!important;justify-self:stretch!important}
  }
}

/* Fluxo linear aprovado: etapas 1, 2 e resumo em largura total. */
body.sale-screen .sale-pro-grid{
  grid-template-columns:minmax(0,1fr)!important;
  grid-template-rows:auto auto auto!important;
  grid-template-areas:"full-step" "work" "summary"!important;
  gap:16px!important;
}
body.sale-screen .sale-add-card{grid-area:full-step!important}
body.sale-screen .sale-items-workspace{grid-area:work!important;width:100%!important;max-width:none!important}
body.sale-screen .sale-pro-sidebar{
  grid-area:summary!important;
  position:static!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  justify-self:stretch!important;
}
body.sale-screen .sale-resume-panel{
  width:100%!important;
  display:grid!important;
  grid-template-columns:minmax(300px,.8fr) minmax(430px,1.2fr)!important;
  grid-template-areas:"summary-head summary-head" "summary-list payment-head" "summary-total payment-fields" "summary-actions summary-actions" "summary-safe summary-safe"!important;
  column-gap:16px!important;
  align-items:start!important;
}
body.sale-screen .sale-summary-premium-head{grid-area:summary-head!important}
body.sale-screen .sale-summary-list{grid-area:summary-list!important;margin:12px 0 0 12px!important;max-height:170px!important}
body.sale-screen .sale-resume-tools{display:none!important}
body.sale-screen .sale-resume-panel .sale-pro-summary{grid-area:summary-total!important;margin:10px 0 12px 12px!important}
body.sale-screen .sale-payment-heading{grid-area:payment-head!important;margin:12px 12px 6px 0!important}
body.sale-screen .sale-payment-compact{
  grid-area:payment-fields!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  padding:0 12px 12px 0!important;
  gap:8px!important;
}
body.sale-screen .sale-payment-compact label:nth-child(3){grid-column:1/-1!important}
body.sale-screen .sale-payment-compact label:nth-child(4),
body.sale-screen .sale-payment-compact label:nth-child(5){grid-column:span 1!important}
body.sale-screen .sale-resume-panel .sale-action-buttons{grid-area:summary-actions!important;margin:0 12px 9px!important}
body.sale-screen .sale-secure-note{grid-area:summary-safe!important}

/* Barra inferior de conclusao da venda. */
body.sale-screen .sale-checkout-dock{
  position:sticky;
  z-index:8;
  bottom:10px;
  min-height:62px;
  display:grid;
  grid-template-columns:minmax(160px,1fr) auto auto;
  align-items:center;
  gap:10px;
  margin:14px 0 0;
  padding:9px 10px 9px 16px;
  border:1px solid rgba(203,213,225,.9);
  border-radius:15px;
  background:rgba(255,255,255,.94);
  box-shadow:0 13px 32px rgba(15,32,51,.16);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.sale-checkout-dock-total{display:flex;flex-direction:column}.sale-checkout-dock-total span{color:#718096;font-size:10px;font-weight:650}.sale-checkout-dock-total strong{margin-top:2px;color:#0b1f33;font-family:"Segoe UI",Arial,sans-serif;font-size:21px;font-weight:750;letter-spacing:-.025em}.sale-checkout-dock .btn{height:42px;min-height:42px;border-radius:10px;font-family:"Segoe UI",Arial,sans-serif;font-size:12px;font-weight:700}.sale-dock-wait{padding:0 14px!important;border:1px solid #fdba74!important;background:#fffaf5!important;color:#ea580c!important}.sale-dock-finalize{min-width:170px;display:grid!important;grid-template-columns:22px 1fr 14px!important;gap:7px!important;padding:0 11px!important;border:0!important;background:linear-gradient(90deg,#ff6900,#ff7b00)!important;color:#fff!important;box-shadow:0 7px 15px rgba(249,115,22,.23)!important}.sale-dock-finalize>span{width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#f97316}.sale-dock-finalize>b{font-size:15px}.sale-dock-finalize:hover{filter:none!important;transform:translateY(-1px);box-shadow:0 10px 19px rgba(249,115,22,.3)!important}.sale-dock-finalize:disabled{background:#dfe5ec!important;color:#98a2ad!important;box-shadow:none!important;transform:none!important}.sale-dock-finalize:disabled>span{color:#98a2ad}
@container sale-page (max-width:850px){
  body.sale-screen .sale-resume-panel{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-areas:"summary-head" "summary-list" "summary-total" "payment-head" "payment-fields" "summary-actions" "summary-safe"!important;
  }
  body.sale-screen .sale-summary-list{margin:10px 10px 0!important}
  body.sale-screen .sale-resume-panel .sale-pro-summary{margin:10px!important}
  body.sale-screen .sale-payment-heading{margin:8px 10px 5px!important}
  body.sale-screen .sale-payment-compact{padding:0 10px 10px!important}
}
@media(max-width:620px){
  body.sale-screen .sale-checkout-dock{grid-template-columns:minmax(0,1fr) auto;padding-left:11px}
  .sale-dock-wait{display:none!important}
  .sale-dock-finalize{min-width:150px}
}
@media(max-width:430px){
  .sale-checkout-dock-total strong{font-size:17px}
  .sale-dock-finalize{min-width:44px;width:44px;font-size:0!important;grid-template-columns:1fr!important}
  .sale-dock-finalize>b{display:none}
}

/* Compactacao vertical da etapa 2 sem remover informacoes. */
body.sale-screen .sale-items-premium-head{
  min-height:58px!important;
  padding:9px 14px!important;
}
.sale-items-title .step-badge{width:30px!important;height:30px!important;flex-basis:30px!important}
.sale-items-title h2{font-size:.92rem!important}
.sale-items-title p{margin-top:2px!important;font-size:.58rem!important}
.sale-items-head-summary{min-width:215px;height:42px;padding:5px 8px}
.sale-items-cart-icon{width:28px;height:28px}
.sale-items-head-summary small{margin-top:1px}
.sale-items-head-summary>b{font-size:1.05rem}
body.sale-screen .sale-pro-tabs{padding:7px 14px 6px!important}
.sale-pro-tab{height:31px!important;padding:0 12px!important;border-radius:9px!important}
.sale-pro-tab.active:after{bottom:-7px!important;height:2px!important}
body.sale-screen .sale-pro-panel{padding:8px 14px 0!important}
.sale-search-modern input,.sale-new-product-btn{height:40px!important}
body.sale-screen .sale-work-table{margin:8px 14px 0!important;width:calc(100% - 28px)!important;max-width:calc(100% - 28px)!important}
body.sale-screen .sale-empty-state{min-height:76px!important;padding:12px!important;gap:2px!important}
body.sale-screen .sale-empty-state strong{font-size:14px!important}
body.sale-screen .sale-empty-state span{font-size:11px!important}
.sale-work-table thead th{height:31px!important;padding:6px 9px!important}
body.sale-screen .sale-work-actions{gap:7px!important;margin:8px 14px 12px!important}
.sale-work-actions>.btn,.sale-more-actions>.btn{min-height:46px!important;padding:6px 9px!important;border-radius:10px!important}
.sale-action-icon{width:28px;height:28px;border-radius:8px}
.sale-action-icon svg{width:16px;height:16px}
.sale-work-actions>.btn,.sale-more-actions>.btn{grid-template-columns:28px minmax(0,1fr)!important;gap:7px!important}
.sale-more-menu{bottom:50px!important}
@media(max-width:560px){
  body.sale-screen .sale-items-premium-head{min-height:auto!important;padding:10px 12px!important}
  .sale-items-head-summary{min-width:0;height:40px}
}

/* REGRA FINAL DO QUADRO DE TOTAIS */
body.sale-screen .sale-resume-panel .sale-pro-summary{overflow:hidden!important;padding:7px 10px 0!important;border:1px solid rgba(96,165,250,.16)!important;background:linear-gradient(145deg,#071827,#0a2540)!important;box-shadow:0 9px 22px rgba(7,24,39,.18)!important}
body.sale-screen .sale-resume-panel .sale-pro-summary>div{min-height:33px!important;padding:0 2px!important;border-bottom:1px dashed rgba(148,163,184,.22)!important}
body.sale-screen .sale-resume-panel .sale-pro-summary>div span{gap:8px!important;color:#d7e3f1!important;font-size:12px!important;font-weight:500!important}
body.sale-screen .sale-resume-panel .sale-pro-summary>div span i{width:20px!important;height:20px!important;border-radius:6px!important;background:#123e6d!important;color:#7db7ff!important;font-size:9px!important}
body.sale-screen .sale-resume-panel .sale-pro-summary>div strong{color:#f8fbff!important;font-size:16px!important;font-weight:650!important;line-height:1.2!important;font-variant-numeric:tabular-nums;white-space:nowrap}
body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child{min-height:58px!important;margin:5px -10px 0!important;padding:0 12px!important;border:0!important;border-radius:0 0 10px 10px!important;background:linear-gradient(90deg,#0b3158,#0a2b4d)!important}
body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child span{color:#fff!important;font-size:16px!important;font-weight:650!important}
body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child strong{color:#fff!important;font-size:31px!important;font-weight:700!important;line-height:1.15!important;letter-spacing:-.025em!important;text-shadow:0 2px 8px rgba(0,0,0,.12)}
@media(max-width:520px){body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child strong{font-size:26px!important}}

/* Abas da etapa 2 integradas ao cabecalho. */
body.sale-screen .sale-items-premium-head{gap:16px!important}
body.sale-screen .sale-items-premium-head .sale-pro-tabs-inline{
  flex:1 1 auto!important;
  justify-content:flex-start!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}
body.sale-screen .sale-items-premium-head .sale-pro-tab.active:after{bottom:-8px!important}
body.sale-screen .sale-items-head-summary{margin-left:auto;flex:0 0 auto}
@container sale-page (max-width:920px){
  body.sale-screen .sale-items-premium-head{flex-wrap:wrap!important}
  body.sale-screen .sale-items-premium-head .sale-pro-tabs-inline{
    order:3!important;
    flex:1 0 100%!important;
    width:100%!important;
    padding-top:2px!important;
  }
  body.sale-screen .sale-items-premium-head .sale-pro-tab.active:after{bottom:-5px!important}
}
@media(max-width:560px){
  body.sale-screen .sale-items-premium-head .sale-pro-tabs-inline{display:flex!important;flex-direction:row!important;overflow-x:auto!important}
  body.sale-screen .sale-items-premium-head .sale-pro-tab{flex:none!important}
}

/* Mantem titulo, abas e contador na mesma linha em desktop. */
@container sale-page (min-width:701px){
  body.sale-screen .sale-items-premium-head{
    display:grid!important;
    grid-template-columns:minmax(235px,auto) minmax(330px,1fr) auto!important;
    align-items:center!important;
    gap:14px!important;
    flex-wrap:nowrap!important;
  }
  body.sale-screen .sale-items-premium-head .sale-pro-tabs-inline{
    order:initial!important;
    display:flex!important;
    flex:initial!important;
    width:auto!important;
    min-width:0!important;
    padding:0!important;
    justify-content:flex-start!important;
    overflow:visible!important;
  }
  body.sale-screen .sale-items-premium-head .sale-items-head-summary{
    margin-left:0!important;
    justify-self:end!important;
  }
}
@container sale-page (max-width:700px){
  body.sale-screen .sale-items-premium-head{
    display:flex!important;
    flex-wrap:wrap!important;
  }
  body.sale-screen .sale-items-premium-head .sale-pro-tabs-inline{
    order:3!important;
    flex:1 0 100%!important;
    width:100%!important;
  }
}

/* Atalhos da venda integrados ao cabecalho da etapa 2. */
.sale-head-actions{display:flex;align-items:center;justify-content:center;gap:5px;min-width:0}.sale-head-action{height:34px;min-width:34px;display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:0 8px;border:1px solid #e1e8f0;border-radius:9px;background:#fff;color:#526176;font-family:"Segoe UI",Arial,sans-serif;font-size:10px;font-weight:650;cursor:pointer;transition:.18s}.sale-head-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sale-head-action span{display:none}.sale-head-action:hover{transform:translateY(-1px);border-color:#bfdbfe;background:#f8fbff}.sale-head-action.blue{background:#eef5ff;color:#2563eb}.sale-head-action.orange{background:#fff5e8;color:#f59e0b}.sale-head-action.green{background:#ecf9f0;color:#16a34a}.sale-head-action.gray{background:#f2f5f8;color:#475569}.sale-head-more{position:relative!important;width:auto!important;margin:0!important}.sale-head-more .sale-more-menu{top:39px!important;right:0!important;bottom:auto!important;z-index:30!important}.sale-head-more>.sale-head-action{width:auto!important;margin:0!important}
@container sale-page (min-width:951px){
  body.sale-screen .sale-items-premium-head{
    grid-template-columns:minmax(220px,auto) minmax(315px,1fr) auto auto!important;
    gap:10px!important;
  }
  body.sale-screen .sale-items-premium-head .sale-pro-tabs-inline{order:initial!important;grid-column:auto!important}
  .sale-head-actions{grid-column:auto!important}
}
@container sale-page (min-width:1220px){.sale-head-action span{display:inline}.sale-head-action{padding:0 9px}}
@container sale-page (min-width:701px) and (max-width:950px){
  body.sale-screen .sale-items-premium-head{
    grid-template-columns:minmax(210px,1fr) auto auto!important;
  }
  body.sale-screen .sale-items-premium-head .sale-pro-tabs-inline{order:4!important;grid-column:1/-1!important;width:100%!important}
  .sale-head-actions{grid-column:auto!important}
}
@container sale-page (max-width:700px){
  .sale-head-actions{order:2;margin-left:auto}
  .sale-head-action{height:32px;min-width:32px;padding:0 7px}
}

/* Etapa 1: cliente, atendimento e estoque vinculados à conta. */
body.sale-screen .sale-step-one-grid{
  grid-template-columns:minmax(430px,1.22fr) minmax(390px,.78fr)!important;
  align-items:start!important;
}
body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{align-items:start!important}
body.sale-screen .sale-step-one-grid>.sale-step-panel{align-self:start!important;height:auto!important}
body.sale-screen .sale-customer-field{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"caption caption" "search button" "select select"!important;
  gap:7px 8px!important;
}
body.sale-screen .sale-customer-field:after{content:none!important;display:none!important}
body.sale-screen .sale-customer-field>#customerSelect{
  grid-area:select!important;
  margin-top:0!important;
}
body.sale-screen .sale-customer-field>.sale-quick-customer-btn{
  width:auto!important;
  min-width:112px!important;
  height:44px!important;
  padding:0 13px!important;
  border-color:#fed7aa!important;
  background:#fff7ed!important;
  color:#c2410c!important;
}
.sale-customer-summary{
  min-height:54px;
  display:grid;
  grid-template-columns:34px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  margin-top:9px;
  padding:8px 10px;
  border:1px solid #d8eee1;
  border-radius:12px;
  background:#f4fcf7;
}
.sale-customer-summary-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#dcfce7;color:#15803d}.sale-customer-summary-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.sale-customer-summary-copy{min-width:0}.sale-customer-summary-copy strong,.sale-customer-summary-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sale-customer-summary-copy strong{color:#15243a;font-size:.74rem}.sale-customer-summary-copy small{margin-top:2px;color:#64748b;font-size:.61rem}.sale-customer-summary-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px}.sale-customer-summary-meta>span{padding:3px 7px;border-radius:999px;background:#e8f1ff;color:#295ea8;font-size:.57rem;font-weight:750;white-space:nowrap}.sale-customer-summary-meta>span:last-child{background:#edf9f1;color:#18864b}.sale-customer-summary-meta>span.has-balance{background:#fff1e6;color:#c2410c}.sale-customer-summary.is-anonymous{border-color:#e5eaf0;background:#f8fafc}.sale-customer-summary.is-anonymous .sale-customer-summary-icon{background:#eef2f6;color:#64748b}
body.sale-screen .sale-operation-fields{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:start!important;
}
body.sale-screen .sale-operation-fields label:first-child{grid-column:auto!important}
.sale-stock-lock{display:block;margin-top:3px;color:#2563eb;font-size:.55rem;font-weight:650}.sale-operation-fields select:disabled{opacity:1;color:#183b68;background:#f1f7ff!important;cursor:not-allowed}
.sale-operator-strip{min-height:44px;display:flex;align-items:center;gap:8px;margin-top:9px;padding:6px 9px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}.sale-operator-avatar{width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#172e49;color:#fff;font-size:.7rem;font-weight:800}.sale-operator-strip>span:nth-child(2){display:flex;flex-direction:column;min-width:0}.sale-operator-strip small{color:#7b8b9d;font-size:.54rem}.sale-operator-strip strong{margin-top:1px;color:#1d2f45;font-size:.67rem}.sale-operator-strip em{margin-left:auto;color:#64748b;font-size:.58rem;font-style:normal;font-weight:700}
.sale-delivery-fields{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:7px;margin-top:9px;padding:9px;border:1px solid #bfdbfe;border-radius:11px;background:#f5f9ff}.sale-delivery-fields.is-hidden{display:none}.sale-use-customer-address{height:42px;padding:0 10px;border:1px solid #bfdbfe;border-radius:10px;background:#fff;color:#1d4ed8;font-size:.6rem;font-weight:750;cursor:pointer}.sale-use-customer-address:hover{background:#eff6ff}
.sale-advanced-options{margin-top:8px;border-top:1px solid #e8edf3;padding-top:6px}.sale-advanced-options summary{width:max-content;color:#50657d;font-size:.6rem;font-weight:750;cursor:pointer;list-style:none}.sale-advanced-options summary:before{content:"+";display:inline-grid;place-items:center;width:16px;height:16px;margin-right:5px;border-radius:5px;background:#eef3f8;color:#31567e}.sale-advanced-options[open] summary:before{content:"−"}.sale-advanced-options label{max-width:220px;margin-top:7px}
body.sale-screen .sale-customer-panel,body.sale-screen .sale-operation-panel{min-height:0!important}
@media(max-width:1180px){
  body.sale-screen .sale-step-one-grid{grid-template-columns:minmax(0,1fr)!important}
}
@media(max-width:720px){
  body.sale-screen .sale-customer-field{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"caption" "search" "select" "button"!important}
  body.sale-screen .sale-customer-field>.sale-quick-customer-btn{width:100%!important}
  .sale-customer-summary{grid-template-columns:34px minmax(0,1fr)}
  .sale-customer-summary-meta{grid-column:1/-1;flex-direction:row;align-items:center;padding-left:43px}
  body.sale-screen .sale-operation-fields{grid-template-columns:minmax(0,1fr)!important}
  .sale-delivery-fields{grid-template-columns:minmax(0,1fr)}
  .sale-use-customer-address{width:100%}
}

/* Barras de etapa compactas: preserva hierarquia consumindo menos altura. */
body.sale-screen .sale-add-card:before{height:3px!important}
body.sale-screen .sale-add-card>.sale-pro-card-head{
  min-height:46px!important;
  padding:7px 20px 6px!important;
  background:linear-gradient(90deg,rgba(255,250,240,.72),rgba(241,247,255,.48))!important;
}
body.sale-screen .sale-step-heading{
  position:relative!important;
  width:100%!important;
  justify-content:center!important;
  gap:10px!important;
  text-align:center!important;
}
body.sale-screen .sale-step-heading .step-badge{
  position:absolute!important;
  left:0!important;
  top:50%!important;
  transform:translateY(-50%)!important;
  width:28px!important;
  height:28px!important;
  min-width:28px!important;
  flex-basis:28px!important;
  border-radius:9px!important;
  font-size:.72rem!important;
  box-shadow:0 4px 9px rgba(255,138,0,.16)!important;
}
body.sale-screen .sale-step-heading h2{font-size:.9rem!important;letter-spacing:-.015em!important}
body.sale-screen .sale-step-heading p{display:none!important}
body.sale-screen .sale-pro-main .sale-pro-fields.sale-step-one-grid{padding-top:10px!important}

body.sale-screen .sale-items-premium-head{
  min-height:48px!important;
  padding:6px 12px!important;
  gap:8px!important;
}
body.sale-screen .sale-items-title{gap:8px!important}
body.sale-screen .sale-items-title .step-badge{
  width:27px!important;
  height:27px!important;
  min-width:27px!important;
  flex-basis:27px!important;
  border-radius:8px!important;
  font-size:.7rem!important;
  box-shadow:0 4px 9px rgba(37,99,235,.16)!important;
}
body.sale-screen .sale-items-title h2{font-size:.86rem!important}
body.sale-screen .sale-items-title p{display:none!important}
body.sale-screen .sale-items-premium-head .sale-pro-tab{height:29px!important;padding:0 10px!important}
body.sale-screen .sale-items-premium-head .sale-head-action{height:30px!important;min-width:30px!important;padding:0 7px!important}
body.sale-screen .sale-items-head-summary{min-width:190px!important;height:36px!important;padding:4px 7px!important}
body.sale-screen .sale-items-cart-icon{width:25px!important;height:25px!important}
body.sale-screen .sale-items-head-summary small{display:none!important}
body.sale-screen .sale-items-head-summary>b{font-size:.95rem!important}
@media(max-width:700px){
  body.sale-screen .sale-add-card>.sale-pro-card-head{min-height:44px!important;padding:7px 13px 6px!important}
  body.sale-screen .sale-items-premium-head{min-height:auto!important;padding:8px 10px!important}
  body.sale-screen .sale-items-head-summary{min-width:155px!important}
}

/* Tipografia do sistema: leitura funcional com títulos de maior personalidade. */
html body{
  font-family:"Inter","Segoe UI",Arial,sans-serif!important;
  font-optical-sizing:auto;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
body button,
body input,
body select,
body textarea{
  font-family:inherit!important;
}
body h1,
body h2,
body h3,
body .brand strong,
body .sidebar-brand-copy strong,
body .side-accordion-summary>strong,
body .sale-panel-label strong,
body .sale-items-title strong{
  font-family:"Manrope","Inter","Segoe UI",Arial,sans-serif!important;
}

/* Veículo em janela: elimina a faixa fixa e preserva os campos na venda. */
body.sale-screen .sale-step-one-grid{
  grid-template-areas:"customer operation"!important;
}
body.sale-screen .sale-customer-panel>.sale-panel-label{
  display:flex!important;
  align-items:center!important;
}
.sale-vehicle-quick-btn{
  height:34px;
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  margin-left:auto;
  padding:0 11px;
  border:1px solid #bfdbfe;
  border-radius:10px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.66rem;
  font-weight:800;
  white-space:nowrap;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease;
}
.sale-vehicle-quick-btn>span{font-size:1rem;line-height:1}
.sale-vehicle-quick-btn:hover{transform:translateY(-1px);border-color:#60a5fa;background:#e8f2ff}
.sale-vehicle-quick-btn.has-vehicle{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}

.sale-vehicle-modal{position:fixed;inset:0;z-index:120;display:none;align-items:center;justify-content:center;padding:20px}
.sale-vehicle-modal.is-open{display:flex}
.sale-vehicle-modal-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;background:rgba(7,24,39,.48);backdrop-filter:blur(3px);cursor:default}
.sale-vehicle-dialog{position:relative;z-index:1;width:min(640px,100%);overflow:hidden;border:1px solid #dbe4ee;border-radius:18px;background:#fff;box-shadow:0 24px 70px rgba(7,24,39,.28);animation:saleVehicleDialogIn .18s ease-out}
@keyframes saleVehicleDialogIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
.sale-vehicle-dialog>header{display:flex;align-items:center;gap:11px;padding:16px 18px;border-bottom:1px solid #e7edf4;background:linear-gradient(100deg,#f8fbff,#fff)}
.sale-vehicle-dialog-icon{width:38px;height:38px;flex:0 0 38px;display:grid;place-items:center;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff;color:#2563eb}
.sale-vehicle-dialog-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sale-vehicle-dialog header>div{min-width:0}
.sale-vehicle-dialog h3{margin:0!important;color:#14213d;font-size:1rem}
.sale-vehicle-dialog header p{margin:3px 0 0;color:#718096;font-size:.68rem}
.sale-vehicle-modal-close{width:34px;height:34px;display:grid;place-items:center;margin-left:auto;border:1px solid #dbe4ee;border-radius:9px;background:#fff;color:#64748b;font-size:1.25rem;cursor:pointer}
.sale-vehicle-modal-close:hover{border-color:#fecaca;background:#fff5f5;color:#dc2626}
.sale-vehicle-dialog-fields{display:grid;grid-template-columns:minmax(140px,.7fr) minmax(240px,1.3fr) minmax(120px,.6fr);gap:13px;padding:20px 18px 22px}
.sale-vehicle-dialog-fields label{font-size:.72rem}
.sale-vehicle-dialog-fields input{height:44px!important;min-height:44px!important;border:1px solid #d7e0ea!important;border-radius:11px!important;background:#fff!important;font-size:.8rem!important}
.sale-vehicle-dialog-fields .sale-plate-field:after{top:24px!important;height:14px!important}
.sale-vehicle-dialog-fields #vehiclePlate{height:52px!important;padding-top:20px!important;text-align:center;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
.sale-vehicle-dialog>footer{display:grid;grid-template-columns:auto 1fr auto auto;align-items:center;gap:9px;padding:12px 18px;border-top:1px solid #e7edf4;background:#f8fafc}
.sale-vehicle-dialog>footer .btn{height:38px;min-height:38px;padding:0 13px;font-size:.7rem}
.sale-vehicle-remove{height:36px;padding:0 10px;border:0;background:transparent;color:#dc2626;font-size:.68rem;font-weight:750;cursor:pointer}
.sale-vehicle-remove:hover{text-decoration:underline}
body.sale-vehicle-modal-open{overflow:hidden}
@media(max-width:900px){body.sale-screen .sale-step-one-grid{grid-template-areas:"customer" "operation"!important}}
@media(max-width:620px){
  .sale-vehicle-modal{padding:10px}
  .sale-vehicle-dialog-fields{grid-template-columns:1fr;padding:15px}
  .sale-vehicle-dialog>footer{grid-template-columns:1fr 1fr;padding:11px 15px}
  .sale-vehicle-dialog>footer>span{display:none}
  .sale-vehicle-remove{grid-column:1/-1;justify-self:start}
}
@media(max-width:520px){
  .sale-vehicle-quick-btn{width:34px;padding:0}
  .sale-vehicle-quick-btn .sale-vehicle-toggle-label{display:none}
}

/* Evita ações duplicadas: o dock de conclusão é exclusivo do celular. */
body.sale-screen .sale-checkout-dock{display:none!important}
@media(max-width:760px){
  body.sale-screen .sale-checkout-dock{display:grid!important}
}

/* Resumo do cliente integrado ao cabeçalho para eliminar repetição vertical. */
body.sale-screen .sale-customer-panel>.sale-customer-head{
  display:grid!important;
  grid-template-columns:36px minmax(110px,1fr) auto auto;
  align-items:center!important;
  gap:9px!important;
  min-height:38px;
  margin-bottom:11px!important;
}
.sale-customer-head .sale-customer-summary-copy{min-width:0}
.sale-customer-head .sale-customer-summary-copy strong{
  display:block;
  overflow:hidden;
  color:#15243a;
  font-size:.74rem!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sale-customer-head .sale-customer-summary-copy small{
  display:block;
  overflow:hidden;
  margin-top:2px!important;
  color:#64748b;
  font-size:.59rem!important;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.sale-customer-head .sale-customer-summary-meta{display:flex;flex-direction:column;align-items:flex-end;gap:3px}
.sale-customer-head .sale-customer-summary-meta>span{padding:3px 7px;border-radius:999px;background:#e8f1ff;color:#295ea8;font-size:.55rem;font-weight:750;white-space:nowrap}
.sale-customer-head .sale-customer-summary-meta>span:last-child{background:#edf9f1;color:#18864b}
.sale-customer-head .sale-customer-summary-meta>span.has-balance{background:#fff1e6;color:#c2410c}
.sale-customer-head:not(.is-anonymous)>span:first-child{border-color:#bbf7d0!important;background:#f0fdf4!important;color:#15803d!important}
@media(max-width:520px){
  body.sale-screen .sale-customer-panel>.sale-customer-head{grid-template-columns:36px minmax(80px,1fr) auto 34px;gap:7px!important}
  .sale-customer-head .sale-customer-summary-meta>span{padding:3px 5px;font-size:.5rem}
}

/* Resultado da busca de produtos com alerta de estoque localizado. */
body.sale-screen .sale-search-modern .search-results{
  padding:7px!important;
  border:1px solid #dbe4ee!important;
  border-radius:15px!important;
  background:#fff!important;
  box-shadow:0 18px 42px rgba(15,32,51,.16)!important;
}
body.sale-screen .sale-search-item,
body.sale-screen .sale-search-item.stock-empty{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:16px!important;
  min-height:76px;
  margin:0 0 6px!important;
  padding:10px 12px!important;
  border:1px solid #e2e8f0!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 3px 10px rgba(15,32,51,.035)!important;
  transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease!important;
}
.sale-search-photo{width:52px;height:52px;display:grid;place-items:center;overflow:hidden;padding:0;border:1px solid #dbe4ee;border-radius:10px;background:#f8fafc;cursor:zoom-in}.sale-search-photo img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .18s ease}.sale-search-photo:hover img{transform:scale(1.06)}.sale-search-photo.is-empty{color:#94a3b8;cursor:default;text-align:center}.sale-search-photo.is-empty b{font-size:1.05rem;line-height:1}.sale-search-photo.is-empty small{margin:2px 0 0!important;font-size:.43rem!important;font-weight:700!important}.sale-search-product-details{display:block!important;max-width:680px;margin:4px 0 0!important;overflow:hidden;color:#728197!important;font-size:.56rem!important;text-overflow:ellipsis;white-space:nowrap}.sale-search-match{display:inline-flex!important;align-items:center;margin:0!important;padding:3px 7px;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#2563eb!important;font-size:.52rem!important;font-weight:800!important}.sale-search-price.is-missing strong{color:#b45309!important;font-size:.65rem!important}.sale-search-add.is-price-missing{border-color:#f59e0b;background:#fff7ed;color:#b45309;box-shadow:none;text-decoration:none}.sale-search-add.is-price-missing:hover{border-color:#d97706;background:#ffedd5;color:#92400e}.sale-product-photo-viewer{position:fixed;inset:0;z-index:350;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(2,8,23,.72);backdrop-filter:blur(4px)}.sale-product-photo-viewer.open{display:flex}.sale-product-photo-viewer img{max-width:min(760px,92vw);max-height:82vh;border:5px solid #fff;border-radius:16px;background:#fff;box-shadow:0 25px 80px rgba(0,0,0,.4);object-fit:contain}.sale-product-photo-viewer button{position:fixed;top:22px;right:28px;width:42px;height:42px;border:1px solid rgba(255,255,255,.55);border-radius:50%;background:rgba(15,23,42,.75);color:#fff;font-size:1.65rem;cursor:pointer}
body.sale-screen .sale-search-item:last-child{margin-bottom:0!important}
body.sale-screen .sale-search-item:hover,
body.sale-screen .sale-search-item:focus-visible{
  border-color:#93c5fd!important;
  background:#fbfdff!important;
  box-shadow:0 7px 18px rgba(37,99,235,.10)!important;
  transform:translateY(-1px);
  outline:none;
}
.sale-search-product-main{min-width:0}
.sale-search-product-title{display:flex!important;align-items:center;gap:9px;min-width:0}
.sale-search-item .sale-search-code{
  flex:0 0 auto;
  display:inline-flex!important;
  align-items:center;
  min-height:23px;
  margin:0!important;
  padding:3px 7px;
  border:1px solid #dbe4ee;
  border-radius:7px;
  background:#f5f7fa;
  color:#526176!important;
  font-size:.62rem!important;
  font-weight:800!important;
  line-height:1;
}
.sale-search-product-title>strong{
  min-width:0;
  overflow:hidden!important;
  color:#172033!important;
  font-size:.76rem!important;
  font-weight:800!important;
  line-height:1.25!important;
  text-overflow:ellipsis;
  white-space:nowrap!important;
}
.sale-search-stock-row{display:flex!important;align-items:center;gap:6px;margin-top:8px;flex-wrap:wrap}
.sale-search-item .sale-search-stock{
  display:inline-flex!important;
  align-items:center;
  gap:4px;
  margin:0!important;
  padding:3px 7px;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb!important;
  font-size:.56rem!important;
  font-weight:750!important;
  line-height:1.2;
}
.sale-search-item .sale-search-stock b{width:13px;height:13px;display:grid;place-items:center;border-radius:50%;background:currentColor;color:#fff;font-size:.48rem}
.sale-search-item .sale-search-stock.negative{background:#fff1f2;color:#be123c!important}
.sale-search-item .sale-search-stock.empty{background:#fff7ed;color:#c2410c!important}
.sale-search-item .sale-search-stock.positive{background:#edf9f1;color:#18864b!important}
.sale-search-item .sale-search-stock.general{background:#f1f5f9;color:#526176!important}
.sale-search-product-actions{display:grid;grid-template-columns:auto auto;align-items:center;gap:10px}
.sale-search-price{display:flex!important;flex-direction:column;align-items:flex-end;margin:0!important}
.sale-search-item .sale-search-price small{margin:0 0 2px!important;color:#7b8b9d!important;font-size:.52rem!important;font-weight:600!important}
.sale-search-item .sale-search-price strong{color:#172033!important;font-size:.82rem!important;white-space:nowrap!important}
.sale-search-add{
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 11px;
  border:1px solid #2563eb;
  border-radius:9px;
  background:#2563eb;
  color:#fff;
  font-size:.64rem;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 5px 11px rgba(37,99,235,.18);
}
.sale-search-add:hover{background:#1d4ed8;border-color:#1d4ed8}
.sale-search-add b{font-size:.9rem;line-height:1}
@media(max-width:620px){
  body.sale-screen .sale-search-item,body.sale-screen .sale-search-item.stock-empty{grid-template-columns:46px minmax(0,1fr)!important;gap:9px!important}
  .sale-search-photo{width:44px;height:44px}.sale-search-product-actions{grid-column:1/-1}
  .sale-search-product-actions{display:flex;justify-content:space-between}
  .sale-search-price{align-items:flex-start}
  .sale-search-product-title>strong{white-space:normal!important}
}

/* Controle e fechamento da mão de obra do eletricista. */
.labor-rule-inline{display:flex;align-items:center;gap:6px;min-width:210px}.labor-rule-inline select{height:34px;min-width:125px;padding:5px 8px;font-size:.72rem}
.labor-page-head{align-items:center}.labor-eyebrow{display:block;margin-bottom:5px;color:#f97316;font-size:.65rem;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.labor-rules-card{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding:14px 16px;border:1px solid #dfe7f0;border-radius:16px;background:linear-gradient(100deg,#fff,#f8fbff);box-shadow:0 7px 20px rgba(15,32,51,.05)}
.labor-rules-card>div{margin-right:auto}.labor-rules-card strong,.labor-rules-card small{display:block}.labor-rules-card strong{color:#172033;font-size:.82rem}.labor-rules-card small{margin-top:3px;font-size:.65rem}
.labor-provider-card{margin-bottom:14px;padding:0;overflow:hidden}.labor-provider-card>summary{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer;list-style:none}.labor-provider-card>summary::-webkit-details-marker{display:none}.labor-provider-card>summary span,.labor-provider-card>summary b,.labor-provider-card>summary small{display:block}.labor-provider-card>summary b{font-size:.8rem}.labor-provider-card>summary small{margin-top:3px;color:#64748b;font-size:.63rem}.labor-provider-card>summary i{font-style:normal;font-size:1.2rem;transition:transform .18s}.labor-provider-card[open]>summary i{transform:rotate(90deg)}.labor-provider-body{padding:0 16px 16px;border-top:1px solid #e2e8f0}.labor-provider-list{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0}.labor-provider-list span{padding:8px 10px;border-radius:10px;background:#f8fafc}.labor-provider-list b,.labor-provider-list small{display:block}.labor-provider-list b{font-size:.7rem}.labor-provider-list small{margin-top:2px;color:#64748b;font-size:.58rem}.labor-provider-form{display:grid;grid-template-columns:minmax(180px,.8fr) 170px minmax(260px,1.3fr) auto;align-items:end;gap:10px}.labor-telegram-btn{border-color:#229ed9!important;background:#229ed9!important;color:#fff!important}.labor-provider-identity>div{display:flex;flex-direction:column;gap:2px}.labor-provider-identity>div small{color:#475569;font-size:.62rem}.labor-provider-identity>em{margin-left:auto;color:#64748b;font-size:.62rem;font-style:normal}
.labor-rule-chip{display:flex;flex-direction:column;gap:2px;padding:8px 11px;border-radius:11px;font-size:.61rem;font-weight:750}.labor-rule-chip b{font-size:.7rem}.labor-rule-chip.store{background:#eff6ff;color:#1d4ed8}.labor-rule-chip.street{background:#fff7ed;color:#c2410c}
.labor-filter-card{display:grid;grid-template-columns:180px 180px auto;align-items:end;gap:10px;padding:14px 16px}.labor-filter-card .btn{width:max-content}
.labor-manual-card{margin-bottom:14px;padding:0;overflow:hidden;border-color:#bfdbfe}.labor-manual-card>summary{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;cursor:pointer;list-style:none;background:linear-gradient(100deg,#fff,#f5f9ff)}.labor-manual-card>summary::-webkit-details-marker{display:none}.labor-manual-card>summary span,.labor-manual-card>summary b,.labor-manual-card>summary small{display:block}.labor-manual-card>summary b{color:#1d4ed8;font-size:.78rem}.labor-manual-card>summary small{margin-top:3px;color:#64748b;font-size:.63rem}.labor-manual-card>summary i{font-style:normal;font-size:1.25rem;transition:transform .18s ease}.labor-manual-card[open]>summary i{transform:rotate(90deg)}.labor-manual-form{display:grid;grid-template-columns:150px minmax(220px,1.2fr) minmax(180px,.8fr) 140px 160px;align-items:end;gap:10px;padding:16px;border-top:1px solid #dbeafe}.labor-manual-notes{grid-column:1/-2}.labor-manual-form>.btn{width:max-content}.labor-manual-badge{display:block;width:max-content;margin-top:3px;padding:2px 5px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:.52rem;font-weight:850;text-transform:uppercase}.labor-electrician-value{white-space:nowrap}.labor-manual-delete{display:inline;margin-left:6px}.labor-manual-delete button{width:22px;height:22px;padding:0;border:1px solid #fecaca;border-radius:7px;background:#fff;color:#dc2626;cursor:pointer;font-weight:900}
.labor-kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:14px}.labor-kpis article{padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 5px 15px rgba(15,32,51,.04)}.labor-kpis span{display:block;color:#718096;font-size:.62rem}.labor-kpis strong{display:block;margin-top:7px;color:#172033;font-family:"Manrope",sans-serif;font-size:1.05rem}.labor-kpis .discount strong{color:#dc2626}.labor-kpis .electrician{border-color:#bfdbfe;background:#f5f9ff}.labor-kpis .electrician strong{color:#1d4ed8}.labor-kpis .company strong{color:#15803d}
.labor-report-card h2,.labor-close-card h2,.labor-history-card h2{font-size:1rem}.labor-report-card p,.labor-close-card p,.labor-history-card p{color:#718096;font-size:.68rem}.labor-table{min-width:1020px}.labor-table th{font-size:.62rem}.labor-table td{font-size:.7rem}.labor-type{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:.58rem;font-weight:800}.labor-type.loja{background:#eff6ff;color:#1d4ed8}.labor-type.rua{background:#fff7ed;color:#c2410c}.labor-discount{color:#dc2626}.labor-electrician-value{color:#1d4ed8;font-weight:850}.labor-empty{display:flex;flex-direction:column;align-items:center;padding:28px;color:#64748b}.labor-empty strong{color:#334155}.labor-empty span{margin-top:5px;font-size:.68rem}
.labor-close-card{display:grid;grid-template-columns:minmax(230px,1.2fr) minmax(190px,.8fr) minmax(170px,.7fr) auto auto;align-items:end;gap:12px;border-color:#bfdbfe;background:linear-gradient(100deg,#fff,#f5f9ff)}.labor-close-total{display:flex;flex-direction:column;align-items:flex-end}.labor-close-total span{color:#718096;font-size:.61rem}.labor-close-total strong{margin-top:4px;color:#1d4ed8;font-family:"Manrope",sans-serif;font-size:1.15rem}.labor-close-card>.btn{white-space:nowrap}
.labor-edit-warning{margin-bottom:14px;border-color:#fed7aa;background:#fffaf5}.labor-edit-warning strong{color:#c2410c;font-size:.76rem}.labor-edit-warning p{margin:5px 0 0;color:#64748b;font-size:.68rem}.labor-edit-form{display:grid;grid-template-columns:minmax(260px,1fr) 190px;gap:14px}.labor-edit-notes{grid-column:1/-1}.labor-edit-summary{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;padding:12px;border-radius:12px;background:#f8fafc}.labor-edit-summary span{color:#64748b;font-size:.62rem}.labor-edit-summary strong{font-size:.72rem}.labor-edit-form>.actions{align-items:end;justify-content:flex-end}
@media(max-width:700px){.labor-edit-form{grid-template-columns:1fr}.labor-edit-notes{grid-column:auto}}

.labor-print-sheet{max-width:1180px;margin:0 auto;padding:28px;border:1px solid #dfe7f0;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(15,32,51,.08)}.labor-print-header{display:flex;justify-content:space-between;gap:20px;padding-bottom:17px;border-bottom:2px solid #172033}.labor-print-header span{color:#f97316;font-size:.64rem;font-weight:900;letter-spacing:.12em}.labor-print-header h1{margin:5px 0 3px;font-size:1.35rem}.labor-print-header p{margin:0;color:#64748b;font-size:.72rem}.labor-print-header>div:last-child{display:flex;flex-direction:column;align-items:flex-end}.labor-print-header>div:last-child strong{margin:3px 0;font-size:1rem}.labor-print-header small{color:#64748b;font-size:.64rem}.labor-print-party{display:flex;align-items:center;gap:10px;margin:15px 0;padding:10px 12px;border-radius:11px;background:#f8fafc}.labor-print-party>span{color:#64748b;font-size:.65rem}.labor-print-party>strong{font-size:.78rem}.labor-print-party>small{margin-left:auto}
.labor-print-table{min-width:0}.labor-print-table th{padding:8px 6px;font-size:.58rem}.labor-print-table td{padding:8px 6px;font-size:.65rem}.labor-print-totals{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-top:16px}.labor-print-totals>div{padding:10px;border:1px solid #e2e8f0;border-radius:10px}.labor-print-totals span,.labor-print-totals strong{display:block}.labor-print-totals span{color:#64748b;font-size:.58rem}.labor-print-totals strong{margin-top:5px;font-size:.78rem}.labor-print-totals .primary{border-color:#93c5fd;background:#eff6ff}.labor-print-totals .primary strong{color:#1d4ed8;font-size:.9rem}
.labor-receipt{margin-top:38px;padding-top:20px;position:relative}.labor-cut-line{position:absolute;left:-28px;right:-28px;top:0;border-top:2px dashed #94a3b8;text-align:center}.labor-cut-line span{position:relative;top:-9px;padding:0 10px;background:#fff;color:#64748b;font-size:.58rem;font-weight:800}.labor-receipt>header{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.labor-receipt header small{font-size:.6rem;letter-spacing:.08em}.labor-receipt header h2{margin:4px 0 0;font-size:.9rem}.labor-receipt header>strong{padding:8px 12px;border:2px solid #172033;border-radius:9px;font-size:1.1rem}.labor-receipt>p{margin:20px 0;line-height:1.6;font-size:.72rem}.labor-receipt-signatures{display:grid;grid-template-columns:210px 1fr;gap:35px;margin:28px 0;font-size:.68rem}.labor-receipt>footer{display:flex;justify-content:space-between;padding-top:10px;border-top:1px solid #cbd5e1;font-size:.62rem}
@media(max-width:1050px){.labor-kpis{grid-template-columns:repeat(3,1fr)}.labor-close-card{grid-template-columns:1fr 1fr}.labor-close-card>div:first-child{grid-column:1/-1}.labor-close-total{align-items:flex-start}.labor-manual-form{grid-template-columns:1fr 1fr 1fr}.labor-manual-notes{grid-column:1/-2}.labor-provider-form{grid-template-columns:1fr 1fr}.labor-provider-form>.btn{width:max-content}}
@media(max-width:700px){.labor-rules-card{align-items:flex-start;flex-wrap:wrap}.labor-rules-card>div{width:100%}.labor-filter-card{grid-template-columns:1fr}.labor-filter-card .btn{width:100%}.labor-kpis{grid-template-columns:1fr 1fr}.labor-close-card{grid-template-columns:1fr}.labor-close-card>div:first-child{grid-column:auto}.labor-close-card .btn{width:100%}.labor-manual-form,.labor-provider-form{grid-template-columns:1fr}.labor-manual-notes{grid-column:auto}.labor-manual-form>.btn,.labor-provider-form>.btn{width:100%}.labor-provider-identity{align-items:flex-start;flex-wrap:wrap}.labor-provider-identity>em{width:100%;margin-left:0}.labor-print-sheet{padding:16px}.labor-print-totals{grid-template-columns:1fr 1fr}.labor-receipt-signatures{grid-template-columns:1fr}.labor-print-header{flex-direction:column}.labor-print-header>div:last-child{align-items:flex-start}}
@media print{
  @page{size:A4 portrait;margin:10mm}
  .labor-print-sheet{max-width:none;margin:0;padding:0;border:0;border-radius:0;box-shadow:none}
  .labor-print-header h1{font-size:15pt}.labor-print-table th{font-size:7pt}.labor-print-table td{font-size:7.5pt;padding:5px 4px}.labor-print-totals{break-inside:avoid}.labor-receipt{break-inside:avoid;margin-top:28px}.labor-receipt>p{font-size:8pt}.labor-cut-line{left:0;right:0}.labor-receipt-signatures{margin:22px 0}
}

/* Nitidez tipográfica da venda: evita textos funcionais abaixo de 11 px. */
body.sale-screen{
  -webkit-font-smoothing:auto!important;
  text-rendering:auto!important;
}
body.sale-screen .sale-customer-head .sale-customer-summary-copy strong{
  font-size:12.5px!important;
  line-height:1.25!important;
}
body.sale-screen .sale-customer-head .sale-customer-summary-copy small,
body.sale-screen .sale-customer-head .sale-customer-summary-meta>span,
body.sale-screen .sale-stock-lock,
body.sale-screen .sale-panel-label small,
body.sale-screen .sale-items-title small,
body.sale-screen .sale-items-head-summary small,
body.sale-screen .sale-resume-head p,
body.sale-screen .sale-payment-heading small,
body.sale-screen .sale-secure-note,
body.sale-screen .sale-summary-empty{
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.35!important;
}
body.sale-screen .sale-customer-head .sale-customer-summary-meta>span{font-weight:700!important}
body.sale-screen .sale-advanced-options summary,
body.sale-screen .sale-head-action,
body.sale-screen .sale-vehicle-quick-btn,
body.sale-screen .sale-pro-tab,
body.sale-screen .sale-new-product-btn,
body.sale-screen .sale-menu-item{
  font-size:11px!important;
  line-height:1.2!important;
}
body.sale-screen .sale-items-head-summary strong,
body.sale-screen .sale-work-table .sale-item-product strong{
  font-size:11.5px!important;
  line-height:1.3!important;
}
body.sale-screen .sale-work-table thead th,
body.sale-screen .sale-work-table .sale-item-product small,
body.sale-screen .sale-work-table tbody td,
body.sale-screen .sale-pro-summary span,
body.sale-screen .sale-pro-summary small{
  font-size:11px!important;
  line-height:1.35!important;
}
body.sale-screen .topbar-title small,
body.sale-screen .topbar-status,
body.sale-screen .topbar-date,
body.sale-screen .topbar-user small,
body.sale-screen .sidebar-brand-copy small,
body.sale-screen .sidebar-brand-copy em{
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.25!important;
}
body.sale-screen .topbar-user strong{font-size:11.5px!important;line-height:1.25!important}
body.sale-screen .side-accordion-summary small,
body.sale-screen .sale-resume-panel .sale-pro-card-head small,
body.sale-screen .sale-use-customer-address,
body.sale-screen .sale-vehicle-dialog p,
body.sale-screen .sale-vehicle-remove,
body.sale-screen .sale-checkout-dock-total span{
  font-size:11px!important;
  font-weight:500!important;
  line-height:1.3!important;
}

/* Valor do serviço ajustável por venda, preservando o preço cadastrado. */
body.sale-screen .sale-registered-service-grid{
  grid-template-columns:minmax(220px,1fr) 125px 72px auto!important;
  align-items:end!important;
}
body.sale-screen .sale-registered-service-grid #servicePrice{
  border-color:#bfdbfe!important;
  background:#f8fbff!important;
  color:#1d4ed8!important;
  font-weight:750!important;
}

/* Perfil cadastral da empresa */
.company-profile-head{align-items:center}.company-profile-eyebrow{display:block;margin-bottom:6px;color:#2563eb;font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase}.company-profile-head p{color:#64748b}.company-profile-access{display:inline-flex;align-items:center;gap:7px;padding:9px 12px;border-radius:999px;font-size:.72rem;font-weight:800}.company-profile-access:before{content:"";width:7px;height:7px;border-radius:50%}.company-profile-access.can-edit{border:1px solid #bbf7d0;background:#f0fdf4;color:#15803d}.company-profile-access.can-edit:before{background:#22c55e}.company-profile-access.read-only{border:1px solid #dbe4ee;background:#f8fafc;color:#64748b}.company-profile-access.read-only:before{background:#94a3b8}.company-profile-layout{max-width:1050px}.company-profile-card{padding:22px;border-radius:18px}.company-profile-card .card-head{margin-bottom:18px}.company-profile-card .card-head h2{font-size:1.05rem}.company-profile-card .card-head p{margin:3px 0 0;color:#64748b;font-size:.78rem}.company-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.company-profile-grid label{font-size:.78rem}.company-profile-grid input[readonly]{background:#f8fafc;color:#475569;cursor:default}.company-document-row{display:grid;grid-template-columns:1fr auto;gap:8px}.company-document-row .btn{white-space:nowrap}.company-profile-actions{display:flex;align-items:center;justify-content:flex-end;margin:4px 0 28px}.company-profile-actions small{padding:12px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#f8fafc;color:#64748b}.company-profile-card #companyCnpjStatus{min-height:16px;color:#2563eb;font-weight:700}
@media(max-width:720px){.company-profile-head{align-items:flex-start}.company-profile-grid{grid-template-columns:1fr}.company-profile-grid .span-2{grid-column:auto}.company-document-row{grid-template-columns:1fr}.company-profile-actions .btn{width:100%}}

/* Alertas de vencimento das contas a pagar */
.topbar-notifications{position:relative}.topbar-notifications>summary{position:relative;width:42px;height:42px;display:grid;place-items:center;border:1px solid #dbe4ee;border-radius:12px;background:#fff;color:#526176;cursor:pointer;list-style:none;transition:.18s}.topbar-notifications>summary::-webkit-details-marker{display:none}.topbar-notifications>summary:hover,.topbar-notifications[open]>summary{border-color:#fdba74;background:#fff8f1;color:#ea580c}.topbar-notifications>summary svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.topbar-notifications>summary b{position:absolute;right:-5px;top:-6px;min-width:19px;height:19px;display:grid;place-items:center;padding:0 5px;border:2px solid #fff;border-radius:999px;background:#ef4444;color:#fff;font-size:.59rem}.topbar-notification-menu{position:absolute;right:0;top:50px;width:350px;max-height:430px;overflow:auto;padding:8px;border:1px solid #dce5ee;border-radius:16px;background:#fff;box-shadow:0 20px 48px rgba(15,23,42,.18);z-index:50}.topbar-notification-head{display:flex;align-items:center;justify-content:space-between;padding:9px 10px 12px;border-bottom:1px solid #edf1f5}.topbar-notification-head strong{font-size:.79rem}.topbar-notification-head a{font-size:.67rem;font-weight:800}.payable-alert-item{display:grid;grid-template-columns:9px 1fr;gap:10px;padding:11px 9px;border-bottom:1px solid #f0f3f6;color:#172033}.payable-alert-item:hover{background:#f8fafc}.payable-alert-item>span{width:8px;height:8px;margin-top:5px;border-radius:50%;background:#f59e0b}.payable-alert-item.overdue>span,.payable-alert-item.today>span{background:#ef4444}.payable-alert-item.advance>span{background:#2563eb}.payable-alert-item div{display:flex;flex-direction:column;min-width:0}.payable-alert-item strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.73rem}.payable-alert-item small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.64rem}.payable-alert-item em{margin-top:5px;color:#d97706;font-size:.63rem;font-style:normal;font-weight:850}.payable-alert-item.overdue em,.payable-alert-item.today em{color:#dc2626}.payable-alert-item.advance em{color:#2563eb}.topbar-notification-empty{display:flex;flex-direction:column;align-items:center;padding:28px 15px;text-align:center}.topbar-notification-empty strong{font-size:.76rem}.topbar-notification-empty small{margin-top:5px;font-size:.65rem}.payable-reminder-strip{display:grid;grid-template-columns:repeat(3,minmax(145px,1fr)) minmax(250px,1.4fr);gap:10px;align-items:stretch;margin-bottom:18px}.payable-reminder-strip article{display:flex;align-items:center;gap:11px;padding:14px;border:1px solid #e2e8f0;border-radius:15px;background:#fff}.payable-reminder-strip article>span{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#f1f5f9;color:#475569;font-weight:900}.payable-reminder-strip article div{display:flex;flex-direction:column}.payable-reminder-strip article strong{font-size:1.05rem}.payable-reminder-strip article small{font-size:.67rem}.payable-reminder-strip article.overdue>span{background:#fef2f2;color:#dc2626}.payable-reminder-strip article.today>span{background:#fff7ed;color:#ea580c}.payable-reminder-strip article.advance>span{background:#eff6ff;color:#2563eb}.payable-reminder-strip>p{display:flex;align-items:center;margin:0;padding:13px 15px;border:1px dashed #bfdbfe;border-radius:15px;background:#f8fbff;color:#475569;font-size:.72rem;line-height:1.45}
@media(max-width:900px){.payable-reminder-strip{grid-template-columns:repeat(3,1fr)}.payable-reminder-strip>p{grid-column:1/-1}.topbar-notification-menu{position:fixed;right:12px;top:66px;width:min(350px,calc(100vw - 24px))}}
@media(max-width:720px){.topbar-notifications>summary{width:38px;height:38px}.payable-reminder-strip{grid-template-columns:1fr}.payable-reminder-strip>p{grid-column:auto}.topbar-notification-menu{top:58px}}
@media(max-width:760px){
  body.sale-screen .sale-registered-service-grid{grid-template-columns:1fr!important}
}

/* Pagamento dividido e conferência de caixa */
.sale-payment-compact>.sale-payment-rows,.sale-payment-compact>.sale-payment-balance{grid-column:1/-1!important}.sale-payment-rows{display:flex;flex-direction:column;gap:8px}.sale-payment-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) 30px;gap:7px;align-items:end;padding:9px;border:1px solid #dce5ef;border-radius:12px;background:#f8fafc}.sale-payment-row label{min-width:0}.sale-payment-row label input,.sale-payment-row label select{min-width:0;width:100%}body.sale-screen .sale-payment-row label:nth-child(n){grid-column:auto!important}.sale-payment-row label:nth-last-of-type(1){grid-column:1/-2!important}.sale-payment-row .payment-received-label,.sale-payment-row .payment-due-label{display:none}.sale-payment-row.is-cash .payment-received-label,.sale-payment-row.is-deferred .payment-due-label{display:flex}.sale-payment-remove{width:30px;height:36px;border:0;border-radius:9px;background:#fee2e2;color:#b91c1c;font-size:19px;cursor:pointer}.sale-payment-balance{display:flex;flex-wrap:wrap;gap:8px;padding:10px;border-radius:11px;background:#eff6ff;color:#334155;font-size:.72rem}.sale-payment-balance span{padding:5px 8px;border-radius:8px;background:#fff}.sale-payment-balance .is-ok{color:#15803d}.sale-payment-balance .payment-change{color:#b45309}
.sale-payment-row .payment-amount[readonly]{border-color:#bfdbfe;background:#eff6ff;color:#1e3a8a;font-weight:800;cursor:default}
.sale-cash-warning{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:10px 14px;border:1px solid #fed7aa;border-radius:12px;background:#fff7ed;color:#9a3412;font-size:.75rem}.sale-cash-warning span{font-weight:850}.sale-cash-warning p{margin:0}.sale-cash-warning a{color:#c2410c;font-weight:800}
.cash-session-hero{display:grid;grid-template-columns:minmax(210px,1.4fr) minmax(140px,.7fr) minmax(140px,.7fr) minmax(320px,1.7fr);gap:12px;align-items:center;margin-bottom:18px;padding:18px;border:1px solid #dbe4ee;border-radius:18px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.06)}.cash-session-hero.is-open{border-color:#bbf7d0;background:linear-gradient(120deg,#f0fdf4,#fff)}.cash-session-hero.is-closed{grid-template-columns:minmax(230px,1fr) minmax(420px,1.4fr);border-color:#fed7aa;background:linear-gradient(120deg,#fff7ed,#fff)}.cash-session-hero>div,.cash-session-hero article{display:flex;flex-direction:column}.cash-session-hero>div>span{color:#15803d;font-size:.68rem;font-weight:850;text-transform:uppercase}.cash-session-hero.is-closed>div>span{color:#c2410c}.cash-session-hero>div strong{margin:4px 0;font-size:1rem}.cash-session-hero small,.cash-session-hero article span{color:#64748b;font-size:.68rem}.cash-session-hero article strong{margin-top:5px;font-size:1.15rem}.cash-close-form,.cash-open-form{display:grid;grid-template-columns:1fr 1.3fr auto;gap:8px;align-items:end}.cash-method-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin-bottom:16px}
@media(max-width:1000px){.sale-payment-row{grid-template-columns:repeat(2,minmax(0,1fr)) 32px}.sale-payment-row label:last-of-type{grid-column:1/-2!important}.cash-session-hero,.cash-session-hero.is-closed{grid-template-columns:1fr 1fr}.cash-close-form,.cash-open-form{grid-column:1/-1}}
@media(max-width:650px){.sale-payment-row{grid-template-columns:1fr}.sale-payment-row label:last-of-type{grid-column:auto}.sale-payment-remove{width:100%}.cash-session-hero,.cash-session-hero.is-closed{grid-template-columns:1fr}.cash-close-form,.cash-open-form{grid-template-columns:1fr}}

/* Bloco de pagamento centralizado e sem o vazio entre título e campos */
body.sale-screen .sale-resume-panel{
  grid-template-areas:"summary-head summary-head" "summary-list payment-panel" "summary-total payment-panel" "summary-actions summary-actions" "summary-safe summary-safe"!important;
}
body.sale-screen .sale-payment-panel{
  grid-area:payment-panel;
  align-self:center;
  width:calc(100% - 12px);
  max-width:760px;
  margin:12px 12px 12px 0;
  padding:12px;
  border:1px solid #dbe6f2;
  border-radius:16px;
  background:linear-gradient(145deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 8px 22px rgba(15,32,51,.055);
}
body.sale-screen .sale-payment-panel .sale-payment-heading{
  display:flex!important;
  justify-content:center;
  margin:0 0 10px!important;
  padding-bottom:9px;
  border-bottom:1px solid #e8eef5;
}
body.sale-screen .sale-payment-panel .sale-payment-heading span{
  width:28px;
  height:28px;
  border-radius:9px;
}
body.sale-screen .sale-payment-panel .sale-payment-heading strong{
  font-size:12px!important;
}
body.sale-screen .sale-payment-panel .sale-payment-compact{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  width:100%;
  padding:0!important;
  gap:9px!important;
}
body.sale-screen .sale-payment-row{
  grid-template-columns:minmax(0,1.05fr) minmax(0,.85fr) minmax(0,1fr) minmax(0,1.05fr) 36px;
  gap:9px;
  padding:11px;
  border-color:#d8e4f0;
  background:#fff;
  box-shadow:0 3px 10px rgba(15,32,51,.035);
}
body.sale-screen .sale-payment-panel .sale-payment-row label:nth-last-of-type(1){
  grid-column:auto!important;
}
body.sale-screen .sale-payment-remove{
  width:36px;
  transition:background .18s,transform .18s;
}
body.sale-screen .sale-payment-remove:hover{
  background:#fecaca;
  transform:translateY(-1px);
}
body.sale-screen .sale-payment-add{
  justify-self:center;
  min-width:220px;
  border:1px dashed #bfdbfe!important;
  border-radius:10px!important;
  background:#f8fbff!important;
  color:#2563eb!important;
  font-weight:750!important;
}
body.sale-screen .sale-payment-add span{
  display:inline-grid;
  place-items:center;
  width:18px;
  height:18px;
  margin-right:4px;
  border-radius:50%;
  background:#dbeafe;
}
body.sale-screen .sale-payment-balance{
  justify-content:center;
  align-items:center;
  padding:9px;
  border:1px solid #dbeafe;
  background:#eff6ff;
}
body.sale-screen .sale-payment-balance span{
  min-width:125px;
  text-align:center;
  box-shadow:0 2px 7px rgba(15,32,51,.035);
}
@container sale-page (max-width:850px){
  body.sale-screen .sale-resume-panel{
    grid-template-areas:"summary-head" "summary-list" "summary-total" "payment-panel" "summary-actions" "summary-safe"!important;
  }
  body.sale-screen .sale-payment-panel{
    width:auto;
    max-width:none;
    margin:8px 10px 12px;
  }
}
@media(max-width:650px){
  body.sale-screen .sale-payment-row{grid-template-columns:1fr}
  body.sale-screen .sale-payment-remove{width:100%}
  body.sale-screen .sale-payment-add{width:100%;min-width:0}
}

/* Navegação SaaS do superadministrador */
body .superadmin-company-group{overflow:visible!important}
body .superadmin-company-group[open]{overflow:hidden!important}
body .superadmin-company-submenu{padding:0 9px 10px!important}
.saas-sidebar-search-label{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.saas-sidebar-search{width:100%;height:36px;margin:1px 0 7px;padding:8px 10px;border:1px solid rgba(147,197,253,.2);border-radius:10px;background:rgba(2,16,31,.32);color:#fff;font-family:inherit;font-size:11.5px;outline:0}
.saas-sidebar-search::placeholder{color:#8daac4}
.saas-sidebar-search:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(37,99,235,.18)}
.saas-sidebar-companies{display:grid;gap:5px;max-height:310px;overflow-y:auto;padding-right:2px;scrollbar-width:thin;scrollbar-color:rgba(147,197,253,.28) transparent}
.saas-company-shortcut{min-width:0;display:grid!important;grid-template-columns:8px minmax(0,1fr) 12px;align-items:center;gap:8px;padding:9px 8px!important;border:1px solid rgba(147,197,253,.08);border-radius:10px;background:rgba(1,12,24,.22)!important;color:#d9eaff!important;text-decoration:none}
.saas-company-shortcut[hidden]{display:none!important}
.saas-company-shortcut:hover,.saas-company-shortcut.active{border-color:rgba(255,178,29,.28);background:linear-gradient(90deg,rgba(255,159,10,.15),rgba(37,99,235,.12))!important;transform:translateX(2px)}
.saas-company-status{width:7px;height:7px;border-radius:50%;background:#94a3b8;box-shadow:0 0 0 3px rgba(148,163,184,.1)}
.saas-company-status.status-active{background:#34d399;box-shadow:0 0 0 3px rgba(52,211,153,.11)}
.saas-company-status.status-trial,.saas-company-status.status-past_due{background:#fbbf24;box-shadow:0 0 0 3px rgba(251,191,36,.11)}
.saas-company-status.status-suspended,.saas-company-status.status-blocked,.saas-company-status.status-canceled{background:#fb7185;box-shadow:0 0 0 3px rgba(251,113,133,.11)}
.saas-company-shortcut-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.saas-company-shortcut-copy b{overflow:hidden;color:#f7fbff;font-size:11px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.saas-company-shortcut-copy small{overflow:hidden;color:#8faac4;font-size:9.5px;text-overflow:ellipsis;white-space:nowrap}
.saas-company-arrow{color:#7f9bb6;font-size:17px}
.saas-company-empty{margin:6px 2px 0;color:#9bb3ca;font-size:10.5px;text-align:center}
body.sidebar-collapsed .superadmin-company-group .side-submenu{display:none!important}
@media(max-width:1000px){.saas-sidebar-companies{max-height:38vh}}

/* Localização física detalhada dos produtos. */
.product-location-box{border-color:#bfdbfe!important;background:linear-gradient(145deg,#f8fbff,#fff)!important}
.product-location-preview{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:11px 13px;border:1px dashed #93c5fd;border-radius:12px;background:#eff6ff}
.product-location-preview span{color:#64748b;font-size:12px;font-weight:750}
.product-location-preview strong{color:#174f85;font-size:13px;text-align:right}
@media(max-width:640px){.product-location-preview{align-items:flex-start;flex-direction:column}.product-location-preview strong{text-align:left}}

/* Exclusão segura de lançamentos manuais do caixa */
.cash-action-column{width:92px;text-align:center!important;white-space:nowrap}.cash-delete-form{display:inline-flex;margin:0}.cash-delete-btn{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:30px;padding:5px 9px;border:1px solid #fecaca;border-radius:9px;background:#fff5f5;color:#b91c1c;font-size:.68rem;font-weight:800;cursor:pointer;transition:.18s}.cash-delete-btn span{font-size:16px;line-height:1}.cash-delete-btn:hover{border-color:#fca5a5;background:#fee2e2;transform:translateY(-1px)}.cash-locked-entry{display:inline-flex;padding:5px 8px;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.62rem;font-weight:750}.cash-transactions-table tbody tr:hover{background:#f8fafc}
.cash-period-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 16px}.cash-method-grid .stat{border-left:3px solid #cbd5e1}.cash-method-grid .stat.is-cash{border-color:#16a34a;background:linear-gradient(135deg,#f0fdf4,#fff)}.cash-method-grid .stat small{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}.cash-physical-total{padding:10px;border-radius:12px;background:#dcfce7}.cash-edit-card{border:1px solid #93c5fd;background:linear-gradient(135deg,#eff6ff,#fff)}.cash-report-filter{align-items:end;flex-wrap:wrap}.cash-report-filter label{min-width:120px}.cash-report-filter label:first-child{min-width:220px;flex:1}.cash-report-actions{margin-left:auto}.cash-origin-link{font-weight:750;color:#145b8f;text-decoration:none}.cash-origin-link:hover{text-decoration:underline}.cash-row-actions{display:flex;align-items:center;justify-content:center;gap:6px}.btn-sm{min-height:30px!important;padding:5px 9px!important;font-size:.68rem!important}.cash-pagination{display:flex;align-items:center;justify-content:center;gap:12px;margin:12px 0 18px}.cash-pagination span{font-size:.78rem;font-weight:750;color:#64748b}.badge-success{background:#dcfce7!important;color:#166534!important}.badge-danger{background:#fee2e2!important;color:#991b1b!important}.badge-warning{background:#fffaeb!important;color:#b54708!important}
@media(max-width:900px){.cash-period-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cash-report-actions{width:100%;margin-left:0}.cash-action-column{width:auto}}
@media(max-width:540px){.cash-period-grid{grid-template-columns:1fr}.cash-row-actions{align-items:stretch;flex-direction:column}.cash-report-filter label,.cash-report-filter label:first-child{width:100%;min-width:0}}
.telegram-recipient-panel{margin:14px 0;padding:14px;border:1px solid #dbeafe;border-radius:14px;background:#f8fbff}.telegram-recipient-list{display:grid;gap:8px}.telegram-recipient-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 12px;border:1px solid #dbe4ee;border-radius:11px;background:#fff}.telegram-recipient-item>div:first-child{display:flex;flex-direction:column}.telegram-recipient-item small{color:#64748b}.telegram-recipient-item.is-paused{opacity:.65;background:#f8fafc}.telegram-recipient-item .actions{display:flex;gap:6px}.telegram-recipient-item form{margin:0}.telegram-add-recipient{display:grid;grid-template-columns:minmax(260px,1fr) auto;gap:10px;align-items:end;margin-top:12px}.telegram-add-recipient .hint-box{margin:0}.telegram-add-recipient .form-inline{display:flex;gap:8px;align-items:end}.telegram-add-recipient input{min-width:210px}
@media(max-width:720px){.telegram-add-recipient{grid-template-columns:1fr}.telegram-add-recipient .form-inline{align-items:stretch;flex-direction:column}.telegram-recipient-item{align-items:flex-start;flex-direction:column}.telegram-recipient-item .actions{width:100%}}
.topbar-profile-menu .topbar-operation-switch{margin:4px 0;background:#eff6ff;color:#145b8f}.topbar-profile-menu .topbar-operation-switch:hover{background:#dbeafe;color:#0c4a6e}.topbar-operation-switch span{margin-left:auto;max-width:92px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:.58rem}.operation-current-card{display:flex;flex-direction:column;margin-bottom:16px;padding:16px 18px;border:1px solid #bbf7d0;border-radius:16px;background:linear-gradient(135deg,#f0fdf4,#fff)}.operation-current-card span,.operation-switch-card span{color:#64748b;font-size:.66rem;font-weight:800;text-transform:uppercase}.operation-current-card strong{margin:4px 0;color:#166534;font-size:1.15rem}.operation-current-card small{color:#64748b}.operation-switch-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px;margin-bottom:16px}.operation-switch-card{display:grid;grid-template-columns:48px 1fr;gap:10px;align-items:start;border:1px solid #bfdbfe}.operation-switch-icon{display:flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:13px;background:#dbeafe;color:#145b8f;font-size:1.3rem;font-weight:900}.operation-switch-card h2{margin:3px 0}.operation-switch-card p{margin:0;color:#64748b}.operation-switch-card form,.operation-switch-card .hint-box{grid-column:1/-1}.operation-switch-card form{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end}.operation-switch-card form label{display:flex;flex-direction:column;gap:5px}.operation-pin-card{display:grid;grid-template-columns:1fr minmax(420px,1.4fr);gap:18px;align-items:end}.operation-pin-card h2{margin:0 0 4px}.operation-pin-card p{margin:0;color:#64748b}.operation-pin-card .form-inline{display:grid;grid-template-columns:1fr 1fr auto;gap:8px;align-items:end}
@media(max-width:760px){.operation-pin-card{grid-template-columns:1fr}.operation-pin-card .form-inline,.operation-switch-card form{grid-template-columns:1fr}}
.telegram-recipient-list.detailed{grid-template-columns:repeat(auto-fit,minmax(330px,1fr))}.telegram-recipient-config{display:block!important;padding:0!important;overflow:hidden}.telegram-recipient-config>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px;cursor:pointer;list-style:none}.telegram-recipient-config>summary::-webkit-details-marker{display:none}.telegram-recipient-config[open]>summary{border-bottom:1px solid #e2e8f0;background:#f8fafc}.telegram-recipient-health{display:flex;align-items:center}.telegram-recipient-preferences{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:13px}.telegram-recipient-preferences>label{display:flex;flex-direction:column;gap:4px}.telegram-recipient-message-types{grid-column:1/-1;display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:7px;padding:10px;border-radius:10px;background:#f8fafc}.telegram-recipient-message-types label{display:flex;align-items:center;gap:6px;font-size:.7rem}.telegram-recipient-preferences .alert,.telegram-recipient-preferences .actions{grid-column:1/-1}.telegram-recipient-footer{padding:0 13px 13px}.telegram-secure-pairing{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;margin-top:14px;padding:14px;border:1px dashed #60a5fa;border-radius:13px;background:#eff6ff}.telegram-secure-pairing h3{margin:0 0 4px}.telegram-secure-pairing p{margin:0;color:#64748b}.telegram-pairing-code{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.telegram-pairing-code small{width:100%;color:#475569}.telegram-pairing-code code{padding:10px 13px;border-radius:9px;background:#0f172a;color:#fff;font-size:.9rem}.telegram-manual-form{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.telegram-manual-form textarea{resize:vertical}.telegram-quiet-hours{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px;border:1px solid #e2e8f0;border-radius:11px;background:#f8fafc}.telegram-quiet-hours label{display:flex;align-items:center;gap:5px}.telegram-quiet-hours small{color:#64748b}.telegram-reset-template{align-self:flex-start;margin-top:5px}.telegram-preview{padding:10px;border:1px solid #dbe4ee;border-radius:11px}.telegram-preview summary{cursor:pointer;font-weight:800}.telegram-preview-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:9px}.telegram-preview pre{margin:0;padding:12px;border-radius:9px;background:#0f172a;color:#e2e8f0;white-space:pre-wrap;font-family:Inter,sans-serif;font-size:.68rem}.notification-error{display:block;max-width:320px;margin-top:4px;color:#b45309}.notifications-history-card form{margin:0}
@media(max-width:760px){.telegram-recipient-list.detailed,.telegram-recipient-preferences,.telegram-secure-pairing,.telegram-manual-form,.telegram-preview-grid{grid-template-columns:1fr}.telegram-secure-pairing{align-items:stretch}.telegram-recipient-config>summary{align-items:flex-start;flex-direction:column}}

/* O menu de notificações deve permanecer acima dos painéis da página */
body .topbar.topbar-pro{z-index:100!important;overflow:visible!important}.topbar-actions{position:relative;z-index:105}.topbar-notifications[open]{z-index:110}.topbar-notification-menu{z-index:120!important}

/* Relatório de caixa para impressão e PDF */
.cash-report-filter{align-items:flex-end}.cash-report-actions{display:flex;gap:8px;margin-left:auto}.cash-report-sheet{max-width:1180px;margin:24px auto;padding:28px;border:1px solid #dbe4ee;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(15,32,51,.08)}.cash-report-print-head{display:flex;justify-content:space-between;gap:24px;padding-bottom:18px;border-bottom:2px solid #172033}.cash-report-print-head>div:first-child>span{color:#f97316;font-size:.68rem;font-weight:900;letter-spacing:.12em}.cash-report-print-head h1{margin:6px 0 3px;font-size:1.45rem}.cash-report-print-head p,.cash-report-print-head small{margin:0;color:#64748b}.cash-report-print-meta{display:flex;flex-direction:column;align-items:flex-end;text-align:right}.cash-report-print-meta strong{font-size:1rem}.cash-report-print-meta span{margin:6px 0;color:#334155;font-weight:750}.cash-report-print-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:18px 0}.cash-report-print-totals article{padding:16px;border:1px solid #dbe4ee;border-radius:14px;background:#f8fafc}.cash-report-print-totals span{display:block;color:#64748b;font-size:.72rem;font-weight:750}.cash-report-print-totals strong{display:block;margin-top:7px;color:#15803d;font-size:1.25rem}.cash-report-print-totals article:nth-child(2) strong,.cash-report-print-totals article.negative strong{color:#dc2626}.cash-report-methods,.cash-report-entries{margin-top:22px}.cash-report-methods h2,.cash-report-entries h2{font-size:1rem}.cash-report-sheet table{min-width:0}.cash-report-sheet th,.cash-report-sheet td{padding:8px;font-size:.72rem}.cash-report-type{display:inline-flex;padding:4px 7px;border-radius:999px;background:#fef2f2;color:#dc2626;font-size:.63rem;font-weight:800}.cash-report-type.entrada{background:#f0fdf4;color:#15803d}.cash-report-print-footer{margin-top:24px;padding-top:10px;border-top:1px solid #e2e8f0;color:#64748b;font-size:.65rem;text-align:center}.cash-report-print-actions{display:flex;justify-content:center;gap:8px;margin-top:18px}
@media(max-width:800px){.cash-report-actions{width:100%;margin-left:0}.cash-report-actions .btn{flex:1}.cash-report-print-head{flex-direction:column}.cash-report-print-meta{align-items:flex-start;text-align:left}.cash-report-print-totals{grid-template-columns:1fr}.cash-report-sheet{margin:0;padding:16px;border:0;border-radius:0}.cash-report-entries{overflow:auto}}
@media print{.cash-report-sheet{max-width:none;margin:0;padding:0;border:0;box-shadow:none}.cash-report-print-head{break-inside:avoid}.cash-report-print-totals{break-inside:avoid}.cash-report-sheet table{font-size:8pt}.cash-report-sheet thead{display:table-header-group}.cash-report-sheet tr{break-inside:avoid}.cash-report-sheet th,.cash-report-sheet td{padding:5px 4px}.cash-report-print-footer{position:static}}

/* Reversão de contas pagas */
.payable-paid-meta{display:block;margin-top:5px;color:#64748b;font-size:.62rem}.payable-undo-form{display:inline-flex;margin:0}.payable-undo-btn{white-space:nowrap;background:#fff5f5!important;border-color:#fecaca!important;color:#b91c1c!important}.payable-undo-btn:hover{background:#fee2e2!important;border-color:#fca5a5!important}

/* Cabeçalho refinado: hierarquia mais limpa e ações do PDV em destaque */
.topbar.topbar-pro{height:68px;padding-inline:20px;gap:16px}
.topbar-company{flex:1 1 310px;max-width:470px}
.topbar-title strong{font-size:.86rem}
.topbar-title small{gap:8px;margin-top:4px;min-width:0}
.topbar-unit{display:inline-flex!important;align-items:center;gap:5px;color:#526176!important;font-weight:750;white-space:nowrap}
.topbar-unit i{width:6px;height:6px;border-radius:50%;background:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.10)}
.topbar-brand-label{min-width:0;max-width:245px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#8a98aa!important}
.topbar-cash-status{height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border:1px solid #bbf7d0;border-radius:10px;background:#f0fdf4;color:#15803d;font-size:.67rem;font-weight:800;text-decoration:none;white-space:nowrap;transition:.18s}
.topbar-cash-status i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.13)}
.topbar-cash-status:hover{border-color:#86efac;background:#eafbed;transform:translateY(-1px)}
.topbar-cash-status.is-closed{border-color:#fed7aa;background:#fff7ed;color:#c2410c}
.topbar-cash-status.is-closed i{background:#f97316;box-shadow:0 0 0 3px rgba(249,115,22,.12)}
.topbar-actions{gap:8px}
.topbar-profile{position:relative}
.topbar-profile>summary{list-style:none;cursor:pointer}
.topbar-profile>summary::-webkit-details-marker{display:none}
.topbar-user{padding-right:8px}
.topbar-user strong{max-width:132px;font-size:.7rem}
.topbar-user-chevron{width:15px;height:15px;flex:0 0 15px;fill:none;stroke:#94a3b8;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s}
.topbar-profile[open] .topbar-user{border-color:#fdba74;background:#fffaf5;box-shadow:0 6px 14px rgba(249,115,22,.08)}
.topbar-profile[open] .topbar-user-chevron{transform:rotate(180deg);stroke:#ea580c}
.topbar-profile-menu{position:absolute;right:0;top:49px;width:235px;padding:8px;border:1px solid #dce5ee;border-radius:15px;background:#fff;box-shadow:0 20px 48px rgba(15,23,42,.18);z-index:130}
.topbar-profile-head{display:flex;align-items:center;gap:9px;padding:8px 8px 11px;margin-bottom:5px;border-bottom:1px solid #edf1f5}
.topbar-profile-head>div{display:flex;flex-direction:column;min-width:0}
.topbar-profile-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033;font-size:.74rem}
.topbar-profile-head small{margin-top:2px;color:#7b8b9d;font-size:.61rem}
.topbar-profile-menu>a{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:9px;color:#334155;font-size:.69rem;font-weight:750;text-decoration:none}
.topbar-profile-menu>a:hover{background:#f8fafc;color:#172033}
.topbar-profile-menu>a svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.topbar-profile-menu .topbar-profile-logout{margin-top:5px;border-top:1px solid #edf1f5;border-radius:0 0 9px 9px;color:#b91c1c}
.topbar-profile-menu .topbar-profile-logout:hover{background:#fff5f5;color:#dc2626}
.topbar-new-sale.btn{border-color:#ea580c;background:linear-gradient(135deg,#f97316,#ea580c);box-shadow:0 7px 17px rgba(234,88,12,.23);font-weight:850}
.topbar-new-sale.btn:hover{background:linear-gradient(135deg,#fb7f24,#dc4c08);box-shadow:0 10px 22px rgba(234,88,12,.30)}
.topbar-finance-shortcut.btn{height:42px;min-height:42px;gap:7px;padding:0 13px;border-color:#cbdcf2;background:#f4f8ff;color:#174a82;font-size:.72rem;font-weight:850;box-shadow:none}.topbar-finance-shortcut.btn svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.topbar-finance-shortcut.btn:hover{filter:none;background:#eaf2ff;border-color:#9bbce3;color:#0f3d70}
@media(max-width:1260px){.topbar-cash-status{display:none}.topbar-brand-label{max-width:180px}.topbar-user strong{max-width:92px}}
@media(max-width:720px){.topbar.topbar-pro{height:62px;padding-inline:12px}.topbar-company{flex:1 1 auto}.topbar-profile{display:none}.topbar-title small{display:none}.topbar-new-sale.btn{height:38px;min-height:38px}.topbar-finance-shortcut.btn{width:38px;height:38px;min-height:38px;padding:0;font-size:0}.topbar-finance-shortcut.btn span{display:none}.topbar-notifications>summary{width:38px;height:38px}}

/* Empresa, unidade e usuário no mesmo ponto do cabeçalho */
.topbar-company-profile{position:relative;flex:1 1 360px;max-width:530px;min-width:0}
.topbar-company-profile>.topbar-company{width:100%;max-width:none;min-height:50px;padding:4px 8px 4px 0;border-radius:13px;cursor:pointer;list-style:none;transition:background .18s,box-shadow .18s}
.topbar-company-profile>.topbar-company::-webkit-details-marker{display:none}
.topbar-company-profile>.topbar-company:hover,.topbar-company-profile[open]>.topbar-company{background:#f8fafc;box-shadow:0 0 0 1px #e7edf4}
.topbar-company-profile .topbar-title{flex:1;overflow:hidden}
.topbar-company-profile .topbar-title small{overflow:hidden}
.topbar-operator-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#718096!important;font-weight:600}
.topbar-company-profile .topbar-user-chevron{margin-left:auto}
.topbar-company-profile .topbar-profile-menu{left:0;right:auto;top:56px}
.topbar-company-profile[open] .topbar-user-chevron{transform:rotate(180deg);stroke:#ea580c}

/* Estado recolhido da barra lateral: somente ícones, sem sobras de texto */
body.sidebar-collapsed .sidebar-pro{width:82px!important;padding:12px 8px!important;overflow-x:hidden!important}
body.sidebar-collapsed .main{margin-left:82px!important}
body.sidebar-collapsed .sidebar-brand-copy,
body.sidebar-collapsed .side-accordion-summary strong,
body.sidebar-collapsed .side-accordion-summary .side-chevron,
body.sidebar-collapsed .side-submenu,
body.sidebar-collapsed .sidebar-utility-links,
body.sidebar-collapsed .side-nav-link strong,
body.sidebar-collapsed .side-logout strong{display:none!important}
body.sidebar-collapsed .side-accordion-summary,
body.sidebar-collapsed .side-nav-link,
body.sidebar-collapsed .side-help,
body.sidebar-collapsed .side-logout{justify-content:center!important;gap:0!important;padding-inline:8px!important;text-align:center!important}
body.sidebar-collapsed .side-accordion-summary .side-icon,
body.sidebar-collapsed .side-nav-link .side-icon{margin:0!important}
body.sidebar-collapsed .sidebar-footer{overflow:hidden!important}
body.sidebar-collapsed .sidebar-brand-copy{visibility:hidden!important;width:0!important;max-width:0!important;flex:0 0 0!important;overflow:hidden!important;pointer-events:none!important}
body.sidebar-collapsed .sidebar-brand-copy>*{visibility:hidden!important;width:0!important;max-width:0!important;overflow:hidden!important}
body.sidebar-collapsed .brand-pro>.sidebar-brand-copy{display:none!important;position:absolute!important;clip:rect(0 0 0 0)!important;clip-path:inset(100%)!important}

/* Alinhamento final entre a lateral e a barra branca */
body .main{margin-left:292px!important}
.topbar.topbar-pro{padding-inline:12px}
@media(max-width:1000px){body .main,body.sidebar-collapsed .main{margin-left:0!important}.topbar-company-profile{display:block;flex:1 1 auto;max-width:none}.topbar-company-profile .topbar-user-chevron{display:none}}

/* Controle discreto do menu no cabecalho, sem cobrir os modulos laterais. */
@media(min-width:1001px){
  body .sidebar-restore-btn{display:none!important}
  body .sidebar-pro .side-bottom-toggle{display:none!important}
  body .topbar-menu-btn{
    display:inline-grid!important;
    place-items:center!important;
    flex:0 0 38px!important;
    width:38px!important;
    height:38px!important;
    min-height:38px!important;
    padding:0!important;
    border:1px solid #d7e0ea!important;
    border-radius:10px!important;
    background:#fff!important;
    color:#334155!important;
    box-shadow:0 2px 7px rgba(15,23,42,.06)!important;
    cursor:pointer!important;
  }
  body .topbar-menu-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  body .topbar-menu-btn:hover{border-color:#94a3b8!important;background:#f8fafc!important;color:#0f172a!important}
}

/* Totais e pagamento alinhados no fechamento da venda */
@container sale-page (min-width:851px){
  body.sale-screen .sale-resume-panel{
    grid-template-areas:"summary-head summary-head" "summary-total payment-panel" "summary-actions summary-actions" "summary-safe summary-safe"!important;
    align-items:stretch!important;
  }
  body.sale-screen .sale-summary-list{display:none!important}
  body.sale-screen .sale-resume-panel .sale-pro-summary{
    align-self:stretch!important;
    height:auto!important;
    min-height:0!important;
    margin:12px 0 12px 12px!important;
  }
  body.sale-screen .sale-resume-panel .sale-pro-summary>div:last-child{margin-top:auto!important}
  body.sale-screen .sale-payment-panel{
    align-self:stretch!important;
    height:auto!important;
    margin:12px 12px 12px 0!important;
  }
}

/* Fechamento do PDV: pagamento simples, campos contextuais e atalhos. */
body.sale-screen .sale-summary-count{display:inline-flex;align-items:center;margin-left:7px;padding:3px 7px;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:10px;font-weight:800;vertical-align:middle}
body.sale-screen .sale-payment-heading>div{display:flex;flex-direction:column;align-items:flex-start;gap:2px}
body.sale-screen .sale-payment-heading>div strong{line-height:1.1}
body.sale-screen .sale-payment-heading>div small{color:#718096;font-size:10px;font-weight:600}
body.sale-screen .payment-details-label{display:none}
body.sale-screen .sale-payment-row.has-details .payment-details-label{display:flex}
body.sale-screen .sale-payment-rows.is-single-payment .sale-payment-remove{display:none}
body.sale-screen .sale-payment-rows.is-single-payment .payment-amount-label{display:none}
body.sale-screen .sale-payment-rows.is-single-payment .sale-payment-row{grid-template-columns:repeat(2,minmax(0,1fr))}
body.sale-screen .sale-payment-rows.is-single-payment .sale-payment-row.is-deferred{grid-template-columns:repeat(3,minmax(0,1fr))}
body.sale-screen .sale-discount-details{min-width:0;border:1px solid #dce5ef;border-radius:10px;background:#fff;overflow:hidden}
body.sale-screen .sale-discount-details>summary{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 10px;color:#475569;font-size:11px;font-weight:750;cursor:pointer;list-style:none}
body.sale-screen .sale-discount-details>summary::-webkit-details-marker{display:none}
body.sale-screen .sale-discount-details>summary:before{content:"+";width:18px;height:18px;display:grid;place-items:center;border-radius:6px;background:#eff6ff;color:#2563eb;font-weight:900}
body.sale-screen .sale-discount-details[open]>summary:before{content:"−"}
body.sale-screen .sale-discount-details>summary span{margin-right:auto}
body.sale-screen .sale-discount-details>summary b{color:#0f172a;font-size:11px}
body.sale-screen .sale-discount-details>label{padding:0 9px 9px}
body.sale-screen .sale-notes-field{min-width:0}
body.sale-screen .sale-keyboard-hints{grid-area:summary-safe!important;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px 16px;margin:-2px 12px 10px;color:#718096;font-size:10px}
body.sale-screen .sale-keyboard-hints span{display:inline-flex;align-items:center;gap:5px}
body.sale-screen .sale-keyboard-hints kbd{min-width:25px;padding:3px 5px;border:1px solid #d6dee8;border-bottom-width:2px;border-radius:6px;background:#fff;color:#334155;font:700 9px/1.2 "Segoe UI",Arial,sans-serif;text-align:center;box-shadow:0 1px 2px rgba(15,23,42,.05)}
body.sale-screen .sale-final-btn:disabled{background:#e5eaf0!important;color:#64748b!important;opacity:1!important;box-shadow:none!important;cursor:not-allowed!important}
body.sale-screen .sale-final-btn:disabled .sale-final-check{background:#f8fafc!important;color:#94a3b8!important}
body.sale-screen .sale-final-btn:disabled .sale-final-label{font-size:12px!important}
body.sale-screen .sale-dock-finalize .sale-final-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-style:normal}
body.sale-screen .sale-payment-balance.has-mismatch{border-color:#fed7aa!important;background:#fff7ed!important}
body.sale-screen .sale-payment-balance.has-mismatch #paymentRemainingWrap{color:#c2410c!important;font-weight:800}
body.sale-screen .sale-payment-balance.has-change .payment-change{min-width:155px;background:#fff7ed!important;color:#c2410c!important;font-size:13px;font-weight:850;box-shadow:0 0 0 1px #fed7aa,0 4px 12px rgba(194,65,12,.08)!important}

/* Leitura assistida de boletos em Contas a Pagar. */
.payable-create-card{overflow:hidden}.payable-create-card .card-head p{margin:3px 0 0;color:#64748b;font-size:12px}.payable-create-form{display:grid;gap:15px}.payable-document-import{display:grid;grid-template-columns:minmax(260px,1fr) auto minmax(280px,1.15fr);align-items:end;gap:10px;padding:13px;border:1px dashed #93c5fd;border-radius:14px;background:#f8fbff}.payable-file-field{min-width:0}.payable-file-field input{height:42px;padding:7px 9px;background:#fff}.payable-analysis-status{min-height:42px;display:flex;align-items:center;padding:9px 11px;border:1px solid #dbe4ee;border-radius:10px;background:#fff;color:#64748b;font-size:11px;line-height:1.35}.payable-analysis-status.is-loading{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.payable-analysis-status.is-success{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.payable-analysis-status.is-warning{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.payable-analysis-status.is-danger{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.payable-fields-grid{align-items:end}.payable-fields-grid textarea{min-height:64px}.payable-document-confirm{align-items:flex-start!important;padding:11px 12px;border:1px solid #bbf7d0;border-radius:11px;background:#f0fdf4;color:#166534!important;font-size:12px}.payable-document-confirm input{margin-top:2px}.payable-submit-button{justify-self:start;min-width:190px}.payable-code-summary,.payable-attachment-link{display:block;margin-top:4px;font-size:10px;font-weight:750}.payable-code-summary{color:#2563eb}.payable-attachment-link{width:max-content;color:#ea580c}
.payable-bulk-review{padding:14px;border:1px solid #bfdbfe;border-radius:14px;background:#f8fbff}.payable-bulk-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:11px}.payable-bulk-heading strong{display:block;color:#1d4ed8;font-size:14px}.payable-bulk-heading small{display:block;margin-top:3px;color:#64748b}.payable-bulk-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.payable-bulk-actions span{padding:5px 9px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:11px;font-weight:850}.payable-bulk-list{display:grid;gap:10px;max-height:520px;overflow:auto;padding-right:4px}.payable-bulk-item{padding:12px;border:1px solid #dbe4ee;border-radius:12px;background:#fff;box-shadow:0 3px 10px rgba(15,23,42,.04);transition:.18s}.payable-bulk-item-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.payable-bulk-item-title{display:block;color:#172033}.payable-bulk-selector{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:7px;padding:6px 9px;border:1px solid #86efac;border-radius:9px;background:#f0fdf4;color:#166534!important;font-size:11px!important;font-weight:850!important;cursor:pointer}.payable-bulk-selector input{width:16px;height:16px;margin:0;accent-color:#16a34a}.payable-bulk-item.is-unselected{border-color:#e2e8f0;background:#f1f5f9;box-shadow:none;opacity:.72}.payable-bulk-item.is-unselected .payable-bulk-selector{border-color:#cbd5e1;background:#fff;color:#64748b!important}.payable-bulk-item.is-unselected .payable-bulk-item-grid{filter:grayscale(.5)}.payable-bulk-item-grid{display:grid;grid-template-columns:1.3fr .55fr .65fr 1.25fr;gap:8px}.payable-bulk-item-grid label:last-child{grid-column:1/-1}.payable-bulk-item-grid textarea{min-height:52px;resize:vertical}.payable-create-form.is-bulk-payable .payable-single-only{display:none!important}
@media(max-width:900px){.payable-document-import{grid-template-columns:1fr auto}.payable-analysis-status{grid-column:1/-1}.payable-fields-grid{grid-template-columns:1fr 1fr}}
@media(max-width:900px){.payable-bulk-heading{flex-direction:column}.payable-bulk-actions{justify-content:flex-start}.payable-bulk-item-grid{grid-template-columns:1fr 1fr}.payable-bulk-item-grid label:last-child{grid-column:1/-1}}
@media(max-width:650px){.payable-document-import,.payable-fields-grid,.payable-bulk-item-grid{grid-template-columns:1fr}.payable-document-import .btn,.payable-submit-button{width:100%}.payable-fields-grid .span-2,.payable-bulk-item-grid label:last-child{grid-column:auto}}

/* Contas a pagar: painel financeiro, filtros, lista e ações compactas. */
.payable-page-head{align-items:center}.payable-summary-grid{display:grid;grid-template-columns:repeat(5,minmax(150px,1fr));gap:11px;margin-bottom:16px}.payable-summary-card{position:relative;display:flex;min-width:0;flex-direction:column;padding:15px 16px;border:1px solid #dfe7ef;border-radius:15px;background:#fff;color:#172033;box-shadow:0 5px 18px rgba(15,23,42,.045);overflow:hidden}.payable-summary-card:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#2563eb}.payable-summary-card span{color:#64748b;font-size:.68rem;font-weight:800}.payable-summary-card strong{margin-top:7px;font-size:1.02rem;white-space:nowrap}.payable-summary-card small{margin-top:4px;color:#64748b;font-size:.62rem}.payable-summary-card.overdue:before{background:#ef4444}.payable-summary-card.today:before{background:#f59e0b}.payable-summary-card.advance:before{background:#3b82f6}.payable-summary-card.paid:before{background:#16a34a}.payable-summary-card:hover{border-color:#bfdbfe;transform:translateY(-1px)}
.payable-create-card{margin-bottom:16px;padding:0}.payable-create-summary{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 18px;cursor:pointer;list-style:none}.payable-create-summary::-webkit-details-marker{display:none}.payable-create-summary div{display:flex;flex-direction:column}.payable-create-summary strong{font-size:.83rem}.payable-create-summary small{margin-top:3px;color:#64748b;font-size:.67rem}.payable-create-summary>span{padding:5px 9px;border-radius:9px;background:#eff6ff;color:#2563eb;font-size:.64rem;font-weight:800}.payable-create-card[open] .payable-create-summary{border-bottom:1px solid #e7edf4}.payable-create-card[open] .payable-create-summary>span{font-size:0}.payable-create-card[open] .payable-create-summary>span:after{content:"Recolher";font-size:.64rem}.payable-create-form{padding:16px 18px 18px}.payable-duplicate-confirm{padding:8px 11px;border:1px dashed #e2e8f0;border-radius:10px;background:#f8fafc;color:#64748b!important;font-size:.65rem!important}.payable-fields-grid label small{margin-top:4px;color:#64748b;font-size:.61rem}
.payable-list-card{padding:0;overflow:visible}.payable-filter-form{padding:15px 16px 12px;border-bottom:1px solid #e7edf4}.payable-filter-main{display:grid;grid-template-columns:minmax(280px,1fr) 170px auto auto;gap:9px;align-items:end}.payable-filter-main label,.payable-filter-advanced label{font-size:.66rem}.payable-filter-main input,.payable-filter-main select,.payable-filter-advanced input,.payable-filter-advanced select{height:40px;min-height:40px}.payable-quick-filters{display:flex;align-items:center;gap:7px;margin-top:10px}.payable-quick-filters a,.payable-quick-filters button{height:29px;padding:0 10px;border:1px solid #dbe4ee;border-radius:999px;background:#fff;color:#526176;font:800 .63rem inherit;cursor:pointer}.payable-quick-filters a{display:inline-flex;align-items:center}.payable-quick-filters a.active,.payable-quick-filters a:hover,.payable-quick-filters button:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.payable-filter-advanced{display:grid;grid-template-columns:repeat(5,minmax(135px,1fr));gap:9px;margin-top:11px;padding-top:11px;border-top:1px dashed #dbe4ee}.payable-list-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;background:#f8fafc}.payable-list-head>div{display:flex;align-items:center;gap:8px}.payable-list-head>div:first-child{flex-direction:column;align-items:flex-start;gap:2px}.payable-list-head strong{font-size:.75rem}.payable-list-head small{color:#64748b;font-size:.64rem}.payable-list-head .btn:disabled{opacity:.45;cursor:not-allowed}
.payable-table-wrap{overflow:visible}.payable-table{min-width:980px}.payable-table th{padding:10px 11px;background:#f3f6f9;color:#526176;font-size:.62rem}.payable-table td{padding:12px 11px;vertical-align:middle}.payable-table td>strong{display:block;font-size:.72rem}.payable-table td>small,.payable-table td strong+small{display:block;margin-top:4px;color:#64748b;font-size:.61rem}.payable-check-col{width:35px;text-align:center}.payable-select,#selectAllPayables{width:16px;height:16px;accent-color:#2563eb}.payable-due-label{font-weight:750}.payable-due-label.overdue{color:#dc2626}.payable-due-label.today{color:#d97706}.payable-row-overdue{background:#fffafa}.payable-row-today{background:#fffdf7}.payable-code-actions{display:flex;gap:5px;flex-wrap:wrap;margin-top:7px}.payable-code-actions button,.payable-code-actions a{padding:3px 7px;border:1px solid #dbeafe;border-radius:7px;background:#f8fbff;color:#2563eb;font-size:.57rem;font-weight:800;cursor:pointer}.payable-status-badge{display:inline-flex;padding:5px 8px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:.59rem;font-weight:850}.payable-status-badge.pago{background:#ecfdf3;color:#15803d}.payable-telegram-sent{color:#0284c7!important}.payable-amount{font-weight:900;white-space:nowrap}.payable-primary-actions{display:flex;align-items:center;gap:6px}.payable-more{position:relative}.payable-more>summary{width:32px;height:32px;display:grid;place-items:center;border:1px solid #dbe4ee;border-radius:9px;background:#fff;color:#526176;cursor:pointer;list-style:none;font-weight:900}.payable-more>summary::-webkit-details-marker{display:none}.payable-more[open]>summary{border-color:#93c5fd;background:#eff6ff;color:#2563eb}.payable-more>div{position:absolute;right:0;top:37px;z-index:20;width:175px;padding:6px;border:1px solid #dbe4ee;border-radius:11px;background:#fff;box-shadow:0 16px 35px rgba(15,23,42,.17)}.payable-more form{margin:0}.payable-more button{width:100%;padding:8px 9px;border:0;border-radius:7px;background:#fff;color:#334155;text-align:left;font-size:.65rem;font-weight:750;cursor:pointer}.payable-more button:hover{background:#f1f5f9}.payable-more button.danger{color:#b91c1c}.payable-empty{padding:38px!important;text-align:center}.payable-empty strong,.payable-empty small{display:block}.payable-empty small{margin-top:5px;color:#64748b}
body.payable-modal-open{overflow:hidden}.payable-modal{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(8,23,38,.56);backdrop-filter:blur(3px)}.payable-modal[hidden]{display:none}.payable-modal>section{width:min(520px,100%);max-height:calc(100vh - 40px);overflow:auto;border:1px solid #dbe4ee;border-radius:18px;background:#fff;box-shadow:0 25px 70px rgba(7,24,39,.3)}.payable-modal header{display:flex;align-items:center;justify-content:space-between;padding:16px 18px;border-bottom:1px solid #e7edf4;background:#f8fafc}.payable-modal header div{display:flex;flex-direction:column}.payable-modal header strong{font-size:.84rem}.payable-modal header small{margin-top:3px;color:#64748b;font-size:.65rem}.payable-modal header>button{width:31px;height:31px;border:1px solid #dbe4ee;border-radius:9px;background:#fff;color:#64748b;font-size:1.1rem;cursor:pointer}.payable-modal form{display:grid;gap:12px;padding:17px 18px}.payable-modal form>label{font-size:.68rem}.payable-modal-amount{padding:13px;border-radius:11px;background:#eff6ff;color:#123b63;text-align:center;font-size:1.25rem;font-weight:900}.payable-modal footer{display:flex;justify-content:flex-end;gap:8px;margin:4px -18px -17px;padding:12px 18px;border-top:1px solid #e7edf4;background:#f8fafc}.payable-edit-modal>section{width:min(720px,100%)}.payable-edit-modal form>.form-grid{padding:0}.payable-edit-modal textarea{min-height:58px}
@media(max-width:1120px){.payable-summary-grid{grid-template-columns:repeat(3,1fr)}.payable-filter-advanced{grid-template-columns:repeat(3,1fr)}}
@media(max-width:800px){.payable-summary-grid{grid-template-columns:repeat(2,1fr)}.payable-filter-main{grid-template-columns:1fr 150px}.payable-filter-main .btn{width:100%}.payable-filter-advanced{grid-template-columns:1fr 1fr}.payable-list-head{align-items:flex-start;flex-direction:column}.payable-list-head>div:last-child{width:100%;overflow:auto}.payable-table-wrap{overflow:auto}.payable-table{min-width:900px}}
@media(max-width:560px){.payable-page-head{align-items:flex-start}.payable-page-head .btn{width:100%;margin-top:10px}.payable-summary-grid{grid-template-columns:1fr 1fr;gap:8px}.payable-summary-card{padding:12px}.payable-summary-card strong{font-size:.84rem}.payable-filter-main,.payable-filter-advanced{grid-template-columns:1fr}.payable-quick-filters{overflow:auto}.payable-modal{padding:9px}.payable-modal>section{max-height:calc(100vh - 18px)}.payable-modal footer{position:sticky;bottom:-17px}.payable-create-form{padding:12px}.payable-list-head>div:last-child .btn{white-space:nowrap}}

/* Organização final da navegação lateral. */
.side-section-label{display:flex;align-items:center;gap:8px;margin:8px 8px 1px;color:#6f8da8;font-size:9px;font-weight:850;letter-spacing:.13em;text-transform:uppercase}.side-section-label:after{content:"";height:1px;flex:1;background:rgba(148,197,255,.10)}.side-menu-badge,.side-submenu-count{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#ef4444;color:#fff;font-size:9px;font-weight:900;line-height:1}.side-menu-badge{margin-left:auto}.side-accordion-summary .side-menu-badge+.side-chevron{margin-left:0!important}.side-submenu-link{display:flex!important;align-items:center;justify-content:space-between;gap:8px}.side-submenu-count{min-width:18px;height:18px;padding:0 5px}.sidebar-footer .side-help{margin:0!important}.sidebar-footer .side-help .help-icon svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body.sidebar-collapsed .side-section-label,body.sidebar-collapsed .side-menu-badge{display:none!important}body.sidebar-collapsed .side-accordion-summary[data-label]{cursor:help}.sidebar-collapsed .sidebar-footer .side-help{justify-content:center!important}.sidebar-collapsed .sidebar-footer .side-help strong{display:none!important}
@media(max-width:1000px){.side-section-label{margin-top:7px}.side-accordion-summary[data-label]{cursor:pointer}}

/* Marca compacta e legível no topo da barra lateral. */
body .brand-pro{min-height:92px!important;padding:12px!important;gap:11px!important;border-radius:19px!important}body .brand-pro:after{display:none!important}body .brand-mark{width:48px!important;height:48px!important;flex-basis:48px!important;border-radius:15px!important;font-size:17px!important}.sidebar-brand-copy{flex:1!important;min-width:0!important}.sidebar-brand-copy>strong{display:block!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;color:#fff!important;font-size:13.5px!important;font-weight:800!important;letter-spacing:.01em}.sidebar-brand-copy>small{display:block!important;margin-top:4px!important;color:#a9c2db!important;font-size:10px!important;font-weight:600!important;letter-spacing:.025em!important}.sidebar-brand-meta{display:flex;align-items:center;gap:7px;min-width:0;margin-top:8px}.sidebar-brand-meta>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dcecff;font-size:10px;font-weight:650}.sidebar-brand-meta>em{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;padding:3px 6px;border:1px solid rgba(74,222,128,.16);border-radius:999px;background:rgba(34,197,94,.10);color:#78efaa;font-size:8.5px;font-style:normal;font-weight:800}.sidebar-brand-meta>em i{width:5px;height:5px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 2px rgba(74,222,128,.10)}body.sidebar-collapsed .brand-pro{min-height:66px!important;padding:7px!important}body.sidebar-collapsed .brand-mark{width:48px!important;height:48px!important;flex-basis:48px!important}

/* Empresa e usuário mesclados ao cartão da barra lateral. */
.sidebar-company-profile{position:relative;margin:0 0 14px}.sidebar-company-profile>.brand-pro{margin:0!important;cursor:pointer;list-style:none;transition:border-color .18s,background .18s,box-shadow .18s}.sidebar-company-profile>.brand-pro::-webkit-details-marker{display:none}.sidebar-company-profile>.brand-pro:hover,.sidebar-company-profile[open]>.brand-pro{border-color:rgba(255,178,29,.30)!important;background:linear-gradient(135deg,rgba(255,255,255,.12),rgba(255,178,29,.045))!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.07),0 13px 30px rgba(2,8,23,.20)!important}.sidebar-company-chevron{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:#93aec8;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s,stroke .18s}.sidebar-company-profile[open] .sidebar-company-chevron{transform:rotate(180deg);stroke:#ffb21d}.sidebar-company-menu{display:grid;gap:3px;margin-top:7px;padding:8px;border:1px solid #dce5ee;border-radius:15px;background:#fff;box-shadow:0 18px 38px rgba(2,8,23,.28);color:#172033}.sidebar-company-menu-head{display:flex;align-items:center;gap:9px;padding:7px 8px 10px;margin-bottom:2px;border-bottom:1px solid #edf1f5}.sidebar-company-menu-head>div{display:flex;min-width:0;flex-direction:column}.sidebar-company-menu-head strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033!important;font-size:11px}.sidebar-company-menu-head small{margin-top:2px;color:#64748b!important;font-size:9px}.sidebar-company-menu>a{display:flex!important;align-items:center!important;gap:8px!important;margin:0!important;padding:8px 9px!important;border-radius:9px!important;background:#fff!important;color:#334155!important;font-size:10.5px!important;font-weight:750!important}.sidebar-company-menu>a:hover{background:#f1f5f9!important;color:#172033!important}.sidebar-company-menu>a svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar-company-menu>a span{white-space:nowrap}.sidebar-company-menu>a b{margin-left:auto;max-width:78px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#64748b;font-size:8px}.sidebar-company-menu .sidebar-company-operation{background:#eff6ff!important;color:#145b8f!important}.sidebar-company-menu .sidebar-company-logout{margin-top:3px!important;border-top:1px solid #edf1f5!important;border-radius:0 0 9px 9px!important;color:#b91c1c!important}.sidebar-brand-copy>small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-brand-meta>span{font-size:9px!important}
body.sidebar-collapsed .sidebar-company-profile{margin-bottom:14px}body.sidebar-collapsed .sidebar-company-profile>.brand-pro{justify-content:center!important}body.sidebar-collapsed .sidebar-company-chevron,body.sidebar-collapsed .sidebar-company-menu{display:none!important}
@media(min-width:1001px){.topbar-company-profile{display:none!important}.topbar-page-context{display:flex}.topbar-context{margin-left:auto}}
@media(max-width:1000px){.sidebar-company-profile{margin-bottom:12px}.sidebar-company-profile>.brand-pro{min-height:88px!important}.sidebar-company-menu{box-shadow:0 12px 25px rgba(2,8,23,.22)}}

/* Acesso principal acima da identidade G4 */
.sidebar-home-shortcut{display:flex!important;align-items:center;gap:8px;min-height:35px;margin:0 2px 8px!important;padding:7px 10px!important;border:1px solid rgba(147,174,200,.16);border-radius:11px!important;background:rgba(255,255,255,.035);color:#bcd0e4!important;font-size:10px;font-weight:800;letter-spacing:.025em;transition:background .18s,border-color .18s,color .18s,transform .18s}.sidebar-home-shortcut svg{width:16px;height:16px;flex:0 0 16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.sidebar-home-shortcut:hover,.sidebar-home-shortcut.active{border-color:rgba(255,178,29,.36);background:rgba(255,178,29,.10)!important;color:#ffbf43!important;transform:translateY(-1px)}body.sidebar-collapsed .sidebar-home-shortcut{width:52px;min-height:42px;margin:0 auto 8px!important;justify-content:center;padding:8px!important}body.sidebar-collapsed .sidebar-home-shortcut span{display:none}

/* Refinamento funcional da navegação lateral. */
.side-submenu-heading{display:flex;align-items:center;gap:7px;margin:8px 8px 3px;color:#7890a8;font-size:8px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}.side-submenu-heading:after{content:"";height:1px;flex:1;background:#dbe5ee}.side-submenu-heading:first-child{margin-top:2px}.side-submenu-count.is-waiting{background:#f59e0b}.side-accordion-group[open]>.side-submenu{animation:sideSubmenuIn .19s ease-out both}.side-accordion-summary{transition:background-color .18s,border-color .18s,color .18s,transform .18s}.side-accordion-summary:active{transform:scale(.992)}@keyframes sideSubmenuIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.sidebar-floating-tooltip{position:fixed;z-index:120;transform:translateY(-50%);padding:7px 10px;border:1px solid #dbe5ee;border-radius:9px;background:#fff;color:#172033;box-shadow:0 10px 25px rgba(2,8,23,.18);font-size:10px;font-weight:800;white-space:nowrap;pointer-events:none}.sidebar-floating-tooltip[hidden]{display:none!important}

/* Busca global do sistema. */
.topbar-search-shortcut{gap:7px!important;height:40px!important;min-height:40px!important;padding:0 10px!important;border-color:#dbe5ee!important;background:#f8fafc!important;color:#40546b!important;font-size:10px!important}.topbar-search-shortcut svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}.topbar-search-shortcut kbd{padding:3px 5px;border:1px solid #dbe3eb;border-bottom-width:2px;border-radius:5px;background:#fff;color:#7a899d;font:700 8px/1 Inter,sans-serif}.command-palette[hidden]{display:none!important}.command-palette{position:fixed;inset:0;z-index:250;display:grid;place-items:start center;padding:10vh 16px 24px}.command-palette-backdrop{position:absolute;inset:0;width:100%;height:100%;border:0;border-radius:0;background:rgba(4,15,28,.58);backdrop-filter:blur(4px);cursor:default}.command-palette-panel{position:relative;z-index:1;width:min(680px,100%);max-height:min(680px,80vh);display:flex;flex-direction:column;overflow:hidden;border:1px solid rgba(255,255,255,.7);border-radius:18px;background:#fff;box-shadow:0 28px 80px rgba(2,8,23,.35);animation:commandPaletteIn .18s ease-out}.command-palette-panel>header{display:grid;grid-template-columns:22px auto minmax(160px,1fr) auto;align-items:center;gap:10px;padding:14px 16px;border-bottom:1px solid #e6edf4}.command-palette-panel>header svg{width:21px;height:21px;fill:none;stroke:#2563eb;stroke-width:1.8;stroke-linecap:round}.command-palette-panel>header label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}.command-palette-panel>header input{height:38px;padding:0;border:0;outline:0;box-shadow:none;font-size:14px}.command-palette-panel>header>kbd,.command-palette-panel footer kbd{padding:3px 6px;border:1px solid #dbe3eb;border-bottom-width:2px;border-radius:6px;background:#f8fafc;color:#64748b;font:700 10px/1 Inter,sans-serif}.command-palette-results{min-height:190px;overflow:auto;padding:8px}.command-palette-results.is-loading{opacity:.65}.command-result{display:grid;grid-template-columns:92px minmax(0,1fr) 18px;align-items:center;gap:10px;padding:12px;border:1px solid transparent;border-radius:11px;color:#243447}.command-result:hover,.command-result.is-selected{border-color:#bfdbfe;background:#eff6ff;color:#172033}.command-result>b{justify-self:start;padding:4px 7px;border-radius:999px;background:#edf2f7;color:#526176;font-size:10px;text-transform:uppercase}.command-result>span{display:flex;min-width:0;flex-direction:column}.command-result strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.command-result small{margin-top:3px;overflow:hidden;color:#7a899d;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.command-result em{color:#94a3b8;font-size:19px;font-style:normal}.command-empty{min-height:180px;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#64748b;text-align:center}.command-empty strong{font-size:14px}.command-empty span{margin-top:5px;font-size:12px}.command-palette-panel>footer{display:flex;align-items:center;gap:16px;padding:9px 14px;border-top:1px solid #e6edf4;background:#f8fafc;color:#718096;font-size:11px}.command-palette-panel>footer span{display:flex;align-items:center;gap:4px}.command-palette-panel>footer span:last-child{margin-left:auto}@keyframes commandPaletteIn{from{opacity:0;transform:translateY(-8px) scale(.985)}to{opacity:1;transform:none}}body.command-palette-open{overflow:hidden}.related-parts-search-panel{width:min(920px,100%);max-height:min(720px,84vh)}.related-parts-search-panel>header{grid-template-columns:22px auto 170px minmax(160px,1fr) auto}.related-parts-search-panel>header select{height:38px;border:1px solid #dbe3eb;border-radius:9px;padding:0 8px;font-size:13px;background:#f8fafc}.related-parts-results{padding:14px;overflow:auto;min-height:220px}.related-match-summary{display:flex;gap:12px;align-items:center;padding:12px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:12px;margin-bottom:16px}.related-match-summary img,.related-match-summary .thumb{width:56px;height:56px;object-fit:cover;border-radius:10px;flex-shrink:0}.related-groups-wrap{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px;margin-bottom:6px}.related-auto-label{margin:16px 0 10px;font-size:12px;font-weight:800;color:#475569}.related-group{flex:1 1 250px;min-width:230px;background:#f8fafc;border:1px solid var(--line);border-radius:14px;padding:12px}.related-group h4{margin:0 0 10px;font-size:11px;color:#2563eb;text-transform:uppercase;letter-spacing:.05em;font-weight:800}.related-part-result-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.related-part-result-card{position:relative;border:1px solid var(--line);border-radius:10px;padding:9px;display:flex;flex-direction:column;gap:4px;background:#fff;transition:.15s;color:inherit;text-decoration:none}.related-part-result-card:hover{border-color:#bfdbfe;box-shadow:0 4px 12px rgba(15,23,42,.07)}.related-part-result-card img,.related-part-result-card .thumb{width:100%;height:90px;object-fit:contain;background:#f8fafc;border-radius:7px}.related-part-code{font-size:16px;font-weight:900;color:var(--primary);line-height:1.2}.related-part-desc-short{font-size:11px;color:#475569;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.related-part-details{position:absolute;top:calc(100% + 6px);left:0;right:0;background:#172033;color:#fff;border-radius:10px;padding:10px 12px;box-shadow:0 14px 30px rgba(2,8,23,.28);opacity:0;visibility:hidden;transform:translateY(-6px);transition:.15s;z-index:30;pointer-events:none}.related-part-details strong{display:block;font-size:12px;color:#fff;margin-bottom:4px;line-height:1.35}.related-part-details small{font-size:10.5px;color:#cbd5e1;display:block;line-height:1.5}.related-part-result-card:hover .related-part-details,.related-part-result-card:focus .related-part-details{opacity:1;visibility:visible;transform:translateY(0)}.related-part-result-card.is-matched{border-color:#2563eb;background:#eff6ff;box-shadow:0 0 0 1px #2563eb}.related-matched-tag{align-self:flex-start;background:#2563eb;color:#fff;font-size:9.5px;font-weight:800;padding:2px 7px;border-radius:999px}.related-part-more-btn{margin-top:10px;width:100%;border:1px dashed #bfdbfe;background:#eff6ff;color:#2563eb;font-size:11px;font-weight:800;padding:8px;border-radius:9px;cursor:pointer}.related-part-more-btn:hover{background:#dbeafe}.related-part-hidden-grid{margin-top:10px}.topbar-search-shortcut.icon-only{width:40px!important;padding:0!important;gap:0!important}.topbar-search-shortcut.icon-only span,.topbar-search-shortcut.icon-only kbd{display:none!important}.topbar-finance-shortcut.icon-only{width:40px!important;padding:0!important;font-size:0!important}.topbar-finance-shortcut.icon-only span{display:none!important}@media(max-width:720px){.related-parts-search-panel>header{grid-template-columns:20px minmax(0,1fr);grid-template-areas:"icon select" "code code";row-gap:8px}.related-parts-search-panel>header label{display:none}.related-parts-search-panel>header select{grid-area:select}.related-parts-search-panel>header input{grid-area:code}.related-parts-search-panel>header kbd{display:none}}

@media(max-width:1280px){.topbar-search-shortcut span,.topbar-search-shortcut kbd{display:none}.topbar-search-shortcut{width:40px;padding:0!important}}
@media(max-width:720px){.topbar-search-shortcut{width:38px!important;height:38px!important;min-height:38px!important}.command-palette{padding:7vh 9px 12px}.command-palette-panel{max-height:86vh;border-radius:15px}.command-palette-panel>header{grid-template-columns:20px minmax(0,1fr) auto;padding:11px 12px}.command-palette-panel>header input{font-size:12px}.command-result{grid-template-columns:74px minmax(0,1fr) 14px;padding:9px 8px}.command-result>b{font-size:9px}.command-result strong{font-size:13px}.command-result small{font-size:11px}.command-palette-panel>footer{gap:8px}.command-palette-panel>footer span:last-child{display:none}}

@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.side-accordion-summary:active{transform:none}.sidebar-home-shortcut:hover{transform:none}}
@media(max-width:720px){.topbar-company-profile{display:block!important;flex:0 0 40px!important;width:40px!important;max-width:40px!important}.topbar-company-profile>.topbar-company{width:40px!important;min-height:40px!important;padding:0!important}.topbar-company-profile .topbar-company-mark{display:grid!important;width:38px!important;height:38px!important;flex-basis:38px!important}.topbar-company-profile .topbar-title,.topbar-company-profile .topbar-user-chevron{display:none!important}.topbar-company-profile .topbar-profile-menu{position:fixed!important;left:58px!important;right:auto!important;top:58px!important;width:min(250px,calc(100vw - 70px))!important}.topbar-context{display:none!important}}

/* Contexto da página e agrupamento visual da barra superior. */
.topbar-page-context{display:none;min-width:0;flex-direction:column;justify-content:center;padding-left:2px}.topbar-page-context>strong{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#172033;font-size:12.5px;font-weight:850;line-height:1.15}.topbar-page-context>small{display:flex;align-items:center;gap:5px;margin-top:4px;max-width:300px;overflow:hidden;color:#718096;font-size:9px;white-space:nowrap}.topbar-page-context>small span{color:#2563eb;font-weight:750}.topbar-page-context>small i{color:#cbd5e1;font-style:normal}.topbar-date>span{color:#526176}.topbar-new-sale.btn{gap:6px!important}.topbar-actions{padding-left:10px;border-left:1px solid #e7edf4}
@media(min-width:1200px){body:not(.sidebar-collapsed) .topbar-page-context{display:flex}}
@media(max-width:1080px){.topbar-actions{padding-left:0;border-left:0}}
@media(max-width:720px){.topbar-page-context{display:none!important}.topbar-new-sale.btn{gap:4px!important}}

/* Conferência assistida na importação de produtos por PDF ou XLSX. */
.product-import-workflow{display:grid;gap:16px}.product-import-upload-card,.product-import-review{overflow:hidden}.product-import-upload-card .card-head p,.product-import-review-head p{margin:4px 0 0;color:#64748b;font-size:12px}.product-import-upload-grid{display:grid;grid-template-columns:minmax(300px,1fr) auto minmax(300px,1.15fr);gap:10px;align-items:end}.product-import-upload-grid input{height:43px;background:#fff}.product-import-upload-grid .btn{height:43px}.product-import-status{min-height:43px;display:flex;align-items:center;padding:9px 12px;border:1px solid #dbe4ee;border-radius:10px;background:#f8fafc;color:#64748b;font-size:11px;line-height:1.35}.product-import-status.is-loading{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}.product-import-status.is-success{border-color:#bbf7d0;background:#f0fdf4;color:#15803d}.product-import-status.is-warning{border-color:#fed7aa;background:#fff7ed;color:#c2410c}.product-import-status.is-danger{border-color:#fecaca;background:#fef2f2;color:#b91c1c}.product-import-columns{margin-top:12px;padding:10px 12px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.product-import-columns summary{cursor:pointer;color:#475569;font-size:11px;font-weight:800}.product-import-columns code{display:block;margin-top:8px;white-space:normal;color:#334155;font-size:11px}.product-import-review-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:13px}.product-import-review-head span{color:#2563eb;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.product-import-review-head h2{margin:4px 0 0}.product-import-review-summary{display:flex;flex-direction:column;align-items:flex-end;gap:4px;text-align:right}.product-import-review-summary strong{padding:6px 10px;border-radius:999px;background:#dbeafe;color:#1d4ed8;font-size:12px}.product-import-review-summary small{max-width:360px;color:#64748b;font-size:10px}.product-import-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) auto auto auto;gap:8px;margin-bottom:11px}.product-import-toolbar input{height:38px}.product-import-table-wrap{max-height:570px;overflow:auto;border:1px solid #dbe4ee;border-radius:12px}.product-import-table{min-width:920px}.product-import-table thead{position:sticky;top:0;z-index:2}.product-import-table th{background:#f1f5f9}.product-import-table th,.product-import-table td{padding:7px 8px}.product-import-table tbody tr{transition:.15s}.product-import-table tbody tr.is-unselected td{background:#f8fafc;opacity:.62}.product-import-table input.product-import-edit{height:36px;min-height:36px;padding:7px 9px;background:#fff;font-size:11px}.product-import-table input:disabled{background:#eef2f6;color:#94a3b8}.product-import-check-col{width:70px;text-align:center}.product-import-select{width:18px;height:18px;accent-color:#2563eb}.product-import-code{min-width:130px;text-transform:uppercase}.product-import-description{min-width:330px}.product-import-cost{min-width:105px}.product-import-badge{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:9px;font-weight:900;text-transform:uppercase}.product-import-badge.is-new{background:#dcfce7;color:#15803d}.product-import-badge.is-update{background:#fff7ed;color:#c2410c}.product-import-source{white-space:nowrap;color:#64748b;font-size:10px}.product-import-final-bar{position:sticky;bottom:0;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:13px -16px -16px;padding:13px 16px;border-top:1px solid #dbe4ee;background:#fff;box-shadow:0 -8px 18px rgba(15,23,42,.06)}.product-import-final-bar>div{display:flex;flex-direction:column}.product-import-final-bar small{margin-top:3px;color:#64748b}.product-import-final-bar .btn{min-width:220px}.product-import-final-bar .btn:disabled{background:#cbd5e1;color:#64748b;box-shadow:none;cursor:not-allowed}
@media(max-width:1000px){.product-import-upload-grid{grid-template-columns:1fr auto}.product-import-status{grid-column:1/-1}.product-import-toolbar{grid-template-columns:1fr 1fr}.product-import-toolbar input{grid-column:1/-1}.product-import-review-head{align-items:flex-start}.product-import-review-summary{align-items:flex-start;text-align:left}}
@media(max-width:650px){.product-import-upload-grid,.product-import-toolbar{grid-template-columns:1fr}.product-import-upload-grid .btn,.product-import-toolbar input{grid-column:auto}.product-import-review-head,.product-import-final-bar{flex-direction:column;align-items:stretch}.product-import-final-bar .btn{width:100%}}
@container sale-page (min-width:851px){
  body.sale-screen:not(.sale-has-items) .sale-payment-panel{align-self:start!important}
  body.sale-screen:not(.sale-has-items) .sale-resume-panel .sale-pro-summary{align-self:start!important;min-height:190px!important}
}
@media(max-width:650px){
  body.sale-screen .sale-payment-rows.is-single-payment .sale-payment-row,
  body.sale-screen .sale-payment-rows.is-single-payment .sale-payment-row.is-deferred{grid-template-columns:1fr}
  body.sale-screen .sale-keyboard-hints{justify-content:flex-start}
  body.sale-screen .sale-keyboard-hints span:nth-child(3){display:none}
}

/* Dashboard executivo v2: leitura rápida, prioridades sem repetição e análise de 7 dias. */
.dashboard-v2{display:grid;gap:16px}.dashboard-v2 .card{margin:0;border:1px solid #e1e8f0;box-shadow:0 7px 22px rgba(15,23,42,.055)}
.dashboard-v2-hero{position:relative;min-height:218px;display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,.45fr);align-items:center;gap:34px;padding:29px 38px;border-radius:24px;background:radial-gradient(circle at 86% 35%,rgba(56,139,235,.32),transparent 31%),linear-gradient(120deg,#092943 0%,#104a7e 68%,#1b64aa 100%);color:#fff;overflow:hidden;box-shadow:0 12px 34px rgba(9,41,67,.16)}
.dashboard-v2-hero:after{content:"";position:absolute;width:360px;height:360px;right:-105px;bottom:-265px;border:1px solid rgba(255,255,255,.09);border-radius:50%}.dashboard-v2-hero-copy{position:relative;z-index:1}.dashboard-v2-hero .eyebrow{display:inline-flex;padding:5px 11px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.08);color:#dcecff;font-size:9px;font-weight:850;letter-spacing:.14em;text-transform:uppercase}.dashboard-v2-hero .dash-greeting{margin:14px 0 2px;color:#dcecff;font-size:12px}.dashboard-v2-hero h1{margin:0;font-size:clamp(27px,3vw,39px);line-height:1.05;letter-spacing:-.035em}.dashboard-v2-hero h1+p{margin:8px 0 0;color:#bad0e5;font-size:12px}.dashboard-v2-hero-actions{display:flex;gap:8px;margin-top:19px}.dashboard-v2-hero-actions .btn{min-height:38px;padding:0 15px}.dashboard-btn-ghost{border-color:rgba(255,255,255,.25)!important;background:rgba(255,255,255,.08)!important;color:#fff!important}.dashboard-btn-ghost:hover{background:rgba(255,255,255,.15)!important}
.dashboard-v2-revenue{position:relative;z-index:1;display:flex;min-height:135px;flex-direction:column;justify-content:center;padding:20px 22px;border:1px solid rgba(255,255,255,.18);border-radius:18px;background:rgba(255,255,255,.09);backdrop-filter:blur(5px)}.dashboard-v2-revenue small{color:#c7daf0;font-size:10px;font-weight:750;letter-spacing:.1em;text-transform:uppercase}.dashboard-v2-revenue strong{margin-top:8px;color:#fff;font-size:clamp(25px,3vw,36px);line-height:1}.dashboard-v2-revenue span{margin-top:8px;color:#cfe1f4;font-size:10px}.dashboard-v2-revenue em{margin-top:11px;color:#bfdbfe;font-size:9px;font-style:normal;font-weight:700}.dashboard-v2-revenue em.positive{color:#86efac}.dashboard-v2-revenue em.negative{color:#fecaca}.dashboard-v2 .dashboard-eye-toggle{top:18px;right:18px;z-index:3;padding:7px 11px;border-color:rgba(255,255,255,.2);background:rgba(5,31,54,.38);color:#eaf4ff;font-size:9px}
.dashboard-v2-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.dashboard-v2-kpi{position:relative;display:flex;min-width:0;min-height:120px;flex-direction:column;justify-content:center;padding:17px 19px 16px;border:1px solid #e1e8f0;border-radius:17px;background:#fff;color:#172033;box-shadow:0 6px 20px rgba(15,23,42,.045);overflow:hidden;transition:border-color .18s,transform .18s,box-shadow .18s}.dashboard-v2-kpi:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:#2563eb}.dashboard-v2-kpi:after{content:"";position:absolute;width:70px;height:70px;right:-24px;top:-25px;border-radius:50%;background:#f2f6fb}.dashboard-v2-kpi:hover{border-color:#bfdbfe;color:#172033;transform:translateY(-2px);box-shadow:0 10px 25px rgba(15,23,42,.08)}.dashboard-v2-kpi>span{position:relative;z-index:1;color:#64748b;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.dashboard-v2-kpi>strong{position:relative;z-index:1;margin-top:9px;font-size:21px;line-height:1.05;white-space:nowrap}.dashboard-v2-kpi>small{position:relative;z-index:1;margin-top:7px;color:#7a899d;font-size:10px}.dashboard-v2-kpi.cyan:before{background:#0891b2}.dashboard-v2-kpi.indigo:before{background:#4f46e5}.dashboard-v2-kpi.green:before{background:#16a34a}.dashboard-v2-kpi.red:before{background:#dc2626}.dashboard-v2-kpi.orange:before{background:#f59e0b}
.dashboard-v2-focus-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr);gap:16px}.dashboard-v2-focus-grid>.card,.dashboard-v2-analysis-grid>.card,.dashboard-v2-optional-grid>.card,.dashboard-recent-sales,.dashboard-fiado-card{padding:18px}.dashboard-v2 .card-head{align-items:flex-start;margin-bottom:14px}.dashboard-v2 .card-head h2{margin:3px 0 0;font-size:15px}.dashboard-section-kicker{color:#2563eb;font-size:8px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.dashboard-v2 .card-head>a{font-size:10px;font-weight:800}
.dashboard-priority-list{display:grid;gap:7px}.dashboard-priority-list>a,.dashboard-all-clear{display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 11px;border:1px solid #e6ecf2;border-radius:12px;background:#fbfcfe;color:#334155}.dashboard-priority-list>a:hover{border-color:#bfdbfe;background:#f8fbff;color:#172033}.dashboard-priority-list>a>span,.dashboard-all-clear>span{width:30px;height:30px;display:grid;place-items:center;border-radius:9px;background:#eaf3ff;color:#2563eb;font-size:9px;font-weight:900}.dashboard-priority-list>a.warning>span{background:#fff7ed;color:#d97706}.dashboard-priority-list>a.critical>span{background:#fef2f2;color:#dc2626}.dashboard-priority-list a div,.dashboard-all-clear div{display:flex;min-width:0;flex-direction:column}.dashboard-priority-list strong,.dashboard-all-clear strong{font-size:11px}.dashboard-priority-list small,.dashboard-all-clear small{margin-top:3px;color:#718096;font-size:9.5px}.dashboard-priority-list>a>b{color:#94a3b8;font-size:18px}.dashboard-all-clear{grid-template-columns:34px minmax(0,1fr);border-color:#bbf7d0;background:#f0fdf4}.dashboard-all-clear>span{background:#dcfce7;color:#15803d}
.dashboard-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dashboard-action-grid>a{display:grid;grid-template-columns:31px minmax(0,1fr);grid-template-rows:auto auto;column-gap:9px;padding:10px;border:1px solid #e3eaf1;border-radius:11px;background:#fff;color:#334155}.dashboard-action-grid>a:hover{border-color:#93c5fd;background:#f8fbff;color:#172033}.dashboard-action-grid>a>span{grid-row:1/3;width:31px;height:31px;display:grid;place-items:center;border-radius:9px;background:#eff6ff;color:#2563eb;font-size:9px;font-weight:900}.dashboard-action-grid strong{font-size:10.5px}.dashboard-action-grid small{margin-top:2px;color:#7a899d;font-size:8.5px}.dashboard-backup-ok{margin:11px 0 0;padding-top:10px;border-top:1px dashed #dbe4ee;color:#15803d;font-size:9px;font-weight:750}
.dashboard-v2-analysis-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:16px}.dashboard-chart{height:205px;display:grid;grid-template-columns:repeat(7,minmax(42px,1fr));gap:9px;padding:8px 3px 0}.dashboard-chart-column{display:grid;grid-template-rows:27px minmax(80px,1fr) 17px 15px;align-items:end;text-align:center}.dashboard-chart-value{overflow:hidden;color:#64748b;font-size:8px;font-weight:750;white-space:nowrap;text-overflow:ellipsis}.dashboard-chart-track{position:relative;width:min(30px,70%);height:100%;justify-self:center;border-radius:8px 8px 3px 3px;background:#f1f5f9;overflow:hidden}.dashboard-chart-track i{position:absolute;inset:auto 0 0;height:var(--bar-height);min-height:0;border-radius:7px 7px 2px 2px;background:linear-gradient(180deg,#3b82f6,#1d4ed8);transition:height .35s}.dashboard-chart-column:hover .dashboard-chart-track i{background:linear-gradient(180deg,#fb923c,#f97316)}.dashboard-chart-column>strong{color:#334155;font-size:9px}.dashboard-chart-column>small{color:#94a3b8;font-size:8px}.dashboard-ranking-list{display:grid}.dashboard-ranking-list>div{display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 0;border-bottom:1px solid #edf1f5}.dashboard-ranking-list>div:last-child{border-bottom:0}.dashboard-ranking-list>div>b{width:25px;height:25px;display:grid;place-items:center;border-radius:8px;background:#eff6ff;color:#2563eb;font-size:9px}.dashboard-ranking-list span{display:flex;min-width:0;flex-direction:column}.dashboard-ranking-list span strong{overflow:hidden;font-size:10px;white-space:nowrap;text-overflow:ellipsis}.dashboard-ranking-list span small{margin-top:3px;color:#94a3b8;font-size:8px}.dashboard-ranking-list em{color:#334155;font-size:9px;font-style:normal;font-weight:850}.dashboard-empty{padding:28px 8px;color:#7a899d;text-align:center;font-size:10px}
.dashboard-v2 .table-wrap{border:1px solid #e6ecf2;border-radius:12px}.dashboard-v2 table th{padding:9px 11px;background:#f6f8fb;color:#64748b;font-size:9px}.dashboard-v2 table td{padding:10px 11px;font-size:10px}.dashboard-v2 table td>a{font-weight:800}.dashboard-v2 table td small{display:block;margin-top:3px;color:#94a3b8;font-size:8px}.dashboard-v2-optional-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.dashboard-v2-optional-grid.single{grid-template-columns:1fr}.dashboard-v2.values-hidden .sensitive-value{color:transparent!important;text-shadow:0 0 11px rgba(15,23,42,.58);user-select:none}.dashboard-v2.values-hidden .dashboard-v2-hero .sensitive-value{text-shadow:0 0 11px rgba(255,255,255,.72)}
@media(max-width:1050px){.dashboard-v2-hero{grid-template-columns:minmax(0,1fr) minmax(250px,.55fr);padding:25px 28px}.dashboard-v2-focus-grid,.dashboard-v2-analysis-grid{grid-template-columns:1fr}.dashboard-v2-kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:760px){.dashboard-v2{gap:11px}.dashboard-v2-hero{grid-template-columns:1fr;gap:20px;padding:24px 19px}.dashboard-v2-revenue{min-height:112px}.dashboard-v2-kpis{grid-template-columns:1fr 1fr;gap:8px}.dashboard-v2-kpi{min-height:105px;padding:14px}.dashboard-v2-kpi>strong{font-size:17px}.dashboard-v2-optional-grid{grid-template-columns:1fr}.dashboard-chart{gap:4px}.dashboard-chart-value{display:none}}
@media(max-width:500px){.dashboard-v2-hero-actions{flex-direction:column}.dashboard-v2-hero-actions .btn{width:100%}.dashboard-v2-kpis{grid-template-columns:1fr}.dashboard-v2-kpi{min-height:94px}.dashboard-action-grid{grid-template-columns:1fr}.dashboard-v2-focus-grid>.card,.dashboard-v2-analysis-grid>.card,.dashboard-v2-optional-grid>.card,.dashboard-recent-sales,.dashboard-fiado-card{padding:13px}.dashboard-chart{height:175px}.dashboard-v2 .dashboard-eye-toggle b{display:none}}

/* Caixa v2: conferência guiada, hierarquia operacional e extrato compacto. */
.cash-v2{display:grid;gap:15px}.cash-v2 .card{margin:0;border:1px solid #e1e8f0;box-shadow:0 7px 22px rgba(15,23,42,.05)}.cash-v2-page-head{align-items:flex-end;margin-bottom:1px}.cash-v2-eyebrow,.cash-v2-card-kicker{display:block;margin-bottom:4px;color:#2563eb;font-size:8px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.cash-v2-page-head h1{margin:0}.cash-v2-page-head p{margin-top:5px}.cash-v2-head-actions{display:flex;align-items:center;gap:7px}.cash-v2-head-actions .btn{min-height:36px}
.cash-v2-session{position:relative;display:grid;grid-template-columns:minmax(220px,1.35fr) repeat(3,minmax(145px,.8fr)) minmax(90px,.42fr);gap:9px;align-items:stretch;padding:15px;border:1px solid #bdeccc;border-radius:18px;background:linear-gradient(115deg,#f0fdf4 0%,#fbfffc 62%,#fff 100%);box-shadow:0 8px 24px rgba(15,118,67,.06)}.cash-v2-session.is-closed{grid-template-columns:minmax(280px,1fr) minmax(450px,1.4fr);align-items:center;border-color:#fed7aa;background:linear-gradient(115deg,#fff7ed,#fff)}.cash-v2-session-status,.cash-v2-session-metric{display:flex;min-width:0;flex-direction:column;justify-content:center;padding:10px 12px}.cash-v2-session-status>span{display:flex;align-items:center;gap:7px;color:#15803d;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.cash-v2-session-status>span i{width:7px;height:7px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 4px #dcfce7}.cash-v2-session-status>strong{margin-top:7px;font-size:14px}.cash-v2-session-status>small,.cash-v2-session-metric small{margin-top:5px;color:#718096;font-size:9px;line-height:1.35}.cash-v2-session.is-closed .cash-v2-session-status>span{color:#c2410c}.cash-v2-session.is-closed .cash-v2-session-status>span i{background:#f97316;box-shadow:0 0 0 4px #ffedd5}.cash-v2-session-metric{border:1px solid #dce9e1;border-radius:13px;background:rgba(255,255,255,.75)}.cash-v2-session-metric>span{color:#64748b;font-size:9px;font-weight:750}.cash-v2-session-metric>strong{margin-top:6px;color:#172033;font-size:17px;white-space:nowrap}.cash-v2-session-metric.featured{border-color:#bbf7d0;background:#dcfce7}.cash-v2-session-metric.featured strong{color:#166534}.cash-v2-session-metric.compact{align-items:center;text-align:center}.cash-v2-session-metric.compact strong{font-size:24px}.cash-v2-open-form{display:grid;grid-template-columns:minmax(130px,.6fr) minmax(230px,1.2fr) auto;gap:8px;align-items:end}.cash-v2-open-form .btn{height:41px}
.cash-v2-close-panel{grid-column:1/-1;border-top:1px dashed #b7ddc4;margin:2px -2px -2px;padding:0 2px}.cash-v2-close-panel>summary{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:9px 3px 1px;color:#166534;font-size:10px;font-weight:850;cursor:pointer;list-style:none}.cash-v2-close-panel>summary::-webkit-details-marker{display:none}.cash-v2-close-panel>summary b{font-size:17px;transition:transform .18s}.cash-v2-close-panel[open]>summary b{transform:rotate(90deg)}.cash-v2-close-form{display:grid;grid-template-columns:minmax(120px,.6fr) minmax(170px,.8fr) minmax(230px,1.25fr) minmax(190px,.8fr) auto;gap:8px;align-items:end;padding:10px 0 1px}.cash-v2-close-heading{display:flex;flex-direction:column;padding:9px 11px;border-radius:10px;background:#fff}.cash-v2-close-heading span{color:#64748b;font-size:8px}.cash-v2-close-heading strong{margin-top:3px;font-size:13px}.cash-v2-close-form .btn{height:41px}.cash-v2-difference{min-height:41px;display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;align-items:center;gap:0 8px;padding:6px 9px;border:1px solid #dbe4ee;border-radius:10px;background:#fff}.cash-v2-difference span{grid-row:1/3;color:#64748b;font-size:8px}.cash-v2-difference strong{font-size:12px}.cash-v2-difference small{font-size:7.5px}.cash-v2-difference.is-ok{border-color:#86efac;background:#f0fdf4;color:#15803d}.cash-v2-difference.is-surplus,.cash-v2-difference.is-short{border-color:#fdba74;background:#fff7ed;color:#c2410c}
.cash-v2-method-section{display:grid;gap:9px}.cash-v2-section-title{display:flex;align-items:flex-end;justify-content:space-between;padding:0 2px}.cash-v2-section-title span,.cash-v2-period-head>div>span{color:#2563eb;font-size:8px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.cash-v2-section-title h2{margin:3px 0 0;font-size:13px}.cash-v2-section-title>small{color:#7a899d;font-size:9px}.cash-v2-method-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px}.cash-v2-method-card{position:relative;display:flex;min-height:98px;flex-direction:column;justify-content:center;padding:13px 14px;border:1px solid #e1e8f0;border-radius:14px;background:#fff;box-shadow:0 4px 15px rgba(15,23,42,.035);overflow:hidden}.cash-v2-method-card:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#94a3b8}.cash-v2-method-card.is-cash:before{background:#16a34a}.cash-v2-method-card.is-cash{border-color:#bbf7d0;background:linear-gradient(135deg,#f0fdf4,#fff)}.cash-v2-method-card>span{color:#64748b;font-size:9px}.cash-v2-method-card>strong{margin-top:7px;font-size:18px}.cash-v2-method-card>small{display:flex;gap:7px;margin-top:7px;font-size:8px}.cash-v2-method-card small b{color:#15803d}.cash-v2-method-card small em{color:#dc2626;font-style:normal;font-weight:750}
.cash-v2-period-card{padding:15px 16px 16px;border:1px solid #dde6ef;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(15,23,42,.045)}.cash-v2-period-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.cash-v2-period-head>div:first-child{display:flex;flex-direction:column}.cash-v2-period-head>div>strong{margin-top:3px;font-size:11px}.cash-v2-period-shortcuts{display:flex;gap:5px}.cash-v2-period-shortcuts a{padding:6px 10px;border:1px solid #dbe4ee;border-radius:999px;background:#fff;color:#64748b;font-size:8.5px;font-weight:850}.cash-v2-period-shortcuts a.active,.cash-v2-period-shortcuts a:hover{border-color:#93c5fd;background:#eff6ff;color:#1d4ed8}.cash-v2-period-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.cash-v2-period-grid article{position:relative;display:flex;min-width:0;flex-direction:column;padding:12px 13px;border:1px solid #e6ecf2;border-radius:12px;background:#f9fbfd;overflow:hidden}.cash-v2-period-grid article:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:#94a3b8}.cash-v2-period-grid .entry:before{background:#16a34a}.cash-v2-period-grid .exit:before,.cash-v2-period-grid .negative:before{background:#dc2626}.cash-v2-period-grid .balance:before{background:#2563eb}.cash-v2-period-grid span{color:#64748b;font-size:8.5px;font-weight:750}.cash-v2-period-grid strong{margin-top:5px;font-size:16px}.cash-v2-period-grid small{margin-top:4px;color:#94a3b8;font-size:8px}.cash-v2-period-grid .entry strong{color:#15803d}.cash-v2-period-grid .exit strong,.cash-v2-period-grid .negative strong{color:#dc2626}
.cash-v2-manual-card,.cash-v2-sessions{padding:0!important;overflow:hidden}.cash-v2-manual-card>summary,.cash-v2-sessions>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 17px;cursor:pointer;list-style:none}.cash-v2-manual-card>summary::-webkit-details-marker,.cash-v2-sessions>summary::-webkit-details-marker{display:none}.cash-v2-manual-card>summary h2,.cash-v2-sessions>summary h2{margin:2px 0 0;font-size:14px}.cash-v2-manual-card>summary p,.cash-v2-sessions>summary p{margin:4px 0 0;color:#718096;font-size:9px}.cash-v2-manual-card>summary>b,.cash-v2-sessions>summary>b{color:#64748b;font-size:9px}.cash-v2-manual-card[open]>summary,.cash-v2-sessions[open]>summary{border-bottom:1px solid #e7edf4;background:#fbfcfe}.cash-v2-manual-presets{display:flex;gap:6px;padding:12px 16px 0}.cash-v2-manual-presets button{padding:6px 10px;border:1px solid #dbeafe;border-radius:999px;background:#eff6ff;color:#2563eb;font-size:8.5px;font-weight:850;cursor:pointer}.cash-v2-manual-presets button:nth-child(n+2){border-color:#fed7aa;background:#fff7ed;color:#c2410c}.cash-v2-manual-form{display:grid;grid-template-columns:135px 180px 150px minmax(220px,1fr) 130px 140px auto;gap:8px;align-items:end;padding:12px 16px 16px}.cash-v2-manual-form .btn{height:41px}.cash-v2-edit-card{border-color:#bfdbfe!important;background:#f8fbff}.cash-v2-edit-card .cash-v2-manual-form{padding:0}.cash-v2-locked-state{display:flex;align-items:center;gap:10px;margin:0 16px 16px;padding:13px;border-radius:11px;background:#f1f5f9}.cash-v2-locked-state>span{font-size:17px}.cash-v2-locked-state>div{display:flex;flex-direction:column}.cash-v2-locked-state strong{font-size:10px}.cash-v2-locked-state small{margin-top:3px;color:#718096;font-size:9px}
.cash-v2-ledger{padding:0!important;overflow:visible}.cash-v2-ledger-head{padding:15px 16px;margin:0!important}.cash-v2-ledger-head p{margin:4px 0 0;color:#718096;font-size:9px}.cash-v2-filter{border-top:1px solid #e7edf4;background:#f8fafc}.cash-v2-filter-main{display:grid;grid-template-columns:minmax(250px,1fr) 145px 145px 170px auto auto;gap:8px;align-items:end;padding:12px 15px}.cash-v2-filter-advanced{display:grid;grid-template-columns:repeat(3,minmax(150px,220px));gap:8px;padding:0 15px 12px}.cash-v2-filter-advanced[hidden]{display:none}.cash-v2-filter label{font-size:9px}.cash-v2-filter input,.cash-v2-filter select{height:39px;min-height:39px}.cash-v2-filter .btn{height:39px}.cash-v2-table-wrap{border-top:1px solid #e7edf4;overflow:visible}.cash-v2-table{min-width:900px}.cash-v2-table th{padding:9px 11px;background:#f3f6f9;color:#526176;font-size:8.5px}.cash-v2-table td{padding:11px;font-size:9.5px;vertical-align:middle}.cash-v2-table td>small{display:block;margin-top:4px;color:#94a3b8;font-size:8px}.cash-v2-type,.cash-v2-origin{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:8px;font-weight:850}.cash-v2-type.entrada{background:#dcfce7;color:#15803d}.cash-v2-type.saida{background:#fee2e2;color:#b91c1c}.cash-v2-origin{background:#f1f5f9;color:#64748b}.cash-v2-value{font-weight:900;white-space:nowrap}.cash-v2-value.entrada{color:#15803d}.cash-v2-value.saida{color:#dc2626}.cash-v2-actions-cell{width:54px;text-align:center}.cash-v2-actions-cell>a{font-weight:850}.cash-v2-row-menu{position:relative;display:inline-block}.cash-v2-row-menu>summary{width:30px;height:30px;display:grid;place-items:center;border:1px solid #dbe4ee;border-radius:8px;background:#fff;color:#64748b;cursor:pointer;list-style:none}.cash-v2-row-menu>summary::-webkit-details-marker{display:none}.cash-v2-row-menu>div{position:absolute;right:0;top:35px;z-index:30;width:155px;padding:5px;border:1px solid #dbe4ee;border-radius:10px;background:#fff;box-shadow:0 14px 30px rgba(15,23,42,.16);text-align:left}.cash-v2-row-menu a,.cash-v2-row-menu button{display:block;width:100%;padding:8px;border:0;border-radius:7px;background:#fff;color:#334155;font-size:9px;font-weight:750;text-align:left;cursor:pointer}.cash-v2-row-menu button{color:#b91c1c}.cash-v2-row-menu a:hover,.cash-v2-row-menu button:hover{background:#f1f5f9}.cash-v2-row-menu form{margin:0}.cash-v2-empty{padding:34px!important;color:#718096;text-align:center}.cash-v2-sessions .table-wrap{border:0}.cash-v2-sessions table{min-width:850px}.cash-v2-sessions th,.cash-v2-sessions td{font-size:9px}
@media(max-width:1560px){.cash-v2-manual-form{grid-template-columns:repeat(3,1fr)}.cash-v2-manual-form .wide{grid-column:span 2}}
@media(max-width:1180px){.cash-v2-session{grid-template-columns:repeat(4,1fr)}.cash-v2-session-status{grid-column:1/3}.cash-v2-session-metric.compact{grid-column:auto}.cash-v2-manual-form{grid-template-columns:repeat(3,1fr)}.cash-v2-manual-form .wide{grid-column:span 2}.cash-v2-filter-main{grid-template-columns:minmax(230px,1fr) 140px 140px}.cash-v2-filter-main .btn{width:100%}}
@media(max-width:850px){.cash-v2-page-head{align-items:flex-start}.cash-v2-head-actions{width:100%;overflow:auto}.cash-v2-session,.cash-v2-session.is-closed{grid-template-columns:1fr 1fr}.cash-v2-session-status{grid-column:1/-1}.cash-v2-open-form,.cash-v2-close-panel{grid-column:1/-1}.cash-v2-close-form{grid-template-columns:1fr 1fr}.cash-v2-close-heading,.cash-v2-close-form .btn{grid-column:span 1}.cash-v2-period-grid{grid-template-columns:1fr 1fr}.cash-v2-filter-main{grid-template-columns:1fr 1fr}.cash-v2-filter-main label:first-child{grid-column:1/-1}.cash-v2-filter-advanced{grid-template-columns:1fr 1fr}.cash-v2-table-wrap{overflow:auto}.cash-v2-table{min-width:850px}}
@media(max-width:560px){.cash-v2-head-actions .btn{white-space:nowrap}.cash-v2-session,.cash-v2-session.is-closed{grid-template-columns:1fr}.cash-v2-session-status,.cash-v2-close-panel,.cash-v2-open-form{grid-column:auto}.cash-v2-open-form,.cash-v2-close-form,.cash-v2-manual-form,.cash-v2-filter-main,.cash-v2-filter-advanced{grid-template-columns:1fr}.cash-v2-manual-form .wide,.cash-v2-close-heading,.cash-v2-close-form .btn,.cash-v2-filter-main label:first-child{grid-column:auto}.cash-v2-period-head{align-items:flex-start;flex-direction:column}.cash-v2-period-shortcuts{width:100%;overflow:auto}.cash-v2-period-grid{grid-template-columns:1fr 1fr}.cash-v2-method-grid{display:flex;overflow:auto}.cash-v2-method-card{min-width:160px}.cash-v2-manual-presets{overflow:auto}.cash-v2-manual-presets button{white-space:nowrap}}

/* Contas Pix e identificação da conta no pagamento da venda. */
body.sale-screen .payment-account-label{display:none}.sale-payment-row.is-pix .payment-account-label{display:flex!important}.sale-payment-row.is-pix .payment-account{border-color:#86efac;background:#f0fdf4;color:#166534;font-weight:750}.sale-payment-row.is-pix .payment-context-fields{grid-template-columns:minmax(170px,.85fr) minmax(210px,1.2fr)}
.pix-accounts-page{display:grid;gap:16px}.pix-account-eyebrow{display:block;margin-bottom:4px;color:#2563eb;font-size:9px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}.pix-account-create{margin:0}.pix-account-create .card-head p{margin:4px 0 0;color:#64748b;font-size:10px}.pix-account-form{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr)) auto auto auto;gap:9px;align-items:end}.pix-account-check{height:41px;display:flex!important;flex-direction:row!important;align-items:center;gap:7px;padding:0 10px;border:1px solid #dbe4ee;border-radius:10px;background:#f8fafc;white-space:nowrap}.pix-account-check input{width:16px;height:16px;margin:0;accent-color:#2563eb}.pix-account-check span{font-size:9px;font-weight:750}.pix-account-form>.btn{height:41px}.pix-account-grid{display:grid;grid-template-columns:repeat(3,minmax(250px,1fr));gap:12px}.pix-account-card{margin:0!important;padding:16px!important}.pix-account-card.is-inactive{background:#f8fafc;opacity:.72}.pix-account-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.pix-account-card>header>div{display:flex;align-items:center;gap:9px}.pix-account-card>header>div:last-child{gap:5px}.pix-account-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:#dcfce7;color:#15803d;font-size:9px;font-weight:900}.pix-account-card header div div{display:flex;min-width:0;flex-direction:column}.pix-account-card header strong{font-size:11px}.pix-account-card header small{margin-top:3px;color:#718096;font-size:8px}.pix-account-result{display:flex;flex-direction:column;margin-top:14px;padding:12px;border-radius:11px;background:#eff6ff}.pix-account-result span{color:#64748b;font-size:8px}.pix-account-result strong{margin-top:5px;color:#123b63;font-size:18px}.pix-account-result small{margin-top:3px;color:#64748b;font-size:8px}.pix-account-key{display:flex;align-items:center;gap:7px;margin:10px 0 0;color:#64748b;font-size:8px}.pix-account-key b{min-width:0;overflow:hidden;color:#334155;text-overflow:ellipsis;white-space:nowrap}.pix-account-card>details{margin-top:12px;border-top:1px dashed #dbe4ee;padding-top:10px}.pix-account-card>details>summary{color:#2563eb;font-size:9px;font-weight:850;cursor:pointer;list-style:none}.pix-account-edit-form{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.pix-account-edit-form .pix-account-check{height:37px}.pix-account-edit-form>.btn{grid-column:1/-1}.finance-pix-summary{margin-bottom:16px}.finance-pix-summary .card-head p{margin:3px 0 0;color:#64748b;font-size:9px}.finance-pix-summary>div:last-child{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:8px}.finance-pix-summary article{display:flex;flex-direction:column;padding:12px;border:1px solid #dbe4ee;border-radius:11px;background:#f8fafc}.finance-pix-summary article span{display:flex;align-items:center;gap:5px;color:#334155;font-size:9px;font-weight:800}.finance-pix-summary article span small{padding:2px 5px;border-radius:999px;background:#dcfce7;color:#15803d;font-size:7px}.finance-pix-summary article strong{margin-top:6px;font-size:15px}.finance-pix-summary article em{margin-top:4px;color:#718096;font-size:8px;font-style:normal}
@media(max-width:1100px){.pix-account-form{grid-template-columns:repeat(3,1fr)}.pix-account-grid{grid-template-columns:1fr 1fr}}@media(max-width:720px){.pix-account-form,.pix-account-grid{grid-template-columns:1fr}.pix-account-form>.btn{width:100%}.pix-account-edit-form{grid-template-columns:1fr}.pix-account-edit-form>.btn{grid-column:auto}.sale-payment-row.is-pix .payment-context-fields{grid-template-columns:1fr}}

/* Recebimento de debitos anteriores durante uma nova venda. */
/* O painel do cliente tem dois estados e mostra um de cada vez. Antes exibia os
   dois juntos: sem cliente, o cartao anunciava "nao identificado" ocupando o
   lugar nobre enquanto a busca - que e a acao - ficava embaixo; com cliente, o
   nome aparecia duas vezes, no cartao e dentro do campo de busca. */
.sale-customer-panel:not(.is-identified) .customer-search-input{height:46px;font-size:.82rem}
.sale-customer-panel:not(.is-identified) .customer-search-caption{font-size:.68rem;font-weight:800;color:#243447}
.sale-customer-swap{margin-left:auto;align-self:center;padding:5px 11px;border:1px solid #d9e2ed;border-radius:999px;background:#fff;color:#475569;font:800 .58rem/1.2 Inter,sans-serif;cursor:pointer;white-space:nowrap;transition:border-color .16s ease,color .16s ease,background .16s ease}
.sale-customer-swap:hover{border-color:#f97316;background:#fff7ed;color:#c2410c}
.sale-customer-swap:focus-visible{outline:2px solid #ea580c;outline-offset:2px}
.sale-customer-extra{display:flex;justify-content:flex-end;margin-top:8px}
.sale-customer-extra:empty{display:none}
.sale-customer-balance-btn{display:inline-flex;align-items:center;gap:7px;padding:6px 9px;border:0;border-radius:11px;background:transparent;color:#64748b;font:700 .6rem/1.2 Inter,sans-serif;cursor:default;text-align:left;transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
.sale-customer-balance-btn .balance-icon{display:none;flex:0 0 auto;width:15px;height:15px}
.sale-customer-balance-btn .balance-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sale-customer-balance-btn .balance-text{display:flex;flex-direction:column;gap:1px;min-width:0}
.sale-customer-balance-btn .balance-label{font-size:.55rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;opacity:.75}
.sale-customer-balance-btn .balance-value{font-size:.95rem;font-weight:850;letter-spacing:-.01em;white-space:nowrap}
.sale-customer-balance-btn .balance-hint{display:none;flex:0 0 auto;font-size:.55rem;font-weight:800;white-space:nowrap;opacity:.9}
/* Sem debito nao e noticia: fica discreto, so pra confirmar que foi verificado. */
.sale-customer-balance-btn:not(.has-balance):not(.is-selected) .balance-value{font-size:.58rem;font-weight:700;opacity:.85}
/* Com debito e decisao de venda: precisa ser lido de longe. */
.sale-customer-balance-btn.has-balance{cursor:pointer;background:#fff7ed;color:#b45309;box-shadow:inset 0 0 0 1px #fdba74}
.sale-customer-balance-btn.has-balance .balance-icon,
.sale-customer-balance-btn.has-balance .balance-hint{display:block}
.sale-customer-balance-btn.has-balance .balance-value{color:#c2410c}
.sale-customer-balance-btn.has-balance:hover{background:#ffedd5;box-shadow:inset 0 0 0 1px #fb923c;transform:translateY(-1px)}
.sale-customer-balance-btn.has-balance:focus-visible{outline:2px solid #ea580c;outline-offset:2px}
/* Debito ja marcado pra receber nesta venda: vira confirmacao, nao alerta. */
.sale-customer-balance-btn.is-selected{cursor:pointer;background:#ecfdf5;color:#047857;box-shadow:inset 0 0 0 1px #6ee7b7}
.sale-customer-balance-btn.is-selected .balance-icon{display:block}
.sale-customer-balance-btn.is-selected .balance-value{color:#047857}
.sale-customer-balance-btn.is-selected:hover{background:#d1fae5}
.sale-customer-balance-btn:disabled{cursor:default;transform:none}
.sale-customer-balance-btn:disabled .balance-hint{display:none}.sale-receivables-modal .quick-modal-panel{width:min(850px,94vw);max-height:88vh}.sale-receivables-message{padding:10px 12px;border-radius:10px;background:#f8fafc;color:#64748b;font-size:.68rem}.sale-receivables-list{display:grid;gap:8px;max-height:48vh;overflow:auto;margin-top:10px}.sale-receivable-row{display:grid;grid-template-columns:22px minmax(0,1fr) 150px 100px;align-items:center;gap:12px;padding:11px 12px;border:1px solid #dfe7f0;border-radius:12px;background:#fff}.sale-receivable-row.is-selected{border-color:#86efac;background:#f0fdf4}.sale-receivable-row>input{width:17px;height:17px;accent-color:#16a34a}.sale-receivable-row>span{min-width:0}.sale-receivable-row>span strong,.sale-receivable-row>span small{display:block}.sale-receivable-row>span strong{color:#172033;font-size:.72rem}.sale-receivable-row>span small{margin-top:3px;overflow:hidden;color:#718096;font-size:.57rem;text-overflow:ellipsis;white-space:nowrap}.sale-receivable-row>label{color:#64748b;font-size:.52rem;font-weight:750}.sale-receivable-row>label input{height:34px;margin-top:3px;font-size:.67rem}.sale-receivable-row>b{text-align:right;color:#172033;font-size:.75rem}.sale-receivables-footer{display:grid;grid-template-columns:1fr 1fr 1.15fr auto;align-items:end;gap:9px;margin-top:12px;padding-top:12px;border-top:1px solid #e5edf4}.sale-receivables-footer>div{padding:8px 10px;border-radius:10px;background:#f8fafc}.sale-receivables-footer span,.sale-receivables-footer b{display:block}.sale-receivables-footer span{color:#718096;font-size:.52rem}.sale-receivables-footer b{margin-top:3px;color:#172033;font-size:.76rem}.sale-receivables-footer .is-total{background:#eff6ff}.sale-receivables-footer .is-total b{color:#1d4ed8}
@media(max-width:620px){.sale-receivable-row{grid-template-columns:20px minmax(0,1fr);gap:8px}.sale-receivable-row>label,.sale-receivable-row>b{grid-column:2}.sale-receivable-row>b{text-align:left}.sale-receivables-footer{grid-template-columns:1fr 1fr}.sale-receivables-footer .is-total,.sale-receivables-footer>button{grid-column:1/-1}}

/* Nitidez e legibilidade da tela de caixa em monitores Windows. */
body.cash-screen{font-family:"Segoe UI Variable Text","Segoe UI",Arial,sans-serif;-webkit-font-smoothing:auto;text-rendering:optimizeLegibility}
body.cash-screen .cash-v2{gap:18px}
body.cash-screen .cash-v2-eyebrow,body.cash-screen .cash-v2-card-kicker{font-size:10px;font-weight:750;letter-spacing:.1em}
body.cash-screen .cash-v2-page-head h1{font-size:28px;line-height:1.15}
body.cash-screen .cash-v2-page-head p{font-size:13px;line-height:1.45;color:#526176}
body.cash-screen .cash-v2-session-status>span{font-size:11px;font-weight:750}
body.cash-screen .cash-v2-session-status>strong{font-size:16px}
body.cash-screen .cash-v2-session-status>small,body.cash-screen .cash-v2-session-metric small{font-size:11px;line-height:1.45}
body.cash-screen .cash-v2-session-metric>span{font-size:11px;font-weight:650}
body.cash-screen .cash-v2-session-metric>strong{font-size:19px}
body.cash-screen .cash-v2-section-title span,body.cash-screen .cash-v2-period-head>div>span{font-size:10px;font-weight:750}
body.cash-screen .cash-v2-section-title h2{font-size:16px}
body.cash-screen .cash-v2-section-title>small{font-size:11px}
body.cash-screen .cash-v2-method-card>span{font-size:11px}
body.cash-screen .cash-v2-method-card>strong{font-size:20px}
body.cash-screen .cash-v2-method-card>small{font-size:10.5px;line-height:1.35}
body.cash-screen .cash-v2-period-head>div>strong{font-size:13px}
body.cash-screen .cash-v2-period-shortcuts a{font-size:11px;font-weight:700}
body.cash-screen .cash-v2-period-grid span{font-size:11px;font-weight:650}
body.cash-screen .cash-v2-period-grid strong{font-size:18px}
body.cash-screen .cash-v2-period-grid small{font-size:10.5px}
body.cash-screen .cash-v2-manual-card>summary h2,body.cash-screen .cash-v2-sessions>summary h2{font-size:16px}
body.cash-screen .cash-v2-manual-card>summary p,body.cash-screen .cash-v2-sessions>summary p,body.cash-screen .cash-v2-ledger-head p{font-size:11.5px;line-height:1.4}
body.cash-screen .cash-v2-manual-card>summary>b,body.cash-screen .cash-v2-sessions>summary>b{font-size:11px}
body.cash-screen .cash-v2-manual-presets button{font-size:11px;font-weight:700}
body.cash-screen .cash-v2 label,body.cash-screen .cash-v2-filter label{font-size:11.5px;font-weight:650}
body.cash-screen .cash-v2 input,body.cash-screen .cash-v2 select{font-size:13px}
body.cash-screen .cash-v2-filter input,body.cash-screen .cash-v2-filter select,body.cash-screen .cash-v2-filter .btn{height:42px;min-height:42px}
body.cash-screen .cash-v2-filter-main{gap:10px;padding:14px 16px}
body.cash-screen .cash-v2-filter-advanced{gap:10px;padding:0 16px 14px}
body.cash-screen .cash-v2-head-actions .btn{font-size:12px}
body.cash-screen .cash-v2-table th{padding:11px 12px;font-size:10.5px;font-weight:700;letter-spacing:.02em}
body.cash-screen .cash-v2-table td{padding:14px 12px;font-size:12px;line-height:1.4}
body.cash-screen .cash-v2-table td>strong{font-size:12px;font-weight:700}
body.cash-screen .cash-v2-table td>small{font-size:10.5px}
body.cash-screen .cash-v2-type,body.cash-screen .cash-v2-origin{font-size:10px;font-weight:700}
body.cash-screen .cash-v2-value{font-weight:750}
body.cash-screen .cash-v2-actions-cell>a{font-size:11px;font-weight:700}
body.cash-screen .cash-v2-sessions th{font-size:10.5px}
body.cash-screen .cash-v2-sessions td{font-size:11.5px}
body.cash-screen .cash-v2-close-panel>summary{font-size:12px;font-weight:700}
body.cash-screen .cash-v2-close-heading span,body.cash-screen .cash-v2-difference span{font-size:10.5px}
body.cash-screen .cash-v2-difference strong{font-size:13px}
body.cash-screen .cash-v2-difference small{font-size:10px}
@media(max-width:850px){body.cash-screen .cash-v2-table{min-width:920px}}

/* Painel fixo de conferência por forma de pagamento. */
body.cash-screen .cash-v2-method-grid{grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px}
body.cash-screen .cash-v2-method-card{min-height:112px;justify-content:flex-start;padding:15px 16px;box-shadow:0 5px 18px rgba(15,23,42,.045)}
body.cash-screen .cash-v2-method-card:not(.has-movement){background:#f8fafc;box-shadow:none}
body.cash-screen .cash-v2-method-card:not(.has-movement)>strong{color:#94a3b8}
body.cash-screen .cash-v2-method-card:before{background:#94a3b8}
body.cash-screen .cash-v2-method-card.is-dinheiro:before{background:#16a34a}
body.cash-screen .cash-v2-method-card.is-pix:before{background:#06b6d4}
body.cash-screen .cash-v2-method-card.is-debito:before{background:#2563eb}
body.cash-screen .cash-v2-method-card.is-credito:before{background:#7c3aed}
body.cash-screen .cash-v2-method-card.is-cheque:before{background:#d97706}
body.cash-screen .cash-v2-method-card.is-fiado:before{background:#ea580c}
body.cash-screen .cash-v2-method-card.is-boleto:before{background:#475569}
body.cash-screen .cash-v2-method-card.is-promissoria:before{background:#be185d}
body.cash-screen .cash-v2-method-card.is-dinheiro.has-movement{border-color:#bbf7d0;background:linear-gradient(135deg,#f0fdf4,#fff)}
body.cash-screen .cash-v2-method-card.is-pix.has-movement{border-color:#a5f3fc;background:linear-gradient(135deg,#ecfeff,#fff)}
body.cash-screen .cash-v2-method-card>small{flex-wrap:wrap;justify-content:space-between}
body.cash-screen .cash-v2-method-details{display:grid;gap:5px;margin-top:10px;padding-top:9px;border-top:1px dashed #dbe4ee}
body.cash-screen .cash-v2-method-details>span{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#64748b;font-size:10.5px}
body.cash-screen .cash-v2-method-details i{overflow:hidden;font-style:normal;text-overflow:ellipsis;white-space:nowrap}
body.cash-screen .cash-v2-method-details b{color:#0f766e;white-space:nowrap}
@media(max-width:560px){body.cash-screen .cash-v2-method-grid{display:grid;grid-template-columns:1fr 1fr;overflow:visible}body.cash-screen .cash-v2-method-card{min-width:0}}

/* Cadastro rápido de categoria dentro do formulário do produto. */
.product-category-field>span{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center}
.product-category-add{height:43px;padding:0 14px;border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8;font-weight:750;white-space:nowrap}
.product-category-add:hover{border-color:#93c5fd;background:#dbeafe}
body.product-category-modal-open{overflow:hidden}
.product-category-modal{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:20px;background:rgba(8,23,38,.56);backdrop-filter:blur(3px)}
.product-category-modal[hidden]{display:none}
.product-category-modal>section{width:min(500px,100%);overflow:hidden;border:1px solid #dbe4ee;border-radius:18px;background:#fff;box-shadow:0 25px 70px rgba(7,24,39,.3)}
.product-category-modal header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 19px;border-bottom:1px solid #e7edf4;background:#f8fafc}
.product-category-modal header>div{display:flex;flex-direction:column}
.product-category-modal header strong{font-size:15px}
.product-category-modal header small{margin-top:4px;color:#64748b;font-size:11px}
.product-category-modal header>button{width:32px;height:32px;border:1px solid #dbe4ee;border-radius:9px;background:#fff;color:#64748b;font-size:19px;cursor:pointer}
.product-category-modal-body{padding:19px}
.product-category-modal-body label{font-size:12px;font-weight:700}
.product-category-modal-body input{margin-top:6px;font-size:14px}
.product-category-modal-body p{min-height:18px;margin:8px 0 0;color:#dc2626;font-size:11px}
.product-category-modal footer{display:flex;justify-content:flex-end;gap:8px;padding:13px 19px;border-top:1px solid #e7edf4;background:#f8fafc}
@media(max-width:620px){.product-category-field>span{grid-template-columns:1fr}.product-category-add{width:100%}.product-category-modal{padding:10px}.product-category-modal footer{flex-direction:column-reverse}.product-category-modal footer .btn{width:100%}}

/* Identidade visual G4+. */
body .brand-logo-mark{display:grid!important;place-items:center!important;padding:5px!important;border:1px solid rgba(255,255,255,.12)!important;background:linear-gradient(145deg,#fff,#eaf3ff)!important;box-shadow:0 9px 20px rgba(2,8,23,.24)!important;overflow:hidden}
body .brand-logo-mark img{display:block;width:100%;height:100%;object-fit:contain}
.login-showcase-logo.login-g4plus-signature{width:340px;height:auto;max-height:96px;box-sizing:border-box;margin-bottom:30px;padding:0;border:0;border-radius:0;background:none;object-fit:contain;object-position:left center;filter:drop-shadow(0 6px 18px rgba(0,0,0,.32))}
@media(max-width:900px){.login-showcase-logo.login-g4plus-signature{width:330px;height:103px}}
@media(max-width:720px){.login-showcase-logo.login-g4plus-signature{width:205px;height:64px;margin-bottom:5px;border-radius:11px}}

/* Consulta interna de veículo pela placa na venda. */
.sale-vehicle-dialog-fields .sale-plate-field:after{display:none!important}
.sale-plate-lookup-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin-top:5px}
.sale-plate-lookup-row:before{content:"BRASIL";position:absolute;left:1px;right:76px;top:1px;z-index:1;height:14px;display:flex;align-items:center;justify-content:center;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#2563eb,#1748b0);color:#fff;font-size:7px;font-weight:750;letter-spacing:.12em;pointer-events:none}
.sale-vehicle-dialog-fields .sale-plate-lookup-row #vehiclePlate{margin:0!important}
.sale-plate-lookup-row .btn{width:69px;height:52px;min-height:52px;padding:0 9px;font-size:11px}
.sale-vehicle-lookup-status{display:block;min-height:17px;margin-top:6px;color:#718096;font-size:10px;font-weight:600;line-height:1.35}
.sale-vehicle-lookup-status.is-loading{color:#2563eb}.sale-vehicle-lookup-status.is-found{color:#15803d}.sale-vehicle-lookup-status.is-warning,.sale-vehicle-lookup-status.is-empty{color:#b45309}.sale-vehicle-lookup-status.is-error{color:#dc2626}
@media(max-width:560px){.sale-plate-lookup-row:before{right:82px}.sale-plate-lookup-row .btn{width:75px}}

/* Espaço suficiente para visualizar os sete caracteres da placa. */
.sale-vehicle-dialog{width:min(760px,100%)}
.sale-vehicle-dialog-fields{grid-template-columns:minmax(245px,.95fr) minmax(250px,1.25fr) minmax(120px,.55fr)}
.sale-vehicle-dialog-fields #vehiclePlate{min-width:0;font-size:15px!important;letter-spacing:.1em!important}
@media(max-width:700px){.sale-vehicle-dialog-fields{grid-template-columns:1fr 1fr}.sale-vehicle-dialog-fields .sale-plate-field{grid-column:1/-1}}
@media(max-width:560px){.sale-vehicle-dialog-fields{grid-template-columns:1fr}.sale-vehicle-dialog-fields .sale-plate-field{grid-column:auto}}

/* O input de quantidade na venda ficava espremido entre os botoes -/+ (varias
   regras antigas usam width:100% + min-width:0 dentro de um flex/grid apertado,
   o que deixa o numero digitado invisivel). Garante um tamanho minimo legivel
   sempre, em qualquer um dos modos de exibicao (flex no desktop, grid no card mobile). */
body.sale-screen .sale-work-table .sale-qty-cell input.qty{
  min-width:34px!important;
  flex-shrink:0!important;
  font-size:14px!important;
  color:#0f172a!important;
}

.fiscal-email-form{display:flex;gap:8px;align-items:center;grid-column:1/-1}
.fiscal-email-form input{flex:1;min-width:180px}

/* Input de data nao preenchia a largura da coluna por padrao do navegador,
   deixando um vazio ao lado (ex: "Data da nota" na venda). */
body.sale-screen .sale-operation-fields input[type="date"]{
  width:100%!important;
  box-sizing:border-box!important;
}

/* O botao "+ Novo cliente" ficava com uma coluna larga demais (quase 3/4 da
   linha), deixando um vazio grande entre ele e a busca. Aperta a coluna pro
   tamanho do botao em vez de uma fracao generosa da largura toda. */
@media(min-width:901px){
  body.sale-screen .sale-customer-field{grid-template-columns:minmax(0,1fr) auto!important}
}
body.sale-screen .sale-customer-field>.sale-quick-customer-btn{
  justify-self:start!important;
}

/* "Mais opcoes de impressao" ficava pequeno demais (0.6rem, cinza claro) e
   sumia entre as observacoes e os botoes grandes de finalizar - dificil de achar. */
body.sale-screen .sale-pro-sidebar .sale-advanced-options{
  margin:10px 0!important;
  padding:9px 12px!important;
  border:1px solid #d7e0ea!important;
  border-radius:10px!important;
  background:#f8fafc!important;
}
body.sale-screen .sale-pro-sidebar .sale-advanced-options summary{
  font-size:.78rem!important;
  color:#1f2d3d!important;
  font-weight:700!important;
}
body.sale-screen .sale-pro-sidebar .sale-advanced-options[open]{
  background:#fff!important;
}

.sale-detail-toolbar-extra{
  margin-bottom:14px;
  padding:10px 16px;
  display:flex;
  align-items:center;
}
.sale-detail-toolbar-extra .sale-stub-mode-form label{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:.78rem;
  font-weight:650;
  color:#334155;
  margin:0;
}
.sale-detail-toolbar-extra select{
  padding:6px 10px;
  border-radius:8px;
  border:1px solid #d7e0ea;
}

.related-part-result-card .thumb.empty{
  width:44px;
  height:44px;
  margin:0 auto;
  display:grid;
  place-items:center;
  background:#eef2f7;
  border-radius:8px;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
  text-align:center;
}
.related-part-photo{
  cursor:zoom-in;
}
.photo-lightbox{
  position:fixed;
  inset:0;
  background:rgba(2,8,23,.78);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:32px;
  z-index:300;
}
.photo-lightbox[hidden]{
  display:none;
}
.photo-lightbox-img{
  max-width:90vw;
  max-height:88vh;
  border-radius:14px;
  box-shadow:0 24px 60px rgba(0,0,0,.5);
  background:#fff;
  object-fit:contain;
}
.photo-lightbox-close{
  position:fixed;
  top:20px;
  right:24px;
  width:38px;
  height:38px;
  border-radius:999px;
  border:none;
  background:#fff;
  color:#17202a;
  font-size:20px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.3);
}

.product-detail-grid{
  align-items:start;
}
.section-subtitle{
  margin-top:22px;
  margin-bottom:10px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:16px;
}
.card > .section-subtitle:first-child{
  margin-top:0;
  padding-top:0;
  border-top:0;
}
.info-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(170px,1fr));
  gap:14px 20px;
}
.info-item{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.info-item.span-2{
  grid-column:span 2;
}
.info-item span{
  color:var(--muted);
  font-size:12.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.info-item strong{
  font-size:15px;
  font-weight:700;
  color:var(--text);
  word-break:break-word;
}
.info-item small{
  color:var(--muted);
  font-size:12px;
}
table.table-compact{
  min-width:0;
}
@media(max-width:640px){
  .info-item.span-2{grid-column:auto}
}

.balance-month-bar{
  display:flex;
  align-items:center;
  gap:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 16px;
  margin-bottom:20px;
  width:fit-content;
}
.balance-month-bar label{
  display:flex;
  align-items:center;
  gap:8px;
  flex-direction:row;
  font-size:13px;
  color:var(--muted);
  font-weight:700;
}
.balance-month-bar label svg{
  width:18px;
  height:18px;
  fill:none;
  stroke:var(--primary2);
  stroke-width:1.8;
}
.balance-month-bar select{
  width:auto;
  min-width:120px;
  border:1px solid #d7e0ea;
  border-radius:10px;
  padding:7px 12px;
  font-weight:700;
  color:var(--primary);
}

.balance-stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:18px;
}
.balance-stat-card{
  position:relative;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 20px 16px;
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.balance-stat-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:4px;
}
.balance-stat-card.accent-blue::before{background:var(--primary2)}
.balance-stat-card.accent-slate::before{background:#64748b}
.balance-stat-card.accent-green::before{background:#16a34a}
.balance-stat-card.accent-red::before{background:var(--danger)}
.balance-stat-card.accent-amber::before{background:#b54708}
.balance-stat-label{
  color:var(--muted);
  font-size:12.5px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.balance-stat-value{
  font-size:28px;
  font-weight:900;
  color:var(--text);
  line-height:1.15;
}
.balance-stat-card.accent-blue .balance-stat-value{color:var(--primary2)}
.balance-stat-card.accent-green .balance-stat-value{color:#16a34a}
.balance-stat-card.accent-red .balance-stat-value{color:var(--danger)}
.balance-stat-card.accent-amber .balance-stat-value{color:#b54708}
.balance-stat-caption{
  color:var(--muted);
  font-size:12.5px;
}

.balance-progress-card{
  margin-bottom:18px;
}
.balance-progress-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  margin-bottom:10px;
}
.balance-progress-head span{
  font-weight:700;
  color:#334155;
}
.balance-progress-head strong{
  font-size:20px;
  color:var(--primary2);
}
.balance-progress-track{
  height:12px;
  border-radius:999px;
  background:#eef2f7;
  overflow:hidden;
}
.balance-progress-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#16a34a,#22c55e);
  transition:width .3s ease;
}
.balance-progress-legend{
  display:flex;
  gap:20px;
  margin-top:10px;
  font-size:13px;
  color:#475569;
}
.balance-progress-legend .dot{
  display:inline-block;
  width:9px;
  height:9px;
  border-radius:999px;
  margin-right:6px;
}
.dot-green{background:#16a34a}
.dot-track{background:#cbd5e1}

.balance-table thead th{
  font-size:11.5px;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:#64748b;
}
.balance-table tbody tr:hover{
  background:#f8fafc;
}

.balance-alert-card{
  border-left:4px solid #b54708;
  background:#fffaf3;
}

@media(max-width:1000px){
  .balance-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .balance-stats{grid-template-columns:1fr}
  .balance-month-bar{width:100%}
}

/* Respiro maior no cartão de empresa/usuário no topo do menu lateral */
.brand-pro{
  gap:13px!important;
  padding:14px!important;
}
.sidebar-brand-copy>strong{
  font-size:15px!important;
  letter-spacing:.005em!important;
}
.sidebar-brand-copy>small{
  margin-top:4px!important;
  font-size:11px!important;
  color:#c3d7ea!important;
}
.sidebar-brand-meta{
  margin-top:9px!important;
}
.sidebar-brand-meta>span{
  font-size:11px!important;
  font-weight:600!important;
  color:#eef5fc!important;
}
.sidebar-brand-meta>em{
  font-size:10px!important;
  padding:4px 8px!important;
}
.sidebar-brand-meta>em i{
  width:6px!important;
  height:6px!important;
}

/* Dropdown de busca de cliente: precisa flutuar sobre o resto da tela, não ocupar uma célula do grid */
.sale-customer-field{
  position:relative!important;
}
.customer-search-results{
  position:absolute!important;
  left:0!important;
  right:0!important;
  z-index:60!important;
  background:#fff!important;
  border:1px solid var(--line)!important;
  border-radius:12px!important;
  box-shadow:0 14px 32px rgba(15,23,42,.18)!important;
  max-height:320px!important;
  overflow:auto!important;
  display:none!important;
  grid-area:unset!important;
}
.customer-search-results.open{
  display:block!important;
}
.customer-search-results>button{
  display:block;
  width:100%;
  text-align:left;
  border:0;
  border-bottom:1px solid var(--line);
  background:#fff;
  padding:10px 14px;
  cursor:pointer;
  font:inherit;
}
.customer-search-results>button:last-child{
  border-bottom:0;
}
.customer-search-results>button:hover,
.customer-search-results>button:focus{
  background:#f8fafc;
  outline:none;
}
.customer-search-results>button strong{
  display:block;
  font-size:.85rem;
  color:var(--text);
}
.customer-search-results>button small{
  display:block;
  color:var(--muted);
  font-size:.75rem;
  margin-top:2px;
}
.customer-search-results>span{
  display:block;
  padding:12px 14px;
  color:var(--muted);
  font-size:.82rem;
}

.sales-customer-filter{
  position:relative;
}
.sales-customer-filter .customer-search-results{
  top:100%!important;
  margin-top:6px;
}

/* Coluna de quantidade (botao -, campo, botao +): a tabela usa table-layout:fixed,
   entao a largura da coluna e travada e NAO cresce pra caber o conteudo - so
   "vaza" visualmente por cima da coluna vizinha (Valor unitario). Em vez de
   tentar alargar a coluna (nao funciona com table-layout:fixed), encolhemos
   os elementos pra caberem dentro do espaco ja reservado (~82px), e damos
   contorno visivel aos botoes (antes eram sem borda/fundo, quase invisiveis).
   Vale pros dois modos de exibicao (flex no desktop, grid no card mobile). */
.sale-qty-cell,
body.sale-screen .sale-work-table .sale-qty-cell{
  display:inline-flex!important;
  grid-template-columns:none!important;
  align-items:center!important;
  justify-content:center!important;
  gap:0!important;
  padding:7px 2px 2px!important;
  overflow:hidden!important;
  vertical-align:middle!important;
}
.sale-qty-cell::before,
body.sale-screen .sale-work-table .sale-qty-cell::before{
  content:none!important;
  display:none!important;
}
/* Visual "capsula": um unico fundo arredondado contendo os dois botoes e o
   campo, sem cada pedaco parecer uma caixinha separada. */
.sale-qty-cell{
  background:#f1f5f9!important;
  border:1px solid #e2e8f0!important;
  border-radius:999px!important;
}
.sale-qty-cell button{
  border:0!important;
  background:transparent!important;
  color:#125c99!important;
  border-radius:999px!important;
  width:19px!important;
  min-width:19px!important;
  height:32px!important;
  min-height:32px!important;
  flex:0 0 auto!important;
  font-size:14px!important;
  font-weight:700!important;
  line-height:1!important;
  padding:0!important;
  transition:background .15s ease,color .15s ease,transform .1s ease!important;
}
.sale-qty-cell button:hover{
  background:#dbeafe!important;
  color:#0f3b63!important;
}
.sale-qty-cell button:active{
  background:#bfdbfe!important;
  transform:scale(.92)!important;
}
.sale-qty-cell input.qty,
body.sale-screen .sale-work-table .sale-qty-cell input.qty,
body.sale-screen .sale-work-table .sale-qty-cell > input{
  width:26px!important;
  max-width:26px!important;
  min-width:0!important;
  flex:0 0 auto!important;
  padding:0!important;
  font-size:13px!important;
  font-weight:700!important;
  background:transparent!important;
  border:0!important;
  color:#0f172a!important;
}
.sale-qty-cell input.qty:focus{
  outline:none!important;
}

.topbar-support-shortcut.btn{
  border-color:#dbe4ee!important;
  background:#f8fafc!important;
  color:#526176!important;
}
.topbar-support-shortcut.btn:hover{
  background:#eef2f7!important;
  border-color:#c3cedb!important;
}
.topbar-support-shortcut svg{
  width:19px!important;
  height:19px!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.8!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
}

/* Data/hora no topo e so informativa (nao clicavel) - tirar a "cara" de botao
   pra nao competir visualmente com os icones que realmente fazem algo. */
.topbar-date{
  border:0!important;
  background:transparent!important;
  padding:0 4px!important;
}

/* Agrupa "Tela principal" e o botao de recolher/abrir menu numa linha so,
   com o mesmo tamanho e alinhados - antes eram dois controles soltos que
   pareciam desencontrados. */
.sidebar-top-row{
  display:flex!important;
  align-items:stretch!important;
  gap:6px!important;
  margin:0 2px 8px!important;
}
.sidebar-top-row .sidebar-home-shortcut{
  flex:1 1 auto!important;
  margin:0!important;
}
.sidebar-top-collapse-btn{
  flex:0 0 42px!important;
  width:42px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid rgba(147,174,200,.16)!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.035)!important;
  color:#bcd0e4!important;
  font-size:18px!important;
  cursor:pointer!important;
  transition:background .18s,border-color .18s,color .18s!important;
}
.sidebar-top-collapse-btn:hover{
  border-color:rgba(255,178,29,.36)!important;
  background:rgba(255,178,29,.10)!important;
  color:#ffbf43!important;
}
/* So faz sentido no modo expandido - recolhido, o icone de casa ja fica
   sozinho e centralizado, sem espaco sobrando pra esse botao junto. */
body.sidebar-collapsed .sidebar-top-collapse-btn{
  display:none!important;
}
body.sidebar-collapsed .sidebar-top-row{
  margin:0 0 8px!important;
}

/* ---- Permissoes por usuario ---- */
.perm-intro p{margin:0 0 8px;color:#41556b;font-size:14px;line-height:1.6}
.perm-intro p:last-child{margin-bottom:0}
.perm-note{font-size:13px}
.perm-block-head{display:flex;align-items:center;gap:10px;margin-bottom:12px}
.perm-block-head h2{margin:0;font-size:17px}
.perm-block.is-uncontracted{opacity:.62}
.perm-grid{display:grid;gap:9px;grid-template-columns:repeat(auto-fill,minmax(285px,1fr))}
.perm-item{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid #dbe5ee;border-radius:10px;background:#fff;cursor:pointer;transition:border-color .15s,background .15s}
.perm-item:hover{border-color:#9eb1c3;background:#f7fafd}
.perm-item.is-custom{border-color:#f0b429;background:#fffdf5}
.perm-item input{width:17px;height:17px;margin:2px 0 0;flex:0 0 auto;accent-color:#125e9a}
.perm-item-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.perm-item-copy strong{color:#132b42;font-size:14px;font-weight:600}
.perm-item-copy small{display:flex;flex-wrap:wrap;align-items:center;gap:6px;color:#7c8b9b;font-size:11.5px}
.perm-tag{padding:1px 7px;border-radius:999px;font-size:10.5px;font-weight:700;letter-spacing:.02em;white-space:nowrap}
.perm-tag.sensitive{background:#fdecec;color:#a32020}
.perm-tag.custom{background:#fdf0d0;color:#8a5b00}
.perm-tag.default{background:#eef2f7;color:#5d6f83}
.perm-tag.off{background:#eef2f7;color:#5d6f83}
.perm-save{display:flex;align-items:flex-end;gap:14px;flex-wrap:wrap;position:sticky;bottom:12px}
.perm-save label{flex:1 1 320px;display:flex;flex-direction:column;gap:4px}
.perm-save label small{color:#7c8b9b;font-weight:400}
@media(max-width:600px){.perm-grid{grid-template-columns:1fr}.perm-save{position:static}}

.statement-head-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.statement-breakdown{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:16px}
.statement-breakdown .card{padding:14px 16px}
.statement-breakdown h2{margin:0 0 8px;font-size:.86rem;color:#334155}
.statement-breakdown .payable-table{min-width:0;width:100%}
.statement-breakdown .payable-table td{padding:6px 4px;border-bottom:1px solid #eef2f7}
.statement-breakdown .payable-table small{color:#64748b}
@media(max-width:560px){.statement-head-actions{width:100%}.statement-head-actions .btn{width:100%;margin-top:6px}}

.sale-search-failure{display:flex;flex-direction:column;gap:4px;border-left:4px solid #ef4444;background:#fef2f2;color:#7f1d1d}
.sale-search-failure strong{font-size:.86rem}
.sale-search-failure small{color:#991b1b;line-height:1.35}

.supplier-parts{margin:14px 0;padding:12px;border:1px solid #dfe7ef;border-radius:12px;background:#f8fafc}
.supplier-parts-head{display:flex;flex-direction:column;margin-bottom:8px}
.supplier-parts-head small{color:#64748b}
.supplier-part-row{display:grid;grid-template-columns:150px 140px 1fr auto;gap:8px;align-items:end;padding:8px 0;border-bottom:1px solid #eef2f7}
.supplier-part-row:last-of-type{border-bottom:0}
.supplier-check-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.supplier-check-fields[hidden]{display:none}
.supplier-parts-total{margin-top:10px;text-align:right;color:#334155}
.supplier-parts-total strong{font-size:1.05rem}
.supplier-part-line{display:flex;flex-wrap:wrap;gap:6px;align-items:baseline}
.supplier-part-line b{color:#0f172a}
.supplier-part-line small{flex-basis:100%;color:#64748b}
.supplier-part-line em{font-style:normal;font-weight:700}
.supplier-check-actions{display:flex;gap:6px;flex-wrap:wrap}
@media(max-width:700px){.supplier-part-row{grid-template-columns:1fr 1fr}.supplier-check-fields{grid-column:1/-1;grid-template-columns:1fr}}

.supplier-check-fields{grid-template-columns:repeat(3,1fr)}
.supplier-check-owner{grid-column:span 2}
.supplier-check-owner-line{color:#0f172a!important;font-weight:600}

.faturamento-barra{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.faturamento-resumo{display:inline-flex;align-items:baseline;gap:8px;padding:8px 14px;border-radius:12px;background:#eff6ff;box-shadow:inset 0 0 0 1px #bfdbfe}
.faturamento-resumo small{font-size:.6rem;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:#1d4ed8;opacity:.8}
.faturamento-resumo strong{font-size:.72rem;font-weight:800;color:#1e3a5f}
.faturamento-resumo b{font-size:1.05rem;font-weight:850;letter-spacing:-.01em;color:#1d4ed8}

/* A folha do PDV esconde todo <small> de painel (body.sale-screen .sale-panel-label
   small{display:none!important}), e isso levava junto o contato do cliente -
   o cartao ficava com uma linha so na esquerda e um vazio embaixo do nome.
   O id ganha da regra por classe sem precisar desfazer o resto. */
#saleCustomerContact{display:block!important;margin-top:1px;color:#64748b;font-size:.62rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sale-customer-head{align-items:center;gap:10px}
.sale-customer-head .sale-customer-summary-meta{flex-direction:row;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.sale-customer-extra{display:flex;justify-content:flex-end;margin-top:6px}
.sale-customer-extra:empty{display:none!important}
/* Com cliente identificado o botao de veiculo sobe pra linha do cartao, entao a
   linha de baixo deixa de existir e some o espaco morto. */
.sale-customer-panel.is-identified .sale-customer-extra{display:none!important}

/* login: ajustes da referencia NEPO+ (divisor sob a identificacao da empresa,
   icones do botao e do suporte, curvas discretas no painel escuro). O restante
   da tela ja existia - aqui so entra o que a referencia acrescentou. */
.login-brand{padding-bottom:22px;border-bottom:1px solid #edf1f6;margin-bottom:26px}
.login-brand div h1{font-size:1.28rem;font-weight:800;letter-spacing:-.01em;color:#0f2744}
.login-brand div p{margin-top:3px;color:#64748b;font-size:.78rem;line-height:1.35}
.login-submit .login-submit-icon{flex:0 0 auto;width:17px;height:17px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.login-submit:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 10px 24px rgba(8,123,250,.28)}
.login-submit:active:not(:disabled){transform:translateY(0)}
.login-support{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:100%;font-size:.78rem}
.login-support .login-support-icon{flex:0 0 auto;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.login-footer{padding-top:18px;border-top:1px solid #edf1f6}
/* Curvas do painel institucional: duas linhas finas em azul e um traco laranja
   bem discreto, como na referencia. Ficam atras do conteudo e nao capturam clique. */

@media(prefers-reduced-motion:reduce){
  .login-submit:hover:not(:disabled){transform:none;box-shadow:none}
}
@media(max-width:1023px){
  .login-layout{width:min(1440px,94vw)}
  .login-card-modern{padding:38px}
}
@media(max-width:720px){
  .login-card-modern{width:100%;padding:26px;border-radius:16px}
  .login-brand{padding-bottom:16px;margin-bottom:18px}
  .login-input-wrap input{height:54px}
  .login-submit{height:54px}
}
@media(max-width:480px){
  .login-layout{width:100%;border-radius:0;border:0}
  .login-card-modern{padding:20px;border:0;box-shadow:none}
  .login-brand div h1{font-size:1.1rem}
}

/* O botao de entrar carrega as classes btn btn-primary, e .btn-primary pinta
   laranja. Aqui o azul da referencia precisa vencer explicitamente. */
.login-submit.btn-primary,.login-submit.btn-primary:hover{background:linear-gradient(90deg,#064BC4 0%,#087BFA 100%)!important;border-color:transparent!important;color:#fff!important}
.login-submit.btn-primary:disabled{background:linear-gradient(90deg,#8fa9d6 0%,#9cc3ef 100%)!important;box-shadow:none!important}
.login-options{flex-wrap:wrap;margin-top:14px}
.login-showcase-features li{padding-bottom:11px;border-bottom:1px solid rgba(255,255,255,.09)}
.login-showcase-features li:last-child{border-bottom:0}

/* login: tela travada na altura da janela, sem barra de rolagem.
   O container usava min-height, entao crescia junto com o conteudo e empurrava
   a pagina. Aqui a altura passa a ser fixa e o que sobrar rola por dentro do
   card, nao na pagina inteira. So vale do tablet pra cima: no celular a coluna
   unica precisa rolar, senao o formulario fica inalcancavel. */
@media(min-width:721px){
  body.login-page{height:100dvh;overflow:hidden}
  body.login-page .content{height:100dvh;min-height:0;padding:18px}
  .login-layout{height:min(760px,calc(100dvh - 36px));min-height:0;max-height:calc(100dvh - 36px)}
  .login-showcase{min-height:0;overflow:hidden}
  .login-form-area{min-height:0;overflow:auto;place-items:safe center;scrollbar-width:thin;padding:26px}
  .login-showcase-content{max-height:100%}
}
/* Telas baixas (notebook de 768px de altura): encolhe antes de precisar rolar. */
@media(min-width:721px) and (max-height:820px){
  .login-card-modern{padding:32px}
  .login-brand{padding-bottom:16px;margin-bottom:18px}
  .login-input-wrap input{height:50px}
  .login-submit{height:52px;margin-top:10px}
  .login-showcase{padding:34px}
  .login-g4plus-signature{max-height:74px;margin-bottom:20px}
  .login-showcase-features{gap:7px;margin-top:16px}
  .login-showcase-features li{padding-bottom:7px;font-size:13.5px}
  .login-showcase-cta{margin-top:18px}
}

/* login: card que encolhe junto com a janela, em vez de ganhar barra de rolagem.
   Depender de breakpoint de altura nao resolvia: cada navegador tem uma barra
   de ferramentas de tamanho diferente, entao a altura util varia na mesma
   resolucao. Com clamp() ligado a vh, o respiro diminui de forma continua e o
   conteudo cabe sem nunca precisar rolar. */
@media(min-width:721px){
  .login-card-modern{padding:clamp(22px,3.4vh,48px) clamp(24px,2.6vw,44px)}
  .login-brand{padding-bottom:clamp(11px,1.7vh,22px);margin-bottom:clamp(13px,2vh,26px)}
  .login-intro{margin-bottom:clamp(12px,1.8vh,22px)}
  .login-input-wrap input{height:clamp(46px,6.1vh,56px)}
  .login-form label{margin-bottom:clamp(4px,.7vh,9px)!important}
  .login-submit{height:clamp(46px,6.3vh,58px);margin-top:clamp(9px,1.4vh,14px)}
  .login-options{margin-top:clamp(9px,1.4vh,14px)}
  .login-help{margin:clamp(7px,1.1vh,12px) 0 0}
  .login-support{margin-top:clamp(10px,1.5vh,15px)}
  .login-footer{margin-top:clamp(11px,1.6vh,18px);padding-top:clamp(11px,1.6vh,18px)}
  /* o painel da esquerda acompanha, pra nao ficar desproporcional */
  .login-showcase{padding:clamp(30px,4.4vh,54px) clamp(28px,3vw,54px)}
  .login-g4plus-signature{max-height:clamp(56px,9vh,96px);margin-bottom:clamp(16px,2.6vh,30px)}
  .login-showcase-features{gap:clamp(6px,1vh,12px);margin-top:clamp(14px,2.4vh,28px)}
  .login-showcase-features li{padding-bottom:clamp(6px,1vh,11px)}
  .login-showcase-cta{margin-top:clamp(14px,2.4vh,30px)}
}

/* login: niveis de compactacao aplicados pelo login.js quando ele detecta que
   o conteudo nao coube. Sao progressivos - so entra o proximo se ainda sobrar. */
body.login-compacto .login-card-modern{padding:22px 26px}
body.login-compacto .login-brand{padding-bottom:12px;margin-bottom:14px}
body.login-compacto .login-brand-logo{width:78px;max-height:26px}
body.login-compacto .login-intro{margin-bottom:12px}
body.login-compacto .login-intro h2{font-size:1.18rem}
body.login-compacto .login-input-wrap input{height:46px}
body.login-compacto .login-submit{height:46px;margin-top:9px}
body.login-compacto .login-help{display:none}
body.login-compacto .login-about-link{display:none}
body.login-compacto .login-footer{margin-top:11px;padding-top:11px;font-size:11px}
body.login-compacto .login-showcase{padding:26px}
body.login-compacto .login-g4plus-signature{max-height:58px;margin-bottom:14px}
body.login-compacto .login-showcase-features{gap:5px;margin-top:13px}
body.login-compacto .login-showcase-features li{padding-bottom:5px;font-size:13px}
body.login-compacto .login-showcase-cta{margin-top:13px;padding:9px 17px}

body.login-super-compacto .login-card-modern{padding:16px 20px}
body.login-super-compacto .login-brand div p{display:none}
body.login-super-compacto .login-intro p{display:none}
body.login-super-compacto .login-intro h2{font-size:1.05rem}
body.login-super-compacto .login-input-wrap input{height:42px}
body.login-super-compacto .login-submit{height:44px}
body.login-super-compacto .login-showcase-description{display:none}
body.login-super-compacto .login-showcase h1{font-size:1.7rem}
body.login-super-compacto .login-showcase-cta{display:none}

body.login-minimo .login-showcase-features{display:none}
body.login-minimo .login-showcase-kicker{display:none}
body.login-minimo .login-support{display:none}
body.login-minimo .login-footer{display:none}
body.login-minimo .login-card-modern{padding:12px 16px}

/* A arte do painel e a mesma da referencia. O veu abaixo garante que o texto
   continue legivel mesmo quando o recorte da imagem cair numa area mais clara. */
.login-showcase::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:linear-gradient(100deg,rgba(4,17,35,.72) 0%,rgba(4,17,35,.38) 46%,rgba(4,17,35,.12) 100%)}
.login-showcase-content{position:relative;z-index:1}

/* menu: bloco de empresa em duas linhas. Antes eram quatro informacoes num
   quadradinho, com o cargo truncado. Fica a empresa em destaque e o usuario
   discreto embaixo; o resto abre no menu ao clicar. */
.sidebar-brand-copy{min-width:0;display:flex;flex-direction:column;gap:2px}
.sidebar-brand-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.86rem;font-weight:800;letter-spacing:-.01em;color:#fff}
.sidebar-brand-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;font-weight:600;color:rgba(255,255,255,.62)}

.extrato-folha{max-width:820px;margin:0 auto;padding:26px 30px}
.extrato-topo{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding-bottom:14px;border-bottom:2px solid #0f2744}
.extrato-topo strong{display:block;font-size:1.05rem;color:#0f2744}
.extrato-topo small{display:block;color:#64748b;font-size:.72rem}
.extrato-titulo{text-align:right}
.extrato-titulo span{display:block;font-size:.9rem;font-weight:800;color:#0f2744}
.extrato-titulo small{color:#64748b;font-size:.72rem}
.extrato-cliente{margin:16px 0 6px;padding:11px 13px;border-radius:10px;background:#f4f7fb}
.extrato-cliente strong{display:block;font-size:.92rem;color:#0f2744}
.extrato-cliente span{color:#64748b;font-size:.75rem}
.extrato-folha h3{margin:18px 0 7px;font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:#64748b}
.extrato-tabela{width:100%;border-collapse:collapse;font-size:.8rem}
.extrato-tabela th{padding:7px 9px;border-bottom:1px solid #d9e2ed;color:#64748b;font-size:.68rem;text-transform:uppercase;letter-spacing:.04em;text-align:left}
.extrato-tabela td{padding:7px 9px;border-bottom:1px solid #eef2f7;color:#1e293b}
.extrato-tabela .num{text-align:right;white-space:nowrap}
.extrato-total{display:flex;justify-content:space-between;align-items:center;margin-top:18px;padding:13px 15px;border-radius:11px;background:#0f2744;color:#fff}
.extrato-total strong{font-size:1.15rem;letter-spacing:-.01em}
.extrato-rodape{margin-top:16px;color:#64748b;font-size:.72rem;text-align:center}
@media print{.extrato-folha{max-width:none;box-shadow:none;border:0;padding:0}}

/* menu: busca no menu e posicao em laranja. */
.sidebar-search-trigger{
  display:flex;align-items:center;gap:9px;width:calc(100% - 24px);margin:2px 12px 12px;
  padding:9px 11px;border:1px solid rgba(148,178,214,.22);border-radius:11px;
  background:rgba(255,255,255,.05);color:#b9cfe8;
  font:600 12.5px/1.2 inherit;cursor:pointer;text-align:left;
  transition:border-color .18s ease,background .18s ease,color .18s ease}
.sidebar-search-trigger:hover{border-color:rgba(148,178,214,.45);background:rgba(255,255,255,.09);color:#fff}
.sidebar-search-trigger svg{flex:0 0 auto;width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.sidebar-search-trigger span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sidebar-search-trigger kbd{flex:0 0 auto;padding:2px 5px;border-radius:5px;background:rgba(255,255,255,.10);font-size:9.5px;font-weight:700;letter-spacing:.02em}
/* Menu recolhido: vira so o icone. */
body.sidebar-collapsed .sidebar-search-trigger{width:auto;margin:2px auto 10px;padding:9px;justify-content:center}
body.sidebar-collapsed .sidebar-search-trigger span,
body.sidebar-collapsed .sidebar-search-trigger kbd{display:none}
/* O botao do topo sai de cena quando o campo do menu esta visivel, e volta
   quando o menu esta recolhido ou no celular - senao a busca ficaria sem
   gatilho justamente nas telas menores. */
@media(min-width:1001px){
  body:not(.sidebar-collapsed) .topbar-search-shortcut:not(.icon-only){display:none}
}
@media(max-width:1000px){
  .sidebar-search-trigger{display:none}
}

/* Posicao atual em laranja: o azul do item ativo se perdia dentro de um menu
   azul-escuro. Barra fina na lateral em vez de item inteiro laranja, pra nao
   competir com o "Nova venda", que e acao. */
.sidebar-nav-pro .side-submenu-link.active{
  box-shadow:inset 3px 0 0 #ff8a1f!important;color:#fff!important}
.sidebar-nav-pro .side-submenu-link.active::before{background:#ff8a1f!important;opacity:1!important}
/* Sem barra no grupo: com o Financeiro aberto (onze itens) ela viraria uma
   faixa laranja de meia tela, competindo com o botao Nova venda. O grupo fica
   sinalizado pelo titulo e pelo icone; a barra marca so a tela em que voce esta. */
.sidebar-nav-pro .side-accordion-group.is-current::before{display:none!important}
.sidebar-nav-pro .side-accordion-group.is-current > .side-accordion-summary strong{color:#ffb265}
.sidebar-nav-pro .side-accordion-group.is-current .side-icon{
  border-color:rgba(255,138,31,.45)!important;color:#ffb265!important}

.nfce-titulo{margin:22px 0 4px;padding-top:16px;border-top:1px solid #e3eaf2;font-size:.85rem;font-weight:800;color:#0f2744}
.nfce-ajuda{margin:0 0 12px;color:#64748b;font-size:.76rem;line-height:1.45}

/* login: painel escuro nunca estoura a largura, mesmo sem JS.
   O ajuste de altura (ajustarAlturaDoLogin em login.js) so age DEPOIS que o
   JavaScript termina de rodar - entre a pagina pintar e o script agir (ou se
   o script falhar/demorar por qualquer motivo), o texto ficava do tamanho de
   tela larga tentando caber num painel estreito, e saia cortado sem
   possibilidade de rolar ate o resto (o painel tem overflow:hidden, entao nao
   sobra nem barra de rolagem - o texto so desaparece). Aqui a fonte e o
   espacamento diminuem por CSS puro, e o texto quebra por garantia. */
@media(max-width:640px){
  .login-showcase{padding:26px 22px}
  .login-showcase-content{width:100%}
  .login-showcase h1{font-size:clamp(22px,6vw,32px);max-width:100%;letter-spacing:-.5px}
  .login-showcase-kicker,.login-showcase-description,
  .login-showcase-features li,.login-showcase-cta{max-width:100%;overflow-wrap:anywhere}
  .login-showcase-kicker{font-size:11px;letter-spacing:.06em}
  .login-showcase-description{font-size:13.5px}
  .login-showcase-features{gap:8px;margin-top:14px}
  .login-showcase-features li{font-size:12.5px}
  .login-showcase-cta{margin-top:16px;padding:9px 15px;font-size:12px}
  .login-g4plus-signature{max-height:44px}
  .login-brand div p,.login-support,.login-footer{overflow-wrap:anywhere}
}
