/* ============================================================
   GLOBAL TYPOGRAPHY — single source of truth
   ============================================================ */
:root {
    /* Typography tokens */
    --odhh-label-font-size: 0.875rem;
    --odhh-label-font-weight: 500;
    --odhh-label-font-weight-bold: 700;
    --odhh-label-color: #001849;
    --odhh-label-gap: 0.35rem;
    --odhh-heading-font-weight: 600;
    --odhh-heading-color: #003366;
    /* Color tokens */
    --odhh-primary-color: #053246;
    --odhh-primary-hover: #074360;
    --odhh-required-color: #dc3545;
    --odhh-error-color: #dc3545;
    --odhh-border-color: #ced4da;
    --odhh-input-color: #001849;
    --odhh-focus-color: #0066cc;
    --odhh-disabled-bg: #f3f5f7;
    --odhh-disabled-text: #495057;
    --odhh-disabled-border: #d4dbe2;
    /* Border radius tokens */
    --odhh-border-radius-sm: 2px;
    --odhh-border-radius: 3px;
    --odhh-border-radius-md: 4px;
    --odhh-border-radius-lg: 6px;
    --odhh-border-radius-xl: 8px;
    --odhh-border-radius-pill: 20px;
    --odhh-border-radius-circle: 50%;
    /* Spacing tokens */
    --odhh-spacing-xs: 0.25rem;
    --odhh-spacing-sm: 0.5rem;
    --odhh-spacing: 0.75rem;
    --odhh-spacing-md: 1rem;
    --odhh-spacing-lg: 1.5rem;
    --odhh-spacing-xl: 2rem;
    /* Form control tokens */
    --odhh-input-font-size: 0.875rem;
    --odhh-input-padding-y: 0.375rem;
    --odhh-input-padding-x: 0.5rem;
    --odhh-input-min-height: 36px;
    --odhh-input-border-width: 1px;
    --odhh-input-line-height: 1.5;
    /* Validation tokens */
    --odhh-error-font-size: 0.75rem;
    --odhh-error-gap: 0.2rem;
    /* Transition tokens */
    --odhh-transition: all 0.2s ease-in-out;
    --odhh-focus-shadow: 0 0 0 0.15rem rgba(0, 102, 204, 0.25);
}


html, body {
    font-family: 'Plus Jakarta Sans', 'PlusJakartaSans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #001d34;
}

/* Only html (not body, which is a flex column with min-height:100vh) gets overflow-x:hidden here —
   setting it on both makes html and body become independent scroll containers, producing the
   "two scrollbars" bug. Kept as a defensive guard against any stray horizontal overflow. */
html {
    overflow-x: hidden;
}
#main-content {
    flex: 1;
    background-color: rgb(243, 244, 246);
}

article {
    background-color: transparent;
}
:root {
    /* Typography tokens */
    --odhh-label-font-size: 0.875rem;
    --odhh-label-font-weight: 500;
    --odhh-label-font-weight-bold: 700;
    --odhh-label-color: #001849;
    --odhh-label-gap: 0.35rem;
    --odhh-heading-font-weight: 600;
    --odhh-heading-color: #003366;
    /* Color tokens */
    --odhh-primary-color: #053246;
    --odhh-primary-hover: #074360;
    --odhh-required-color: #dc3545;
    --odhh-error-color: #dc3545;
    --odhh-border-color: #ced4da;
    --odhh-input-color: #001849;
    --odhh-focus-color: #0066cc;
    --odhh-disabled-bg: #f3f5f7;
    --odhh-disabled-text: #495057;
    --odhh-disabled-border: #d4dbe2;
    /* Border radius tokens */
    --odhh-border-radius-sm: 2px;
    --odhh-border-radius: 3px;
    --odhh-border-radius-md: 4px;
    --odhh-border-radius-lg: 6px;
    --odhh-border-radius-xl: 8px;
    --odhh-border-radius-pill: 20px;
    --odhh-border-radius-circle: 50%;
    /* Spacing tokens */
    --odhh-spacing-xs: 0.25rem;
    --odhh-spacing-sm: 0.5rem;
    --odhh-spacing: 0.75rem;
    --odhh-spacing-md: 1rem;
    --odhh-spacing-lg: 1.5rem;
    --odhh-spacing-xl: 2rem;
    /* Form control tokens */
    --odhh-input-font-size: 0.875rem;
    --odhh-input-padding-y: 0.375rem;
    --odhh-input-padding-x: 0.5rem;
    --odhh-input-min-height: 36px;
    --odhh-input-border-width: 1px;
    --odhh-input-line-height: 1.5;
    /* Validation tokens */
    --odhh-error-font-size: 0.75rem;
    --odhh-error-gap: 0.2rem;
    /* Transition tokens */
    --odhh-transition: all 0.2s ease-in-out;
    --odhh-focus-shadow: 0 0 0 0.15rem rgba(0, 102, 204, 0.25);
}

h1, h2, h3, h4, h5, h6 {
    font-family: inherit;
    font-weight: var(--odhh-heading-font-weight);
    line-height: 1.25;
    color: var(--odhh-heading-color);
    margin-top: 0;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.25rem;
}

h4 {
    font-size: 1.1rem;
}

h5 {
    font-size: 1rem;
}

h6 {
    font-size: 0.9rem;
}

h1:focus {
    outline: none;
}

/* ============================================================
   GLOBAL FORM CONTROLS — labels, inputs, selects
   ============================================================ */
label, .form-label, .info-label {
    font-size: var(--odhh-label-font-size);
    font-weight: var(--odhh-label-font-weight);
    color: var(--odhh-label-color);
    margin-bottom: var(--odhh-label-gap);
    display: block;
}

.required-asterisk {
    color: var(--odhh-required-color);
    /*margin-left: 2px;*/
}

input[type="text"], input[type="email"], input[type="date"],
input[type="tel"], input[type="number"], input[type="password"],
select, textarea, .form-control {
    font-family: inherit;
    font-size: var(--odhh-input-font-size);
    padding: var(--odhh-input-padding-y) var(--odhh-input-padding-x);
    border: var(--odhh-input-border-width) solid var(--odhh-border-color);
    border-radius: var(--odhh-border-radius);
    line-height: var(--odhh-input-line-height);
    color: var(--odhh-input-color);
}

    input[type="text"]:focus, input[type="email"]:focus, input[type="date"]:focus,
    input[type="tel"]:focus, input[type="number"]:focus, input[type="password"]:focus,
    select:focus, textarea:focus, .form-control:focus {
        border-color: var(--odhh-focus-color);
        outline: 0;
        box-shadow: var(--odhh-focus-shadow);
    }

    input[readonly],
    textarea[readonly],
    .form-control[readonly] {
        background-color: var(--odhh-disabled-bg);
        color: var(--odhh-disabled-text);
        border-color: var(--odhh-disabled-border);
        cursor: not-allowed;
    }

/* Legacy form classes used by Keystone/Home/Forgot pages */
.inputtext,
.dropdown {
    display: block;
    width: 100%;
    font-family: inherit;
    font-size: var(--odhh-input-font-size);
    line-height: var(--odhh-input-line-height);
    min-height: var(--odhh-input-min-height);
    padding: var(--odhh-input-padding-y) var(--odhh-input-padding-x);
    border: var(--odhh-input-border-width) solid var(--odhh-border-color);
    border-radius: var(--odhh-border-radius);
    color: var(--odhh-input-color);
    box-sizing: border-box;
}

    .inputtext:focus,
    .dropdown:focus {
        border-color: var(--odhh-focus-color);
        outline: 0;
        box-shadow: var(--odhh-focus-shadow);
    }

