/* ==========================================================================
   stylebravo.css â€” Custom style E-Presensi (Bravo Solution Indonesia)
   ========================================================================== */

/* ----- Table typography (global) ----------------------------------------- */
table th,
.table th,
.bootstrap-table .table th,
.fixed-table-container .table thead th {
    font-size: 13px;
}

table td,
.table td,
.bootstrap-table .table td,
.fixed-table-container .table tbody td {
    font-size: 12px;
}

/* ----- Sidebar Brand / Logo ---------------------------------------------- */
.navbar-brand-box {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 0;
}

.navbar-brand-box .logo img {
    width: auto;
    max-width: 170px;
    object-fit: contain;
    transition: transform .25s ease;
}

.navbar-brand-box .logo:hover img {
    transform: scale(1.04);
}

/* Inisial "E" saat sidebar collapse (data-sidebar-size=sm) */
.bravo-logo-mark {
    --mark-size: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--mark-size);
    height: var(--mark-size);
    border-radius: 14px;
    font-family: "Montserrat", "IBM Plex Sans", system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
    background: linear-gradient(145deg, #1f58c7 0%, #3d7cff 55%, #56c2ff 100%);
    box-shadow:
        0 8px 18px -8px rgba(31, 88, 199, .7),
        inset 0 1px 0 rgba(255, 255, 255, .35);
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.bravo-logo-mark::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform .55s ease;
}

.logo:hover .bravo-logo-mark {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 12px 22px -8px rgba(31, 88, 199, .85),
        inset 0 1px 0 rgba(255, 255, 255, .4);
}

.logo:hover .bravo-logo-mark::after {
    transform: translateX(120%);
}

body[data-sidebar-size=sm] .vertical-menu .navbar-brand-box {
    padding: .85rem 0;
    height: 75px;
}

body[data-sidebar-size=sm] .vertical-menu .logo .logo-sm {
    display: flex !important;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

body[data-sidebar-size=sm] .vertical-menu .bravo-logo-mark {
    --mark-size: 40px;
    font-size: 1.25rem;
    border-radius: 12px;
}

body[data-bs-theme=dark] .bravo-logo-mark,
body[data-sidebar=dark] .bravo-logo-mark {
    background: linear-gradient(145deg, #f5c518 0%, #ffd84d 50%, #ffe99a 100%);
    color: #1a2b4a;
    box-shadow:
        0 8px 18px -8px rgba(245, 197, 24, .65),
        inset 0 1px 0 rgba(255, 255, 255, .45);
}

/* ----- Statistic Cards (Dashboard) --------------------------------------- */
.stat-cards {
    --stat-radius: 14px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    border: none;
    border-radius: var(--stat-radius);
    color: #fff;
    box-shadow: 0 8px 18px -10px rgba(0, 0, 0, .3);
    transition: transform .25s ease, box-shadow .25s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -10px rgba(0, 0, 0, .35);
}

.stat-card .card-body {
    position: relative;
    z-index: 2;
    padding: .85rem 1rem;
}

/* Decorative circles */
.stat-card::before,
.stat-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    z-index: 1;
}

.stat-card::before {
    width: 90px;
    height: 90px;
    top: -36px;
    right: -20px;
}

.stat-card::after {
    width: 56px;
    height: 56px;
    bottom: -24px;
    right: 28px;
    background: rgba(255, 255, 255, .08);
}

/* Gradient variants */
.stat-card.stat-primary { background: linear-gradient(135deg, #556ee6 0%, #6f86ff 100%); }
.stat-card.stat-success { background: linear-gradient(135deg, #1cbb8c 0%, #34e0a1 100%); }
.stat-card.stat-warning { background: linear-gradient(135deg, #f5a623 0%, #ffca4f 100%); }
.stat-card.stat-info    { background: linear-gradient(135deg, #2f8be6 0%, #4ac6f2 100%); }

.stat-card .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(2px);
    font-size: 20px;
    line-height: 1;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
    flex-shrink: 0;
}

.stat-card .stat-label {
    margin-bottom: .15rem;
    font-size: .72rem;
    font-weight: 500;
    letter-spacing: .3px;
    text-transform: uppercase;
    opacity: .9;
}

.stat-card .stat-value {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
}

.stat-card .stat-foot {
    margin-top: .3rem;
    font-size: .72rem;
    opacity: .85;
    line-height: 1.3;
}

.stat-card .stat-foot i {
    vertical-align: middle;
}

@media (max-width: 767.98px) {
    .stat-card .card-body { padding: .75rem .85rem; }
    .stat-card .stat-value { font-size: 1.25rem; }
    .stat-card .stat-icon { width: 34px; height: 34px; font-size: 18px; }
}

/* ==========================================================================
   Modal Lupa Password — rata tengah & eye-catching
   ========================================================================== */
#modalLupaPassword {
    z-index: 1060;
}
#modalLupaPassword .modal-dialog {
    margin: 1.75rem auto !important;
    max-width: 440px;
    width: calc(100% - 2rem);
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}
#modalLupaPassword .modal-content {
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow:
        0 0 0 1px rgba(245, 197, 24, .18),
        0 28px 64px -16px rgba(8, 20, 42, .55),
        0 0 80px -20px rgba(31, 88, 199, .45);
    animation: bravoModalIn .4s cubic-bezier(.22, 1, .36, 1);
}

@keyframes bravoModalIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#modalLupaPassword .modal-header {
    position: relative;
    border: 0;
    padding: 1.55rem 1.6rem 1.25rem;
    background:
        radial-gradient(120% 160% at 100% -20%, rgba(245, 197, 24, .35) 0%, transparent 50%),
        radial-gradient(90% 120% at 0% 0%, rgba(74, 198, 242, .28) 0%, transparent 55%),
        linear-gradient(135deg, #0a2a68 0%, #1f58c7 48%, #2f8be6 100%);
    color: #fff;
}

#modalLupaPassword .modal-header::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -36px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    pointer-events: none;
}

#modalLupaPassword .modal-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 800;
    letter-spacing: .3px;
    font-size: 1.22rem;
    color: #fff !important;
}

#modalLupaPassword .bravo-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f5c518 0%, #ffd84d 100%);
    color: #12314f;
    box-shadow:
        0 8px 18px -8px rgba(245, 197, 24, .9),
        inset 0 1px 0 rgba(255, 255, 255, .55);
    font-size: 1.35rem;
    line-height: 1;
}

#modalLupaPassword .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .85;
    transition: opacity .2s ease, transform .2s ease;
}

#modalLupaPassword .btn-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

#modalLupaPassword .modal-body {
    padding: 1.55rem 1.6rem 1rem;
}

#modalLupaPassword .lupa-password-hint {
    color: #4a5d78;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 1rem;
}

#modalLupaPassword .lupa-password-field {
    position: relative;
}

#modalLupaPassword .lupa-password-field > i {
    position: absolute;
    left: 14px;
    top: 50%;
    margin-top: -9px;
    font-size: 1.15rem;
    color: #1f58c7;
    pointer-events: none;
}

#modalLupaPassword .form-label {
    color: #3a4a63;
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.55;
    margin-bottom: .85rem;
}

#modalLupaPassword .form-control {
    height: 50px;
    border-radius: 14px;
    border: 1.5px solid #d7e3f4;
    background: #f7faff;
    padding: .65rem 1rem .65rem 2.55rem;
    font-size: .95rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

#modalLupaPassword .form-control:focus {
    border-color: #1f58c7;
    background: #fff;
    box-shadow: 0 0 0 .28rem rgba(31, 88, 199, .18);
}

#modalLupaPassword .form-control.is-invalid {
    border-color: #f46a6a;
    background: #fff8f8;
}

#modalLupaPassword .modal-footer {
    border: 0;
    padding: .35rem 1.6rem 1.55rem;
    gap: .7rem;
}

#modalLupaPassword .modal-footer .btn {
    border-radius: 14px;
    min-width: 118px;
    padding: .7rem 1.2rem;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

#modalLupaPassword .modal-footer .btn-light {
    background: #eef3fb;
    border-color: transparent;
    color: #4a5d78;
}

#modalLupaPassword .modal-footer .btn-light:hover {
    background: #e2ebf8;
    transform: translateY(-1px);
}

#modalLupaPassword .modal-footer .btn-primary {
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 100%);
    border: 0;
    box-shadow: 0 12px 22px -10px rgba(31, 88, 199, .75);
}

#modalLupaPassword .modal-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px -10px rgba(31, 88, 199, .9);
}

.modal-backdrop.show {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(8, 20, 42, .55) !important;
}

/* Link Lupa Password di form login */
a[data-bs-target="#modalLupaPassword"] {
    color: #1f58c7 !important;
    font-weight: 600;
    font-size: .88rem;
    text-decoration: none;
    transition: color .2s ease, letter-spacing .2s ease;
}

a[data-bs-target="#modalLupaPassword"]:hover {
    color: #0d3b8c !important;
    letter-spacing: .2px;
}

/* ==========================================================================
   SweetAlert Login Loader â€” modern & eye-catching (centered)
   ========================================================================== */
/* !important wajib: SweetAlert2 menulis display inline pada html-container
   saat opsi `html` dipakai, dan itu mematikan konteks flex di bawah ini. */
.swal2-popup.bravo-login-loader .swal2-html-container {
    margin: 0;
    padding: 0;
    width: 100%;
    color: #6b7c93;
    font-size: .88rem;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.bravo-loader-title {
    margin: 1.1rem 0 .35rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2b45;
    text-align: center;
    width: 100%;
}

.bravo-loader-text {
    color: #6b7c93;
    font-size: .88rem;
    text-align: center;
    width: 100%;
}

/* Dua mekanisme sekaligus supaya tetap di tengah baik saat html-container
   jatuh ke block flow (margin auto) maupun saat flex (align-self). */
.bravo-loader {
    position: relative;
    width: 72px;
    height: 72px;
    margin-left: auto !important;
    margin-right: auto !important;
    align-self: center !important;
    flex-shrink: 0;
}

.bravo-loader__ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #1f58c7;
    border-right-color: #4ac6f2;
    animation: bravoSpin 1s linear infinite;
}

.bravo-loader__ring--delay {
    inset: 8px;
    border-top-color: #2f8be6;
    border-right-color: transparent;
    border-bottom-color: #1cbb8c;
    animation-duration: 1.35s;
    animation-direction: reverse;
}

.bravo-loader__core {
    position: absolute;
    inset: 22px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1f58c7, #2f8be6);
    box-shadow: 0 8px 18px -6px rgba(31, 88, 199, .7);
    animation: bravoPulse 1.2s ease-in-out infinite;
}

.bravo-loader__core::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #fff;
    opacity: .35;
}

@keyframes bravoSpin {
    to { transform: rotate(360deg); }
}

@keyframes bravoPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(.88); opacity: .85; }
}

.swal2-container.bravo-loader-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
    inset: 0 !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    background: rgba(8, 20, 42, .48) !important;
    z-index: 20000 !important;
}

.swal2-container.bravo-loader-container .swal2-popup.bravo-login-loader {
    margin: 0 auto !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    inset: auto !important;
    transform: none !important;
    grid-column: unset !important;
    grid-row: unset !important;
    align-self: center !important;
    justify-self: center !important;
    animation: bravoLoaderPop .32s cubic-bezier(.22, 1, .36, 1);
}

.swal2-popup.bravo-login-loader {
    width: min(300px, 88vw);
    padding: 2.1rem 1.6rem 1.9rem;
    justify-items: center;
    text-align: center;
    border-radius: 24px;
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(47, 139, 230, .14) 0%, transparent 60%),
        #ffffff;
    box-shadow:
        0 28px 64px -18px rgba(8, 24, 56, .55),
        0 0 0 1px rgba(31, 88, 199, .1);
}

@keyframes bravoLoaderPop {
    from {
        opacity: 0;
        transform: scale(.88) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.swal2-container.bravo-swal-container {
    backdrop-filter: blur(5px);
    background: rgba(12, 28, 55, .42) !important;
}

.swal2-popup.bravo-swal {
    --bravo-swal-accent: #1f58c7;
    --bravo-swal-accent-soft: rgba(31, 88, 199, .14);
    --bravo-swal-accent-glow: rgba(31, 88, 199, .35);
    --bravo-swal-btn: linear-gradient(135deg, #1f58c7 0%, #2f8be6 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(31, 88, 199, .55);

    width: min(420px, 92vw);
    padding: 1.85rem 1.6rem 1.45rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, .65);
    background:
        radial-gradient(120% 90% at 50% -10%, var(--bravo-swal-accent-soft) 0%, transparent 58%),
        linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    box-shadow:
        0 28px 55px -18px rgba(15, 40, 90, .42),
        0 0 0 1px rgba(15, 40, 90, .04),
        inset 0 1px 0 rgba(255, 255, 255, .9);
    overflow: hidden;
    position: relative;
}

.swal2-popup.bravo-swal::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bravo-swal-btn);
}

/* Icon: jangan ubah struktur internal Swal2 (success/error absolute lines) */
.swal2-popup.bravo-swal .swal2-icon {
    margin: .35rem auto 1rem;
    width: 5em;
    height: 5em;
    box-shadow: 0 0 0 10px var(--bravo-swal-accent-soft);
    border-radius: 50%;
}

/* Glow hanya untuk icon karakter (warning/info/question), bukan success/error */
.swal2-popup.bravo-swal .swal2-icon.swal2-warning,
.swal2-popup.bravo-swal .swal2-icon.swal2-info,
.swal2-popup.bravo-swal .swal2-icon.swal2-question {
    border-width: .25em;
    animation: bravoSwalGlow 1.8s ease-in-out infinite;
}

.swal2-popup.bravo-swal .bravo-swal__title,
.swal2-popup.bravo-swal .swal2-title {
    margin: 0 0 .45rem;
    padding: 0;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: #15263f;
    line-height: 1.25;
}

.swal2-popup.bravo-swal .bravo-swal__text,
.swal2-popup.bravo-swal .swal2-html-container {
    margin: 0;
    padding: 0 .25rem;
    font-size: .95rem;
    line-height: 1.55;
    color: #5d6f86;
}

.swal2-popup.bravo-swal .bravo-swal__actions,
.swal2-popup.bravo-swal .swal2-actions {
    margin: 1.25rem 0 0;
    gap: .55rem;
}

.swal2-popup.bravo-swal .bravo-swal__btn {
    margin: 0 !important;
    min-width: 7.5rem;
    border: 0;
    border-radius: 12px;
    padding: .7rem 1.15rem;
    font-weight: 700;
    font-size: .9rem;
    letter-spacing: .01em;
    box-shadow: none;
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.swal2-popup.bravo-swal .bravo-swal__btn:focus {
    box-shadow: 0 0 0 3px var(--bravo-swal-accent-soft);
}

.swal2-popup.bravo-swal .bravo-swal__btn--confirm {
    color: #fff !important;
    background: var(--bravo-swal-btn) !important;
    box-shadow: var(--bravo-swal-btn-shadow);
}

.swal2-popup.bravo-swal .bravo-swal__btn--confirm:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.swal2-popup.bravo-swal .bravo-swal__btn--cancel {
    color: #4d5d73 !important;
    background: #eef2f7 !important;
    box-shadow: inset 0 0 0 1px rgba(77, 93, 115, .08);
}

.swal2-popup.bravo-swal .bravo-swal__btn--cancel:hover {
    background: #e4eaf2 !important;
    transform: translateY(-1px);
}

.swal2-popup.bravo-swal .bravo-swal__btn--deny {
    color: #fff !important;
    background: linear-gradient(135deg, #e14b4b 0%, #f46a6a 55%, #ff8a8a 100%) !important;
    box-shadow: 0 10px 22px -8px rgba(244, 106, 106, .55);
}

.swal2-popup.bravo-swal .bravo-swal__btn--deny:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.swal2-popup.bravo-swal .bravo-swal__btn:active {
    transform: translateY(0);
}

/* --- Ganti Perangkat: 3 tombol sejajar + form pesan --- */
.swal2-popup.bravo-swal.bravo-swal-ganti-perangkat {
    width: min(560px, 96vw);
}

.swal2-popup.bravo-swal.bravo-swal-ganti-perangkat .bravo-swal__actions,
.swal2-popup.bravo-swal.bravo-swal-ganti-perangkat .swal2-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    align-items: stretch;
    justify-content: center;
    gap: .55rem;
    width: 100%;
}

.swal2-popup.bravo-swal.bravo-swal-ganti-perangkat .bravo-swal__btn,
.swal2-popup.bravo-swal.bravo-swal-ganti-perangkat .bravo-swal__btn--confirm {
    flex: 1 1 0;
    min-width: 0 !important;
    width: auto !important;
    white-space: nowrap;
    padding: .72rem .7rem;
    font-size: .86rem;
}

.swal2-popup.bravo-swal.bravo-swal-ganti-perangkat .swal2-html-container {
    max-width: none;
}

#pesan_setuju_gp {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid #d7e0ec;
    padding: .75rem .85rem;
    font-size: .95rem;
}

#pesan_setuju_gp:focus {
    outline: none;
    border-color: #2f8be6;
    box-shadow: 0 0 0 3px rgba(47, 139, 230, .16);
}

/* --- Confirmation (dua tombol) --- */
.swal2-popup.bravo-swal.bravo-swal--confirm {
    width: min(440px, 94vw);
    padding: 2rem 1.65rem 1.55rem;
}

.swal2-popup.bravo-swal.bravo-swal--confirm .swal2-icon {
    margin-bottom: 1.1rem;
    box-shadow: 0 0 0 12px var(--bravo-swal-accent-soft);
}

.swal2-popup.bravo-swal.bravo-swal--confirm .swal2-icon.swal2-warning,
.swal2-popup.bravo-swal.bravo-swal--confirm .swal2-icon.swal2-info,
.swal2-popup.bravo-swal.bravo-swal--confirm .swal2-icon.swal2-question {
    animation: bravoSwalConfirmPulse 1.6s ease-in-out infinite;
}

.swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__title,
.swal2-popup.bravo-swal.bravo-swal--confirm .swal2-title {
    font-size: 1.35rem;
}

.swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__text,
.swal2-popup.bravo-swal.bravo-swal--confirm .swal2-html-container {
    font-size: .98rem;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
}

.swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__actions,
.swal2-popup.bravo-swal.bravo-swal--confirm .swal2-actions {
    width: 100%;
    margin-top: 1.45rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(21, 38, 63, .08);
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem;
}

.swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__btn {
    min-width: 8.25rem;
    padding: .78rem 1.25rem;
    border-radius: 14px;
    font-size: .92rem;
}

.swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__btn--cancel {
    background: #fff !important;
    color: #4d5d73 !important;
    box-shadow:
        inset 0 0 0 1.5px rgba(77, 93, 115, .18),
        0 4px 12px -6px rgba(15, 40, 90, .12);
}

.swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__btn--cancel:hover {
    background: #f4f7fb !important;
    box-shadow:
        inset 0 0 0 1.5px rgba(77, 93, 115, .28),
        0 6px 14px -6px rgba(15, 40, 90, .16);
}

.swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__btn--confirm {
    min-width: 9rem;
    box-shadow:
        var(--bravo-swal-btn-shadow),
        0 0 0 4px var(--bravo-swal-accent-soft);
}

.swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__btn--confirm:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow:
        0 14px 26px -8px var(--bravo-swal-accent-glow),
        0 0 0 5px var(--bravo-swal-accent-soft);
}

/* Confirm hapus / aksi berbahaya */
.swal2-popup.bravo-swal.bravo-swal--confirm.bravo-swal--danger {
    --bravo-swal-accent: #f46a6a;
    --bravo-swal-accent-soft: rgba(244, 106, 106, .18);
    --bravo-swal-accent-glow: rgba(244, 106, 106, .42);
    --bravo-swal-btn: linear-gradient(135deg, #e14b4b 0%, #f46a6a 55%, #ff8a8a 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(244, 106, 106, .55);
}

/* Confirm proses / pertanyaan (biru) */
.swal2-popup.bravo-swal.bravo-swal--confirm.bravo-swal--info {
    --bravo-swal-accent: #2f8be6;
    --bravo-swal-accent-soft: rgba(47, 139, 230, .16);
    --bravo-swal-accent-glow: rgba(47, 139, 230, .4);
    --bravo-swal-btn: linear-gradient(135deg, #1f58c7 0%, #2f8be6 55%, #56a8f5 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(31, 88, 199, .55);
}

@keyframes bravoSwalConfirmPulse {
    0%, 100% { transform: scale(1); opacity: .92; }
    50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 480px) {
    .swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__actions,
    .swal2-popup.bravo-swal.bravo-swal--confirm .swal2-actions {
        flex-direction: column-reverse;
    }

    .swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__btn,
    .swal2-popup.bravo-swal.bravo-swal--confirm .bravo-swal__btn--confirm {
        width: 100%;
        min-width: 0;
    }
}

/* --- Variants (class eksplisit menang atas :has) --- */
.swal2-popup.bravo-swal:has(.swal2-icon.swal2-success) {
    --bravo-swal-accent: #1cbb8c;
    --bravo-swal-accent-soft: rgba(28, 187, 140, .16);
    --bravo-swal-accent-glow: rgba(28, 187, 140, .4);
    --bravo-swal-btn: linear-gradient(135deg, #159a73 0%, #1cbb8c 55%, #34d3a5 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(28, 187, 140, .55);
}

.swal2-popup.bravo-swal:has(.swal2-icon.swal2-warning),
.swal2-popup.bravo-swal:has(.swal2-icon.swal2-question) {
    --bravo-swal-accent: #f1b44c;
    --bravo-swal-accent-soft: rgba(241, 180, 76, .2);
    --bravo-swal-accent-glow: rgba(241, 180, 76, .45);
    --bravo-swal-btn: linear-gradient(135deg, #e09a1f 0%, #f1b44c 55%, #ffc96a 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(224, 154, 31, .5);
}

.swal2-popup.bravo-swal:has(.swal2-icon.swal2-error) {
    --bravo-swal-accent: #f46a6a;
    --bravo-swal-accent-soft: rgba(244, 106, 106, .18);
    --bravo-swal-accent-glow: rgba(244, 106, 106, .42);
    --bravo-swal-btn: linear-gradient(135deg, #e14b4b 0%, #f46a6a 55%, #ff8a8a 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(244, 106, 106, .55);
}

.swal2-popup.bravo-swal:has(.swal2-icon.swal2-info) {
    --bravo-swal-accent: #2f8be6;
    --bravo-swal-accent-soft: rgba(47, 139, 230, .16);
    --bravo-swal-accent-glow: rgba(47, 139, 230, .4);
    --bravo-swal-btn: linear-gradient(135deg, #1f58c7 0%, #2f8be6 55%, #56a8f5 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(31, 88, 199, .55);
}

.swal2-popup.bravo-swal.bravo-swal--success {
    --bravo-swal-accent: #1cbb8c;
    --bravo-swal-accent-soft: rgba(28, 187, 140, .16);
    --bravo-swal-accent-glow: rgba(28, 187, 140, .4);
    --bravo-swal-btn: linear-gradient(135deg, #159a73 0%, #1cbb8c 55%, #34d3a5 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(28, 187, 140, .55);
}

.swal2-popup.bravo-swal.bravo-swal--warning {
    --bravo-swal-accent: #f1b44c;
    --bravo-swal-accent-soft: rgba(241, 180, 76, .2);
    --bravo-swal-accent-glow: rgba(241, 180, 76, .45);
    --bravo-swal-btn: linear-gradient(135deg, #e09a1f 0%, #f1b44c 55%, #ffc96a 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(224, 154, 31, .5);
}

.swal2-popup.bravo-swal.bravo-swal--danger {
    --bravo-swal-accent: #f46a6a;
    --bravo-swal-accent-soft: rgba(244, 106, 106, .18);
    --bravo-swal-accent-glow: rgba(244, 106, 106, .42);
    --bravo-swal-btn: linear-gradient(135deg, #e14b4b 0%, #f46a6a 55%, #ff8a8a 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(244, 106, 106, .55);
}

.swal2-popup.bravo-swal.bravo-swal--info {
    --bravo-swal-accent: #2f8be6;
    --bravo-swal-accent-soft: rgba(47, 139, 230, .16);
    --bravo-swal-accent-glow: rgba(47, 139, 230, .4);
    --bravo-swal-btn: linear-gradient(135deg, #1f58c7 0%, #2f8be6 55%, #56a8f5 100%);
    --bravo-swal-btn-shadow: 0 10px 22px -8px rgba(31, 88, 199, .55);
}

/* Icon warna â€” jangan ubah position/ukuran elemen internal Swal2 */
.swal2-popup.bravo-swal .swal2-icon.swal2-success {
    border-color: #a5dc86;
    color: #1cbb8c;
}

.swal2-popup.bravo-swal .swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(28, 187, 140, .3);
}

.swal2-popup.bravo-swal .swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #1cbb8c;
}

.swal2-popup.bravo-swal .swal2-icon.swal2-warning {
    border-color: #facea8;
    color: #e09a1f;
}

.swal2-popup.bravo-swal .swal2-icon.swal2-error {
    border-color: #f27474;
    color: #f46a6a;
}

.swal2-popup.bravo-swal .swal2-icon.swal2-error [class^=swal2-x-mark-line] {
    background-color: #f46a6a;
}

.swal2-popup.bravo-swal .swal2-icon.swal2-info,
.swal2-popup.bravo-swal .swal2-icon.swal2-question {
    border-color: #9de0f6;
    color: #2f8be6;
}

.swal2-popup.bravo-swal.bravo-swal--danger .swal2-icon.swal2-warning {
    border-color: #f5c2c2;
    color: #f46a6a;
}

.swal2-popup.bravo-swal .swal2-timer-progress-bar {
    background: var(--bravo-swal-accent);
}

@keyframes bravoSwalGlow {
    0%, 100% { transform: scale(1); opacity: .9; }
    50% { transform: scale(1.06); opacity: 1; }
}

@media (max-width: 480px) {
    .swal2-popup.bravo-swal {
        padding: 1.55rem 1.15rem 1.25rem;
        border-radius: 18px;
    }

    .swal2-popup.bravo-swal .bravo-swal__title,
    .swal2-popup.bravo-swal .swal2-title {
        font-size: 1.12rem;
    }

    .swal2-popup.bravo-swal .bravo-swal__btn {
        min-width: 6.4rem;
        padding: .65rem 1rem;
    }
}

/* ==========================================================================
   Login Captcha
   ========================================================================== */
.bravo-captcha-row {
    display: flex;
    align-items: stretch;
    gap: .55rem;
}

.bravo-captcha-code {
    flex: 0 0 auto;
    min-width: 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .85rem;
    border-radius: 12px;
    font-family: "Montserrat", "IBM Plex Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .28em;
    color: #fff;
    user-select: none;
    background:
        repeating-linear-gradient(
            -45deg,
            rgba(255, 255, 255, .08) 0 6px,
            transparent 6px 12px
        ),
        linear-gradient(135deg, #0d3b8c 0%, #1f58c7 55%, #2f8be6 100%);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, .18),
        0 8px 16px -10px rgba(31, 88, 199, .8);
    text-shadow: 0 1px 0 rgba(0, 0, 0, .2);
}

.bravo-captcha-refresh {
    flex: 0 0 44px;
    width: 44px;
    border-radius: 12px;
    border: 1.5px solid #d7e3f4;
    background: #f7faff;
    color: #1f58c7;
    font-size: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.bravo-captcha-refresh:hover {
    background: #1f58c7;
    border-color: #1f58c7;
    color: #fff;
}

.bravo-captcha-refresh.is-spinning i {
    animation: bravoSpin .7s linear infinite;
}

.bravo-captcha-row .input-custom-icon .form-control {
    letter-spacing: .15em;
}

@media (max-width: 420px) {
    .bravo-captcha-row {
        flex-wrap: wrap;
    }

    .bravo-captcha-code {
        flex: 1 1 auto;
        min-height: 44px;
    }
}

/* ==========================================================================
   Dashboard â€” Chart Kehadiran (eye-catching donut)
   ========================================================================== */
.bravo-chart-kehadiran-card {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(47, 139, 230, .12) 0%, transparent 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(28, 187, 140, .08) 0%, transparent 50%),
        #ffffff;
    box-shadow:
        0 18px 40px -24px rgba(15, 40, 90, .45),
        0 0 0 1px rgba(31, 88, 199, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bravo-chart-kehadiran-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 24px 48px -22px rgba(15, 40, 90, .5),
        0 0 0 1px rgba(31, 88, 199, .1);
}

.bravo-chart-kehadiran-card .card-body {
    padding: 1.35rem 1.25rem 1rem;
}

.bravo-chart-kehadiran-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: .35rem;
}

.bravo-chart-kehadiran-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    color: #fff;
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 55%, #4ac6f2 100%);
    box-shadow: 0 10px 18px -10px rgba(31, 88, 199, .85);
    animation: bravoChartIconPulse 2.4s ease-in-out infinite;
}

.bravo-chart-kehadiran-head .card-title {
    font-weight: 700;
    color: #1a2b45;
    letter-spacing: .2px;
}

.bravo-chart-kehadiran {
    position: relative;
    min-height: 360px;
}

.bravo-chart-kehadiran::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 42%;
    width: 170px;
    height: 170px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(31, 88, 199, .08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.bravo-chart-kehadiran .apexcharts-canvas {
    position: relative;
    z-index: 1;
}

.bravo-chart-kehadiran .apexcharts-legend-text {
    color: #4a5d78 !important;
}

/* Tooltip light: jangan pakai teks putih di background terang (nama_ket hilang) */
.bravo-chart-kehadiran .apexcharts-tooltip {
    background: #ffffff !important;
    border: 1px solid rgba(15, 23, 42, .1) !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .12) !important;
    color: #0f172a !important;
}

.bravo-chart-kehadiran .apexcharts-tooltip .apexcharts-tooltip-title {
    background: #f8fafc !important;
    border-bottom-color: rgba(15, 23, 42, .08) !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

.bravo-chart-kehadiran .apexcharts-tooltip * {
    color: #0f172a !important;
}

.bravo-chart-kehadiran .apexcharts-tooltip-text-y-label,
.bravo-chart-kehadiran .apexcharts-tooltip-text-y-value {
    color: #334155 !important;
}

@keyframes bravoChartIconPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 10px 18px -10px rgba(31, 88, 199, .85); }
    50% { transform: scale(1.05); box-shadow: 0 14px 22px -8px rgba(31, 88, 199, .95); }
}

/* ==========================================================================
   Dashboard â€” Section heads (Ijin & Pelanggaran)
   ========================================================================== */
.bravo-dash-list-card {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 18px 40px -24px rgba(15, 40, 90, .4),
        0 0 0 1px rgba(31, 88, 199, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.bravo-dash-list-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 24px 48px -22px rgba(15, 40, 90, .48),
        0 0 0 1px rgba(31, 88, 199, .1);
}

.bravo-dash-list-card--ijin {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(47, 198, 242, .14) 0%, transparent 55%),
        radial-gradient(80% 70% at 0% 100%, rgba(31, 88, 199, .07) 0%, transparent 50%),
        #ffffff;
}

.bravo-dash-list-card--pelanggaran {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(241, 180, 76, .16) 0%, transparent 55%),
        radial-gradient(80% 70% at 0% 100%, rgba(244, 106, 106, .08) 0%, transparent 50%),
        #ffffff;
}

.bravo-dash-section-head {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.bravo-dash-section-head::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .9;
    pointer-events: none;
}

.bravo-dash-section-head--ijin {
    background: linear-gradient(135deg, rgba(31, 88, 199, .08) 0%, rgba(74, 198, 242, .14) 100%);
    border: 1px solid rgba(31, 88, 199, .12);
}

.bravo-dash-section-head--ijin::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -24px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(47, 139, 230, .12);
}

.bravo-dash-section-head--pelanggaran {
    background: linear-gradient(135deg, rgba(244, 106, 106, .08) 0%, rgba(241, 180, 76, .16) 100%);
    border: 1px solid rgba(241, 180, 76, .2);
}

.bravo-dash-section-head--pelanggaran::after {
    content: "";
    position: absolute;
    right: -18px;
    top: -24px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(241, 180, 76, .16);
}

.bravo-dash-section-icon {
    position: relative;
    z-index: 1;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    flex-shrink: 0;
}

.bravo-dash-section-head--ijin .bravo-dash-section-icon {
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 55%, #4ac6f2 100%);
    box-shadow: 0 10px 18px -10px rgba(31, 88, 199, .85);
}

.bravo-dash-section-head--pelanggaran .bravo-dash-section-icon {
    background: linear-gradient(135deg, #f46a6a 0%, #f5a623 100%);
    box-shadow: 0 10px 18px -10px rgba(244, 106, 106, .85);
}

.bravo-dash-section-head .card-title {
    position: relative;
    z-index: 1;
    font-weight: 700;
    color: #1a2b45;
    letter-spacing: .2px;
    margin-bottom: 0;
}

.bravo-dash-section-head p {
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Dashboard â€” Welcome / Ucapan banner
   ========================================================================== */
.bravo-welcome-card {
    border-radius: 20px;
    overflow: hidden;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .18) 0%, transparent 42%),
        radial-gradient(90% 120% at 100% 100%, rgba(74, 198, 242, .35) 0%, transparent 48%),
        linear-gradient(118deg, #154fad 0%, #1f58c7 38%, #2a6fd6 68%, #3b8de0 100%);
    box-shadow:
        0 18px 40px -22px rgba(21, 79, 173, .55),
        0 0 0 1px rgba(255, 255, 255, .1) inset;
}

.bravo-welcome-body {
    position: relative;
    padding: 1.5rem 1.6rem !important;
    overflow: hidden;
}

.bravo-welcome-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.bravo-welcome-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
    color: #1f58c7;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .28);
    animation: bravoWelcomeIcon 2.8s ease-in-out infinite;
}

.bravo-welcome-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: .2px;
    line-height: 1.35;
}

.bravo-welcome-title span {
    color: #ffe9a8;
}

.bravo-welcome-subtitle {
    color: rgba(255, 255, 255, .86);
    font-size: .95rem;
    margin-bottom: 0;
}

.bravo-welcome-subtitle strong {
    color: #fff;
    font-weight: 600;
}

.bravo-welcome-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.bravo-welcome-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 600;
    color: #1a4fad;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 6px 16px -10px rgba(0, 0, 0, .3);
}

.bravo-welcome-badge i {
    font-size: .95rem;
}

.bravo-welcome-badge--soft {
    color: #fff;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.bravo-welcome-decoration {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 80% at 92% 20%, rgba(255, 255, 255, .22) 0%, transparent 70%),
        radial-gradient(ellipse 45% 70% at 78% 95%, rgba(120, 210, 255, .22) 0%, transparent 72%),
        radial-gradient(ellipse 40% 60% at 8% 85%, rgba(255, 255, 255, .08) 0%, transparent 70%);
}

.bravo-welcome-decoration::before,
.bravo-welcome-decoration::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
}

.bravo-welcome-decoration::before {
    width: 220px;
    height: 220px;
    right: -70px;
    top: -90px;
    background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, transparent 68%);
}

.bravo-welcome-decoration::after {
    width: 160px;
    height: 160px;
    right: 90px;
    bottom: -70px;
    background: radial-gradient(circle, rgba(74, 198, 242, .2) 0%, transparent 70%);
}

@keyframes bravoWelcomeIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@media (max-width: 575.98px) {
    .bravo-welcome-content {
        align-items: flex-start;
    }

    .bravo-welcome-title {
        font-size: 1.15rem;
    }

    .bravo-welcome-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
}

/* ==========================================================================
   Form page hero header (Profil Sistem, dll.)
   ========================================================================== */
.bravo-form-hero {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    overflow: hidden;
}

.bravo-form-hero--profil {
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(74, 198, 242, .2) 0%, transparent 55%),
        linear-gradient(118deg, rgba(21, 79, 173, .08) 0%, rgba(31, 88, 199, .12) 45%, rgba(47, 139, 230, .1) 100%);
    border: 1px solid rgba(31, 88, 199, .12);
    box-shadow: 0 12px 28px -20px rgba(31, 88, 199, .45);
}

.bravo-form-hero--profil::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 139, 230, .16) 0%, transparent 70%);
    pointer-events: none;
}

.bravo-form-hero-icon {
    position: relative;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
    color: #fff;
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 55%, #4ac6f2 100%);
    box-shadow: 0 10px 20px -10px rgba(31, 88, 199, .85);
}

.bravo-form-hero-text {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.bravo-form-hero-title {
    margin: 0 0 .25rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a2b45;
    letter-spacing: .2px;
}

.bravo-form-hero-desc {
    color: #5a6d86;
    font-size: .9rem;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .bravo-form-hero {
        align-items: flex-start;
        padding: 1rem;
    }

    .bravo-form-hero-icon {
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }

    .bravo-form-hero-title {
        font-size: 1.05rem;
    }
}

.bravo-form-hero--setup {
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(241, 180, 76, .18) 0%, transparent 55%),
        linear-gradient(118deg, rgba(31, 88, 199, .08) 0%, rgba(47, 139, 230, .1) 45%, rgba(28, 187, 140, .08) 100%);
    border: 1px solid rgba(31, 88, 199, .12);
    box-shadow: 0 12px 28px -20px rgba(31, 88, 199, .45);
    margin-bottom: 0;
}

