/* ─────────────────────────────────────────────────────────────────────────────
   GPOS modern theme — borderless, tonal surfaces, soft depth.
   Loaded LAST by the Back Office, Super Admin and Web POS so it applies everywhere with no per-page edits.
   Light and dark are both handled (:root.light / body.light).
   ───────────────────────────────────────────────────────────────────────────── */
:root{
  --r:14px; --r2:10px;
  --surface:rgba(255,255,255,.05); --surface2:rgba(255,255,255,.085); --surface3:rgba(255,255,255,.13);
  --shadow:0 1px 2px rgba(0,0,0,.35),0 14px 34px -16px rgba(0,0,0,.7);
  --shadowSm:0 1px 2px rgba(0,0,0,.3),0 4px 14px -8px rgba(0,0,0,.5);
  --ring:0 0 0 3px var(--accentDim);
}
:root.light,body.light{
  --surface:rgba(15,23,42,.05); --surface2:rgba(15,23,42,.085); --surface3:rgba(15,23,42,.13);
  --shadow:0 1px 2px rgba(15,23,42,.06),0 14px 34px -18px rgba(15,23,42,.28);
  --shadowSm:0 1px 2px rgba(15,23,42,.07),0 4px 14px -8px rgba(15,23,42,.2);
}

/* 1 ─ No borders anywhere: cards, buttons, inputs, tables, panels, dividers. (Transparent, not removed, so nothing shifts.) */
*,*::before,*::after{border-color:transparent!important}

/* 2 ─ Cards and panels: depth from a soft shadow instead of an outline */
.authCard,.adminLoginBox,.loginBox,.statCard,.cardPanel,.panel,.modal,.oModal,.section-box,.scard,.sect,.card,
.tierCard,.pkgCard,.shiftBox,.zimra,.keyDisplay,.prodCard,.actItem{
  border-radius:var(--r);box-shadow:var(--shadow)
}
.cardHead,.panelHead{background:var(--surface)}
.cardHead,.panelHead,.modalHead,.mHead{border-radius:var(--r) var(--r) 0 0}
.modalFoot,.mFoot{background:transparent}
.toast{box-shadow:var(--shadow);border-radius:var(--r2)}
.topBar,.posHeader{box-shadow:var(--shadowSm)}

/* 3 ─ Buttons: tonal fill, gentle hover, a tiny press effect */
button,.btn,.btnSm,.actBtn,.hBtn,.themeBtn,.signOutBtn,.logoutBtn,.clearBtn,.methodBtn,.qaBtn,.catChip,.npKey,.periodTab,.authTab,.discApply{
  transition:background .15s,color .15s,box-shadow .15s,transform .06s
}
button:active:not(:disabled){transform:translateY(1px)}
button:disabled{opacity:.5;cursor:default}
.btn,.btnSm,.actBtn,.hBtn,.methodBtn,.qaBtn,.npKey,.catChip,.clearBtn,.discApply{border-radius:var(--r2)}
.btnSmSec,.btnSec,.actBtn,.hBtn,.themeBtn,.signOutBtn,.logoutBtn,.clearBtn,.catChip,.methodBtn,.qaBtn,.npKey,.periodTab,.authTab{background:var(--surface);color:var(--text)}
.btnSmSec:hover,.btnSec:hover,.actBtn:hover,.hBtn:hover,.themeBtn:hover,.signOutBtn:hover,.logoutBtn:hover,.clearBtn:hover,.catChip:hover,.methodBtn:hover,.qaBtn:hover,.npKey:hover,.periodTab:hover,.authTab:hover{background:var(--surface2)}
.btnSmPrimary,.btnPrimary{box-shadow:0 6px 16px -8px var(--accent)}
.btnSmPrimary:hover,.btnPrimary:hover{filter:brightness(1.07)}
.authTab.active,.periodTab.active,.catChip.active,.methodBtn.active{background:var(--accentDim);color:var(--accent)}

