html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Security warning animation for auth bypass banner */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Security warning banner for authentication bypass */
.security-warning-banner {
    background: repeating-linear-gradient(45deg, #dc3545, #dc3545 10px, #b02a37 10px, #b02a37 20px);
    animation: pulse 2s infinite;
    color: white;
    text-align: center;
    margin-bottom: 0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-radius: 0;
    border: none;
    border-bottom: 5px solid #212529;
}
.security-warning-banner h2 {
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.security-warning-banner p {
    font-weight: bold;
    color: white;
    font-size: 1.25rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    margin-bottom: 0;
}
.security-warning-banner .small {
    font-size: 0.95rem;
    font-weight: normal;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRo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ODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.bi::before, [class*=" bi-"]::before, [class^=bi-]::before {
    vertical-align: .75em;
}

/* DecedentProgressBar styles BEGIN*/
/* Common styles */
.progress-container {
    --cool-blue: #28769A;
    --cool-blue-light: #e6f3f9;
    --cool-blue-dark: #1c5d7d;
    --gray-light: #f5f5f5;
    --gray-mid: #d0d0d0;
}

/* Desktop/tablet styles */
.progress-step {
    display: flex;
    align-items: center;
    position: relative;
}

.progress-step-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
    background: none;
    border: none;
    padding: 0;
    cursor: default;
}

.clickable-step {
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    padding: 4px;
}

    .clickable-step:hover {
        background-color: var(--cool-blue-light);
        transform: translateY(-1px);
    }

    .clickable-step:focus {
        outline: 2px solid var(--cool-blue);
        outline-offset: 2px;
    }

    .clickable-step:active {
        transform: translateY(0);
    }

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 1rem;
    text-align: center;
    max-width: 120px;
    height: 2.5em; /* Fixed height for all step text containers */
    display: flex;
    align-items: center;
    justify-content: center;
}

    .step-text > span {
        display: inline-block;
        line-height: 1.2;
    }

.progress-connector {
    width: 2rem;
    position: relative;
    height: 2px;
    margin: 0 0.5rem;
}

.connector-line {
    position: absolute;
    top: -1.25rem;
    height: 2px;
    width: 100%;
    background-color: var(--gray-mid);
}

    .connector-line.completed {
        background-color: var(--cool-blue);
    }

/* Step number styles */
.step-number-completed,
.step-number-current {
    color: white;
}

.step-number-completed {
    background-color: var(--cool-blue);
}

.step-number-current {
    background-color: var(--cool-blue-dark);
    box-shadow: 0 0 0 4px var(--cool-blue-light);
}

.step-number-upcoming {
    color: #555;
    background-color: var(--gray-light);
    border: 1px solid var(--gray-mid);
}

/* Step text styles */
.step-text-current {
    color: var(--cool-blue-dark);
}

.step-text-completed {
    color: var(--cool-blue);
}

.step-text-upcoming {
    color: #555;
}

/* Mobile styles */
.progress-mobile {
    white-space: nowrap;
}

.mobile-step-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    position: relative;
    background: none;
    border: none;
    cursor: default;
}

    .mobile-step-container.clickable-step {
        cursor: pointer;
        transition: all 0.2s ease;
        border-radius: 8px;
    }

        .mobile-step-container.clickable-step:hover {
            background-color: var(--cool-blue-light);
            transform: translateY(-1px);
        }

        .mobile-step-container.clickable-step:focus {
            outline: 2px solid var(--cool-blue);
            outline-offset: 2px;
        }

.mobile-step-number {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.mobile-step-text {
    font-size: 0.85rem;
    text-align: center;
    white-space: normal;
    width: 80px;
    overflow-wrap: break-word;
    line-height: 1.2;
}

/* Focus styles for accessibility */
.progress-step-wrapper:focus,
.mobile-step-container:focus {
    outline: 2px solid var(--cool-blue);
    border-radius: 4px;
}

/* DecedentProgressBar styles END */

.readonly-input-noborder {
    border: none;
}

/* Read-Only Form Overlay Styles BEGIN */
.readonly-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(1px);
    z-index: 1000;
    pointer-events: all;
    cursor: not-allowed;
}

.readonly-alert {
    position: relative;
    z-index: 1001;
    margin-bottom: 1rem;
    border-left: 5px solid #ffc107;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Make form elements visually disabled in read-only mode */
fieldset[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

    fieldset[disabled] input,
    fieldset[disabled] select,
    fieldset[disabled] textarea,
    fieldset[disabled] button,
    fieldset[disabled] .btn,
    fieldset[disabled] .form-control,
    fieldset[disabled] .form-select {
        cursor: not-allowed !important;
        background-color: #f5f5f5 !important;
    }

/* Ensure DevExpress components also appear disabled */
fieldset[disabled] .dxbl-edit,
fieldset[disabled] .dxbl-btn {
    opacity: 0.6;
    pointer-events: none;
}
/* Read-Only Form Overlay Styles END */

/* Fixes icons misaligned too high when enclosed by containing elements */
i.bi {
    vertical-align: text-top;
}
