@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    /* Radzen takes over control of font size with var(--rz-body-font-size), so the line below has no effect. */
    /* font-size: var(--ov-font-size); */
}

#ov-body-container {
    padding: 28px 62px 24px 62px;
}

.offcanvas.offcanvas-end {
    width: 50%;
    transition: transform .3s ease-in-out, visibility .3s linear, opacity .3s ease-in-out;
}

    /* Support smooth close by applying a temporary closing state instead of removing element immediately */
    .offcanvas.offcanvas-end.closing {
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
    }

    /* Ensure base (hidden) state prior to first open */
    .offcanvas.offcanvas-end:not(.show):not(.closing) {
        transform: translateX(100%);
        visibility: hidden;
    }

@media (width < 850px) {
    #ov-body-container {
        padding: 28px 16px 24px 16px;
    }
}

.rz-header {
    z-index: 3 !important;
    box-shadow: none !important;
}

/* Override default 300px to 375 for sidebar for (quote) builder page */
div.ov-nested-layout > div.rz-layout > .rz-sidebar-expanded {
    width: 375px;
}

.footer {
    padding-left: 10px;
    padding-top: 0px;
    margin-bottom: 0px;
    margin-top: 2px;
}

.e-contextmenu-container {
    z-index: 2000 !important;
}

.e-menu-container .e-menu-item {
    font-weight: 400;
}

.e-upload-drag-hover {
    outline: solid 2px var(--ov-primary) !important;
}

.e-richtexteditor {
    min-height: 300px !important;
    max-height: 300px !important;
}

/* Text selection highlight */
input.e-input::selection,
textarea.e-input::selection,
.e-input-group input.e-input::selection,
.e-input-group.e-control-wrapper input.e-input::selection,
.e-float-input input::selection,
.e-float-input.e-control-wrapper input::selection,
.e-input-group textarea.e-input::selection,
.e-input-group.e-control-wrapper textarea.e-input::selection,
.e-float-input textarea::selection,
.e-float-input.e-control-wrapper textarea::selection,
.e-float-input.e-small textarea::selection,
.e-float-input textarea::selection {
    background: var(--ov-selection);
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: var(--ov-link);
}

.btn-primary {
    color: var(--ov-white);
    background-color: var(--ov-primary);
    border-color: var(--ov-glow);
}

.OVButton {
}

.content {
    padding-top: 1.1rem;
    padding-bottom: 60px;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--ov-success);
}

.invalid {
    outline: 1px solid var(--ov-danger);
}

.validation-message {
    color: var(--ov-danger);
}

#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;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDg2Ni4wMTgzIDI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODc7ODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Manual fix for Syncfusion menu not always closing */
.ov-hide-sf-menu {
    display: none;
}

/*
    Radzen

    Make controls a little more compact, closer to Syncfusion, unify appearance.
*/

.rz-dropdown {
    padding: 0 !important;
}

    .rz-dropdown .rz-dropdown-label {
        margin: auto 0 !important;
        padding-left: 0 !important;
        text-indent: 11px !important; /* Match Syncfusion indent. */
        text-align: left !important;
    }

.rz-dropdown-list {
    padding: 0 !important;
}

.rz-dropdown-item {
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 16px !important;
    text-indent: 12px !important; /* Match Syncfusion indent. */
    line-height: 2.2 !important; /* Match Syncfusion input height, but also adjust with font size. */
    min-height: 2.2em !important; /* Match Syncfusion input height, but also adjust with font size. */
    height: inherit !important;
}

.rz-splitbutton-menu.rz-popup {
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
}

.rz-menu-list {
    padding: 0 !important;
    border-top-left-radius: 4px !important;
    border-top-right-radius: 4px !important;
    border-bottom-left-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    box-shadow: var(--rz-dropdown-panel-shadow) !important;
}

.rz-menuitem {
    padding-left: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 16px !important;
    text-indent: 12px !important; /* Match Syncfusion indent. */
    line-height: 2.2 !important; /* Match Syncfusion input height, but also adjust with font size. */
    min-height: 2.2em !important; /* Match Syncfusion input height, but also adjust with font size. */
    height: inherit !important;
}

    .rz-menuitem:first-child {
        border-top-left-radius: 4px !important;
        border-top-right-radius: 4px !important;
        border-bottom-left-radius: 0 !important;
        border-bottom-right-radius: 0 !important;
    }

    .rz-menuitem:last-child {
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        border-bottom-left-radius: 4px !important;
        border-bottom-right-radius: 4px !important;
    }

/* Add Alternating Row Style */
.e-grid .e-altrow {
    background-color: var(--ov-grid-row-alt);
}

/* Only override OK button color for column chooser dialog, leaving all other dialogs unaffected. */

.e-footer-content .e-btn.e-primary.e-ccdlg.e-flat:not([DISABLED]) {
    background: var(--ov-link);
    border-color: var(--ov-link);
}

