/* ==========================================================================
   NEXA — Talent Intelligent
   Theme colours follow Bank Syariah Indonesia (BSI): tosca/teal + yellow-orange
   (approximate values until the official guideline is available).
   Token names (navy/gold) are kept so every component follows automatically:
   "navy" = teal family, "gold" = BSI yellow/orange family.
   Theme: <html data-theme="light|dark">, set in layouts/head.php.
   ========================================================================== */

:root {
  /* Brand palette (BSI) */
  --nx-navy-900: #00403D;   /* Teal Gelap — trust, stability */
  --nx-navy-700: #00756F;   /* Teal BSI — leadership, professionalism */
  --nx-tosca: #00A39D;      /* Tosca BSI — main brand colour */
  --nx-gold-500: #F8AD3C;   /* Kuning BSI — excellence, growth */
  --nx-gold-700: #E08E0B;   /* Oranye BSI — innovation, opportunity */
  --nx-champagne: #EEF8F7;  /* Mint — clarity, simplicity */

  /* Tints derived from the palette */
  --nx-navy-50: #E6F6F5;
  --nx-navy-100: #C6EBE8;
  --nx-gold-50: #FEF4E3;
  --nx-gold-100: #FCDDA9;
  --nx-gold-900: #8A5300;

  /* Semantic (light) */
  --nx-ink: var(--nx-navy-900);
  --nx-ink-2: #47615E;
  --nx-ink-3: #7D9592;
  --nx-line: #E2EBEA;
  --nx-bg: #F6FAF9;
  --nx-surface: #FFFFFF;
  --nx-surface-2: #FAFCFC;
  --nx-row-hover: #F4FAF9;
  --nx-topbar-bg: rgba(255, 255, 255, .88);
  --nx-input-bg: #FFFFFF;
  --nx-readonly-bg: var(--nx-bg);
  --nx-tint-navy: var(--nx-navy-50);
  --nx-tint-navy-strong: var(--nx-navy-100);
  --nx-tint-gold: var(--nx-gold-50);
  --nx-tint-champagne: var(--nx-champagne);
  --nx-tint-neutral: #EEF3F2;
  --nx-navy-ink: var(--nx-navy-700);
  --nx-gold-ink: var(--nx-gold-900);
  --nx-link: #00857F;
  --nx-link-hover: var(--nx-navy-900);
  --nx-btn-primary: #00857F;
  --nx-btn-primary-hover: var(--nx-navy-700);
  --nx-logo-ink: var(--nx-navy-900);
  --nx-logo-tile: transparent;
  --nx-logo-tile-pad: 0;
  --nx-success: #1F7A50;
  --nx-success-bg: #E8F5EE;
  --nx-danger: #B83A33;
  --nx-danger-bg: #FBECEB;
  --nx-feature-border: transparent;

  --nx-gold-gradient: linear-gradient(135deg, #FFC866 0%, var(--nx-gold-500) 45%, var(--nx-gold-700) 100%);
  --nx-navy-gradient: linear-gradient(160deg, #00857F 0%, var(--nx-navy-900) 70%);

  --nx-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nx-radius: 16px;
  --nx-shadow: 0 1px 2px rgba(0, 64, 61, .04), 0 4px 16px rgba(0, 64, 61, .04);
  --nx-menu-shadow: 0 16px 40px rgba(0, 64, 61, .16), 0 2px 6px rgba(0, 64, 61, .08);
}

/* Dark: same brand, deep teal surfaces with tosca and yellow accents */
:root[data-theme="dark"] {
  color-scheme: dark;
  --nx-ink: #E4F3F1;
  --nx-ink-2: #A6C6C2;
  --nx-ink-3: #789A96;
  --nx-line: rgba(255, 255, 255, .09);
  --nx-bg: #031C1A;
  --nx-surface: #082B28;
  --nx-surface-2: #0C3431;
  --nx-row-hover: rgba(255, 255, 255, .03);
  --nx-topbar-bg: rgba(8, 43, 40, .86);
  --nx-input-bg: #062320;
  --nx-readonly-bg: rgba(255, 255, 255, .03);
  --nx-tint-navy: rgba(0, 163, 157, .14);
  --nx-tint-navy-strong: rgba(0, 163, 157, .26);
  --nx-tint-gold: rgba(248, 173, 60, .14);
  --nx-tint-champagne: rgba(238, 248, 247, .06);
  --nx-tint-neutral: rgba(255, 255, 255, .07);
  --nx-navy-ink: #7ED8D2;
  --nx-gold-ink: #FFC866;
  --nx-link: #5FD3CC;
  --nx-link-hover: #9BE5E0;
  --nx-btn-primary: #00857F;
  --nx-btn-primary-hover: #00A39D;
  --nx-logo-ink: var(--nx-champagne);
  --nx-logo-tile: #FFFFFF;
  --nx-logo-tile-pad: .16em;
  --nx-success: #5CCB95;
  --nx-success-bg: rgba(92, 203, 149, .14);
  --nx-danger: #F0948C;
  --nx-danger-bg: rgba(240, 148, 140, .14);
  --nx-feature-border: rgba(248, 173, 60, .22);
  --nx-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .2);
  --nx-menu-shadow: 0 16px 40px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--nx-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--nx-ink);
  background: var(--nx-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--nx-ink-2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.nx-logo {
  --nx-logo-size: 32px;
  display: inline-flex;
  align-items: center;
  gap: .3em;
  font-size: var(--nx-logo-size);
  line-height: 1;
  color: var(--nx-logo-ink);
}
.nx-logo .nx-icon { width: 1.8em; height: 1.8em; flex: none; display: block; }
.nx-logo--color .nx-icon { background: var(--nx-logo-tile); border-radius: .34em; padding: var(--nx-logo-tile-pad); }
.nx-logo__text { display: flex; flex-direction: column; gap: .2em; }
.nx-logo__word {
  font-weight: 800;
  letter-spacing: .01em;
  line-height: .74;
  white-space: nowrap;
}
.nx-logo__a {
  display: inline-block;
  height: .75em;   /* = cap height of Plus Jakarta Sans 800 */
  width: .815em;
  margin-left: .03em;
  vertical-align: baseline;
  overflow: visible;
}
.nx-logo__accent { fill: var(--nx-gold-500); }
.nx-logo__tag {
  font-size: .29em;
  font-weight: 500;
  letter-spacing: .17em;
  padding-left: .25em;
  white-space: nowrap;
}
.nx-logo--sm { --nx-logo-size: 22px; }
.nx-logo--md { --nx-logo-size: 32px; }
.nx-logo--lg { --nx-logo-size: 54px; }
.nx-logo--xl { --nx-logo-size: 84px; }
.nx-logo--mono { color: #111; }
.nx-logo--light { color: #fff; }
.nx-logo--light .nx-logo__tag { color: var(--nx-gold-100); }
.nx-logo--light .nx-icon { background: #fff; border-radius: .34em; padding: .16em; }

/* Official BSI logo next to the NEXA wordmark */
.nx-logo__bsi { display: block; height: 1.45em; width: auto; max-width: 4.2em; object-fit: contain; flex: none; }
.nx-logo__bsi--tile { background: #fff; border-radius: .22em; padding: .14em .22em; box-sizing: content-box; height: 1.2em; }
:root[data-theme="dark"] .nx-logo--color .nx-logo__bsi { background: #fff; border-radius: .22em; padding: .14em .22em; box-sizing: content-box; height: 1.2em; }
.nx-logo__sep { align-self: stretch; width: 1px; margin: .1em .18em; background: currentColor; opacity: .25; flex: none; }

.nx-app-icon {
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 64, 61, .12), 0 1px 3px rgba(0, 64, 61, .08);
}
.nx-app-icon .nx-icon { width: 84px; height: 84px; }

.nx-tagline {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 500;
  letter-spacing: .14em;
  color: var(--nx-ink);
}
.nx-tagline::before, .nx-tagline::after {
  content: "";
  flex: 1;
  min-width: 24px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--nx-gold-500));
}
.nx-tagline::after { background: linear-gradient(270deg, transparent, var(--nx-gold-500)); }

/* ---------- Buttons & form ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .icon-btn:focus-visible, .nav__item:focus-visible, .user:focus-visible, .menu__item:focus-visible,
.segmented a:focus-visible, .segmented button:focus-visible { outline: 3px solid rgba(248, 173, 60, .55); outline-offset: 2px; }
.btn--primary { background: var(--nx-btn-primary); color: #fff; }
.btn--primary:hover { background: var(--nx-btn-primary-hover); }
.btn--gold { background: var(--nx-gold-gradient); color: var(--nx-navy-900); box-shadow: 0 4px 14px rgba(224, 142, 11, .25); }
.btn--gold:hover { box-shadow: 0 6px 18px rgba(224, 142, 11, .35); }
.btn--ghost { background: var(--nx-surface); border-color: var(--nx-line); color: var(--nx-ink); }
.btn--ghost:hover { border-color: var(--nx-tint-navy-strong); background: var(--nx-tint-navy); }
.btn--block { width: 100%; height: 48px; font-size: 15px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-weight: 600; font-size: 13px; }
.field__hint { font-size: 12px; color: var(--nx-ink-3); margin-top: -1px; }
.field__hint--block { margin: -8px 0 18px; }
.field__error { font-size: 12.5px; font-weight: 500; color: var(--nx-danger); }
.input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--nx-line);
  border-radius: 12px;
  background: var(--nx-input-bg);
  transition: border-color .15s, box-shadow .15s;
}
.input:focus-within { border-color: var(--nx-gold-500); box-shadow: 0 0 0 4px rgba(248, 173, 60, .18); }
.input.is-invalid { border-color: var(--nx-danger); }
.input.is-invalid:focus-within { box-shadow: 0 0 0 4px var(--nx-danger-bg); }
.input--readonly { background: var(--nx-readonly-bg); }
.input--readonly input { color: var(--nx-ink-2); cursor: default; }
.input input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; }
.input .i { color: var(--nx-ink-3); }
.input__toggle { border: 0; background: none; padding: 4px; cursor: pointer; color: var(--nx-ink-3); display: grid; }
.input__toggle:hover { color: var(--nx-ink); }

.alert { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13px; margin-bottom: 18px; }
.alert .i { width: 16px; height: 16px; }
.alert--error { background: var(--nx-danger-bg); color: var(--nx-danger); }
.alert--success { background: var(--nx-success-bg); color: var(--nx-success); font-weight: 500; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; background: var(--nx-surface); }
.auth__form-side { display: flex; flex-direction: column; padding: 40px 56px; }
.auth__form { width: 100%; max-width: 400px; margin: auto; padding: 40px 0; }
.auth__form h1 { font-size: 30px; letter-spacing: -.025em; margin-bottom: 8px; }
.auth__form > .muted { margin-bottom: 32px; }
.auth__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -2px 0 24px; font-size: 13px; }
.auth__row label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--nx-ink-2); }
.auth__row input { accent-color: var(--nx-navy-900); width: 16px; height: 16px; }
.auth__link { color: var(--nx-link); font-weight: 600; }
.auth__link:hover { color: var(--nx-link-hover); }
.auth__foot { font-size: 12.5px; color: var(--nx-ink-3); text-align: center; }
.auth__note { margin-top: 20px; font-size: 12.5px; color: var(--nx-ink-3); text-align: center; }

.auth__showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  padding: 56px;
  color: #fff;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(248, 173, 60, .22), transparent 60%),
    var(--nx-navy-gradient);
}
.auth__watermark { position: absolute; right: -120px; bottom: -110px; width: 520px; height: 520px; opacity: .07; pointer-events: none; }
.auth__showcase > :not(.auth__watermark) { position: relative; }
.auth__showcase .nx-tagline { color: var(--nx-gold-100); font-size: 12px; max-width: 460px; }
.auth__showcase h2 { font-size: 40px; line-height: 1.15; letter-spacing: -.03em; max-width: 520px; margin-top: 22px; }
.auth__showcase h2 em { font-style: normal; color: var(--nx-gold-500); }
.auth__showcase p { color: #B5D6D2; max-width: 460px; margin-top: 16px; font-size: 15px; }

.feature-list { display: grid; gap: 14px; max-width: 460px; }
.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature__icon {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: rgba(248, 173, 60, .14); color: var(--nx-gold-500);
  border: 1px solid rgba(248, 173, 60, .25);
}
.feature strong { display: block; font-weight: 600; }
.feature span { color: #9CC4BF; font-size: 13px; }

.match-card {
  display: flex; align-items: center; gap: 14px;
  max-width: 360px; padding: 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  backdrop-filter: blur(10px);
}
.match-card__ring {
  --p: 94;
  width: 54px; height: 54px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: conic-gradient(var(--nx-gold-500) calc(var(--p) * 1%), rgba(255, 255, 255, .12) 0);
}
.match-card__ring span {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--nx-navy-900); font-weight: 800; font-size: 13px;
}
.match-card small { display: block; color: #9CC4BF; font-size: 12px; }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0;
  height: 100vh;
  display: flex; flex-direction: column;
  padding: 22px 16px;
  background: var(--nx-navy-900);
  color: #C3DEDA;
  overflow-y: auto;
}
:root[data-theme="dark"] .sidebar { border-right: 1px solid var(--nx-line); }
.sidebar__brand { display: block; padding: 4px 8px 22px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__label { padding: 16px 12px 8px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #73A39E; }
.nav__item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 500;
  color: #C3DEDA;
  transition: background .15s, color .15s;
}
.nav__item:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav__item--button { width: 100%; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; }
.nav__item.is-active { background: linear-gradient(90deg, rgba(248, 173, 60, .18), rgba(248, 173, 60, .03)); color: var(--nx-gold-500); }
.nav__item.is-active::before {
  content: ""; position: absolute; left: -16px; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--nx-gold-500);
}
.nav__badge { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--nx-gold-500); color: var(--nx-navy-900); font-size: 11px; font-weight: 700; }
.nav__item.has-active { color: var(--nx-gold-500); }
.nav__chev { margin-left: auto; width: 16px; height: 16px; flex: none; transition: transform .15s ease; }
[aria-expanded="true"] > .nav__chev { transform: rotate(180deg); }
.nav__sub { display: flex; flex-direction: column; gap: 2px; padding-left: 30px; }
.nav__sub[hidden] { display: none; }
.nav__sub .nav__item { padding: 8px 12px; font-size: 13.5px; }
.nav__sub .nav__item.is-active::before { left: -46px; }

.sidebar__collapse { display: none; }
.sidebar__footer { margin-top: auto; padding-top: 20px; }

/* Desktop: icons only until the sidebar is clicked; it then opens over the page */
@media (min-width: 961px) {
  .app { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { z-index: 50; width: 76px; overflow-x: hidden; transition: width .2s ease, box-shadow .2s ease; }
  .nav__item span { white-space: nowrap; }
  .app.is-rail-open .sidebar { width: 264px; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .app.is-rail-open .sidebar__collapse {
    position: absolute; top: 24px; right: 12px; width: 32px; height: 32px;
    display: grid; place-items: center; border: 0; border-radius: 8px;
    background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer;
  }
  .app:not(.is-rail-open) .sidebar__brand { padding: 4px 0 22px; text-align: center; }
  .app:not(.is-rail-open) .sidebar .nx-logo__text, .app:not(.is-rail-open) .sidebar .nx-logo__sep { display: none; }
  .app:not(.is-rail-open) .sidebar .nx-logo__bsi { max-width: 2.3em; }
  .app:not(.is-rail-open) .nav__label { height: 1px; margin: 10px 8px; padding: 0; overflow: hidden; color: transparent; background: rgba(255, 255, 255, .08); }
  .app:not(.is-rail-open) .nav__label:first-child { display: none; }
  .app:not(.is-rail-open) .nav__item { justify-content: center; gap: 0; padding: 12px 0; }
  /* Names stay available to screen readers */
  .app:not(.is-rail-open) .nav__item > span:not(.nav__badge) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .app:not(.is-rail-open) .nav__chev, .app:not(.is-rail-open) .nav__sub, .app:not(.is-rail-open) .promo { display: none; }
  .app:not(.is-rail-open) .nav__badge { position: absolute; top: 4px; right: 2px; margin: 0; padding: 0 5px; font-size: 10px; }
}
.promo {
  padding: 16px; border-radius: 14px; margin-bottom: 12px;
  background: linear-gradient(150deg, rgba(248, 173, 60, .2), rgba(248, 173, 60, .04));
  border: 1px solid rgba(248, 173, 60, .25);
}
.promo strong { display: flex; align-items: center; gap: 8px; color: #fff; font-size: 13px; }
.promo strong .i { color: var(--nx-gold-500); width: 16px; height: 16px; }
.promo p { font-size: 12px; color: #9CC4BF; margin-top: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  height: 72px; padding: 0 32px;
  background: var(--nx-topbar-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--nx-line);
}
.search {
  flex: 1; max-width: 440px;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  border: 1px solid var(--nx-line); border-radius: 11px;
  background: var(--nx-bg);
  color: var(--nx-ink-3);
}
.search:focus-within { border-color: var(--nx-gold-500); box-shadow: 0 0 0 4px rgba(248, 173, 60, .15); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--nx-ink); }
.search kbd { font: 600 11px var(--nx-font); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--nx-line); background: var(--nx-surface); color: var(--nx-ink-3); }
.topbar__spacer { flex: 1; }
.icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--nx-line); border-radius: 11px;
  background: var(--nx-surface); color: var(--nx-ink);
  cursor: pointer;
}
.icon-btn:hover { background: var(--nx-tint-navy); }
.icon-btn .dot { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--nx-gold-500); border: 2px solid var(--nx-surface); }
.menu-btn, .topbar__logo { display: none; }

/* Avatar button + account menu */
.account { position: relative; }
.user {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 6px; margin-right: -6px;
  border: 0; border-radius: 12px;
  background: none; color: inherit; text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.user:hover, .user[aria-expanded="true"] { background: var(--nx-tint-navy); }
.user__meta { line-height: 1.25; }
.user__name { display: block; font-weight: 700; font-size: 13.5px; }
.user__role { display: block; font-size: 12px; color: var(--nx-ink-3); }
.user__chev { width: 16px; height: 16px; color: var(--nx-ink-3); transition: transform .2s; }
.user[aria-expanded="true"] .user__chev { transform: rotate(180deg); }

.menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 60;
  width: 300px; padding: 8px;
  max-height: calc(100vh - 90px); overflow-y: auto; overscroll-behavior: contain;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: 16px;
  box-shadow: var(--nx-menu-shadow);
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top right;
  transition: opacity .15s ease, transform .15s ease;
}
.menu.is-open { opacity: 1; transform: none; }
/* Notifications */
.notif__count {
  position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 999px;
  background: var(--nx-gold-500); color: var(--nx-navy-900); font-size: 10.5px; font-weight: 700;
}
.notif__menu { width: 340px; }
.notif__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 10px; border-bottom: 1px solid var(--nx-line); margin-bottom: 6px; }
.notif__head form { margin: 0; }
.notif__head .link { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; font-size: 12.5px; }
.notif__empty { margin: 0; padding: 14px 10px; font-size: 13px; color: var(--nx-ink-3); }
.notif__item { display: flex; flex-direction: column; gap: 3px; padding: 10px; border-radius: 10px; color: var(--nx-ink-2); font-size: 13px; }
.notif__item:hover { background: var(--nx-tint-navy); }
.notif__item.is-unread { color: var(--nx-ink); font-weight: 600; background: var(--nx-tint-gold); }
.notif__time { font-size: 11.5px; font-weight: 400; color: var(--nx-ink-3); }
.menu__head { display: flex; gap: 12px; align-items: flex-start; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--nx-line); }
.menu__who { min-width: 0; }
.menu__name { font-weight: 700; line-height: 1.3; }
.menu__email { font-size: 12.5px; color: var(--nx-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 6px; }
.menu__item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 10px;
  border: 0; border-radius: 10px;
  background: none; color: var(--nx-ink);
  font-weight: 500; text-align: left;
  cursor: pointer;
}
.menu__item .i { color: var(--nx-ink-3); }
.menu__item:hover { background: var(--nx-tint-navy); }
.menu__item--danger, .menu__item--danger .i { color: var(--nx-danger); }
.menu__item--danger:hover { background: var(--nx-danger-bg); }
.menu__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; }
.menu__label { display: inline-flex; align-items: center; gap: 12px; font-weight: 500; }
.menu__label .i { color: var(--nx-ink-3); }
.menu__sep { height: 1px; margin: 6px 0; background: var(--nx-line); }
.menu form { margin: 0; }

