/* Design tokens – prototype palette from the project brief, NOT an official ADNOC brand specification. */
:root {
  --brand: #007f86;
  --brand-hover: #006a70;
  --brand-tint: #e7f4f3;
  --navy: #122b45;
  --navy-2: #1b3d5f;
  --ink: #172b4d;
  --ink-2: #64748b;
  --ink-3: #8593a6;
  --line: #dce4ec;
  --line-2: #c9d4df;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ok: #16845b;       --ok-bg: #e8f5ee;
  --warn: #c88719;     --warn-bg: #fff6e5;
  --bad: #c83d4d;      --bad-bg: #fcedee;
  --neutral: #64748b;  --neutral-bg: #f1f4f7;
  --radius: 8px;
  --radius-sm: 6px;
  --control-h: 42px;
  --sidebar-w: 248px;
  --shadow: 0 1px 2px rgba(18, 43, 69, .06);
  --shadow-pop: 0 8px 24px rgba(18, 43, 69, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--ink-2); }
.small { font-size: 12.5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-h); padding: 0 18px; border-radius: var(--radius-sm); border: 1px solid transparent; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .12s, border-color .12s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-hover); }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { background: var(--bg); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--neutral-bg); }
.btn--block { width: 100%; }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13px; }
.btn:active:not([disabled]) { transform: translateY(1px); }
.btn[disabled]:not(.is-loading) { background: #e8ecf1; color: #8a96a6; border-color: #e8ecf1; cursor: not-allowed; }
.btn.is-loading[disabled] { cursor: progress; }
.btn.btn--secondary.is-loading[disabled] { background: var(--surface); color: var(--ink-2); border-color: var(--line-2); }
.spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.spinner--dark { border-color: var(--line-2); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 13px; }
.input { height: var(--control-h); width: 100%; padding: 0 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s; }
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 127, 134, .18); }
.input[aria-invalid="true"] { border-color: var(--bad); }
.field__error { color: var(--bad); font-size: 12.5px; min-height: 0; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 64px; }
.input-wrap button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 30px; padding: 0 10px; border: 0; background: transparent; color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 4px; }
.input-wrap button:hover { background: var(--brand-tint); }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 38px; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.login__brand { position: relative; padding: 48px 56px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; background:
  linear-gradient(160deg, rgba(0,127,134,.35), transparent 55%),
  repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px),
  repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 48px),
  var(--navy); }
.wordmark { font-weight: 800; letter-spacing: .14em; font-size: 22px; }
.login__headline { max-width: 460px; }
.login__headline h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.login__headline p { margin-top: 16px; color: rgba(255,255,255,.76); font-size: 15.5px; }
.login__foot { color: rgba(255,255,255,.55); font-size: 12.5px; }
.login__panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; background: var(--surface); }
.login__form { width: 100%; max-width: 400px; display: grid; gap: 18px; }
.login__form h2 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.login__mobile-brand { display: none; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }
.alert { padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid; }
.alert--error { background: var(--bad-bg); border-color: #f1c5c0; color: var(--bad); }
.alert--info { background: var(--brand-tint); border-color: #bfe0de; color: var(--navy-2); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-access { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 12px 14px; background: var(--bg); font-size: 12.5px; color: var(--ink-2); }
.demo-access summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.demo-access dl { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.demo-access dt { color: var(--ink-3); }
.demo-access dd { margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.demo-access button { margin-top: 10px; }

/* ---------- Shell ---------- */
.shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 20px 14px; z-index: 30; }
.sidebar__brand { padding: 4px 10px 20px; }
.sidebar__brand .wordmark { font-size: 19px; }
.sidebar__brand small { display: block; margin-top: 4px; color: rgba(255,255,255,.62); font-size: 11.5px; line-height: 1.35; }
.nav { display: grid; gap: 2px; margin-top: 8px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); color: rgba(255,255,255,.78); font-weight: 500; text-decoration: none; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 3px 0 0 #4fc3c9; }
.nav svg, .sidebar__foot svg { flex: none; }
.sidebar__foot { margin-top: auto; display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.sidebar__foot button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: transparent; border: 0; color: rgba(255,255,255,.78); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500; text-align: left; width: 100%; }
.sidebar__foot button:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar__user { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-top: 6px; }
.sidebar__user .avatar { background: rgba(255,255,255,.16); color: #fff; }
.sidebar__user strong { display: block; font-size: 13px; font-weight: 600; }
.sidebar__user span { font-size: 12px; color: rgba(255,255,255,.6); }
.scrim { display: none; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 28px; position: sticky; top: 0; z-index: 20; }
.icon-btn.menu-btn { display: none; }
.content:focus { outline: none; }
.content { animation: page-in .22s ease-out; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.crumbs { flex: 1; min-width: 0; font-weight: 600; display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs a { color: var(--ink-2); font-weight: 500; }
.crumbs .sep { color: var(--ink-3); }
.icon-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink-2); position: relative; }
.icon-btn:hover { background: var(--neutral-bg); }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: inline-grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.profile-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid transparent; background: transparent; border-radius: 999px; cursor: pointer; text-align: left; }
.profile-btn:hover, .profile-btn[aria-expanded="true"] { background: var(--bg); border-color: var(--line); }
.profile-btn strong { display: block; font-size: 13px; line-height: 1.25; }
.profile-btn .who span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.25; }
.popover-host { position: relative; }
.popover { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-pop); padding: 6px; z-index: 40; }
.popover[hidden] { display: none; }
.popover button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: transparent; border-radius: var(--radius-sm); cursor: pointer; }
.popover button:hover { background: var(--bg); }
.popover .popover__note { padding: 12px; color: var(--ink-2); font-size: 13px; }
.popover .popover__title { padding: 8px 12px 0; font-weight: 600; }
.badge-dot { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); border: 2px solid #fff; }

