body,
html {
    line-height: 1.8;
    color: #555e58;
    font-family: "Montserrat", sans-serif !important;
    text-rendering: optimizeLegibility !important;
    -webkit-font-smoothing: antialiased !important;
    font-weight: 400;
    margin: 0px;
    padding: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4 {
    font-weight: 400;
    line-height: 1.5em;
}

button:focus {
    box-shadow: none;
    outline: none;
    border: none;
}

ul,
ol {
    padding: 0;
    margin: 0px;
    list-style: none;
}

.wrapper {
    display: flex;
    position: relative;
    width: 100%;
}

/* --- SIDEBAR STYLE start ----- */

#sidebar {
    position: sticky;
    height: 100vh !important;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 11;
    width: 250px;
    overflow: auto;
    transition: all 0.3s;
    box-shadow: 0 10px 30px -12px rgb(0 0 0 / 42%),
        0 4px 25px 0px rgb(0 0 0 / 12%), 0 8px 10px -5px rgb(0 0 0 / 20%);
}

#sidebar.expanded {
    width: 0;
}

.bg-sidebar {
    display: none;
}

/*#sidebar.expanded .link-items-text,
#sidebar.expanded .menu-header-text {
  display: none;
}

#sidebar.expanded ul li svg {
    width: 40px;
}*/

#sidebar::-webkit-scrollbar {
    width: 3px;
    height: 0px;
    border-radius: 10px;
    background-color: #eee;
    display: none;
}
#sidebar::-webkit-scrollbar-thumbs {
    width: 5px;
    border-radius: 10px;
    background-color: #333;
    display: none;
}

#sidebar:hover::-webkit-scrollbar {
    display: block;
}
#sidebar:hover::-webkit-scrollbar-thumbs {
    display: block;
}

#sidebar .sidebar-header {
    padding: 15px 10px 3px;
    background-color: #008036;
}

.sidebar-header img {
    width: 165px;
    margin-right: 10px;
}

#sidebar ul li {
    padding: 14px 17px 10px;
    /* margin: 5px 0px; */
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

#sidebar .accordion-item li {
    padding: 14px 17px 10px;
    /* margin: 5px 0px; */
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}

#sidebar ul li.active {
    background-color: #5ef86161;
}

#sidebar ul li.disabled {
    display: none !important;
}

#sidebar ul li.sidebar-menu:hover {
    background-color: #f9c6512b;
}

#sidebar ul li svg {
    margin-right: 10px;
    margin-left: 15px;
    width: 21px;
    position: relative;
    top: -3px;
}

#sidebar ul li svg.bi-sliders,
svg.bi-card-checklist {
    top: -2px;
}

.sidebar-accordition {
    padding: 12px 20px !important;
}

/* .menu-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
    height: 100%;
}

.menu-inner-shadow {
    display: none;
    position: absolute;
    top: 4.225rem;
    height: 3rem;
    width: 100%;
    pointer-events: none;
    z-index: 2;
}

html:not(.layout-menu-fixed) .menu-inner-shadow {
    display: none !important;
}

.menu-inner > .menu-header {
    width: 16.25rem;
}

.menu-collapsed:not(:hover) .menu-inner > .menu-header {
    position: relative;
    margin-left: 1rem;
    padding-right: 1.5rem;
    padding-left: 0.5rem;
    width: 16.25rem;
    text-indent: -9999px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.menu-collapsed:not(:hover) .menu-inner > .menu-header .menu-header-text,
.menu-collapsed:not(:hover) .menu-block .menu-header-text {
    overflow: hidden;
    opacity: 0;
}

.menu-collapsed:not(:hover) .menu-inner > .menu-header::before,
.menu-collapsed:not(:hover) .menu-block::before {
    content: "";
    position: absolute;
    left: 1.125rem;
    display: block;
    width: 1rem;
    text-align: center;
    top: 1.1875rem;
    color: white;
} */

.accordion-button {
    height: 24px;
}

/* --- sidebar end --- */

/*=== main-content navbar-design start ===*/
#content {
    position: relative;
    transition: all 0.3s;
    background-color: #eeeeee;
    font-size: 13px;
    width: calc(100% - 250px);
}

#content.expanded {
    width: calc(100% - 0px);
}

#content .image-bg img {
    position: absolute;
    bottom: 55px;
    right: 0;
    width: 400px;
    height: auto;
    opacity: 0.5;
}

.top-navbar {
    width: 100%;
    z-index: 9;
    position: relative;
}

