/* OEG HR
   Visual language taken from oegglobal.com: the same brand blue and navy, the
   same Plus Jakarta Sans / Inter pairing, the same 8px radius and quiet
   borders. Mobile first - every layout below starts single-column and opens
   up at 700px and 1000px. */

:root {
  --navy:        #102237;   /* oegglobal footer   */
  --blue:        #1a5789;   /* oegglobal primary  */
  --blue-hover:  #206bab;
  --blue-dark:   #14456d;
  --light-blue:  #e8f1f8;
  --steel:       #8c99a6;
  --warm-gray:   #f7f5f3;
  --ink:         #1d2630;
  --muted:       #73808c;
  --border:      #e1e5ea;
  --bg:          #f4f6f8;
  --card:        #ffffff;
  --ok:          #12805c;
  --ok-bg:       #e7f5ef;
  --warn:        #9a6b00;
  --warn-bg:     #fdf4e0;
  --danger:      #c0392b;
  --danger-bg:   #fdeceb;
  /* Theme colours. A page never types a light colour of its own: it names
     one of these, and dark mode (below) redefines them all. Checked on every
     deploy by tools/check_colours.py. */
  --surface:     #ffffff;   /* a box: card, row, panel              */
  --surface-2:   #f6f8fa;   /* a soft panel inside a box            */
  --text:        #1d2630;   /* body text                            */
  --text-2:      #4a5562;   /* secondary text, still easy to read   */
  --ok-line:     #bfe3d4;
  --warn-line:   #f0dcb0;
  --danger-line: #f3cdc9;
  --info-bg:     #e8f1f8;
  --info-line:   #cfe1f0;
  --info:        #1a5789;
  --radius:      8px;
  --shadow:      0 1px 2px rgba(16,34,55,.06), 0 4px 16px rgba(16,34,55,.05);
  /* aliases kept so page-level inline styles written against the
     earlier palette keep working */
  --line:        #e1e5ea;
  --accent:      #1a5789;
  --head:        "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body:        "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--blue); }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.97); /* colour-ok: dark mode sets its own below */
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  margin: 0 auto; padding: 8px clamp(14px, 2vw, 32px);
  display: flex; align-items: center; gap: 12px; min-height: 56px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 30px; width: auto; display: block; }
.pagetitle {
  flex: 1; min-width: 0; font: 700 16px/1.2 var(--head); color: var(--navy);
  letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-left: 6px; border-left: 1px solid var(--border); margin-left: 2px;
}
.me {
  display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy);
  padding: 4px 8px 4px 4px; border-radius: 999px; border: 1px solid transparent;
}
.me:hover { background: var(--light-blue); border-color: var(--info-line); }
.me .avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff;
  font: 700 13px/30px var(--head); text-align: center; flex: none;
}
.me .me-name { font-weight: 600; font-size: 13.5px; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bell { position:relative; margin-left:auto; margin-right:10px; font-size:18px; color:var(--muted); text-decoration:none; line-height:1 }
.bell.has { color:var(--blue) }
.bell-n { position:absolute; top:-8px; right:-12px; background:var(--danger); color:#fff; font-size:10.5px; font-weight:700; border-radius:999px; padding:1px 6px; line-height:1.3 }
.pill-admin {
  display: inline-block; padding: 1px 7px; border-radius: 999px;
  background: var(--light-blue); color: var(--blue);
  font: 600 10.5px/1.7 var(--body); text-transform: uppercase; letter-spacing: .04em;
}
@media (max-width: 560px) { .me .me-name, .me .pill-admin { display: none; } .pagetitle { font-size: 15px; } }

/* the menu button: three lines, becoming a cross while the drawer is open */
.burger {
  flex: none; width: 42px; height: 38px; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius); cursor: pointer; position: relative;
}
.burger:hover { background: var(--light-blue); }
.burger span, .burger span::before, .burger span::after {
  content: ""; position: absolute; left: 11px; width: 18px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: .18s;
}
.burger span { top: 18px; }
.burger span::before { top: -6px; left: 0; }
.burger span::after  { top:  6px; left: 0; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

/* while the drawer is open its own close button is the way to shut it; the
   cross the menu button would turn into is the same control twice */
body.menu-open .burger { visibility: hidden; }

/* the drawer: one menu for every screen size, grouped by what the screens are for */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 60; background: rgba(16,34,55,.45);
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 70; width: min(300px, 88vw);
  background: var(--surface); box-shadow: 8px 0 30px rgba(16,34,55,.18);
  transform: translateX(-104%); transition: transform .22s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: none; }
body.menu-open { overflow: hidden; }
/* On a desktop the open menu pushes the page aside rather than covering it,
   and stays where it was left from screen to screen; on a phone it slides
   over the page behind a backdrop. */
@media (min-width: 961px) {
  body { transition: padding-left .22s ease; }
  body.no-anim, body.no-anim .drawer { transition: none; }
  body.menu-open { overflow: auto; padding-left: min(300px, 88vw); }
  body.menu-open .drawer-backdrop { display: none; }
  .drawer { box-shadow: none; border-right: 1px solid var(--border); }
}
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-bottom: 1px solid var(--border);
}
.drawer-head img { height: 28px; width: auto; }
.drawer-close {
  width: 36px; height: 36px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); font-size: 22px; line-height: 1; color: var(--navy); cursor: pointer;
}
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 10px 12px; }
.drawer-section {
  margin: 12px 8px 4px; font: 600 10.5px/1.6 var(--body); color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
}
.drawer-body a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius); margin: 1px 0;
  color: var(--navy); text-decoration: none; font-weight: 500; font-size: 14.5px;
}
.drawer-body a:hover { background: var(--light-blue); color: var(--blue); }
.drawer-body a.here { background: var(--blue); color: #fff; }
.drawer-body a.here .step { background: rgba(255,255,255,.22); color: #fff; } /* colour-ok: on the blue highlight */
.drawer-body a.out { color: var(--muted); font-weight: 400; }
/* the numbered badge that marks the three pipeline modules */
.drawer-body .step {
  flex: none; width: 20px; height: 20px; border-radius: 5px;
  background: var(--light-blue); color: var(--blue);
  font: 700 11px/20px var(--head); text-align: center;
}
.drawer-foot {
  padding: 12px 18px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 2px;
}
.drawer-foot b { color: var(--navy); font-size: 14px; }

/* ---------------------------------------------------------------- layout */

/* the page uses the whole screen: zoom out and more cards fit side by side */
main { margin: 0 auto; padding: 18px clamp(16px, 2vw, 32px) 64px; }

.page-head { margin: 6px 0 18px; }
.page-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 11.5px/1 var(--body); letter-spacing: .08em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 10px;
}
.page-head .eyebrow .step {
  width: 20px; height: 20px; border-radius: 5px; background: var(--blue); color: #fff;
  font: 700 11px/20px var(--head); text-align: center; letter-spacing: 0;
}
.page-head h2 { margin: 0 0 6px; font-size: 26px; color: var(--navy); }
.page-head p  { margin: 0; color: var(--muted); max-width: 74ch; }

.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 16px;
}
.card > h3 { margin: 0 0 4px; font-size: 16px; color: var(--navy); }
.card > h3 + p.muted { margin-top: 0; }