.role-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px 2px 7px; border-radius: 999px;
  background: var(--nx-tint-gold); color: var(--nx-gold-ink);
  font-size: 11.5px; font-weight: 700;
}
.role-badge .i { width: 13px; height: 13px; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px; color: #fff;
  background: var(--nx-navy-700);
}
.avatar--gold { background: var(--nx-gold-gradient); color: var(--nx-navy-900); }
.avatar--1 { background: var(--nx-navy-700); }
.avatar--2 { background: var(--nx-gold-700); }
.avatar--3 { background: var(--nx-navy-900); }
.avatar--4 { background: #2E7570; }
:root[data-theme="dark"] .avatar--3 { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.avatar--sm { width: 34px; height: 34px; font-size: 12px; }
.avatar--lg { width: 64px; height: 64px; font-size: 20px; }
.avatar--xl { width: 88px; height: 88px; font-size: 26px; }
.avatar--photo { overflow: hidden; background: var(--nx-surface-2); }
.avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pengaturan: photo picker beside the profile form */
.photo-field { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.photo-field__actions { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.photo-field__actions .btn { align-self: flex-start; }
.photo-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-field__name { font-size: 12.5px; color: var(--nx-ink-3); overflow-wrap: anywhere; }
.photo-field__name:empty { display: none; }
.field__label { font-weight: 600; font-size: 13px; }
.field label.check-inline { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 13px; }
.check-inline input { width: 16px; height: 16px; accent-color: var(--nx-gold-500); }

.content { padding: 28px 32px 48px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; margin: 4px 0 4px; }
.page-head__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--nx-link); }
.eyebrow--ink { color: var(--nx-ink); }

.backdrop { display: none; }

/* ---------- Cards ---------- */
.card { background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: var(--nx-radius); padding: 22px; box-shadow: var(--nx-shadow); min-width: 0; }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card__title { font-size: 16px; font-weight: 700; }
.card__sub { font-size: 12.5px; color: var(--nx-ink-3); margin-top: 2px; }
.link { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--nx-link); white-space: nowrap; }
.link .i { width: 15px; height: 15px; }
.link:hover { color: var(--nx-link-hover); }

.grid-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.kpi { position: relative; overflow: hidden; }
.kpi__top { display: flex; align-items: center; justify-content: space-between; }
.kpi__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--nx-tint-navy); color: var(--nx-navy-ink); flex: none; }
.kpi__icon--gold { background: var(--nx-tint-gold); color: var(--nx-link); }
.kpi__label { margin-top: 16px; font-weight: 500; color: var(--nx-ink-2); }
.kpi__value { font-size: 30px; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kpi__meta { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12.5px; color: var(--nx-ink-3); }
.trend { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-weight: 700; font-size: 12px; background: var(--nx-success-bg); color: var(--nx-success); }
.trend .i { width: 13px; height: 13px; }

.kpi--feature { background: var(--nx-navy-gradient); border-color: var(--nx-feature-border); color: #fff; }
.kpi--feature::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 173, 60, .35), transparent 70%);
}
.kpi--feature .kpi__icon { background: rgba(248, 173, 60, .16); color: var(--nx-gold-500); }
.kpi--feature .kpi__label, .kpi--feature .kpi__meta { color: #B5D6D2; }
.kpi--feature .trend { background: rgba(248, 173, 60, .18); color: var(--nx-gold-100); }
.trend--neutral { background: var(--nx-tint-navy); color: var(--nx-navy-ink); }

/* Clickable summary cards */
.kpi--link { display: block; color: inherit; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.kpi--link:hover { transform: translateY(-2px); border-color: rgba(248, 173, 60, .45); box-shadow: 0 12px 28px rgba(0, 64, 61, .1); }
.kpi--link:focus-visible { outline: 3px solid rgba(248, 173, 60, .55); outline-offset: 2px; }
.kpi--feature.kpi--link { color: #fff; }
.kpi__go {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--nx-tint-navy); color: var(--nx-ink-3);
  transition: background .15s, color .15s, transform .15s;
}
.kpi__go .i { width: 16px; height: 16px; }
.kpi--link:hover .kpi__go { background: var(--nx-gold-gradient); color: var(--nx-navy-900); transform: translateX(2px); }
.kpi--feature .kpi__go { position: relative; z-index: 1; background: rgba(255, 255, 255, .08); color: #fff; }

/* Menu cards (Manajemen Talenta) */
.grid-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.menu-card .kpi__label { font-size: 16px; font-weight: 700; color: var(--nx-ink); }
.menu-card.kpi--link { display: flex; flex-direction: column; }
.menu-card__main { display: block; color: inherit; }
/* The whole card opens the page; the buttons sit above that link */
.menu-card__main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.menu-card__main:focus-visible { outline: none; }
.menu-card__main:focus-visible::after { outline: 3px solid rgba(248, 173, 60, .55); outline-offset: -3px; }
.menu-card:hover .kpi__go { background: var(--nx-gold-gradient); color: var(--nx-navy-900); }
.menu-card__actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 16px; }
.menu-card__actions .btn { flex: 1 1 auto; height: 38px; padding: 0 12px; font-size: 13px; }
.menu-card__label { margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--nx-ink-2); }
.menu-card__stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* Employee search on the resignation form */
.lookup { position: relative; margin-bottom: 18px; }
.lookup__list {
  position: absolute; z-index: 20; top: 78px; left: 0; right: 0;
  max-height: 280px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: var(--nx-surface); border: 1px solid var(--nx-line); border-radius: 12px; box-shadow: var(--nx-shadow);
}
.lookup__item { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--nx-ink); font: inherit; text-align: left; cursor: pointer; }
.lookup__item:hover, .lookup__item.is-active { background: var(--nx-tint-navy); }
.lookup__item span { display: block; font-size: 12px; color: var(--nx-ink-3); }
.lookup__empty { padding: 9px 10px; font-size: 13px; color: var(--nx-ink-3); }