.navbar {
    background-color: none;

    .container-fluid {
        background-color: #ffffff;
        box-shadow: 0 1px 7px rgb(0 0 0 / 10%);
        margin: 10px 20px 0px 20px;
        height: 50px;
        border-radius: 10px;
    }

    button {
        &.more-button,
        &.desktop-button {
            background-color: transparent;
            color: #008036;
            border: none;
        }
    }

    .justify-content-end {
        #icon-notif-navbar {
            font-size: larger !important;
        }

        button {
            padding: 0px;
            margin: 0px 5px;
            border: none;
            background-color: transparent;

            /* svg {
                padding: 5px;
                margin: 0px;
                background-color: #ffdc57;
                border-radius: 50px;
                color: #008036;
                width: 20px;
                height: 20px;
            } */

            /* i:hover,
            &.show svg {
                background-color: #008036;
                color: #ffdc57;
                border: 1.5px solid #008036;
            } */
        }

        /* img {
            display: block !important;
            visibility: visible !important;
            width: auto !important;
            height: auto !important;
            opacity: 1 !important;
        } */
    }

    ul.dropdown-menu.show {
        top: 105%;
        right: 0;
        border: none;
        padding: 0px 5px;
        font-size: 14px;
        max-width: max-content;
        color: #008036;
        box-shadow: 0 2px 5px 0 rgb(0 0 0 / 26%);
    }

    .notification {
        ul.dropdown-menu.show {
            z-index: 999 !important;
            top: 105%;
            border: none;
            padding: 0 3px;
            font-size: 14px;
            max-width: 300px;
            min-width: 350px;
            color: #008036;
        }

        ul li {
            z-index: 999 !important;
            list-style-type: none !important;
        }
    }

    .dropdown-menu {
        z-index: 999 !important;
        border-radius: 4px;
        padding: 5px 0;
        animation-name: dropdown-animate;
        animation-duration: 0.2s;
        animation-fill-mode: both;
        border: 0;
        box-shadow: 0 5px 30px 0 rgba(82, 63, 105, 0.2);

        li {
            z-index: 999 !important;
            margin: 3px 0;
            padding: 0px 5px;
            cursor: pointer;
            border-radius: 3px;
            list-style-type: none !important;

            &:hover {
                background-color: #f9c6512b;
            }
        }

        .dropdown-footer a:hover {
            text-decoration: none;
        }

        .dropdown-divider {
            color: #a5c5fe;
            margin: 0;
        }

        .dropdown-item {
            font-size: 14px;
            padding: 5px 8px;
            transition: 0.3s;
            z-index: 999 !important;

            i {
                margin-right: 10px;
                font-size: 16px;
                line-height: 0;
            }

            &:hover {
                background-color: #f6f9ff;
            }
        }
    }
}

.main-content {
    padding: 10px 20px 0px 20px;
    position: relative;
    width: 100%;
    /* min-height: 80vh; */
    min-height: calc(100vh - 131px);
}

/*===main-content navbar-design end ===*/

/*=== main-content inner design like card start ===*/

.main-content .card {
    display: inline-block;
    position: relative;
    border: none !important;
    width: 100%;
    margin: 0 0 15px;
    border-radius: 10px;
    color: rgba(0, 0, 0, 0.87);
    background: #ffffffcf;
    box-shadow: 0 1px 7px rgb(0 0 0 / 3%);
    padding: 10px 20px;
}

.main-content .card-title {
    height: 40px;
    color: #008036;
    width: calc(100% - 20px);
    padding: 8px 18px;
    margin: 10px 10px;
}

.card-title h5 {
    font-weight: 400;
}

.main-content .blank-card {
    min-height: calc(100vh - 218px);
}

/*=== main-content inner design like card end ===*/

/*=== footer design start ===*/

footer {
    padding: 10px 0;
    position: relative;
    width: 100%;
    background-color: #008036;
    height: 55px;
}

footer h6 {
    font-size: 13px;
    color: #ffffff;
    font-weight: 400;
}

footer h6 span {
    font-weight: 600;
}

/*==== footer design end===*/

#sidebar.show-nav,
.body-overlay.show-nav {
    transform: translatex(0%);
    opacity: 1;
    display: block;
    visibility: visible;
    z-index: 15;
}

/* Chart workload */
#chartContainer {
    max-height: 400px; /* Fixed height for the chart */
    overflow-y: auto; /* Enable vertical scrolling */
}

canvas {
    width: 100% !important;
    height: auto !important;
}

/* Table */
.card .card-switch form table {
    padding: 10px 20px !important;
}

.main-content .card-switch table td {
    background-color: #ffffff00;
}

.main-content .table > tbody {
    vertical-align: revert;
}

.main-content .table {
    margin-bottom: 0px;
}

.main-content .table th {
    color: #008036 !important;
    font-size: normal;
    font-weight: 700;
}

.main-content .table tr {
    font-size: 13px;
}

.main-content .table input.form-control,
.card-text input {
    height: 30px;
    font-size: 13px;
    border: none;
    background-color: #e6e6e6;
}

