.skeleton {
    display: none;
    animation: pulse 1.5s ease-in-out infinite;
}

/* Garis-garis placeholder */
.skeleton-line {
    height: 16px;
    background: #e0e0e0;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-line.long {
    width: 100%;
}

/* Efek kedip gemerlap */
@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }

    100% {
        opacity: 1;
    }
}

/* Modal offcanvas */
/* ====== Variabel lebar (bisa diubah per need) ====== */
:root {
    --oc-xs: 100vw;
    /* <576px */
    --oc-sm: 100vw;
    /* ≥576px */
    --oc-md: 90vw;
    /* ≥768px */
    --oc-lg: 75vw;
    /* ≥992px */
    --oc-xl: 65vw;
    /* ≥1200px */
}

/* ====== Base offcanvas modal ====== */
.modal.offcanvas .modal-dialog {
    margin: 0;
    height: 100%;
    max-width: none !important;
    width: var(--oc-xs);
    display: flex;
    align-items: stretch;
    transition: transform .3s ease-out;
    /* iOS safe area */
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Breakpoints lebar panel */
@media (min-width: 576px) {
    .modal.offcanvas .modal-dialog {
        width: var(--oc-sm);
    }
}

@media (min-width: 768px) {
    .modal.offcanvas .modal-dialog {
        width: var(--oc-md);
    }
}

@media (min-width: 992px) {
    .modal.offcanvas .modal-dialog {
        width: var(--oc-lg);
    }
}

@media (min-width: 1200px) {
    .modal.offcanvas .modal-dialog {
        width: var(--oc-xl);
    }
}

/* Panel kanan: start di luar kanan, dock kanan */
.modal.offcanvas.offcanvas-right .modal-dialog {
    transform: translateX(100%) !important;
    margin-left: auto;
}

.modal.offcanvas.offcanvas-right.show .modal-dialog {
    transform: translateX(0) !important;
}

/* Konten full tinggi + header/footer sticky */
.modal.offcanvas .modal-content {
    border: 0;
    border-radius: 0;
    height: 100%;
}

.modal.offcanvas .modal-header,
.modal.offcanvas .modal-footer {
    background: #fff;
    z-index: 2;
}

.modal.offcanvas .modal-body.offcanvas-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* smooth iOS */
}

/* Optional: kecilkan padding di device sempit */
@media (max-width: 575.98px) {

    .modal.offcanvas .modal-header,
    .modal.offcanvas .modal-footer {
        padding: .5rem .75rem;
    }

    .modal.offcanvas .modal-body {
        padding: .75rem;
    }
}

/* (Jika pakai .fade) kalahkan transform default BS4 */
.modal.fade.offcanvas .modal-dialog {
    transform: translateX(100%) !important;
}

.modal.fade.offcanvas.show .modal-dialog {
    transform: translateX(0) !important;
}

/* Tambahan  */
/* Modal depan tetap di layer paling atas */
.modal-foreground {
    z-index: 1060;
}

.modal-backdrop.fg-backdrop {
    z-index: 1055 !important;
}

/* Efek 'is-blurred' yang lebih simpel */
#modalOffcanvas.is-blurred .modal-content {
    background-color: rgba(255, 255, 255, 0.85);
    /* sedikit transparan */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    transition: background-color .25s ease, box-shadow .25s ease;
    filter: none;
    /* hapus blur */
}

/* Tambahkan overlay lembut */
#modalOffcanvas.is-blurred::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.05);
    /* lapisan tipis */
    backdrop-filter: blur(2px);
    /* blur lembut */
    border-radius: inherit;
    pointer-events: none;
    transition: all .25s ease;
}

/* Modal offcanvas */

.fixTableHead {
    overflow-y: auto;
    height: 470px;
}

.fixTableHead thead th {
    position: sticky;
    top: 0;
    height: 53px;
}

.fixTableHead table {
    border-collapse: collapse;
    width: 100%;
}

.fixTableHead thead th {
    background: #1b4e8d;
}

