/* ==========================================================================
   WBL ATS — sistem desain
   Palet diambil dari referensi dashboard: latar biru penuh, satu kartu putih
   membulat mengambang di atasnya, sidebar biru di dalam kartu.
   ========================================================================== */

:root {
    /* Biru merek */
    --blue:          #2D69CB;
    --blue-sidebar:  #2363C7;
    --blue-deep:     #1E5099;
    --blue-hover:    #E5EEFD;
    --blue-soft:     #F1F5FE;

    /* Netral */
    --surface:       #FFFFFF;
    --muted:         #F1F1F9;
    --line:          #E6E8F0;
    --ink:           #1F2937;
    --ink-soft:      #6B7280;
    --ink-faint:     #9CA3AF;

    /* Status */
    --green:  #16A34A;
    --amber:  #F59E0B;
    --red:    #DC2626;
    --violet: #8B5CF6;
    --teal:   #14B8A6;

    /* Bentuk */
    --r-card:  22px;
    --r-panel: 16px;
    --r-pill:  999px;
    --shadow:  0 18px 40px rgba(23, 60, 122, .18);
    --shadow-sm: 0 2px 8px rgba(23, 60, 122, .07);

    --sidebar-w:  216px;
    --topbar-h:   78px;
    --r-sidebar:  34px;
}

* { box-sizing: border-box; }

/* Ukuran dasar ikon sebaris dari helper icon(). */
.ico { width: 16px; height: 16px; flex: 0 0 auto; vertical-align: -.15em; }
.ico-lg { width: 26px; height: 26px; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background: var(--blue);
    color: var(--ink);
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* --- Kerangka: kartu putih mengambang di atas latar biru ------------------ */

.app {
    max-width: 1360px;
    margin: 0 auto;
    padding: 26px 24px;
}

/* Susunan mengikuti referensi: topbar putih membentang penuh di atas, lalu
   sidebar biru menggantung di bawahnya dengan sudut kanan-atas membulat. */
.app-shell {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-height: calc(100vh - 52px);
}

.shell-body {
    display: grid;
    grid-template-columns: var(--sidebar-w) 1fr;
    flex: 1 1 auto;
    min-height: 0;
}

/* --- Sidebar ------------------------------------------------------------- */

.sidebar {
    background: var(--blue-sidebar);
    color: #fff;
    border-top-right-radius: var(--r-sidebar);
    padding: 20px 14px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    padding-right: 6px;
    color: var(--blue-deep);
}
.topbar-brand:hover { text-decoration: none; }
.topbar-brand img { display: block; height: 52px; width: auto; }
.topbar-brand .name { font-weight: 700; font-size: 17px; color: var(--blue); letter-spacing: -.2px; }
/* Logo WBL bertinta navy + emas, jadi di atas latar biru ia harus berdiri di
   pelat putih agar tetap terbaca. */
.brand-plate {
    background: #fff;
    border-radius: 10px;
    padding: 7px 10px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(12, 40, 90, .16);
}
.brand-plate img { display: block; width: 100%; height: auto; }

.btn-cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff;
    color: var(--blue-sidebar);
    font-weight: 600;
    border: 0;
    border-radius: var(--r-pill);
    padding: 11px 16px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(12, 40, 90, .18);
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn-cta:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(12, 40, 90, .24); text-decoration: none; }
.btn-cta svg { width: 16px; height: 16px; flex: 0 0 16px; }

.nav { display: flex; flex-direction: column; gap: 2px; }

