html, body {
    height: 100%;
}

app {
    display: block;
    height: 100%;
}

.header-logo {
    background-image: url('../images/Logo.png');
    width: 180px;
    height: 24px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.header {
    z-index: auto !important
}

.settings-bar {
    z-index: 900 !important;
}


.loading-image {
    width: 60%;
    height: auto;
}

#blazor-error-ui {
    background: inherit;
    bottom: 0;
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 100001;
}

:-webkit-full-screen {
    background: #fff;
}

/* This sets the height of the root list views to be the screen height less 80 pixels so headers/footers remain visible and the content scrolls */
.HMRootListViewGrid {
    height: calc(100vh - 170px) !important;
}

/* This sets the height of the advanced list view results grid */
.AdvancedQueryResultsGrid {
    height: calc(100vh - 380px) !important;
}

/*
.PdfViewer {
    width: -webkit-fill-available;
}
*/

.custom-drop-zone {
    padding: 0 !important;
    border-style: dashed;
    border-width: 2px !important;
    height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(183, 183, 183, 0.1);
}

    .custom-drop-zone.custom-drop-zone-hover {
        border-style: solid;
    }

    .custom-drop-zone svg {
        width: 42px;
        height: 42px;
    }

    .custom-drop-zone > *:not(#overviewDemoSelectButton) {
        pointer-events: none;
    }

.SizeableLogonWindow {
    width: 50%;
    max-width: 80%;
    min-width: 320px;
}


/* Sets the default height of the Rich Text Editor on Letter Templates */
.HMRichTextEditor {
    width: -webkit-fill-available;
}


/* Sets the default height of the Rich Text Editor on Letter Templates when editing not in full screen
.LetterEditorForm .HMRichTextEditor {
    top: 0px !important;
}
 */

/* BUT - we don't want this where the control is part of a form, only when it's in full screen mode 
.dxbl-fl-ctrl .HMRichTextEditor.dxreRoot.card {
    top: 0px !important;
}
*/

.wizardTabs .dxbl-tabs-tablist.dxbl-tabs-tablist-scrollable {
    display: none !important;
}


/* This is the highlight used on survey header lines */
.SurveyHeaderRow {
    background: linear-gradient(to right, rgba(0, 170, 168), rgba(255,255,255));
    color: white;
    background: -webkit-linear-gradient(right, #FFFFFF 0%, #00AAA7 100%);
}

/* This is to hide tabs on Wizard style forms */
.wizardTabs .dxtc-wrapper {
    display: none !important;
}

/* This is to hide the tabs on the Web Application form */
.AutoLoginUser .dxbl-tabs-tablist {
    display: none !important;
}

/* This is the background for the Ledger Warning on batches*/
.LedgerWarning {
    background-color: rgb(255, 192, 192);
}

/*.xaf-mdi.dxbl-tabs .dxbl-tabs-item {
    padding: var(--dxbl-tabs-tab-padding-y) var(--dxbl-tabs-tab-padding-x);
    position: relative;
}*/

/* This formats the loading wheel as required */
.xaf-loading-content {
    background-color: white !important;
}

    .xaf-loading-content.text-primary {
        color: var(--bs-primary) !important;
    }

.loading-image-wrapper {
    width: 120px;
    height: 120px;
    background-color: white !important;
}



/* These entries format the MDI tabs */
/*.xaf-mdi.dxbl-tabs .dxbl-tabs-item .tab-item {
    display: inline-flex;
    align-items: center;
    user-select: none;
    cursor: default;
}

.xaf-mdi.dxbl-tabs .dxbl-tabs-item.dxbl-active::after {
    content: "";
    position: absolute;
    background-color: var(--dxbl-tabs-tab-selected-color);
    height: 2px;
    left: -1px;
    right: -1px;
    bottom: 0;
}

.xaf-mdi.dxbl-tabs .dxbl-tabs-item .tab-item .close {
    cursor: pointer;
    margin-left: 6px;
    opacity: 0.3;
    transition: opacity 0.15s;
}

.xaf-mdi.dxbl-tabs .dxbl-tabs-item .tab-item .close:hover {
    opacity: 1;
}

.xaf-mdi.dxbl-tabs .dxbl-tabs-item .tab-item .close.hide {
    display: none;
}*/

/*.xaf-mdi.dxbl-tabs .dxbl-tabs-item .tab-item .close .xaf-image {
    display: block;
    vertical-align: middle;
}*/

/* This centers column headers where required */
.header-align-right span:first-child {
    width: 100%;
    text-align: center;
}

.dxbl-row .HMWizardPopup {
    height: 70vh;
}

.dxbl-fl-group .HMWizardPopup {
    height: 80%;
}

.dxbl-group .HMWizardPopup {
    height: 65vh;
}

.dxbl-toolbar-dropdown-item-list {
    max-height: 500px;
    overflow-y: auto;
    scrollbar-color: rgb(0, 178, 169) rgb(230, 230, 230);
    scrollbar-width: thin;
}

.drop-file-icon {
    background-size: contain;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    background-position: center center;
    background-color: currentColor;
    width: 42px;
    height: 42px;
    -webkit-mask-image: url(../images/DropFile.svg);
    mask-image: url(../images/DropFile.svg);
}

.custom-center {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: stretch;
    justify-content: space-around;
    align-items: center;
}
