
:root{
  font-family:"Segoe UI",Inter,Arial,sans-serif;font-synthesis:none;
  color:#304e59;background:#f4f7f8;--accent:#177d6b;--ink:#25434e;
  --line:#e1e9ec;--muted:#748892;--sidebar-width:248px;--sidebar:#142e38;
}

*{box-sizing:border-box}
body{margin:0;min-width:320px}
button,input,select,textarea{font:inherit}
button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:8px;background:var(--accent);color:#fff;min-height:41px;padding:10px 17px;cursor:pointer;font-size:13px;font-weight:600;line-height:1.4;transition:background .15s,border-color .15s,box-shadow .15s}
button:hover:not(:disabled){background:#126c5c}
button:disabled{opacity:.48;cursor:wait}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #62bca7;outline-offset:3px}
.secondary{color:#4a6873;background:#fff;border-color:#d6e1e5}
.secondary:hover:not(:disabled){color:#23594f;background:#f3f9f7;border-color:#accac1}
.danger{background:#af3a4c}
.wide{width:100%;margin-top:12px;min-height:46px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;min-height:36px;padding:8px;background:transparent;color:#80959e;border:0;border-radius:8px;flex:none}
.icon-button:hover:not(:disabled){background:#edf4f3;color:var(--accent)}
.ui-icon{display:block;flex:none;width:20px;height:20px}
button .ui-icon{width:18px;height:18px}
input,select,textarea{padding:10px 12px;background:#fff;color:#304e59;border:1px solid #d6e1e5;border-radius:7px;min-height:42px;max-width:100%;font-size:13px;line-height:1.5}
input:focus,select:focus,textarea:focus{outline:3px solid #d1eae3;outline-offset:0;border-color:#68a994}
input::placeholder,textarea::placeholder{color:#99a9b0}
label{display:grid;gap:7px;font-size:12px;font-weight:600;color:#58717b;margin:15px 0}
label.check{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:500;line-height:1.55}
input[type=checkbox]{min-height:0;width:17px;height:17px;accent-color:var(--accent);flex:none}
h1,h2,h3{color:var(--ink)}
h1{font-size:30px;font-weight:650;letter-spacing:-.8px;line-height:1.2;margin:8px 0}
h2{font-size:17px;font-weight:650;letter-spacing:-.25px;margin:0 0 19px}
h3{font-size:15px;font-weight:650;margin:0 0 16px}
p{line-height:1.7;margin:10px 0}
a{color:var(--accent)}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
[hidden]{display:none!important}
.mobile-only{display:none}
.sidebar{position:fixed;inset:0 auto 0 0;z-index:50;width:var(--sidebar-width);background:var(--sidebar);color:#d8e6ea;display:flex;flex-direction:column;padding:28px 18px 20px;overflow:hidden}
.sidebar-brand-row{display:flex;align-items:center;justify-content:space-between;flex:none}
.brand{display:flex;align-items:center;gap:11px;text-decoration:none;font-size:22px;letter-spacing:-.6px;line-height:1.1;font-weight:650;white-space:nowrap;color:#f4f8f8}
.brand small{display:block;font-size:10px;font-weight:500;color:#9cb7bf;letter-spacing:1.6px;text-transform:uppercase;margin-top:7px}
.brand-symbol{display:grid;place-items:center;background:#244a50;color:#99d0bf;border:1px solid #355d61;border-radius:11px;width:43px;height:45px}
.brand-symbol .ui-icon{width:26px;height:26px;stroke-width:1.4}
.workspace-label{margin:34px 10px 11px;display:flex;align-items:center;justify-content:space-between;color:#829ea8;font-size:9px;font-weight:600;letter-spacing:1px;text-transform:uppercase;flex:none}
.local-label{font-size:9px;letter-spacing:.5px;color:#a3c7bc;border:1px solid #416169;border-radius:4px;padding:2px 5px}
.store-switcher{display:flex;align-items:center;gap:5px;border:1px solid #36525e;border-radius:8px;background:#1d3b46;min-height:52px;padding:4px 8px;flex:none}
.store-switcher-icon{color:#9cbdbf;padding:7px 4px}
.store-switcher select{flex:1;min-width:0;width:100%;border:0;background:#1d3b46;color:#edf5f5;font-weight:550;font-size:12px;padding:10px 3px;outline-offset:1px}
.store-switcher option{background:#fff;color:#304e59}
.sidebar-back{justify-content:flex-start;padding:9px 11px;min-height:33px;background:transparent;color:#a7c9c1;font-size:11px;font-weight:500;margin-top:6px}
.sidebar-back:hover:not(:disabled){background:#22434c}
.sidebar-back .ui-icon{width:15px;height:15px}
.navigation-label{color:#73929d;font-size:9px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase;margin:27px 12px 11px;flex:none}
.navigation{display:flex;flex-direction:column;gap:5px;overflow-y:auto;overflow-x:hidden;min-height:0;padding:0 0 10px;scrollbar-width:thin;scrollbar-color:#365761 transparent}
.navigation button{position:relative;justify-content:flex-start;flex:none;text-align:left;min-height:45px;width:100%;padding:12px 13px;border:1px solid transparent;border-radius:8px;background:transparent;color:#afc4cd;font-size:13px;font-weight:500;gap:12px}
.navigation button>.ui-icon{color:#85a6b0;width:19px;height:19px}
.navigation button:hover:not(:disabled){background:#203e49;color:#f2f8f7}
.navigation button.active{background:#24524f;color:#effaf5;border-color:#30645c}
.navigation button.active>.ui-icon{color:#98d4bf}
.navigation button .nav-chevron{margin-left:auto;width:13px;height:13px;opacity:0}
.navigation button.active .nav-chevron{opacity:1;color:#a4d1c3}
.sidebar-bottom{margin-top:auto;padding:24px 9px 0;flex:none}
.sidebar-sync{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.sidebar-sync-icon{color:#8bb6b1}
.sidebar-sync-icon>.ui-icon{width:21px;height:21px}
.sidebar-sync>div{flex:1;min-width:0}
.sidebar-sync strong{display:block;font-size:11px;font-weight:550;color:#c0d7dc}
.sidebar-sync small{display:block;font-size:10px;line-height:1.6;color:#8da9b3;margin-top:3px}
.status-dot{width:6px;height:6px;background:#bd985d;border-radius:50%;flex:none}
.status-dot.online{background:#76c4a8;box-shadow:0 0 0 3px #76c4a81a}
.sidebar-copy{margin:2px 0 19px}
.sidebar-copy:has(#d3-backup-indicator[hidden]){display:none}
.sidebar-copy-label{display:block;color:#7899a5;font-size:9px;margin-bottom:7px}
#app-sidebar #d3-backup-indicator{display:flex;align-items:flex-start;position:relative;white-space:normal;max-width:100%;background:transparent;font-size:10px;line-height:1.6;padding:0 0 0 12px;margin:0;color:#ddbd81;border:0}
#app-sidebar #d3-backup-indicator::before{content:"";position:absolute;left:0;top:6px;width:4px;height:4px;border-radius:50%;background:currentColor}
#app-sidebar #d3-backup-indicator.ok{color:#95cbb9}
.sidebar-version{display:flex;justify-content:space-between;gap:8px;border-top:1px solid #2e4a55;padding-top:15px;color:#7e9ba7;font-size:9px}
.topbar{position:sticky;top:0;z-index:25;min-height:74px;margin-left:var(--sidebar-width);background:#fff;border-bottom:1px solid var(--line);padding:15px 32px;display:flex;align-items:center;justify-content:space-between;gap:20px}
body:not(.locked) .auth-brand{display:none}
.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;min-width:0;color:#8c9da5}
.breadcrumb>span:first-child{white-space:nowrap;max-width:240px;overflow:hidden;text-overflow:ellipsis}
.breadcrumb-separator{color:#c2cfd4}
.breadcrumb strong{color:#405e6b;font-weight:550;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions,.heading-actions,.row,.actions,.tabs{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.top-actions{margin-left:auto;justify-content:flex-end;flex-wrap:nowrap;gap:14px}
.top-actions .secondary{min-height:35px;padding:7px 11px;font-size:11px}
.top-cash-button{min-height:36px;padding:8px 14px;font-size:12px}
.user-profile{display:flex;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:18px}
.user-avatar{width:34px;height:34px;display:grid;place-items:center;border-radius:50%;background:#edf5f1;color:#428871;font-size:13px;font-weight:600;flex:none}
.user-profile strong{display:block;max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;font-weight:600}
.user-profile small{display:block;color:#8b9fa7;font-size:10px;margin-top:3px}
.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;border-radius:5px;padding:5px 8px;background:#edf2f4;color:#71858f;white-space:nowrap;font-weight:500;line-height:1.5}
.badge.ok{color:#368568;background:#ebf6ef}
.badge.pending{color:#a87929;background:#fff5e2}
.badge.error{color:#ab4053;background:#fceff1}
.badge.test{color:#7a6a95;background:#f1edf8}
#connection-state{background:transparent;padding:5px 0;font-size:10px}
#connection-state::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor;margin-right:2px}
.app-main{max-width:1680px;min-height:calc(100vh - 142px);margin:0 auto 0 var(--sidebar-width);width:calc(100% - var(--sidebar-width));padding:31px 32px 45px}
.workspace-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}
.workspace-heading>div:first-child{min-width:0}
.eyebrow{display:block;font-size:10px;font-weight:600;letter-spacing:1.3px;text-transform:uppercase;color:#79939d}
.muted{color:var(--muted);font-size:12px}
.workspace-heading .muted{margin:8px 0 0;line-height:1.7}
.heading-actions{justify-content:flex-end;flex-shrink:0}
.heading-actions button{white-space:nowrap}
#sync-button{background:#fff;color:#4e727a;border-color:#d5e3e6}
#sync-button:hover:not(:disabled){background:#edf6f3;border-color:#b7d1c9}
.card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:23px 24px;min-width:0;box-shadow:0 2px 3px #123c4612}
.grid-two{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;margin-bottom:23px}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:25px}
.metric{position:relative;box-shadow:0 2px 3px #123c4606;padding:21px 22px}
.metric-heading{display:flex;align-items:center;justify-content:space-between;gap:9px;min-height:26px}
.metric-heading>span:first-child{color:#748d97;font-size:11px;font-weight:500}
.metric-icon{display:grid;place-items:center;flex:none;width:29px;height:29px;border-radius:8px;background:#f0f6f5;color:#80a89e}
.metric-icon .ui-icon{width:17px;height:17px}
.metric strong{display:block;color:#2a505c;font-size:28px;font-weight:600;letter-spacing:-.9px;margin:14px 0 7px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.3}
.metric small{display:block;color:#8b9fa7;font-size:10px;line-height:1.6}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:19px}
.section-head h2,.section-head h3{margin:0}
.toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:19px}
.toolbar input[type=search]{min-width:220px}
.toolbar input[type=date]{font-size:12px;padding:9px 10px}
.toolbar>button{font-size:12px}
.table-scroll{width:100%;overflow:auto;min-width:0;border-radius:6px;scrollbar-width:thin}
table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}
th{font-size:10px;font-weight:600;color:#8b9da6;background:#f8fafb;padding:12px 13px;white-space:nowrap;letter-spacing:.15px;border-bottom:1px solid var(--line)}
td{padding:15px 13px;border-bottom:1px solid #edf2f3;vertical-align:middle;color:#536e78;line-height:1.6}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover td{background:#fbfdfc}
td.numeric,th.numeric{text-align:right;font-variant-numeric:tabular-nums}
td input{min-width:68px;width:90px;padding:7px;min-height:35px}
td input.price{width:110px}
td .small{min-height:30px;padding:6px 9px;font-size:10px}
.empty{padding:34px 20px;text-align:center;color:#91a4ad;font-size:12px}
.store-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.store-card{position:relative;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:11px;text-align:left;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:10px;padding:22px;transition:border-color .15s,box-shadow .15s,transform .15s}
.store-card:hover:not(:disabled){background:#fff;border-color:#91baab;box-shadow:0 7px 18px #173f4c0a;transform:translateY(-2px)}
.store-card .store-title{font-size:14px;font-weight:600;min-width:0;overflow-wrap:anywhere}
.store-card strong{font-size:25px;font-weight:600;letter-spacing:-.6px;color:#2d5a62;line-height:1.4;margin-top:3px}
.store-card small{color:#8ca0a8;font-size:10px;font-weight:400;line-height:1.6}
.store-card .split{align-items:flex-start;gap:8px}
.store-card .badge{font-size:9px;padding:4px 6px}
.pos-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(370px,440px);gap:22px;align-items:start}
.pos-layout>.card:last-child{position:sticky;top:97px}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;max-height:540px;overflow:auto;padding:1px 2px 4px;scrollbar-width:thin}
.product-button{background:#fff;border:1px solid #e2eaec;border-radius:9px;padding:17px 15px;color:#41636f;text-align:left;display:flex;align-items:stretch;flex-direction:column;gap:9px;font-size:13px;font-weight:600;line-height:1.6;min-height:132px;justify-content:flex-start}
.product-button:hover:not(:disabled){background:#f7fbf9;border-color:#91bead}
.product-button small{color:#93a5ad;font-size:10px;font-weight:400}
.product-button strong{color:#307a65;font-size:17px;font-weight:600;margin-top:auto}
.payment-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}
.payment-grid label{font-size:11px}
.payment-grid input{width:100%;font-size:13px}
.payment-change{display:flex;align-items:center;justify-content:space-between;padding:13px 0;font-size:14px;color:#6d8e7e}
.payment-change strong{font-size:22px;font-weight:600}
.total{display:flex;justify-content:space-between;align-items:center;font-size:22px;font-weight:600;border-top:1px solid var(--line);margin-top:21px;padding-top:20px;gap:12px;color:#315563}
#sale-submit{min-height:47px;font-size:14px}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.form-grid label.full{grid-column:1/-1}
.form-grid input{width:100%}
.pillset{display:flex;gap:8px 15px;flex-wrap:wrap}
.pillset .check{margin:5px 0}
.split{display:flex;justify-content:space-between;gap:12px;align-items:center}
.spaced{margin-top:23px}
.safe-note{border:1px solid #deebe6;background:#f0f7f3;color:#628477;padding:14px 17px;border-radius:8px;font-size:11px;line-height:1.8}
.warning,#notice{border-radius:8px;padding:13px 17px;font-size:12px;line-height:1.7;margin-bottom:20px}
.warning{background:#fffaee;color:#9d783c;border:1px solid #eedfbb}
#notice{margin:19px 32px 0 calc(var(--sidebar-width) + 32px);background:#eef8f1;border:1px solid #d1e8d9;color:#42785b}
#notice.error{background:#fcf0f2;border-color:#efd5dc;color:#a24b5a}
#update-banner{margin:16px 32px 0 calc(var(--sidebar-width) + 32px);background:#edf5fb;border:1px solid #d0e1ed;border-radius:9px;padding:14px 17px;font-size:12px;line-height:1.6}
#update-banner button{margin-left:8px;font-size:12px}
#d3-fiscal-card>.toolbar select,#d3-fiscal-card select{max-width:100%}
#d3-fiscal-card table td:first-child{font-family:Consolas,monospace;font-size:10px;min-width:130px;max-width:180px;overflow-wrap:anywhere}
#d3-fiscal-card td .toolbar{min-width:160px;margin:0}
#d3-storage-diagnostics{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;color:#69838e;background:#f7fafb;padding:14px;border-radius:6px}
details{font-size:12px;line-height:1.7}
summary{cursor:pointer;color:#587a82;font-weight:550;padding:5px 0}
details[open]>summary{margin-bottom:13px}
details>p{font-size:12px}
pre{max-width:100%;overflow:auto}
.light-divider,hr{border:0;border-top:1px solid var(--line);margin:23px 0}
.inline-error{color:#a64c5c;font-size:12px}
.mini,.version{font-size:10px;color:var(--muted)}
.app-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-left:var(--sidebar-width);font-size:10px;color:#9babb2;padding:20px 32px 24px;border-top:1px solid var(--line)}
.auth-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,460px);gap:0;max-width:1080px;margin:42px auto;background:white;border:1px solid var(--line);border-radius:15px;overflow:hidden;box-shadow:0 8px 30px #143e4906}
.auth-intro{background:#173640;padding:56px 48px;display:flex;flex-direction:column;justify-content:center}
.auth-intro .eyebrow{color:#8dbbad}
.auth-intro h1{font-size:43px;font-weight:600;line-height:1.16;color:#f3f9f6;letter-spacing:-1.4px;margin:21px 0}
.auth-intro>p{font-size:15px;color:#a1bcc5;max-width:380px;line-height:1.9}
.auth-features{display:grid;gap:17px;margin:28px 0 36px;color:#b7cfd3;font-size:12px}
.auth-features>span{display:flex;align-items:center;gap:13px}
.auth-features i{color:#86b8a8;font-style:normal}
.auth-features .ui-icon{width:21px;height:21px}
.intro-note{font-size:10px;color:#7498a5;line-height:1.8;max-width:330px}
.auth-card{border:0;border-radius:0;box-shadow:none;padding:40px 37px}
.auth-card h2{font-size:24px;font-weight:600;margin-bottom:6px;letter-spacing:-.5px}
.auth-card form>.muted{margin-bottom:24px}
.auth-card #offline-hint{font-size:11px;line-height:1.8;margin:19px 0}
.tabs{border-bottom:1px solid var(--line);margin-bottom:29px;gap:5px}
.tabs button{border-radius:0;background:transparent;color:#91a1a9;font-size:11px;padding:11px 5px;border:0;border-bottom:2px solid transparent;white-space:normal}
.tabs button:hover:not(:disabled){background:transparent;color:var(--accent)}
.tabs button.active{color:var(--accent);border-bottom-color:var(--accent)}
#d3-auth-help{border-top:1px solid var(--line);padding-top:15px;margin-top:25px}
#d3-auth-help summary{font-size:11px}
#d3-auth-help h3{font-size:14px}
.locked .topbar,.printing .topbar{margin-left:0}
.locked .topbar{padding-left:max(24px,calc((100vw - 1140px)/2));padding-right:max(24px,calc((100vw - 1140px)/2))}
.locked .auth-brand{color:#254955;font-size:21px}
.locked .auth-brand small{color:#92a8af}
.locked .auth-brand .brand-symbol{background:#eaf4ef;border-color:#d3e7de;color:#3c8b74}
.locked .app-main,.printing .app-main{margin-left:auto;width:100%;max-width:1400px}
.locked .app-footer,.printing .app-footer{margin-left:0}
.locked #notice,.locked #update-banner,.printing #notice,.printing #update-banner{margin-left:32px}
.invoice{background:#fff;padding:30px 36px;max-width:1000px;margin:25px auto;border:1px solid var(--line);border-radius:8px}
.invoice h1{font-size:27px}
.invoice .invoice-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:20px 0 25px;font-size:13px}
.invoice p{font-size:13px}
.print-toolbar{display:flex;gap:12px;justify-content:flex-end}
.invoice .total{font-size:21px}
.invoice-acceptance{font-size:12px;padding:9px 12px;border:1px solid #ccd8d1;border-radius:6px}
.invoice-acceptance.pending{border-color:#b48a28;color:#74520d}
.spin{animation:spin 1.3s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@media(min-width:1900px){.app-main{max-width:none;padding-right:48px;padding-left:48px}}
@media(max-width:1250px){
  :root{--sidebar-width:220px}.sidebar{padding-left:14px;padding-right:14px}.brand{font-size:20px}.brand small{font-size:9px}
  .topbar{padding-left:26px;padding-right:26px}.app-main{padding:26px}.metrics{gap:14px}.metric{padding:19px 17px}.metric strong{font-size:25px}.user-profile>div{display:none}.user-profile{padding-left:13px}.top-actions{gap:12px}
  .store-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pos-layout{grid-template-columns:1fr}.pos-layout>.card:last-child{position:static}
  #notice,#update-banner{margin-left:calc(var(--sidebar-width) + 26px);margin-right:26px}.auth-intro{padding:40px 34px}
}
@media(max-width:1050px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-heading{align-items:flex-start;gap:14px}.heading-actions{gap:7px}.heading-actions button{font-size:11px;padding:9px 12px}
  .breadcrumb>span:first-child{max-width:155px}.grid-two{gap:16px}.card{padding:21px}.store-card{padding:20px}.store-card .split{flex-wrap:wrap}
}
@media(max-width:800px){
  :root{--sidebar-width:248px}.mobile-only{display:inline-flex}.sidebar{transform:translateX(-100%);transition:transform .2s ease;width:min(290px,calc(100vw - 46px));padding:25px 18px;box-shadow:8px 0 32px #102b3526}
  .sidebar-open .sidebar{transform:translateX(0)}.sidebar-open{overflow:hidden}.sidebar .brand{font-size:22px}
  .sidebar .icon-button{color:#b1cad2}.sidebar .icon-button:hover{background:#244550}
  .sidebar-backdrop{position:fixed;inset:0;z-index:40;width:100%;height:100%;min-height:100%;border:0;border-radius:0;background:#0d263b80;padding:0;cursor:pointer}
  .sidebar-backdrop:hover:not(:disabled){background:#0d263b80}
  .topbar,.app-footer{margin-left:0}.topbar{padding:13px 19px;gap:12px;min-height:68px}.app-main{margin-left:0;width:100%;padding:25px 20px}
  #notice,#update-banner{margin-left:20px;margin-right:20px}.breadcrumb{gap:9px;flex:1}.breadcrumb>span:first-child{max-width:140px}.top-actions{gap:10px}
  .workspace-heading{margin-bottom:24px}.app-footer{padding-left:20px;padding-right:20px}
  .auth-layout{margin:20px auto;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr)}.auth-intro{padding:34px 26px}.auth-intro h1{font-size:33px}.auth-intro>p{font-size:13px}.auth-card{padding:31px 26px}.auth-features{font-size:11px}
}
@media(max-width:600px){
  .topbar{padding:12px 14px;gap:9px}.breadcrumb>span:first-child,.breadcrumb-separator,.user-profile{display:none}.breadcrumb strong{font-size:11px}.top-actions{gap:7px}
  #top-cash,#install-button{width:34px;height:34px;min-height:34px;padding:8px}.top-actions .button-label{display:none}
  #connection-state{font-size:9px}.top-actions>.icon-button{width:30px;height:32px;min-height:32px;padding:6px}.top-actions>.icon-button .ui-icon{width:18px;height:18px}
  .app-main{padding:23px 16px 32px}.workspace-heading{flex-direction:column;gap:17px}.heading-actions{width:100%;justify-content:flex-start}.heading-actions button{font-size:12px}
  h1{font-size:27px}.workspace-heading .muted{font-size:11px}.metrics{gap:12px;margin-bottom:19px}.metric{padding:17px 15px}.metric-heading>span:first-child{font-size:10px}.metric-icon{width:24px;height:24px}.metric-icon .ui-icon{width:15px;height:15px}.metric strong{font-size:23px;margin-top:12px;letter-spacing:-.6px}.metric small{font-size:9px}
  .card{padding:20px 17px;border-radius:9px}.grid-two,.store-grid{grid-template-columns:1fr;gap:15px}.store-card .split{flex-wrap:nowrap}
  .toolbar{gap:7px}.toolbar input[type=search]{min-width:0;width:100%}.toolbar input[type=date]{max-width:calc(50% - 4px);font-size:11px;min-width:0}.toolbar select{max-width:100%;min-width:0}
  .form-grid{grid-template-columns:1fr;gap:0}.payment-grid{gap:8px}.payment-grid input{padding:9px 7px;font-size:12px}.payment-grid label{font-size:10px}
  .product-grid{gap:9px}.product-button{padding:14px 12px;min-height:120px;font-size:12px}.product-button strong{font-size:15px}
  .total{font-size:20px}.section-head{gap:10px}.section-head .badge{white-space:normal;font-size:9px}.section-head button{font-size:11px}
  .invoice{padding:18px 15px}.print-toolbar{justify-content:flex-start;flex-wrap:wrap}
  .app-footer{font-size:9px;padding:18px 16px;gap:8px}.auth-layout{display:block;margin:4px 0 12px;overflow:hidden}.auth-intro{padding:28px 25px}.auth-intro h1{font-size:33px;margin:16px 0}.auth-intro>p{max-width:none;margin-bottom:0}.auth-features{display:none}.intro-note{margin-top:21px}
  .auth-card{padding:27px 25px}.auth-card h2{font-size:23px}.locked .topbar{padding-left:18px;padding-right:18px}.locked .auth-brand{font-size:20px}.locked .auth-brand .brand-symbol{width:36px;height:39px}.locked .auth-brand small{font-size:8px}
  #notice,#update-banner,.locked #notice,.locked #update-banner{margin-left:16px;margin-right:16px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sale-saved{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:18px;border-left:4px solid var(--accent,#168a79)}.sale-saved .muted{flex:1}
@media print{
  @page{size:A4;margin:14mm}
  html,body{background:#fff!important;color:#000}
  .topbar,.sidebar,.sidebar-backdrop,#notice,#update-banner,.app-footer,#workspace,#auth-screen,.print-toolbar,#d3-backup-indicator{display:none!important}
  .app-main{padding:0!important;margin:0!important;width:100%!important;max-width:none!important;min-height:0}
  #print-preview{display:block!important}.invoice{padding:0;margin:0;max-width:none;border:0;border-radius:0}
  .invoice th{background:#f0f0f0!important;print-color-adjust:exact}.invoice td{padding:9px 8px}.invoice td.numeric{white-space:nowrap}.invoice h1{font-size:23px;overflow-wrap:anywhere}.invoice tr{break-inside:avoid}.invoice thead{display:table-header-group}.invoice .invoice-meta{font-size:12px}.invoice p{font-size:12px}
  body.locked #print-preview{display:none!important}
}

/* Compact cash workspace: the receipt scrolls inside the panel; payment stays
   visible. The catalog and receipt do not rebuild when one item is added. */
.cash-workspace .app-main{padding-top:14px;padding-bottom:12px}
.cash-workspace .workspace-heading{margin-bottom:12px}
.cash-workspace .workspace-heading .muted{margin-top:3px}
.cash-workspace .workspace-heading h1{font-size:26px}
.cash-workspace .workspace-heading .eyebrow{display:none}
.cash-workspace .workspace-heading h1{font-size:22px;line-height:1.2;margin:0}
.cash-workspace .workspace-heading .muted{font-size:11px}
.cash-workspace .app-footer{display:none}
.pos-workspace{gap:16px;grid-template-columns:minmax(300px,1fr) minmax(390px,450px)}
.pos-workspace>.card{padding:18px;min-width:0}
.pos-catalog{display:flex;flex-direction:column;gap:12px}
.pos-catalog .section-head,.pos-checkout>.section-head{margin:0}
.pos-catalog h2,.pos-checkout h2{font-size:17px;margin:0}
#cash-search{margin:0;min-height:44px;flex:none}
.pos-product-list{min-height:100px;overflow:auto;scrollbar-width:thin;display:flex;flex-direction:column;gap:6px;flex:1}
.pos-product-row{display:grid;grid-template-columns:minmax(0,1fr) auto 20px;align-items:center;gap:12px;min-height:64px;padding:10px 12px;flex:none;border-radius:7px}
.pos-product-row .pos-product-copy{display:flex;min-width:0;flex-direction:column;gap:3px}
.pos-product-row .pos-product-copy strong{font-size:13px;line-height:1.4;margin:0;color:var(--ink);font-weight:600}
.pos-product-row small{font-size:11px;line-height:1.4}
.pos-product-price{font-size:15px;font-weight:650;white-space:nowrap;color:var(--accent)}
.pos-product-row>.ui-icon{color:#75a696;width:17px;height:17px}
.pos-catalog-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;font-size:12px}
.pos-checkout{display:flex;flex-direction:column;gap:10px;margin:0}
.pos-workspace>.pos-checkout{position:static}
.pos-cart-scroll{flex:1;min-height:80px;overflow:auto}
.pos-cart-scroll table thead{position:sticky;top:0;background:#fff;z-index:1}
#sale-form .pos-cart-scroll table td{padding:8px 4px}
#sale-form .pos-cart-scroll td:first-child strong{font-size:12px;font-weight:600;line-height:1.35;display:block}
.pos-line-code{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.pos-cart-empty{flex:1;min-height:90px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--muted);text-align:center;font-size:12px}
.pos-cart-empty[hidden],.pos-cart-scroll[hidden]{display:none}
.pos-cart-empty>.ui-icon{width:26px;height:26px}
.pos-cart-empty strong{color:var(--ink)}
.pos-payment-panel{flex:none;border-top:1px solid var(--line);padding-top:8px}
.pos-sale-options{display:grid;grid-template-columns:150px 1fr;align-items:center;gap:12px}
.pos-sale-options label{margin:0;font-size:11px;gap:3px}
.pos-sale-options label:first-child{display:flex;align-items:center;gap:8px;white-space:nowrap}
.pos-sale-options input:not([type=checkbox]){min-height:31px;height:31px;padding:5px 8px}
.pos-sale-options label:first-child input{width:76px}
.pos-sale-options .pos-fiscal{display:flex;align-items:center;gap:6px;margin-bottom:5px;font-size:11px}
.pos-workspace .total{margin:4px 0;padding:4px 0;min-height:36px;border:0;font-size:15px}
.pos-workspace .total strong{font-size:25px}
.pos-payment-methods{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 7px}
.pos-payment-methods button{min-height:34px;padding:6px 10px;font-size:12px}
.pos-payment-methods button.selected{background:#e7f4ef;color:#136a55;border-color:#6bb39d;box-shadow:inset 0 0 0 1px #6bb39d}
.pos-workspace .payment-grid{gap:7px}
.pos-workspace .payment-grid label{margin:0;font-size:10px;gap:4px}
.pos-workspace .payment-grid input{min-height:34px;padding:6px 8px;font-size:13px}
.pos-settlement{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:32px;margin:4px 0}
.pos-settlement #payment-status{font-size:10px;max-width:70%;line-height:1.4}
.pos-settlement>span:last-child{white-space:nowrap;font-size:11px;color:var(--muted)}
.pos-settlement strong{font-size:15px;color:var(--ink)}
.pos-submit{display:flex;justify-content:space-between;margin:0;min-height:46px;font-size:15px}
.pos-submit-shortcut{font-size:10px;font-weight:400;opacity:.8}
@media(min-width:1100px){
  body.cash-workspace{height:100dvh;overflow:hidden;display:flex;flex-direction:column}
  .cash-workspace .topbar{flex:none}
  .cash-workspace #notice{flex:none;margin-top:8px;padding-top:7px;padding-bottom:7px}
  .cash-workspace .app-main{flex:1;min-height:0;padding-top:12px;padding-bottom:12px}
  .cash-workspace #workspace{height:100%;min-height:0;display:flex;flex-direction:column}
  .cash-workspace .workspace-heading,.cash-workspace #queue-warning{flex:none}
  .cash-workspace #page-content{min-height:0;flex:1;display:flex;flex-direction:column}
  .cash-workspace #page-content>.sale-saved{padding:10px 15px;margin-bottom:8px}
  .pos-workspace{height:auto;flex:1;min-height:0}
  .pos-workspace>.card{height:100%;overflow:hidden}
}
@media(max-width:1099px){
  .pos-workspace{grid-template-columns:1fr}
  .pos-product-list{max-height:310px}
  .pos-cart-scroll{max-height:280px}
  .pos-checkout{min-height:430px}
}
