/* Regras restritas à interface móvel; desktop e impressão preservados. */
.sal-mobile-header,.sal-mobile-bottom,.sal-mobile-backdrop,.sal-mobile-filter-summary{display:none}
@media screen and (max-width:767px){
 body.sal-mobile-active{padding-top:var(--sal-mobile-header-h,116px);padding-bottom:calc(65px + env(safe-area-inset-bottom));overflow-x:hidden}
 .sal-mobile-active .app{display:block!important;min-width:0!important;min-height:0!important;grid-template-columns:1fr!important}
 .sal-mobile-active .main{width:100%;min-width:0}
 .sal-mobile-active .view{padding:10px 9px!important;width:100%;max-width:100%;min-width:0}
 .sal-mobile-active .topbar{position:static!important;display:flex;flex-wrap:wrap;gap:10px;padding:12px!important;min-width:0}
 .sal-mobile-active .topbar .spacer{display:none}
 .sal-mobile-active .topbar>.period{display:none}
 .sal-mobile-period-select{display:flex;flex-direction:column;gap:4px;font-size:11px;color:var(--ink-2,#637777)}
 .sal-mobile-period-select select{border:1px solid var(--rule,#cbd8d6);border-radius:8px;background:var(--surface,#fff);color:var(--ink,#123438);padding:8px;min-width:120px}
 .sal-mobile-active .topbar .navp{flex:1;min-width:0;max-width:100%}
 .sal-mobile-active .topbar .chips{display:flex;flex-wrap:wrap;gap:6px;max-width:100%}
 .sal-mobile-active .topbar:has(>.sal-mobile-period-select){display:grid;grid-template-columns:minmax(0,1fr) 44px;align-items:end}
 .sal-mobile-active .topbar:has(>.sal-mobile-period-select)>.sal-mobile-period-select{grid-column:1;grid-row:1;max-width:180px}
 .sal-mobile-active .topbar:has(>.sal-mobile-period-select)>.privacy-toggle{grid-column:2;grid-row:1;min-width:44px;max-width:44px}
 .sal-mobile-active .topbar:has(>.sal-mobile-period-select)>.navp{grid-column:1/-1;grid-row:2;width:100%;display:flex;justify-content:space-between;overflow:visible}
 .sal-mobile-active .topbar:has(>.sal-mobile-period-select)>.navp .lbl{min-width:0;flex:1;white-space:normal;text-align:center;font-size:12px;line-height:1.35}
 .sal-mobile-active .topbar:has(>.sal-mobile-period-select)>.navp button{flex:0 0 32px;min-width:32px;padding:4px}
 .sal-mobile-active .topbar:has(>.sal-mobile-period-select)>.chips{grid-column:1/-1;width:100%}
 .sal-mobile-active .topbar:has(>.sal-mobile-period-select)>.row{grid-column:1/-1;max-width:100%;justify-content:space-between}
 .sal-mobile-active .topbar input[type="date"]{max-width:calc(50vw - 30px)}
 .sal-mobile-active .side{position:fixed!important;inset:0 auto 0 0;top:0!important;width:min(310px,87vw);height:100dvh;z-index:1150;visibility:hidden;transform:translateX(-105%);box-shadow:none;display:flex!important;overflow:auto}
 .sal-mobile-active.sal-mobile-menu-open .side{visibility:visible;transform:none;box-shadow:12px 0 40px #002e3655}
 .sal-mobile-active .sal-mobile-header{display:block;position:fixed;inset:0 0 auto;z-index:100;background:var(--surface,#fff);border-bottom:1px solid var(--rule,#cbd8d6);padding-top:env(safe-area-inset-top)}
 .sal-mobile-header-line{display:flex;align-items:center;gap:12px;min-height:52px;padding:8px 12px}
 .sal-mobile-brand{font-size:19px;font-weight:700;letter-spacing:-.7px;color:var(--verde,#005c65);flex:1}
 .sal-mobile-user{font-size:12px;color:var(--ink-2,#637777);max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .sal-mobile-menu{background:var(--surface,#fff);border:1px solid var(--rule,#cbd8d6);border-radius:9px;min-width:44px;min-height:44px;font-size:20px;color:var(--ink,#123438)}
 .sal-mobile-subnav{display:flex;gap:6px;overflow-x:auto;max-width:100vw;padding:5px 12px 10px;scrollbar-width:thin;min-height:44px}
 .sal-mobile-subnav[hidden]{display:none}
 .sal-mobile-sub{flex-shrink:0;background:var(--surface,#fff);color:var(--ink,#123438);border:1px solid var(--rule,#cbd8d6);border-radius:8px;padding:9px 12px;min-height:40px;font-size:12px}
 .sal-mobile-sub.is-active{background:var(--verde,#005c65);color:#fff;border-color:var(--verde,#005c65)}
 .sal-mobile-active .sal-mobile-bottom{display:grid;grid-template-columns:repeat(var(--sal-mobile-nav-count,4),minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:100;border-top:1px solid var(--rule,#cbd8d6);background:var(--surface,#fff);padding:6px 5px calc(7px + env(safe-area-inset-bottom));gap:3px}
 .sal-mobile-dest{border:0;background:transparent;color:var(--ink-2,#637777);border-radius:9px;min-height:48px;font-size:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 2px}
 .sal-mobile-dest.is-active{background:var(--verde-soft,#e4eeea);color:var(--verde,#005c65);font-weight:650}
 .sal-mobile-nav-icon{font-size:19px;line-height:1}
 .sal-mobile-active.sal-mobile-menu-open .sal-mobile-backdrop{display:block;position:fixed;inset:0;z-index:1100;background:#062d3973;border:0}
 .sal-mobile-active .row{flex-wrap:wrap;min-width:0}
 .sal-mobile-active .page-head{flex-wrap:wrap;gap:10px}
 .sal-mobile-active .card-h{padding:10px!important;gap:9px;flex-wrap:wrap}
 .sal-mobile-active .card-b{padding:10px!important}
 .sal-mobile-active .card{margin-bottom:8px;max-width:100%}
 .sal-mobile-active h1{font-size:20px;line-height:1.18;overflow-wrap:anywhere}
 .sal-mobile-active h2{font-size:14px;line-height:1.3}
 .sal-mobile-active .grid2,.sal-mobile-active .grid3{grid-template-columns:minmax(0,1fr)!important}
 .sal-mobile-active .kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px}
 .sal-mobile-active .kpi{padding:10px!important;min-width:0}
 .sal-mobile-active .kpi .v{font-size:17px!important;overflow-wrap:anywhere}
 .sal-mobile-active .kpi .k{font-size:10px!important;overflow-wrap:anywhere}
 .sal-mobile-active button,.sal-mobile-active .btn,.sal-mobile-active select{min-height:44px;white-space:normal;touch-action:manipulation}
 .sal-mobile-active .period button{padding:7px 9px;min-height:40px;font-size:12px}
 .sal-mobile-active input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),.sal-mobile-active select,.sal-mobile-active textarea{font-size:16px!important;min-width:0;max-width:100%}
 .sal-mobile-active input[type="checkbox"],.sal-mobile-active input[type="radio"]{width:20px;height:20px;flex-shrink:0}
 .sal-mobile-active .tw{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch}
 .sal-mobile-active table.sal-mobile-cards{display:block!important;min-width:0!important;width:100%!important;border-collapse:separate}
 .sal-mobile-active .sal-mobile-cards>thead{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .sal-mobile-active .sal-mobile-cards>tbody,.sal-mobile-active .sal-mobile-cards>tfoot{display:block;width:100%}
 .sal-mobile-active .sal-mobile-cards>tbody>tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px;padding:10px!important;border-bottom:1px solid #9fb6ad;background:var(--surface,#fff);width:100%}
 .sal-mobile-active .sal-mobile-cards>tbody>tr>td{display:block;min-width:0!important;width:auto!important;max-width:none!important;white-space:normal!important;overflow-wrap:anywhere;text-align:left!important;border:0!important;padding:0!important}
 .sal-mobile-active .sal-mobile-cards>tbody>tr>td::before{content:attr(data-mobile-label);display:block;font-size:10px;font-weight:500;letter-spacing:.04em;color:var(--ink-2,#637777);margin-bottom:5px;text-transform:uppercase}
 .sal-mobile-active .sal-mobile-cards>tbody>tr>td[data-mobile-label=""]::before{display:none}
 .sal-mobile-active .sal-mobile-cards>tbody>tr>td.sal-mobile-actions{grid-column:1/-1}
 .sal-mobile-active .sal-mobile-cards .row{flex-wrap:wrap!important;justify-content:flex-start!important;gap:7px}
 .sal-mobile-active .sal-mobile-cards>tbody>tr.sal-mobile-group-row{display:block!important;background:var(--verde-soft,#e4eeea);padding:12px!important}
 .sal-mobile-active .sal-mobile-cards .sal-mobile-group-row>td::before{display:none}
 .sal-mobile-active .sal-mobile-cards>tfoot>tr{display:flex;flex-wrap:wrap;gap:10px;padding:12px}
 .sal-mobile-active .drawer,.sal-mobile-active .drawer.importacao-amplo,.sal-mobile-active .drawer.venda-editor{width:100%!important;max-width:100vw;height:100dvh}
 .sal-mobile-active .scrim{z-index:1200}
 .sal-mobile-active .toast{z-index:1300;bottom:calc(90px + env(safe-area-inset-bottom))}
 .sal-mobile-active .drawer-h,.sal-mobile-active .modal-h{padding:10px!important;gap:10px}
 .sal-mobile-active .drawer-b,.sal-mobile-active .modal-b{padding:14px!important;min-width:0}
 .sal-mobile-active .drawer-f,.sal-mobile-active .modal-f{padding:12px 12px calc(12px + env(safe-area-inset-bottom))!important;flex-wrap:wrap;gap:8px;z-index:3}
 .sal-mobile-active .drawer-f .spacer,.sal-mobile-active .modal-f .spacer{display:none}
 .sal-mobile-active .drawer-f .btn,.sal-mobile-active .modal-f .btn{flex:1;min-width:100px}
 .sal-mobile-active .modal{width:100%!important;max-height:96dvh!important;margin:auto!important;border-radius:14px 14px 0 0}
 .sal-mobile-active dialog{max-width:100%;width:calc(100% - 16px);padding:16px;max-height:94dvh}
 .sal-mobile-active .label-fields{grid-template-columns:1fr!important}
 .sal-mobile-active .view iframe{max-width:100%;width:100%;border:0}
 .sal-mobile-active .view img{max-width:100%;height:auto}
 .sal-mobile-active .tiny,.sal-mobile-active .mini{font-size:11px;line-height:1.5}
 .sal-mobile-active .conc-grade-wrap{height:auto!important;max-height:none!important}
 .sal-mobile-active .conc-grade{min-width:0!important;table-layout:auto!important}
 .sal-mobile-active .conc-grade .sal-mobile-actions button{width:auto}
 .sal-mobile-active .sal-mobile-cards>tbody>tr>td:has(.cliente-pedido){grid-column:1/-1}
 .sal-mobile-active .sal-mobile-cards>tbody>tr>td:has(.cliente-pedido):before{margin-top:2px}
}
@media print{.sal-mobile-header,.sal-mobile-bottom,.sal-mobile-backdrop{display:none!important}body.sal-mobile-active{padding:0!important}}

.login-card .login-remember{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-size:13px;line-height:1.4;cursor:pointer}
.login-card .login-remember input{width:20px;height:20px;flex:0 0 20px}
@media screen and (max-width:767px){
 body.sal-mobile-active{font-size:13px;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 .sal-mobile-active .sal-mobile-filter-summary{display:flex;padding:4px 9px;border-bottom:1px solid var(--rule,#cbd8d6);background:var(--surface,#fff)}
 .sal-mobile-active .sal-mobile-filter-toggle{width:100%;border:0;background:transparent;text-align:left;color:var(--ink,#123438);font-size:12px;min-height:44px;padding:4px}
 .sal-mobile-active .topbar.sal-mobile-filters-collapsed{display:none!important}
 .sal-mobile-active .page-head{margin-bottom:10px;gap:8px}
 .sal-mobile-active .card-h{font-size:13px}
 .sal-mobile-active .view p{line-height:1.45}
 .sal-mobile-active .sal-mobile-cards>tbody>tr>td{font-size:12px;line-height:1.4}
 .sal-mobile-active .drawer-h h2,.sal-mobile-active .modal-h h2{font-size:16px}
 .sal-mobile-active .kpis{gap:7px}
 .sal-mobile-active .kpi .s{font-size:11px}
 .sal-mobile-active .drawer-b,.sal-mobile-active .modal-b{padding:11px!important}
 .login-brand-panel{display:none!important}
 .login-card{padding:22px 18px!important}
 .login-card h2{font-size:24px!important}
}
@media print{.sal-mobile-filter-summary{display:none!important}.topbar.sal-mobile-filters-collapsed{display:none!important}}

@media screen and (max-width:767px){.sal-mobile-active .view b[style*="font-size:24px"],.sal-mobile-active .view div[style*="700 25px"]{font-size:18px!important}}

/* Segunda revisão: linhas de recebimento e métricas, sem mudanças nos dados. */
@media screen and (max-width:767px){
 .sal-mobile-header-line{min-height:46px;padding:2px 9px;gap:8px}
 .sal-mobile-brand{font-size:17px;letter-spacing:-.4px}
 .sal-mobile-user{font-size:11px}
 .sal-mobile-menu{font-size:17px;min-width:40px;min-height:44px;border-radius:8px}
 .sal-mobile-subnav{min-height:42px;padding:2px 9px 5px;gap:4px}
 .sal-mobile-sub{font-size:11px;padding:5px 9px;min-height:36px}
 .sal-mobile-active .sal-mobile-bottom{padding:2px 4px calc(3px + env(safe-area-inset-bottom))}
 .sal-mobile-active .sal-mobile-dest{min-height:44px;font-size:10px;gap:2px;padding:3px 1px}
 .sal-mobile-nav-icon{font-size:17px}
 body.sal-mobile-active{padding-bottom:calc(54px + env(safe-area-inset-bottom))}
 .sal-mobile-active .view{padding:8px!important}
 .sal-mobile-active .card-h{padding:8px 10px!important;gap:5px}
 .sal-mobile-active .card-h h2{font-size:12px;line-height:1.35}
 .sal-mobile-active .card-b{padding:8px 10px!important}
 .sal-mobile-active .view .tl-item{display:grid!important;grid-template-columns:minmax(54px,1fr) auto!important;grid-template-areas:'cliente cliente' 'data valor';gap:4px 6px!important;padding:8px 0!important;align-items:center}
 .sal-mobile-active .tl-item>span:nth-child(2){grid-area:cliente;min-width:0;font-size:12px;line-height:1.35;overflow-wrap:normal;word-break:normal}
 .sal-mobile-active .tl-item>span:nth-child(2) b,.sal-mobile-active .tl-item .cliente-pedido{font-size:12px!important;line-height:1.35!important;white-space:normal;overflow-wrap:normal;word-break:normal}
 .sal-mobile-active .tl-item .dt{grid-area:data;font-size:10px;white-space:nowrap}
 .sal-mobile-active .tl-item>span.row{grid-area:valor;display:flex!important;flex-wrap:nowrap!important;gap:6px!important;justify-content:flex-end;min-width:0}
 .sal-mobile-active .tl-item>span.row b{font-size:12px!important;white-space:nowrap}
 .sal-mobile-active .tl-item .tag{font-size:8px;padding:3px 5px;white-space:nowrap}
 .sal-mobile-active .tl-item .btn{font-size:11px!important;padding:4px 8px;min-width:66px;min-height:44px}
 .sal-mobile-active .sal-mobile-seller-metrics>tbody>tr{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px 8px;padding:8px!important}
 .sal-mobile-active .sal-mobile-seller-metrics>tbody>tr>td{font-size:11px!important;line-height:1.25}
 .sal-mobile-active .sal-mobile-seller-metrics>tbody>tr>td::before{font-size:8px;letter-spacing:0;margin-bottom:3px;line-height:1.25}
 .sal-mobile-active .sal-mobile-seller-metrics>tbody>tr>td:nth-child(1){grid-column:1/3;font-size:12px!important}
 .sal-mobile-active .sal-mobile-seller-metrics>tbody>tr>td:nth-child(2){grid-column:3;text-align:right!important}
 .sal-mobile-active .sal-mobile-seller-metrics>tbody>tr>td:nth-child(6){grid-column:1/-1;display:flex;gap:6px;align-items:baseline}
 .sal-mobile-active .sal-mobile-seller-metrics>tbody>tr>td:nth-child(6)::before{display:inline;margin:0}
 .sal-mobile-active .sal-mobile-cards>tbody>tr>td::before{font-size:9px;margin-bottom:3px}
 .sal-mobile-active .view .btn{font-size:11px;padding:5px 8px}
 .sal-mobile-active .view .mini,.sal-mobile-active .view .tiny{font-size:10px;line-height:1.35}
 .sal-mobile-active .sal-mobile-filter-summary{padding:0 8px}
 .sal-mobile-active .sal-mobile-filter-toggle{font-size:11px;min-height:36px}

}


/* Revisão completa: editores de itens e processos, sem alterar regras de negócio. */
.sal-mobile-editor-caption{display:none}
@media screen and (max-width:767px){
 .sal-mobile-active .drawer .item.sal-mobile-editor-row{min-width:0!important;width:100%;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px;padding:10px!important;margin:8px 0;border:1px solid var(--rule,#cbd8d6);border-radius:10px;background:var(--surface,#fff)}
 .sal-mobile-active .drawer .sal-mobile-editor-head{display:none!important}
 .sal-mobile-active .sal-mobile-editor-field{display:flex;flex-direction:column;gap:4px;min-width:0;margin:0}
 .sal-mobile-active .sal-mobile-editor-caption{display:block;font-size:11px;line-height:1.35;color:var(--ink-2,#637777);font-weight:500}
 .sal-mobile-active .sal-mobile-editor-field.is-product{grid-column:1/-1}
 .sal-mobile-active .sal-mobile-editor-field.is-action{justify-content:flex-end;align-items:flex-end}
 .sal-mobile-active .sal-mobile-editor-field>.inp,.sal-mobile-active .sal-mobile-editor-field>input,.sal-mobile-active .sal-mobile-editor-field>select{width:100%;min-width:0}
 .sal-mobile-active .sal-mobile-editor-field.is-action>.btn{min-width:44px;min-height:44px}
 .sal-mobile-active .sal-mobile-seller-metrics>tbody>tr>td::before,.sal-mobile-active .sal-mobile-cards>tbody>tr>td::before{font-size:11px;line-height:1.3}
 .sal-mobile-active .view .mini,.sal-mobile-active .view .tiny{font-size:11px;line-height:1.4}
 .sal-mobile-active .tl-item .tag{font-size:10px}
 .sal-mobile-active .kpi .k{font-size:11px!important}
 .sal-mobile-active .sal-mobile-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .sal-mobile-active .drawer.importacao-amplo .fx-doc-h{flex-wrap:wrap;gap:6px;align-items:flex-start}
 .sal-mobile-active .drawer.importacao-amplo .fx-arq-t{overflow-wrap:anywhere}
 .sal-mobile-active .drawer.importacao-amplo table.sal-mobile-cards input,.sal-mobile-active .drawer.importacao-amplo table.sal-mobile-cards select{width:100%;min-width:0}
 .sal-mobile-active .drawer .card-b>div[style*="font-size:24px"]{font-size:18px!important}
}
@media screen and (max-width:359px){
 .sal-mobile-active .tl-item>span.row{display:grid!important;grid-template-columns:auto auto;gap:3px 6px!important;justify-content:end}
 .sal-mobile-active .tl-item>span.row>.tag{grid-column:1;grid-row:1;justify-self:end}
 .sal-mobile-active .tl-item>span.row>b{grid-column:1;grid-row:2}
 .sal-mobile-active .tl-item>span.row>.btn{grid-column:2;grid-row:1/span 2}
}
@media screen and (max-width:767px){
 .sal-mobile-active .re-shell{grid-template-columns:minmax(0,1fr)!important;min-width:0;max-width:100%}
 .sal-mobile-active .re-shell>*{min-width:0;max-width:100%}
 .sal-mobile-active .re-grid{grid-template-columns:minmax(0,1fr)!important;min-width:0}
 .sal-mobile-active .re-grid>*{min-width:0;max-width:100%}
 .sal-mobile-active .re-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important;min-width:0}
 .sal-mobile-active .re-kpi{min-width:0;padding:10px}
 .sal-mobile-active .re-kpi b{font-size:16px;overflow-wrap:anywhere}
 .sal-mobile-active .re-head{padding:12px;flex-wrap:wrap}
 .sal-mobile-active .re-head h1{font-size:19px}
 .sal-mobile-active .re-tabs{min-width:0;max-width:100%;overflow-x:auto}
}
@media screen and (max-width:767px){
 .sal-mobile-active .re-shell [style*="minmax(320px"]{grid-template-columns:minmax(0,1fr)!important}
 .sal-mobile-active .re-panel{min-width:0;max-width:100%}
}