/* Typable MM/DD/YYYY text input paired with a hidden native date picker (DateTextInput.razor) */
.date-input-group {
    position: relative;
    display: flex;
}

    .date-input-group input[type="text"] {
        width: 100%;
        padding-right: 3.25rem;
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

/* Visible "calendar" zone, separated from the text box by a border, flush against the full height
   of the control so the whole zone (not just a small icon) is a single tappable surface on phone.
   This button IS the real, directly-tapped control (wired with a plain JS listener in site.js
   that calls the hidden native date input's showPicker() synchronously) - not an invisible overlay
   trick, which previously broke on real iPhones because routing the tap through Blazor's async JS
   interop lost Safari's strict same-tick user-gesture requirement for showPicker(). */
.date-picker-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100% !important;
    width: 2.75rem;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: var(--odhh-input-border-width) solid var(--odhh-border-color);
    border-left: none;
    border-top-right-radius: var(--odhh-border-radius);
    border-bottom-right-radius: var(--odhh-border-radius);
    background: #f1f3f5;
    cursor: pointer;
    padding: 0;
    color: #555;
    touch-action: manipulation;
    z-index: 2;
}

    .date-picker-btn:disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }

/* Purely programmatic now - never tapped directly, just the target .showPicker() is called on. */
.date-input-group .date-picker-native {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Desktop Chrome/Edge open showPicker() as a floating flyout ANCHORED to this input's own
   bounding box (unlike Android Chrome's full-screen modal or iOS's bottom sheet, neither of
   which depend on element position) - a 1x1 box flush against the right edge leaves the flyout
   no room and it renders off-screen on narrow/phone-width windows (incl. DevTools device
   emulation, which still uses this same anchored-flyout engine). Mouse-only: real touch
   devices never hit this path, so widening it here can't affect them. No pointer-events change
   needed since this input is never a tap target either way. */
@media (pointer: fine) {
    .date-input-group .date-picker-native {
        left: 0;
        right: 0;
        width: auto;
    }
}

/* iOS only (site.js adds this class after detecting it): showPicker() is unreliable/inert for
   input[type=date] on iOS Safari even on versions that nominally support it, but a genuine direct
   tap on the real native input ALWAYS opens its wheel picker, no JS needed - so on iOS the native
   input itself becomes the tappable surface again, scoped to just the icon zone, and the visible
   button becomes purely decorative underneath it (consistent with the "ash zone only" requirement). */
.date-input-group.ios-date-picker .date-picker-native {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    left: auto;
    width: 2.75rem;
    height: 100%;
    min-width: 44px;
    min-height: 44px;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    touch-action: manipulation;
    z-index: 3;
}

.date-input-group.ios-date-picker .date-picker-btn {
    pointer-events: none;
}

/* Accessible label "toggletip" (info icon): shown on hover, keyboard focus, or click.
   Visibility is CSS-only for hover/focus-within; the "info-tooltip-open" class (added by
   the component on click) keeps it visible after the pointer leaves until dismissed. */
.info-tooltip-wrapper {
    position: relative;
    display: inline-flex;
    margin-left: var(--odhh-spacing-xs);
    vertical-align: middle;
}

.info-tooltip-trigger {
    display: inline-flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    color: var(--odhh-focus-color);
    cursor: pointer;
}

.info-tooltip-trigger:focus-visible {
    outline: 2px solid var(--odhh-focus-color);
    outline-offset: 2px;
    border-radius: var(--odhh-border-radius-sm);
}

.info-tooltip-text {
    position: absolute;
    bottom: 135%;
    left: 50%;
    transform: translateX(-50%);
    background: #212529;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: var(--odhh-border-radius-md);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
    width: max-content;
    max-width: 260px;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
    z-index: 20;
    pointer-events: none;
}

.info-tooltip-wrapper:hover .info-tooltip-text,
.info-tooltip-wrapper:focus-within .info-tooltip-text,
.info-tooltip-wrapper.info-tooltip-open .info-tooltip-text {
    visibility: visible;
    opacity: 1;
}

.button {
    display: inline-block;
    padding: 0.45rem 1.25rem;
    min-height: 38px;
    background-color: var(--odhh-primary-color);
    border: 1px solid var(--odhh-primary-color);
    color: #fff;
    border-radius: var(--odhh-border-radius-xl);
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 2px 3px 4px #888888;
    cursor: pointer;
    transition: var(--odhh-transition);
}

    .button:hover:not(:disabled),
    .button:focus:not(:disabled) {
        background-color: var(--odhh-primary-hover);
        border-color: var(--odhh-primary-hover);
        color: #fff;
    }

    .button.cancel {
        background: #fff;
        border-color: var(--odhh-border-color);
        color: #495057;
    }

        .button.cancel:hover:not(:disabled),
        .button.cancel:focus:not(:disabled) {
            background-color: #f8f9fa;
            border-color: #adb5bd;
            color: #001849;
        }

    .button:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

/* Row spacing between label + control groups */
.form-group, .mb-form-field {
    margin-bottom: 1rem;
}

/* ============================================================
   INLINE VALIDATION — field-level errors
   ============================================================ */
.field-validation-error,
.validation-message,
.inline-error,
.link-odhh-validation {
    display: block;
    font-size: var(--odhh-error-font-size);
    color: var(--odhh-error-color);
    margin-top: var(--odhh-error-gap);
    line-height: 1.25;
}

.form-check-label {
    font-size: var(--odhh-label-font-size);
    color: var(--odhh-label-color);
    line-height: 1.35;
    font-weight: 400;
    margin-bottom: 0;
}

/* ============================================================
   INFO BOX — instructions / notices (reference: State Reg form)
   ============================================================ */
.info-box {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    background: #eef6fb;
    border-left: 4px solid #0071c1;
    border-radius: 4px;
    padding: 0.875rem 1rem;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    color: #003366;
    line-height: 1.5;
}

    .info-box .bi-info-circle,
    .info-box .info-icon {
        font-size: 1.15rem;
        color: #0071c1;
        flex-shrink: 0;
        margin-top: 0.1rem;
    }
.stack-vertical {
    display: block !important;
    flex-direction: column !important;
}

    .stack-vertical p {
        display: block !important;
        width: 100% !important;
    }

/* ============================================================
   EMPTY STATE — cart empty, no results (neutral, not an error)
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #adb5bd;
    display: block;
}

.empty-state p {
    font-size: 1rem;
    margin: 0;
}

a, .btn-link {
    color: #0071c1;
}

    .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;
    }

/*.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}*/

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: var(--odhh-error-color);
    font-size: var(--odhh-error-font-size);
    margin-top: var(--odhh-error-gap);
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    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+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.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;
}

/* ============================================
   MY REQUESTS SCREEN STYLES (mr- prefix)
   ============================================ */

.mr-container {
    margin: 0 auto;
    padding-block: 1.5rem;
    padding-inline: clamp(2rem, 4vw, 3.5rem);
}

/* mr-content-box removed — pages now use registration-card directly */

/* Loading & Empty States */
.mr-loading,
.mr-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* Table View */
.mr-table-wrapper {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow-x: auto;
    overflow-y: visible;
    margin-bottom: 1.5rem;
}

.mr-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

    .mr-table td:nth-child(2) {
        overflow-wrap: break-word;
        word-break: break-word;
    }

    .mr-table td:nth-child(4) {
        white-space: nowrap;
    }


    .mr-table thead {
        background-color: #dfe8ff;
    }

    .mr-table th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
        color: #001849;
        border-bottom: 2px solid #e0e0e0;
    }

    .mr-table tbody tr {
        border-bottom: 1px solid #e0e0e0;
        transition: background-color 0.2s;
    }

        .mr-table tbody tr:hover {
            background-color: #f9f9f9;
        }

        .mr-table tbody tr:last-child {
            border-bottom: none;
        }

    .mr-table td {
        padding: 1rem;
        font-size: 0.9rem;
        color: #001849;
    }

.mr-table-link {
    color: #0071c1;
    text-decoration: none;
    font-weight: 500;
}

    .mr-table-link:hover {
        text-decoration: underline;
    }