/* how-to panel: used liberally, one per page and one per tricky control */
.howto {
  background: var(--light-blue); border: 1px solid var(--info-line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px;
}
.howto h4 {
  margin: 0 0 8px; font-size: 13.5px; color: var(--blue-dark);
  text-transform: uppercase; letter-spacing: .05em;
}
.howto p, .howto li { margin: 4px 0; font-size: 14px; color: var(--text-2); }
.howto ol, .howto ul { margin: 6px 0 0; padding-left: 20px; }
.howto b { color: var(--blue-dark); }
details.howto > summary {
  cursor: pointer; font: 600 13.5px/1.4 var(--body); color: var(--blue-dark);
  text-transform: uppercase; letter-spacing: .05em; list-style: none;
}
details.howto > summary::-webkit-details-marker { display: none; }
details.howto > summary::before {
  content: "+"; display: inline-block; width: 18px; height: 18px; line-height: 18px; text-align: center;
  border-radius: 5px; background: var(--blue); color: #fff; margin-right: 8px; font-weight: 700;
}
details.howto[open] > summary::before { content: "\2212"; }
details.howto[open] > summary { margin-bottom: 8px; }
details.howto > summary h4 { display: inline; margin: 0; font-size: 13.5px; }
details.howto:not([open]) { padding: 10px 16px; }
/* a small pop-up: a confirmation, a viewer; one at a time, closed by its buttons or Esc */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(16,34,55,.45); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal-card { background: var(--surface); border-radius: 12px; box-shadow: 0 12px 40px rgba(16,34,55,.3); width: min(560px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; }
.notice-back { z-index: 100; }
.notice-back[hidden] { display: none; }
.notice-card .warnbox { margin: 0; }
.notice-foot { display: flex; justify-content: flex-end; padding: 0 18px 16px; }
.modal-card.wide { width: min(1100px, 100%); height: 92vh; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); font: 700 16px var(--head); color: var(--navy); }
.modal-head button { border: 0; background: none; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); min-height: 0; padding: 0 4px; }
.modal-body { padding: 16px 18px; overflow: auto; flex: 1; font-size: 14.5px; line-height: 1.55; }
.modal-body.fill { padding: 0; }
.modal-body iframe { width: 100%; height: 100%; border: 0; min-height: 60vh; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.modal-body .ok-mark { width: 44px; height: 44px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
/* a person on a list opens their details page */
[data-person] { cursor: pointer; }
/* HR's ask (11 Nov 2026): a name reads as a link - blue and underlined - wherever it is listed */
.personlink { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.personlink:hover, [data-person]:hover .personlink { color: var(--blue-hover); }
/* one person's details page */
.person-back { display: inline-block; margin-bottom: 10px; font-size: 13.5px; }
.person-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px 22px; margin: 0; }
.person-grid dt { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.person-grid dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.person-grid .long { grid-column: 1 / -1; }
.person-sub { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.person-list { margin: 0; padding-left: 18px; font-size: 13.5px; }
.person-list li { margin: 5px 0; }
.person-sec h3 { margin: 0 0 12px; }
.person-more { margin: 4px 0 14px; }
.person-more > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); padding: 6px 0; }
.person-more > summary::-webkit-details-marker { display: none; }
.person-fold > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.person-fold > summary::-webkit-details-marker { display: none; }
.person-fold > summary h3 { margin: 0; }
.person-fold[open] > summary { margin-bottom: 12px; }
.person-fold .plus, .person-more .plus { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border: 1px solid var(--blue); border-radius: 50%; color: var(--blue); font-size: 15px; line-height: 1; }
.person-more[open] > summary .plus, .person-fold[open] > summary .plus { transform: rotate(45deg); }
ul.person-tree { margin: 0; padding-left: 16px; font-size: 13px; }
/* the History row under a candidate */
tr.histrow > td { background: var(--warm-gray); padding: 10px 14px 12px; }
.histrow .cols { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start; }
.histrow .cols > div { flex: 1 1 260px; font-size: 13.5px; }
.histrow ul.hist { margin: 4px 0 0; padding-left: 18px; }
.histrow ul.hist li { margin: 2px 0; }

/* ---------------------------------------------------------------- pieces */

.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1 1 200px; }
.spread { justify-content: space-between; }
.gap { gap: 10px; }

button, .btn {
  font: 500 14px/1 var(--body); padding: 10px 15px; min-height: 40px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); color: var(--navy); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  text-decoration: none; transition: .15s;
}
button:hover, .btn:hover { border-color: var(--steel); background: var(--warm-gray); }
button.primary, .btn.primary {
  background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600;
}
button.primary:hover, .btn.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
button.danger, .btn.danger { color: var(--danger); border-color: var(--danger-line); background: var(--surface); }
button.danger:hover { background: var(--danger-bg); }
button:disabled { opacity: .5; cursor: not-allowed; }

input, select, textarea {
  font: 14px var(--body); padding: 10px 12px; min-height: 40px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,87,137,.13);
}
.search { flex: 1 1 220px; }
select { flex: 0 1 auto; width: auto; min-width: 130px; }
input[type="checkbox"], input[type="radio"] {
  width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none;
  accent-color: var(--blue); vertical-align: middle;
}
input[type="file"] { padding: 8px 10px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; color: var(--navy); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.count { color: var(--muted); font-size: 13px; }
.linky { background: none; border: 0; padding: 0; min-height: 0; color: var(--blue); text-decoration: underline; cursor: pointer; font-size: 13.5px; }

.summary { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat {
  background: var(--warm-gray); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 14px;
}
.stat b { display: block; font: 700 22px/1.2 var(--head); color: var(--navy); }
.stat span { font-size: 12.5px; color: var(--muted); }
@media (min-width: 700px) { .summary { grid-template-columns: repeat(4, 1fr); } }

.tag {
  display: inline-block; padding: 2px 9px; border-radius: 999px;
  font: 600 11.5px/1.7 var(--body); background: var(--warm-gray); color: var(--muted);
  border: 1px solid var(--border); white-space: nowrap;
}
.tag.ok, .tag.ready, .tag.shortlisted { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.tag.notready, .tag.pri { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.tag.rejected, .tag.danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-line); }
.tag.src, .tag.feed { background: var(--light-blue); color: var(--blue); border-color: var(--info-line); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

.warnbox {
  background: var(--warn-bg); border: 1px solid var(--warn-line); border-left: 4px solid #d9a520;
  border-radius: var(--radius); padding: 12px 14px; margin: 12px 0; font-size: 14px;
}
.warnbox.ok    { background: var(--ok-bg);     border-color: var(--ok-line); border-left-color: var(--ok); }
.warnbox.error { background: var(--danger-bg); border-color: var(--danger-line); border-left-color: var(--danger); }
.error { color: var(--danger); }

/* ---------------------------------------------------------------- tables */

/* A wide table scrolls sideways inside its card at every width: the row never
   spills out of the white. */
.scroller { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -18px; padding: 0 18px; }
/* The sideways scrollbar always shows on a wide table, never only on hover.
   Its foot is often below the screen, so while it is out of sight the nav
   script keeps a copy (.hscroll) on the bottom edge of the window. */
.scroller::-webkit-scrollbar, .scrollx::-webkit-scrollbar, .hscroll::-webkit-scrollbar { height: 12px; }
.scroller::-webkit-scrollbar-track, .scrollx::-webkit-scrollbar-track, .hscroll::-webkit-scrollbar-track { background: var(--border); border-radius: 6px; }
.scroller::-webkit-scrollbar-thumb, .scrollx::-webkit-scrollbar-thumb, .hscroll::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 6px; }
.hscroll { position: fixed; bottom: 0; z-index: 20; overflow-x: scroll; overflow-y: hidden; }
.hscroll[hidden] { display: none; }
.hscroll > div { height: 1px; }
@media print { .hscroll { display: none; } }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
th {
  font: 600 12px/1.4 var(--body); text-transform: uppercase; letter-spacing: .05em;
  color: var(--muted); background: var(--warm-gray); white-space: nowrap;
  position: sticky; top: var(--topbar-h, 60px); z-index: 1;
  box-shadow: 0 1px 0 var(--border);   /* the border-bottom does not travel with a sticky cell */
}
/* Inside a sideways scroll box, sticky can only reach as far as the box, so
   top: --topbar-h just pushed the heading down over the first row. The nav
   script slides the heading instead, to keep it under the top bar. */
/* .scrollx is the same sideways box without .scroller's bleed to the card edge */
.scrollx { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.scroller th, .scrollx th { position: relative; top: 0; transform: translateY(var(--head-y, 0px)); }
@media print { .scroller th, .scrollx th { transform: none; } }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--blue); }
tbody tr:hover, table tr:hover { background: var(--surface-2); }
td .who { font-weight: 600; color: var(--navy); }

.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 14px; }
.pager button { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.pager button.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------------------------------------------------------- module cards (home) */

.modules { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .modules { grid-template-columns: repeat(3, 1fr); } }

.module {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; text-decoration: none; color: inherit;
  border-top: 3px solid var(--blue); transition: .18s;
}
.module:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(16,34,55,.11); border-color: var(--border); }
.module .n {
  width: 30px; height: 30px; border-radius: 7px; background: var(--blue); color: #fff;
  font: 700 15px/30px var(--head); text-align: center;
}
.module h3 { margin: 4px 0 0; font-size: 17px; color: var(--navy); }
.module p  { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.module .go { font-weight: 600; font-size: 14px; color: var(--blue); }

.flow {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted); margin-top: 6px;
}
.flow b { color: var(--navy); font-weight: 600; }
.flow .arr { color: var(--steel); }

