:root {
    --navbar-height: 56px;
    --sidebar-width: 240px;
}
body {
    height: 100vh;
}

#main {
    max-width: 2560px;
    background-color: var(--bs-body-bg) !important;
}

@media (min-width: 768px) {
    .wrapperWithSidebar {
        margin-left:var(--sidebar-width) !important;
        width:calc(100% - var(--sidebar-width)) !important;
    }
    #wrapper {
        padding:20px 10px 0 10px !important;
    }
}

#wrapper {
    position:fixed;
    top:var(--navbar-height);
    height:calc(100% - var(--navbar-height));
    padding: 10px 0 0 0;
    width: 100%;
}

#btn-back-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    display: none;
}

.navbar {
    min-height:var(--navbar-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.sidebar {
    position: fixed;
    top: var(--navbar-height);
    height: calc(100% - var(--navbar-height));
    z-index: 999;
}

.sidebar .offcanvas-md {
    width: var(--sidebar-width);
    overflow: auto;
    height: 100%;
}

.sidebar .offcanvas {
    top: var(--navbar-height);
}

.sidebar .offcanvas-header {
    height: var(--navbar-height);
}

.sidebar .nav .bi {
    margin-right:6px;
}

.sidebar .nav .list-group-item {
    border-left: 0;
    border-right: 0;
}

.sidebar .nav .list-group-item:first-child {
    border-radius: 0;
}

.sidebar .nav .list-group-item:last-child {
    border-radius: 0;
}

.submenu {
    list-style-type: none;
    padding-left: 1rem;
}

.smooth {
    -webkit-transition: all 0.25s ease;
    -moz-transition: all 0.25s ease;
    -o-transition: all 0.25s ease;
    transition: all 0.25s ease;
}

.html-loading {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1337;
    background-color: rgba(0,0,0,.1);
}

.html-block {
    position: fixed;
    width: 100%;
    height: 100%;
}

.bootstrap-table .fixed-table-container .fixed-table-body .fixed-table-loading {
    background: transparent !important;
}
.bootstrap-table .fixed-table-container .table thead th {
    --bs-bg-opacity: 1;
    background-color: rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity)) !important;
}

.bootstrap-table tr.detail-view td {
    /*padding-left: 25px;*/
}

@media (max-width: 768px) {
    .bootstrap-table .search-input {
        max-width: 170px;
    }
}