/* Interface touch-first sem modificar as regras comerciais compartilhadas */
.mobile-bottom-nav,.mobile-preview-box,.mobile-only-action,.mobile-data-disclaimer{display:none}
.mobile-system-note{position:fixed;top:10px;left:50%;transform:translateX(-50%);z-index:100;background:#22272a;color:#fff;padding:9px 18px;border-radius:9px;box-shadow:0 5px 20px #0002;font-size:12px;max-width:90vw}
.mobile-system-note[hidden],.pwa-update[hidden],.mobile-dialog-backdrop[hidden]{display:none!important}
.pwa-update{position:fixed;bottom:80px;left:12px;right:12px;z-index:110;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border-radius:10px;background:#263136;color:#fff;box-shadow:0 3px 18px #0003;font-weight:700}
.pwa-update button{background:var(--yellow);border:0;border-radius:7px;padding:8px 16px;font-weight:800}
.mobile-data-disclaimer{margin-top:15px;padding:12px;border-radius:9px;background:#fffbe4;color:#6d5b24;font-size:12px}
@media(max-width:760px){
 body{padding-bottom:calc(77px + env(safe-area-inset-bottom,0px));font-size:15px}
 .topbar{position:sticky;top:0;z-index:29;min-height:66px;height:auto;padding:9px 12px;gap:8px}
 .brand{gap:8px}.brand b{font-size:18px}.brand small{letter-spacing:.35px;white-space:nowrap;font-size:9px}
 .brand-mark{width:38px;height:38px;font-size:26px}.brand-version{display:inline}.topbar-actions .btn{white-space:normal;max-width:115px;min-height:38px}
 .sidebar{display:none;position:fixed;bottom:calc(71px + env(safe-area-inset-bottom,0px));left:9px;right:9px;max-height:72dvh;overflow-y:auto;z-index:51;border-radius:16px;padding:14px;box-shadow:0 10px 30px #10101066}
 .sidebar.mobile-open{display:flex;flex-direction:column;align-items:stretch;overflow-x:hidden}
 .sidebar .nav-link{font-size:14px;min-height:43px}.sidebar .nav-heading{display:block;padding:10px 12px 5px}.sidebar-foot{display:block;padding:8px 12px}
 .mobile-dialog-backdrop{position:fixed;inset:0;background:#0007;z-index:49}
 .mobile-bottom-nav{position:fixed;bottom:0;left:0;right:0;display:grid;grid-template-columns:repeat(4,1fr);align-items:stretch;height:calc(65px + env(safe-area-inset-bottom,0px));padding:4px 4px env(safe-area-inset-bottom,0px);background:#22292c;color:#edf0f0;z-index:50;box-shadow:0 -3px 12px #0002}
 .mobile-tab{border:0;background:none;color:#c5cfd1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;font-size:11px;font-weight:650;border-radius:9px}.mobile-tab .icon{width:21px;height:21px}.mobile-tab.is-current{background:#ffe42c;color:#273034;font-weight:850}
 .workspace{padding:15px 11px 35px}.panel{padding:15px 13px}.page-heading{gap:13px;margin-bottom:15px}.page-heading h1{font-size:24px}.page-heading p{line-height:1.5}.heading-actions{width:100%;justify-content:space-between}
 .editor-layout{display:flex;flex-direction:column;gap:12px}.edit-column,.preview-column{width:100%;gap:12px}
 .preview-column{display:flex;flex-direction:column}.summary-panel{order:0}.pdf-panel{order:1}
 .grid,.grid-client,.grid-3,.discount-inline{grid-template-columns:1fr}.item-fields{grid-template-columns:1fr 1fr}.item-fields label:last-child{grid-column:1/-1}
 .quick-row{display:flex;flex-direction:column;align-items:stretch}.quick-row select{max-width:none}.quick-row .btn{width:100%}
 .panel-heading{margin-bottom:16px}.bottom-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.bottom-actions .btn{white-space:normal;min-height:46px;font-size:12px}
 .bottom-actions #baixar,.bottom-actions #abrirImpressao{width:100%}.mobile-only-action,.mobile-preview-box,.mobile-data-disclaimer{display:block}
 #visualizacao{display:none}.mobile-preview-box{padding:14px;border:1px solid #e2e6e6;background:#fafbfb;border-radius:9px;text-align:center}.mobile-preview-box p{font-size:13px;color:#596468;margin:0 0 10px}.mobile-preview-box .btn{width:100%}
 .record-cards .record-card{flex-wrap:wrap}.record-actions{width:100%}.record-actions .btn{flex:1}.table-scroll{overflow:auto;max-width:100%}.records{min-width:600px}
 .filters{gap:8px}.filters>select{width:100%;max-width:none}.dashboard-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.dashboard-kpi{padding:14px!important}.dashboard-kpi strong{font-size:19px!important}
 .dashboard-columns{grid-template-columns:1fr}.inline-form{grid-template-columns:1fr}.backup-feature{align-items:flex-start}.backup-feature h2{font-size:15px}.backup-panel .warning{font-size:12px}
 button,input,select,textarea{touch-action:manipulation}input:not([type=checkbox]):not([type=file]),textarea,select{font-size:16px;min-height:46px}button{min-height:38px}
 .mobile-system-note{top:73px}.pwa-update{bottom:calc(78px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:365px){.brand small{font-size:8px}.topbar-actions .btn{font-size:10px}.item-fields{grid-template-columns:1fr}.item-fields label:last-child{grid-column:auto}}