.brand-img {
    height: 70px;
    width: auto;
}

@media (max-width: 768px) {
    .brand-img {
        height: 50px;
    }
}

/* Saran Text  */
/* ===============================
   TYPEAHEAD DROPDOWN (GLOBAL)
   =============================== */
.typeahead.dropdown-menu {
    width: 100%;
    max-width: 100%;
    max-height: 260px;

    overflow-y: auto;
    overflow-x: hidden;

    padding: 0;
    margin-top: 4px;

    z-index: 3000;
    /* di atas selectpicker & modal body */

    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
    border-radius: 4px;
}

/* ===============================
   ITEM LIST
   =============================== */
.typeahead.dropdown-menu>li {
    list-style: none;
}

/* clickable area */
.typeahead.dropdown-menu>li>a {
    display: block;

    padding: 10px 14px;

    /* KUNCI UNTUK TEKS PANJANG */
    white-space: normal !important;
    word-wrap: break-word;
    overflow-wrap: anywhere;

    line-height: 1.45;
    font-size: 13px;

    color: #333;
    text-decoration: none;

    border-bottom: 1px solid #eee;
}

/* ===============================
   HOVER / ACTIVE
   =============================== */
.typeahead.dropdown-menu>li.active>a,
.typeahead.dropdown-menu>li>a:hover {
    background-color: #337ab7;
    color: #fff;
}

/* ===============================
   HILANGKAN BORDER ITEM TERAKHIR
   =============================== */
.typeahead.dropdown-menu>li:last-child>a {
    border-bottom: none;
}

/* ===============================
   PARENT WRAPPER (WAJIB)
   =============================== */
#wrapper-saran-text {
    position: relative;
}

/* ===============================
   ANTISIPASI CONTAINER OVERFLOW
   =============================== */
/* .form-group,
.modal-body,
.panel-body {
    overflow: visible !important;
} */

/* Tambahan CSS sedikit agar lebih cantik */
.icon-shape {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

/* bg soft (opsional, bisa dipakai untuk highlight baris atau card)  */
.bg-soft-primary {
    background-color: rgba(0, 123, 255, 0.1);
}

.bg-soft-success {
    background-color: rgba(40, 167, 69, 0.1);
}

.bg-soft-danger {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

.bg-soft-warning {
    background-color: rgba(255, 193, 7, 0.1) !important;
}

.bg-soft-info {
    background-color: rgba(23, 162, 184, 0.1) !important;
}

.bg-soft-secondary {
    background-color: rgba(108, 117, 125, 0.1) !important;
}

.bg-soft-dark {
    background-color: rgba(52, 58, 64, 0.1) !important;
}

/* Badge warna soft (opsional, bisa dipakai untuk badge atau label status)  */
.badge-soft-primary {
    color: #007bff;
    background-color: rgba(0, 123, 255, 0.1);
}

.badge-soft-success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}


.badge-soft-danger {
    color: #dc3545;
    background-color: rgba(220, 53, 69, 0.1);
}

.badge-soft-warning {
    color: #ffc107;
    background-color: rgba(255, 193, 7, 0.1);
}

.badge-soft-info {
    color: #17a2b8;
    background-color: rgba(23, 162, 184, 0.1);
}

.badge-soft-secondary {
    color: #6c757d;
    background-color: rgba(108, 117, 125, 0.1);
}

.badge-soft-dark {
    color: #343a40;
    background-color: rgba(52, 58, 64, 0.1);
}

.badge-soft-success {
    color: #28a745;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Border untuk tabel atau elemen lain yang butuh pemisah halus */

.border-right {
    border-right: 1px solid #eeeeee !important;
}

.border-left {
    border-left: 1px solid #eeeeee !important;
}

.border-top {
    border-top: 1px solid #eeeeee !important;
}

.border-bottom {
    border-bottom: 1px solid #eeeeee !important;
}

/* Border warna soft (Opsional) */
.border-soft-primary {
    border: 1px solid rgba(0, 123, 255, 0.2) !important;
}