/*#region define root variables*/
:root {
    --primary: #1565c0;
    --secondary: #0077c4;
    --skylux-app-menu-color: #bbd5e6;
    --accent: #ffe17a;
    --scrollbar-thumb-color: #90a4ae;
    --background-color: #f6f6f8;
    --not-production-environment-color: #8b0000;
    --valid-color: #26b050;
    --invalid-color: red;
    --skylux-font-family: "Roboto",  "Helvetica Neue",  Arial,  sans-serif,  -apple-system,  BlinkMacSystemFont !important;
    --mini-width: 48px;
    --midi-width: 68px;
    --header-height: 48px;
}

/*#endregion define root variables*/

/*#region GeneralLayout*/

* { outline: 0; }

html { scroll-behavior: smooth; }

html, body {
    font-family: var(--skylux-font-family);
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    max-height: unset;
    min-height: calc(100vh);
    outline: 0 !important;
}

body {
    font-size: 16px !important;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: hidden;
    scroll-behavior: smooth;
    background: var(--background-color);
    height: calc(100vh);
}

body::-webkit-scrollbar {
    width: 14px; /* width of the entire scrollbar */
}

body::-webkit-scrollbar-track { background: var(--background-color); }

body::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 20px;
    border: 3px solid var(--background-color);
}

.skylux-grid-loading-container .k-loader-container-panel {
    background-color: transparent;
    border: 0px;
}

.skylux-grid-loading-container.k-loader-container {
    width: calc(100% - 68px);
    height: calc(100% - 48px);
    position: fixed;
    top: 48px;
    right: 0px;
    bottom: 0;
    left: 68px;
}

#app { height: 100%; }

.main {
    flex: 1;
    background-color: #f6f6f8 !important;
    padding: 2.5rem 2rem;
    position: relative;
    min-height: calc(100vh - var(--header-height));
}

.top-row {
    background-color: var(--secondary);
    height: var(--header-height);
    position: sticky;
    top: 0;
    z-index: 1;
    left: 0;
    /*padding-right: 1.5rem*/
    ;
    display: flex;
    border-bottom: 5px solid var(--not-production-environment-color);
}

.top-row.paas-production { border-bottom: 5px solid var(--secondary) !important; }

.logo-container {
    min-height: 75px;
    display: flex;
    max-width: 125px;
}

.logo-container:hover { cursor: pointer; }

.logo-container a { padding: 0.375rem; }

h1.app-title {
    display: inline-block;
    font-weight: 500;
    font-family: var(--skylux-font-family);
    -webkit-font-smoothing: antialiased;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0;
    transition: color 500ms ease-out;
    text-transform: uppercase;
    letter-spacing: 1px;
}

h3.page-title {
    color: #3f4353 !important;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.333;
}

h3.subtitle {
    font-weight: 500;
    font-size: 1.2rem;
}

.app-title-container { margin-left: -0.5rem; }

.skylux-logo {
    height: 100% !important;
    width: 100% !important;
}

.main { overflow-y: auto; }

/*#endregion GeneralLayout*/

/*#region Validation*/

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--valid-color); }

.invalid { outline: 1px solid var(--invalid-color); }

.validation-message { color: var(--invalid-color); }

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/*#endregion Validation*/

/*#region Custom General Component Styles*/

.app-user-action-container {
    height: 100%;
    display: flex;
    align-items: center;
    margin-right: 5px;
}

.app-user-action-container > .k-dropdownlist {
    background-color: var(--secondary);
    color: white;
    border: 0;
    height: 100%;
}

.app-user-action-container .k-dropdownlist:hover { background-color: transparent; }

.app-user-action-container > ul { height: 100%; }

.app-top-bar-container {
    justify-content: space-between;
    display: flex;
    align-items: center;
    flex: 1 0 auto;
    z-index: -1;
}

/*#endregion Custom General Component Styles*/

/*#region Telerik style changes*/

.k-window-wrapper {
    min-width: 400px;
    max-width: 90%;
}

.k-drawer-content { overflow-x: auto; }

.drawer-hamburger {
    position: absolute;
    z-index: 2;
}

.k-drawer-item:hover,
.k-drawer-item.k-state-hover,
.k-drawer-item.active { background-color: var(--accent) !important; }

.k-drawer-item.active { font-weight: 500 }

.k-drawer-wrapper { position: fixed; }

.k-drawer-container {
    min-height: calc(100% - var(--header-height));
    max-height: unset;
    height: unset;
}

.k-drawer-items-apps { background-color: var(--skylux-app-menu-color) !important; }