/* Import page */
.import-errors { padding: 12px 14px; border-radius: 12px; margin-bottom: 18px; font-size: 13px; background: var(--nx-danger-bg); color: var(--nx-danger); overflow-wrap: anywhere; }
.import-errors ul { margin: 8px 0; padding-left: 18px; }
.import-steps { margin: 0 0 14px; padding-left: 20px; color: var(--nx-ink-2); font-size: 13.5px; line-height: 1.6; }
.import-template { margin-bottom: 20px; }
.file-input { width: 100%; padding: 12px; border: 1px dashed var(--nx-line); border-radius: 12px; background: transparent; color: var(--nx-ink-2); font: inherit; }

/* Rotation board */
.rotation { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; align-items: start; }
.rotation-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding: 12px 14px; margin-bottom: 18px;
  border: 1px solid var(--nx-gold-500); border-radius: 12px; background: var(--nx-tint-gold); overflow-wrap: anywhere;
}
.rotation-bar[hidden] { display: none; }
.rotation-bar__item { font-size: 13px; color: var(--nx-ink-2); }
.rotation-bar__item strong { color: var(--nx-ink); }
.rotation-bar__actions { display: flex; gap: 8px; margin-left: auto; }
.rotation-bar__actions .btn { height: 36px; padding: 0 14px; }
.rotation__title { margin: 0 0 12px; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.rotation__filter { margin-bottom: 10px; }
.rotation__hint { margin: 0 0 12px; font-size: 12.5px; color: var(--nx-ink-3); }
.rotation__list { display: flex; flex-direction: column; gap: 8px; max-height: 520px; overflow-y: auto; padding: 2px; }
.rotation__history { margin-bottom: 18px; }
.rotation__changed { white-space: nowrap; }
.table th.col-group { text-align: center; }
.table th.col-proposed { background: var(--nx-tint-gold); color: var(--nx-gold-ink); }
.table td.col-previous { font-size: 12px; color: var(--nx-ink-3); }
.table td.col-proposed, .table tbody tr:hover td.col-proposed { background: var(--nx-tint-gold); font-size: 14.5px; font-weight: 700; color: var(--nx-ink); }
.drag-card {
  padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px; overflow-wrap: anywhere;
  border: 1px solid var(--nx-line); background: var(--nx-surface); cursor: grab; user-select: none;
  transition: border-color .15s, opacity .15s;
}
.drag-card:hover { border-color: rgba(248, 173, 60, .45); }
.drag-card:active { cursor: grabbing; }
.drag-card:focus-visible { outline: 3px solid rgba(248, 173, 60, .55); outline-offset: 2px; }
.drag-card.is-dragging { opacity: .45; }
.drag-card[hidden], .drop-zone[hidden] { display: none; }
.drop-zone {
  padding: 9px 12px; border-radius: 10px; font-size: 13px; overflow-wrap: anywhere;
  border: 1px dashed var(--nx-line);
  transition: background .15s, border-color .15s;
}
.drop-zone.is-over, .drop-zone.is-picked { background: var(--nx-tint-gold); border-color: var(--nx-gold-500); }
.drop-zone.is-picked { border-style: solid; font-weight: 600; }
/* Touch screens cannot drag: tapping a name opens the form instead */
@media (hover: none) { .rotation__panel--target { display: none; } }
.rotation-dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 22px; overflow-y: auto;
  border: 1px solid var(--nx-line); border-radius: var(--nx-radius);
  background: var(--nx-surface); color: var(--nx-ink); box-shadow: var(--nx-shadow);
}
.rotation-dialog::backdrop { background: rgba(0, 64, 61, .45); }
.rotation-dialog h2 { margin: 0 0 10px; font-size: 18px; }
.rotation-dialog__from { margin: 2px 0 16px; overflow-wrap: anywhere; }