.bravo-form-hero--setup .bravo-form-hero-icon {
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 50%, #1cbb8c 100%);
}

/* ==========================================================================
   Setup Sistem â€” Tabs
   ========================================================================== */
.bravo-setup-tabs-card {
    border: 0;
    border-radius: 18px;
    box-shadow:
        0 18px 40px -24px rgba(15, 40, 90, .4),
        0 0 0 1px rgba(31, 88, 199, .06);
}

.bravo-setup-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: .25rem;
    border-bottom: 1px solid #e8eef8;
    padding-bottom: .15rem;
}

.bravo-setup-tabs .nav-link {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    border: 0;
    border-radius: 10px 10px 0 0;
    color: #5a6d86;
    font-weight: 600;
    font-size: .88rem;
    padding: .75rem 1rem;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.bravo-setup-tabs .nav-link i {
    font-size: 1.05rem;
}

.bravo-setup-tabs .nav-link:hover {
    color: #1f58c7;
    background: rgba(31, 88, 199, .06);
}

.bravo-setup-tabs .nav-link.active {
    color: #1f58c7;
    background: linear-gradient(180deg, rgba(31, 88, 199, .1) 0%, rgba(31, 88, 199, .03) 100%);
    box-shadow: inset 0 -3px 0 #1f58c7;
}

.bravo-setup-tab-content {
    min-height: 220px;
}

.bravo-setup-tab-placeholder {
    text-align: center;
    padding: 2.5rem 1rem;
    border-radius: 14px;
    background:
        radial-gradient(80% 120% at 50% 0%, rgba(31, 88, 199, .06) 0%, transparent 60%),
        #f8fafc;
    border: 1px dashed #d7e3f4;
}

.bravo-setup-tab-placeholder-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto .9rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #1f58c7;
    background: rgba(31, 88, 199, .1);
}

.bravo-setup-tab-placeholder h5 {
    font-weight: 700;
    color: #1a2b45;
}

/* ==========================================================================
   Modal Form Jam Kerja â€” modern & eye-catching
   ========================================================================== */
.bravo-modal-jamkerja {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 60px -24px rgba(15, 40, 90, .55);
    animation: bravoModalIn .35s cubic-bezier(.22, 1, .36, 1);
}

.bravo-modal-jamkerja-header {
    border: 0;
    padding: 1.25rem 1.4rem;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(74, 198, 242, .25) 0%, transparent 50%),
        linear-gradient(118deg, #0d3b8c 0%, #1f58c7 48%, #2f8be6 100%);
    color: #fff;
}

.bravo-modal-jamkerja-title-wrap {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.bravo-modal-jamkerja-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22);
}

.bravo-modal-jamkerja-header .modal-title {
    font-weight: 700;
    letter-spacing: .2px;
}

.bravo-modal-jamkerja-subtitle {
    display: block;
    color: rgba(255, 255, 255, .8);
    font-size: .8rem;
    margin-top: .15rem;
}

.bravo-modal-jamkerja-body {
    padding: 1.25rem 1.4rem 1.4rem;
    background:
        radial-gradient(90% 80% at 100% 0%, rgba(31, 88, 199, .05) 0%, transparent 55%),
        #fff;
}

.bravo-modal-jamkerja-tabs {
    gap: .45rem;
    padding: .35rem;
    border-radius: 12px;
    background: #f1f5fb;
}

.bravo-modal-jamkerja-tabs .nav-link {
    border: 0;
    border-radius: 10px;
    color: #5a6d86;
    font-weight: 600;
    font-size: .88rem;
    padding: .55rem 1rem;
}

.bravo-modal-jamkerja-tabs .nav-link:hover {
    color: #1f58c7;
    background: rgba(255, 255, 255, .7);
}

.bravo-modal-jamkerja-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 100%);
    box-shadow: 0 8px 16px -10px rgba(31, 88, 199, .8);
}

.bravo-modal-jamkerja .form-label {
    font-weight: 600;
    color: #3a4a63;
    font-size: .88rem;
}

.bravo-modal-input {
    height: 44px;
    border-radius: 12px;
    border: 1.5px solid #d7e3f4;
    background: #f7faff;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.bravo-modal-input:focus {
    border-color: #1f58c7;
    background: #fff;
    box-shadow: 0 0 0 .25rem rgba(31, 88, 199, .15);
}

.bravo-status-choice {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.bravo-status-choice-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-width: 120px;
    justify-content: center;
    padding: .55rem .9rem;
    border-radius: 12px;
    border: 1.5px solid #d7e3f4;
    background: #fff;
    color: #5a6d86;
    font-weight: 600;
    font-size: .88rem;
    cursor: pointer;
    transition: all .2s ease;
}

.bravo-status-choice-btn--aktif:hover,
.btn-check:checked + .bravo-status-choice-btn--aktif {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #1cbb8c 0%, #34e0a1 100%);
    box-shadow: 0 10px 18px -12px rgba(28, 187, 140, .9);
}

.bravo-status-choice-btn--nonaktif:hover,
.btn-check:checked + .bravo-status-choice-btn--nonaktif {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #74788d 0%, #95a0b3 100%);
    box-shadow: 0 10px 18px -12px rgba(116, 120, 141, .9);
}

.bravo-modal-jamkerja-actions {
    display: flex;
    justify-content: flex-end;
    gap: .55rem;
    padding-top: .35rem;
}

.bravo-modal-jamkerja-actions .btn,
.bravo-modal-jamkerja-save {
    border-radius: 12px;
    font-weight: 600;
    padding: .55rem 1.1rem;
}

.bravo-modal-jamkerja-save {
    border: 0;
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 100%);
    box-shadow: 0 10px 20px -12px rgba(31, 88, 199, .85);
}

.bravo-modal-jamkerja-save:hover {
    background: linear-gradient(135deg, #1849a8 0%, #1f58c7 100%);
}

.bravo-integrasi-box {
    position: relative;
    padding: 1.15rem;
    border-radius: 14px;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(47, 139, 230, .12) 0%, transparent 55%),
        #f7faff;
    border: 1px solid #d7e3f4;
}

.bravo-integrasi-icon {
    width: 42px;
    height: 42px;
    margin-bottom: .75rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #1f58c7;
    background: rgba(31, 88, 199, .1);
}

/* ==========================================================================
   Login Page â€” E-Presensi Kota Cilegon (scoped to body.login-body)
   ========================================================================== */

body.login-body * { margin: 0; padding: 0; box-sizing: border-box; }

/* Modal tidak ikut reset, agar tetap rata tengah */
body.login-body #modalLupaPassword .modal-dialog {
    margin: 1.75rem auto !important;
    padding: 0;
}

body.login-body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    background: #0e2338;
    background-image:
        radial-gradient(ellipse 90% 70% at 20% 15%, rgba(28, 58, 92, 0.9) 0%, transparent 70%),
        radial-gradient(ellipse 80% 70% at 85% 90%, rgba(12, 28, 46, 0.9) 0%, transparent 70%),
        linear-gradient(150deg, #12314f 0%, #0e2338 55%, #0a1a2b 100%);
    overflow-x: hidden;
}

/* animated floating orbs */
body.login-body::before,
body.login-body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(110px);
    z-index: 0;
    pointer-events: none;
    animation: floatOrb 14s ease-in-out infinite alternate;
}

body.login-body::before {
    width: 520px;
    height: 520px;
    top: -12%;
    left: -6%;
    background: rgba(245, 197, 24, 0.10);
}

body.login-body::after {
    width: 440px;
    height: 440px;
    bottom: -12%;
    right: -6%;
    background: rgba(34, 197, 94, 0.10);
    animation-delay: -7s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, -30px) scale(1.15); }
}

/* TOP NAVBAR */
.login-body .top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    padding: 14px 0;
}

.login-body .top-navbar .nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.login-body .top-navbar .nav-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-right: auto;
    padding-left: 8%;
}

.login-body .top-navbar .nav-brand img {
    height: 44px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.login-body .top-navbar .nav-brand .brand-text h5 {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: 0.3px;
}

.login-body .top-navbar .nav-brand .brand-text small {
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.login-body .top-navbar .system-status {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #4ade80;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 40px;
}

.login-body .top-navbar .system-status .dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px #4ade80;
}

/* MAIN LAYOUT */
.login-body .login-page {
    display: flex;
    min-height: 100vh;
    padding-top: 72px;
    position: relative;
    z-index: 1;
}

/* LEFT PANEL */
.login-body .login-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 60px 60px 12%;
    color: #fff;
    position: relative;
}

.login-body .login-left .greeting {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 197, 24, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 197, 24, 0.25);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 28px;
    color: #f5c518;
    width: fit-content;
}

.login-body .login-left h1 {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.5px;
    color: #f5c518;
}

.login-body .login-left h1 span {
    color: #ffffff;
}

.login-body .login-left .tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 440px;
    margin-bottom: 44px;
}

.login-body .feature-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-width: 480px;
}

.login-body .feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s;
}

.login-body .feature-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.login-body .feature-card .fc-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
}

.login-body .feature-card .fc-icon.blue { background: rgba(245, 197, 24, 0.18); color: #f5c518; }
.login-body .feature-card .fc-icon.green { background: rgba(34, 197, 94, 0.18); color: #4ade80; }
.login-body .feature-card .fc-icon.purple { background: rgba(245, 197, 24, 0.18); color: #f5c518; }
.login-body .feature-card .fc-icon.orange { background: rgba(34, 197, 94, 0.18); color: #4ade80; }

.login-body .feature-card h6 {
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #fff;
}

.login-body .feature-card p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* RIGHT PANEL â€” LOGIN FORM */
.login-body .login-right {
    width: 480px;
    min-width: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 50px;
    margin-right: 4%;
}

.login-body .login-card {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-body .login-card .form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.login-body .login-card .form-header .header-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #f5c518, #22c55e);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0e2338;
    font-size: 20px;
}

.login-body .login-card .form-header h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.login-body .login-card .form-header small {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.login-body .login-card .form-subtitle {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13.5px;
    margin-bottom: 26px;
    margin-top: 4px;
}

.login-body .login-card .form-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-body .login-card .form-control {
    border-radius: 10px;
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: border-color 0.2s;
}

.login-body .login-card .form-control::placeholder { color: rgba(255, 255, 255, 0.3); }

.login-body .login-card .form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
    color: #fff;
}

.login-body .login-card .input-custom-icon span,
.login-body .login-card .auth-pass-inputgroup span {
    color: rgba(255, 255, 255, 0.35);
}

.login-body .login-card .form-check-label { color: rgba(255, 255, 255, 0.55); font-size: 13px; }

.login-body .login-card .form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.login-body .login-card .form-check-input:checked {
    background-color: #22c55e;
    border-color: #22c55e;
}

.login-body .login-card .btn-login {
    background: linear-gradient(135deg, #f5c518 0%, #22c55e 100%);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #0e2338;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.login-body .login-card .btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(245, 197, 24, 0.4);
}

.login-body .login-card .lupa-sandi { color: #f5c518; font-size: 13px; font-weight: 600; text-decoration: none; }
.login-body .login-card .lupa-sandi:hover { color: #ffd84d; }

.login-body .login-card .footer-help {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.login-body .login-card .footer-help a {
    color: #f5c518;
    font-weight: 600;
    text-decoration: none;
}

.login-body .login-card #password-addon i { color: rgba(255, 255, 255, 0.4); }

@media (max-width: 991px) {
    .login-body .login-page { flex-direction: column; padding-top: 80px; }
    .login-body .login-left { padding: 40px 30px; }
    .login-body .login-left h1 { font-size: 30px; }
    .login-body .feature-cards { grid-template-columns: 1fr; }
    .login-body .login-right { width: 100%; min-width: auto; padding: 20px; margin-right: 0; }
    .login-body .top-navbar .nav-brand { padding-left: 0; }
}

@media (max-width: 576px) {
    .login-body .login-left { padding: 30px 20px; }
    .login-body .login-card { padding: 28px 20px; }
    .login-body .top-navbar .nav-inner { padding: 0 16px; }
}

/* ==========================================================================
   Foto picker + crop modal (pegawai)
   ========================================================================== */
.bravo-foto-picker {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.bravo-foto-preview {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    border-radius: 50% !important;
    border: 2px dashed #cfd6e4;
    background: #f5f7fb;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    flex: 0 0 80px;
    position: relative;
    padding: 0 !important;
}

.bravo-foto-preview .bravo-foto-placeholder {
    font-size: 1.6rem;
    color: #8b97ad;
    line-height: 1;
}

.bravo-foto-preview img,
.bravo-foto-preview .bravo-foto-preview-img {
    position: absolute !important;
    inset: 0 !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    margin: 0 !important;
}

.bravo-foto-preview.has-foto {
    border-style: solid;
    border-color: #556ee6;
    background: #fff;
}

.bravo-foto-actions {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.bravo-foto-actions .btn,
.bravo-foto-actions .btn-pilih-foto {
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.bravo-foto-status {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.35;
}

.bravo-foto-status.is-ready {
    color: #1cbb8c;
}

.bravo-foto-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #878a99;
    line-height: 1.35;
}

#modalCropFoto {
    z-index: 1065;
}

.modal-backdrop.bravo-crop-backdrop {
    z-index: 1060;
}

.bravo-crop-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .2);
}

.bravo-crop-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bravo-crop-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(85, 110, 230, .12);
    color: #556ee6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.bravo-crop-stage {
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
    background: #111827;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.bravo-crop-stage img#cropFotoImage {
    display: block;
    max-width: 100%;
}

.bravo-crop-zoom {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 320px;
    margin: 0 auto;
}

.bravo-crop-zoom i {
    color: #6c757d;
    font-size: 1.15rem;
}

.bravo-crop-zoom .form-range {
    flex: 1;
}

/* ===== Absen Hari Ini (table + modal preview/detail/edit) ===== */
.bootstrap-table .fixed-table-toolbar .btn i.bx {
    font-size: 1.1rem;
    vertical-align: middle;
    line-height: 1;
}

/* Kolom Aksi â€” horizontal, rapi, eye-catching */
#tableabsenhariini .absen-aksi-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

#tableabsenhariini .absen-aksi-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    line-height: 1;
    box-shadow: 0 6px 14px -8px rgba(15, 40, 80, .45);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

#tableabsenhariini .absen-aksi-btn i.bx {
    font-size: 1.05rem;
    line-height: 1;
}

#tableabsenhariini .absen-aksi-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 10px 18px -10px rgba(15, 40, 80, .55);
}

#tableabsenhariini .absen-aksi-btn:active {
    transform: translateY(0);
}

#tableabsenhariini .absen-aksi-btn--detail {
    color: #fff;
    background: linear-gradient(135deg, #2f8be6 0%, #56a8f5 100%);
}

#tableabsenhariini .absen-aksi-btn--edit {
    color: #fff;
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 100%);
}

#tableabsenhariini .absen-aksi-btn--hapus {
    color: #fff;
    background: linear-gradient(135deg, #e14b4b 0%, #f46a6a 100%);
}

/* Jam + foto absen */
#tableabsenhariini .absen-jam-foto {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    min-width: 64px;
}

#tableabsenhariini .absen-jam-foto__time {
    font-size: .82rem;
    font-weight: 700;
    color: #1a2b45;
    line-height: 1.2;
    white-space: nowrap;
}

#tableabsenhariini .absen-jam-foto__thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e4ebf5;
    background: #f4f7fc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 14px -10px rgba(15, 40, 80, .4);
    transition: transform .15s ease, box-shadow .15s ease;
}

#tableabsenhariini button.absen-jam-foto__thumb {
    padding: 0;
    cursor: pointer;
}

#tableabsenhariini button.absen-jam-foto__thumb:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -10px rgba(31, 88, 199, .55);
}

#tableabsenhariini .absen-jam-foto__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#tableabsenhariini .absen-jam-foto__thumb--empty {
    color: #9aa8bc;
    cursor: default;
}

#tableabsenhariini .absen-jam-foto__thumb--empty i.bx {
    font-size: 1.35rem;
    line-height: 1;
}

#modalPreviewFotoAbsen .modal-content {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    background: #0f1b2d;
}

#modalPreviewFotoAbsen .modal-header {
    border-bottom: 0;
    background: linear-gradient(135deg, #0d3b8c 0%, #1f58c7 55%, #2f8be6 100%);
    color: #fff;
    padding: .9rem 1.1rem;
}

#modalPreviewFotoAbsen .modal-title {
    font-size: .98rem;
    font-weight: 700;
}

#modalPreviewFotoAbsen .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: .9;
}

#modalPreviewFotoAbsen .modal-body {
    padding: 1rem 1.1rem 1.15rem;
    background:
        radial-gradient(120% 80% at 50% 0%, rgba(47, 139, 230, .18) 0%, transparent 55%),
        #101c30;
    color: #e8eef8;
}

#modalPreviewFotoAbsen #previewFotoAbsenImg {
    max-width: 100%;
    max-height: min(52vh, 420px);
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .65);
    object-fit: contain;
    background: #0b1524;
    display: block;
    margin: 0 auto;
}

#modalPreviewFotoAbsen .preview-absen-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: .85rem 0 .75rem;
}

#modalPreviewFotoAbsen .preview-absen-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
    font-size: .84rem;
    font-weight: 600;
    color: #f4f7fc;
}

#modalPreviewFotoAbsen .preview-absen-chip i {
    color: #56a8f5;
    font-size: 1.05rem;
}

#modalPreviewFotoAbsen .preview-absen-chip span strong {
    color: #fff;
    font-weight: 700;
}

#modalPreviewFotoAbsen .preview-absen-map-wrap {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .12);
    background: #0b1524;
    min-height: 220px;
}

#modalPreviewFotoAbsen #previewFotoAbsenMap {
    width: 100%;
    height: 240px;
}

#modalPreviewFotoAbsen .preview-absen-map-empty {
    min-height: 220px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .35rem;
    color: #9aa8bc;
    text-align: center;
    padding: 1.5rem;
}

#modalPreviewFotoAbsen .preview-absen-map-empty.is-visible {
    display: flex;
}

#modalPreviewFotoAbsen .preview-absen-map-empty i {
    font-size: 1.8rem;
    color: #56a8f5;
}

#modalPreviewFotoAbsen .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: #101c30;
    justify-content: center;
}

#modalPreviewFotoAbsen .modal-footer .btn {
    min-width: 120px;
    border-radius: 10px;
}

@media (min-width: 768px) {
    #modalPreviewFotoAbsen .preview-absen-layout {
        display: grid;
        grid-template-columns: minmax(220px, 38%) 1fr;
        gap: 1rem;
        align-items: start;
    }

    #modalPreviewFotoAbsen #previewFotoAbsenImg {
        max-height: min(58vh, 460px);
    }

    #modalPreviewFotoAbsen #previewFotoAbsenMap {
        height: 280px;
    }
}

