/* Tagbin Naukri portal - page-owned styles.
   Loaded AFTER dashboard.css, dashboard_home.css and pipeline.css, which give
   the glass shell, the rail, the wizard cards, inputs, chips and buttons. Only
   what those sheets do not have is defined here, all under .nk-* names. */

/* ---------- Rail: a brand tile for Tagbin next to the HireXA mark ---------- */
.nk-rail-brand {
    width: 52px; height: 52px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #334155 100%);
    color: #FFFFFF; font: 700 15px/1 'Inter', sans-serif; letter-spacing: 0.02em;
    box-shadow: inset 0 0 12px rgba(255,255,255,0.18);
}
.nk-rail-label {
    font: 600 10px/12px 'Inter', sans-serif; color: #64748B; text-align: center;
    letter-spacing: 0.06em; text-transform: uppercase; margin-top: -8px;
}

/* The shared profile widget also mounts the notification bell. Its feed API
   lives on the recruiter app, not here, so the bell stays hidden. */
.hxa-bell { display: none !important; }

/* ---------- Top-nav extras ---------- */
.nk-topnav-right { display: flex; align-items: center; gap: 12px; }
.nk-env {
    display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px;
    border-radius: 999px; font: 600 12px/1 'Inter', sans-serif;
    background: rgba(255,255,255,0.45); border: 1px solid rgba(255,255,255,0.7); color: #334155;
}
.nk-env .nk-dot { width: 8px; height: 8px; border-radius: 50%; background: #CBD5E1; }
.nk-env.is-ok .nk-dot { background: #22C55E; }
.nk-env.is-warn .nk-dot { background: #F59E0B; }
.nk-env.is-test .nk-dot { background: #8B5CF6; }

/* ---------- Locked company field ---------- */
.pjd-input.pjd-input-locked.nk-locked {
    color: #0F172A; font-weight: 600; cursor: not-allowed;
    background: linear-gradient(180deg, #F8FAFC 0%, #EEF2F7 100%);
}
.nk-lock-note { display: inline-flex; align-items: center; gap: 6px; }
.nk-lock-note svg { width: 12px; height: 12px; }

/* Step 1's "Show Salary on Naukri Listing" band uses .pjd-salary-vis from the
   shared pipeline.css (the same band the HireXA wizard has). */

/* ---------- Step 2: Naukri details card ---------- */
.nk-details-card { gap: 16px; }
.nk-details-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.nk-details-title { margin: 0; font: 600 20px/28px 'Inter', sans-serif; color: #0F172A; }
.nk-details-sub { margin: 0; font: 400 13px/20px 'Inter', sans-serif; color: #64748B; }
.nk-badge {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
    font: 600 12px/1 'Inter', sans-serif; white-space: nowrap;
}
.nk-badge-test { background: #EDE9FE; color: #6D28D9; }
.nk-badge-live { background: #DCFCE7; color: #15803D; }
.nk-badge-grey { background: #E2E8F0; color: #475569; }
.nk-badge-amber { background: #FEF3C7; color: #B45309; }
.nk-badge-red { background: #FEE2E2; color: #B91C1C; }
.nk-badge-blue { background: #DBEAFE; color: #1D4ED8; }

.nk-skills-wrap { display: flex; flex-direction: column; gap: 8px; }
.nk-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 8px; }
.nk-chip {
    display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
    background: #E0F2FE; color: #0369A1; font: 500 12px/1 'Inter', sans-serif;
}
.nk-chip button { all: unset; cursor: pointer; display: inline-flex; color: #0369A1; opacity: 0.7; }
.nk-chip button:hover { opacity: 1; }
.nk-chip svg { width: 12px; height: 12px; }
.nk-count { font: 500 12px/16px 'Inter', sans-serif; color: #64748B; }
.nk-count.is-over { color: #B91C1C; }

.nk-band {
    display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px;
    background: rgba(255,255,255,0.45); border: 1px solid rgba(203,213,225,0.6);
}
.nk-band-label { font: 600 12px/16px 'Inter', sans-serif; color: #64748B; text-transform: uppercase; letter-spacing: 0.04em; }
.nk-band-value { font: 600 15px/22px 'Inter', sans-serif; color: #0F172A; }
.nk-band-hint { font: 400 12px/18px 'Inter', sans-serif; color: #64748B; }

.nk-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nk-switch-row .pjd2-field-hint { flex: 1 1 auto; }

.nk-save-state { font: 500 12px/16px 'Inter', sans-serif; color: #64748B; min-height: 16px; text-align: right; }
.nk-save-state.is-saving { color: #1D4ED8; }
.nk-save-state.is-saved { color: #15803D; }
.nk-save-state.is-error { color: #B91C1C; }

/* ---------- Step 3: publish + post ---------- */
.nk-pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 1100px) { .nk-pub-grid { grid-template-columns: 1fr; } }
.nk-pub-card { gap: 18px; }
.nk-pub-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nk-pub-head h2 { margin: 0; font: 600 20px/28px 'Inter', sans-serif; color: #0F172A; }
.nk-pub-ic {
    width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
}
.nk-pub-ic svg { width: 20px; height: 20px; }
.nk-pub-ic.is-hx { background: rgba(176,219,255,0.6); color: #007EE8; }
.nk-pub-ic.is-nk { background: #FEF3C7; color: #B45309; }
.nk-kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 8px 16px; }
.nk-kv dt { margin: 0; font: 600 13px/20px 'Inter', sans-serif; color: #64748B; }
.nk-kv dd { margin: 0; font: 500 14px/20px 'Inter', sans-serif; color: #0F172A; word-break: break-word; }
.nk-kv dd .nk-chips { margin-top: 2px; }
.nk-problems { margin: 0; padding: 12px 14px 12px 30px; border-radius: 12px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font: 500 13px/20px 'Inter', sans-serif; }
.nk-ok-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #F0FDF4; border: 1px solid #BBF7D0; color: #166534; font: 500 13px/20px 'Inter', sans-serif; }
.nk-warn-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; font: 500 13px/20px 'Inter', sans-serif; }
.nk-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.nk-btn-ghost {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; cursor: pointer;
    background: rgba(255,255,255,0.45); border: 1px solid rgba(203,213,225,0.8); color: #334155;
    font: 600 14px/1 'Inter', sans-serif; box-shadow: inset 0 0 12px #FFFFFF;
}
.nk-btn-ghost:hover { background: rgba(255,255,255,0.7); }
.nk-btn-ghost:disabled, .pjd-btn-next:disabled { opacity: 0.55; cursor: not-allowed; }
.nk-btn-ghost svg { width: 15px; height: 15px; }
.nk-btn-danger { color: #B91C1C; border-color: #FECACA; }
.nk-pub-link { display: flex; align-items: center; gap: 10px; }
.nk-pub-link a { font: 500 14px/20px 'Inter', sans-serif; color: #007EE8; text-decoration: none; word-break: break-all; }
.nk-pub-link a:hover { text-decoration: underline; }
.nk-spin {
    width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.5); border-top-color: #FFFFFF;
    animation: nk-rot 0.8s linear infinite; display: inline-block;
}
.nk-btn-ghost .nk-spin { border-color: rgba(51,65,85,0.3); border-top-color: #334155; }
@keyframes nk-rot { to { transform: rotate(360deg); } }

/* ---------- Jobs page ---------- */
.nk-jobs-wrap { display: flex; flex-direction: column; gap: 20px; }
.nk-jobs-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nk-jobs-toolbar h2 { margin: 0; font: 600 22px/30px 'Inter', sans-serif; color: #0F172A; }
.nk-table-card { padding: 0 !important; overflow: hidden; }
.nk-table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; }
.nk-table th {
    text-align: left; padding: 14px 18px; font: 600 12px/16px 'Inter', sans-serif; color: #64748B;
    text-transform: uppercase; letter-spacing: 0.05em; border-bottom: 1px solid rgba(203,213,225,0.6);
    background: rgba(255,255,255,0.35);
}
/* Sortable headers: the whole label is a button; the arrow shows the direction. */
.nk-table th.nk-th-sort { padding: 0; }
.nk-table th.nk-th-sort > button {
    display: inline-flex; align-items: center; gap: 6px; width: 100%; padding: 14px 18px; margin: 0;
    border: 0; background: none; cursor: pointer; text-align: left;
    font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit;
    border-radius: 6px; transition: color .15s ease, background .15s ease;
}
.nk-table th.nk-th-sort > button:hover { color: #0F172A; background: rgba(255,255,255,0.6); }
.nk-table th.nk-th-sort > button:focus-visible { outline: 2px solid #2563EB; outline-offset: -2px; }
.nk-sort-ic { position: relative; width: 10px; height: 12px; flex: 0 0 10px; opacity: 0.35; }
.nk-sort-ic::before, .nk-sort-ic::after {
    content: ''; position: absolute; left: 1px; border-left: 4px solid transparent; border-right: 4px solid transparent;
}
.nk-sort-ic::before { top: 0; border-bottom: 4px solid currentColor; }
.nk-sort-ic::after { bottom: 0; border-top: 4px solid currentColor; }
.nk-table th.nk-th-sort.is-asc > button, .nk-table th.nk-th-sort.is-desc > button { color: #2563EB; }
.nk-table th.nk-th-sort.is-asc .nk-sort-ic, .nk-table th.nk-th-sort.is-desc .nk-sort-ic { opacity: 1; }
.nk-table th.nk-th-sort.is-asc .nk-sort-ic::after { opacity: 0.25; }
.nk-table th.nk-th-sort.is-desc .nk-sort-ic::before { opacity: 0.25; }
.nk-table td { padding: 14px 18px; font: 500 14px/20px 'Inter', sans-serif; color: #0F172A; border-bottom: 1px solid rgba(203,213,225,0.45); vertical-align: top; }
.nk-table tr:last-child td { border-bottom: 0; }
.nk-table tr.nk-row { cursor: pointer; }
.nk-table tr.nk-row:hover td { background: rgba(255,255,255,0.35); }
.nk-role { font-weight: 600; }
.nk-sub { display: block; font: 400 12px/18px 'Inter', sans-serif; color: #64748B; }
.nk-row-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.nk-mini {
    all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 8px;
    background: rgba(255,255,255,0.55); border: 1px solid rgba(203,213,225,0.8); color: #334155; font: 600 12px/1 'Inter', sans-serif;
}
.nk-mini:hover { background: #FFFFFF; }
.nk-mini.is-primary { background: linear-gradient(180deg,#0B90F3 0%,#007EE8 100%); color: #FFF; border-color: #8AC9FF; }
.nk-mini.is-danger { color: #B91C1C; }
.nk-mini:disabled { opacity: 0.5; cursor: not-allowed; }
.nk-expand td { background: rgba(255,255,255,0.25); }
.nk-applies { width: 100%; border-collapse: collapse; }
.nk-applies th { padding: 8px 12px; font: 600 11px/14px 'Inter', sans-serif; color: #64748B; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; background: transparent; border-bottom: 1px solid rgba(203,213,225,0.5); }
.nk-applies td { padding: 10px 12px; font: 500 13px/18px 'Inter', sans-serif; border-bottom: 1px solid rgba(203,213,225,0.35); }
.nk-empty { padding: 40px 18px; text-align: center; font: 500 14px/22px 'Inter', sans-serif; color: #64748B; }
.nk-empty strong { display: block; font-size: 16px; color: #0F172A; margin-bottom: 4px; }

/* ---------- Login ---------- */
.nk-login-shell { min-height: var(--app-vh, 100vh); display: flex; align-items: center; justify-content: center; padding: 24px; position: relative; z-index: 1; }
.nk-login-card {
    width: 440px; max-width: 100%; display: flex; flex-direction: column; gap: 22px; padding: 36px 36px 32px;
    background: rgba(255,255,255,0.35); box-shadow: inset 0 0 22.6px #FFFFFF, 0 24px 60px -30px rgba(15,23,42,0.25);
    border-radius: 24px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    font-family: 'Inter', sans-serif;
}
.nk-login-brand { display: flex; align-items: center; gap: 12px; }
.nk-login-brand img { height: 28px; }
.nk-login-brand .nk-rail-brand { width: 40px; height: 40px; border-radius: 12px; font-size: 12px; }
.nk-login-brand-x { color: #94A3B8; font-weight: 600; }
.nk-login-title { margin: 0; font: 600 28px/34px 'Inter', sans-serif; color: #0F172A; letter-spacing: -0.01em; }
.nk-login-sub { margin: 0; font: 400 14px/22px 'Inter', sans-serif; color: #475569; }
.nk-login-sub strong { color: #0F172A; }
.nk-login-form { display: flex; flex-direction: column; gap: 16px; }
.nk-login-form .pjd-field label { font: 600 13px/18px 'Inter', sans-serif; color: #0F172A; }
.nk-login-submit { width: 100%; justify-content: center; }
.nk-login-error { display: none; padding: 10px 14px; border-radius: 12px; background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; font: 500 13px/20px 'Inter', sans-serif; }
.nk-login-error.show { display: block; }
.nk-login-foot { margin: 0; font: 400 12px/18px 'Inter', sans-serif; color: #64748B; text-align: center; }
.nk-login-foot a { color: #007EE8; text-decoration: none; }

/* ---------- Applicants modal (jobs page) ---------- */
.nk-count-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.55); border: 1px solid rgba(203,213,225,0.7); font: 600 14px/18px 'Inter', sans-serif; color: #0F172A; }
.nk-count-btn:hover { background: #FFFFFF; border-color: #8AC9FF; color: #007EE8; }
.nk-count-btn svg { width: 14px; height: 14px; }
.nk-modal-bg { position: fixed; inset: 0; z-index: 1200; background: rgba(15,23,42,0.45); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.nk-modal-bg.hidden { display: none; }
.nk-modal { width: min(1240px, 100%); height: min(860px, calc(100vh - 48px)); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(244,248,255,0.95) 100%); border: 1px solid rgba(255,255,255,0.9); border-radius: 24px; box-shadow: 0 30px 80px rgba(15,23,42,0.25); overflow: hidden; }
.nk-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px 16px; border-bottom: 1px solid rgba(203,213,225,0.55); }
.nk-modal-heading h2 { margin: 0; font: 600 22px/28px 'Inter', sans-serif; color: #0F172A; }
.nk-modal-heading p { margin: 4px 0 0; font: 400 13px/18px 'Inter', sans-serif; color: #64748B; }
.nk-modal-tools { display: flex; align-items: center; gap: 10px; }
.nk-modal-tools .pjx-close { position: static; }
.nk-modal-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px 1fr; }
.nk-app-list { border-right: 1px solid rgba(203,213,225,0.55); overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: rgba(255,255,255,0.35); }
.nk-app-card { all: unset; cursor: pointer; display: block; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; background: rgba(255,255,255,0.6); transition: border-color .15s, background .15s; }
.nk-app-card:hover { background: #FFFFFF; }
.nk-app-card.is-active { background: #FFFFFF; border-color: #8AC9FF; box-shadow: 0 6px 18px rgba(0,126,232,0.12); }
.nk-app-card .nk-app-name { display: block; font: 600 14px/20px 'Inter', sans-serif; color: #0F172A; }
.nk-app-card .nk-app-meta { display: block; font: 400 12px/18px 'Inter', sans-serif; color: #64748B; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nk-app-card .nk-app-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.nk-app-detail { overflow-y: auto; padding: 22px 26px 30px; }
.nk-app-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nk-app-top h3 { margin: 0; font: 600 24px/30px 'Inter', sans-serif; color: #0F172A; }
.nk-app-top .nk-app-role { margin: 4px 0 0; font: 400 14px/20px 'Inter', sans-serif; color: #475569; }
.nk-app-top .nk-actions { align-items: center; }
.nk-contact { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 14px; }
.nk-contact a, .nk-contact span { display: inline-flex; align-items: center; gap: 7px; font: 500 14px/20px 'Inter', sans-serif; color: #0F172A; text-decoration: none; }
.nk-contact a:hover { color: #007EE8; }
.nk-contact svg { width: 16px; height: 16px; color: #64748B; flex: none; }
.nk-app-section { margin-top: 22px; padding: 18px 20px; border-radius: 18px; background: rgba(255,255,255,0.75); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 4px 16px rgba(15,23,42,0.05); }
.nk-app-section h4 { margin: 0 0 12px; font: 600 12px/16px 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nk-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px 20px; }
.nk-app-grid dt { font: 500 11px/16px 'Inter', sans-serif; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.04em; }
.nk-app-grid dd { margin: 2px 0 0; font: 500 14px/20px 'Inter', sans-serif; color: #0F172A; overflow-wrap: anywhere; }
.nk-app-grid dl { margin: 0; }
.nk-ai-head { display: flex; align-items: center; gap: 18px; margin-bottom: 12px; }
.nk-ai-score { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font: 700 22px/1 'Inter', sans-serif; color: #0F172A; background: conic-gradient(var(--nk-ring, #22C55E) calc(var(--nk-pct, 0) * 1%), #E2E8F0 0); position: relative; flex: none; }
.nk-ai-score::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #FFFFFF; }
.nk-ai-score span { position: relative; }
.nk-ai-score small { position: relative; font: 600 10px/1 'Inter', sans-serif; color: #94A3B8; margin-top: 2px; }
.nk-ai-summary { font: 400 14px/22px 'Inter', sans-serif; color: #334155; margin: 0; }
.nk-skill-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.nk-skill-row .nk-label { width: 100%; font: 500 11px/16px 'Inter', sans-serif; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.04em; }
.nk-chip.is-ok { background: #DCFCE7; color: #15803D; }
.nk-chip.is-miss { background: #FEE2E2; color: #B91C1C; }
.nk-app-empty { height: 100%; display: grid; place-items: center; text-align: center; padding: 40px; font: 500 14px/22px 'Inter', sans-serif; color: #64748B; }
.nk-app-empty strong { display: block; font-size: 17px; color: #0F172A; margin-bottom: 6px; }
.nk-app-empty p { max-width: 420px; margin: 0; }
.nk-raw { margin-top: 10px; }
.nk-raw summary { cursor: pointer; font: 500 12px/18px 'Inter', sans-serif; color: #007EE8; }
.nk-raw pre { margin: 8px 0 0; padding: 12px; border-radius: 12px; background: #0F172A; color: #E2E8F0; font: 400 12px/18px ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 260px; overflow: auto; }
@media (max-width: 900px) {
    .nk-modal-body { grid-template-columns: 1fr; grid-template-rows: 200px 1fr; }
    .nk-app-list { border-right: 0; border-bottom: 1px solid rgba(203,213,225,0.55); }
}
.nk-work { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.nk-work-row { font: 400 13px/18px 'Inter', sans-serif; color: #334155; padding: 8px 12px; border-radius: 10px; background: rgba(241,245,249,0.8); }
.nk-work-row strong { font-weight: 600; color: #0F172A; }

/* ---------- Applicants page + applicant detail page ---------- */
.nk-crumbs { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nk-crumb { font: 500 14px/20px 'Inter', sans-serif; color: #64748B; text-decoration: none; white-space: nowrap; }
.nk-crumb:hover { color: #007EE8; }
.nk-crumb-sep { color: #CBD5E1; font: 500 14px/20px 'Inter', sans-serif; }
.nk-toolbar-sub { margin: 4px 0 0; font: 400 13px/18px 'Inter', sans-serif; color: #64748B; }
.nk-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.nk-stat { padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.9); min-width: 110px; }
.nk-stat span { display: block; font: 500 11px/14px 'Inter', sans-serif; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.05em; }
.nk-stat strong { display: block; margin-top: 2px; font: 600 16px/22px 'Inter', sans-serif; color: #0F172A; }
.nk-table-scroll { overflow-x: auto; }
.nk-table-applicants th, .nk-table-applicants td { white-space: nowrap; }
.nk-table-applicants td:nth-child(5) { white-space: normal; min-width: 180px; max-width: 260px; }
.nk-table-applicants td a { color: #0F172A; text-decoration: none; }
.nk-table-applicants td a:hover { color: #007EE8; }
.nk-muted { color: #94A3B8; }

.nk-cand-head { padding: 22px 26px !important; }
.nk-cand-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.nk-cand-top h2 { margin: 0; font: 600 26px/32px 'Inter', sans-serif; color: #0F172A; }
.nk-cand-top p { margin: 6px 0 0; font: 400 14px/20px 'Inter', sans-serif; color: #475569; }
.nk-cand-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.nk-cand-top .nk-actions { align-items: center; }
.nk-cand-top .nk-btn-ghost { text-decoration: none; }
.nk-detail-grid { display: grid; grid-template-columns: minmax(380px, 520px) 1fr; gap: 20px; align-items: start; }
.nk-detail-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.nk-kv-card { padding: 18px 20px !important; }
.nk-kv-card h3 { margin: 0 0 10px; font: 600 12px/16px 'Inter', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; color: #64748B; }
.nk-kv { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; }
.nk-kv th, .nk-kv td { padding: 9px 10px; border-bottom: 1px solid rgba(203,213,225,0.45); vertical-align: top; text-align: left; font: 500 13px/19px 'Inter', sans-serif; }
.nk-kv tbody tr:last-child th, .nk-kv tbody tr:last-child td { border-bottom: 0; }
.nk-kv th { width: 42%; color: #64748B; font-weight: 500; }
.nk-kv td { color: #0F172A; overflow-wrap: anywhere; }
.nk-kv-grid th { width: auto; font: 600 11px/14px 'Inter', sans-serif; text-transform: uppercase; letter-spacing: 0.05em; color: #64748B; }
.nk-kv .nk-chips { gap: 5px; }
.nk-resume-card { padding: 0 !important; overflow: hidden; position: sticky; top: 0; max-height: calc(var(--app-vh, 100vh) - 140px); display: flex; flex-direction: column; min-width: 0; }
.nk-resume-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(203,213,225,0.5); }
.nk-resume-head h3 { margin: 0; font: 600 16px/22px 'Inter', sans-serif; color: #0F172A; }
.nk-resume-pages { overflow-y: auto; padding: 16px; background: rgba(226,232,240,0.45); display: flex; flex-direction: column; gap: 16px; min-height: 320px; }
.nk-resume-note { font: 500 12px/16px 'Inter', sans-serif; color: #64748B; text-align: center; }
.nk-resume-page { width: 100%; background: #FFFFFF; border-radius: 6px; box-shadow: 0 6px 20px rgba(15,23,42,0.12); overflow: hidden; }
.nk-resume-page img { display: block; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; pointer-events: none; }
@media (max-width: 1100px) {
    .nk-detail-grid { grid-template-columns: 1fr; }
    .nk-resume-card { position: static; max-height: none; }
}
/* The pipeline card styles turn every descendant table into a grid; these are real tables. */
.nk-kv-card { display: block !important; }
.nk-kv, .pjd-card .nk-kv { display: table !important; table-layout: fixed; width: 100%; }
.nk-kv thead { display: table-header-group !important; }
.nk-kv tbody { display: table-row-group !important; }
.nk-kv tr { display: table-row !important; }
.nk-kv th, .nk-kv td { display: table-cell !important; }
.nk-kv th { width: 36%; }
.nk-kv-grid th { width: auto; }
.nk-kv-card h3 { margin-bottom: 10px; }
.nk-detail-grid { grid-template-columns: minmax(440px, 640px) 1fr; }
@media (max-width: 1100px) { .nk-detail-grid { grid-template-columns: 1fr; } }
.nk-btn-ghost.is-danger { color: #B91C1C; }
.nk-btn-ghost.is-danger:hover { background: #FEE2E2; }
/* Primary mini button: hover darkens, it never goes white-on-white. */
.nk-mini.is-primary:hover { background: linear-gradient(180deg,#0A84E0 0%,#0070D0 100%); color: #FFF; border-color: #5FB3FF; }
.nk-table-applicants td .nk-row-actions { gap: 8px; }
/* Download button inside the shared resume viewer header (portal only). */
.hx-rv .nk-rv-download { display: inline-flex; align-items: center; gap: 7px; margin-right: 12px; padding: 8px 14px; border-radius: 999px; background: linear-gradient(180deg,#0B90F3 0%,#007EE8 100%); color: #FFF; font: 600 13px/16px 'Inter', sans-serif; text-decoration: none; border: 1px solid #8AC9FF; flex: none; }
.hx-rv .nk-rv-download:hover { background: linear-gradient(180deg,#0A84E0 0%,#0070D0 100%); color: #FFF; }
.hx-rv .nk-rv-download svg { width: 15px; height: 15px; }

/* ---------- i-buttons: what a button does, and what it costs ---------- */
.nk-btn-wrap { display: inline-flex; align-items: center; gap: 8px; }
.nk-info { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #94A3B8; color: #64748B; background: rgba(255,255,255,0.7); font: 700 11px/1 'Inter', sans-serif; cursor: help; flex: none; user-select: none; }
.nk-info:hover, .nk-info:focus-visible { border-color: #007EE8; color: #007EE8; outline: none; }
.nk-info::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: 300px; padding: 10px 12px; border-radius: 10px; background: #0F172A; color: #F8FAFC; font: 400 12px/18px 'Inter', sans-serif; text-align: left; white-space: normal; box-shadow: 0 10px 30px rgba(15,23,42,0.25); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 50; }
.nk-info::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); border: 6px solid transparent; border-top-color: #0F172A; opacity: 0; transition: opacity .12s; z-index: 50; }
.nk-info:hover::after, .nk-info:focus-visible::after, .nk-info:hover::before, .nk-info:focus-visible::before { opacity: 1; }
.pjd-footer .nk-info { margin-left: 4px; }
.nk-btn-ghost:disabled, .nk-mini:disabled { opacity: 0.5; cursor: not-allowed; }

/* Resume viewer on this portal: the whole page is readable (watermark stays). */
.hx-rv.nk-full-view .hx-rv-veil { display: none !important; }
.hx-rv.nk-full-view .hx-rv-lenshint { display: none !important; }

/* ---------- Hover info cards on buttons (jobs list) ---------- */
.nk-tip { position: relative; display: inline-flex; }
.nk-tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%); width: max-content; max-width: 280px; padding: 10px 12px; border-radius: 10px; background: #0F172A; color: #F8FAFC; font: 400 12px/18px 'Inter', sans-serif; text-align: left; white-space: normal; box-shadow: 0 10px 30px rgba(15,23,42,0.25); opacity: 0; pointer-events: none; transition: opacity .12s; z-index: 60; }
.nk-tip::before { content: ""; position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); border: 6px solid transparent; border-top-color: #0F172A; opacity: 0; transition: opacity .12s; z-index: 60; }
.nk-tip:hover::after, .nk-tip:focus-within::after, .nk-tip:hover::before, .nk-tip:focus-within::before { opacity: 1; }
.nk-table td .nk-tip:last-child::after { left: auto; right: 0; transform: none; }
.nk-table td .nk-tip:last-child::before { left: auto; right: 24px; transform: none; }

/* ---------- Applicant selection ---------- */
.nk-check-col { width: 44px; }
.nk-check { width: 18px; height: 18px; accent-color: #007EE8; cursor: pointer; vertical-align: middle; }
.nk-table td.nk-check-col { text-align: center; }

/* Viewer on this portal: no watermark layer over the pages either. */
.hx-rv.nk-full-view .hx-rv-mark { display: none !important; }

/* ---------- Naukri posting type picker (Step 3) ---------- */
.nk-jobtype-pick { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nk-jt { position: relative; display: inline-flex; }
.nk-jt input { position: absolute; opacity: 0; pointer-events: none; }
.nk-jt span { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(148,163,184,0.6); background: rgba(255,255,255,0.6); font: 600 12px/16px 'Inter', sans-serif; color: #334155; cursor: pointer; }
.nk-jt input:checked + span { background: linear-gradient(180deg,#0B90F3 0%,#007EE8 100%); border-color: #8AC9FF; color: #FFF; }
.nk-jt input:focus-visible + span { outline: 2px solid #8AC9FF; outline-offset: 2px; }
.nk-jt input:disabled + span { opacity: 0.5; cursor: not-allowed; }
.nk-jt input[value="hidden"]:checked + span { background: #FEF3C7; color: #B45309; border-color: #FCD34D; }

/* ---------- Jobs page summary blocks ---------- */
.nk-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.nk-summary-block { padding: 16px 20px; border-radius: 18px; background: rgba(255,255,255,0.65); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 4px 16px rgba(15,23,42,0.05); display: flex; flex-direction: column; gap: 2px; }
.nk-summary-block span { font: 500 11px/16px 'Inter', sans-serif; color: #64748B; text-transform: uppercase; letter-spacing: 0.06em; }
.nk-summary-block strong { font: 700 28px/34px 'Inter', sans-serif; color: #0F172A; }
.nk-summary-block small { font: 400 12px/16px 'Inter', sans-serif; color: #94A3B8; }
@media (max-width: 1100px) { .nk-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- View JD modal ---------- */
.nk-jd-modal { width: min(960px, 100%); height: min(820px, calc(100vh - 48px)); }
.nk-jd-tabs { display: flex; gap: 6px; padding: 12px 26px 0; }
.nk-jd-tab { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font: 600 13px/18px 'Inter', sans-serif; color: #475569; background: rgba(255,255,255,0.5); border: 1px solid rgba(203,213,225,0.6); }
.nk-jd-tab.is-active { background: linear-gradient(180deg,#0B90F3 0%,#007EE8 100%); color: #FFF; border-color: #8AC9FF; }
.nk-jd-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 26px 22px; }
.nk-jd-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: 400 14px/23px 'Inter', sans-serif; color: #1E293B; }
.nk-jd-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 26px 16px; border-top: 1px solid rgba(203,213,225,0.55); font: 500 13px/18px 'Inter', sans-serif; color: #475569; }
.nk-jd-foot a { color: #007EE8; text-decoration: none; }
.nk-jd-foot a:hover { text-decoration: underline; }
.nk-jd-dot { width: 4px; height: 4px; border-radius: 50%; background: #CBD5E1; display: inline-block; }

/* ---------- Jobs list: company tags beside the role, and the tag dialog ---------- */
/* Each company gets a fixed pastel pair (hash of its name) via two variables;
   badges, chips and the dialog's pills all read the same pair. */
.nk-tag-c0 { --tag-bg: #EFF6FF; --tag-fg: #1D4ED8; --tag-line: #BFDBFE; }
.nk-tag-c1 { --tag-bg: #F5F3FF; --tag-fg: #6D28D9; --tag-line: #DDD6FE; }
.nk-tag-c2 { --tag-bg: #FDF2F8; --tag-fg: #BE185D; --tag-line: #FBCFE8; }
.nk-tag-c3 { --tag-bg: #FFF7ED; --tag-fg: #C2410C; --tag-line: #FED7AA; }
.nk-tag-c4 { --tag-bg: #F0FDF4; --tag-fg: #15803D; --tag-line: #BBF7D0; }
.nk-tag-c5 { --tag-bg: #F0FDFA; --tag-fg: #0F766E; --tag-line: #99F6E4; }
.nk-tag-c6 { --tag-bg: #FFFBEB; --tag-fg: #B45309; --tag-line: #FDE68A; }
.nk-tag-c7 { --tag-bg: #F8FAFC; --tag-fg: #334155; --tag-line: #CBD5E1; }
/* Badge beside the role name: a label, not a status pill. Soft tint, hairline
   border, colour dot, 20px tall. The role never shrinks; a long tag is cut with
   an ellipsis (full name on hover) and more than two collapse into "+N". */
.nk-role-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.nk-role-line .nk-role { flex: 0 0 auto; }
.nk-tags { display: inline-flex; align-items: center; gap: 4px; min-width: 0; flex: 0 1 auto; }
.nk-tag {
    display: inline-flex; align-items: center; gap: 5px; box-sizing: border-box; height: 20px; padding: 0 7px 0 6px; border-radius: 6px;
    background: var(--tag-bg, #F8FAFC); color: var(--tag-fg, #334155); border: 1px solid var(--tag-line, #CBD5E1);
    font: 600 11px/18px 'Inter', sans-serif; letter-spacing: 0.01em; white-space: nowrap; max-width: 200px; min-width: 0; flex: 0 1 auto;
}
.nk-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tag-fg, #64748B); flex: none; }
.nk-tag-t { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nk-tag-more { padding: 0 6px; flex: none; color: #475569; background: #F1F5F9; border-color: #CBD5E1; }
.nk-chip-tag {
    display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 8px 0 11px; border-radius: 8px;
    background: var(--tag-bg, #F8FAFC); color: var(--tag-fg, #334155); border: 1px solid var(--tag-line, #CBD5E1); font: 600 12.5px/1 'Inter', sans-serif;
}
.nk-chip-tag .nk-tag-dot { width: 7px; height: 7px; }
.nk-chip-tag button { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; color: inherit; opacity: 0.55; margin-left: 2px; }
.nk-chip-tag button:hover { opacity: 1; background: rgba(255,255,255,0.7); }
.nk-chip-tag button svg { width: 11px; height: 11px; }
.nk-filter-name .nk-tag { max-width: 190px; }

/* The dialog */
.nk-tag-modal { width: min(600px, 100%); height: auto; max-height: calc(100vh - 48px); }
.nk-tag-body { display: flex; flex-direction: column; gap: 20px; padding: 20px 26px 8px; overflow-y: auto; }
.nk-tag-section { display: flex; flex-direction: column; gap: 10px; }
.nk-tag-label { font: 600 11px/16px 'Inter', sans-serif; color: #64748B; text-transform: uppercase; letter-spacing: 0.06em; }
.nk-tag-none { font: 400 13px/18px 'Inter', sans-serif; color: #94A3B8; }
#nk-tag-current {
    min-height: 52px; padding: 11px 12px; border-radius: 14px; gap: 8px; align-items: center;
    background: rgba(255,255,255,0.55); border: 1px solid rgba(203,213,225,0.7);
}
#nk-tag-current.is-empty { border-style: dashed; background: rgba(255,255,255,0.3); justify-content: center; }
.nk-tag-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.nk-tag-opt {
    all: unset; cursor: pointer; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px; border-radius: 999px;
    background: rgba(255,255,255,0.7); border: 1.5px solid rgba(203,213,225,0.9); color: #334155; font: 500 13px/1 'Inter', sans-serif;
    transition: background .12s, border-color .12s, color .12s, transform .08s;
}
.nk-tag-opt-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tag-fg, #64748B); flex: none; box-shadow: 0 0 0 3px var(--tag-bg, #E2E8F0); }
.nk-tag-opt:hover { background: #FFFFFF; border-color: var(--tag-fg, #8AC9FF); }
.nk-tag-opt:active { transform: scale(0.98); }
.nk-tag-opt:focus-visible { outline: 2px solid #8AC9FF; outline-offset: 2px; }
.nk-tag-opt.is-on { background: var(--tag-bg, #DBEAFE); color: var(--tag-fg, #1D4ED8); border-color: var(--tag-fg, #1D4ED8); font-weight: 600; }
.nk-tag-opt.is-on .nk-tag-opt-dot { background: var(--tag-fg); box-shadow: 0 0 0 3px rgba(255,255,255,0.7); }
.nk-tag-opt.is-on::after { content: ''; width: 5px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin: -3px 1px 0 2px; }
.nk-tag-add {
    display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 14px; box-sizing: border-box;
    background: #FFFFFF; border: 1.5px solid rgba(203,213,225,0.9); transition: border-color .12s, box-shadow .12s;
}
.nk-tag-add:focus-within { border-color: #007EE8; box-shadow: 0 0 0 4px rgba(0,126,232,0.12); }
.nk-tag-add-ic { width: 16px; height: 16px; color: #94A3B8; flex: none; }
.nk-tag-add input { all: unset; flex: 1; min-width: 0; height: 100%; font: 500 14px/20px 'Inter', sans-serif; color: #0F172A; }
.nk-tag-add input::placeholder { color: #94A3B8; font-weight: 400; }
.nk-tag-add-btn {
    all: unset; cursor: pointer; height: 34px; padding: 0 16px; border-radius: 10px; flex: none;
    background: #0F172A; color: #FFF; font: 600 13px/1 'Inter', sans-serif; transition: background .12s;
}
.nk-tag-add-btn:hover { background: #1E293B; }
.nk-tag-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 26px 22px; border-top: 1px solid rgba(203,213,225,0.55); margin-top: 12px; }
.nk-tag-hint { font: 400 12.5px/18px 'Inter', sans-serif; color: #64748B; }
.nk-tag-foot-btns { display: inline-flex; align-items: center; gap: 10px; }
.nk-tag-save { height: 40px; padding: 0 22px; border-radius: 12px; font-size: 14px; }

/* ---------- Jobs list: filter by company tag, from the Role header ---------- */
.nk-th-filter-row { display: inline-flex; align-items: center; gap: 8px; }
.nk-filter-btn {
    all: unset; cursor: pointer; position: relative; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px;
    border: 1px solid rgba(148,163,184,0.5); background: rgba(255,255,255,0.55); color: #64748B; box-sizing: border-box;
}
.nk-filter-btn svg { width: 13px; height: 13px; }
.nk-filter-btn:hover, .nk-filter-btn.is-open { background: #FFFFFF; border-color: #8AC9FF; color: #007EE8; }
.nk-filter-btn.is-active { background: linear-gradient(180deg,#0B90F3 0%,#007EE8 100%); color: #FFF; border-color: #8AC9FF; }
.nk-filter-btn:focus-visible { outline: 2px solid #8AC9FF; outline-offset: 2px; }
.nk-filter-count {
    position: absolute; top: -7px; right: -7px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; box-sizing: border-box;
    background: #0F172A; color: #FFF; font: 700 10px/16px 'Inter', sans-serif; text-align: center; text-transform: none; letter-spacing: 0;
}
.nk-filter-pop {
    position: fixed; z-index: 1300; width: 320px; padding: 8px; border-radius: 16px; background: rgba(255,255,255,0.96); border: 1px solid rgba(255,255,255,0.9);
    box-shadow: 0 18px 50px rgba(15,23,42,0.22), 0 0 0 1px rgba(148,163,184,0.25); backdrop-filter: blur(10px); display: none;
    font: 500 13px/18px 'Inter', sans-serif; color: #0F172A; text-transform: none; letter-spacing: 0;
}
.nk-filter-pop.is-open { display: block; }
.nk-filter-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px 8px; }
.nk-filter-head strong { font: 600 13px/18px 'Inter', sans-serif; }
.nk-filter-list { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 0 2px; }
.nk-filter-group { display: flex; flex-direction: column; gap: 1px; }
.nk-filter-group-title { padding: 6px 8px 4px; font: 600 10.5px/14px 'Inter', sans-serif; color: #94A3B8; text-transform: uppercase; letter-spacing: 0.08em; }
.nk-filter-group + .nk-filter-group { border-top: 1px solid rgba(203,213,225,0.5); padding-top: 6px; }
.nk-filter-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; cursor: pointer; }
.nk-filter-row:hover { background: rgba(226,232,240,0.5); }
.nk-filter-row input { width: 16px; height: 16px; margin: 0; accent-color: #007EE8; cursor: pointer; flex: none; }
.nk-filter-name { flex: 1; min-width: 0; display: flex; align-items: center; }
.nk-filter-name .nk-tag { max-width: 200px; }
.nk-filter-n { font: 500 12px/16px 'Inter', sans-serif; color: #64748B; flex: none; }
.nk-filter-foot { padding: 8px 10px 4px; font: 400 12px/16px 'Inter', sans-serif; color: #64748B; border-top: 1px solid rgba(203,213,225,0.55); margin-top: 6px; }
.nk-filter-pop .nk-tag-none { display: block; padding: 8px 10px; }
.nk-link-btn { all: unset; cursor: pointer; color: #007EE8; font: 600 12px/16px 'Inter', sans-serif; }
.nk-link-btn:hover { text-decoration: underline; }
.nk-empty .nk-link-btn { font-size: 13px; margin-left: 4px; }

/* ---------- Jobs list: one Open button and a menu for the rest ---------- */
.nk-row-actions-compact { flex-wrap: nowrap; align-items: center; gap: 8px; }
.nk-kebab { all: unset; cursor: pointer; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid rgba(148,163,184,0.5); background: rgba(255,255,255,0.55); color: #475569; }
.nk-kebab svg { width: 18px; height: 18px; }
.nk-kebab:hover, .nk-kebab.is-open { background: #FFFFFF; border-color: #8AC9FF; color: #007EE8; }
.nk-kebab:focus-visible { outline: 2px solid #8AC9FF; outline-offset: 2px; }
.nk-menu { position: fixed; z-index: 1300; min-width: 280px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,0.96); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 18px 50px rgba(15,23,42,0.22), 0 0 0 1px rgba(148,163,184,0.25); backdrop-filter: blur(10px); display: none; }
.nk-menu.is-open { display: block; }
.nk-menu-item { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 11px; color: #0F172A; }
.nk-menu-item svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: #64748B; }
.nk-menu-item span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nk-menu-item strong { font: 600 13px/18px 'Inter', sans-serif; }
.nk-menu-item small { font: 400 11.5px/16px 'Inter', sans-serif; color: #64748B; }
.nk-menu-item:hover, .nk-menu-item:focus-visible { background: #EAF5FF; }
.nk-menu-item:hover strong, .nk-menu-item:focus-visible strong, .nk-menu-item:hover svg, .nk-menu-item:focus-visible svg { color: #007EE8; }
.nk-menu-item.is-danger strong, .nk-menu-item.is-danger svg { color: #B91C1C; }
.nk-menu-item[disabled] { cursor: not-allowed; opacity: 0.55; }
.nk-menu-item[disabled]:hover { background: transparent; }

/* ---------- Bulk Download (/bulk-download) ---------- */
.bd-search { display: flex; flex-direction: column; gap: 18px; }
.bd-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.bd-hint { font: 400 12px/16px 'Inter', sans-serif; color: #64748B; margin-top: -2px; }
.bd-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bd-form-foot .nk-actions { margin-left: auto; }
.bd-form-msg { margin: 0; font: 500 13px/18px 'Inter', sans-serif; color: #B91C1C; min-height: 18px; }
.bd-start { padding: 36px 18px; text-align: center; font: 500 14px/22px 'Inter', sans-serif; color: #64748B; border: 1px dashed rgba(148,163,184,0.6); border-radius: 18px; background: rgba(255,255,255,0.3); }
.bd-start strong { display: block; font-size: 16px; color: #0F172A; margin-bottom: 4px; }
.bd-start[hidden], .bd-results[hidden], .bd-actionbar[hidden] { display: none !important; }
.bd-results { display: flex; flex-direction: column; gap: 14px; }
.bd-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bd-results-head h3 { margin: 0; font: 600 18px/26px 'Inter', sans-serif; color: #0F172A; }
.bd-sort { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/18px 'Inter', sans-serif; color: #475569; }
.bd-sort .pjd-select { height: 38px; min-width: 190px; }
.bd-table th, .bd-nowrap { white-space: nowrap; }
.bd-table td { vertical-align: middle; }
.bd-table td:nth-child(3) { min-width: 160px; max-width: 240px; }
.bd-table td:nth-child(5) { min-width: 200px; max-width: 320px; }
.bd-table tr.is-picked td { background: rgba(219,234,254,0.55); }
.bd-skills { display: flex; flex-wrap: wrap; gap: 4px; }
.bd-skill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: #F1F5F9; color: #334155; font: 500 12px/18px 'Inter', sans-serif; }
.bd-skill.is-hit { background: #DBEAFE; color: #1D4ED8; font-weight: 600; }
.bd-skill.is-more { background: transparent; color: #64748B; }
.bd-pager { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; padding: 4px 0 8px; }
.bd-pager .nk-mini { height: 32px; min-width: 32px; justify-content: center; }
.bd-gap { color: #94A3B8; padding: 0 2px; }
.bd-actionbar {
    position: sticky; bottom: 16px; z-index: 40; margin-top: 18px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 12px 16px 12px 20px; border-radius: 16px;
    background: rgba(255,255,255,0.92); border: 1px solid rgba(203,213,225,0.9);
    box-shadow: 0 12px 30px -12px rgba(15,23,42,0.3); backdrop-filter: blur(8px);
}
.bd-selected { font: 500 15px/20px 'Inter', sans-serif; color: #334155; }
.bd-selected strong { color: #0F172A; font-weight: 700; }
.bd-dialog { width: min(520px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 24px 26px; background: #FFFFFF; border-radius: 20px; box-shadow: 0 30px 80px rgba(15,23,42,0.25); font-family: 'Inter', sans-serif; }
.bd-dialog h2 { margin: 0; font: 600 20px/26px 'Inter', sans-serif; color: #0F172A; }
.bd-dialog-body p { margin: 0 0 8px; font: 400 14px/22px 'Inter', sans-serif; color: #334155; }
.bd-dialog-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.bd-dialog-foot .pjd-btn-next { height: 40px; font-size: 14px; text-decoration: none; }
.bd-unavail { margin: 0 0 10px; font: 400 13px/20px 'Inter', sans-serif; color: #475569; }
.bd-unavail summary { cursor: pointer; color: #007EE8; font-weight: 500; }
.bd-unavail ul { margin: 6px 0 0; padding-left: 18px; max-height: 180px; overflow-y: auto; }
.bd-error { color: #B91C1C !important; }
.bd-spin-dark { width: 14px; height: 14px; border-color: rgba(51,65,85,0.25); border-top-color: #334155; vertical-align: -2px; margin-right: 6px; }
.bd-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bd-steps li { position: relative; padding-left: 28px; font: 500 14px/20px 'Inter', sans-serif; color: #94A3B8; }
.bd-steps li::before { content: ''; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #CBD5E1; box-sizing: border-box; }
.bd-steps li.is-active { color: #0F172A; }
.bd-steps li.is-active::before { border-color: #007EE8; border-top-color: transparent; animation: nk-rot 0.8s linear infinite; }
.bd-steps li.is-done { color: #15803D; }
.bd-steps li.is-done::before { border-color: #16A34A; background: #16A34A; box-shadow: inset 0 0 0 3px #FFFFFF; }
.bd-steps li.is-failed { color: #B91C1C; }
.bd-steps li.is-failed::before { border-color: #DC2626; background: #DC2626; animation: none; box-shadow: inset 0 0 0 3px #FFFFFF; }
.bd-bar { height: 8px; border-radius: 999px; background: #E2E8F0; overflow: hidden; }
.bd-bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg,#0B90F3,#007EE8); transition: width .4s ease; }
.bd-bar span.is-failed { background: #DC2626; }
.bd-progress-msg { margin: 0; font: 400 14px/22px 'Inter', sans-serif; color: #334155; min-height: 22px; overflow-wrap: anywhere; }
.bd-file-link[hidden] { display: none !important; }
@media (max-width: 1100px) { .bd-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
    .bd-fields { grid-template-columns: 1fr; }
    .bd-form-foot .nk-actions, .bd-actionbar .nk-actions { width: 100%; }
    .bd-form-foot .nk-actions > *, .bd-actionbar .nk-actions > * { flex: 1; justify-content: center; }
    .bd-sort { width: 100%; }
    .bd-sort .pjd-select { flex: 1; min-width: 0; }
}

/* ---------- Bulk Download: sectioned search form ---------- */
.bd-form { display: flex; flex-direction: column; gap: 14px; }
.bd-card-title { margin: 0; font: 600 16px/22px 'Inter', sans-serif; color: #0F172A; }
.bd-sections { display: flex; flex-direction: column; gap: 10px; }
.bd-sec { border-radius: 16px; background: rgba(255,255,255,0.45); border: 1px solid rgba(203,213,225,0.75); box-shadow: inset 0 0 12px #FFFFFF; }
.bd-sec[open] { background: rgba(255,255,255,0.6); }
.bd-sec > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 14px 18px; cursor: pointer; border-radius: 16px; user-select: none; }
.bd-sec > summary::-webkit-details-marker { display: none; }
.bd-sec > summary:hover { background: rgba(255,255,255,0.55); }
.bd-sec > summary:focus-visible { outline: 2px solid #8AC9FF; outline-offset: 2px; }
.bd-sec-title { font: 600 15px/20px 'Inter', sans-serif; color: #0F172A; }
.bd-sec-count { padding: 2px 9px; border-radius: 999px; background: #DBEAFE; color: #1D4ED8; font: 600 12px/18px 'Inter', sans-serif; }
.bd-sec-count[hidden] { display: none; }
.bd-chev { margin-left: auto; width: 10px; height: 10px; border-right: 2px solid #64748B; border-bottom: 2px solid #64748B; transform: rotate(45deg); transition: transform .15s ease; margin-right: 4px; }
.bd-sec[open] .bd-chev { transform: rotate(-135deg); }
.bd-sec-body { display: flex; flex-direction: column; gap: 14px; padding: 4px 18px 18px; }
.bd-fields-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.bd-span-2 { grid-column: 1 / -1; }
.bd-jd { min-height: 150px; height: auto; resize: vertical; padding: 12px 14px; font: 400 14px/22px 'Inter', sans-serif; }
.bd-jd-status { margin: 0; font: 500 13px/18px 'Inter', sans-serif; color: #475569; min-height: 0; }
.bd-jd-status:empty { display: none; }
.bd-jd-status.is-busy::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border-radius: 50%; border: 2px solid rgba(51,65,85,0.25); border-top-color: #334155; animation: nk-rot 0.8s linear infinite; }
.bd-jd-status.is-warn { color: #92400E; }
.bd-jd-status.is-error { color: #B91C1C; }
.bd-jd-found { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(239,246,255,0.75); border: 1px solid #BFDBFE; }
.bd-jd-found[hidden] { display: none; }
.bd-jd-found-title { margin: 0; font: 600 14px/20px 'Inter', sans-serif; color: #1E3A8A; }
.bd-jd-found .bd-hint { margin: -6px 0 0; }
.bd-sec-actions { justify-content: flex-end; }
.bd-btn-accent { color: #007EE8; border-color: #8AC9FF; }
.bd-range { display: flex; align-items: center; gap: 8px; }
.bd-range .pjd-select { flex: 1; min-width: 0; }
.bd-range span { font: 500 13px/18px 'Inter', sans-serif; color: #64748B; }
.bd-check { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/20px 'Inter', sans-serif; color: #334155; cursor: pointer; }
.bd-check input { width: 16px; height: 16px; margin: 0; accent-color: #007EE8; cursor: pointer; }
.bd-check-row { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 10px; }
.bd-fieldset { border: 0; margin: 0; padding: 0; }
.bd-fieldset legend { padding: 0; margin-bottom: 0; font: 500 14px/20px 'Inter', sans-serif; color: #0F172A; }
.bd-chips { display: flex !important; flex-wrap: wrap; align-items: center; gap: 6px; height: auto !important; min-height: 44px; padding: 6px 10px !important; cursor: text; }
.bd-chips input { flex: 1; min-width: 140px; border: 0; outline: 0; background: transparent; font: 400 14px/22px 'Inter', sans-serif; color: #0F172A; padding: 4px 2px; }
.bd-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #DBEAFE; color: #1D4ED8; font: 600 13px/18px 'Inter', sans-serif; }
.bd-chip button { all: unset; cursor: pointer; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; line-height: 1; color: #1D4ED8; }
.bd-chip button:hover { background: rgba(29,78,216,0.12); }
.bd-form-end { display: flex; justify-content: flex-end; }
@media (max-width: 900px) { .bd-fields-2 { grid-template-columns: 1fr !important; } }
@media (max-width: 640px) {
    .bd-form-end .pjd-btn-next, .bd-sec-actions > * { flex: 1; justify-content: center; }
    .bd-sec-body { padding: 4px 14px 16px; }
}

/* Internal details (client, assessment round, resume-bank search): HireXA only */
.nk-internal-pill { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #F1F5F9; color: #475569; font: 600 11px/16px 'Inter', sans-serif; white-space: nowrap; }
.nk-internal-note { margin: 10px 0 0; color: #64748B; font-size: 12px; line-height: 18px; }
.nk-label-info { display: inline-flex; align-items: center; gap: 4px; }
.nk-label-info .nk-info { width: 16px; height: 16px; font-size: 10px; margin-left: 2px; }
.nk-internal-card .pjd-row-2 { align-items: end; }
.nk-internal-card .pjd-field label { line-height: 18px; }
/* Internal Details (Step 1): three equal columns, labels on one top line, the
   three boxes on one line whatever the label lengths. Each field is a subgrid
   over three shared rows (label / control / hint), so the label row is as tall
   as the longest label and every control starts on the same line; the Client
   Name hint sits in the third row and never pushes anything. Older browsers
   without subgrid get a fixed two-line label area instead. */
.nk-internal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto auto auto;
    column-gap: 16px; row-gap: 0; align-items: start; }
.nk-internal-grid > .pjd-field { display: grid; grid-row: span 3; grid-template-rows: subgrid; row-gap: 8px; align-content: start; }
.nk-internal-grid > .pjd-field > label { align-self: start; margin: 0; display: block; }
.nk-internal-grid > .pjd-field > label.nk-label-info { display: block; }
.nk-internal-grid > .pjd-field > label.nk-label-info .nk-info { display: inline-grid; vertical-align: -3px; }
.nk-internal-grid > .pjd-field > .pjd-input, .nk-internal-grid > .pjd-field > .pjd-cselect,
.nk-internal-grid > .pjd-field > select { align-self: start; }
.nk-internal-grid > .pjd-field > .nk-client-hint { margin-top: 0; }
@supports not (grid-template-rows: subgrid) {
    .nk-internal-grid > .pjd-field { display: flex; flex-direction: column; gap: 8px; }
    .nk-internal-grid > .pjd-field > label { min-height: 36px; }
}
@media (max-width: 900px) {
    .nk-internal-grid { grid-template-columns: minmax(0, 1fr); row-gap: 16px; grid-template-rows: none; }
    .nk-internal-grid > .pjd-field { grid-row: auto; grid-template-rows: none; display: flex; flex-direction: column; gap: 8px; }
}
.nk-details-card.nk-internal-card { margin-top: 16px; }
.nk-client-hint { display: block; margin-top: 4px; color: #64748B; font-size: 12px; line-height: 16px; min-height: 16px; }
