/* Sahlan POS - "Classic" theme: a counter / back-office look. Solid colours, square corners, dense tables,
   a dark navigation column and big flat touch keys. Loaded after app.css, so it only overrides. */
:root{--blue:#1d5fa8;--blue-d:#164c88;--navy:#1c2b3a;--ink:#1d2733;--mute:#5d6b7a;--bg:#e9edf1;--card:#fff;--line:#cfd6de;
  --ok:#2b8a3e;--warn:#d98200;--bad:#c62828;--tint:#e3ecf6;--r:3px;--side:#1c2b3a;--side-line:#2c3d4f;--amber:#f2a900}
body{font-family:"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans Arabic",sans-serif;font-size:14px}
h2{font-size:18px;font-weight:700} h3{font-size:14px;font-weight:700}

/* square corners and flat surfaces everywhere (dots and round avatars stay round) */
body *:not(.dots i):not(.av):not(.hrav):not(svg):not(svg *){border-radius:3px!important}
body *:not(.dlg):not(.toast):not(#toast *){box-shadow:none!important}
input,select,textarea{border:1px solid #b9c3ce;padding:8px 10px;background:#fff}
input:focus,select:focus,textarea:focus{border-color:var(--blue);outline:2px solid rgba(29,95,168,.18)}
label{font-size:12px;font-weight:600;color:#44515f}

/* buttons */
.btn{padding:9px 14px;font-weight:600;border:1px solid #b9c3ce;background:#f6f8fa}
.btn:hover{background:#eef2f6}
.btn.pri,.btn.pri:hover{background:var(--blue)!important;border-color:var(--blue-d)!important;color:#fff;filter:none}
.btn.ok{background:var(--ok);border-color:#22702f}
.btn.big{padding:15px 18px;font-size:16px;text-transform:uppercase;letter-spacing:.02em}

/* panels and cards */
.panel,.kpi,.ocard,.dlg{border:1px solid var(--line)}
.panel{padding:14px}
.panel>h3:first-child{margin:-14px -14px 12px;padding:9px 14px;background:#f1f4f7;border-bottom:1px solid var(--line);font-size:13px;text-transform:uppercase;letter-spacing:.03em;color:#33414f}
table th{background:#f1f4f7;font-size:12px;text-transform:uppercase;letter-spacing:.02em;color:#44515f}

/* navigation column */
.side .sidebar{background:var(--side);border-inline-end:0}
.sbrand{color:#fff;border-bottom:1px solid var(--side-line);background:#15212d}
.sbrand svg{color:var(--amber)}
.sbrand small{color:#9fb0c2}
.sgh{color:#8ea3b8!important;font-size:11px!important;letter-spacing:.08em!important;padding:16px 12px 6px}
.si{color:#d6dee7;font-weight:500;margin:0;padding:10px 12px;border-inline-start:4px solid transparent}
.si svg{color:#8ea3b8}
.si:hover{background:#26384b}
.si.on{background:#26384b!important;color:#fff;border-inline-start-color:var(--amber)}
.si.on svg{color:var(--amber)}
.sfoot{color:#8ea3b8;border-top:1px solid var(--side-line)}

/* top bar */
.top{background:#fff!important;color:var(--ink);border-bottom:1px solid var(--line)}
.top button,.top .sess,.top .who,.top .tgl{color:var(--ink)}
.top .tgl,.top .sess,.top .lang,.top>button{background:#f1f4f7!important;border:1px solid var(--line)}
.top .lang button.on{background:var(--blue)!important;color:#fff}
.nav{border-top:1px solid var(--line)}
.nav button.on{color:var(--blue)}

/* entry screens: plain light screen, brand on the left, a big square keypad on the right */
.gate{background:#e9edf1}
.gate .box{border:1px solid var(--line);padding:26px}
.gate h1{font-size:21px}
.pad{gap:6px}
.pad button{background:#1d5fa8!important;color:#fff!important;font-size:22px;padding:18px;border:0!important}
.pad button:hover{background:#174f8d!important}
.pad button:nth-last-child(3){background:#c62828!important}
.pad button:last-child{background:#2b8a3e!important}
.scr .box,.lock .box{border:1px solid #2c3d4f}
.staffs button{border:1px solid #b9c3ce}
.staffs button.on{background:var(--blue);color:#fff;border-color:var(--blue-d)}
.staffs button.on small{color:#dbe6f3}
.dots i{border-color:#9aa7b4}.dots i.f{background:var(--ink);border-color:var(--ink)}
.scr{background:#1c2b3a}

/* selling screen: flat colour product keys with the name on a dark strip */
.prod{background:var(--c,var(--blue))!important;border:1px solid rgba(0,0,0,.15)}
body.dark .prod{background:color-mix(in srgb,var(--c) 70%,#000)!important}
.prod .ov2{background:rgba(15,22,30,.72)!important;padding:7px 9px}
.prod .pic{background:#fff;border-bottom:3px solid var(--c,var(--blue))}
.prod .q{background:var(--amber);color:#1d2733}
.c1{background:#1d5fa8}.c2{background:#0b7a6b}.c3{background:#c62828}.c4{background:#e07000}.c5{background:#2b8a3e}.c6{background:#5b2a91}
.ph{background:#1c2b3a}.ph.o{background:#d06800}.ph.p{background:#4f2382}
.hero2{background:#1c2b3a}
.hrav{background:#5b2a91}
.kpi.blue{background:var(--blue)}

/* ------------------------------------------------------------------ back office dashboard */
.bo{max-width:1500px}
.bo-bar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);padding:10px 12px;margin-bottom:12px}
.bo-bar h2{margin-inline-end:auto;font-size:17px;align-self:center}
.bo-bar h2 small{display:block;font-size:12px;font-weight:400;color:var(--mute)}
.bo-bar label{margin:0 0 3px}
.bo-bar input{width:150px}
.bo-bar .qr{display:flex;gap:4px}
.bo-bar .qr button{padding:8px 10px;border:1px solid #b9c3ce;background:#f6f8fa;font-weight:600;font-size:13px}
.bo-bar .qr button.on{background:var(--navy);color:#fff;border-color:var(--navy)}
.bo-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}
.bt{display:flex;background:#fff;border:1px solid var(--line);min-height:92px}
.bt>i{flex:none;width:76px;display:grid;place-items:center;color:#fff}
.bt>i svg{width:38px;height:38px}
.bt>div{flex:1;padding:10px 14px;min-width:0;display:flex;flex-direction:column;justify-content:center}
.bt small{font-size:12px;color:var(--mute);text-transform:uppercase;letter-spacing:.03em;font-weight:600}
.bt b{font-size:22px;font-weight:700;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bt span{font-size:12.5px;color:var(--mute)}
.bt aside{border-inline-start:1px solid var(--line);padding:8px 12px;font-size:12px;color:var(--mute);display:flex;flex-direction:column;justify-content:center;gap:2px;min-width:104px}
.bt aside em{font-style:normal;color:var(--ink);font-weight:600}
.bt .kv{display:flex;flex-wrap:wrap;gap:4px 14px;margin-top:6px;padding-top:5px;border-top:1px solid #edf0f3;font-size:12px;color:var(--mute)}
.bt .kv em{font-style:normal;color:var(--ink);font-weight:700}
.bt.good .kv em.h{color:var(--ok)} .bt.watch .kv em.h{color:var(--warn)} .bt.poor .kv em.h{color:var(--bad)}
.bo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.bo-grid .panel{margin:0}
.bo-grid .wide{grid-column:1/-1}
.hb{display:flex;align-items:flex-end;gap:3px;height:190px;padding:8px 0 0;border-bottom:1px solid #b9c3ce;position:relative}
.hb div{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;min-width:0}
.hb div i{display:block;width:100%;background:var(--blue);min-height:1px}
.hb div:hover i{background:var(--amber)}
.hb div span{font-size:10.5px;color:var(--mute);margin-top:4px;position:absolute;bottom:-18px}
.hb-wrap{padding-bottom:20px}
.hb.days div i{background:#2b8a3e}
.bars{display:flex;flex-direction:column;gap:7px}
.bars div{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,2fr) auto;gap:10px;align-items:center;font-size:13px}
.bars div b{font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bars div span{height:16px;background:#e6ebf0;display:block;position:relative}
.bars div span i{position:absolute;inset-block:0;inset-inline-start:0;background:var(--c,var(--blue))}
.bars div em{font-style:normal;font-weight:700;min-width:84px;text-align:end}
.donut{display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.donut svg{width:170px;height:170px;flex:none}
.donut ul{list-style:none;flex:1;min-width:180px}
.donut li{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid #edf0f3;font-size:13px}
.donut li i{width:12px;height:12px;flex:none}
.donut li b{margin-inline-start:auto}
.bo table{width:100%;border-collapse:collapse;font-size:13px}
.bo td,.bo th{padding:7px 8px;border-bottom:1px solid #edf0f3;text-align:start}
.bo td.r,.bo th.r{text-align:end}
@media (max-width:1300px){.bo-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}}
.bt.good b{color:var(--ok)}.bt.watch b{color:var(--warn)}.bt.poor b{color:var(--bad)}
@media (max-width:900px){.bo-grid,.bo-tiles{grid-template-columns:1fr}.bt b{font-size:19px}.bt>i{width:64px}}

/* price check */
.pc-res{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.pc-res div{display:flex;align-items:center;gap:10px;border:1px solid var(--line);padding:10px 12px;background:#fff}
.pc-res b{flex:1}
.pc-res strong{font-size:20px;color:var(--blue-d)}
.pc-res small{color:var(--mute);display:block}

/* category keys: flat, no decoration, a strong frame on the chosen one */
.ctiles{gap:5px;margin-bottom:10px}
.ctiles button{opacity:1;min-height:50px;padding:7px 10px;border:2px solid transparent}
.ctiles button:after{display:none}
.ctiles button b{text-shadow:none;font-weight:700}
.ctiles button.on{outline:0!important;border-color:#1d2733;box-shadow:inset 0 0 0 2px #fff!important}
/* product keys: a solid key in the category colour with the name and price; a real photo is shown when there is one,
   the cartoon emoji is not */
.prodgrid,.prods{gap:5px!important}
.prod{aspect-ratio:1.45!important;border:1px solid rgba(0,0,0,.2)!important}
.prod .pic:not(:has(img)){display:none}
.prod:not(:has(img)) .ov2{background:transparent!important;inset:0;display:flex;flex-direction:column;justify-content:space-between;padding:9px 10px}
.prod:not(:has(img)) .nm{font-size:15px;font-weight:700;text-shadow:none}
.prod:not(:has(img)) .pr{font-size:14px;font-weight:700;color:#fff}
.prod.out{opacity:.45}
.prod .q{background:#f2a900!important;color:#1d2733!important}
/* the till keypad */
.padk button{font-size:19px}

/* ------------------------------------------------------------------ apps layout: no side menu, a home screen of modules */
body.apps-ui .side{grid-template-columns:0 minmax(0,1fr)!important}
body.apps-ui .side .sidebar,body.apps-ui .scrim{display:none!important}
body.apps-ui .side .top,body.apps-ui .side #view{grid-column:1/-1!important}
body.apps-ui .top{background:#1c2b3a!important;color:#fff;border-bottom:0;gap:6px}
body.apps-ui .top .tgl,body.apps-ui .top .sess,body.apps-ui .top>button{background:transparent!important;border:0;color:#dfe6ee}
body.apps-ui .top .tgl:hover,body.apps-ui .top>button:hover{background:#2c3d4f!important}
body.apps-ui .top .who b,body.apps-ui .top .who span{color:#fff}
body.apps-ui .top .langs button{color:#b9c6d3}
body.apps-ui .top .langs button.on{background:#f2a900!important;color:#1c2b3a}
body.apps-ui .top .sess span{color:#dfe6ee}
body.apps-ui .top .curapp{display:none}
.top .burger svg{width:20px;height:20px}
.mname{font-size:16px;font-weight:700;color:#fff;white-space:nowrap;padding:0 6px 0 2px}
.mmenu{display:flex;align-items:stretch;height:100%;overflow-x:auto;scrollbar-width:none}
.mmenu button{position:relative;color:#c9d4df;padding:0 13px;font-size:14px;font-weight:500;white-space:nowrap;border-bottom:3px solid transparent}
.mmenu button:hover{color:#fff;background:#2c3d4f}
.mmenu button.on{color:#fff;border-bottom-color:#f2a900}
.mmenu button i{background:#f2a900;color:#1c2b3a;font-style:normal;font-size:10.5px;font-weight:700;padding:0 5px;margin-inline-start:5px}
.launcher{max-width:980px;margin:0 auto;padding:34px 16px 60px}
.lsearch{max-width:420px;margin:0 auto 34px}
.lsearch input{padding:11px 14px;font-size:15px}
.lgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(118px,1fr));gap:26px 14px}
.lgrid button{display:flex;flex-direction:column;align-items:center;gap:9px;padding:8px 4px}
.lgrid button i{width:78px;height:78px;display:grid;place-items:center;color:#fff;border:1px solid rgba(0,0,0,.15)}
.lgrid button i svg{width:40px;height:40px}
.lgrid button span{font-size:14px;font-weight:600;color:var(--ink);text-align:center;line-height:1.25}
.lgrid button:hover i{filter:brightness(1.12)}
.lgrid button:hover span{color:var(--blue)}
@media (max-width:700px){.lgrid{grid-template-columns:repeat(3,1fr);gap:20px 8px}.lgrid button i{width:64px;height:64px}.top .langs,.top .who{display:none}}

/* ------------------------------------------------------------------ inside a module, ERP style:
   a control panel under the top bar (title + New on the left, search and actions on the right), lists as dense tables,
   forms as a white sheet with the label beside the field and line-only inputs */
body.apps-ui .view{padding:0 0 28px}
body.apps-ui .view>.head:first-child,body.apps-ui .view>div>.head:first-child{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);
  margin:0 0 14px;padding:10px 20px;gap:8px 10px;min-height:58px}
body.apps-ui .view>*:not(.head):not(.launcher):not(.bo),body.apps-ui .view>div>*:not(.head){margin-inline:20px}
body.apps-ui .view>div:has(>.head){margin-inline:0}
body.apps-ui .ttlblk{display:flex;align-items:baseline;gap:10px;margin:0}
body.apps-ui .ttlblk h2,body.apps-ui .head h2{font-size:18px;font-weight:600;color:#1d5fa8}
body.apps-ui .ttlblk .sub{font-size:12.5px;font-weight:400;margin:0}
body.apps-ui .head .hacts{display:flex;align-items:center;gap:6px;flex:1;justify-content:flex-end;flex-wrap:wrap}
body.apps-ui .head .hacts .btn.pri{order:-1;margin-inline-end:auto;text-transform:uppercase;font-size:13px;padding:8px 14px}
body.apps-ui .head .hacts input:not([type=date]):not([type=number]):not([type=month]){width:280px;border:1px solid #b9c3ce;padding:7px 10px 7px 30px;
  background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235d6b7a' stroke-width='2' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") no-repeat 9px center}
body.apps-ui .head .btn{padding:7px 12px;font-size:13px}
/* tabs inside a page */
body.apps-ui .pagetabs,body.apps-ui .rtabs{background:transparent!important;border-bottom:1px solid var(--line);padding:0!important;gap:0!important;margin-bottom:12px}
body.apps-ui .pagetabs button,body.apps-ui .rtabs button{background:transparent!important;border:0;border-bottom:3px solid transparent;color:var(--mute);padding:9px 14px;font-weight:600}
body.apps-ui .pagetabs button.on,body.apps-ui .rtabs button.on{color:var(--ink);border-bottom-color:#1d5fa8;box-shadow:none}
/* lists */
body.apps-ui .panel:has(>.tblwrap),body.apps-ui .panel:has(>.scrollx),body.apps-ui .panel:has(>table){padding:0;overflow:hidden}
table.stk{width:100%;border-collapse:collapse;font-size:13.5px}
table.stk tr.stkhead td,table.stk tr.stkhead th{background:#f1f4f7;font-weight:700;font-size:12.5px;color:#33414f;border-bottom:2px solid #cfd6de;padding:9px 12px;white-space:nowrap}
table.stk td{padding:8px 12px;border-bottom:1px solid #e6eaee}
table.stk tr:not(.stkhead):hover td{background:#eef4fb}
table.stk tr.click{cursor:pointer}
/* forms: label beside the field, line-only fields on a white sheet */
body.apps-ui .panel:has(>form.fgrid),body.apps-ui form.panel{max-width:1100px;padding:22px 28px}
body.apps-ui .view .fgrid>.fld,body.apps-ui form.panel .f3>div{display:grid;grid-template-columns:150px minmax(0,1fr);align-items:center;column-gap:12px;min-height:42px}
body.apps-ui .view .fgrid>.fld label,body.apps-ui form.panel .f3>div>label{margin:0!important;font-size:13px;font-weight:700;color:#33414f}
body.apps-ui .view .fgrid>.fld label svg,body.apps-ui form.panel label svg{display:none}
body.apps-ui .view .fgrid input,body.apps-ui .view .fgrid select,body.apps-ui form.panel input,body.apps-ui form.panel select{border:0;border-bottom:1px solid #b9c3ce;background:transparent;padding:6px 2px}
body.apps-ui .view .fgrid input:focus,body.apps-ui .view .fgrid select:focus,body.apps-ui form.panel input:focus,body.apps-ui form.panel select:focus{outline:0;border-bottom:2px solid #1d5fa8}
body.apps-ui form.panel .f3{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px}
body.apps-ui .view .types.big{max-width:520px}
body.apps-ui .view .types button{padding:8px 12px!important;font-size:13.5px}
body.apps-ui .view .types button.on{background:#1d5fa8!important;color:#fff!important}
/* KPI boxes as small stat buttons */
body.apps-ui .kpis{display:flex!important;gap:8px;flex-wrap:wrap}
body.apps-ui .kpis .kpi{padding:8px 14px;min-width:150px;border-inline-start:4px solid #1d5fa8}
body.apps-ui .kpis .kpi.blue{background:#fff!important;color:var(--ink)}
body.apps-ui .kpis .kpi small{color:var(--mute)!important}
body.apps-ui .kpis .kpi b{font-size:18px}
@media (max-width:700px){body.apps-ui .view .fgrid>.fld,body.apps-ui form.panel .f3>div{grid-template-columns:1fr}
  body.apps-ui .head .hacts input{width:100%}}

body.apps-ui .head .hacts input[type=date],body.apps-ui .head .hacts input[type=month]{width:auto;padding:6px 8px}
body.apps-ui .view .pur{max-width:none}
body.apps-ui form.panel>h3:first-child,body.apps-ui .panel:has(>form.fgrid)>h3:first-child{margin:-22px -28px 16px}

/* document view: breadcrumb, status bar, white sheet */
.ttlblk h2 a{cursor:pointer;color:#1d5fa8}.ttlblk h2 a:hover{text-decoration:underline}
.ttlblk .bc{color:var(--ink);font-weight:600}
.docbar{display:flex;justify-content:flex-end;margin:-6px 20px 12px;max-width:1100px}
.stbar{display:flex}
.stbar span{position:relative;padding:6px 16px 6px 22px;background:#fff;border:1px solid var(--line);color:var(--mute);font-size:12.5px;font-weight:700;text-transform:uppercase;margin-inline-start:-1px}
.stbar span.on{background:#1d5fa8;border-color:#1d5fa8;color:#fff}
.sheet{max-width:1100px;padding:26px 32px!important}
.sheet h1{font-size:24px;margin-bottom:16px}
.sgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 30px;margin-bottom:20px}
.sgrid>div{display:grid;grid-template-columns:140px 1fr;align-items:baseline;border-bottom:1px solid #edf0f3;padding:6px 0}
.sgrid>div.full{grid-column:1/-1}
.sgrid label{margin:0;font-size:13px;color:#33414f}
.stot{display:flex;justify-content:flex-end;gap:30px;padding:14px 12px 0;font-size:16px}
.stot b{font-size:20px}
.badge{display:inline-block;padding:2px 8px;font-size:12px;font-weight:700}
.badge.done{background:#e3f1e6;color:#22702f}.badge.void{background:#f6e0e0;color:#a32020}
@media (max-width:700px){.sgrid{grid-template-columns:1fr}.sgrid>div{grid-template-columns:110px 1fr}.docbar{margin-inline:12px}}

/* sign-in screen */
.gate.g2{display:flex;flex-direction:column;place-items:initial;padding:0;background:#dfe3e8;height:100%;overflow:hidden}
.g2top{flex:none;height:30px;background:#0f1b27;color:#c7d2dd;display:flex;align-items:center;gap:8px;padding:0 12px;font-size:12.5px}
.g2top svg{width:20px;height:16px;color:#f2a900}
.g2top b{font-weight:600;color:#fff}
.g2main{flex:1;display:grid;grid-template-columns:minmax(0,1fr) 74px minmax(320px,38%);min-height:0}
.g2left{background:#14304f;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;color:#fff;padding:20px;text-align:center}
.g2logo{width:150px;height:150px;background:#f2a900;display:grid;place-items:center;color:#14304f;border-radius:30px!important}
.g2logo svg{width:96px;height:80px}
.g2left b{font-size:15px;letter-spacing:.06em;text-transform:uppercase}
.g2strip{background:#0f2238;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:34px;color:#aebccb}
.g2strip i,.g2strip button{display:grid;place-items:center;width:44px;height:44px;color:#aebccb}
.g2strip svg{width:26px;height:26px}
.g2strip button:hover{color:#fff;background:#1d3550}
.g2right{display:flex;align-items:center;justify-content:flex-start;padding:30px 40px;overflow:auto}
.g2right .box{width:100%;max-width:380px;background:transparent!important;border:0!important;padding:0!important;text-align:start}
.g2h{font-size:20px;font-weight:600;color:#14304f;margin-bottom:14px}
.g2p{font-size:12.5px;color:var(--mute);margin:0 0 10px!important}
.g2right label{font-size:12.5px;color:#33414f;margin:10px 0 3px}
.g2right input{background:#fff;border:1px solid #9fabb7;padding:8px 10px;margin-bottom:0!important}
.g2btns{display:grid;grid-template-columns:1fr 1.6fr;margin-top:18px;gap:0}
.g2btns button{padding:15px;font-size:15px;font-weight:600;color:#fff}
.g2clear{background:#c62828}.g2clear:hover{background:#ad2121}
.g2go{background:#2b8a3e}.g2go:hover{background:#22702f}
.g2right .staffs{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
.g2right .pad button{padding:15px}
@media (max-width:800px){.g2main{grid-template-columns:1fr;grid-template-rows:auto 1fr}.g2left{flex-direction:row;padding:14px}.g2logo{width:56px;height:56px;border-radius:12px!important}
  .g2logo svg{width:36px;height:30px}.g2strip{display:none}.g2right{padding:20px;align-items:flex-start}.g2top span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

/* vendor picker on a purchase */
.m2o-dd{position:absolute;z-index:40;left:0;right:0;top:100%;background:#fff;border:1px solid #9fabb7;max-height:320px;overflow:auto;box-shadow:0 6px 18px rgba(0,0,0,.15)!important}
.m2o-dd button{display:flex;justify-content:space-between;gap:10px;width:100%;text-align:start;padding:9px 12px;border-bottom:1px solid #eef1f4;font-size:14px}
.m2o-dd button:hover{background:#eef4fb}
.m2o-dd button small{color:var(--mute)}
.m2o-dd button.cr{color:#1d5fa8;font-weight:600;justify-content:flex-start}
.m2o-st{font-size:12px;margin-top:3px;min-height:16px}
.m2o-st .ok{color:#22702f;font-weight:600}.m2o-st .no{color:#b26a00;font-weight:600}
body.apps-ui .view .fgrid>.fld:has(#purSupIn),#purHead>.fld:has(#purSupIn){position:relative}
.m2o-dd button.cr{display:block}

/* ------------------------------------------------------------------ phone */
@media (max-width:700px){
  body.apps-ui .top{gap:2px;padding:0 4px}
  body.apps-ui .top .mname{font-size:14px;max-width:96px;overflow:hidden;text-overflow:ellipsis;padding:0 4px}
  body.apps-ui .top:has(.mmenu) .mname{display:none}
  .mmenu{flex:1;min-width:0}
  .mmenu button{padding:0 10px;font-size:13.5px}
  body.apps-ui .top .sess span,body.apps-ui .top .dk,body.apps-ui .top .langs,body.apps-ui .top .who{display:none!important}
  body.apps-ui .top .sess{padding:0 6px}
  body.apps-ui .top .search{flex:1;min-width:0}
  body.apps-ui .top .search input{width:100%;min-width:0}
  body.apps-ui .top .tgl{width:36px;padding:0}
  body.apps-ui .view>.head:first-child,body.apps-ui .view>div>.head:first-child{padding:8px 10px;min-height:0}
  body.apps-ui .view>*:not(.head):not(.launcher):not(.bo),body.apps-ui .view>div>*:not(.head){margin-inline:8px}
  body.apps-ui .view>div:has(>.head){margin-inline:0}
  body.apps-ui .ttlblk{flex-wrap:wrap;gap:2px 8px}
  body.apps-ui .head .hacts{width:100%;justify-content:stretch}
  body.apps-ui .head .hacts>*{flex:1 1 auto}
  body.apps-ui .head .hacts .btn.pri{order:-1;flex-basis:100%;margin:0}
  body.apps-ui .head .hacts input:not([type=date]):not([type=month]):not([type=number]){width:100%;flex-basis:100%}
  body.apps-ui .panel:has(>form.fgrid),body.apps-ui form.panel,.sheet{padding:14px!important}
  body.apps-ui form.panel>h3:first-child,body.apps-ui .panel:has(>form.fgrid)>h3:first-child{margin:-14px -14px 12px}
  body.apps-ui form.panel .f3{grid-template-columns:1fr}
  body.apps-ui .view .fgrid>.fld,body.apps-ui form.panel .f3>div{grid-template-columns:1fr;min-height:0;margin-bottom:6px}
  body.apps-ui .view .fgrid>.fld label,body.apps-ui form.panel .f3>div>label{margin-top:8px!important}
  body.apps-ui .kpis .kpi{flex:1 1 40%;min-width:0}
  .docbar{justify-content:stretch;margin:-4px 8px 10px}.stbar{width:100%}.stbar span{flex:1;text-align:center;padding:6px 4px}
  .sheet h1{font-size:20px}
  .bo-bar{gap:6px}.bo-bar h2{width:100%}.bo-bar .qr{flex-wrap:wrap;width:100%}.bo-bar .qr button{flex:1}.bo-bar>div:has(input){flex:1}.bo-bar input{width:100%}
  .bo-bar .btn{flex:1}
  .bt{min-height:0}.bt>i{width:56px}.bt>i svg{width:28px;height:28px}
  .hb{height:150px}.donut svg{width:140px;height:140px;margin:0 auto}
  .launcher{padding:18px 10px 40px}.lsearch{margin-bottom:20px}
  table.stk td.stkt{font-weight:700}
}
@media (max-width:700px){
  body.apps-ui .top.sellv .mmenu{flex:0 1 auto;max-width:48%}
  body.apps-ui .top.sellv .search{flex:1 1 0}
  body.apps-ui .top.sellv .sess{display:none}
}
.m2o-new{padding:9px 12px;color:#b26a00;font-weight:600;font-size:13px}
#purItDd button{flex-wrap:wrap}
.m2o-wrap{position:relative}
.outpanel{max-width:1100px}
.outrow{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:6px 0}
.outrow p{font-size:12.5px;color:var(--mute);margin-top:8px}
.outbtn{width:100%;justify-content:center;padding:14px;font-size:15px}
.outbtn svg{width:20px;height:20px}
.outbtn.bad{background:#fff;border:1px solid #c62828;color:#c62828}
.outbtn.bad:hover{background:#fbeaea}
@media (max-width:700px){.outrow{grid-template-columns:1fr}}
.outpanel{padding:14px!important}.outpanel>h3:first-child{margin:-14px -14px 12px!important}
.outpanel{margin-top:40px!important;margin-bottom:40px!important}
.g2left{position:relative}
.g2out{position:absolute;top:14px;inset-inline-end:14px;display:flex;align-items:center;gap:7px;padding:8px 14px;color:#fff;background:#c62828;font-weight:600;font-size:14px}
.g2out:hover{background:#ad2121}
.g2out svg{width:18px;height:18px}
@media (max-width:800px){.g2out{top:50%;transform:translateY(-50%);padding:8px 10px;font-size:13px}.g2left b{margin-inline-end:96px}}

/* Kanban / List switch */
.vksw{display:flex;border:1px solid #b9c3ce;flex:0 0 auto!important}
.vksw button{width:38px;height:34px;display:grid;place-items:center;color:#5d6b7a;background:#fff}
.vksw button+button{border-inline-start:1px solid #b9c3ce}
.vksw button.on{background:#1d5fa8;color:#fff}
.vksw svg{width:18px;height:18px}
.vkav{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%!important;color:#fff;font-style:normal;font-size:13px;font-weight:700;flex:none;margin-inline-end:10px}
#view.vk-ls .vkav{width:26px;height:26px;font-size:11px;margin-inline-end:8px;vertical-align:middle}
/* kanban: cards in a grid, at any screen size */
#view.vk-kb .panel:has(table.stk){background:transparent!important;border:0!important;padding:0!important}
#view.vk-kb table.stk{display:block;width:100%}
#view.vk-kb table.stk tbody{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:12px}
#view.vk-kb table.stk tr.stkhead{display:none!important}
#view.vk-kb table.stk tr:not(.stkhead):not(.stkfull){display:flex!important;flex-direction:column;background:#fff;border:1px solid var(--line);border-top:3px solid #1d5fa8;padding:12px 14px;margin:0}
#view.vk-kb table.stk tr.stkfull{display:block;grid-column:1/-1}
#view.vk-kb table.stk td{display:flex!important;justify-content:space-between;align-items:center;gap:10px;padding:3px 0!important;border:0!important;text-align:end!important;font-size:13.5px;background:transparent!important}
#view.vk-kb table.stk td[data-l]::before{content:attr(data-l);color:var(--mute);font-size:12px;text-align:start;flex:none;max-width:45%}
#view.vk-kb table.stk td.stkt{justify-content:flex-start!important;text-align:start!important;font-size:15.5px;font-weight:700;padding-bottom:8px!important;margin-bottom:4px;border-bottom:1px solid #eef1f4!important}
#view.vk-kb table.stk td.stkt::before{display:none}
#view.vk-kb table.stk td:last-child:has(button){justify-content:flex-end;margin-top:6px}
#view.vk-kb table.stk td:empty{display:none!important}
#view.vk-kb table.stk tr.click:hover{border-top-color:#f2a900}
/* list: a real table with columns, on a phone too (scrolls sideways if needed) */
#view.vk-ls .panel:has(table.stk){overflow-x:auto!important;background:#fff!important;border:1px solid var(--line)!important;padding:0!important}
#view.vk-ls table.stk{display:table!important;width:100%;min-width:560px;border-collapse:collapse}
#view.vk-ls table.stk tbody{display:table-row-group!important}
#view.vk-ls table.stk tr,#view.vk-ls table.stk tr:not(.stkhead):not(.stkfull){display:table-row!important;background:transparent;border:0!important;padding:0;margin:0;box-shadow:none}
#view.vk-ls table.stk tr.stkhead{display:table-row!important}
#view.vk-ls table.stk td{display:table-cell!important;padding:8px 10px!important;border-bottom:1px solid #e6eaee!important;text-align:start!important;font-size:13.5px;vertical-align:middle}
#view.vk-ls table.stk td.r{text-align:end!important}
#view.vk-ls table.stk td::before{display:none!important}
#view.vk-ls table.stk td.stkt{font-size:13.5px;border-bottom:1px solid #e6eaee!important;padding-bottom:8px!important;margin:0;white-space:nowrap}
#view.vk-ls table.stk tr.stkhead td{background:#f1f4f7;font-weight:700;font-size:12px;border-bottom:2px solid #cfd6de!important;white-space:nowrap}
@media (max-width:700px){#view.vk-kb table.stk tbody{grid-template-columns:1fr}
  body.apps-ui .head .hacts .vksw{flex:0 0 auto!important}}
#view i.vkav{border-radius:50%!important}

/* mobile money + Pesapal */
.mmop{display:inline-block;margin-left:6px;padding:0 7px;border-radius:3px;font-size:11.5px;font-weight:700;line-height:18px;background:#e7ecf1;color:#5b6876;vertical-align:1px}
.mmop.on{background:#1c2b3a;color:#fff}
.ppbox{border:1px solid var(--line,#d6dce3);border-left:3px solid #1c2b3a;border-radius:4px;padding:8px 10px 10px;margin:8px 0}
.ppbrand{display:flex;align-items:baseline;gap:8px;margin-bottom:2px}.ppbrand b{font-size:14px}.ppbrand span{font-size:11.5px;color:var(--mut,#5b6876)}
.ppwait{display:flex;gap:14px;align-items:center;margin:6px 0}
.ppwait #ppQr{width:176px;height:176px;flex:none;background:#fff;border:1px solid #d6dce3;border-radius:4px;padding:4px}.ppwait #ppQr svg{width:100%;height:100%;display:block}
.ppwait .grow{min-width:0}.mmops table td{padding:6px 4px}
@media (max-width:560px){.ppwait{flex-direction:column}.ppwait #ppQr{width:200px;height:200px}}

/* weighing scale */
.scbadge{display:flex;align-items:center;gap:8px}.sckg{font-size:20px;font-variant-numeric:tabular-nums;letter-spacing:.01em}
.scst{font-size:11.5px;font-weight:700;padding:1px 7px;border-radius:3px;background:#fdf1d8;color:#8a5a00}.scst.ok{background:#e3f3ea;color:#1f7a4d}.scst.off{background:#e7ecf1;color:#5b6876}
.scbox{display:flex;align-items:center;gap:12px;border:1px solid var(--line,#d6dce3);border-left:3px solid #1c2b3a;border-radius:4px;padding:8px 10px;margin:0 0 10px;font-size:22px}
.scbox p{margin:2px 0 0;font-size:12px}.scbox .btn{font-size:13px}

/* industry and apps */
.indgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:6px 14px;margin-top:10px}
.indapp{display:flex!important;align-items:center;gap:8px;font-weight:500!important;font-size:13.5px;margin:0!important;padding:7px 9px;border:1px solid var(--line,#d6dce3);border-radius:4px;cursor:pointer}
.indapp input{width:auto!important;margin:0}.indapp:has(input:not(:checked)){opacity:.55}

/* product import + new category */
.catnew{align-items:center;margin-top:-2px}.catnew .btn{white-space:nowrap}
.impsum{display:flex;gap:16px;flex-wrap:wrap;margin:12px 0 4px;font-size:13px}.impsum b{font-size:18px;margin-right:3px}
.imptab td,.imptab th{font-size:12.5px;padding:5px 6px}

/* payment list, export, pivot */
.methhint{margin:2px 0 6px;font-size:12.5px;color:var(--mut,#5b6876);font-weight:600}
#modal .meths.methlist{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px}
#modal .meths.methlist button{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;min-height:58px;padding:8px 12px;text-align:left;font-weight:700;font-size:15px}
#modal .meths.methlist button small{font-weight:500;font-size:11.5px;opacity:.7;margin-top:2px}
.expbtn{margin-left:4px}
.pvbar{display:flex;flex-wrap:wrap;gap:10px 14px;align-items:flex-end}.pvbar>div{min-width:130px;flex:1}.pvbar label{margin-top:0}
.pvtab td,.pvtab th{white-space:nowrap}.pvtab .pvtot td{font-weight:800;border-top:2px solid var(--line,#d6dce3);background:#f6f8fa}

/* company logo */
.g2logo img.cologo,.scr-logo img.cologo{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;margin:0 auto}
.toplogo{height:30px;max-width:110px;object-fit:contain;margin:0 8px 0 2px;background:#fff;border-radius:4px;padding:2px 4px}
.lgrow{display:flex;gap:16px;align-items:center}.lgbox{width:120px;height:80px;flex:none;border:1px dashed var(--line,#d6dce3);border-radius:4px;display:flex;align-items:center;justify-content:center;background:#fff;padding:6px;color:#1c2b3a}
.lgbox img,.lgbox svg{max-width:100%;max-height:100%;object-fit:contain}
.scr-logo img.cologo{max-height:64px;max-width:200px;background:#fff;border-radius:6px;padding:4px 8px}

/* professional receipt (print) */
@media print{
  #print .rx{font-family:Inter,Poppins,"Segoe UI",system-ui,sans-serif;font-size:11px;color:#000}
  #print .rx-logo{text-align:center;margin:0 0 1.5mm}#print .rx-logo img{max-width:48mm;max-height:20mm;object-fit:contain}
  #print .rx-name{text-align:center;font-size:15px;font-weight:800;line-height:1.2}
  #print .rx-info{text-align:center;font-size:10px;color:#333}
  #print .rx-title{text-align:center;font-weight:800;letter-spacing:.18em;font-size:11.5px;margin:2mm 0;padding:1.2mm 0;border-top:3px double #000;border-bottom:3px double #000}
  #print .rx-meta{display:grid;grid-template-columns:1fr 1fr;gap:1.2mm 3mm;margin-bottom:1.5mm}
  #print .rx-meta span{display:block;font-size:8px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#444}#print .rx-meta b{font-size:10.5px}
  #print table.rx-items{width:100%;border-collapse:collapse;border-top:1px solid #000}
  #print .rx-items th{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;text-align:right;padding:1.2mm 0;border-bottom:1px dashed #000}#print .rx-items th:first-child{text-align:left}
  #print .rx-n td{font-weight:600;padding-top:1.2mm}#print .rx-n small{display:block;font-weight:400;font-size:9px;color:#444;padding-left:2mm}
  #print .rx-q td{text-align:right;color:#333;padding-bottom:.8mm}#print .rx-q td:last-child{font-weight:700;color:#000}
  #print .rx-tot{border-top:1px solid #000;margin-top:1mm;padding-top:1mm}
  #print .rx-kv{display:flex;justify-content:space-between;gap:3mm;line-height:1.55}#print .rx-kv span{color:#333}#print .rx-kv b{font-weight:600;white-space:nowrap}
  #print .rx-cnt span{font-size:9.5px}#print .rx-chg b,#print .rx-chg span{font-weight:800;color:#000}
  #print .rx-grand{display:flex;justify-content:space-between;align-items:baseline;border-top:3px double #000;border-bottom:3px double #000;margin:1.5mm 0;padding:1.5mm 0}
  #print .rx-grand span{font-weight:800;text-transform:uppercase;font-size:11.5px}#print .rx-grand b{font-size:18px;font-weight:800}
  #print .rx-sec{font-size:8px;font-weight:800;text-transform:uppercase;letter-spacing:.05em;color:#444;margin-top:1.2mm}
  #print .rx-unpaid{text-align:center;font-weight:800;font-size:12px;margin:1.5mm 0}
  #print .rx-thx{text-align:center;font-weight:700;font-size:11.5px;border-top:1px dashed #000;margin-top:2mm;padding-top:1.5mm}
  #print .rx-pol{text-align:center;font-size:9px;color:#333}
  #print .rx-qr{width:20mm;margin:2mm auto 1mm}#print .rx-qr svg{width:100%;height:auto;display:block}
  #print .rx-by{text-align:center;font-size:8px;color:#666}
}

/* receipt fits any roll (58 or 80 mm): full printable width, a safe margin both sides, nothing wider than the paper */
@media print{
  @page{size:auto;margin:0}
  #print{width:auto!important;max-width:80mm;margin:0 auto!important;padding:2mm 4mm!important;box-sizing:border-box}
  #print .rx{width:100%;box-sizing:border-box;overflow:hidden;font-size:10.5px}
  #print .rx *{box-sizing:border-box;max-width:100%}
  #print .rx-name{font-size:14px}#print .rx-grand b{font-size:16px}
  #print table.rx-items{table-layout:fixed;width:100%}
  #print .rx-items th:nth-child(1),#print .rx-items td:nth-child(1){width:22%}
  #print .rx-items th:nth-child(2),#print .rx-items td:nth-child(2){width:16%}
  #print .rx-items th:nth-child(3),#print .rx-items td:nth-child(3){width:30%}
  #print .rx-items th:nth-child(4),#print .rx-items td:nth-child(4){width:32%}
  #print .rx-items td{overflow-wrap:anywhere;font-size:10.5px}#print .rx-n td{font-size:11px}
  #print .rx-meta b,#print .rx-kv span{overflow-wrap:anywhere;min-width:0}
}
/* phones: the install button of the sign-in screen (the side strip that holds it is hidden there) */
.g2inst{display:none}
.g2inst svg{width:20px;height:20px;flex:none}
@media (max-width:800px){.g2inst{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:14px;padding:13px;border-radius:10px;border:1.5px solid #2f86eb;background:#fff;color:#2f86eb;font-weight:600;font-size:15px}}
/* sign-in screen: a company logo is shown alone, without the yellow tile of the Sahlan mark */
.g2logo.haslogo{background:transparent!important;width:auto;max-width:240px;height:auto;max-height:170px;padding:0;border-radius:0!important}
.g2logo.haslogo img.cologo{max-width:240px;max-height:170px;border-radius:10px}
@media (max-width:800px){.g2logo.haslogo{max-width:150px;max-height:60px;height:60px}.g2logo.haslogo img.cologo{max-width:150px;max-height:60px;border-radius:6px}}
/* the company switch in the top bar */
.cochip{display:flex;align-items:center;gap:6px;height:34px;padding:0 10px;margin:0 6px;border-radius:8px;background:rgba(255,255,255,.12);color:#fff;border:1px solid rgba(255,255,255,.28);font-weight:600;font-size:13px;white-space:nowrap;cursor:pointer;flex:none}
.cochip svg{width:18px;height:18px;flex:none}.cochip span{max-width:150px;overflow:hidden;text-overflow:ellipsis}.cochip b{font-weight:400;opacity:.8}
@media (max-width:700px){.cochip{padding:0 7px;margin:0 3px}.cochip span{max-width:64px}}