.e-footer-content .e-btn:hover.e-primary.e-ccdlg.e-flat:not([DISABLED]) {
    background: var(--ov-link-dark);
    border-color: var(--ov-link-dark);
}

.e-footer-content .e-btn.e-primary.e-ccdlg.e-flat:not([DISABLED]):focus-visible,
.e-footer-content .e-btn.e-primary.e-ccdlg.e-flat:not([DISABLED]):focus,
.e-footer-content .e-btn.e-primary.e-ccdlg.e-flat:not([DISABLED]):focus,
.e-footer-content .e-btn.e-ccdlg.e-flat:not([DISABLED]):focus-visible {
    background: var(--ov-link);
    box-shadow: 0 0 0 3px var(--ov-glow);
}

.total-headerless-grid:first-child .ui-datatable-thead .ui-column-title {
    display: none !important;
}

.total-headerless-grid .ui-column-title {
    display: none !important;
}

.misc-headerless-grid .ui-datatable-thead {
    display: none;
}

.image-container:hover .image-large {
    left: 20px;
    top: -150px;
}

.image-large-misc {
    position: absolute;
    left: -9999px;
    border-radius: 4px;
    box-shadow: 1px 1px 3px 3px rgba(127, 127, 127, 0.15);
    opacity: 1;
    z-index: 9999;
}

.image-container:hover .image-large-misc {
    left: 10px;
    top: -50px;
}

.image-container:hover .e-grid, .e-attr {
    z-index: -1;
}

.fs-7 {
    font-size: 0.75rem !important
}

.fs-8 {
    font-size: 0.50rem !important
}

.e-popup {
    box-shadow: var(--rz-dropdown-panel-shadow) !important;
}

/* These styles need to be in the root stylesheet because they pertain to a popup outside the component tree. */

.ov-nested-dropdown.e-menu-container,
.ov-nested-dropdown.e-menu-container ul {
    width: 100% !important;
}

.ov-nested-dropdown.e-contextmenu-container,
.ov-nested-dropdown.e-contextmenu-container ul {
    width: auto !important;
}

.ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item,
.ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item .e-menu-url,
.ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item .e-menu-icon,
.ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item .e-caret {
    background-color: var(--rz-panel-background-color) !important;
    color: var(--ov-sf-listview-text-color) !important;
}

    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-selected,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-active-item,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-focused,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-selected .e-menu-url,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-active-item .e-menu-url,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-focused .e-menu-url,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-selected .e-menu-icon,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-active-item .e-menu-icon,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-focused .e-menu-icon,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-selected .e-caret,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-active-item .e-caret,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-focused .e-caret {
        background-color: var(--ov-sf-listview-item-hover-bg) !important;
        color: var(--ov-sf-listview-text-color) !important;
    }

    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item[data-ov-selected],
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item[data-ov-selected] .e-menu-url,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item[data-ov-selected] .e-menu-icon,
    .ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item[data-ov-selected] .e-caret {
        background-color: var(--ov-dropdown-selection) !important;
        color: var(--ov-dropdown-selection-text) !important;
    }

.ov-nested-dropdown.e-menu-popup ul.e-ul {
    box-shadow: var(--rz-dropdown-panel-shadow) !important;
}

.ov-nested-dropdown {
    display: block !important; /* Get rid of extra padding at the bottom of the box. */
}

/*
    These styles need to be in the root stylesheet because they pertain to a popup outside the component tree.
    Unfortunately, this is Syncfusion's best recommendation for how to change the popup open location.
    It requires fixed-width to work consistently:

    <https://blazor.syncfusion.com/documentation/drop-down-menu/how-to/position-popup>
*/

.ov-grid-dropdown.e-menu-container .e-ul .e-menu-item {
    height: 3.2em !important;
    line-height: 3.2em !important;
    padding: 0 !important;
}

