/* -------------------------- start sidebar -------------------------- */
.collapse_portal button, .expand_portal button{
    border-radius: 50% !important; 
    outline: none; 
    width: 32px !important; 
    max-width: 32px !important; 
    height: 32px; 
    background: #fff; 
    min-width: 10px !important; 
    color: #000; 
    border: 1px solid var(--company-primary-color); 
    padding: 6px !important; 
    margin-top: 15px !important;
}
.main-sidebar .sidebar::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 10px;
}
.main-sidebar .sidebar::-webkit-scrollbar{
    width: 3px;
}
.main-sidebar .sidebar::-webkit-scrollbar-track {
    box-shadow: inset 0 0 10px rgb(236, 236, 236) !important; 
}

.navbar.navbar-static-top{
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.05);
    /* background: #fff !important; */
    background: var(--company-secondary-color) !important;
    /* opacity: 0.80; */
}
.sidebar-toggle{
    /* color: var(--company-primary-color) !important; */
    color: #fff !important;
}


.sidebar-mini.sidebar-collapse .content-wrapper, .sidebar-mini.sidebar-collapse .right-side, .sidebar-mini.sidebar-collapse .main-footer {
    margin-left: 65px !important;
}

.treeview-menu>li.active>a {
    color: #000000 !important;
}

.treeview li.active {
    background: var(--company-secondary-color);
}

.sidebar-menu .treeview span {
    /* font-size: 1.5rem !important; */
}

@media (max-width: 767px) {
    .widget_filters {
        margin-top: 0px !important;
        margin-bottom: 10px !important;
    }
    .widget_filters .col-xs-12 {
        margin-bottom: 5px;
    }
}


@media (min-width: 767px) {

    .content-wrapper.right_col .x_panel {
        padding: 20px;
    }

    .main-sidebar{
        width: 260px;
    }

    .navbar.navbar-static-top{
        margin-left: 260px;
    }

    .main-sidebar{
        position: fixed;
    }

    .main-sidebar .sidebar{
        height: 100vh !important;
        overflow: scroll !important;
        /* overflow-x: unset !important; */
        padding-bottom: 300px;
    }

    .main-header .logo {
        position: fixed;
        width: 260px;
    }

  
    .content-wrapper.right_col{
        margin-left: 260px;
    }
    

    .x_panel .content-header{
        position: relative;
        margin: 15px;
        margin-top: 0;
        padding-bottom: 15px;
        padding-left: 0;
        margin-bottom: 0;
        border-bottom: solid 1px #e6e6e6;
    }

    .dropdown.user.user-menu.sm-hidden{
        background: var(--company-primary-color) !important;
    }

    .main-header nav {
        position: fixed;
        width: -webkit-fill-available;
    }
    .dtfh-floatingparent.dtfh-floatingparenthead{
        top: 60px !important;
    }
    .navbar-nav .btn{
        margin-top: 10px;
        padding: 10px 20px 10px 20px !important;
        border-radius: 25px !important;
    }

    @media (min-width: 768px) {
        .navbar-nav>li>a {
            padding-top: 20px !important;
            padding-bottom: 20px !important;
        }
    }

    .main-header .navbar {
        height: 60px !important;
        width: -moz-available;
        width: -webkit-fill-available;
    }
    .main-header  {
        z-index: 999 !important;
    }




    .sidebar-menu.tree{
        padding-left: 10px;
        padding-right: 10px;
        border-bottom: unset;
    }
    .sidebar-menu>li>a {
        padding: 10px 10px 10px 15px;
        border-bottom: unset;
    }
    .menu_header_new {
        color: #888 !important;
        font-size: 14px !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #ddd !important;
        margin-bottom: 10px !important;
    }
    .sidebar-menu .treeview span i {
        font-size: 10px !important;
        margin-top: 5px !important;
    }

    .main-sidebar .user-panel {
        position: fixed;
        max-width: 260px;
        z-index: 9;
        transition: transform 0.3s ease-in-out, max-width 0.3s ease-in-out;
        overflow: hidden; /* Prevent content from spilling out */
    }
    .sidebar-mini.sidebar-collapse .user-panel {
        width: 100% !important;
    }
    .sidebar-menu li a {
        font-weight: 500;
    }
    .ribbon {
        z-index: 99 !important;
    }
    .sidebar-mini.sidebar-collapse .main-sidebar {
        width: 65px !important;
    }
    .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>.treeview-menu{
        position: fixed;
        margin-left: 3px !important;
        z-index: 9;
    }
    .sidebar-mini:not(.sidebar-mini-expand-feature).sidebar-collapse .sidebar-menu>li:hover>a>span{
        position: fixed !important;
        margin-left: 3px !important;

        padding: 10px 19px !important;
        width: 250px !important;
        /* border-radius: 15px 15px 0 0 !important; */
    }
    .sidebar-menu.tree{
        overflow: visible;
        /* position: absolute; */
    }
    .sidebar-collapse li.treeview ul.treeview-menu:first-of-type {
        width: 250px !important;
    }
    li.treeview ul.treeview-menu:first-of-type {
        /* padding: 10px !important; */
        /* width: 250px !important; */
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.20) !important;
        border-radius: 0 0 15px 15px !important;
    }
    .display_block {
        display: block !important;
        position: fixed;
        display: block !important;
        margin-left: 65px;
    }
    .display_none {
        display: none !important;
    }
    .main-sidebar .user-panel .image {
        margin-left: 12px;
    }


    #menuSearch {
        max-width: unset !important;
        height: 35px !important;
        text-align: left !important;
        border-radius: 30px !important;
        border: 1px solid #cfcfcf !important; 
    }
    .menuSearchContainer {
        margin: 55px 15px 10px 15px !important;
        width: 228px !important;
    }
    .sidebar-mini.sidebar-collapse .main-header .navbar {
        margin-left: 65px;
    }
}
/* -------------------------- start sidebar -------------------------- */





