:root{
  color-scheme:light;
  --green:#2563eb; --green-d:#1e40af; --green-l:#3b82f6;
  --bg:#ffffff; --text:#142033; --muted:#5d687b; --line:#cfd8e5; --field:#ffffff;
  --err:#c62828;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){color-scheme:dark;--bg:#101827;--text:#e8effa;--muted:#a3b2ca;--line:#2c3b54;--field:#172338;--err:#ff8a80}
}
:root[data-theme="dark"]{color-scheme:dark;--bg:#101827;--text:#e8effa;--muted:#a3b2ca;--line:#2c3b54;--field:#172338;--err:#ff8a80}
*,*::before,*::after{box-sizing:inherit}
html,body{height:100%;margin:0}
html{scroll-padding-top:env(safe-area-inset-top,0px)}
body{background:var(--bg);color:var(--text);font-family:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overflow:hidden}

/* Splash */
#splash{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  background:radial-gradient(120% 80% at 50% 30%,var(--green-l),var(--green) 55%,var(--green-d));
  color:#fff;z-index:10;transition:opacity .5s ease,visibility .5s}
#splash.hide{opacity:0;visibility:hidden}
.brand{display:flex;align-items:center;gap:14px;animation:pop .7s cubic-bezier(.2,.8,.2,1) both}
.mark{width:68px;height:68px;border-radius:16px;background:#fff;display:grid;place-items:center;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.mark svg{width:40px;height:40px}
.brand-name{font-size:44px;font-weight:800;letter-spacing:-1px;line-height:1;text-shadow:0 2px 8px rgba(0,0,0,.2)}
.brand-name span{font-weight:500;opacity:.92}
@keyframes pop{from{opacity:0;transform:scale(.88)}to{opacity:1;transform:none}}
.loader{width:120px;height:4px;border-radius:4px;background:rgba(255,255,255,.3);margin-top:36px;overflow:hidden}
.loader i{display:block;height:100%;width:0;background:#fff;border-radius:4px;animation:load 4s linear forwards}
@keyframes load{to{width:100%}}
.ver{position:absolute;bottom:calc(28px + env(safe-area-inset-bottom,0px));font-size:15px;font-weight:600;opacity:.85}

/* Login */
#login{position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;overflow-y:auto;
  padding:calc(28px + env(safe-area-inset-top,0px)) 24px calc(24px + env(safe-area-inset-bottom,0px));
  background:var(--bg);opacity:0;visibility:hidden;transition:opacity .5s ease}
#login.show{opacity:1;visibility:visible}
.wrap{width:100%;max-width:420px;flex:1;display:flex;flex-direction:column}
h1{font-size:22px;letter-spacing:.5px;text-align:center;margin:8px 0 14px;font-weight:800}
.sub{text-align:center;color:var(--text);margin:0 0 28px;line-height:1.45;font-size:16px}
label{display:block;font-size:15px;font-weight:600;color:var(--muted);margin:0 0 8px 2px}
.field{position:relative;margin-bottom:20px}
input{width:100%;height:52px;border:1.5px solid var(--line);border-radius:26px;background:var(--field);color:var(--text);
  padding:0 20px;font:inherit;font-size:16px;outline:none;transition:border-color .15s,box-shadow .15s}
input::placeholder{color:var(--muted)}
input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(37,99,235,.2)}
input.bad{border-color:var(--err)}
.eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;background:none;color:var(--text);cursor:pointer;border-radius:50%;display:grid;place-items:center}
.eye:focus-visible,.link:focus-visible,.btn:focus-visible,.g:focus-visible{outline:3px solid var(--green);outline-offset:2px}
#pw{padding-right:56px}
.err{color:var(--err);font-size:14px;margin:-12px 0 16px 6px;min-height:0}
.row{text-align:right;margin:-6px 0 22px}
.link{color:var(--green);font-weight:600;text-decoration:none;background:none;border:0;font:inherit;font-weight:600;cursor:pointer;padding:2px}
.btn{width:100%;height:54px;border:0;border-radius:27px;background:var(--green);color:#fff;font:inherit;font-size:16px;font-weight:800;letter-spacing:2px;cursor:pointer;
  box-shadow:0 6px 16px rgba(37,99,235,.35);transition:transform .1s,background .15s}
