/* ITI Wallah ERP web portal — layout after the SCVT portal the ITI owner knows:
   a header band, a blue menu on the left, a titled panel of rows on the right. */
:root {
  --navy: #1F4E79; --navy-dark: #163A5C; --navy-bg: #E6EDF5; --side: #2B5A9E;
  --side-hover: #234B86; --side-active: #163A5C; --ink: #1B2430; --mute: #5B6472;
  --line: #DAD6CC; --ground: #EDEDED; --card: #FFFFFF; --orange: #E8650E;
  --red: #B3261E; --green: #1E7B34; --amber-bg: #FBF0D9; --amber-ink: #7A4E00;
  --due-bg: #FBEDEA; --due-ink: #8A2A1B;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink);
  background: var(--ground); font-size: 15px; }
a { color: var(--navy); }
.boot { padding: 40px; color: var(--mute); }
button, input, select { font: inherit; }

/* ---- header ------------------------------------------------------------ */
.hdr { background: linear-gradient(90deg, #DDE6F6 0%, #C9D6F0 100%);
  display: flex; align-items: center; gap: 14px; padding: 8px 20px; min-height: 84px; }
.hdr img { height: 64px; }
.hdr .brand { display: flex; flex-direction: column; }
.hdr .brand b { color: var(--orange); font-size: 24px; letter-spacing: .3px; }
.hdr .brand span { color: var(--navy-dark); font-size: 14px; }
.hdr .iti { margin-left: auto; text-align: right; }
.hdr .iti .name { color: #C62828; font-size: 20px; }
.hdr .iti .who { color: var(--navy-dark); font-size: 13px; margin-top: 2px; }
.hdr select { margin-top: 4px; padding: 3px 6px; border: 1px solid #9FB3D6; border-radius: 4px;
  background: #fff; color: var(--navy-dark); }
.burger { background: #fff; border: 0; width: 56px; height: 40px; cursor: pointer;
  font-size: 22px; color: var(--side); }
.bar { background: linear-gradient(90deg, #DDE6F6, #C9D6F0); padding: 0 0 6px 0; }

/* ---- body: menu + panel ---------------------------------------------------- */
.wrap { display: flex; min-height: calc(100vh - 170px); }
.side { width: 290px; flex: none; background: var(--side); }
.side.hidden { display: none; }
.side a { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none;
  padding: 18px 20px; font-size: 18px; font-weight: 600; text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.12); }
.side a:hover { background: var(--side-hover); }
.side a.on { background: var(--side-active); box-shadow: inset 5px 0 0 var(--orange); }
.side .ic { width: 22px; text-align: center; opacity: .95; }
.main { flex: 1; padding: 22px 22px 40px; min-width: 0; }
.panel { background: var(--card); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.panel > h2 { margin: 0; background: var(--side); color: #fff; font-weight: 500;
  font-size: 22px; padding: 12px 16px 10px; border-bottom: 3px double #c8d4ea; }
.panel .in { padding: 22px 30px 30px; }
.crumb { font-size: 13px; color: var(--mute); margin: 0 0 10px; }
.crumb a { cursor: pointer; text-decoration: underline; }

/* the list of rows with an arrow, as in the dummy */
.rows { border: 1px solid #d5d9e0; }
.rows a { display: flex; justify-content: space-between; align-items: center;
  padding: 13px 20px; border-bottom: 1px solid #d5d9e0; color: var(--ink);
  text-decoration: none; text-transform: uppercase; font-size: 15.5px; cursor: pointer; }
.rows a:last-child { border-bottom: 0; }
.rows a:hover { background: #F2F6FC; }
.rows a .arr { color: var(--side); font-weight: 700; font-size: 18px; }
.rows a.soon { color: #8a8f99; }
.rows a.soon .tag { font-size: 11px; text-transform: none; background: #eef1f6; color: var(--mute);
  border-radius: 10px; padding: 2px 8px; margin-left: 10px; }

/* ---- dashboard tiles ----------------------------------------------------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile { border: 1px solid #d5d9e0; border-radius: 6px; padding: 14px 16px; background: #fff; }
.tile .k { color: var(--mute); font-size: 13px; }
.tile .v { font-size: 26px; font-weight: 600; color: var(--navy-dark); margin-top: 4px; }
.tile.warn { background: var(--amber-bg); border-color: #efd9a8; }
.tile.warn .v { color: var(--amber-ink); }
.tile.due { background: var(--due-bg); border-color: #efc9c1; }
.tile.due .v { color: var(--due-ink); }
h3 { font-size: 15px; text-transform: uppercase; color: var(--mute); margin: 26px 0 10px;
  letter-spacing: .4px; }

/* ---- tables (generic answers) -------------------------------------------- */
.tw { overflow-x: auto; margin: 8px 0 18px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; background: #fff; }
th, td { border: 1px solid #d5d9e0; padding: 7px 9px; text-align: left; vertical-align: top; }
th { background: #EEF2F8; color: var(--navy-dark); font-weight: 600; white-space: nowrap; }
tr:nth-child(even) td { background: #FAFBFD; }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
.kv { display: grid; grid-template-columns: minmax(160px, 280px) 1fr; border: 1px solid #d5d9e0; }
.kv div { padding: 7px 10px; border-bottom: 1px solid #e3e6ec; }
.kv .kk { background: #F4F6FA; color: var(--mute); }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 14px; }
.tools label { font-size: 13px; color: var(--mute); display: flex; flex-direction: column; gap: 3px; }
.tools input, .tools select { padding: 7px 9px; border: 1px solid #b9c3d3; border-radius: 4px; min-width: 180px; }

/* ---- notes, buttons ------------------------------------------------------ */
.note { color: var(--mute); font-size: 14px; margin: 8px 0; }
.box { padding: 12px 14px; border-radius: 6px; margin: 10px 0; font-size: 14px; }
.box.amb { background: var(--amber-bg); color: var(--amber-ink); }
.box.red { background: var(--due-bg); color: var(--due-ink); }
.box.grn { background: #E6F4EA; color: var(--green); }
.btn { display: inline-block; background: var(--side); color: #fff; border: 0; border-radius: 4px;
  padding: 9px 18px; cursor: pointer; font-weight: 600; }
.btn:hover { background: var(--side-hover); }
.btn.out { background: #fff; color: var(--side); border: 1px solid var(--side); }
.btn:disabled { opacity: .55; cursor: default; }

/* ---- sign in ------------------------------------------------------------- */
.signin { max-width: 440px; margin: 40px auto; }
.signin .in label { display: block; font-size: 13px; color: var(--mute); margin: 14px 0 4px; }
.signin .in input { width: 100%; padding: 10px 12px; border: 1px solid #b9c3d3; border-radius: 4px; }
.signin .in .btn { width: 100%; margin-top: 18px; padding: 11px; }
.signin .links { margin-top: 14px; font-size: 14px; }
.msg { min-height: 20px; margin-top: 10px; font-size: 14px; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--green); }

.foot { background: #fff; text-align: center; padding: 14px; color: #333; font-size: 14px;
  border-top: 1px solid #ddd; }
.foot b { color: var(--orange); font-weight: 600; }

@media (max-width: 860px) {
  .side { position: fixed; z-index: 5; top: 0; bottom: 0; left: 0; overflow-y: auto; }
  .side.hidden { display: none; }
  .hdr .brand b { font-size: 18px; }
  .hdr .iti .name { font-size: 15px; }
  .main { padding: 12px; }
  .panel .in { padding: 14px; }
}
@media print {
  .hdr, .bar, .side, .foot, .tools, .noprint { display: none !important; }
  body { background: #fff; }
  .main { padding: 0; }
}

/* ---- trainees (Web 1.1) ---------------------------------------------------- */
tr.go { cursor: pointer; }
tr.go:hover td { background: #E9F0FB !important; }
.thead { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.thead .who { flex: 1; min-width: 260px; }
.thead .who .n { font-size: 24px; font-weight: 600; color: var(--navy-dark); }
.thead .who .s { color: var(--mute); margin-top: 4px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 12.5px; margin: 6px 6px 0 0;
  background: #EEF2F8; color: var(--navy-dark); }
.pill.grn { background: #E6F4EA; color: var(--green); }
.pill.red { background: var(--due-bg); color: var(--due-ink); }
.pill.amb { background: var(--amber-bg); color: var(--amber-ink); }
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 18px 0 6px;
  border: 1px solid #d5d9e0; border-radius: 6px; overflow: hidden; }
.journey div { padding: 10px 12px; border-right: 1px solid #d5d9e0; background: #fff; }
.journey div:last-child { border-right: 0; }
.journey .st { font-size: 12px; color: var(--mute); text-transform: uppercase; }
.journey .vv { font-weight: 600; margin-top: 3px; }
.journey .done { box-shadow: inset 0 4px 0 var(--green); }
.journey .wait { box-shadow: inset 0 4px 0 #E0A526; }
.journey .no { box-shadow: inset 0 4px 0 #c9ced8; }
.secnav { position: sticky; top: 0; z-index: 2; background: #fff; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 0; border-bottom: 1px solid #e3e6ec; margin-bottom: 6px; }
.secnav a { font-size: 13px; padding: 5px 11px; border-radius: 14px; background: #EEF2F8; color: var(--navy-dark);
  text-decoration: none; }
.secnav a:hover { background: #dbe5f5; }
.sec { scroll-margin-top: 60px; }
.sec > h3 { border-bottom: 2px solid #e3e6ec; padding-bottom: 6px; }
/* asked 17 Oct: the complete track as cards that open and close (like the DGT ITI page) */
.acc { background: #fff; border: 1px solid #e3e6ec; border-radius: 10px; margin: 12px 0; box-shadow: 0 1px 3px rgba(22,58,92,.06); }
.acc-h { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 20px; cursor: pointer; }
.acc-h:focus-visible { outline: 2px solid var(--navy); outline-offset: -2px; border-radius: 10px; }
.acc-h:hover { background: #f6f8fc; border-radius: 10px; }
.acc-t { font-size: 18px; font-weight: 600; color: var(--navy-dark); }
.acc-s { flex: 1; min-width: 0; font-size: 14px; color: var(--mute); }
.acc-i { width: 22px; height: 22px; position: relative; flex: none; margin-left: auto; }
.acc-i::before, .acc-i::after { content: ""; position: absolute; left: 3px; right: 3px; top: 10px; height: 2px; background: var(--navy-dark); }
.acc-i::after { transform: rotate(90deg); transition: transform .15s; }
.acc.open .acc-i::after { transform: rotate(0deg); }
.acc-b { display: none; padding: 0 20px 18px; }
.acc-b > .tiles, .acc-b > div > .tiles { margin: 12px 0 14px; }
.acc-b > .box { margin-bottom: 12px; }
.acc.open .acc-b, .acc.printing .acc-b { display: block; }
@media print { .acc { border: 0; box-shadow: none; } .acc-b { display: block !important; } .acc-i { display: none; } }
.tl { border-left: 3px solid #c9d6ee; margin: 6px 0 0 8px; padding-left: 16px; }
.tl .ev { position: relative; padding: 6px 0 12px; }
.tl .ev::before { content: ""; position: absolute; left: -23px; top: 10px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--side); border: 2px solid #fff; }
.tl .ev .when { font-size: 12.5px; color: var(--mute); }
.tl .ev .what { margin-top: 2px; }
.tl .ev .why { font-size: 13px; color: var(--mute); }
@media print { .secnav { display: none; } tr.go { cursor: default; } }
.pwform label { display: block; font-size: 13px; color: var(--mute); margin: 12px 0 4px; }
.pwform input { width: 100%; padding: 9px 11px; border: 1px solid #b9c3d3; border-radius: 4px; }
.pwform .btn { margin-top: 16px; }

/* ---- work pages (Web 1.5) ----------------------------------------------------- */
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 18px; margin: 8px 0 14px; }
.fl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--mute); min-width: 0; }
.fl.wide { grid-column: 1 / -1; }
.fl > span { font-weight: 600; }
.fl input, .fl select, .fl textarea { font: inherit; font-size: 15px; color: var(--ink); padding: 8px 10px;
  border: 1px solid #b9c3d3; border-radius: 4px; background: #fff; width: 100%; }
.fl input[type=file] { padding: 6px; }
.fl input[readonly] { background: var(--soft, #f2f4f7); color: var(--mute, #555); }
small.muted { color: var(--mute, #555); font-size: 13px; }
.fl input:focus, .fl select:focus, .fl textarea:focus { outline: 2px solid #9db7e6; border-color: var(--side); }
.fl small { color: var(--mute); font-size: 12.5px; }
.ck { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); margin: 6px 0; cursor: pointer; }
.ck input { width: 17px; height: 17px; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.btn.red { background: var(--red); }
.btn.red:hover { background: #8f1e18; }
.msg { white-space: pre-line; }
.msg.mute { color: var(--mute); }
.box.navy { background: var(--navy-bg); color: var(--navy-dark); }
.box { white-space: pre-line; }
.steps { display: flex; border: 1px solid #d5d9e0; border-radius: 6px; overflow: hidden; margin: 0 0 16px; }
.steps div { flex: 1; text-align: center; padding: 9px 6px; font-size: 13.5px; color: var(--mute); border-right: 1px solid #d5d9e0; }
.steps div:last-child { border-right: 0; }
.steps .now { background: var(--navy-bg); color: var(--navy-dark); font-weight: 600; }
.steps .done { color: var(--green); }
.card { border: 1px solid #d5d9e0; border-radius: 6px; padding: 12px 14px; margin: 10px 0; background: #fff; }
.card .ch { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-weight: 600; color: var(--navy-dark); }
.actbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; padding: 12px; background: #F4F7FC;
  border: 1px solid #d9e2f2; border-radius: 6px; }
.actbar .lbl { width: 100%; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--mute); }
.actbar a { font-size: 14px; padding: 7px 13px; border-radius: 4px; background: #fff; border: 1px solid var(--side);
  color: var(--side); text-decoration: none; font-weight: 600; }
.actbar a:hover { background: var(--side); color: #fff; }
.ask { position: fixed; inset: 0; background: rgba(20,30,50,.45); z-index: 50; display: flex; align-items: center;
  justify-content: center; padding: 16px; }
.askbox { background: #fff; border-radius: 8px; max-width: 520px; width: 100%; padding: 20px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.3); }
.askt { white-space: pre-line; font-size: 15.5px; line-height: 1.45; }
.photo { width: 120px; height: 160px; object-fit: cover; border: 1px solid #d5d9e0; background: #f4f6fa; }
@media print { .actbar, .btns { display: none !important; } }

/* ---- Web 3.4: screen skins — the shape of the page shows at once, grey bars stand in
   for the figures until the server answers ------------------------------------------- */
.skel { display: grid; gap: 10px; padding: 4px 0 8px; }
.skel .sk { display: block; height: 14px; border-radius: 4px;
  background: linear-gradient(90deg, #E4E7EC 25%, #F2F4F7 50%, #E4E7EC 75%); background-size: 200% 100%;
  animation: skmove 1.2s ease-in-out infinite; }
.skel .sk.h { height: 22px; width: 40%; }
.skel .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.skel .tile { height: 74px; border-radius: 6px; border: 1px solid var(--line); background: var(--card);
  padding: 12px; display: grid; gap: 10px; align-content: start; }
.skel .tbl { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.skel .tr { display: grid; grid-template-columns: 1fr 2fr 2fr 1.5fr 1fr; gap: 14px; padding: 11px 12px;
  border-top: 1px solid var(--line); }
.skel .tr:first-child { border-top: 0; background: var(--navy-bg); }
.skel .cardk { border: 1px solid var(--line); border-radius: 6px; background: var(--card); padding: 14px; display: grid; gap: 10px; }
.skel .say { color: var(--mute); font-size: 13px; }
@keyframes skmove { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel .sk { animation: none; } }
@media print { .skel { display: none; } }

/* Web 3.9: the Onboarding tab — year chips and five steps */
.onb-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 18px; }
.onb-head > span { font-size: 13px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; }
.onb-years { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-year { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 112px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; cursor: pointer; text-align: left; }
.onb-year b { font-size: 16px; }
.onb-year small { font-size: 12px; color: var(--mute); }
.onb-year:hover { border-color: var(--side); }
.onb-year.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.onb-year.on small { color: #d5e2f3; }
.onb-steps { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.onb-step { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid var(--line); }
.onb-step:last-child { border-bottom: 0; }
.onb-no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--navy-bg); color: var(--navy); }
.onb-step.done .onb-no { background: #E6F4EA; color: var(--green); }
.onb-step.todo .onb-no { background: var(--orange); color: #fff; }
.onb-step.wait { color: var(--mute); }
.onb-title { font-weight: 600; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.onb-body p { margin: 3px 0 0; font-size: 14px; color: var(--mute); }
.onb-act .btn { margin: 0; white-space: nowrap; }
.onb-more { margin-top: 16px; }
.onb-prn { margin-top: 18px; }
.onb-more summary { cursor: pointer; color: var(--side); font-weight: 600; padding: 6px 0; }
@media (max-width: 640px) {
  .onb-step { grid-template-columns: 32px minmax(0, 1fr); }
  .onb-act { grid-column: 2; }
}
@media print { .onb-act, .onb-more { display: none; } }
/* build 150: the Onboarding stepper (onboardStatus) */
.onb-year small { display: flex; align-items: center; gap: 5px; }
.ob-dot { display: inline-block; width: 8px; height: 8px; border-radius: 4px; background: #B9C0CA; }
.ob-dot.grn { background: var(--green); } .ob-dot.amb { background: #E0A526; }
.ob-overall { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--navy-bg); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.ob-overall b { font-size: 15px; color: var(--navy-dark); }
.ob-prog { flex: 1 1 220px; height: 10px; background: #fff; border-radius: 6px; overflow: hidden; }
.ob-prog i { display: block; height: 100%; background: var(--side); }
.ob-overall .pill { margin: 0; }
.pill.navy { background: #fff; color: var(--side); font-weight: 600; }
.pill.grey { background: #EEF0F3; color: var(--mute); }
.ob-steps { list-style: none; margin: 0; padding: 0; }
.ob-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; position: relative; padding-bottom: 20px; }
.ob-step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.ob-step.done:not(:last-child)::before { background: var(--green); }
.ob-badge { width: 44px; height: 44px; border-radius: 22px; display: grid; place-items: center; font-weight: 700; font-size: 17px;
  border: 2px solid var(--line); background: var(--card); color: var(--mute); position: relative; z-index: 1; }
.ob-step.done .ob-badge { background: var(--green); border-color: var(--green); color: #fff; }
.ob-step.now .ob-badge { border-color: var(--side); color: var(--side); background: var(--navy-bg); }
.ob-step.todo .ob-badge { border-color: #E0A526; color: var(--amber-ink); }
.ob-box { min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; background: var(--card); }
.ob-step.now .ob-box { border-color: var(--side); box-shadow: 0 0 0 3px var(--navy-bg); }
.ob-step.done .ob-box { border-color: #BFE3CB; }
.ob-step.wait .ob-box { color: var(--mute); }
.ob-head { display: flex; justify-content: space-between; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.ob-head h3 { margin: 0; font-size: 17px; }
.ob-head .pill { margin: 0; font-weight: 600; }
.ob-sub { color: var(--mute); font-size: 14px; margin: 4px 0 8px; }
.ob-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.ob-chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 20px; padding: 6px 12px;
  font: inherit; font-size: 14px; background: var(--card); color: var(--ink); cursor: pointer; }
.ob-chip:disabled { cursor: default; }
.ob-chip.on { border-color: var(--side); background: var(--navy-bg); }
.ob-chip .ck { width: 16px; height: 16px; border-radius: 4px; border: 2px solid #B9C0CA; display: inline-grid; place-items: center; font-size: 11px; color: transparent; }
.ob-chip.on .ck { background: var(--side); border-color: var(--side); color: #fff; }
.ob-chip small { color: var(--mute); }
.ob-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ob-btns .btn { margin: 0; }
.ob-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 8px 0 10px; }
.ob-stat { background: #F6F8FB; border-radius: 10px; padding: 10px 12px; }
.ob-stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.ob-stat b small { font-size: 14px; color: var(--mute); font-weight: 400; }
.ob-stat span { font-size: 12.5px; color: var(--mute); }
.ob-stat.grn b { color: var(--green); } .ob-stat.amb b { color: var(--amber-ink); }
.ob-tw { overflow-x: auto; }
.ob-t { border-collapse: collapse; width: 100%; font-size: 14px; margin-top: 6px; }
.ob-t th, .ob-t td { border-bottom: 1px solid var(--line); padding: 7px 8px; text-align: left; vertical-align: middle; }
.ob-t th { color: var(--mute); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em; }
.ob-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.ob-t .pill { margin: 2px 4px 2px 0; }
.ob-t .btn { margin: 0; padding: 5px 12px; white-space: nowrap; }
.ob-bar { display: flex; align-items: center; gap: 8px; }
.ob-bar .t { flex: 1; height: 8px; background: #EEF0F3; border-radius: 5px; overflow: hidden; min-width: 70px; }
.ob-bar .t i { display: block; height: 100%; background: var(--green); }
.ob-bar .t i.a { background: #E0A526; }
.ob-bar span { font-size: 12.5px; color: var(--mute); min-width: 74px; text-align: right; font-variant-numeric: tabular-nums; }
.ob-link { color: var(--side); font-weight: 600; text-decoration: none; }
.ob-mute { color: var(--mute); }
.ob-more summary { cursor: pointer; color: var(--side); font-weight: 600; padding: 4px 0; font-size: 14px; }
@media (max-width: 640px) { .ob-step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; } .ob-badge { width: 34px; height: 34px; font-size: 15px; }
  .ob-step:not(:last-child)::before { left: 16px; top: 34px; } .ob-box { padding: 12px 12px; } }
@media print { .ob-btns, .onb-more, .ob-chips { display: none; } }


/* R251 (ver3.1): fees per course year */
.scrollx { overflow-x: auto; max-width: 100%; }
table.yfees { border-collapse: collapse; margin: 6px 0; min-width: 420px; }
table.yfees th, table.yfees td { border: 1px solid #d0d7de; padding: 4px 8px; text-align: left; font-size: 13px; }
table.yfees th { background: #eef3f8; }
table.yfees tfoot td { background: #f6f8fa; font-weight: 600; }
table.yfees input { width: 96px; padding: 4px 6px; }

/* ---- build 126: sign-in in the itiwallah.com look (design W2/W3) ---------- */
.gate { min-height: 100vh; display: flex; flex-wrap: wrap; background: #F4F6FA; }
.gate-brand { flex: 1 1 460px; position: relative; overflow: hidden; background: #0B1F42; color: #fff;
  padding: 36px 44px; display: flex; flex-direction: column; gap: 28px; }
.gate-logo { align-self: flex-start; background: #fff; border-radius: 14px; padding: 8px 12px; display: flex; }
.gate-logo img { height: 44px; width: auto; display: block; }
.gate-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; max-width: 470px; margin-top: 28px; }
.gate-eyebrow { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .08em; color: #FFC58A;
  background: rgba(247,147,30,.14); border-radius: 20px; padding: 6px 14px; }
.gate-copy h1 { margin: 0; font-size: 40px; line-height: 1.12; font-weight: 800; }
.gate-copy h1 em { font-style: normal; color: #F7931E; }
.gate-copy p { margin: 0; font-size: 17px; line-height: 1.6; color: #C8D2E4; }
.gate-cards { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex;
  flex-direction: column; gap: 12px; max-width: 420px; }
.gate-cards li { background: rgba(255,255,255,.08); border-radius: 16px; padding: 14px 16px; display: flex;
  gap: 12px; align-items: center; font-weight: 600; }
.gate-cards li.in { margin-left: 32px; }
.gate-cards span { width: 36px; height: 36px; border-radius: 11px; flex: none; }
.gate-cards .o { background: #E8590C; } .gate-cards .b { background: #2B5A9E; } .gate-cards .g { background: #15803D; }
.gate-orbit { position: absolute; width: 760px; height: 760px; right: -300px; bottom: -280px; }
.gate-main { flex: 1 1 460px; padding: 36px 20px; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; }
.signin.gate-card { width: 100%; max-width: 460px; margin: 0; background: #fff; border-radius: 22px;
  box-shadow: 0 20px 50px rgba(11,31,66,.10); overflow: hidden; }
.gate-card > h2 { margin: 0; padding: 28px 30px 0; font-size: 26px; font-weight: 800; color: var(--ink); }
.gate-card .in { padding: 14px 30px 30px; }
.gate-card .in label { font-size: 14px; font-weight: 700; color: var(--ink); }
.gate-card .in input, .gate-card .in select { height: 50px; border: 1.5px solid #CBD3E1; border-radius: 12px; font-size: 16px; }
.gate-card .btn { border-radius: 12px; }
.gate-card .in > form > .btn, .gate-card .in .btn[type=submit] { background: #E8590C; height: 52px; font-size: 17px; }
.gate-card .in > form > .btn:hover, .gate-card .in .btn[type=submit]:hover { background: #C94B08; }
.gate-foot { margin: 0; font-size: 13px; color: var(--mute); text-align: center; }
@media (max-width: 860px) {
  .gate-brand { padding: 20px; gap: 14px; flex-basis: 100%; }
  .gate-copy { margin-top: 0; }
  .gate-copy h1 { font-size: 28px; }
  .gate-cards, .gate-orbit { display: none; }
}

/* R270 (web 133): the 4-digit PIN for saves, and the collect-fee check screen */
[hidden] { display: none !important; }
.pinbox { font-size: 20px; letter-spacing: .4em; max-width: 170px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 16px; margin: 6px 0 12px; }
.cgrid small { display: block; color: var(--mute, #5B6475); font-size: 12px; }
.cpay { background: #E7EEF8; border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.cpay .row, .cafter .row { display: flex; justify-content: space-between; gap: 12px; padding: 2px 0; }
.cpay .tot { font-size: 18px; font-weight: 800; color: #1E4E8C; border-top: 1px solid #C7D5EA; margin-top: 6px; padding-top: 6px; }
.cafter { border: 1px solid #E2E6EF; border-radius: 8px; padding: 12px 14px; margin: 10px 0; }
.cphoto { width: 72px; height: 96px; object-fit: cover; border-radius: 6px; border: 1px solid #E2E6EF; }

/* 3 Nov 2026: "Not a government app" with the official sources (Play, Misleading Claims policy) */
.notgovt { max-width: 760px; margin: 16px auto 0; padding: 12px 14px; border-radius: 10px; background: #F1F4FA;
  color: #1A1C22; font-size: 14px; line-height: 1.5; text-align: left; }
.notgovt.small { font-size: 12.5px; }
.notgovt ul { margin: 6px 0 0; padding-left: 20px; }
.notgovt a { color: #2F4A9E; word-break: break-all; }

/* 3 Nov 2026: the short footer line; the full block opens under it */
.notgovt.short { padding: 8px 12px; }
.notgovt.short summary { cursor: pointer; list-style: none; }
.notgovt.short summary::-webkit-details-marker { display: none; }
.notgovt.short summary .more { color: #2F4A9E; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.notgovt.short[open] summary .more { display: none; }
.notgovt.short > .notgovt { margin: 8px 0 0; padding: 0; background: none; max-width: none; }
.notgovt.short > .notgovt > b:first-child { display: none; }

/* build 146 (3 Nov 2026): the attendance register - a column per day */
.attreg th, .attreg td { padding: 4px 5px; text-align: center; font-size: 12.5px; }
.attreg td:nth-child(2) { text-align: left; white-space: nowrap; }

/* build 151 (R282): the Scholarship tab in three steps */
.sch-filters { margin: 0 0 12px; }
.sch-filters .ob-chips { align-items: center; margin: 4px 0; }
.sch-flab { font-size: 12.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; min-width: 96px; }
.sch-funnel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.sch-fn { border-radius: 10px; padding: 12px 16px; background: #F6F8FB; border: 1px solid var(--line); min-width: 0; }
.sch-fn b { display: block; font-size: 28px; font-variant-numeric: tabular-nums; }
.sch-fn span { font-size: 13px; color: var(--mute); }
.sch-fn .t { height: 8px; background: #E3E8EF; border-radius: 5px; overflow: hidden; margin-top: 8px; }
.sch-fn .t i { display: block; height: 100%; }
.sch-fn.a b a { color: var(--side); } .sch-fn.a i { background: var(--side); }
.sch-fn.b b a { color: #B7791F; } .sch-fn.b i { background: #E0A526; }
.sch-fn.c b a { color: var(--green); } .sch-fn.c i { background: var(--green); }
.sch-lk { color: var(--side); text-decoration: underline dotted; text-underline-offset: 3px; font-weight: 600; }
.ob-stat b .sch-lk { color: inherit; }
.sch-card { margin: 0 0 18px; }
.sch-total td { font-weight: 600; }
@media (max-width: 640px) { .sch-funnel { grid-template-columns: 1fr; } }

/* build 152: the Fees tab */
.fh-search { background: var(--navy-bg); border-radius: 12px; padding: 10px 14px; margin: 0 0 16px; }
.fh-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0 0 16px; }
.fh-tile { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); min-width: 0; }
.fh-tile span { font-size: 13px; color: var(--mute); }
.fh-tile b { display: block; font-size: 24px; font-variant-numeric: tabular-nums; }
.fh-tile small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 4px; }
.fh-tile.g b, .fh-tile.g b a { color: var(--green); } .fh-tile.n b a { color: var(--side); } .fh-tile.a b, .fh-tile.a b a { color: var(--amber-ink); }
.fh-lk { text-decoration: underline dotted; text-underline-offset: 3px; }
.fh-cap { font-size: 12.5px; color: var(--mute); text-transform: uppercase; letter-spacing: .06em; margin: 6px 0 8px; }
.fh-atts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0 0 16px; }
.fh-att { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; background: var(--card); color: var(--ink); text-decoration: none; min-width: 0; }
.fh-att.a { border-color: #F3D08A; background: #FFFBF0; }
.fh-att b { display: block; } .fh-att small { color: var(--mute); font-size: 13px; }
.fh-att .pill { margin: 0; white-space: nowrap; }
.fh-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.fh-grp { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.fh-grp h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; }
.fh-grp a { display: flex; align-items: center; gap: 8px; padding: 9px 2px; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14.5px; }
.fh-grp a:first-of-type { border-top: 0; }
.fh-grp a span { flex: 1; } .fh-grp a::after { content: "\203A"; color: var(--side); font-weight: 700; }
.fh-grp a em { font-style: normal; color: var(--amber-ink); font-weight: 600; font-size: 12.5px; }
.fh-wait { color: var(--mute); animation: fhPulse 1.2s ease-in-out infinite; }
@keyframes fhPulse { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .fh-wait { animation: none; } }
.fh-bar { display: inline-block; width: 7em; max-width: 100%; height: .8em; border-radius: 6px; background: #E3E8EF; vertical-align: middle;
  animation: fhPulse 1.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .fh-bar { animation: none; } }