/* ----------------------------------- start loader ---------------------------------- */
.logo_loader_container img{
    width: 300px;
}
body.sidebar-mini {
    overflow: hidden;
}
#page-loader {
    position: fixed;
    inset: 0;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 1.0;
    visibility: visible;
    flex-direction: column;
}

.logo_loader_container {
    position: relative;
    display: inline-block;
    overflow: hidden;
    animation: breathe 0.8s ease-in-out infinite;
}

.logo_loader_container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background-color: black;
    z-index: 1;
}

.logo_loader_container img {
    display: block;
    position: relative;
    z-index: 2;
    display: block;
    position: relative;
    z-index: 2;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    20% {
        transform: scale(1.04);
        opacity: 0.9;
    }
    40% {
        transform: scale(1.08);
        opacity: 1;
    }
    60% {
        transform: scale(1.06);
        opacity: 0.95;
    }
    80% {
        transform: scale(1.02);
        opacity: 0.85;
    }
    100% {
        transform: scale(1);
        opacity: 0.8;
    }
}


.dots-loader {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 27px;
}
.dots-loader span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #000;
    animation: bounce 0.4s infinite alternate;
}
.dots-loader span:nth-child(2) {
    animation-delay: 0.2s;
}
.dots-loader span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    to {
        opacity: 0.1;
    }
}

/* ----------------------------------- end loader ---------------------------------- */




/* ----------------------- start table ----------------------- */

