body {
    background: #f2f5f9;
    font-family: Arial, sans-serif;
    color: #17233c;
}

/* =====================================================
   STICKY STACK
=====================================================
| Header, identitas employee, dan judul section/tab dibungkus jadi SATU
| unit sticky supaya ketiganya ikut freeze BERSAMAAN. Sebelumnya tiap
| bagian dibuat sticky sendiri-sendiri dengan "top" bertingkat, tapi
| karena ada elemen non-sticky + margin di antaranya, tiap bagian nempel
| di titik scroll yang berbeda -- header sudah freeze duluan sementara
| identitas employee & judul baru menyusul, sehingga sempat muncul celah
| di bawah header. Dengan satu pembungkus, tidak ada lagi celah/geser.
*/
.sticky-stack {
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff;
}

/* Netralkan sticky per-bagian yang lama supaya tidak dobel-pin di dalam
   pembungkus (termasuk inline "top" yang di-set assets/js/app.js). */
.sticky-stack>.sticky-layer {
    position: static;
    top: auto;
}

.verification-card .sticky-stack {
    border-radius: 16px 16px 0 0;
}

.detail-card .sticky-stack {
    border-radius: 12px 12px 0 0;
}

/* MAIN CARD */
.verification-card {
    max-width: 430px;
    margin: 20px auto;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


/* HEADER */
/*
| overflow:hidden pada .verification-card sengaja tidak dipakai lagi --
| itu akan mematahkan position:sticky pada elemen turunannya (overflow
| selain visible pada ancestor manapun membuat browser menganggap ancestor
| itu sebagai scroll container-nya, bukan viewport). Border-radius atas
| dipindah ke header sendiri supaya sudutnya tetap membulat.
*/
.verification-header {
    min-height: 190px;
    background:
        linear-gradient(rgba(4, 36, 83, 0.94),
            rgba(4, 36, 83, 0.94));
    color: white;
    padding: 22px 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.logo {
    text-align: left;
    font-size: 25px;
    font-weight: bold;
}

.logo .brand-logo {
    height: 28px;
    width: auto;
    display: block;
}

/* Generic logo sizing (dipakai di certificate-logo, login-logo, dll) */
.brand-logo {
    height: 26px;
    width: auto;
    display: inline-block;
}

.verification-title {
    margin-top: 20px;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
}

/* EMPLOYEE */
/*
| Sticky juga, nempel tepat di bawah header (top: 125px = tinggi header
| 190px dikurangi overlap -65px dari margin-top di bawah), supaya identitas
| employee (foto/nama/status) tetap kelihatan saat scroll daftar kompetensi.
| z-index lebih tinggi dari header supaya foto yang overlap ke header tetap
| tampil di depan, bukan ketutup.
*/
.employee-profile {
    text-align: center;
    margin-top: -65px;
    position: sticky;
    top: 125px;
    z-index: 15;
    padding: 0 20px 20px;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.employee-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 10px;
    overflow: hidden;
    border: 6px solid white;
    background: #e7ebef;
    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.15);
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 42px;
    font-weight: bold;
    color: #17437e;
}

.employee-profile h2 {
    font-size: 25px;
    margin: 5px 0;
}

.employee-nik {
    color: #555;
    font-size: 14px;
}

.employee-position {
    margin-top: 5px;
    color: #555;
    font-size: 14px;
}

/* STATUS */
.status-valid {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    background: #dff4df;
    color: #23833a;
    font-size: 13px;
    font-weight: bold;
}

.status-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25a244;
    color: white;
}


/* SECTION */
/* Sticky, nempel di bawah .employee-profile (top diperhalus oleh
   assets/js/app.js; 400px di sini cuma fallback perkiraan) */
.section-title {
    text-align: center;
    color: #174ca6;
    font-size: 16px;
    font-weight: bold;
    padding: 15px;
    border-bottom: 3px solid #2c63c7;
    position: sticky;
    top: 400px;
    z-index: 12;
    background: white;
}

/* COMPETENCY */
.competency-list {
    padding: 12px;
}

.competency-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e6eb;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

.competency-item:hover {
    background: #f8fbff;
    transform: translateY(-1px);
}

/* QUIZ */
.quiz-question-card {
    padding: 14px;
    border: 1px solid #e2e6eb;
    border-radius: 10px;
    background: #f8fbff;
}