/* ============================================
   CARD VIEW - TWO ROW LAYOUT
   ============================================ */

.mr-applications-container {
    width: 100%;
}

.mr-application-item-card {
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    padding: 14px 20px;
    margin-bottom: 12px;
    font-family: inherit;
    font-size: 14px;
}


.mr-card-row-top {
    display: grid;
    grid-template-columns: minmax(0, 22fr) minmax(0, 40fr) minmax(0, 18fr) minmax(0, 30fr);
    column-gap: 20px;
    row-gap: 8px;
    align-items: baseline;
    margin-bottom: 8px;
}

    .mr-card-row-top .mr-field {
        flex-wrap: wrap;
    }

        .mr-card-row-top .mr-field .info-label {
            white-space: nowrap;
            flex-shrink: 0;
        }

        .mr-card-row-top .mr-field .dashboard-info-value {
            white-space: normal;
            overflow-wrap: anywhere;
        }

    /* Only Application Type (2nd field) wraps its value onto a new line if long */
    .mr-card-row-top:not(.mr-card-row-top-invoices) .mr-field:nth-child(2) .dashboard-info-value {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
        display: inline-block;
    }
    /* Keep Application Type value beside its label (don't drop under it) */
    .mr-card-row-top:not(.mr-card-row-top-invoices) .mr-field:nth-child(2) {
        flex-wrap: nowrap;
    }

        .mr-card-row-top:not(.mr-card-row-top-invoices) .mr-field:nth-child(2) .dashboard-info-value {
            min-width: 0;
        }

.mr-card-row-top-invoices {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    row-gap: 8px;
}

    
    .mr-card-row-top-invoices .mr-field:nth-child(2) .mr-value {
        white-space: nowrap;
        text-wrap: initial;
    }

    .mr-card-row-top .mr-field {
        min-width: 0;
    }

        .mr-card-row-top .mr-field .mr-label {
            white-space: nowrap;
        }

        /* Application Type is the one field allowed to wrap its value */
        .mr-card-row-top .mr-field:nth-child(2) .mr-value {
            display: inline-block;
            overflow-wrap: break-word;
            word-break: break-word;
            text-wrap: balance;
        }

.mr-card-row-bottom {
    display: flex;
    align-items: center;
}

.mr-application-item-card .mr-field {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    flex-wrap: wrap;
}

.mr-application-item-card .mr-label {
    font-weight: 700;
    color: #001849;
    font-size: 14px;
    white-space: nowrap;
}

.mr-application-item-card .mr-value {
    font-weight: 400;
    color: #001849;
    font-size: 14px;
}

.mr-application-item-card .mr-link {
    color: #2b78c5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
}

    .mr-application-item-card .mr-link:hover {
        text-decoration: underline;
    }

.mr-nowrap {
    white-space: nowrap;
}

/* ============================================
   DATA VIEW TOOLBAR STYLES (dvt- prefix)
   ============================================ */

.dvt-outer-container {
    margin-bottom: 20px;
}

.dvt-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: white;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    margin-bottom: 16px;
    gap: 16px;
}

.dvt-search-wrapper {
    position: relative;
    flex: 0 0 auto;
    min-width: 250px;
}

.dvt-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}

.dvt-search-input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px 8px 44px !important;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.5;
    text-indent: 0;
    background-color: white;
}

    .dvt-search-input:focus {
        outline: 2px solid #0078d4;
        outline-offset: 2px;
    }

    .dvt-search-input::placeholder {
        color: #999;
    }

.dvt-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.dvt-results-count {
    font-size: 14px;
    font-weight: 500;
    color: #001849;
    white-space: nowrap;
}

/* Export Button */
.dvt-export-btn {
    padding: 6px 12px;
    background-color: #fff;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #001849;
    transition: all 0.2s;
    height: 34px;
}

    .dvt-export-btn:hover {
        background-color: #f0f0f0;
        border-color: #555;
    }

    .dvt-export-btn:focus-visible {
        outline: 3px solid #005a9c;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px #fff;
    }

/* View Toggle Buttons */
.dvt-view-btn {
    padding: 6px 10px;
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #001849;
    min-width: 34px;
    height: 34px;
}

    .dvt-view-btn:hover {
        background-color: #f0f0f0;
        border-color: #555;
    }

    .dvt-view-btn:focus-visible,
    .dvt-sort-btn:focus-visible,
    .dvt-filter-btn:focus-visible,
    .dvt-close-btn:focus-visible,
    .dvt-search-input:focus-visible {
        outline: 3px solid #005a9c;
        outline-offset: 2px;
        box-shadow: 0 0 0 2px #fff;
    }

    .dvt-view-btn.active {
        background-color: white;
        border-color: #aaa;
        color: #001849;
    }

        .dvt-view-btn.active:hover {
            background-color: #f0f0f0;
            border-color: #555;
        }

    .dvt-view-btn svg {
        width: 16px;
        height: 16px;
    }

/* Sort and Filter Buttons */
.dvt-sort-btn,
.dvt-filter-btn {
    padding: 6px 12px;
    background-color: white;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #001849;
    transition: all 0.2s;
    height: 34px;
}

    .dvt-sort-btn:hover,
    .dvt-filter-btn:hover {
        background-color: #f0f0f0;
        border-color: #555;
    }

    .dvt-filter-btn.has-filters {
        border-color: #0078d4;
        color: #0078d4;
    }

.dvt-filter-badge {
    background-color: #0078d4;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    padding: 0 5px;
}

/* Overlay */
.dvt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Sort Panel - Full height right side */
.dvt-sort-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 350px;
    background-color: white;
    border-left: 1px solid #ccc;
    border-radius: 0;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
}

/* Filter Panel - Full height right side */
.dvt-filter-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 350px;
    background-color: white;
    border-left: 1px solid #ccc;
    border-radius: 0;
    box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Panel Header */
.dvt-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
}

    .dvt-panel-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 500;
        color: #001849;
        display: flex;
        align-items: center;
        flex: 1;
    }

.dvt-close-btn {
    background: white;
    border: 1px solid #999;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 2px 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 3px;
    transition: all 0.2s;
}

    .dvt-close-btn:hover {
        background-color: #f0f0f0;
        color: #001849;
        border-color: #666;
    }

    .dvt-close-btn:focus-visible {
        background-color: #eaf3ff;
        border-color: #005a9c;
        color: #005a9c;
        outline: 3px solid #005a9c;
        outline-offset: 2px;
    }

/* Divider */
.dvt-panel-divider {
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 20px;
    margin-bottom: 20px;
}

/* Subtitle */
.dvt-panel-subtitle {
    padding: 4px 20px 12px 20px;
    font-size: 14px;
    color: #001849;
}

/* Panel Content */
.dvt-panel-content {
    padding: 0 20px 16px 20px;
    flex: 1;
    overflow-y: auto;
}

/* Sort Options */
.dvt-sort-option {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    color: #001849;
    border-bottom: 1px solid #f0f0f0;
}

    .dvt-sort-option:last-child {
        border-bottom: none;
    }

    .dvt-sort-option input[type="radio"] {
        margin-right: 10px;
        cursor: pointer;
        width: 16px;
        height: 16px;
    }

    .dvt-sort-option:hover {
        background-color: #f5f5f5;
    }

/* Filter Sections */
.dvt-filter-section {
    margin-bottom: 20px;
}

    .dvt-filter-section:first-child {
        margin-top: 16px;
    }

    .dvt-filter-section:last-child {
        margin-bottom: 0;
    }

.dvt-filter-title {
    font-size: 14px;
    font-weight: 700;
    color: #001849;
    margin: 0 0 8px 0;
}