/* Jobs (oprec) */
.jobs-section { margin-bottom: 18px; }
.jobs-action { height: 34px; padding: 0 12px; font-size: 12.5px; white-space: nowrap; }
.jobs-quota { margin: 8px 0 18px; }
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 0 0 18px; padding: 0; border: 0; }
.check-list legend { padding: 0; margin-bottom: 8px; font-weight: 600; font-size: 13px; }
.check-list label { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.check-list input { width: 16px; height: 16px; accent-color: var(--nx-gold-500); }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.apply-sub { padding: 16px 16px 0; margin-bottom: 18px; border-radius: 12px; background: var(--nx-tint-navy); }
.apply-sub[hidden], .field[hidden] { display: none; }
.tenure { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.job-card { display: flex; flex-direction: column; gap: 6px; }
.job-card__top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.job-card .rotation__title { margin-bottom: 0; }
.job-card__quota { margin: 8px 0 12px; font-weight: 600; font-size: 13.5px; }
.job-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.job-facts dt { font-size: 12px; color: var(--nx-ink-3); }
.job-facts dd { margin: 4px 0 0; font-weight: 600; overflow-wrap: anywhere; }

/* Pipeline funnel */
.funnel { display: flex; flex-direction: column; gap: 14px; }
.funnel__row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 56px; align-items: center; gap: 14px; }
.funnel__label { font-size: 13px; font-weight: 600; }
.funnel__track { height: 12px; border-radius: 999px; background: var(--nx-tint-navy); overflow: hidden; }
.funnel__bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nx-navy-700), var(--nx-navy-900)); }
:root[data-theme="dark"] .funnel__bar { background: linear-gradient(90deg, #4FC3BD, #00857F); }
.funnel__row--win .funnel__bar { background: var(--nx-gold-gradient); }
.funnel__val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--nx-line); }
.stat-row div { padding: 12px 14px; border-radius: 12px; background: var(--nx-tint-champagne); }
.stat-row strong { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.stat-row span { font-size: 12px; color: var(--nx-ink-2); }

.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--nx-tint-navy); flex: none; }
.segmented button, .segmented a { border: 0; background: transparent; padding: 5px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--nx-ink-2); cursor: pointer; }
.segmented button:hover, .segmented a:hover { color: var(--nx-ink); }
.segmented button.is-active, .segmented a.is-active { background: var(--nx-surface); color: var(--nx-ink); box-shadow: 0 1px 3px rgba(0, 64, 61, .1); }
:root[data-theme="dark"] .segmented button.is-active, :root[data-theme="dark"] .segmented a.is-active { background: var(--nx-navy-700); }
.segmented--sm button, .segmented--sm a { padding: 4px 10px; font-size: 12px; }

