/* EzBill POS - computer layout. Everything here applies only when <html> has the class "dk" (set by desktop.js on a wide screen).
   Phones and the "small screen" mode never get this class, so the mobile design is untouched. To switch the computer layout off completely: remove the <link> to this file in index.html. */
html.dk #nav{display:none!important}
html.dk body{max-width:none;margin:0;padding-left:252px;background:var(--bg)}
html.dk #app{max-width:1280px;margin:0 auto;padding:28px 36px 70px;min-height:100vh}
html.dk .top h1,html.dk h1{font-size:24px}
html.dk .grid2{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
html.dk .tiles{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
html.dk .card{box-shadow:0 1px 3px rgba(15,60,55,.06)}
html.dk button,html.dk .tile,html.dk .chip{cursor:pointer;transition:filter .12s,transform .12s,box-shadow .12s}
html.dk button:not(:disabled):hover,html.dk .tile:hover,html.dk .chip:hover{filter:brightness(1.05);box-shadow:0 3px 10px rgba(15,60,55,.14)}
html.dk button:not(:disabled):active{transform:scale(.985)}
/* popups on the computer: a fixed-size window inside the content area (right of the side menu) */
html.dk .sheet-bg{align-items:center;background:rgba(20,30,30,.45)}
html.dk.dkon .sheet-bg{left:252px}
html.dk .sheet{width:min(680px,92%);max-height:86vh;border-radius:18px;padding:26px 28px;border:1px solid var(--bd);box-shadow:0 24px 70px rgba(0,0,0,.35)}
html.dk .sheet h2,html.dk .sheet h3{font-weight:800;color:var(--tx)}
html.dk .sheet label{font-size:14px;font-weight:700;color:var(--tx);margin-top:14px}
html.dk .sheet input,html.dk .sheet select,html.dk .sheet textarea{font-size:16px;font-weight:700;color:var(--tx);padding:13px 14px;border:2px solid #a9bcb9;border-radius:10px;background:#fff;box-shadow:inset 0 2px 4px rgba(20,60,55,.10)}
html.dk .sheet input:focus,html.dk .sheet select:focus,html.dk .sheet textarea:focus{outline:0;border-color:var(--t1);box-shadow:inset 0 2px 4px rgba(20,60,55,.10),0 0 0 3px color-mix(in srgb,var(--t3) 35%,transparent)}
html.dk .sheet input::placeholder,html.dk .sheet textarea::placeholder{font-weight:500;color:#7d8f95}
html.dk .sheet button{font-size:15px;font-weight:600}
html.dk .stb{left:calc(50% + 126px);bottom:22px;width:min(760px,calc(100vw - 330px))}
html.dk .toast{left:calc(50% + 126px)}
/* the side menu */
#dsb{display:none}
html.dk.dkon #dsb{display:flex}
#dsb{position:fixed;left:0;top:0;bottom:0;width:252px;z-index:8;flex-direction:column;gap:8px;padding:18px 14px;background:linear-gradient(180deg,#fffbe6,#fdf3c4);color:#4a3b05;border-right:1px solid #ecdfa0;overflow:auto}
#dsb .dlg{display:flex;align-items:center;gap:11px;padding:4px 6px 14px;border-bottom:1px solid #e6d78f;margin-bottom:8px}
#dsb .dlg img{width:42px;height:42px;border-radius:11px;flex:none}
#dsb .dlg b{display:block;font-size:15px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:104px;color:#3b2f00}
#dsb .dlg span{font-size:11.5px;color:#7a6a22}
/* every side-menu button is a raised green button (same as the app); the open page is darker and looks pressed in */
#dsb .di,#dsb .dw button,#dsb .dsell,#dsb .dkr{border:1px solid var(--t1);background:linear-gradient(180deg,var(--t3),var(--t2) 55%,var(--t1));color:#fff;box-shadow:inset 0 3px 5px rgba(255,255,255,.45),inset 0 -6px 9px color-mix(in srgb,var(--tsh) 28%,transparent);filter:none}
#dsb .di{display:flex;align-items:center;gap:13px;width:100%;padding:12px 14px;border-radius:13px;font:700 14.5px/1.2 inherit;text-align:left}
#dsb .di svg{flex:none}
#dsb .di kbd{margin-left:auto;font:700 10.5px/1 inherit;opacity:.8;border:1px solid currentColor;border-radius:5px;padding:2px 5px}
#dsb .di:hover,#dsb .dw button:hover,#dsb .dsell:hover,#dsb .dkr:hover{filter:brightness(1.06);box-shadow:inset 0 3px 5px rgba(255,255,255,.45),inset 0 -6px 9px color-mix(in srgb,var(--tsh) 28%,transparent)}
#dsb .di:active,#dsb .dw button:active,#dsb .dsell:active,#dsb .dkr:active,#dsb .di.on{background:linear-gradient(180deg,var(--t1),var(--t2) 60%,var(--t3));box-shadow:inset 0 5px 10px color-mix(in srgb,var(--tsh) 55%,transparent),inset 0 -2px 4px rgba(255,255,255,.2)}
#dsb .di:active,#dsb .dw button:active,#dsb .dsell:active,#dsb .dkr:active{transform:scale(.96)}
#dsb .di.on{border-color:var(--tsh);font-weight:800}
#dsb .dsell{margin:10px 0 4px;justify-content:center;gap:10px;padding:15px;font-weight:800;font-size:15.5px}
#dsb .dsp{flex:1}
#dsb .dw{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-top:10px;border-top:1px solid #e6d78f}
#dsb .dw button{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 6px;border-radius:12px;font:600 11.5px/1.2 inherit}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #dsb{background:linear-gradient(180deg,#2b2712,#231f0e);color:#f1e6b0;border-color:#40391a}:root:not([data-theme="light"]) #dsb .dlg b{color:#fff3c2}:root:not([data-theme="light"]) #dsb .dlg span{color:#bfae62}}
:root[data-theme="dark"] #dsb{background:linear-gradient(180deg,#2b2712,#231f0e);color:#f1e6b0;border-color:#40391a}:root[data-theme="dark"] #dsb .dlg b{color:#fff3c2}:root[data-theme="dark"] #dsb .dlg span{color:#bfae62}
/* small-screen mode on a computer: a small button brings the computer layout back */
#dkb{display:none}
html.dkc.dkwide #dkb{display:flex}
#dkb{position:fixed;right:14px;top:12px;z-index:40;align-items:center;gap:8px;padding:9px 14px;border-radius:12px;background:#0f766e;color:#fff;font:600 13px/1 inherit;border:0;box-shadow:0 3px 10px rgba(0,0,0,.25)}
html.dk #sl{grid-template-columns:repeat(auto-fill,minmax(176px,1fr));gap:12px}
html.dk #pl,html.dk #cl{display:grid;grid-template-columns:repeat(auto-fill,minmax(430px,1fr));gap:10px;align-items:start}
html.dk #pl .pi,html.dk #cl .pi{margin:0}

/* Computer only: sign in / register / forgot password pages sit in the middle of the screen (no side menu is shown there) */
html.dk.au body{padding-left:0}
html.dk.au #app{max-width:none;min-height:100vh;display:flex;padding:24px}
html.dk.au #app>.card{width:100%;max-width:440px;margin:auto!important;padding:26px 30px}
#dsb .dkr{flex:none;margin-left:auto;width:40px;height:40px;padding:0;border-radius:12px;display:grid;place-items:center}

/* shortcut key labels (small, soft) */
html.dk .dk-k{font:600 10.5px/1 inherit;font-style:normal;opacity:.55;margin-left:9px;padding:2px 5px;border:1px solid currentColor;border-radius:5px;white-space:nowrap;pointer-events:none;letter-spacing:.2px;vertical-align:middle}
html.dk .stat,html.dk .tile,html.dk button.ic{position:relative}
html.dk .stat>.dk-k,html.dk .tile>.dk-k{position:absolute;right:9px;bottom:8px;margin:0}
html.dk button.ic>.dk-k{position:absolute;left:50%;bottom:-7px;transform:translateX(-50%);margin:0;font-size:9px;padding:1px 4px;background:var(--cd);opacity:.8}
html.dk button.w>.dk-k,html.dk button.p>.dk-k{opacity:.7}
html.dk button.p.big>.dk-k{border-color:rgba(255,255,255,.7)}
#dsb .dw .dk-k{position:static;margin:1px 0 0;font-size:9.5px;padding:1px 4px}
#dsb .dw button{position:relative}
#dsb .dw .dkk{grid-column:1/-1;flex-direction:row;justify-content:center;gap:9px;padding:11px 10px;font-size:13.5px}
#dsb .dw .dkk .dk-k{position:static}
/* the Shortcut keys window */
.dkp-l{display:flex;flex-direction:column;gap:6px}
.dkp-h{margin:14px 2px 2px;display:flex;flex-direction:column;gap:2px}.dkp-h b{font-size:16px}.dkp-h span{color:var(--mu);font-size:13px}
html.dk .dkp .dkp-r{max-width:860px}
.dkp-r{display:grid;grid-template-columns:1fr auto auto auto auto;gap:8px;align-items:center;padding:7px 10px;border:1px solid var(--bd);border-radius:10px;background:var(--cd)}
.dkp-n{font-weight:700}.dkp-n i{font-weight:400;color:var(--mu);font-size:12px}
.dkp-k kbd{font:700 12.5px/1 inherit;padding:4px 8px;border:1px solid var(--bd);border-radius:7px;background:var(--pr2);color:var(--pr)}
.dkp-k b{color:#b45309;font-size:13px}.dkp-k em{color:var(--mu);font-size:12.5px}
.dkp-b{padding:6px 11px;font-size:13px}
.dkp-m{min-height:20px;font-size:13.5px;font-weight:700;color:#b45309;margin-bottom:6px}

/* Home and More: the big menu buttons are a little taller on the computer (width stays the same) */
html.dk .grid2>button.stat{min-height:112px;padding:16px 16px;display:flex;flex-direction:column;justify-content:center;gap:7px}
html.dk .grid2>button.stat>span:first-child{font-size:42px;line-height:1}
html.dk .grid2>button.stat>b{font-size:17px;margin-top:0}

/* Computer: the small buttons at the top of pages (refresh, profile, scan, basket, show/hide cost, back) are bigger and easy to click */
html.dk #app button.ic,html.dk #sh button.ic,html.dk #app .top button.xc[aria-label="Back"]{width:52px;height:52px;min-width:52px;padding:0;border-radius:15px;display:grid;place-items:center}
html.dk #app button.ic svg,html.dk #sh button.ic svg{width:27px;height:27px}
html.dk #app .top button.xc[aria-label="Back"] svg{width:26px;height:26px}
html.dk #app .top{gap:12px}
html.dk #app .top .row{gap:14px}

/* camera scan is hidden on computers (switch in the Devices page) */
html.dk.dkcam0 [onclick*="qsell("],html.dk.dkcam0 [onclick*="scanner("],html.dk.dkcam0 [onclick*="imScan("],html.dk.dkcam0 [onclick*="imScanMany("]{display:none!important}
/* device bar: one long raised button in the page header */
html.dk .dkdv{flex:none;display:flex;align-items:center;gap:0;height:52px;padding:0 6px;border-radius:15px;margin:0 14px 0 auto;color:var(--g4);font:inherit;cursor:pointer}
html.dk .dkd-s{display:flex;align-items:center;gap:9px;padding:0 14px;position:relative}
html.dk .dkd-s+.dkd-s{border-left:1px solid var(--g3)}
html.dk .dkd-t{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15;text-align:left}
html.dk .dkd-t small{font-size:11px;color:var(--mu);font-weight:600}
html.dk .dkd-t b{font-size:13.5px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--tx)}
html.dk .dkd-d{width:10px;height:10px;border-radius:50%;background:#9aa9ad;flex:none;box-shadow:inset 0 1px 2px rgba(0,0,0,.25)}
html.dk .dkd-d.on{background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.2)}
html.dk .dkd-none .dkd-t b{color:var(--mu);font-weight:600;max-width:none}
.dkd-r{display:flex;gap:10px;align-items:flex-start;margin:8px 0}.dkd-r .dkd-d{margin-top:5px}

/* Home: New sale is two tiles wide (inside the grid) */
html.dk .grid2>button.dkns{grid-column:span 2;min-height:112px;margin:0!important;width:auto;font-size:22px;border-radius:16px}
html.dk #app button.ic.pweye{width:36px;height:36px;min-width:36px;border-radius:11px}html.dk #app button.pweye svg{width:19px;height:19px}
html.dkhb #dkb{display:none!important}

/* Home: small More button after the last tile */
html.dk button.dkmore{display:flex;align-items:center;gap:6px;width:auto;margin:12px 0 4px;padding:9px 16px 9px 18px;min-height:0;font-size:15px;font-weight:600;border-radius:12px;color:var(--tx)}
html.dk button.dkmore svg{flex:none}
html.dk button.dkmore .dk-k{display:none!important}
/* big buttons: lighter text (600) */
#dsb .di.on,#dsb .di.dsell,#dsb .di.on kbd,#dsb .di.dsell kbd{font-weight:600!important}
html.dk .dkns .tx{font-weight:600!important}
/* shortcut keys: text only, no line around */
html.dk .dk-k,#dsb .di kbd{border:0!important;background:none!important;box-shadow:none!important;padding:0 2px!important;border-radius:0!important}
html.dk button.ic>.dk-k{background:none!important;padding:0!important}
html.dk button.p.big>.dk-k{border:0!important}
/* no shortcut keys on sign in / register */
html.dk.au .dk-k,html.dk.au kbd{display:none!important}
/* shortcut keys: lighter, none on the big New sale button */
html.dk .dk-k{opacity:.38!important}
html.dk button.w>.dk-k,html.dk button.p>.dk-k{opacity:.38!important}
#dsb .di kbd{opacity:.5!important}
.dkp-b.dkp-t{min-width:104px}
/* side menu buttons: a little taller, bigger text and icons */
#dsb .di{padding-top:13.5px;padding-bottom:13.5px;font-size:15.5px!important;gap:10px}
#dsb .di .ic2{--s:27px!important}
#dsb .di.dsell{padding-top:15px;padding-bottom:15px;font-size:16.5px!important}
#dsb .di.dsell .ic2{--s:29px!important}
#dsb .di kbd{font-size:11px!important}
/* INNER PAGES THEME (computer only). Every page except Home, More, New sale and sign in / lock.
   About three quarters of the width, next to the side menu; one look for the top strip, cards, rows, boxes and headings. CSS only. */
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]){--ib:#cfe3de;--ib2:#e3f0ed;--ig:rgba(15,107,92,.08)}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app{max-width:min(75%,960px);margin-left:0;margin-right:auto}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .top{flex-wrap:wrap;row-gap:8px;background:linear-gradient(180deg,#fbfefd,#e6f3ef);border:1px solid #c9e2dc;border-radius:18px;padding:10px 14px;margin-bottom:16px;box-shadow:inset 0 2px 3px #fff,inset 0 -3px 5px rgba(15,107,92,.1),0 2px 8px rgba(15,107,92,.08)}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .top h1{color:#0c3b34;font-weight:700;letter-spacing:-.2px}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .card{border:1px solid var(--ib2);border-radius:18px;box-shadow:0 1px 2px rgba(15,107,92,.06),0 8px 22px var(--ig);padding:16px 18px}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .pi{border:1px solid var(--ib2);border-radius:16px;box-shadow:0 1px 2px rgba(15,107,92,.05);transition:transform .15s,box-shadow .15s,border-color .15s}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .pi:hover{border-color:#9fd3c6;box-shadow:0 6px 18px rgba(15,107,92,.12);transform:translateY(-1px)}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app label{font-weight:600;font-size:13px}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app input:not([type=checkbox]):not([type=radio]),html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app select,html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app textarea{border:1.5px solid var(--ib);border-radius:13px;box-shadow:inset 0 1px 2px rgba(15,107,92,.06);transition:border-color .15s,box-shadow .15s}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app input:focus,html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app select:focus,html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app textarea:focus{outline:0;border-color:#2fa58a;box-shadow:0 0 0 4px rgba(47,165,138,.18)}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app h2,html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app h3{border-left:4px solid #2fa58a;padding-left:10px;margin:18px 0 10px}

html.dk[data-theme="dark"]{--ib:#2e4a45;--ib2:#27403c;--ig:rgba(0,0,0,.25)}
html.dk[data-theme="dark"]:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .top{background:linear-gradient(180deg,#1d3d38,#142b28);border-color:#2a4b45;box-shadow:inset 0 2px 3px rgba(255,255,255,.08),0 2px 8px rgba(0,0,0,.3)}
html.dk[data-theme="dark"]:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .top h1{color:#e8fbf6}
@media (prefers-color-scheme:dark){html.dk:not([data-theme="light"]){--ib:#2e4a45;--ib2:#27403c;--ig:rgba(0,0,0,.25)}
html.dk:not([data-theme="light"]):not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .top{background:linear-gradient(180deg,#1d3d38,#142b28);border-color:#2a4b45;box-shadow:inset 0 2px 3px rgba(255,255,255,.08),0 2px 8px rgba(0,0,0,.3)}
html.dk:not([data-theme="light"]):not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app .top h1{color:#e8fbf6}}
html.dk #app .pi button.ic[onclick*="restockPrompt"]{width:auto!important;min-width:0!important;height:46px;padding:0 20px!important;white-space:nowrap;display:inline-flex;align-items:center}

html.dk .dkdv.dkdc .dkd-t{display:none}html.dk .dkdv.dkdc{padding:0 14px}html.dk .dkdv.dkdh{display:none}html.dk .row>.dkdv{margin:0 10px 0 auto}html.dk .row>.dkdv:not(.dkdh)+*{margin-left:0!important}

/* Computer sign-in / register screen: the full-screen layout is set here (loaded at once), so it never flashes the old small card while showcase.js is still loading */
@media(min-width:900px){
 html.au body{background:radial-gradient(1200px 800px at 18% 12%,#16907f 0,#0d5f55 38%,#073b36 72%,#04221f 100%) fixed}
 html.au .auw{position:fixed!important;inset:0;width:auto!important;margin:0!important;border-radius:0!important;box-shadow:none!important;grid-template-columns:minmax(0,1fr) 480px!important;background:transparent!important;z-index:2}
 html.au .auw>.aub{visibility:hidden}
 html.au .auw{pointer-events:none}html.au .auw>.card{pointer-events:auto}
 html.au .auw>.card{height:100vh;max-height:100vh;overflow-y:auto;display:flex;flex-direction:column;justify-content:safe center;background:var(--card,#fff)!important;box-shadow:-20px 0 60px rgba(0,0,0,.25)!important;padding:44px 48px!important;align-self:stretch!important}
}

/* ready receipt on the computer: receipt on the left, every button on the right, nothing to scroll for */
html.dk .bsa{margin:16px -28px -26px;padding:12px 28px 16px;bottom:-26px}
@media (min-width:1100px){
html.dk .sheet:has(.bsv){width:min(1000px,94%)}
html.dk .bsv{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:24px;align-items:start}
html.dk .bsa{position:sticky;top:0;bottom:auto;margin:0;padding:0;background:none;border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;gap:10px}
html.dk .bsm,html.dk .bsm.xn2{display:flex;flex-direction:column;gap:10px}
html.dk .bsx{display:flex;flex-direction:column;gap:10px;margin:0}
html.dk .bmo{display:none!important}
html.dk .bsm button,html.dk .bsx button{min-height:50px;justify-content:flex-start;padding-left:16px!important}
html.dk #sh .bsa button.bpr{min-height:64px;font-size:19px;justify-content:flex-start;padding-left:16px!important}
html.dk #sh .bsa button.bns{min-height:60px;font-size:18px;margin-top:14px;justify-content:flex-start;padding-left:16px!important}
html.dk .bsr .bsi{max-width:420px;margin:0 auto}
}

/* billing sheet on the computer: items on the left; customer, payment, total and Complete sale on the right, always in sight.
   On a narrow computer window it stays one column with the bar fixed at the bottom, like the phone. */
html.dk #sh .cbr>div[style*="sticky"]{margin:16px -28px -26px!important;padding:12px 28px 16px!important;bottom:-26px!important}
@media (max-width:1279px){html.dk .cbv,html.dk .cbl,html.dk .cbr{display:contents}}
@media (min-width:1280px){
html.dk .sheet:has(.cbv){width:min(1140px,95%)}
html.dk .cbv{display:grid;grid-template-columns:minmax(0,1fr) 480px;gap:22px;align-items:start}
html.dk .cbl{min-width:0}
html.dk .cbr{position:sticky;top:0;min-width:0;border:1px solid var(--bd);border-radius:16px;padding:6px 18px 0;background:var(--bg);box-shadow:0 6px 18px rgba(0,0,0,.06);max-height:calc(86vh - 70px);overflow:auto}
html.dk .cbr .chips{flex-wrap:wrap}
html.dk .cbr>label:first-child,html.dk .cbr>.cbdc:first-child{margin-top:10px}
html.dk #sh .cbr>div[style*="sticky"]{position:sticky!important;bottom:0!important;margin:16px -18px 0!important;padding:14px 18px 16px!important;box-shadow:0 -8px 14px rgba(0,0,0,.06)!important;border:0!important;border-top:1px dashed var(--bd)!important;background:var(--bg)!important}
html.dk .cbr #tt{font-size:30px!important}
html.dk .cbr button[onclick="done()"]{min-height:56px;font-size:16px;white-space:nowrap}
html.dk .cbr div[style*="grid-template-columns:1fr 1.5fr"]{grid-template-columns:auto minmax(0,1fr)!important}
}
/* New sale on a computer: two slim product rows side by side */
html.dk #sl{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
html.dk #sl .tile{min-height:92px;grid-template-columns:72px minmax(0,1fr) auto}
html.dk #sl .tile .em{width:72px;height:72px;font-size:38px}
/* Customer list on a computer: two rows side by side */
html.dk #cl{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch}
/* Low stock on a computer: two rows side by side, Restock as a small square button with a down arrow into a tray */
html.dk #lowl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
html.dk #lowl .lowr{margin:0;min-height:82px;padding:10px 12px;border-radius:15px}
html.dk #lowl .lowr .b.nm{font-size:15px}
html.dk #lowl .lowb{width:58px!important;height:58px;padding:0!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:14px!important;font-size:11px;font-weight:700;color:var(--pr)!important}
html.dk #lowl .lowb svg{display:block}
html.dk #lowl .lowb .dk-k{display:none!important}

/* item note in the open bill (computer): the note sits in a soft box, and the note editor gets the full width with its buttons under it */
html.dk .cln{display:inline-block;max-width:100%;background:var(--pr2);border-radius:8px;padding:3px 9px;margin-top:5px}
html.dk .cne .row{flex-wrap:wrap}html.dk .cne #cni{flex:1 1 100%!important}
/* Settings → Shop features (computer): two cards in a line */
html.dk .fxg{grid-template-columns:repeat(2,minmax(0,1fr))}
/* Deal box in Add/Edit product (computer): items in the deal on the left, products to add on the right */
html.dk .dlg{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}html.dk .dlpk{margin-top:0}html.dk .dlg>div:first-child{border-right:1px solid var(--bd);padding-right:18px}html.dk #dlpl{max-height:330px;overflow-y:auto;padding-right:4px}

/* Narrow side menu (html.dksl, computer only): 84px rail with icons, logo, refresh and a small clock. The round arrow on the edge (or Ctrl+B) switches it. */
#dsbt{display:none}
html.dk.dkon #dsbt{display:grid;position:fixed;z-index:9;top:92px;left:239px;width:26px;height:26px;min-height:0;padding:0;margin:0;border-radius:50%;place-items:center;background:#fff;color:#4a3b05;border:1px solid #e6d78f;box-shadow:0 2px 8px rgba(60,45,0,.18);transition:left .22s ease,transform .22s ease}
html.dk.dkon #dsbt:hover{background:#fffbe6}
html.dk #dsb{transition:width .22s ease,padding .22s ease}
html.dk body{transition:padding-left .22s ease}
html.dk.dksl body{padding-left:84px}
html.dk.dksl.dkon .sheet-bg{left:84px}
html.dk.dksl #dsb{width:84px;padding:16px 12px}
html.dk.dkon.dksl #dsbt{left:71px;transform:rotate(180deg)}
html.dksl #dsb .dlg{flex-direction:column;gap:8px;padding:2px 0 12px}
html.dksl #dsb .dlg>div{display:none}
html.dksl #dsb .dlg .dkr{margin:0;width:38px;height:38px}
html.dksl #dclk{padding:2px 0 6px}
html.dksl #dclk .dct{font-size:17px;letter-spacing:0}
html.dksl #dclk .dca{display:block;margin:3px 0 0;font-size:10.5px}
html.dksl #dclk .dcd{display:none}
html.dksl #dsb .di{justify-content:center;padding:11px 0;gap:0}
html.dksl #dsb .di .dil,html.dksl #dsb .di kbd,html.dksl #dsb .di .dk-k{display:none}
html.dksl #dsb .dsell{padding:14px 0;margin:8px 0 2px}
html.dksl #dsb .dw{grid-template-columns:1fr}
html.dksl #dsb .dw .dkk{gap:0;padding:11px 0}
html.dksl #dsb .dw .dkk span,html.dksl #dsb .dw .dk-k{display:none}
#dstip{position:fixed;z-index:60;transform:translateY(-50%);background:#2b2712;color:#fff;font:700 13px/1 system-ui,sans-serif;padding:8px 11px;border-radius:9px;white-space:nowrap;box-shadow:0 4px 14px rgba(0,0,0,.25);pointer-events:none}
html:not(.dksl) #dstip,html:not(.dk) #dstip{display:none}
@media (prefers-reduced-motion:reduce){html.dk #dsb,html.dk body,html.dk.dkon #dsbt{transition:none}}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #dsbt{background:#2b2712;color:#f1e6b0;border-color:#40391a}}
:root[data-theme="dark"] #dsbt{background:#2b2712;color:#f1e6b0;border-color:#40391a}

/* v591 One header on every page (computer only; the phone is not touched).
   Every page uses the Home header: one row, no box, the same height; title on the left, then on the right the printer,
   the page's own buttons and the cloud (saving) button, always in this order. The header spans the full width like Home;
   the page content below keeps its old width and place. */
html.dk:not(.au) #app{max-width:1280px!important;margin-left:auto!important;margin-right:auto!important}
html.dk:not(.au):not([data-pg="home"]):not([data-pg="more"]):not([data-pg="sell"]):not([data-pg=""]) #app>:not(.top){max-width:min(calc(75% - 18px),888px)}
html.dk:not(.au) #app .top{display:flex;justify-content:flex-start!important;flex-wrap:nowrap!important;align-items:center;gap:12px;min-height:56px;margin:0 0 18px!important;padding:0!important;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important}
html.dk:not(.au) #app .top>.row,html.dk:not(.au) #app .top>.row>span,html.dk:not(.au) #app .top>.row>span>.row,html.dk:not(.au) #app .top>.row>span>span{display:contents}
html.dk:not(.au) #app .top>*,html.dk:not(.au) #app .top>.row>*,html.dk:not(.au) #app .top>.row>span>*,html.dk:not(.au) #app .top>.row>span>.row>*,html.dk:not(.au) #app .top>.row>span>span>*{order:5;flex:none;margin:0!important}
html.dk:not(.au) #app .top button.xc[aria-label="Back"]{order:0}
html.dk:not(.au) #app .top>.row>h1,html.dk:not(.au) #app .top>.g{order:1!important;flex:0 1 auto!important;min-width:0;margin-right:auto!important}
html.dk:not(.au) #app .top>.row>h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:24px;font-weight:800;color:var(--tx)}
html.dk:not(.au) #app .top .dkdv{order:3}
html.dk:not(.au) #app .top>.dkin{order:2;height:52px;border-radius:15px}
html.dk:not(.au) #app .top button.p.ab{height:52px;min-height:52px;border-radius:15px}
html.dk:not(.au) #app .top>div:not(.row):not(.g):not(.oflc){display:flex;gap:12px}
html.dk:not(.au) #app .top .oflc{order:9}
/* the cloud button: same size and look as the printer button */
html.dk #app .top .oflc{height:52px;padding:0 16px 0 14px;gap:9px;border-radius:15px;border:1px solid var(--g3);background:linear-gradient(180deg,var(--g1),var(--g2));box-shadow:inset 0 2px 3px rgba(255,255,255,.9),inset 0 -3px 5px rgba(15,118,110,.12);color:var(--g4)}
html.dk #app .top .oflc .ofi{width:24px;height:24px;flex:none}
html.dk #app .top .oflc .oft{display:flex;flex-direction:column;align-items:flex-start;line-height:1.15}
html.dk #app .top .oflc .oft small{font-size:11px;font-weight:600;color:var(--mu)}
html.dk #app .top .oflc .oft b{font-size:13.5px;font-weight:700;color:var(--tx);max-width:170px;overflow:hidden;text-overflow:ellipsis}
html.dk #app .top .oflc.ofl-on .ofi,html.dk #app .top .oflc.ofl-ok .ofi{color:#16a34a}
html.dk #app .top .oflc.ofl-syn .ofi{color:#1d5fb3}
html.dk #app .top .oflc.ofl-off .ofi{color:#d97706}
html.dk #app .top .oflc.ofl-old .ofi,html.dk #app .top .oflc.ofl-stop .ofi{color:#dc2626}
html.dk #app .top .oflc.ofl-old .oft b,html.dk #app .top .oflc.ofl-stop .oft b{color:#b42323}
html.dk #app .top .oflc.ofl-off .oft b{color:#a75b00}
html.dk #app .top .oflc:hover{filter:brightness(1.02)}
html.dk #app .top .oflc.ofcm .oft{display:none}html.dk #app .top .oflc.ofcm{padding:0 14px}
:root[data-theme="dark"] #app .top .oflc{background:linear-gradient(180deg,var(--d1),var(--d2));border-color:var(--d3);color:var(--d4);box-shadow:inset 0 2px 3px rgba(255,255,255,.08),inset 0 -3px 5px rgba(0,0,0,.2)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) #app .top .oflc{background:linear-gradient(180deg,var(--d1),var(--d2));border-color:var(--d3);color:var(--d4);box-shadow:inset 0 2px 3px rgba(255,255,255,.08),inset 0 -3px 5px rgba(0,0,0,.2)}}
html.dk:not(.au) #app .top>.g h1,html.dk:not(.au) #app .top>.g .mu{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
