/* =========================================
   RESPONSIVE
========================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}


/* =========================================
   NAVBAR
========================================= */

.navbar {
    width: 100%;
}

.navbar-brand {
    white-space: nowrap;
}

.navbar-logo {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
    object-fit: contain !important;
}


/* =========================================
   TABLE RESPONSIVE
========================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* =========================================
   TABLET / HP
========================================= */

@media (max-width: 768px) {

    .container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .card {
        width: 100%;
        padding: 15px !important;
    }


    /* NAVBAR */

    .navbar-brand {
        font-size: 18px;
    }

    .navbar-logo {
        width: 32px !important;
        height: 32px !important;
    }

    .navbar-nav {
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        padding: 10px 5px;
    }


    /* USER + LOGOUT */

    .navbar .d-flex.align-items-center {
        margin-top: 10px;
        padding-bottom: 10px;
    }


    /* FORM */

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .row > [class*="col-"] {
        width: 100%;
        margin-bottom: 10px;
    }


    /* JUDUL */

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 21px;
    }

    h3 {
        font-size: 20px;
    }

    h4 {
        font-size: 18px;
    }


    /* TABLE */

    .table {
        font-size: 13px;
        white-space: nowrap;
    }

}


/* =========================================
   HP KECIL
========================================= */

@media (max-width: 480px) {

    .navbar-brand {
        font-size: 16px;
    }

    .navbar-logo {
        width: 30px !important;
        height: 30px !important;
    }

    .card {
        border-radius: 10px;
        padding: 12px !important;
    }

    body {
        font-size: 14px;
    }

    .form-control,
    .form-select {
        font-size: 14px;
    }

}