/* 4 ─ Fields: filled, rounded, with a soft focus ring */
.fInp,.fI,.sInp,.searchInp,.discInp,.cashInp,.searchBox{background:var(--surface);border-radius:var(--r2);transition:background .15s,box-shadow .15s}
.fInp:focus,.fI:focus,.sInp:focus,.searchInp:focus,.discInp:focus,.cashInp:focus,.searchBox:focus-within{background:var(--surface2);box-shadow:var(--ring)}
input[style*="background:var(--bg2)"],select[style*="background:var(--bg2)"],textarea[style*="background:var(--bg2)"],
input[style*="background:var(--card2)"],select[style*="background:var(--card2)"],textarea[style*="background:var(--card2)"],
input[style*="background:var(--bg)"],select[style*="background:var(--bg)"],textarea[style*="background:var(--bg)"]{background:var(--surface)!important;border-radius:var(--r2)}
input[style*="background:var(--bg2)"]:focus,select[style*="background:var(--bg2)"]:focus,textarea[style*="background:var(--bg2)"]:focus,
input[style*="background:var(--card2)"]:focus,select[style*="background:var(--card2)"]:focus,textarea[style*="background:var(--card2)"]:focus{background:var(--surface2)!important;box-shadow:var(--ring)}
select{cursor:pointer}

/* Floating search/pick lists must be OPAQUE or the page shows through the results */
.sdDrop,#pHsList,#flShopList{background:var(--card)!important;border-radius:var(--r2);box-shadow:var(--shadow)}
.sdDrop,#pHsList,#flShopList{border:0!important}

/* 5 ─ Tables: no ruled lines — spacing, a tinted header and a row highlight do the work */
.tbl th,th{background:var(--surface)}
.tbl th:first-child{border-radius:var(--r2) 0 0 var(--r2)}
.tbl th:last-child{border-radius:0 var(--r2) var(--r2) 0}
.tbl tbody tr:hover td{background:var(--surface)}
.tbl tbody tr:hover td:first-child{border-radius:var(--r2) 0 0 var(--r2)}
.tbl tbody tr:hover td:last-child{border-radius:0 var(--r2) var(--r2) 0}

/* 6 ─ Navigation: readable group labels, rounded pills instead of an edge bar */
.navGroupHead{color:var(--textSub)}
.navGroupHead:hover{color:var(--text)}
.navGroupBody .navItem{margin:1px 10px;padding:9px 12px 9px 20px;border-radius:var(--r2)}
.navItem{border-radius:var(--r2)}
.navItem.active::before{display:none}
.navItem.active{font-weight:700}

/* 7 ─ Accessibility and comfort */
button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* 8 ─ Components added by the accounting screens */
.accKpi{display:block;text-align:left;width:100%;padding:16px 18px;border-radius:var(--r);background:var(--card);box-shadow:var(--shadow);cursor:pointer;color:var(--text);transition:transform .12s,box-shadow .15s,background .15s}
.accKpi:hover{transform:translateY(-2px);background:var(--card2)}
.accKpiLabel{font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--textSub);margin-bottom:6px}
.accKpiVal{font-size:22px;font-weight:800;letter-spacing:-.02em}
.accKpiSub{font-size:11px;color:var(--textSub);margin-top:4px}
.accGrid{display:grid;gap:14px}
.accBar{border-radius:6px 6px 0 0;min-width:10px;transition:height .3s}
.accPaletteItem{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--r2);cursor:pointer;color:var(--text);font-size:13px}
.accPaletteItem.sel,.accPaletteItem:hover{background:var(--accentDim);color:var(--accent)}
.accTabGroup{display:flex;gap:6px;flex-wrap:wrap;padding:4px;border-radius:var(--r);background:var(--surface)}
.accTabGroup .btnSm{background:transparent}
.accTabGroup .btnSmPrimary{background:var(--accent)}
@media (max-width:760px){.palBtn span{display:none}}

/* Sidebar icons are inline SVG line icons: they inherit the text colour so hover/active states tint them */
.ni svg{width:17px;height:17px;display:block;margin:0 auto}

/* Selected tab / filter state: lifted with a soft shadow, never an outline or a border */
.authTab.active,.periodTab.active,.catChip.active,.methodBtn.active,.methodBtn.sel,.tierCard.active,.accTabGroup .btnSmPrimary{box-shadow:0 6px 16px -6px color-mix(in srgb,var(--accent) 55%,transparent),0 1px 3px rgba(0,0,0,.14)}
.authTab.active,.periodTab.active{background:var(--card)}