.ov-grid-dropdown .e-caret {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.ov-topbar-settings .e-contextmenu .e-menu-item {
    width: 150px !important;
}

.ov-topbar-help .e-contextmenu .e-menu-item {
    width: 190px !important;
}

.ov-topbar-account .e-contextmenu .e-menu-item {
    width: 150px !important;
}

.ov-topbar-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item[data-ov-selected],
.ov-topbar-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item[data-ov-selected] .e-menu-url,
.ov-topbar-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item[data-ov-selected] .e-menu-icon,
.ov-topbar-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item[data-ov-selected] .e-caret {
    background-color: var(--ov-dropdown-selection) !important;
    color: var(--ov-dropdown-selection-text) !important;
}

.ov-sidebar-toggle {
    position: absolute;
    top: 30px;
    top: calc(30px + (1.2em + 5px + 5px - 36px) / 2);
    width: 36px;
    height: 36px;
    z-index: 1;
    overflow: visible;
}

    .ov-sidebar-toggle .rz-button {
        border-radius: 4px !important;
        background-color: var(--rz-base-background-color) !important;
    }

.ov-sidebar {
    position: relative !important;
    overflow: visible !important;
    z-index: 1 !important;
}

    .ov-sidebar.ov-sidebar-collapsed {
        overflow: hidden !important;
        z-index: 0 !important;
    }

    .ov-sidebar .ov-sidebar-toggle {
        display: none;
        right: -8px;
    }

    .ov-sidebar:hover .ov-sidebar-toggle {
        display: block;
    }

.ov-sidebar-trigger-tray {
    box-shadow: none !important;
    position: absolute;
    height: 100%;
}

    .ov-sidebar-trigger-tray .ov-sidebar-toggle {
        position: relative;
    }

.ov-sidebar-trigger .rz-button {
    transition: box-shadow 0.3s;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
}

.ov-sidebar-trigger:hover .rz-button {
    box-shadow: var(--rz-shadow-8) !important;
    outline: none !important;
    border: none !important;
}

.ov-sidebar-trigger .rz-button-box {
    display: block;
    position: relative;
    left: 11px;
    transition: left 0.3s;
}

.ov-sidebar-trigger:hover .rz-button-box {
    left: 0px;
}

.ov-sidebar-trigger {
    background-color: transparent !important;
    height: 100% !important;
    width: 21px !important;
}

    .ov-sidebar-trigger:hover {
        background-color: transparent !important;
        width: 64px !important;
    }

    .ov-sidebar-trigger .ov-sidebar-trigger-tray {
        transition: box-shadow 0.3s;
        background-color: var(--rz-base-background-color);
        box-shadow: none !important;
        width: 14px !important;
    }

    .ov-sidebar-trigger:hover .ov-sidebar-trigger-tray {
        box-shadow: rgba(0, 0, 0, 0.14) 0px -5px 5px 0px,rgba(0, 0, 0, 0.12) 0px -10px 10px 0px,rgba(0, 0, 0, 0.14) 0px -4px 4px 0px !important;
        width: 14px !important;
    }

    .ov-sidebar-trigger .ov-sidebar-toggle {
        transition: left 0.3s;
        left: -22px !important;
    }

    .ov-sidebar-trigger:hover .ov-sidebar-toggle {
        left: 27px !important;
    }

    .ov-sidebar-trigger .ov-sidebar-toggle-icon,
    .ov-sidebar-trigger .ov-sidebar-toggle-icon2 {
        position: absolute;
        top: 0;
        left: 0;
    }

        .ov-sidebar-trigger .ov-sidebar-toggle-icon .rz-button,
        .ov-sidebar-trigger .ov-sidebar-toggle-icon2 .rz-button {
            padding: 0;
            font-family: Material Symbols;
            font-size: 20px;
            font-weight: 500;
            font-variation-settings: "FILL" 0, "GRAD" 0, "opsz" 40;
        }

    .ov-sidebar-trigger .ov-sidebar-toggle-icon2 {
        transition: opacity 0.3s;
        opacity: 0;
        visibility: hidden;
    }

    .ov-sidebar-trigger:hover .ov-sidebar-toggle-icon2 {
        opacity: 1;
        visibility: visible;
    }

.ov-basic-filter-checkbox .e-label {
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
}

.ov-main-layout.rz-layout,
.ov-main-layout .rz-layout {
    /* Override RadzenLayout to ensure sidebar content scrolls and does not overflow vertically. */
    grid-template-rows: auto fit-content(1fr) auto !important;
}

.ov-nested-layout {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Radzen workaround, doesn't allow selection of item not on list (sometimes needed for value loaded from database) */
.rz-dropdown-item:has(.ov-dropdown-item-hidden) {
    display: none;
}

/* Radzen splitbutton, class to convert to regular dropdown and hide the dropdown part*/
.rz-splitbutton.rz-buttonset.rz-splitbutton-dropdownonly > .rz-splitbutton-menubutton {
    display: none;
}

.rz-splitbutton.rz-buttonset.rz-splitbutton-dropdownonly > .rz-button {
    border-start-end-radius: var(--rz-button-border-radius);
    border-end-end-radius: var(--rz-button-border-radius);
}

@media (width < 1150px) {
    .rz-header {
        transition: height 0.3s;
        padding: 1px 1px 3px 13px !important;
        height: 62px !important;
    }
}

@media (width >= 1150px) {
    .rz-header {
        padding: 10px 58px 34px !important;
        height: 81px !important;
    }
}

.ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item .ov-dropdown-menu-item[data-ov-selected='data-ov-selected'],
.ov-nested-dropdown .e-menu-item.e-menu-item.e-menu-item.e-menu-item.e-menu-item .ov-dropdown-menu-item[data-ov-selected='data-ov-selected'] ~ .e-caret {
    background-color: var(--ov-dropdown-selection) !important;
    color: var(--ov-dropdown-selection-text) !important;
}

.ov-standard-dropdown.ov-dropdown-menu-frame {
    border: 0 !important;
    box-shadow: var(--rz-shadow-3);
}

.ov-standard-dropdown.ov-standard-dropdown.ov-standard-dropdown.ov-standard-dropdown.ov-standard-dropdown .ov-dropdown-menu-item {
    height: 2.6em;
    line-height: 2.6em;
    font-family: var(--ov-text) !important;
    font-size: var(--ov-radzen-font-size) !important;
    font-weight: normal !important;
    color: var(--ov-sf-listview-text-color) !important;
}

.ov-more-options-dropdown.ov-dropdown-menu-frame {
    position: relative;
    top: 0 !important;
    margin-top: 0;
    left: -6px;
}

.ov-quote-tree-item-button-dropdown.ov-dropdown-menu-frame {
    position: relative;
    top: 0 !important;
    margin-top: 4px;
    left: 0;
}

.ov-quote-tree-item-main-dropdown.ov-dropdown-menu-frame {
    position: relative;
    top: 0 !important;
    margin-top: 4px;
    left: 0;
}

/* Radzen tab customization for screen fields, vertical tabs */

.ov-dialog-editor .rz-dialog,
.ov-dialog-editor .rz-dialog-content,
.ov-dialog-editor .rz-dialog-content .container-flex,
.ov-dialog-editor .row {
    height: 100%;
    width: 100%;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.ov-dialog-editor .rz-dialog {
    max-width: 70em;
    position: relative;
}

.ov-dialog-editor .rz-dialog-titlebar,
.ov-dialog-editor .rz-dialog-titlebar .rz-dialog-title {
    height: 3.9em;
    margin: 0;
    padding: 0;
    align-items: center;
    font-size: 1em !important;
    font-weight: bold !important;
    color: var(--ov-form-label-text) !important;
    align-content: center !important;
}

.ov-dialog-editor .rz-dialog-titlebar {
    padding: 0 45px 0 25px;
}

.ov-dialog-editor.ov-dialog-with-topbar .rz-dialog-content {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
}

.ov-dialog-editor .ov-editor-pane-form-title-bar {
    display: none;
}

.ov-dialog-editor.ov-dialog-with-topbar .ov-editor-pane-form-title-bar {
    display: flex;
}

.ov-dialog-editor.rz-dialog-wrapper {
    justify-content: end;
}

/* Confirmation prompt */

.ov-prompt .rz-dialog-content, .rz-dialog-side-content {
    padding: 0;
}

.ov-prompt .rz-dialog {
    display: grid;
    grid-template-rows: min-content 1fr;
    grid-template-areas: 'header' 'content';
}

.ov-prompt .rz-dialog-titlebar {
    grid-area: header;
    padding-inline: 23px;
    padding-block: 23px 0;
}

.ov-prompt .rz-dialog-titlebar-close,
.ov-prompt .rz-dialog-titlebar-close .rzi {
    color: var(--ov-primary);
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
}

.ov-prompt .rz-dialog-titlebar-close {
    display: flex;
    justify-items: start;
    justify-content: start;
    align-items: start;
    align-content: start;
}

.ov-prompt .rz-dialog-title {
    font-size: 16px;
}

.ov-prompt .rz-dialog-content {
    grid-area: content;
}

.ov-prompt .rz-dialog-content .rz-form {
    height: 100%;
}

.ov-screen-form-label,
.ov-screen-form-label .rz-label {
    color: var(--ov-text);
    font-size: 14px;
    font-weight: bold;
}

.ov-screen-form-checkbox {
    font-size: 14px;
}

.ov-screen-form-label-locked {
    font-weight: bold;
}

.ov-screen-form {
    height: 100%;
}

    .ov-screen-form > .rz-tabview, .rz-tabview-title {
        text-transform: none !important;
    }

        .ov-screen-form > .rz-tabview > .rz-tabview-nav {
            background-color: var(--rz-dialog-background-color) !important;
        }

    .ov-screen-form .rz-tabview.rz-tabview-top {
        display: flex !important;
        flex-direction: row !important;
    }

    .ov-screen-form > .rz-tabview,
    .ov-screen-form-wrapper .rz-tabview {
        height: 100% !important;
    }

        .ov-screen-form > .rz-tabview > .rz-tabview-nav {
            height: 100% !important;
            min-width: 16em !important;
            max-width: 16em !important;
            display: flex !important;
            flex-direction: column !important;
            flex-wrap: nowrap !important;
            overflow-y: auto !important;
            overflow-x: hidden !important;
            padding-right: 20px !important;
        }

            .ov-screen-form > .rz-tabview > .rz-tabview-nav .rz-tabview-title {
                letter-spacing: normal !important;
                overflow: hidden !important;
                white-space: nowrap !important;
                text-overflow: ellipsis !important;
            }

            .ov-screen-form > .rz-tabview > .rz-tabview-nav > .rz-tabview-icon {
                margin-right: 10px !important;
            }

            .ov-screen-form > .rz-tabview > .rz-tabview-nav > li {
                border: none !important;
                border-radius: 0 !important;
            }

                .ov-screen-form > .rz-tabview > .rz-tabview-nav > li.ov-screen-form-nav-label {
                    border-radius: 1px !important;
                }

                .ov-screen-form > .rz-tabview > .rz-tabview-nav > li.rz-tabview-selected,
                .ov-screen-form > .rz-tabview > .rz-tabview-nav > .rz-tabview-selected li {
                    border: none !important;
                    background: var(--ov-panel) !important;
                    border-right: 6px solid var(--rz-primary) !important;
                }

        .ov-screen-form > .rz-tabview > .rz-tabview-panels {
            flex: 1 !important;
        }

            .ov-screen-form > .rz-tabview > .rz-tabview-panels > .rz-tabview-panel {
                margin: 0;
                padding: 23px 20px 12px 22px;
            }

    .ov-screen-form .ov-screen-form-nav-label {
        border: none !important;
        border-top: 1px solid var(--ov-edge-soft) !important;
    }

        .ov-screen-form .ov-screen-form-nav-label .rz-tabview-title {
            position: relative !important;
            left: -6px !important;
            font-weight: bold !important;
        }

    .ov-screen-form > .rz-tabview > .rz-tabview-nav,
    .ov-screen-form > .rz-tabview > .rz-tabview-nav li,
    .ov-screen-form > .rz-tabview > .rz-tabview-nav a,
    .ov-screen-form > .rz-tabview > .rz-tabview-nav .rz-tabview-title {
        color: var(--rz-text-color) !important;
        opacity: 1 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .ov-screen-form .ov-screen-form-nav-label,
    .ov-screen-form .ov-screen-form-nav-label li,
    .ov-screen-form .ov-screen-form-nav-label a,
    .ov-screen-form .ov-screen-form-nav-label .rz-tabview-title {
        color: var(--ov-form-label-text) !important;
        opacity: 1 !important;
        cursor: default !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }

    .ov-screen-form > .rz-tabview > .rz-tabview-nav {
        padding: 35px 0 0 0 !important;
    }

        .ov-screen-form > .rz-tabview > .rz-tabview-nav a {
            padding-top: 8px !important;
            padding-bottom: 8px !important;
            padding-left: 9px !important;
            padding-right: 9px !important;
        }

    .ov-screen-form .ov-screen-form-nav-label a {
        padding-top: 10px !important;
        padding-bottom: 2px !important;
    }

    .ov-screen-form .ov-screen-form-nav-label-empty a {
        padding-top: 0px !important;
        padding-bottom: 0 !important;
    }

    .ov-screen-form .ov-screen-form-label,
    .ov-screen-form .ov-screen-form-label .rz-label {
        color: var(--ov-text) !important;
        font-size: 14px !important;
        font-weight: bold !important;
    }

    .ov-screen-form .ov-screen-form-checkbox {
        font-size: 14px !important;
    }

.ov-screen-form-wrapper .ov-screen-form-label-locked {
    font-weight: bold !important;
}

.ov-screen-form-wrapper .e-tab .e-content {
    background: var(--ov-white) !important;
}

.ov-screen-form-wrapper .e-panel-header {
    background-color: rgba(0, 0, 0, .1);
    text-align: left;
}

.ov-screen-form-wrapper .e-tab .e-content {
    border: 1px solid var(--ov-edge-dark);
    border-style: solid;
    padding: 10px;
}

.ov-screen-form-wrapper .e-panel-content {
    text-align: left;
    margin-top: 10px;
    border-style: solid;
    padding: 10px;
}

.ov-screen-form-wrapper .rz-tabview ul[role=tablist] {
    flex-wrap: wrap;
    background-color: var(--ov-panel-soft);
}

.ov-screen-form-wrapper .rz-fieldset-legend {
    font-weight: 700;
}

.ov-screen-form-wrapper .rz-chkbox-box:hover {
    background-color: var(--ov-primary);
}

.ov-screen-form-wrapper .rz-chkbox-box.rz-state-active:hover:not(.rz-state-disabled) {
    background-color: var(--ov-primary);
}

.ov-screen-form-wrapper .OVGB {
    background: var(--ov-panel-soft);
    text-align: start;
}

.ov-screen-form-row {
    margin-bottom: 11px;
    display: flex;
    flex-wrap: wrap;
    column-gap: 18px;
    row-gap: 12px;
}

.ov-screen-form-trailing-space {
    display: none;
}

/* Auto-layout may need padding if it doesn't cover entire row. */
.ov-screen-form-row-stretch .ov-screen-form-trailing-space {
    display: block;
    min-width: 0;
    flex: 1 1 0;
}

/* Fields should not shrink farther than they can be useful. */
.ov-screen-form-row-stretch .ov-screen-form-column {
    min-width: 100px;
}

    /* Extra padding not needed in all scenarios. */
    .ov-screen-form-row-stretch .ov-screen-form-column + .ov-screen-form-column + .ov-screen-form-trailing-space,
    .ov-screen-form-row-stretch .ov-screen-form-column-default + .ov-screen-form-trailing-space,
    .ov-screen-form-row-stretch .ov-screen-form-column-fixed + .ov-screen-form-trailing-space {
        display: none;
    }

/* Extra padding needed in some scenarios. */
.ov-screen-form-row-stretch .ov-screen-form-column-fixed ~ .ov-screen-form-column-fixed ~ .ov-screen-form-trailing-space,
.ov-screen-form-row-stretch .ov-screen-form-column-weighted ~ .ov-screen-form-column-fixed ~ .ov-screen-form-trailing-space,
.ov-screen-form-row-stretch .ov-screen-form-column-weighted ~ .ov-screen-form-column-fixed ~ .ov-screen-form-trailing-space,
.ov-screen-form-row-stretch .ov-screen-form-column-weighted ~ .ov-screen-form-column-weighted ~ .ov-screen-form-trailing-space {
    display: block;
}

/* Extra padding not needed if using "flex 2 2", etc. (not percentage, not fixed). */
.ov-screen-form-row-stretch .ov-screen-form-column-relative ~ .ov-screen-form-trailing-space {
    display: none;
}

/* Extra padding not needed if forcing stretch. */
.ov-screen-form-row-stretch:not(.ov-screen-form-row-automatic) .ov-screen-form-trailing-space {
    display: none !important;
}

/* Stretch all fields by default in most cases. */
.ov-screen-form-row-stretch .ov-screen-form-column-default {
    max-width: none;
    flex: 1 1 0;
}

/* Special case, do not stretch single field per row, set reasonable max width instead. */
.ov-screen-form-row-stretch.ov-screen-form-row-automatic .ov-screen-form-column-default:nth-last-of-type(2) {
    max-width: 225px;
    flex: 1 1 225px;
}

/* Special case, do not stretch single field per row, set reasonable max width instead. */
.ov-screen-form-row-stretch.ov-screen-form-row-automatic .ov-screen-form-column + .ov-screen-form-column-default {
    max-width: none;
    flex: 1 1 0;
}

.ov-screen-form-tab-cards > .rz-tabview > .rz-tabview-panels {
    background-color: var(--ov-panel-soft);
}

    .ov-screen-form-tab-cards > .rz-tabview > .rz-tabview-panels > .rz-tabview-panel:first-of-type {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: transparent;
        padding: 13px 24px 29px 24px;
    }

.ov-screen-form-tab-cards > .rz-tabview > .rz-tabview-nav > li:first-of-type {
    display: none !important;
}

.ov-screen-form-tab-cards > .rz-tabview > .rz-tabview-panels > .rz-tabview-panel ~ .rz-tabview-panel {
    display: none !important;
}

.ov-screen-form-card {
    background-color: var(--rz-dialog-background-color);
    border: 1px solid var(--ov-edge);
    border-radius: 13px;
    margin-top: 20px;
    padding: 22px 22px 0 20px;
}

    .ov-screen-form-card:first-child {
        margin-top: 0;
    }

.ov-screen-form-card-header {
    display: flex;
    width: 100%;
    justify-content: space-between;
    flex-direction: row;
}

    .ov-screen-form-card-header .rzi {
        color: var(--ov-text);
    }

.ov-screen-form-card-title {
    color: var(--rz-text-color);
    font-size: var(--rz-accordion-item-font-size);
    font-weight: bold;
    font-weight: 600;
}

.ov-screen-form-card-header-title {
    display: flex;
    flex: 0 0 auto;
    margin-right: 24px;
}

.ov-screen-form-card-header-content-left {
    flex: 0 0 auto;
    display: flex;
    gap: 20px;
}

.ov-screen-form-card-header-content-gap {
    flex: 1 1 0;
    min-width: 20px;
}

.ov-screen-form-card-header-content-right {
    flex: 0 0 auto;
    display: flex;
    gap: 20px;
}

.ov-hidden {
    display: none;
}

.offcanvas-backdrop:not(.show) {
    display: none;
}
/* Elevate Blazored Toasts above Bootstrap offcanvas (offcanvas=1045, backdrop=1040) */
.blazored-toast-container, .blazored-toast-container * {
    z-index: 1200 !important;
}

.rz-dialog-wrapper {
    z-index: 1200 !important;
}

.rz-button-lg.rz-button-icon-only {
    padding: .75rem .5rem !important;
}

@media(min-width: 768px) {
    .rz-button-lg.rz-button-icon-only {
        padding: .75rem !important;
    }
}

.ov-screen-form-card.rz-accordion-header {
    --rz-accordion-item-padding-block: 16px 16px !important;
    --rz-accordion-item-padding-inline: 16px 16px !important;
}

.ov-screen-form-card.ov-screen-form-card-always-expanded.rz-accordion-header {
    --rz-accordion-item-padding-block: 16px 16px !important;
    --rz-accordion-item-padding-inline: 25px 25px !important;
}

.ov-screen-form-card.ov-screen-form-card-always-expanded > a[role="tab"] {
    cursor: default !important;
}

.ov-screen-form-tab-cards {
    --rz-accordion-content-padding-block: 7px 8px !important;
    --rz-accordion-content-padding-inline: 27px 27px !important;
}

/* When control is used inside card, give it extra padding to ensure attractive display */
.ov-screen-form-card-body > .ov-readonly-columns:last-child {
    margin-bottom: 60px;
}

.ov-readonly-section-header {
    font-weight: 700;
    border-bottom: 1px solid #ccc;
    margin-bottom: 14px;
    padding-bottom: 0.25rem;
    color: var(--ov-text);
}

.ov-readonly-field,
.ov-screen-field {
    margin-top: 1rem;
}

.ov-readonly-field:first-child,
.ov-screen-field:first-child {
    margin-top: 0;
}

:not(.ov-screen-form-row) .ov-screen-field {
    margin-top: 1rem;
}

.ov-readonly-label {
    font-weight: 700;
    color: rgb(97, 100, 107);
    min-width: 120px;
}

.ov-readonly-value {
    color: var(--ov-text);
    word-break: normal;
    overflow-wrap: break-word;
    --rz-input-height: 1.5;
    min-height: calc(1.5 * var(--rz-accordion-content-font-size));
}

.ov-readonly-columns {
    display: flex;
    gap: 48px;
}

.ov-readonly-section {
    max-width: 100%;
    width: 100%;
}

:is(.ov-readonly-section, .ov-readonly-columns) {
    min-width: 0;
}

/* Stretch to fit */
.ov-readonly-columns.ov-columns-stretch-to-fit :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 1 1 0;
}

/* Fixed multi-column display, float left in case of missing columns */
.ov-readonly-columns.ov-columns-1 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 100%;
}

.ov-readonly-columns.ov-columns-2 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (2 - 1)) / 2));
}

