:root {
    --header-height: 4rem;
    --nav-width: 60px;
    --normal-font-size: 1rem;
    --z-fixed: 100
}
*, ::before, ::after {
    box-sizing: border-box;
}
body {
    position: relative;
    margin: var(--header-height) 0 0 0;
    padding: 0 1rem;
    font-size: var(--normal-font-size);
    transition: .5s;
}
a {
    text-decoration: none
}
.header {
    top: 0;
    left: 0;
    padding: 0 1rem;
    transition: .5s;
}
#footer, #header {
    width: 100%;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    z-index: 99;
}
#nav-bar {
    background-color: var(--bs-primary);
}
.header_toggle {
    color: var(--bs-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}
.header_img {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden;
}
.header_img img {
    width: 40px;
}
.l-navbar {
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--bs-dark);
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed);
}
.nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: .2rem;
}
.nav_link, .nav_servers_link {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: 0 1rem;
}
.nav_logo {
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
}
.nav_logo {
    margin-bottom: 2rem;
}
.nav_logo-icon {
    font-size: 1.25rem;
    color: var(--bs-white);
}
.nav_logo-name {
    color: var(--bs-white);
    font-weight: 700;
}
.nav_link, .nav_servers_link {
    position: relative;
    color: var(--bs-white);
    margin-bottom: 1.5rem;
    transition: .3s;
}
.nav_link:hover, .nav_servers_link:hover {
    color: var(--bs-white);
}
.nav_icon {
    font-size: 1.25rem;
}
.show-navbar {
    left: 0;
}
.body-pd {
    padding-left: calc(var(--nav-width) + 1rem);
}
.active {
    color: var(--bs-secondary);
}
.active::before {
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--bs-secondary);
}
.height-100 {
    height:100vh;
}
@media screen and (min-width: 768px) {
    body {
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem);
    }
    .header {
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem);
    }
    .header_img {
        width: 40px;
        height: 40px;
    }
    .header_img img {
        width: 45px;
    }
    .l-navbar {
        left: 0;
        padding: 1rem 1rem 0 0;
    }
    .show-navbar {
        width: calc(var(--nav-width) + 156px);
    }
    .body-pd {
        padding-left: calc(var(--nav-width) + 188px);
    }
    #footer-content {
        padding-top: 10px;
        margin-bottom: 0px;
    }
    #container-button-row {
        z-index: 998;
        position: sticky;
        top: 150px;
    }
}
@media screen and (max-width: 768px) {
    #footer-content {
        padding-top: 5px;
        margin-bottom: 15px;
    }
    #container-button-row {
        z-index: 998;
        position: sticky;
        top: 100px;
    }
    #container-table_filter {
        margin-top: 3em !important;
    }
}
td, span, div {
    color: var(--light);
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}

/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}

/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--primary);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--primary);
}

pre {
    background-color: #000;
    color: #FFF;
    padding: 1em;
}

.small-text {
    font-size: 11px;
}

/* Drop Menu */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -6px;
    margin-left: -1px;
    -webkit-border-radius: 0 6px 6px 6px;
    -moz-border-radius: 0 6px 6px;
    border-radius: 0 6px 6px 6px;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.dropdown-submenu>a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: 0px;
}

.dropdown-submenu:hover>a:after {
    border-left-color: #fff;
}

.dropdown-submenu.pull-left {
    float: none;
}

.dropdown-submenu.pull-left>.dropdown-menu {
    left: -100%;
    margin-left: 10px;
    -webkit-border-radius: 6px 0 6px 6px;
    -moz-border-radius: 6px 0 6px 6px;
    border-radius: 6px 0 6px 6px;
}

/* Datatable */
.noselect {
    -webkit-touch-callout: none; /* iOS Safari */
      -webkit-user-select: none; /* Safari */
       -khtml-user-select: none; /* Konqueror HTML */
         -moz-user-select: none; /* Old versions of Firefox */
          -ms-user-select: none; /* Internet Explorer/Edge */
              user-select: none; /* Non-prefixed version, currently
                                    supported by Chrome, Edge, Opera and Firefox */
  }

.no-sort::after {
    display: none !important;
}

.no-sort {
    pointer-events: none !important;
    cursor: default !important;
}

/* Disabled inputs */
.form-control:disabled,
.form-control:read-only {
    background-color: #000;
    opacity: 1;
    cursor: pointer;
}

/* Scrollbar */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3) !important;
    background-color: var(--bs-body-color) !important;
    width: 8px !important;
    height: 4px !important;
}

::-webkit-scrollbar {
    width: 8px !important;
    height: 4px !important;
    background-color: var(--bs-body-color) !important;
}

::-webkit-scrollbar-thumb {
    background-color: var(--bs-primary) !important;
    border-radius: 2px !important;
}

.rounded-top-left-1 {
    border-top-left-radius: 7px;
}
.rounded-top-right-1 {
    border-top-right-radius: 7px;
}
.rounded-bottom-left-1 {
    border-bottom-left-radius: 7px;
}
.rounded-bottom-right-1 {
    border-bottom-right-radius: 7px;
}

.breadcrumb > li + li:before {
    content: '';
}

.text-uppercase {
    text-transform: uppercase !important;
}

.dw-tooltip {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;
}

.dw-tooltip-icon:hover + .dw-tooltip {
    display: block;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-radius: 0.2rem;
}

.modal.fade .modal-dialog {
    transition: transform .2s ease-out !important;
}

.l-navbar .show-text {
    display: none;
}

.l-navbar.show-navbar .show-text {
    display: inline !important;
}

.container-control-buttons-bg {
    position: absolute;
    left: 0%;
    right: 0%;
    top: 70%;
    transform: translateY(-62.5%);
    height: 150%;
    z-index: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

pre {
    counter-reset: line;
    padding-left: 3em;
    position: relative;
}

pre code {
    display: block;
}

pre code > span {
    display: block;
    position: relative;
    padding-left: 0.5em;
}

pre code > span::before {
    counter-increment: line;
    content: counter(line);
    position: absolute;
    left: -2.5em;
    width: 2em;
    text-align: right;
    color: #888;
    background: transparent;
    font-size: 0.95em;
    user-select: none;
}

tr.container-group-row td {
    font-weight: bold;
    border-top: 1px solid var(--bs-primary) !important;
    border-bottom: 1px solid var(--bs-primary) !important;
}
tr.container-group-row.even td {
    background: var(--text-50) !important;
}
tr.container-group-row.odd td {
    background: var(--text-100) !important;
}

#container-table_filter>label {
    font-size: 0;
}
#container-table_filter>label * {
    font-size: initial;
}
#container-table_filter>label>input {
    min-width: 20vh;
}
#container-table_filter>label>input:focus {
    box-shadow: none !important;
    outline: none !important;
    border-color: var(--bs-primary);
}

.access-ro {
    display: none;
}
