:root{
  --red:#b5121b;--red2:#e11d2e;--red-dark:#76000d;--ink:#22242a;--muted:#767982;
  --bg:#f4f5f7;--card:#fff;--line:#e8e9ed;--green:#15935b;--shadow:0 14px 35px rgba(32,35,42,.09);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;color:var(--ink);background:var(--bg)
}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}button,input,textarea,select{font:inherit}.hidden{display:none!important}
button{cursor:pointer}.app-shell{min-height:100vh;max-width:640px;margin:0 auto;background:var(--bg)}
.splash{position:fixed;inset:0;z-index:9999;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:30px;background:linear-gradient(155deg,#fff 0 60%,#f7e8e9 100%);transition:.35s}
.splash img{width:min(280px,74vw);height:auto}.splash strong{font-size:28px;margin-top:20px}.splash span{font-size:13px;color:var(--muted);margin-top:8px}.spinner{width:35px;height:35px;margin-top:34px;border-radius:50%;border:4px solid #ead1d3;border-top-color:var(--red);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
.login-view{min-height:100vh;padding:46px 20px 30px;display:flex;flex-direction:column;justify-content:center;background:linear-gradient(165deg,#fff 0 62%,#f8e8e9 100%)}
.login-brand{text-align:center;margin-bottom:24px}.login-brand img{width:min(290px,78vw)}.login-brand h1{font-size:27px;margin:16px 0 5px}.login-brand p{margin:0;color:var(--muted)}
.login-card{background:#fff;border-radius:27px;padding:23px;box-shadow:var(--shadow);border:1px solid rgba(181,18,27,.08)}
.field{margin-bottom:15px}.field label,.modal label{display:block;font-size:13px;font-weight:750;margin-bottom:7px;color:#44464e}
.input-wrap{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:15px;padding:0 13px;background:#fafafa}
.input-wrap:focus-within{border-color:var(--red);box-shadow:0 0 0 3px rgba(181,18,27,.08);background:#fff}
.input-wrap input{flex:1;border:0;outline:0;padding:14px 0;font-size:16px;background:transparent;min-width:0}.icon-btn{border:0;background:transparent;padding:8px}
.remember-row{display:flex;align-items:center;gap:9px;font-size:13px;margin:4px 0 18px}.remember-row input{width:18px;height:18px;accent-color:var(--red)}
.primary-btn{width:100%;border:0;border-radius:15px;padding:15px 18px;color:#fff;background:linear-gradient(135deg,var(--red2),var(--red-dark));font-weight:800;box-shadow:0 10px 22px rgba(181,18,27,.22)}
.primary-btn:disabled{opacity:.65}.message{min-height:21px;margin-top:12px;text-align:center;color:var(--red);font-size:13px}.login-footer{text-align:center;color:#8a8c93;font-size:12px;margin-top:22px}
.main-view{min-height:100vh;padding-bottom:92px}.app-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:14px 18px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.header-brand{display:flex;align-items:center;gap:12px}.header-brand img{width:102px;height:auto}.header-brand div{border-left:1px solid var(--line);padding-left:11px}.header-brand small{display:block;color:var(--red);font-weight:800;font-size:10px;text-transform:uppercase}.header-brand strong{font-size:15px}
.avatar-btn{width:39px;height:39px;border-radius:50%;border:0;background:var(--red);color:#fff;font-weight:850}.content{padding:18px}.page{display:none}.page.active{display:block}
.welcome-card{position:relative;overflow:hidden;display:flex;justify-content:space-between;align-items:flex-start;padding:23px;border-radius:24px;color:#fff;background:linear-gradient(135deg,#e21c2c 0%,#93000d 100%);box-shadow:0 15px 30px rgba(154,0,15,.23)}
.welcome-card:after{content:"";position:absolute;width:150px;height:150px;border:28px solid rgba(255,255,255,.09);border-radius:50%;right:-65px;bottom:-80px}.welcome-card small{opacity:.84}.welcome-card h2{margin:4px 0 8px;font-size:25px}.identity-line{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:5px 0 9px;font-size:14px}.identity-line span,.welcome-card p span{opacity:.78}.identity-line strong{font-size:16px}.identity-line em,.welcome-card p em{font-style:normal;opacity:.55;margin:0 2px}.welcome-card p{display:flex;align-items:center;gap:5px;flex-wrap:wrap;font-size:12px;margin:0;opacity:.95}.welcome-card p strong{font-size:13px}.sync-badge{display:flex;align-items:center;gap:6px;background:rgba(255,255,255,.16);padding:7px 10px;border-radius:999px}.dot{width:7px;height:7px;border-radius:50%;background:#56e69c;box-shadow:0 0 0 4px rgba(86,230,156,.15)}
.metrics-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0 24px}.metric-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:0 7px 18px rgba(30,32,38,.05)}.metric-icon{display:grid;place-items:center;width:40px;height:40px;background:#fff0f1;border-radius:13px}.metric-card small{display:block;color:var(--muted);font-size:11px}.metric-card strong{display:block;font-size:18px;margin-top:2px}
.section-heading{margin:4px 2px 13px}.section-heading small{color:var(--red);font-weight:800;text-transform:uppercase;font-size:10px}.section-heading h3{margin:3px 0 0;font-size:19px}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.quick-card{display:flex;flex-direction:column;align-items:flex-start;min-height:136px;padding:17px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--ink);box-shadow:0 7px 18px rgba(30,32,38,.05);text-align:left}.quick-card>span{font-size:25px;margin-bottom:auto}.quick-card strong{font-size:15px;margin-top:14px}.quick-card small{font-size:11px;color:var(--muted);margin-top:3px}.quick-card.accent{background:linear-gradient(145deg,#e51e30,#9e0010);color:#fff;border:0}.quick-card.accent small{color:rgba(255,255,255,.78)}
.last-sync{display:flex;gap:11px;align-items:center;margin-top:15px;padding:14px 16px;border-radius:16px;background:#edf9f3;color:var(--green)}.last-sync>span{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#d5f1e3}.last-sync small{display:block;font-size:10px}.last-sync strong{font-size:13px}
.bottom-nav{position:fixed;z-index:100;bottom:0;left:50%;transform:translateX(-50%);width:min(640px,100%);height:74px;display:grid;grid-template-columns:repeat(5,1fr);padding:8px 7px max(8px,env(safe-area-inset-bottom));background:#fff;border-top:1px solid var(--line);box-shadow:0 -10px 26px rgba(30,32,38,.07)}
.nav-item{border:0;background:transparent;color:#7b7e86;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px}.nav-item span{font-size:20px}.nav-item small{font-size:10px}.nav-item.active{color:var(--red);font-weight:800}.nav-main span{display:grid;place-items:center;width:42px;height:42px;margin-top:-26px;border-radius:50%;background:var(--red);color:#fff;box-shadow:0 9px 18px rgba(181,18,27,.28)}.nav-main small{margin-top:1px}
.page-toolbar{display:flex;align-items:center;justify-content:space-between;gap:11px;margin-bottom:15px}.page-toolbar h2{margin:3px 0 0}.page-toolbar small{color:var(--red);font-weight:800}.search-box{flex:1;display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:15px;padding:0 13px}.search-box input{width:100%;border:0;outline:0;background:transparent;padding:13px 0}.round-action{width:45px;height:45px;border-radius:14px;border:0;background:var(--red);color:#fff;font-size:24px}
.list-container{display:flex;flex-direction:column;gap:11px}.list-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px;box-shadow:0 6px 15px rgba(30,32,38,.04)}.list-card-top{display:flex;justify-content:space-between;gap:12px}.list-card h3{margin:0 0 5px;font-size:15px}.list-card p{margin:0;color:var(--muted);font-size:12px}.badge{display:inline-flex;align-items:center;padding:6px 9px;border-radius:999px;background:#fff0f1;color:var(--red);font-size:10px;font-weight:800;white-space:nowrap}.card-meta{display:flex;justify-content:space-between;gap:10px;margin-top:12px;padding-top:11px;border-top:1px solid var(--line);font-size:11px;color:#62656d}.price{color:var(--red);font-size:18px!important;font-weight:850}.stock-ok{color:var(--green);font-weight:750}.stock-low{color:#d98200;font-weight:750}
.empty-state{text-align:center;padding:44px 18px;color:var(--muted);font-size:13px}.loading{opacity:.7}.finance-summary{padding:23px;border-radius:23px;background:linear-gradient(145deg,#24262c,#0d0e11);color:#fff;margin-bottom:15px}.finance-summary small,.finance-summary span{display:block;color:#bfc1c7}.finance-summary strong{display:block;font-size:28px;margin:5px 0}.finance-summary span{font-size:12px}.overdue{color:#d51b2c;font-weight:800}.feature-card{text-align:center;background:#fff;border:1px solid var(--line);border-radius:25px;padding:36px 23px;box-shadow:var(--shadow)}.feature-card .big-icon{font-size:54px}.feature-card h2{margin:16px 0 8px}.feature-card p{color:var(--muted);font-size:14px;line-height:1.55;margin-bottom:22px}
.toast{position:fixed;z-index:300;left:50%;bottom:92px;transform:translate(-50%,25px);opacity:0;pointer-events:none;min-width:230px;max-width:90%;padding:13px 16px;border-radius:14px;background:#22242a;color:#fff;text-align:center;font-size:13px;transition:.25s}.toast.show{opacity:1;transform:translate(-50%,0)}
.modal{border:0;border-radius:24px;padding:0;width:min(92vw,480px);box-shadow:0 25px 60px rgba(0,0,0,.22)}.modal::backdrop{background:rgba(20,21,25,.55);backdrop-filter:blur(3px)}.modal form{padding:22px}.modal header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.modal header h3{margin:2px 0}.modal header small{color:var(--red);font-weight:800}.close-modal{border:0;background:#f2f2f4;border-radius:50%;width:36px;height:36px;font-size:22px}.modal input,.modal textarea,.modal select{width:100%;border:1px solid var(--line);border-radius:13px;padding:12px;margin:6px 0 13px;outline:0}.modal input:focus,.modal textarea:focus,.modal select:focus{border-color:var(--red)}
@media(min-width:560px){.quick-grid{grid-template-columns:repeat(3,1fr)}.metrics-grid{grid-template-columns:repeat(4,1fr)}.metric-card{padding:13px}.content{padding:22px 24px}}

/* FASE 2 - PEDIDOS */
.order-page{padding-bottom:92px}.order-progress{display:flex;align-items:center;justify-content:center;margin:5px 0 23px}.order-progress span{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#e7e8eb;color:#777;font-size:12px;font-weight:850}.order-progress span.active{background:var(--red);color:#fff;box-shadow:0 8px 15px rgba(181,18,27,.2)}.order-progress span.done{background:var(--green);color:#fff}.order-progress i{width:56px;height:3px;background:#e4e5e9}.order-progress i.done{background:var(--green)}
.order-selection{margin-top:13px}.client-select-card{cursor:pointer;transition:.18s}.client-select-card:active{transform:scale(.985);border-color:var(--red)}.selected-customer{background:linear-gradient(145deg,#292b31,#101114);color:#fff;border-radius:19px;padding:17px;margin-bottom:13px}.selected-customer small{display:block;color:#c9cbd0;font-size:10px}.selected-customer strong{display:block;font-size:16px;margin:3px 0}.selected-customer span{font-size:11px;color:#b9bbc1}.select-label{display:block;font-size:12px;font-weight:800;margin:12px 0;color:#4d5058}.select-label select,.select-label input,.select-label textarea{display:block;width:100%;margin-top:7px;padding:13px;border:1px solid var(--line);border-radius:14px;background:#fff;outline:0}.select-label select:focus,.select-label input:focus,.select-label textarea:focus{border-color:var(--red)}
.product-order-list{display:flex;flex-direction:column;gap:10px;margin-top:13px}.order-product{display:grid;grid-template-columns:1fr auto;gap:12px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:15px}.order-product h3{font-size:14px;margin:0 0 4px}.order-product p{font-size:11px;color:var(--muted);margin:0}.order-product .product-price{display:block;font-size:17px;font-weight:850;color:var(--red);margin-top:10px}.add-product-btn{align-self:center;width:43px;height:43px;border:0;border-radius:14px;background:var(--red);color:#fff;font-size:24px}.cart-bar{position:fixed;z-index:95;bottom:74px;left:50%;transform:translateX(-50%);width:min(640px,100%);display:flex;align-items:center;justify-content:space-between;padding:12px 18px;background:#202228;color:#fff;box-shadow:0 -10px 28px rgba(0,0,0,.15)}.cart-bar small{display:block;color:#bec0c6}.cart-bar strong{font-size:18px}.cart-bar button{border:0;border-radius:12px;background:var(--red);color:#fff;padding:12px 16px;font-weight:800}
.cart-items{display:flex;flex-direction:column;gap:10px;margin:13px 0}.cart-item{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px}.cart-item-head{display:flex;justify-content:space-between;gap:10px}.cart-item h4{margin:0;font-size:14px}.cart-item .remove-item{border:0;background:#fff0f1;color:var(--red);border-radius:10px;width:32px;height:32px}.cart-item-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.mini-field label{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.mini-field input{width:100%;border:1px solid var(--line);border-radius:11px;padding:10px}.cart-item-total{display:flex;justify-content:space-between;margin-top:11px;padding-top:10px;border-top:1px solid var(--line);font-size:12px}.cart-item-total strong{color:var(--red)}.order-totals{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px;margin:15px 0}.order-totals>div{display:flex;justify-content:space-between;padding:7px 0;font-size:13px}.order-totals .grand{border-top:1px solid var(--line);margin-top:5px;padding-top:13px;font-size:18px}.order-totals .grand strong{color:var(--red)}.secondary-btn{width:100%;border:1px solid var(--line);border-radius:15px;padding:14px;background:#fff;margin-top:9px;font-weight:800;color:#555}.status-pill{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:850}.status-PENDENTE{background:#fff3d7;color:#9d6900}.status-INTEGRADO{background:#dcf5e8;color:#087346}.status-ERRO{background:#fee3e5;color:#b5121b}.order-number{color:var(--red);font-weight:850}.order-success{text-align:center;padding:25px}.order-success .check{width:68px;height:68px;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px;background:#dcf5e8;color:var(--green);font-size:34px}


/* FINANCEIRO POR CLIENTE E ALERTA DE DÉBITO */
.finance-toolbar{align-items:stretch}.finance-clear{font-size:22px;background:#35373d}.finance-customer-info{display:flex;flex-direction:column;gap:3px;margin:-3px 0 13px;padding:14px 16px;border:1px solid #f1c9cd;border-radius:17px;background:#fff5f6}.finance-customer-info span{font-size:10px;text-transform:uppercase;font-weight:850;color:var(--red)}.finance-customer-info strong{font-size:15px}.finance-customer-info small{color:var(--muted)}
.debt-modal{max-width:430px}.debt-alert-box{padding:27px 22px 22px;text-align:center}.debt-alert-icon{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 13px;border-radius:50%;background:#fff0d9;font-size:34px}.debt-alert-box>small{display:block;color:#b36b00;font-weight:850;text-transform:uppercase}.debt-alert-box h3{margin:6px 0 8px;font-size:21px}.debt-alert-box p{margin:0;color:var(--muted);font-size:13px}.debt-alert-box>strong{display:block;margin:14px 0 20px;color:var(--red);font-size:30px}.debt-alert-box .secondary-btn{margin-top:9px}

.debt-titles-modal{max-width:520px}.debt-titles-box{padding:20px}.debt-titles-box header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.debt-titles-box header small{display:block;color:var(--red);font-weight:850;text-transform:uppercase;font-size:10px}.debt-titles-box header h3{margin:3px 0 0;font-size:20px}.debt-titles-box header .close-modal{position:static}.debt-titles-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;margin-bottom:12px;border-radius:16px;background:#fff5f6;border:1px solid #f1c9cd}.debt-titles-summary span{font-size:12px;color:var(--muted)}.debt-titles-summary strong{font-size:22px;color:var(--red)}.debt-titles-list{display:flex;flex-direction:column;gap:9px;max-height:48vh;overflow:auto;margin-bottom:14px}.debt-title-card{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:15px;background:#fff}.debt-title-card>div{display:flex;flex-direction:column;gap:3px}.debt-title-card small{font-size:11px;color:var(--muted)}.debt-title-value{text-align:right;align-items:flex-end}.debt-title-value>strong{color:var(--red);font-size:16px}

.form-message{min-height:20px;margin:4px 0 8px;font-size:13px;font-weight:600}.form-message:not(:empty){padding:8px 10px;border-radius:8px;background:#fff2f2;color:#9f1d1d}.primary-btn:disabled{opacity:.65;cursor:wait}

.orders-filters{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:13px;padding:13px;background:#fff;border:1px solid var(--line);border-radius:18px}.orders-filters label{font-size:11px;font-weight:800;color:#555861}.orders-filters label span{display:block;margin-bottom:6px}.orders-client-filter,.orders-period-title{grid-column:1/-1}.orders-period-title{margin-top:2px;font-size:11px;font-weight:850;color:#555861}.orders-filters input{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:12px;background:#fff;outline:0}.orders-filters input:focus{border-color:var(--red)}.orders-filters button{grid-column:1/-1;border:0;border-radius:12px;padding:11px;background:#f1f2f4;color:#4f525a;font-weight:800}.filter-result{margin:-3px 2px 12px;color:var(--muted);font-size:11px;font-weight:700}@media(max-width:360px){.orders-filters{grid-template-columns:1fr}}

.order-product-search-row{display:flex;gap:9px;align-items:stretch}.order-product-search-row .product-code-search{flex:0 0 105px}.order-product-search-row .product-code-search span{font-weight:900;color:var(--red)}.order-product-search-row .product-code-search input{text-align:center}.order-product-search-row .product-name-search{min-width:0}@media(max-width:420px){.order-product-search-row{gap:7px}.order-product-search-row .product-code-search{flex-basis:92px}.order-product-search-row .search-box{padding-left:10px;padding-right:10px}}

/* Campos de quantidade e desconto otimizados para digitação no celular */
.number-stepper{display:grid;grid-template-columns:42px minmax(70px,1fr) 42px;align-items:stretch;border:1px solid var(--line);border-radius:13px;overflow:hidden;background:#fff}
.number-stepper button{border:0;background:#f4f4f6;color:var(--red);font-size:23px;font-weight:850;min-height:45px;touch-action:manipulation}
.number-stepper button:active{background:#ffe7e9}
.number-stepper input{width:100%;min-width:0;border:0!important;border-left:1px solid var(--line)!important;border-right:1px solid var(--line)!important;border-radius:0!important;padding:10px 5px!important;text-align:center;font-size:18px;font-weight:800;color:var(--ink);outline:0;background:#fff}
.number-stepper input:focus{box-shadow:inset 0 0 0 2px rgba(181,18,27,.18)}
@media(max-width:430px){.cart-item-controls{grid-template-columns:1fr;gap:12px}.number-stepper{grid-template-columns:48px minmax(90px,1fr) 48px}.number-stepper button{min-height:48px}.number-stepper input{font-size:20px}}


/* Seleção de embalagem/preço do produto */
.embalagem-modal{width:min(94vw,520px);border-radius:0;background:#f1f2f4}.embalagem-box{padding:0;background:#f1f2f4}.embalagem-titlebar{height:38px;padding:0 10px;display:flex;align-items:center;justify-content:space-between;background:#e9685e;color:#fff;font-size:13px}.embalagem-titlebar button{border:0;background:transparent;color:#fff;width:32px;height:32px;font-size:22px;line-height:1;cursor:pointer}.embalagem-produto-area{padding:12px 20px 14px;background:#f3f4f6;border-bottom:1px solid #d7d9dd}.embalagem-produto-area span{display:block;font-size:13px;font-weight:800;color:#111}.embalagem-produto-area h3{margin:5px 0 0;font-size:18px;color:#050505}.embalagem-opcoes{min-height:150px;max-height:270px;overflow:auto;background:#fff;border-bottom:1px solid #d7d9dd;padding:4px 8px}.embalagem-option{display:block;width:100%;padding:2px 4px;border:0;border-radius:0;background:#fff;text-align:left;color:#111;font:inherit;cursor:pointer}.embalagem-option:hover{background:#eaf3ff}.embalagem-option.selected{background:#087be8;color:#fff;outline:1px dotted #111;outline-offset:-2px}.embalagem-option .embalagem-linha{display:block;font-size:16px;line-height:24px}.embalagem-option small{display:block;font-size:11px;opacity:.82}.embalagem-footer{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;padding:10px;background:#f1f2f4}.embalagem-selecionado span{display:block;font-size:13px;color:#111}.embalagem-selecionado strong{display:block;margin-top:4px;font-size:20px;color:#111}.embalagem-acoes{display:flex;gap:8px}.embalagem-acoes .primary-btn,.embalagem-acoes .secondary-btn{width:auto;min-width:86px;margin:0;padding:10px 14px;border-radius:5px;font-size:13px}.cart-item-head small.emb-info{color:var(--red);font-weight:750}
@media(max-width:430px){.embalagem-footer{align-items:stretch;flex-direction:column}.embalagem-acoes{width:100%}.embalagem-acoes .primary-btn,.embalagem-acoes .secondary-btn{flex:1}}


/* Espelho e compartilhamento dos pedidos */
.order-card-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:13px}.order-card-actions button{border-radius:12px;padding:11px 10px;font-size:12px;font-weight:850}.order-view-btn{border:1px solid var(--line);background:#fff;color:var(--ink)}.order-share-btn{border:0;background:var(--red);color:#fff}.pedido-espelho-modal{width:min(96vw,620px);max-height:92vh}.pedido-espelho-box{padding:20px}.pedido-espelho-box header{margin-bottom:12px}.pedido-espelho-conteudo{max-height:65vh;overflow:auto;border:1px solid var(--line);border-radius:15px;background:#fff}.espelho-sheet{padding:20px;color:#1f2024}.espelho-head{display:flex;justify-content:space-between;gap:14px;padding-bottom:13px;border-bottom:2px solid var(--red)}.espelho-head h2{margin:0;font-size:21px}.espelho-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.espelho-status{text-align:right}.espelho-status strong{display:block;color:var(--red);font-size:18px}.espelho-section{padding:14px 0;border-bottom:1px solid var(--line)}.espelho-section h4{margin:0 0 8px;font-size:12px;text-transform:uppercase;color:var(--red)}.espelho-section p{margin:3px 0;font-size:12px}.espelho-items{width:100%;border-collapse:collapse;font-size:11px}.espelho-items th,.espelho-items td{padding:8px 5px;border-bottom:1px solid var(--line);text-align:left}.espelho-items th:nth-last-child(-n+3),.espelho-items td:nth-last-child(-n+3){text-align:right}.espelho-total{display:flex;justify-content:flex-end;padding-top:13px}.espelho-total>div{min-width:225px}.espelho-total p{display:flex;justify-content:space-between;gap:20px;margin:6px 0;font-size:12px}.espelho-total p:last-child{font-size:17px;font-weight:900;color:var(--red);padding-top:7px;border-top:1px solid var(--line)}.pedido-espelho-acoes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}.pedido-espelho-acoes .primary-btn,.pedido-espelho-acoes .secondary-btn{margin:0}@media(max-width:430px){.pedido-espelho-box{padding:14px}.espelho-sheet{padding:14px}.espelho-items th:nth-child(2),.espelho-items td:nth-child(2){display:none}.pedido-espelho-acoes{grid-template-columns:1fr}.order-card-actions{grid-template-columns:1fr 1fr}}


/* Espelho do pedido - empresa emitente */
.espelho-company{text-align:center;padding:5px 12px 15px;border-bottom:3px solid var(--primary,#b5121b)}
.espelho-company h2{margin:0;font-size:1.35rem;line-height:1.25;color:#1f2024;overflow-wrap:anywhere}
.espelho-company p{margin:4px 0 0}.espelho-razao{font-size:.86rem;color:#555}.espelho-cnpj{font-size:.8rem;color:#666}
.espelho-doc-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;background:var(--primary,#b5121b);color:#fff}
.espelho-doc-bar>div{min-width:0}.espelho-doc-bar strong{display:block;font-size:1rem;letter-spacing:.02em}.espelho-doc-bar small{display:block;margin-top:3px;color:rgba(255,255,255,.9);font-size:.76rem}.espelho-doc-bar>span{flex:0 0 auto;font-size:1.12rem;font-weight:850;white-space:nowrap}
.espelho-signatures{display:flex;gap:28px;margin-top:54px}.espelho-signatures>div{flex:1;border-top:1px solid #777;text-align:center;padding-top:6px;font-size:.82rem;color:#555}
.espelho-footer{text-align:center;color:#777;font-size:.75rem;margin:28px 0 0}
@media(max-width:560px){.espelho-company{padding-left:6px;padding-right:6px}.espelho-company h2{font-size:1.15rem}.espelho-doc-bar{padding:10px}.espelho-doc-bar strong{font-size:.9rem}.espelho-doc-bar>span{font-size:1rem}.espelho-signatures{gap:14px}}


/* Detalhes de clientes/produtos e destaque do estoque */
.clickable-card{cursor:pointer;transition:transform .16s,border-color .16s,box-shadow .16s}.clickable-card:active{transform:scale(.985)}.clickable-card:focus-visible{outline:3px solid rgba(181,18,27,.2);border-color:var(--red)}.tap-hint{margin-top:10px;padding-top:9px;border-top:1px dashed var(--line);font-size:10px;font-weight:800;color:var(--red);text-align:right}.product-meta{align-items:center}.stock-highlight{min-width:106px;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;gap:3px;padding:9px 11px;border-radius:14px;background:#eef9f3;text-align:center}.stock-highlight.stock-low{background:#fff4e5}.stock-highlight small{flex-basis:100%;font-size:9px;letter-spacing:.08em;font-style:normal}.stock-highlight strong{font-size:25px;line-height:1;font-weight:950}.stock-highlight em{font-size:10px;font-style:normal;font-weight:850}.product-page-search-row{display:flex;gap:9px}.product-list-code-search{flex:0 0 105px}.product-list-code-search span{font-weight:900;color:var(--red)}.product-list-code-search input{text-align:center}.product-list-name-search{min-width:0}.details-modal{width:min(94vw,560px);max-height:90vh}.details-box{padding:20px}.details-content{display:grid;grid-template-columns:1fr 1fr;gap:9px;max-height:62vh;overflow:auto;padding:2px;margin:10px 0 14px}.detail-row{min-width:0;padding:11px 12px;border:1px solid var(--line);border-radius:13px;background:#fafafa}.detail-row span{display:block;margin-bottom:4px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase}.detail-row strong{display:block;overflow-wrap:anywhere;font-size:13px;color:var(--ink)}.details-box>.secondary-btn{width:100%}@media(max-width:430px){.product-page-search-row{gap:7px}.product-list-code-search{flex-basis:92px}.details-content{grid-template-columns:1fr}.stock-highlight{min-width:98px}.stock-highlight strong{font-size:23px}}

/* Mantém empresa e CNPJ na mesma linha; corta somente o nome fantasia */
.welcome-card>div:first-child{min-width:0;flex:1}
#empresaLabel{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden}
#empresaLabel #empresaNome{display:block;min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#empresaLabel #empresaAtual{flex:0 0 auto;white-space:nowrap}
#empresaLabel span,#empresaLabel em{flex:0 0 auto;white-space:nowrap}
.sync-badge{flex:0 0 auto}

/* Estado de conexão e pedidos offline */
.sync-badge.offline{background:#fff0f0;color:#a20f17}.sync-badge.offline .dot{background:#d11b25;box-shadow:0 0 0 4px rgba(209,27,37,.13)}
.sync-badge.syncing{background:#fff8df;color:#8a6500}.sync-badge.syncing .dot{background:#d6a000;animation:syncPulse 1s infinite}
.offline-success .check{background:#fff1d8;color:#a36b00}
@keyframes syncPulse{50%{opacity:.35;transform:scale(.82)}}
.offline-order-note{margin:11px 0 0;padding:10px 12px;border-radius:12px;background:#fff8df;color:#755500;font-size:11px;font-weight:800}


/* Central de sincronização */
.last-sync em{display:block;margin-top:3px;color:#57806c;font-size:10px;font-style:normal;font-weight:650}
.sync-modal{width:min(92vw,470px);overflow:hidden}.sync-box{padding:26px;text-align:center}.sync-cloud{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 14px;border-radius:22px;background:#fff0f1;font-size:34px}.sync-box>small{color:var(--red);font-size:10px;font-weight:900;letter-spacing:.08em}.sync-box h3{margin:6px 0 8px;font-size:22px}.sync-box>p{margin:0 auto 20px;max-width:360px;color:var(--muted);font-size:13px;line-height:1.45}.sync-progress{height:10px;overflow:hidden;border-radius:999px;background:#ececef}.sync-progress i{display:block;width:0;height:100%;border-radius:inherit;background:linear-gradient(90deg,#e51e30,#9e0010);transition:width .3s ease}.sync-progress-label{display:flex;justify-content:space-between;margin-top:7px;color:var(--muted);font-size:11px}.sync-progress-label strong{color:var(--red)}.sync-counts{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:20px 0}.sync-counts>div{padding:13px 7px;border:1px solid var(--line);border-radius:15px;background:#fafafa}.sync-counts span{display:block;font-size:20px}.sync-counts small{display:block;margin:5px 0 3px;color:var(--muted);font-size:9px}.sync-counts strong{font-size:14px}.sync-box .primary-btn{width:100%;margin-top:5px}

.sync-counts{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.sync-log{margin-top:16px;text-align:left;border:1px solid rgba(0,0,0,.08);border-radius:14px;padding:12px;max-height:210px;overflow:auto;background:rgba(255,255,255,.72)}
.sync-log-title{display:flex;justify-content:space-between;gap:10px;align-items:end;margin-bottom:8px}.sync-log-title small{font-size:11px;opacity:.65}
.sync-log-row{display:flex;gap:9px;padding:8px 0;border-top:1px solid rgba(0,0,0,.06)}.sync-log-row:first-child{border-top:0}.sync-log-row>span{font-size:10px;font-weight:800;min-width:56px}.sync-log-row div{display:flex;flex-direction:column}.sync-log-row strong{font-size:12px}.sync-log-row small{font-size:10px;opacity:.65;margin-top:2px}.sync-log-empty{font-size:12px;opacity:.65;padding:8px 0}

.cancel-order-btn{width:100%;border:1px solid #e6a6aa;border-radius:15px;padding:14px;background:#fff5f6;margin-top:10px;font-weight:850;color:var(--red)}
.cancel-order-modal{width:min(92vw,440px);padding:0;border:0;border-radius:24px;overflow:visible;background:transparent;box-shadow:none}.cancel-order-modal::backdrop{background:rgba(16,24,40,.58);backdrop-filter:blur(3px)}.cancel-order-box{position:relative;padding:32px 26px 24px;text-align:center;border-radius:24px;background:#fff;box-shadow:0 24px 70px rgba(15,23,42,.28);animation:cancelOrderIn .18s ease-out}.cancel-order-close{position:absolute;top:13px;right:13px;display:grid;place-items:center;width:34px;height:34px;border:0;border-radius:11px;background:#f4f5f7;color:#667085;font-size:24px;line-height:1;cursor:pointer}.cancel-order-close:hover{background:#eaecf0;color:#344054}.cancel-order-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 14px;border:7px solid #fff1f2;border-radius:50%;background:#fee4e7;color:#d92d20;font-size:31px;font-weight:900;box-shadow:0 0 0 1px #fecdca}.cancel-order-eyebrow{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#fff1f2;color:#d92d20;font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}.cancel-order-box h3{margin:10px 0 8px;color:#101828;font-size:23px;line-height:1.2}.cancel-order-box p{max-width:350px;margin:0 auto 22px;color:#667085;font-size:14px;line-height:1.5}.cancel-order-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.cancel-order-continue-btn,.cancel-order-confirm-btn{min-height:48px;border-radius:14px;padding:12px 14px;font-size:13px;font-weight:850;cursor:pointer}.cancel-order-continue-btn{border:1px solid #d0d5dd;background:#fff;color:#344054}.cancel-order-continue-btn:hover{background:#f9fafb}.cancel-order-confirm-btn{display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d92d20;background:#d92d20;color:#fff;box-shadow:0 5px 13px rgba(217,45,32,.22)}.cancel-order-confirm-btn:hover{background:#b42318}.cancel-order-confirm-btn:active,.cancel-order-continue-btn:active{transform:translateY(1px)}@keyframes cancelOrderIn{from{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:none}}@media(max-width:430px){.cancel-order-box{padding:30px 18px 18px}.cancel-order-actions{grid-template-columns:1fr}.cancel-order-confirm-btn{order:1}.cancel-order-continue-btn{order:2}}

/* Recursos comerciais v60 */
.seller-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0}.seller-dashboard-grid article{background:linear-gradient(145deg,#fff,#fff6f6);border:1px solid #f0d8da;border-radius:18px;padding:16px;box-shadow:0 8px 24px rgba(90,0,8,.06)}.seller-dashboard-grid small{display:block;color:#777;margin-bottom:7px}.seller-dashboard-grid strong{font-size:1.18rem;color:#8f0e18}.dashboard-open-panel,.open-orders-section{background:#fff;border:1px solid #eee;border-radius:18px;padding:14px;margin:14px 0}.dashboard-draft,.open-draft-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px;border:1px solid #eee;border-radius:14px;margin-top:9px}.dashboard-draft div,.open-draft-card div{display:flex;flex-direction:column;gap:4px}.dashboard-draft small,.open-draft-card small{color:#777}.dashboard-draft button,.open-draft-card button,.new-draft-btn,.order-edit-btn,.order-history-btn,.favorite-products button,.client-card-actions button{border:0;border-radius:10px;padding:9px 12px;font-weight:700;cursor:pointer}.dashboard-draft button,.open-draft-card button,.new-draft-btn{background:#b5121b;color:#fff}.order-edit-btn{background:#fff1d5;color:#7b5200}.order-history-btn,.client-card-actions button{background:#f1f2f5;color:#333}.order-card-actions{flex-wrap:wrap}.client-card-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}.client-card-actions .tap-hint{margin:0}.customer-history-box{width:min(720px,94vw);max-height:88vh;overflow:auto;background:#fff;border-radius:22px;padding:20px}.customer-history-box header{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px}.history-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.history-summary>div{background:#f8f8f8;border-radius:14px;padding:13px}.history-summary small{display:block;color:#777}.history-summary strong{display:block;margin-top:5px;color:#a2111a}.history-section{margin-top:22px}.favorite-products article,.history-order{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 4px;border-bottom:1px solid #eee}.favorite-products article div,.history-order div{display:flex;flex-direction:column;gap:4px}.favorite-products small,.history-order small{color:#777}.favorite-products button{background:#b5121b;color:#fff}.empty-state.compact{padding:12px}.order-success h2{max-width:100%}@media(max-width:520px){.seller-dashboard-grid,.history-summary{grid-template-columns:1fr 1fr}.dashboard-draft,.open-draft-card{align-items:flex-start}.client-card-actions{align-items:flex-start;flex-direction:column}.client-card-actions button{width:100%}}

/* ASoft Mobile 2.0 - menu Mais e instalação */
.more-profile{display:flex;align-items:center;gap:14px;padding:18px;margin-bottom:18px;border-radius:22px;background:linear-gradient(135deg,#e21c2c,#93000d);color:#fff;box-shadow:0 14px 28px rgba(154,0,15,.2)}
.more-profile img{width:58px;height:58px;border-radius:17px;object-fit:cover;border:2px solid rgba(255,255,255,.35)}
.more-profile small{font-size:10px;text-transform:uppercase;letter-spacing:.08em;opacity:.8}.more-profile h2{margin:3px 0;font-size:19px}.more-profile p{margin:0;font-size:12px;opacity:.86;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}
.more-menu{display:flex;flex-direction:column;gap:9px}.more-menu button{width:100%;display:grid;grid-template-columns:43px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;border:1px solid var(--line);border-radius:17px;background:#fff;color:var(--ink);text-align:left;box-shadow:0 5px 13px rgba(30,32,38,.035)}
.more-menu button>span{display:grid;place-items:center;width:43px;height:43px;border-radius:14px;background:#fff1f2;font-size:21px}.more-menu button strong{display:block;font-size:14px}.more-menu button small{display:block;margin-top:3px;color:var(--muted);font-size:11px}.more-menu button>em{font-style:normal;color:var(--red);font-size:20px;font-weight:800}.more-menu .coming-soon{opacity:.68}.more-menu .coming-soon>em{font-size:9px;text-transform:uppercase;background:#f2f2f4;color:#73757c;padding:6px 8px;border-radius:999px}
.mobile-version{text-align:center;padding:22px 8px;color:#93959c;font-size:10px}
@media(min-width:700px){body{background:#eceef1}.app-shell{box-shadow:0 0 60px rgba(20,22,27,.12)}}

/* =========================================================
   ASOFT MOBILE 2.1 — INTERFACE RESPONSIVA EM TELA INTEIRA
   ========================================================= */
:root{
  --red:#c6101b;--red2:#ef2b38;--red-dark:#7f0710;
  --ink:#17202e;--muted:#687386;--bg:#f2f4f8;--card:#ffffff;
  --line:#e3e7ee;--green:#128b57;--blue:#2856c8;
  --shadow:0 12px 35px rgba(23,32,46,.08);
  --sidebar:224px;--header:72px;
}
html,body{width:100%;height:100%;min-height:100%;overflow-x:hidden}
body{background:var(--bg);overscroll-behavior:none}
.app-shell{width:100%;max-width:none;min-height:100vh;min-height:100dvh;margin:0;background:var(--bg)}
.main-view{position:relative;width:100%;min-height:100vh;min-height:100dvh;padding-bottom:88px}
.content{width:100%;max-width:1480px;margin:0 auto;padding:22px clamp(16px,2.5vw,38px)}
.page.active{animation:pageIn .22s ease-out}@keyframes pageIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}

/* Login realmente responsivo */
.login-view{width:100%;min-height:100vh;min-height:100dvh;padding:clamp(18px,4vw,58px);display:grid;grid-template-columns:minmax(300px,1.05fr) minmax(350px,.75fr);align-items:center;gap:clamp(34px,7vw,100px);background:
 radial-gradient(circle at 12% 18%,rgba(239,43,56,.12),transparent 32%),
 linear-gradient(135deg,#fff 0 48%,#f7f8fb 48% 100%)}
.login-brand{text-align:left;margin:0;max-width:650px}.login-brand img{width:min(420px,76%)}
.login-brand h1{font-size:clamp(35px,5vw,68px);line-height:1.02;margin:30px 0 12px;letter-spacing:-.045em}
.login-brand p{font-size:clamp(17px,2vw,24px);max-width:520px;line-height:1.45;color:var(--muted)}
.login-card{width:100%;max-width:490px;justify-self:center;border-radius:30px;padding:clamp(24px,4vw,38px);border:1px solid rgba(23,32,46,.07);box-shadow:0 28px 75px rgba(23,32,46,.14)}
.login-card:before{content:"Acesso seguro";display:block;margin-bottom:23px;color:var(--red);font-size:11px;font-weight:900;letter-spacing:.12em;text-transform:uppercase}
.field{margin-bottom:18px}.field label{font-size:12px;letter-spacing:.01em}.input-wrap{min-height:55px;border-radius:16px;background:#f8f9fb}.input-wrap input{font-size:15px}
.primary-btn{min-height:52px;border-radius:16px;transition:.18s}.primary-btn:hover{transform:translateY(-1px);filter:brightness(1.03)}
.login-footer{position:fixed;left:0;right:0;bottom:16px;margin:0;pointer-events:none}

/* Cabeçalho */
.app-header{height:var(--header);padding:10px clamp(16px,2.5vw,34px);background:rgba(255,255,255,.88);border-bottom:1px solid rgba(23,32,46,.07);box-shadow:0 5px 22px rgba(23,32,46,.035)}
.header-brand img{width:112px}.header-brand strong{font-size:17px}.avatar-btn{width:43px;height:43px;box-shadow:0 7px 17px rgba(198,16,27,.24)}

/* Dashboard */
.welcome-card{min-height:155px;padding:clamp(22px,3vw,34px);border-radius:26px;background:linear-gradient(125deg,#d81724 0%,#a00813 55%,#76050d 100%)}
.welcome-card:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.07),transparent 55%);pointer-events:none}
.identity-line{font-size:15px}.identity-line strong{font-size:18px}.welcome-card p{font-size:13px}.welcome-card p strong{font-size:14px}
.metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:16px 0}
.metric-card{min-height:92px;padding:18px;border-radius:19px;transition:.18s}.metric-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.metric-icon{width:46px;height:46px;font-size:21px}.metric-card strong{font-size:22px}
.seller-dashboard-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:0 0 20px}.seller-dashboard-grid article{min-height:100px;padding:18px;border-radius:19px;background:#fff;border-color:var(--line)}.seller-dashboard-grid strong{font-size:clamp(18px,2vw,25px)}
.dashboard-open-panel{border-radius:21px;padding:18px;margin:0 0 20px;box-shadow:0 7px 20px rgba(23,32,46,.04)}
.quick-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:13px}.quick-card{min-height:145px;border-radius:20px;transition:.18s}.quick-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}
.last-sync{border:1px solid #d8eee4}

/* Listas e ferramentas */
.page-toolbar{position:sticky;top:calc(var(--header) + 10px);z-index:20;padding:10px 0;background:linear-gradient(var(--bg) 75%,transparent)}
.search-box{min-height:50px;border-radius:16px;box-shadow:0 5px 16px rgba(23,32,46,.035)}
.round-action{width:50px;height:50px;border-radius:16px;box-shadow:0 8px 18px rgba(198,16,27,.22)}
.list-container{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}.list-card{height:100%;border-radius:19px;padding:18px;transition:.18s}.list-card:hover{transform:translateY(-2px);border-color:#d5d9e2;box-shadow:var(--shadow)}
.product-page-search-row{display:grid;grid-template-columns:minmax(150px,.3fr) minmax(260px,1fr)}

/* Mais */
.more-profile{padding:24px;border-radius:24px}.more-menu{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:12px}.more-menu button{height:82px;border-radius:18px;transition:.18s}.more-menu button:hover{transform:translateY(-2px);box-shadow:var(--shadow)}

/* Pedidos e formulários */
.order-page{max-width:1100px;margin:0 auto}.order-step{width:100%}.product-order-list,.cart-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:12px}
.orders-filters{border-radius:20px;background:#fff;padding:16px;border:1px solid var(--line);box-shadow:0 7px 20px rgba(23,32,46,.04)}
.cart-bar{left:auto;right:clamp(16px,3vw,44px);bottom:90px;width:min(470px,calc(100% - 32px));transform:none;border-radius:20px;box-shadow:0 16px 45px rgba(23,32,46,.2)}

/* Modais adaptados à tela */
.modal{max-height:92vh;max-height:92dvh;border-radius:24px}.details-box,.debt-alert-box,.debt-titles-box,.embalagem-box,.pedido-espelho-box,.customer-history-box,.sync-box{max-height:90vh;max-height:90dvh;overflow:auto}

/* Navegação móvel */
.bottom-nav{width:100%;max-width:none;height:78px;padding-bottom:max(8px,env(safe-area-inset-bottom));background:rgba(255,255,255,.96);backdrop-filter:blur(18px)}

/* Tablet em paisagem e navegador: ocupa tudo e vira aplicativo desktop */
@media (min-width:900px), (orientation:landscape) and (min-width:700px){
  .main-view{padding:0 0 0 var(--sidebar);min-height:100vh;min-height:100dvh}
  .app-header{position:fixed;top:0;left:var(--sidebar);right:0;z-index:90}
  .content{padding-top:calc(var(--header) + 24px);min-height:100vh;min-height:100dvh}
  .bottom-nav{position:fixed;left:0;top:0;bottom:0;transform:none;width:var(--sidebar);height:100vh;height:100dvh;display:flex;flex-direction:column;justify-content:flex-start;gap:7px;padding:92px 14px 18px;background:linear-gradient(180deg,#8d0710,#5f050b);border:0;box-shadow:8px 0 30px rgba(62,0,6,.12)}
  .bottom-nav:before{content:"ASoft Mobile";position:absolute;top:28px;left:22px;color:#fff;font-size:18px;font-weight:900;letter-spacing:-.02em}
  .nav-item{width:100%;min-height:54px;flex-direction:row;justify-content:flex-start;gap:13px;padding:0 15px;border-radius:15px;color:rgba(255,255,255,.72);text-align:left}
  .nav-item span{width:28px;font-size:21px;text-align:center}.nav-item small{font-size:13px;font-weight:700}
  .nav-item:hover{background:rgba(255,255,255,.08);color:#fff}.nav-item.active{background:#fff;color:var(--red);box-shadow:0 10px 26px rgba(37,0,4,.18)}
  .nav-main span{display:block;width:28px;height:auto;margin:0;border-radius:0;background:transparent;color:inherit;box-shadow:none}
  .toast{bottom:28px;margin-left:calc(var(--sidebar)/2)}
  .cart-bar{bottom:28px}
}

/* Celular e rotação estreita */
@media(max-width:899px){
  .login-view{display:flex;justify-content:center;padding:24px 18px 90px;background:linear-gradient(160deg,#fff 0 55%,#f8e8e9 100%)}
  .login-brand{text-align:center;margin-bottom:22px}.login-brand img{width:min(280px,72vw)}.login-brand h1{font-size:29px;margin:18px 0 6px}.login-brand p{font-size:15px}.login-card{max-width:520px;padding:22px;border-radius:25px}
  .metrics-grid,.seller-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.list-container{grid-template-columns:1fr}.more-menu{grid-template-columns:1fr}
}
@media(max-width:520px){
  .content{padding:15px}.app-header{height:64px}.header-brand img{width:93px}.header-brand div{padding-left:9px}.header-brand strong{font-size:14px}.header-brand small{font-size:9px}
  .welcome-card{min-height:145px;padding:20px;border-radius:22px}.sync-badge{padding:6px 8px}.identity-line strong{font-size:15px}
  .metric-card{min-height:80px;padding:13px}.metric-icon{width:39px;height:39px}.metric-card strong{font-size:18px}
  .seller-dashboard-grid{gap:10px}.seller-dashboard-grid article{min-height:88px;padding:14px}.quick-card{min-height:128px;padding:15px}
  .product-page-search-row{grid-template-columns:105px minmax(0,1fr)}.orders-filters{padding:12px}.cart-bar{bottom:86px}
}
@media(orientation:landscape) and (max-height:560px) and (max-width:899px){
  .login-view{display:grid;grid-template-columns:.8fr 1fr;gap:24px;padding:14px 28px}.login-brand{text-align:left;margin:0}.login-brand img{width:min(260px,80%)}.login-brand h1{font-size:28px;margin:14px 0 5px}.login-brand p{font-size:14px}.login-card{padding:18px}.field{margin-bottom:10px}.input-wrap{min-height:44px}.input-wrap input{padding:10px 0}.login-footer{display:none}
  .main-view{padding-bottom:68px}.bottom-nav{height:64px}.nav-main span{width:38px;height:38px;margin-top:-20px}.content{padding-top:12px;padding-bottom:80px}.app-header{position:sticky;height:58px}.welcome-card{min-height:120px}.metrics-grid,.seller-dashboard-grid{grid-template-columns:repeat(4,1fr)}.quick-grid{grid-template-columns:repeat(3,1fr)}
}

/* ===== ASoft Mobile 2.2 — interface de gestão, não apenas vendas ===== */
:root{--erp-bg:#f3f5f8;--erp-panel:#fff;--erp-ink:#172033;--erp-muted:#697386;--erp-line:#e4e8ef;--erp-accent:#b5121b;--erp-soft:#fbeaec}
html,body,#app,.app-shell,.main-view{width:100%;min-height:100%;height:100%;max-width:none}
body{background:var(--erp-bg);overflow-x:hidden}.content{max-width:none;width:100%;padding:24px 26px 110px}.app-header{height:72px;padding:0 28px;background:#fff;border-bottom:1px solid var(--erp-line);box-shadow:none}.header-brand img{width:36px;height:36px;object-fit:contain}.header-brand small{color:var(--erp-muted);letter-spacing:.08em}.header-brand strong{font-size:19px;color:var(--erp-ink)}
.executive-home{max-width:1500px;margin:0 auto}.executive-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:30px 32px;background:linear-gradient(125deg,#171d2b,#2a3142);border-radius:24px;color:#fff}.executive-copy .eyebrow,.page-title-block small{font-size:11px;letter-spacing:.16em;font-weight:800;opacity:.72}.executive-copy h1{font-size:30px;margin:8px 0 5px}.executive-copy p{margin:0;color:#cbd2df}.executive-copy em{font-style:normal;margin:0 8px}.system-health{display:flex;align-items:center;gap:12px;padding:13px 16px;border:1px solid rgba(255,255,255,.16);border-radius:16px;background:rgba(255,255,255,.07)}.system-health div{display:flex;flex-direction:column}.system-health small{font-size:10px;opacity:.68}.health-dot{width:10px;height:10px;border-radius:50%;background:#36c98f;box-shadow:0 0 0 5px rgba(54,201,143,.14)}
.management-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0 26px}.management-strip article{background:#fff;border:1px solid var(--erp-line);border-radius:18px;padding:20px;display:flex;flex-direction:column;min-height:118px}.management-strip small{color:var(--erp-muted);font-weight:700}.management-strip strong{font-size:25px;margin:10px 0 5px;color:var(--erp-ink)}.management-strip span{font-size:12px;color:#98a1af}
.enterprise-heading{margin-top:0}.text-action,.sync-icon-btn{border:0;background:transparent;color:var(--erp-accent);font-weight:800;cursor:pointer}.enterprise-modules{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.enterprise-modules button,.module-list button,.alerts-board button{appearance:none;text-align:left;border:1px solid var(--erp-line);background:#fff;border-radius:18px;padding:18px;display:flex;align-items:center;gap:14px;cursor:pointer;transition:.18s}.enterprise-modules button:hover,.module-list button:hover,.alerts-board button:hover{transform:translateY(-2px);border-color:#cfd5df;box-shadow:0 10px 28px rgba(23,32,51,.08)}.module-glyph,.module-list button>span{width:44px;height:44px;border-radius:14px;background:var(--erp-soft);color:var(--erp-accent);display:grid;place-items:center;font-size:20px;font-weight:900;flex:0 0 auto}.enterprise-modules div,.module-list button div,.alerts-board button div{display:flex;flex-direction:column;min-width:0}.enterprise-modules strong,.module-list strong,.alerts-board strong{color:var(--erp-ink);font-size:15px}.enterprise-modules small,.module-list small,.alerts-board small{color:var(--erp-muted);margin-top:4px;line-height:1.35}.enterprise-modules em,.module-list em,.alerts-board em{margin-left:auto;font-style:normal;color:#9aa3b2}
.home-lower-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:14px;margin-top:18px}.attention-panel,.activity-panel{background:#fff;border:1px solid var(--erp-line);border-radius:18px;padding:20px}.attention-row{display:flex;justify-content:space-between;padding:13px 0;border-top:1px solid var(--erp-line);color:var(--erp-muted)}.attention-row strong{color:var(--erp-ink)}.sync-status-large{display:flex;align-items:center;gap:14px;padding:16px;background:#f7f9fb;border-radius:14px}.sync-status-large div{display:flex;flex-direction:column}.sync-status-large small,.activity-panel p{color:var(--erp-muted);font-size:12px}.activity-panel p{margin:14px 0 0}
.page-title-block{max-width:900px;margin:0 auto 22px}.page-title-block h2{font-size:30px;margin:7px 0;color:var(--erp-ink)}.page-title-block p{color:var(--erp-muted);margin:0}.modules-page,.alerts-page{max-width:1200px;margin:0 auto}.module-sections{display:grid;grid-template-columns:1fr 1fr;gap:18px}.module-sections>section{background:#fff;border:1px solid var(--erp-line);border-radius:20px;padding:20px}.module-sections h3{margin:0 0 14px;color:var(--erp-ink)}.module-list{display:grid;gap:10px}.module-list button{border-radius:14px}.module-list .coming-soon{opacity:.72}.alerts-board{display:grid;gap:12px;max-width:900px}.alert-marker{width:12px;height:12px;border-radius:50%;flex:0 0 auto}.alert-marker.warning{background:#f2a93b}.alert-marker.info{background:#4c7ff0}.alert-marker.success{background:#36c98f}
.enterprise-nav{background:#fff;border-top:1px solid var(--erp-line);box-shadow:0 -8px 30px rgba(23,32,51,.06)}.enterprise-nav .nav-main{transform:none}.enterprise-nav .nav-item span{font-size:20px}.enterprise-nav .nav-item.active{color:var(--erp-accent)}
@media (min-width:900px){.main-view{display:grid;grid-template-columns:228px 1fr;grid-template-rows:72px 1fr}.app-header{grid-column:1/3;grid-row:1}.content{grid-column:2;grid-row:2;padding:30px 34px 40px;overflow:auto;height:calc(100vh - 72px)}.enterprise-nav{grid-column:1;grid-row:2;position:static;width:auto;height:auto;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;padding:20px 14px;border-top:0;border-right:1px solid var(--erp-line);box-shadow:none}.enterprise-nav .nav-item{height:54px;flex:none;display:flex;flex-direction:row;justify-content:flex-start;gap:12px;padding:0 14px;border-radius:12px}.enterprise-nav .nav-item small{font-size:14px}.enterprise-nav .nav-item.active{background:var(--erp-soft)}}
@media (max-width:900px){.management-strip{grid-template-columns:1fr 1fr}.enterprise-modules{grid-template-columns:1fr 1fr}.home-lower-grid,.module-sections{grid-template-columns:1fr}.executive-hero{align-items:flex-start}.content{padding:16px 16px 96px}}
@media (max-width:560px){.app-header{height:62px;padding:0 16px}.content{padding:12px 12px 88px}.executive-hero{padding:22px 20px;border-radius:19px}.executive-copy h1{font-size:24px}.system-health{padding:10px}.system-health div{display:none}.management-strip{gap:10px;margin:12px 0 20px}.management-strip article{padding:14px;min-height:98px}.management-strip strong{font-size:19px}.management-strip span{display:none}.enterprise-modules{grid-template-columns:1fr}.home-lower-grid{margin-top:12px}.page-title-block h2{font-size:25px}}
@media (orientation:landscape) and (max-height:600px){.content{height:calc(100vh - 62px);overflow:auto;padding-bottom:28px}.executive-hero{padding:16px 20px}.management-strip{grid-template-columns:repeat(4,1fr)}.enterprise-modules{grid-template-columns:repeat(3,1fr)}.enterprise-nav{position:fixed;left:0;right:0;bottom:0}}


/* ===== Correções de estabilidade 2.3 ===== */
html,body{width:100%;min-height:100%;height:auto}
#app,.app-shell{width:100%;max-width:none;min-height:100dvh;height:auto}
.login-view{width:100%;min-height:100dvh}
.main-view{width:100%;min-height:100dvh;height:auto}
.enterprise-nav{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (min-width:900px){
  .main-view{min-height:100dvh;height:100dvh;overflow:hidden}
  .content{min-width:0}
  .enterprise-nav{position:static!important;left:auto!important;right:auto!important;bottom:auto!important;width:auto!important}
}
@media (orientation:landscape) and (max-height:600px) and (max-width:899px){
  .main-view{height:auto;min-height:100dvh;overflow:visible}
  .content{height:auto;min-height:calc(100dvh - 62px);overflow:visible;padding-bottom:88px}
  .enterprise-nav{position:fixed;left:0;right:0;bottom:0;width:100%}
}
@media (max-width:560px){
  .header-brand img{width:32px;height:32px}
  .header-brand div{padding-left:9px}
  .header-brand strong{font-size:16px}
  .management-strip{grid-template-columns:1fr 1fr}
  .enterprise-modules button{min-height:74px}
}


/* ===== ASoft Mobile 2.4 — navegação lateral institucional ===== */
:root{--asoft-red:#c8101e;--asoft-red-dark:#920b14;--asoft-red-soft:#fff0f2}

@media (min-width:900px){
  .main-view{grid-template-columns:260px minmax(0,1fr);grid-template-rows:76px minmax(0,1fr);background:#f5f7fb}
  .app-header{grid-column:2;grid-row:1;height:76px;padding:0 30px;border-bottom:1px solid #e7eaf0;background:#fff;z-index:5}
  .content{grid-column:2;grid-row:2;height:calc(100dvh - 76px);padding:28px 32px 40px;background:#f5f7fb}
  .executive-home{max-width:none;margin:0}

  .enterprise-nav{grid-column:1;grid-row:1/3;position:relative!important;display:flex;width:260px!important;height:100dvh!important;padding:0!important;overflow:hidden;border:0!important;background:linear-gradient(180deg,var(--asoft-red) 0%,#b00e19 58%,var(--asoft-red-dark) 100%);box-shadow:10px 0 30px rgba(80,0,8,.13);color:#fff}
  .sidebar-brand{height:112px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.18)}
  .sidebar-brand img{width:154px;max-height:54px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1)}
  .sidebar-brand span{margin-top:7px;font-size:9px;font-weight:800;letter-spacing:.22em;color:rgba(255,255,255,.66)}
  .sidebar-scroll{flex:1;overflow-y:auto;padding:17px 14px 14px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.25) transparent}
  .sidebar-group{display:grid;gap:5px;margin-bottom:17px}
  .sidebar-group>small{padding:0 13px 7px;font-size:10px;font-weight:800;letter-spacing:.14em;color:rgba(255,255,255,.58)}
  .enterprise-nav .nav-item{width:100%;height:48px;display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;padding:0 14px;border:0;border-radius:12px;background:transparent;color:rgba(255,255,255,.88);text-align:left;transition:.18s ease}
  .enterprise-nav .nav-item span{width:25px;height:25px;display:grid;place-items:center;margin:0;font-size:18px;line-height:1;filter:none}
  .enterprise-nav .nav-item small{font-size:14px;font-weight:700;color:inherit}
  .enterprise-nav .nav-item:hover{background:rgba(255,255,255,.11);color:#fff;transform:translateX(2px)}
  .enterprise-nav .nav-item.active{background:#fff;color:var(--asoft-red);box-shadow:0 8px 22px rgba(68,0,8,.2)}
  .sidebar-user{min-height:84px;display:flex;align-items:center;gap:11px;padding:14px 17px;border-top:1px solid rgba(255,255,255,.18);background:rgba(80,0,8,.14)}
  .sidebar-user-avatar{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:0 0 auto;border:1px solid rgba(255,255,255,.5);background:rgba(255,255,255,.12);font-weight:900}
  .sidebar-user div:nth-child(2){display:flex;min-width:0;flex:1;flex-direction:column}
  .sidebar-user strong,.sidebar-user small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sidebar-user strong{font-size:13px;color:#fff}.sidebar-user small{font-size:10px;color:rgba(255,255,255,.65);margin-top:3px}.sidebar-user>span{opacity:.65}

  .header-brand img{display:none}.header-brand div{padding-left:0}
  .header-brand small{color:var(--asoft-red);font-weight:800}.header-brand strong{font-size:21px}
  .avatar-btn{box-shadow:0 8px 20px rgba(200,16,30,.22)}

  .executive-hero{background:linear-gradient(120deg,#a90d17,#d21727);box-shadow:0 18px 36px rgba(173,13,24,.18)}
  .management-strip article,.enterprise-modules button,.attention-panel,.activity-panel{box-shadow:0 8px 24px rgba(25,35,55,.045)}
}

@media (max-width:899px){
  .sidebar-brand,.sidebar-scroll .sidebar-group>small,.sidebar-user{display:none}
  .sidebar-scroll{display:contents}
  .enterprise-nav{grid-template-columns:repeat(5,minmax(0,1fr));height:72px;padding:0 4px}
  .enterprise-nav .sidebar-group{display:contents}
  .enterprise-nav .nav-item{display:none}
  .enterprise-nav .nav-item[data-page="home"],
  .enterprise-nav .nav-item[data-page="clientes"],
  .enterprise-nav .nav-item[data-page="produtos"],
  .enterprise-nav .nav-item[data-page="pedidos"],
  .enterprise-nav .nav-item[data-page="mais"]{display:flex}
}

/* ===== ASoft Mobile 2.5 — correção de deslocamento lateral e marca duplicada ===== */
@media (min-width:900px){
  .main-view{
    padding:0!important;
    display:grid!important;
    grid-template-columns:260px minmax(0,1fr)!important;
    grid-template-rows:76px minmax(0,1fr)!important;
  }
  .enterprise-nav{
    left:auto!important;
    right:auto!important;
    top:auto!important;
    bottom:auto!important;
    transform:none!important;
    margin:0!important;
  }
  .bottom-nav:before{content:none!important;display:none!important}
  .app-header{
    position:relative!important;
    top:auto!important;
    left:auto!important;
    right:auto!important;
    grid-column:2!important;
    grid-row:1!important;
  }
  .content{
    grid-column:2!important;
    grid-row:2!important;
    padding:28px 32px 40px!important;
    min-height:0!important;
    height:calc(100dvh - 76px)!important;
  }
}

/* ===== ASoft Mobile 2.6 — Dashboard Premium ===== */
.dashboard-premium{max-width:none!important;margin:0!important}
.dashboard-welcome{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:20px;padding:24px 26px;border-radius:22px;background:linear-gradient(120deg,#9f0b15 0%,#c8101e 58%,#e12b38 100%);box-shadow:0 18px 38px rgba(165,12,23,.18);color:#fff}
.dashboard-welcome h1{margin:6px 0 7px;font-size:28px;font-weight:500}.dashboard-welcome h1 strong{font-weight:850}.dashboard-welcome p{display:flex;align-items:center;gap:9px;margin:0;color:rgba(255,255,255,.78);font-size:13px}.dashboard-welcome .eyebrow{color:rgba(255,255,255,.65)}
.dashboard-sync-card{min-width:265px;display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid rgba(255,255,255,.22);border-radius:16px;background:rgba(86,0,8,.18);backdrop-filter:blur(6px)}.dashboard-sync-card>div{display:flex;min-width:0;flex:1;flex-direction:column}.dashboard-sync-card small{font-size:9px;font-weight:850;letter-spacing:.14em;color:rgba(255,255,255,.62)}.dashboard-sync-card strong{font-size:13px;margin:3px 0}.dashboard-sync-card span:last-child{font-size:10px;color:rgba(255,255,255,.66)}.dashboard-sync-card button{width:34px;height:34px;border:0;border-radius:10px;background:rgba(255,255,255,.16);color:#fff;font-size:19px;cursor:pointer}
.dashboard-kpis{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:16px}.kpi-card{min-width:0;display:flex;align-items:center;gap:12px;padding:17px 16px;border:1px solid #e7eaf0;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(25,35,55,.045)}.kpi-icon{width:39px;height:39px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:#fff0f2;color:#c8101e;font-size:14px;font-weight:900}.kpi-card>div:last-child{min-width:0;display:flex;flex-direction:column}.kpi-card small{font-size:11px;color:#778092}.kpi-card strong{margin:4px 0 3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#1b2434;font-size:19px}.kpi-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#a0a7b4;font-size:9px}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr);gap:16px;margin-bottom:16px}.dashboard-bottom-grid{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(280px,.8fr) minmax(270px,.72fr);gap:16px}.dashboard-panel{min-width:0;padding:20px;border:1px solid #e7eaf0;border-radius:19px;background:#fff;box-shadow:0 8px 25px rgba(25,35,55,.045)}.panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:17px}.panel-heading small{display:block;margin-bottom:4px;color:#c8101e;font-size:9px;font-weight:850;letter-spacing:.14em}.panel-heading h3{margin:0;color:#1b2434;font-size:16px}.panel-heading>span{padding:7px 10px;border-radius:10px;background:#f5f7fa;color:#566174;font-size:12px;font-weight:800}
.sales-bars{height:190px;display:flex;align-items:stretch;justify-content:space-between;gap:10px;padding-top:8px}.sales-bar-item{min-width:0;display:flex;flex:1;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px}.sales-bar-track{width:min(36px,72%);height:130px;display:flex;align-items:flex-end;border-radius:10px;background:#f1f3f7;overflow:hidden}.sales-bar-fill{width:100%;min-height:4px;border-radius:10px 10px 0 0;background:linear-gradient(180deg,#df2b38,#b80e1a);transition:height .45s ease}.sales-bar-item strong{max-width:70px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#4d586b;font-size:9px}.sales-bar-item small{color:#9199a7;font-size:9px}.chart-empty{width:100%;display:grid;place-items:center;min-height:110px;color:#939baa;font-size:12px;text-align:center}
.quick-actions-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.quick-actions-grid button{min-width:0;display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #eaedf2;border-radius:14px;background:#fff;text-align:left;cursor:pointer;transition:.18s ease}.quick-actions-grid button:hover{border-color:#f2b5bb;background:#fff8f9;transform:translateY(-1px)}.quick-actions-grid button>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#fff0f2;color:#c8101e;font-weight:900}.quick-actions-grid button div{min-width:0;display:flex;flex-direction:column}.quick-actions-grid strong{color:#263043;font-size:12px}.quick-actions-grid small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#929aa8;font-size:9px}
.recent-orders-list{display:grid;gap:0}.recent-order-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;padding:12px 0;border-top:1px solid #edf0f4}.recent-order-row:first-child{border-top:0;padding-top:0}.recent-order-row div{min-width:0;display:flex;flex-direction:column}.recent-order-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#273144;font-size:12px}.recent-order-row small{margin-top:4px;color:#929aa8;font-size:9px}.recent-order-row>span{text-align:right;color:#1e293b;font-size:12px;font-weight:850}.recent-order-row>span small{display:block;color:#8891a0;font-weight:600}
#dashboardOpenOrders{display:grid;gap:8px}.dashboard-draft{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #edf0f4}.dashboard-draft:first-child{border-top:0;padding-top:0}.dashboard-draft div{min-width:0;display:flex;flex-direction:column}.dashboard-draft strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#273144;font-size:11px}.dashboard-draft small{margin-top:4px;color:#929aa8;font-size:9px}.dashboard-draft button{border:0;border-radius:9px;padding:7px 9px;background:#fff0f2;color:#c8101e;font-size:9px;font-weight:850;cursor:pointer}
.system-status-list{display:grid}.system-status-list>div{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;padding:11px 0;border-top:1px solid #edf0f4}.system-status-list>div:first-child{border-top:0;padding-top:0}.status-ok,.status-info{width:8px;height:8px;border-radius:50%;background:#28b878;box-shadow:0 0 0 4px rgba(40,184,120,.1)}.status-info{background:#4d81e8;box-shadow:0 0 0 4px rgba(77,129,232,.1)}.system-status-list div div{min-width:0;display:flex;flex-direction:column}.system-status-list strong{color:#2c3648;font-size:11px}.system-status-list small{margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#929aa8;font-size:9px}.system-status-list em{font-style:normal;color:#3c9b72;font-size:9px;font-weight:850}
@media(max-width:1320px){.dashboard-kpis{grid-template-columns:repeat(3,1fr)}.dashboard-bottom-grid{grid-template-columns:1fr 1fr}.system-panel{grid-column:1/3}}
@media(max-width:1050px){.dashboard-main-grid{grid-template-columns:1fr}.dashboard-bottom-grid{grid-template-columns:1fr}.system-panel{grid-column:auto}}
@media(max-width:899px){.dashboard-welcome{padding:20px}.dashboard-sync-card{min-width:220px}.dashboard-kpis{grid-template-columns:repeat(2,1fr)}.dashboard-main-grid,.dashboard-bottom-grid{grid-template-columns:1fr}.system-panel{grid-column:auto}}
@media(max-width:620px){.dashboard-welcome{align-items:flex-start;flex-direction:column}.dashboard-sync-card{width:100%;min-width:0}.dashboard-kpis{gap:9px}.kpi-card{padding:13px 12px}.kpi-icon{width:34px;height:34px}.kpi-card strong{font-size:15px}.dashboard-panel{padding:16px}.quick-actions-grid{grid-template-columns:1fr 1fr}.sales-bars{height:170px}.sales-bar-track{height:115px}}
@media(orientation:landscape) and (max-height:600px) and (max-width:899px){.dashboard-welcome{flex-direction:row;padding:15px 18px}.dashboard-sync-card{width:auto;min-width:240px}.dashboard-kpis{grid-template-columns:repeat(3,1fr)}}