/* ===== Modal Detail Absen ===== */
#modalDetailAbsen .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 48px -20px rgba(13, 59, 140, .45);
}

#modalDetailAbsen .modal-header {
    border-bottom: 0;
    background: linear-gradient(135deg, #0d3b8c 0%, #1f58c7 48%, #2f8be6 100%);
    color: #fff;
    padding: 1rem 1.25rem;
}

#modalDetailAbsen .modal-title {
    font-weight: 700;
}

#modalDetailAbsen .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: .9;
}

#modalDetailAbsen .modal-body {
    padding: 1.15rem 1.25rem 1.25rem;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(47, 139, 230, .10) 0%, transparent 55%),
        #f7faff;
}

#modalDetailAbsen .detail-absen-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e4ebf5;
    box-shadow: 0 10px 24px -18px rgba(15, 40, 80, .35);
    margin-bottom: 1rem;
}

#modalDetailAbsen .detail-absen-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(145deg, #1f58c7, #56a8f5);
    flex: 0 0 88px;
}

#modalDetailAbsen .detail-absen-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    display: block;
    background: #eef4ff;
}

#modalDetailAbsen .detail-absen-identity {
    flex: 1 1 auto;
    min-width: 0;
}

#modalDetailAbsen .detail-absen-identity h5 {
    margin: 0 0 .2rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a2b45;
}

#modalDetailAbsen .detail-absen-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    flex-wrap: nowrap;
    margin: 0 0 .2rem;
    width: 100%;
}

#modalDetailAbsen .detail-absen-name-row h5 {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#modalDetailAbsen .detail-absen-id-data {
    flex: 0 0 auto;
    margin-left: auto;
    font-size: 11px;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
}

#modalDetailAbsen .detail-absen-id-data strong {
    color: #444;
    font-weight: 700;
}

#modalDetailAbsen .detail-absen-identity .nip {
    margin: 0 0 .55rem;
    color: #6b7c93;
    font-size: .86rem;
    font-weight: 600;
}

#modalDetailAbsen .detail-absen-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: rgba(31, 88, 199, .12);
    color: #1f58c7;
    font-size: .75rem;
    font-weight: 700;
}

#modalDetailAbsen .detail-absen-section-title {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .7rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: rgba(31, 88, 199, .08);
    color: #1f58c7;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

#modalDetailAbsen .detail-absen-times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
    margin-bottom: 1rem;
}

#modalDetailAbsen .detail-absen-time-card {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    padding: .75rem .85rem;
    transition: border-color .15s ease, transform .15s ease;
}

#modalDetailAbsen .detail-absen-time-card:hover {
    border-color: #b9cff5;
    transform: translateY(-1px);
}

#modalDetailAbsen .detail-absen-time-card .label {
    display: flex;
    align-items: center;
    gap: .35rem;
    color: #6b7c93;
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

#modalDetailAbsen .detail-absen-time-card .label i {
    color: #2f8be6;
    font-size: .95rem;
}

#modalDetailAbsen .detail-absen-time-card .value {
    color: #1a2b45;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
}

#modalDetailAbsen .detail-absen-time-card.is-warn .value {
    color: #d97706;
}

#modalDetailAbsen .detail-absen-time-card .meta {
    margin-top: .35rem;
    color: #6b7c93;
    font-size: .78rem;
    font-weight: 600;
}

#modalDetailAbsen .detail-absen-time-card .meta strong {
    color: #1f58c7;
    font-weight: 700;
}

#modalDetailAbsen .detail-absen-tabs {
    border-bottom: 1px solid #e4ebf5;
    margin-bottom: .85rem;
    gap: .25rem;
    flex-wrap: nowrap;
    overflow-x: auto;
}

#modalDetailAbsen .detail-absen-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    color: #6b7c93;
    font-size: .82rem;
    font-weight: 700;
    padding: .45rem .9rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

#modalDetailAbsen .detail-absen-tabs .nav-link i {
    font-size: 1rem;
}

#modalDetailAbsen .detail-absen-tabs .nav-link:hover {
    color: #1f58c7;
    background: rgba(31, 88, 199, .08);
}

#modalDetailAbsen .detail-absen-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #1f58c7, #2f8be6);
}

#modalDetailAbsen .detail-absen-tab-content {
    min-height: 220px;
}

#modalDetailAbsen .detail-absen-map-block {
    margin-top: .35rem;
}

#modalDetailAbsen .detail-absen-map-wrap {
    position: relative;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    overflow: hidden;
    background: #f4f7fc;
    min-height: 360px;
}

#modalDetailAbsen .detail-absen-map {
    width: 100%;
    height: 360px;
    z-index: 1;
}

#modalDetailAbsen .detail-absen-map-empty {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .35rem;
    color: #8a97ab;
    font-size: .86rem;
    font-weight: 600;
    background: #f4f7fc;
    z-index: 2;
}

#modalDetailAbsen .detail-absen-map-empty.is-visible {
    display: flex;
}

#modalDetailAbsen .detail-absen-map-empty i {
    font-size: 1.8rem;
}

.detail-absen-map-marker {
    background: transparent;
    border: 0;
    cursor: pointer;
}

.detail-absen-map-marker__pin {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid #1f58c7;
    box-shadow: 0 8px 16px -10px rgba(15, 40, 80, .7);
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
}

.leaflet-popup.detail-absen-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 36px -16px rgba(15, 40, 80, .45);
    border: 1px solid #d7e2f0;
}

.leaflet-popup.detail-absen-leaflet-popup .leaflet-popup-content {
    margin: 0;
    min-width: 240px;
    line-height: 1.35;
}

.leaflet-popup.detail-absen-leaflet-popup .leaflet-popup-tip {
    background: #fff;
}

.da-map-popup {
    width: 248px;
    background: #fff;
}

.da-map-popup__foto {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    background: #eef3f9;
}

.da-map-popup__foto--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a97ab;
    font-size: 2.2rem;
}

.da-map-popup__body {
    padding: .7rem .85rem .85rem;
}

.da-map-popup__title {
    font-size: .82rem;
    font-weight: 800;
    color: #1a2b45;
    margin-bottom: .4rem;
}

.da-map-popup__coord {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 700;
    color: #1f58c7;
    word-break: break-all;
}

.da-map-popup__coord i {
    font-size: 1rem;
    flex-shrink: 0;
}

.detail-absen-map-marker__pin::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -8px;
    width: 12px;
    height: 12px;
    background: #1f58c7;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 2px;
    z-index: -1;
}

.detail-absen-map-marker__pin img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-absen-map-marker__pin i {
    color: #1f58c7;
    font-size: 1.35rem;
}

#modalDetailAbsen .detail-absen-photos {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
}

#modalDetailAbsen .detail-absen-photo-card {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 14px;
    padding: .55rem;
    text-align: center;
}

#modalDetailAbsen .detail-absen-photo-card .caption {
    display: block;
    margin-top: .4rem;
    font-size: .72rem;
    font-weight: 700;
    color: #6b7c93;
}

#modalDetailAbsen .detail-absen-photo-thumb {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e4ebf5;
    background: #f4f7fc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

#modalDetailAbsen .detail-absen-photo-thumb:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px -12px rgba(31, 88, 199, .55);
}

#modalDetailAbsen .detail-absen-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#modalDetailAbsen .detail-absen-photo-thumb.is-empty {
    color: #9aa8bc;
    cursor: default;
}

#modalDetailAbsen .detail-absen-photo-thumb.is-empty i {
    font-size: 1.6rem;
}

#modalDetailAbsen .modal-footer {
    border-top: 1px solid #e4ebf5;
    background: #fff;
}

@media (max-width: 767.98px) {
    #modalDetailAbsen .detail-absen-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #modalDetailAbsen .detail-absen-hero {
        flex-direction: column;
        text-align: center;
    }
}

/* ===== Modal Tambah Absen ===== */
#modalTambahAbsen .modal-dialog {
    max-width: 980px;
    max-height: calc(100vh - 1.25rem);
    margin: .65rem auto;
}

#modalTambahAbsen .tambah-absen-modal {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    max-height: calc(100vh - 1.25rem);
    height: auto;
    display: flex;
    flex-direction: column;
    box-shadow: 0 28px 60px -26px rgba(15, 40, 80, .5);
}

#modalTambahAbsen .tambah-absen-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
    max-height: calc(100vh - 1.25rem);
}

#modalTambahAbsen .tambah-absen-modal__header {
    position: relative;
    flex: 0 0 auto;
    border: 0;
    background:
        radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .2) 0%, transparent 45%),
        linear-gradient(125deg, #0f3a88 0%, #1f58c7 50%, #2f8be6 100%);
    padding: 1rem 1.2rem;
    overflow: hidden;
}

#modalTambahAbsen .tambah-absen-modal__header::after {
    content: '';
    position: absolute;
    right: -36px;
    top: -46px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

#modalTambahAbsen .tambah-absen-modal__title-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .8rem;
}

#modalTambahAbsen .tambah-absen-modal__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 1.35rem;
    flex: 0 0 42px;
}

#modalTambahAbsen .modal-title {
    font-weight: 700;
}

#modalTambahAbsen .tambah-absen-modal__subtitle {
    display: block;
    color: rgba(255, 255, 255, .8);
    font-size: .78rem;
    margin-top: .12rem;
}

#modalTambahAbsen .tambah-absen-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background: linear-gradient(180deg, #f4f8fc 0%, #fff 42%);
    padding: .7rem 1.15rem .85rem;
}

#modalTambahAbsen .tambah-absen-section {
    margin-bottom: .4rem;
    padding-bottom: .45rem;
    border-bottom: 1px dashed #d7e3f4;
}

#modalTambahAbsen .tambah-absen-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

#modalTambahAbsen .tambah-absen-section__title {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .55rem;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #1f58c7;
}

#modalTambahAbsen .tambah-absen-section__title i {
    font-size: 1.05rem;
}

#modalTambahAbsen .tambah-absen-section--pegawai .tambah-absen-section__title { color: #1f58c7; }
#modalTambahAbsen .tambah-absen-section--masuk .tambah-absen-section__title { color: #0f9f6e; }
#modalTambahAbsen .tambah-absen-section--pulang .tambah-absen-section__title { color: #c2410c; }
#modalTambahAbsen .tambah-absen-section--istirahat .tambah-absen-section__title { color: #0369a1; }
#modalTambahAbsen .tambah-absen-section--foto .tambah-absen-section__title { color: #0e7490; }

#modalTambahAbsen .col-form-label {
    color: #334155;
    font-size: .86rem;
    font-weight: 600;
    padding-top: .45rem;
    padding-bottom: .45rem;
}

#modalTambahAbsen .form-control,
#modalTambahAbsen .form-select {
    border-radius: 11px;
    border: 1.5px solid #d5e2f3;
    min-height: 40px;
    background: #fff;
    box-shadow: none;
}

#modalTambahAbsen .form-control:focus,
#modalTambahAbsen .form-select:focus {
    border-color: #2f8be6;
    box-shadow: 0 0 0 .2rem rgba(47, 139, 230, .14);
}

#modalTambahAbsen input[type="file"].form-control {
    padding: .35rem .7rem;
}

#modalTambahAbsen input[type="file"].form-control::file-selector-button {
    border: 0;
    border-radius: 9px;
    margin-right: .7rem;
    padding: .35rem .75rem;
    background: linear-gradient(135deg, #1f58c7, #2f8be6);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

#modalTambahAbsen .select2-container--bootstrap-5 .select2-selection {
    border-radius: 11px !important;
    border: 1.5px solid #d5e2f3 !important;
    min-height: 40px !important;
    background: #fff !important;
}

#modalTambahAbsen .select2-container--bootstrap-5.select2-container--focus .select2-selection,
#modalTambahAbsen .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #2f8be6 !important;
    box-shadow: 0 0 0 .2rem rgba(47, 139, 230, .14) !important;
}

#modalTambahAbsen .tambah-absen-modal__footer {
    flex: 0 0 auto;
    border-top: 1px solid #e4ebf5;
    background: #fff;
    padding: .8rem 1.2rem;
    gap: .55rem;
    z-index: 2;
}

#modalTambahAbsen .tambah-absen-modal__footer .btn-primary {
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #163f96, #1f58c7 45%, #2f8be6);
    box-shadow: 0 10px 18px -12px rgba(31, 88, 199, .8);
    font-weight: 700;
    padding: .55rem 1.15rem;
}

#modalTambahAbsen .tambah-absen-modal__footer .btn-light {
    border-radius: 11px;
    border: 1px solid #dbe5f3;
    background: #fff;
    color: #42556f;
    font-weight: 600;
    padding: .55rem 1rem;
}

@media (max-width: 575.98px) {
    #modalTambahAbsen .col-form-label {
        padding-bottom: .2rem;
    }
}

/* ===== Modal Edit Absen ===== */
#modalEditAbsen .modal-dialog {
    max-height: calc(100vh - 1.5rem);
    margin: .75rem auto;
}

#modalEditAbsen .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    max-height: calc(100vh - 1.5rem);
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 48px -20px rgba(13, 59, 140, .45);
}

#modalEditAbsen #formEditAbsen {
    display: flex;
    flex-direction: column;
    min-height: 0;
    flex: 1 1 auto;
    overflow: hidden;
}

#modalEditAbsen .modal-header {
    border-bottom: 0;
    background: linear-gradient(135deg, #0d3b8c 0%, #1f58c7 48%, #2f8be6 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    flex-shrink: 0;
}

#modalEditAbsen .modal-title {
    font-weight: 700;
    color: #fff !important;
}

#modalEditAbsen .btn-close {
    filter: invert(1) grayscale(100%);
    opacity: .9;
}

#modalEditAbsen .modal-body {
    padding: 1.1rem 1.25rem;
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(47, 139, 230, .10) 0%, transparent 55%),
        #f7faff;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
}

#modalEditAbsen .edit-absen-section {
    background: #fff;
    border: 1px solid #e4ebf5;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: .9rem;
}

#modalEditAbsen .edit-absen-section-title {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .85rem;
    padding: .28rem .7rem;
    border-radius: 999px;
    background: rgba(31, 88, 199, .08);
    color: #1f58c7;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

#modalEditAbsen .form-label {
    font-size: .8rem;
    font-weight: 600;
    color: #5a6b82;
    margin-bottom: .35rem;
}

#modalEditAbsen .form-control,
#modalEditAbsen .form-select {
    border-radius: 10px;
    border-color: #d7e2f2;
    min-height: 40px;
}

#modalEditAbsen .form-control:focus,
#modalEditAbsen .form-select:focus {
    border-color: #2f8be6;
    box-shadow: 0 0 0 .2rem rgba(47, 139, 230, .15);
}

#modalEditAbsen .edit-absen-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

#modalEditAbsen .edit-absen-photo-card {
    text-align: center;
    background: #f4f7fc;
    border: 1px dashed #cfd9ea;
    border-radius: 14px;
    padding: .65rem;
}

#modalEditAbsen .edit-absen-photo-thumb {
    width: 100%;
    aspect-ratio: 1;
    max-width: 140px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e4ebf5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
}

#modalEditAbsen .edit-absen-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

#modalEditAbsen .edit-absen-photo-thumb.is-empty {
    color: #9aa8bc;
    cursor: default;
}

#modalEditAbsen .edit-absen-photo-thumb.is-empty i {
    font-size: 1.8rem;
}

#modalEditAbsen .edit-absen-photo-card .caption {
    display: block;
    margin-top: .45rem;
    font-size: .75rem;
    font-weight: 700;
    color: #6b7c93;
}

#modalEditAbsen .edit-absen-pegawai {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .25rem;
}

#modalEditAbsen .edit-absen-pegawai img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #cfe0ff;
}

#modalEditAbsen .edit-absen-pegawai .name {
    font-weight: 700;
    color: #1a2b45;
    margin: 0;
    line-height: 1.25;
}

#modalEditAbsen .edit-absen-pegawai .nip {
    margin: 0;
    color: #6b7c93;
    font-size: .8rem;
    font-weight: 600;
}

#modalEditAbsen .modal-footer {
    border-top: 1px solid #e4ebf5;
    background: #fff;
    gap: .5rem;
    flex-shrink: 0;
    position: relative;
    z-index: 5;
    display: flex !important;
    justify-content: flex-end;
    padding: .9rem 1.25rem;
}

#modalEditAbsen .modal-footer .btn-primary {
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 100%);
    border: 0;
    border-radius: 10px;
    min-width: 140px;
    font-weight: 600;
}

#modalEditAbsen .modal-footer .btn-light {
    border-radius: 10px;
    min-width: 100px;
}

/* ===== Pegawai Index (table detail + foto picker) ===== */
.bootstrap-table .fixed-table-toolbar .btn i.bx {
    font-size: 1.1rem;
    vertical-align: middle;
    line-height: 1;
}

/* Icon expand/collapse detailView (Boxicons) */
#tablepegawai .detail-icon,
#tablepegawai .detail-icon i.bx,
#tablejadwalkerja .detail-icon,
#tablejadwalkerja .detail-icon i.bx,
#tablelaporanabsen .detail-icon,
#tablelaporanabsen .detail-icon i.bx {
    cursor: pointer;
    line-height: 1;
    vertical-align: middle;
}

#tablepegawai td.bs-checkbox,
#tablepegawai > tbody > tr:not(.detail-view) > td.detail-view,
#tablejadwalkerja td.bs-checkbox,
#tablejadwalkerja > tbody > tr:not(.detail-view) > td.detail-view,
#tablelaporanabsen td.bs-checkbox,
#tablelaporanabsen > tbody > tr:not(.detail-view) > td.detail-view {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}

#tablepegawai a.detail-icon,
#tablejadwalkerja a.detail-icon,
#tablelaporanabsen a.detail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 8px;
    background: linear-gradient(145deg, #1f58c7 0%, #2f8be6 100%);
    color: #fff !important;
    box-shadow: 0 6px 12px -8px rgba(31, 88, 199, .9);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    text-decoration: none !important;
}

#tablepegawai a.detail-icon i.bx,
#tablejadwalkerja a.detail-icon i.bx,
#tablelaporanabsen a.detail-icon i.bx {
    font-size: 1rem !important;
    color: #fff !important;
    font-weight: 700;
}

#tablepegawai a.detail-icon:hover,
#tablejadwalkerja a.detail-icon:hover,
#tablelaporanabsen a.detail-icon:hover {
    transform: scale(1.08);
    filter: brightness(1.06);
    box-shadow: 0 10px 16px -8px rgba(31, 88, 199, .95);
    color: #fff !important;
}

#tablepegawai a.detail-icon:hover i.bx,
#tablejadwalkerja a.detail-icon:hover i.bx,
#tablelaporanabsen a.detail-icon:hover i.bx {
    color: #fff !important;
}