.quiz-question-text {
    font-size: 15px;
    line-height: 1.5;
}

/* ICON */
.competency-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5f1ff;
    font-size: 22px;
}

/* CONTENT */
.competency-content {
    flex: 1;
    min-width: 0;
}

.competency-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
}

.competency-info {
    font-size: 12px;
    color: #555;
    line-height: 1.7;
}

.competency-info strong {
    display: block;
    color: #222;
    font-weight: normal;
}

/* STATUS */
.competency-status {
    position: absolute;
    top: 12px;
    right: 10px;
    padding: 4px 8px;
    border-radius: 5px;
    background: #dff4df;
    color: #25863a;
    font-size: 10px;
    font-weight: bold;
}

/* ARROW */
.competency-arrow {
    position: absolute;
    right: 8px;
    bottom: 12px;
    font-size: 22px;
    color: #777;
}

/* =====================================================
   DETAIL PAGE
===================================================== */
.detail-card {
    max-width: 700px;
    margin: 20px auto;
    background: white;
    border-radius: 12px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.07);
}

/* HEADER */
/* overflow:hidden dilepas dari .detail-card supaya position:sticky di
   bawah ini bisa jalan (lihat catatan yang sama di .verification-header) */
.detail-header {
    background: #063875;
    height: 58px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: white;
    position: sticky;
    top: 0;
    z-index: 20;
    border-radius: 12px 12px 0 0;
}

.detail-header .logo {
    font-size: 25px;
}

/* BACK */
.back-link {
    padding: 12px 20px 5px;
}

.back-link a {
    color: #2863bd;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
}

/* PROFILE */
/* Sticky, nempel tepat di bawah header (top: 58px = tinggi .detail-header)
   supaya identitas employee tetap kelihatan saat scroll konten di bawahnya */
.detail-profile {
    margin: 5px 14px 10px;
    padding: 15px;
    border: 1px solid #e0e5eb;
    border-radius: 9px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: sticky;
    top: 58px;
    z-index: 15;
    background: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.detail-photo {
    width: 105px;
    height: 105px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #e8edf2;
    border: 4px solid white;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .12);
}

.detail-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-employee-info h2 {
    margin: 0 0 5px;
    font-size: 23px;
    color: #17233c;
}

.detail-employee-info>div {
    margin-bottom: 4px;
    color: #333;
    font-size: 13px;
}

.detail-status {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #dff4df;
    color: #23833a !important;
    font-weight: bold;
}

/* TABS */
/* Sticky, nempel di bawah .detail-profile (top diperhalus oleh
   assets/js/app.js; 216px di sini cuma fallback perkiraan) */
.detail-tabs {
    display: flex;
    margin: 0 14px;
    border-bottom: 1px solid #d9dfe7;
    position: sticky;
    top: 216px;
    z-index: 12;
    background: white;
}

.detail-tabs .tab {
    width: 50%;
    text-align: center;
    padding: 11px;
    font-size: 13px;
    font-weight: bold;
    color: #27334b;
    text-decoration: none;
    border-bottom: 4px solid transparent;
}

.detail-tabs .tab.active {
    color: #174ca6;
    border-bottom-color: #2863c8;
}

/* INFORMATION */
.information-section {
    margin: 0 14px;
    padding: 14px 16px;
    border-bottom: 1px solid #e4e7eb;
}

.information-section h3,
.description-section h3,
.scope-section h3 {
    font-size: 12px;
    color: #153f7d;
    margin-bottom: 10px;
    font-weight: bold;
}

.information-row {
    display: flex;
    font-size: 12px;
    line-height: 1.8;
}

.information-row span {
    width: 145px;
    color: #4e5663;
}

.information-row strong {
    flex: 1;
    color: #28303c;
    font-weight: 500;
}

/* COMPETENCY DETAIL */
.competency-detail-section {
    margin: 0 14px;
    padding: 15px 16px;
    border-bottom: 1px solid #e4e7eb;
}

.competency-detail-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #173f7b;
    font-size: 13px;
    font-weight: bold;
}

.detail-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #e4f2ff;
    font-size: 18px;
}

