/* ============================================================
   ONEAPP Admin — design tokens (ported from the product prototype)
   ============================================================ */
:root{
  --bg:#F6F7FB;
  --surface:#FFFFFF;
  --surface-alt:#EFF1F8;
  --border:#E1E3F0;
  --text:#171833;
  --text-secondary:#666A8F;
  --text-faint:#9497B8;
  --navy:#221C68;
  --navy-deep:#15123F;
  --navy-text:#C7C6EC;
  --primary:#3730A3;
  --primary-hover:#2C2686;
  --primary-tint:#EDECFB;
  --accent:#F59E0B;
  --accent-ink:#7C4A05;
  --accent-tint:#FEF3DD;
  --success:#0F9D6B;
  --success-tint:#E1F6ED;
  --warning:#B45309;
  --warning-tint:#FEF3DD;
  --danger:#E11D48;
  --danger-tint:#FCE4EA;
  --info:#0E7C93;
  --info-tint:#E1F3F7;
  --radius-sm:8px;
  --radius-md:14px;
  --radius-lg:20px;
  --shadow-sm:0 1px 2px rgba(23,24,51,0.06);
  --shadow-md:0 8px 24px -8px rgba(23,24,51,0.18);
  --font-display:'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-body:'Poppins', ui-sans-serif, system-ui, sans-serif;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{background:var(--bg);color:var(--text);font-family:var(--font-body);font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased;}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--text);margin:0;}
p{margin:0;}
a{color:inherit;text-decoration:none;}
button{font-family:var(--font-body);cursor:pointer;}

/* ---------- Shell: sidebar + topbar + content ---------- */
.shell{display:flex;min-height:100vh;}
.sidebar{
  width:272px;flex-shrink:0;
  background:
    radial-gradient(120% 60% at 10% 100%, rgba(88,60,255,.55) 0%, rgba(88,60,255,0) 60%),
    linear-gradient(180deg,#090d38 0%,#11144b 42%,#1a1560 72%,#2a1c86 100%);
  color:var(--navy-text);
  display:flex;flex-direction:column;border-right:1px solid rgba(91,111,255,.10);
}
.sidebar-wordmark{padding:24px 20px 18px;font-family:var(--font-display);font-weight:900;color:#fff;font-size:22px;display:flex;align-items:center;gap:9px;letter-spacing:-.4px;}
.logo-o{
  width:30px;height:30px;display:inline-block;position:relative;flex:0 0 30px;border-radius:50%;
  background:conic-gradient(from 212deg,#18c8ff 0deg 52deg,transparent 52deg 58deg,#178cff 58deg 112deg,transparent 112deg 118deg,#4c55ff 118deg 174deg,transparent 174deg 180deg,#7c45ff 180deg 238deg,transparent 238deg 244deg,#c342ff 244deg 300deg,transparent 300deg 306deg,#18c8ff 306deg 360deg);
  box-shadow:0 0 12px rgba(42,151,255,.4),0 0 18px rgba(157,62,255,.18);
}
.logo-o::after{content:'';position:absolute;inset:6px;border-radius:50%;background:#0c103d;box-shadow:inset 0 0 7px rgba(85,100,255,.18);}
.logo-o::before{content:'';position:absolute;z-index:2;width:5px;height:5px;border-radius:50%;left:5px;top:5px;background:#8be8ff;box-shadow:0 0 6px #54dcff,0 0 12px rgba(63,206,255,.85);}
.logo-lines{display:flex;flex-direction:column;line-height:1.15;}
.logo-line1{font-size:19px;color:#fff;}
.logo-line2{font-size:19px;letter-spacing:-.3px;background:linear-gradient(90deg,#3a7bff 0%,#7c45ff 60%,#c342ff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;}
.sidebar-profile{margin:2px 14px 16px;padding:13px 10px 14px;display:flex;align-items:center;gap:10px;border-radius:14px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.07);}
.sidebar-profile .avatar{width:30px;height:30px;font-size:12px;flex:0 0 30px;background:linear-gradient(135deg,#0f73ef,#7730ef);border:1px solid rgba(255,255,255,.35);}
.sidebar-profile>div{min-width:0;}
.sidebar-profile-name{font-size:13px;font-weight:600;color:#fff;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sidebar-profile-role{font-size:13px;color:rgba(255,255,255,.72);margin-top:2px;}
.online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#20d79b;margin-right:4px;box-shadow:0 0 8px rgba(32,215,155,.55);}
.sidebar-scroll{flex:1;overflow-y:auto;padding:4px 12px 20px;}
.nav-group-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;background:none;border:none;cursor:pointer;font-family:var(--font-body);color:#fff;font-size:13px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;padding:14px 8px 8px 12px;}
.nav-group-toggle:hover{color:#c9c3ff;}
.nav-group-label{display:flex;align-items:center;gap:7px;white-space:nowrap;color:#fff;}
.nav-group-label .ic{width:19px;flex:0 0 19px;color:#fff;display:flex;align-items:center;justify-content:center;}
.nav-group-label .ic svg{width:18px;height:18px;}
.nav-group-arrow{font-size:12px;color:rgba(255,255,255,.55);}
.nav-group-items{display:flex;flex-direction:column;}
.nav-item{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:11px;font-size:13px;font-weight:400;color:#fff;margin-bottom:3px;border:none;background:transparent;width:100%;text-align:left;transition:.18s ease;}
.nav-item .ic{width:19px;flex:0 0 19px;text-align:center;font-size:15px;opacity:.95;display:flex;align-items:center;justify-content:center;color:#a48bfa;}
.nav-item .ic svg{width:18px;height:18px;}
.nav-item.active .ic{color:#fff;}
.nav-item:hover{background:rgba(255,255,255,.07);color:#fff;}
.nav-item.active{background:linear-gradient(90deg,#147cf0,#6b24ed);color:#fff;box-shadow:0 8px 24px rgba(45,75,220,.25);font-weight:800;}
.nav-item.active .ic{color:#fff;}
.nav-item:not(.nav-item-cta):not(.active){border-bottom:1px solid rgba(255,255,255,.06);}
/* .nav-item-cta reads as a distinct "special" action; hover and active both stay within the teal palette, never switching to the gradient pill. */
.nav-item-cta{border:1px solid rgba(45,224,196,.55);background:rgba(45,224,196,.08);color:#4fe8cf;font-weight:600;font-size:13px;line-height:1.25;}
.nav-item-cta:hover{background:rgba(45,224,196,.16);color:#4fe8cf;}
.nav-item-cta .ic{color:#4fe8cf;}
.nav-item-cta.active{background:rgba(45,224,196,.16);color:#4fe8cf;font-weight:700;border-color:rgba(45,224,196,.55);}
.nav-item-cta.active .ic{color:#4fe8cf;}
.nav-item-cta.active:hover{background:rgba(45,224,196,.16);}
.nav-item.soon{opacity:.5;cursor:default;}
.nav-item .soon-badge{margin-left:auto;font-size:10px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;background:rgba(255,255,255,.12);padding:2px 7px;border-radius:999px;}
.sidebar-bottom{margin-top:auto;padding:8px 0 0;border-top:1px solid rgba(255,255,255,.08);}
/* menu scroll area as a column: footer sits at the bottom when the menu is short, scrolls after the last item when it is long */
.sidebar-scroll{display:flex;flex-direction:column;}
.sidebar-scroll>*{flex-shrink:0;}
.sidebar-scroll>.sidebar-bottom{margin-top:auto;padding-top:22px;border-top:0;background:linear-gradient(rgba(255,255,255,.08),rgba(255,255,255,.08)) 0 14px/100% 1px no-repeat;}

/* ---------- Admin workspace switcher: slim "ONE APPS / ONE PLATFORM" rail on the sidebar's left edge ---------- */
.admin-mode-sidebar{overflow:hidden;padding:0;}
.admin-mode-sidebar .admin-mode-rail{
  width:46px;flex:0 0 46px;display:flex;flex-direction:column;align-items:stretch;padding-top:58px;box-sizing:border-box;
  background:linear-gradient(180deg,#13a9f4 0%,#1688f5 55%,#1674ee 100%);border-right:1px solid rgba(255,255,255,.18);
}
.admin-mode-sidebar .admin-mode-btn{
  width:46px;height:146px;padding:0;border:0;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;
  cursor:pointer;font:700 12px var(--font-body);letter-spacing:.8px;transition:background .18s ease,box-shadow .18s ease;
}
.admin-mode-sidebar .admin-mode-btn span{writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;}
.admin-mode-sidebar .admin-mode-btn.active{background:linear-gradient(180deg,#0d1d50,#111b4c);box-shadow:inset -1px 0 rgba(255,255,255,.12),0 7px 20px rgba(3,16,58,.26);border-radius:12px 0 0 12px;}
.admin-mode-sidebar{display:flex;flex-direction:row;}
.admin-mode-sidebar .admin-sidebar-core{flex:1;min-width:0;display:flex;flex-direction:column;min-height:100%;overflow-y:auto;}
.admin-mode-sidebar .sidebar-head{padding:19px 11px 13px;gap:8px;box-sizing:border-box;}
.admin-mode-sidebar .sidebar-brand-title{display:flex;align-items:baseline;gap:4px;min-width:0;white-space:nowrap;font-size:15px;font-weight:800;letter-spacing:-.35px;font-family:var(--font-display);}
.admin-mode-sidebar .sidebar-brand-one{color:#fff;}
.admin-mode-sidebar .sidebar-brand-accent{background:linear-gradient(90deg,#3487ff 0%,#6a55ff 48%,#c73cff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;}

.main{flex:1;min-width:0;display:flex;flex-direction:column;}
.topbar{height:64px;flex-shrink:0;background:var(--surface);border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 24px;gap:16px;}
.topbar h1{font-size:17px;font-weight:700;}
.crumbs{font-size:13px;color:var(--text-faint);}
.topbar-right{display:flex;align-items:center;gap:14px;margin-left:auto;}
.avatar{width:34px;height:34px;border-radius:999px;background:var(--primary);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;}
.content{flex:1;padding:26px;overflow-y:auto;}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 16px;border-radius:10px;font-size:14px;font-weight:600;border:1px solid transparent;}
.btn-ghost{background:transparent;color:var(--text);border-color:var(--border);}
.btn-ghost:hover{background:var(--surface-alt);}
.btn-sm{padding:7px 13px;font-size:13px;border-radius:8px;}

/* ============================================================
   Dashboard — ported "reference redesign" from the prototype
   ============================================================ */
.admin-dashboard{max-width:1116px;margin:0 auto;zoom:1.1;}
.ref-dashboard{margin-bottom:22px;}

.ref-hero{position:relative;overflow:hidden;isolation:isolate;height:300px;padding:38px 38px 0;border-radius:15px;color:#fff;box-shadow:0 8px 24px rgba(10,31,126,.18);
  background-image:linear-gradient(90deg,rgba(5,30,146,.96) 0%,rgba(7,42,169,.94) 38%,rgba(17,33,155,.78) 57%,rgba(19,34,155,.18) 100%),url('../images/dashboard-hero.jpg'),linear-gradient(110deg,#071b87 0%,#0a38c9 52%,#2712a8 100%);
  /* dashboard-hero.jpg has a light ~8px top / ~16px right / ~3px bottom margin baked in (screenshot crop).
     Oversize the photo and shift it so those margins fall outside the banner instead of showing as a grey band. */
  background-position:left top,105.1% 66.6%,left top;
  background-size:auto,60.04% 107.4%,auto;
  background-repeat:no-repeat,no-repeat,no-repeat;
}
.ref-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(255,255,255,.025),rgba(4,21,101,.10));pointer-events:none;}
.ref-hero-text{position:relative;z-index:3;width:56%;}
.ref-hero-welcome{font-size:15px;font-weight:600;letter-spacing:.1px;text-transform:uppercase;color:#fff;line-height:1.2;}
.ref-hero-name{display:flex;align-items:center;gap:11px;margin-top:7px;color:#fff;font-size:52px;font-weight:600;line-height:1.04;letter-spacing:-1.7px;}
.ref-hero-name .wave{font-size:38px;line-height:1;display:inline-block;transform:rotate(-8deg) translateY(2px);}
.ref-hero p{font-size:15px;opacity:1;margin-top:11px;color:#fff;font-weight:400;}
.ref-hero-date{display:flex;align-items:center;gap:9px;margin-top:16px;font-size:13px;font-weight:600;color:#fff;}
.ref-hero-date svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;}

.ref-hero-motion{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:1;}
.ref-hero-motion .motion-orb{position:absolute;width:58px;height:58px;border-radius:50%;border:1px solid rgba(255,255,255,.40);background:rgba(20,70,210,.10);box-shadow:0 0 24px rgba(62,155,255,.22),inset 0 0 16px rgba(255,255,255,.06);display:grid;place-items:center;color:rgba(255,255,255,.92);}
.ref-hero-motion .motion-orb svg{width:26px;height:26px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;}
.ref-hero-motion .orb-a{right:18%;top:19%;animation:heroFloatA 4.2s ease-in-out infinite;}
.ref-hero-motion .orb-b{right:8.5%;top:42%;width:68px;height:68px;animation:heroFloatB 5.1s ease-in-out infinite;}
.ref-hero-motion .orb-c{right:31%;top:39%;width:52px;height:52px;animation:heroFloatC 4.7s ease-in-out infinite;}
.ref-hero-motion .motion-particle{position:absolute;width:5px;height:5px;border-radius:50%;background:#7adfff;box-shadow:0 0 8px rgba(93,218,255,.95),0 0 15px rgba(103,125,255,.55);opacity:.35;animation:heroParticle 5s ease-in-out infinite;}
.ref-hero-motion .p1{left:55%;top:26%;animation-delay:-.3s}.ref-hero-motion .p2{left:61%;top:17%;animation-delay:-1.1s}
.ref-hero-motion .p3{left:68%;top:35%;animation-delay:-2.4s}.ref-hero-motion .p4{left:73%;top:21%;animation-delay:-3.0s}
.ref-hero-motion .p5{left:79%;top:31%;animation-delay:-1.8s}.ref-hero-motion .p6{left:85%;top:18%;animation-delay:-.8s}
.ref-hero-motion .p7{left:90%;top:34%;animation-delay:-2.8s}.ref-hero-motion .p8{left:64%;top:54%;animation-delay:-4.1s}
.ref-hero-motion .p9{left:76%;top:58%;animation-delay:-1.5s}.ref-hero-motion .p10{left:87%;top:60%;animation-delay:-3.4s}
.ref-hero-motion .motion-sweep{position:absolute;top:-18%;bottom:-18%;left:49%;width:16%;background:linear-gradient(90deg,transparent,rgba(88,202,255,.12),transparent);transform:skewX(-18deg) translateX(-180%);filter:blur(1px);animation:heroSweep 7s ease-in-out infinite;}
@keyframes heroFloatA{0%,100%{transform:translate(0,0)}50%{transform:translate(-8px,10px)}}
@keyframes heroFloatB{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(7px,-11px) scale(1.035)}}
@keyframes heroFloatC{0%,100%{transform:translate(0,0)}50%{transform:translate(-6px,-9px)}}
@keyframes heroParticle{0%,100%{transform:translate(0,0) scale(.65);opacity:.20}45%{opacity:1}55%{transform:translate(10px,-14px) scale(1.35);opacity:.9}}
@keyframes heroSweep{0%,22%{transform:skewX(-18deg) translateX(-180%);opacity:0}35%{opacity:1}70%,100%{transform:skewX(-18deg) translateX(430%);opacity:0}}
@media (prefers-reduced-motion:reduce){.ref-hero-motion *{animation:none!important;}}

.ref-alert-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:-92px 22px 20px;position:relative;z-index:2;}
.ref-attention-card,.ref-today-card{border-radius:14px;color:#fff;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 8px 20px rgba(0,0,0,.16);}
.ref-attention-card{background:linear-gradient(155deg,#ed0e29 0%,#e80024 58%,#d0001f 100%);}
.ref-today-card{background:linear-gradient(145deg,#ffb72b 0%,#ffc235 60%,#ffad10 100%);color:#111;}
.ref-card-top{min-height:56px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.18);}
.ref-today-card .ref-card-top{border-bottom-color:rgba(104,72,0,.14);}
.ref-card-head{display:flex;align-items:center;gap:12px;min-width:0;}
.ref-card-ic{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#fff;color:#d80c25;box-shadow:0 2px 8px rgba(0,0,0,.08);flex:0 0 38px;}
.ref-today-card .ref-card-ic{color:#e79a08;}
.ref-card-ic svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.ref-card-head h3{font-size:16px;font-weight:800;text-transform:uppercase;letter-spacing:.2px;white-space:nowrap;color:inherit;}
.ref-card-total{min-width:46px;height:36px;padding:0 12px;border-radius:9px;display:grid;place-items:center;font-size:18px;font-weight:800;line-height:1;background:#fff;color:#c81846;}
.ref-today-card .ref-card-total{color:#111;}
.ref-alert-list{display:flex;flex-direction:column;padding:2px 20px;}
.ref-alert-item{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.16);cursor:pointer;}
.ref-today-card .ref-alert-item{border-bottom-color:rgba(109,78,5,.14);}
.ref-alert-item:last-child{border-bottom:0;}
.ref-row-icon{width:34px;height:34px;border-radius:9px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#ff247b,#f0125b);flex:0 0 34px;}
.ref-row-icon.orange{background:linear-gradient(135deg,#ff991e,#ffb31e);}
.ref-row-icon.purple{background:linear-gradient(135deg,#8d1dff,#4417ff);}
.ref-row-icon svg{width:17px;height:17px;stroke:#fff;fill:none;stroke-width:2;}
.ref-row-num{font-size:26px;font-weight:700;min-width:30px;text-align:center;}
.ref-row-copy{min-width:0;flex:1;line-height:1.2;}
.ref-row-copy strong{display:block;font-size:16px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ref-row-copy small{display:block;font-size:12px;font-weight:500;opacity:.9;margin-top:2px;}
.ref-row-arrow{font-size:20px;font-weight:300;opacity:.9;}
.ref-alert-empty{padding:14px 0;font-size:13px;opacity:.85;}
.ref-card-cta{margin-top:auto;border:0;padding:12px 20px;background:rgba(158,0,20,.26);color:#fff;text-align:left;font-size:12px;font-weight:800;letter-spacing:.2px;cursor:pointer;}
.ref-today-card .ref-card-cta{background:rgba(255,151,0,.40);color:#111;}
.ref-card-cta .cta-arrow{display:inline-block;margin-left:6px;transition:transform .2s ease;}
.ref-card-cta{position:relative;overflow:hidden;transition:background .2s ease,padding-left .2s ease,letter-spacing .2s ease;font-family:var(--font-body);}
.ref-card-cta:hover{background:rgba(120,0,15,.5);padding-left:26px;letter-spacing:.35px;}
.ref-card-cta:hover .cta-arrow{transform:translateX(6px);}
.ref-card-cta:active{background:rgba(90,0,10,.62);}
.ref-card-cta:active .cta-arrow{transform:translateX(9px);}
.ref-card-cta:focus-visible{outline:2px solid #fff;outline-offset:-3px;}
.ref-today-card .ref-card-cta:hover{background:rgba(255,140,0,.72);}
.ref-today-card .ref-card-cta:active{background:rgba(235,120,0,.88);}
.ref-today-card .ref-card-cta:focus-visible{outline-color:#111;}

.ref-operation-panel{background:#fff;border:1px solid #edf0f5;border-radius:15px;padding:12px 16px 16px;margin-bottom:20px;box-shadow:0 5px 18px rgba(28,43,72,.08);}
.ref-operation-head{padding:0 0 10px;}
.ref-section-title{margin:0;color:#101735;font-size:18px;font-weight:700;letter-spacing:-.2px;text-transform:uppercase;}
.ref-section-subtitle{font-size:12px;font-weight:500;color:#6b7290;margin-top:2px;}
.ref-module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;}
.ref-module-card{position:relative;min-width:0;min-height:170px;padding:14px 14px 12px;border:0;border-radius:12px;overflow:hidden;color:#fff;cursor:pointer;text-align:left;display:flex;flex-direction:column;gap:12px;font-family:inherit;}
.ref-module-card:before{content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(circle at 87% 18%,rgba(255,255,255,.18) 0 1px,transparent 2px),linear-gradient(120deg,transparent 58%,rgba(255,255,255,.07) 58.5%,transparent 59%),linear-gradient(60deg,transparent 72%,rgba(255,255,255,.06) 72.5%,transparent 73%);
  background-size:14px 14px,42px 42px,50px 50px;
  opacity:.65;
}
.ref-module-card>*{position:relative;z-index:1;}
.ref-mod-green{background:linear-gradient(145deg,#0aaa45 0%,#008733 100%);}
.ref-mod-purple{background:linear-gradient(145deg,#7200cf 0%,#4900a7 100%);}
.ref-mod-orange{background:linear-gradient(145deg,#ff5a12 0%,#f04400 100%);}
.ref-mod-blue{background:linear-gradient(145deg,#1154d9 0%,#0037b4 100%);}
.ref-mod-head{display:flex;align-items:center;gap:11px;min-width:0;}
.ref-mod-ic{width:38px;height:38px;flex:0 0 38px;border-radius:50%;display:grid;place-items:center;background:#fff;font-size:19px;box-shadow:0 3px 8px rgba(0,0,0,.18);}
.ref-mod-name{font-size:14px;font-weight:600;letter-spacing:.1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ref-mod-stats{display:grid;grid-template-columns:1fr 1fr;gap:9px;}
.ref-mod-stats>div{min-width:0;height:50px;padding:0 10px;border-radius:8px;background:#fff;display:flex;align-items:center;gap:9px;box-shadow:0 4px 8px rgba(0,0,0,.18);}
.ref-mod-stats b{font-size:28px;font-weight:900;line-height:1;}
.ref-mod-stats span{font-size:11px;font-weight:600;color:#131313;}
.ref-mod-green .ref-mod-stats b{color:#078b39;}
.ref-mod-purple .ref-mod-stats b{color:#4e1797;}
.ref-mod-orange .ref-mod-stats b{color:#ef4e0b;}
.ref-mod-blue .ref-mod-stats b{color:#1248bd;}
.ref-mod-cta{margin-top:auto;min-height:34px;padding:0 12px;border-radius:7px;background:linear-gradient(90deg,#b6e600 0%,#d4ef00 100%);color:#244300;display:flex;align-items:center;justify-content:center;gap:16px;font-size:12px;font-weight:500;}
.ref-module-card.is-soon{opacity:.55;cursor:default;}

.ref-split-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:16px;margin-bottom:20px;align-items:stretch;}
.ref-progress-card,.ref-calendar-card{background:#fff;border:1px solid #dfe4ec;border-radius:10px;box-shadow:0 3px 10px rgba(24,39,75,.08);overflow:hidden;display:flex;flex-direction:column;}
.ref-pc-head{padding:16px 18px 14px;border-bottom:1px solid #e8ebf1;display:flex;justify-content:space-between;align-items:flex-start;gap:14px;}
.ref-pc-title{font-size:17px;font-weight:700;color:#0a1028;letter-spacing:-.2px;text-transform:uppercase;margin:0;}
.ref-pc-sub{font-size:12px;color:#6b7290;margin-top:5px;font-weight:500;}
.ref-pc-viewall{border:1px solid #d7e4da;background:#fff;color:#0a742f;border-radius:7px;height:32px;padding:0 12px;font-size:10px;font-weight:650;text-transform:uppercase;display:inline-flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer;}

.ref-programme-list{padding:8px 18px 16px;flex:1;display:flex;flex-direction:column;gap:14px;justify-content:center;}
.ref-programme-row{display:grid;grid-template-columns:42px minmax(0,1.5fr) 46px minmax(100px,1fr) 76px;gap:12px;align-items:center;}
.ref-programme-ico{width:38px;height:38px;border-radius:11px;display:flex;align-items:center;justify-content:center;color:#fff;box-shadow:0 3px 8px rgba(20,33,70,.12);}
.ref-programme-ico svg{width:58%;height:58%;stroke:currentColor;fill:none;stroke-width:1.9;}
.ref-programme-row:nth-child(4n+1) .ref-programme-ico{background:#07953f;}
.ref-programme-row:nth-child(4n+2) .ref-programme-ico{background:#6e00e8;}
.ref-programme-row:nth-child(4n+3) .ref-programme-ico{background:#ff7200;}
.ref-programme-row:nth-child(4n+4) .ref-programme-ico{background:#075de4;}
.ref-programme-copy{min-width:0;}
.ref-programme-name{font-size:13px;font-weight:550;color:#0b1028;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ref-programme-batch{font-size:10.5px;font-weight:400;color:#6b7290;line-height:1.2;margin-top:3px;}
.ref-programme-pct{font-size:14px;font-weight:500;color:#0b1028;text-align:right;}
.ref-programme-track{height:9px;border-radius:99px;background:#e9eaf0;overflow:hidden;}
.ref-programme-fill{height:100%;border-radius:99px;background:#087c32;}
.ref-programme-row:nth-child(4n+2) .ref-programme-fill{background:#7200ef;}
.ref-programme-row:nth-child(4n+3) .ref-programme-fill{background:#ff7900;}
.ref-programme-row:nth-child(4n+4) .ref-programme-fill{background:#0d57e8;}
.ref-programme-state{font-size:9.5px;font-weight:600;color:#202638;display:flex;align-items:center;gap:6px;white-space:nowrap;}
.ref-programme-state:before{content:"";width:7px;height:7px;border-radius:50%;background:#139647;flex:0 0 auto;}
.ref-programme-row.is-risk .ref-programme-state{color:#df6600;}
.ref-programme-row.is-risk .ref-programme-state:before{background:#ff7900;}
.ref-programme-row.is-done .ref-programme-state{color:#163e94;}
.ref-programme-row.is-done .ref-programme-state:before{background:#0d57e8;}
.ref-programme-empty{padding:20px;text-align:center;color:#6b7290;font-size:13px;}

.ref-cal-tabs{display:flex;border:1px solid #dce1e9;border-radius:7px;overflow:hidden;background:#fff;height:34px;flex:0 0 auto;}
.ref-cal-tabs button{min-width:88px;height:100%;border:0;background:#fff;color:#0b1028;font-size:10px;font-weight:800;cursor:pointer;}
.ref-cal-tabs button.active{background:#0b43d9;color:#fff;}
.ref-cal-body{padding:14px 18px 18px;flex:1;display:flex;flex-direction:column;}
.ref-cal-body.hidden{display:none;}
.ref-cal-monthbar{display:flex;align-items:center;justify-content:center;gap:20px;margin-bottom:10px;}
.ref-cal-monthbar a{border:0;background:transparent;color:#0b1028;font-size:20px;line-height:1;padding:0 4px;cursor:pointer;}
.ref-cal-monthlabel{font-size:12px;font-weight:700;color:#0b1028;text-transform:uppercase;letter-spacing:-.1px;}
.ref-cal-table{display:grid;grid-template-columns:repeat(7,1fr);border-left:1px solid #dfe4ec;border-top:1px solid #dfe4ec;}
.ref-cal-dow,.ref-cal-cell{border-right:1px solid #dfe4ec;border-bottom:1px solid #dfe4ec;box-sizing:border-box;}
.ref-cal-dow{display:flex;align-items:center;justify-content:center;padding:6px 0;font-size:9.5px;font-weight:900;color:#0b1028;text-transform:uppercase;background:#fff;}
.ref-cal-cell{position:relative;display:flex;align-items:center;justify-content:center;min-height:34px;font-size:11px;font-weight:400;color:#11172d;background:#fff;}
.ref-cal-cell.other{color:#c3c8d6;}
.ref-cal-cell.has-event{font-weight:700;}
a.ref-cal-cell,button.ref-cal-cell{text-decoration:none;font-family:inherit;border-top:0;border-left:0;border-radius:0;padding:0;cursor:pointer;}
a.ref-cal-cell:hover,button.ref-cal-cell:hover{background:#eef3ff;}
.ref-cal-eventico{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);width:16px;height:16px;border-radius:5px;background:#119a48;color:#fff;display:flex;align-items:center;justify-content:center;}
.ref-cal-eventico svg{width:10px;height:10px;stroke:currentColor;fill:none;stroke-width:2.5;}
.ref-cal-footer{margin-top:12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;}
.ref-cal-legend{display:flex;align-items:center;gap:8px;font-size:9.5px;color:#0b1028;font-weight:700;}
.ref-cal-chip{border-radius:5px;padding:4px 9px;font-size:9px;font-weight:700;background:#e2f5e8;color:#087a36;}

.ref-eventlist-body{padding:4px 2px 2px;flex:1;display:flex;flex-direction:column;overflow:auto;}
.ref-event-row{display:grid;grid-template-columns:54px 34px minmax(0,1fr) 18px;align-items:center;column-gap:12px;border:1px solid #dce4f2;border-radius:9px;padding:8px 10px;margin-bottom:6px;background:#fff;}
.ref-event-row.is-today{border-color:#b9c9ff;box-shadow:inset 3px 0 0 #244bea;background:#fbfcff;}
.ref-event-date{text-align:center;color:#0b2457;line-height:1;}
.ref-event-date b{display:block;font-size:17px;font-weight:700;}
.ref-event-date span{display:block;font-size:10px;font-weight:700;margin-top:2px;}
.ref-event-round{width:30px;height:30px;border-radius:50%;background:#e9efff;color:#1559e8;display:flex;align-items:center;justify-content:center;}
.ref-event-round svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;}
.ref-event-main{min-width:0;}
.ref-event-title{font-size:13px;font-weight:700;color:#0b2457;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ref-event-meta{font-size:11px;color:#66718a;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ref-event-arrow{font-size:20px;color:#29416f;}
.ref-eventlist-empty{padding:40px 16px;text-align:center;color:#8a91aa;font-size:13px;}

/* ---------- Today's Team Performance ---------- */
.ref-team-card{background:#fff;border:1px solid #dfe4ec;border-radius:16px;padding:20px 22px 18px;margin-bottom:22px;box-shadow:0 3px 10px rgba(24,39,75,.06);}
.ref-team-headrow{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-bottom:18px;}
.ref-team-headrow h3{font-size:25px;font-weight:650;letter-spacing:-.25px;}
.ref-team-subtitle{font-size:14px;font-weight:400;color:#6b7290;margin-top:4px;}
.ref-team-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.ref-perf-toggle{display:flex;border:1px solid #e2e6ef;border-radius:8px;overflow:hidden;background:#fff;}
.ref-perf-toggle button{min-width:80px;height:34px;padding:0 14px;font-size:12px;font-weight:600;border:none;background:#fff;color:#6b7290;cursor:pointer;}
.ref-perf-toggle button.active{background:linear-gradient(135deg,#7213da,#4c00bd);color:#fff;}
.ref-team-detail-btn{height:34px;padding:0 14px;border-radius:8px;border:1px solid #7c3dfa;color:#7c3dfa;font-weight:550;font-size:12px;background:#fff;white-space:nowrap;cursor:pointer;}
.ref-team-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px;}
.ref-team-kpi{border-radius:12px;padding:14px 16px;display:flex;align-items:center;gap:12px;color:#fff;min-height:70px;}
.ref-team-kpi-ic{width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;flex:0 0 42px;}
.ref-team-kpi-ic svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.ref-team-kpi-v{font-size:29px;font-weight:500;line-height:1;}
.ref-team-kpi-l{font-size:13px;font-weight:450;opacity:1;margin-top:3px;}
.ref-team-kpi.kpi-t-purple{background:linear-gradient(135deg,#6810d4 0%,#4d00b8 100%);}
.ref-team-kpi.kpi-t-blue{background:linear-gradient(135deg,#1655e8 0%,#003db9 100%);}
.ref-team-kpi.kpi-t-green{background:linear-gradient(135deg,#09ac55 0%,#07883c 100%);}
.ref-team-kpi.kpi-t-orange{background:linear-gradient(135deg,#ff5b14 0%,#f0220a 100%);}
.ref-team-status-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:2px 0 12px;}
.ref-team-status-head h4{font-size:13px;font-weight:600;text-transform:uppercase;letter-spacing:.3px;color:#101735;}
.ref-team-legend{display:flex;gap:16px;font-size:12px;font-weight:400;color:#6b7290;}
.ref-team-legend span{display:inline-flex;align-items:center;gap:6px;}
.ref-team-legend i{width:8px;height:8px;border-radius:50%;display:inline-block;}
.ref-team-legend .lg-done{background:#159a56;}
.ref-team-legend .lg-progress{background:#e0930a;}
.ref-team-legend .lg-overdue{background:#e0273d;}
.ref-team-table{width:100%;border-collapse:collapse;}
.ref-team-table th{font-size:12px;font-weight:550;text-transform:uppercase;letter-spacing:.3px;color:#6b7290;text-align:left;padding:8px 12px;background:#f7f8fc;}
.ref-team-table td{font-size:13px;font-weight:400;padding:12px;border-top:1px solid var(--border);vertical-align:middle;}
.ref-team-staff-name{font-weight:550;font-size:15px;}
.ref-team-staff-role{font-size:13px;font-weight:400;color:#6b7290;margin-top:2px;}
.ref-team-progress-cell{display:flex;align-items:center;gap:12px;}
.ref-team-progress-cell .ref-progress-bar-wrap{flex:1;max-width:220px;height:8px;border-radius:999px;background:#e8ebf2;overflow:hidden;}
.ref-team-progress-cell .ref-progress-bar{height:100%;border-radius:999px;}
.bar-done{background:#159a56;}.bar-progress{background:#e0930a;}.bar-overdue{background:#e0273d;}
.ref-team-progress-pct{font-size:14px;font-weight:500;color:#101735;white-space:nowrap;}
.ref-team-status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:999px;font-size:12px;font-weight:550;white-space:nowrap;}
.ref-team-status-pill.st-done{background:#e3f9ec;color:#159a56;}
.ref-team-status-pill.st-progress{background:#fff2df;color:#b5760a;}
.ref-team-status-pill.st-overdue{background:#fde3e6;color:#c81846;}
@media(max-width:720px){.ref-team-kpis{grid-template-columns:1fr 1fr;}.ref-team-table{display:block;overflow-x:auto;}}
.ref-cal-all{border:0;background:transparent;color:#0b43d9;font-size:10px;font-weight:900;text-transform:uppercase;cursor:pointer;}

@media(max-width:980px){.ref-module-grid{grid-template-columns:1fr 1fr;}.ref-split-grid{grid-template-columns:1fr;}}
@media(max-width:720px){.shell{display:block;}.sidebar{width:100%;height:auto;}.ref-alert-row{grid-template-columns:1fr;margin:0 0 16px;}.ref-module-grid{grid-template-columns:1fr;}.ref-programme-row{grid-template-columns:36px minmax(0,1fr) 42px;}.ref-programme-track,.ref-programme-state{display:none;}.content{padding:16px;}.ref-hero{height:auto;min-height:230px;padding:24px 20px;}.ref-hero-text{width:100%;}.ref-hero-motion{display:none;}}

/* ============================================================
   Login page (ported "neon" login card from the prototype)
   ============================================================ */
.login-demo-stage{
  min-height:100vh;display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden;padding:34px 18px;
  background:
    radial-gradient(ellipse 52% 48% at 22% 50%,rgba(0,130,255,.34) 0%,rgba(20,48,210,.20) 38%,transparent 72%),
    radial-gradient(ellipse 48% 54% at 82% 44%,rgba(126,24,255,.42) 0%,rgba(91,25,218,.22) 40%,transparent 74%),
    radial-gradient(ellipse 70% 65% at 50% 45%,rgba(24,61,205,.18) 0%,transparent 68%),
    linear-gradient(135deg,#030b35 0%,#07134d 36%,#080d42 62%,#160452 100%);
}
.login-demo-stage::before,.login-demo-stage::after{content:"";position:absolute;inset:-18%;pointer-events:none;border-radius:50%;border:1px solid rgba(91,96,255,.18);transform:rotate(-12deg);}
.login-demo-stage::after{inset:-8%;border-style:dashed;border-color:rgba(129,113,255,.22);transform:rotate(18deg);}
.login-demo-orbit{position:absolute;width:780px;height:780px;border-radius:50%;border:1px solid rgba(80,95,255,.22);box-shadow:0 0 70px rgba(37,99,235,.10);}
.login-demo-orbit::before,.login-demo-orbit::after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(132,128,224,.17);inset:72px;}
.login-demo-orbit::after{inset:150px;border-style:dashed;}
.login-demo-card{width:min(100%,560px);position:relative;padding:3px;border-radius:30px;z-index:2;background:rgba(33,45,125,.92);box-shadow:0 0 20px rgba(44,151,255,.30),0 0 48px rgba(105,54,255,.20),0 22px 70px rgba(0,0,0,.40);}
.login-demo-card::before{content:"";position:absolute;inset:-4px;border-radius:34px;z-index:-2;background:linear-gradient(120deg,rgba(31,183,255,.72),rgba(83,70,255,.55),rgba(210,52,255,.72),rgba(31,183,255,.72));filter:blur(9px);opacity:.55;}
.login-energy-border{position:absolute;inset:-2px;width:calc(100% + 4px);height:calc(100% + 4px);z-index:3;pointer-events:none;overflow:visible;}
.login-energy-border .energy-base{fill:none;stroke:rgba(95,125,255,.28);stroke-width:1.6;}
.login-energy-border .energy-glow{fill:none;stroke:url(#loginEnergyGradient);stroke-width:11;stroke-linecap:round;stroke-dasharray:175 1925;filter:url(#loginEnergyBlur);opacity:.78;animation:loginEnergyMove 7s linear infinite;}
.login-energy-border .energy-hot{fill:none;stroke:url(#loginEnergyGradient);stroke-width:4.2;stroke-linecap:round;stroke-dasharray:78 2022;filter:drop-shadow(0 0 5px rgba(55,220,255,1)) drop-shadow(0 0 12px rgba(190,66,255,.9));animation:loginEnergyMove 7s linear infinite;}
.login-demo-inner{position:relative;border-radius:27px;padding:38px 54px 32px;background:rgba(10,13,62,.96);color:#fff;border:1px solid rgba(255,255,255,.08);backdrop-filter:blur(16px);overflow:hidden;}
.login-demo-inner::before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 50% 0%,rgba(72,91,255,.20),transparent 42%);pointer-events:none;}
.login-demo-logo{display:flex;justify-content:center;align-items:center;position:relative;z-index:1;margin-bottom:7px;}
.login-demo-brand{display:block;width:280px;max-width:100%;height:auto;filter:drop-shadow(0 0 18px rgba(80,110,255,.25));}
.login-demo-wordmark{display:inline-flex;align-items:center;gap:8px;font-family:var(--font-display);font-size:43px;line-height:1;font-weight:850;letter-spacing:-1.2px;color:#fff;}
.login-demo-wordmark .logo-o{width:49px;height:49px;flex:0 0 49px;transform:translateY(-1px);}
.login-demo-wordmark .logo-o::after{inset:10px;}
.login-demo-wordmark .logo-rest{background:linear-gradient(90deg,#fff 0%,#fff 49%,#9b55ff 70%,#d83cff 100%);-webkit-background-clip:text;background-clip:text;color:transparent;}
.login-demo-tagline{text-align:center;color:#b9c2ee;font-size:13px;letter-spacing:.9px;position:relative;z-index:1;}
.login-demo-welcome{text-align:center;margin:26px 0 24px;position:relative;z-index:1;}
.login-demo-welcome h2{color:#fff;font-size:32px;line-height:1.1;margin-bottom:7px;}
.login-demo-welcome p{color:#aeb7df;margin:0;font-size:14px;}
.login-demo-form{position:relative;z-index:1;}
.login-demo-form .field{display:flex;flex-direction:column;gap:7px;margin-bottom:14px;}
.login-demo-form .field label{color:#fff;font-weight:600;font-size:14px;}
.login-demo-input-wrap{position:relative;}
.login-demo-input-wrap .login-icon{position:absolute;left:17px;top:50%;transform:translateY(-50%);color:#dce2ff;font-size:17px;z-index:2;}
.login-demo-input-wrap input{height:56px;width:100%;padding-left:52px;padding-right:50px;background:rgba(16,20,82,.72);color:#fff;border:1px solid rgba(152,163,255,.36);border-radius:12px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);font-size:14px;font-family:var(--font-body);}
.login-demo-input-wrap input::placeholder{color:#aab2d6;}
.login-demo-input-wrap input:focus{border-color:#6d8dff;box-shadow:0 0 0 3px rgba(77,111,255,.18),0 0 18px rgba(70,100,255,.10);outline:none;}
.login-demo-input-wrap .password-toggle{position:absolute;right:16px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#dce2ff;font-size:18px;cursor:pointer;padding:5px;}
.login-demo-primary{height:56px;width:100%;border:0;border-radius:10px;color:#fff;font-family:var(--font-display);font-weight:700;font-size:15px;background:linear-gradient(100deg,#1499ff,#4d39ff 58%,#a62bff);box-shadow:0 10px 24px rgba(62,72,255,.28);cursor:pointer;margin-top:2px;}
.login-demo-primary:hover{filter:brightness(1.06);}
.login-demo-error{position:relative;z-index:1;background:rgba(225,29,72,.16);border:1px solid rgba(225,29,72,.4);color:#ffd7de;border-radius:10px;padding:11px 14px;font-size:13px;margin-bottom:16px;}
.login-demo-hint{position:relative;z-index:1;text-align:center;margin-top:18px;font-size:12px;color:#8bb8ff;}
@keyframes loginEnergyMove{from{stroke-dashoffset:0;}to{stroke-dashoffset:-2100;}}
@media(max-width:600px){.login-demo-inner{padding:32px 26px 28px;}.login-demo-wordmark{font-size:34px;}.login-demo-brand{width:230px;}}

/* ============================================================
   Admin CRUD screens — page head, cards, tables, forms, badges
   ============================================================ */
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap;}
.page-head h2{font-size:22px;font-weight:800;letter-spacing:-.4px;}
.page-head p{font-size:13px;color:var(--text-faint);margin-top:4px;}
.page-actions{display:flex;gap:10px;flex-wrap:wrap;}

.btn-primary{background:var(--primary);color:#fff;border-color:var(--primary);}
.btn-primary:hover{background:var(--primary-hover);}
.btn-danger{background:var(--danger-tint);color:var(--danger);border-color:transparent;}
.btn-danger:hover{background:var(--danger);color:#fff;}
.btn-outline{background:transparent;color:var(--primary);border-color:var(--primary);}

.filter-bar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px;align-items:center;}
.filter-bar input,.filter-bar select{padding:9px 12px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:13px;font-family:var(--font-body);}
.filter-bar input[type="text"],.filter-bar input[type="search"]{min-width:220px;}

.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);}
.card-pad{padding:20px;}
.stat-row{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px;}
.stat-mini{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:14px 16px;}
.stat-mini .lbl{font-size:11px;text-transform:uppercase;letter-spacing:.4px;color:var(--text-faint);font-weight:700;}
.stat-mini .val{font-size:22px;font-weight:900;margin-top:4px;}
@media(max-width:900px){.stat-row{grid-template-columns:repeat(2,1fr);}}

.table-wrap{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:var(--surface);overflow-x:auto;}
table{width:100%;border-collapse:collapse;font-size:13px;}
thead th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-faint);padding:12px 14px;border-bottom:1px solid var(--border);white-space:nowrap;background:var(--surface-alt);}
tbody td{padding:12px 14px;border-bottom:1px solid var(--border);vertical-align:middle;}
tbody tr:last-child td{border-bottom:none;}
tbody tr:hover{background:var(--surface-alt);}
.cell-title{font-weight:700;color:var(--text);}
.cell-sub{font-size:12px;color:var(--text-faint);margin-top:2px;}
.row-actions{display:flex;gap:6px;justify-content:flex-end;}
.row-actions form{display:inline;}

.badge{display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap;text-transform:capitalize;}
.badge-success{background:var(--success-tint);color:var(--success);}
.badge-warning{background:var(--warning-tint);color:var(--warning);}
.badge-danger{background:var(--danger-tint);color:var(--danger);}
.badge-info{background:var(--info-tint);color:var(--info);}
.badge-neutral{background:var(--surface-alt);color:var(--text-secondary);}
.badge-accent{background:var(--accent-tint);color:var(--accent-ink);}

.empty{text-align:center;padding:48px 20px;color:var(--text-secondary);}
.empty .icon{font-size:32px;margin-bottom:10px;}

.form-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:24px;max-width:760px;}
.field{display:flex;flex-direction:column;gap:5px;margin-bottom:16px;}
.field label{font-size:13px;font-weight:700;color:var(--text-secondary);}
.field input,.field select,.field textarea{font-family:var(--font-body);padding:10px 12px;border-radius:9px;border:1px solid var(--border);background:var(--surface);color:var(--text);font-size:14px;width:100%;}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:var(--primary);}
.field textarea{min-height:90px;resize:vertical;}
.field-error{color:var(--danger);font-size:12px;}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:14px;}
.field-row-3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px;}
@media(max-width:640px){.field-row,.field-row-3{grid-template-columns:1fr;}}
.form-foot{display:flex;gap:10px;margin-top:6px;}

.tabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin-bottom:20px;flex-wrap:wrap;}
.tab-btn{padding:10px 16px;border:none;background:none;font-size:13px;font-weight:700;color:var(--text-secondary);border-bottom:2px solid transparent;margin-bottom:-1px;}
.tab-btn.active{color:var(--primary);border-bottom-color:var(--primary);}

.pagination-wrap{margin-top:16px;font-size:13px;}
.pagination-wrap nav ul{display:flex;gap:4px;list-style:none;padding:0;margin:0;flex-wrap:wrap;}
.pagination-wrap a,.pagination-wrap span{display:inline-flex;align-items:center;justify-content:center;min-width:30px;height:30px;padding:0 8px;border-radius:8px;border:1px solid var(--border);color:var(--text-secondary);font-size:12px;}
.pagination-wrap .active span{background:var(--primary);border-color:var(--primary);color:#fff;}

.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;}
.gallery-card{border:1px solid var(--border);border-radius:14px;overflow:hidden;background:var(--surface);}
.gallery-card img{width:100%;height:140px;object-fit:cover;display:block;background:var(--surface-alt);}
.gallery-card .gc-body{padding:12px 14px;}
.gallery-card .gc-title{font-weight:700;font-size:13px;}
.gallery-card .gc-sub{font-size:12px;color:var(--text-faint);margin-top:2px;}

.testimonial-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;}
.testimonial-card{border:1px solid var(--border);border-radius:14px;padding:18px;background:var(--surface);}
.testimonial-card .tc-quote{font-size:13px;color:var(--text-secondary);line-height:1.55;}
.testimonial-card .tc-foot{display:flex;align-items:center;justify-content:space-between;margin-top:14px;}
.testimonial-card .tc-name{font-weight:700;font-size:13px;}
.testimonial-card .tc-programme{font-size:12px;color:var(--text-faint);}
.tc-stars{color:var(--accent);font-size:13px;}

.trainer-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;}
.trainer-card{border:1px solid var(--border);border-radius:14px;padding:18px;background:var(--surface);display:flex;flex-direction:column;gap:10px;}
.trainer-card .tr-head{display:flex;align-items:center;gap:12px;}
.trainer-card .tr-avatar{width:44px;height:44px;border-radius:50%;flex:0 0 44px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:15px;background:linear-gradient(135deg,#7c3aed,#db2777);}
.trainer-card .tr-name{font-weight:800;font-size:14px;}
.trainer-card .tr-location{font-size:12px;color:var(--text-faint);margin-top:2px;}
.trainer-card .tr-expertise{font-size:13px;color:var(--text-secondary);line-height:1.5;min-height:38px;}
.trainer-card .tr-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;}
.trainer-card .tr-rating{font-size:13px;font-weight:700;color:var(--accent-ink);}
.trainer-card .tr-actions{display:flex;gap:6px;margin-top:8px;}

/* ============================================================
   Create Programme Wizard
   ============================================================ */
.wizard-page{max-width:1180px;margin:0 auto;}
/* sizes measured from the prototype's programme setup wizard */
.wizard-page .wizard-head-modern{padding:0 0 18px;border-bottom:1px solid #e1e3f0;}
.wizard-page .wizard-head-modern h2{font-size:27px;font-weight:800;line-height:1.15;color:#2563eb;letter-spacing:-.5px;text-transform:uppercase;}
.wizard-page .wizard-subtitle{font-size:15px;color:#68739a;margin-top:8px;}
.wizard-page .wizard-progress-modern{padding:14px 14px 12px;margin:18px 0 36px;border-radius:16px;}
.wizard-page .wizard-progress-modern .wizard-step{font-size:15px;font-weight:400;gap:7px;}
.wizard-page .wizard-progress-modern .wizard-step:before{top:19px;}
.wizard-page .wizard-step-dot{width:40px;height:40px;font-size:16px;}
.wizard-page .wizard-section-modern{padding:18px 20px;margin:0 25px 14px;border-radius:14px;}
.wizard-page .wizard-section-title{font-size:18px;font-weight:800;color:#111b4f;margin-bottom:15px;}
.wizard-page .wizard-section-help{display:none;}
.wizard-page .field{gap:5px;margin-bottom:18px;}
.wizard-page .field label{font-size:15px;font-weight:600;color:#666a8f;}
.wizard-page .field input,.wizard-page .field select,.wizard-page .field textarea{font-size:15px;padding:9px 12px;border-radius:9px;border:1px solid #e1e3f0;color:#171833;}
.wizard-page .field input,.wizard-page .field select{height:43px;}
.wizard-page .wizard-required-note{font-size:13px;color:#8a91aa;}
.wizard-page .wizard-upload-card{padding:15px;border-radius:13px;}
.wizard-page .wizard-upload-title{font-size:15px;font-weight:800;margin-bottom:11px;}
.wizard-page .wizard-upload-drop{min-height:60px;padding:9px 11px;}
.wizard-page .wizard-upload-drop strong{font-size:13px;}
.wizard-page .wizard-upload-drop small{font-size:11px;}
.wizard-page .programme-type-toggle-modern .programme-type-option{min-height:78px;padding:13px 15px;font-size:15px;}
.wizard-page .programme-type-option strong{font-size:15px;font-weight:700;}
.wizard-page .input-prefix{height:43px;}
.wizard-page .input-prefix>span{font-size:15px;}
.wizard-page .input-prefix input{height:41px;}
.wizard-page .wizard-next{margin:18px 25px 0;padding:14px 0 2px;}
.wizard-page .wizard-next .btn{font-size:15px;font-weight:600;padding:9px 16px;height:43px;border-radius:10px;}
.wizard-page .budget-table th,.wizard-page .team-table th{font-size:13px;}
.wizard-page .budget-table td,.wizard-page .team-table td,.wizard-page .budget-inline-input{font-size:15px;}
.wizard-page .budget-action-link,.wizard-page .team-add-btn{font-size:15px;font-weight:600;}
.wizard-page .budget-total-label{font-size:14px;}.wizard-page .budget-total-value{font-size:20px;}
.wizard-page .wizard-review-label{font-size:13px;}.wizard-page .wizard-review-value{font-size:15px;}
.wizard-head-modern h2{font-size:24px;font-weight:800;letter-spacing:-.4px;color:#0b174a;text-transform:uppercase;}
.wizard-subtitle{font-size:13px;color:#68739a;margin-top:6px;}
.wizard-progress-modern{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:18px 0 22px;padding:14px 14px 12px;border-radius:16px;background:linear-gradient(110deg,#2148ff 0%,#5b47ef 38%,#b83ce1 72%,#f044b8 100%);box-shadow:0 10px 24px rgba(83,61,214,.18);position:relative;}
.wizard-progress-modern .wizard-step{display:flex;flex-direction:column;align-items:center;gap:7px;font-size:12px;color:rgba(255,255,255,.82);position:relative;min-width:0;padding:0 5px;background:none;border:none;cursor:pointer;font-family:var(--font-body);}
.wizard-progress-modern .wizard-step:before{content:'';position:absolute;top:19px;left:-50%;width:100%;height:1px;background:rgba(255,255,255,.45);z-index:0;}
.wizard-progress-modern .wizard-step:first-child:before{display:none;}
.wizard-progress-modern .wizard-step.active,.wizard-progress-modern .wizard-step.done{color:#fff;}
.wizard-step-dot{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.18);color:#fff;font-size:15px;font-weight:800;border:1px solid rgba(255,255,255,.18);position:relative;z-index:1;}
.wizard-progress-modern .wizard-step.active .wizard-step-dot{background:#fff;color:#5b34e5;border-color:#fff;}
.wizard-progress-modern .wizard-step.done .wizard-step-dot{background:rgba(255,255,255,.92);color:#5b34e5;border-color:transparent;}
.wizard-section-modern{border:1px solid #e2e5f1;border-radius:14px;padding:20px 22px;background:#fff;box-shadow:0 2px 8px rgba(19,31,82,.035);position:relative;margin-bottom:14px;display:none;}
.wizard-section-modern.active{display:block;}
.wizard-section-modern:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:linear-gradient(180deg,#2563eb,#d946ef);border-radius:14px 0 0 14px;}
.wizard-section-title{font-size:17px;font-weight:800;color:#111b4f;margin-bottom:2px;}
.wizard-section-help{font-size:13px;color:#7a83a2;line-height:1.45;margin-bottom:16px;}
.wizard-required{color:var(--danger);}
.wizard-next{margin-top:8px;padding-top:16px;border-top:1px solid #e7e9f1;display:flex;align-items:center;justify-content:space-between;gap:10px;}
.wizard-review{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
.wizard-review-item{padding:12px;border:1px solid var(--border);border-radius:10px;background:var(--surface-alt);}
.wizard-review-label{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--text-faint);font-weight:700;margin-bottom:4px;}
.wizard-review-value{font-size:14px;font-weight:700;}
.programme-type-toggle-modern{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.programme-type-toggle-modern .programme-type-option{display:flex;align-items:center;gap:8px;min-height:60px;padding:13px 15px;border-radius:11px;background:#fff;border:1px solid #e0e3ed;cursor:pointer;position:relative;}
.programme-type-toggle-modern .programme-type-option.active{border-color:#4d6ee8;background:linear-gradient(135deg,#f4f7ff,#fff5ff);}
.programme-type-toggle-modern .programme-type-option.active:after{content:'✓';position:absolute;right:10px;top:10px;width:20px;height:20px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#c026d3);color:#fff;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:800;}
.programme-type-option input{width:auto;}
.input-prefix{display:flex;align-items:center;border:1px solid var(--border);border-radius:9px;background:var(--surface);overflow:hidden;}
.input-prefix>span{padding-left:11px;font-size:13px;font-weight:700;color:var(--text-secondary);}
.input-prefix input{border:0!important;border-radius:0!important;min-width:0;}
.input-prefix input:focus{outline:none;}
@media(max-width:720px){.wizard-progress-modern .wizard-step span:last-child{display:none;}.wizard-review{grid-template-columns:1fr;}}

.wizard-upload-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
.wizard-upload-card{display:flex;gap:13px;padding:15px;border:1px solid #dfe3f0;border-radius:13px;background:linear-gradient(145deg,#fff,#fafbff);min-width:0;}
.wizard-upload-main{min-width:0;flex:1;}
.wizard-upload-title{font-size:14px;font-weight:800;color:#18234b;margin-bottom:8px;}
.wizard-upload-drop{min-height:60px;border:1px dashed #b8c4e4;border-radius:10px;background:#f8faff;display:flex;align-items:center;gap:10px;padding:9px 11px;cursor:pointer;transition:.15s ease;}
.wizard-upload-drop:hover{border-color:#5b47ef;background:#f5f6ff;}
.wizard-upload-drop input{display:none;}
.wizard-upload-plus{width:29px;height:29px;border-radius:8px;background:#fff;border:1px solid #d9def0;display:flex;align-items:center;justify-content:center;color:#2563eb;font-size:19px;font-weight:700;flex:0 0 29px;}
.wizard-upload-drop strong{display:block;font-size:13px;color:#2563eb;}
.wizard-upload-drop small{display:block;color:#8a92aa;font-size:11px;margin-top:2px;}
.wizard-upload-file{display:flex;align-items:center;gap:8px;padding:8px 9px;border-radius:9px;background:#f5f7fc;border:1px solid #e2e6f2;min-width:0;}
.wizard-upload-file-icon{width:25px;height:25px;border-radius:7px;background:#e8f7ef;color:#15945b;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:800;flex:0 0 25px;}
.wizard-upload-file>div{min-width:0;flex:1;}
.wizard-upload-file strong{display:block;font-size:12px;color:#273253;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.wizard-upload-file small{display:block;color:#8991aa;font-size:10px;margin-top:2px;}
@media(max-width:800px){.wizard-upload-grid{grid-template-columns:1fr;}}

.sponsor-results{margin-top:8px;display:flex;flex-direction:column;gap:6px;max-height:220px;overflow-y:auto;}
.sponsor-result-item{padding:9px 11px;border:1px solid var(--border);border-radius:9px;background:var(--surface);cursor:pointer;}
.sponsor-result-item:hover{background:var(--surface-alt);border-color:var(--primary);}

.budget-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px;}
.budget-action-link{background:none;border:0;padding:0;color:#2563eb;font-weight:700;cursor:pointer;font-size:13px;}
.budget-action-link:hover{text-decoration:underline;}
.budget-table-wrap{border:1px solid #e2e5f1;border-radius:12px;overflow:auto;background:#fff;}
.budget-table{width:100%;border-collapse:collapse;min-width:560px;}
.budget-table th{padding:10px 12px;background:#f7f8fc;color:#707a9a;font-size:11px;text-transform:uppercase;letter-spacing:.45px;text-align:left;font-weight:800;border-bottom:1px solid #e2e5f1;}
.budget-table th.num,.budget-table td.num{text-align:right;}
.budget-table td{padding:8px 12px;border-bottom:1px solid #edf0f6;font-size:13px;color:#1b254f;vertical-align:middle;}
.budget-table tr:last-child td{border-bottom:0;}
.budget-inline-input{width:100%;border:1px solid #e0e3ed;border-radius:8px;padding:7px 8px;background:#fff;font-size:13px;box-sizing:border-box;}
.budget-inline-input.num{text-align:right;}
.budget-total-row{display:flex;align-items:center;justify-content:flex-end;gap:18px;padding:13px 14px;background:#fafaff;border:1px solid #e2e5f1;border-top:0;border-radius:0 0 12px 12px;}
.budget-total-label{font-size:12px;color:#707a9a;font-weight:700;text-transform:uppercase;letter-spacing:.4px;}
.budget-total-value{font-size:18px;font-weight:800;color:#111b4f;}
.budget-empty{padding:24px 16px;text-align:center;color:#8a91aa;font-size:13px;}
.budget-remove,.team-remove{border:0;background:transparent;color:#8a91aa;cursor:pointer;font-size:16px;padding:4px 6px;border-radius:6px;}
.budget-remove:hover{color:#dc2626;background:#fff1f2;}

.team-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;margin-bottom:12px;}
.team-add-btn{border:0;border-radius:9px;padding:8px 13px;background:linear-gradient(135deg,#2563eb,#8b5cf6);color:#fff;font-size:13px;font-weight:800;cursor:pointer;}
.team-table-wrap{border:1px solid #e2e5f1;border-radius:12px;overflow:auto;background:#fff;}
.team-table{width:100%;border-collapse:collapse;min-width:480px;}
.team-table th{padding:10px 12px;background:#f7f8fc;color:#707a9a;font-size:11px;text-transform:uppercase;letter-spacing:.45px;text-align:left;font-weight:800;border-bottom:1px solid #e2e5f1;}
.team-table td{padding:8px 12px;border-bottom:1px solid #edf0f6;font-size:13px;color:#1b254f;vertical-align:middle;}
.team-table tr:last-child td{border-bottom:0;}
.team-empty{padding:24px 16px;text-align:center;color:#8a91aa;font-size:13px;}

/* ============================================================
   Dashboard action modals — All Tasks / Today's Events
   ============================================================ */
.modal-backdrop{position:fixed;inset:0;background:rgba(8,18,38,.72);display:none;align-items:center;justify-content:center;z-index:1000;padding:26px;}
.modal-backdrop.show{display:flex;}
.modal-card.dash-action-modal{max-width:1160px;width:min(1160px,94vw);max-height:90vh;padding:0;overflow:hidden;border-radius:24px;background:#fff;box-shadow:0 28px 80px rgba(0,0,0,.28);}
.dash-action-shell{display:flex;flex-direction:column;max-height:90vh;background:#fff;color:#0d1732;}
.dash-action-head{min-height:100px;padding:22px 30px;display:flex;align-items:center;gap:20px;color:#fff;position:relative;flex:0 0 auto;}
.dash-action-head.tasks{background:linear-gradient(110deg,#ee002f 0%,#f40735 54%,#d90028 100%);}
.dash-action-head.events{background:linear-gradient(110deg,#ffb51d 0%,#ffc13d 58%,#ffb41c 100%);color:#101010;}
.dash-action-head-ic{width:56px;height:56px;border-radius:16px;display:grid;place-items:center;flex:0 0 56px;background:rgba(255,255,255,.18);}
.dash-action-head.events .dash-action-head-ic{background:rgba(255,255,255,.58);}
.dash-action-head-ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
.dash-action-title h2{font-size:26px;line-height:1.05;color:inherit;letter-spacing:-.5px;font-weight:800;}
.dash-action-title p{margin-top:6px;font-size:14px;opacity:.92;}
.dash-action-date{margin-left:auto;font-size:14px;font-weight:700;line-height:1.4;text-align:right;}
.dash-action-close{width:40px;height:40px;border:0;background:transparent;color:inherit;font-size:32px;line-height:1;display:grid;place-items:center;border-radius:12px;margin-left:8px;cursor:pointer;}
.dash-action-close:hover{background:rgba(255,255,255,.13);}
.dash-action-body{padding:20px 30px 26px;overflow:auto;min-height:0;}
.dash-task-tools{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px;flex-wrap:wrap;}
.dash-task-tabs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;}
.dash-task-tab{border:0;background:transparent;padding:10px 16px;border-radius:11px;font-size:13px;font-weight:750;color:#17213c;cursor:pointer;}
.dash-task-tab.active{background:#ef0033;color:#fff;}
.dash-task-search-wrap{position:relative;}
.dash-task-search{width:260px;max-width:100%;height:44px;border:1px solid #dfe3ec;border-radius:12px;padding:0 14px 0 40px;font:inherit;font-size:13px;color:#17213c;background:#fff;}
.dash-task-search-wrap svg{position:absolute;left:13px;top:50%;transform:translateY(-50%);width:17px;height:17px;fill:none;stroke:#6e7890;stroke-width:2;}
.dash-task-table-wrap{border:1px solid #e7e9ef;border-radius:12px;overflow:hidden;}
.dash-task-table{width:100%;border-collapse:collapse;font-size:13px;}
.dash-task-table th{background:#f3f5f9;color:#3f4b67;padding:12px 14px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.2px;text-align:left;}
.dash-task-table td{padding:12px 14px;border-bottom:1px solid #e7e9ef;vertical-align:middle;}
.dash-task-table tr:last-child td{border-bottom:0;}
.dash-task-table .task-name{font-weight:750;color:#17213c;font-size:13px;}
.dash-task-status{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:9px;font-size:12px;font-weight:750;white-space:nowrap;}
.dash-task-status.review{background:#ffe3e9;color:#c71437;}
.dash-task-view{min-width:76px;padding:7px 14px;border:1px solid #d8dce6;border-radius:9px;background:#fff;font-weight:750;font-size:12px;color:#17213c;cursor:pointer;}
.dash-task-view:hover{background:#f5f7fb;}
.dash-empty-modal{padding:48px 20px;text-align:center;color:#7a8499;font-size:14px;}
.dash-event-list{display:flex;flex-direction:column;}
.dash-event-row{display:grid;grid-template-columns:95px 20px 1fr 90px;align-items:center;gap:14px;padding:16px 8px;border-bottom:1px solid #e5e8ef;}
.dash-event-row:last-child{border-bottom:0;}
.dash-event-time{font-size:15px;font-weight:800;color:#111a33;}
.dash-event-dot{width:13px;height:13px;border-radius:50%;background:#20b775;box-shadow:0 0 0 4px rgba(32,183,117,.08);}
.dash-event-row:nth-child(2n) .dash-event-dot{background:#4b9df5;box-shadow:0 0 0 4px rgba(75,157,245,.08);}
.dash-event-row:nth-child(3n) .dash-event-dot{background:#ffad18;box-shadow:0 0 0 4px rgba(255,173,24,.08);}
.dash-event-copy strong{display:block;font-size:15px;color:#111a33;}
.dash-event-copy small{display:block;margin-top:3px;font-size:13px;color:#66718a;}
.dash-event-summary{padding-top:18px;font-size:13px;color:#46516d;font-weight:650;}
@media(max-width:900px){.modal-card.dash-action-modal{width:96vw;}.dash-action-head{padding:18px 20px;}.dash-action-body{padding:16px 20px 20px;}.dash-task-tools{flex-direction:column;align-items:stretch;}.dash-task-search{width:100%;}.dash-task-table-wrap{overflow-x:auto;}.dash-task-table{min-width:640px;}.dash-action-date{display:none;}}
.wizard-required-note{font-size:12px;color:#8a91aa;margin-top:4px;}

/* Finance expandable menu */
.finance-nav-parent{cursor:pointer;font-family:var(--font-body);}
.finance-nav-arrow{font-size:16px;color:rgba(255,255,255,.6);transition:transform .18s ease;}
.finance-nav-arrow.open{transform:rotate(90deg);}
.finance-nav-parent.active{background:transparent;box-shadow:none;color:#fff;}
.finance-nav-parent.active .ic{color:#a48bfa;}
.finance-nav-submenu{margin:0 0 4px 14px;padding-left:8px;border-left:1px solid rgba(255,255,255,.14);}
.finance-nav-child{padding:9px 12px;font-size:13.5px;}

/* Programme type cards — corner tick badge, roomier boxes (wizard) */
.wizard-page .programme-type-toggle-modern{gap:16px;}
.wizard-page .programme-type-toggle-modern .programme-type-option{min-height:78px;padding:0 20px;border-radius:12px;gap:12px;overflow:hidden;}
.wizard-page .programme-type-option input[type=radio]{width:16px;height:16px;margin:0;accent-color:#1a73e8;flex:0 0 16px;}
.wizard-page .programme-type-toggle-modern .programme-type-option.active{border-color:#4d6ee8;background:linear-gradient(135deg,#f1f5ff 0%,#fbf3ff 100%);}
.wizard-page .programme-type-toggle-modern .programme-type-option.active:after{right:0;top:0;width:28px;height:26px;border-radius:0 0 0 12px;font-size:14px;background:linear-gradient(135deg,#4f46e5,#a21caf);}
.wizard-page .wizard-section-title .wizard-required{margin-left:2px;}

/* navigation sidebar stays in view while the page scrolls */
.sidebar{position:sticky;top:0;height:100vh;align-self:flex-start;}

/* Login fields: beat the generic ".field input" rule (dark glass fields, text starts after the icon) */
.login-demo-form .login-demo-input-wrap input{height:56px;width:100%;box-sizing:border-box;padding:0 52px 0 52px;background:rgba(16,20,82,.72);color:#fff;border:1px solid rgba(152,163,255,.36);border-radius:12px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02);font-size:14px;font-family:var(--font-body);}
.login-demo-form .login-demo-input-wrap input::placeholder{color:#aab2d6;}
.login-demo-form .login-demo-input-wrap input:focus{border-color:#6d8dff;box-shadow:0 0 0 3px rgba(77,111,255,.18),0 0 18px rgba(70,100,255,.10);outline:none;}
.login-demo-form .login-demo-input-wrap input:-webkit-autofill,.login-demo-form .login-demo-input-wrap input:-webkit-autofill:hover,.login-demo-form .login-demo-input-wrap input:-webkit-autofill:focus{-webkit-text-fill-color:#fff;caret-color:#fff;-webkit-box-shadow:0 0 0 1000px #101452 inset;box-shadow:0 0 0 1000px #101452 inset;transition:background-color 9999s ease-out 0s;}


/* Collapsible / pinnable sidebar */
.admin-mode-sidebar .sidebar-head{gap:6px;}
.sidebar-pin-btn{margin-left:auto;flex:0 0 26px;width:26px;height:26px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.16);border-radius:9px;background:rgba(255,255,255,.07);color:#cfd6ff;cursor:pointer;transition:background .15s,color .15s;}
.sidebar-pin-btn:hover{background:rgba(255,255,255,.16);color:#fff;}
.sidebar-pin-btn svg{width:15px;height:15px;}
.sidebar-pin-btn .ic-pin{display:none;}
.sidebar-open-btn,.sidebar-edge{display:none;}
html.sb-collapsed .sidebar-pin-btn .ic-hide{display:none;}
html.sb-collapsed .sidebar-pin-btn .ic-pin{display:block;}
html.sb-collapsed .sidebar{position:fixed;left:0;top:0;height:100vh;z-index:60;transform:translateX(-104%);transition:transform .22s ease,box-shadow .22s ease;}
html.sb-collapsed.sb-peek .sidebar{transform:none;box-shadow:12px 0 40px rgba(8,12,50,.38);}
html.sb-collapsed .sidebar-open-btn{display:grid;position:fixed;left:14px;top:12px;z-index:55;width:40px;height:40px;place-items:center;border:1px solid var(--border);border-radius:11px;background:#fff;color:#2a3a7a;cursor:pointer;box-shadow:0 4px 12px rgba(31,49,98,.1);}
html.sb-collapsed .sidebar-open-btn:hover{background:#f3f6ff;}
html.sb-collapsed .sidebar-open-btn svg{width:20px;height:20px;}
html.sb-collapsed .sidebar-edge{display:block;position:fixed;left:0;top:0;bottom:0;width:8px;z-index:54;}
html.sb-collapsed .topbar{padding-left:68px;}

/* Shared pagination (partials/pagination.blade.php) */
.pgx{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px 24px;margin-top:18px;padding:4px 2px;color:#2b3150;font-size:14px}
.pgx-tools{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.pgx-rows,.pgx-go{display:flex;align-items:center;gap:8px;font-size:13px;color:#5b6486}
.pgx select,.pgx input[type=number]{height:36px;border:1px solid #d9dded;border-radius:9px;background:#fff;color:#2b3150;font:600 13px var(--font-body);padding:0 10px}
.pgx input[type=number]{width:64px;text-align:center;-moz-appearance:textfield}
.pgx input[type=number]::-webkit-outer-spin-button,.pgx input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.pgx-go button{height:36px;padding:0 14px;border:1px solid #cfd5ee;border-radius:9px;background:#f4f6ff;color:#3b3fb0;font:700 12.5px var(--font-body);cursor:pointer}
.pgx-go button:hover{background:#e9edff}
.pgx-nav{display:flex;align-items:center;gap:6px}
.pgx-pages{display:flex;align-items:center;gap:4px;margin:0 14px}
.pgx-edge{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 10px;color:#2b3150;font-size:14.5px;font-weight:500;white-space:nowrap}
.pgx-edge svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
a.pgx-edge:hover{color:#4b3fe0}
.pgx-edge.disabled{opacity:.38;cursor:default}
.pgx-pg{width:40px;height:40px;display:grid;place-items:center;border-radius:50%;color:#2b3150;font-size:15px}
a.pgx-pg:hover{background:#eef0fb}
.pgx-pg.active{background:#4b3fe0;color:#fff;font-weight:600;box-shadow:0 0 0 4px rgba(75,63,224,.2)}
.pgx-dots{width:30px;text-align:center;color:#5b6486}
.pgx-info{font-size:14.5px;color:#2b3150;white-space:nowrap}
@media(max-width:900px){.pgx{justify-content:center}.pgx-pages{margin:0 4px}}

/* Create Programme wizard — Programme Documents: repeatable type + file rows beside the poster card */
.wizard-docs-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:18px;align-items:start;}
.wizard-docs-main{min-width:0;}
.wizard-doc-label-row{display:grid;grid-template-columns:minmax(0,1fr) 170px 28px;gap:10px;align-items:end;margin-bottom:7px;color:#111827;font-size:14px;font-weight:600;}
.wizard-doc-label-row span:nth-child(2){grid-column:2;}
.wizard-doc-rows{display:flex;flex-direction:column;gap:12px;}
.wizard-doc-block{display:flex;flex-direction:column;gap:8px;}
.wizard-doc-row{display:grid;grid-template-columns:minmax(0,1fr) 170px 28px;gap:10px;align-items:center;}
.wizard-doc-type,.wizard-doc-other{width:100%;height:48px;min-height:48px;padding:0 14px;border:1px solid #dfe3ee;border-radius:10px;background:#fff;color:#111827;font-size:14px;font-weight:500;}
.wizard-doc-type:focus,.wizard-doc-other:focus{outline:none;border-color:#3730a3;box-shadow:0 0 0 3px rgba(55,48,163,.10);}
.wizard-doc-file-control{min-width:0;}
.wizard-doc-file-control input{display:none;}
.wizard-doc-file-control label{height:46px;width:100%;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 12px;border:1px solid #dfe3ee;border-radius:10px;background:#fff;color:#3730a3;font-size:13.5px;font-weight:600;cursor:pointer;overflow:hidden;transition:.15s ease;margin:0;}
.wizard-doc-file-control label:hover{border-color:#3730a3;background:#f5f6ff;}
.wizard-doc-file-control.is-disabled label{background:#f6f7fb;color:#b3b8cc;cursor:not-allowed;border-color:#e6e9f2;}
.wizard-doc-file-control.has-file label{border-color:#9bd9b8;background:#f0fbf5;color:#12805f;}
.wizard-doc-upload-text{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.wizard-doc-remove{width:28px;height:28px;border:0;background:none;color:#111827;font-size:22px;line-height:1;cursor:pointer;border-radius:8px;}
.wizard-doc-remove:hover{background:#fdecee;color:#e0273d;}
.wizard-doc-add{margin-top:12px;border:0;background:none;color:#2563eb;font-size:14px;font-weight:700;cursor:pointer;padding:4px 0;}
.wizard-doc-add:hover{text-decoration:underline;}
.wizard-doc-error{margin-top:10px;color:#c0263b;font-size:13px;font-weight:600;}
.wizard-poster-card{margin:0;}
@media(max-width:960px){.wizard-docs-layout{grid-template-columns:1fr;}}
@media(max-width:560px){.wizard-doc-label-row,.wizard-doc-row{grid-template-columns:minmax(0,1fr) 130px 28px;}}

/* Today's Team Performance — staff view (prototype v44) */
.ref-team-headrow h3{text-transform:uppercase}
.ref-team-card .table-wrap{border:1px solid #e1e3f0;border-radius:14px;background:#fff;overflow:hidden}
.ref-team-table th{background:#f3f5fb;border-bottom:1px solid #e1e3f0;padding:9px 12px;color:#07152f}
.ref-team-table td{border-top:0;border-bottom:1px solid #e1e3f0;padding:11px 12px;color:#07152f}
.ref-team-table tbody tr:last-child td{border-bottom:0}
.ref-team-table .ref-th-c,.ref-team-table .ref-team-tasks{text-align:center}
.ref-team-tasks{font-weight:500}
.ref-team-card .ref-team-staff-role{color:#07152f}
.ref-team-progress-cell .ref-progress-main{width:48px}
.ref-team-progress-cell .ref-progress-bar-wrap{width:48px;max-width:none;height:10px;background:#e8ebf2}
.ref-team-progress-cell .ref-progress-bar.bar-done{background:#14b866}
.ref-team-progress-cell .ref-team-progress-pct{text-align:right;margin-top:2px;color:#07152f}
.ref-team-status-pill{min-width:96px;justify-content:center;font-weight:550;padding:7px 12px}
.ref-team-status-pill.st-done{background:#0a9449;color:#fff}
.ref-team-status-pill.st-progress{background:#ffc21a;color:#563d00}
.ref-team-status-pill.st-overdue{background:#ef1717;color:#fff}
.ref-team-status-pill.st-none{background:#e8ebf2;color:#5b6486}

/* Login: friendly per-field errors, and a layout that fits the screen without scrolling */
.login-field-error{display:flex;align-items:flex-start;gap:7px;color:#ffb3c0;font-size:12.5px;line-height:1.4;margin-top:1px;}
.login-field-error svg{width:15px;height:15px;flex:0 0 15px;margin-top:1px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;}
.login-demo-form .login-demo-input-wrap input.is-invalid{border-color:rgba(255,99,132,.75);box-shadow:0 0 0 3px rgba(255,99,132,.14);}
.login-demo-stage{box-sizing:border-box;}
@media(max-height:860px){
  .login-demo-inner{padding:26px 46px 22px;}
  .login-demo-wordmark{font-size:36px;}.login-demo-wordmark .logo-o{width:41px;height:41px;flex-basis:41px;}
  .login-demo-welcome{margin:16px 0 16px;}.login-demo-welcome h2{font-size:27px;margin-bottom:4px;}
  .login-demo-form .field{margin-bottom:10px;gap:5px;}
  .login-demo-form .login-demo-input-wrap input,.login-demo-input-wrap input{height:48px;}
  .login-demo-primary{height:48px;}
  .login-demo-hint{margin-top:12px;}
}
@media(max-height:700px){
  .login-demo-inner{padding:18px 38px 14px;}
  .login-demo-wordmark{font-size:30px;}.login-demo-wordmark .logo-o{width:34px;height:34px;flex-basis:34px;}
  .login-demo-tagline{font-size:11px;}
  .login-demo-welcome{margin:10px 0 10px;}.login-demo-welcome h2{font-size:22px;}.login-demo-welcome p{font-size:12.5px;}
  .login-demo-form .field{margin-bottom:8px;}.login-demo-form .field label{font-size:13px;}
  .login-demo-form .login-demo-input-wrap input,.login-demo-input-wrap input{height:42px;}
  .login-demo-primary{height:42px;}
  .login-demo-hint{margin-top:8px;font-size:11px;}
}
@media(max-height:560px){.login-demo-orbit{display:none;}.login-demo-welcome p,.login-demo-tagline{display:none;}}
@media(max-height:700px){.login-demo-stage{padding:10px 16px;}}

/* Login with Google */
.login-demo-or{position:relative;z-index:1;display:flex;align-items:center;gap:12px;margin:14px 0 12px;color:#aeb7df;font-size:12px;font-weight:600;}
.login-demo-or:before,.login-demo-or:after{content:'';flex:1;height:1px;background:rgba(185,194,238,.28);}
.login-demo-google{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;gap:11px;height:52px;border-radius:10px;background:#fff;color:#16183b;font-family:var(--font-display);font-weight:700;font-size:14.5px;text-decoration:none;box-shadow:0 8px 22px rgba(0,0,0,.22);}
.login-demo-google svg{width:20px;height:20px;}
.login-demo-google:hover{filter:brightness(.96);}
@media(max-height:860px){.login-demo-or{margin:10px 0 8px;}.login-demo-google{height:46px;}}
@media(max-height:700px){.login-demo-or{margin:7px 0 6px;font-size:11px;}.login-demo-google{height:40px;font-size:13.5px;}.login-demo-hint{margin-top:6px;}}

.login-demo-ok{position:relative;z-index:1;background:rgba(34,181,115,.16);border:1px solid rgba(34,181,115,.45);color:#c9f5df;border-radius:10px;padding:11px 14px;font-size:13px;margin-bottom:14px;}

.login-demo-forgot{position:relative;z-index:1;text-align:right;margin:-4px 0 12px;}
.login-demo-forgot a{color:#8fb4ff;font-size:13px;font-weight:600;text-decoration:none;}
.login-demo-forgot a:hover{text-decoration:underline;}
@media(max-height:860px){.login-demo-forgot{margin:-2px 0 8px;}}
@media(max-height:700px){.login-demo-forgot{margin:-2px 0 6px;}.login-demo-forgot a{font-size:12px;}}
