/* ======================================================================
   PORTAL AMARIZ V24 — MOBILE FIRST + PERMISSÕES POR CARGO
   Camada de correção sobre styles.css / v23.css
   ====================================================================== */

[hidden]{display:none!important}
*,*::before,*::after{box-sizing:border-box}
html,body{max-width:100%;overflow-x:hidden}

/* ---------- Cabeçalho estável no desktop/tablet ---------- */
.topbar{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  overflow:visible!important;
  min-height:72px!important;
}
.topbar .brand{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  flex:0 0 auto!important;
  min-width:0!important;
  overflow:visible!important;
}
.topbar .brand img{display:block!important;object-fit:contain!important;object-position:center!important;width:auto!important;max-width:none!important}
.topbar .brand-amariz{height:48px!important;max-height:48px!important}
.topbar .brand-jucurutu{height:54px!important;max-height:54px!important}
.topbar .divider{height:42px!important;flex:0 0 1px!important}
.topbar-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex:1 1 auto!important;
  min-width:0!important;
  width:auto!important;
  gap:4px!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  margin-left:auto!important;
}
.topbar-link{flex:0 0 auto!important;white-space:nowrap!important}
.topbar-link.is-current{background:#fff1dc!important;color:#061e37!important;box-shadow:inset 0 -3px 0 #de5712!important}
.mobile-nav-toggle{display:none;border:1px solid #e7c99d;background:#fff8eb;border-radius:12px;width:44px;height:44px;padding:10px;cursor:pointer;align-content:center;gap:4px}
.mobile-nav-toggle span{display:block;height:2px;width:100%;border-radius:999px;background:#061e37;transition:.18s ease}
.mobile-menu-open .mobile-nav-toggle span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.mobile-menu-open .mobile-nav-toggle span:nth-child(2){opacity:0}
.mobile-menu-open .mobile-nav-toggle span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

@media(max-width:1180px) and (min-width:821px){
  .topbar .brand-amariz{height:42px!important}.topbar .brand-jucurutu{height:48px!important}
  .topbar-link{font-size:11px!important;padding-right:9px!important;padding-left:31px!important}
  .user-chip{min-width:190px!important}
}

@media(max-width:820px){
  body{padding-bottom:24px!important}
  .wrap,.wide-wrap{width:calc(100% - 16px)!important;max-width:none!important;margin-inline:auto!important}
  .topbar{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 44px!important;
    align-items:center!important;
    gap:8px!important;
    padding:8px 9px!important;
    min-height:62px!important;
    border-radius:16px!important;
    overflow:visible!important;
  }
  .topbar .brand{max-width:calc(100vw - 86px)!important;overflow:hidden!important;gap:7px!important}
  .topbar .brand-amariz{height:38px!important;max-height:38px!important;flex:0 1 auto!important}
  .topbar .brand-jucurutu{height:43px!important;max-height:43px!important;flex:0 1 auto!important}
  .topbar .divider{height:34px!important}
  .mobile-nav-toggle{display:grid!important;justify-self:end!important;z-index:10}
  .topbar-actions{
    display:none!important;
    grid-column:1/-1!important;
    width:100%!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    padding:9px 0 2px!important;
    margin:0!important;
    border-top:1px solid #ecd7b7!important;
    overflow:visible!important;
  }
  .topbar.mobile-menu-open .topbar-actions{display:grid!important}
  .topbar-link{
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    min-width:0!important;
    width:100%!important;
    min-height:48px!important;
    padding:9px 10px 9px 38px!important;
    border:1px solid #ecd6b4!important;
    border-radius:12px!important;
    background:#fffaf1!important;
    font-size:12px!important;
    line-height:1.15!important;
    white-space:normal!important;
  }
  .topbar-link .nav-icon{width:20px!important;height:20px!important;position:absolute!important;left:11px!important}
  .topbar-link.is-current{background:#fff0d7!important}
  .user-chip{grid-column:1/-1!important;width:100%!important;min-width:0!important;max-width:none!important;grid-template-columns:40px minmax(0,1fr) auto!important}
  .user-chip::after{display:none!important}
  .user-chip .compact-button{min-height:38px!important}
}

@media(max-width:390px){
  .topbar .brand-amariz{height:34px!important}.topbar .brand-jucurutu{height:39px!important}
  .topbar-actions{grid-template-columns:1fr!important}
}

/* ---------- Base Comercial: Gerenciamento ---------- */
.base-tabs.identity-tabs{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.management-section-heading p{margin:6px 0 0;color:#748195;font-size:12px}
.management-lock-badge{padding:8px 12px;border-radius:999px;background:#061e37;color:#fff2d8;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.management-hub-grid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:18px;align-items:start}
.management-hub-card{background:#fffdf9;border:1px solid #e7cfaa;border-radius:24px;overflow:hidden;box-shadow:0 8px 22px rgba(67,42,16,.055)}
.management-card-head{display:flex;gap:15px;align-items:flex-start;padding:20px 22px;border-bottom:1px solid #efddc2;background:#fff8ed}
.management-card-icon{display:grid;place-items:center;flex:0 0 52px;width:52px;height:52px;border-radius:15px;background:#061e37;color:#f0a01c}.management-card-icon .icon-svg{width:27px;height:27px}
.management-card-head small,.subsection-head small{display:block;color:#de5712;font-size:9px;font-weight:950;letter-spacing:.12em;text-transform:uppercase}.management-card-head h3{margin:3px 0 4px;color:#061e37;font-size:22px}.management-card-head p{margin:0;color:#738197;font-size:11px;line-height:1.45}
.management-card-body{display:grid;gap:12px;padding:20px 22px}.management-card-body textarea{min-height:112px}.management-label{font-size:10px;font-weight:900;color:#465a73;text-transform:uppercase;letter-spacing:.07em}.management-mini-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.management-full-button{width:100%;min-height:52px}
.management-notice-history{padding:0 22px 20px}.subsection-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 0 10px;border-top:1px solid #f0dfc6}.subsection-head h4{margin:2px 0 0;color:#061e37;font-size:16px}.base-notice-list{display:grid;gap:8px}.base-notice-row{display:grid;grid-template-columns:minmax(0,1fr) 38px;gap:10px;padding:12px 13px;border:1px solid #eadac1;border-left:4px solid #6f8aa6;border-radius:14px;background:#fff}.base-notice-row.priority-atencao{border-left-color:#e79a1e}.base-notice-row.priority-urgente{border-left-color:#c83d32}.base-notice-meta{display:flex;flex-wrap:wrap;gap:6px 9px;align-items:center;margin-bottom:5px}.base-notice-meta span,.base-notice-meta b{font-size:8px;text-transform:uppercase;letter-spacing:.06em}.base-notice-meta span{color:#de5712}.base-notice-meta b{color:#526985}.base-notice-meta time{margin-left:auto;color:#8995a4;font-size:8px}.base-notice-row>div>strong{display:block;color:#061e37;font-size:13px}.base-notice-row p{margin:4px 0 0;color:#65748a;font-size:10px;line-height:1.45}
.permission-info{margin:18px 20px 0;padding:11px 13px;border-radius:13px;background:#f4f7fa;border:1px solid #dce5ec;color:#5f7085;font-size:10px;line-height:1.45}.role-permission-grid{display:grid;gap:12px;padding:18px 20px 22px}.role-permission-card{border:1px solid #ead7b9;border-radius:17px;background:#fffaf3;overflow:hidden}.role-permission-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border-bottom:1px solid #efdfc7}.role-permission-head>div{display:flex;align-items:center;gap:10px}.role-permission-head h4{margin:0;color:#061e37;font-size:14px}.role-fixed-badge{padding:6px 9px;border-radius:999px;background:#eaf1f7;color:#49647f;font-size:8px;font-weight:900;text-transform:uppercase}.save-role-permissions{min-height:38px!important;padding:7px 10px!important;font-size:10px!important}.permission-toggle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#eadfce}.permission-toggle{position:relative;display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:62px;padding:10px 12px;background:#fffdf9;cursor:pointer}.permission-toggle>span{min-width:0}.permission-toggle strong{display:block;color:#173653;font-size:11px}.permission-toggle small{display:block;margin-top:2px;color:#8591a0;font-size:8px;line-height:1.3}.permission-toggle input{position:absolute;opacity:0;pointer-events:none}.permission-toggle i{position:relative;flex:0 0 38px;width:38px;height:22px;border-radius:999px;background:#cfd8df;transition:.18s}.permission-toggle i::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.18s}.permission-toggle input:checked+i{background:#de5712}.permission-toggle input:checked+i::after{transform:translateX(16px)}.permission-toggle.locked{cursor:default;background:#f8f8f6}.permission-toggle.locked i{opacity:.55}

@media(max-width:1100px){.management-hub-grid{grid-template-columns:1fr}.base-tabs.identity-tabs{grid-template-columns:repeat(4,minmax(150px,1fr))!important;overflow-x:auto!important}}
@media(max-width:700px){
  .base-tabs.identity-tabs{display:flex!important;overflow-x:auto!important;gap:8px!important;padding:8px!important;scroll-snap-type:x proximity}.base-tabs.identity-tabs button{flex:0 0 158px!important;min-height:82px!important;padding:11px!important;scroll-snap-align:start}.base-tabs.identity-tabs .tab-icon{width:42px!important;height:42px!important}.base-tabs.identity-tabs strong{font-size:14px!important}.base-tabs.identity-tabs small{font-size:9px!important}
  .management-card-head,.management-card-body{padding:15px}.management-notice-history{padding:0 15px 16px}.management-mini-grid{grid-template-columns:1fr}.permission-toggle-grid{grid-template-columns:1fr}.role-permission-head{align-items:flex-start;flex-direction:column}.save-role-permissions{width:100%}.management-lock-badge{font-size:8px}.management-section-heading{align-items:flex-start!important;flex-direction:column!important}
}

/* ---------- Portal público do cliente: celular é prioridade ---------- */
@media(max-width:700px){
  .customer-order-page{padding-bottom:130px!important}
  .customer-wrap{width:100%!important;max-width:none!important;padding:8px 10px 28px!important;margin:0!important}
  .customer-topbar{min-width:0!important;padding:8px 9px!important;gap:8px!important}.customer-brand{min-width:0!important;gap:7px!important}.customer-brand img:first-child{height:29px!important;max-width:82px!important;object-fit:contain!important}.customer-brand img:last-child{height:34px!important;max-width:70px!important;object-fit:contain!important}.customer-back{flex:0 0 38px!important}.customer-secure{display:none!important}
  .customer-hero{margin:10px 0!important;padding:17px!important;border-radius:18px!important}.customer-hero h1{font-size:36px!important}.customer-hero p{font-size:11px!important;line-height:1.4!important}.customer-hero-icon{display:none!important}
  .customer-identify-card,.customer-company-card,.customer-products-card,.customer-summary-card{width:100%!important;min-width:0!important;padding:13px!important;border-radius:18px!important;overflow:visible!important}
  .customer-company-card{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;align-items:start!important}.customer-company-card h2{max-width:100%!important;margin:4px 0!important;font-size:19px!important;line-height:1.08!important;overflow-wrap:anywhere!important;word-break:break-word!important}.customer-company-card .secondary{width:100%!important}
  .customer-section-head{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-bottom:10px!important}.customer-section-head h2{font-size:27px!important}.customer-table-pill{justify-self:start!important}
  .customer-product-tools{grid-template-columns:1fr!important;gap:8px!important}.customer-product-tools .search-wrap{width:100%!important;min-width:0!important}.customer-product-tools .secondary{width:100%!important;min-height:44px!important}
  .customer-products-card .chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;overscroll-behavior-x:contain!important;gap:7px!important;margin:0 -2px 10px!important;padding:0 2px 7px!important;scrollbar-width:none}.customer-products-card .chips::-webkit-scrollbar{display:none}.customer-products-card .chip{flex:0 0 auto!important;white-space:nowrap!important}
  .customer-products{gap:10px!important;width:100%!important;min-width:0!important}.customer-product-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"info" "qty" "total"!important;gap:10px!important;width:100%!important;min-width:0!important;padding:13px!important;overflow:hidden!important}.customer-product-info{grid-area:info!important;min-width:0!important}.customer-product-info strong{font-size:15px!important;line-height:1.18!important;overflow-wrap:anywhere!important}.customer-product-info span{font-size:9px!important;line-height:1.3!important}.customer-qty{grid-area:qty!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) 48px!important;gap:7px!important;width:100%!important;min-width:0!important}.customer-qty button{width:48px!important;height:46px!important;min-height:46px!important;border-radius:12px!important}.customer-qty input{width:100%!important;max-width:none!important;min-width:0!important;height:46px!important;min-height:46px!important;font-size:16px!important}.customer-product-total{grid-area:total!important;text-align:right!important;font-size:14px!important;color:#de5712!important}
  .customer-summary-card{gap:10px!important}.customer-summary-stats{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important}.customer-summary-stats>div{min-width:0!important}.customer-actionbar{grid-template-columns:1fr 1.65fr!important;gap:8px!important;padding:8px 10px calc(8px + env(safe-area-inset-bottom))!important}.customer-actionbar button{min-width:0!important;min-height:54px!important;padding:7px 8px!important;font-size:11px!important;white-space:normal!important}
  .keyboard-open .customer-actionbar{display:none!important}
}

@media(max-width:380px){
  .customer-wrap{padding-inline:7px!important}.customer-brand img:first-child{height:26px!important}.customer-brand img:last-child{height:31px!important}.customer-hero h1{font-size:32px!important}.customer-product-row{padding:11px!important}.customer-qty{grid-template-columns:44px minmax(0,1fr) 44px!important}.customer-qty button{width:44px!important}
}

/* ---------- Avarias mobile: hero e formulário sem conflito ---------- */
@media(max-width:720px){
  .damages-page .wrap{width:calc(100% - 12px)!important}
  .damage-hero{min-height:0!important;margin:10px 0!important;padding:20px 17px 84px!important;border-radius:20px!important;display:block!important;overflow:hidden!important}.damage-hero .module-hero-copy{max-width:100%!important;padding:0!important;position:relative!important;z-index:3!important}.damage-hero .eyebrow{font-size:10px!important;line-height:1.35!important;display:block!important;max-width:280px!important}.damage-hero h1{font-size:52px!important;line-height:.94!important;margin:8px 0 10px!important}.damage-hero p{font-size:13px!important;line-height:1.45!important;max-width:300px!important}.damage-hero .module-hero-art{width:210px!important;height:155px!important;right:-65px!important;top:92px!important;opacity:.12!important}.damage-hero .module-hero-action{left:16px!important;right:16px!important;bottom:16px!important;width:calc(100% - 32px)!important;min-height:52px!important;padding:9px 13px!important;font-size:14px!important;border-radius:14px!important;white-space:normal!important}
  .damage-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.damage-kpis article{min-width:0!important;padding:10px 11px!important}.damage-kpis strong{font-size:22px!important}.damage-kpis span,.damage-kpis small{font-size:8px!important}
  .damage-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;margin:8px 0 12px!important}.damage-tabs button{min-width:0!important;padding:8px 7px!important;font-size:11px!important}
  .damage-panel,.damage-card,.damage-filter-deck,.damage-form,.damage-items-card{min-width:0!important;max-width:100%!important;width:100%!important}.damage-card{padding:13px!important}.damage-card .section-heading h2{font-size:22px!important}.damage-card .section-heading p{font-size:10px!important}.damage-item-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;padding:10px!important}.damage-item-row input,.damage-item-row textarea,.damage-card input,.damage-card textarea,.damage-card select{width:100%!important;min-width:0!important;font-size:16px!important}.damage-remove-item{width:100%!important}.damage-form-actions{display:grid!important;grid-template-columns:1fr 1.35fr!important;position:sticky!important;bottom:8px!important}.damage-form-actions button{width:100%!important;min-width:0!important;padding:8px!important;font-size:11px!important}.damage-detail-sheet{width:calc(100% - 12px)!important;max-height:92dvh!important}.damage-modal-actions{grid-template-columns:1fr!important}.damage-modal-actions .danger{grid-column:auto!important}
}

/* ---------- Outras telas no celular ---------- */
@media(max-width:700px){
  .orders-page .page-intro,.management-page .management-hero,.commercial-base-page .commercial-hero,.receipts-page .receipts-hero{min-width:0!important;max-width:100%!important}
  .orders-page .page-intro h1{font-size:36px!important}.refined-orders-filters{padding:14px!important;border-radius:18px!important}.orders-filter-grid{grid-template-columns:1fr!important}.orders-status-tabs{display:flex!important;overflow-x:auto!important;flex-wrap:nowrap!important}.orders-status-tabs button{flex:0 0 auto!important}
  .management-hero{min-height:0!important;padding:20px!important}.management-hero h1{font-size:46px!important}.management-goal-card{grid-template-columns:1fr!important;padding:16px!important}.management-kpis{grid-template-columns:1fr!important}.charts-grid{grid-template-columns:1fr!important}
  .commercial-hero{padding:20px!important}.commercial-hero h1{font-size:46px!important}.commercial-lock{width:100%!important;min-width:0!important;padding:18px!important}
  .receipt-form-actions,.damage-form-actions{padding-bottom:calc(8px + env(safe-area-inset-bottom))!important}
  .modal-sheet{width:calc(100% - 12px)!important;max-width:none!important;max-height:92dvh!important;border-radius:20px!important}
}

/* ---------- Evita flash de módulos sem permissão enquanto o perfil carrega ---------- */
html:not([data-access-ready="true"]) .topbar-actions{visibility:hidden!important}
html[data-access-ready="true"] .topbar-actions{visibility:visible!important}
@media(max-width:820px){
  html:not([data-access-ready="true"]) .mobile-nav-toggle{visibility:hidden!important}
}

/* ---------- Novo pedido interno: mobile-first para promotores ---------- */
@media(max-width:700px){
  .order-entry-page{padding-bottom:112px!important}
  .order-entry-page .wrap{width:calc(100% - 12px)!important;padding-top:6px!important}
  .order-entry-page .page-intro{gap:8px!important;margin:10px 0!important}.order-entry-page .page-intro h1{font-size:35px!important;line-height:1!important}.order-entry-page .page-intro p{font-size:11px!important}
  .order-entry-page .panel{border-radius:18px!important;margin-bottom:10px!important;overflow:hidden!important}.order-entry-page .panel-head{padding:12px 13px!important}.order-entry-page .panel-head h2{font-size:20px!important;gap:8px!important}.order-entry-page .step{width:34px!important;height:34px!important;font-size:12px!important}.order-entry-page .panel-body{padding:13px!important}
  .order-entry-page .form-grid{grid-template-columns:1fr!important;gap:9px!important}.order-entry-page .field,.order-entry-page .field.sm,.order-entry-page .field.md,.order-entry-page .field.lg,.order-entry-page .field.full{grid-column:1/-1!important}.order-entry-page input,.order-entry-page textarea,.order-entry-page select{font-size:16px!important;min-width:0!important;width:100%!important}
  .order-entry-page .client-search-row,.order-entry-page .client-selected{grid-template-columns:1fr!important;gap:8px!important}
  .order-entry-page .price-mode-bar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;margin-bottom:12px!important}.order-entry-page .price-mode-card{min-height:66px!important;padding:8px 13px!important;border-radius:15px!important;gap:12px!important;justify-content:flex-start!important}.order-entry-page .price-mode-card strong{font-size:14px!important}.order-entry-page .price-mode-icon{width:43px!important;height:43px!important;min-width:43px!important;border-radius:12px!important}.order-entry-page .price-mode-card.active::after{left:15px!important;right:15px!important;height:4px!important}
  .order-entry-page .product-toolbar{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:10px!important;border-radius:15px!important;margin-bottom:12px!important}.order-entry-page .product-toolbar .search-wrap input{min-height:49px!important;font-size:16px!important;padding-left:43px!important}.order-entry-page .toolbar-actions{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;gap:7px!important}.order-entry-page .toolbar-actions button{width:100%!important;min-width:0!important;min-height:46px!important;padding:7px!important;font-size:11px!important}
  .order-entry-page .chips{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:7px!important;padding-bottom:8px!important;scrollbar-width:none}.order-entry-page .chips::-webkit-scrollbar{display:none}.order-entry-page .chip{flex:0 0 auto!important;min-height:40px!important;padding:8px 12px!important;font-size:10px!important}
  .order-entry-page .product-head{display:none!important}.order-entry-page .products{gap:9px!important}.order-entry-page .product-row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"info" "qty" "price" "total"!important;gap:7px!important;min-height:0!important;padding:12px!important;border-radius:15px!important}.order-entry-page .product-row>div:first-child{grid-area:info!important}.order-entry-page .qty-wrap{grid-area:qty!important;display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;width:100%!important;justify-content:stretch!important}.order-entry-page .qty-wrap input{width:100%!important;max-width:none!important;min-height:48px!important;font-size:17px!important;text-align:center!important}.order-entry-page .qty-wrap span{align-self:center!important;font-size:10px!important}.order-entry-page .price{grid-area:price!important;text-align:left!important}.order-entry-page .subtotal{grid-area:total!important;text-align:right!important;font-size:14px!important}.order-entry-page .product-name{font-size:14px!important;line-height:1.25!important}.order-entry-page .product-meta{gap:4px!important}.order-entry-page .tag{font-size:8px!important}
  .order-entry-page .mobile-actionbar{padding:8px 9px calc(8px + env(safe-area-inset-bottom))!important}.order-entry-page .mobile-action-inner{grid-template-columns:1fr 1.25fr!important;gap:7px!important}.order-entry-page .mobile-action-inner button{min-width:0!important;min-height:52px!important;padding:7px!important;font-size:11px!important;white-space:normal!important}
}

/* ---------- Canhotos mobile ---------- */
@media(max-width:720px){
  .receipts-page .wrap{width:calc(100% - 12px)!important}
  .receipts-hero{min-height:0!important;margin:10px 0!important;padding:20px 17px 84px!important;border-radius:20px!important;display:block!important;overflow:hidden!important}.receipts-hero .module-hero-copy{max-width:100%!important;padding:0!important;position:relative!important;z-index:3!important}.receipts-hero .eyebrow{font-size:10px!important;line-height:1.35!important}.receipts-hero h1{font-size:50px!important;line-height:.95!important;margin:8px 0 10px!important}.receipts-hero p{font-size:13px!important;line-height:1.45!important;max-width:290px!important}.receipts-hero .module-hero-art{width:210px!important;height:155px!important;right:-62px!important;top:88px!important;opacity:.12!important}.receipts-hero .module-hero-action{left:16px!important;right:16px!important;bottom:16px!important;width:calc(100% - 32px)!important;min-height:52px!important;padding:9px 13px!important;font-size:14px!important;border-radius:14px!important;white-space:normal!important}
  .receipt-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:7px!important}.receipt-kpis article{min-width:0!important;padding:10px 11px!important}.receipt-kpis strong{font-size:22px!important}.receipt-kpis span,.receipt-kpis small{font-size:8px!important}
  .receipt-tabs{display:grid!important;grid-template-columns:1fr 1fr!important;width:100%!important;margin:8px 0 12px!important}.receipt-tabs button{min-width:0!important;padding:8px 7px!important;font-size:11px!important}
  .receipt-filter-deck{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;padding:11px!important}.receipt-filter-deck>*{width:100%!important;min-width:0!important;font-size:16px!important}.receipt-grid{grid-template-columns:1fr!important}
  .receipt-form{grid-template-columns:1fr!important;gap:10px!important}.receipt-photo-card,.receipt-data-card{width:100%!important;min-width:0!important;padding:13px!important;border-radius:18px!important}.receipt-photo-drop{min-height:220px!important}.receipt-form .form-grid{grid-template-columns:1fr!important;gap:8px!important}.receipt-form .field,.receipt-form .field.sm,.receipt-form .field.md,.receipt-form .field.lg,.receipt-form .field.full{grid-column:1/-1!important}.receipt-form input,.receipt-form select,.receipt-form textarea{width:100%!important;min-width:0!important;font-size:16px!important}.receipt-client-summary{grid-template-columns:1fr!important}.receipt-form-actions{display:grid!important;grid-template-columns:1fr 1.35fr!important;position:sticky!important;bottom:8px!important;z-index:5!important}.receipt-form-actions button{width:100%!important;min-width:0!important;padding:8px!important;font-size:11px!important}
}

/* ---------- Home e Base: cards confortáveis no celular ---------- */
@media(max-width:700px){
  .home-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}.home-summary-card{min-width:0!important;padding:13px!important}.home-summary-value{font-size:22px!important}.home-actions-grid{grid-template-columns:1fr!important}.home-action{min-height:82px!important}
  .management-hub-grid{gap:12px!important}.management-hub-card{border-radius:18px!important}.management-card-head h3{font-size:19px!important}.management-card-body input,.management-card-body select,.management-card-body textarea{font-size:16px!important}
}


/* V25.19 — refinamentos pontuais: sugestões, avisos e mapa RN */
.management-hub-grid{grid-template-columns:1fr!important}
.notification-manager{width:100%;max-width:none}
.management-section-heading p{max-width:700px;line-height:1.45}
.notice-audience-options{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.notice-person-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;padding:4px}
.notice-person-option{display:flex;align-items:center;gap:10px;min-width:0;padding:10px 11px;border:1px solid #ead7b9;border-radius:13px;background:#fffaf3;cursor:pointer}
.notice-person-option:hover{border-color:#d8ae72;background:#fff5e7}
.notice-person-option input{width:17px;height:17px;flex:0 0 auto;accent-color:#de5712}
.notice-person-option span{min-width:0}.notice-person-option strong,.notice-person-option small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.notice-person-option strong{font-size:11px;color:#173653}.notice-person-option small{margin-top:2px;font-size:8px;color:#7e8b99}
.base-notice-row{grid-template-columns:minmax(0,1fr) 40px!important;align-items:start!important}.base-notice-row .danger-icon{width:36px!important;height:36px!important;display:grid!important;place-items:center!important}
.rn-map{background:#f8f2e8!important;border:1px solid #dfc79f!important;box-shadow:none!important}
.rn-map .leaflet-container,.rn-map .leaflet-pane{background:transparent!important}.rn-map .leaflet-control-container{display:none!important}
.map-layout{align-items:start}.city-ranking{max-height:590px;overflow:auto;box-shadow:none!important}.city-rank-row{width:100%;border:0;background:transparent;text-align:left}.city-rank-row>span{flex:0 0 auto}
.suggestion-history-actions{display:flex!important;flex-wrap:wrap!important;gap:7px!important;justify-content:flex-end!important}.suggestion-history-actions button{min-height:38px!important;padding:7px 10px!important;white-space:nowrap}.suggestion-remove-button{border-color:#efc3b9!important;color:#a83c27!important;background:#fff8f5!important}.suggestion-remove-button:hover{background:#fff0eb!important;border-color:#db917f!important}
@media(max-width:820px){.notice-person-grid{grid-template-columns:1fr}.notice-audience-options{grid-template-columns:1fr!important}.suggestion-history-actions{justify-content:stretch!important}.suggestion-history-actions button{flex:1 1 145px}.rn-map{height:440px!important}.city-ranking{max-height:none}}


/* ---------- Base Comercial: Produtos unificados ---------- */
.products-section-copy{margin:6px 0 0;color:#748195;font-size:11px}
.products-table-shell{overflow-x:auto}
.mix-head{grid-template-columns:minmax(250px,1.45fr) minmax(135px,.72fr) 88px 120px 120px 92px 86px!important;min-width:930px}
.product-price{color:#173653!important;font-size:11px!important;white-space:nowrap}
@media(max-width:1100px){.base-tabs.identity-tabs{grid-template-columns:repeat(3,minmax(150px,1fr))!important}}
@media(max-width:700px){.base-tabs.identity-tabs{display:flex!important}.mix-head{min-width:900px}}