/* ---------------------------------------------------------------- misc pages */

.two { display: grid; gap: 16px; grid-template-columns: 1fr; }
.two > * { min-width: 0; }   /* a wide table scrolls inside its card, not the page */
@media (min-width: 900px) { .two { grid-template-columns: 1.35fr 1fr; } }

.bar { height: 8px; background: var(--border); border-radius: 999px; overflow: hidden; }
.bar-inner { height: 100%; background: var(--blue); transition: width .3s; }

.job { border-bottom: 1px solid var(--border); padding: 14px 0; }
.job:last-child { border-bottom: 0; }
.job-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.job-title { font: 700 16px var(--head); color: var(--navy); }
.job-meta { color: var(--muted); font-size: 13px; }
.seats { font: 700 15px var(--head); color: var(--blue); white-space: nowrap; }
.site-name { font-weight: 600; color: var(--navy); }
.meta { color: var(--muted); font-size: 13px; }
.share { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.wa { background: #128c7e; border-color: #128c7e; color: #fff; font-weight: 600; } /* colour-ok: WhatsApp's own green, white text reads on it in both themes */
.wa:hover { background: #0e7065; border-color: #0e7065; } /* colour-ok */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; }
.box { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; background: var(--surface); }
.wrap { max-width: 620px; margin: 0 auto; }
.hp { position: absolute; left: -9999px; }
.mark { display: none; }
.pri { font-weight: 600; }

/* ---------------------------------------------------------------- login */

.login-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  background: linear-gradient(160deg, var(--navy) 0%, #17406a 55%, var(--blue) 100%);
}
.login-card {
  width: 100%; max-width: 400px; background: var(--surface); border-radius: 12px;
  box-shadow: 0 18px 50px rgba(16,34,55,.32); padding: 30px 26px;
}
.login-card img { height: 42px; width: auto; margin-bottom: 20px; }
.login-card h2 { margin: 0 0 4px; font-size: 20px; color: var(--navy); }
.login-card .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.login-card button { width: 100%; margin-top: 6px; }
.login-foot { margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------------------------------------------------------------- help */

.help-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .help-grid { grid-template-columns: 230px 1fr; align-items: start; } }
.toc { position: sticky; top: 74px; }
.toc a {
  display: block; padding: 7px 10px; border-radius: 6px; font-size: 14px;
  color: var(--navy); text-decoration: none;
}
.toc a:hover { background: var(--light-blue); color: var(--blue); }
.help h3 {
  margin: 26px 0 8px; padding-top: 18px; border-top: 1px solid var(--border);
  font-size: 18px; color: var(--navy); scroll-margin-top: 78px;
}
.help h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.help h4 { margin: 16px 0 4px; font-size: 14.5px; color: var(--navy); }
.help p, .help li { color: var(--text); }
.help ol, .help ul { padding-left: 20px; }
.help li { margin: 5px 0; }
.help code {
  background: var(--warm-gray); border: 1px solid var(--border); border-radius: 4px;
  padding: 1px 5px; font-size: 13px; font-family: ui-monospace, Menlo, Consolas, monospace;
}
.faq { border-left: 3px solid var(--border); padding-left: 14px; margin: 14px 0; }

/* ------------------------------------------- phones: a table becomes cards */
/* A table marked .cards, whose cells carry data-label, is shown one card per
   row below 640px: nothing to swipe sideways for, every field labelled. The
   header row (tr.head) is not needed - each cell names itself. */
@media (max-width: 640px) {
  .scroller.cards { overflow: visible; margin: 0; padding: 0; }
  table.cards { min-width: 0; display: block; }
  table.cards tbody, table.cards tr { display: block; }
  table.cards tr.head { display: none; }
  table.cards tr {
    border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px;
    margin: 10px 0; background: var(--surface);
  }
  table.cards tr.closed { background: var(--warm); }
  table.cards td { display: block; padding: 6px 0; border: 0; min-width: 0 !important; }
  table.cards td[data-label]::before {
    content: attr(data-label); display: block; color: var(--muted);
    font: 600 11px/1.4 var(--body); text-transform: uppercase; letter-spacing: .05em;
    margin-bottom: 3px;
  }
  table.cards td.actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 10px; }
  table.cards td.actions button { flex: 1 1 auto; }
  /* controls above a list stack, full width, and buttons suit a thumb */
  .row > select, .row > .search, .row > input { flex: 1 1 100%; min-width: 0; width: 100%; }
  button, .btn { min-height: 42px; }
  button.small, .btn.small { min-height: 38px; }
  .inp, select.inp { min-height: 40px; }
  .fillrow { grid-template-columns: 1fr 1fr; }
}

/* the 'who is in this position' row under a vacancy: no row chrome of its own,
   and on a phone it sits under the card like any other cell */
tr.who-row > td { border-top: 0; padding-top: 0; }
tr.who-row > td:empty, tr.who-row > td > div:empty { display: none; }
@media (max-width: 700px) { table.cards tr.who-row { display: block; } table.cards tr.who-row > td { display: block; } }

/* ---------------------------------------------------------------- colour
   A warmer palette on top of the brand blue: teal, amber, violet and coral
   for accents, stat tiles, module badges and the menu sections, so the app
   reads as more than blue and white while every control keeps its meaning
   (green = done, amber = look, red = wrong). */
:root {
  --teal: #0e8a7b;  --teal-bg: #e3f5f1;  --teal-line: #b9e3da;
  --amber: #c96f12; --amber-bg: #fff1df; --amber-line: #f5d6ad;
  --violet: #6b4fc3; --violet-bg: #eeeafb; --violet-line: #d5cbf3;
  --coral: #d4525a; --coral-bg: #fdeaeb;
  --sky-bg: #e8f1f8;
}
/* a thin band of colour across the top bar and the menu head */
.topbar::before, .drawer-head::before {
  content: ""; display: block; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--teal) 25% 50%, var(--amber) 50% 75%, var(--violet) 75% 100%);
}
.topbar { position: sticky; overflow: visible; }
.drawer-head { position: relative; }
.topbar-inner { padding-top: 12px; }
/* menu: each section sits in its own soft tinted panel, with a dot of its colour on every
   line; the open page lifts out of the panel in white. The tones follow the palette tokens,
   so the palettes on My profile recolour them too. */
