/* =========================================================
   GLOBAL RESET
   ========================================================= */
html,
body {
    height: 100%;
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #ebebeb;
    overflow-x: hidden;
}

/* =========================================================
   LAYOUT UTAMA
   ========================================================= */
#app-wrapper {
    display: flex;
    width: 100%;
}

/* ================= SIDEBAR ================= */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 220px;
    height: 100vh;
    background: #212529;
    color: #fff;
    z-index: 2000;
    transition: left 0.3s ease-in-out;
    overflow-y: auto;
}

#sidebar.active {
    left: 0;
}

/* ================= OVERLAY ================= */
#sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1500;
    display: none;
}

#sidebar-overlay.active {
    display: block;
}

/* ================= MAIN ================= */
#main-container {
    margin-left: 220px;
    width: calc(100% - 220px);
    position: relative;
    z-index: 1;
}

/* =========================================================
   TABLE RESPONSIVE
   ========================================================= */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

table {
    min-width: 700px;
}

/* =========================================================
   MOBILE VIEW
   ========================================================= */
@media (max-width: 767.98px) {

    #sidebar {
        left: -220px;
    }

    #sidebar.active {
        left: 0;
    }

    #main-container {
        margin-left: 0;
        width: 100%;
    }
}

/* =========================================================
   PRINT MODE
   ========================================================= */
@media print {

    #sidebar,
    #sidebar-overlay,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    body {
        background: #fff;
    }

    #main-container {
        margin: 0 !important;
        width: 100% !important;
    }
}