
.app-btn {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    height: 35px !important;
    padding: 0px 16px !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

html {
    font-size: 14px;
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

#layout-menu .menu-inner {
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
}

#layout-menu .menu-inner::-webkit-scrollbar {
    width: 3px !important; 
}

#layout-menu .menu-inner::-webkit-scrollbar-track {
    background: transparent;
}

#layout-menu .menu-inner::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 20px;
}

    #layout-menu .menu-inner::-webkit-scrollbar-thumb:hover {
        background: auto;
    }


.dataTables_scrollBody {
    scrollbar-width: thin; 
}

  
    .dataTables_scrollBody::-webkit-scrollbar {
        width: 5px; 
        height: 5px;
    }

    .dataTables_scrollBody::-webkit-scrollbar-track {
        background: transparent;
    }

    .dataTables_scrollBody::-webkit-scrollbar-thumb {
        border-radius: 10px;
    }

.modal-auto-width .modal-dialog {
    max-width: fit-content;
    width: auto;
}

.modal-auto-width .modal-content {
    min-width: 500px;
}

#bsModalDialog ,.modal-dialog{
    transition: max-width 0.2s ease;
}

#bsModal .modal-content, #stackModalContainer .modal-content {
    border: none;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

#bsModal .modal-header,
#stackModalContainer .modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
    background: #fafafa;
}

#bsModal .modal-title,
#stackModalContainer .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
}

#bsModal .modal-body,
#stackModalContainer .modal-body {
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
}

#bsModal .modal-footer,
#stackModalContainer .modal-footer {
    padding: .5rem 1rem;
    border-top: 1px solid #e9ecef;
    background: #fafafa;
    justify-content: flex-end;
    gap: 0.5rem;
}

    #bsModal .modal-footer:empty,
    #stackModalContainer .modal-footer:empty {
        display: none;
    }



.dataTables_wrapper .dataTables_length {
    float: left !important;
    margin-bottom: 16px;
}

.dataTables_wrapper .dataTables_filter {
    float: right !important;
    text-align: right !important;
    margin-bottom: 16px;
}

.dataTables_wrapper .row:first-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
}

    .dataTables_wrapper .row:first-child > div {
        width: auto !important;
        flex: none !important;
        padding: 0 !important;
    }

    .dataTables_wrapper .row:first-child::after {
        content: "";
        display: table;
        clear: both;
    }

/* Active menu item */
.menu-link.active {
    color: #117ec0 !important;
    font-weight: 600;
    background-color: #E7E7FF !important;
}

#layout-menu.layout-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 260px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#layout-menu .menu-inner {
    flex: 1 1 auto;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.ess-logout-wrap {
    flex-shrink: 0;
}

.toggle-caret.rotated {
    transform: rotate(180deg);
    transition: transform 0.25s ease;
}

#uploadOverlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.75) !important;
    z-index: 999999 !important;
    display: none !important;
    justify-content: center !important;
    align-items: center !important;
    flex-direction: column !important;
}

div.dataTables_wrapper div.dataTables_length select {
    width: 50%;
    display: inline-block;
}

li.paginate_button.page-item.active {
    background-color: white;
}

#uploadOverlay.show {
    display: flex !important;
}

.menu-inner {
    zoom: 0.9;
}

.content-wrapper {
    zoom: 0.9;
}

.layout-page {
    margin-left: 260px;
}

#layout-menu.layout-menu {
    width: 260px;
}

.swal2-container {
    z-index: 9999 !important;
}

table th,
table td {
    font-size: 12px !important;
}

html h4, h5 {
    font-size: 16px !important;
}

html p {
    font-size: 12px !important;
}

html button {
    font-size: 12px !important;
}

table.dataTable th,
table.dataTable td {
    font-size: 12px !important;
}

.modal .modal-header .btn-close {
    margin-top: 0 !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    float: none !important;
    display: inline-flex;
    align-items: center;
}

/* Force true left/right split */
.dataTables_wrapper .dataTables_info {
    justify-content: flex-start;
    width: 50%;
}

.dataTables_wrapper .dataTables_paginate {
    justify-content: flex-end;
    width: 50%;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 5px;
}

html {
    scrollbar-width: thin;
}

/* Full-screen overlay */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.loader-container {
    text-align: center;
}

.custom-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e0e0e0;
    border-radius: 50%;
    border-top-color: #007bff;
    display: inline-block;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #333;
    letter-spacing: 0.5px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.notification-link:hover {
    cursor: pointer;
    background: #e5f5ff;
}


.dataTables_scrollBody {
    max-height: 65vh;
    overflow: auto !important;
}

.dataTables_scrollHead thead th,
table.dataTable thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #fff !important;
}

/* Sticky Footer */
.dataTables_scrollFoot tfoot th,
.dataTables_scrollFoot tfoot td,
table.dataTable tfoot th,
table.dataTable tfoot td {
    position: sticky;
    bottom: 0;
    z-index: 20;
    background: #fff !important;
}


.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050;
}
.modal {
    overflow-y: auto;
}

.modal-backdrop.modal-stack {
    opacity: .5;
}