.drawer-group { --tone: var(--blue); --tone-bg: var(--sky-bg); background: var(--tone-bg); border-radius: 10px; padding: 4px 6px 6px; margin: 8px 0 0; }
.drawer-group.tone-people  { --tone: var(--teal);   --tone-bg: var(--teal-bg); }
.drawer-group.tone-desk    { --tone: var(--amber);  --tone-bg: var(--amber-bg); }
.drawer-group.tone-admin   { --tone: var(--violet); --tone-bg: var(--violet-bg); }
.drawer-group.tone-move    { --tone: var(--danger); --tone-bg: var(--danger-bg); }
.drawer-group.tone-account { --tone: #4f5d6b;       --tone-bg: #eef0f3; }
.drawer-group .drawer-section { color: var(--tone); margin: 6px 8px 4px; }
.drawer-group a { color: var(--navy); padding: 8px 10px; }
.drawer-group a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); opacity: .85; }
.drawer-group a:hover { background: rgba(255,255,255,.65); color: var(--tone); } /* colour-ok: dark mode sets its own below */
.drawer-group a.here { background: var(--surface); color: var(--tone); font-weight: 600; box-shadow: 0 1px 3px rgba(16,34,55,.14); }
.drawer-group a.here .step, .drawer-group .step { background: var(--surface); color: var(--tone); }
.drawer-group a.out { color: var(--muted); }
.drawer-group a.out::before { background: var(--muted); }
.drawer-group .count { color: var(--tone); font-weight: 600; }
/* the eyebrow step badges on page heads follow the same colours */
.page-head .eyebrow .step { background: linear-gradient(135deg, var(--blue), var(--teal)); }
/* stat tiles: four colours, a coloured figure and a top accent */
.summary .stat { border-top: 3px solid var(--blue); background: var(--surface); }
.summary .stat:nth-child(1) { border-top-color: var(--blue);   background: linear-gradient(180deg, var(--sky-bg), var(--surface) 70%); }
.summary .stat:nth-child(1) b { color: var(--blue); }
.summary .stat:nth-child(2) { border-top-color: var(--teal);   background: linear-gradient(180deg, var(--teal-bg), var(--surface) 70%); }
.summary .stat:nth-child(2) b { color: var(--teal); }
.summary .stat:nth-child(3) { border-top-color: var(--amber);  background: linear-gradient(180deg, var(--amber-bg), var(--surface) 70%); }
.summary .stat:nth-child(3) b { color: var(--amber); }
.summary .stat:nth-child(4) { border-top-color: var(--violet); background: linear-gradient(180deg, var(--violet-bg), var(--surface) 70%); }
.summary .stat:nth-child(4) b { color: var(--violet); }
/* home: the three modules */
.modules .module:nth-child(1) { border-top: 4px solid var(--teal); }
.modules .module:nth-child(1) .n { background: var(--teal-bg); color: var(--teal); }
.modules .module:nth-child(1) .go { color: var(--teal); }
.modules .module:nth-child(2) { border-top: 4px solid var(--blue); }
.modules .module:nth-child(3) { border-top: 4px solid var(--violet); }
.modules .module:nth-child(3) .n { background: var(--violet-bg); color: var(--violet); }
.modules .module:nth-child(3) .go { color: var(--violet); }
/* the how-to panel, warmer */
.howto { background: linear-gradient(135deg, var(--sky-bg), var(--teal-bg)); border-color: var(--teal-line); border-left-color: var(--teal); }
.howto h4 { color: var(--teal); }
/* tags: sources in teal, progress in violet, attention in amber */
.tag.src, .tag.feed { background: var(--teal-bg); color: var(--teal); border-color: var(--teal-line); }
.tag.notready, .tag.pri { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); }
.tag.portal { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-line); }
.warnbox { border-left-color: var(--amber); background: var(--amber-bg); border-color: var(--amber-line); }
/* primary buttons: a little depth */
button.primary, .btn.primary { background: linear-gradient(135deg, var(--blue), var(--teal)); border-color: transparent; }
button.primary:hover, .btn.primary:hover { background: linear-gradient(135deg, var(--blue-hover), var(--teal)); border-color: transparent; }
/* table heads: a faint tint instead of grey */
th { background: var(--surface-2); color: var(--text-2); }
tbody tr:hover, table tr:hover { background: var(--surface-2); }
/* the sign-in card */
.login-card h2 { color: var(--teal); }
.login-card { border-top: 4px solid transparent; border-image: linear-gradient(90deg, var(--blue), var(--teal), var(--amber), var(--violet)) 1; }

/* ---------------------------------------------------------------- palettes
   Chosen on My profile and remembered per person. Each palette sets the
   four accent colours; everything above is written against the tokens, so
   nothing else changes. `ocean` is the default. */