/* Agenda */
.agenda { display: flex; flex-direction: column; gap: 10px; }
.agenda__item { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--nx-line); border-radius: 14px; transition: border-color .15s; }
.agenda__item:hover { border-color: var(--nx-gold-100); }
.agenda__time { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 56px; border-radius: 11px; background: var(--nx-tint-champagne); font-weight: 800; }
.agenda__time small { font-size: 11px; font-weight: 500; color: var(--nx-ink-3); }
.agenda__name { font-weight: 700; }
.agenda__role { font-size: 12.5px; color: var(--nx-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 4px; font-size: 12px; color: var(--nx-ink-3); }
.agenda__meta span { display: inline-flex; align-items: center; gap: 4px; }
.agenda__meta .i { width: 13px; height: 13px; }

/* Table */
.table-wrap { position: relative; overflow-x: auto; margin: 0 -22px -8px; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 10px 22px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-ink-3); border-bottom: 1px solid var(--nx-line); background: var(--nx-surface-2); white-space: nowrap; }
.table td { padding: 13px 22px; border-bottom: 1px solid var(--nx-line); white-space: nowrap; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--nx-row-hover); }
.person { display: flex; align-items: center; gap: 11px; }
.person__name { font-weight: 600; }
.person__sub { font-size: 12px; color: var(--nx-ink-3); }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--screening { background: var(--nx-tint-navy); color: var(--nx-navy-ink); }
.badge--test { background: var(--nx-tint-neutral); color: var(--nx-ink-2); }
.badge--interview { background: var(--nx-tint-gold); color: var(--nx-gold-ink); }
.badge--offering { background: var(--nx-success-bg); color: var(--nx-success); }
.badge--hired { background: var(--nx-navy-900); color: var(--nx-gold-500); }
:root[data-theme="dark"] .badge--hired { box-shadow: inset 0 0 0 1px rgba(248, 173, 60, .3); }