.ov-readonly-columns.ov-columns-3 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (3 - 1)) / 3));
}

.ov-readonly-columns.ov-columns-4 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (4 - 1)) / 4));
}

.ov-readonly-columns.ov-columns-5 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (5 - 1)) / 5));
}

.ov-readonly-columns.ov-columns-6 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (6 - 1)) / 6));
}

.ov-readonly-columns.ov-columns-7 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (7 - 1)) / 7));
}

.ov-readonly-columns.ov-columns-8 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (8 - 1)) / 8));
}

.ov-readonly-columns.ov-columns-9 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (9 - 1)) / 9));
}

.ov-readonly-columns.ov-columns-10 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (10 - 1)) / 10));
}

.ov-readonly-columns.ov-columns-11 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (11 - 1)) / 11));
}

.ov-readonly-columns.ov-columns-12 :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 0 0 max(0%, calc((100% - 48px * (12 - 1)) / 12));
}

/* Sections inside column, flow vertically, do not render alongside */
.ov-readonly-columns .ov-readonly-columns {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
}

.ov-readonly-columns :is(.ov-readonly-section, .ov-readonly-columns) {
    flex: 1 1 0;
}

.ov-readonly-horizontal {
    margin-bottom: .5rem;
}

    .ov-readonly-horizontal .ov-readonly-label,
    .ov-readonly-horizontal .ov-readonly-value {
        flex: 1 1 0;
    }