.detail-valid {
    margin-left: auto;
    background: #dff4df;
    color: #25863a;
    padding: 4px 9px;
    border-radius: 5px;
    font-size: 10px;
}

/* TRAINING INFO */
.training-information {
    margin-top: 12px;
}

.training-row {
    display: flex;
    font-size: 12px;
    line-height: 1.8;
}

.training-row span {
    width: 145px;
    color: #4d5663;
}

.training-row strong {
    color: #202936;

    font-weight: 500;
}

/* DESCRIPTION */
.description-section {
    margin: 0 14px;
    padding: 15px 16px;
    border-bottom: 1px solid #e4e7eb;
}

.description-section p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #333b47;
}

/* SCOPE */
.scope-section {
    margin: 0 14px;
    padding: 15px 16px;
}

.scope-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #333b47;
    line-height: 1.5;
}

.scope-check {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #25a244;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    margin-top: 1px;
}

/* NOTE */
.note-box {
    margin: 5px 14px 20px;
    padding: 12px;
    border: 1px solid #d4e4f7;
    background: #f2f8ff;
    border-radius: 8px;
    display: flex;
    gap: 10px;
    color: #24528c;
}

.note-icon {
    font-size: 17px;
}

.note-box strong {
    font-size: 11px;
}

.note-box p {
    margin: 4px 0 0;
    font-size: 10px;
    line-height: 1.5;
}

/* MOBILE */
@media (max-width: 576px) {
    .detail-card {
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }

    .detail-card .sticky-stack {
        border-radius: 0;
    }

    .detail-header {
        border-radius: 0;
    }

    .detail-profile {
        align-items: flex-start;
    }

    .detail-photo {
        width: 85px;
        height: 85px;
    }

    .detail-employee-info h2 {
        font-size: 19px;
    }

    .information-row span,
    .training-row span {
        width: 125px;
    }
}

/* =====================================================
   CERTIFICATE PAGE
===================================================== */
.certificate-page {
    background: #eef2f6;
    min-height: 100vh;
}

/* ACTION BUTTON */
.certificate-actions {
    max-width: 1000px;
    margin: 20px auto;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* CERTIFICATE WRAPPER */
.certificate-wrapper {
    padding: 20px;
}

/* CERTIFICATE */
.certificate {
    width: 900px;
    max-width: 100%;
    min-height: 635px;
    margin: 0 auto;
    background: white;
    position: relative;
    overflow: hidden;
    border: 1px solid #d5dce5;
    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12);
}


/* TOP */
.certificate-top {
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 45px;
    border-bottom: 2px solid #e4e8ed;
}

.certificate-logo {
    font-size: 28px;
    font-weight: bold;
    color: #063875;
}

.certificate-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #6c7785;
}

/* CONTENT */
.certificate-content {
    text-align: center;
    /* padding-bottom menyediakan ruang untuk certificate-footer (position: absolute, height 65px) agar tidak menimpa konten */
    padding: 35px 70px 85px;
}

/* TITLE */
.certificate-title {
    font-size: 33px;
    font-weight: bold;
    color: #122b56;
    letter-spacing: 1px;
}

.certificate-subtitle {
    font-size: 27px;
    font-weight: bold;
    color: #122b56;
    letter-spacing: 2px;
    margin-top: -2px;
}

/* INTRO */
.certificate-intro {
    margin-top: 22px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #525d6b;
}

/* NAME */
.certificate-name {
    font-size: 27px;
    font-weight: bold;
    color: #122b56;
    margin-top: 8px;
}

.certificate-nik {
    margin-top: 5px;
    font-size: 12px;
    color: #555f6c;
}

/* DESCRIPTION */
.certificate-description {
    margin: 25px auto 8px;
    max-width: 600px;
    font-size: 12px;
    line-height: 1.6;
    color: #444c57;
}

/* COMPETENCY */
.certificate-competency {
    font-size: 20px;
    font-weight: bold;
    color: #123d78;
    letter-spacing: 1px;
    margin-top: 8px;
}

.certificate-score {
    margin-top: 8px;
    font-size: 12px;
    color: #444;
}

.certificate-score strong {
    color: #142e57;
    font-size: 14px;
}

/* AUTHORIZATION */
.certificate-authorization {
    max-width: 600px;
    margin: 16px auto 0;
    font-size: 11px;
    line-height: 1.6;
    color: #505965;
}