#tablepegawai tr.detail-view > td,
#tablejadwalkerja tr.detail-view > td,
#tablelaporanabsen tr.detail-view > td {
    background: #f4f8fc;
    text-align: left !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible;
    padding: .75rem .9rem !important;
}

/* Detail laporan: sticky di viewport agar tidak terpotong tabel lebar (hari 1..31) */
#tablelaporanabsen tr.detail-view > td > [id^="laporan-absen-detail-"] {
    position: sticky;
    left: 0;
    z-index: 3;
    display: block;
    width: min(1100px, calc(100vw - 280px));
    min-width: min(720px, calc(100vw - 48px));
    max-width: calc(100vw - 48px);
    box-sizing: border-box;
    text-align: left;
}

#tablelaporanabsen .detail-absensi-panel {
    width: 100%;
    max-width: 100%;
}

/* ===== Detail Pegawai (expand row) ===== */
.pegawai-detail-wrap {
    --pd-blue: #1f58c7;
    --pd-blue-2: #2f8be6;
    --pd-ink: #1a2b45;
    --pd-muted: #6b7c93;
    --pd-line: #e4ebf5;
    --pd-soft: #f4f7fc;
    text-align: left;
    margin: .15rem 0;
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(120% 80% at 100% 0%, rgba(47, 139, 230, .10) 0%, transparent 55%),
        #fff;
    border: 1px solid var(--pd-line);
    box-shadow: 0 10px 28px -18px rgba(13, 59, 140, .35);
    animation: pegawaiDetailIn .28s ease-out;
}

@keyframes pegawaiDetailIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.pegawai-detail-grid {
    display: grid;
    grid-template-columns: minmax(220px, 260px) 1fr;
    gap: 0;
    min-height: 280px;
}

.pegawai-detail-profile {
    position: relative;
    background: linear-gradient(180deg, #f7faff 0%, #eef4fc 100%);
    border-right: 1px solid var(--pd-line);
    text-align: center;
}

.pegawai-detail-profile-banner {
    height: 72px;
    background:
        linear-gradient(135deg, #0d3b8c 0%, #1f58c7 48%, #2f8be6 100%);
}

.pegawai-detail-profile-body {
    padding: 0 1rem 1.25rem;
    margin-top: -42px;
}

.pegawai-detail-avatar {
    width: 104px;
    height: 104px;
    margin: 0 auto .85rem;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(145deg, #fff, #d9e7ff);
    box-shadow: 0 10px 22px -10px rgba(31, 88, 199, .55);
}

.pegawai-detail-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #fff;
    display: block;
}

.pegawai-detail-name {
    margin: 0 0 .25rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pd-ink);
    line-height: 1.3;
}

.pegawai-detail-jabatan {
    margin: 0 0 .75rem;
    font-size: .8rem;
    color: var(--pd-muted);
    line-height: 1.4;
    min-height: 2.2em;
}

.pegawai-detail-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .4rem;
    margin-bottom: 1rem;
}

.pegawai-detail-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .6rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.2;
}

.pegawai-detail-badge i { font-size: .9rem; }

.pegawai-detail-badge--status {
    background: rgba(31, 88, 199, .12);
    color: var(--pd-blue);
}

.pegawai-detail-badge--ok {
    background: rgba(28, 187, 140, .14);
    color: #159a73;
}

.pegawai-detail-badge--off {
    background: rgba(244, 106, 106, .14);
    color: #d64545;
}

.pegawai-detail-actions {
    display: grid;
    gap: .45rem;
}

.pegawai-detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: .45rem;
    width: 100%;
    border: 0;
    border-radius: 10px;
    padding: .55rem .7rem;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.2;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.pegawai-detail-btn i { font-size: 1rem; }

.pegawai-detail-btn:hover {
    transform: translateY(-1px);
}

.pegawai-detail-btn--primary {
    color: #fff;
    background: linear-gradient(135deg, #1f58c7 0%, #2f8be6 100%);
    box-shadow: 0 8px 16px -10px rgba(31, 88, 199, .8);
}

.pegawai-detail-btn--soft {
    color: var(--pd-blue);
    background: #fff;
    border: 1px solid #d5e3f8;
}

.pegawai-detail-btn--soft:hover {
    background: #eef4ff;
    border-color: #b9cff5;
}

.pegawai-detail-btn--warn {
    color: #b7791f;
    background: #fff8eb;
    border: 1px solid #f1dfb0;
}

.pegawai-detail-btn--warn:hover {
    background: #fff1d6;
}

.pegawai-detail-info {
    padding: 1.1rem 1.15rem 1.2rem;
    text-align: left !important;
}

.pegawai-detail-section + .pegawai-detail-section {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--pd-line);
}

.pegawai-detail-section-head {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-bottom: .7rem;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(31, 88, 199, .08);
    color: var(--pd-blue);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.pegawai-detail-section-head i { font-size: 1rem; }

.pegawai-detail-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem .75rem;
}

.pegawai-detail-field {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .65rem .75rem;
    border-radius: 12px;
    background: var(--pd-soft);
    border: 1px solid transparent;
    transition: border-color .15s ease, background .15s ease;
    text-align: left;
}

.pegawai-detail-field:hover {
    background: #eef4ff;
    border-color: #d5e3f8;
}

.pegawai-detail-field--full {
    grid-column: 1 / -1;
}

.pegawai-detail-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--pd-muted);
    font-size: .72rem;
    font-weight: 600;
    text-align: left;
}

.pegawai-detail-label i {
    font-size: .9rem;
    color: var(--pd-blue-2);
}

.pegawai-detail-value {
    color: var(--pd-ink);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    text-align: left;
}

.pegawai-detail-value--accent {
    color: var(--pd-blue);
}

.pegawai-detail-chip {
    display: inline-flex;
    align-items: center;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
}

.pegawai-detail-chip.is-yes {
    background: rgba(28, 187, 140, .14);
    color: #159a73;
}

.pegawai-detail-chip.is-no {
    background: rgba(107, 124, 147, .12);
    color: #5a6b82;
}

@media (max-width: 767.98px) {
    .pegawai-detail-grid {
        grid-template-columns: 1fr;
    }

    .pegawai-detail-profile {
        border-right: 0;
        border-bottom: 1px solid var(--pd-line);
    }

    .pegawai-detail-fields {
        grid-template-columns: 1fr;
    }

    .pegawai-detail-actions {
        grid-template-columns: 1fr 1fr;
    }
}

#toolbarpegawai .select2-container {
    min-width: 200px;
}

.pegawai-filter-bar {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1.05rem;
    padding: .95rem 1.1rem;
    border-radius: 16px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(74, 198, 242, .18) 0%, transparent 55%),
        linear-gradient(118deg, rgba(31, 88, 199, .08) 0%, rgba(61, 140, 240, .07) 100%);
    border: 1px solid rgba(31, 88, 199, .12);
}

.pegawai-filter-icon {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #1f58c7 0%, #3d8cf0 100%);
    box-shadow: 0 10px 18px -10px rgba(31, 88, 199, .75);
}

.pegawai-filter-copy {
    min-width: 0;
}

.pegawai-filter-kicker {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #1f58c7;
    margin-bottom: .1rem;
}

.pegawai-filter-label {
    display: block;
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #16324f;
}

.pegawai-filter-select {
    flex: 1 1 280px;
    min-width: 220px;
    max-width: 520px;
    margin-left: auto;
}

.pegawai-filter-select .form-select,
.pegawai-filter-select .select2-container .select2-selection--single {
    min-height: 42px;
    border-radius: 12px;
    border-color: #dbe5f0;
    background: #fff;
}

.pegawai-filter-select .select2-container {
    width: 100% !important;
}

@media (max-width: 767.98px) {
    .pegawai-filter-bar {
        flex-wrap: wrap;
    }

    .pegawai-filter-select {
        margin-left: 0;
        max-width: none;
        width: 100%;
        flex-basis: 100%;
    }
}

/* Preview foto tetap lingkaran kecil + tipografi rapi */
.bravo-foto-picker {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.bravo-foto-preview {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px;
    max-width: 80px;
    min-height: 80px;
    max-height: 80px;
    border-radius: 50% !important;
    border: 2px dashed #cfd6e4;
    background: #f5f7fb;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    overflow: hidden !important;
    flex: 0 0 80px;
    position: relative;
    padding: 0 !important;
}

.bravo-foto-preview.has-foto {
    border-style: solid;
    border-color: #556ee6;
    background: #fff;
}

.bravo-foto-preview .bravo-foto-placeholder {
    font-size: 1.6rem;
    color: #8b97ad;
    line-height: 1;
}

.bravo-foto-preview img,
.bravo-foto-preview .bravo-foto-preview-img {
    position: absolute !important;
    inset: 0 !important;
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    object-fit: cover !important;
    border-radius: 50% !important;
    display: block !important;
    margin: 0 !important;
}

.bravo-foto-actions {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.bravo-foto-actions .btn-pilih-foto {
    border-radius: 10px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.bravo-foto-status {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #495057;
    line-height: 1.35;
}

.bravo-foto-status.is-ready {
    color: #1cbb8c;
}

.bravo-foto-hint {
    margin: 0;
    font-size: 0.75rem;
    color: #878a99;
    line-height: 1.35;
}

.bravo-crop-stage {
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin: 0 auto;
    background: #111827;
    border-radius: 14px;
    overflow: hidden;
}

#modalCropFoto {
    z-index: 1065;
}

.modal-backdrop.bravo-crop-backdrop {
    z-index: 1060;
}

@media (max-width: 575.98px) {
    .bravo-foto-picker {
        flex-wrap: wrap;
    }

    .bravo-foto-actions .btn-pilih-foto {
        white-space: normal;
    }
}

/* ===== Badge Status Kerja (tabel pegawai) ===== */
.pegawai-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.2;
    border: 1px solid transparent;
    white-space: nowrap;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pegawai-status-badge--blue {
    background: rgba(31, 88, 199, .14);
    color: #1f58c7;
    border-color: rgba(31, 88, 199, .22);
}

.pegawai-status-badge--teal {
    background: rgba(13, 148, 136, .14);
    color: #0f766e;
    border-color: rgba(13, 148, 136, .22);
}

.pegawai-status-badge--green {
    background-color: #1cbb8c;
    color: #fff;
    border-color: #159a73;
}

.pegawai-status-badge--indigo {
    background: rgba(79, 70, 229, .14);
    color: #4338ca;
    border-color: rgba(79, 70, 229, .22);
}

.pegawai-status-badge--purple {
    background-color: #7c3aed;
    color: #fff;
    border-color: #6d28d9;
}

.pegawai-status-badge--orange {
    background-color: #f97316;
    color: #fff;
    border-color: #ea580c;
}

.pegawai-status-badge--amber {
    background: rgba(217, 119, 6, .14);
    color: #b45309;
    border-color: rgba(217, 119, 6, .22);
}

.pegawai-status-badge--rose {
    background: rgba(225, 29, 72, .14);
    color: #be123c;
    border-color: rgba(225, 29, 72, .22);
}

.pegawai-status-badge--cyan {
    background: rgba(8, 145, 178, .14);
    color: #0e7490;
    border-color: rgba(8, 145, 178, .22);
}

.pegawai-status-badge--slate {
    background: rgba(107, 124, 147, .14);
    color: #5a6b82;
    border-color: rgba(107, 124, 147, .22);
}

.pegawai-status-badge--dark {
    background-color: #1f2937;
    color: #fff;
    border-color: #111827;
}

/* ===== Laporan Absen (rekap bulanan) ===== */
#tablelaporanabsen th,
#tablelaporanabsen td {
    white-space: nowrap;
    vertical-align: middle;
}

#tablelaporanabsen .hari-ke-cell {
    min-width: 48px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    line-height: 1.25;
}

#tablelaporanabsen .hari-ke-fill {
    display: block;
    min-height: 2.35rem;
    margin: -0.45rem -0.35rem;
    padding: 0.45rem 0.35rem;
}

#tablelaporanabsen .hari-ke-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
}

#tablelaporanabsen .badge-absen-ket {
    display: inline-block;
    max-width: 110px;
    white-space: normal;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    padding: .2rem .35rem;
    border-radius: 999px;
}

#tablelaporanabsen .badge-absen-telat {
    background: #f59e0b;
    color: #fff;
}

#tablelaporanabsen .badge-absen-pc {
    background: #ea580c;
    color: #fff;
}

#tablelaporanabsen td.bg-absen-dt {
    background: #FFF7EB !important;
}

#tablelaporanabsen td.bg-absen-dl {
    background: #A2AB73 !important;
}

#tablelaporanabsen td.bg-absen-cuti {
    background: #F9F0E0 !important;
}

#tablelaporanabsen td.bg-absen-tk {
    background: #CC3A63 !important;
    color: #fff !important;
}

#tablelaporanabsen td.bg-absen-tk-img {
    background: #fff5f7 !important;
    vertical-align: middle !important;
}

#tablelaporanabsen .hari-ke-alpa {
    min-height: 2.35rem;
    margin: -0.45rem -0.35rem;
    padding: 0.3rem 0.2rem;
    justify-content: center;
}

#tablelaporanabsen .hari-ke-alpa-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}

#tablelaporanabsen td.bg-absen-pc {
    background: #E76F51 !important;
    color: #fff !important;
}

#tablelaporanabsen td.bg-absen-tp {
    background: #FDF0D5 !important;
}

/* Toolbar filter laporan â€” scoped agar tidak mengganggu tabel lain */
.bootstrap-table .fixed-table-toolbar:has(#toolbarlaporanabsen) {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: .75rem;
    margin-bottom: .85rem;
}

.bootstrap-table .fixed-table-toolbar:has(#toolbarlaporanabsen) .bs-bars {
    float: none !important;
    margin: 0 !important;
    flex: 1 1 100%;
    order: -1;
}

.bootstrap-table .fixed-table-toolbar:has(#toolbarlaporanabsen) .search,
.bootstrap-table .fixed-table-toolbar:has(#toolbarlaporanabsen) .columns {
    float: none !important;
    margin: 0 !important;
    align-self: flex-end;
}

#toolbarlaporanabsen.laporan-absen-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) minmax(140px, .7fr) minmax(110px, .55fr) auto;
    align-items: end;
    gap: .75rem 1rem;
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid #d7e3f4;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(244, 248, 252, .98) 100%);
    box-shadow: 0 10px 24px -18px rgba(15, 58, 136, .45);
}

#toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--no-unit {
    grid-template-columns: minmax(140px, .7fr) minmax(110px, .55fr) auto;
}

#toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--with-upt {
    grid-template-columns: minmax(200px, 1.2fr) minmax(180px, 1fr) minmax(130px, .65fr) minmax(100px, .5fr) auto;
}

#toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--no-unit.laporan-absen-toolbar--with-upt {
    grid-template-columns: minmax(180px, 1fr) minmax(130px, .65fr) minmax(100px, .5fr) auto;
}

#toolbarlaporanabsen .laporan-filter-item {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

#toolbarlaporanabsen .laporan-filter-upt.d-none {
    display: none !important;
}

#toolbarlaporanabsen .laporan-filter-item > label {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1f58c7;
    line-height: 1.2;
}

#toolbarlaporanabsen .form-select,
#toolbarlaporanabsen .select2-container--bootstrap-5 .select2-selection {
    min-height: 42px !important;
    border-radius: 11px !important;
    border: 1.5px solid #d5e2f3 !important;
    background: #fff !important;
    box-shadow: none !important;
    font-size: .9rem;
}

#toolbarlaporanabsen .form-select:focus,
#toolbarlaporanabsen .select2-container--bootstrap-5.select2-container--focus .select2-selection,
#toolbarlaporanabsen .select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: #2f8be6 !important;
    box-shadow: 0 0 0 .2rem rgba(47, 139, 230, .14) !important;
}

#toolbarlaporanabsen .select2-container {
    width: 100% !important;
}

#toolbarlaporanabsen .laporan-filter-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: .55rem;
    height: 42px;
}

#toolbarlaporanabsen .laporan-filter-actions .btn {
    height: 42px;
    border-radius: 11px;
    font-weight: 700;
    padding: 0 1rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    white-space: nowrap;
}

#toolbarlaporanabsen .laporan-filter-actions .btn-dark {
    background: #0f172a;
    border-color: #0f172a;
}

#toolbarlaporanabsen .laporan-filter-actions .btn-primary {
    border: 0;
    background: linear-gradient(135deg, #163f96, #1f58c7 45%, #2f8be6);
    box-shadow: 0 10px 18px -12px rgba(31, 88, 199, .85);
}

#toolbarlaporanabsen .laporan-filter-actions .btn i {
    font-size: 1.05rem;
    line-height: 1;
}

@media (max-width: 991.98px) {
    #toolbarlaporanabsen.laporan-absen-toolbar,
    #toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--no-unit,
    #toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--with-upt,
    #toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--no-unit.laporan-absen-toolbar--with-upt {
        grid-template-columns: 1fr 1fr;
    }

    #toolbarlaporanabsen .laporan-filter-actions {
        grid-column: 1 / -1;
        height: auto;
    }

    #toolbarlaporanabsen .laporan-filter-actions .btn {
        flex: 1 1 auto;
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    #toolbarlaporanabsen.laporan-absen-toolbar,
    #toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--no-unit,
    #toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--with-upt,
    #toolbarlaporanabsen.laporan-absen-toolbar.laporan-absen-toolbar--no-unit.laporan-absen-toolbar--with-upt {
        grid-template-columns: 1fr;
        padding: .85rem;
    }
}

/* Detail absensi (expand laporan) */
.detail-absensi-panel {
    text-align: left;
    padding: .25rem .15rem .5rem;
}

.detail-absensi-tabs {
    margin-bottom: .85rem;
}

.detail-absensi-tab-content {
    padding-top: .15rem;
}

.detail-absensi-section {
    border: 1px solid #e9ecef;
    border-radius: .45rem;
    padding: .85rem 1rem;
    background: #fff;
}

.detail-absensi-section-head {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    font-size: .92rem;
    margin-bottom: .75rem;
    color: #343a40;
}

.detail-absensi-section-head i {
    color: #556ee6;
    font-size: 1.1rem;
}

.detail-absensi-field {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    padding: .45rem .55rem;
    background: #f8f9fa;
    border-radius: .35rem;
    min-height: 3.1rem;
}

.detail-absensi-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .02em;
    color: #74788d;
}

.detail-absensi-value {
    font-size: .9rem;
    font-weight: 600;
    color: #212529;
    word-break: break-word;
}

.detail-absensi-value--accent {
    color: #556ee6;
}

.detail-absensi-rekap-table td {
    padding: .4rem .55rem;
    font-size: .85rem;
}

.detail-absensi-chart-wrap {
    position: relative;
    height: 260px;
    width: 100%;
    min-height: 220px;
}

.detail-absensi-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
}

.detail-absensi-rekap-table {
    width: 100%;
}