.k-grid .k-command-cell { padding: 5px 24px; }

.k-button-solid-primary:hover {
    background-color: #1565c0;
    border-color: #1565c0;
}

.k-grid-content { overflow-y: auto !important; }

.grid-no-scroll .k-grid-header,
.grid-no-scroll .k-grid-footer {
    padding-right: 0; /* version 2.26 and older requires !important here */
}

.grid-no-scroll .k-grid-header-wrap,
.grid-no-scroll .k-grid-footer-wrap { border-right-width: 0; }

.k-grid-toolbar { justify-content: end !important; }

.k-command-cell > span { display: flex; }

.k-command-cell > span > button { margin-right: 1rem; }

.k-command-cell > span > button:last-child { margin-right: 0rem; }

.k-grid tr.k-alt { background-color: rgba(0, 119, 196, 0.03); }

.k-grid tr.k-detail-row { background-color: rgba(0, 119, 196, 0.05); }

.k-grid tr.k-detail-row .k-detail-cell { padding: 1.5rem 1.5rem 1.5rem 0 }

.k-grid .k-command-cell .k-button {
    box-shadow: none;
    background-color: transparent;
    border: 0;
}

.k-command-cell > span { display: flex; }

.k-grid-table td[role=gridcell] { white-space: nowrap }

.skylux-grid-loading-container .k-loader-container-panel {
    background-color: transparent;
    border: 0px;
}

.skylux-grid.no-toolbar .k-grid-toolbar { display: none; }

::deep .k-grid tr.no-children td.k-hierarchy-cell * { display: none !important; }

::deep .k-grid tr.no-children td.k-hierarchy-cell { pointer-events: none !important; }

.k-grid tr.no-children td.k-hierarchy-cell * { display: none !important; }

.k-grid tr.no-children td.k-hierarchy-cell { pointer-events: none !important; }

.k-window-title, .k-dialog-titlebar, .k-window-titlebar {
    color: #3f4353 !important;
    background-color: var(--accent) !important;
}

.k-notification-group {
    margin-top: calc(3.5rem + 0.5rem); /*Height topbar + margin*/
    z-index: 654321 !important;
    margin-right: calc(17px + 0.5rem);
}

/* Adjust width of the sidebar, more consistent with the office style sidebar */

.k-drawer-mini .k-drawer-wrapper { width: 48px !important; }

.k-drawer-mini.k-drawer-midi .k-drawer-wrapper { width: var(--midi-width) !important; }

.k-drawer-mini.k-drawer-midi.k-drawer-expanded .k-drawer-wrapper { width: unset !important; }

.k-drawer-container .k-drawer-items .k-icon + .k-item-text { text-wrap: initial; }

/* Adjust the padding of the sidebar items after changing the with do center the items*/

.k-drawer-item > div { font-size: 0.6rem; }

.k-drawer-item.k-selected { background-color: var(--accent); }

.k-drawer-container {
    max-height: calc(100% - var(--header-height));
    height: calc(100% - var(--header-height));
}

.k-drawer-content, .main {
    max-height: calc(100vh - var(--header-height));
    height: calc(100vh - var(--header-height));
}

.k-drawer-item > div > div {
    white-space: pre-wrap;
    max-width: 68px;
    text-overflow: ellipsis;
    overflow: hidden;
    padding: 2px;
    text-align: center;
}

/*#endregion Telerik style changes*/

/*#region topbar dropdown actions*/

.login-dropdown-menu li .k-menu-link { color: white }

a.login-url, a.login-url:hover, a.login-url:active {
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    white-space: nowrap;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
}

span.culture-dropdown span.k-input-inner > span {
    display: flex;
    align-items: center;
}

span.culture-dropdown span.k-input-inner > span > span { margin-right: 0.5rem; }

/* remove arrows */

.login-dropdown-menu > li .k-menu-expand-arrow { display: none; }

.culture-dropdown button { display: none; }

/*#endregion topbar dropdown actions*/

/* #region fix zindex grid/gridIcons*/

.k-grid {
    position: relative;
    z-index: 0;
}

/* #endregion fix zindex grid/gridIcons*/

.skylux-grid-container { position: relative; }

/* #region drawer item */

.k-drawer-item {
    transition: 350ms background-color ease-in-out !important;
    padding: 6px 16px;
}