/* Collapse to single column for narrow screens */
@media (width < 915px) {
    .ov-readonly-columns {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap;
    }

    :is(.ov-readonly-section, .ov-readonly-columns) {
        flex: 1 1 0;
    }
}

/* Auto-collapse mode, hide sections with empty bodies */
.ov-readonly-columns.ov-autocollapse .ov-readonly-section:has(.ov-readonly-section-body:empty) {
    display: none;
}

/* Auto-collapse mode, if all descendant sections are empty, hide column */
:is(.ov-readonly-columns.ov-autocollapse, .ov-readonly-columns.ov-autocollapse .ov-readonly-columns):not(:has(.ov-readonly-section-body:not(:empty))) {
    display: none;
}

.offcanvas.ov-address-selector > .offcanvas-body {
    padding-left: 0;
    padding-right: 0;
}

.e-grid {
    border: none !important;
}
    .e-grid .e-gridheader {
        border: none !important;
    }

    .e-grid.e-wrap .e-rowcell {
        white-space: normal;
    }

    .e-grid .e-toolbar,
    .e-grid .e-toolbar .e-toolbar-items {
        background: none !important;
        border: none !important;
    }

    .e-grid .e-headercell,
    .e-grid .e-detailheadercell {
        background: none !important;       
    }

    .e-grid.e-resize-lines .e-headercell .e-rhandler, .e-grid.e-resize-lines .e-headercell .e-rsuppress {
        border-right: none !important;
    }

    .e-grid td.e-active {
        background: var(--ov-hover) !important;
    }

    .e-grid.e-gridhover .e-frozenhover:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover .e-row tr:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover:not(.e-rowdrag) .e-row:not(.e-disable-gridhover):not(.e-editedrow):not(.e-detailrow):hover .e-rowcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-detailrowcollapse:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover:not(.e-rowdrag) .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-rtl .e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-rowdragdrop:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover .e-row.e-addedrow:not(.e-disable-gridhover):not(.e-detailrow):hover .e-dragindentcell:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell), .e-grid.e-gridhover .e-row:not(.e-disable-gridhover):not(.e-detailrow):hover .e-detailrowexpand:not(.e-cellselectionbackground):not(.e-active):not(.e-updatedtd):not(.e-indentcell) {
        background: var(--ov-hover) !important;
    }