.match { display: flex; align-items: center; gap: 10px; }
.match__bar { width: 70px; height: 6px; border-radius: 999px; background: var(--nx-tint-navy); overflow: hidden; }
.match__bar span { display: block; height: 100%; border-radius: inherit; background: var(--nx-gold-gradient); }
.match__val { font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums; }

/* Positions */
.positions { display: flex; flex-direction: column; gap: 16px; }
.position__top { display: flex; justify-content: space-between; gap: 10px; }
.position__title { font-weight: 700; }
.position__dept { font-size: 12px; color: var(--nx-ink-3); }
.position__count { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.position__count small { font-weight: 500; color: var(--nx-ink-3); }
.progress { height: 6px; border-radius: 999px; background: var(--nx-tint-navy); overflow: hidden; margin-top: 8px; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--nx-navy-700), var(--nx-navy-900)); }
:root[data-theme="dark"] .progress span { background: linear-gradient(90deg, #4FC3BD, #00857F); }

.insight { position: relative; overflow: hidden; background: var(--nx-navy-gradient); color: #fff; border-color: var(--nx-feature-border); }
.insight::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, rgba(248, 173, 60, .3), transparent 70%); }
.insight > * { position: relative; z-index: 1; }
.insight__tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-gold-500); }
.insight__tag .i { width: 15px; height: 15px; }
.insight p { margin: 12px 0 18px; color: #D2E9E6; font-size: 14.5px; }
.insight p strong { color: #fff; }

/* ---------- List pages ---------- */
.crumb { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--nx-link); }
.crumb:hover { color: var(--nx-link-hover); }
.crumb .i { width: 15px; height: 15px; }
.i--left { transform: rotate(90deg); }
.i--right { transform: rotate(-90deg); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 18px; }
.filters__search { flex: 1 1 260px; min-width: 0; }
.input--sm { height: 42px; border-radius: 11px; }
.select {
  height: 42px; max-width: 100%; padding: 0 36px 0 12px;
  border: 1px solid var(--nx-line); border-radius: 11px;
  background: var(--nx-input-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238090A6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--nx-ink); font-weight: 500;
  appearance: none; -webkit-appearance: none; cursor: pointer;
}
.select:focus { outline: 0; border-color: var(--nx-gold-500); box-shadow: 0 0 0 4px rgba(248, 173, 60, .18); }
.select option { background: var(--nx-surface); color: var(--nx-ink); }
.filters .btn { height: 42px; }

.list-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--nx-line); }
.list-foot__count { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--nx-ink-3); }
.list-foot__icon { width: 15px; height: 15px; color: var(--nx-link); }
.table th.is-num, .table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.is-num { font-weight: 700; }
.table tr.is-placeholder td { color: var(--nx-ink-3); font-weight: 400; }
.table tr.is-placeholder:hover td { background: none; }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pager__btn {
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px;
  display: inline-grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--nx-ink-2);
  border: 1px solid transparent;
}
.pager__btn .i { width: 16px; height: 16px; }
a.pager__btn:hover { background: var(--nx-tint-navy); color: var(--nx-ink); }
.pager__btn.is-active { background: var(--nx-btn-primary); color: #fff; }
.pager__btn.is-disabled { color: var(--nx-ink-3); opacity: .45; }
.pager__btn:focus-visible { outline: 3px solid rgba(248, 173, 60, .55); outline-offset: 1px; }
.pager__gap { padding: 0 4px; color: var(--nx-ink-3); }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 48px 16px 40px; }
.empty-state__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 8px; background: var(--nx-tint-gold); color: var(--nx-link); }
.empty-state__icon .i { width: 26px; height: 26px; }
.empty-state__title { font-size: 16px; font-weight: 700; }
.empty-state__text { color: var(--nx-ink-2); max-width: 420px; margin-bottom: 10px; }

