/* =====================================================================
   TTI, BITAC — admin console theme ("title block": paper, ink, bottle green,
   brass for the active item). The public website and header keep their
   original style; everything here applies only inside the admin console.
   ===================================================================== */
@font-face{font-family:"TTI Nikosh";src:url(/fonts/nikosh.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"TTI Kalpurush";src:url(/fonts/kalpurush.woff2) format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Archivo";src:url(/fonts/archivo-var.woff2) format("woff2");font-weight:100 900;font-stretch:62% 125%;font-display:swap}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-bn-400.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-la-400.woff2) format("woff2");font-weight:400;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-bn-500.woff2) format("woff2");font-weight:500;font-display:swap;unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-la-500.woff2) format("woff2");font-weight:500;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-bn-600.woff2) format("woff2");font-weight:600;font-display:swap;unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-la-600.woff2) format("woff2");font-weight:600;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-bn-700.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0951-0952,U+0964-0965,U+0980-09FE,U+1CD0,U+1CD2,U+1CD5-1CD6,U+1CD8,U+1CE1,U+1CEA,U+1CED,U+1CF2,U+1CF5-1CF7,U+200C-200D,U+20B9,U+25CC,U+A8F1}
@font-face{font-family:"Hind Siliguri";src:url(/fonts/hind-la-700.woff2) format("woff2");font-weight:700;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{--paper:#EEF1EE;--panel:#FFFFFF;--ink:#1A2A24;--steel:#5B6B65;--line:#C9D3CE;--line2:#E2E8E4;--green:#00543F;--brass:#9C7419;
  --disp:"Archivo","Hind Siliguri",system-ui,sans-serif;--body:"Hind Siliguri","Archivo",system-ui,sans-serif}
html body #adm{font-family:var(--body)}
html body #adm :focus-visible{outline:2px solid var(--brass)!important;outline-offset:2px}
html body #adm input:not([type=checkbox]):not([type=radio]),html body #adm select,html body #adm textarea{border:1px solid var(--line)!important;border-radius:4px!important;box-shadow:none!important;font-family:var(--body)}
html body #adm input:focus,html body #adm select:focus,html body #adm textarea:focus{border-color:var(--green)!important;outline:2px solid #9C741955!important;outline-offset:0}
/* ===================== admin console ===================== */
html body #adm{border-radius:6px!important;box-shadow:none!important;background:var(--paper)!important;border:1px solid var(--line)!important}
html body .ahead{background:var(--panel)!important;background-image:none!important;color:var(--ink)!important;border-bottom:1px solid var(--line)!important;padding:18px 22px!important}
html body .ahead h1{font-family:var(--disp)!important;font-stretch:115%;font-weight:800!important;color:var(--green)!important}
html body .ahead .who{color:var(--steel)!important}
html body .ahead .ver{color:var(--steel)!important;opacity:.8;white-space:nowrap;display:inline-block}
html body #mnav{background:var(--panel)!important;border-right:1px solid var(--line)!important}
html body .nt{color:var(--steel)!important;letter-spacing:.02em!important;text-transform:none!important;font-size:12.5px!important;font-weight:600!important}
html body button.nb{border-radius:4px!important;color:var(--ink)!important;transition:background-color .12s!important;transform:none!important;border-left:3px solid transparent!important}
html body button.nb svg{background:none!important;color:var(--c)!important;border-radius:0!important;padding:0 2px!important}
html body button.nb:hover{background:var(--paper)!important}
html body button.nb.on{background:var(--paper)!important;color:var(--ink)!important;box-shadow:none!important;border-left-color:var(--c)!important;font-weight:700!important}
html body .kc{border-radius:4px!important;box-shadow:none!important;border:1px solid var(--line)!important;border-top:3px solid var(--c)!important}
html body .kc .kv{font-family:var(--disp)!important;font-stretch:115%;font-weight:800!important}
html body .dc{border-radius:4px!important;box-shadow:none!important;border:1px solid var(--line)!important;border-left:4px solid var(--c)!important}
html body .dh2{font-family:var(--disp)!important;font-stretch:108%}
html body #adm h1,html body #adm h2,html body #adm h3{font-family:var(--disp)!important;font-stretch:110%}
html body #adm table th{background:var(--paper)!important}
html body #adm [data-s]{border-radius:4px!important;box-shadow:none!important}

@media(prefers-reduced-motion:reduce){html body #adm *{transition:none!important}}

/* =====================================================================
   HOME PAGE - the five service buttons in two columns on a wide screen.
   Online Application + Teacher Evaluation on the first row,
   Certificate Download + Application Status on the second,
   Main Website of TTI, BITAC across the bottom.
   On a phone (under 900px) they stay in one column, one under the other.
   ===================================================================== */
@media(min-width:900px){
  html body.onhome #home{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}
  html body.onhome #home>*{grid-column:1/-1;min-width:0}
  html body.onhome #home>.oa{grid-column:auto;width:auto;max-width:none;margin:0 0 14px}
  html body.onhome #home>#msBtn{grid-column:1/-1;width:min(100%,430px);justify-self:center;margin-left:auto;margin-right:auto}
}

/* Admin console title block centred (the heading, the signed-in line and the version) */
html body .ahead{text-align:center!important}
html body .ahead>div{width:100%}
html body .ahead h1,html body .ahead .who{text-align:center!important}

/* ---------- Applications: the filter row (project, course, batch, search) ---------- */
html body #adm .afil{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:6px 10px;margin:0 0 8px}
html body #adm .afil label{margin:0 0 2px!important;font-size:12px!important;color:var(--steel)!important}
html body #adm .afil select,html body #adm .afil input{width:100%;padding:6px 8px!important;font-size:13.5px!important;min-height:0!important}

/* ---------- E-mail Routing: short fields, three across, one block per project ---------- */
html body #adm .rbox{display:grid;grid-template-columns:repeat(3,1fr);gap:4px 10px;margin:2px 0 0}
html body #adm .rbox.one{grid-template-columns:1fr}
html body #adm .rbox label{margin:0 0 2px!important;font-size:12px!important;color:var(--steel)!important}
html body #adm .rbox textarea{min-height:0!important;height:34px;padding:6px 8px!important;font-size:13px!important;resize:vertical;line-height:1.3}
html body #adm details.rgrp{border:1px solid var(--line);border-radius:4px;padding:6px 10px;margin:6px 0;background:var(--panel)}
html body #adm details.rgrp>summary{cursor:pointer;list-style:none}
html body #adm details.rgrp>summary::-webkit-details-marker{display:none}
html body #adm details.rgrp>summary>div{margin:0!important;padding-bottom:2px!important;font-size:15px!important}
html body #adm details.rgrp>summary{position:relative;padding-left:18px}
html body #adm details.rgrp>summary::before{content:"\25B8";position:absolute;left:0;top:2px;color:var(--steel);font-size:14px}
html body #adm details.rgrp[open]>summary::before{content:"\25BE"}
html body #adm details.rgrp .rs{font-size:13px!important}
html body #adm details.rgrp [data-r]{padding-top:4px!important;margin-top:6px!important}
@media(max-width:700px){html body #adm .rbox{grid-template-columns:1fr}}

/* ---------- Left menu: show every option, no inner scrollbar ---------- */
@media(min-width:901px){
  html body #adm .amain{grid-template-columns:252px 1fr}
  /* 18-Nov-2026: the menu floats - it stays in view on the left while the page scrolls (its own scroll if it is taller than the screen) */
  html body #adm #mnav{position:sticky!important;top:10px!important;align-self:start!important;max-height:calc(100vh - 20px)!important;overflow-y:auto!important;overscroll-behavior:contain;min-height:0!important;border-radius:16px!important;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) transparent}
}
/* On a phone the menu stays a side-scrolling strip, so the page itself never widens. */
@media(max-width:900px){html body #adm .amain{grid-template-columns:1fr}html body #adm #mnav{overflow-x:auto!important;max-height:none!important}}

/* ---------- Tick boxes sit beside their text, not on a line of their own ---------- */
html body #adm input[type=checkbox],html body #adm input[type=radio]{width:auto!important;display:inline-block!important;padding:0!important;margin:0 7px 0 0!important;vertical-align:-2px}

/* ---------- Left menu: each group heading is a small box in its own colour ---------- */
html body #adm #mnav .ng{margin:0 0 4px}
html body #adm #mnav .nt{display:block;margin:12px 0 6px;padding:6px 10px;border-radius:6px;background:var(--gb,#eef2f0)!important;color:var(--g,#5B6B65)!important;border-left:4px solid var(--g,#C9D3CE)!important;font-size:12px!important;font-weight:700!important;letter-spacing:.04em!important;text-transform:uppercase!important}
html body #adm #mnav .ng:first-child .nt{margin-top:0}

/* ---------- Search Student Info: the box in the console header ---------- */
html body #adm .ahead{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:wrap;text-align:left!important}
html body #adm .ahead>div:first-child{flex:1;min-width:260px;text-align:center!important}
html body #adm .asb{flex:0 1 420px;min-width:260px}
html body #adm .asb label{display:block;margin:0 0 4px!important;font-size:12px!important;font-weight:700!important;color:var(--steel)!important}
html body #adm .asr{display:flex;gap:6px}
html body #adm .asr input{flex:1;min-width:0;padding:7px 10px!important;font-size:13.5px!important}
html body #adm .asr button{flex:none;margin:0!important;padding:7px 14px!important;font-size:13.5px!important}
html body #adm .gse{border:1px solid var(--line);background:var(--panel);border-radius:6px;padding:12px 14px;font-size:14px}
@media(max-width:760px){html body #adm .asb{flex:1 1 100%}}

/* ---------- A very long word (a pasted review, a long e-mail) wraps instead of
     running out of its box ---------- */
html body #adm{overflow-wrap:anywhere}
html body #adm th{overflow-wrap:normal;word-break:normal}

/* ---------- General Viewer: a read-only account ---------- */
html body #adm .robar{margin:0 0 10px;padding:9px 12px;border:1px solid #c9a227;background:#fdf6e3;border-radius:6px;font-size:13.5px;color:#5c4708;font-weight:600}
html body #adm.ro #panel button[disabled]{opacity:.45;cursor:not-allowed}

/* Admin Console headline in colour */
html body .ahead h1{background:linear-gradient(90deg,#0a9d4a,#0b72c4 50%,#7b2d8e)!important;-webkit-background-clip:text!important;background-clip:text!important;color:transparent!important;-webkit-text-fill-color:transparent!important;display:inline-block}

/* ---------- Sign-in, password and reset pages (professional card layout) ---------- */
html body #adm .auth{display:flex;justify-content:center;padding:34px 16px 40px;background:linear-gradient(180deg,#eef3f0 0,#f6f8f7 100%)}
html body #adm .auth-card{width:100%;max-width:440px;background:#fff;border:1px solid #d5ddd9;border-radius:12px;box-shadow:0 10px 30px #0a2a2014,0 1px 3px #0a2a2010;overflow:hidden}
html body #adm .auth-hd{display:flex;gap:14px;align-items:center;padding:22px 26px 18px;border-bottom:1px solid #e6ece9;background:#fbfcfb}
html body #adm .auth-ic{flex:none;display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:12px;background:#e3f1ea;color:#00543f}
html body #adm .auth-hd h2{margin:0;font-family:var(--disp);font-size:20px;font-weight:800;color:#13261f;letter-spacing:-.01em;line-height:1.2}
html body #adm .auth-hd p{margin:3px 0 0;font-size:13.5px;color:#5b6b65;line-height:1.45}
html body #adm .auth-bd{padding:20px 26px 24px}
html body #adm .auth-who{display:flex;align-items:center;gap:10px;margin:0 0 16px;padding:10px 12px;border:1px solid #e1e8e4;border-radius:8px;background:#f7faf8;font-size:13.5px;color:#33463f}
html body #adm .auth-who b{color:#13261f}
html body #adm .auth-av{flex:none;width:32px;height:32px;border-radius:50%;background:#00543f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px}
html body #adm .af{margin:0 0 14px}
html body #adm .af label{display:block;margin:0 0 6px;font-size:13.5px;font-weight:600;color:#1f332b}
html body #adm .aw{position:relative}
html body #adm .aw input{width:100%;height:44px;padding:0 44px 0 12px!important;font-size:15px;color:#13261f;background:#fff;border:1px solid #c3cec9!important;border-radius:8px!important;transition:border-color .15s,box-shadow .15s}
html body #adm .aw input:focus{border-color:#00543f!important;box-shadow:0 0 0 3px #00543f22!important;outline:none!important}
html body #adm .aw .eye{position:absolute;right:4px;top:4px;width:36px;height:36px;margin:0;padding:0;border-radius:6px;background:none;color:#5b6b65;display:flex;align-items:center;justify-content:center}
html body #adm .aw .eye:hover{background:#eef3f0;color:#00543f}
html body #adm .prl{list-style:none;margin:-4px 0 16px;padding:10px 12px;border-radius:8px;background:#f7faf8;border:1px solid #e1e8e4;display:grid;grid-template-columns:1fr 1fr;gap:6px 12px}
html body #adm .prl li{display:flex;align-items:center;gap:7px;font-size:12.5px;color:#6b7a74}
html body #adm .prl li:before{content:"";flex:none;width:14px;height:14px;border-radius:50%;border:1.5px solid #b5c2bc;box-sizing:border-box}
html body #adm .prl li.ok{color:#0a7a50}
html body #adm .prl li.ok:before{border:0;background:#0a9d5a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.6 2.6L12 5.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat}
html body #adm .ab{display:block;width:100%;height:46px;margin:6px 0 0;padding:0 16px;border-radius:8px;background:#00543f;color:#fff;font-size:15px;font-weight:700;letter-spacing:.01em;transition:background .15s,opacity .15s}
html body #adm .ab:hover{background:#00412f}
html body #adm .ab:disabled{opacity:.45;cursor:not-allowed}
html body #adm .alinks{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:16px;font-size:13.5px}
html body #adm .alinks.c{justify-content:center}
html body #adm .alk{margin:0;padding:0;background:none;color:#00543f;font-size:13.5px;font-weight:600;text-decoration:none;cursor:pointer}
html body #adm .alk:hover{text-decoration:underline}
html body #adm .auth #am{margin:14px 0 0!important;font-size:13.5px!important;font-weight:600!important;border-radius:8px;line-height:1.45}
html body #adm .auth #am:not(:empty){padding:10px 12px;border:1px solid #f1c4c4;background:#fff5f5}
html body #adm .auth #am.ok:not(:empty){border-color:#bfe3d0;background:#f1faf5}
html body #adm .auth-ft{padding:12px 26px;border-top:1px solid #e6ece9;background:#fbfcfb;font-size:12px;color:#7a8883;text-align:center}
@media(max-width:480px){html body #adm .auth{padding:18px 12px 28px}html body #adm .auth-hd,html body #adm .auth-bd{padding-left:18px;padding-right:18px}html body #adm .prl{grid-template-columns:1fr}}
html body #adm .prn{margin:-8px 0 16px;font-size:12px;color:#6b7a74;line-height:1.45}
/* long menu names (e.g. "Course Evaluation and Feedback") wrap inside the menu instead of running past its edge */
@media(min-width:901px){html body #adm #mnav button{white-space:normal!important;height:auto!important;min-height:36px;line-height:1.25!important;text-align:left!important;overflow-wrap:anywhere}}
/* ===== 13-Nov-2026 polish: one calm, consistent look for every form control, button and table of the admin console ===== */
html body #adm select,html body #adm input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=color]),html body #adm textarea{background-color:#fff;border:1px solid #c9d4ce;border-radius:8px;color:#1d2b25;transition:border-color .15s,box-shadow .15s}
html body #adm select:hover,html body #adm input:not([type=checkbox]):not([type=radio]):not([type=file]):hover,html body #adm textarea:hover{border-color:#9fb3a9}
html body #adm select:focus,html body #adm input:not([type=checkbox]):not([type=radio]):not([type=file]):focus,html body #adm textarea:focus{outline:none;border-color:#00704f;box-shadow:0 0 0 3px rgba(0,112,79,.15)}
html body #adm select:disabled,html body #adm input:disabled,html body #adm textarea:disabled{background-color:#f3f5f4;color:#7a8883}
html body #adm button{border-radius:8px;letter-spacing:.1px;transition:filter .15s,box-shadow .15s,transform .05s}
html body #adm button:not(:disabled):hover{filter:brightness(1.08)}
html body #adm button:not(:disabled):active{transform:translateY(1px)}
html body #adm button:disabled{opacity:.55;cursor:not-allowed}
html body #adm .amain button.s{background:#4a5551}
html body #adm table{border-collapse:collapse}
html body #adm table th{background:#e6efe9;color:#1f3a2f;font-weight:700;letter-spacing:.2px}
html body #adm table tbody tr:nth-child(even) td{background:#f8faf9}
html body #adm table tbody tr:hover td{background:#eef6f1}
html body #adm .kgrid.sm{grid-template-columns:repeat(auto-fit,minmax(112px,1fr))}
html body #adm .kc{border-radius:10px;box-shadow:0 1px 2px rgba(16,40,30,.06)}

/* one press at a time: a button or list whose work is still running is faded and cannot be pressed again (set by app.js) */
.isbusy{opacity:.5!important;cursor:progress!important;pointer-events:none!important;filter:grayscale(.75)!important;position:relative}
button.isbusy::after{content:"";display:inline-block;width:.9em;height:.9em;margin-left:.45em;vertical-align:-.12em;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:bzspin .7s linear infinite}
@keyframes bzspin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){button.isbusy::after{animation-duration:2s}}

/* ===== 14-Nov-2026: admin console look upgraded to match LVMS (dark green menu, solid colour figure tiles, soft cards) ===== */
/* left menu (computer) and the slide-in menu (mobile): dark green panel, white text, the open item is a white pill */
@media all{
  html body #adm #mnav{background:linear-gradient(180deg,#0a6b45 0%,#07513a 55%,#053a29 100%)!important;border-right:0!important;padding:16px 12px 22px!important}
  html body #adm #mnav .nt{background:none!important;border-left:0!important;color:rgba(255,255,255,.62)!important;font-size:10.5px!important;letter-spacing:.13em!important;padding:4px 10px!important;margin:16px 0 4px!important;display:flex!important;align-items:center;gap:8px}
  html body #adm #mnav .nt::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--g,#ffd54f);box-shadow:0 0 0 2px rgba(255,255,255,.18);flex:none}
  html body #adm #mnav .ng:first-child .nt{margin-top:2px!important}
  html body #adm #mnav .nb{color:rgba(255,255,255,.9)!important;border-left:0!important;border-radius:10px!important;padding:9px 12px!important;font-weight:500!important}
  html body #adm #mnav .nb svg{color:rgba(255,255,255,.8)!important}
  html body #adm #mnav .nb:hover{background:rgba(255,255,255,.1)!important;color:#fff!important}
  html body #adm #mnav .nb.on{background:#fff!important;color:#0a5a3b!important;font-weight:700!important;box-shadow:0 4px 14px rgba(0,0,0,.18)!important}
  html body #adm #mnav .nb.on svg{color:#0a6b45!important}
  /* each common group in its own box, tinted with the group's colour */
  html body #adm #mnav .ng{background:color-mix(in srgb,var(--g,#ffffff) 22%,rgba(255,255,255,.05));border:1px solid rgba(255,255,255,.14);border-left:4px solid var(--g,#ffd54f);border-radius:12px;padding:4px 6px 6px;margin:0 0 10px!important;box-shadow:0 2px 8px rgba(0,0,0,.12)}
  html body #adm #mnav .ng .nt{margin:4px 0 2px!important;color:#fff!important;opacity:.85}
  html body #adm #mnav .ng .nt::before{background:var(--g,#ffd54f);box-shadow:0 0 0 2px rgba(255,255,255,.35)}
  html body #adm #mnav::-webkit-scrollbar{width:8px}html body #adm #mnav::-webkit-scrollbar-thumb{background:rgba(255,255,255,.25);border-radius:8px}
}
/* figure tiles: solid colour, big white number (the colour of each tile stays the same as before) */
html body #adm .kc{background:linear-gradient(135deg,var(--c) 0%,color-mix(in srgb,var(--c) 80%,#000) 100%)!important;border:0!important;border-top:0!important;border-radius:14px!important;box-shadow:0 6px 16px color-mix(in srgb,var(--c) 28%,transparent)!important;color:#fff!important;position:relative;overflow:hidden;padding:14px 16px!important}
html body #adm .kc::after{content:"";position:absolute;right:-18px;top:-18px;width:78px;height:78px;border-radius:50%;background:rgba(255,255,255,.12);pointer-events:none}
html body #adm .kc .kl{color:rgba(255,255,255,.92)!important;font-weight:700!important}
html body #adm .kc .kv{color:#fff!important}
html body #adm .kc .ks{color:rgba(255,255,255,.85)!important}
/* chart and list cards: white, rounded, soft shadow, a coloured line on top */
html body #adm .dc{border-radius:14px!important;border:1px solid #e1e9e5!important;border-left:1px solid #e1e9e5!important;border-top:4px solid var(--c)!important;box-shadow:0 6px 18px rgba(16,40,30,.06)!important;background:#fff!important}
/* the dashboard greeting band */
html body #adm .dhello{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid #e1e9e5;border-radius:14px;box-shadow:0 6px 18px rgba(16,40,30,.06);padding:14px 18px;margin:0 0 14px}
html body #adm .dhello .dd{font-size:12.5px;color:#5a756d}
html body #adm .dhello .dg{font-size:20px;font-weight:800;color:#12352a;margin:2px 0}
html body #adm .dhello .dr{font-size:12.5px;color:#5a756d}
html body #adm .dlive{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#5a756d}
html body #adm .dlive i{width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 3px rgba(22,163,74,.18)}
/* ===== LOOK UPDATE 14-Nov-2026 (v16): feels faster and clearer, same approved layout and colours ===== */
/* thin bar at the very top while the server is working (BITAC header colours) */
#netbar{position:fixed;left:0;top:0;height:3px;width:100%;z-index:99999;pointer-events:none;opacity:0;transition:opacity .2s;background:linear-gradient(90deg,transparent 0,#006a4e 20%,#1b5fa8 50%,#d62828 80%,transparent 100%);background-size:50% 100%;background-repeat:no-repeat;animation:netmv 1.1s linear infinite}
#netbar.on{opacity:1}
@keyframes netmv{0%{background-position:-50% 0}100%{background-position:150% 0}}
/* page placeholder while a console page loads */
#adm .skel{padding:6px 2px}
#adm .skel .skt{font-size:13px;font-weight:700;color:#5b7069;margin:0 0 12px}
#adm .skel i{display:block;height:14px;border-radius:7px;margin:0 0 12px;background:linear-gradient(90deg,#d9e3df 0,#edf2f0 40%,#d9e3df 80%);background-size:200% 100%;animation:skmv 1.2s ease-in-out infinite}
#adm .skel .skg{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;margin:4px 0 14px}
#adm .skel .skg i{height:78px;margin:0;border-radius:10px}
@keyframes skmv{0%{background-position:100% 0}100%{background-position:-100% 0}}
/* a page that has loaded fades in softly */
#adm #panel>*{animation:pfade .22s ease-out}
@keyframes pfade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
/* dashboard: bars grow from the base, figures lift a little under the mouse */
#adm svg.chs rect{transform-box:fill-box;transform-origin:50% 100%;animation:bgrow .5s ease-out both}
@keyframes bgrow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
#adm .hb .ht i{transition:width .5s ease-out}
@media(hover:hover){html body #adm .kc{transition:transform .15s ease,box-shadow .15s ease}html body #adm .kc:hover{transform:translateY(-2px);box-shadow:0 10px 22px color-mix(in srgb,var(--c) 38%,transparent)!important}}
@media(prefers-reduced-motion:reduce){#netbar,#adm .skel i,#adm #panel>*,#adm svg.chs rect{animation:none!important}html body #adm .kc:hover{transform:none}}
@media print{#netbar,#adm .skel{display:none!important}}
#adm .chw{position:relative}
#adm .chw .che{position:absolute;left:0;right:0;top:38%;text-align:center;font-size:13px;font-weight:600;color:#7d918a}

/* the console box clipped with overflow:hidden, which stops a sticky menu; clip cuts the same edges but lets the menu float */
@supports (overflow:clip){html body #adm{overflow:clip!important}}
/* ===== 18-Nov-2026: MOBILE - no more side-scrolling menu strip.
   A small top bar (Menu button + page name) stays at the top; the full menu slides in from the left;
   a bottom bar keeps the most used pages under the thumb: Home, Applications, Approvals, Trainees, Reports. ===== */
#mtop,#mbot,#mshade{display:none}
@media(max-width:900px){
  html body #adm{padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}
  html body #adm #mnav{display:block!important;position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:84%!important;max-width:330px!important;max-height:none!important;min-height:0!important;z-index:1001!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;transform:translateX(-106%);transition:transform .3s cubic-bezier(.2,.8,.2,1);border-radius:0 20px 20px 0!important;padding:14px 12px 30px!important;box-shadow:0 0 40px rgba(0,0,0,.35);border:0!important}
  body.mopen #adm #mnav{transform:none}
  /* 19-Nov-2026: the slide-in menu is exactly one screen tall and scrolls up / down by finger (it grew as tall as all its items before) */
  html body #adm #mnav{height:100vh!important;height:100dvh!important;max-height:100vh!important;max-height:100dvh!important;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain}
  html body #adm #mnav .ng{display:block!important}
  html body #adm #mnav .nt{display:flex!important}
  html body #adm #mnav button.nb{display:flex!important;width:100%!important;white-space:normal!important;text-align:left!important;font-size:15px!important;padding:11px 12px!important;min-height:44px}
  html body #adm #mnav button.nb svg{width:18px!important;height:18px!important}
  #mshade{display:block;position:fixed;inset:0;background:rgba(4,30,22,.45);opacity:0;pointer-events:none;transition:opacity .3s;z-index:1000}
  body.mopen #mshade{opacity:1;pointer-events:auto}
  body.mopen{overflow:hidden}
  #mtop{display:flex;position:sticky;top:0;z-index:900;align-items:center;gap:10px;margin:0 0 10px;padding:8px 10px;background:rgba(255,255,255,.9);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid #dfe9e4;border-radius:14px;box-shadow:0 6px 18px rgba(20,60,45,.08)}
  #mtop button{display:flex;align-items:center;gap:7px;width:auto!important;margin:0!important;background:#0a5c44!important;color:#fff!important;border:0!important;border-radius:11px!important;padding:9px 13px!important;font-size:14px!important;font-weight:700!important;flex:none}
  #mtop button svg{width:18px;height:18px}
  #mtop b{flex:1;min-width:0;font-size:15px;color:#13241d;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #mbot{display:flex;position:fixed;left:8px;right:8px;bottom:calc(8px + env(safe-area-inset-bottom));z-index:950;background:#0a3d2f;border-radius:20px;padding:6px;gap:2px;box-shadow:0 12px 30px rgba(4,40,30,.35)}
  #mbot button{flex:1;min-width:0;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:auto!important;margin:0!important;background:none!important;border:0!important;color:#a9d1c2!important;font-size:10.5px!important;font-weight:600!important;padding:7px 2px!important;border-radius:14px!important;line-height:1.1!important;box-shadow:none!important;min-height:52px}
  #mbot button svg{width:21px;height:21px;padding:0!important;background:none!important}
  #mbot button span{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  #mbot button.on{background:#fff!important;color:#0a5c44!important;font-weight:800!important}
}
@media print{#mtop,#mbot,#mshade{display:none!important}}

/* 19-Nov-2026: Users > access table on a phone - every page is one card: the full page name on top, the two choices below it */
@media(max-width:700px){
  html body #adm table.pmx,html body #adm table.pmx tbody{display:block!important;width:100%!important}
  html body #adm table.pmx tr{display:block!important}
  html body #adm table.pmx tr.mxh{display:flex!important;flex-wrap:wrap;gap:6px;background:#eef5f2;border:1px solid #cfd8d4;border-radius:10px;padding:6px 8px;margin:0 0 6px}
  html body #adm table.pmx tr.mxh th{display:block!important;border:0!important;background:none!important;padding:2px 4px!important;white-space:normal!important}
  html body #adm table.pmx tr.mxh th:first-child{display:none!important}
  html body #adm table.pmx tr.mxg td{display:block!important;border:0!important;padding:12px 2px 4px!important;font-size:14px!important}
  html body #adm table.pmx tr.mxr{border:1px solid #d5e0db;border-radius:10px;background:#fff;margin:0 0 8px;padding:8px 10px;box-shadow:0 1px 3px rgba(0,0,0,.05)}
  html body #adm table.pmx tr.mxr td{display:block!important;border:0!important;padding:3px 0!important;text-align:left!important;width:auto!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important;hyphens:none}
  html body #adm table.pmx tr.mxr td.mxp{font-size:15px!important;padding-bottom:4px!important;border-bottom:1px dashed #e0e7e3!important;margin-bottom:4px}
  html body #adm table.pmx tr.mxr td.mxv::before,html body #adm table.pmx tr.mxr td.mxc::before{content:attr(data-h);display:block;font-size:11px;font-weight:700;color:#5b6b65;text-transform:uppercase;letter-spacing:.04em;margin:2px 0 1px}
  html body #adm table.pmx tr.mxr td label.opt{justify-content:flex-start!important;text-align:left!important;font-size:13.5px!important;line-height:1.35;align-items:flex-start;gap:8px}
  html body #adm table.pmx tr.mxr td label.opt input{flex:none;margin-top:2px}
  html body #adm table.pmx tr.mxr,html body #adm table.pmx tr.mxr:nth-child(n){background:#fff!important}
  html body #adm table.pmx tr.mxr td,html body #adm table.pmx tr.mxr:nth-child(n) td{background:transparent!important}
  html body #adm table.pmx tr.mxr td>span{display:none}
  html body #adm table.pmx tr.mxr td:has(>span:only-child){display:none!important}
  html body #adm table.pmx tr.mxr.mxs{margin-left:16px;border-left:3px solid #9cc5b8}   /* 20-Nov-2026: an extra feature sits under its page */
  html body #adm table.pmx tr.mxr.mxs td.mxp{font-size:14px!important}
  html body #adm table.pmx tr.mxr.mxs td.mxp b.mxsl{padding-left:0!important}
}

/* 19-Nov-2026: phones - words are never chopped in the middle. Break a word only when it alone cannot fit;
   a wide table scrolls sideways inside its own box (not the page); dashboard tiles put the icon above the label. */
@media(max-width:900px){
  html body #adm{overflow-wrap:break-word!important}
  html body #adm #panel td,html body #adm #panel th{overflow-wrap:normal!important;word-break:normal!important}
  html body #adm #panel td a,html body #adm #panel td small{overflow-wrap:anywhere}
  html body #adm .tscroll{overflow-x:auto;max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  html body #adm #panel label.s,html body #adm #panel button{overflow-wrap:normal;word-break:normal}
}
@media(max-width:430px){
  html body #adm .zkp{flex-direction:column-reverse;align-items:flex-start;gap:6px}
  html body #adm .zkp>div:first-child{width:100%}
  html body #adm .zkp .zic{width:32px;height:32px;border-radius:10px}
  html body #adm .zkp .zic svg{width:17px;height:17px}
  html body #adm .zfx button{flex-direction:column;align-items:flex-start;gap:6px}
  html body #adm .zfx button span{overflow-wrap:normal!important;word-break:normal!important}
}

/* 19-Nov-2026: ALL screen sizes - table cells never chop a word; words break only when one word alone cannot fit */
html body #adm{overflow-wrap:break-word!important}
html body #adm #panel td,html body #adm #panel th{overflow-wrap:normal!important;word-break:normal!important}
html body #adm #panel td a,html body #adm #panel td small{overflow-wrap:anywhere}
html body #adm .tscroll{overflow-x:auto;max-width:100%}
html body #adm #panel label.s,html body #adm #panel button{overflow-wrap:normal;word-break:normal}
/* 21-Nov-2026: Release Letter table (Stay, Clearance, Comment) becomes one card per trainee on a phone */
@media(max-width:640px){
#adm table.rlt,#adm table.rlt tbody{display:block}
#adm table.rlt tr:first-child{display:none}
#adm table.rlt tr[data-no]{display:grid;grid-template-columns:1fr 1fr;gap:6px;border:1px solid #cfd8d3;border-radius:8px;padding:8px;margin:0 0 8px}
#adm table.rlt td{display:block;border:0!important;padding:0!important;min-width:0}
#adm table.rlt td:nth-child(1),#adm table.rlt td:nth-child(5){grid-column:1/-1}
#adm table.rlt td:nth-child(1){font-weight:700}
#adm table.rlt td:nth-child(2){grid-column:1/-1;font-size:12.5px;color:#444;overflow-wrap:anywhere}
#adm table.rlt select{width:100%!important}
#adm table.rlt input{min-width:0!important}
}
html body #adm table.rlt tr.rlno td,html body #adm table.rlt tr.rlno{background:#fdecec}
/* 21-Nov-2026: a certificate, ID card or report page that is being drawn is never seen behind the console: on the live page it stays
   far to the left, outside the screen (its size and layout do not change). Inside the hidden copy that is photographed (class h2f) it is in its normal place. */
html:not(.h2f) body>div[style*="z-index: -1"][style*="position: fixed"]{left:-30000px!important;right:auto!important}
