html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
    position: relative;
    min-height: 100%;
}

body {
    height: 100vh;
}

.flex-container {
    display: flex;
    flex-direction: column;
}

.drawer {
    height: calc(100vh - 58px);
}

.toolbar {
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.12), 0 2px 2px 0 rgba(0, 0, 0, 0.08);
    padding: 5px 10px;
    z-index: 1500;
}

.dx-drawer-panel-content {
    box-shadow: 2px 0 8px 0 rgba(0, 0, 0, 0.12), 2px 0 2px 0 rgba(0, 0, 0, 0.08);
    z-index: 1000;
}

.dx-list-item {
    border-top: none !important;
}

.dx-list-group-header {
    border-bottom: none !important;
}

/* Uncomment to place collapse icons to the right side of panel */
/* 
.dx-treeview .dx-treeview-toggle-item-visibility {
    position: absolute;
    right: 10px;
    left: auto;
}

.dx-treeview .dx-treeview-expander-icon-stub {
    position: absolute;
    right: 10px;
    left: auto;
}
*/

/* Hiding item icon stub as we use custom item layout */
.dx-treeview .dx-treeview-expander-icon-stub {
    display: none;
}

.item-level-0 {
    font-weight: bold;
}

li.dx-treeview-node:not(.dx-treeview-root-node):has(.item-level-1) {
    padding-inline-start: 30px;
}


.dx-treeview-item.dx-state-hover {
    background-color: #e4e4e4 !important;
}

.dx-tabpanel .dx-multiview-item-content {
    padding: 8px !important;
}

.panel-list {
    height: 100vh;
    padding-top: 12px;
}

#content {
    padding: 0 24px;
}

#identity-menu {
    min-width: 12em;
}

#identity-menu .dx-button-content {
    align-items: end;
    justify-content: end;
}

.form-header {
    font-size: 1.5rem;
    padding-top: 8px;
}

.form-sub-header {
    font-size: 1rem;
}


.center-box {
    width: 100vw;
    height: calc(100vh - 58px);
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

/*  Adjust Identitty pages controls. Remove if they rebuilded with DevExpress controls */
.identity-form > * {
    margin: 8px 0px;
}

/* Navigation colors */
.toolbar-invert-color {
    color: white !important;
}

.toolbar-invert-background {
    background-color: var(--toolbar-color) !important;
}

.toolbar .dx-button-content {
    color: white !important;
}

.toolbar .dx-button-content .dx-icon {
    color: white !important;
}

.dx-treeview-item:has(a.nav-active) {
    background-color: #004eda !important;
}

.dx-treeview-item a.nav-active {
    color: white !important;
}

.toolbar .dx-button-mode-text.dx-state-hover {
    background-color: var(--toolbar-hover-color) !important;
}

.toolbar .dx-button-mode-text.dx-state-focused {
    background-color: var(--toolbar-hover-color) !important;
}

.dx-treeview-item:has(a.nav-link) {
    padding: 0px;
}

.dx-treeview-item a.nav-link {
    padding: 12px;
}