/* IDM system theme (19 Nov 2026). One look for every page: the sign-in pages, the workspace and the website pages shown
   inside the workspace. Everything is scoped to <html class="idm">, so it cannot change pages that do not opt in.
   Sign-in pages: html.idm.auth. Pages inside the workspace frame: html.idm.in-workspace (see inc/lib.php). */
html.idm {
  --green: var(--brand-primary,#307C48); --green-2: var(--brand-primary,#307C48); --dark: var(--brand-deep,#235934); --gold: #f5c518; --gold-ink: #8a5a00;
  --ink: #0e2a20; --muted: #5b6f66; --line: #dfe9e3; --line-2: #bcd0c4; --bg: #dcebe2; --card: #ffffff;
  --red: #b42318; --red-bg: #fdecea; --ok: #14663f; --ok-bg: #e7f5ec;
}
html.idm body { font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.45; margin: 0; }
html.idm a { color: var(--green); }
html.idm button, html.idm input, html.idm select, html.idm textarea { font: inherit; }
html.idm h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0; color: var(--ink); }
html.idm h2 { font-size: 19px; font-weight: 800; margin: 0; color: var(--ink); }
html.idm h3 { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); }

/* ================= Sign-in pages: a compact card that keeps its height ================= */
html.idm.auth body { min-height: 100vh; display: grid; place-items: center; padding: 28px 16px; box-sizing: border-box;
  background: radial-gradient(1200px 600px at 50% -10%, #d7ebe0 0%, var(--bg) 60%); }
html.idm.auth .auth-card { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line);
  border-top: 5px solid var(--green); border-radius: 14px; box-shadow: 0 1px 2px rgba(14,42,32,.06), 0 14px 34px rgba(14,42,32,.08);
  padding: 22px 26px 18px; box-sizing: border-box; }
html.idm.auth .auth-band { margin: -22px -26px 16px; padding: 16px; border-radius: 9px 9px 0 0; background: linear-gradient(90deg, var(--dark), var(--green)); text-align: center; }
html.idm.auth .auth-band img { height: 46px; width: auto; display: inline-block; }
html.idm.auth .auth-logo { display: block; height: 52px; width: auto; margin: 0 auto 8px; }
html.idm.auth .auth-card h1 { text-align: center; font-size: 22px; min-height: 30px; }
html.idm.auth .auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
/* a fixed slot: messages appear inside it, so the card never changes height */
html.idm.auth .msg-slot { margin: 0 0 10px; }
html.idm.auth .msg-slot:empty { display: none; }
html.idm.auth .msg-slot > div { width: 100%; box-sizing: border-box; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; line-height: 1.35; }
html.idm.auth .msg { background: var(--red-bg); color: var(--red); border: 1px solid #f4c3bd; }
html.idm.auth .good { background: var(--ok-bg); color: var(--ok); border: 1px solid #bfe3cd; }
html.idm.auth .field { margin: 0 0 10px; }
html.idm.auth .field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
html.idm.auth .field label .req { color: var(--red); margin-left: 2px; }
html.idm.auth .field input { display: block; width: 100%; height: 46px; box-sizing: border-box; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
html.idm.auth .field input:focus { outline: 3px solid rgba(245,197,24,.55); outline-offset: 1px; border-color: var(--green); }
html.idm.auth .field input.bad { border-color: var(--red); }
html.idm.auth .pw { position: relative; }
html.idm.auth .pw input { padding-right: 70px; }
html.idm.auth .pw button { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line-2);
  background: #f5faf7; color: var(--ink); font-weight: 700; font-size: 13px; cursor: pointer; }
/* reserved line under each field: the text is shown here, so the height is the same whether or not there is a message */
html.idm.auth .hint { display: block; height: 18px; margin-top: 4px; font-size: 12.5px; color: var(--muted); line-height: 18px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
html.idm.auth .hint.bad { color: var(--red); }
html.idm.auth .btn-block { display: flex; align-items: center; justify-content: center; width: 100%; height: 46px; margin-top: 6px; border: 0;
  border-radius: 8px; background: var(--green); color: #fff; font-weight: 800; font-size: 15px; cursor: pointer; }
html.idm.auth .btn-block:hover { background: var(--green-2); }
html.idm.auth .btn-block:focus-visible { outline: 3px solid rgba(245,197,24,.6); outline-offset: 2px; }
html.idm.auth .auth-foot { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
html.idm.auth .auth-foot a { font-weight: 700; color: var(--green); margin: 0 6px; text-decoration: none; }
html.idm.auth .auth-foot a:hover { text-decoration: underline; }
@media (max-width: 480px) { html.idm.auth .auth-card { padding: 18px 18px 14px; } }

/* ================= Pages inside the workspace frame (the website's pages) ================= */
html.idm.in-workspace body { padding: 14px 18px 26px; background: var(--bg); }
html.idm.in-workspace .card, html.idm.in-workspace section.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }
html.idm.in-workspace table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14.5px; }
html.idm.in-workspace th { text-align: left; background: #f5faf7; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; padding: 11px 12px; border-bottom: 1px solid var(--line); }
html.idm.in-workspace td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
html.idm.in-workspace input:not([type=checkbox]):not([type=radio]):not([type=file]), html.idm.in-workspace select, html.idm.in-workspace textarea {
  box-sizing: border-box; max-width: 100%; min-height: 42px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; color: var(--ink); }
html.idm.in-workspace button, html.idm.in-workspace .btn, html.idm.in-workspace .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 8px 16px; border-radius: 8px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink); font-weight: 700; cursor: pointer; text-decoration: none; }
html.idm.in-workspace button:hover { border-color: var(--green); color: var(--green); }
html.idm.in-workspace .btn-primary, html.idm.in-workspace button.primary, html.idm.in-workspace .btn.primary {
  background: var(--green); border-color: var(--green); color: #fff; }
html.idm.in-workspace .btn-primary:hover, html.idm.in-workspace button.primary:hover { background: var(--green-2); color: #fff; }
html.idm.in-workspace .pill, html.idm.in-workspace .tag, html.idm.in-workspace .badge {
  display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: #eaf2ed; color: var(--ink); }
/* the page's own top bar becomes the green workspace bar: its logo and user block are removed (the workspace shows them),
   its navigation links stay (the page's tabs) */
html.idm.in-workspace header.top, html.idm.in-workspace header.eq-h, html.idm.in-workspace div.top, html.idm.in-workspace .topbar {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 0 !important; margin: 0 0 16px !important;
  padding: 10px 16px !important; border-radius: 12px; background: linear-gradient(90deg, var(--dark), var(--green)) !important;
  color: #fff !important; border-bottom: 3px solid var(--gold) !important; box-sizing: border-box; }
html.idm.in-workspace header.top a, html.idm.in-workspace header.eq-h a, html.idm.in-workspace div.top a, html.idm.in-workspace .topbar a {
  color: #e7f4ed !important; text-decoration: none; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
html.idm.in-workspace header.top a.on, html.idm.in-workspace header.top nav a[aria-current], html.idm.in-workspace header.top nav a.on,
html.idm.in-workspace div.top nav a.on { background: rgba(255,255,255,.14); color: #fff !important; box-shadow: inset 0 -3px 0 var(--gold); }
html.idm.in-workspace :is(.brand, .eq-brand, .eq-logo, .eq-user, .topbtns, .eq-out, .eq-lnk, .staff-bar, .idle-note),
html.idm.in-workspace a[href*="logout"], html.idm.in-workspace a[href*="idm-workspace"], html.idm.in-workspace a[href="./#desk"],
html.idm.in-workspace a[href="./"], html.idm.in-workspace a[href="index.html"] { display: none !important; }
html.idm.in-workspace header.top nav, html.idm.in-workspace div.top nav, html.idm.in-workspace header.eq-h nav { display: flex !important; flex-wrap: wrap; gap: 4px; }
html.idm.in-workspace header.top > span, html.idm.in-workspace header.top > div { color: #fff; }
html.idm.in-workspace h1 { font-size: 22px; margin: 4px 0 8px; }

/* ================= Job application pages (app/job-track.php): sign in, status and documents ================= */
html.idm.jt body { background: var(--bg); color: var(--ink); line-height: 1.55; }
html.idm.jt .site-bar { background: linear-gradient(90deg, var(--dark), var(--green)); color: #fff; padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 4px solid var(--gold); }
html.idm.jt .site-bar b { font-weight: 800; font-size: 1.05rem; }
html.idm.jt .site-bar a { color: #fff; text-decoration: none; font-size: .9rem; font-weight: 700; border: 1px solid rgba(255,255,255,.4); border-radius: 999px; padding: 6px 14px; margin-left: 6px; }
html.idm.jt main { max-width: 860px; margin: 28px auto; padding: 0 16px 48px; }
html.idm.jt .card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 26px; box-shadow: 0 10px 26px -20px rgba(11,58,44,.45); margin-bottom: 18px; }
html.idm.jt h1 { font-size: 1.5rem; margin: 0 0 6px; color: var(--dark); font-weight: 800; }
html.idm.jt h2 { font-size: 1.1rem; margin: 0 0 12px; color: var(--dark); font-weight: 800; }
html.idm.jt label { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; color: var(--ink); }
html.idm.jt input[type=text], html.idm.jt input[type=password], html.idm.jt input[type=email] { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; font: inherit; background: #fff; box-sizing: border-box; }
html.idm.jt input:focus { outline: 3px solid rgba(245,197,24,.55); outline-offset: 1px; border-color: var(--green); }
html.idm.jt .btn { display: inline-block; border: 0; border-radius: 8px; background: var(--green); color: #fff; padding: 12px 22px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; margin-top: 18px; }
html.idm.jt .btn:hover { background: var(--green-2); }
html.idm.jt .btn.alt { background: #e7f0eb; color: var(--dark); }
html.idm.jt .msg { padding: 11px 14px; border-radius: 8px; margin: 0 0 12px; font-size: .92rem; }
html.idm.jt .msg.bad { background: var(--red-bg); color: var(--red); }
html.idm.jt .msg.good { background: var(--ok-bg); color: var(--ok); }
html.idm.jt .muted { color: var(--muted); font-size: .9rem; }
html.idm.jt .rules { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }
html.idm.jt a { color: var(--green); }
html.idm.jt .hero { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; }
html.idm.jt .ref { font: 600 .95rem ui-monospace, Menlo, Consolas, monospace; background: #eef6f1; border-radius: 8px; padding: 4px 10px; color: var(--dark); }
html.idm.jt .now { margin-top: 16px; border-radius: 12px; padding: 18px 20px; background: linear-gradient(135deg, var(--dark), var(--green)); color: #fff; }
html.idm.jt .now small { letter-spacing: .14em; text-transform: uppercase; font-size: .68rem; color: var(--gold); }
html.idm.jt .now b { display: block; font-size: 1.3rem; font-weight: 800; margin: 4px 0; }
html.idm.jt .now.bad { background: linear-gradient(135deg, #6b2020, #8a2c2c); }
html.idm.jt .tl { list-style: none; margin: 6px 0 0; padding: 0; }
html.idm.jt .tl li { position: relative; padding: 0 0 22px 38px; }
html.idm.jt .tl li::before { content: ""; position: absolute; left: 11px; top: 22px; bottom: -2px; width: 2px; background: #d3dfd7; }
html.idm.jt .tl li:last-child::before { display: none; }
html.idm.jt .tl i { position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid #c3d3c9; }
html.idm.jt .tl .done i { background: var(--green); border-color: var(--green); }
html.idm.jt .tl .done i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
html.idm.jt .tl .now i { border-color: var(--gold); background: #fff3de; box-shadow: 0 0 0 5px rgba(245,197,24,.25); }
html.idm.jt .tl .bad i { background: #a02c2c; border-color: #a02c2c; }
html.idm.jt .tl .todo { color: #8a9a91; }
html.idm.jt .tl b { font-weight: 700; display: block; }
html.idm.jt .tl small { color: var(--muted); }
html.idm.jt .kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 22px; margin: 0; }
html.idm.jt .kv dt { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
html.idm.jt .kv dd { margin: 2px 0 0; }
html.idm.jt .docs { margin: 0; padding: 0; list-style: none; }
html.idm.jt .docs li { padding: 8px 0; border-bottom: 1px solid #e8efe9; display: flex; gap: 10px; align-items: center; }
html.idm.jt .docs li::before { content: "✓"; color: var(--green); font-weight: 800; }
html.idm.jt .iv { margin-top: 14px; border: 1px solid #f0d9b3; background: #fff8ec; border-radius: 10px; padding: 14px 16px; }
html.idm.jt .iv b { font-weight: 700; }

/* Inside the workspace a page's own plain top bar is not shown: the workspace already shows the name, the links and sign-out (19 Nov 2026). */
html.idm.in-workspace body > header:not([class]) { display: none !important; }

/* The page banner (title, subtitle and links such as Staff intranet or Log out) is removed inside the workspace (19 Nov 2026).
   A banner that holds the page's tabs keeps its tabs; its title and links are removed. */
html.idm.in-workspace header:not(:has(nav)), html.idm.in-workspace div.top:not(:has(nav)), html.idm.in-workspace .scp-top:not(:has(nav)), html.idm.in-workspace .scx-ch { display: none !important; }
html.idm.in-workspace header:has(nav) h1, html.idm.in-workspace header:has(nav) .tb, html.idm.in-workspace header:has(nav) .out, html.idm.in-workspace header:has(nav) .brand, html.idm.in-workspace div.top:has(nav) h1, html.idm.in-workspace div.top:has(nav) .tb, html.idm.in-workspace div.top:has(nav) .out { display: none !important; }

/* Intranet inside the workspace (19 Nov 2026): one aligned two-column layout. The menu sits in the left column and the content in the
   right column, with nothing clipped or hidden. Narrow screens stack the menu above the content. */
html.idm.in-workspace .wrap { max-width: none !important; grid-template-columns: 240px minmax(0, 1fr) !important; gap: 20px !important; padding: 14px 0 24px !important; align-items: start !important; }
html.idm.in-workspace nav.side { grid-column: 1 !important; grid-row: 1 !important; position: sticky !important; top: 12px !important; display: grid !important; gap: 6px !important; overflow: visible !important; align-self: start !important; }
html.idm.in-workspace main#main { grid-column: 2 !important; grid-row: 1 !important; min-width: 0 !important; overflow: visible !important; }
html.idm.in-workspace header.top { position: static !important; margin: 0 0 14px !important; border-radius: 14px !important; }
html.idm.in-workspace header.top .in { flex-wrap: wrap; gap: 12px; }
html.idm.in-workspace header.top input#gq { min-width: 220px; width: min(360px, 100%); }
html.idm.in-workspace .hero { overflow: visible !important; }
html.idm.in-workspace main#main > * + * { margin-top: 14px; }
@media (max-width: 900px) {
  html.idm.in-workspace .wrap { grid-template-columns: minmax(0, 1fr) !important; }
  html.idm.in-workspace nav.side { grid-column: 1 !important; grid-row: auto !important; position: static !important; display: flex !important; overflow-x: auto !important; }
  html.idm.in-workspace main#main { grid-column: 1 !important; grid-row: auto !important; }
}

html.idm.in-workspace .ws-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
html.idm.in-workspace .ws-tools input, html.idm.in-workspace .ws-tools select { min-width: 240px; flex: 1 1 260px; }
html.idm.in-workspace .ws-tools > button { background: var(--dark); color: #fff; border-color: var(--dark); }

.tbl-search { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.tbl-search input { flex: 0 1 340px; min-width: 200px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid #bcd0c4; background: #fff; font: inherit; color: #0e2a20; }
.tbl-search input:focus { outline: 3px solid rgba(245,197,24,.55); outline-offset: 1px; border-color: var(--brand-primary,#307C48); }
.tbl-count { font-size: 13px; color: #5b6f66; }