.main-content .table input.form-control,
.card-text input:focus {
    background-color: #e6e6e6;
}

/* Form control */

.form-select {
    border: none;
}

.form-select:focus {
    box-shadow: none !important;
    border: #008036;
}

.form-range:focus {
    box-shadow: none !important;
}

input[type="range"]::-webkit-slider-thumb {
    accent-color: #008036;
    color: #008036;
    background-color: #008036;
}

input[type="range"]::-webkit-slider-thumb:focus {
    background-color: #9ee5bd;
    box-shadow: none !important;
}

input[type="range"]::-webkit-slider-thumb:active {
    background-color: #9ee5bd;
    box-shadow: none !important;
}

input:focus {
    box-shadow: none !important;
    border: none;
}

/* Multiselect */

/* Button */
.btn-aba {
    background-color: #008036 !important;
    color: #ffffff !important;
}

.btn-outline-aba {
    border-color: #008036 !important;
    color: #008036 !important;
}
.btn-outline-aba:hover {
    background-color: #008036 !important;
    color: #ffffff !important;
}

/* The heart of the matter */
.dt-layout-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
@media (max-width: 575.98px) {
    .dt-layout-table-sm {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 767.98px) {
    .dt-layout-table-md {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 991.98px) {
    .dt-layout-table-lg {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 1199.98px) {
    .dt-layout-table-xl {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
@media (max-width: 1399.98px) {
    .dt-layout-table-xxl {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- MEDIAQUERIES ----- */

@media only screen and (min-width: 992px) {
    .navbar .more-button {
        color: #ffffff;
        cursor: default;
    }
    .navbar .desktop-button {
        color: #ffffff;
        cursor: default;
    }

    /*#content {
        width: calc(100% - 250px);
        position: relative;
        float: right;
        transition: all 0.3s;
        background-color: #eeeeee;
    }*/
}

@media only screen and (max-width: 992px) {
    #content {
        width: 100%;
    }

    #sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        z-index: 20;
        width: 0px;
        transform: translatex(-100%);
        transition: all 150ms linear;
        box-shadow: none !important;
    }

    #sidebar.expanded {
        width: 300px;
    }

    .bg-sidebar {
        display: none;
        position: fixed;
        z-index: 10;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: black;
        opacity: 0.5;
    }

    .body-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none;
        visibility: hidden;
        opacity: 0;
        z-index: 3;
        transition: all 150ms linear;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .navbar .more-button {
        color: #008036;
    }

    .navbar .desktop-button {
        color: #008036;
    }
}

@media only screen and (max-width: 766px) {
    #content .image-bg img {
        position: absolute;
        bottom: 5%;
        right: 0%;
        width: 250px;
        height: auto;
        opacity: 0.5;
    }
}

/* --- MEDIAQUERIES --- */

/* gant chart */

/* #myGantt {
    color: black !important;
    font-size: 14px !important;
}

.gantt_task_cell.no_work_hour {
    background-color: #f5f7f8;
}

.gantt_task_row.gantt_selected .gantt_task_cell.no_work_hour {
    background-color: #f8ec9c;
}

.gantt_task .gantt_task_scale .gantt_scale_cell {
    color: #202020 !important;
}

.gantt_grid_scale .gantt_grid_head_cell {
    color: black !important;
}

.gantt-weekend {
    background-color: #d3d3d3;
}

.gantt-holiday {
    background-color: #fce9ed;
}

.gantt_task_content {
    background-color: #3cb371;
} */

/* calendar */

#calendar .fc-day-sun,
#calendar .fc-day-sat {
    background-color: #fcefb0;
}

#calendar .fc-bg-event {
    background-color: #cff2de;
}

#calendar .fc-event-title {
    color: black;
}

.fc .fc-button-primary {
    background-color: #008036;
    border-color: white;
}

.fc .fc-button-primary:hover {
    background-color: #008036;
    border-color: white;
    opacity: 80%;
}

.fc .fc-button-primary:disabled {
    background-color: #d3d3d3;
    border-color: white;
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: #3cb371;
    border-color: white;
}

#calendar .fc-day-sun,
#calendar .fc-day-sat {
    background-color: #d3d3d3;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: #3cb371;
}

.fc .fc-daygrid-day.fc-day-today a {
    color: black !important;
}

.fc .fc-daygrid-day a {
    color: black !important;
}

.fc-event-time {
    color: black;
}

/* MASTER TABEL STICKY */
.table-sticky thead.sticky-top {
    position: sticky;
    top: 0;
    background-color: #fff;
    border-bottom: 1px solid #bababa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.table-sticky tfoot.sticky-top {
    position: sticky;
    bottom: 0;
    background-color: #fff;
    border-top: 1px solid #bababa;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