.rz-button.rz-variant-outlined {
    border: 1px solid var(--ov-primary) !important;
}

.no-forced-uppercase {
    text-transform: none !important;
}

/* Boostrap overrides */

.form-label {
    font-weight: 600;
    color: var(--ov-form-label-text);
}

.form-check-input {
    font-size: var(--ov-form-check-input-font-size);
}

/* Syncfusion Grid Toolbar */

.e-toolbar-item.e-cc-toolbar {
    visibility: hidden;
    position: absolute;
    left: 282px;
    top: -30px;
}

/*  RadzenDateTimePicker apply primary theme */

.rz-datepicker-popup-container.rz-popup.rz-open
.rz-button.rz-button-md.rz-secondary,
.rz-datepicker-popup-container.rz-popup.rz-open
.rz-state-default.rz-state-active {
    background-color: var(--rz-primary) !important;
    border-color: var(--rz-primary) !important;
    color: var(--rz-primary-contrast) !important;
    color: #fff !important;
}

/* Prev/Next buttons (icon-only) */
.rz-datepicker-popup-container.rz-popup.rz-open
.rz-calendar .rz-calendar-header .rz-button.rz-button-icon-only,
.rz-datepicker-popup-container.rz-popup.rz-open
.rz-calendar .rz-calendar-header .rz-button.rz-button-icon-only:hover {
    background-color: transparent !important;
    border-color: transparent !important;
}