.k-drawer-item:hover:not(.active), .k-drawer-item.k-state-hover { background-color: #e7f5ff !important; }

.k-drawer { box-sizing: content-box; }

.k-drawer-push.k-drawer-mini .k-drawer { width: var(--mini-width) !important; }

.k-drawer-push.k-drawer-midi .k-drawer { width: var(--midi-width) !important; }

.k-drawer-push.k-drawer-expanded .k-drawer { width: 240px !important; }

.k-drawer-push.k-drawer-mini.k-drawer-midi .k-drawer-item {
    flex-direction: column;
    padding: 2px;
}

.k-drawer-push.k-drawer-mini.k-drawer-midi .k-drawer-item .k-item-text { font-size: x-small; }

.k-drawer-container .k-drawer-items .k-icon {
    color: var(--primary);
    font-size: larger;
}

.k-drawer-container.k-drawer-push.k-drawer-mini.k-drawer-midi .k-drawer-items .k-icon {
    font-size: x-large;
    align-self: center;
}

.k-drawer-container.k-drawer-push.k-drawer-mini.k-drawer-midi .k-drawer-items .k-item-text {
    padding: unset;
    text-align: center;
}

.k-drawer-items, .k-drawer-items ul {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--background-color);
}

/* #endregion drawer item */

/* #region loader */

.skylux-loader {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    opacity: 0;
    justify-content: center;
    align-items: center;
    z-index: 1;
    background: rgb(255 255 255 / 65%);
    transition: 300ms opacity ease-out, visibility 0s linear 300ms;
    visibility: hidden;
}

.skylux-loader.show {
    height: 100%;
    opacity: 1;
    visibility: visible;
}

.skylux-loader__body span {
    color: var(--primary);
    font-weight: 500;
    font-size: 1.25rem;
}

.skylux-loader__body {
    justify-content: center;
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
}

/* #endregion loader */

.more-apps-container {
    align-self: center;
    margin-top: auto;
}

/** Menu drawer*/

.k-drawer-items {
    height: calc(100vh - var(--header-height));
    background-color: white;
}

.k-drawer-item-disabled {
    pointer-events: none;
    opacity: 0.6;
}

.k-grid-content, .k-grid-container {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb-color) var(--background-color);
}

.k-grid-content::-webkit-scrollbar { width: 14px; }

.k-grid-content::-webkit-scrollbar-track { background: var(--background-color); }

.k-grid-content::-webkit-scrollbar-thumb {
    background-color: var(--scrollbar-thumb-color);
    border-radius: 20px;
    border: 3px solid var(--background-color);
}

/**  GRID*/

.k-grid .k-command-cell { padding: 5px 24px; }

.k-command-cell > span { display: flex; }

.k-command-cell > span > button { margin-right: 1rem; }

.k-command-cell > span > button:last-child { margin-right: 0rem; }

.k-grid tr.k-alt { background-color: rgba(0, 119, 196, 0.03); }

.k-grid tr.k-detail-row { background-color: rgba(0, 119, 196, 0.05); }

.k-grid tr.k-detail-row .k-detail-cell { padding: 1.5rem 1.5rem 1.5rem 0 }

.k-grid .k-command-cell .k-button {
    box-shadow: none;
    background-color: transparent;
    border: 0;
}

.greeting > p { margin-bottom: 0; }

.k-grid tr.no-children td.k-hierarchy-cell * { display: none !important; }

.k-grid tr.no-children td.k-hierarchy-cell { pointer-events: none !important; }

.skylux-grid-container { position: relative; }

.app-version {
    color: var(--bs-gray);
    position: fixed;
    width: 100%;
    top: calc(100% - 18px);
    right: 18px;
    z-index: 999;
    font-weight: lighter;
    font-size: 0.7rem;
    text-align: right;
}

.app-version span:first-child { font-weight: bold; }

.appMenuButton {
    border: 0;
    color: white;
    margin: 3px 0px 3px 5px;
}

.appMenuButton.expanded {
    transform: rotate(90deg);
    -webkit-transition: transform 300ms ease-in-out;
}

.appSwitchButton {
    border: 0;
    margin: 5px;
}

.appSwitchButton-small {
    border: 0;
    margin: 2px;
    column-gap: 0;
    font-size: larger;
}