.nav-label {
    font-size: 10px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    opacity: .6;
    padding: 14px 12px 6px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 12px;
    border-radius: 10px;
    color: rgba(255,255,255,.82);
    font-size: 13.5px;
    transition: background .14s ease, color .14s ease;
}
.nav-item:hover { background: rgba(255,255,255,.12); color: #fff; text-decoration: none; }
.nav-item.is-active { background: var(--blue-deep); color: #fff; font-weight: 600; }
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .9; }
.nav-item .badge-count {
    margin-left: auto;
    background: rgba(255,255,255,.22);
    border-radius: var(--r-pill);
    font-size: 11px;
    padding: 1px 7px;
}

.sidebar-foot {
    margin-top: auto;
    border-top: 1px solid rgba(255,255,255,.18);
    padding-top: 14px;
    font-size: 11.5px;
    opacity: .8;
}
.sidebar-foot .meter {
    height: 4px; border-radius: 4px;
    background: rgba(255,255,255,.25);
    margin: 7px 0 4px;
    overflow: hidden;
}
.sidebar-foot .meter span { display: block; height: 100%; background: #fff; border-radius: 4px; }

/* --- Topbar -------------------------------------------------------------- */

.topbar {
    height: var(--topbar-h);
    flex: 0 0 var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    background: var(--surface);
}

.search {
    position: relative;
    flex: 1 1 auto;
    max-width: 420px;
}
.search svg {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 15px; height: 15px; color: var(--ink-faint);
}
.search input {
    width: 100%;
    border: 0;
    background: var(--muted);
    border-radius: var(--r-pill);
    padding: 10px 16px 10px 38px;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    transition: box-shadow .14s ease;
}
.search input::placeholder { color: var(--ink-faint); }
.search input:focus { box-shadow: 0 0 0 3px rgba(45,105,203,.18); }

.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.icon-btn {
    width: 36px; height: 36px;
    display: grid; place-items: center;
    border: 0; background: transparent;
    border-radius: 50%;
    color: var(--ink-soft);
    cursor: pointer;
    position: relative;
    transition: background .14s ease, color .14s ease;
}
.icon-btn:hover { background: var(--muted); color: var(--blue); text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .dot {
    position: absolute; top: 7px; right: 8px;
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red); border: 2px solid #fff;
}

.user-chip {
    display: flex; align-items: center; gap: 9px;
    padding: 4px 6px 4px 12px;
    border-radius: var(--r-pill);
    color: var(--ink);
    transition: background .14s ease;
}
.user-chip:hover { background: var(--muted); text-decoration: none; }
.user-chip .who { text-align: right; line-height: 1.15; }
.user-chip .who b { font-size: 13px; font-weight: 600; display: block; }
.user-chip .who small { font-size: 11px; color: var(--ink-faint); }
.avatar {
    width: 34px; height: 34px; flex: 0 0 34px;
    border-radius: 50%;
    background: var(--blue-deep);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 13px;
}

/* Dropdown user */
.dropdown { position: relative; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    min-width: 200px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 6px;
    display: none;
    z-index: 40;
}
.dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu a, .dropdown-menu button {
    display: flex; align-items: center; gap: 9px;
    width: 100%;
    padding: 9px 11px;
    border: 0; background: none;
    border-radius: 8px;
    font: inherit; color: var(--ink);
    text-align: left; cursor: pointer;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--blue-soft); text-decoration: none; }
.dropdown-menu svg { width: 15px; height: 15px; color: var(--ink-soft); }
.dropdown-menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 0; }

/* --- Area konten --------------------------------------------------------- */

.content { padding: 24px 26px 34px; overflow-x: auto; }

.page-head {
    display: flex; align-items: center; gap: 14px;
    margin-bottom: 20px; flex-wrap: wrap;
}
.page-title {
    font-size: 26px; font-weight: 700; color: var(--blue);
    margin: 0; letter-spacing: -.3px;
    display: flex; align-items: center; gap: 12px;
}
.page-title .chip {
    width: 38px; height: 38px; flex: 0 0 38px;
    border-radius: 11px;
    background: var(--blue); color: #fff;
    display: grid; place-items: center;
}
.page-title .chip .ico { width: 19px; height: 19px; }
.page-sub { color: var(--ink-soft); font-size: 13px; margin: 2px 0 0; }
.page-head .spacer { margin-left: auto; }

.section-title {
    display: flex; align-items: center; gap: 9px;
    font-size: 13px; font-weight: 700; letter-spacing: .8px;
    text-transform: uppercase; color: var(--ink);
    margin: 30px 0 14px;
}
.section-title::before {
    content: ""; width: 3px; height: 14px; border-radius: 3px;
    background: var(--blue); flex: 0 0 3px;
}
.section-title:first-child { margin-top: 0; }
/* Judul di dalam kartu tak perlu aksen garis. */
.card > .section-title:first-child { margin-top: 0; }
.card .section-title::before { display: none; }
.card .section-title { gap: 0; }