.dvt-filter-checkbox {
    display: flex;
    align-items: center;
    padding: 10px 0;
    cursor: pointer;
    font-size: 14px;
    color: #001849;
    border-bottom: 1px solid #f0f0f0;
}

    .dvt-filter-checkbox:last-child {
        border-bottom: none;
    }

    .dvt-filter-checkbox input[type="checkbox"] {
        margin-right: 10px;
        cursor: pointer;
        width: 16px;
        height: 16px;
    }

    .dvt-filter-checkbox:hover {
        background-color: #f5f5f5;
    }

.dvt-filter-footer {
    padding: 12px 20px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
}
.dvt-filter-panel {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.dvt-panel-content {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.dvt-filter-footer {
    flex-shrink: 0;
    padding: 16px;
    background: white;
}
 

.dvt-reset-link {
    width: 100%;
    padding: 8px 24px;
    background-color: white;
    color: #053246;
    border: 1px solid #053246;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
    text-align: center;
}

    .dvt-reset-link:hover {
        background-color: #f0f4f6;
    }

.dvt-apply-btn {
    width: 100%;
    padding: 8px 24px;
    background-color: #053246;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s;
}

    .dvt-apply-btn:hover {
        background-color: #042a3a;
    }
/* ============================================
   PAGINATION STYLES
   ============================================ */

.mr-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding: 0.5rem 0;
}

.mr-pagination-info {
    font-size: 14px;
    color: #555;
}

.mr-pagination-controls {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.mr-pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background-color: white;
    color: #001849;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .mr-pagination-btn:hover:not(:disabled) {
        background-color: #0078d4;
        border-color: #0078d4;
        color: white;
    }

.mr-pagination-btn-active {
    background-color: #0078d4;
    border-color: #0078d4;
    color: white;
    font-weight: 600;
}

.mr-pagination-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Laptop / small window: My Requests card goes to 2 columns */
@media (max-width: 1100px) {
    .mr-card-row-top:not(.mr-card-row-top-invoices) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phone */
@media (max-width: 768px) {
    .dvt-container {
        flex-direction: column;
        align-items: stretch;
    }

    .dvt-search-wrapper {
        min-width: 100%;
    }

    .dvt-controls {
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .dvt-sort-panel,
    .dvt-filter-panel {
        right: 0;
        left: 0;
        width: auto;
    }

    .mr-card-row-top .mr-field {
        white-space: normal;
    }

    .mr-card-row-top .mr-label {
        white-space: nowrap;
    }

    .mr-card-row-top {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .mr-card-row-top-invoices {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    /* My Requests on phone: one column, and Application Type may wrap under its label */
    .mr-card-row-top:not(.mr-card-row-top-invoices) {
        grid-template-columns: 1fr;
    }

        .mr-card-row-top:not(.mr-card-row-top-invoices) .mr-field:nth-child(2) {
            flex-wrap: wrap;
        }

    /* Grid/table view (My Requests, Invoices): table-layout:fixed squeezed all columns to ~60px
       on phone, causing the nowrap date column and Add-to-Cart button to overflow and overlap
       neighboring columns. Give the table a fixed width so .mr-table-wrapper's overflow-x:auto
       scrolls horizontally instead of squeezing/overlapping. Using "width" (not just min-width)
       avoids a browser quirk where <col> percentage widths (My Requests' colgroup) are resolved
       BEFORE min-width stretches the table, leaving the stretched-in space an unfilled blank gap
       past the last column's header/data instead of distributing across all columns. */
    .mr-table {
        min-width: 700px;
    }
}

    /* ============================================================
   REGISTRATION / RENEWAL / UPDATE FORM PAGES
   Single source of truth all 5 form pages use these classes
   ============================================================ */

    .registration-card {
        background: #ffffff;
        /*border: 1px solid #e0e0e0;*/
        border-radius: 8px;
        /*  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);*/
        margin-bottom: 2rem;
    }

        .registration-card .card-body {
            padding: 1rem;
        }

    .page-title {
        color: #003366;
        font-weight: 600;
        font-size: 1.5rem;
        padding-bottom: 0.75rem;
        margin-bottom: 1.5rem;
        /*border-bottom: 2px solid #e9ecef;*/
    }

    .section-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #001849;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
        border-bottom: 1px solid #e9ecef;
    }
.cert-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #001849;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
}
    .section-divider {
        height: 1rem;
        border: none;
        margin: 0;
    }

    .registration-section {
        margin-bottom: 1.5rem;
    }

    .form-actions {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 0;
        /*border-top: 1px solid #dee2e6;*/
        margin-top: 1.5rem;
    }

    /* ============================================================
   GLOBAL BUTTON STYLES — consistent across all pages
   Color/shadow/radius match the dashboard Update/Edit button.
   Dashboard-specific fixed sizing stays in the dashboard section.
   ============================================================ */
    .btn-primary,
    .btn.btn-primary {
        background-color: #00629e !important;
        border-color: #00629e !important;
        color: #fff !important;
        font-weight: 500;
        border-radius: 8px;
        padding: 0.45rem 1.25rem;
    }

        .btn-primary:hover,
        .btn-primary:focus,
        .btn.btn-primary:hover,
        .btn.btn-primary:focus {
            background-color: #074360 !important;
            border-color: #074360 !important;
            color: #fff !important;
        }

        .btn-primary:disabled,
        .btn.btn-primary:disabled {
            background-color: #8aacba !important;
            border-color: #8aacba !important;
            box-shadow: none;
        }

    .btn-secondary,
    .btn.btn-secondary {
        background-color: #6c757d;
        border-color: #6c757d;
        color: #fff;
        border-radius: 8px;
        padding: 0.45rem 1.25rem;
    }

    .btn-outline-secondary,
    .btn.btn-outline-secondary {
        color: #495057;
        border-color: #ced4da;
        background: #fff;
        border-radius: 8px;
        padding: 0.45rem 1.25rem;
    }

        .btn-outline-secondary:hover,
        .btn.btn-outline-secondary:hover {
            background-color: #f8f9fa;
            border-color: #adb5bd;
            color: #001849;
        }

    /* ============================================
   DASHBOARD STYLES (dashboard- prefix)
   ============================================ */

    .registration-container,
    .dashboard-container {
        margin: 0 auto;
        padding-block: 1.75rem;
        padding-inline: clamp(1.5rem, 4vw, 3.5rem);
    }
    .registration-container-spacious,
    .dashboard-container {
        padding-inline: clamp(3rem, 6vw, 6rem);
    }

    /* Phone: use full width instead of leaving grey #main-content gutters around the card, app-wide */
    @media (max-width: 768px) {
        .registration-container,
        .registration-container-spacious,
        .dashboard-container,
        .mr-container {
            padding-inline: 0;
            padding-block: 0;
        }

        .registration-card,
        .dashboard-content-box {
            border-radius: 0;
            margin-bottom: 0;
        }

        /* PaymentReturn.razor uses a bare Bootstrap .card directly inside .registration-container
           instead of .registration-card, so it needs the same edge-to-edge treatment here */
        .registration-container > .card,
        .registration-container-spacious > .card {
            border-radius: 0;
            border: none;
            margin-bottom: 0;
        }
    }

    /* Main Content Box with Border (Similar to My Requests) */
    .dashboard-content-box {
        background: #fff;
        /*border: 1px solid #e0e0e0;*/
        border-radius: 8px;
        padding: 2rem;
        /*box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);*/
        margin-bottom: 30px;
    }

    .dashboard-loading {
        text-align: center;
        padding: 3rem 1rem;
        color: #666;
        font-size: 1.1rem;
    }

    /* Dashboard Cards Row */
    .dashboard-cards-row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

        .dashboard-cards-row:has(.dashboard-card:only-child) {
            grid-template-columns: minmax(280px, 400px);
        }

    .dashboard-card {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1.5rem;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        transition: box-shadow 0.2s ease;
    }

        .dashboard-card:hover {
            box-shadow: 0 0 8px 2px rgba(0, 0, 0, 0.15);
        }

        .dashboard-card h2,
        .dashboard-card h3 {
            margin: 0 0 1rem 0;
            font-size: 1.25rem;
            font-weight: 600;
            color: #001849;
            text-align: center;
        }

    .dashboard-card-text {
        flex: 1;
        margin: 0 0 1.5rem 0;
        font-size: 0.95rem;
        color: #555;
        line-height: 1.5;
        /*    text-align: center;*/
    }

    .dashboard-card-btn {
        width: 100%;
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
        font-weight: 500;
        border-radius: 4px;
        margin-top: auto;
    }
    /* Card header - BRD grey background */
    .dashboard-card h2,
    .dashboard-card h3 {
        /* background-color: #f0f0f0 !important;*/
        padding: 20px 10px 10px 20px !important;
        text-align: left !important;
        /*    border-bottom: 1px solid #eee !important;*/
        font-size: 1.25rem;
        font-weight: 600;
        line-height: 1.3;
        color: #001849 !important;
        margin: -1.5rem -1.5rem 1rem -1.5rem !important;
        border-radius: 8px 8px 0 0 !important;
        width: calc(100% + 3rem) !important;
        /* fixed height for 2 lines keeps description text aligned across cards regardless of heading wrap */
        min-height: calc(1.3em * 2 + 30px);
        box-sizing: border-box !important;
    }

    /* Invoice Card Specific Styles */
    /* OLD Vertical Invoice Layout - uncomment razor block to use */
    .dashboard-invoice-details-old {
        display: flex;
        flex-direction: column;
        width: 100%;
        margin-bottom: 1.5rem;
    }

    .dashboard-invoice-row-old {
        display: flex;
        justify-content: space-between;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

        .dashboard-invoice-row-old:last-child {
            border-bottom: none;
        }
    /* Invoice card - BRD horizontal layout */
    .dashboard-invoice-details {
        display: flex;
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
        margin-bottom: 1rem;
    }

    .dashboard-invoice-col {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
    }

    .dashboard-invoice-link {
        color: #0071c1;
        text-decoration: none;
        font-size: 0.9rem;
        font-weight: 500;
    }

        .dashboard-invoice-link:hover {
            text-decoration: underline;
        }

    .dashboard-invoice-details {
        margin-bottom: 1.5rem;
    }

    .dashboard-invoice-row {
        display: none;
    }

    .dashboard-label {
        font-weight: 600;
        color: #001849;
        font-size: 0.9rem;
    }

    .dashboard-value {
        color: #555;
        font-size: 0.9rem;
    }

    /* Information Sections */
    .dashboard-info-section {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .dashboard-section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: none;
    }



    .dashboard-section-divider {
        border: 0 !important;
        border-top: 1px solid #eeeeee !important;
        margin: 8px 0 20px 0 !important;
        display: block !important;
        height: 0 !important;
        opacity: 1 !important;
    }

    .dashboard-section-header h2 {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #001849;
    }

    .dashboard-section-actions {
        display: flex;
        gap: 0.75rem;
        align-items: center;
        position: relative;
    }

    .dashboard-action-menu {
        position: relative;
    }


    .dashboard-action-dots {
        list-style: none;
        /*   border: 1px solid #d2d6dc;
    border-radius: 6px;*/
        border:none !important;
        background: #fff;
        color: #001849;
        cursor: pointer;
        width: 40px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        line-height: 1;
        user-select: none;
    }

        .dashboard-action-dots:hover {
            background: #f5f7fa;
        }

    .dashboard-action-menu:focus-within .dashboard-action-dots {
        background: #f5f7fa;
    }

    .dashboard-action-menu-content {
        position: absolute;
        top: calc(100% + 6px);
        right: 0;
        min-width: 130px;
        background: #fff;
        border: 1px solid #d9d9d9;
        border-radius: 8px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        padding: 0.5rem;
        display: none;
        flex-direction: column;
        gap: 0.4rem;
        z-index: 20;
    }

    .dashboard-action-menu-content.show {
        display: flex;
    }

    .dashboard-action-menu-content .btn {
        width: 100%;
        text-align: left;
    }
    button .dashboard-action-dots {
        border: none;
        background: transparent;
        border-width: medium;
    }
    /* History Button - Consistent Styling */
    .dashboard-history-btn {
        color: #0071c1;
        text-decoration: none;
        font-size: 0.95rem;
        font-weight: 500;
        cursor: pointer;
        padding: 0.5rem 1rem;
        border: none;
        background: #e7e7e7;
        border-radius: 4px;
        transition: all 0.2s;
    }

        .dashboard-history-btn:hover {
            background: #d0d0d0;
            color: #0071c1;
        }

        .dashboard-history-btn:focus {
            outline: 2px solid #0071c1;
            outline-offset: 2px;
        }

    /* Edit Button - Consistent with Primary Button Styling */
    .dashboard-edit-btn {
        padding: 0.5rem 1.25rem;
        font-size: 0.95rem;
    }

    /* Info Grid */
    /* Registration Info - Single Row Inline Layout */
    .dashboard-reg-info-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
    }

    .dashboard-reg-info-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        gap: 0.4rem;
        flex: 0 0 25%; /* matches col-md-3 = 25% width */
        max-width: 25%;
    }

    /* Override the stacked column layout for reg info items */
    .dashboard-reg-info-row .info-label {
        font-weight: 600;
        color: #001849;
        font-size: 0.9rem;
        white-space: nowrap;
    }

    .dashboard-reg-info-row .dashboard-info-value {
        color: #001849;
        font-size: 0.95rem;
        white-space: nowrap;
    }
    /* Personal Information - 4 column BRD layout */
    .dashboard-personal-row {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin-top: 10px;
    }

    .dashboard-personal-col {
        flex: 0 0 20%;
        max-width: 20%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    @media (max-width: 768px) {
        .dashboard-personal-row {
            flex-wrap: wrap;
        }

        .dashboard-personal-col {
            flex: 0 0 50%;
            max-width: 50%;
            margin-bottom: 0.75rem;
        }
    }
    /* Public Search Preferences - 2 column BRD layout */
    .dashboard-pref-body {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .dashboard-pref-row {
        display: flex;
        flex-direction: row;
        width: 100%;
        margin-top: 5px;
    }

    .dashboard-pref-col {
        flex: 0 0 50%;
        max-width: 50%;
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
    }

    .dashboard-pref-label {
        font-weight: 700;
        color: #001849;
        font-size: 0.9rem;
    }

    .dashboard-pref-value {
        font-weight: 400;
        color: #001849;
        font-size: 0.9rem;
    }

    @media (max-width: 768px) {
        .dashboard-pref-row {
            flex-wrap: wrap;
        }

        .dashboard-pref-col {
            flex: 0 0 100%;
            max-width: 100%;
            margin-bottom: 0.75rem;
        }
    }
    /* BRD Button Styles */
    .dashboard-card-btn,
    .dashboard-edit-btn,
    .btn.btn-primary.dashboard-card-btn,
    .btn.btn-primary.dashboard-edit-btn {
        background-color: #053246 !important;
        border: none !important;
        color: white !important;
        box-shadow: 2px 3px 4px #888888;
        text-align: center;
        text-decoration: none;
        font-size: 12px !important;
        margin: 4px 2px;
        cursor: pointer;
        width: 100px !important;
        height: 25px !important;
        border-radius: 8px !important;
        padding: 1px 6px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-history-btn {
        background-color: #D3D3D3 !important;
        color: black !important;
        border: none !important;
        box-shadow: 2px 3px 4px #888888;
        text-align: center;
        font-size: 12px !important;
        margin: 4px 2px;
        cursor: pointer;
        width: 100px !important;
        height: 25px !important;
        border-radius: 8px !important;
        padding: 1px 6px !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

        .dashboard-history-btn:hover {
            background-color: #bebebe !important;
            color: black !important;
        }

    .dashboard-link-action {
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        font-family: inherit;
        font-size: inherit;
        font-weight: 500;
        color: #0066cc; /* Clean link color */
        cursor: pointer;
        display: inline-flex;
        align-items: center;
        text-decoration: none;
        transition: color 0.2s ease-in-out;
    }

        .dashboard-link-action:hover:not(:disabled) {
            color: #004499; /* Darker blue on hover */
            text-decoration: underline;
        }

        .dashboard-link-action:disabled {
            color: #9ca3af; /* Disabled gray text */
            cursor: not-allowed;
            text-decoration: none;
        }

    .icon-left {
        margin-right: 6px;
        flex-shrink: 0;
    }

    /* Optional helper spinning animation if you want it */
    .animate-spin {
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        from {
            transform: rotate(0deg);
        }

        to {
            transform: rotate(360deg);
        }
    }
    /* Active badge - exact BRD dimensions 52.03x16 */
    .dashboard-status-approved {
        background-color: #008000 !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        margin: 0px 0px 0px 10px !important;
        padding: 2px 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 52px !important;
        height: 1.5rem !important;
        text-transform: none !important;
        text-align: center !important;
        line-height: 1 !important;
    }



    @media (max-width: 768px) {
        .dashboard-reg-info-row {
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 0.75rem;
        }
    }

    .dashboard-info-grid-3col {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .dashboard-info-item {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .info-label {
        font-weight: 600;
        color: #001849;
        font-size: 0.9rem;
    }

    .dashboard-info-value {
        color: #001849;
        font-size: 0.95rem;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }

    /* Status Badge */
    /* Status Badge */
    .dashboard-status-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .dashboard-status-expired {
        background-color: #ff0000 !important;
        color: #ffffff !important;
        border-radius: 12px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        margin: 0px 0px 0px 10px !important;
        padding: 2px 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 52px !important;
        height: 1.5rem !important;
        text-transform: none !important;
        text-align: center !important;
        line-height: 1 !important;
    }

    .dashboard-status-pending {
        background-color: #fff3cd;
        color: #856404;
        border-radius: 12px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        margin: 0px 0px 0px 10px !important;
        padding: 2px 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 52px !important;
        height: 1.5rem !important;
        text-transform: none !important;
        text-align: center !important;
        line-height: 1 !important;
    }

    .dashboard-status-inactive {
        background-color: #e2e3e5;
        color: #383d41;
        border-radius: 12px !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        margin: 0px 0px 0px 10px !important;
        padding: 2px 8px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 52px !important;
        height: 1.5rem !important;
        text-transform: none !important;
        text-align: center !important;
        line-height: 1 !important;
    }

    /* ============================================
   PUBLIC SEARCH PREFERENCES - NEW DESIGN
   ============================================ */

    .dashboard-preferences-list {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .dashboard-preference-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

        .dashboard-preference-item:last-child {
            border-bottom: none;
        }

    .dashboard-preference-label {
        font-size: 0.95rem;
        color: #001849;
        font-weight: 400;
    }

    .dashboard-preference-value {
        font-size: 0.95rem;
        color: #555;
        font-weight: 500;
    }

    /* ============================================
   CERTIFICATIONS TABLE - NEW DESIGN
   ============================================ */

    .dashboard-certifications-table-wrapper {
        overflow-x: auto;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
    }

    .dashboard-certifications-table {
        width: 100%;
        border-collapse: collapse;
    }

        .dashboard-certifications-table thead {
            background-color: #ecf0ff;
        }

        .dashboard-certifications-table tbody tr:nth-child(even) {
            background-color: #f4f2f0;
        }

        .dashboard-certifications-table th {
            padding: 0.75rem 1rem;
            text-align: left;
            font-weight: 600;
            font-size: 0.9rem;
            color: #001849;
            border-bottom: 2px solid #e0e0e0;
        }

        .dashboard-certifications-table tbody tr {
            border-bottom: 1px solid #e0e0e0;
        }

            .dashboard-certifications-table tbody tr:hover {
                background-color: #f9f9f9;
            }

            .dashboard-certifications-table tbody tr:last-child {
                border-bottom: none;
            }

        .dashboard-certifications-table td {
            padding: 0.75rem 1rem;
            font-size: 0.9rem;
            color: #001849;
        }

    /* Certification Status in Table */
    .dashboard-cert-status {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 2px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 700;
        min-width: 52px;
        height: 16px;
        line-height: 1;
        text-transform: none;
    }

    .dashboard-cert-status-active {
        background-color: #008000 !important;
        color: #ffffff !important;
    }

    .dashboard-cert-status-expired {
        background-color: #ff0000 !important;
        color: #ffffff !important;
    }

    .dashboard-cert-status-expiring-soon {
        background-color: #ffc107 !important;
        color: #ffffff !important;
    }

    .dashboard-cert-status-pending {
        background-color: #17a2b8 !important;
        color: #ffffff !important;
    }

    .dashboard-cert-status-unknown {
        background-color: #6c757d !important;
        color: #ffffff !important;
    }

    /* ============================================
   DASHBOARD HEADER (COMMENTED OUT FOR NOW)
   ============================================ */

    /* .dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.dashboard-header h1 {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 600;
     color: #001849;
}

.dashboard-refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    color: #0071c1;
    cursor: pointer;
    border: none;
    background: none;
    transition: color 0.2s;
}

.dashboard-refresh-btn:hover:not(:disabled) {
    color: #005a9e;
    text-decoration: underline;
}

.dashboard-refresh-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dashboard-refresh-icon-spin {
    animation: dashboard-spin 1s linear infinite;
}

@keyframes dashboard-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
} */

    /* Error State */
    .dashboard-error {
        text-align: center;
        padding: 3rem 2rem;
        background: white;
        max-width: 500px;
        margin: 2rem auto;
    }

    .dashboard-error-icon {
        font-size: 3rem;
        margin-bottom: 1rem;
    }

    .dashboard-error h2,
    .dashboard-error h3 {
        margin: 0 0 0.75rem 0;
        font-size: 1.5rem;
        color: #001849;
    }

    .dashboard-error p {
        color: #666;
        margin-bottom: 1.5rem;
        line-height: 1.5;
    }

    /* Empty State */
    .dashboard-empty-state {
        text-align: center;
        padding: 4rem 2rem;
        background: white;
    }

    .dashboard-empty-icon {
        font-size: 4rem;
        margin-bottom: 1rem;
        opacity: 0.5;
    }

    .dashboard-empty-state h2,
    .dashboard-empty-state h3 {
        margin: 0 0 0.75rem 0;
        font-size: 1.5rem;
        color: #001849;
    }

    .dashboard-empty-state p {
        color: #666;
        font-size: 1rem;
    }

    /* Toast Notification */
    .dashboard-toast {
        position: fixed;
        top: 20px;
        right: 20px;
        min-width: 300px;
        max-width: 500px;
        padding: 1rem 1.5rem;
        background: white;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        z-index: 9999;
        animation: dashboard-toast-slide-in 0.3s ease-out;
    }

    @keyframes dashboard-toast-slide-in {
        from {
            transform: translateX(400px);
            opacity: 0;
        }

        to {
            transform: translateX(0);
            opacity: 1;
        }
    }

    .dashboard-toast-success {
        border-left: 4px solid #28a745;
    }

    .dashboard-toast-error {
        border-left: 4px solid #dc3545;
    }

    .dashboard-toast-warning {
        border-left: 4px solid #ffc107;
    }

    .dashboard-toast-info {
        border-left: 4px solid #17a2b8;
    }

    .dashboard-toast span {
        flex: 1;
        color: #001849;
        font-size: 0.95rem;
    }

    .dashboard-toast-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #999;
        cursor: pointer;
        padding: 0;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: background-color 0.2s;
    }

        .dashboard-toast-close:hover {
            background-color: #f0f0f0;
            color: #001849;
        }

    .dashboard-personal-col .dashboard-status-badge {
        align-self: flex-start;
        margin-left: 0 !important;
    }

    /* Button Loading State */
    .dashboard-card-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* Accessibility Focus Styles */
    .dashboard-card:focus-within {
        outline: 2px solid #0071c1;
        outline-offset: 2px;
    }

    /* ============================================
   RESPONSIVE - DASHBOARD
   ============================================ */

    @media (max-width: 768px) {
        .dashboard-cards-row {
            grid-template-columns: 1fr;
        }

        .dashboard-section-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
        }

        .dashboard-section-actions {
            width: 100%;
            justify-content: flex-end;
        }

        .dashboard-info-grid,
        .dashboard-info-grid-3col {
            grid-template-columns: 1fr;
        }

        .dashboard-toast {
            left: 20px;
            right: 20px;
            min-width: auto;
        }

        .dashboard-certifications-table {
            font-size: 0.85rem;
        }

            .dashboard-certifications-table th,
            .dashboard-certifications-table td {
                padding: 0.5rem 0.75rem;
            }
    }

    @media (max-width: 480px) {
        .dashboard-container {
            padding: 1rem;
        }

        .dashboard-content-box {
            padding: 1rem;
        }

        .dashboard-info-section {
            padding: 1rem;
        }

        .dashboard-card {
            padding: 1rem;
        }

        .dashboard-error,
        .dashboard-empty-state {
            padding: 2rem 1rem;
        }

        .dashboard-toast {
            left: 10px;
            right: 10px;
            top: 10px;
        }
    }

    /* ============================================
   EDIT MODAL STYLES
   ============================================ */

    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        overflow: hidden;
    }

    .edit-modal {
        background: white;
        border-radius: 8px;
        width: 100%;
        max-width: 900px;
        max-height: 90vh;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
        position: relative;
    }

    .edit-modal-small {
        max-width: 600px;
    }

    .edit-modal-large {
        max-width: 1000px;
    }

    .edit-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px;
        border-bottom: 1px solid #e0e0e0;
    }

        .edit-modal-header h2 {
            margin: 0;
            font-size: 20px;
            font-weight: 600;
            color: #001849;
        }

    .modal-close-btn {
        background: white;
        border: 1px solid #999;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 0;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
        border-radius: 4px;
        transition: all 0.2s;
    }

        .modal-close-btn:hover {
            background-color: #f0f0f0;
            color: #001849;
            border-color: #666;
        }

    .edit-modal-body {
        padding: 24px;
        overflow-y: auto;
        flex: 1;
    }

    .edit-modal-footer {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        padding: 16px 24px;
        border-top: 1px solid #e0e0e0;
    }

    /* Form Layout */
    .edit-form-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-bottom: 16px;
        font-weight: 600;
        color: rgb(51, 51, 51);
        font-size: 0.9rem;
    }

    .edit-form-group {
        display: flex;
        flex-direction: column;
        gap: var(--odhh-label-gap);
    }

        .edit-form-group label {
            margin-bottom: 0;
            font-weight: 600;
            color: #001849;
            font-size: 0.9rem;
        }

    .edit-input {
        padding: 8px 12px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        font-family: inherit;
        transition: border-color 0.2s;
    }

        .edit-input:focus {
            outline: none;
            border-color: #0078d4;
            box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
        }

        .edit-input:disabled {
            background-color: #f5f5f5;
            cursor: not-allowed;
        }

        .edit-input.invalid {
            border-color: #dc3545;
        }

        .edit-input.valid {
            border-color: #28a745;
        }

    /* Checkbox Groups */
    .edit-form-section {
        margin-bottom: 24px;
    }

    .edit-checkbox-group {
        margin-bottom: 16px;
    }

    .edit-checkbox-label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        cursor: pointer;
        font-size: 14px;
        color: #001849;
    }

        .edit-checkbox-label input[type="checkbox"] {
            margin-top: 3px;
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .edit-checkbox-label span {
            flex: 1;
            line-height: 1.5;
        }

    /* Radio Groups */
    .edit-form-group-radio {
        margin-bottom: 16px;
    }

    .edit-radio-label-main {
        display: block;
        font-size: 14px;
        font-weight: 600;
        color: #001849;
        margin-bottom: 8px;
    }

    .edit-radio-options {
        display: flex;
        gap: 24px;
        align-items: center;
    }

    .edit-radio-option {
        display: flex;
        align-items: center;
        gap: 8px;
        cursor: pointer;
        font-size: 14px;
        color: #001849;
    }

        .edit-radio-option input[type="radio"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

    /* Certifications Table */
    .certifications-table-wrapper {
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        overflow-x: auto;
        margin-bottom: 16px;
    }

    .certifications-edit-table {
        width: 100%;
        border-collapse: collapse;
    }

        .certifications-edit-table thead {
            background-color: #dfe8ff;
        }

        .certifications-edit-table th {
            padding: 12px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            color: #001849;
            border-bottom: 2px solid #e0e0e0;
        }

        .certifications-edit-table tbody tr {
            border-bottom: 1px solid #e0e0e0;
        }

            .certifications-edit-table tbody tr:last-child {
                border-bottom: none;
            }

            .certifications-edit-table tbody tr:nth-child(even) {
                background-color: #f4f2f0;
            }

        .certifications-edit-table td {
            padding: 12px;
            font-size: 14px;
            color: #001849;
            vertical-align: top;
        }

    .cert-date-input {
        width: 100%;
        padding: 6px 8px;
        border: 1px solid #ccc;
        border-radius: 4px;
        font-size: 14px;
        font-family: inherit;
    }

        .cert-date-input:focus {
            outline: none;
            border-color: #0078d4;
            box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.1);
        }

        .cert-date-input.invalid {
            border-color: #dc3545;
        }

        .cert-date-input.valid {
            border-color: #28a745;
        }

    .cert-checkbox-cell {
        text-align: center;
    }

        .cert-checkbox-cell input[type="checkbox"] {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

    /* Validation Messages */
    .validation-message {
        font-size: var(--odhh-error-font-size);
        color: var(--odhh-error-color);
        margin-top: var(--odhh-error-gap);
        line-height: 1.25;
    }

    .validation-message-small {
        font-size: 0.6875rem;
        color: var(--odhh-error-color);
        margin-top: 0.1rem;
    }

    .edit-error-message {
        background-color: #f8d7da;
        color: #721c24;
        padding: 12px;
        border-radius: 4px;
        font-size: 14px;
        margin-bottom: 16px;
    }

    /* Buttons */
    .btn-primary {
        background-color: #053246;
        color: white;
        border: none;
        padding: 8px 24px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        transition: background-color 0.2s;
        height: 2.5rem;
        min-width: 100px;
    }

        .btn-primary:hover:not(:disabled) {
            background-color: #042a3a;
        }

        .btn-primary:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }


    button.btn.btn-secondary {
        background-color: white;
        color: #00629e;
        border: 1px solid #ccc;
        padding: 8px 24px;
        font-size: 14px;
        font-weight: 500;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.2s;
        height: 2.5rem;
        min-width: 100px;
    }

    .btn-secondary:hover:not(:disabled) {
        background-color: #f0f0f0;
        border-color: #999;
    }

    .btn-secondary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .edit-modal {
            max-width: 100%;
            max-height: 100vh;
            border-radius: 0;
        }

        .edit-form-row {
            grid-template-columns: 1fr;
            gap: 12px;
        }

        .edit-modal-body {
            padding: 16px;
        }

        .edit-radio-options {
            flex-direction: column;
            gap: 12px;
        }
    }

    .fi-multiselect {
        position: relative;
    }

    .fi-dropdown-toggle {
        display: flex;
        width: 100%;
        min-height: var(--odhh-input-min-height);
        align-items: center;
        justify-content: space-between;
        text-align: left;
        cursor: pointer;
        appearance: none;
        padding: 0 0 0 var(--odhh-input-padding-x);
        overflow: hidden;
        background: #fff;
        line-height: var(--odhh-input-line-height);
        border-radius: var(--odhh-border-radius);
        border: var(--odhh-input-border-width) solid var(--odhh-border-color);
    }

        .fi-dropdown-toggle:focus {
            outline: 2px solid #0071c1;
            outline-offset: 0;
        }

    .fi-dropdown-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex: 1;
        pointer-events: none;
        font-size: 0.875rem;
        color: #555;
        line-height: var(--odhh-input-line-height);
    }

    /*.fi-dropdown-arrow {
    margin-left: 8px;
    font-size: 0.7rem;
    color: #444;
}*/
    .fi-dropdown-arrow {
        flex-shrink: 0;
        pointer-events: none;
        width: 28px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #001849;
        font-size: 0.9rem;
        line-height: 1;
        margin-left: 8px;
    }

    /* Dropdown panel */
    .fi-dropdown-menu {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        background: #fff;
        border: 1px solid #aaa;
        border-radius: 0;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
        z-index: 1050;
        max-height: 220px;
        overflow-y: auto;
    }

    .fi-dropdown-menu-wide {
        min-width: 340px;
    }

    .fi-dropdown-hr {
        margin: 2px 0;
        border-top: 1px solid #e0e0e0;
    }

    .fi-check-row {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 5px 10px;
        cursor: pointer;
        font-size: 0.85rem;
        color: #1a1a1a;
        margin: 0;
        user-select: none;
    }

        .fi-check-row:hover {
            background-color: #eef4fb;
        }

        .fi-check-row input[type="checkbox"] {
            margin: 0;
            flex-shrink: 0;
            cursor: pointer;
            accent-color: #053246;
        }

    .fi-check-all {
        font-weight: 600;
    }

    /* ============================================
   ODHH ID MODAL STYLES (odhh-id- prefix)
   NEW CLASSES - DO NOT MODIFY EXISTING STYLES
   ============================================ */

    .odhh-id-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .odhh-id-modal-container {
        background: white;
        border-radius: 8px;
        width: 100%;
        max-width: 500px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        display: flex;
        flex-direction: column;
    }

    .odhh-id-modal-header {
        padding: 24px;
        border-bottom: 1px solid #e0e0e0;
    }

        .odhh-id-modal-header h2 {
            margin: 0;
            font-size: 1.5rem;
            font-weight: 600;
            color: #001849;
        }

    .odhh-id-modal-body {
        padding: 24px;
    }

    .odhh-id-modal-question {
        font-size: 1.1rem;
        font-weight: 600;
        color: #001849;
        margin-bottom: 12px;
    }

    .odhh-id-modal-description {
        font-size: 0.95rem;
        color: #666;
        line-height: 1.5;
        margin-bottom: 0;
    }

    .odhh-id-modal-footer {
        padding: 20px 24px;
        border-top: 1px solid #e0e0e0;
        display: flex;
        justify-content: flex-end;
        gap: 12px;
    }

    .odhh-id-modal-btn {
        min-width: 100px;
    }

    /* Responsive for ODHH ID Modal */
    @media (max-width: 768px) {
        .odhh-id-modal-container {
            max-width: 90%;
        }
    }

    .invoice-detail-title {
        color: #053246;
        font-family: inherit;
        font-size: 28px;
        font-weight: bolder;
    }

    .invoice-btn-primary {
        background-color: #053246;
        color: #fff;
        border: none;
        border-radius: 20px;
        padding: 8px 24px;
        margin-top: 15px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 2px 3px 4px #888888;
    }

    .invoice-btn-primary-sm {
        background-color: #053246;
        color: #fff;
        border: none;
        border-radius: 20px;
        padding: 4px 14px;
        margin-top: 0;
        font-weight: 600;
        font-size: 0.8rem;
        cursor: pointer;
        box-shadow: 2px 3px 4px #888888;
        white-space: nowrap;
    }

    .invoice-btn-secondary {
        background-color: white;
        color: black;
        border: none;
        border-radius: 20px;
        padding: 8px 24px;
        margin-top: 15px;
        font-weight: 600;
        cursor: pointer;
        box-shadow: 2px 3px 4px #888888;
    }

    .edit-form-group label.fi-label {
        font-family: inherit;
        margin: 0px 0px 4px;
        font-weight: 600;
        color: rgb(51, 51, 51);
        font-size: 0.9rem;
    }

    /* ============================================
   PROVISIONAL REGISTRATION FORM STYLES (prov-reg- prefix)
   NEW CLASSES - DO NOT MODIFY EXISTING STYLES
   ============================================ */

    /* Provisional Document Section Styles */
    .prov-reg-doc-table-wrapper {
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        overflow-x: auto;
        margin-bottom: 16px;
        margin-top: 16px;
    }

    .prov-reg-doc-table {
        width: 100%;
        border-collapse: collapse;
    }

        .prov-reg-doc-table thead {
            background-color: #f5f5f5;
        }

        .prov-reg-doc-table th {
            padding: 12px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            color: #001849;
            border-bottom: 2px solid #e0e0e0;
        }

        .prov-reg-doc-table tbody tr {
            border-bottom: 1px solid #e0e0e0;
        }

            .prov-reg-doc-table tbody tr:last-child {
                border-bottom: none;
            }

        .prov-reg-doc-table td {
            padding: 12px;
            font-size: 14px;
            color: #001849;
            vertical-align: top;
        }

    .prov-reg-upload-wrapper {
        position: relative;
    }

    .prov-reg-file-input {
        display: none;
    }

    .prov-reg-upload-btn {
        display: inline-block;
        padding: 8px 16px;
        background-color: #053246;
        color: white;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 500;
        transition: background-color 0.2s;
        text-align: center;
    }

        .prov-reg-upload-btn:hover {
            background-color: #042a3a;
        }

    .prov-reg-files-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .prov-reg-file-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        background-color: #f8f9fa;
        border-radius: 4px;
        border: 1px solid #e0e0e0;
    }

    .prov-reg-file-info {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 1;
    }

    .prov-reg-file-icon {
        font-size: 16px;
    }

    .prov-reg-file-name {
        font-weight: 500;
        color: #001849;
    }

    .prov-reg-file-size {
        color: #666;
        font-size: 12px;
    }

    .prov-reg-delete-btn {
        background: none;
        border: none;
        cursor: pointer;
        font-size: 18px;
        padding: 4px;
        color: #dc3545;
        transition: transform 0.2s;
    }

        .prov-reg-delete-btn:hover {
            transform: scale(1.2);
        }

    /* Responsive for Provisional Registration */
    @media (max-width: 768px) {
        .prov-reg-doc-table {
            font-size: 12px;
        }

            .prov-reg-doc-table th,
            .prov-reg-doc-table td {
                padding: 8px;
            }
    }

    /* Payment Modal Styles */
    .payment-modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1050;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
        overflow: hidden;
    }

        .payment-modal-overlay.show {
            display: flex;
        }

    .payment-modal-container {
        background-color: white;
        border-radius: 8px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        max-width: 500px;
        width: 100%;
        max-height: 80vh;
        overflow-y: auto;
    }

    .payment-modal-header {
        padding: 20px;
        border-bottom: 1px solid #e9ecef;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .payment-modal-title {
        margin: 0;
        font-size: 1.25rem;
        font-weight: 600;
        color: #212529;
    }

    .payment-modal-close {
        padding: 0;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #6c757d;
        cursor: pointer;
        line-height: 1;
    }

        .payment-modal-close:hover {
            color: #212529;
        }

        .payment-modal-close:disabled {
            cursor: not-allowed;
            opacity: 0.5;
        }

    .payment-modal-body {
        padding: 20px;
    }

    .epp-payment-frame {
        width: 100%;
        height: 400px;
        border: none;
        display: none;
    }

        .epp-payment-frame.active {
            display: block;
        }

