:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#18352d;background:#f4f8f5;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}.hidden{display:none!important}.site-header{background:#fff;border-bottom:1px solid #e1eae4;position:sticky;top:0;z-index:20}.header-inner{max-width:1100px;margin:auto;display:flex;align-items:center;gap:12px;padding:17px 22px}.brand-mark{width:44px;height:44px;background:#167a5b;color:white;border-radius:14px;display:grid;place-items:center;font-size:27px;font-weight:800;box-shadow:0 6px 14px #167a5b22}.brand-text{display:flex;flex-direction:column;gap:2px}.brand-text strong{font-size:22px;letter-spacing:-.8px}.brand-text span{color:#789087;font-size:12px}.header-actions{margin-left:auto;display:flex;align-items:center;gap:10px}.connection{font-size:12px;color:#39846b;background:#edf8f1;border-radius:30px;padding:7px 11px}.header-logout{background:none;border:1px solid #d9e5de;border-radius:10px;padding:9px 12px;color:#315347}main{max-width:1100px;margin:0 auto;padding:28px 22px 70px}.auth-wrap{min-height:calc(100vh - 155px);display:flex;justify-content:center;align-items:center}.auth-card{width:min(100%,440px);background:white;border:1px solid #e2ebe5;border-radius:24px;padding:36px;box-shadow:0 18px 60px #163b2b12}.auth-icon{font-size:36px;background:#eaf7ee;width:66px;height:66px;border-radius:19px;display:grid;place-items:center;margin:0 auto 18px}.auth-card h1{text-align:center;font-size:27px;letter-spacing:-1px;margin:0 0 8px}.subtitle{color:#71867d;line-height:1.5}.auth-card .subtitle{text-align:center;margin:0 0 26px}.auth-card form{display:flex;flex-direction:column}.auth-card form .primary{margin-top:22px;width:100%}label{display:block;font-size:13px;font-weight:700;color:#395b4c;margin:16px 0 8px}input{width:100%;background:#fbfdfb;border:1px solid #d9e6dd;border-radius:12px;min-height:48px;padding:12px 14px;color:#1d3a2d;outline:none}input:focus{border-color:#16865e;box-shadow:0 0 0 3px #1d9c6a1b}input::placeholder{color:#9aac9e}.primary,.secondary{border:0;border-radius:12px;min-height:45px;padding:11px 17px;font-weight:700;transition:transform .12s,background .12s}.primary{background:#167a5b;color:white;box-shadow:0 6px 16px #167a5b1c}.primary:hover{background:#106b4e}.secondary{background:#eff6f1;color:#216b50;border:1px solid #dcece2}.secondary:hover{background:#e5f1e9}.primary:active,.secondary:active{transform:scale(.99)}.text-button{display:block;background:none;border:0;color:#167a5b;font-size:13px;margin:17px auto 0}.text-button.subtle{margin-top:8px;color:#71867d}.security-note{border-top:1px solid #edf1ed;margin-top:23px;padding-top:19px;color:#71867d;font-size:12px;text-align:center;line-height:1.5}.notice{font-size:13px;color:#376f59;line-height:1.5}.welcome{display:flex;justify-content:space-between;align-items:center;gap:15px;margin:10px 0 23px}.welcome h1{font-size:32px;letter-spacing:-1.2px;margin:4px 0}.welcome .subtitle{margin:0}.eyebrow{font-size:11px;letter-spacing:2px;color:#16835c;font-weight:800;margin:0}.compact{min-height:40px}.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:22px}.metric{display:flex;flex-direction:column;align-items:flex-start;gap:9px;text-align:left;background:white;border:1px solid #e0eae3;border-radius:17px;padding:20px;box-shadow:0 5px 22px #163b2b07}.metric-icon{width:36px;height:36px;border-radius:11px;display:grid;place-items:center;font-weight:800;font-size:20px}.metric-icon.green{background:#e4f7ea;color:#14875a}.metric-icon.yellow{background:#fff4d9;color:#b57b11}.metric-icon.red{background:#ffe9e6;color:#c74e45}.metric-number{font-size:31px;font-weight:800;letter-spacing:-1px}.metric-label{font-size:13px;color:#71867d}.panel{background:white;border:1px solid #e0eae3;border-radius:19px;padding:25px;margin-bottom:20px;box-shadow:0 6px 24px #163b2b07}.panel h2{font-size:21px;letter-spacing:-.5px;margin:0 0 7px}.panel-heading{display:flex;justify-content:space-between;align-items:start;gap:15px}.panel-heading p{margin:0;color:#71867d;font-size:13px}.small-tag{background:#e9f7ed;color:#15845b;font-size:10px;font-weight:800;padding:8px 10px;border-radius:30px;white-space:nowrap}.scan-row{display:flex;gap:10px;align-items:center}.scan-row input{min-width:0;flex:1}.scan-row button{white-space:nowrap}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}.filter-row{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.filter{border:1px solid #e0eae3;background:#f5f8f6;color:#537465;border-radius:100px;padding:9px 16px;font-size:13px;font-weight:650}.filter.active{background:#167a5b;color:white;border-color:#167a5b}.backup-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.empty{background:#f7faf8;border:1px dashed #cfded4;border-radius:12px;padding:24px;text-align:center;color:#7b9184}.alert-banner{background:#fff6e7;border:1px solid #f5ddb2;color:#93620f;padding:15px;border-radius:12px;margin-bottom:18px}.footer-note{font-size:12px;color:#758c7f;line-height:1.6;padding:4px 8px}.scanner-panel{background:#f5faf7;border:1px solid #dce9e0;border-radius:15px;padding:15px;margin-top:12px}.hint{font-size:12px;color:#728b7d}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.panel#teamPanel{border-left:4px solid #16815d}.panel#teamPanel #membersList{margin-top:12px}.panel#teamPanel #enablePush{margin-top:14px}#items>div{max-width:100%;overflow-wrap:anywhere}#items button{margin:4px}#storeLabel{color:#688375;font-size:13px}@media(min-width:900px){#appSection{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:0 22px}#appSection>.welcome,#appSection>.metrics,#appSection>#alertBanner,#appSection>#productPanel,#appSection>.panel:not(#teamPanel),#appSection>.footer-note{grid-column:1}#appSection>#teamPanel{grid-column:2;grid-row:1 / span 5;align-self:start;position:sticky;top:110px}#appSection>.welcome{grid-row:1}#appSection>.metrics{grid-row:2}#appSection>#alertBanner{grid-row:3}#appSection>#productPanel{grid-row:4}#appSection>.panel:not(#teamPanel){grid-row:5}#appSection>.footer-note{grid-row:6}}@media(max-width:650px){main{padding:18px 14px 50px}.header-inner{padding:12px 14px}.brand-text strong{font-size:19px}.brand-mark{width:40px;height:40px}.auth-wrap{align-items:flex-start;padding-top:24px}.auth-card{padding:25px 21px;border-radius:20px}.auth-card h1{font-size:24px}.welcome h1{font-size:27px}.metrics{gap:8px}.metric{padding:13px 10px;border-radius:13px}.metric-number{font-size:26px}.metric-label{font-size:11px}.panel{padding:18px 16px;border-radius:16px}.scan-row{flex-wrap:wrap}.scan-row button{flex:0 0 auto}.form-grid{gap:10px}.panel-heading{align-items:center}.connection{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Consulta de catálogo por código de barras */
.lookup-status{font-size:.86rem;color:#52665d;margin:7px 0 10px;min-height:1.2em}
.product-preview{display:flex;align-items:center;gap:14px;background:#f2faf5;border:1px solid #cde5d5;border-radius:14px;padding:12px;margin:8px 0 14px}
.product-preview img{width:68px;height:68px;object-fit:contain;background:#fff;border-radius:9px}
.product-preview strong{display:block;color:#143e2d;font-size:.98rem}
.product-preview span{display:block;color:#557165;font-size:.82rem;margin-top:4px}

.plans-header-link{color:#167a5b;font-weight:700;text-decoration:none;font-size:13px;padding:8px}.plan-entry{text-align:center;font-size:13px}.plan-entry a{color:#167a5b}

/* Painel Business */
.business-select {width:100%;max-width:100%;padding:12px;border:1px solid #cbd5e1;border-radius:10px;margin:6px 0 12px;background:#fff;color:#172554;}
.business-table-wrap{overflow-x:auto;margin:12px 0;}
.business-table{width:100%;border-collapse:collapse;min-width:460px;font-size:13px;}
.business-table th,.business-table td{padding:9px;border-bottom:1px solid #e5e7eb;text-align:left;}
#businessPanel h3{margin:16px 0 8px;}
#businessPanel .scan-row{margin-bottom:12px;}

/* Account and administration drawer */
.settings-trigger{border:1px solid #d9e5de;background:#fff;color:#245a45;border-radius:12px;padding:10px 13px;font:inherit;font-weight:700;cursor:pointer;white-space:nowrap}
.settings-trigger:hover{background:#eff7f1}
body:not(:has(#appSection:not(.hidden))) .settings-trigger{display:none}
.settings-backdrop{position:fixed;inset:0;background:rgba(10,35,25,.45);z-index:70}
.settings-backdrop[hidden]{display:none}
.settings-drawer{position:fixed;right:0;top:0;bottom:0;width:min(100%,520px);background:#f5f8f6;z-index:71;box-shadow:-16px 0 55px #102d2833;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .2s ease;visibility:hidden}
.settings-drawer.is-open{transform:translateX(0);visibility:visible}
.settings-head{background:white;border-bottom:1px solid #e0eae3;padding:22px 20px 14px;display:flex;justify-content:space-between;align-items:start;gap:12px}
.settings-head h2{font-size:21px;margin:4px 0}.settings-eyebrow{color:#167a5b;font-size:11px;letter-spacing:2px;font-weight:800}
.settings-close{border:1px solid #d9e5de;background:#fff;border-radius:12px;padding:10px 14px;font-size:18px;cursor:pointer}
.settings-tabs{display:flex;gap:6px;padding:12px 16px;background:white;border-bottom:1px solid #e0eae3}
.settings-tab{flex:1;background:#f2f6f3;border:1px solid transparent;border-radius:10px;padding:12px 6px;color:#426655;font-weight:700;cursor:pointer;font-size:13px}
.settings-tab.active{background:#167a5b;color:#fff}
.settings-scroll{overflow-y:auto;overscroll-behavior:contain;flex:1;padding:18px 16px 35px}
.settings-page .panel{margin-bottom:12px;padding:20px 16px;box-shadow:none}
.settings-page h3{margin:0 0 12px}.settings-email{overflow-wrap:anywhere;color:#315347}
.settings-plans{display:block;color:#167a5b;font-weight:700;margin:22px 0}
.settings-logout{background:#fff;border:1px solid #d8e5dd;color:#9b3131;border-radius:12px;padding:12px 16px;font-weight:700;cursor:pointer;width:100%}
/* Remove legacy two-column sidebar layout: management now lives in drawer */
@media(min-width:900px){#appSection{display:block}#appSection>.welcome,#appSection>.metrics,#appSection>#alertBanner,#appSection>#productPanel,#appSection>.panel:not(#teamPanel),#appSection>.footer-note{grid-column:auto;grid-row:auto}}
@media(max-width:650px){.settings-trigger{padding:9px 11px}.settings-trigger span{display:none}.header-actions{gap:5px}.plans-header-link{padding:6px}.settings-head{padding-top:max(20px,env(safe-area-inset-top))}.settings-scroll{padding-bottom:max(35px,env(safe-area-inset-bottom))}}

#signupStoreFields{margin:8px 0 14px;padding:12px;border:1px solid #d5e4dd;border-radius:12px;background:#f7faf8}#signupStoreFields.hidden,#storeOnboarding.hidden{display:none!important}#storeOnboarding{margin-bottom:18px}#storeOnboarding form{display:grid;gap:8px}#storeOnboarding input{width:100%;box-sizing:border-box}

/* Nome do administrador nas configuracoes */
.display-name-form{display:grid;gap:10px;margin:18px 0;padding:16px;border:1px solid #d8e7de;border-radius:14px}.display-name-form label{font-weight:700}.display-name-form input{width:100%;min-height:44px;padding:10px 12px;border:1px solid #bacdc1;border-radius:10px;font:inherit}.display-name-form button{min-height:44px;border:0;border-radius:10px;background:#087e50;color:#fff;font:inherit;font-weight:700;cursor:pointer}.display-name-form button:disabled{opacity:.6;cursor:wait}