.detail-absensi-rekap-table td:last-child {
    width: 4.5rem;
    white-space: nowrap;
}

.detail-absensi-presensi-table {
    font-size: .82rem;
}

/* Modal preview cetak PDF (dipakai semua halaman cetak) */
#modalPreviewCetakLaporan .modal-cetak-laporan-content {
    display: flex;
    flex-direction: column;
    max-height: 94vh;
}

#modalPreviewCetakLaporan .modal-header {
    flex: 0 0 auto;
    align-items: flex-start;
}

#modalPreviewCetakLaporan .preview-cetak-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

#modalPreviewCetakLaporan .modal-body {
    flex: 0 1 auto;
    /* Ikut rasio kertas legal landscape (14in x 8.5in) + toolbar viewer */
    aspect-ratio: 14 / 9.6;
    height: auto;
    min-height: 320px;
    max-height: calc(94vh - 148px);
    overflow: hidden;
    background: #f1f3f5;
}

#modalPreviewCetakLaporan .preview-cetak-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #f1f3f5;
}

#modalPreviewCetakLaporan .preview-cetak-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .88);
}

#modalPreviewCetakLaporan .preview-cetak-loading.is-visible {
    display: flex;
}

#modalPreviewFilePernyataan .modal-cetak-laporan-content {
    display: flex;
    flex-direction: column;
    max-height: 94vh;
    overflow: hidden;
}

#modalPreviewFilePernyataan .modal-header {
    flex: 0 0 auto;
    align-items: flex-start;
    padding: .95rem 1.1rem;
    border-bottom: 1px solid #e9ecef;
}

#modalPreviewFilePernyataan .preview-cetak-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0f766e;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    line-height: 1;
}

#modalPreviewFilePernyataan .preview-file-pernyataan-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 520px;
    height: min(75vh, 860px);
    max-height: calc(94vh - 132px);
    overflow: hidden;
    background: #eef2f6;
}

#modalPreviewFilePernyataan .preview-file-pernyataan-stage {
    position: absolute;
    inset: 0;
}

#modalPreviewFilePernyataan .preview-cetak-iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #eef2f6;
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease;
}

#modalPreviewFilePernyataan .preview-cetak-iframe.is-ready {
    opacity: 1;
    visibility: visible;
}

#modalPreviewFilePernyataan .preview-cetak-loading {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    background: #f8fafc;
}

#modalPreviewFilePernyataan .preview-cetak-loading.is-visible {
    display: flex;
}

#modalPreviewFilePernyataan .preview-file-pernyataan-img-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
    padding: 1.25rem;
    background: #eef2f6;
    opacity: 0;
    transition: opacity .25s ease;
}

#modalPreviewFilePernyataan .preview-file-pernyataan-img-wrap.is-ready {
    opacity: 1;
}

#modalPreviewFilePernyataan .preview-file-pernyataan-img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: .4rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .14);
    background: #fff;
}

#modalPreviewFilePernyataan .modal-footer {
    flex: 0 0 auto;
    border-top: 1px solid #e9ecef;
    padding: .75rem 1.1rem;
}

.pelanggaran-page .plg-file-link.btn {
    line-height: 1.2;
}

/* ==========================================================================
   Pemutahiran Data
   ========================================================================== */
.pemutahiran-page {
    --pmu-cek: #0f9d8a;
    --pmu-cek-2: #14c4a5;
    --pmu-sync: #1f58c7;
    --pmu-sync-2: #3d8cf0;
    --pmu-ink: #16324f;
    --pmu-muted: #6b7c90;
}

.pemutahiran-hero {
    margin-bottom: 0;
    align-items: center;
}

.pemutahiran-hero-pills {
    margin-left: auto;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    position: relative;
    z-index: 1;
}

.pemutahiran-pill {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .38rem .75rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    white-space: nowrap;
}

.pemutahiran-pill i {
    font-size: .95rem;
}

.pemutahiran-pill--cek {
    color: #0b6b5e;
    background: rgba(20, 196, 165, .16);
    border: 1px solid rgba(15, 157, 138, .22);
}

.pemutahiran-pill--sync {
    color: #1f58c7;
    background: rgba(61, 140, 240, .14);
    border: 1px solid rgba(31, 88, 199, .18);
}

.pemutahiran-panel {
    height: 100%;
    padding: 1.15rem;
    border-radius: 22px;
    background: #fff;
    box-shadow:
        0 18px 40px -28px rgba(15, 40, 90, .55),
        0 0 0 1px rgba(22, 50, 79, .06);
}

.pemutahiran-panel-head {
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    margin-bottom: 1.05rem;
    padding: 1rem 1.05rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}

.pemutahiran-panel--cek .pemutahiran-panel-head {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(20, 196, 165, .22) 0%, transparent 55%),
        linear-gradient(118deg, rgba(15, 157, 138, .1) 0%, rgba(20, 196, 165, .08) 100%);
    border: 1px solid rgba(15, 157, 138, .14);
}

.pemutahiran-panel--sync .pemutahiran-panel-head {
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(74, 198, 242, .22) 0%, transparent 55%),
        linear-gradient(118deg, rgba(31, 88, 199, .1) 0%, rgba(61, 140, 240, .08) 100%);
    border: 1px solid rgba(31, 88, 199, .14);
}

.pemutahiran-panel-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.45rem;
    box-shadow: 0 10px 18px -10px rgba(15, 40, 90, .7);
}

.pemutahiran-panel--cek .pemutahiran-panel-icon {
    background: linear-gradient(135deg, #0f9d8a 0%, #14c4a5 100%);
}

.pemutahiran-panel--sync .pemutahiran-panel-icon {
    background: linear-gradient(135deg, #1f58c7 0%, #3d8cf0 100%);
}

.pemutahiran-panel-copy {
    min-width: 0;
}

.pemutahiran-kicker {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: .15rem;
}

.pemutahiran-panel--cek .pemutahiran-kicker {
    color: #0b6b5e;
}

.pemutahiran-panel--sync .pemutahiran-kicker {
    color: #1f58c7;
}

.pemutahiran-panel-copy h5 {
    margin: 0 0 .2rem;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--pmu-ink);
}

.pemutahiran-panel-copy p {
    margin: 0;
    font-size: .82rem;
    color: var(--pmu-muted);
    line-height: 1.45;
}

.pemutahiran-card {
    padding: 1.05rem 1.1rem 1.15rem;
    border-radius: 16px;
    background: #f7fafc;
    border: 1px solid rgba(22, 50, 79, .06);
    margin-bottom: .85rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.pemutahiran-card:last-child {
    margin-bottom: 0;
}

.pemutahiran-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -22px rgba(15, 40, 90, .55);
    border-color: rgba(31, 88, 199, .16);
}

.pemutahiran-card--alt {
    background: #fff;
    border-style: dashed;
}

.pemutahiran-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .45rem;
}

.pemutahiran-badge {
    display: inline-flex;
    align-items: center;
    padding: .18rem .55rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #1f58c7, #3d8cf0);
}

.pemutahiran-panel--cek .pemutahiran-badge {
    background: linear-gradient(135deg, #0f9d8a, #14c4a5);
}

.pemutahiran-badge--outline {
    background: transparent;
    color: var(--pmu-ink);
    border: 1px solid rgba(22, 50, 79, .16);
}

.pemutahiran-card-hint {
    font-size: .72rem;
    color: var(--pmu-muted);
}

.pemutahiran-card-title {
    margin: 0 0 .85rem;
    font-size: .98rem;
    font-weight: 700;
    color: var(--pmu-ink);
}

.pemutahiran-label {
    display: block;
    margin-bottom: .35rem;
    font-size: .78rem;
    font-weight: 600;
    color: #3d5268;
}

.pemutahiran-input-wrap {
    position: relative;
}

.pemutahiran-input-wrap > i {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    color: #7a8da3;
    font-size: 1.05rem;
    pointer-events: none;
}

.pemutahiran-input-wrap .form-control,
.pemutahiran-input-wrap .form-control.flatpickr-input,
.pemutahiran-input-wrap .form-control.input {
    padding-left: 2.25rem;
    height: 42px;
    border-radius: 12px;
    border-color: #dbe5f0;
    background: #fff;
}

.pemutahiran-page .form-select,
.pemutahiran-page .select2-container .select2-selection--single {
    min-height: 42px;
    border-radius: 12px;
    border-color: #dbe5f0;
}

.pemutahiran-page .select2-container {
    width: 100% !important;
}

.pemutahiran-btn {
    height: 42px;
    border: 0;
    border-radius: 12px;
    font-weight: 650;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    color: #fff !important;
    box-shadow: 0 10px 18px -12px rgba(15, 40, 90, .7);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.pemutahiran-btn:hover,
.pemutahiran-btn:focus {
    color: #fff !important;
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.pemutahiran-btn--cek {
    background: linear-gradient(135deg, #0f9d8a 0%, #14c4a5 100%);
}

.pemutahiran-btn--sync {
    background: linear-gradient(135deg, #1f58c7 0%, #3d8cf0 100%);
}

@media (max-width: 991.98px) {
    .pemutahiran-hero {
        flex-wrap: wrap;
    }

    .pemutahiran-hero-pills {
        margin-left: 0;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .pemutahiran-card-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: .35rem;
    }

    .pemutahiran-btn {
        margin-top: .25rem;
    }
}

/* Infografik Kehadiran */
.infografik-kehadiran {
    --ig-teal: #0d9488;
    --ig-amber: #f59e0b;
    --ig-rose: #e11d48;
    --ig-sky: #0284c7;
    --ig-ink: #0f172a;
    --ig-muted: #64748b;
    --ig-card: #ffffff;
    --ig-soft: #f8fafc;
    --ig-line: rgba(15, 23, 42, .08);
}

.infografik-kehadiran .ig-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    background:
        radial-gradient(1200px 280px at 10% -20%, rgba(13, 148, 136, .28), transparent 55%),
        radial-gradient(900px 260px at 95% 0%, rgba(2, 132, 199, .22), transparent 50%),
        linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}

.infografik-kehadiran .ig-hero::after {
    content: "";
    position: absolute;
    inset: auto -40px -60px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.infografik-kehadiran .ig-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: .5rem;
}

.infografik-kehadiran .ig-hero-title {
    font-size: 1.55rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    letter-spacing: -.02em;
}

.infografik-kehadiran .ig-hero-desc {
    margin: 0;
    opacity: .88;
    max-width: 42rem;
}

.infografik-kehadiran .ig-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.infografik-kehadiran .ig-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .8rem;
    backdrop-filter: blur(6px);
}

.infografik-kehadiran .ig-toolbar {
    background: var(--ig-card);
    border: 1px solid var(--ig-line);
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.infografik-kehadiran .ig-stat {
    border: 0;
    border-radius: 1.1rem;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
    position: relative;
}

.infografik-kehadiran .ig-stat .card-body {
    padding: 1.2rem 1.25rem;
    position: relative;
    z-index: 1;
}

.infografik-kehadiran .ig-stat-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .8;
    margin-bottom: .35rem;
}

.infografik-kehadiran .ig-stat-value {
    font-size: 1.85rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -.03em;
}

.infografik-kehadiran .ig-stat-foot {
    margin-top: .35rem;
    font-size: .85rem;
    opacity: .85;
}

.infografik-kehadiran .ig-stat-icon {
    position: absolute;
    right: .9rem;
    top: .9rem;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: .85rem;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, .2);
}

.infografik-kehadiran .ig-stat--ikut {
    background: linear-gradient(145deg, #0f766e, #14b8a6);
    color: #fff;
}

.infografik-kehadiran .ig-stat--tidak {
    background: linear-gradient(145deg, #be123c, #fb7185);
    color: #fff;
}

.infografik-kehadiran .ig-stat--total {
    background: linear-gradient(145deg, #0c4a6e, #38bdf8);
    color: #fff;
}

.infografik-kehadiran .ig-stat--rate {
    background: linear-gradient(145deg, #92400e, #fbbf24);
    color: #fff;
}

.infografik-kehadiran .ig-panel {
    border: 1px solid var(--ig-line);
    border-radius: 1.15rem;
    background: var(--ig-card);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .05);
    height: 100%;
    overflow: hidden;
}

.infografik-kehadiran .ig-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.25rem .35rem;
}

.infografik-kehadiran .ig-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ig-teal);
    font-weight: 700;
    margin-bottom: .2rem;
}

.infografik-kehadiran .ig-panel-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ig-ink);
}

.infografik-kehadiran .ig-panel-sub {
    margin: .2rem 0 0;
    color: var(--ig-muted);
    font-size: .86rem;
}

.infografik-kehadiran .ig-panel-body {
    padding: .5rem 1.1rem 1.2rem;
}

.infografik-kehadiran .ig-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}

.infografik-kehadiran .ig-legend span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .55rem;
    border-radius: 999px;
    background: var(--ig-soft);
    border: 1px solid var(--ig-line);
    font-size: .75rem;
    color: var(--ig-muted);
}

.infografik-kehadiran .ig-dot {
    width: .55rem;
    height: .55rem;
    border-radius: 50%;
    display: inline-block;
}

.infografik-kehadiran .ig-empty {
    text-align: center;
    color: var(--ig-muted);
    padding: 2.5rem 1rem;
}

/* Infografik Pegawai */
.infografik-pegawai {
    --ip-teal: #0d9488;
    --ip-sky: #0284c7;
    --ip-amber: #f59e0b;
    --ip-rose: #e11d48;
    --ip-ink: #0f172a;
    --ip-muted: #64748b;
    --ip-card: #ffffff;
    --ip-soft: #f1f5f9;
    --ip-line: rgba(15, 23, 42, .08);
    position: relative;
}

.infografik-pegawai::before {
    content: "";
    position: absolute;
    inset: -1rem -0.5rem auto;
    height: 280px;
    background:
        radial-gradient(520px 180px at 12% 20%, rgba(2, 132, 199, .08), transparent 70%),
        radial-gradient(420px 160px at 88% 0%, rgba(13, 148, 136, .08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.infografik-pegawai > * {
    position: relative;
    z-index: 1;
}

.infografik-pegawai .ip-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.35rem;
    padding: 1.6rem 1.75rem;
    margin-bottom: 1.25rem;
    background:
        radial-gradient(900px 260px at 0% -20%, rgba(56, 189, 248, .28), transparent 55%),
        radial-gradient(700px 220px at 100% 0%, rgba(45, 212, 191, .22), transparent 50%),
        linear-gradient(135deg, #0b1220 0%, #0c4a6e 48%, #0f766e 100%);
    color: #fff;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .22);
    animation: ip-rise .55s ease both;
}

.infografik-pegawai .ip-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 85%);
    pointer-events: none;
}

.infografik-pegawai .ip-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -80px auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    pointer-events: none;
}

.infografik-pegawai .ip-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 1.25rem;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.infografik-pegawai .ip-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .88;
    margin-bottom: .55rem;
}

.infografik-pegawai .ip-hero-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 .4rem;
    letter-spacing: -.03em;
}

.infografik-pegawai .ip-hero-desc {
    margin: 0;
    opacity: .9;
    max-width: 38rem;
    line-height: 1.55;
}

.infografik-pegawai .ip-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1.1rem;
}

.infografik-pegawai .ip-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .4rem .75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: .8rem;
    backdrop-filter: blur(8px);
}

.infografik-pegawai .ip-hero-spotlight {
    border-radius: 1.1rem;
    padding: 1.15rem 1.2rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
}

.infografik-pegawai .ip-hero-spotlight-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .8;
}

.infografik-pegawai .ip-hero-spotlight-value {
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: .25rem 0 .7rem;
}

.infografik-pegawai .ip-hero-spotlight-bar {
    height: .45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
    overflow: hidden;
}

.infografik-pegawai .ip-hero-spotlight-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #5eead4, #38bdf8);
}

.infografik-pegawai .ip-hero-spotlight-foot {
    margin-top: .55rem;
    font-size: .82rem;
    opacity: .85;
}

.infografik-pegawai .ip-toolbar {
    background: var(--ip-card);
    border: 1px solid var(--ip-line);
    border-radius: 1.1rem;
    padding: 1rem 1.2rem 1.15rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    animation: ip-rise .6s ease both;
    animation-delay: .05s;
}

.infografik-pegawai .ip-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--ip-muted);
    margin-bottom: .65rem;
}

.infografik-pegawai .ip-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 0;
    border-radius: .8rem;
    padding: .65rem 1rem;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, #0f766e, #0284c7);
    box-shadow: 0 10px 22px rgba(2, 132, 199, .28);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.infografik-pegawai .ip-btn-primary:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(2, 132, 199, .34);
}

.infografik-pegawai .ip-stat-row > [class*="col-"] {
    animation: ip-rise .55s ease both;
}

.infografik-pegawai .ip-stat-row > [class*="col-"]:nth-child(1) { animation-delay: .08s; }
.infografik-pegawai .ip-stat-row > [class*="col-"]:nth-child(2) { animation-delay: .12s; }
.infografik-pegawai .ip-stat-row > [class*="col-"]:nth-child(3) { animation-delay: .16s; }
.infografik-pegawai .ip-stat-row > [class*="col-"]:nth-child(4) { animation-delay: .2s; }

.infografik-pegawai .ip-stat {
    position: relative;
    overflow: hidden;
    border-radius: 1.15rem;
    padding: 1.2rem 1.25rem 1.1rem;
    height: 100%;
    color: #fff;
    box-shadow: 0 14px 32px rgba(15, 23, 42, .1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.infografik-pegawai .ip-stat::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: .35rem;
    background: rgba(255, 255, 255, .45);
}

.infografik-pegawai .ip-stat::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.infografik-pegawai .ip-stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
}

.infografik-pegawai .ip-stat-label {
    font-size: .76rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    opacity: .88;
    margin-bottom: .35rem;
}

.infografik-pegawai .ip-stat-value {
    font-size: 1.95rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -.04em;
    position: relative;
    z-index: 1;
}

.infografik-pegawai .ip-stat-foot {
    margin-top: .4rem;
    font-size: .8rem;
    opacity: .9;
    position: relative;
    z-index: 1;
}

.infografik-pegawai .ip-stat-meter {
    margin-top: .55rem;
    height: .35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.infografik-pegawai .ip-stat-meter > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
}

.infografik-pegawai .ip-stat-icon {
    position: absolute;
    right: .9rem;
    top: .9rem;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: .9rem;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, .2);
    z-index: 1;
}

