/* Kebarick POS Stage 2 — only the authenticated /app dashboard and sidebar */
body.pos-ui-modern #workspace .dash{grid-template-columns:220px minmax(0,1fr);align-items:stretch;min-height:calc(100vh - 65px)}
body.pos-ui-modern #workspace .dash>aside{position:sticky;top:0;align-self:start;height:calc(100vh - 65px);max-height:calc(100vh - 65px);overflow:hidden;padding:0!important;background:linear-gradient(172deg,#0b3f92 0%,#0c2d64 68%,#0b244c 100%);box-shadow:5px 0 25px #103e7710;z-index:6}
body.pos-ui-modern .pos2-sidebar-list{height:100%;overflow-y:auto;overscroll-behavior:contain;padding:15px 10px 34px;scrollbar-width:thin;scrollbar-color:#5579a7 transparent}
body.pos-ui-modern .pos2-nav-brand{display:flex;align-items:center;gap:10px;padding:9px 9px 18px;border-bottom:1px solid #ffffff20;margin-bottom:12px;color:#fff}
body.pos-ui-modern .pos2-nav-brand strong{display:block;font-size:12px;color:#fff;line-height:1.2}
body.pos-ui-modern .pos2-nav-brand small{font-size:11px;color:#a7c9f4;display:block;padding-top:3px}
body.pos-ui-modern .pos2-nav-mark{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:10px;background:#ffffff25;font-weight:900;font-size:19px;color:#fff}
body.pos-ui-modern #workspace .pos2-nav-caption{font-size:10px;text-transform:uppercase;font-weight:850;letter-spacing:.105em;color:#9cbbeb;padding:10px 12px 7px}
body.pos-ui-modern #workspace .pos2-nav-group{margin:0 0 9px}
body.pos-ui-modern #workspace .dash>aside :where(a.sideanchor,button[data-tab],button#logout){display:block;padding:9px 11px;margin:2px 0;min-height:37px;line-height:1.32;width:100%;font-size:12px;font-weight:650;overflow-wrap:anywhere;background:transparent;color:#e6f1ff;border-radius:8px;text-decoration:none;border:1px solid transparent;text-align:left}
body.pos-ui-modern #workspace .dash>aside :where(a.sideanchor,button[data-tab],button#logout):hover,
body.pos-ui-modern #workspace .dash>aside :where(a.sideanchor,button[data-tab],button#logout):focus-visible,
body.pos-ui-modern #workspace .dash>aside :where(button[data-tab].active){background:#2469ca;color:#fff;border-color:#ffffff15}
body.pos-ui-modern #workspace .dash>aside [hidden]{display:none!important}
body.pos-ui-modern #workspace .pos2-nav-more{border-top:1px solid #ffffff25;margin-top:10px;padding-top:8px;color:#e9f2ff}
body.pos-ui-modern #workspace .pos2-nav-more>summary{list-style:none;cursor:pointer;border-radius:9px;margin:2px 0 7px;padding:10px 12px;background:#ffffff12;font-weight:750;font-size:12px}
body.pos-ui-modern #workspace .pos2-nav-more>summary:after{content:'⌄';float:right}
body.pos-ui-modern #workspace .pos2-nav-more[open]>summary:after{content:'⌃'}
body.pos-ui-modern #workspace .pos2-nav-more>summary::-webkit-details-marker{display:none}
body.pos-ui-modern #workspace .pos2-nav-more>summary:hover{background:#ffffff26}
body.pos-ui-modern #workspace .pos2-mobile-nav-toggle{display:none}
body.pos-ui-modern #workspace .dash>.main{min-width:0;padding:clamp(14px,2vw,24px);overflow-x:clip;max-width:1650px;width:100%}
body.pos-ui-modern #workspace .pos2-contextbar{display:flex;align-items:center;justify-content:space-between;margin:0 0 15px!important;min-height:62px;padding:10px 16px!important;background:#fff;box-shadow:0 2px 8px #17447809}
body.pos-ui-modern #workspace .pos2-contextbar strong{font-size:14px;color:#204274}
body.pos-ui-modern #workspace #overview>h2{font-size:0;height:0;overflow:hidden;margin:0;padding:0}
body.pos-ui-modern #workspace #overview .pos2-dashboard-hero{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:clamp(19px,2.2vw,29px);margin:0 0 14px;background:linear-gradient(112deg,#0a469f,#126be2);border:1px solid #0e5bc2;border-radius:17px;color:#fff;box-shadow:0 10px 25px #1459b422}
body.pos-ui-modern .pos2-dashboard-hero :where(h1,p,span){color:inherit}
body.pos-ui-modern .pos2-dashboard-hero h1{font-size:clamp(22px,2.5vw,32px);margin:7px 0 7px;max-width:650px;color:#fff;line-height:1.15;letter-spacing:-.04em}
body.pos-ui-modern .pos2-dashboard-hero p{margin:0 0 14px;color:#e1eeff;max-width:650px;font-size:13px;line-height:1.55}
body.pos-ui-modern .pos2-eyebrow{font-size:10px;font-weight:850;letter-spacing:.12em;color:#8fbfff}
body.pos-ui-modern .pos2-dashboard-hero .pos2-eyebrow{color:#c0dcff}
body.pos-ui-modern .pos2-hero-tags{display:flex;gap:8px;flex-wrap:wrap}
body.pos-ui-modern .pos2-hero-tags span{font-size:11px;font-weight:750;padding:6px 10px;border-radius:20px;color:#fff;background:#ffffff20;border:1px solid #ffffff35}
body.pos-ui-modern .pos2-hero-graphic{display:flex;gap:12px;align-items:center;justify-content:flex-end;min-width:170px;color:#c0e0ff;font-size:37px}
body.pos-ui-modern .pos2-hero-graphic>span{display:grid;place-items:center;width:61px;height:66px;border:1px solid #ffffff42;border-radius:13px;background:#ffffff12;transform:rotate(-6deg)}
body.pos-ui-modern .pos2-hero-graphic>span:nth-child(2){transform:translateY(-13px);background:#ffffff21}
body.pos-ui-modern .pos2-hero-graphic>span:nth-child(3){transform:rotate(6deg)}
body.pos-ui-modern #workspace .pos2-shortcuts{padding:19px 20px;margin:0 0 15px;background:#fff;border-radius:16px;border:1px solid #d7e4f5;box-shadow:0 3px 12px #15406e09}
body.pos-ui-modern #workspace .pos2-section-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 14px}
body.pos-ui-modern #workspace .pos2-section-header h3{font-size:18px;color:#153b77;margin:2px 0 3px}
body.pos-ui-modern #workspace .pos2-section-header p{font-size:12px;color:#687f9d;margin:0}
body.pos-ui-modern #workspace .pos2-shortcut-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
body.pos-ui-modern #workspace .pos2-shortcut{min-width:0;display:flex;align-items:center;gap:11px;text-decoration:none;border:1px solid #dfebf9;background:#f8fbff;border-radius:12px;padding:12px;color:#153f7e;transition:background .15s,border-color .15s}
body.pos-ui-modern #workspace .pos2-shortcut:hover{background:#eaf3ff;border-color:#80b2f5}
body.pos-ui-modern #workspace .pos2-shortcut-icon{display:grid;place-items:center;background:#e5f0ff;border-radius:10px;width:39px;height:39px;flex-shrink:0;font-size:21px;font-weight:800;color:#1160d1}
body.pos-ui-modern #workspace .pos2-shortcut-body{min-width:0;flex:1;display:block}
body.pos-ui-modern #workspace .pos2-shortcut strong{display:block;font-size:12px;line-height:1.35;color:#16437f}
body.pos-ui-modern #workspace .pos2-shortcut small{display:block;font-size:10.5px;color:#627c9e;line-height:1.4;margin-top:2px}
body.pos-ui-modern #workspace .pos2-shortcut-arrow{font-weight:800;color:#176bd5;font-size:20px}
body.pos-ui-modern #workspace #overview>.stats{margin:0 0 14px;grid-template-columns:repeat(3,minmax(0,1fr))}
body.pos-ui-modern #workspace #overview>.stats .stat{margin:0;padding:17px 20px;background:#fff;border:1px solid #dbe7f7;border-top:3px solid #2777e8;box-shadow:0 2px 12px #1e4d7d08}
body.pos-ui-modern #workspace #overview>.stats .stat span{font-size:12px;font-weight:700;color:#6a829e}
body.pos-ui-modern #workspace #overview>.stats .stat b{font-size:25px;margin-top:4px;color:#0b55b8}
body.pos-ui-modern #workspace #overview>.stats .stat[hidden]{display:none!important}
body.pos-ui-modern #workspace #overview>.stats:has(.stat[hidden]){grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}
body.pos-ui-modern #workspace #overview .pos2-branches-section{margin:0 0 15px;padding:18px 20px;background:#fff}
body.pos-ui-modern #workspace #overview .pos2-branches-section h3{font-size:16px;margin-bottom:13px}
body.pos-ui-modern #workspace #overview .pos2-branches-section .grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px}
body.pos-ui-modern #workspace #overview .pos2-branches-section .box{background:#f8fbff;border:1px solid #dce7f6;padding:14px}
body.pos-ui-modern #workspace #overview .pos2-branches-section .box strong{font-size:13px;color:#17447e}
body.pos-ui-modern #workspace #overview .pos2-branches-section .box p{font-size:12px;margin:10px 0 0}
body.pos-ui-modern #workspace #overview #industry-dashboard-shortcuts{margin:0 0 15px;padding:16px 19px}
body.pos-ui-modern #workspace #overview #industry-dashboard-shortcuts h3{font-size:15px}
body.pos-ui-modern #workspace .pos2-legacy-shortcuts{display:none!important}
body.pos-ui-modern #workspace #overview>.soft{margin:0 0 15px;border:1px solid #d9e8f9;background:#ebf4ff;color:#224b85;padding:14px 18px}
body.pos-ui-modern #workspace #overview>.soft p{font-size:12px;line-height:1.55;margin-bottom:0}
body.pos-ui-modern #workspace .pos2-role-summary{font-size:12px;margin:0 0 8px;color:#6580a5}
@media(max-width:1140px){body.pos-ui-modern #workspace .pos2-shortcut-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
 body.pos-ui-modern #workspace .dash{display:block;min-height:0}
 body.pos-ui-modern #workspace .dash>aside{position:relative;top:auto;max-height:none;height:auto;overflow:visible;padding:8px 12px!important}
 body.pos-ui-modern #workspace .pos2-mobile-nav-toggle{display:block;margin:0;min-height:41px;width:100%;text-align:left;background:#ffffff1b;color:#fff;border:1px solid #ffffff3a;border-radius:9px}
 body.pos-ui-modern #workspace .pos2-sidebar-list{display:none;overflow:visible;height:auto;max-height:none;padding:9px 0 7px}
 body.pos-ui-modern #workspace .dash>aside.pos2-nav-open .pos2-sidebar-list{display:block}
 body.pos-ui-modern #workspace .pos2-nav-group{display:block}
 body.pos-ui-modern #workspace .dash>aside :where(a.sideanchor,button[data-tab],button#logout){display:block;width:100%;white-space:normal}
 body.pos-ui-modern #workspace .dash>.main{padding:11px}
 body.pos-ui-modern #workspace .pos2-contextbar{padding:10px!important;margin-bottom:10px!important}
 body.pos-ui-modern #workspace #overview .pos2-dashboard-hero{padding:17px;margin-bottom:10px}
 body.pos-ui-modern #workspace .pos2-hero-graphic{display:none}
 body.pos-ui-modern #workspace #overview .pos2-shortcuts{padding:15px;margin-bottom:10px}
 body.pos-ui-modern #workspace .pos2-shortcut-grid{grid-template-columns:1fr 1fr;gap:7px}
 body.pos-ui-modern #workspace .pos2-shortcut{padding:10px;gap:8px}
 body.pos-ui-modern #workspace .pos2-shortcut-icon{width:34px;height:34px;font-size:19px}
 body.pos-ui-modern #workspace #overview>.stats{gap:8px;margin-bottom:10px}
 body.pos-ui-modern #workspace #overview>.stats .stat{padding:12px}
 body.pos-ui-modern #workspace #overview .pos2-branches-section{padding:14px}
}
@media(max-width:440px){body.pos-ui-modern #workspace .pos2-shortcut-grid{grid-template-columns:1fr}body.pos-ui-modern #workspace .pos2-contextbar{display:block}body.pos-ui-modern #workspace .pos2-contextbar select{margin-top:8px}body.pos-ui-modern #workspace .pos2-dashboard-hero h1{font-size:22px}}
@media(prefers-reduced-motion:reduce){body.pos-ui-modern #workspace .pos2-shortcut{transition:none}}
@media print{body.pos-ui-modern #workspace .pos2-dashboard-hero{background:#fff;color:#143a72}body.pos-ui-modern #workspace .pos2-nav-more{display:none}}

/* Legacy floating owner links live outside #workspace. Remove visual obstruction only. */
body.pos-ui-modern #workspace-shortcuts.pos2-legacy-shortcuts{display:none!important}

body.pos-ui-modern #workspace #overview #branchcards[hidden],body.pos-ui-modern #workspace #overview #pos2-assigned-branch-cards[hidden],body.pos-ui-modern #workspace #overview #industry-dashboard-shortcuts .pos-industry-links a[hidden]{display:none!important}