[data-palette="sunset"] {
  --blue: #c2410c; --blue-hover: #d9531e; --blue-dark: #9a3412; --accent: #c2410c;
  --light-blue: #fdebe2; --sky-bg: #fdebe2;
  --teal: #d4525a; --teal-bg: #fdeaeb; --teal-line: #f5c6c9;
  --amber: #b58900; --amber-bg: #fff6d6; --amber-line: #f1dd8f;
  --violet: #7c3aed; --violet-bg: #efe9fd; --violet-line: #d6c7f8;
}
[data-palette="forest"] {
  --blue: #1b6b3a; --blue-hover: #21834a; --blue-dark: #145430; --accent: #1b6b3a;
  --light-blue: #e6f4ea; --sky-bg: #e6f4ea;
  --teal: #0e7c86; --teal-bg: #e1f3f5; --teal-line: #b6e0e5;
  --amber: #a16207; --amber-bg: #fdf3dc; --amber-line: #f1dba1;
  --violet: #4f46e5; --violet-bg: #e9e8fd; --violet-line: #cbc9f7;
}
[data-palette="plum"] {
  --blue: #6b21a8; --blue-hover: #7e2fc0; --blue-dark: #55178a; --accent: #6b21a8;
  --light-blue: #f1e8fa; --sky-bg: #f1e8fa;
  --teal: #be185d; --teal-bg: #fbe7f0; --teal-line: #f3bfd6;
  --amber: #c2410c; --amber-bg: #fdebe2; --amber-line: #f6c9b3;
  --violet: #0e8a7b; --violet-bg: #e3f5f1; --violet-line: #b9e3da;
}
[data-palette="slate"] {
  /* the original blue and white */
  --teal: #1a5789; --teal-bg: #e8f1f8; --teal-line: #cfe1f0;
  --amber: #1a5789; --amber-bg: #e8f1f8; --amber-line: #cfe1f0;
  --violet: #1a5789; --violet-bg: #e8f1f8; --violet-line: #cfe1f0;
}
[data-palette="slate"] .topbar::before, [data-palette="slate"] .drawer-head::before { background: var(--blue); }
[data-palette="slate"] .howto { background: var(--light-blue); border-color: #cfe1f0; border-left-color: var(--blue); }
[data-palette="slate"] .howto h4 { color: var(--blue-dark); }
[data-palette="slate"] button.primary, [data-palette="slate"] .btn.primary { background: var(--blue); }
[data-palette="slate"] .drawer-body a.here { background: var(--blue); }

/* ---------------------------------------------------------------- dark mode
   data-theme="dark" on <html>; "system" follows the device. Every surface
   that was white or near-white takes the card colour; the accent tints
   become deep versions of themselves so tags and panels keep their meaning. */
[data-theme="dark"] {
  --bg: #0f1620; --card: #172232; --ink: #e6edf5; --muted: #9fb0c3; --border: #2a3a4e;
  --navy: #e6edf5; --warm-gray: #1c2938; --steel: #6b7b8e;
  --light-blue: #17324a; --sky-bg: #17324a;
  --teal-bg: #10322f; --teal-line: #1e5a53;
  --amber-bg: #3a2a12; --amber-line: #6a4a1c;
  --violet-bg: #2a2347; --violet-line: #4a3f7a;
  --ok: #4ade80; --ok-bg: #12352a; --warn: #fbbf24; --warn-bg: #3a2c10; --danger: #f87171; --danger-bg: #3d1c1c;
  --coral-bg: #3d1c1c; --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 16px rgba(0,0,0,.35);
  --line: #2a3a4e;
  --surface: #172232; --surface-2: #1c2938; --text: #e6edf5; --text-2: #c3cfdc;
  --ok-line: #1e5a43; --warn-line: #6a4a1c; --danger-line: #7a3a3a;
  --info-bg: #17324a; --info-line: #24527a; --info: #9cc8ee;
}
[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
[data-theme="dark"] .topbar { background: rgba(23,34,50,.97); }
[data-theme="dark"] .drawer, [data-theme="dark"] .drawer-close, [data-theme="dark"] button, [data-theme="dark"] .btn,
[data-theme="dark"] input, [data-theme="dark"] select, [data-theme="dark"] textarea, [data-theme="dark"] .box,
[data-theme="dark"] .summary .stat, [data-theme="dark"] .burger { background: var(--card); color: var(--ink); border-color: var(--border); }
[data-theme="dark"] button:hover, [data-theme="dark"] .btn:hover { background: var(--warm-gray); border-color: var(--steel); }
[data-theme="dark"] button.danger, [data-theme="dark"] .btn.danger { background: var(--card); border-color: #7a3a3a; }
[data-theme="dark"] th { background: #1c2938; color: var(--muted); }
[data-theme="dark"] tbody tr:hover, [data-theme="dark"] table tr:hover { background: #1c2938; }
[data-theme="dark"] .howto { background: linear-gradient(135deg, var(--sky-bg), var(--teal-bg)); color: var(--ink); }
[data-theme="dark"] .howto p, [data-theme="dark"] .howto li { color: #c9d6e3; }
[data-theme="dark"] .summary .stat:nth-child(n) { background: var(--card); }
[data-theme="dark"] .card, [data-theme="dark"] .module { background: var(--card); }
[data-theme="dark"] .drawer-body a { color: var(--ink); }
[data-theme="dark"] .drawer-body a:hover { background: var(--teal-bg); }
/* the Account group's grey is fixed for light mode; in dark it takes the card's own shade */
[data-theme="dark"] .drawer-group.tone-account { --tone: #9fb0c3; --tone-bg: #1c2938; }
[data-theme="dark"] .drawer-group a:hover { background: rgba(255,255,255,.07); color: var(--ink); }
[data-theme="dark"] .drawer-group a.out { color: var(--muted); }
[data-theme="dark"] .drawer-group a.here { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 3px 0 0 var(--tone); }
[data-theme="dark"] .drawer-group a.here .step, [data-theme="dark"] .drawer-group .step { background: rgba(255,255,255,.14); color: #fff; }
[data-theme="dark"] .tag { background: var(--warm-gray); color: var(--muted); border-color: var(--border); }
[data-theme="dark"] .tag.ok { background: var(--ok-bg); color: var(--ok); border-color: #1e5a3f; }
[data-theme="dark"] .tag.notready, [data-theme="dark"] .tag.pri { background: var(--amber-bg); color: var(--warn); border-color: var(--amber-line); }
[data-theme="dark"] .tag.rejected, [data-theme="dark"] .tag.danger { background: var(--danger-bg); color: var(--danger); border-color: #7a3a3a; }
[data-theme="dark"] .warnbox { color: var(--ink); }
[data-theme="dark"] .login-card, [data-theme="dark"] .modal, [data-theme="dark"] .sheet { background: var(--card); color: var(--ink); }
[data-theme="dark"] code { background: #1c2938; color: #c9d6e3; }
[data-theme="dark"] a { color: #7fb3e0; }
[data-theme="dark"] .drawer-body a.here { color: #fff; }
[data-theme="dark"] button.primary, [data-theme="dark"] .btn.primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--teal)); border-color: transparent; }
[data-theme="dark"] .pager button.on { background: var(--blue); color: #fff; }
/* Brand colours in dark mode: each palette's own colours, lightened just enough that
   text in them reads on a dark card (4.5:1) while white text on them as a fill still reads (3:1). */
[data-theme="dark"] { --blue: #638daf; --blue-hover: #638daf; --blue-dark: #638daf; --accent: #638daf; --teal: #2b988b; --amber: #ca7217; --violet: #917dd3; }
[data-theme="dark"][data-palette="sunset"] { --blue: #d16f46; --blue-hover: #d16f46; --blue-dark: #d16f46; --accent: #d16f46; --teal: #d8636a; --amber: #b58900; --violet: #9e6df2; }
[data-theme="dark"][data-palette="forest"] { --blue: #5b9471; --blue-hover: #5b9471; --blue-dark: #5b9471; --accent: #5b9471; --teal: #3e969e; --amber: #b27e34; --violet: #807aec; }
[data-theme="dark"][data-palette="plum"] { --blue: #a375c9; --blue-hover: #a375c9; --blue-dark: #a375c9; --accent: #a375c9; --teal: #d36291; --amber: #d16f46; --violet: #2b988b; }
[data-theme="dark"][data-palette="slate"] { --blue: #638daf; --blue-hover: #638daf; --blue-dark: #638daf; --accent: #638daf; --teal: #638daf; --amber: #638daf; --violet: #638daf; }
/* the logo is dark blue: in dark mode it sits on a small white tile so it stays legible */
[data-theme="dark"] .brand img, [data-theme="dark"] .drawer-head img { background: #fff; border-radius: 6px; padding: 2px 6px; } /* colour-ok */

/* the appearance picker on My profile */
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 2px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--card); font-weight: 500; }
.swatch.on { border-color: var(--blue); box-shadow: 0 0 0 3px var(--sky-bg); }
.swatch i { display: inline-block; width: 12px; height: 22px; border-radius: 3px; }
.swatch .dots { display: inline-flex; gap: 2px; }

/* ---------------------------------------------------------------- offer approvals (static/offer_approvals.js) */
.sendform.oa-form { display:grid; grid-template-columns:repeat(4, 1fr); gap:8px 10px; align-items:end;
  background:var(--warm-gray); border:1px solid var(--border); border-radius:10px; padding:12px; margin:8px 0 12px }
.oa-form label { display:block; font-size:12px; color:var(--muted); font-weight:600; margin-bottom:2px }
.oa-form .inp { width:100% }
.oa-form .oa-title { grid-column:1 / -1; font-weight:700; color:var(--ink) }
.oa-form .oa-btns { grid-column:span 2; justify-content:flex-end }
@media (max-width:760px){ .sendform.oa-form { grid-template-columns:1fr 1fr } .oa-form .oa-btns { grid-column:1 / -1 } }
.oa-row { border:1px solid var(--border); border-radius:10px; padding:10px 12px; margin-top:10px; background:var(--card) }
.oa-head { display:flex; justify-content:space-between; gap:10px; align-items:baseline; flex-wrap:wrap }
.oa-head h4 { margin:0; font-size:15px }
.oa-grid { display:grid; grid-template-columns:repeat(4, 1fr); gap:6px 14px; margin-top:8px }
.oa-grid div span { display:block; font-size:11.5px; color:var(--muted) }
.oa-grid div b { font-weight:600; font-size:13.5px }
.oa-grid .mono { font-variant-numeric:tabular-nums; letter-spacing:.02em }
@media (max-width:760px){ .oa-grid { grid-template-columns:1fr 1fr } }
.oa-comment { margin-top:8px; font-size:13px; background:var(--light-blue); border-radius:8px; padding:6px 10px }
.oa-acts { margin-top:8px; gap:6px; flex-wrap:wrap }
.oa-acts button { min-height:32px; padding:4px 12px; font-size:13px }
.oa-decide { margin-top:8px; border-top:1px dashed var(--border); padding-top:8px }
.oa-hist { margin-top:6px; font-size:12.5px } .oa-hist ul { margin:4px 0 0; padding-left:18px }
.oa-row .pill, .pill { display:inline-block; font-size:11.5px; font-weight:600; border-radius:999px; padding:2px 9px; border:1px solid var(--border); white-space:nowrap; vertical-align:middle }
.pill.wait { background:var(--warn-bg); color:var(--warn); border-color:var(--warn-line) }
.pill.warn { background:var(--amber-bg, var(--warn-bg)); color:var(--amber, var(--warn)) }
.pill.go { background:var(--light-blue); color:var(--blue); border-color:var(--info-line) }
.pill.done { background:var(--ok-bg); color:var(--ok); border-color:var(--ok-line) }
.pill.bad { background:var(--danger-bg); color:var(--danger); border-color:var(--danger-line) }
.oa-budget { min-height:38px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; font-size:13.5px }
.oa-over { display:inline-block; font-size:11.5px; font-weight:600; color:var(--danger); background:var(--danger-bg); border-radius:999px; padding:1px 8px }
.oa-peers { margin-top:8px; font-size:13px; border-top:1px dashed var(--border); padding-top:8px }
.oa-peers summary { cursor:pointer }
.oa-peers > .small { margin:4px 0 }
.oa-peers-box { max-height:260px; overflow:auto; margin-top:4px }
.oa-peers table { min-width:0; font-size:13px }
.oa-peers th, .oa-peers td { padding:5px 8px }
.oa-peers th { position:sticky; top:0 }   /* sticky inside its own scroll box, not under the page's top bar */
.oa-peers .num { text-align:right; font-variant-numeric:tabular-nums }
.oa-after { margin-top:8px; font-size:13px; display:flex; gap:6px; align-items:center; flex-wrap:wrap }

/* the site's NOC reminder: blinks until the NOC is in, still for those who ask for less motion */
.noc-alert { display:block; margin:0 0 14px; padding:10px 14px; border-radius:6px; background:#b3261e; color:#fff !important; text-decoration:none; animation:noc-blink 1.2s ease-in-out infinite }
@keyframes noc-blink { 50% { opacity:.55 } }
@media (prefers-reduced-motion: reduce) { .noc-alert { animation:none } }

/* ---------------------------------------------------------------- export bar
   Excel / CSV / PDF beside every page heading (static/export.js). */
.export-bar { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.export-bar .export-label { font: 600 11px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.export-bar button { min-height: 30px; padding: 4px 12px; font-size: 13px; font-weight: 600; border-radius: 999px; }
.export-bar .exp-x { color: var(--ok); border-color: var(--ok-line); background: var(--ok-bg); }
.export-bar .exp-c { color: var(--blue); border-color: var(--info-line); background: var(--light-blue); }
.export-bar .exp-p { color: var(--danger); border-color: var(--danger-line); background: var(--danger-bg); }
.export-bar button.busy { opacity: .6; cursor: progress; }
[data-theme="dark"] .export-bar .exp-x { background: #12352a; border-color: #1e5a43; color: #6ee7a8; }
[data-theme="dark"] .export-bar .exp-c { background: var(--light-blue); color: #9cc8ee; }
[data-theme="dark"] .export-bar .exp-p { background: #3d1c1c; border-color: #7a3a3a; color: #fca5a5; }
@media print { .export-bar, .topbar, .drawer { display: none !important; } }

/* ---------------------------------------------------------------- glance tiles
   Big numbers in colour: read in a look, click to drill in. */
.glance { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 12px; margin: 0 0 16px; }
.tile { --c: var(--blue); --cb: var(--sky-bg); position: relative; display: block; text-decoration: none; color: var(--ink);
        background: linear-gradient(160deg, var(--cb), var(--card) 75%); border: 1px solid var(--border); border-left: 5px solid var(--c);
        border-radius: 12px; padding: 12px 14px 10px; box-shadow: var(--shadow); cursor: pointer; transition: transform .12s, box-shadow .12s; overflow: hidden; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(16,34,55,.12); text-decoration: none; }
.tile.on { outline: 3px solid var(--c); outline-offset: 1px; }
.tile .ic { position: absolute; right: 10px; top: 8px; font-size: 26px; opacity: .22; color: var(--c); }
.tile > b { display: block; font: 800 30px/1.1 var(--head); color: var(--c); letter-spacing: -.02em; }
.tile span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.tile small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.tile.c-blue   { --c: var(--blue);   --cb: var(--sky-bg); }
.tile.c-teal   { --c: var(--teal);   --cb: var(--teal-bg); }
.tile.c-amber  { --c: var(--amber);  --cb: var(--amber-bg); }
.tile.c-violet { --c: var(--violet); --cb: var(--violet-bg); }
.tile.c-red    { --c: var(--danger); --cb: var(--danger-bg); }
.tile.c-green  { --c: var(--ok);     --cb: var(--ok-bg); }
.tile.c-grey   { --c: var(--steel);  --cb: var(--warm-gray); }
.tile.zero b { opacity: .45; }
.tile.alarm { animation: tilepulse 2.2s ease-in-out 3; }
@keyframes tilepulse { 50% { box-shadow: 0 0 0 4px rgba(192,57,43,.25); } }

/* small bar charts: six months in a row of bars */
.spark { display: flex; align-items: flex-end; gap: 3px; height: 34px; margin-top: 8px; }
.spark i { flex: 1; background: var(--c, var(--blue)); opacity: .55; border-radius: 3px 3px 0 0; min-height: 2px; }
.spark i:last-child { opacity: 1; }
.spark-months { display: flex; gap: 3px; font-size: 9.5px; color: var(--muted); margin-top: 2px; }
.spark-months span { flex: 1; text-align: center; }

/* one bar split by share: open / done / declined */
.sharebar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--warm-gray); margin: 6px 0 4px; }
.sharebar i { display: block; height: 100%; }
.sharebar .s-open { background: var(--amber); } .sharebar .s-done { background: var(--ok); } .sharebar .s-declined { background: var(--danger); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }

/* big tabs with a count badge (Movements) */
.bigtabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 4px 0 16px; }
@media (max-width: 760px) { .bigtabs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bigtab { padding: 10px; gap: 8px; font-size: 14px; } .bigtab .ico { width: 30px; height: 30px; font-size: 15px; } .bigtab .muted { display: none; } }
.bigtab { --c: var(--blue); display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--border);
          background: var(--card); color: var(--ink); text-decoration: none; font: 700 15px/1.2 var(--head); min-width: 0; }
.bigtab:hover { border-color: var(--c); text-decoration: none; }
.bigtab .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--c); flex: none; }
.bigtab .badge { margin-left: auto; min-width: 26px; text-align: center; padding: 2px 8px; border-radius: 99px; background: var(--c); color: #fff; font: 700 12.5px/1.4 var(--body); }
.bigtab .badge.zero { background: var(--warm-gray); color: var(--muted); }
.bigtab.here { border-color: var(--c); box-shadow: var(--shadow); }
.bigtab.t-exit { --c: #c0392b; } .bigtab.t-transfer { --c: #1a5789; } .bigtab.t-promotion { --c: #6b4fc3; } .bigtab.t-increment { --c: #12805c; }

/* rows coloured by where they stand */
tr.b-open td:first-child { box-shadow: inset 4px 0 0 var(--amber); }
tr.b-done td:first-child { box-shadow: inset 4px 0 0 var(--ok); }
tr.b-declined td:first-child { box-shadow: inset 4px 0 0 var(--danger); }
tr.b-declined td { color: var(--muted); }
.arrow { color: var(--muted); padding: 0 4px; }
.hike { font-weight: 700; color: var(--ok); }
.hike.big { background: var(--ok-bg); border-radius: 6px; padding: 1px 6px; }
.flag-abs { background: var(--danger); color: #fff; border-radius: 99px; padding: 2px 8px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }

/* the site heat grid on Home: one tile per site, its colour how it stands */
.heat { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.heat a { display: block; border-radius: 10px; padding: 9px 10px; text-decoration: none; color: #fff; min-height: 72px; position: relative; }
.heat a:hover { filter: brightness(1.08); text-decoration: none; }
.heat a b { display: block; font: 800 20px/1 var(--head); }
.heat a span { display: block; font-size: 11.5px; line-height: 1.25; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat a small { position: absolute; right: 8px; top: 8px; font-size: 10.5px; opacity: .9; }
.heat .h-ok { background: linear-gradient(135deg, #12805c, #18a174); }
.heat .h-warn { background: linear-gradient(135deg, #c96f12, #e08a24); }
.heat .h-bad { background: linear-gradient(135deg, #b42318, #d6453a); }
.heat .h-idle { background: linear-gradient(135deg, #8c99a6, #a5b0bb); }

/* the hiring funnel: bars that shrink step by step */
.funnel { display: grid; gap: 6px; }
.funnel a { display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 13px; }
.funnel a:hover { text-decoration: none; }
.funnel .bar { background: var(--warm-gray); border-radius: 6px; height: 20px; overflow: hidden; }
.funnel .bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--teal)); min-width: 3px; }
.funnel b { text-align: right; font: 700 15px/1 var(--head); color: var(--navy); }

/* a donut drawn with a conic gradient */
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut { width: 130px; height: 130px; border-radius: 50%; position: relative; flex: none; }
.donut::after { content: ""; position: absolute; inset: 22px; background: var(--card); border-radius: 50%; }
.donut b { position: absolute; inset: 0; display: grid; place-items: center; z-index: 1; font: 800 26px/1 var(--head); color: var(--navy); }
.donut-legend { display: grid; gap: 6px; font-size: 13px; }
.donut-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-legend b { margin-left: 6px; }

.dash-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 1000px) { .dash-grid.two { grid-template-columns: 1fr 1fr; } .dash-grid.three { grid-template-columns: 3fr 2fr; } }
.dash-grid .card { margin: 0; }
.card h3 .more { float: right; font: 600 12.5px var(--body); }
.movequad { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.movequad .tile b { font-size: 34px; }
.glance.money { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.glance.money .tile b { font-size: 22px; }
.glance.money .tile .ic { display: none; }
.gauge { height: 16px; border-radius: 99px; background: var(--warm-gray); overflow: hidden; display: flex; }
.gauge i { display: block; height: 100%; }
.skeleton { background: linear-gradient(90deg, var(--warm-gray), var(--border), var(--warm-gray)); background-size: 200% 100%; animation: skel 1.2s linear infinite; border-radius: 10px; min-height: 72px; }
@keyframes skel { to { background-position: -200% 0; } }

/* ---------------------------------------------------------------- Home, per role
   The head of the page carries the site drop-down; "Needs you" lists the
   inbox by kind; column charts compare months, bar lists compare sites. */
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sitepick { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.sitepick[hidden] { display: none; }   /* an account with one site has nothing to pick: no empty box */
.sitepick select { min-width: 220px; max-width: 100%; padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border);
                   background: var(--surface); color: var(--text); font: 700 15px var(--body); }
@media (max-width: 560px) { .sitepick { width: 100%; } .sitepick select { flex: 1; min-width: 0; } }
.todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.todo a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none;
          background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.todo a:hover { border-color: var(--info-line); background: var(--info-bg); text-decoration: none; }
.todo a b { font: 800 20px/1 var(--head); color: var(--info); min-width: 28px; text-align: center; }
.todo a.appr b { color: var(--danger); }
.todo a span { flex: 1; font-size: 13px; font-weight: 600; line-height: 1.25; }
.todo a small { display: block; font-weight: 500; color: var(--text-2); font-size: 11.5px; }
.todo a small.late { color: var(--danger); font-weight: 700; }
.todo-clear { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--ok-bg);
              border: 1px solid var(--ok-line); color: var(--ok); font-weight: 600; }
.cols { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 18px; }
.cols .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; position: relative; min-width: 0; }
.cols .col i { display: block; width: 100%; min-height: 0; }
.cols .col i:first-child { border-radius: 5px 5px 0 0; }
.cols .col em { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font: 700 11.5px var(--body); font-style: normal; color: var(--text-2); }
.cols-x { display: flex; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 4px; }
.cols-x span { flex: 1; text-align: center; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.metric-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.metric-tabs button { min-height: 30px; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.metric-tabs button.on { background: var(--info); color: var(--surface); border-color: var(--info); }
.funnel button.siterow { all: unset; display: grid; grid-template-columns: 170px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; color: var(--text); cursor: pointer; }
.funnel button.siterow > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.funnel button.siterow:hover .bar i { filter: brightness(1.1); }
.funnel button.siterow:focus-visible { outline: 2px solid var(--info); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 560px) { .funnel a, .funnel button.siterow { grid-template-columns: 110px 1fr 40px; } }
.mini { width: 100%; min-width: 0; border-collapse: collapse; font-size: 13px; }
.mini th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--border); }
.mini td { padding: 7px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.mini td.num { text-align: right; font-weight: 700; white-space: nowrap; }
.mini td.late { color: var(--danger); }
.flaglist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.flaglist li { padding: 7px 10px; border-radius: 8px; border-left: 4px solid var(--info); background: var(--info-bg); color: var(--text); }
.flaglist li.bad { border-left-color: var(--danger); background: var(--danger-bg); }
.flaglist li.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.heat button { all: unset; box-sizing: border-box; cursor: pointer; display: block; border-radius: 10px; padding: 9px 10px; color: #fff; min-height: 72px; position: relative; } /* colour-ok: white on the coloured tile */
.heat button:hover { filter: brightness(1.08); }
.heat button b { display: block; font: 800 20px/1 var(--head); }
.heat button span { display: block; font-size: 11.5px; line-height: 1.25; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.heat button small { position: absolute; right: 8px; top: 8px; font-size: 10.5px; opacity: .9; }

/* the account menu under the name, top right: light / dark at a click */
.me-wrap { position: relative; }
.me-wrap .me { cursor: pointer; font: inherit; background: transparent; min-height: 0; box-shadow: none; }
.me-wrap .me:hover, .me-wrap .me[aria-expanded="true"] { background: var(--light-blue); border-color: var(--info-line); }
.me-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 270px; z-index: 60; background: var(--surface); color: var(--text);
           border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,34,55,.22); padding: 8px; }
.me-menu[hidden] { display: none; }
.me-menu .who { padding: 6px 8px 10px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.me-menu .who b { display: block; font-size: 14px; }
.me-menu .who span { font-size: 12px; color: var(--text-2); }
.me-menu .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 0 8px 6px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 3px; margin: 0 4px 8px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { min-height: 32px; padding: 4px 6px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); font-size: 12.5px; font-weight: 600; }
.seg button.on { background: var(--surface); color: var(--info); box-shadow: var(--shadow); }
.me-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.me-menu a:hover { background: var(--surface-2); text-decoration: none; }
.me-menu a.out { color: var(--danger); }
/* grid columns may shrink below their content, so nothing pushes a phone screen sideways */
.dash-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .dash-grid.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dash-grid.three { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.mini td, .mini th { overflow-wrap: anywhere; }
@media (max-width: 560px) { .mini { font-size: 12px; } .mini td, .mini th { padding: 6px 4px; } .cols { gap: 5px; } .cols-x { gap: 5px; } }

/* ---------------------------------------------------------------- clean pages
   Titles, numbers and short labels only. The line under a page title and the
   "How to use this page" panels are not shown (the User guide has them all);
   a long note sits behind a small (i) next to its heading (static/tidy.js). */
.page-head { margin: 2px 0 14px; }
.page-head .eyebrow, .page-head p { display: none; }
.page-head h2 { margin: 0; font-size: 22px; }
details.howto { display: none; }
.help-grid details.howto { display: block; }
.tidied { display: none !important; }

.info-tip { display: inline-grid; place-items: center; width: 17px; height: 17px; margin: 0 0 0 6px; border-radius: 50%;
            border: 1.5px solid var(--muted); color: var(--muted); font: 700 11px/1 Georgia, serif; font-style: italic;
            vertical-align: 2px; cursor: help; user-select: none; text-transform: none; letter-spacing: 0; }
.info-tip::before { content: "i"; }
.info-tip:hover, .info-tip:focus-visible { border-color: var(--info); color: var(--info); outline: none; }
.info-tip[hidden] { display: none; }
.tipbox { position: absolute; z-index: 90; padding: 10px 12px; border-radius: 10px; background: var(--surface); color: var(--text);
          border: 1px solid var(--border); box-shadow: var(--shadow); font: 400 13px/1.45 var(--body); white-space: pre-line; }
.tipbox[hidden] { display: none; }

/* wide tables: the extra columns wait behind "More columns" */
table.has-xcol:not(.allcols) .xcol { display: none; }
.morecols { min-height: 28px; padding: 3px 12px; margin: 0 0 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }

/* Home: one grid of cards that adds a column whenever there is room */
.dash { display: grid; gap: 16px; align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); margin-bottom: 16px; }
.dash > .card { margin: 0; min-width: 0; }
.dash > .wide { grid-column: 1 / -1; }
.home-legend { display: inline-flex; gap: 10px; margin-left: 10px; font: 500 11.5px var(--body); color: var(--muted); vertical-align: 1px; }
.home-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }
.tag-n { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: 999px; background: var(--danger); color: var(--surface); font: 700 12px/1.6 var(--body); vertical-align: 2px; }
.home-head .sitepick select { width: auto; max-width: min(100%, 360px); }
.info-tip.lone { margin: 6px 0; }

/* ---------------------------------------------------------------- decisions (static/decision.js): result and comment drop-downs */
.dec { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:8px 10px; align-items:end; margin:6px 0 }
.dec label { display:block; font-size:12px; color:var(--muted); font-weight:600; margin-bottom:2px }
.dec label.req::after { content:" *"; color:var(--danger) }
.dec .inp { width:100% }
.dec .dec-own, .dec [data-dec-err] { grid-column:1 / -1 }

/* ================================================================ launcher look (style 5)
   Chosen by HR on 17 Nov 2026: a blue top bar and a coloured icon beside each line of
   the menu and the page name (the icon grid on Home was taken off the same day). The icon colours (--c, from templates/_apps.html) are
   mid-tones that read on light and dark alike. */
html[data-theme] .topbar {
  background: linear-gradient(100deg, #102237 0%, #14456d 45%, #1a5789 100%); /* colour-ok: the bar is dark in both themes */
  border-bottom: 0; box-shadow: 0 2px 10px rgba(16,34,55,.18);
}
.topbar .logo-white { display: none; }
html[data-theme] .topbar .logo-dark { display: none; }
html[data-theme] .topbar .logo-white { display: block; height: 34px; width: auto; }
html[data-theme] .topbar .pagetitle { color: #fff; border-left-color: rgba(255,255,255,.22); display: flex; align-items: center; gap: 8px; } /* colour-ok: on the blue bar */
html[data-theme] .topbar .bell { color: #cfe1f0; } /* colour-ok: on the blue bar */
html[data-theme] .topbar .bell.has { color: #fff; } /* colour-ok: on the blue bar */
html[data-theme] .topbar .me { color: #fff; } /* colour-ok: on the blue bar */
html[data-theme] .topbar .me:hover, html[data-theme] .topbar .me[aria-expanded="true"] { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); } /* colour-ok */
html[data-theme] .topbar .me .avatar { background: #f5a623; color: #102237; } /* colour-ok: amber on the blue bar */
html[data-theme] .topbar .pill-admin { background: rgba(255,255,255,.16); color: #fff; } /* colour-ok: on the blue bar */
html[data-theme] .topbar .burger { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); } /* colour-ok: on the blue bar */
html[data-theme] .topbar .burger:hover { background: rgba(255,255,255,.2); } /* colour-ok: on the blue bar */
html[data-theme] .topbar .burger span, html[data-theme] .topbar .burger span::before, html[data-theme] .topbar .burger span::after { background: #fff; } /* colour-ok: on the blue bar */
html[data-theme] .topbar .burger[aria-expanded="true"] span { background: transparent; }

/* the small icon chip: menu lines and the page name */
.ni {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px;
  background: var(--c, var(--blue)); font-size: 15px; line-height: 1; box-shadow: 0 2px 5px rgba(16,34,55,.18);
}
.pagetitle .ni { width: 30px; height: 30px; font-size: 16px; }
.drawer-group a::before { display: none; }
.drawer-group a { gap: 10px; align-items: center; }
.drawer-group a.here .ni { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c, var(--blue)); }

/* Home: each dashboard card in its own light colour (tint() in templates/home.html);
   the tokens have dark twins, so dark mode gets deep tints instead */
#home .card[data-tone="0"] { background: var(--sky-bg); }
#home .card[data-tone="1"] { background: var(--teal-bg); }
#home .card[data-tone="2"] { background: var(--amber-bg); }
#home .card[data-tone="3"] { background: var(--violet-bg); }
#home .card[data-tone="4"] { background: var(--coral-bg); }
#home .card[data-tone="5"] { background: var(--ok-bg); }
#home .card[data-tone] { border-color: transparent; }
#home .card[data-tone] .todo a { background: var(--surface); }

/* softer, rounder cards everywhere */
.card { border-radius: 16px; }
html[data-theme] .topbar .logo-white { height: 40px; }
html[data-theme] .topbar .brand .logo-white { background: none; padding: 0; border-radius: 0; }