.infografik-pegawai .ip-stat--total {
    background: linear-gradient(145deg, #0f172a 0%, #334155 100%);
}

.infografik-pegawai .ip-stat--aktif {
    background: linear-gradient(145deg, #0f766e 0%, #2dd4bf 100%);
}

.infografik-pegawai .ip-stat--status {
    background: linear-gradient(145deg, #075985 0%, #38bdf8 100%);
}

.infografik-pegawai .ip-stat--golongan {
    background: linear-gradient(145deg, #92400e 0%, #fbbf24 100%);
}

.infografik-pegawai .ip-panel {
    border: 1px solid var(--ip-line);
    border-radius: 1.2rem;
    background:
        linear-gradient(180deg, #fff 0%, #fbfdff 100%);
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
    height: 100%;
    overflow: hidden;
    position: relative;
    animation: ip-rise .6s ease both;
    animation-delay: .18s;
}

.infografik-pegawai .ip-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: .28rem;
}

.infografik-pegawai .ip-panel--status::before {
    background: linear-gradient(180deg, #0284c7, #0d9488);
}

.infografik-pegawai .ip-panel--golongan::before {
    background: linear-gradient(180deg, #f59e0b, #0d9488);
}

.infografik-pegawai .ip-panel--unit::before {
    background: linear-gradient(180deg, #0d9488, #0284c7);
}

.infografik-pegawai .ip-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem;
    padding: 1.2rem 1.3rem .4rem;
}

.infografik-pegawai .ip-panel-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--ip-sky);
    font-weight: 800;
    margin-bottom: .25rem;
}

.infografik-pegawai .ip-panel--golongan .ip-panel-kicker {
    color: #b45309;
}

.infografik-pegawai .ip-panel--unit .ip-panel-kicker {
    color: var(--ip-teal);
}

.infografik-pegawai .ip-panel-title {
    margin: 0;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--ip-ink);
    letter-spacing: -.02em;
}

.infografik-pegawai .ip-panel-sub {
    margin: .25rem 0 0;
    color: var(--ip-muted);
    font-size: .86rem;
}

.infografik-pegawai .ip-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    color: #0c4a6e;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
}

.infografik-pegawai .ip-badge--amber {
    color: #92400e;
    background: #fef3c7;
    border-color: #fde68a;
}

.infografik-pegawai .ip-badge--sky {
    color: #0f766e;
    background: #ccfbf1;
    border-color: #99f6e4;
}

.infografik-pegawai .ip-panel-body {
    padding: .55rem 1.2rem 1.25rem;
}

.infografik-pegawai .ip-split {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 1rem;
    align-items: center;
}

.infografik-pegawai .ip-rank-list {
    display: flex;
    flex-direction: column;
    gap: .55rem;
    max-height: 280px;
    overflow-y: auto;
    padding-right: .2rem;
}

.infografik-pegawai .ip-rank-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .55rem;
    align-items: center;
    padding: .55rem .65rem;
    border-radius: .85rem;
    background: var(--ip-soft);
    border: 1px solid var(--ip-line);
}

.infografik-pegawai .ip-rank-idx {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: .5rem;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 800;
    color: #0c4a6e;
    background: #e0f2fe;
}

.infografik-pegawai .ip-rank-name {
    font-size: .82rem;
    font-weight: 600;
    color: var(--ip-ink);
    line-height: 1.25;
    margin-bottom: .25rem;
}

.infografik-pegawai .ip-rank-bar {
    height: .28rem;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}

.infografik-pegawai .ip-rank-bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d9488, #38bdf8);
}

.infografik-pegawai .ip-rank-meta {
    text-align: right;
    line-height: 1.15;
}

.infografik-pegawai .ip-rank-meta strong {
    display: block;
    font-size: .9rem;
    color: var(--ip-ink);
}

.infografik-pegawai .ip-rank-meta small {
    color: var(--ip-muted);
    font-size: .72rem;
}

.infografik-pegawai .ip-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: .85rem;
}

.infografik-pegawai .ip-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: .75rem;
    color: #9a3412;
}

.infografik-pegawai .ip-pill strong {
    font-weight: 700;
}

.infografik-pegawai .ip-pill em {
    font-style: normal;
    font-weight: 800;
    color: #0f172a;
    background: rgba(255, 255, 255, .7);
    padding: .1rem .4rem;
    border-radius: 999px;
}

.infografik-pegawai .ip-chart-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: .25rem;
}

.infografik-pegawai .ip-empty {
    text-align: center;
    color: var(--ip-muted);
    padding: 2.6rem 1rem;
}

.infografik-pegawai .ip-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: .5rem;
    opacity: .55;
}

.infografik-pegawai .ip-empty p {
    margin: 0;
}

@keyframes ip-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .infografik-pegawai .ip-hero-grid,
    .infografik-pegawai .ip-split {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .infografik-pegawai .ip-stat-value {
        font-size: 1.45rem;
    }

    .infografik-pegawai .ip-hero {
        padding: 1.25rem 1.15rem;
    }

    .infografik-pegawai .ip-panel-head {
        flex-direction: column;
    }
}


/* Dinas Luar */
.bootstrap-table .fixed-table-toolbar .btn i.bx {
    font-size: 1.1rem;
    vertical-align: middle;
    line-height: 1;
}

.dl-jml-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #e8f1ff;
    color: #0d6efd;
    font-weight: 600;
    font-size: .85rem;
}

.dl-detail-wrap {
    background:
        radial-gradient(1200px 180px at 0% 0%, rgba(37, 99, 235, .10), transparent 55%),
        linear-gradient(180deg, #f7faff 0%, #ffffff 58%);
    border: 1px solid #dbe7f8;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.15rem;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.dl-detail-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .85rem 1rem;
    margin-bottom: .95rem;
    padding-bottom: .85rem;
    border-bottom: 1px dashed #d7e3f5;
}

.dl-detail-title {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 0;
}

.dl-detail-title-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #2563eb, #1d4ed8);
    color: #fff;
    font-size: 1.25rem;
    flex-shrink: 0;
    box-shadow: 0 8px 16px rgba(37, 99, 235, .28);
}

.dl-detail-title h6 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.dl-detail-title small {
    display: block;
    color: #64748b;
    margin-top: .15rem;
}

.dl-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.dl-status-btn {
    border-radius: 999px;
    font-weight: 600;
    padding: .35rem .85rem;
}

.dl-status-btn.is-aktif {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.dl-status-btn.is-nonaktif {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.dl-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .65rem;
    margin-bottom: 1rem;
}

.dl-info-card {
    background: #fff;
    border: 1px solid #e6eef8;
    border-radius: 12px;
    padding: .7rem .8rem;
    min-height: 72px;
    box-shadow: 0 1px 0 rgba(15, 23, 42, .02);
}

.dl-info-card .lbl {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    margin-bottom: .2rem;
    font-weight: 600;
}

.dl-info-card .val {
    display: block;
    color: #0f172a;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
}

.dl-info-card.dl-info-wide {
    grid-column: 1 / -1;
}

.dl-peserta-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .65rem;
}

.dl-peserta-head h6 {
    margin: 0;
    font-size: .95rem;
    font-weight: 700;
    color: #334155;
}

.dl-detail-table {
    margin-bottom: 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.dl-detail-table thead th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #475569;
    white-space: nowrap;
}

.dl-presensi-cell {
    min-width: 170px;
}

.dl-presensi-switch {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
}

.dl-presensi-label {
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.dl-presensi-label.is-sudah {
    color: #198754;
}

.dl-presensi-label.is-belum {
    color: #6c757d;
}

/* Posisi Pegawai */
.posisi-pegawai-page {
    --pp-teal: #0d9488;
    --pp-sky: #0284c7;
    --pp-ink: #0f172a;
    --pp-muted: #64748b;
    --pp-line: rgba(15, 23, 42, .08);
    position: relative;
}

.posisi-pegawai-page::before {
    content: "";
    position: absolute;
    inset: -1rem -0.5rem auto;
    height: 260px;
    background:
        radial-gradient(520px 180px at 10% 10%, rgba(2, 132, 199, .08), transparent 70%),
        radial-gradient(420px 160px at 90% 0%, rgba(13, 148, 136, .08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.posisi-pegawai-page > * {
    position: relative;
    z-index: 1;
}

.posisi-pegawai-page .pp-hero {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 1rem;
    align-items: stretch;
    overflow: hidden;
    border-radius: 1.3rem;
    padding: 1.45rem 1.6rem;
    margin-bottom: 1.15rem;
    color: #fff;
    background:
        radial-gradient(900px 240px at 0% -20%, rgba(56, 189, 248, .28), transparent 55%),
        radial-gradient(700px 200px at 100% 10%, rgba(13, 148, 136, .24), transparent 50%),
        linear-gradient(135deg, #0b1220 0%, #0c4a6e 50%, #0f766e 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    animation: pp-rise .5s ease both;
}

.posisi-pegawai-page .pp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 85%);
    pointer-events: none;
}

.posisi-pegawai-page .pp-hero-copy,
.posisi-pegawai-page .pp-hero-stat {
    position: relative;
    z-index: 1;
}

.posisi-pegawai-page .pp-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .75rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    opacity: .88;
    margin-bottom: .45rem;
}

.posisi-pegawai-page .pp-hero-title {
    margin: 0 0 .35rem;
    font-size: clamp(1.3rem, 2vw, 1.55rem);
    font-weight: 800;
    letter-spacing: -.02em;
}

.posisi-pegawai-page .pp-hero-desc {
    margin: 0;
    opacity: .9;
    max-width: 40rem;
}

.posisi-pegawai-page .pp-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1rem;
}

.posisi-pegawai-page .pp-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .2);
    font-size: .8rem;
    backdrop-filter: blur(8px);
}

.posisi-pegawai-page .pp-hero-stat {
    border-radius: 1rem;
    padding: 1rem 1.15rem;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.posisi-pegawai-page .pp-hero-stat-label {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .8;
}

.posisi-pegawai-page .pp-hero-stat-value {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.1;
    margin: .2rem 0;
}

.posisi-pegawai-page .pp-hero-stat-foot {
    font-size: .8rem;
    opacity: .85;
}

.posisi-pegawai-page .pp-toolbar {
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 1.1rem;
    padding: 1rem 1.2rem 1.15rem;
    margin-bottom: 1.15rem;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
    animation: pp-rise .55s ease both;
    animation-delay: .05s;
}

.posisi-pegawai-page .pp-toolbar-label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--pp-muted);
    margin-bottom: .7rem;
}

.posisi-pegawai-page .pp-search-wrap {
    position: relative;
}

.posisi-pegawai-page .pp-search-wrap > i {
    position: absolute;
    left: .85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.05rem;
    pointer-events: none;
}

.posisi-pegawai-page .pp-search-wrap .form-control {
    padding-left: 2.35rem;
    border-radius: .8rem;
    border-color: #dbe4f0;
}

.posisi-pegawai-page .pp-search-wrap .form-control:focus {
    border-color: #0d9488;
    box-shadow: 0 0 0 .2rem rgba(13, 148, 136, .15);
}

.posisi-pegawai-page .pp-btn-primary,
.posisi-pegawai-page .pp-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    border-radius: .8rem;
    padding: .65rem 1rem;
    font-weight: 700;
    text-decoration: none;
}

.posisi-pegawai-page .pp-btn-primary {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0284c7);
    box-shadow: 0 10px 22px rgba(2, 132, 199, .25);
}

.posisi-pegawai-page .pp-btn-primary:hover {
    color: #fff;
    filter: brightness(1.05);
}

.posisi-pegawai-page .pp-btn-ghost {
    border: 1px solid #dbe4f0;
    color: #334155;
    background: #f8fafc;
}

.posisi-pegawai-page .pp-btn-ghost:hover {
    background: #fff;
    color: #0f172a;
}

.posisi-pegawai-page .pp-map-panel {
    background: #fff;
    border: 1px solid var(--pp-line);
    border-radius: 1.2rem;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .06);
    position: relative;
    animation: pp-rise .6s ease both;
    animation-delay: .1s;
}

.posisi-pegawai-page .pp-map-panel::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: .28rem;
    background: linear-gradient(180deg, #0284c7, #0d9488);
    z-index: 2;
}

.posisi-pegawai-page .pp-map-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    padding: 1.1rem 1.25rem .7rem;
}

.posisi-pegawai-page .pp-map-kicker {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--pp-sky);
    font-weight: 800;
}

.posisi-pegawai-page .pp-map-title {
    margin: .15rem 0 0;
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--pp-ink);
    letter-spacing: -.02em;
}

.posisi-pegawai-page .pp-map-sub {
    margin: .25rem 0 0;
    color: var(--pp-muted);
    font-size: .86rem;
}

.posisi-pegawai-page .pp-badge {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    color: #0f766e;
    background: #ccfbf1;
    border: 1px solid #99f6e4;
}

.posisi-pegawai-page .pp-map {
    height: 520px;
    width: 100%;
    min-height: 520px;
    z-index: 1;
    border-top: 1px solid var(--pp-line);
    background: #e2e8f0;
}

.posisi-pegawai-page .pp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: 1.25rem;
    color: var(--pp-muted);
    background: #f8fafc;
    border-top: 1px solid var(--pp-line);
    text-align: center;
}

.posisi-pegawai-page .pp-empty i {
    font-size: 1.8rem;
    opacity: .55;
}

.posisi-pegawai-page .pp-empty p {
    margin: 0;
}

.leaflet-popup.pp-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .22);
    border: 1px solid rgba(15, 23, 42, .06);
}

.leaflet-popup.pp-leaflet-popup .leaflet-popup-content {
    margin: 0;
    min-width: 260px;
    line-height: 1.35;
}

.leaflet-popup.pp-leaflet-popup .leaflet-popup-tip {
    background: #0f172a;
}

.pp-popup {
    width: 280px;
    background: #fff;
}

.pp-popup-top {
    display: flex;
    gap: .75rem;
    align-items: center;
    padding: .9rem 1rem;
    background:
        radial-gradient(420px 120px at 0% 0%, rgba(13, 148, 136, .35), transparent 60%),
        linear-gradient(135deg, #0f172a 0%, #0c4a6e 55%, #0f766e 100%);
    color: #fff;
}

.pp-popup-foto {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, .85);
    box-shadow: 0 8px 16px rgba(0, 0, 0, .25);
    flex-shrink: 0;
    background: #fff;
}

.pp-popup-name {
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: -.01em;
    line-height: 1.25;
    margin-bottom: .35rem;
}

.pp-popup-badge {
    display: inline-flex;
    align-items: center;
    padding: .15rem .55rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .22);
}

.pp-popup-rows {
    padding: .75rem 1rem .35rem;
    display: grid;
    gap: .45rem;
}

.pp-popup-row {
    display: grid;
    gap: .1rem;
    padding-bottom: .4rem;
    border-bottom: 1px dashed rgba(15, 23, 42, .08);
}

.pp-popup-row:last-child {
    border-bottom: 0;
}

.pp-popup-row span {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #64748b;
    font-weight: 700;
}

.pp-popup-row strong {
    font-size: .86rem;
    color: #0f172a;
    font-weight: 700;
    word-break: break-word;
}

.pp-popup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    width: calc(100% - 1.6rem);
    margin: .35rem .8rem 1rem;
    border: 0;
    border-radius: .8rem;
    padding: .6rem .85rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #0f766e, #0284c7);
    box-shadow: 0 10px 20px rgba(2, 132, 199, .28);
    cursor: pointer;
}

.pp-popup-btn:hover {
    filter: brightness(1.05);
}

.pp-pesan-modal {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 22px 48px rgba(15, 23, 42, .2);
}

.pp-pesan-modal .modal-header {
    border-bottom: 1px solid rgba(15, 23, 42, .06);
    background: linear-gradient(180deg, #f8fafc, #fff);
}

.pp-pesan-head {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.pp-pesan-foto {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.pp-pesan-sub {
    font-size: .82rem;
    color: #64748b;
}

@keyframes pp-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .posisi-pegawai-page .pp-hero {
        grid-template-columns: 1fr;
    }

    .posisi-pegawai-page .pp-map {
        height: 420px;
        min-height: 420px;
    }
}

/* ===== Pelanggaran ===== */
.stat-card.stat-danger { background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%); }

.pelanggaran-page {
    --plg-rose: #e11d48;
    --plg-ink: #0f172a;
    --plg-muted: #64748b;
    position: relative;
}

.pelanggaran-page::before {
    content: "";
    position: absolute;
    inset: -1rem -0.5rem auto;
    height: 260px;
    background:
        radial-gradient(520px 180px at 8% 8%, rgba(225, 29, 72, .10), transparent 70%),
        radial-gradient(420px 160px at 92% 0%, rgba(2, 132, 199, .08), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.pelanggaran-page > * {
    position: relative;
    z-index: 1;
}

.pelanggaran-page .plg-hero {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 1rem;
    align-items: stretch;
    overflow: hidden;
    border-radius: 1.3rem;
    padding: 1.45rem 1.6rem;
    margin-bottom: 1.15rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, .92) 0%, rgba(127, 29, 29, .88) 55%, rgba(225, 29, 72, .85) 100%),
        radial-gradient(420px 200px at 90% 10%, rgba(251, 113, 133, .35), transparent 70%);
    box-shadow: 0 18px 40px rgba(127, 29, 29, .22);
    animation: pp-rise .45s ease both;
}

.pelanggaran-page .plg-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    opacity: .9;
    margin-bottom: .45rem;
}

.pelanggaran-page .plg-hero-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin: 0 0 .35rem;
    line-height: 1.25;
}

.pelanggaran-page .plg-hero-desc {
    margin: 0 0 .85rem;
    opacity: .88;
    max-width: 38rem;
}

.pelanggaran-page .plg-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.pelanggaran-page .plg-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
    font-size: .82rem;
}

.pelanggaran-page .plg-hero-stat {
    align-self: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    text-align: center;
    backdrop-filter: blur(6px);
}

.pelanggaran-page .plg-hero-stat-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    opacity: .85;
}

.pelanggaran-page .plg-hero-stat-value {
    font-size: 2.1rem;
    font-weight: 700;
    line-height: 1.1;
    margin: .2rem 0;
}

.pelanggaran-page .plg-hero-stat-foot {
    font-size: .8rem;
    opacity: .85;
}

.pelanggaran-page .plg-table-card {
    border: 0;
    border-radius: 1.1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.pelanggaran-page .plg-table-card .card-body {
    padding: 1.1rem 1.15rem 1.25rem;
}

.pelanggaran-page #toolbarpelanggaran .form-label,
.pelanggaran-page #toolbarlaporanpelanggaran .form-label {
    font-size: .78rem;
    color: var(--plg-muted);
    font-weight: 600;
}

.plg-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .28rem .65rem;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.plg-badge-suspend {
    background: rgba(225, 29, 72, .12);
    color: #be123c;
    border: 1px solid rgba(225, 29, 72, .22);
}

.plg-badge-open {
    background: rgba(28, 187, 140, .12);
    color: #0f766e;
    border: 1px solid rgba(28, 187, 140, .22);
}

.pelanggaran-page .btn-buka-suspend {
    font-weight: 600;
}

.modal-buka-suspend-dialog {
    max-width: 500px;
}

