:root {
    --primary-color: 0, 49, 118;
    /*--secondary-color: 32, 43, 80;*/
    --secondary-color: 0, 174, 239;
    /*--sec-hover-color: 113, 70, 217;*/
    /*--sec-hover-color: 103, 57, 208;*/
    --border-radius: 5px;
    --box-shadow: rgba(var(--primary-color), 0.4);
    --success-color: 63, 177, 155;
    --error-color: 217, 69, 85;
}


@font-face {
    font-family: Rubik;
    src: url(../fonts/Rubik/static/Rubik-Regular.ttf);
    font-display: swap;
}

*:not(i) {
    font-family: Rubik, sans-serif !important;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: rgba(var(--primary-color), 0.02);
}
/*== hide input type number arrows ==*/
/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Firefox */
input[type=number] {
    -moz-appearance: textfield;
}
/*----------------------------------*/

.custom-navbar {
    width: 70%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /*max-width: 1350px;*/
}

.custom-container {
    width: 70%;
    margin: 0 auto;
    /*max-width: 1350px;*/
}

@media only screen and (max-width: 1400px) {
    .custom-container {
        width: 100%;
        padding: 0 2rem;
        margin: auto;
    }

    .custom-navbar {
        width: 100%;
        padding: 0 2rem;
        margin: 0;
    }
}

@media only screen and (max-width: 500px) {
    .custom-container {
        width: 100%;
        padding: 0 1rem;
        margin: auto;
    }

    .custom-navbar {
        width: 100%;
        padding: 0 1rem;
        margin: 0;
    }
}

.content-block {
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: 0 0 2px var(--box-shadow);
    background-color: white;
}

.btn-app {
    background-color: rgb(var(--primary-color));
    color: white;
    border-radius: var(--border-radius);
    /*min-height: 45px;*/
}

    .btn-app:hover, .btn-app:active, .btn-app:focus-visible {
        background-color: white !important;
        border-color: rgba(var(--primary-color)) !important;
        color: rgba(var(--primary-color)) !important;
    }

.btn-app-secondary {
    background-color: rgb(var(--secondary-color));
    color: white;
    border-radius: var(--border-radius);
}

    .btn-app-secondary:hover, .btn-app-secondary:active, .btn-app-secondary:focus-visible {
        background-color: white !important;
        border-color: rgba(var(--secondary-color)) !important;
        color: rgba(var(--secondary-color)) !important;
    }

.back-btn, .delete-btn {
    background-color: rgb(var(--error-color));
    color: white;
    border-radius: var(--border-radius);
}

    .back-btn:hover, .back-btn:active, .back-btn:focus-visible,
    .delete-btn:hover, .delete-btn:active, .delete-btn:focus-visible {
        background-color: white !important;
        border-color: rgba(var(--error-color)) !important;
        color: rgba(var(--error-color));
    }

.text-app{
    color: rgb(var(--primary-color)) !important;
}

.text-success{
    color: rgb(var(--success-color));
}

.text-error{
    color: rgb(var(--error-color));
}

.select2-container {
    width: 100% !important;
}

.form-check-input{
    transform: scale(1.2);
}

    .form-check-input:checked {
        background-color: rgb(var(--primary-color)) !important;
        border-color: rgb(var(--primary-color)) !important;
    }

    .form-check-input:focus {
        border-color: rgba(var(--primary-color), 0.5) !important;
        box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.3) !important;
    }

.row {
    align-items: center;
}

.form-label{
    font-weight: bold;
}

.col-form-label {
    font-weight: bold;
}

.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.25) !important;
    border-color: rgb(var(--primary-color)) !important;
}

.form-control.is-valid {
    border-color: rgb(var(--primary-color)) !important;
    background-image: url("/images/success-tick.svg") !important;
}

.form-select.is-valid {
    border-color: rgb(var(--primary-color)) !important;
    background-image: url("/images/dropdown-arrow.svg"), url("/images/success-tick.svg") !important;
}

    .form-control.is-valid:focus, .form-select.is-valid:focus {
        border-color: rgb(var(--primary-color)) !important;
        box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.25) !important;
    }

.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
    border-color: rgb(var(--primary-color)) !important;
    box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.25) !important;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border-color: rgb(var(--primary-color)) !important;
}

    .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
        border-color: rgb(var(--primary-color)) !important;
        box-shadow: 0 0 0 0.25rem rgba(var(--primary-color), 0.25) !important;
    }

