html {
    height: 100%;
}

body {
    min-height: 100%;
}

.sidebar-sticky {
    padding-top: .5rem;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.multi-action-bottom-panel {
    position: sticky;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding-left: 1em;
    padding-right: 1em;
}

.navbar {
    padding: 0;
}

#main-navbar {
    z-index: 5;
    height: 6vh;
}

@media (max-height: 900px) {
    #main-navbar {
        height: 7vh;
    }
}

.sidebar {
    display: flex;
    flex-direction: column;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.maker {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    padding: 48px 0 0;
}

.navbar-brand {
    /*padding-top: .75rem;*/
    /*padding-bottom: .75rem;*/
    /*background-color: rgba(0, 0, 0, .25);*/
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.title {
    line-height: 0.9em;
    font-size: 1em;
    color: white;
    font-weight: bold;
    text-decoration: none;
}

.title:hover {
    color: white;
    text-decoration: none;
}

.subtitle {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3em;
    font-size: 0.7em;
    font-weight: normal;
}

.terms {
    font-size: 0.9em;
    align-self: center;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 1em;
}

.terms:hover {
    color: rgba(0, 0, 0, 0.5);
}

.helptext {
    color: #6c757d !important;
    font-size: 0.8em;
}

@media (min-width: 576px) {
    .dropdown-lg {
        width: 320px
    }
}

.dropdown-icon-item {
    display: block;
    border-radius: 3px;
    /*line-height: 34px;*/
    text-align: center;
    /*padding: 15px 0 9px;*/
    border: 1px solid transparent;
    color: #6c757d;
}

.dropdown-icon-item img {
    height: 24px
}

.dropdown-icon-item span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.dropdown-icon-item:hover {
    background-color: #f4f6fb;
    color: #2d343f;
}

.avatar-xs {
    height: 1.5rem;
    width: 1.5rem;
}

.avatar-sm {
    height: 3rem;
    width: 3rem
}

.avatar-md {
    height: 4.5rem;
    width: 4.5rem
}

.avatar-lg {
    height: 6rem;
    width: 6rem
}

.avatar-xl {
    height: 7.5rem;
    width: 7.5rem
}

.avatar-title {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    background-color: #536de6;
    color: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-weight: 600;
    height: 100%;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%
}

.drive-explorer-item:hover {
    background: #e6e9eb;
}

.drive-explorer-item {
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.events-type-icon {
    border-radius: 50% !important;
    height: 2em;
    width: 2em;
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    max-width: 100%;
    text-align: center;
}

.main-grid-special-empty {
    min-width: 0 !important;
    cursor: default;
}

@media (max-width: 576px) {
    .dashboard-logo {
        max-height: 10em;
    }
}

/*region timeman*/
.timeman-table-daily-wrapper {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.timeman-table-daily {
    overflow: hidden;
    min-width: 90%;
    border: 0;
    border-spacing: 0;
    background: #eef2f4;
    table-layout: fixed;
    opacity: 1;
    -webkit-transition: opacity 150ms linear;
    -o-transition: opacity 150ms linear;
    transition: opacity 150ms linear;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    transform: none !important;
}

.timeman-table-daily .cell-fixed {
    position: absolute !important;
    left: 0;
    z-index: 1005;
}

.timeman-table-daily .cell-head {
    min-width: 110px;
    height: 38px;
    position: relative;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    vertical-align: middle;
    -webkit-transition: background-color .3s cubic-bezier(.000, .465, .750, .750);
    -o-transition: background-color .3s cubic-bezier(.000, .465, .750, .750);
    transition: background-color .3s cubic-bezier(.000, .465, .750, .750);
    white-space: nowrap;
}

.timeman-table-daily .row-head th {
    padding: 0 9px 0 9px;
    border-bottom: 2px #fff solid;
    background-color: #70b5ff;
}

.timeman-table-daily .row-head th:first-child {
    border-right: 2px solid #edeef0;
    box-sizing: border-box;
}

.timeman-table-daily .row-head th {
    border-right: 1px #e8eaeb solid;
}

.timeman-table-daily .cell-head-today {
    background-color: #3396ff !important;
}

.cell-head-today {
    scroll-margin-top: 10px;
}

.timeman-table-daily .cell-first {
    min-width: 301px;
    width: 301px;
    min-height: 40px;
}

.timeman-table-daily .cell-first span {
    display: flex;
    width: 230px;
    min-height: 40px;
}

.timeman-table-daily .department-row .cell-first {
    min-height: 30px;
}

.timeman-table-daily .department-row .cell-first span {
    min-height: 30px;
}

.timeman-table-daily .row-head {
    border-bottom: 2px #eef2f4 solid;
    background-color: #fff;
}

.timeman-table-daily .cell {
    border-right: 1px #e8eaeb solid;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    border-bottom: 1px #eef2f4 solid;
    background: #fff;
    vertical-align: middle;
    -khtml-user-drag: none;
    -webkit-user-drag: none;
}

.timeman-table-daily .cell:first-child {
    border-right: 2px solid #edeef0;
    box-sizing: border-box;
}

.timeman-table-daily .department-row td {
    padding: 0 0 0 9px;
    background-color: #f6f7f8;
    box-sizing: border-box;
}

/*endregion*/

/*region menu*/
#main-menu-left {
    flex: 0 0 3.5em;
    width: 3.5em;
    min-height: 100vh;
    transition: all 0.3s linear;
    z-index: 4;
}

.main-menu-profile-name {
    max-width: 15em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-profile-name {
    max-width: 30em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-menu-left-wrapper {
    width: 3.5em;
    height: 95%;
    overflow-y: scroll;
    scrollbar-width: none;
    background-color: #343a40 !important;
    transition: width ease-out 150ms, background-color ease-out 150ms;
}

.main-menu-left-wrapper::-webkit-scrollbar {
    width: 0;
}

.main-menu-left-wrapper::-webkit-scrollbar-track {
    background-color: darkgrey;
}

.main-menu-left-wrapper::-webkit-scrollbar-thumb {
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}

#main-menu-left.show .main-menu-left-wrapper {
    width: 15em;
    scrollbar-color: rgba(255, 255, 255, 0.21) transparent;
    scrollbar-width: thin;
}

#main-menu-left.show .main-menu-left-wrapper::-webkit-scrollbar {
    width: 1em;
}

.menu-item-expand {
    display: none;
    background-color: #343a40 !important;
    color: #f8f9fa;
    height: 6vh;
    padding-left: 4em;
    top: 0;
    left: 0;
    z-index: 4;
    border-bottom: 1px solid grey;
    transition: width ease-out 150ms, background-color ease-out 150ms;
}

#main-menu-left.show .menu-item-expand {
    display: flex;
    align-items: center;
    width: 15em;
    position: fixed;
}

#main-menu-header-btn {
    width: 3.5em;
    border-right: 1px solid #6b6b6b80;
}

#header-logo-wrapper {
    margin-left: 3.5em;
}