.global-menu-container {
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.global-menu-container > button {
    background-color: transparent;
    color: white;
    border: 0;
    box-shadow: none;
    border-radius: unset;
    width: 68px;
    height: 48px;
    line-height: 48px;
}

.global-menu-container > button:hover {
    background-color: var(--secondary);
    color: white;
    border: 0;
    box-shadow: none;
    border-radius: unset;
}

.global-menu-container nav.global-menu-navigation {
    position: fixed;
    /*top: 48px;*/
    left: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
}

.global-menu-container.isExpanded nav.global-menu-navigation {
    position: fixed;
    box-shadow: rgb(0 0 0 / 22%) 0px 25.6px 57.6px 0px, rgb(0 0 0 / 18%) 0px 4.8px 14.4px 0px;
    -webkit-animation-name: slideInFrames;
    animation-name: slideInFrames;
    background-color: #fff;
    width: 320px;
    min-width: 320px;
    max-width: 320px;
    box-sizing: border-box;
    outline: none;
    overflow-y: auto;
    visibility: visible;
    pointer-events: auto;
    top: 0;
    left: 0;
    height: 100vh;
    -webkit-transform-origin: top left;
    -ms-transform-origin: top left;
    transform-origin: top left;
    -webkit-animation-duration: .18s;
    animation-duration: .18s;
    -webkit-animation-timing-function: ease;
    animation-timing-function: ease;
}

.global-menu-container.isExpanded button.global-menu-button {
    z-index: 2;
    position: relative;
    color: black;
    background-color: #f6f6f8;
}

.global-menu-container.isExpanded button.global-menu-button:hover,
.global-menu-container.isExpanded button.global-menu-button:active,
.global-menu-container.isExpanded button.global-menu-button:focus {
    background-color: #f6f6f8 !important;
    box-shadow: unset !important;
}

@keyframes slideInFrames {
    from {
        visibility: hidden;
        opacity: 0;
        height: 0;
    }

    to {
        visibility: visible;
        opacity: 1;
        height: 100vh;
    }
}

.global-menu__inner { margin: 5.5rem 1rem 20px 1rem; }

.global-menu--title {
    color: #252423;
    font-weight: 500;
    font-size: 1.375rem;
    display: inline-block;
    padding: 0;
}

.global-menu--items {
    margin-top: 1.75rem;
    display: grid;
    grid-template-columns: 1fr;
    padding-left: 0;
}

.global-menu--items li {
    display: flex;
    position: relative;
    box-sizing: border-box;
    border: 1px solid transparent !important;
    height: 48px;
    line-height: normal;
    text-decoration: none !important;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    transition: border-color 83ms linear, box-shadow 83ms linear;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 0.5rem;
}

.global-menu--items li:hover {
    border-color: #f4f4f4 !important;
    box-shadow: 0 8px 16px 0 rgb(0 0 0 / 10%);
    transition: border-color .167s linear, box-shadow .167s linear;
}

.global-menu-container.isExpanded h1.app-title {
    position: relative;
    color: black;
    z-index: 1
}

.application-item-container {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    flex: 1 0 auto;
}

.application-item-container a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.application-item-container a:hover { text-decoration: none; }

.application-item-container .active { background-color: var(--accent); }

.application-item--image {
    width: 30px;
    margin-right: 0.5rem;
}

.application-item--image img {
    max-height: 26px;
    max-width: 26px;
}

.application-item--link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0.5rem;
}

.k-pager-numbers .k-state-selected { z-index: unset !important; }

.global-menu-container .global-menu__inner {
    opacity: 0;
    transform: translateX(-1rem);
    transition: opacity 400ms ease-in-out, transform 350ms ease-in-out;
}

.global-menu-container.isExpanded .global-menu__inner {
    opacity: 1;
    transform: translateX(0);
}

.application-item--text { color: black; }

.link-disabled { color: gray; }

.link-disabled .application-item--image {
    filter: gray;
    -webkit-filter: grayscale(100%);
}

span.culture-dropdown span.k-input-inner > span {
    display: flex;
    align-items: center;
}

span.culture-dropdown span.k-input-inner > span > span { margin-right: 0.5rem; }

.culture-dropdown button { display: none; }

.circular_image {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    display: inline-block;
    vertical-align: middle;
}

.circular_image.large {
    width: 64px;
    height: 64px;
    margin: 10px;
}

.circular_image img { width: 100%; }

.circular_image_initials {
    min-width: 32px;
    min-height: 32px;
    border-radius: 50%;
    background-color: yellowgreen;
    display: inline-block;
    vertical-align: middle;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
}

.circular_image_initials.large {
    width: 64px;
    height: 64px;
    margin: 10px;
}

.menu-info-user { display: flex }

.menu-info-user .username {
    margin-top: 15px;
    margin-left: 5px;
}

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after { content: var(--blazor-load-percentage-text, "Loading"); }

.k-input-md .k-input-inner, .k-picker-md .k-input-inner { padding: 8px 5px !important; }

.horizontal-separator {
    display: inline-block;
    width: 100%;
}

.horizontal-separator::before {
    position: absolute;
    width: 100%;
    height: 100%;
    border-top: 1px solid lightgray;
    content: " ";
}