/* Nathana Platform theme on top of Tabler (all assets self-hosted). */

@font-face { font-family: "Inter"; font-weight: 100 900; font-style: normal; font-display: swap; src: url("../vendor/inter/inter-latin-wght-normal.woff2") format("woff2"); }

:root, [data-bs-theme=light] {
  --nh-navy: #172036;      /* sidebar */
  --nh-navy-2: #232d47;    /* sidebar hover */
  --nh-blue: #2563eb;      /* primary / active */
  --nh-blue-rgb: 37, 99, 235;
  --nh-blue-dark: #1d4fc4;
  --nh-blue-soft: #e8f0fe;
  --nh-ink: #1e293b;       /* headings and body text */
  --nh-muted: #64748b;
  --nh-line: #e3e8ef;
  --nh-page: #f5f7fb;
  --nh-side-w: 136px;

  --tblr-primary: var(--nh-blue);
  --tblr-primary-rgb: var(--nh-blue-rgb);
  --tblr-primary-text: var(--nh-blue-dark);
  --tblr-primary-lt: var(--nh-blue-soft);
  --tblr-link-color: var(--nh-blue);
  --tblr-link-color-rgb: var(--nh-blue-rgb);
  --tblr-link-hover-color: var(--nh-blue-dark);
  --tblr-font-sans-serif: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tblr-body-bg: var(--nh-page);
  --tblr-body-color: var(--nh-ink);
  --tblr-secondary: var(--nh-muted);
  --tblr-border-color: var(--nh-line);
  --tblr-border-radius: 8px;
  --tblr-card-border-radius: 12px;
}
body { background: var(--nh-page); color: var(--nh-ink); font-feature-settings: "cv11", "ss01"; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.btn, .btn:hover { text-decoration: none; }
.btn { border-radius: 8px; font-weight: 500; }
.btn-primary { --tblr-btn-bg: var(--nh-blue); --tblr-btn-border-color: var(--nh-blue); --tblr-btn-hover-bg: var(--nh-blue-dark); --tblr-btn-hover-border-color: var(--nh-blue-dark); --tblr-btn-active-bg: #1a45ad; }
.btn-outline-primary { --tblr-btn-color: var(--nh-blue); --tblr-btn-border-color: var(--nh-blue); --tblr-btn-hover-bg: var(--nh-blue); --tblr-btn-hover-border-color: var(--nh-blue); }
.form-check-input:checked { background-color: var(--nh-blue); border-color: var(--nh-blue); }
.form-control, .form-select { border-radius: 8px; border-color: #d9e0ea; }
.form-control:focus, .form-select:focus { border-color: #8db0f5; box-shadow: 0 0 0 .2rem rgba(var(--nh-blue-rgb), .14); }

/* ---- Shell: navy icon sidebar + white top bar --------------------------- */
.nh-shell { min-height: 100vh; }
.nh-side { position: fixed; inset: 0 auto 0 0; width: var(--nh-side-w); background: var(--nh-navy); color: #fff; overflow-y: auto; z-index: 1030;
  display: flex; flex-direction: column; scrollbar-width: thin; scrollbar-color: #3a4560 transparent; }
.nh-logo { display: flex; align-items: center; gap: .55rem; padding: 1.15rem .9rem 1rem; color: #fff !important; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; text-decoration: none !important; }
.nh-logo small { display: block; font-size: .72rem; font-weight: 400; color: #9aa5bd; letter-spacing: 0; }
.nh-mark { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--nh-blue); color: #fff; font-weight: 800; font-size: 1rem; flex: none;
  box-shadow: 6px -4px 0 -2px #5b8cf2; }
.nh-nav { display: flex; flex-direction: column; padding-bottom: 1rem; }
.nh-nav a { display: flex; flex-direction: column; align-items: flex-start; gap: .3rem; padding: .62rem 1.15rem; color: #e6eaf3; font-size: .8rem; font-weight: 500;
  text-decoration: none !important; border-left: 0; }
.nh-nav a .ti { font-size: 1.45rem; line-height: 1; color: #fff; }
.nh-nav a:hover { background: var(--nh-navy-2); color: #fff; }
.nh-nav a.on { background: var(--nh-blue); color: #fff; margin: 0 .35rem; padding-left: .8rem; border-radius: 6px; }
.nh-sep { height: 1px; background: #2c3650; margin: .5rem 1rem; }
.nh-main { margin-left: var(--nh-side-w); min-height: 100vh; }
.nh-top { position: sticky; top: 0; z-index: 1020; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--nh-line); height: 60px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 1.25rem; backdrop-filter: blur(4px); }
.nh-search { position: relative; width: min(430px, 50vw); }
.nh-search .ti { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--nh-ink); font-size: 1.1rem; }
.nh-search input { width: 100%; height: 38px; border: 1px solid #d9e0ea; border-radius: 12px; padding: 0 .9rem 0 2.4rem; font-size: .875rem; background: #fff; color: var(--nh-ink); }
.nh-search input:focus { outline: none; border-color: #8db0f5; box-shadow: 0 0 0 .2rem rgba(var(--nh-blue-rgb), .12); }
.nh-top-right { display: flex; align-items: center; gap: 1.4rem; }
.nh-bell { position: relative; color: var(--nh-ink) !important; font-size: 1.35rem; line-height: 1; text-decoration: none !important; }
.nh-bell span { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #e5484d; color: #fff;
  font-size: .66rem; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }
.nh-user { display: flex; align-items: center; gap: .6rem; color: var(--nh-ink) !important; font-weight: 500; font-size: .9rem; text-decoration: none !important; }
.nh-user .ti { color: var(--nh-muted); }
.nh-avatar { width: 36px; height: 36px; border-radius: 50%; background: #1f3a5f; color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 600; }
.nh-content { padding: 1.4rem 1.4rem 3rem; max-width: 1480px; }

/* Portal (contractors, approvers) */
.nh-portal-top { background: var(--nh-navy); }
.nh-portal-inner { max-width: 1040px; margin: 0 auto; padding: .1rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nh-portal-inner .nh-logo { font-size: 1rem; padding: .8rem 0; }
.nh-portal-links { display: flex; gap: .25rem; }
.nh-portal-links a { color: #e6eaf3; font-size: .85rem; padding: .45rem .7rem; border-radius: 6px; display: inline-flex; gap: .35rem; align-items: center; text-decoration: none !important; }
.nh-portal-links a:hover { background: var(--nh-navy-2); color: #fff; }
.nh-portal-content { max-width: 1040px; margin: 0 auto; }

/* ---- Page header ------------------------------------------------------ */
.top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 1.25rem; }
h1, .top h1, .page-title { font-size: 1.5rem; font-weight: 700; margin: .15rem 0 .2rem; color: var(--nh-ink); letter-spacing: -.01em; }
.backlink, .top > div > a.muted { font-size: .875rem; color: var(--nh-blue) !important; font-weight: 500; display: inline-flex; align-items: center; gap: .25rem; }
.backlink .ti { font-size: 1rem; }
h3 { font-size: .85rem; font-weight: 600; color: var(--nh-muted); margin: 1rem 0 .4rem; }
.muted, small { color: var(--nh-muted); }

/* ---- Cards (".panel" is the app's card) -------------------------------- */
.panel, .card { background: #fff; border: 1px solid var(--nh-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(23, 32, 54, .04); }
.panel { padding: 1.1rem 1.25rem; margin-bottom: 1rem; }
.panel > h2:first-child { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 1.02rem; font-weight: 600;
  margin: -1.1rem -1.25rem 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid var(--nh-line); background: #fbfcfe; border-radius: 12px 12px 0 0; }
.panel > h2:first-child:last-child { border-bottom: 0; margin-bottom: -1.1rem; border-radius: 12px; }
.panel h2 { font-size: 1.02rem; font-weight: 600; }
.panel > table:last-child, .panel > .table-wrap:last-child > table { margin-bottom: -.4rem; }
.panel.table-wrap { overflow-x: auto; }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > .panel { margin-bottom: 0; }
.grid + .panel, .grid + .grid { margin-top: 1rem; }

/* Stat tiles */
.stat { display: flex; gap: .9rem; align-items: center; background: #fff; border: 1px solid var(--nh-line); border-radius: 12px;
  padding: 1rem 1.1rem; color: inherit; text-decoration: none !important; transition: border-color .15s, box-shadow .15s; }
a.stat:hover { border-color: #b9cdf6; box-shadow: 0 2px 8px rgba(var(--nh-blue-rgb), .08); }
.stat .ti { font-size: 1.35rem; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--nh-blue-soft); color: var(--nh-blue); flex: none; }
.stat b { display: block; font-size: 1.65rem; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { color: var(--nh-muted); font-size: .85rem; }
.stat.stat-warn .ti { background: #fff4e5; color: #c46a0a; }

/* Key/value lists */
dl.kv { display: grid; grid-template-columns: 165px 1fr; gap: .45rem 1rem; margin: 0; }
dl.kv dt { color: var(--nh-muted); font-weight: 400; font-size: .875rem; }
dl.kv dd { margin: 0; }

/* Tables */
.panel table:not(.table) { width: 100%; }
.table { margin-bottom: 0; --tblr-table-border-color: #edf1f6; }
.table > :not(caption) > * > * { padding: .62rem .65rem; }
.table thead th { font-size: .78rem; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--nh-ink); background: #f6f8fc; white-space: nowrap; }
.panel > .table:first-child, .panel > h2 + .table { margin-top: -.35rem; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table tfoot td { font-weight: 600; border-top: 2px solid #d5dce7; border-bottom: 0; }
.table-wrap { overflow-x: auto; }

/* Status badges (pill style) */
.badge { font-weight: 600; font-size: .74rem; padding: .32em .7em; border-radius: 999px; background: #eef1f6; color: #55627a; vertical-align: middle; }
.s-active, .s-approved, .s-in_xero, .s-exported, .s-ok, .s-open { background: #dcf3e2; color: #1d7a3a; }
.s-submitted, .s-onboarding, .s-in_progress, .s-issued, .s-invited, .s-pending { background: #e1ebfd; color: #1d4fc4; }
.s-rejected, .s-void, .s-cancelled, .s-bad { background: #fde4e4; color: #b42318; }
.s-draft, .s-candidate, .s-warn { background: #fff1d9; color: #a35a06; }
.s-ended, .s-inactive, .s-closed, .s-filled { background: #eef1f6; color: #55627a; }
.days-bad { color: #b42318; font-weight: 600; }
.days-warn { color: #a35a06; font-weight: 600; }
.tag { display: inline-block; background: #eef3fb; color: #34507e; border-radius: 6px; padding: .05rem .45rem; font-size: .75rem; margin: 2px 3px 2px 0; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
.messages li { padding: .7rem 1rem; border-radius: 10px; margin-bottom: .5rem; background: var(--nh-blue-soft); color: var(--nh-blue-dark); border: 1px solid #c9dafb; }
.messages li.success { background: #e3f6e8; color: #1d7a3a; border-color: #bde6c8; }
.messages li.error { background: #fde8e8; color: #b42318; border-color: #f5c6c1; }
.messages li.warning { background: #fff4e2; color: #a35a06; border-color: #f6d9a8; }

/* Buttons not yet given Bootstrap classes (e.g. allauth pages) */
button:not(.btn):not(.navbar-toggler):not(.btn-close):not(.pl-box):not(.btn-link-remove):not(.status-pill):not(.dropdown-item):not(.ts-control *) { display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-weight: 500;
  font-size: .875rem; padding: .45rem .9rem; border-radius: 8px; border: 1px solid var(--nh-blue); background: var(--nh-blue); color: #fff; cursor: pointer; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
form.inline { display: inline; }
.btn .ti { font-size: 1.05rem; margin-right: .3rem; }
.btn-sm .ti { font-size: .95rem; margin-right: .2rem; }

/* Inputs not rendered through the |bs filter */
input[type=text]:not(.form-control):not(.ts-input *), input[type=email]:not(.form-control), input[type=number]:not(.form-control),
input[type=date]:not(.form-control), input[type=password]:not(.form-control), input[type=search]:not(.form-control):not(.nh-search input),
input[type=tel]:not(.form-control), input[type=url]:not(.form-control), input[type=file]:not(.form-control),
select:not(.form-select):not(.ts-hidden-accessible), textarea:not(.form-control) {
  font: inherit; font-size: .875rem; width: 100%; max-width: 560px; padding: .45rem .7rem; border: 1px solid #d9e0ea;
  border-radius: 8px; background: #fff; color: var(--nh-ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; border-color: #8db0f5; box-shadow: 0 0 0 .2rem rgba(var(--nh-blue-rgb), .14); }
label { font-weight: 500; font-size: .875rem; margin-bottom: .3rem; }
.form-label { font-weight: 500; }
.form-hint, .helptext { display: block; color: var(--nh-muted); font-size: .8rem; margin-top: .3rem; font-weight: 400; }
.errorlist { list-style: none; padding: 0; margin: .3rem 0; color: #b42318; font-size: .82rem; }
ul.errorlist.nonfield { background: #fde8e8; padding: .6rem .9rem; border-radius: 8px; }
.form-fields > div { margin-bottom: 1rem; }
.form-fields ul:not(.errorlist) { list-style: none; padding: 0; margin: 0; }
.form-fields ul:not(.errorlist) li label { font-weight: 400; display: flex; align-items: center; gap: .4rem; }
.form-fields .form-control, .form-fields .form-select { max-width: 560px; }
.form-fields textarea.form-control { max-width: none; }
.form-section { font-size: .95rem; font-weight: 600; color: var(--nh-ink); margin: 1.5rem 0 .75rem; padding-top: 1.25rem; border-top: 1px solid var(--nh-line); }
.card-body > .form-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.row .form-control, .row .form-select { max-width: none; }
.filters { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1rem; }
.filters > div > label { display: block; }
.filters input, .filters select { width: auto; min-width: 150px; }
.filters input[type=search] { min-width: 280px; }
input.qty { width: 92px; text-align: right; }
input.wide { max-width: none; }
.ts-grid td { vertical-align: middle; }
.ts-grid tr.weekend td { background: #f8fafc; color: var(--nh-muted); }

/* Onboarding / contracts */
.contract-text { white-space: pre-wrap; font-size: .95rem; line-height: 1.65; background: #fff;
  border: 1px solid var(--nh-line); padding: 1.5rem 1.75rem; border-radius: 12px; max-height: 60vh; overflow-y: auto; max-width: 78ch; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { display: flex; justify-content: space-between; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--nh-line); }
.checklist li:last-child { border-bottom: 0; }
.tick { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; font-size: .78rem;
  margin-right: .6rem; background: #eef1f6; color: var(--nh-muted); font-weight: 600; }
.tick.done { background: #22a04b; color: #fff; }
.secret { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; }
.empty-note { color: var(--nh-muted); padding: .35rem 0; margin: 0; }
.activity { border-top: 1px solid var(--nh-line); padding: .7rem 0; }
.activity-body { white-space: pre-wrap; font-size: .85rem; color: var(--nh-muted); margin-top: .25rem; max-height: 6.5em; overflow: hidden; }

/* Avatars with initials */
.avatar-initials { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--av, #2f6be0);
  color: #fff; font-weight: 600; font-size: .78rem; flex: none; letter-spacing: .02em; }

/* Sign-in pages */
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 440px) 1fr; background: #fff; }
.auth-side { background: var(--nh-navy); color: #c8d0e0; padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .nh-logo { padding: 0; }
.auth-side h2 { color: #fff; font-size: 1.55rem; font-weight: 700; line-height: 1.3; margin: 0 0 .75rem; max-width: 20ch; }
.auth-side p { color: #a2adc4; max-width: 34ch; }
.auth-side .foot { font-size: .8rem; color: #76829c; }
.auth-main { display: grid; place-items: center; padding: 2rem 1.25rem; background: var(--nh-page); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--nh-line); border-radius: 14px; padding: 2rem; box-shadow: 0 8px 28px rgba(23,32,54,.07); }
.auth-card h1 { font-size: 1.35rem; margin-bottom: .4rem; }
.auth-card input:not([type=checkbox]):not([type=radio]) { max-width: none; }
.auth-card form p { margin-bottom: .9rem; }
.auth-card button:not(.btn) { width: 100%; justify-content: center; padding: .6rem; }
.auth-card ul { padding-left: 1.1rem; }

.allauth-manage > h1 { margin-bottom: 1rem; }
.allauth-manage > form, .allauth-manage > p, .allauth-manage > ul { background: #fff; border: 1px solid var(--nh-line); border-radius: 12px; padding: 1.1rem 1.25rem; }
.allauth-manage ul { list-style: none; padding-left: 1.25rem; }
.allauth-manage img, .allauth-manage svg { max-width: 220px; height: auto; }

/* ---- Job page ---------------------------------------------------------- */
.job-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.job-head h1 { font-size: 1.6rem; margin-top: .35rem; }
.status-pill { display: inline-flex; align-items: center; gap: .4rem; border: 0; border-radius: 999px; padding: .42rem .95rem; font-weight: 600; font-size: .9rem;
  background: #d6f1dc; color: #1d6b35; cursor: pointer; }
.status-pill.s-open { background: #d6f1dc; color: #1d6b35; }
.status-pill.s-filled { background: #e1ebfd; color: #1d4fc4; }
.status-pill.s-closed { background: #eef1f6; color: #55627a; }
.job-facts { display: flex; flex-wrap: wrap; margin: 1.1rem 0 1.4rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--nh-line); }
.job-facts > div { display: flex; gap: .85rem; align-items: center; padding: .2rem 2rem .2rem 0; margin-right: 2rem; border-right: 1px solid var(--nh-line); min-width: 150px; }
.job-facts > div:last-child { border-right: 0; margin-right: 0; }
.job-facts .ti { font-size: 1.75rem; color: var(--nh-ink); }
.job-facts small { display: block; font-size: .85rem; color: var(--nh-muted); margin-bottom: .1rem; }
.job-facts span { font-size: .9rem; line-height: 1.35; }
.job-facts em { font-style: normal; color: var(--nh-muted); font-size: .8rem; }
.attach-bar { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: .9rem; }
.attach-bar .ts-wrapper, .attach-bar .form-select { width: 340px; max-width: 100%; }
.attach-bar .btn { flex: none; }

/* ---- Hiring pipeline grid ---------------------------------------------- */
.pipeline-wrap { overflow-x: auto; margin-bottom: 1rem; }
.pipeline { width: 100%; min-width: 1000px; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.pipeline td, .pipeline th { vertical-align: middle; }
/* left card: candidate + stages */
.pipeline .pl-card { background: #fff; border-bottom: 1px solid #edf1f6; }
.pipeline thead .pl-card { background: #f1f4f9; border-bottom: 1px solid var(--nh-line); padding: .45rem .22rem; }
.pipeline thead th.pl-person { border-top-left-radius: 12px; border-left: 1px solid var(--nh-line); border-top: 1px solid var(--nh-line); padding-left: 1rem; }
.pipeline thead th.pl-last { border-top-right-radius: 12px; border-right: 1px solid var(--nh-line); border-top: 1px solid var(--nh-line); }
.pipeline thead th.pl-stage { border-top: 1px solid var(--nh-line); }
.pipeline tbody td.pl-person { border-left: 1px solid var(--nh-line); padding: .7rem .6rem .7rem .9rem; min-width: 175px; }
.pipeline tbody td.pl-last { border-right: 1px solid var(--nh-line); }
.pipeline tbody tr:last-child td.pl-card { border-bottom: 1px solid var(--nh-line); }
.pipeline tbody tr:last-child td.pl-person { border-bottom-left-radius: 12px; }
.pipeline tbody tr:last-child td.pl-last { border-bottom-right-radius: 12px; }
.pl-person-head { display: flex; align-items: center; gap: .55rem; font-size: 1rem; font-weight: 600; color: var(--nh-ink); }
.pl-person-head .ti { font-size: 1.35rem; }
.pl-chip { display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .55rem .4rem; border-radius: 8px; background: var(--stg-soft);
  color: var(--nh-ink); font-weight: 600; font-size: .74rem; white-space: nowrap; }
.pl-chip b { font-weight: 500; color: #3b4760; }
.pl-chip .pl-box { width: 18px; height: 18px; cursor: default; }
.pl-cell { text-align: center; border-left: 1px solid #f1f4f8; }
.pl-cell form { display: inline; }
.pl-box { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid #cbd3df; background: #fff; display: inline-grid; place-items: center;
  padding: 0; cursor: pointer; color: transparent; transition: background .12s, border-color .12s; flex: none; }
.pl-box .ti { font-size: .82rem; margin: 0 !important; stroke-width: 3; }
.pl-box:hover { border-color: var(--stg-solid); color: var(--stg-solid); }
.pl-box.on { background: var(--stg-solid); border-color: var(--stg-solid); color: #fff; }
.pl-box:focus-visible { outline: 2px solid var(--stg-solid); outline-offset: 2px; }
.pl-name > a { color: var(--nh-ink); font-weight: 500; }
.pl-name small a { color: var(--nh-blue); font-weight: 500; }
.pl-name small { display: block; font-size: .8rem; }
/* gap between the two cards */
.pipeline .pl-gap { width: 14px; min-width: 14px; padding: 0; background: transparent; border: 0; }
/* right card: comments */
.pipeline .pl-comment { background: #fff; width: 210px; min-width: 185px; border-left: 1px solid var(--nh-line); border-right: 1px solid var(--nh-line);
  padding: .4rem .75rem; position: relative; }
.pipeline thead th.pl-comment { border-top: 1px solid var(--nh-line); border-radius: 12px 12px 0 0; background: #fbfcfe; padding: .85rem .9rem; border-bottom: 1px solid var(--nh-line); }
.pipeline tbody tr:last-child td.pl-comment { border-bottom: 1px solid var(--nh-line); border-radius: 0 0 12px 12px; padding-bottom: .9rem; }
.pl-comment-head { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; color: var(--nh-ink); }
.pl-comment-head .ti { font-size: 1.35rem; }
.pl-comment textarea { resize: none; height: 40px; min-height: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .82rem; border-radius: 8px; padding: .55rem .7rem; padding-right: 1.6rem; line-height: 1.3; }
.pl-comment textarea:focus { height: 76px; resize: vertical; white-space: normal; overflow: auto; }
.saved-flag { position: absolute; right: 1.1rem; bottom: .05rem; font-size: .68rem; color: #1d7a3a; }
.remove-form { position: absolute; top: 50%; right: .9rem; transform: translateY(-50%); }
.btn-link-remove { background: none !important; border: 0 !important; color: #a3aec0 !important; padding: .15rem !important; cursor: pointer; font-size: .85rem; }
.btn-link-remove:hover { color: #b42318 !important; }
.stg-blue   { --stg-solid: #2563eb; --stg-soft: #dce8fd; }
.stg-teal   { --stg-solid: #0d9488; --stg-soft: #d3f0eb; }
.stg-purple { --stg-solid: #7c3aed; --stg-soft: #e9e0fc; }
.stg-orange { --stg-solid: #f26a21; --stg-soft: #fde2d1; }
.stg-yellow { --stg-solid: #e0a800; --stg-soft: #fcefc4; }
.stg-cyan   { --stg-solid: #0891b2; --stg-soft: #d3eef6; }
.stg-green  { --stg-solid: #23a046; --stg-soft: #d6f0db; }

@media (max-width: 991.98px) {
  :root { --nh-side-w: 0px; }
  .nh-side { position: static; width: auto; flex-direction: row; align-items: center; overflow-x: auto; overflow-y: hidden; }
  .nh-side .nh-nav { flex-direction: row; padding: 0; }
  .nh-nav a { padding: .55rem .7rem; align-items: center; white-space: nowrap; }
  .nh-nav a.on { margin: .3rem .15rem; padding-left: .7rem; }
  .nh-sep { width: 1px; height: 30px; margin: 0 .3rem; }
  .nh-content { padding: 1rem; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; gap: .15rem; }
  dl.kv dd { margin-bottom: .5rem; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .job-facts > div { border-right: 0; margin-right: 0; padding: .4rem 1.5rem .4rem 0; }
}
@media print { .nh-side, .nh-top, .actions, .nh-portal-top { display: none !important; } .nh-main { margin: 0 !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* ---- Multi-tenant branding, settings and resume import ------------------ */
.nh-logo-img { width: 34px; height: 34px; border-radius: 8px; background: #fff; display: grid; place-items: center; padding: 3px; flex: none; overflow: hidden; }
.nh-logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.nh-portal-top .nh-logo-img { box-shadow: 0 0 0 1px var(--nh-line); }
a.settings-card { display: block; color: inherit; text-decoration: none !important; transition: box-shadow .15s, border-color .15s; }
a.settings-card:hover { border-color: var(--nh-blue); box-shadow: 0 2px 10px rgba(var(--nh-blue-rgb), .12); }
a.settings-card h2 .ti { color: var(--nh-blue); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-align: center; padding: 2rem 1rem; border: 2px dashed #c9d3e1;
  border-radius: 12px; background: #fafcff; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--nh-blue); background: var(--nh-blue-soft); }
.dropzone .ti { font-size: 2.2rem; color: var(--nh-blue); }
.dropzone input[type=file] { max-width: 100%; margin-top: .5rem; }
.dropzone-list { font-size: .82rem; }
.spin { display: inline-block; animation: nh-spin 1s linear infinite; }
@keyframes nh-spin { to { transform: rotate(360deg); } }
.review-grid { align-items: start; }
@media (min-width: 1100px) { .review-grid { grid-template-columns: 3fr 2fr; } }