.is-valid + .select2-container--bootstrap-5 .select2-selection {
    border-color: rgb(var(--primary-color)) !important;
}

.option-btns {
    display: flex;
    justify-content: end;
    align-items: center;
    flex-wrap: nowrap;
}
    .option-btns a, .option-btns button {
        margin: 0;
        margin-left: 5px;
    }

        /*.option-btns a:last-child, .option-btns button:last-child {
            margin: 0;
            margin-left: 5px;
        }*/

.dateRangePicker, .datePicker, .startDatePicker, .endDatePicker {
    cursor: pointer !important;
}

.ui-menu .ui-menu-item-wrapper {
    display: block;
    width: 100%;
    padding: 6px;
    border-bottom: 0.5px solid rgb(var(--primary-color));
}
    .ui-menu .ui-menu-item-wrapper:hover,
    .ui-menu .ui-menu-item-wrapper:active, 
    .ui-menu .ui-menu-item-wrapper:focus-visible {
        background: rgb(var(--primary-color)) !important;
        color: white;
        border: 0;
    }


.default-location-grid {
    display: flex;
    justify-content: center;
    align-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    width: 100%;
    /*margin: auto;*/
    padding: 2rem;
    color: rgb(var(--primary-color));
}

    .default-location-grid .location-btn {
        aspect-ratio: 16/9;
        width: 250px;
        background-color: white;
        border: 2px solid rgba(var(--primary-color));
        border-radius: var(--border-radius);
        display: flex;
        justify-content: center;
        align-content: center;
        flex-wrap: wrap;
        /*box-shadow: 0 0 10px var(--box-shadow);*/
        text-decoration: none;
        color: rgb(var(--primary-color));
        font-size: 25px;
        padding: 10px;
        overflow: hidden;
    }
        .default-location-grid .location-btn:hover {
            background-color: rgb(var(--primary-color));
            color: white;
            font-weight: bold;
            box-shadow: 0 0 5px rgb(var(--primary-color));
        }

    .default-location-grid .location-btn span {
        width: 100%;
        text-align: center;
    }

@media only screen and (max-width: 1000px) {
    .default-location-grid {
        width: 100%;
    }
}
@media only screen and (max-width: 768px) {
    .default-location-grid .location-btn {
        width: 250px;
        font-size: 20px;
    }
}

.entry-cards-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    gap: 30px;
}
.entry-cards {
    display: block;
    width: 80%;
    margin: auto;
    padding: 2rem;
    color: rgb(var(--primary-color));
}

    .entry-cards .cards-grid {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: wrap;
        gap: 3rem;
    }

        .entry-cards .cards-grid .card {
            aspect-ratio: 16/9;
            width: 300px;
            background-color: white;
            border: 2px solid rgba(var(--primary-color));
            border-radius: var(--border-radius);
            display: flex;
            justify-content: center;
            align-content: center;
            flex-wrap: wrap;
            text-decoration: none;
            /*box-shadow: 0 0 10px var(--box-shadow);*/
            color: rgb(var(--primary-color));
            font-size: 30px
        }

            .entry-cards .cards-grid .card:hover {
                background-color: rgb(var(--primary-color));
                color: white;
                font-weight: bold;
                box-shadow: 0 0 5px rgb(var(--primary-color));
            }

        .entry-cards .cards-grid .card span {
            text-align: center;
            margin: 0;
        }

        .entry-cards .cards-grid .card .no-of-entries {
            position: absolute;
            font-size: 15px;
            top: 0;
            text-align: center;
            width: 100%;
            margin-top: 5px;
        }

@media only screen and (max-width: 1000px) {
    .entry-cards {
        width: 100%;
    }
}

@media only screen and (max-width: 768px) {
    .entry-cards .cards-grid .card {
        width: 250px;
        font-size: 20px;
    }

        .entry-cards .cards-grid .card .no-of-entries {
            font-size: 12px;
        }  
}

.company-logo {
    max-height: 45px;
}

@media only screen and (max-width: 768px) {
    .company-logo {
        max-height: 40px;
    }
}

/*============================ NAVBAR =====================================*/
.mobile-navbar-toggle {
    display: none;
}