.main-menu-left-item-wrapper {
    margin-bottom: 0.5rem !important;
    width: 100%;
    text-align: center;
    padding-bottom: .25rem !important;
    padding-top: .25rem !important;
    color: #f8f9fa;
}

.main-menu-left-item-wrapper.active {
    background-color: rgba(255, 255, 255, .1);
    color: #cbd3da;
}

.main-menu-left-item-wrapper:hover {
    background-color: rgba(255, 255, 255, .1);
    color: #cbd3da;
}

.main-menu-left-item {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    text-align: center;
    max-width: 2em;
    overflow: hidden;
    color: #f8f9fa;
    text-decoration: none !important;
    white-space: nowrap;
}

#main-menu-left.show .main-menu-left-item {
    max-width: 100%;
}

#main-menu-left.show .main-menu-left-item-wrapper {
    text-align: unset;
    padding-left: 1em;
}

.main-menu-left-item-wrapper.active .main-menu-left-item {
    color: #cbd3da;
}

.main-menu-left-item-wrapper:hover .main-menu-left-item {
    color: #cbd3da;
}

.main-menu-left-item .menu-item-icon {
    min-width: 2em;
    margin-right: 1em;
}

#main-menu-left.show .main-menu-left-item .menu-item-icon {
    margin-right: 0.5em;
}

.offcanvas-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    max-width: 60vw;
    min-width: 40vw;
    background: #f8f9fa;
    transition: transform 0.3s ease-in-out;
    z-index: 1050;
    transform: translateX(-100%);
}

.offcanvas-container-right {
    right: 0;
    left: unset;
    transform: translateX(100%);
}

.offcanvas-container.show {
    transform: none;
}

.offcanvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offcanvas-body {
    padding: 1rem 0;
}

.close {
    cursor: pointer;
}

.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0;
    display: none;
}

.offcanvas-backdrop.show {
    display: block;
    opacity: .5;
}

.main-menu-right-wrapper {
    height: 95vh;
    border-left: 1px solid #dee2e6;
}

@media (max-width: 768px) {
    .offcanvas-container {
        width: 100%;
        max-width: 100%;
        overflow: auto;
        padding-bottom: 5em;
    }

    .main-menu-right-wrapper {
        height: max-content;
        border-left: none;
        overflow: hidden !important;
    }

    #header-logo-wrapper {
        margin-left: 0.5em;
    }
}

@media (max-width: 576px) {
    .offcanvas-container {
        width: 100%;
        max-width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 992px) {
    .offcanvas-container {
        width: 80%;
        max-width: 80%;
    }
}

@media (min-width: 992px) {
    #main-menu-header-btn {
        position: fixed;
    }
}

/*endregion*/

.p-right {
    right: 0;
}

.p-left-unset {
    left: unset;
}