/* loading spinner */
/* Overlay seluruh layar */
#backMenu {
    cursor: pointer;
}

#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    /* transparan gelap */
    display: none;
    /* Awalnya disembunyikan */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    pointer-events: auto;
}

.loading-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Icon Font Awesome */
.loading-icon {
    color: #ffffff;
    margin-bottom: 20px;
    animation: pulse 1.2s infinite;
}

/* Spinner */
.spinner {
    width: 60px;
    height: 60px;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Blok interaksi saat loading */
body.loading-active {
    overflow: hidden;
    pointer-events: none;
}

#bodyTable.tbody-error {
    background-color: #f8d7da !important;
    /* merah lembut */
    border: 2px solid #dc3545;
    box-shadow: inset 0 0 5px #dc3545;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.garis-pembatas {
    height: 0.5px;
    background-color: rgba(0, 0, 0, 0.05);
    /* Sangat halus */
    margin: 16px 0;
    width: 100%;
}

.tx-12 {
    font-size: 12px !important;
}

.fs9 {
    font-size: 9px !important;
}

.fs10 {
    font-size: 10px !important;
}

.fs11 {
    font-size: 11px !important;
}

.readonly-style {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.cursor-pointer:hover {
    cursor: pointer;
    color: #0d6efd;
    /* Warna biru seperti link */
    text-decoration: none;
}

.mxh-200 {
    max-height: 200px;
}

.mxh-300 {
    max-height: 300px;
}

.mxh-400 {
    max-height: 400px;
}

.mxh-600 {
    max-height: 600px;
}

.mxh-800 {
    max-height: 800px;
}

.scrollable-div {
    /* Atur tinggi maksimum */
    overflow-y: auto;
    /* Aktifkan scroll vertikal */
    overflow-y: auto;
    /* aktif scroll ke bawah */
    overflow-x: hidden;
    /* nonaktif scroll ke samping */
    padding: 10px;
    border: 1px solid #ccc;
}

.tr-error {
    background-color: #f8d7da !important;
    /* merah muda seperti alert-danger */
    transition: background-color 0.3s;
}

td.highlight-column-table-warning {
    border: 1px solid #ffc107;
    background-color: #fffbe6;
}

td.highlight-column-table-danger {
    border: 1px solid #ef052c;
    background-color: #fffbe6;
}

input.highlight-input-warning {
    border: 1px solid #ffc107;
    /* kuning tipis */
    background-color: #f6f6f6;
    /* opsional: latar belakang putih gading */
    box-shadow: 0 0 4px #ffe082;
    /* efek glow halus */
}

select.highlight-input-danger {
    border: 1px solid #ef052c;
    /* kuning tipis */
    background-color: #f6f6f6;
    /* opsional: latar belakang putih gading */
    box-shadow: 0 0 4px rgb(243, 108, 108);
    /* efek glow halus */
}

input.highlight-input-danger {
    border: 1px solid #ef052c;
    /* kuning tipis */
    background-color: #f6f6f6;
    /* opsional: latar belakang putih gading */
    box-shadow: 0 0 4px rgb(243, 108, 108);
    /* efek glow halus */
}

.card-half-screen {
    height: 50vh !important;
    overflow-y: auto;
}