@media only screen and (max-width: 937px) {
    .desktop-navbar {
        display: none
    }

    .mobile-navbar-toggle {
        display: block;
    }
}

.desktop-navbar .nav-link.show {
    font-weight: bold;
    border-bottom: 3px solid rgb(var(--primary-color));
}

.desktop-navbar .nav-link:hover {
    font-weight: bold;
}

.desktop-navbar .dropdown-item:hover {
    background-color: rgb(var(--primary-color));
    color: white;
}

.user-navbar-items .user-icon:hover {
    color: rgb(var(--primary-color), 0.8) !important;
}

.user-navbar-items .nav-link:last-child {
    border-radius: 0 0 5px 5px !important;
}

.user-navbar-items .nav-link {
    padding: 0;
}

    .user-navbar-items .nav-link a {
        display: block;
        color: inherit;
        text-decoration: none;
        text-align: start;
        padding: 0.5rem;
    }

    .user-navbar-items .nav-link:hover {
        background-color: rgb(var(--primary-color)) !important;
        color: white;
    }

#mobile-navbar .nav-link a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 2.1vh;
    border-bottom: 1px solid #e5e5e5;
    color: rgb(var(--primary-color));
    text-decoration: none;
    font-weight: bold
}

#mobile-navbar .nav-link a:focus {
    background-color: rgb(var(--primary-color));
    color: white;
}

#mobile-navbar .nav-link:last-child a {
    border: none;
}

#mobile-navbar .menu-category-btn {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 2.1vh;
    border-bottom: 1px solid #e5e5e5;
    color: rgb(var(--primary-color));
    text-decoration: none;
    font-weight: bold
}

#mobile-navbar .menu-category-btn > i {
    font-size: 1.5rem;
    transition: transform .2s ease;
}

#mobile-navbar .menu-category-btn[aria-expanded="true"] {
    border-bottom: 0;
}

#mobile-navbar .menu-category-btn[aria-expanded="true"] > i {
    transform: rotate(90deg);
}

#mobile-navbar .menu-subcategory-btn {
    padding: 0.5rem 3rem;
    display: block;
    font-size: 1.8vh;
    text-decoration: none;
    color: rgb(var(--primary-color));
}

#mobile-navbar .menu-subcategory-btn:hover,
#mobile-navbar .menu-subcategory-btn:focus,
#mobile-navbar .menu-subcategory-btn:active {
    text-decoration: underline;
    font-weight: bold;
}

#mobile-navbar .menu-subcategory-list li:last-child a {
    border-bottom: 1px solid #e5e5e5;
}

.navbar-item{
    text-decoration: none;
    color: rgb(var(--primary-color));
}
.navbar-item:hover {
    font-weight: bold;
}

@media (orientation: landscape) and (max-height: 500px) {
    #mobile-navbar .nav-link a {
        font-size: 2vw;
    }

    #mobile-navbar .menu-category-btn {
        font-size: 2vw;
    }

    #mobile-navbar .menu-subcategory-btn {
        font-size: 1.6vw;
    }
}

/*==========================================================================*/

#home-page {
    border-radius: var(--border-radius);
     box-shadow: 0 0 2px var(--box-shadow);
}

    #home-page .tabList button.active {
        background: rgb(var(--primary-color)) !important;
        color: white !important;
        border: 1px solid rgb(var(--primary-color)) !important;
        font-weight: bold;
    }

    #home-page .tabList .nav-item{
        width: 50%;
    }

    #home-page .tabList button {
        height: calc(3.5rem + 2px) !important;
        background-color: white !important;
        color: rgb(var(--primary-color));
        font-size: 20px;
        border: none;
        border-bottom: 1px solid #dde2ec;
    }

        #home-page .tabList button:hover:not(.active) {
            border: none !important;
            font-weight: bold;
            border-bottom: 3px solid rgb(var(--primary-color)) !important;
        }

        #home-page .content-block {
            padding-top: 2rem;
            box-shadow: none;
        }

.errorDiv {
    background-color: rgba(var(--error-color), 0.1);
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: start;
    border: 0.5px solid rgba(var(--error-color), 0.3);
}

    .errorDiv .fa-circle-exclamation {
        color: rgba(var(--error-color));
        font-size: 1.8rem;
        margin: 0 20px
    }