.btn:hover{background:var(--green-d)}
.btn:active{transform:scale(.98)}
.btn[disabled]{opacity:.7;cursor:progress}
.or{text-align:center;margin:26px 0 14px;font-size:16px}
.g{width:54px;height:54px;border-radius:50%;border:1px solid var(--line);background:#fff;display:grid;place-items:center;margin:0 auto;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.g svg{width:28px;height:28px}
.reg{margin-top:auto;padding-top:32px;text-align:center;font-size:16px}
.toast{position:fixed;left:50%;bottom:calc(24px + env(safe-area-inset-bottom,0px));transform:translate(-50%,20px);background:#142033;color:#fff;padding:12px 18px;border-radius:12px;font-size:14px;opacity:0;pointer-events:none;transition:.25s;max-width:90%;text-align:center;z-index:20}
.toast.on{opacity:1;transform:translate(-50%,0)}
/* App shell + menu samping */
#app{position:fixed;inset:0;display:none;background:var(--bg);z-index:5;flex-direction:column}
#app.on{display:flex}
.top{display:flex;align-items:center;gap:12px;padding:calc(10px + env(safe-area-inset-top,0px)) 14px 10px;background:var(--green);color:#fff}
.top button{width:42px;height:42px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;display:grid;place-items:center;cursor:pointer}
.top b{font-size:18px}
.main{flex:1;display:grid;place-items:center;text-align:center;padding:24px;color:var(--muted)}
.main h2{color:var(--text);margin:0 0 6px;font-size:22px}
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.55);opacity:0;visibility:hidden;transition:.25s;z-index:6}
.scrim.on{opacity:1;visibility:visible}
.drawer{position:fixed;top:0;bottom:0;left:0;width:min(86vw,330px);background:var(--bg);z-index:7;transform:translateX(-100%);transition:transform .28s ease;display:flex;flex-direction:column;box-shadow:4px 0 24px rgba(0,0,0,.25)}
.drawer.on{transform:none}
.dscroll{flex:1;overflow-y:auto;padding:calc(20px + env(safe-area-inset-top,0px)) 16px 12px}
.prof{display:flex;align-items:center;gap:14px;margin-bottom:18px}
.av{width:56px;height:56px;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;font-size:24px;font-weight:800}
.prof b{display:block;font-size:19px}.prof span{color:var(--muted)}
.chip{display:flex;align-items:center;justify-content:space-between;width:100%;border:0;border-radius:14px;padding:15px 16px;font:inherit;font-size:16px;font-weight:600;cursor:pointer;margin-bottom:12px;color:var(--text);background:rgba(37,99,235,.14)}
.upd{display:flex;align-items:center;justify-content:space-between;color:var(--muted);margin:6px 2px 14px;font-size:15px}
.upd button{border:0;background:none;color:var(--green);cursor:pointer;padding:6px}
.menu{list-style:none;margin:0;padding:0}
.menu li.sep{height:1px;background:var(--line);margin:10px 0}
.menu button{display:flex;align-items:center;gap:18px;width:100%;border:0;background:none;color:var(--text);font:inherit;font-size:16px;font-weight:600;padding:14px 8px;cursor:pointer;text-align:left;border-radius:10px}
.menu button:hover,.menu button.act{background:rgba(37,99,235,.12)}
.menu svg{width:24px;height:24px;flex:none;stroke:var(--green);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.menu button:focus-visible,.chip:focus-visible,.top button:focus-visible{outline:3px solid var(--green);outline-offset:2px}
.dfoot{padding:10px 16px calc(14px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--line)}
.out{width:100%;height:46px;border-radius:23px;border:1.5px solid var(--green);background:none;color:var(--green);font:inherit;font-weight:700;cursor:pointer}
#app>.top{display:none}
.view{flex:1;display:flex;flex-direction:column;min-height:0;padding-top:env(safe-area-inset-top,0px)}
.hd{display:flex;align-items:center;gap:10px;padding:10px 12px;box-shadow:0 2px 6px rgba(0,0,0,.08)}
.hd h2{margin:0;font-size:20px;flex:1;font-weight:700}
.hd.c h2{text-align:center;color:var(--green);letter-spacing:.5px}
.ib{min-width:42px;height:42px;border:0;background:none;color:var(--green);display:grid;place-items:center;cursor:pointer;border-radius:12px;font:inherit;font-weight:800;font-size:15px;padding:0 4px}
.ib svg{width:26px;height:26px}
.pill{border:0;border-radius:22px;background:#fbaf17;color:#142033;font:inherit;font-weight:700;padding:10px 16px;cursor:pointer}
.star{width:44px;height:44px;border-radius:50%;background:var(--green);color:#fff;border:0;display:grid;place-items:center;cursor:pointer}
.tools{display:flex;align-items:center;gap:4px;padding:8px 10px;overflow-x:auto}
.sbox{flex:1;min-width:130px;height:44px;border:1.5px solid var(--line);border-radius:22px;padding:0 16px;font:inherit;background:var(--field);color:var(--text)}
.chips{display:flex;gap:10px;padding:8px 12px;overflow-x:auto}
.chp{border:1.5px solid var(--line);background:rgba(127,127,127,.1);color:var(--text);border-radius:22px;padding:9px 20px;font:inherit;font-weight:600;cursor:pointer;white-space:nowrap}
.chp.on{background:rgba(37,99,235,.16);border-color:var(--green);color:var(--green)}
.lst{flex:1;overflow-y:auto;padding:4px 14px}
.it{display:flex;align-items:center;gap:16px;width:100%;border:0;background:none;color:var(--text);font:inherit;text-align:left;padding:10px 0;cursor:pointer}
.it .th{width:56px;height:56px;border-radius:10px;background:rgba(127,127,127,.14);color:var(--muted);display:grid;place-items:center;font-size:22px;font-weight:600;flex:none}
.it b{display:block;font-size:17px;font-weight:600}
.it small{color:var(--muted);font-size:15px}
.it.off{opacity:.45}
.it.new .th{color:var(--green);font-size:30px}
.bdg{margin-left:auto;background:#b71c1c;color:#fff;border-radius:8px;min-width:34px;height:34px;display:grid;place-items:center;font-weight:700;flex:none}
.bar{display:flex;gap:10px;padding:10px 14px calc(12px + env(safe-area-inset-bottom,0px))}
.go{flex:1;height:54px;border:0;border-radius:27px;background:var(--green);color:#fff;font:inherit;font-size:16px;font-weight:700;display:flex;align-items:center;justify-content:space-between;padding:0 24px;cursor:pointer}
.go big{font-size:30px;font-weight:700;margin-right:8px}
.usr{width:54px;height:54px;border-radius:14px;border:1.5px solid var(--green);background:none;color:var(--green);display:grid;place-items:center;cursor:pointer}
.mrow{display:flex;align-items:center;gap:22px;width:calc(100% - 28px);margin:0 0 0 14px;border:0;border-bottom:1px solid var(--line);background:none;color:var(--text);font:inherit;font-size:17px;font-weight:600;padding:18px 0;cursor:pointer;text-align:left}
.mrow svg{width:28px;height:28px;color:var(--green);flex:none}
.empty{padding:40px 20px;text-align:center;color:var(--muted)}
.mrow .bd{margin-left:auto;background:#fbaf17;color:#142033;border-radius:8px;padding:6px 16px;font-size:16px;font-weight:700}
.mrow .chv{margin-left:auto;width:24px;height:24px;color:var(--text)}
.upd2{font-size:13px;color:var(--muted);display:flex;align-items:center;gap:6px;line-height:1.3}
.upd2 svg{width:34px;height:34px;color:var(--green)}
.pf{display:flex;align-items:center;gap:16px;padding:16px 14px}
.pf .lg{width:76px;height:76px;border-radius:16px;background:var(--green);display:grid;place-items:center;position:relative;color:#fff;flex:none}
.pf .lg svg{width:44px;height:44px}
.pf .lg i{position:absolute;top:4px;left:8px;background:#fbaf17;color:#142033;border-radius:4px;font-size:9px;font-weight:800;font-style:normal;padding:1px 6px}
.pf b{display:block;font-size:20px;color:var(--muted)}.pf span{color:var(--muted);font-size:18px}
.bi{display:flex;gap:16px;padding:10px 0 12px;align-items:flex-start;cursor:pointer}
.bi .th{width:56px;height:56px;border-radius:10px;background:rgba(127,127,127,.14);color:var(--muted);display:grid;place-items:center;font-size:22px;font-weight:600;flex:none}
.bi .mid{flex:1;min-width:0}.bi b{display:block;font-size:17px;font-weight:600}.bi small{color:var(--muted);font-size:17px;display:block;margin-top:4px}
.bi .rt{text-align:right;font-size:17px;flex:none}.bi .rt .z{color:#c62828;font-weight:600}.bi .rt .ok{color:var(--green);font-weight:600}.bi .rt span{display:block;margin-top:4px;color:var(--text)}
.bi .hb{display:inline-block;margin-top:10px;background:rgba(127,127,127,.14);color:var(--muted);border-radius:8px;padding:7px 14px;font-size:15px}
.fm{padding:8px 20px 16px}
.ph{width:150px;height:150px;margin:8px auto 8px;border-radius:14px;background:rgba(127,127,127,.12);color:var(--muted);display:grid;place-items:center}.ph svg{width:70px;height:70px}
.phb{display:flex;justify-content:center;gap:24px;margin-bottom:8px}
.lb{display:block;font-size:17px;font-weight:600;color:var(--muted);margin:16px 0 8px 4px}
.fi{width:100%;height:52px;border:1.5px solid var(--line);border-radius:26px;padding:0 20px;font:inherit;font-size:17px;background:var(--field);color:var(--text);outline:none}
.fi:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(37,99,235,.2)}.fi:disabled{opacity:.5}.fi.bad{border-color:var(--err)}
.fr{display:flex;align-items:center;gap:10px}
.pi{position:relative}.pi span{position:absolute;left:20px;top:50%;transform:translateY(-50%);font-size:17px}.pi .fi{padding-left:56px}
.ck{display:flex;align-items:center;gap:20px;font-size:18px;font-weight:600;padding:12px 4px}.ck input{width:26px;height:26px;accent-color:var(--green)}
.hint{font-style:italic;color:var(--muted);margin:8px 0 0 4px;display:flex;align-items:center;gap:8px}
.hint button{border:0;background:none;color:var(--green);padding:0;cursor:pointer;display:grid}.hint svg{width:28px;height:28px}
.plus{width:54px;height:54px;border-radius:50%;border:0;background:rgba(37,99,235,.16);color:var(--green);cursor:pointer;display:grid;place-items:center;flex:none}.plus svg{width:26px;height:26px}
.more{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:0;background:none;color:var(--muted);font:inherit;font-weight:600;padding:22px 0 10px;cursor:pointer}
.nt{margin:4px 14px 8px;background:rgba(37,99,235,.16);border-radius:14px;padding:16px;display:flex;gap:16px;align-items:center;line-height:1.4;font-size:17px}
.nt svg{width:44px;height:44px;color:#fbaf17;flex:none}
.kr{padding:14px 0 12px;border-bottom:1.5px solid var(--line)}
.kh{display:flex;justify-content:space-between;align-items:center}.kh b{font-size:22px;font-weight:500}
.del{border:0;background:none;color:#c62828;cursor:pointer;padding:4px;display:grid}.del svg{width:32px;height:32px}
.ks{display:flex;color:var(--muted);font-size:19px;margin-top:8px}.ks span{flex:1}
.mdl{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;z-index:15;padding:20px}
.dlg{background:var(--bg);border-radius:22px;width:100%;max-width:380px;overflow:hidden}
.dlg h3{margin:0;text-align:center;padding:20px;border-bottom:1px solid var(--line);font-size:19px}
.dlg .bd2{padding:18px 22px 22px}.dlg p{margin:0 0 6px;color:var(--muted);line-height:1.45}
.mb{display:flex;gap:16px;margin-top:28px}
.mbtn{flex:1;height:54px;border-radius:27px;border:1px solid var(--line);background:rgba(127,127,127,.12);color:var(--text);font:inherit;font-weight:800;letter-spacing:.5px;cursor:pointer}
.mbtn.pri{background:var(--green);border-color:var(--green);color:#fff}.mbtn.red{background:#c62828;border-color:#c62828;color:#fff}
.cr{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.cr .mid{flex:1;min-width:0}.cr b{display:block;font-weight:600}.cr small{color:var(--muted)}
.qt{display:flex;align-items:center;gap:10px}.qt button{width:34px;height:34px;border-radius:50%;border:1.5px solid var(--green);background:none;color:var(--green);font-size:20px;font-weight:700;cursor:pointer}.qt span{min-width:22px;text-align:center;font-weight:700}.lt{min-width:84px;text-align:right;font-weight:600}
.sm{display:flex;justify-content:space-between;padding:6px 0}.sm.tl{font-size:20px;font-weight:800;color:var(--green)}
.cards{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:8px 0 12px}.cd{background:rgba(37,99,235,.12);border-radius:14px;padding:14px}.cd small{display:block;color:var(--muted)}.cd b{font-size:18px}
.rc{font-family:ui-monospace,monospace;white-space:pre-wrap;font-size:14px;line-height:1.5;max-height:50vh;overflow:auto}
.seg{display:flex;gap:6px;margin:14px;padding:6px;border:1.5px solid var(--line);border-radius:14px;background:rgba(127,127,127,.1)}.seg button{flex:1;height:48px;border:0;border-radius:10px;background:none;color:var(--muted);font:inherit;font-size:17px;font-weight:600;cursor:pointer}.seg button.on{background:var(--bg);color:var(--text);box-shadow:0 1px 4px rgba(0,0,0,.18)}
.inf{background:rgba(127,127,127,.1);padding:16px;color:var(--muted);line-height:1.4}
.sc{margin:16px;background:var(--bg);border-radius:16px;box-shadow:0 2px 10px rgba(0,0,0,.18);padding:18px;border:1px solid var(--line)}.sr{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;gap:10px}
.sb{display:flex;gap:12px;margin-top:14px}.sb button{flex:1;height:50px;border:0;border-radius:25px;font:inherit;font-size:17px;font-weight:600;cursor:pointer;background:#fbaf17;color:#142033}.sb button.g{background:rgba(127,127,127,.18);color:var(--muted)}
.akr{display:flex;align-items:center;gap:14px;padding:9px 0;font-size:17px}.akr input{width:24px;height:24px;accent-color:var(--green)}
.fq{border-bottom:1px solid var(--line);padding:14px 0}.fq summary{font-weight:700;font-size:17px;cursor:pointer}.fq p{color:var(--muted);line-height:1.5;margin:10px 0 0}
.dbox{border:1.5px solid var(--green);border-radius:14px;padding:18px;margin:20px 0;background:rgba(127,127,127,.1)}
.gcard{background:var(--green);color:#fff;border-radius:14px;padding:20px;margin:0 0 18px}.gcard small{display:block;opacity:.92;font-size:16px}.gcard b{font-size:22px}.gc2{display:flex;justify-content:space-between;margin-top:16px;gap:10px}
@media (prefers-reduced-motion:reduce){.brand{animation:none}*{transition-duration:.01s!important}}

.theme-choice{display:flex;justify-content:center;gap:8px;margin:12px 0}
.theme-choice button{min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:12px;background:var(--field);color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.theme-choice button[aria-pressed="true"]{border-color:var(--green);background:var(--green);color:#fff}
.theme-choice button:focus-visible{outline:2px solid var(--green-l);outline-offset:2px}
.login-heading{display:flex;align-items:center;justify-content:space-between;gap:8px}
.login-heading h1{margin:0;text-align:start}
.login-heading .theme-choice,.prof .theme-choice{margin:0;flex-shrink:0}
.prof .theme-choice{margin-inline-start:auto;gap:4px}
.prof .theme-choice button,.login-heading .theme-choice button{padding:0 7px;font-size:12px}
.prof{gap:8px}
.prof > div:nth-child(2){min-width:0;overflow-wrap:anywhere}

.performance-menu{margin:10px 14px;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.performance-menu summary{display:flex;align-items:center;gap:12px;padding:14px;font-weight:700;cursor:pointer}
.performance-menu summary::-webkit-details-marker{display:none}
.performance-menu summary svg{width:22px;height:22px;color:var(--green-l)}
.performance-menu summary::after{content:'+';margin-inline-start:auto;font-size:20px}
.performance-menu[open] summary::after{content:'−'}
.performance-menu .mrow{font-size:14px;padding:13px 0}
.performance-menu .mrow:last-child{border-bottom:0}
.performance-report{padding:12px 14px 24px}
.performance-report h3{font-size:16px;margin:18px 0 10px}
.performance-report section{margin-top:22px}
.performance-filters,.performance-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,145px),1fr));gap:8px}
.performance-filter{display:block;font-size:13px;color:var(--muted);min-width:0}
.performance-filter .fi{display:block;width:100%;margin-top:4px}
.performance-card{display:grid;gap:4px;border:1px solid var(--line);border-radius:12px;padding:12px}
.performance-card span,.performance-change,.performance-note{color:var(--muted);font-size:13px}
.performance-card strong{font-size:20px}
.performance-tabs{display:flex;gap:6px;flex-wrap:wrap}
.performance-tabs button{font-size:12px}
.performance-tabs button[aria-pressed="true"]{background:var(--green);color:#fff}
.performance-chart,.performance-ranking{padding:0;list-style:none}
.performance-chart li{display:grid;grid-template-columns:3em minmax(0,1fr) auto;align-items:center;gap:8px;padding:5px 0;font-size:13px}
.performance-track{display:block;height:8px;border-radius:8px;background:var(--line);overflow:hidden}
.performance-track i{display:block;height:100%;background:var(--green);border-radius:inherit}
.performance-ranking li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.performance-ranking li span{overflow-wrap:anywhere}
.performance-ranking strong{flex:none}

/* Ringkasan penjualan AMKO */
.performance-menu{margin:0;border:0;border-radius:0}
.performance-menu summary{gap:24px;min-height:72px;padding:16px 24px;background:color-mix(in srgb,var(--green) 28%,var(--bg));font-size:18px}
.performance-menu summary::after{content:'⌄'}
.performance-menu[open] summary::after{content:'⌃'}
.performance-menu .mrow{width:100%;margin:0;padding:15px 14px 15px clamp(24px,10vw,76px);background:color-mix(in srgb,var(--green) 7%,var(--bg));font-size:16px}
.performance-report{padding:0 15px 24px}
.performance-daily .performance-filters{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 -15px 15px;padding:8px 15px;background:color-mix(in srgb,var(--green) 8%,var(--bg))}
.performance-staff{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);white-space:nowrap}
.performance-staff svg{width:18px;height:18px;color:var(--green-l)}
.performance-filters .performance-filter{font-size:11px}
.performance-filters .fi{min-height:32px;margin-top:0}
.performance-report > .performance-filter .fi{border-color:var(--green-l);border-radius:10px}
.performance-period{text-align:center;margin:28px 0 14px}
.performance-period h3,.performance-period p{margin:0}
.performance-period p{margin-top:3px;color:var(--muted)}
.performance-metrics{display:grid;grid-template-columns:1fr;gap:8px}
.performance-card{display:flex;align-items:stretch;gap:10px;min-height:63px;padding:0;border-radius:0}
.performance-trend{display:grid;place-items:center;flex:0 0 34px;background:var(--green);color:white}
.performance-trend.is-down{background:#b91c1c}
.performance-trend svg{width:22px;height:22px}
.performance-value{display:flex;flex:1;flex-direction:column;justify-content:center;min-width:0;padding:7px 0}
.performance-value strong{font-size:clamp(20px,5.4vw,29px);line-height:1.15;overflow-wrap:anywhere}
.performance-daily .performance-value{flex-direction:column-reverse}
.performance-change{align-self:flex-start;max-width:34%;padding:6px 7px 0 0;text-align:right;font-size:11px}
.performance-hourly h3{text-align:center;margin-top:22px}
.performance-hourly .performance-tabs{justify-content:center;gap:0;margin:14px 0}
.performance-hourly .performance-tabs button{margin:0;border-radius:0;background:var(--green);color:#fff;border:1px solid var(--bg)}
.performance-hourly .performance-tabs button[aria-pressed="true"]{background:var(--green-d)}
.performance-hourly .performance-tabs button:first-child{border-radius:8px 0 0 8px}
.performance-hourly .performance-tabs button:last-child{border-radius:0 8px 8px 0}
.performance-week-title{font-size:clamp(13px,4vw,20px)}
.performance-weekly > .performance-filter{margin-top:16px}
.performance-weekly > .performance-filter .fi{border-radius:999px;border-color:var(--line)}
.performance-weekly > h3{text-align:center;color:var(--muted);font-size:13px}
.performance-week-card{border:1px solid var(--line);border-radius:9px;padding:0 14px 12px}
.performance-week-card .performance-metrics{gap:0}
.performance-week-card .performance-card{align-items:center;gap:14px;padding:10px 0;border:0;border-bottom:1px solid var(--line)}
.performance-week-card .performance-trend{flex-basis:45px;height:45px;border-radius:10px}
.performance-week-card .performance-value strong{font-size:19px}
.performance-weekly section:last-child{text-align:center}

.performance-daily .performance-card:nth-child(2){order:3}

.finance-heading .hd{gap:6px;min-height:54px}
.finance-heading .hd h2{font-size:clamp(14px,4.2vw,20px);color:var(--green-l)}
.finance-heading .ib{width:36px;min-width:36px;color:var(--green-l)}
.finance-report{padding:16px 15px 28px}
.finance-range{display:flex;align-items:center;gap:8px;position:relative;min-height:44px;padding:0 12px;border:1px solid var(--green-l);border-radius:10px;color:var(--green-l)}
.finance-range svg{width:20px;height:20px;pointer-events:none}
.finance-range select{appearance:none;position:absolute;inset:0;width:100%;padding:0 34px;border:0;border-radius:inherit;background:transparent;color:var(--text);font:inherit;font-weight:600;cursor:pointer}
.finance-range option{background:var(--bg);color:var(--text)}
.finance-range span{margin-left:auto;pointer-events:none}
.finance-check{display:flex;align-items:center;gap:8px;margin:16px 4px 0;line-height:1.25;cursor:pointer}
.finance-check input{width:19px;height:19px;flex:none;accent-color:var(--green)}
.finance-summary{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px;padding:15px;border:1px solid var(--line);border-radius:3px}
.finance-check+.finance-summary{margin-top:22px}
.finance-column{display:grid;grid-template-rows:repeat(3,minmax(43px,auto));gap:5px;min-width:0;font-size:13px}
.finance-column div{display:flex;flex-direction:column;gap:4px}
.finance-column div:first-child{padding-bottom:12px}
.finance-column strong{font-size:clamp(15px,4.3vw,23px);overflow-wrap:anywhere}
.finance-in strong{color:var(--green-l)}
.finance-out{text-align:right}
.finance-out strong{color:var(--err)}
.finance-net{display:grid;place-items:center;gap:2px;margin-top:30px;padding:9px;background:color-mix(in srgb,var(--green) 8%,var(--bg));border-radius:6px;color:var(--muted)}
.finance-net strong{font-size:26px}
.finance-net span{font-size:14px}
.finance-empty{text-align:center;color:var(--muted);margin:46px auto 0;max-width:26em}

/* Laporan penjualan */
.sales-report-home{padding:18px 15px}
.sales-report-search{display:flex;margin-bottom:17px}
.sales-report-search .fi{flex:1;min-width:0;border-radius:9px 0 0 9px}
.sales-report-search .ib{min-width:44px;height:auto;border:1px solid var(--green-l);border-radius:0 9px 9px 0;background:color-mix(in srgb,var(--green) 12%,var(--bg));color:var(--green-l)}
.sales-report-period,.sales-report-day,.sales-report-receipt{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;background:var(--bg);color:var(--text);border:0;font:inherit;text-align:left;cursor:pointer}
.sales-report-period{margin:0 0 14px;border:1px solid var(--line);border-radius:9px;box-shadow:0 1px 4px #0002;font-weight:700}
.sales-report-icon{display:grid;place-items:center;width:33px;height:33px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--green) 12%,var(--bg));color:var(--green-l)}
.sales-report-icon svg,.sales-report-filters svg{width:20px;height:20px}
.sales-next{margin-inline-start:auto;color:var(--green-l);font-size:22px}
.sales-report-title{display:block;font-size:clamp(15px,4.3vw,21px);color:var(--green-l)}
.sales-report-title small{display:block;margin-top:2px;font-size:.76em}
.sales-report-body{padding:0 0 20px}
.sales-report-filters{display:flex;justify-content:space-between;align-items:center;gap:6px;padding:8px 14px;background:color-mix(in srgb,var(--green) 8%,var(--bg));color:var(--muted);font-size:14px}
.sales-report-filters span{display:flex;align-items:center;gap:6px}
.sales-report-filters svg{color:var(--green-l);flex:none}
.sales-report-filters select{max-width:56%;padding:5px;border:0;background:var(--field);color:var(--text);font:inherit}
.sales-report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-width:440px;margin:9px auto 16px;width:82%;overflow:hidden;border-radius:6px}
.sales-report-metrics button{min-height:46px;padding:4px;border:0;background:var(--green);color:#fff;font:inherit;font-size:clamp(10px,3.2vw,13px);cursor:pointer;overflow-wrap:anywhere}
.sales-report-metrics button+button{border-inline-start:1px solid #ffffff80}
.sales-report-metrics button[aria-pressed="true"]{background:var(--green-d)}
.sales-report-metrics strong{display:block}
.sales-chart-wrap{display:grid;padding:0 13px 8px}
.sales-chart-wrap>b{color:var(--green-l);font-size:13px}
.sales-chart{display:block;width:100%;max-height:260px;color:var(--green-l)}
.sales-chart circle{fill:var(--bg);stroke:currentColor;stroke-width:2}
.sales-chart-axis{fill:none;stroke:var(--line)}
.sales-chart text{fill:var(--muted);font-size:10px}
.sales-share{justify-self:end;border:0;background:none;color:var(--text);font:inherit;min-height:36px;cursor:pointer}
.sales-report-note{padding:12px 15px;background:color-mix(in srgb,var(--green) 8%,var(--bg));font-size:13px;color:var(--muted)}
.sales-report-day,.sales-report-receipt{border-bottom:1px solid var(--line)}
.sales-report-day{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto}
.sales-date-block{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:2px 6px}
.sales-date-block strong{font-size:30px;line-height:1}
.sales-date-block span,.sales-day-totals small,.sales-report-receipt small{color:var(--muted);font-size:12px}
.sales-date-block b{grid-column:1/-1;font-size:13px}
.sales-day-totals,.sales-report-receipt>span:first-child{display:grid;gap:2px}
.sales-day-totals b{overflow-wrap:anywhere}
.sales-report-receipt>span:first-child{flex:1}

.sales-detail-heading .hd{gap:4px}
.sales-detail-heading .hd h2{font-size:clamp(13px,4.1vw,20px);color:var(--green-l)}
.sales-detail-heading .ib{width:34px;min-width:34px;color:var(--green-l)}
.sales-detail-search{display:flex;align-items:center;gap:6px;padding:6px 10px}
.sales-detail-search input{flex:1;min-width:0}
.sales-detail-periods{width:calc(100% - 12px);max-width:none;display:flex;margin:6px auto 12px}
.sales-detail-periods button{flex:1;min-width:0;text-transform:uppercase;line-height:1.12}
.sales-detail-dates{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:0 14px 10px}
.sales-detail-dates .fi{width:100%}
.sales-detail-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 15px;padding:15px;border-radius:9px;background:linear-gradient(155deg,var(--green),var(--green-d));color:#fff;font-size:13px}
.sales-detail-totals div:first-child{grid-column:1/-1}
.sales-detail-totals strong{display:block;margin-top:4px;font-size:20px;overflow-wrap:anywhere}
.sales-detail-list{padding:4px 14px}
.sales-category-chart{display:grid;justify-items:center;align-content:center;gap:14px;min-height:clamp(240px,70vw,320px);padding:16px}
.sales-category-pie{width:min(185px,60vw);aspect-ratio:1;border-radius:50%}
.sales-category-chart ul{width:100%;max-width:420px;margin:0;padding:0;list-style:none}
.sales-category-chart li{display:grid;grid-template-columns:12px minmax(0,1fr) auto;align-items:center;gap:7px;padding:4px 0;overflow-wrap:anywhere}
.sales-category-chart i{width:11px;height:11px;border-radius:3px}

.purchase-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr));width:min(62%,320px)}
.purchase-report-filters{padding:0 14px;background:color-mix(in srgb,var(--green) 8%,var(--bg));color:var(--muted)}
.purchase-report-filters summary{display:flex;align-items:center;gap:8px;justify-content:space-between;min-height:42px;cursor:pointer;font-size:14px}
.purchase-report-filters summary::-webkit-details-marker{display:none}
.purchase-report-filters summary::after{content:'⌄';color:var(--green-l)}
.purchase-report-filters[open] summary::after{content:'⌃'}
.purchase-report-filters summary span:first-child{margin-inline-end:auto}
.purchase-report-filters span{display:flex;align-items:center;gap:6px}
.purchase-report-filters svg{width:18px;height:18px;color:var(--green-l)}
.purchase-report-filters>div{display:grid;gap:7px;padding-bottom:10px;font-size:13px}
.purchase-report-filters .fi,.purchase-report-staff{width:100%;border:1px solid var(--green-l);border-radius:8px;background:var(--field);color:var(--text)}
.purchase-report-staff{padding:10px 13px}
.purchase-report-filters label .fi{display:block;margin-top:3px}

.bo-shell{display:grid;grid-template-columns:216px minmax(0,1fr);background:color-mix(in srgb,var(--line) 24%,var(--bg));flex:1;min-height:0}
.bo-sidebar{background:#1854bc;color:#fff;overflow:auto}
.bo-brand{display:grid;grid-template-columns:30px 1fr;align-items:center;gap:5px 10px;padding:21px 18px 24px;color:#fff;text-decoration:none}
.bo-brand b{font-size:22px}
.bo-brand small{grid-column:2;opacity:.9}
.bo-brand svg{width:28px;height:28px}
.bo-sidebar nav button{width:100%;display:flex;align-items:center;gap:10px;min-height:44px;padding:0 18px;border:0;background:none;color:inherit;font:inherit;font-weight:700;font-size:13px;text-align:left;cursor:pointer}
.bo-sidebar nav button:hover,.bo-sidebar .bo-current{background:#133e8c}
.bo-sidebar nav svg{width:18px;height:18px;flex:none}
.bo-main{overflow:auto;min-width:0}
.bo-top{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:6px 18px;min-height:55px;background:var(--bg);box-shadow:0 2px 6px #0002}
.bo-top .ib{display:none;margin-inline-end:auto}
.bo-top label{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted)}
.bo-top select{min-width:0;max-width:200px;padding:7px;border:1px solid var(--line);border-radius:6px;background:var(--field);color:var(--text);font:inherit}
.bo-content{padding:18px;max-width:1800px;margin:auto}
.bo-content h2{margin:0 0 18px;font-size:20px}
.bo-filters,.bo-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:16px}
.bo-filters label{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.3}
.bo-filters .fi{flex:1;min-width:0}
.bo-filters input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:var(--green)}
.bo-cards section,.bo-chart{background:var(--bg);border-radius:9px;box-shadow:0 2px 5px #0002;padding:15px}
.bo-cards section{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
.bo-cards h3,.bo-chart h3{font-size:15px;margin:0 0 10px}
.bo-cards strong{font-size:19px;overflow-wrap:anywhere}
.bo-cards section span{display:grid;place-items:center;width:38px;height:38px;flex:none;border-radius:11px;color:var(--green-l);background:color-mix(in srgb,var(--green) 13%,var(--bg))}
.bo-cards svg{width:22px;height:22px}
.bo-chart{margin-bottom:16px}
.bo-chart>div{overflow:auto}
.bo-chart svg{display:block;width:100%;min-width:590px;max-height:305px;color:var(--green-l)}
.bo-gridline{stroke:var(--line);fill:none}
.bo-plot{stroke:currentColor;stroke-width:2;fill:none}
.bo-chart circle{fill:currentColor;stroke:var(--bg)}
.bo-chart text{fill:var(--muted);font-size:11px}
@media(max-width:760px){
  .bo-shell{grid-template-columns:minmax(0,1fr);position:relative}
  .bo-top .ib{display:grid;place-items:center}
  .bo-sidebar{display:none;position:absolute;inset:0 auto 0 0;width:210px;z-index:2;box-shadow:5px 0 18px #0004}
  .bo-nav-open .bo-sidebar{display:block}
  .bo-nav-open .bo-top{z-index:3}
  .bo-nav-open .bo-main{padding-top:0}
  .bo-sidebar{padding-top:55px}
  .bo-content{padding:12px}
  .bo-filters{grid-template-columns:1fr;gap:10px}
  .bo-cards{gap:7px}
  .bo-cards section{padding:9px}
  .bo-cards section span{display:none}
  .bo-cards h3{font-size:12px}
  .bo-cards strong{font-size:15px}
}

.drawer [data-m="Backoffice Kasir Amko"][hidden]{display:none}

.bo-table-panel{padding:15px;background:var(--bg);border-radius:9px;box-shadow:0 2px 5px #0002}
.bo-table-tools{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.bo-table-tools label{display:grid;gap:4px;font-size:13px;min-width:0}
.bo-table-tools label:first-child{flex:1 1 175px}
.bo-table-tools .fi{margin:0;width:100%;min-height:40px}
.bo-table-tools .mbtn,.bo-table-footer .mbtn{min-height:36px;margin:0}
.bo-table-scroll{max-width:100%;overflow:auto}
.bo-table-scroll table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}
.bo-table-scroll th,.bo-table-scroll td{padding:10px 9px;border-bottom:1px solid var(--line)}
.bo-table-scroll th{white-space:nowrap;background:var(--field)}
.bo-table-scroll td{min-width:72px}
.bo-table-scroll th button,.bo-link{background:none;border:0;color:var(--text);font:inherit;font-weight:650;cursor:pointer;padding:4px}
.bo-link{color:var(--green-l);text-decoration:underline}
.bo-table-footer{display:flex;align-items:center;gap:7px;margin-top:12px;flex-wrap:wrap;font-size:13px}
.bo-table-footer span{margin-inline-end:auto}
.bo-product-detail{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.bo-product-detail dd{margin:0;text-align:right;overflow-wrap:anywhere}

.bo-db-menu{background:#15479e}
.bo-db-menu summary{display:flex;align-items:center;gap:10px;min-height:44px;padding:9px 18px;cursor:pointer;font-size:13px;font-weight:700;list-style:none}
.bo-db-menu summary::-webkit-details-marker{display:none}
.bo-db-menu summary::after{content:'⌄';margin-inline-start:auto}
.bo-db-menu details[open]>summary::after,.bo-db-menu[open]>summary::after{content:'⌃'}
.bo-db-menu[open]>summary{background:#1d64ce}
.bo-db-menu>div>button,.bo-db-menu details>summary{padding-inline-start:38px}
.bo-db-menu details button{padding-inline-start:54px}
.bo-db-panel{display:flex;flex-direction:column;background:var(--bg);border-radius:9px;overflow:hidden}
.bo-db-panel .lst{overflow:visible}
.bo-db-panel>.bar{position:static}
.bo-add-product{margin:0 0 12px}

.retail-print-receipt{display:none}
@media print{
  body:has(.retail-print-receipt){height:auto;overflow:visible;background:#fff;color:#000}
  body:has(.retail-print-receipt)>:not(.retail-print-receipt){display:none!important}
  .retail-print-receipt{display:block;margin:0;padding:2mm;width:54mm;color:#000;white-space:pre-wrap;font:11px monospace}
  .retail-print-receipt[data-paper="80"]{width:76mm}
}

.bo-import-dialog .dlg{max-height:90dvh;overflow:auto}
.bo-import-dialog [data-import-preview] .bo-table-scroll{max-height:30dvh}
.bo-import-dialog [data-import-preview] ul{max-height:24dvh;overflow:auto}

.shift-handover-lock{
  width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:28px;
  color:var(--text);background:color-mix(in srgb,var(--bg) 82%,transparent);
  border:1px solid color-mix(in srgb,var(--line) 75%,transparent);border-radius:22px;
  box-shadow:0 24px 64px #0004;text-align:center;backdrop-filter:blur(20px)
}
.shift-handover-lock::backdrop{background:color-mix(in srgb,var(--bg) 58%,#0006);backdrop-filter:blur(13px)}
.shift-handover-icon{
  display:grid;place-items:center;width:58px;height:58px;margin:0 auto 14px;
  border-radius:18px;background:color-mix(in srgb,var(--green) 14%,var(--bg));color:var(--green-l)
}
.shift-handover-icon svg{width:30px;height:30px}
.shift-handover-lock h2{margin:0 0 10px;font-size:22px}
.shift-handover-lock p{margin:0 0 12px;line-height:1.5}
.shift-handover-next{color:var(--muted);font-size:14px}
.shift-handover-lock button{width:100%;margin-top:8px;min-height:44px}

.cash-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.cash-shortcuts[hidden]{display:none}
.cash-shortcuts button{min-width:0;min-height:44px;padding:8px}

/* Shared page spacing and controls */
:root{
  --page-gutter:clamp(16px,2vw,28px);
  --page-title-size:clamp(18px,1rem + .45vw,23px);
  --control-height:44px;
}
.top,.hd{padding-inline:var(--page-gutter);min-height:60px}
.top b,.hd h2,.finance-heading .hd h2,.sales-detail-heading .hd h2{
  font-size:var(--page-title-size);line-height:1.25;
}
.hd,.finance-heading .hd,.sales-detail-heading .hd{gap:clamp(4px,1vw,12px)}
.hd h2{min-width:0;overflow-wrap:anywhere}
.hd.c h2{letter-spacing:normal}
.hd.c:has(>h2:last-child):has(>.ib:first-child)::after{
  content:"";flex:0 0 var(--control-height);
}
.hd>.ib,.finance-heading .hd>.ib,.sales-detail-heading .hd>.ib,.top>button{
  flex:0 0 var(--control-height);width:var(--control-height);
  min-width:var(--control-height);height:var(--control-height);
}
.lst,.bar,.sales-report-home,.finance-report,.performance-report,.bo-content{
  padding-inline:var(--page-gutter);
}
.performance-daily .performance-filters{
  margin-inline:calc(-1 * var(--page-gutter));padding-inline:var(--page-gutter);
}
.bar{align-items:stretch;flex-wrap:wrap}
.bar .btn,.bar .mbtn,.dlg .mbtn,.bo-table-tools .mbtn,.bo-table-footer .mbtn,.cash-shortcuts button{
  height:auto;min-height:var(--control-height);padding:9px 12px;
  font-size:14px;line-height:1.25;letter-spacing:normal;
}
.bar .btn,.bar .mbtn,.dlg .mbtn{min-width:0;overflow-wrap:anywhere}
.bo-table-tools .fi{min-height:var(--control-height)}
.bo-table-tools .mbtn,.bo-table-footer .mbtn{flex:0 1 auto}
.bo-content h2{font-size:var(--page-title-size);line-height:1.25;overflow-wrap:anywhere}
.bo-top{padding-inline:var(--page-gutter)}
.sales-report-period{min-height:56px}
.login-heading h1,.dlg h3{font-size:var(--page-title-size);line-height:1.25}
.login-heading{flex-wrap:wrap}
.login-heading .theme-choice{margin-inline-start:auto}
.btn:focus-visible,.mbtn:focus-visible,.ib:focus-visible,.top>button:focus-visible{
  outline:2px solid currentColor;outline-offset:-4px;
}

/* Sales shortcut and responsive checkout */
.menu button[data-m="Transaksi Penjualan"]{
  min-height:52px;margin-bottom:12px;padding-inline:14px;background:var(--green);color:#fff;font-weight:750
}
.menu button[data-m="Transaksi Penjualan"]:hover,.menu button[data-m="Transaksi Penjualan"].act{background:var(--green-d)}
.menu button[data-m="Transaksi Penjualan"] svg{stroke:currentColor}
#menu{margin-bottom:12px}
.pos-layout,.pos-catalog{display:flex;flex:1;flex-direction:column;min-height:0;min-width:0}
.pos-catalog>h3,.pos-checkout,.pos-code,.pos-stock,.pos-price,.pos-plus{display:none}
.pos-pay{justify-content:center}
.pos-product .bdg{background:var(--green)}
@media (max-width:767px){.pos-catalog>#sb[hidden]{display:none}}
.pos-pay:disabled,.pos-cart-head button:disabled{opacity:.55;cursor:default}
@media (min-width:768px){
  .pos-layout{
    display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,1fr);
    gap:clamp(12px,2vw,24px);align-items:start;overflow:auto;
    padding:var(--page-gutter);background:color-mix(in srgb,var(--line) 24%,var(--bg))
  }
  .pos-layout+.bar{display:none}
  .pos-catalog,.pos-checkout{
    display:grid;align-content:start;gap:12px;min-width:0;
    padding:clamp(12px,1.6vw,22px);border:1px solid var(--line);border-radius:16px;
    background:var(--bg);box-shadow:0 6px 22px #0001
  }
  .pos-catalog{grid-template-columns:minmax(0,1fr) auto;container-type:inline-size}
  .pos-catalog>h3,.pos-cart-head h3{display:block;align-self:center;margin:0;font-size:16px}
  .pos-tools{padding:0;overflow:visible;justify-content:flex-end}
  .pos-tools [data-a="tog"]{display:none}
  .pos-catalog>#sb{display:flex;grid-column:1/-1;padding:0}
  .pos-catalog .sbox{min-height:44px;width:100%;border-radius:10px}
  .pos-catalog .chips{grid-column:1/-1;padding:0;gap:6px}
  .pos-catalog .chp{padding:7px 12px;font-size:13px;min-height:36px}
  .pos-catalog .lst{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:0;overflow:visible}
  .pos-catalog .empty{grid-column:1/-1}
  .pos-product{
    position:relative;display:flex;align-items:stretch;gap:0;min-height:128px;padding:12px;
    border:1px solid var(--line);border-radius:12px;background:var(--bg)
  }
  .pos-product:hover,.pos-product:focus-visible{border-color:var(--green-l)}
  .pos-product .th,.pos-product .pos-mobile-info{display:none}
  .pos-product-info{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;width:100%}
  .pos-product b{font-size:14px;line-height:1.3;overflow-wrap:anywhere}
  .pos-product .pos-code,.pos-product .pos-stock{display:block;font-size:11px;overflow-wrap:anywhere}
  .pos-product .pos-stock{color:var(--text);background:color-mix(in srgb,var(--green) 12%,var(--bg));border-radius:20px;padding:3px 7px}
  .pos-price{display:block;margin-top:auto;padding:4px 32px 0 0;color:var(--green-l);font-size:14px;overflow-wrap:anywhere}
  .pos-plus{display:grid;place-items:center;position:absolute;bottom:10px;right:10px;width:28px;height:28px;border-radius:8px;background:var(--green);color:#fff}
  .pos-product .bdg{position:absolute;right:10px;bottom:41px;background:var(--green);color:#fff}
  .pos-checkout{position:sticky;top:0;max-height:calc(100dvh - 82px);overflow-y:auto}
  .pos-cart-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .pos-cart-head .mbtn{flex:none;height:40px;border-radius:9px;padding-inline:12px;font-size:13px}
  .pos-empty{display:grid;align-content:center;min-height:112px;text-align:center;color:var(--muted);font-size:14px;line-height:1.6}
  .pos-checkout #cl{max-height:280px;overflow:auto}
  .pos-checkout .cr{flex-wrap:wrap;gap:6px;font-size:13px}
  .pos-checkout .qt{gap:5px}
  .pos-checkout .lt{min-width:0;margin-inline-start:auto}
  .pos-checkout .sm{gap:8px;font-size:14px}
  .pos-checkout .sm.tl{border-top:1px solid var(--line);font-size:19px}
  .pos-checkout .fi{height:42px;padding-inline:10px;border-radius:9px;font-size:14px}
  .pos-checkout .pos-balance{padding:4px 10px;background:color-mix(in srgb,var(--green) 10%,var(--bg));border-radius:9px}
  .pos-checkout .pos-pay{min-height:44px;height:auto;padding:10px;border-radius:9px;font-size:14px;text-align:center}
}
@container (min-width:470px){
  .pos-catalog .lst{grid-template-columns:repeat(3,minmax(0,1fr))}
}
#stbtn:disabled{cursor:default;opacity:1}

.catalog-layout{display:flex;gap:3px;margin-left:auto;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--bg);flex:none}
.catalog-layout button{min-height:34px;padding:5px 10px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;font-size:13px;cursor:pointer}
.catalog-layout button[aria-pressed="true"]{background:var(--green);color:#fff}
.lst.catalog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-content:start}
.catalog-grid>.it{position:relative;display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:8px;min-width:0;min-height:120px;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.catalog-grid>.it .th{width:100%;height:74px}
.catalog-grid>.it>span:not(.th){min-width:0}
.catalog-grid>.it b{font-size:14px;line-height:1.35;overflow-wrap:anywhere}
.catalog-grid>.it small{font-size:12px;overflow-wrap:anywhere}
.catalog-grid>.it .bdg{position:absolute;top:8px;right:8px;margin:0;min-width:26px;height:26px}
.catalog-grid>.pos-product .pos-product-info{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;padding-bottom:22px}
.catalog-grid>.pos-product .pos-code,.catalog-grid>.pos-product .pos-stock,.catalog-grid>.pos-product .pos-price{display:block}
.catalog-grid>.pos-product .pos-mobile-info{display:none}
.catalog-grid>.pos-product .pos-price{margin-top:2px;padding:0;color:var(--green);font-size:14px}
.catalog-grid>.pos-product .pos-plus{display:grid;position:absolute;right:9px;bottom:9px}
.catalog-list{grid-template-columns:minmax(0,1fr)!important}
.catalog-list>.it{flex-direction:row;align-items:center;min-height:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}
.catalog-list>.pos-product .pos-product-info{padding-bottom:0}
.catalog-list>.pos-product .pos-code,.catalog-list>.pos-product .pos-stock,.catalog-list>.pos-product .pos-price{display:none}
.catalog-list>.pos-product .pos-mobile-info{display:block}
@media (min-width:768px){
  .pos-catalog .catalog-grid{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
  .pos-catalog .catalog-list{grid-template-columns:minmax(0,1fr)!important;gap:0}
  .pos-catalog .catalog-list>.pos-product{min-height:76px;padding:8px 10px}
  .pos-catalog .catalog-list>.pos-product .th{display:grid;width:44px;height:44px}
  .pos-catalog .catalog-list>.pos-product .pos-product-info{display:flex;flex-direction:row;align-items:center;gap:10px;padding:0}
  .pos-catalog .catalog-list>.pos-product .pos-code{display:none}
  .pos-catalog .catalog-list>.pos-product .pos-stock{display:block;white-space:nowrap}
  .pos-catalog .catalog-list>.pos-product .pos-price{display:block;margin:0 36px 0 auto;padding:0;white-space:nowrap}
  .pos-catalog .catalog-list>.pos-product .pos-plus{bottom:50%;transform:translateY(50%)}
  .pos-catalog .catalog-grid>.pos-product .th{display:grid;width:100%;height:74px}
}

.bo-shift-summary{margin-bottom:18px;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}
.bo-shift-summary>div{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.bo-shift-summary h3{margin:0;font-size:17px}
.bo-shift-summary .mbtn{flex:none;min-height:44px;height:auto;padding:8px 12px;font-size:13px}
.bo-shift-summary ul{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px;margin:12px 0 0;padding:0;list-style:none}
.bo-shift-summary li{display:grid;gap:4px;min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;overflow-wrap:anywhere}
.bo-shift-summary small{color:var(--muted);font-weight:500}
.bo-shift-status{font-size:14px;font-weight:650}
.bo-shift-status[data-tone="warning"]{color:var(--err)}

.settings-home,.settings-subpage{flex:1;min-height:0;overflow:auto;padding:8px 14px 24px}
.settings-intro{margin:4px 0 14px;padding:12px 14px;border-radius:10px;background:color-mix(in srgb,var(--green) 8%,var(--bg));color:var(--muted);font-size:14px;line-height:1.5}
.settings-row,.settings-action{display:flex;align-items:center;gap:12px;width:100%;min-height:66px;padding:12px 4px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.settings-row-copy,.settings-action>span:first-child{display:grid;gap:4px;min-width:0;flex:1}
.settings-row b,.settings-action b{font-size:15px}
.settings-row small,.settings-action small{color:var(--muted);font-size:12px;line-height:1.4}
.settings-row-state,.settings-tag{flex:none;color:var(--muted);font-size:10px}
.settings-row .chv,.settings-action .chv{display:grid;place-items:center;width:20px;height:20px;flex:none}
.settings-row .chv svg,.settings-action .chv svg{width:18px;height:18px}
.settings-row:hover,.settings-action:hover{background:color-mix(in srgb,var(--green) 5%,var(--bg))}
.settings-subpage{padding-top:12px}
.settings-subpage .settings-action{min-height:62px;padding:12px 10px}
.settings-info{cursor:default}
.settings-info:hover{background:transparent}
.settings-theme{display:flex;gap:10px;margin:6px 0 14px}
.settings-theme button{flex:1;min-height:44px;border:1px solid var(--line);border-radius:10px;background:var(--bg);color:var(--text);font:inherit;cursor:pointer}
.settings-theme button[aria-pressed="true"]{border-color:var(--green);background:var(--green);color:#fff}
.settings-about{display:grid;gap:8px;padding:18px 14px;border:1px solid var(--line);border-radius:12px}
.settings-about span{color:var(--muted);font-size:13px}
.settings-about p{margin:4px 0 0;color:var(--muted);font-size:13px;line-height:1.5}

#product-photo-picker [hidden]{display:none}
#product-photo-preview img,.product-thumbnail{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.product-photo-status{text-align:center;color:var(--muted);font-size:13px}
.product-photo-status:empty{display:none}
@media (min-width:768px){
  .pos-product:has(.product-thumbnail){flex-direction:column;gap:8px}
  .pos-product .th:has(.product-thumbnail){display:block;width:100%;height:90px}
  .pos-product:has(.product-thumbnail) .pos-product-info{flex:1}
}

#remember-owner-label input[type=checkbox]{width:18px;height:18px;display:inline-block;margin:0 8px 0 0;vertical-align:middle}#remember-owner-label{align-items:center}

@media (min-width:768px){
  .pos-catalog .catalog-list>.pos-product:has(.product-thumbnail){flex-direction:row}
  .pos-catalog .catalog-list>.pos-product .th:has(.product-thumbnail){width:44px;height:44px}
}

/* Pengaturan: catatan, daftar cabang, dan daftar anggota (sebelumnya tanpa gaya). */
.settings-note{margin:4px 0 12px;color:var(--muted);font-size:13px;line-height:1.5}
.settings-branch-list{display:grid;gap:8px;margin-bottom:12px}
.settings-member-list{display:grid;gap:12px}
.settings-member{display:grid;gap:8px;padding:12px 14px;border:1px solid var(--line);border-radius:12px}
.settings-member>div:first-child{display:grid;gap:2px}
.settings-member small{color:var(--muted);font-size:12px}
.settings-member-actions{display:grid;gap:8px}
.settings-member-actions .mbtn{min-height:44px}
@media (min-width:768px){.settings-member-actions{grid-template-columns:1fr auto auto}}