/* Forms */
.form-card { max-width: 860px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-note { margin: -4px 0 18px; }
.req { color: var(--nx-danger); font-weight: 700; }
.select--lg { width: 100%; height: 48px; border-radius: 12px; padding-left: 14px; }
.select.is-invalid { border-color: var(--nx-danger); }
.input input[type="date"] { color-scheme: inherit; }
:root[data-theme="dark"] .input input[type="date"] { color-scheme: dark; }

/* Interview calendar */
.view-tabs { margin-bottom: 18px; }
.view-tabs a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; }
.view-tabs .i { width: 15px; height: 15px; }
.cal__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cal__title { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.cal__nav { display: flex; align-items: center; gap: 8px; }
.cal__today { height: 42px; }
.cal__grid { border: 1px solid var(--nx-line); border-radius: 14px; overflow: hidden; }
.cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__row + .cal__row { border-top: 1px solid var(--nx-line); }
.cal__dow { padding: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--nx-ink-3); background: var(--nx-surface-2); }
.cal__day {
  min-height: 112px; min-width: 0; padding: 8px;
  display: flex; flex-direction: column; gap: 4px;
  color: inherit; transition: background .15s;
}
.cal__day + .cal__day { border-left: 1px solid var(--nx-line); }
.cal__day:hover { background: var(--nx-row-hover); }
.cal__day:focus-visible { outline: 3px solid rgba(248, 173, 60, .55); outline-offset: -3px; }
.cal__day.is-out { background: var(--nx-bg); }
.cal__day.is-out .cal__num { color: var(--nx-ink-3); }
.cal__day.is-selected { box-shadow: inset 0 0 0 2px var(--nx-gold-500); }
.cal__num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.cal__day.is-today .cal__num { background: var(--nx-gold-gradient); color: var(--nx-navy-900); }
.cal__events { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal__event {
  display: block; padding: 3px 6px; border-radius: 6px;
  font-size: 11.5px; line-height: 1.35;
  background: var(--nx-tint-navy); color: var(--nx-navy-ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal__event b { font-weight: 700; margin-right: 4px; font-variant-numeric: tabular-nums; }
.cal__event--done { background: var(--nx-success-bg); color: var(--nx-success); }
.cal__event--cancelled { background: var(--nx-tint-neutral); color: var(--nx-ink-3); text-decoration: line-through; }
.cal__event--failed { background: var(--nx-danger-bg); color: var(--nx-danger); }
.cal__event em { font-style: normal; font-weight: 600; opacity: .8; }

/* Selection steps */
.step-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; white-space: nowrap; background: var(--nx-tint-navy); color: var(--nx-navy-ink); }
.step-tag--psikotes { background: var(--nx-tint-gold); color: var(--nx-gold-ink); }
.step-tag--mcu { background: var(--nx-success-bg); color: var(--nx-success); }
.step-tag--pemberkasan { background: var(--nx-tint-neutral); color: var(--nx-ink-2); }
.steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; min-width: 210px; }
.steps__item { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--nx-tint-neutral); color: var(--nx-ink-3); }
.steps__item .i { width: 12px; height: 12px; stroke-width: 2.4; }
.steps__item.is-scheduled { background: var(--nx-tint-gold); color: var(--nx-gold-ink); }
.steps__item.is-passed { background: var(--nx-success-bg); color: var(--nx-success); }
.steps__item.is-failed { background: var(--nx-danger-bg); color: var(--nx-danger); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 6px; }
.agenda__body { min-width: 0; }
.agenda__body .result-actions { justify-content: flex-start; margin-top: 8px; }
.result-actions__note { font-size: 11.5px; color: var(--nx-ink-3); }
.step-tabs { display: flex; flex-wrap: wrap; max-width: 100%; }
.step-tabs__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; border-radius: 999px; font-size: 11px; background: var(--nx-tint-gold); color: var(--nx-gold-ink); }
.cal__more { font-size: 11px; font-weight: 600; color: var(--nx-ink-3); padding-left: 2px; }
.cal__dots { display: none; gap: 3px; }
.cal__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--nx-gold-500); }
.cal__empty { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 12.5px; color: var(--nx-ink-3); }
.cal__empty .i { width: 15px; height: 15px; color: var(--nx-link); }
.cal-day { margin-top: 18px; scroll-margin-top: 92px; }
.input__suffix { font-size: 12px; font-weight: 600; color: var(--nx-ink-3); }
.form-actions--center { justify-content: center; }
:root[data-theme="dark"] .input input[type="time"] { color-scheme: dark; }

.table th.is-actions, .table td.is-actions { width: 1%; padding-left: 4px; text-align: right; }
.person__link { display: block; color: inherit; }
.person__link:hover { color: var(--nx-link); text-decoration: underline; text-underline-offset: 3px; }
.row-action {
  width: 34px; height: 34px; border-radius: 10px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--nx-line); background: var(--nx-surface); color: var(--nx-ink-2);
  transition: background .15s, color .15s, border-color .15s;
}
.row-action .i { width: 16px; height: 16px; }
.row-action:hover { background: var(--nx-tint-gold); border-color: rgba(248, 173, 60, .45); color: var(--nx-link); }
.table td.cell-missing { background: var(--nx-tint-gold); color: var(--nx-gold-ink); font-weight: 600; white-space: nowrap; }
.row-actions { display: inline-flex; gap: 6px; }
button.row-action { padding: 0; cursor: pointer; }
.row-action--danger:hover { background: var(--nx-danger-bg); border-color: var(--nx-danger); color: var(--nx-danger); }
.row-action:focus-visible, .person__link:focus-visible { outline: 3px solid rgba(248, 173, 60, .55); outline-offset: 2px; }

.badge--applied { background: var(--nx-tint-neutral); color: var(--nx-ink-2); }
.badge--rejected { background: var(--nx-danger-bg); color: var(--nx-danger); }
.mode { display: inline-flex; align-items: center; gap: 6px; }
.mode .i { width: 15px; height: 15px; color: var(--nx-ink-3); }