/* Change icon color */
.rz-datepicker-popup-container.rz-popup.rz-open
.rz-calendar .rz-calendar-header .rz-calendar-prev,
.rz-datepicker-popup-container.rz-popup.rz-open
.rz-calendar .rz-calendar-header .rz-calendar-next {
    color: var(--rz-primary) !important;
}

/* Syncfusion Dropdown Button - attempt to match usage/styling of Radzen dropdown */
button.ov-dropdown-button {
    border: 1px solid var(--ov-primary) !important;
    background-color: transparent;
    color: var(--ov-primary);
    padding-left: 22px;
    padding-right: 26px;
    border-radius: var(--rz-border-radius-2) !important
}

.ov-dropdown-button ul.e-dropdown-menu
{
    overflow-y: auto !important;
}

button.ov-dropdown-button.e-active {
    box-shadow: none !important;
    color: var(--ov-primary);
}

button.ov-dropdown-button:hover {
    background-color: var(--rz-secondary-lighter);
    background-image: none;
    color: var(--ov-primary);
}

button.ov-dropdown-button.e-active,
button.ov-dropdown-button:active,
button.ov-dropdown-button:focus {
    background: unset;
    background-color: var(--rz-secondary-lighter);
    background-image: none;
    color: var(--ov-primary);
    box-shadow: none !important;
}

button.ov-dropdown-button > span.e-caret {
    padding-left: 16px;
}

div.ov-dropdown-popup {
    border-radius: 12px;
}

div.ov-dropdown-popup ul {
    border-radius: 12px;
    margin-top: 2px;
    padding: 0;
}

div.ov-dropdown-popup li {
}

.e-dropdown-popup ul .e-menu-item:hover,
.e-dropdown-popup ul .e-menu-item.e-selected {
    background-color: var( --ov-sf-listview-item-hover-bg) !important;
}

.e-dropdown-popup ul .e-menu-item:hover,
.e-dropdown-popup ul .e-menu-item.e-selected,
.e-dropdown-popup ul .e-menu-item.e-selected .e-icons.e-caret,
.e-dropdown-popup ul .e-menu-item span {
    color: unset !important;
}