/* SIGNATURE */
.signature-area {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 80px;
    margin-top: 25px;
}

.signature {
    width: 190px;
    text-align: center;
    font-size: 11px;
}

.signature-line {
    border-top: 1px solid #27313f;
    margin-bottom: 7px;
}

.signature-image {
    display: block;
    max-width: 140px;
    max-height: 40px;
    margin: 0 auto;
    object-fit: contain;
}

.signature strong {
    display: block;
    font-size: 11px;
    color: #293342;
}

.signature span {
    display: block;
    margin-top: 3px;
    font-size: 9px;
    color: #68717d;
}

/* PASSED STAMP */
.passed-stamp {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    border: 5px double #c79b32;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #a47b1f;
    transform: rotate(-8deg);
}

/* FOOTER */
.certificate-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    background: #063875;
    color: white;
}

.certificate-footer>div {
    min-width: 30%;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, .25);
}

.certificate-footer>div:last-child {
    border-right: none;
}

.certificate-footer span {
    display: block;
    font-size: 9px;
    opacity: .8;
    margin-bottom: 4px;
}

.certificate-footer strong {
    display: block;
    font-size: 11px;
}

/* MOBILE */
@media (max-width: 768px) {
    .certificate-actions {
        padding: 0 15px;
    }

    .certificate-wrapper {
        padding: 10px;
    }

    .certificate {
        min-height: 650px;
    }

    .certificate-top {
        padding: 0 20px;
    }

    .certificate-content {
        padding: 30px 25px 85px;
    }

    .certificate-title {
        font-size: 26px;
    }

    .certificate-subtitle {
        font-size: 21px;
    }

    .certificate-name {
        font-size: 23px;
    }

    .signature-area {
        gap: 20px;
    }

    .signature {
        width: 130px;
    }

    .passed-stamp {
        width: 60px;
        height: 60px;
        font-size: 10px;
    }
}

/* =====================================================
   PRINT
===================================================== */
@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    body {
        background: white;
    }

    .certificate-actions {
        display: none !important;
    }

    .certificate-wrapper {
        padding: 0;
    }

    .certificate {
        width: 100%;
        max-width: none;
        min-height: 100vh;
        border: none;
        box-shadow: none;
    }
}

/* =====================================================
   ADMIN LOGIN
===================================================== */
.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        linear-gradient(135deg,
            #edf3fa,
            #f8fafc);
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: 14px;
    padding: 35px;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.10);
}

.login-logo {
    text-align: center;
    color: #063875;
    font-size: 30px;
    font-weight: bold;
    margin-bottom: 8px;
}

.login-title {
    text-align: center;
    color: #374151;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 25px;
}

.login-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.login-card .form-control {
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
}

.login-card .btn {
    border-radius: 8px;
    padding: 10px;
    font-weight: 600;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 10px;
    color: #8a929d;
}

/* =====================================================
   ADMIN DASHBOARD
===================================================== */
.admin-page {
    background: #f3f6fa;
    min-height: 100vh;
}

/* NAVBAR */
.admin-navbar {
    min-height: 62px;
    background: #063875;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.12);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: bold;
}

.admin-brand .brand-logo {
    height: 26px;
    width: auto;
    display: block;
}

.admin-brand span {
    font-size: 11px;
    font-weight: normal;
    opacity: .75;
}

.admin-user {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
}

.admin-user a {
    color: white;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .4);
    padding: 6px 12px;
    border-radius: 6px;
}

.admin-user a:hover {
    background: rgba(255, 255, 255, .1);
}

/* CONTAINER */
.admin-container {
    max-width: 1200px;
    margin: auto;
    padding: 30px;
}

/* HEADER */
.dashboard-header {
    margin-bottom: 25px;
}

.dashboard-header h1 {
    font-size: 25px;
    margin: 0;
    color: #17233c;
}

.dashboard-header p {
    margin: 5px 0 0;
    color: #68717d;
    font-size: 13px;
}

/* STAT */
.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e0e5eb;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, .04);
}

.stat-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card-link:hover {
    transform: translateY(-2px);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, .08);
    color: inherit;
}

.stat-label {
    color: #68717d;
    font-size: 12px;
    margin-bottom: 8px;
}