/* ---------- Profile ---------- */
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; align-items: start; }
.profile-hero { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--nx-line); }
.profile-hero__who { min-width: 0; }
.profile-hero__name { font-size: 20px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.profile-hero__email { color: var(--nx-ink-2); margin-bottom: 6px; overflow-wrap: anywhere; }
.profile-password { scroll-margin-top: 92px; }
.profile-password:target { box-shadow: 0 0 0 3px rgba(248, 173, 60, .35), var(--nx-shadow); }

.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 20px; }
.info-list div { padding: 12px 14px; border-radius: 12px; background: var(--nx-tint-champagne); min-width: 0; }
.info-list dt { font-size: 12px; color: var(--nx-ink-3); }
.info-list dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

.strength { display: flex; align-items: center; gap: 10px; margin: -8px 0 12px; min-height: 18px; }
.strength__bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; flex: 1; max-width: 180px; }
.strength__bars i { height: 4px; border-radius: 4px; background: var(--nx-tint-navy-strong); transition: background .2s; }
.strength__label { font-size: 12px; font-weight: 600; }
.strength[data-level="1"] .strength__bars i:nth-child(-n+1) { background: var(--nx-danger); }
.strength[data-level="1"] .strength__label { color: var(--nx-danger); }
.strength[data-level="2"] .strength__bars i:nth-child(-n+2) { background: var(--nx-gold-500); }
.strength[data-level="2"] .strength__label { color: var(--nx-gold-ink); }
.strength[data-level="3"] .strength__bars i { background: var(--nx-success); }
.strength[data-level="3"] .strength__label { color: var(--nx-success); }

/* ---------- Brand kit page ---------- */
.brand-hero { display: flex; flex-direction: column; align-items: center; gap: 26px; padding: 56px 24px 44px; text-align: center; }
.brand-hero .nx-tagline { width: 100%; max-width: 760px; font-size: 18px; }
.brand-grid { display: grid; grid-template-columns: 1.3fr .7fr 1.3fr; gap: 18px; margin-bottom: 18px; }
.brand-tile { display: flex; flex-direction: column; }
/* Logo stages keep their own backgrounds in every theme */
.brand-tile__stage {
  --nx-logo-ink: var(--nx-navy-900); --nx-logo-tile: transparent; --nx-logo-tile-pad: 0;
  flex: 1; display: grid; place-items: center; min-height: 190px; padding: 28px; border-radius: 12px; border: 1px solid var(--nx-line); background: #fff;
}
.brand-tile__stage--grey { background: #F2F3F5; }
.brand-tile__stage--navy { background: var(--nx-navy-gradient); border-color: transparent; }
.brand-tile__cap { text-align: center; margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.brand-tile__cap small { display: block; font-weight: 500; color: var(--nx-ink-3); letter-spacing: .14em; }

.swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.swatch__chip { height: 108px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 12px; font-weight: 700; font-size: 14px; letter-spacing: .02em; box-shadow: inset 0 0 0 1px rgba(0, 64, 61, .06); }
:root[data-theme="dark"] .swatch__chip { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.swatch__name { text-align: center; margin-top: 10px; font-weight: 600; }
.swatch__meaning { text-align: center; font-size: 12.5px; color: var(--nx-ink-3); line-height: 1.5; }

.type-specimen { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.type-specimen__aa { font-size: 108px; font-weight: 800; line-height: .9; letter-spacing: -.04em; }
.type-specimen__name { font-size: 30px; font-weight: 700; }
.type-specimen__kw { font-size: 13px; font-weight: 500; letter-spacing: .24em; color: var(--nx-ink-3); text-transform: uppercase; margin-top: 4px; }
.type-weights { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; font-size: 18px; }
.brand-tagline { font-style: italic; font-weight: 500; font-size: 22px; letter-spacing: .08em; }

/* ---------- Responsive ---------- */
@media (max-width: 1280px) {
  .grid-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .brand-grid .brand-tile:first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .25s ease; }
  .app.is-nav-open .sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .app.is-nav-open .backdrop { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0, 64, 61, .45); }
  .menu-btn { display: grid; }
  .topbar__logo { display: block; }
  .topbar { padding: 0 16px; }
  .content { padding: 22px 16px 40px; }
  .user__meta { display: none; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__showcase { display: none; }
  .auth__form-side { padding: 28px 16px; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nx-logo--xl { --nx-logo-size: 56px; }
  .profile-grid { grid-template-columns: minmax(0, 1fr); }
  .rotation { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .card__head--action { flex-direction: column; align-items: stretch; }
  .grid-kpi { grid-template-columns: minmax(0, 1fr); }
  .grid-menu { grid-template-columns: minmax(0, 1fr); }
  .job-facts { grid-template-columns: minmax(0, 1fr); }
  .search { display: none; }
  .stat-row { grid-template-columns: minmax(0, 1fr); }
  .brand-grid { grid-template-columns: minmax(0, 1fr); }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-specimen { grid-template-columns: minmax(0, 1fr); }
  .nx-logo--xl { --nx-logo-size: 40px; }
  .nx-logo--lg { --nx-logo-size: 40px; }
  .brand-hero .nx-tagline { font-size: 12px; letter-spacing: .08em; }
  .page-head h1 { font-size: 22px; }
  .menu { position: fixed; top: 80px; left: 16px; right: 16px; width: auto; max-height: calc(100vh - 96px); overflow-y: auto; }
  .info-list { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
  .filters .select { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions { flex-direction: column-reverse; }
  /* Calendar: compact cells with dots; tap a day to see its interviews */
  .cal { padding: 16px 12px; }
  .cal__day { min-height: 58px; padding: 6px 2px; align-items: center; }
  .cal__dow { padding: 8px 2px; text-align: center; letter-spacing: .02em; }
  .cal__events { display: none; }
  .cal__dots { display: flex; }
  .cal__num { width: 24px; height: 24px; font-size: 12px; }
  .cal-day .card__head { flex-direction: column; }
  .cal-day .card__head .btn { width: 100%; }
  .filters__apply { flex: 1 1 auto; }
  .list-foot { justify-content: center; }
}

/* Small phones (320–380px): keep the topbar within the screen */
@media (max-width: 380px) {
  .topbar { gap: 8px; }
  .topbar__logo .nx-logo__text, .topbar__logo .nx-logo__sep { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .menu, .user__chev, .nav__chev, .sidebar, .kpi--link, .kpi__go, .drag-card, .drop-zone { transition: none; }
  .kpi--link:hover, .kpi--link:hover .kpi__go { transform: none; }
}