.content { padding: 28px; width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-content: start; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.page-head p { margin-top: 4px; color: var(--ink-2); max-width: 620px; }

/* ---------- Overview ---------- */
.welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); }
.welcome h1 { font-size: 24px; letter-spacing: -.01em; }
.welcome p { margin-top: 4px; color: var(--ink-2); }
.btn--cta { height: 46px; padding: 0 22px; font-size: 15px; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); display: block; color: inherit; text-decoration: none; border-top: 3px solid var(--line-2); }
a.metric:hover { text-decoration: none; border-color: var(--line-2); background: #fcfdfe; }
.metric__label { color: var(--ink-2); font-weight: 500; font-size: 13px; }
.metric__value { font-size: 28px; font-weight: 700; line-height: 1.2; margin-top: 4px; letter-spacing: -.01em; }
.metric--warn { border-top-color: #e0a030; } .metric--ok { border-top-color: #2e9d67; } .metric--bad { border-top-color: #d8564c; } .metric--all { border-top-color: var(--brand); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel__head h2 { font-size: 16px; font-weight: 700; }
.toolbar { display: flex; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .search { flex: 1 1 240px; max-width: 360px; }
.toolbar select.input { width: auto; min-width: 160px; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; padding: 16px 20px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; padding: 10px 20px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 20px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcff; }
td.num, th.num { text-align: right; }
.reqid { font-weight: 600; color: var(--brand); white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 7px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--review { color: var(--warn); background: var(--warn-bg); }
.status--approved { color: var(--ok); background: var(--ok-bg); }
.status--rejected { color: var(--bad); background: var(--bad-bg); }
.status--draft { color: var(--neutral); background: var(--neutral-bg); }
.status--submitted { color: var(--brand); background: var(--brand-tint); }
.status--closed { color: var(--neutral); background: var(--neutral-bg); }
.status { transition: background-color .25s, color .25s; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; flex-wrap: wrap; }
.pager__btns { display: flex; gap: 8px; }
.empty { text-align: center; padding: 48px 20px; display: grid; gap: 8px; justify-items: center; }
.empty h3 { font-size: 16px; }
.empty p { color: var(--ink-2); max-width: 380px; }
.empty svg { color: var(--ink-3); }
.skeleton td > span { display: block; height: 14px; border-radius: 4px; background: linear-gradient(90deg, #eef1f5, #f7f9fb, #eef1f5); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Detail / placeholder ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: 170px 1fr; margin: 0; }
.kv dt, .kv dd { padding: 11px 20px; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { font-weight: 500; }
.kv dt:nth-last-of-type(1), .kv dd:last-of-type { border-bottom: 0; }
.side-note { padding: 16px 20px; display: grid; gap: 10px; }
.side-note h3 { font-size: 14px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 4px; background: var(--neutral-bg); color: var(--neutral); font-size: 11.5px; font-weight: 600; letter-spacing: .03em; }
.placeholder { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 56px 24px; border: 1px dashed var(--line-2); border-radius: var(--radius); margin: 20px; background: var(--bg); }
.placeholder h3 { font-size: 16px; }
.placeholder p { color: var(--ink-2); max-width: 460px; }

/* ---------- Dialog & toast ---------- */
.dialog { border: 0; border-radius: 12px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: var(--shadow-pop); color: var(--ink); }
.dialog::backdrop { background: rgba(18, 43, 69, .5); }
.dialog__body { padding: 26px; display: grid; gap: 12px; }
.dialog__body h2 { font-size: 18px; }
.dialog__body p { color: var(--ink-2); }
.dialog__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; border: 1px solid var(--line); }
.dialog__actions { display: grid; gap: 8px; margin-top: 8px; }
.dialog .kv dt, .dialog .kv dd { padding: 9px 0; }
.dialog .kv { grid-template-columns: 120px 1fr; }
.toasts { position: fixed; top: 76px; right: 20px; display: grid; gap: 8px; z-index: 100; pointer-events: none; }
.toast { background: var(--navy); color: #fff; padding: 11px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); max-width: 340px; font-size: 13.5px; animation: toast-in .25s ease-out; transition: opacity .25s, transform .25s; }
.toast--out { opacity: 0; transform: translateY(-6px); }
@keyframes toast-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login__brand { display: none; }
  .login__mobile-brand { display: block; color: var(--navy); font-weight: 800; letter-spacing: .14em; font-size: 20px; }
  .login__panel { align-items: flex-start; padding-top: 48px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(280px, 86vw); transform: translateX(-100%); transition: transform .18s; }
  .shell.nav-open .sidebar { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(18,43,69,.45); z-index: 25; }
  .icon-btn.menu-btn { display: inline-grid; }
  .topbar { padding: 0 14px; }
  .content { padding: 18px 14px; }
  .profile-btn .who { display: none; }
}
@media (max-width: 640px) {
  .metrics { gap: 10px; }
  .col-dept, .col-date, .col-pos, .col-act { display: none; }
  th, td { padding-left: 14px; padding-right: 14px; }
  .welcome { padding: 20px; }
  .welcome .btn { width: 100%; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { border-bottom: 0; padding-bottom: 0; font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* ======================= Create-request journey (DM-08 to DM-11) ======================= */
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; }
.actions-row--center { justify-content: center; }
.entry { padding: 28px; display: grid; gap: 20px; }
.entry h2 { font-size: 16px; margin-bottom: 6px; }
.entry__text p { max-width: 640px; }
.draft-list { list-style: none; margin: 0; padding: 0; }
.draft-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.draft-list li:last-child { border-bottom: 0; }

.req-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.req-ref { display: grid; line-height: 1.35; }
.req-ref strong { font-size: 15px; letter-spacing: .01em; }

/* progress */
.stepper { position: relative; padding: 4px 0 0; }
.stepper__track { position: absolute; top: 19px; left: 16.667%; right: 16.667%; height: 3px; background: var(--line); border-radius: 2px; overflow: hidden; }
.stepper__fill { display: block; height: 100%; background: var(--brand); transition: width .55s ease; }
.stepper__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.step { display: grid; justify-items: center; gap: 2px; text-align: center; }
.step__dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface); border: 2px solid var(--line-2); color: var(--ink-3); transition: background-color .3s, border-color .3s, color .3s, box-shadow .3s; }
.step__name { font-weight: 600; font-size: 13.5px; margin-top: 4px; color: var(--ink-3); }
.step__state { font-size: 12px; color: var(--ink-3); }
.step--done .step__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.step--done .step__name { color: var(--ink); }
.step--active .step__dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 127, 134, .16); }
.step--active .step__name { color: var(--brand); }
.step--active .step__state { color: var(--brand); font-weight: 600; }

/* form */
.form-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.form { padding: 0; }
.form__note { padding: 16px 28px 0; }
#formAlert:empty, #docMsg:empty { display: none; }
#formAlert, #docMsg { padding: 12px 28px 0; }
.form-section { padding: 24px 28px; border-bottom: 1px solid var(--line); display: grid; gap: 18px; scroll-margin-top: 84px; }
.form-section__head h2 { font-size: 16px; font-weight: 600; }
.form-section__head p { color: var(--ink-2); margin-top: 2px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.req { color: var(--bad); font-weight: 700; }
.field__hint { color: var(--ink-2); font-size: 12.5px; }
.field--narrow { max-width: 340px; }
.select { appearance: none; padding-right: 36px; background: var(--surface) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1.5l5 5 5-5' fill='none' stroke='%237a8695' stroke-width='1.8' stroke-linecap='round'/></svg>") no-repeat right 14px center; cursor: pointer; }
.textarea { height: auto; padding: 11px 12px; line-height: 1.5; resize: vertical; min-height: 120px; }
.input-group { display: grid; grid-template-columns: minmax(0, 1fr) 130px; gap: 8px; }
.input[type=number] { -moz-appearance: textfield; }
.input[type=number]::-webkit-outer-spin-button, .input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.seg-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg-field legend { font-weight: 600; font-size: 13px; padding: 0; margin-bottom: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); max-width: 100%; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt + .seg__opt { border-left: 1px solid var(--line-2); }
.seg__opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg__opt span { display: block; padding: 10px 22px; font-weight: 500; transition: background-color .15s, color .15s; }
.seg__opt:hover span { background: var(--bg); }
.seg__opt input:checked + span { background: var(--brand-tint); color: var(--brand); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: -2px; }

.notice { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid #bfe0de; background: var(--brand-tint); border-radius: var(--radius); color: var(--navy-2); }
.notice p { margin-top: 4px; font-size: 13px; }
.notice__icon { flex: none; margin-top: 1px; color: var(--brand); }
.notice__prompt { color: var(--warn); font-weight: 500; }
.notice--flat { margin: 0 20px 18px; }
.tag--demo { margin-left: 8px; background: var(--surface); border: 1px solid #bfe0de; color: var(--navy-2); }

/* documents */
.dropzone { border: 1.5px dashed var(--line-2); border-radius: var(--radius); padding: 26px 16px; display: grid; justify-items: center; gap: 4px; background: var(--bg); transition: border-color .15s, background-color .15s; text-align: center; }
.dropzone.is-over { border-color: var(--brand); background: var(--brand-tint); }
.dropzone__icon { color: var(--brand); }
.dropzone__title { font-weight: 600; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.doc-list:empty { display: none; }
.doc { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); animation: page-in .2s ease-out; }
.doc--error { border-color: #f1c5c0; background: #fffafa; }
.doc__icon { position: relative; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--brand-tint); color: var(--brand); }
.doc__icon small { position: absolute; bottom: -5px; right: -5px; background: var(--navy); color: #fff; font-size: 9px; font-weight: 700; padding: 1px 4px; border-radius: 3px; letter-spacing: .02em; }
.doc__main { min-width: 0; }
.doc__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc__status { display: flex; align-items: center; gap: 10px; }
.progress { width: 130px; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand); transition: width .1s linear; }
.doc__pct { min-width: 34px; text-align: right; }
.doc__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 13px; }
.doc__check { width: 20px; height: 20px; border-radius: 50%; background: var(--ok-bg); display: grid; place-items: center; animation: pop .3s ease-out; }
.doc__check svg { width: 12px; height: 12px; }
.doc__err { display: inline-flex; align-items: center; gap: 6px; color: var(--bad); font-size: 13px; }
.doc__remove { width: 32px; height: 32px; }
.doc-list--static .doc { grid-template-columns: auto minmax(0, 1fr); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

.actionbar { position: sticky; bottom: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(255,255,255,.96); backdrop-filter: blur(4px); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); }
.actionbar__right { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.actionbar--flat { position: static; background: transparent; padding: 16px 20px 20px; border-top: 1px solid var(--line); }

/* summary */
.summary { position: sticky; top: 84px; padding: 18px 20px; }
.summary h2 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.summary__list { margin: 0; display: grid; }
.summary__list > div { padding: 9px 0; border-bottom: 1px solid var(--line); }
.summary__list dt { font-size: 12px; color: var(--ink-2); }
.summary__list dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }
.summary__list dd.is-empty { color: var(--ink-3); font-weight: 400; }
.summary__list dd.flash { animation: flash .45s ease-out; }
@keyframes flash { from { opacity: .35; transform: translateY(2px); } to { opacity: 1; transform: none; } }
.summary__foot { margin-top: 12px; }

/* review */
.review-wrap { max-width: 860px; margin: 0 auto; width: 100%; }
.review { padding: 0; }
.review-sec { border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.review-sec__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px 4px; }
.review-sec__head h2 { font-size: 15px; font-weight: 600; }
.review .kv dt { padding-top: 9px; padding-bottom: 9px; }
.review .kv dd { padding-top: 9px; padding-bottom: 9px; }
.review .kv dt:nth-last-of-type(1), .review .kv dd:last-of-type { border-bottom: 0; }
.review-sec .doc-list { padding: 4px 20px 14px; }
.review-empty { padding: 4px 20px 14px; }
.prewrap { white-space: pre-wrap; }
.final-notice { padding: 16px 20px 0; color: var(--ink-2); font-size: 13px; }
.dialog__actions--row { grid-auto-flow: column; grid-template-columns: 1fr 1fr; }

/* confirmation */
.success { max-width: 760px; margin: 0 auto; width: 100%; padding: 36px 32px 28px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.success h1 { font-size: 24px; letter-spacing: -.01em; }
.success__badge { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); margin-bottom: 8px; animation: pop .45s cubic-bezier(.2, .9, .3, 1.2); }
.success__details { margin: 18px 0 0; width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; text-align: left; }
.success__details > div { padding: 11px 0; border-top: 1px solid var(--line); animation: page-in .35s ease-out backwards; animation-delay: calc(var(--i) * 45ms + 150ms); }
.success__details dt { font-size: 12px; color: var(--ink-2); }
.success__details dd { margin: 2px 0 0; font-weight: 600; }
.next { max-width: 760px; margin: 0 auto; width: 100%; padding: 22px 28px; }
.next h2 { font-size: 16px; font-weight: 600; margin-bottom: 14px; }
.next__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.next__list li { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.next__list li:last-child { padding-bottom: 0; }
.next__list li:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.next__dot { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; border: 2px solid var(--line-2); color: var(--ink-3); background: var(--surface); }
.next__list li.is-done .next__dot { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.next__list p { font-size: 13px; }

@media (max-width: 1024px) {
  .form-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .grid-2 { grid-template-columns: 1fr; }
  .form-section { padding: 20px 16px; }
  .form__note, #formAlert, #docMsg { padding-left: 16px; padding-right: 16px; }
  .actionbar { position: static; flex-direction: column-reverse; align-items: stretch; padding: 12px 16px; }
  .actionbar__right { flex-direction: column-reverse; }
  .actionbar .btn { width: 100%; }
  .actionbar--flat { padding: 16px; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; }
  .seg__opt span { padding: 10px 8px; text-align: center; }
  .doc { grid-template-columns: auto minmax(0, 1fr) auto; }
  .doc__status { grid-column: 2 / 4; grid-row: 2; }
  .progress { flex: 1; width: auto; }
  .step__state { display: none; }
  .success { padding: 28px 18px; }
  .success__details { grid-template-columns: 1fr; }
  .success .actions-row, .actions-row--center .btn { width: 100%; }
  .dialog__actions--row { grid-auto-flow: row; grid-template-columns: 1fr; }
  .dialog__actions--row .btn:first-child { order: 2; }
  .toasts { left: 12px; right: 12px; top: 70px; }
  .req-meta { gap: 10px; }
}

/* ======================= Request management, bulk upload, performance, notifications ======================= */
.btn--danger { background: var(--bad); color: #fff; }
.btn--danger:hover { background: #ab3240; }
.btn--danger-ghost { background: transparent; color: var(--bad); border-color: #efc4c8; }
.btn--danger-ghost:hover { background: var(--bad-bg); }
.link-btn { background: none; border: 0; padding: 4px 6px; color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 4px; text-decoration: none; white-space: nowrap; }
.link-btn:hover { background: var(--brand-tint); text-decoration: none; }
.link-btn--bad { color: var(--bad); } .link-btn--bad:hover { background: var(--bad-bg); }
.back-link { display: inline-block; color: var(--ink-2); font-weight: 500; font-size: 13.5px; margin-bottom: -10px; }
.back-link:hover { color: var(--brand); text-decoration: none; }
.h1like { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.actions-row--wrap { align-items: center; }
.input--sm { height: 34px; width: auto; min-width: 70px; padding-right: 30px; }
.status--returned, .status--cancelreq { color: var(--warn); background: var(--warn-bg); }
.status--review { color: var(--warn); background: var(--warn-bg); }
.tag--block { display: inline-block; margin-bottom: 4px; }
.dataset-note { font-size: 12.5px; color: var(--ink-2); margin-top: -10px; }
.empty--sm { padding: 24px 16px; }
.panel-text { padding: 16px 20px; }
.kv--tight dt, .kv--tight dd { padding: 8px 0; }
.kv--tight { grid-template-columns: 150px 1fr; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpis--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); transition: box-shadow .18s, transform .18s; }
.kpi:hover { box-shadow: 0 6px 18px rgba(18, 43, 69, .09); transform: translateY(-1px); }
.kpi__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; flex: none; }
.kpi__label { color: var(--ink-2); font-size: 13px; }
.kpi__value { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.kpi__sub { font-size: 12px; color: var(--ink-3); }
.kpi--skel { min-height: 76px; background: linear-gradient(90deg, #eef1f5, #f7f9fb, #eef1f5); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-color: transparent; box-shadow: none; }

/* callouts */
.callout { border: 1px solid; border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; }
.callout h2, .callout h3 { font-size: 15px; font-weight: 600; }
.callout p { font-size: 13.5px; }
.callout--warn { background: var(--warn-bg); border-color: #f0d9a8; color: #5c3d06; }
.callout--bad { background: var(--bad-bg); border-color: #f1c5c0; color: #7f1d27; }
.callout--info { background: var(--brand-tint); border-color: #bfe0de; color: var(--navy-2); }
.callout--row { grid-template-columns: auto 1fr auto; align-items: center; }
.callout__ic { color: var(--warn); display: grid; }
.callout__grid { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 20px; }
.callout__grid dt { font-size: 12px; opacity: .8; } .callout__grid dd { margin: 2px 0 0; font-weight: 600; }

/* filters / chips */
.toolbar--filters { align-items: center; }
.toolbar--filters .input { width: auto; min-width: 150px; }
.toolbar--filters .search .input { width: 100%; }
.search__ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); display: grid; }
.search__ic svg { position: static; transform: none; }
.search__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; width: 28px; height: 28px; border-radius: 50%; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.search__clear:hover { background: var(--neutral-bg); color: var(--ink); }
.search__clear[hidden] { display: none; }
.daterange { display: inline-flex; align-items: center; gap: 6px; }
.daterange[hidden] { display: none; }
.daterange .input { min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 20px 0; }
.chips[hidden] { display: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); font-size: 12.5px; font-weight: 500; animation: page-in .18s ease-out; }
.chip button { border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 2px; border-radius: 50%; color: inherit; }
.chip button:hover { background: rgba(0,0,0,.08); }
.chip--due { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.chip--mgr { background: var(--brand-tint); color: var(--brand); font-weight: 600; }

/* tables */
.rtable td.act, .rtable th:last-child { text-align: right; }
.row-link { cursor: pointer; }
.row-link td { transition: background-color .15s; }
.row-actions { display: flex; gap: 4px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.th-sort { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
.th-sort:hover { color: var(--ink); }
.th-sort__ic { opacity: 0; transition: opacity .15s, transform .2s; display: grid; }
.th-sort.is-on { color: var(--brand); } .th-sort.is-on .th-sort__ic { opacity: 1; }
.th-sort.is-desc .th-sort__ic { transform: rotate(180deg); }
.dtable td, .dtable th { padding: 11px 16px; }
.dtable .doc__cell { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dtable .doc__name { max-width: 260px; }
.doc__actions { white-space: nowrap; text-align: right; }
.doc-empty { padding: 4px 0; }
.docs-host, .dsec__body { display: grid; gap: 14px; }
.dsec__body { padding: 16px 20px; }
.drow { transition: background-color .2s; }
.drow--error { background: #fffafa; }
.diff { padding: 2px 6px; border-radius: 4px; }
.diff--old { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; text-decoration-color: rgba(200,61,77,.5); }
.diff--new { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.field.is-changed .input { background: var(--brand-tint); border-color: #8fcfcc; }
.field.has-error .input { background: #fffafa; }

/* detail */
.refline { margin-top: 4px; color: var(--ink-2); }
.refline strong { color: var(--ink); letter-spacing: .01em; }
.copy-btn { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: 12px; cursor: pointer; }
.copy-btn:hover { background: var(--bg); color: var(--ink); }
.head-status { display: flex; align-items: center; }
.head-status .status { font-size: 14px; padding: 5px 14px 5px 10px; }
.detail-grid--wide { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.overview { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.overview > div { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.overview dt { font-size: 12px; color: var(--ink-2); } .overview dd { margin: 3px 0 0; font-weight: 600; word-break: break-word; }
.overview--tight { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } .overview--tight > div { border-bottom: 0; }
.status-head { padding: 0; }
.dsec .kv dt, .dsec .kv dd { padding-top: 10px; padding-bottom: 10px; }
.dsec .kv dt:nth-last-of-type(1), .dsec .kv dd:last-of-type { border-bottom: 0; }

/* timeline + activity */
.timeline { list-style: none; margin: 0; padding: 20px 24px; display: grid; }
.tl { display: flex; gap: 16px; position: relative; padding-bottom: 22px; animation: page-in .3s ease-out backwards; animation-delay: calc(var(--i) * 40ms); }
.tl:last-child { padding-bottom: 0; }
.tl:not(:last-child)::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); transition: background-color .4s; }
.tl--done:not(:last-child)::before { background: var(--brand); }
.tl__dot { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: var(--surface); border: 2px solid var(--line-2); color: var(--ink-3); }
.tl--done .tl__dot { background: var(--brand); border-color: var(--brand); color: #fff; animation: pop .35s ease-out; }
.tl--current .tl__dot { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0,127,134,.14); }
.tl--current .tl__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.tl--returned .tl__dot { border-color: var(--warn); color: var(--warn); background: var(--warn-bg); }
.tl--rejected .tl__dot { border-color: var(--bad); color: var(--bad); background: var(--bad-bg); }
.tl--upcoming .tl__head strong { color: var(--ink-3); }
.tl__body { min-width: 0; } .tl__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.tl__state { font-size: 12px; color: var(--ink-2); background: var(--neutral-bg); padding: 1px 8px; border-radius: 999px; }
.tl--current .tl__state { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.tl--returned .tl__state { background: var(--warn-bg); color: var(--warn); font-weight: 600; }
.tl--rejected .tl__state { background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.tl__comment { color: var(--ink-2); font-style: italic; }
.tl__changes { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); }
.activity { list-style: none; margin: 0; padding: 8px 20px 12px; display: grid; }
.act-item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); animation: page-in .25s ease-out backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.act-item:last-child { border-bottom: 0; }
.act-item__time { font-size: 12.5px; color: var(--ink-2); }
.act-item p { margin-top: 2px; }
.no-action { display: flex; gap: 8px; align-items: center; color: var(--ok); font-weight: 500; }
.big-status .status { font-size: 14px; }
.mini { margin: 0; display: grid; gap: 8px; } .mini dt { font-size: 12px; color: var(--ink-2); } .mini dd { margin: 0; font-weight: 600; }

/* bulk upload */
.bulk { padding: 24px 28px; display: grid; gap: 20px; }
.bulk__head h2 { font-size: 17px; font-weight: 600; }
.bulk__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bulk__cols h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 6px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bulk__actions { justify-content: flex-end; padding-top: 4px; }
.file-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.file-row .progress { width: 160px; }
.vsum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.vsum__i { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; display: grid; animation: page-in .3s ease-out; }
.vsum__i span { font-size: 12.5px; color: var(--ink-2); } .vsum__i strong { font-size: 24px; }
.vsum__i--ok { background: var(--ok-bg); border-color: #c2e3d1; } .vsum__i--warn { background: var(--warn-bg); border-color: #f0d9a8; } .vsum__i--bad { background: var(--bad-bg); border-color: #f1c5c0; }
.rstat { display: inline-flex; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; transition: background-color .25s; }
.rstat--valid { background: var(--ok-bg); color: var(--ok); } .rstat--warning { background: var(--warn-bg); color: var(--warn); } .rstat--error { background: var(--bad-bg); color: var(--bad); }
.msgs { margin: 0; padding-left: 16px; font-size: 13px; } .m-err { color: var(--bad); } .m-warn { color: var(--warn); }
.vrow--error td { background: #fffafa; }
.row-edit { display: grid; gap: 12px; max-height: 52vh; overflow: auto; padding: 4px 2px; }

/* dialog + drawer */
.btn--cta { height: 46px; }
.dialog { max-height: 92vh; overflow: auto; animation: dlg-in .19s ease-out; }
.dialog[open]::backdrop { animation: fade-in .19s ease-out; }
.dialog--wide { width: min(760px, calc(100vw - 32px)); }
.preview__img { max-width: 100%; max-height: 60vh; display: block; margin: 0 auto; border-radius: var(--radius-sm); }
.preview__frame { width: 100%; height: 60vh; border: 1px solid var(--line); border-radius: var(--radius-sm); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.drawer-scrim { position: fixed; inset: 0; background: rgba(18,43,69,.4); opacity: 0; transition: opacity .22s; z-index: 60; }
.drawer-scrim.is-open { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); box-shadow: var(--shadow-pop); transform: translateX(100%); transition: transform .24s ease-out; z-index: 61; display: flex; flex-direction: column; }
.drawer.is-open { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 17px; }
.drawer__body { padding: 20px; overflow: auto; display: grid; gap: 18px; align-content: start; }
.dr-sec { display: grid; gap: 10px; padding-top: 4px; }
.dr-sec h3 { font-size: 14px; }

/* tabs */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.tab { padding: 11px 16px; font-weight: 500; color: var(--ink-2); white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: none; cursor: pointer; text-decoration: none; transition: color .15s, border-color .15s; font-size: 14px; }
.tab:hover { color: var(--ink); text-decoration: none; }
.tab.is-active { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }
.tabs--page { margin-top: -6px; }
.wh { padding: 20px 20px 0; display: grid; gap: 16px; }
.wh__id { display: flex; gap: 16px; align-items: center; }
.wh h1 { font-size: 22px; }
.wh__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: 13.5px; margin-top: 2px; }
.wh__meta span + span::before { content: "·"; margin-right: 16px; color: var(--ink-3); }
.avatar--lg { width: 56px; height: 56px; font-size: 18px; }
.cycle { display: grid; gap: 4px; min-width: 260px; }
.cyc-note { margin-top: 8px; }
.summary-cards, .obj-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; transition: box-shadow .18s; }
.scard:hover { box-shadow: 0 4px 14px rgba(18,43,69,.08); }
.scard__l { font-size: 12.5px; color: var(--ink-2); margin-bottom: 4px; } .scard__v { font-weight: 600; } .scard__v--num { font-size: 24px; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.activity-bars { list-style: none; margin: 0; padding: 16px 20px; display: grid; gap: 16px; }
.ab__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; margin-bottom: 6px; flex-wrap: wrap; }
.pbar { height: 8px; background: var(--neutral-bg); border-radius: 4px; overflow: hidden; }
.pbar span { display: block; height: 100%; background: var(--brand); border-radius: 4px; transition: width .7s ease-out; }
.pending-list, .mini-list { list-style: none; margin: 0; padding: 0; }
.pending-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.pending-list li:last-child { border-bottom: 0; }
.mini-list li { padding: 11px 20px; border-bottom: 1px solid var(--line); } .mini-list li:last-child { border-bottom: 0; }

/* objectives / feedback */
.obj-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.obj-grid > .tag { grid-column: 1 / -1; justify-self: start; }
.obj { text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 8px; cursor: pointer; font: inherit; color: inherit; transition: border-color .18s, background-color .18s, box-shadow .18s; animation: page-in .3s ease-out backwards; animation-delay: calc(var(--i) * 40ms); }
.obj:hover { border-color: #8fcfcc; background: #fcfefe; box-shadow: 0 4px 14px rgba(18,43,69,.07); }
.obj__top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.obj h3 { font-size: 15px; font-weight: 600; }
.obj__meta { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.kpi-line { display: grid; gap: 6px; }
.fb-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.fb-timeline li { animation: page-in .3s ease-out backwards; animation-delay: calc(var(--i) * 50ms); }
.fb { width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; display: grid; gap: 6px; cursor: pointer; font: inherit; color: inherit; transition: border-color .18s, box-shadow .18s; }
.fb:hover { border-color: #8fcfcc; box-shadow: 0 4px 14px rgba(18,43,69,.07); }
.fb__top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fu { color: var(--warn); font-weight: 500; }

/* reviews */
.rsec__body { padding: 16px 20px; display: grid; gap: 14px; }
.selfbox { border-left: 3px solid var(--line-2); padding: 4px 0 4px 14px; display: grid; gap: 8px; background: transparent; }
.ro-text { white-space: pre-wrap; }
.crit { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px; }
.crit__h { display: grid; gap: 2px; }
.crit__g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 13.5px; }
.planrow { display: grid; grid-template-columns: 1.2fr 1.4fr 150px 1.2fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.planrow--ro { grid-template-columns: 1.2fr 1.4fr 120px 1.2fr; padding: 8px 0; border-bottom: 1px solid var(--line); }

/* notifications */
.badge-count { position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.badge-count--inline { position: static; display: inline-grid; border: 0; margin-left: 6px; }
.popover--wide { width: min(380px, 92vw); padding: 0; }
.popover__title { padding: 12px 16px 8px; font-weight: 600; }
.popover__foot { display: block; padding: 10px 16px; border-top: 1px solid var(--line); text-align: center; font-weight: 600; }
.notif-list { display: grid; }
.notif-list--pop { max-height: 340px; overflow: auto; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; transition: background-color .15s; }
.notif:hover { background: #fafcff; text-decoration: none; }
.notif__dot { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; background: transparent; flex: none; }
.notif.is-unread .notif__dot { background: var(--brand); }
.notif.is-unread .notif__t { font-weight: 700; }
.notif__t { font-weight: 500; }
.notif__body { flex: 1; min-width: 0; }
.notif__act { color: var(--brand); font-weight: 600; white-space: nowrap; align-self: center; }

@media (max-width: 1200px) { .kpis--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .summary-cards, .obj-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } .callout__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid--wide, .two-col { grid-template-columns: 1fr; }
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bulk__cols { grid-template-columns: 1fr; }
  .obj-grid { grid-template-columns: 1fr; }
  .crit__g { grid-template-columns: 1fr; }
}
@media (max-width: 860px) { .planrow { grid-template-columns: 1fr 1fr; } .planrow .icon-btn { justify-self: end; } }
@media (max-width: 640px) {
  .kpis--5 { grid-template-columns: repeat(2, 1fr); } .summary-cards, .obj-summary { grid-template-columns: repeat(2, 1fr); }
  .overview, .overview--tight { grid-template-columns: 1fr; }
  .callout--row { grid-template-columns: 1fr; } .callout__grid { grid-template-columns: 1fr; }
  .act-item { grid-template-columns: 1fr; gap: 2px; }
  .bulk { padding: 18px 16px; }
  .file-row { flex-wrap: wrap; } .file-row .progress { width: 100%; }
  .toolbar--filters .input { width: 100%; } .toolbar--filters .search { flex-basis: 100%; max-width: none; }
  .head-status { margin-top: 4px; }
  .wh__id { align-items: flex-start; }
  /* tables become readable cards */
  .rtable thead, .dtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td, .dtable, .dtable tbody, .dtable tr, .dtable td { display: block; width: 100%; }
  .rtable tr, .dtable tr { border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 14px; width: auto; padding: 6px 0; background: var(--surface); }
  .rtable td, .dtable td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 7px 14px; text-align: right; }
  .rtable td::before, .dtable td::before { content: attr(data-label); color: var(--ink-2); font-size: 12.5px; text-align: left; flex: none; }
  .rtable td[data-label=""]::before, .dtable td.doc__actions::before { content: none; }
  .rtable td.act, .dtable td.doc__actions { justify-content: flex-end; }
  .rtable td.num { text-align: right; }
  .dtable .doc__cell { text-align: left; }
  .dtable .doc__name { max-width: 200px; }
  .rtable--skeleton td { display: none; } .rtable--skeleton td:first-child { display: block; }
  .drawer { width: 100vw; }
  .tabs { margin: 0 -2px; }
}
@media print {
  .sidebar, .topbar, .actions-row, .back-link, .toasts, .scrim { display: none !important; }
  .shell { display: block; } body { background: #fff; }
  .content { max-width: none; padding: 0; animation: none; }
  .panel { box-shadow: none; break-inside: avoid; }
}

/* compact request / worker tables */
.rtable th { white-space: normal; padding: 10px 12px; font-size: 11.5px; line-height: 1.3; vertical-align: bottom; }
.rtable td { padding: 11px 12px; font-size: 13.5px; }
.rtable th:first-child, .rtable td:first-child { padding-left: 20px; }
.rtable th:last-child, .rtable td:last-child { padding-right: 20px; }
.rtable td:first-child { white-space: nowrap; }
.rtable .row-actions { gap: 2px 6px; min-width: 120px; }
.rtable .row-actions .btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.rtable .row-actions .link-btn { padding: 2px 4px; font-size: 12.5px; }
.rtable .status { font-size: 12px; }
.ptable th, .ptable td { padding: 10px 8px; font-size: 13px; }
.ptable th:first-child, .ptable td:first-child { padding-left: 16px; }
.ptable th:last-child, .ptable td:last-child { padding-right: 16px; }
.ptable .status { font-size: 11.5px; padding: 2px 8px 2px 6px; }
.ptable .chip--due { font-size: 11.5px; padding: 1px 8px; margin-top: 4px; display: inline-block; }
.ptable .row-actions { min-width: 0; flex-direction: column; align-items: flex-end; }
.ptable th { letter-spacing: .01em; font-size: 11px; text-transform: none; }
.ptable td:first-child, .ptable td:nth-child(2) { white-space: normal; }
.ptable td:first-child a { white-space: nowrap; }
.ptable .btn--sm { padding: 0 8px; }

/* let wide tables scroll inside their panel instead of stretching the page */
.content > *, .panel, .two-col > *, .detail-grid > *, .stack > * { min-width: 0; }
.table-wrap { max-width: 100%; }
@media (max-width: 1024px) { .rtable .row-actions { flex-direction: row; } }
.table-wrap { position: relative; }

.overview dd, .mini dd, .kv dd { overflow-wrap: anywhere; }
.overview .status { white-space: normal; }

/* ======================= HR / Manpower Team workspace ======================= */
.nav__head { margin: 14px 12px 4px; font-size: 11px; letter-spacing: .08em; color: rgba(255,255,255,.5); font-weight: 600; }
.nav__head:first-child { margin-top: 0; }
.nav__btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; background: transparent; border: 0; border-radius: var(--radius-sm); color: rgba(255,255,255,.78); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.nav__btn:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav__soon { margin-left: auto; font-style: normal; font-size: 10.5px; padding: 1px 6px; border-radius: 999px; background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); }
.date-chip { font-size: 12.5px; color: var(--ink-2); background: var(--neutral-bg); padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.login__art { width: 100%; max-width: 460px; color: rgba(255,255,255,.28); margin: 8px 0; align-self: flex-start; }
.status--offer { color: #5b4b9a; background: #eeeaf8; }
.kpis--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.kpi--link, .kpi--btn { text-decoration: none; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.kpi--link:hover { text-decoration: none; }
.kpi--btn { border: 1px solid var(--line); }
.kpi--btn:focus-visible, .kpi--link:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.kpi { animation: page-in .3s ease-out backwards; animation-delay: calc(var(--i, 0) * 40ms); }

.dist { list-style: none; margin: 0; padding: 14px 20px; display: grid; gap: 10px; }
.dist a { display: grid; grid-template-columns: 170px 1fr 90px; gap: 12px; align-items: center; color: inherit; text-decoration: none; border-radius: var(--radius-sm); padding: 3px 4px; transition: background-color .15s; }
.dist a:hover { background: var(--bg); text-decoration: none; }
.dist__b { height: 10px; background: var(--neutral-bg); border-radius: 5px; overflow: hidden; }
.dist__b span { display: block; height: 100%; background: var(--brand); border-radius: 5px; transition: width .7s ease-out; }
.dist__n { text-align: right; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.pipeline { list-style: none; margin: 0; padding: 18px 20px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.pipeline li { animation: page-in .3s ease-out backwards; animation-delay: calc(var(--i) * 35ms); }
.pipeline a { display: grid; justify-items: center; gap: 6px; padding: 10px 4px; border-radius: var(--radius); color: inherit; text-decoration: none; transition: background-color .15s; height: 100%; }
.pipeline a:hover { background: var(--brand-tint); text-decoration: none; }
.pipeline__n { font-size: 22px; font-weight: 700; }
.pipeline__bar { width: 28px; height: 60px; background: var(--neutral-bg); border-radius: 6px; display: flex; align-items: flex-end; overflow: hidden; }
.pipeline__bar span { display: block; width: 100%; background: var(--brand); border-radius: 6px 6px 0 0; transition: height .7s ease-out; }
.pipeline__l { font-size: 12px; color: var(--ink-2); text-align: center; line-height: 1.25; font-weight: 500; }
.pipeline__l small { display: block; color: var(--ink-3); font-weight: 400; }

.filter-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .2s ease-out; border-bottom: 0 solid var(--line); }
.filter-panel.is-open { grid-template-rows: 1fr; border-bottom-width: 1px; }
.filter-panel__in { overflow: hidden; min-height: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; padding: 0 20px; }
.filter-panel.is-open .filter-panel__in { padding: 16px 20px; }
.filter-panel__act { grid-column: 1 / -1; display: flex; gap: 10px; }
.hrtable td, .ctable td { font-size: 13px; }
.ctable th.selcell, .ctable td.selcell { width: 36px; padding-right: 0; }
.dup-flag { color: var(--warn); }
.ai-panel summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; cursor: pointer; list-style: none; }
.ai-panel summary::-webkit-details-marker { display: none; }
.ai-panel__b { padding: 0 20px 16px; display: grid; gap: 10px; animation: page-in .2s ease-out; }
.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list li { padding: 10px 20px; border-top: 1px solid var(--line); }
.comment-list p { margin-top: 2px; white-space: pre-wrap; }
.justif { padding: 16px 20px; }
.justif.is-clamped p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* review (HR-05) */
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
details.acc > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; cursor: pointer; list-style: none; font-weight: 600; }
details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary::after { content: "▾"; color: var(--ink-3); transition: transform .2s; margin-left: 8px; }
details.acc:not([open]) > summary::after { transform: rotate(-90deg); }
.acc__s { margin-left: auto; }
.acc__b { padding: 4px 20px 18px; display: grid; gap: 12px; animation: page-in .2s ease-out; }
.rv-rows { display: grid; }
.rv-row { display: grid; grid-template-columns: minmax(0, 1.3fr) 220px minmax(0, 1.3fr); gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rv-row:last-child { border-bottom: 0; }
.rv-row--just { grid-template-columns: 220px minmax(0, 1fr); }
.rv-row__l { display: grid; min-width: 0; overflow-wrap: anywhere; }
.rv-row .input--sm { width: 100%; height: 38px; }
.rv-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px 20px 8px; }
.rv-prog__i { display: grid; gap: 4px; justify-items: start; }
.rv-bar { height: 6px; background: var(--neutral-bg); margin: 8px 20px 18px; border-radius: 3px; overflow: hidden; }
.rv-bar span { display: block; height: 100%; background: var(--brand); transition: width .4s ease-out; }
.back-link + .page-head { margin-top: 4px; }

@media (max-width: 1280px) { .kpis--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } .filter-panel__in { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .filter-panel__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rv-row { grid-template-columns: 1fr; } .rv-progress { grid-template-columns: repeat(2, 1fr); } .dist a { grid-template-columns: 130px 1fr 80px; } }
@media (max-width: 640px) { .kpis--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filter-panel__in { grid-template-columns: 1fr; } .date-chip { display: none; } .dist a { grid-template-columns: 1fr; gap: 4px; } .dist__n { text-align: left; } .ctable td.selcell { display: none; } }

/* HR polish */
#dashBody { display: grid; gap: 24px; min-width: 0; align-content: start; }
.kpis--6 .kpi { flex-direction: column; align-items: flex-start; gap: 10px; }
.kpis--6 .kpi__label { min-height: 2.6em; }
.ctable td { white-space: nowrap; }
.ctable td[data-label="Certifications"] { white-space: normal; min-width: 170px; max-width: 220px; }
.ctable .row-actions { flex-direction: row; flex-wrap: nowrap; }
.hrtable td { white-space: nowrap; }
.hrtable td[data-label="Position"] { white-space: normal; min-width: 150px; }
@media (max-width: 640px) { .ctable td, .hrtable td { white-space: normal; } .ctable .row-actions { flex-wrap: wrap; } }

/* ---------- HR-07 → HR-15 additions ---------- */
.kpis--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpi--btn { cursor: pointer; text-align: left; font: inherit; color: inherit; width: 100%; }
.kpi--btn:hover { box-shadow: var(--shadow-pop); transform: translateY(-1px); }
.callout--flat { box-shadow: none; }
.row-actions--wrap { flex-wrap: wrap; gap: 4px 10px; }
.link-btn--bad { color: var(--bad); }
.cand-id { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.cand-id__n { font-weight: 600; }
.cv-box { border: 1px dashed var(--line-2); border-radius: var(--radius); padding: 14px; background: var(--bg); }
.two-col--prof { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.tabs--lt .tab { padding: 9px 14px; }
.tab__n { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 10px; background: var(--neutral-bg); color: var(--ink-2); font-size: 11.5px; text-align: center; }
.tab.is-active .tab__n { background: var(--brand-tint); color: var(--brand); }
.seg-mini { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.seg-mini button { border: 0; background: var(--surface); padding: 5px 12px; cursor: pointer; font-size: 12.5px; color: var(--ink-2); }
.seg-mini button.is-active { background: var(--brand); color: #fff; }
/* comparison */
.cmp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cmp-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.cmp-card__h { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.cmp-table { width: 100%; border-collapse: collapse; }
.cmp-table th, .cmp-table td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; font-size: 13px; }
.cmp-table thead th { background: var(--neutral-bg); position: sticky; top: 0; }
.cmp-table tbody th { background: var(--bg); width: 190px; font-weight: 600; }
/* calendar */
.cal-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal--month { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal--week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__h { background: var(--neutral-bg); padding: 6px; font-size: 12px; font-weight: 600; text-align: center; }
.cal__d { background: var(--surface); min-height: 84px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal__d--wk { min-height: 140px; }
.cal__d.is-out { background: var(--bg); color: var(--ink-3); }
.cal__d.is-today { box-shadow: inset 0 0 0 2px var(--brand); }
.cal__n { font-size: 12px; color: var(--ink-2); }
.cal-ev { border: 0; border-left: 3px solid var(--neutral); background: var(--neutral-bg); text-align: left; padding: 2px 5px; font-size: 11.5px; border-radius: 3px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; width: 100%; }
.cal-ev--submitted { border-left-color: var(--brand); background: var(--brand-tint); }
.cal-ev--approved { border-left-color: var(--ok); background: var(--ok-bg); }
.cal-ev--review, .cal-ev--returned { border-left-color: var(--warn); background: var(--warn-bg); }
.cal-ev--rejected { border-left-color: var(--bad); background: var(--bad-bg); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; font-size: 12px; color: var(--ink-2); }
/* workforce */
.dist__btn { display: grid; grid-template-columns: 190px 1fr 90px; gap: 12px; align-items: center; width: 100%; border: 0; background: none; padding: 3px 4px; border-radius: var(--radius-sm); cursor: pointer; text-align: left; font: inherit; color: inherit; }
.dist__btn:hover { background: var(--bg); }
.dist__l { min-width: 0; }
.dcomps { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; padding: 16px 20px; }
.dcomp { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 12px; display: grid; gap: 2px; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.dcomp strong { font-size: 22px; }
.dcomp span { font-size: 12.5px; color: var(--ink-2); }
.dcomp:hover { box-shadow: var(--shadow-pop); }
.dcomp--bad strong { color: var(--bad); }
.dcomp--cfg { cursor: default; background: var(--neutral-bg); }
.lc-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; padding: 16px 20px; }
.lc-type { display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px; cursor: pointer; font: inherit; color: inherit; text-decoration: none; transition: box-shadow .18s, border-color .18s; }
.lc-type:hover { border-color: var(--brand); box-shadow: var(--shadow-pop); text-decoration: none; }
.lc-type strong { color: var(--navy); }
.lc-type span { font-size: 12.5px; color: var(--ink-2); }
.journey { list-style: none; margin: 0; padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.journey li { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 13px; }
.journey li.is-done { color: var(--ok); font-weight: 600; }
.journey__dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; }
.journey li.is-done .journey__dot { background: currentColor; }
.wk-docs td, .wk-docs th { vertical-align: top; }
.input--sm { height: 32px; padding: 3px 8px; font-size: 13px; }
.diff--new { background: var(--ok-bg); color: var(--ok); padding: 1px 6px; border-radius: 4px; }
.h1like { font-size: 20px; font-weight: 600; color: var(--navy); }
.btn.is-disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 860px) { .kpis--4, .kpis--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .two-col--prof { grid-template-columns: 1fr; } .dist__btn { grid-template-columns: 1fr; gap: 4px; } .cal__d { min-height: 60px; } .cmp-table tbody th { width: 120px; } }
@media (max-width: 520px) { .kpis--4, .kpis--3, .kpis--5, .kpis--6 { grid-template-columns: 1fr; } .cal--month, .cal--week { overflow-x: auto; } }
#wfBody, #ofBody, #mbBody, #lcBody, #lcTab, #lcDet, #lcWiz, #mbDetail { display: grid; gap: 20px; align-content: start; min-width: 0; }
#wfList .table-wrap, #ofList .table-wrap { margin: 0; }

/* ---------- HR-17 Timesheet Management ---------- */
.ts-period { padding: 14px 20px 6px; }
.ts-period__in { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-end; }
.ts-period__in .field { margin: 0; min-width: 180px; }
.ts-view { display: grid; gap: 20px; align-content: start; min-width: 0; animation: page-in .2s ease-out; }
.ts-ins { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.ts-ins .panel { min-width: 0; }
.ts-xchips { padding: 12px 20px 4px; }
.chip--btn { cursor: pointer; border: 1px solid var(--line-2); background: var(--surface); transition: background-color .15s, border-color .15s; }
.chip--btn:hover { border-color: var(--brand); }
.chip--btn.is-on { background: var(--brand-tint); border-color: var(--brand); color: var(--brand); }
.empty--sm { padding: 20px; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.ts-trend { display: flex; gap: 14px; align-items: flex-end; height: 170px; padding: 16px 20px 0; }
.ts-trend__g { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; min-width: 0; }
.ts-trend__bars { display: flex; align-items: flex-end; gap: 6px; height: 100%; border-bottom: 1px solid var(--line); }
.ts-bar { flex: 1; position: relative; border-radius: 4px 4px 0 0; transition: height .5s ease-out; min-height: 4px; }
.ts-bar em { position: absolute; top: -18px; left: 0; right: 0; text-align: center; font-style: normal; font-size: 11.5px; color: var(--ink-2); }
.ts-bar--s, .ts-key--s { background: var(--brand); }
.ts-bar--a, .ts-key--a { background: var(--ok); }
.ts-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.ts-trend__l { font-size: 11.5px; color: var(--ink-2); text-align: center; }
.ts-flow { list-style: none; margin: 0; padding: 16px 20px 4px; display: grid; gap: 0; }
.ts-flow__i { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-bottom: 16px; position: relative; color: var(--ink-3); }
.ts-flow__i:not(:last-child)::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.ts-flow__dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); margin-top: 2px; }
.ts-flow__i.is-done { color: var(--ink); } .ts-flow__i.is-done .ts-flow__dot { background: var(--ok); border-color: var(--ok); }
.ts-flow__i.is-current { color: var(--ink); } .ts-flow__i.is-current .ts-flow__dot { border-color: var(--warn); background: var(--warn-bg); }
.ts-two { align-items: start; }
.ts-ed { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; }
.ts-ed table { margin: 0; }
.ts-entries tr.is-flag td, .dtable tr.is-flag td { background: var(--warn-bg); }
.ts-entries tfoot th, .ts-entries tfoot td { border-top: 2px solid var(--line-2); background: var(--bg); }
.ts-xf { padding: 12px 20px; }
@media (max-width: 1100px) { .ts-ins { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .ts-period__in .field { min-width: 140px; flex: 1; } .ts-trend { height: 140px; } }
@media (prefers-reduced-motion: reduce) { .ts-view, .ts-bar { animation: none; transition: none; } }
#tdBody { display: grid; gap: 20px; align-content: start; min-width: 0; }
.ptable td .status { white-space: normal; }

/* ======================================================================
   HR dashboard — gradient mesh, glass surfaces, micro-animations (scoped to .hrd)
   ====================================================================== */
.hrd, .content { --glass-bg: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.52)); --glass-bd: rgba(255,255,255,.7); --glass-sh: 0 8px 28px rgba(18,43,69,.10), inset 0 1px 0 rgba(255,255,255,.85);
  --grad: linear-gradient(135deg, #007f86 0%, #1f9fb0 55%, #3a7bd5 100%); }
.hrd { position: relative; overflow-x: clip; display: grid; gap: 22px; isolation: isolate; }
/* ambient mesh behind the glass */
.hrd::before { content: ""; position: absolute; inset: -40px 0 -40px; z-index: -1; pointer-events: none; border-radius: 24px;
  background: radial-gradient(520px 320px at 8% 22%, rgba(0,127,134,.20), transparent 70%), radial-gradient(560px 360px at 92% 8%, rgba(58,123,213,.18), transparent 70%), radial-gradient(520px 380px at 70% 92%, rgba(43,196,196,.16), transparent 70%), radial-gradient(420px 300px at 18% 96%, rgba(18,43,69,.10), transparent 70%); }

/* hero */
.hrd-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 34px 36px; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, #0b1f33 0%, #122b45 38%, #0d5c6e 74%, #0a8c92 100%); box-shadow: 0 18px 44px rgba(11,31,51,.28), inset 0 1px 0 rgba(255,255,255,.14); animation: hrd-rise .6s cubic-bezier(.2,.7,.2,1) both; }
.hrd-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 40%, rgba(255,255,255,.08) 50%, transparent 60%); transform: translateX(-120%); animation: hrd-sheen 5.5s ease-in-out 1.2s infinite; }
.hrd-orb { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; pointer-events: none; }
.hrd-orb--a { width: 280px; height: 280px; right: -60px; top: -90px; background: #2bc4c4; animation: hrd-drift 14s ease-in-out infinite alternate; }
.hrd-orb--b { width: 220px; height: 220px; left: 30%; bottom: -120px; background: #3a7bd5; animation: hrd-drift 17s ease-in-out -4s infinite alternate-reverse; }
.hrd-orb--c { width: 160px; height: 160px; left: -40px; top: -50px; background: #0a8c92; animation: hrd-drift 12s ease-in-out -2s infinite alternate; }
.hrd-hero__txt { position: relative; z-index: 1; display: grid; gap: 10px; }
.hrd-hero__hi { margin: 0; font-size: 13.5px; color: rgba(255,255,255,.78); }
.hrd-hero h2 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 750; letter-spacing: -.015em; max-width: 18ch; }
.hrd-hero__sub { margin: 0; color: rgba(255,255,255,.82); font-size: 14.5px; max-width: 52ch; }
.hrd-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hrd-btn { display: inline-flex; align-items: center; padding: 10px 16px; border-radius: 999px; font-weight: 600; font-size: 13.5px; color: #fff; text-decoration: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease; }
.hrd-btn:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); text-decoration: none; box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.hrd-btn--solid { background: #fff; color: #0b3b4d; border-color: #fff; }
.hrd-btn--solid:hover { background: #e7f4f3; }
.hrd-hero__stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hrd-glass { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.26); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 26px rgba(0,0,0,.18); }
.hrd-stat { display: grid; gap: 4px; padding: 16px 14px; border-radius: 16px; color: #fff; text-decoration: none; animation: hrd-rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.25s + var(--i) * 90ms); transition: transform .2s ease, background-color .2s ease; }
.hrd-stat:hover { transform: translateY(-4px); background: rgba(255,255,255,.2); text-decoration: none; }
.hrd-stat__n { font-size: 38px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hrd-stat__l { font-size: 12.5px; color: rgba(255,255,255,.82); line-height: 1.3; }

/* KPI cards */
.content .kpi { position: relative; overflow: hidden; border: 1px solid var(--glass-bd); background: var(--glass-bg); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--glass-sh); border-radius: 16px; padding: 18px; transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease; animation: hrd-rise .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.35s + var(--i, 0) * 60ms); }
.content .kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); opacity: .85; }
.content .kpi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-130%); transition: transform .7s ease; pointer-events: none; }
.content .kpi:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(18,43,69,.16), inset 0 1px 0 rgba(255,255,255,.9); text-decoration: none; }
.content .kpi:hover::after { transform: translateX(130%); }
.content .kpi__ic { width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; box-shadow: 0 6px 14px rgba(0,127,134,.35); transition: transform .25s ease; }
.content .kpi:hover .kpi__ic { transform: scale(1.08) rotate(-4deg); }
.content .kpi__value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #122b45, #007f86); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.content .kpi__label { font-weight: 600; }

/* panels */
.content .panel { background: var(--glass-bg); border: 1px solid var(--glass-bd); border-radius: 18px; backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--glass-sh); overflow: hidden; animation: hrd-rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: .5s; }
.content .panel__head { border-bottom: 1px solid rgba(18,43,69,.08); background: linear-gradient(90deg, rgba(0,127,134,.07), transparent 60%); }
.content .panel__head h2 { letter-spacing: -.01em; }
.content .two-col { gap: 22px; }
.content .pending-list li { border-bottom-color: rgba(18,43,69,.07); transition: background-color .18s ease, padding-left .18s ease; }
.content .pending-list li:hover { background: rgba(0,127,134,.06); padding-left: 26px; }
.content .tag { background: rgba(0,127,134,.1); color: var(--brand); border: 1px solid rgba(0,127,134,.2); }
.content .btn--secondary { background: rgba(255,255,255,.7); backdrop-filter: blur(6px); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.content .btn--secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(18,43,69,.12); border-color: var(--brand); }
.content .btn--primary { background: var(--grad); border-color: transparent; box-shadow: 0 8px 18px rgba(0,127,134,.3); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.content .btn--primary:hover { transform: translateY(-2px); filter: brightness(1.06); box-shadow: 0 12px 24px rgba(0,127,134,.38); }

/* distribution + pipeline */
.content .dist a { transition: background-color .18s ease, transform .18s ease; }
.content .dist a:hover { background: rgba(0,127,134,.07); transform: translateX(3px); }
.content .dist__b { height: 12px; background: rgba(18,43,69,.08); box-shadow: inset 0 1px 2px rgba(18,43,69,.1); }
.content .dist__b span { background: linear-gradient(90deg, #007f86, #2bc4c4); box-shadow: 0 0 12px rgba(43,196,196,.55); }
.content .pipeline a { border: 1px solid transparent; transition: transform .22s cubic-bezier(.2,.7,.2,1), background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.content .pipeline a:hover { background: rgba(255,255,255,.7); border-color: rgba(0,127,134,.25); transform: translateY(-5px); box-shadow: 0 12px 24px rgba(18,43,69,.12); }
.content .pipeline__n { background: linear-gradient(135deg, #122b45, #007f86); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-weight: 800; }
.content .pipeline__bar { width: 30px; background: rgba(18,43,69,.07); box-shadow: inset 0 1px 3px rgba(18,43,69,.12); border-radius: 9px; }
.content .pipeline__bar span { background: linear-gradient(180deg, #2bc4c4, #007f86 60%, #0d5c6e); box-shadow: 0 0 14px rgba(43,196,196,.6); transition: height 1s cubic-bezier(.2,.7,.2,1); }
.content .rtable tbody tr { transition: background-color .15s ease, box-shadow .15s ease; }
.content .rtable tbody tr:hover { background: rgba(0,127,134,.07); }
.content .kpi--skel { background: linear-gradient(100deg, rgba(255,255,255,.5) 30%, rgba(255,255,255,.9) 50%, rgba(255,255,255,.5) 70%) #e9eef3 0 0 / 200% 100%; animation: hrd-shimmer 1.2s linear infinite; border-radius: 16px; min-height: 92px; }

@keyframes hrd-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes hrd-sheen { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes hrd-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 28px, 0) scale(1.18); } }
@keyframes hrd-shimmer { to { background-position: -200% 0; } }

@media (max-width: 1000px) { .hrd-hero { grid-template-columns: 1fr; padding: 26px 22px; } .hrd-hero h2 { font-size: 25px; } }
@media (max-width: 520px) { .hrd-hero__stats { grid-template-columns: 1fr; } .hrd-stat { grid-template-columns: auto 1fr; align-items: center; gap: 12px; } .hrd-stat__n { font-size: 30px; } }
@media (prefers-reduced-motion: reduce) { .hrd-hero, .hrd-stat, .content .kpi, .content .panel { animation: none; } .hrd-orb, .hrd-hero::after, .content .kpi--skel { animation: none; } .content .kpi:hover, .hrd-btn:hover, .hrd-stat:hover { transform: none; } }
@supports not (backdrop-filter: blur(1px)) { .content .kpi, .content .panel { background: #fff; } }

/* HR dashboard layout v2 — horizontal pipeline strip, balanced main columns */
.hrd-flowp .panel__head { padding: 12px 20px; }
.hrd-flow { list-style: none; margin: 0; padding: 6px 10px 12px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.hrd-flow li { position: relative; animation: hrd-rise .5s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(.45s + var(--i) * 50ms); }
.hrd-flow li:not(:last-child)::after { content: ""; position: absolute; right: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(180deg, transparent, rgba(18,43,69,.14), transparent); }
.hrd-flow a { display: grid; gap: 4px; padding: 10px 14px; border-radius: 14px; color: inherit; text-decoration: none; border: 1px solid transparent; transition: transform .2s cubic-bezier(.2,.7,.2,1), background-color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.hrd-flow a:hover { background: rgba(255,255,255,.75); border-color: rgba(0,127,134,.25); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(18,43,69,.12); text-decoration: none; }
.hrd-flow__l { font-size: 12px; font-weight: 600; color: var(--ink-2); line-height: 1.25; min-height: 30px; }
.hrd-flow__l small { font-weight: 400; color: var(--ink-3); }
.hrd-flow__n { font-size: 26px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #122b45, #007f86); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hrd-flow__bar { display: block; height: 6px; border-radius: 4px; background: rgba(18,43,69,.08); overflow: hidden; }
.hrd-flow__bar span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #007f86, #2bc4c4); box-shadow: 0 0 10px rgba(43,196,196,.55); transition: width 1s cubic-bezier(.2,.7,.2,1); }
.content .hrd-main { align-items: stretch; }
.hrd-stack { display: grid; gap: 22px; grid-template-rows: auto 1fr; min-width: 0; }
.hrd-stack > .panel { min-width: 0; }
.hrd-stack > .panel:last-child .kv { align-content: start; }
@media (max-width: 1100px) { .hrd-flow { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 6px; } .hrd-flow li:nth-child(4n)::after { display: none; } }
@media (max-width: 520px) { .hrd-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hrd-flow li:nth-child(2n)::after { display: none; } .hrd-flow li:nth-child(4n)::after { display: block; } .content .hrd-main { gap: 22px; } }
@media (prefers-reduced-motion: reduce) { .hrd-flow li { animation: none; } }

/* ======================================================================
   Global polish: gradient buttons + gradient page background
   ====================================================================== */
:root { --grad-brand: linear-gradient(135deg, #007f86 0%, #1c9aab 55%, #3a7bd5 100%); --grad-brand-hover: linear-gradient(135deg, #006a70 0%, #178a9b 55%, #2f69bd 100%); }
html { background: #eaf3f6; }
body { background: radial-gradient(900px 520px at 100% 0%, rgba(58,123,213,.13), transparent 70%), radial-gradient(800px 560px at 0% 100%, rgba(43,196,196,.16), transparent 70%), linear-gradient(165deg, #ffffff 0%, #f3f8fa 40%, #dcebf1 100%); background-attachment: fixed; }
.main, .content { background: transparent; }
.topbar { background: rgba(255,255,255,.78); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: rgba(18,43,69,.08); }

.btn { transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background-position .3s ease, border-color .18s ease, color .18s ease; }
.btn--primary { background: var(--grad-brand); background-size: 140% 100%; background-position: 0 0; border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(0,127,134,.28), inset 0 1px 0 rgba(255,255,255,.22); }
.btn--primary:hover:not([disabled]) { background: var(--grad-brand); background-size: 140% 100%; background-position: 100% 0; filter: brightness(1.05) saturate(1.1); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,127,134,.36), inset 0 1px 0 rgba(255,255,255,.28); }
.btn--secondary { background: linear-gradient(180deg, #ffffff 0%, #e9f4f5 100%); border-color: rgba(0,127,134,.28); color: #0d4f5a; box-shadow: 0 2px 6px rgba(18,43,69,.06), inset 0 1px 0 #fff; }
.btn--secondary:hover:not([disabled]) { background: linear-gradient(180deg, #f4fbfb 0%, #d4eced 100%); border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(18,43,69,.12), inset 0 1px 0 #fff; }
.btn--ghost:hover:not([disabled]) { background: linear-gradient(135deg, rgba(0,127,134,.10), rgba(58,123,213,.10)); color: #0d4f5a; }
.btn--danger { background: linear-gradient(135deg, #c83d4d 0%, #dc5566 100%); box-shadow: 0 6px 16px rgba(200,61,77,.28), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--danger:hover:not([disabled]) { background: linear-gradient(135deg, #b5303f 0%, #cc4658 100%); transform: translateY(-2px); box-shadow: 0 12px 22px rgba(200,61,77,.34); }
.btn--danger-ghost:hover:not([disabled]) { background: linear-gradient(135deg, rgba(200,61,77,.10), rgba(220,85,102,.06)); }
.btn:active:not([disabled]) { transform: translateY(0) scale(.985); }
.btn[disabled]:not(.is-loading) { background: #e8ecf1; box-shadow: none; transform: none; filter: none; }
.btn.btn--secondary.is-loading[disabled] { background: linear-gradient(180deg, #ffffff 0%, #e9f4f5 100%); }
.hrd .btn--primary { background: var(--grad-brand); }
.hrd .btn--secondary { background: linear-gradient(180deg, #ffffff 0%, #e9f4f5 100%); }
.link-btn:hover { background: linear-gradient(135deg, rgba(0,127,134,.10), rgba(58,123,213,.08)); border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none !important; } }

/* hero is text + actions only now (stat tiles removed — the KPI cards below are the single source of numbers) */
.hrd-hero { grid-template-columns: minmax(0, 1fr); padding: 28px 34px; }
.hrd-hero h2 { max-width: 28ch; font-size: 28px; }
@media (max-width: 1000px) { .hrd-hero { padding: 22px 20px; } .hrd-hero h2 { font-size: 23px; } }


/* ======================================================================
   One stat-card style everywhere (identical to the dashboard) + search-first list pages
   ====================================================================== */
.kpis .kpi { position: relative; overflow: hidden; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.7);
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.52)); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 8px 28px rgba(18,43,69,.10), inset 0 1px 0 rgba(255,255,255,.85); transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease; }
.kpis .kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad-brand); opacity: .85; }
.kpis .kpi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-130%); transition: transform .7s ease; pointer-events: none; }
.kpis .kpi:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(18,43,69,.16), inset 0 1px 0 rgba(255,255,255,.9); text-decoration: none; }
.kpis .kpi:hover::after { transform: translateX(130%); }
.kpis .kpi__ic { width: 44px; height: 44px; border-radius: 13px; background: var(--grad-brand); color: #fff; box-shadow: 0 6px 14px rgba(0,127,134,.35); display: grid; place-items: center; flex: none; transition: transform .25s ease; }
.kpis .kpi:hover .kpi__ic { transform: scale(1.08) rotate(-4deg); }
.kpis .kpi__label { font-weight: 600; min-height: 0; }
.kpis .kpi__value { font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #122b45, #007f86); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.kpis .kpi--skel { min-height: 120px; }
.kpis .kpi.is-on { box-shadow: 0 0 0 2px var(--brand), 0 12px 26px rgba(0,127,134,.2); }
@media (prefers-reduced-motion: reduce) { .kpis .kpi:hover, .kpis .kpi:hover .kpi__ic { transform: none; } .kpis .kpi::after { display: none; } }

/* search-first toolbar: search + filter icon sit above the stats */
.toolbar--top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar--top .search { flex: 1 1 320px; max-width: 640px; }
.toolbar--top .btn--icon { width: var(--control-h); padding: 0; flex: none; }
.toolbar__count { margin-left: auto; }
.chips--top { padding: 0; }
.filter-panel.is-open { margin-bottom: 0; }
.panel--table { overflow: hidden; }
.panel--table .table-wrap { border-top: 0; }
.toolbar--top { border: 0; padding: 0; margin: 0; background: transparent; }
.content > .filter-panel { margin-top: -24px; transition: grid-template-rows .2s ease-out, margin-top .2s ease-out; }
.content > .filter-panel.is-open { margin-top: 0; background: rgba(255,255,255,.8); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); }
.content > .chips--top:empty { display: none; }
.toolbar--top { margin-bottom: -14px; }

/* candidate profile: breathing room around the avatar row inside the overview panel */
.cand-id { padding: 20px 20px 8px; }

/* ======================================================================
   Unified look: Department Manager pages share the HR glass/gradient system
   ====================================================================== */
.content .panel { animation-delay: .05s; }
.hrd .panel { animation-delay: .5s; }
.content .table-wrap, .content .panel__head { background-color: transparent; }
.content .welcome, .content .metric { background: var(--glass-bg); border: 1px solid var(--glass-bd); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: var(--glass-sh); border-radius: 18px; }
.content .metric { border-top: 3px solid var(--line-2); transition: transform .22s cubic-bezier(.2,.7,.2,1), box-shadow .22s ease; }
.content .metric:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(18,43,69,.16), inset 0 1px 0 rgba(255,255,255,.9); text-decoration: none; }
.content .metric__value { font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #122b45, #007f86); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ======================================================================
   Vendors module + HR-05A dispatch
   ====================================================================== */
.vbody { display: grid; gap: 22px; align-content: start; min-width: 0; }
.vtabs, .vptabs { margin-top: 0; }
.vtabs .tab, .vptabs .tab { transition: color .18s ease, border-color .18s ease, background-color .18s ease; text-decoration: none; }
.tab__n--hot { background: var(--err, #c83d4d); color: #fff; }
.chip--ro { display: inline-block; padding: 2px 9px; margin: 1px 2px 1px 0; border-radius: 999px; font-size: 11.5px; background: var(--brand-tint); color: var(--brand); border: 1px solid rgba(0,127,134,.18); white-space: nowrap; }
.vhead { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; flex-wrap: wrap; }
.vhead__id { display: flex; align-items: center; gap: 16px; min-width: 0; }
.vhead h2 { margin: 0 0 4px; font-size: 20px; }
.vhead__cats { margin-top: 8px; }
.link-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.vnotif { list-style: none; margin: 0; padding: 0; }
.vnotif__i { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); transition: background-color .15s ease; }
.vnotif__i:hover { background: rgba(0,127,134,.05); }
.vnotif__i.is-unread { border-left: 3px solid var(--brand); background: rgba(0,127,134,.04); }
.vnotif__b p { margin: 6px 0; }
.tag--new { background: var(--brand); color: #fff; border-color: transparent; }
.selcount { font-size: 13px; font-weight: 600; color: var(--brand); margin-left: auto; }
.selcount.bump { animation: vbump .22s ease-out; }
@keyframes vbump { from { transform: scale(1.18); } to { transform: none; } }
.rtable tr.is-selected { background: rgba(0,127,134,.08); }
.issues { margin: 4px 0 0; padding-left: 16px; font-size: 11.5px; color: var(--ink-2); }
.kv--cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 28px; padding: 6px 20px; }
.kv--cols .kv__r { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.kv--cols dt { color: var(--ink-3); font-size: 12px; } .kv--cols dd { margin: 0; font-weight: 500; }
.dsteps { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.dsteps li { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); color: var(--ink-3); font-weight: 600; font-size: 13px; transition: all .2s ease; }
.dsteps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--neutral-bg); font-size: 12px; }
.dsteps li.is-on { color: var(--brand); border-color: var(--brand); background: #fff; } .dsteps li.is-on span { background: var(--brand); color: #fff; }
.dsteps li.is-done { color: #16845b; } .dsteps li.is-done span { background: #16845b; color: #fff; }
.dstep { display: grid; gap: 22px; animation: page-in .22s ease-out; }
.dispatched { text-align: center; padding: 34px 24px; display: grid; gap: 14px; justify-items: center; animation: vpop .35s cubic-bezier(.2,.7,.2,1); }
.dispatched .kv, .dispatched .table-wrap { width: 100%; max-width: 640px; text-align: left; }
.dispatched__ic { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: linear-gradient(135deg, #16845b, #2bc4a0); box-shadow: 0 10px 24px rgba(22,132,91,.35); }
@keyframes vpop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
/* workflow progress (HR-05) */
.wfp { list-style: none; margin: 0; padding: 18px 20px 6px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.wfp__s { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.55); border: 1px solid var(--line); }
.wfp__n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--neutral-bg); color: var(--ink-2); }
.wfp__s--completed .wfp__n { background: #16845b; color: #fff; } .wfp__s--in-progress .wfp__n { background: var(--brand); color: #fff; }
.wfp__s--returned .wfp__n, .wfp__s--rejected .wfp__n { background: #c83d4d; color: #fff; } .wfp__s--pending .wfp__n { background: #e0a030; color: #fff; }
.wfp__s strong { font-size: 12.5px; display: block; margin-bottom: 4px; line-height: 1.25; }
@media (max-width: 1100px) { .wfp { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .wfp { grid-template-columns: 1fr; } .vnotif__i { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .dstep, .dispatched, .selcount.bump { animation: none; } .dsteps li, .vnotif__i { transition: none; } }

/* Sidebar gradient (HR and Department Manager) */
.sidebar { background: radial-gradient(420px 320px at 0% 0%, rgba(43,196,196,.30), transparent 70%), radial-gradient(380px 360px at 100% 100%, rgba(58,123,213,.35), transparent 70%), linear-gradient(170deg, #0b1f33 0%, #122b45 40%, #0d5c6e 85%, #0a8c92 100%); box-shadow: 4px 0 24px rgba(11,31,51,.18); }
.nav a[aria-current="page"], .nav a.is-active { background: linear-gradient(90deg, rgba(43,196,196,.30), rgba(255,255,255,.08)); box-shadow: inset 3px 0 0 #2bc4c4; }
.nav a, .nav__btn { transition: background-color .18s ease, transform .18s ease; }
.nav a:hover, .nav__btn:hover { background: rgba(255,255,255,.10); transform: translateX(2px); }

/* ===== Semantic colour variation (HR dashboard) ===== */
.chip--bad { background: var(--bad-bg); color: var(--bad); font-weight: 600; padding: 2px 10px; border-radius: 999px; font-size: 12px; }
/* KPI tones: info / attention / success / teal / violet / orange */
.content .kpi--t0 { --kc1: #1f5fbf; --kc2: #4a90e2; --kc-sh: rgba(31,95,191,.35); }
.content .kpi--t1 { --kc1: #c77a0a; --kc2: #f2b134; --kc-sh: rgba(217,138,16,.38); }
.content .kpi--t2 { --kc1: #12724c; --kc2: #34b983; --kc-sh: rgba(22,132,91,.35); }
.content .kpi--t3 { --kc1: #007f86; --kc2: #2bc4c4; --kc-sh: rgba(0,127,134,.35); }
.content .kpi--t4 { --kc1: #5b3fb3; --kc2: #8f73e6; --kc-sh: rgba(91,63,179,.35); }
.content .kpi--t5 { --kc1: #c4491f; --kc2: #f08a52; --kc-sh: rgba(196,73,31,.35); }
.content .kpi[class*="kpi--t"]::before { background: linear-gradient(180deg, var(--kc2), var(--kc1)); }
.content .kpi[class*="kpi--t"] .kpi__ic { background: linear-gradient(135deg, var(--kc1), var(--kc2)); box-shadow: 0 6px 14px var(--kc-sh); }
.content .kpi[class*="kpi--t"] .kpi__value { background: linear-gradient(135deg, #122b45, var(--kc1)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.content .kpi--t1 .kpi__sub { color: #a8650a; font-weight: 600; }
/* Request status distribution bars */
.content .dist__b .dist__s { background: linear-gradient(90deg, #007f86, #2bc4c4); }
.content .dist__s--submitted { background: linear-gradient(90deg, #1f5fbf, #4a90e2); box-shadow: 0 0 12px rgba(74,144,226,.5); }
.content .dist__s--inreview, .content .dist__s--returnedforcorrection, .content .dist__s--cancellationrequested { background: linear-gradient(90deg, #d98a10, #f2b134); box-shadow: 0 0 12px rgba(242,177,52,.55); }
.content .dist__s--approved, .content .dist__s--completed { background: linear-gradient(90deg, #16845b, #34b983); box-shadow: 0 0 12px rgba(52,185,131,.5); }
.content .dist__s--rejected, .content .dist__s--cancelled { background: linear-gradient(90deg, #c83d4d, #ec6b78); box-shadow: 0 0 12px rgba(236,107,120,.5); }
.content .dist__s--draft, .content .dist__s--closed { background: linear-gradient(90deg, #64748b, #9aa7b8); box-shadow: none; }
/* Pipeline stage tones */
.hrd-flow--t0 { --fc1: #1f5fbf; --fc2: #4a90e2; } .hrd-flow--t1 { --fc1: #5b3fb3; --fc2: #8f73e6; } .hrd-flow--t2 { --fc1: #c77a0a; --fc2: #f2b134; }
.hrd-flow--t3 { --fc1: #007f86; --fc2: #2bc4c4; } .hrd-flow--t4 { --fc1: #c4491f; --fc2: #f08a52; } .hrd-flow--t5 { --fc1: #16845b; --fc2: #34b983; }
.hrd-flow--t6 { --fc1: #a23a8f; --fc2: #d46bc0; } .hrd-flow--t7 { --fc1: #12724c; --fc2: #34b983; }
.hrd-flow li[class*="hrd-flow--t"] .hrd-flow__n { background: linear-gradient(135deg, #122b45, var(--fc1)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hrd-flow li[class*="hrd-flow--t"] .hrd-flow__bar span { background: linear-gradient(90deg, var(--fc1), var(--fc2)); box-shadow: 0 0 10px var(--fc2); }
/* Pending action tones */
.content .pending-list li { border-left: 4px solid transparent; }
.content .pending-list .pl--warn { border-left-color: #f2b134; background: linear-gradient(90deg, rgba(242,177,52,.10), transparent 40%); }
.content .pending-list .pl--bad { border-left-color: #ec6b78; background: linear-gradient(90deg, rgba(200,61,77,.09), transparent 40%); }
.content .pending-list .pl--ok { border-left-color: #34b983; background: linear-gradient(90deg, rgba(22,132,91,.09), transparent 40%); }
.content .pending-list .pl--info { border-left-color: #4a90e2; background: linear-gradient(90deg, rgba(31,95,191,.08), transparent 40%); }

/* Colour variation for every KPI/stat row (HR + Manager pages) */
.content .kpis .kpi:nth-child(6n+1) { --kc1: #1f5fbf; --kc2: #4a90e2; --kc-sh: rgba(31,95,191,.35); }
.content .kpis .kpi:nth-child(6n+2) { --kc1: #c77a0a; --kc2: #f2b134; --kc-sh: rgba(217,138,16,.38); }
.content .kpis .kpi:nth-child(6n+3) { --kc1: #12724c; --kc2: #34b983; --kc-sh: rgba(22,132,91,.35); }
.content .kpis .kpi:nth-child(6n+4) { --kc1: #007f86; --kc2: #2bc4c4; --kc-sh: rgba(0,127,134,.35); }
.content .kpis .kpi:nth-child(6n+5) { --kc1: #5b3fb3; --kc2: #8f73e6; --kc-sh: rgba(91,63,179,.35); }
.content .kpis .kpi:nth-child(6n+6) { --kc1: #c4491f; --kc2: #f08a52; --kc-sh: rgba(196,73,31,.35); }
.content .kpis .kpi::before { background: linear-gradient(180deg, var(--kc2, #2bc4c4), var(--kc1, #007f86)); }
.content .kpis .kpi__ic { background: linear-gradient(135deg, var(--kc1, #007f86), var(--kc2, #2bc4c4)); box-shadow: 0 6px 14px var(--kc-sh, rgba(0,127,134,.35)); }
.content .kpis .kpi__value { background: linear-gradient(135deg, #122b45, var(--kc1, #007f86)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.content .kpis .kpi.is-on { box-shadow: 0 0 0 2px var(--kc1, var(--brand)), 0 12px 26px var(--kc-sh, rgba(0,127,134,.2)); }
/* Pipeline counters on the Candidates page */
.content .pipeline a:nth-child(6n+1) { --pc1:#1f5fbf; --pc2:#4a90e2; } .content .pipeline a:nth-child(6n+2) { --pc1:#5b3fb3; --pc2:#8f73e6; }
.content .pipeline a:nth-child(6n+3) { --pc1:#c77a0a; --pc2:#f2b134; } .content .pipeline a:nth-child(6n+4) { --pc1:#007f86; --pc2:#2bc4c4; }
.content .pipeline a:nth-child(6n+5) { --pc1:#c4491f; --pc2:#f08a52; } .content .pipeline a:nth-child(6n+6) { --pc1:#16845b; --pc2:#34b983; }
.content .pipeline__n { background: linear-gradient(135deg, #122b45, var(--pc1, #007f86)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.content .pipeline__bar span { background: linear-gradient(180deg, var(--pc2, #2bc4c4), var(--pc1, #007f86)); box-shadow: 0 0 14px var(--pc2, #2bc4c4); }

/* remove ambient gradient box behind dashboard stats */
.hrd::before { display: none; content: none; background: none; }

/* Workflow progress: compact, aligned cards */
.wfp { gap: 8px; padding: 16px 16px 8px; }
.wfp__s { display: grid; grid-template-columns: 24px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 8px; row-gap: 8px; align-items: start; padding: 10px 8px; min-width: 0; }
.wfp__n { width: 24px; height: 24px; font-size: 11.5px; grid-row: 1; }
.wfp__t { grid-column: 2; grid-row: 1; margin: 0; font-size: 11.5px; line-height: 1.25; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.wfp__p { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
.wfp__p .status, .wfp__p .pill, .wfp__p > * { font-size: 10.5px; padding: 2px 8px; white-space: nowrap; max-width: 100%; }
@media (max-width: 1100px) { .wfp__t { min-height: 0; } }
.rv-row--master { background: var(--brand-tint); border-radius: 10px; padding: 10px 12px; margin-bottom: 4px; border-bottom: 0; }
.acc__m { width: 190px; height: 34px; margin-left: 10px; font-weight: 500; font-size: 13px; }
details.acc > summary .acc__s { margin-left: auto; }
@media (max-width: 640px) { details.acc > summary { flex-wrap: wrap; } .acc__m { width: 100%; margin-left: 0; order: 3; } }

/* CV preview (looks like a document page) */
.cvdoc { margin-top: 12px; background: #fff; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 6px 20px rgba(18,43,69,.12); padding: 28px 34px; max-width: 820px; font-size: 13px; line-height: 1.5; color: #1d2733; max-height: 560px; overflow: auto; }
.cvdoc h3 { margin: 0; font-size: 24px; color: #122b45; } .cvdoc__t { margin: 2px 0 6px; color: #007f86; font-size: 15px; } .cvdoc__c { margin: 0 0 8px; color: #556070; font-size: 12px; }
.cvdoc h4 { margin: 16px 0 6px; padding-bottom: 3px; border-bottom: 2px solid #007f86; color: #007f86; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.cvdoc ul { margin: 4px 0 0; padding-left: 18px; } .cvdoc__cols { columns: 2; column-gap: 28px; } .cvdoc__job { margin-bottom: 10px; }
.cvdoc__row { display: flex; justify-content: space-between; gap: 12px; } .cvdoc__row span { color: #556070; font-size: 12px; white-space: nowrap; } .cvdoc em { color: #556070; }
.cvdoc__n { margin-top: 18px; font-size: 11px; color: #8593a6; font-style: italic; }
@media (max-width: 640px) { .cvdoc { padding: 18px; } .cvdoc__cols { columns: 1; } }

/* HR requirements table: single-line headers and cells, everything left-aligned */
.hrtable th, .hrtable td { text-align: left; white-space: nowrap; vertical-align: middle; }
.hrtable th .th-sort { white-space: nowrap; }
.hrtable td[data-label="Position"] { white-space: nowrap; min-width: 0; }
.hrtable td:first-child, .hrtable td:nth-child(2) { white-space: nowrap; }
.hrtable td.act, .hrtable th:last-child { text-align: left; }
.hrtable .row-actions { flex-direction: row; align-items: center; justify-content: flex-start; }
#dSum .acc__hint { margin-left: auto; margin-right: 8px; font-weight: 400; }
#dSum[open] .acc__hint { display: none; }

/* ===== All tables: single-line headings and cells, everything left-aligned (desktop/tablet) ===== */
@media (min-width: 641px) {
  .rtable th, .rtable td, .dtable th, .dtable td, .ptable th, .ptable td, .ctable th, .ctable td, .table-wrap table th, .table-wrap table td,
  td.num, th.num, .rtable td.act, .rtable th:last-child { text-align: left; white-space: nowrap; }
  .table-wrap table th .th-sort, .table-wrap table th button { white-space: nowrap; text-align: left; }
  .table-wrap table { width: 100%; }
  .table-wrap table .row-actions { flex-direction: row; justify-content: flex-start; align-items: center; flex-wrap: nowrap; }
  .table-wrap table td .status, .table-wrap table td .chip { white-space: nowrap; }
  .ptable td:first-child, .ptable td:nth-child(2), .hrtable td[data-label="Position"] { white-space: nowrap; min-width: 0; }
}

/* Vendor selection sections */
.vsum__c { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.vsum__c span { padding: 4px 10px; border-radius: 999px; background: var(--neutral-bg); font-weight: 600; white-space: nowrap; }
.vsum__c #dCount { background: var(--brand-tint); color: var(--brand); }
.vsec__n { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--neutral-bg); color: var(--ink-2); font-size: 12px; font-weight: 700; vertical-align: middle; }
.content .vsec--assigned { background: linear-gradient(180deg, #e8f6f6, #f2fafa); border-color: #b9e0e0; }
.content .vsec--assigned .panel__head { background: linear-gradient(90deg, rgba(0,127,134,.14), transparent 70%); }
.content .vsec--unavail { background: linear-gradient(180deg, #fbf1f1, #fdf7f7); border-color: #efc4c8; }
.content .vsec--unavail .panel__head { background: linear-gradient(90deg, rgba(200,61,77,.10), transparent 70%); }
.vtable .vwarn { margin: 4px 0 0; padding-left: 16px; font-size: 12px; color: #a8650a; white-space: normal; max-width: 340px; }
.vtable .vwarn--bad { color: var(--bad); max-width: 380px; }

/* HR review: section completion + validation */
.rv-complete { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.ok-text { color: var(--ok); } .m-err { color: var(--bad); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-2); } .btn--ghost:hover:not([disabled]) { background: var(--neutral-bg); }
#rvOutstanding .msgs { margin: 6px 0 0; padding-left: 18px; font-size: 13px; }

/* DoA stage */
.callout--ok { background: var(--ok-bg); border-color: #c2e3d1; color: #0d4f36; }
.doa-banner { margin-bottom: 4px; }
#rvAllocate.is-locked, #rvAllocate[disabled] { opacity: .55; filter: grayscale(.4); box-shadow: none; cursor: not-allowed; }
#rvAllocate:not([disabled]) { box-shadow: 0 10px 24px rgba(0,127,134,.4); }
.rv-clarify { margin-left: auto; }
.doa-chip { align-self: center; white-space: nowrap; padding: 6px 12px; font-size: 13px; font-weight: 600; }

/* ===== Interview details page ===== */
.ivpage { display: grid; gap: 18px; }
.ivh { padding: 18px 22px; }
.ivh__top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.ivh__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 24px; margin: 0; }
.ivh__facts dt { font-size: 12px; color: var(--ink-3); } .ivh__facts dd { margin: 2px 0 0; font-weight: 600; }
.ivgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.ivc + .ivc { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ivc h3 { margin: 0 0 8px; font-size: 15px; }
.ivav { display: grid; gap: 6px; margin: 10px 0 14px; } .ivav__r { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; gap: 10px; align-items: center; }
.ivdone { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; background: var(--ok-bg); color: #0d4f36; font-weight: 600; }
.ivact { margin-top: 16px; }
.ivlock { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--bg); color: var(--ink-2); } .ivlock p { margin: 0; }
.oc-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0 14px; }
.oc-opt { position: relative; display: grid; gap: 6px; padding: 14px 14px 14px 40px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.oc-opt input { position: absolute; left: 14px; top: 16px; width: 18px; height: 18px; accent-color: var(--brand); }
.oc-opt__t { font-weight: 700; } .oc-opt__d { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.oc-opt:hover { box-shadow: 0 6px 16px rgba(18,43,69,.10); }
.oc-opt--ok.is-on { border-color: #16845b; background: var(--ok-bg); } .oc-opt--warn.is-on { border-color: #d98a10; background: var(--warn-bg); } .oc-opt--bad.is-on { border-color: #c83d4d; background: var(--bad-bg); }
.oc-opt--ok .oc-opt__t { color: #0d6b48; } .oc-opt--warn .oc-opt__t { color: #a8650a; } .oc-opt--bad .oc-opt__t { color: #a82d3b; }
.ocsum { padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); } .ocsum p { margin: 6px 0; }
.ocsum--ok { background: var(--ok-bg); border-color: #c2e3d1; } .ocsum--warn { background: var(--warn-bg); border-color: #f0d9a8; } .ocsum--bad { background: var(--bad-bg); border-color: #f1c5c0; }
.ocsum__h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ocfollow { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; } .ocfollow h4 { margin: 0 0 4px; }
.ivpanel { margin-top: 14px; }
@media (max-width: 900px) { .oc-opts { grid-template-columns: 1fr; } .ivav__r { grid-template-columns: 1fr auto; } .ivav__r select { grid-column: 1 / -1; } }

/* Brand logo + credit (sidebar and sign-in) */
.brand-credit { margin-top: 10px; padding: 10px 12px 2px; text-align: left; color: rgba(255,255,255,.62); border-top: 1px solid rgba(255,255,255,.1); }
.brand-credit span { display: block; font-size: 10px; letter-spacing: .04em; margin-bottom: 6px; }
.brand-credit__logos { display: flex; align-items: center; gap: 14px; }
.brand-credit__logos img { height: 26px; width: auto; display: block; filter: brightness(0) invert(1); opacity: .92; }
.brand-credit__logos img + img { height: 16px; }
.brand-credit small { display: block; margin-top: 7px; font-size: 10px; letter-spacing: .03em; }
