*{box-sizing:border-box}
body{margin:0;background:#f4f6f9;color:#1d2939;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:14px}
.login-body{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(135deg,#102b42,#1d4968)}
.login-card{background:white;width:min(100%,420px);padding:38px;border-radius:18px;box-shadow:0 24px 70px #06182766}
.brand-mark{width:58px;height:58px;border-radius:15px;background:#173d5a;color:#fff;display:grid;place-items:center;font-weight:800;letter-spacing:1px;margin-bottom:22px}
.brand-mark.small{width:38px;height:38px;border-radius:10px;font-size:11px;margin:0}
.eyebrow{font-size:10px;letter-spacing:1.7px;color:#718096;font-weight:800}
.login-card h1{font-size:28px;margin:8px 0 3px;color:#173d5a}
.muted{color:#7b8794}
.login-foot{font-size:12px;color:#8793a1;text-align:center;margin:22px 0 0}
.topbar{background:#fff;border-bottom:1px solid #e6eaf0;min-height:72px;padding:12px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:#173d5a}
.brand small{display:block;font-size:9px;color:#8793a1;margin-top:3px}
.topbar nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}
.topbar nav a{color:#526170;text-decoration:none;font-size:13px}
.topbar nav a:hover,.text-link{color:#17608c}
.nav-user{font-weight:700}
.container{max-width:1180px;margin:34px auto;padding:0 22px;min-height:70vh}
.page-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:24px}
.page-head h1{font-size:27px;margin:7px 0}
.page-head p{margin:0}
.btn{border:0;border-radius:9px;padding:11px 16px;font-weight:700;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:13px}
.primary{background:#173d5a;color:#fff}
.light{background:#edf1f5;color:#344454}
.success{background:#18845b;color:#fff}
.full{width:100%;margin-top:22px}
.filter-card,.form-card,.detail-card,.table-wrap{background:#fff;border:1px solid #e7ebf0;border-radius:14px;padding:22px;margin-bottom:18px}
.filter-card{display:flex;gap:10px;flex-wrap:wrap}
.filter-card input{flex:1;min-width:160px}
.table-wrap{padding:0;overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left}
th,td{padding:15px 17px;border-bottom:1px solid #edf0f3;white-space:normal}
th{font-size:11px;text-transform:uppercase;letter-spacing:.6px;color:#778391;background:#fafbfc}
td small{display:block;margin-top:4px}
.text-link{text-decoration:none;font-weight:700;white-space:nowrap}
.empty{text-align:center;color:#8894a1;padding:35px}
.pill{display:inline-block;background:#eaf1f6;color:#31536d;border-radius:30px;padding:5px 10px;font-size:11px;font-weight:700}
.form-card{max-width:900px}
.form-card.narrow{max-width:600px}
.form-card label,.login-card label{display:block;font-size:12px;font-weight:700;color:#455363;margin:14px 0 7px}
input,textarea,select{font:inherit;width:100%;border:1px solid #dce2e8;border-radius:8px;padding:11px 12px;background:#fff;color:#263442;outline:none}
input:focus,textarea:focus,select:focus{border-color:#4d87ad;box-shadow:0 0 0 3px #4d87ad1a}
textarea{resize:vertical}
.alert{padding:12px 15px;border-radius:9px;background:#e8f5ee;color:#176342;margin-bottom:18px}
.alert.error{background:#fff0ef;color:#a4312c}
.pagination{display:flex;justify-content:center;align-items:center;gap:18px;margin:22px}
.footer{text-align:center;color:#98a2ad;font-size:11px;padding:24px}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.detail-card h2{font-size:16px;margin:0 0 16px;color:#173d5a}
.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.detail-grid small{display:block;color:#84909c;margin-bottom:4px}
.detail-grid b{font-weight:600;overflow-wrap:anywhere}
.wizard{max-width:950px}
.wizard-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:16px}
.step{border:1px solid #e0e6ec;background:white;border-radius:10px;padding:10px 5px;color:#647384;cursor:pointer}
.step span{display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:#edf1f5;margin:0 auto 5px;font-weight:800}
.step small{font-size:10px}
.step.active{border-color:#173d5a;color:#173d5a;background:#f0f5f8}
.step.active span{background:#173d5a;color:white}
.form-step{display:none}
.form-step.active{display:block}
.form-step h2{font-size:18px;color:#173d5a;margin:0 0 20px}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 18px}
.field.wide,.wide{grid-column:1/-1}
.required{color:#c0392b}
.wizard-actions{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-top:22px}
.hidden{display:none!important}
.repeat-box{border-top:1px solid #edf0f3;margin-top:20px;padding-top:16px}
.repeat-box h3{font-size:14px}
.repeat-row{border:1px solid #e3e8ee;border-radius:10px;padding:14px;margin:12px 0}
.repeat-head{display:flex;justify-content:space-between;align-items:center}
.remove{border:0;background:#fff0ef;color:#a4312c;border-radius:6px;padding:6px 10px;cursor:pointer}
.repeat-row .field-grid{margin-top:8px}

@media(max-width:700px){
  .topbar{align-items:flex-start;flex-direction:column;padding:13px 18px}
  .topbar nav{gap:14px}
  .container{margin:22px auto;padding:0 14px}
  .page-head{align-items:flex-start;flex-direction:column}
  .page-head h1{font-size:23px}
  .filter-card{display:grid;grid-template-columns:1fr}
  .filter-card input{min-width:0}
  .wizard-steps{gap:4px}
  .step{padding:8px 2px}
  .step small{font-size:8px}
  .field-grid,.detail-grid{grid-template-columns:1fr}
  .field.wide{grid-column:auto}
  .wizard-actions{align-items:flex-start;flex-direction:column}
  .wizard-actions>div{display:flex;gap:6px;width:100%}
  .wizard-actions .btn{flex:1;padding:10px 8px}
  .login-card{padding:28px 23px}
  .actions{width:100%}
  .actions .btn{flex:1}
}

/* Penyempurnaan toolbar dan lebar area kandidat */
.container-candidate{width:100%;max-width:none;margin:22px auto 0;padding:0 18px;min-height:70vh}
.topbar-candidate nav{gap:14px}

@media(min-width:1200px){
  .container-candidate{padding-left:26px;padding-right:26px}
}

@media(max-width:700px){
  .topbar{min-height:0;align-items:center;flex-direction:row;justify-content:space-between;gap:8px;padding:8px 12px}
  .brand{gap:7px;min-width:0;flex:1}
  .brand-mark.small{width:30px;height:30px;min-width:30px;border-radius:8px;font-size:9px}
  .brand-copy{min-width:0;line-height:1.15}
  .brand b{font-size:11px;letter-spacing:.2px}
  .brand small{font-size:7px;margin-top:2px;white-space:nowrap}
  .topbar nav{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto;flex-wrap:nowrap}
  .topbar nav a{font-size:10px;white-space:nowrap}
  .topbar nav .nav-user{font-size:10px;padding:6px 8px;border-radius:7px;background:#edf2f6}
  .container-candidate{margin:15px auto 0;padding:0 10px}
}

@media(max-width:380px){
  .topbar{padding:7px 9px;gap:5px}
  .brand-mark.small{width:27px;height:27px;min-width:27px;font-size:8px}
  .brand{gap:5px}
  .brand b{font-size:10px}
  .brand small{font-size:6.5px}
  .topbar nav{gap:4px}
  .topbar nav .nav-user{font-size:9px;padding:5px 6px}
  .container-candidate{padding-left:8px;padding-right:8px}
}

/* ==================================================
   LOGO CMCJ
   Tambahan untuk logo login dan header
   ================================================== */

/* Logo pada halaman login */
.login-card .brand-mark{
    width:100%;
    height:auto;
    min-height:0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:transparent;
    border-radius:0;
    margin-bottom:22px;
}

.login-logo{
    display:block;
    width:105px;
    height:auto;
    object-fit:contain;
}

/* Logo pada header admin dan kandidat */
.brand-logo{
    display:block;
    width:38px;
    height:43px;
    object-fit:contain;
    flex-shrink:0;
}

/* ==================================================
   HALAMAN DAFTAR KANDIDAT ADMIN
   ================================================== */

/* Lebar dashboard HRD disamakan dengan halaman kandidat */
.container:has(.hrd-candidate-table){
    width:100%;
    max-width:none;
    margin:34px auto;
    padding-left:26px;
    padding-right:26px;
}

.hrd-candidate-person{
    display:flex;
    align-items:center;
    gap:11px;
    min-width:190px;
}

.hrd-candidate-avatar{
    width:43px;
    height:43px;
    min-width:43px;
    border-radius:50%;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e8eefc;
    color:#244b9b;
    font-size:13px;
    font-weight:700;
}

.hrd-candidate-avatar img{
    width:100%;
    height:100%;
    object-fit:cover;
    cursor:zoom-in;
    transition:transform .2s ease;
}

.hrd-candidate-avatar img:hover{
    transform:scale(1.08);
}

.hrd-candidate-name{
    font-weight:700;
}

.hrd-candidate-username{
    display:block;
    margin-top:3px;
    font-size:12px;
}

.hrd-checkbox{
    width:17px;
    height:17px;
    cursor:pointer;
    accent-color:#2563eb;
}

.hrd-check-cell{
    width:40px;
    text-align:center!important;
}

/* Kolom nomor kandidat */
.hrd-number-cell{
    width:58px;
    min-width:58px;
    text-align:center!important;
    color:#667085;
    font-size:13px;
}

.hrd-export-bar{
    display:flex;
    gap:9px;
    align-items:center;
    flex-wrap:wrap;
    margin:16px 0;
}

.hrd-selected-count{
    font-size:12px;
    color:#667085;
}

.hrd-progress{
    width:175px;
    max-width:100%;
    padding:8px 10px;
    border:1px solid #d9e0ea;
    border-radius:20px;
    background:#fff;
    color:#344054;
    font-size:12px;
    cursor:pointer;
}

.hrd-actions{
    display:flex;
    align-items:center;
    gap:7px;
    white-space:nowrap;
}

.hrd-actions a{
    display:inline-block;
    padding:7px 10px;
    border:1px solid #d9e0ea;
    border-radius:7px;
    background:#fff;
    color:#344054;
    font-size:12px;
    text-decoration:none;
}

.hrd-actions .delete{
    color:#b42318;
    border-color:#f1c6c3;
}

.hrd-candidate-table{
    min-width:1100px;
    width:100%;
    border-collapse:separate;
    border-spacing:0;
}

.hrd-candidate-table th,
.hrd-candidate-table td{
    vertical-align:middle;
}

.hrd-candidate-table th{
    white-space:nowrap;
}

/* Pagination bernomor */
.hrd-pagination{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:7px;
    flex-wrap:wrap;
    margin:22px 0;
}

.hrd-pagination a,
.hrd-pagination span{
    min-width:36px;
    height:36px;
    padding:0 11px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:1px solid #e1e6ee;
    border-radius:8px;
    background:#fff;
    color:#344454;
    text-decoration:none;
    font-size:13px;
    font-weight:600;
}

.hrd-pagination a:hover{
    background:#edf1f5;
}

.hrd-pagination .current{
    background:#173d5a;
    border-color:#173d5a;
    color:#fff;
}

.hrd-pagination .disabled{
    color:#aab2bc;
    background:#f7f8fa;
}

.hrd-pagination-info{
    text-align:center;
    color:#7b8794;
    font-size:12px;
    margin:10px 0 18px;
}

/* Lightbox foto kandidat */
.photo-lightbox{
    display:none;
    position:fixed;
    inset:0;
    z-index:99999;
    background:rgba(0,0,0,.88);
    align-items:center;
    justify-content:center;
    padding:25px;
}

.photo-lightbox.active{
    display:flex;
}

.photo-lightbox img{
    display:block;
    max-width:90vw;
    max-height:88vh;
    width:auto;
    height:auto;
    object-fit:contain;
    border-radius:10px;
    box-shadow:0 10px 40px rgba(0,0,0,.4);
    cursor:default;
}

.photo-lightbox-close{
    position:absolute;
    top:20px;
    right:28px;
    width:42px;
    height:42px;
    border:0;
    border-radius:50%;
    background:rgba(255,255,255,.18);
    color:#fff;
    font-size:28px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.photo-lightbox-close:hover{
    background:rgba(255,255,255,.32);
}

@media(max-width:700px){
    .container:has(.hrd-candidate-table){
        margin:22px auto;
        padding-left:10px;
        padding-right:10px;
    }

    .hrd-export-bar{
        align-items:stretch;
    }

    .hrd-export-bar .btn{
        flex:1;
    }

    .hrd-candidate-table{
        min-width:1100px;
    }

    .photo-lightbox{
        padding:12px;
    }

    .photo-lightbox img{
        max-width:96vw;
        max-height:82vh;
    }

    .photo-lightbox-close{
        top:12px;
        right:12px;
    }

    .hrd-avatar-clickable{
    cursor:zoom-in;
}

.photo-lightbox img.initials-preview{
    width:180px;
    height:180px;
    max-width:70vw;
    max-height:70vw;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#e8eefc;
    color:#244b9b;
    font-size:48px;
    font-weight:700;
    object-fit:contain;
    box-shadow:0 10px 40px rgba(0,0,0,.4);
}
}

/* Rata tengah seluruh isi tabel Dashboard HRD */
.hrd-candidate-table th,
.hrd-candidate-table td {
    text-align: center !important;
    vertical-align: middle;
}

/* Warna dropdown progress recruitment */

.hrd-progress {
    background-color: #ffffff;
    color: #344054;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.hrd-progress.progress-accepted {
    background-color: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.hrd-progress.progress-rejected {
    background-color: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.hrd-progress.progress-considered {
    background-color: #e5e7eb;
    border-color: #cbd5e1;
    color: #374151;
}

/* Part 3: kolom PIC dan tabel dashboard HRD agar muat di layar desktop */
@media (min-width: 1001px){
    .hrd-candidate-table{
        width:100%;
        min-width:0;
        table-layout:fixed;
    }

    .hrd-candidate-table th,
    .hrd-candidate-table td{
        padding:10px 7px;
        font-size:12px;
        overflow-wrap:anywhere;
    }

    .hrd-candidate-table th:nth-child(1),
    .hrd-candidate-table td:nth-child(1){width:3%;}

    .hrd-candidate-table th:nth-child(2),
    .hrd-candidate-table td:nth-child(2){width:4%;}

    .hrd-candidate-table th:nth-child(3),
    .hrd-candidate-table td:nth-child(3){width:20%;}

    .hrd-candidate-table th:nth-child(4),
    .hrd-candidate-table td:nth-child(4){width:13%;}

    .hrd-candidate-table th:nth-child(5),
    .hrd-candidate-table td:nth-child(5){width:11%;}

    .hrd-candidate-table th:nth-child(6),
    .hrd-candidate-table td:nth-child(6){width:8%;}

    .hrd-candidate-table th:nth-child(7),
    .hrd-candidate-table td:nth-child(7){width:14%;}

    .hrd-candidate-table th:nth-child(8),
    .hrd-candidate-table td:nth-child(8){width:14%;}

    .hrd-candidate-table th:nth-child(9),
    .hrd-candidate-table td:nth-child(9){width:13%;}

    .hrd-candidate-person{
        min-width:0;
        gap:8px;
    }

    .hrd-candidate-avatar{
        width:36px;
        height:36px;
        min-width:36px;
    }

    .hrd-candidate-name,
    .hrd-candidate-username{
        overflow-wrap:anywhere;
    }

    .hrd-progress{
        width:100%;
        min-width:0;
        padding:7px 5px;
        font-size:11px;
    }

    .hrd-actions{
        justify-content:center;
        flex-wrap:wrap;
        gap:4px;
        white-space:normal;
    }

    .hrd-actions a{
        padding:5px 7px;
        font-size:11px;
    }
}

/* Tabel pengelolaan akun Admin - Head HR */
.admin-management-table{
    width:100%;
    min-width:760px;
    border-collapse:collapse;
}
.admin-management-table th,
.admin-management-table td{
    vertical-align:middle;
}
.admin-management-table th{
    white-space:nowrap;
}
.admin-management-actions{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:7px;
    white-space:nowrap;
}
.admin-management-actions form{margin:0;}
.admin-management-actions .btn{
    padding:7px 11px;
    font-size:12px;
}
.admin-delete-btn{
    background:#fff0ef;
    color:#a4312c;
}
@media(max-width:700px){
    .admin-management-table{min-width:760px;}
}