/* --- Komponen umum ------------------------------------------------------- */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    padding: 18px;
    box-shadow: var(--shadow-sm);
}
.card.is-blue { background: var(--blue-sidebar); border-color: transparent; color: #fff; }
.card.is-blue .stat-label, .card.is-blue .stat-hint { color: rgba(255,255,255,.78); }

.grid { display: grid; gap: 16px; }
/* Tanpa ini kolom grid tidak mau menyusut di bawah lebar isinya, sehingga
   tabel/teks yang tidak boleh membungkus mendorong kolom keluar kartu. */
.grid > * { min-width: 0; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
/* Dua kolom tak seimbang: tabel di kiri butuh lebih lebar daripada panel kanan. */
.grid-wide { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }

.stat-label { font-size: 11px; letter-spacing: .9px; text-transform: uppercase; color: var(--ink-faint); }
.stat-value { font-size: 27px; font-weight: 700; line-height: 1.2; margin-top: 6px; }
.stat-hint  { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.btn {
    display: inline-flex; align-items: center; gap: 7px;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 9px 15px;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    transition: background .14s ease, box-shadow .14s ease, transform .1s ease;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 15px; height: 15px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-ghost { background: var(--muted); color: var(--ink); }
.btn-ghost:hover { background: var(--blue-hover); color: var(--blue-deep); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.btn-danger { background: var(--red); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px;
    border-radius: var(--r-pill);
    font-size: 11.5px; font-weight: 600;
    background: var(--muted); color: var(--ink-soft);
    white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: currentColor; }

/* Baris agenda / daftar ringkas di dalam kartu */
.list-row {
    display: flex; gap: 12px; align-items: center;
    padding: 11px 12px; border-radius: 10px;
    color: inherit; text-decoration: none;
}
.list-row:hover { background: var(--blue-hover); text-decoration: none; }
.list-row .body { min-width: 0; flex: 1 1 auto; }
.list-row .body b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .body small { display: block; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .day {
    flex: 0 0 52px; text-align: center;
    background: var(--blue-soft); border-radius: 10px; padding: 6px 0;
}
.list-row .day b { display: block; font-size: 17px; color: var(--blue-deep); }
.list-row .day small { color: var(--ink-soft); font-size: 10.5px; }
.list-row .tail { margin-left: auto; text-align: right; }
.list-row .tail b { display: block; font-size: 17px; color: var(--blue); }
.list-row .tail small { color: var(--ink-faint); }
.badge-blue   { background: var(--blue-hover);        color: var(--blue-deep); }
.badge-green  { background: rgba(22,163,74,.12);      color: #15803D; }
.badge-amber  { background: rgba(245,158,11,.14);     color: #B45309; }
.badge-red    { background: rgba(220,38,38,.11);      color: #B91C1C; }
.badge-violet { background: rgba(139,92,246,.13);     color: #6D28D9; }
.badge-gray   { background: var(--muted);             color: var(--ink-soft); }

/* --- Tabel --------------------------------------------------------------- */

.table-wrap { overflow-x: auto; border-radius: var(--r-panel); border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data thead th {
    text-align: left;
    font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ink-faint); font-weight: 700;
    padding: 12px 13px;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}
table.data tbody td { padding: 13px 13px; border-bottom: 1px solid #F3F4F8; vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--blue-hover); }
table.data tbody tr[data-href] { cursor: pointer; }
table.data tbody tr[data-href]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; background: var(--blue-hover); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data td small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 138px; }
/* Tabel selebar halaman punya ruang lebih, jadi pemotongan teksnya boleh longgar. */
table.data.roomy td small { max-width: 260px; }

/* Papan ringkas pipeline di dashboard */
.stage-strip { display: flex; gap: 8px; overflow-x: auto; padding: 12px; }
.stage-chip {
    /* 8 tahap harus muat di lebar dashboard biasa; lebih sempit baru bergeser. */
    flex: 1 1 0; min-width: 96px;
    display: flex; flex-direction: column; justify-content: space-between;
    border: 1px solid var(--line); border-top-width: 3px;
    border-radius: 12px; padding: 12px 13px;
    background: #fff; color: inherit; text-decoration: none;
    transition: box-shadow .14s ease, transform .1s ease, border-color .14s ease;
}
.stage-chip:hover { text-decoration: none; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
/* Label boleh membungkus dua baris — tak pernah terpotong tiga titik. */
.stage-chip .label {
    font-size: 10.5px; line-height: 1.3; letter-spacing: .4px; text-transform: uppercase;
    color: var(--ink-faint); font-weight: 600;
    min-height: 27px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.stage-chip .count { font-size: 22px; font-weight: 700; color: var(--ink); margin-top: 8px; }

.empty {
    text-align: center; padding: 48px 24px; color: var(--ink-soft);
}
/* Hanya ikon besar di atas judul — ikon di dalam tombol aksi tetap kecil. */
.empty > svg { width: 46px; height: 46px; color: var(--blue); opacity: .5; margin-bottom: 12px; }
.empty b { color: var(--ink); font-size: 15px; }
.empty .empty-sub { font-size: 13px; margin-top: 4px; }
.empty .btn { margin-top: 18px; }
.btn-cta-empty { padding: 10px 18px; font-size: 13.5px; }
.btn-cta-empty .ico { width: 16px; height: 16px; }
/* Empty state di dalam kartu kecil (dashboard) lebih ringkas. */
.empty.mini { padding: 30px 16px; }
.empty.mini > svg { width: 36px; height: 36px; }

/* --- Form ---------------------------------------------------------------- */

.form-row { margin-bottom: 15px; }
.form-row label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-row .hint { font-size: 11.5px; color: var(--ink-faint); margin-top: 4px; }
.req { color: var(--red); font-weight: 700; }

/* Formulir sebaris di dalam sel tabel. Tanpa flex-basis, input ber-width:100%
   menyusut sampai nyaris hilang ketika kolomnya sempit. */
.row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-form .form-control { flex: 1 1 150px; min-width: 130px; width: auto; }
.row-form label { white-space: nowrap; font-size: 12px; display: flex; gap: 5px; align-items: center; }
.row-form .btn { flex: 0 0 auto; }
.form-control {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 13px;
    font: inherit; font-size: 13.5px;
    color: var(--ink);
    background: #fff;
    outline: none;
    transition: border-color .14s ease, box-shadow .14s ease;
}
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(45,105,203,.15); }
textarea.form-control { min-height: 110px; resize: vertical; }
.is-invalid { border-color: var(--red); }
.invalid-text { color: var(--red); font-size: 11.5px; margin-top: 4px; }

/* --- Alert --------------------------------------------------------------- */

.alert {
    display: flex; gap: 10px; align-items: flex-start;
    border-radius: 12px; padding: 12px 15px; margin-bottom: 16px; font-size: 13px;
}
.alert svg { width: 17px; height: 17px; flex: 0 0 17px; margin-top: 1px; }
.alert-success { background: rgba(22,163,74,.10);  color: #14532D; }
.alert-error   { background: rgba(220,38,38,.09);  color: #7F1D1D; }
.alert-info    { background: var(--blue-hover);    color: var(--blue-deep); }

/* --- Responsif ----------------------------------------------------------- */

@media (max-width: 1180px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-wide { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .app { padding: 0; }
    .app-shell { border-radius: 0; min-height: 100vh; }
    .shell-body { grid-template-columns: 1fr; }
    .sidebar {
        position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 60;
        transform: translateX(-100%); transition: transform .22s ease;
        border-radius: 0;
    }
    .topbar-brand .name { display: none; }
    .topbar-brand img { height: 42px; }
    body.nav-open .sidebar { transform: none; }
    body.nav-open::after {
        content: ""; position: fixed; inset: 0; background: rgba(15,35,70,.45); z-index: 50;
    }
    .nav-toggle { display: grid !important; }
    .search { max-width: none; }
    .user-chip .who { display: none; }
    .grid-4, .grid-3, .grid-2, .grid-wide { grid-template-columns: 1fr; }
    .content { padding: 18px 16px 28px; }
    .topbar { padding: 0 14px; gap: 8px; }
}

.nav-toggle { display: none; }

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

body.auth { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-card {
    width: 100%; max-width: 400px;
    background: #fff;
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    padding: 34px 32px;
}
.auth-card .brand { display: flex; align-items: center; gap: 11px; margin-bottom: 22px; }
.auth-card .brand { flex-direction: column; align-items: flex-start; gap: 12px; }
.auth-card .brand img { height: 92px; width: auto; display: block; }
.auth-card h1 { font-size: 20px; margin: 0 0 4px; color: var(--blue); }
.auth-card p.lead { color: var(--ink-soft); font-size: 13px; margin: 0 0 22px; }
.auth-card .btn { width: 100%; justify-content: center; padding: 11px; }


/* ==========================================================================
   Portal karir (publik) — tanpa akun, pelamar cukup kirim data lalu melacak
   memakai nomor lamaran + email yang dikirim ke inbox mereka.
   ========================================================================== */

body.public { background: #F6F8FC; }

.pub-header {
    background: var(--blue);
    color: #fff;
}
.pub-header .bar {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; gap: 14px;
    padding: 16px 22px;
}
.pub-brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.pub-brand:hover { text-decoration: none; }
.pub-brand .brand-plate { padding: 6px 9px; }
.pub-brand .brand-plate img { width: auto; height: 56px; }
.pub-brand b { display: block; font-size: 15px; line-height: 1.15; }
.pub-brand small { display: block; font-size: 11px; opacity: .8; }
.pub-nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pub-nav a {
    color: #fff; font-size: 13.5px; font-weight: 500;
    padding: 8px 14px; border-radius: var(--r-pill);
}
.pub-nav a:hover { background: rgba(255,255,255,.15); text-decoration: none; }
.pub-nav a.solid { background: #fff; color: var(--blue); font-weight: 600; }
.pub-nav a.solid:hover { background: rgba(255,255,255,.9); }
/* Tautan masuk HRD: subtil, dipisah garis, bukan untuk pelamar umum. */
.pub-nav a.pub-login {
    display: inline-flex; align-items: center; gap: 6px;
    color: rgba(255,255,255,.72); font-size: 12.5px; font-weight: 500;
    border-left: 1px solid rgba(255,255,255,.28); border-radius: 0;
    padding-left: 16px; margin-left: 4px;
}
.pub-nav a.pub-login:hover { background: transparent; color: #fff; text-decoration: none; }
.pub-nav a.pub-login .ico { width: 15px; height: 15px; }
@media (max-width: 600px) { .pub-nav a.pub-login span, .pub-nav a.pub-login { font-size: 0; } .pub-nav a.pub-login .ico { width: 18px; height: 18px; } }

.pub-hero {
    background: var(--blue);
    color: #fff;
    padding: 26px 22px 62px;
    text-align: center;
}
.pub-hero h1 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.4px; }
.pub-hero p { margin: 0 auto; max-width: 620px; opacity: .88; font-size: 14.5px; }

.pub-main { max-width: 1100px; margin: -44px auto 60px; padding: 0 22px; }

.pub-panel {
    background: #fff;
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
    padding: 22px;
}

.pub-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.pub-filters .form-row { margin-bottom: 0; flex: 1 1 190px; }

.job-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--r-panel);
    padding: 17px 19px;
    color: inherit;
    transition: border-color .14s ease, box-shadow .14s ease, transform .1s ease;
}
.job-card:hover {
    text-decoration: none;
    border-color: var(--blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.job-card h3 { margin: 0 0 4px; font-size: 16.5px; color: var(--blue-deep); }
.job-card .meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.job-card .excerpt {
    color: var(--ink-soft); font-size: 13px; margin: 8px 0 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.pub-foot {
    text-align: center; color: var(--ink-faint); font-size: 12.5px;
    padding: 22px; max-width: 1100px; margin: 0 auto;
}

/* Detail lowongan & formulir */
.pub-body { white-space: pre-line; font-size: 14px; line-height: 1.7; }
.pub-body-title {
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--ink-faint); font-weight: 700; margin: 22px 0 8px;
}

.step-list { display: flex; flex-direction: column; gap: 0; }
.step {
    display: flex; gap: 13px; padding: 0 0 20px; position: relative;
}
.step:last-child { padding-bottom: 0; }
.step .bullet {
    flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--muted); color: var(--ink-faint);
    font-size: 12px; font-weight: 700; z-index: 1;
}
.step.done .bullet { background: var(--green); color: #fff; }
.step.now  .bullet { background: var(--blue); color: #fff; box-shadow: 0 0 0 4px var(--blue-hover); }
.step.fail .bullet { background: var(--red); color: #fff; }
.step:not(:last-child)::before {
    content: ""; position: absolute; left: 13px; top: 26px; bottom: 0;
    width: 2px; background: var(--line);
}
.step.done:not(:last-child)::before { background: var(--green); }
.step .txt b { display: block; font-size: 14px; }
.step .txt small { color: var(--ink-soft); }

@media (max-width: 720px) {
    .pub-hero h1 { font-size: 23px; }
    .pub-nav a { padding: 7px 10px; font-size: 12.5px; }
    .pub-panel { padding: 16px; }
}
/* HP: nama perusahaan sudah tertulis di logo, jadi teksnya disembunyikan
   supaya menu muat dan halaman tidak tergeser ke samping. */
@media (max-width: 600px) {
    .pub-header .bar { gap: 8px; padding: 12px 16px; }
    .pub-brand .brand-plate img { height: 42px; }
    .pub-brand > span:not(.brand-plate) { display: none; }
    .pub-nav { gap: 4px; }
    .pub-nav a { padding: 6px 9px; white-space: nowrap; }
}


/* --- Beranda: alur rekrutmen & ajakan melacak -----------------------------
   Nama tahap datang dari master data, jadi jumlah kartunya bisa berubah.
   Grid auto-fit dipakai supaya berapa pun tahapnya tetap tersusun rapi.
   ------------------------------------------------------------------------- */

.flow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
    gap: 14px;
}

.flow-step {
    position: relative;
    background: var(--blue-soft);
    border: 1px solid transparent;
    border-radius: var(--r-panel);
    padding: 15px 14px 14px;
}

.flow-step .no {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: 13px;
    margin-bottom: 10px;
}

.flow-step b { display: block; font-size: 14.5px; color: var(--ink); }
.flow-step small { display: block; color: var(--ink-soft); font-size: 12.5px; margin-top: 4px; line-height: 1.55; }

/* Garis penyambung antar langkah, hanya saat kartunya sebaris. */
.flow-step::after {
    content: "";
    position: absolute; top: 31px; right: -14px;
    width: 14px; height: 2px;
    background: var(--line);
}
.flow-step:last-child::after { display: none; }
.flow-step b { font-size: 13.5px; }
.flow-step small { font-size: 12px; }

@media (max-width: 700px) {
    .flow-step::after { display: none; }
}

.cta-band {
    display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--blue-sidebar);
    color: #fff;
    border-radius: var(--r-card);
    padding: 24px 26px;
    margin-top: 30px;
}
.cta-band h2 { margin: 0 0 4px; font-size: 19px; }
.cta-band p { margin: 0; opacity: .85; font-size: 13.5px; max-width: 560px; }
.cta-band .btn { margin-left: auto; background: #fff; color: var(--blue-deep); }
.cta-band .btn:hover { background: rgba(255,255,255,.9); }

@media (max-width: 700px) {
    .cta-band .btn { margin-left: 0; width: 100%; justify-content: center; }
}


/* --- Papan pipeline (kanban) ---------------------------------------------- */
.board {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 10px;
    align-items: flex-start;
}
.board-col {
    flex: 0 0 236px;
    background: var(--blue-soft);
    border-radius: var(--r-panel);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 240px);
}
.board-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px;
    font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
    color: var(--ink);
    border-top: 3px solid var(--blue);
    border-top-left-radius: var(--r-panel);
    border-top-right-radius: var(--r-panel);
    background: #fff;
}
.board-count {
    background: var(--blue-hover); color: var(--blue-deep);
    border-radius: var(--r-pill); font-size: 11px; padding: 1px 9px;
}
.board-body { padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 9px; min-height: 90px; }
/* Placeholder kolom kosong: tanda putus-putus halus, bukan garis "—" kriptik. */
.board-empty {
    flex: 1; display: flex; align-items: center; justify-content: center;
    color: var(--ink-faint); font-size: 12px;
    border: 1.5px dashed var(--line); border-radius: 10px;
    min-height: 60px;
}
.board-card {
    display: block; background: #fff; border: 1px solid var(--line);
    border-radius: 11px; padding: 11px 12px; color: inherit;
    transition: box-shadow .12s ease, transform .1s ease, border-color .12s ease;
}
.board-card:hover {
    text-decoration: none; border-color: var(--blue);
    box-shadow: var(--shadow-sm); transform: translateY(-1px);
}
.board-card .badge .ico { width: 11px; height: 11px; }


/* --- Badge skor potensi kandidat ------------------------------------------ */
.pot {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; font-weight: 700;
    padding: 2px 9px; border-radius: var(--r-pill);
    white-space: nowrap;
}
.pot-high { background: rgba(22,163,74,.13);  color: #15803D; }
.pot-mid  { background: rgba(245,158,11,.15); color: #B45309; }
.pot-low  { background: rgba(100,116,139,.15); color: #475569; }
.pot-prelim { background: var(--blue-hover);  color: var(--blue-deep); }
.pot-none { background: var(--muted);         color: var(--ink-faint); }

/* Meter rincian komponen */
.pot-bar { height: 8px; background: var(--muted); border-radius: 6px; overflow: hidden; }
.pot-bar span { display: block; height: 100%; background: var(--blue); border-radius: 6px; }


/* Pemilih rating bintang. Urutan DOM dibalik (row-reverse) supaya hover satu
   bintang ikut menyalakan bintang di kirinya lewat selektor sibling. */
.star-pick { display:flex; flex-direction:row-reverse; justify-content:flex-end; gap:3px; }
.star-btn { background:none; border:0; cursor:pointer; font-size:22px; line-height:1; color:var(--line); padding:0; transition:color .1s; }
.star-btn.on { color:#F59E0B; }
.star-pick .star-btn:hover, .star-pick .star-btn:hover ~ .star-btn { color:#F59E0B; }


/* Menu ringkas (details/summary) di kepala halaman */
.inline-menu { position: relative; }
.inline-menu > summary { list-style: none; cursor: pointer; }
.inline-menu > summary::-webkit-details-marker { display: none; }
.inline-pop {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 30;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); padding: 14px; width: 260px;
}


/* --- Master data: baris tampil vs baris edit (klik-untuk-edit) ------------- */
tr.edit-row { display: none; background: var(--blue-soft); }
tr.edit-row.open { display: table-row; }
tr.view-row.editing { display: none; }
.edit-row td { padding: 16px !important; }
.edit-panel { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.edit-panel .form-row { margin: 0; }
.edit-panel .form-row label { font-size: 11px; color: var(--ink-soft); }
.edit-panel .form-control { width: auto; }
.btn-icon-only {
    display: inline-grid; place-items: center; width: 34px; height: 34px;
    border: 1px solid var(--line); background: #fff; border-radius: 9px;
    color: var(--ink-soft); cursor: pointer;
}
.btn-icon-only:hover { border-color: var(--blue); color: var(--blue); }


/* --- Drag-and-drop urutan tahapan ----------------------------------------- */
.drag-handle { cursor: grab; color: var(--ink-faint); width: 34px; text-align: center; }
.drag-handle:hover { color: var(--blue); }
.drag-handle:active { cursor: grabbing; }
tbody.drag-group { transition: background .12s ease; }
tbody.drag-group[draggable="true"] { background: var(--blue-soft); }
/* Baris tetap utuh saat tabel multi-tbody */
table.data tbody.drag-group + tbody.drag-group .view-row td { border-top: 1px solid #F3F4F8; }


/* --- Afordance scroll papan pipeline -------------------------------------- */
.board-scroll { position: relative; }

/* Gradasi memudar di tepi: penanda masih ada kolom lain. Muncul hanya bila
   memang bisa di-scroll ke arah itu. */
.board-scroll::before, .board-scroll::after {
    content: ""; position: absolute; top: 42px; bottom: 10px; width: 46px;
    pointer-events: none; z-index: 2; opacity: 0; transition: opacity .18s ease;
}
.board-scroll::before {
    left: 0; background: linear-gradient(to right, rgba(246,248,252,.95), rgba(246,248,252,0));
}
.board-scroll::after {
    right: 0; background: linear-gradient(to left, rgba(246,248,252,.95), rgba(246,248,252,0));
}
.board-scroll.can-left::before { opacity: 1; }
.board-scroll.can-right::after { opacity: 1; }

/* Tombol panah untuk pengguna mouse (bukan trackpad). */
.board-nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow);
    display: none; align-items: center; justify-content: center;
    cursor: pointer; color: var(--blue-deep);
}
.board-nav:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.board-nav.prev { left: -6px; }
.board-nav.next { right: -6px; }
.board-nav .ico { width: 20px; height: 20px; }
.board-scroll.can-left .board-nav.prev { display: flex; }
.board-scroll.can-right .board-nav.next { display: flex; }

/* Petunjuk teks, hilang setelah pengguna menggeser. */
.board-hint {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--ink-soft);
    background: var(--blue-hover); border-radius: var(--r-pill);
    padding: 4px 11px; margin-bottom: 10px;
    transition: opacity .2s ease;
}
.board-hint .ico { width: 14px; height: 14px; }
.board-scroll.scrolled .board-hint { opacity: 0; }