.row_table table thead tr th{
    border-top: 1px solid #ddd !important;
}
.row_table table thead tr, .fixedHeader-floating thead tr{
    color: #565656 !important;
    border-bottom: unset !important;
    background: #fafafc !important;
}
.row_table table.dataTable thead .sorting:after, 
.row_table table.dataTable thead .sorting_asc:after, 
.row_table table.dataTable thead .sorting_desc:after, 
.row_table table.dataTable thead .sorting_asc_disabled:after, 
.row_table table.dataTable thead .sorting_desc_disabled:after {
    position: absolute !important;
    bottom: 16px;
    right: 8px;
    display: block;
}
.row_table table thead tr th:first-child, .fixedHeader-floating thead tr th:first-child{
    padding-left: 20px !important;
}
.row_table table tbody tr td:first-child, 
.row_table table thead tr th:last-child, 
.fixedHeader-floating tbody tr td:first-child, 
.fixedHeader-floating thead tr th:last-child 
{
    padding-left: 20px !important;
}
.row_table table.paginated tr th,  .fixedHeader-floating tr th{
    padding-right: 30px !important;
}
.row_table .dataTables_scrollBody table tr th{
    height: 0px !important;
}
.row_table table.dataTable {
    margin-top: 0px !important;
}
.row_table table thead tr th{
    padding-left: 10px !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
}
.row_table .dataTables_scrollBody table thead:first-child tr th{
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}
.row_table table tbody tr:hover {
    background-color: #f4f4f4 !important; 
}
.row_table table .odd {
    background-color: #ffffff !important;
}
.row_table table tbody tr td {
    vertical-align: middle !important;
    font-weight: 500;
}
.row_table .row.table-container .col-sm-12{
    padding: 0px;
}
.row_table .dataTables_wrapper {
    padding: 10px 0px 0px 0px !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    box-shadow: unset !important;
    margin-top: 0px !important;
    overflow: hidden;
}
.row_table .dataTables_wrapper .row:first-child, 
.row_table .dataTables_wrapper .row:last-child {
    padding: 15px 15px 0px 15px !important;
}

.row_table .dataTables_wrapper .row:last-child {
    background: #fafafc !important;
    padding: 15px !important;
    border-top: 1px solid #ddd !important;
}
.row_table {
    flex-direction: column !important;
    margin-bottom: 30px !important;
    padding: 0px !important;
    position: relative !important;
    border: unset !important;
    margin: 15px !important;
    width: calc(100% - 30px) !important;
    border-radius: 20px !important;
}
.row_table .table > tbody > tr > td,
.row_table .table > tbody > tr > th,
.row_table .table > tfoot > tr > td,
.row_table .table > tfoot > tr > th,
.row_table .table > thead > tr > td,
.row_table .table > thead > tr > th {
    border-top: 1px solid #ddd !important;
}

.row_table .dt-buttons {
    padding: 0px 15px 0px 10px !important;
}

.row_table .dataTables_filter input {
    height: 32px !important;
    border-radius: 20px;
    padding-left: 30px;
    font-size: 14px;
    width: 190px !important;
    font-weight: 500;
}

/* ----------------------- end table ----------------------- */





/* ----------------------- start general enhancements ----------------------- */
.row {
    border-radius: 20px !important;
    padding: 20px;
}
.row.table-container {
    border-radius: 0px !important;
    padding: 0px;
}
.data_section_body .row_table {
    margin: 0 !important;
    border: none !important;
    border-radius: unset !important;
    width: 100% !important;
    box-shadow: none !important;
}
.data_section_body .row_table .dataTables_wrapper {
    margin: 0 !important;
    border: none !important;
    border-radius: unset !important;
    width: 100% !important;
}

.data_section_body .row_table .dataTables_wrapper .row:last-child {
    padding: 5px !important;
}

.data_section_body .row_table .dataTables_wrapper .row:first-child, .data_section_body .row_table .dataTables_wrapper .row:last-child{
    padding: 2px !important;
}
.data_section_body .row_table .dt-buttons{
    padding: 0px !important;
}
.data_section_body .row_table tbody tr td button,
.data_section_body .row_table tbody tr td a {
    padding: 2px 14px !important;
    margin: 4px !important; 
}
.data_section_body .row_table tbody tr td .progress {
    margin: 0px !important; 
}
.data_section_body .row_table table tbody tr td {
    vertical-align: middle !important;
    font-weight: 400 !important;
}
/* ----------------------- end general enhancements ----------------------- */
.data_section_body .row_table table tbody tr td .progress {
    border-radius: 20px !important;
}
.data_section_body select,
.data_section_body select.form-control {
    background-image: unset;
}
/* ----------------------- end general enhancements ----------------------- */

.ui-autocomplete.ui-front.ui-menu.ui-widget.ui-widget-content {
    background: #FFF;
    border: 1px solid #ddd;
    box-shadow: 3px 1px 15px rgba(0, 0, 0, 0.09);
    max-height: 300px;
    overflow-y: scroll;
}