html, body {
    height: 100%;
}

body {
    margin: 0;
    font-size: var(--DS-font-size-body-1);
    font-family: var(--DS-font-family-sans-serif);
    font-weight: var(--DS-font-weight-body-1);
    line-height: var(--DS-line-height-body-1);
    letter-spacing: var(--DS-letter-spacing-body-1);
    color: var(--DS-color-content-neutral-default-rest);
    background-color: var(--DS-color-surface-neutral-subdued-rest);
}

*, ::after, ::before {
    box-sizing: border-box
}

.site-toolbar {
    margin-bottom: 0.5rem !important;
}
.icon {
    opacity: 0.7;
    background-size: contain;
    mask-repeat: no-repeat;
    mask-position: center center;
    mask-size: 100% 100%;
    background-color: currentColor;
}

.small-size .medium-icon {
    width: 1rem;
    height: 1rem;
}

.medium-size .medium-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.large-size .medium-icon {
    width: 1.5rem;
    height: 1.5rem;
}

.small-size .avatar {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 0.5rem;
}

.medium-size .avatar {
    width: 2rem;
    height: 2rem;
    margin-left: 0.75rem;
}

.large-size .avatar {
    width: 2.5rem;
    height: 2.5rem;
    margin-left: 1rem;
}



.notification {
    position: relative;
}

    .notification::after {
        content: attr(notification-count) / "";
        color: white;
        display: flex;
        position: absolute;
        top: 0;
        left: 5%;
        font-size: 0.8em;
        width: 1.2em;
        height: 1.2em;
        border-radius: 50%;
        background-color: red;
        align-items: center;
        justify-content: center;
    }

.dropdown-no-padding {
    --dxbl-dropdown-body-padding-x: 0;
    --dxbl-dropdown-body-padding-y: 0;
}

@media (min-width: 899.98px) {
    .pw-800 {
        max-width: 800px !important;
        width: 800px !important;
    }
}

.loading-panel {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .loading-panel > .loader {
        display: flex;
        align-items: center;
    }

        .loading-panel > .loader > .spinner {
            width: 2rem;
            height: 2rem;
            border: 0.25rem solid color-mix(in sRGB, var(--DS-color-surface-primary-default-rest) 30%, transparent);
            border-bottom-color: var(--DS-color-surface-primary-default-rest);
            border-radius: 50%;
            display: inline-block;
            box-sizing: border-box;
            animation: rotation 0.75s linear infinite;
        }

        .loading-panel > .loader > .label {
            color: var(--DS-color-content-neutral-default-rest);
            font-size: var(--DS-font-size-subtitle-2);
            font-weight: var(--DS-font-weight-subtitle-2);
            margin-left: 0.75rem;
        }

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.document-search {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.document-search-input-pair {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    margin-right: 10px
}

.document-search-item {
    margin-right: 1rem !important;
    flex-grow: 1;
}

.document-search-button {
    margin-top: 20px;
}

.display-page-field {
}

.dxbl-upload-button-panel .dxbl-upload-cancel-btn span {
    display: none;
}

.dxbl-upload-button-panel .dxbl-upload-cancel-btn::after {
    content: "remove unmatched files";
    margin-left: var(--dxbl-btn-image-spacing);
}

.csp-grid {
    height: 100%;
}

/* for vertical scrollbar */
.dxbl-scroll-viewer > .dxbl-scroll-viewer-vert-scroll-bar > .dxbl-scroll-viewer-scroll-thumb {
    --dxbl-scroll-viewer-vert-scroll-bar-hover-width: 15px;
    --dxbl-scroll-viewer-vert-scroll-bar-width: 15px;
    background-color: var(--bs-primary); /* uses the primary color used in the theme */
}

/* for horizontal scrollbar */
.dxbl-scroll-viewer > .dxbl-scroll-viewer-hor-scroll-bar > .dxbl-scroll-viewer-scroll-thumb {
    --dxbl-scroll-viewer-hor-scroll-bar-height: 15px;
    --dxbl-scroll-viewer-hor-scroll-bar-hover-height: 15px;
    background-color: var(--bs-primary); /* uses the primary color used in the theme */
}

/* for read-only text edits */
.dxbl-text-edit[is-read-only] > .dxbl-text-edit-input {
    background-color: #d3d3d294 !important;
}

/* dashboard tile card as clickable link */
a.dashboard-tile-card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.dashboard-tile-card--link:hover {
    opacity: 0.85;
    text-decoration: none;
    color: inherit;
}

/* ghost toolbar button – transparent by default, light grey on hover */
.btn-ghost.dxbl-btn {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.btn-ghost.dxbl-btn:hover {
    background-color: #e9ecef !important;
    border-color: transparent !important;
}