.modal-buka-suspend {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 28px 64px -24px rgba(15, 23, 42, .45);
}

.modal-buka-suspend__header {
    background: linear-gradient(135deg, #0f766e 0%, #059669 45%, #10b981 100%);
    border-bottom: 0;
    padding: 1.15rem 1.35rem;
}

.modal-buka-suspend__title-wrap {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.modal-buka-suspend__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: rgba(255, 255, 255, .18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2);
}

.modal-buka-suspend__header .modal-title {
    color: #fff;
    font-weight: 700;
}

.modal-buka-suspend__subtitle {
    color: rgba(255, 255, 255, .88);
    font-size: .78rem;
}

.modal-buka-suspend__body {
    padding: 1.25rem 1.35rem 1.1rem;
    background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 42%);
}

.modal-buka-suspend__info {
    display: flex;
    gap: .75rem;
    padding: .85rem 1rem;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    font-size: .88rem;
    line-height: 1.55;
}

.modal-buka-suspend__info i {
    font-size: 1.35rem;
    flex: 0 0 auto;
    margin-top: .1rem;
}

.modal-buka-suspend__pegawai {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .45rem;
    padding: .35rem .65rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #bbf7d0;
    font-size: .82rem;
    font-weight: 700;
    color: #047857;
}

.modal-buka-suspend__upload {
    position: relative;
    border: 2px dashed #86efac;
    border-radius: 16px;
    padding: 1.1rem 1rem;
    text-align: center;
    background: #fff;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.modal-buka-suspend__upload:hover,
.modal-buka-suspend__upload.is-dragover {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}

.modal-buka-suspend__upload.has-file {
    border-style: solid;
    border-color: #34d399;
    background: #ecfdf5;
}

.modal-buka-suspend__upload input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.modal-buka-suspend__upload-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto .55rem;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.55rem;
    color: #059669;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

.modal-buka-suspend__upload-title {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: .2rem;
}

.modal-buka-suspend__upload-hint {
    font-size: .78rem;
    color: #64748b;
}

.modal-buka-suspend__filename {
    display: none;
    margin-top: .65rem;
    padding: .45rem .65rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #bbf7d0;
    font-size: .8rem;
    font-weight: 600;
    color: #047857;
    word-break: break-all;
}

.modal-buka-suspend__upload.has-file .modal-buka-suspend__filename {
    display: block;
}

.modal-buka-suspend__footer {
    border-top: 1px solid #d1fae5;
    background: #fff;
    padding: .9rem 1.35rem 1.15rem;
}

.btn-buka-suspend-simpan {
    color: #fff;
    font-weight: 700;
    border: 0;
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 55%, #f59e0b 100%);
    box-shadow: 0 10px 22px -10px rgba(245, 158, 11, .65);
}

.btn-buka-suspend-simpan:hover {
    color: #fff;
    background: linear-gradient(135deg, #fbbf24 0%, #fcd34d 55%, #f59e0b 100%);
}

.pelanggaran-page .plg-hero-stat-value--periode {
    font-size: 1.15rem;
    line-height: 1.35;
    word-break: break-word;
}

/* Laporan pelanggaran */
.pelanggaran-page .plg-laporan-card__header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: .95rem 1.15rem;
}

.pelanggaran-page .plg-laporan-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.pelanggaran-page .plg-laporan-card__subtitle {
    font-size: .8rem;
    color: #64748b;
    margin-top: .15rem;
}

.pelanggaran-page .plg-laporan-filter {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: .85rem .95rem;
    margin-bottom: 1rem;
}

.pelanggaran-page .plg-laporan-filter__row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .65rem .85rem;
}

.pelanggaran-page .plg-laporan-filter__field {
    min-width: 0;
}

.pelanggaran-page .plg-laporan-filter__field .form-label {
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: .3rem;
}

.pelanggaran-page .plg-laporan-filter__field--date {
    flex: 0 0 148px;
    max-width: 148px;
}

.pelanggaran-page .plg-laporan-filter__field--unit {
    flex: 1 1 240px;
    max-width: 380px;
}

.pelanggaran-page .plg-laporan-filter__field--unit .select2-container {
    width: 100% !important;
    max-width: 380px;
}

.pelanggaran-page .plg-laporan-filter__field--unit .select2-selection--single {
    min-height: 31px;
    height: 31px;
    border-color: #ced4da;
}

.pelanggaran-page .plg-laporan-filter__field--unit .select2-selection__rendered {
    line-height: 29px !important;
    font-size: .875rem;
    padding-right: 1.75rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pelanggaran-page .plg-laporan-filter__field--unit .select2-selection__arrow {
    height: 29px !important;
}

.pelanggaran-page .plg-laporan-filter__field--actions {
    flex: 0 0 auto;
    margin-left: auto;
}

.pelanggaran-page .plg-laporan-filter__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}

.pelanggaran-page .plg-laporan-filter .form-control-sm,
.pelanggaran-page .plg-laporan-filter .form-select-sm {
    height: 31px;
    font-size: .875rem;
}

.pelanggaran-page .plg-laporan-filter .flatpickr-input[readonly] {
    background-color: #fff;
}

.pelanggaran-page .plg-laporan-table .bootstrap-table {
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    overflow: hidden;
    background: #fff;
}

.pelanggaran-page .plg-laporan-table .fixed-table-toolbar {
    padding: .65rem .85rem;
    margin: 0;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}

.pelanggaran-page .plg-laporan-table .fixed-table-toolbar .search {
    margin-left: auto;
    max-width: 260px;
}

.pelanggaran-page .plg-laporan-table .fixed-table-toolbar .search input {
    font-size: .875rem;
    height: 31px;
}

.pelanggaran-page .plg-laporan-table .fixed-table-toolbar .btn {
    height: 31px;
    width: 31px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pelanggaran-page .plg-laporan-table .fixed-table-container {
    border: 0 !important;
}

.pelanggaran-page .plg-laporan-table .table > :not(caption) > * > * {
    vertical-align: middle;
    font-size: .84rem;
    padding: .55rem .65rem;
}

.pelanggaran-page .plg-laporan-table .table thead th {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #475569;
    background: #f8fafc;
    white-space: nowrap;
    border-bottom-width: 1px;
    padding: .6rem .65rem;
}

.pelanggaran-page .plg-laporan-table .fixed-table-pagination {
    padding: .55rem .85rem;
    border-top: 1px solid #e2e8f0;
    font-size: .82rem;
}

.pelanggaran-page .plg-file-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-width: 4.25rem;
    padding: .32rem .7rem;
    border-radius: .45rem;
    font-size: .76rem;
    font-weight: 600;
    color: #0369a1;
    background: rgba(14, 165, 233, .1);
    border: 1px solid rgba(14, 165, 233, .22);
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.pelanggaran-page .plg-file-link:hover {
    color: #0c4a6e;
    background: rgba(14, 165, 233, .18);
    border-color: rgba(14, 165, 233, .35);
}

@media (max-width: 991.98px) {
    .pelanggaran-page .plg-laporan-filter__field--date {
        flex: 1 1 calc(50% - .5rem);
        max-width: none;
    }

    .pelanggaran-page .plg-laporan-filter__field--unit {
        flex: 1 1 100%;
        max-width: none;
    }

    .pelanggaran-page .plg-laporan-filter__field--unit .select2-container {
        max-width: none;
    }

    .pelanggaran-page .plg-laporan-filter__field--actions {
        flex: 1 1 100%;
        margin-left: 0;
    }

    .pelanggaran-page .plg-laporan-table .fixed-table-toolbar .search {
        max-width: none;
        width: 100%;
        margin-left: 0;
        margin-top: .35rem;
    }
}

@media (max-width: 991.98px) {
    .pelanggaran-page .plg-hero {
        grid-template-columns: 1fr;
    }
}

/* ===== Pegawai PHB (modal form + bukti absen) ===== */
#modalPegawaiPhb .bravo-modal-wfh-dialog {
    max-width: 920px;
    margin: 1rem auto;
}

#modalPegawaiPhb .bravo-modal-wfh {
    min-height: min(520px, calc(100vh - 2rem));
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#modalPegawaiPhb .bravo-modal-wfh-form {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#modalPegawaiPhb .bravo-modal-wfh-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

#modalPegawaiPhb .bravo-wfh-peserta-scroll {
    min-height: 180px;
    max-height: min(340px, 42vh);
    overflow-y: auto;
    border-radius: 14px;
    border: 1px solid #e3eaf5;
}

#modalPegawaiPhb .bravo-wfh-peserta-scroll thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f1f5fb;
}

#modalPegawaiPhb .bravo-modal-wfh-footer {
    margin: 0;
    padding: 1rem 1.4rem 1.25rem;
    background: #fff;
    border-top: 1px solid #e3eaf5;
}

#modalBuktiAbsenPhb .phb-bukti-panel {
    height: 100%;
    padding: .85rem;
    border: 1px solid #e3eaf5;
    border-radius: 14px;
    background: #f8fafc;
}

#modalBuktiAbsenPhb .phb-bukti-panel-label {
    font-size: .9rem;
    font-weight: 700;
    color: #334155;
}

#modalBuktiAbsenPhb .phb-bukti-panel-label i {
    vertical-align: middle;
    color: #1f58c7;
}

#modalBuktiAbsenPhb .phb-bukti-foto {
    max-height: min(52vh, 420px);
    width: 100%;
    object-fit: contain;
    background: #fff;
}

#modalBuktiAbsenPhb .phb-bukti-map-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
    background: #fff;
    min-height: 280px;
}

#modalBuktiAbsenPhb .phb-bukti-map {
    width: 100%;
    height: 280px;
    display: none;
}

#modalBuktiAbsenPhb .phb-bukti-empty {
    min-height: 220px;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .35rem;
    color: #64748b;
    text-align: center;
    padding: 1.25rem;
}

#modalBuktiAbsenPhb .phb-bukti-empty.is-visible {
    display: flex;
}

#modalBuktiAbsenPhb .phb-bukti-empty i {
    font-size: 1.75rem;
    color: #94a3b8;
}

#modalBuktiAbsenPhb .leaflet-container {
    z-index: 1;
    font: inherit;
}

/* ==========================================================================
   UPT toolbar (#toolbarupt)
   ========================================================================== */
.bootstrap-table .fixed-table-toolbar .btn i.bx {
    font-size: 1.1rem;
    vertical-align: middle;
    line-height: 1;
}

.bootstrap-table .fixed-table-toolbar:has(#toolbarupt) {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
}

.bootstrap-table .fixed-table-toolbar:has(#toolbarupt) .bs-bars,
.bootstrap-table .fixed-table-toolbar:has(#toolbarupt) .search,
.bootstrap-table .fixed-table-toolbar:has(#toolbarupt) .columns {
    float: none !important;
    margin: 0 !important;
}

.bootstrap-table .fixed-table-toolbar:has(#toolbarupt) .bs-bars {
    flex: 1 1 auto;
    min-width: 0;
}

.bootstrap-table .fixed-table-toolbar:has(#toolbarupt) .search,
.bootstrap-table .fixed-table-toolbar:has(#toolbarupt) .columns {
    align-self: flex-end;
}

#toolbarupt.upt-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .75rem 1rem;
}

#toolbarupt .upt-toolbar-actions .btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}

#toolbarupt .upt-toolbar-actions .btn i.bx {
    font-size: 1.2rem;
    line-height: 1;
    display: inline-block;
}

/* icons.css paket ini tidak punya .bx-refresh — pakai glyph sync */
.bx-refresh:before {
    content: "\eb67";
    font-family: "boxicons" !important;
}

#toolbarupt .upt-toolbar-filter {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 280px;
    max-width: 360px;
    flex: 1 1 280px;
}

#toolbarupt .upt-toolbar-filter>label {
    margin: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #1f58c7;
    line-height: 1.2;
}

#toolbarupt .upt-toolbar-filter .form-select,
#toolbarupt .select2-container .select2-selection--single {
    height: 38px;
    min-height: 38px;
}

#toolbarupt .select2-container {
    width: 100% !important;
    min-width: 0;
}

#toolbarupt .select2-container .select2-selection--single {
    display: flex;
    align-items: center;
}

#toolbarupt .select2-container .select2-selection__rendered {
    line-height: 1.2;
    padding-right: 24px;
}

#toolbarupt .select2-container .select2-selection__arrow {
    height: 36px;
}

@media (max-width: 767.98px) {
    #toolbarupt .upt-toolbar-filter {
        max-width: none;
        flex: 1 1 100%;
    }

    .bootstrap-table .fixed-table-toolbar:has(#toolbarupt) .search {
        width: 100%;
    }

    .bootstrap-table .fixed-table-toolbar:has(#toolbarupt) .search .form-control {
        width: 100%;
    }
}

/* ==========================================================================
   Jadwal kerja shift (#tabelJadwalShift / .bravo-jadwal-shift-table)
   ========================================================================== */
.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar .btn i.bx {
    font-size: 1.15rem;
    vertical-align: middle;
    line-height: 1;
    display: inline-block;
    color: inherit;
}

.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    margin-bottom: .85rem;
}

.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar .bs-bars,
.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar .search,
.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar .columns {
    float: none !important;
    margin: 0 !important;
}

.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar .bs-bars {
    flex: 1 1 auto;
    min-width: 0;
}

.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar .search,
.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar .columns {
    margin-left: auto !important;
}

.bravo-jadwal-shift-table .bootstrap-table .fixed-table-toolbar .search .form-control {
    min-width: 220px;
    height: 38px;
    border-radius: 10px;
}

.bravo-jadwal-shift-table .bootstrap-table .fixed-table-container {
    border-radius: 12px;
    overflow: hidden;
}

.jkshift-info {
    margin-bottom: 1rem;
    padding: .95rem 1rem 1rem;
    border-radius: 16px;
    border: 1px solid #f0d29a;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255, 196, 80, .22) 0%, transparent 55%),
        linear-gradient(180deg, #fff8ea 0%, #fff 72%);
    box-shadow: 0 10px 22px -16px rgba(160, 96, 12, .45);
}

.jkshift-info-head {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-bottom: .75rem;
}

.jkshift-info-badge {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.2rem;
    background: linear-gradient(135deg, #e09a1b 0%, #f5b942 100%);
    box-shadow: 0 8px 14px -8px rgba(196, 122, 12, .8);
}

.jkshift-info-head strong {
    display: block;
    color: #7a4308;
    font-size: .95rem;
}

.jkshift-info-head p {
    color: #8a5a16;
    font-size: .8rem;
    line-height: 1.4;
}

.jkshift-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .55rem;
}

.jkshift-info-list li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding: .55rem .65rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(232, 196, 122, .45);
}

.jkshift-info-list b {
    display: block;
    color: #1d3557;
    font-size: .82rem;
    margin-bottom: .12rem;
}

.jkshift-info-list div {
    color: #4b5568;
    font-size: .78rem;
    line-height: 1.45;
}

.jkshift-step {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1rem;
}

.jkshift-step i.bx {
    font-size: 1.05rem;
    line-height: 1;
    color: inherit;
}

.jkshift-step--warn {
    background: #e09a1b;
}

.jkshift-step--ok {
    background: #2f9e6a;
}

.jkshift-step--info {
    background: #2f6fdb;
}

.jkshift-step--danger {
    background: #d4564a;
}

.jk-btn-cetak {
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: .48rem .95rem;
    font-weight: 600;
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 48%, #f59e0b 100%);
    box-shadow: 0 10px 18px -12px rgba(194, 65, 12, .85);
}

.jk-btn-cetak:hover {
    color: #fff;
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.jk-btn-cetak i {
    font-size: 1.05rem;
    vertical-align: middle;
}

.jk-detail-page {
    padding: .15rem 0 .35rem;
}

.jk-detail-tabs {
    gap: .4rem;
    border-bottom: 0;
    margin-bottom: .85rem;
}

.jk-detail-tabs .nav-link {
    border: 0;
    border-radius: 999px;
    padding: .5rem .95rem;
    font-weight: 700;
    font-size: .82rem;
    color: #5a6b82;
    background: #f1f5fb;
}

.jk-detail-tabs .nav-link i {
    font-size: 1rem;
    vertical-align: middle;
}

.jk-detail-tabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, #0d3b8c 0%, #2f8be6 100%);
    box-shadow: 0 8px 16px -10px rgba(31, 88, 199, .85);
}

.jk-detail-tab-content {
    padding-top: .1rem;
}

.jk-detail-period {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-top: .15rem;
    padding: .65rem .7rem;
    border-radius: 12px;
    text-align: left;
    background: linear-gradient(135deg, rgba(31, 88, 199, .12), rgba(47, 139, 230, .08));
    border: 1px solid rgba(31, 88, 199, .16);
}

.jk-detail-period i {
    font-size: 1.25rem;
    color: #1f58c7;
}

.jk-detail-period strong {
    display: block;
    font-size: .82rem;
    color: #1a2b45;
}

.jk-detail-period span {
    font-size: .72rem;
    color: #6b7c93;
}

.jk-detail-schedule {
    margin-top: .85rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e4ebf5;
    background:
        radial-gradient(90% 120% at 100% 0%, rgba(245, 158, 11, .10) 0%, transparent 50%),
        #fff;
    box-shadow: 0 10px 24px -18px rgba(13, 59, 140, .35);
}

.jk-detail-schedule-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
    padding: .85rem 1rem;
    border-bottom: 1px solid #e4ebf5;
    background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
}

.jk-detail-schedule-title {
    display: flex;
    align-items: center;
    gap: .65rem;
}

.jk-detail-schedule-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #0d3b8c 0%, #2f8be6 100%);
    box-shadow: 0 8px 14px -8px rgba(31, 88, 199, .8);
}

.jk-detail-schedule-icon i {
    font-size: 1.15rem;
}

.jk-detail-schedule-title strong {
    display: block;
    color: #1a2b45;
    font-size: .92rem;
}

.jk-detail-schedule-title small {
    color: #6b7c93;
    font-size: .75rem;
}

.jk-detail-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.jk-pill {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .28rem .65rem;
    border-radius: 999px;
    font-size: .74rem;
    font-weight: 700;
}

.jk-pill--masuk {
    background: rgba(21, 154, 115, .12);
    color: #159a73;
}

.jk-pill--libur {
    background: rgba(217, 119, 6, .12);
    color: #b7791f;
}

.jk-detail-table thead th {
    background: #f1f6ff;
    color: #1f58c7;
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    font-weight: 700;
    border-color: #dbe6f7;
    white-space: nowrap;
}

.jk-detail-table tbody tr.is-masuk td {
    background: rgba(21, 154, 115, .03);
}

.jk-detail-table tbody tr.is-libur td {
    background: rgba(245, 158, 11, .06);
}

.jk-detail-table tbody tr:hover td {
    background: #eef4ff;
}

.jk-detail-table .btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    pointer-events: none;
}
