:root{--g:#102957!important;--n:#102957!important;--p:#eaf1fb!important;--l:#cbd9ea!important;--b:#5f8fc7;--os-shell:1180px;--os-gap:12px;--os-radius:14px}
html{overflow-y:scroll;scrollbar-gutter:stable}body{font-size:14px;line-height:1.38;min-height:100vh}body>*{min-width:0}
.primary,.tab[aria-pressed=true]{background:#102957!important;color:#fff!important}.secondary{color:#102957!important;border-color:#102957!important}.pill{background:#eaf1fb!important}.metric strong,.money{color:#102957!important}
.shell{width:min(100%,var(--os-shell))!important;max-width:var(--os-shell)!important;margin:0 auto!important;padding:14px 18px!important}.top{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:62px;margin-bottom:12px!important;gap:12px!important}.top.card{min-height:76px}.top .os-brand{display:flex;align-items:center;gap:11px;min-width:220px}.top .os-brand img{display:block;width:48px!important;height:48px!important;object-fit:contain;flex:0 0 48px}.top .os-brand h1{font-size:1.18rem;line-height:1.05;margin:0}.top .os-brand p{font-size:.82rem;line-height:1.2;margin:4px 0 0;min-height:1em}.top>.actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:7px!important;flex-wrap:wrap!important;min-height:38px}.top>.actions .btn{padding:8px 11px!important;border-radius:9px!important;font-size:.88rem!important;white-space:nowrap}
.card{padding:14px!important;margin-bottom:12px!important;border-radius:var(--os-radius)!important}h1,h2,h3{margin-top:0}h2{font-size:1.18rem;margin-bottom:8px}h3{font-size:1rem;margin-bottom:6px}.field{margin:8px 0!important}label{margin-bottom:3px!important;font-size:.88rem}input,select,textarea{padding:8px 10px!important;border-radius:9px!important;min-height:38px}textarea{min-height:66px!important}.btn{padding:8px 11px!important;border-radius:9px!important;font-size:.88rem!important}.grid,.metrics,.form-grid,.row{gap:9px!important}.stat strong,.metric strong{font-size:1.5rem!important}.booking,.callout,.course{padding:10px 0!important;gap:12px!important}.tabs,.actions{gap:6px!important;margin-bottom:9px!important}.pill{padding:3px 7px!important;font-size:.75rem!important}table{width:100%}table th,table td{padding:7px 8px!important}p{margin:5px 0 9px}.status{min-height:18px!important;margin-top:6px!important}.login{margin:4vh auto!important}.permission-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.permission{display:flex;align-items:center;gap:7px;background:#eaf1fb;border-radius:9px;padding:6px;text-transform:capitalize}.permission input{width:auto;margin:0}.history-filters{margin-bottom:6px}
.os-global-nav{width:min(calc(100% - 36px),var(--os-shell));margin:10px auto 0;padding:7px;background:#fff;border:1px solid var(--l);border-radius:12px;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:thin;box-shadow:0 2px 10px rgba(16,41,87,.04);position:sticky;top:0;z-index:900}.os-global-nav[hidden]{display:none!important}.os-global-nav a{display:flex;align-items:center;justify-content:center;min-height:36px;padding:7px 10px;border-radius:8px;color:#526072;text-decoration:none;font-weight:800;font-size:.82rem;white-space:nowrap}.os-global-nav a:hover{background:#f3f6fa;color:#102957}.os-global-nav a.active{background:#102957;color:#fff}.os-global-nav .os-nav-spacer{flex:1 0 8px}.os-global-nav a.os-nav-secondary{background:#f6f8fb}.os-global-nav a.os-nav-secondary.active{background:#102957;color:#fff}
@media(max-width:850px){.top{flex-direction:row!important;align-items:center!important;flex-wrap:wrap!important}.top>.actions{width:auto!important}.permission-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){html{overflow-y:auto}.os-global-nav{display:none!important}.shell{padding:9px!important}.card{padding:11px!important}.top{min-height:54px;margin-bottom:9px!important}.top .os-brand{min-width:0}.top .os-brand img{width:42px!important;height:42px!important;flex-basis:42px}.top>.actions{width:100%!important;justify-content:flex-start!important;flex-direction:row!important;align-items:center!important}.top>.actions .btn{flex:0 0 auto;text-align:center}.permission-grid{grid-template-columns:1fr}}

/* Shared admin page shell — keep page identity and controls stable between screens. */
.os-page-header.top.card{box-sizing:border-box;display:grid!important;grid-template-columns:minmax(250px,1fr) minmax(0,auto);align-items:center!important;width:100%;height:78px!important;min-height:78px!important;padding:14px!important;margin:0 0 12px!important;background:#fff;border:1px solid var(--l);border-radius:var(--os-radius)!important}
.os-page-header .os-brand{display:flex!important;align-items:center!important;gap:11px!important;min-width:0!important}
.os-page-header .os-brand img{display:block;width:48px!important;height:48px!important;object-fit:contain;flex:0 0 48px}
.os-page-header .os-brand h1{margin:0!important;font-size:1.18rem!important;line-height:1.1!important}
.os-page-header .os-brand p{margin:4px 0 0!important;font-size:.82rem!important;line-height:1.2!important;min-height:1em}
.os-page-header>.actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:nowrap!important;gap:7px!important;min-width:0;max-width:100%;margin:0!important;overflow-x:auto;scrollbar-width:thin}
.os-page-header>.actions .btn{flex:0 0 auto;white-space:nowrap;text-decoration:none}.os-page-header>.actions .secondary{background:#fff!important;color:#102957!important;border:2px solid #102957!important}.os-page-header>.actions .primary{background:#102957!important;color:#fff!important}
@media(max-width:720px){.os-page-header.top.card{grid-template-columns:1fr;align-content:center!important;height:128px!important;min-height:128px!important;padding:11px!important;gap:8px!important}.os-page-header>.actions{width:100%!important;justify-content:flex-start!important}.os-page-header .os-brand img{width:42px!important;height:42px!important;flex-basis:42px}}

/* VIPOAP OS unified modern workspace */
:root{--os-shell:1180px;--os-ink:#102957;--os-blue:#2765a8;--os-sky:#eaf3ff;--os-surface:rgba(255,255,255,.92);--os-shadow:0 12px 34px rgba(16,41,87,.09)}
html{scrollbar-gutter:stable}
body{background:radial-gradient(circle at 12% 0%,#eef6ff 0,transparent 28rem),linear-gradient(180deg,#f8f5ef 0%,#f4f7fb 100%)!important;color:var(--os-ink)}
.shell{padding:20px 18px 40px!important}
.os-page-header.top.card{display:flex!important;justify-content:space-between!important;height:84px!important;min-height:84px!important;padding:14px 18px!important;margin:0 0 8px!important;border:1px solid rgba(95,143,199,.28)!important;border-radius:18px!important;background:linear-gradient(135deg,rgba(255,255,255,.98),rgba(239,246,255,.94))!important;box-shadow:var(--os-shadow)!important;overflow:visible}
.os-page-header .os-brand{color:var(--os-ink)!important;text-decoration:none!important}
.os-page-header .os-brand img{width:52px!important;height:52px!important;flex-basis:52px!important;filter:drop-shadow(0 5px 8px rgba(16,41,87,.12))}
.os-page-header .os-brand h1{font-size:1.3rem!important;letter-spacing:-.02em}
.os-page-header .os-brand p{font-size:.8rem!important;color:#5d6a7d!important}
.os-header-controls{display:flex;align-items:center;justify-content:flex-end;gap:9px;min-width:112px}
.os-portal-badge{display:inline-flex;align-items:center;min-height:34px;padding:7px 11px;border:1px solid #c7d8ec;border-radius:999px;background:#fff;color:#47617f;font-size:.76rem;font-weight:800;white-space:nowrap}
.os-install-slot:empty{display:none}.os-install-slot .os-install{min-height:36px;padding:7px 11px!important;border:0!important;border-radius:999px!important;background:linear-gradient(135deg,#102957,#2765a8)!important;color:#fff!important;box-shadow:0 6px 16px rgba(16,41,87,.2)}
.os-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:70px;padding:13px 5px 15px;margin-bottom:5px}
.os-page-heading h2{margin:0!important;font-size:clamp(1.35rem,2.4vw,1.8rem)!important;letter-spacing:-.025em}.os-page-heading p{margin:4px 0 0!important}.os-page-heading>.actions{display:flex;justify-content:flex-end;flex-wrap:wrap;margin:0!important}
.card:not(.os-page-header){border:1px solid rgba(95,143,199,.2)!important;border-radius:18px!important;background:var(--os-surface)!important;box-shadow:0 8px 24px rgba(16,41,87,.06)!important}
.btn{transition:transform .16s ease,box-shadow .16s ease,background .16s ease!important}.btn:hover{transform:translateY(-1px);box-shadow:0 7px 16px rgba(16,41,87,.13)}.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(39,101,168,.3)!important;outline-offset:2px}
input,select,textarea{border-color:#b9c9dc!important;background:#fff!important}input:focus,select:focus,textarea:focus{border-color:#2765a8!important;box-shadow:0 0 0 3px rgba(39,101,168,.1)!important}
.os-global-nav{top:8px!important;border-color:rgba(95,143,199,.24)!important;border-radius:14px!important;background:rgba(255,255,255,.88)!important;backdrop-filter:blur(14px);box-shadow:0 10px 25px rgba(16,41,87,.1)!important}
@media(max-width:720px){.shell{padding:10px 9px 92px!important}.os-page-header.top.card{height:76px!important;min-height:76px!important;padding:10px 12px!important;border-radius:15px!important}.os-page-header .os-brand img{width:44px!important;height:44px!important;flex-basis:44px!important}.os-page-header .os-brand h1{font-size:1.12rem!important}.os-page-header .os-brand p{font-size:.72rem!important}.os-portal-badge{display:none}.os-header-controls{min-width:0}.os-page-heading{align-items:flex-start;flex-direction:column;min-height:0;padding:14px 4px 12px;gap:10px}.os-page-heading>.actions{width:100%;justify-content:flex-start!important;flex-wrap:nowrap;overflow-x:auto;padding-bottom:2px}.card:not(.os-page-header){border-radius:15px!important}}

/* Unified authentication and workspace grouping */
.auth-shell>img,.auth-shell>h1,.auth-shell>p.muted{display:none!important}.auth-shell{max-width:520px!important;padding:24px!important}.auth-brand{display:flex;align-items:center;gap:13px;padding-bottom:17px;margin-bottom:17px;border-bottom:1px solid #dce5ef}.auth-brand img{width:58px!important;height:58px!important;object-fit:contain}.auth-brand h1{margin:0!important;font-size:1.45rem!important}.auth-brand p{margin:3px 0 0!important;color:#667085}.partner-login h2{margin-bottom:5px}.os-access-denied{max-width:620px;margin:12vh auto!important;padding:28px!important;text-align:center}.os-access-denied .pill{margin-bottom:12px}