.stat-number {
    color: #123f7d;
    font-size: 28px;
    font-weight: bold;
}

/* MANAGEMENT */
.admin-menu-section {
    margin-top: 35px;
}

.admin-menu-section h2 {
    font-size: 17px;
    color: #25334a;
    margin-bottom: 15px;
}

.admin-menu-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: white;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    text-decoration: none;
    color: #17233c;
    transition: .2s;
}

.admin-menu-card:hover {
    transform: translateY(-2px);
    box-shadow:
        0 5px 15px rgba(0, 0, 0, .07);
}

.admin-menu-icon {
    width: 48px;
    height: 48px;
    border-radius: 9px;
    background: #e8f2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.admin-menu-card strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.admin-menu-card span {
    display: block;
    font-size: 12px;
    color: #727b87;
}

/* MOBILE */
@media (max-width: 576px) {
    .admin-navbar {
        padding: 12px 15px;
        align-items: flex-start;
    }

    .admin-brand {
        font-size: 18px;
    }

    .admin-brand span {
        display: block;
        margin: 2px 0 0;
    }

    .admin-user {
        flex-direction: column;
        gap: 5px;
        align-items: flex-end;
    }

    .admin-container {
        padding: 20px 15px;
    }
}

/* =====================================================
   EMPLOYEE MANAGEMENT
===================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.page-header h1 {
    font-size: 25px;
    color: #17233c;
    margin: 0;
}

.page-header p {
    margin: 5px 0 0;
    color: #68717d;
    font-size: 13px;
}

.employee-search {
    background: white;
    padding: 18px;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    margin-bottom: 20px;
}

.employee-table-card {
    background: white;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    overflow: hidden;
}

.employee-table-card table {
    font-size: 13px;
}

.employee-table-card thead th {
    background: #f6f8fb;
    color: #4c5868;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .4px;
    white-space: nowrap;
}

.employee-photo-small {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #e4e8ed;
}

.employee-photo-placeholder {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e8f2ff;
    color: #063875;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.employee-actions {
    display: flex;
    gap: 5px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .page-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .page-header .btn {
        width: 100%;
    }

    .employee-actions {
        flex-direction: column;
    }
}

/* =====================================================
   ADMIN FORM
===================================================== */
.form-card {
    background: white;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    padding: 25px;
}

.form-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-card .form-control {
    font-size: 14px;
    border-radius: 7px;
}

.form-card .form-control:focus {
    border-color: #3877c9;
    box-shadow:
        0 0 0 3px rgba(56, 119, 201, .12);
}

.employee-photo-preview {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid #dce2e8;
}

/* =====================================================
   COMPETENCY MANAGEMENT
===================================================== */
.competency-description {
    color: #68717d;

    font-size: 13px;
}

/* =====================================================
   EMPLOYEE COMPETENCY
===================================================== */
.employee-info-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns:
        2fr
        1fr
        1fr
        1fr;
    gap: 24px;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.04);
}

.employee-info-card small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 5px;
}

.employee-info-card h3 {
    margin: 0;
    font-size: 20px;
}

.employee-info-card strong {
    font-size: 14px;
}

/* =====================================================
   QR CODE GENERATOR
===================================================== */
.qr-card {
    background: white;
    border: 1px solid #e0e5eb;
    border-radius: 10px;
    padding: 18px;
    text-align: center;
    height: 100%;
}

.qr-card h3 {
    font-size: 14px;
    margin: 0 0 2px;
    color: #17233c;
}

.qr-card .qr-nik {
    font-size: 12px;
    color: #68717d;
    margin-bottom: 10px;
}

.qr-card .qr-canvas-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.qr-card .qr-url {
    font-size: 10px;
    color: #8a929d;
    word-break: break-all;
    margin-bottom: 10px;
}

/* =====================================================
   STATUS COLORS (index.php & employee.php)
===================================================== */
.status-pill-valid {
    background: #dff4df;
    color: #25863a;
}

.status-pill-warning {
    background: #fff2cc;
    color: #8a6a10;
}

.status-pill-danger {
    background: #fde2e1;
    color: #b42318;
}

.status-pill-secondary {
    background: #e8eaed;
    color: #5f6b7a;
}

.status-pill-info {
    background: #dbeafe;
    color: #1d4ed8;
}