html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.button-link {
    text-decoration: unset;
}

#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;
    }

.title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 0.625rem;
}

    .title.title-secondary {
        padding-top: 0.313rem;
        padding-bottom: 0;
        color: var(--dx-color-text-secondary, #6c757d);
    }

.title-header-text {
    font-size: 2.5rem;
    line-height: 3rem;
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
}

.title-content-text {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 2.5rem;
    letter-spacing: 0rem;
}

.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.block-content {
    width: 31.25rem;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    max-width: 100%;
}



/*My Stuff*/
.btn-primary {
    background-color: #0c4c90 !important;
    border-color: #0c4c90 !important;
}

    .btn-primary:hover {
        background-color: #1471d4 !important;
        border-color: #0c4c90 !important;
        box-shadow: 0 0 0 0.25rem rgba(12, 76, 144, .25);
    }

    .btn-check:focus + .btn-primary, .btn-primary:focus {
        background-color: #1471d4 !important;
        border-color: #0c4c90 !important;
        box-shadow: 0 0 0 0.25rem rgba(12, 76, 144, .25);
    }

    .btn-check:checked + .btn-primary, .btn-check:active + .btn-primary, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle {
        background-color: #1471d4 !important;
        border-color: #0c4c90 !important;
        box-shadow: 0 0 0 0.25rem rgba(12, 76, 144, .25) !important;
    }

dxbl-input-editor.textbox-editor {
    border: 1px solid #0c4c90;
}

    dxbl-input-editor.textbox-editor:active {
        border-color: #d02030 !important;
        box-shadow: 0 0 0 0.25rem rgba(208, 32, 48, .25) !important;
    }

.dxbl-text-edit {
    --dxbl-text-edit-border-color: #0c4c90;
    /*--dxbl-text-edit-focus-shadow-color: green;  use a fixed value or another variable like \\\`--bs-green\\\`*/
    --dxbl-text-edit-focus-border-color: #d02030;
}

.form-control {
    border: 1px solid #0c4c90;
}

    .form-control:focus {
        border-color: #d02030 !important;
        box-shadow: 0 0 0 0.25rem rgba(208, 32, 48, .25);
    }

.dxbl-listbox-item-selected {
    color: #fff !important;
}

.dxbl-listbox-item-selected::before {
    background-color: #0c4c90 !important;
}

/* My Stuff */
/* DevExpress */
.alt-item > td:not(.dxbl-grid-empty-cell),
.alt-item > td:not(.dxbl-grid-indent-cell) {
    background-color: color-mix(in srgb, #dee2e6, transparent 50%);
}
/* Fluent Themes */
.alt-item {
    --dxbl-grid-row-bg: var(--dxds-color-surface-neutral-subdued-rest);
}

.dxbl-grid {
    height: 522px;
}

.vertical-top {
    vertical-align: top !important;
}

.first-context > div {
    margin-top: 0 !important;
}



.text-white {
    
    color: rgba(255, 255, 255) !important;
}

.pdf-viewer-width {
    width: 100%;
}

.pdf-viewer-height {
    height: 500px;
}

.text-error-small {
    font-size: 1rem;
    /*line-height: 3rem;*/
    font-weight: 600;
    letter-spacing: 0rem;
    padding: 0.3125rem 0;
    color: red;
}

/* --- Bootstrap-Free Main Layout Structure --- */
.portal-header {
    display: flex;
    align-items: center;
    padding: 5px 20px;
    background-color: #0c4c90 !important;
    color: #ffffff !important;
    gap: 20px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
    border-bottom-color: #dee2e6;
    margin-bottom: 8px;
}


.header-logo-container img {
    height: 80px; /* Slightly scaled down for tighter top bars, change to 100px if preferred */
    width: auto;
    border: none;
    display: block;
}

.header-title-container span {
    font-size: 1.75rem;
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
}

.main-body-content {
    padding: 1.5rem;
}

/* Responsive adjustment for mobile viewports */
@media (max-width: 576px) {
    .portal-header {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 15px 10px;
    }

    .header-title-container span {
        font-size: 1.4rem;
    }
}

.featured-text-box {
    /* Alignment */
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    /* Theme-matching visuals */
    background-color: var(--dx-theme-background-color, #f3f3f3);
    border: 1px solid var(--dx-theme-border-color, #e0e0e0);
    border-radius: 8px;
    color: var(--dx-theme-text-color, #323130);
    /* Subtle depth */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   CUSTOM PDF/REPORT VIEWER TOOLBAR ICONS (WARNING-FREE SHORTHAND)
   ========================================================================== */

.custom-toolbar-fullscreen {
    /* 1. Shorthand combines image, position, repeat, and scale cleanly */
    -webkit-mask: url('/images/fullscreen.svg') center / 100% no-repeat;
    mask: url('/images/fullscreen.svg') center / 100% no-repeat;
    background-color: currentColor;
    display: inline-block;
    width: 16px;
    height: 16px;
}

.custom-toolbar-close {
    /* 2. Shorthand applied identically here clears the unknown size warnings */
    -webkit-mask: url('/images/close.svg') center / 100% no-repeat;
    mask: url('/images/close.svg') center / 100% no-repeat;
    background-color: currentColor;
    display: inline-block;
    width: 16px;
    height: 16px;
}

/* -------------------------------------------------------------------------------- */

/* Structural horizontal centering wrapper */
.home-banner-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 2rem 0;
}

/* Card blueprint layout configuration */
.fluent-text-card {
    text-align: left;
    padding: 24px;
    border-radius: 8px;
    max-width: 600px;
    width: calc(100% - 32px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    color: inherit; /* Natively inherits whatever font color your <h3>/theme uses */
    /* The smooth transition effect when toggling */
    transition: background-color 0.25s ease-in-out, border-color 0.25s ease-in-out;
}

/* --- THEME COUPLING VIA YOUR EXISTING INTEROP UTILITIES --- */

/* Triggers when themeInterop sets data-ambient-theme="light" */
html[data-ambient-theme="light"] .fluent-text-card {
    background-color: #f0f6ff !important;
    border: 1px solid #ccdfff !important;
}

/* Triggers when themeInterop sets data-ambient-theme="dark" */
html[data-ambient-theme="dark"] .fluent-text-card {
    background-color: #2d2d30 !important;
    border: 1px solid #434346 !important;
}

/* Card typography constraints */
.fluent-text-card p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.6;
}

.portal-alert-box {
    background-color: #fff3cd; /* Light warning yellow */
    border: 1px solid #ffeeba;
    color: #856404; /* Dark warning text */
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

/* Dark Mode support for the alert */
[data-fluent-darkmode] .portal-alert-box {
    background-color: #332701;
    border-color: #664d03;
    color: #ffda6a;
}

.portal-alert-box i {
    width: 24px;
    height: 24px;
}

.custom-combo-body,
.custom-combo-body .dxbl-list-box-render-container,
.custom-combo-body .dxbl-listbox {
    max-height: 355px !important;
    height: auto !important;
}


/* Core sizing rule applied directly to the custom class */
.icon-password-show,
.icon-password-hide {
    width: 16px !important;
    height: 16px !important;
    display: inline-block;
    vertical-align: middle;
}

/* Pseudo-element configuration to load the SVG and prevent collapsing */
.icon-password-show::before,
.icon-password-hide::before {
    content: " "; /* Forces the element to take up physical layout space */
    color: transparent;
    display: inline-block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Specific file path bindings */
.icon-password-show::before {
    background-image: url('/images/eye-open.svg');
}

.icon-password-hide::before {
    background-image: url('/images/eye-close.svg');
}

/* Base alert style */
.alert {
    position: relative;
    padding: 1rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
}

/* Yellow warning colors */
.alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

/* Padding utility (p-2) */
.p-2 {
    padding: 0.5rem !important;
}

.hide-item-upload .dxbl-upload-file-list-view .dxbl-upload-upload-btn {
    display: none !important;
}

/* DevExpress Fluent Theme Adaptive Status Boxes */
.dx-callout-success {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
/*    background-color: var(--dxds-color-surface-success-subdued-rest);*/
    border: 1px solid var(--dxds-color-border-success-default-rest);
    color: var(--dxds-color-content-success-default-rest);
}

.dx-callout-danger {
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
/*    background-color: var(--dxds-color-surface-danger-subdued-rest);*/
    border: 1px solid var(--dxds-color-border-danger-default-rest);
    color: var(--dxds-color-content-danger-default-rest);
}

.dx-callout-success h4, .dx-callout-danger h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.dx-callout-success p, .dx-callout-danger p {
    margin-bottom: 1rem;
}
