/* SAHUKAR OS FORM DESIGN SYSTEM V1 START
   Owner-controlled shared form UI baseline.
   Purpose: consistent form density, typography, controls, sections, actions,
   validation and responsive behaviour across SAHUKAR OS.
   Page-specific form sizing should not override this system unless explicitly justified.
*/

:root {
    --sahukar-ui-font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --sahukar-ui-bg: #f4f7fb;
    --sahukar-ui-surface: #ffffff;
    --sahukar-ui-surface-soft: #eef3f8;
    --sahukar-ui-text: #172033;
    --sahukar-ui-label: #344054;
    --sahukar-ui-muted: #667085;
    --sahukar-ui-line: #d5dde8;
    --sahukar-ui-line-strong: #b8c5d6;
    --sahukar-ui-primary: #2457d6;
    --sahukar-ui-primary-dark: #1944af;
    --sahukar-ui-danger: #b42318;
    --sahukar-ui-success: #18753c;
    --sahukar-ui-warning: #9a6100;
    --sahukar-ui-warning-bg: #fff3d4;
    --sahukar-ui-radius-sm: 4px;
    --sahukar-ui-radius-md: 7px;
    --sahukar-ui-shadow: 0 2px 8px rgba(23, 32, 51, .035);
}

.sahukar-form-page,
.sahukar-form-page * {
    box-sizing: border-box;
}

.sahukar-form-page {
    --sahukar-control-height: 24px;
    --sahukar-control-font: 11px;
    --sahukar-label-font: 9.6px;
    --sahukar-help-font: 8.8px;
    --sahukar-button-height: 31px;
    min-height: 100vh;
    padding: 4px 6px 38px;
    background: var(--sahukar-ui-bg);
    color: var(--sahukar-ui-text);
    font-family: var(--sahukar-ui-font);
    font-size: 11px;
    line-height: 1.16;
    color-scheme: light;
}

.sahukar-form-shell {
    width: 100%;
    max-width: 1580px;
    margin: 0 auto;
}

.sahukar-form-header {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 5px 8px;
    margin-bottom: 4px;
    border: 1px solid var(--sahukar-ui-line);
    border-radius: var(--sahukar-ui-radius-md);
    background: var(--sahukar-ui-surface);
    box-shadow: var(--sahukar-ui-shadow);
}

.sahukar-product-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--sahukar-ui-primary);
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1;
    text-transform: uppercase;
}

.sahukar-title-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.sahukar-title-line h1,
.sahukar-title-line h2 {
    margin: 0;
    color: var(--sahukar-ui-text);
    font-size: 16px;
    font-weight: 760;
    letter-spacing: -.015em;
    line-height: 1.08;
}

.sahukar-header-truth {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--sahukar-ui-muted);
    font-size: 9px;
    white-space: nowrap;
}

.sahukar-header-truth strong {
    color: var(--sahukar-ui-text);
    font-size: 9.5px;
}

.sahukar-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 6px;
    border: 1px solid var(--sahukar-ui-line);
    border-radius: 999px;
    background: #f8fafc;
    color: var(--sahukar-ui-muted);
    font-size: 9px;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
}

.sahukar-status-pending,
.sahukar-control-pending {
    border-color: #eed58a;
    background: var(--sahukar-ui-warning-bg);
    color: var(--sahukar-ui-warning);
}

.sahukar-form-page fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sahukar-form-section {
    min-width: 0;
    margin: 0 0 4px;
    overflow: hidden;
    border: 1px solid var(--sahukar-ui-line);
    border-radius: var(--sahukar-ui-radius-md);
    background: var(--sahukar-ui-surface);
    box-shadow: var(--sahukar-ui-shadow);
}

.sahukar-section-header {
    min-height: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 3px 6px;
    border-bottom: 1px solid #e4eaf1;
    background: var(--sahukar-ui-surface-soft);
    line-height: 1.1;
}

.sahukar-section-index {
    width: 21px;
    min-width: 21px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border-radius: 4px;
    background: #e7efff;
    color: var(--sahukar-ui-primary);
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
}

.sahukar-section-title {
    margin: 0;
    color: var(--sahukar-ui-primary-dark) !important;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.1;
}

.sahukar-section-meta {
    margin-left: auto;
    min-width: 0;
    overflow: hidden;
    color: var(--sahukar-ui-muted);
    font-size: 8.6px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sahukar-form-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 4px 6px;
    align-items: end;
    padding: 4px 6px 5px;
}

.sahukar-field {
    min-width: 0;
    display: grid;
    gap: 1px;
    align-content: start;
}

.sahukar-span-1 { grid-column: span 1; }
.sahukar-span-2 { grid-column: span 2; }
.sahukar-span-3 { grid-column: span 3; }
.sahukar-span-4 { grid-column: span 4; }
.sahukar-span-5 { grid-column: span 5; }
.sahukar-span-6 { grid-column: span 6; }
.sahukar-span-7 { grid-column: span 7; }
.sahukar-span-8 { grid-column: span 8; }
.sahukar-span-9 { grid-column: span 9; }
.sahukar-span-10 { grid-column: span 10; }
.sahukar-span-11 { grid-column: span 11; }
.sahukar-span-12 { grid-column: 1 / -1; }

.sahukar-field > label,
.sahukar-form-page .sahukar-label {
    min-height: 10px;
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin: 0;
    overflow: hidden;
    color: var(--sahukar-ui-label);
    font-size: var(--sahukar-label-font);
    font-weight: 700;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sahukar-field > label i,
.sahukar-form-page .sahukar-required {
    color: var(--sahukar-ui-danger);
    font-style: normal;
    font-weight: 800;
}

.sahukar-field > label small,
.sahukar-form-page .sahukar-optional {
    color: #98a2b3;
    font-size: 8.5px;
    font-weight: 500;
}

.sahukar-control {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    height: var(--sahukar-control-height);
    min-height: var(--sahukar-control-height);
    padding: 2px 7px;
    border: 1px solid var(--sahukar-ui-line-strong);
    border-radius: 4px;
    outline: none;
    background: #fff;
    color: var(--sahukar-ui-text);
    font-family: var(--sahukar-ui-font);
    font-size: var(--sahukar-control-font);
    font-weight: 500;
    line-height: 1.08;
    transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

select.sahukar-control {
    padding-top: 1px;
    padding-bottom: 1px;
}

textarea.sahukar-control {
    height: auto;
    min-height: 52px;
    resize: vertical;
    line-height: 1.3;
    padding-top: 4px;
    padding-bottom: 4px;
}

.sahukar-control:focus,
.sahukar-control:focus-visible {
    border-color: var(--sahukar-ui-primary);
    box-shadow: 0 0 0 2px rgba(36, 87, 214, .12);
}

.sahukar-control:disabled,
.sahukar-control[readonly] {
    background: #f5f7fa;
    color: #667085;
    cursor: not-allowed;
}

.sahukar-control.invalid,
.sahukar-control[aria-invalid="true"] {
    border-color: var(--sahukar-ui-danger);
    background: #fff8f7;
    box-shadow: 0 0 0 1px rgba(180, 35, 24, .08);
}

.sahukar-control-pending {
    display: flex;
    align-items: center;
    font-size: 10px;
    font-weight: 760;
}

.sahukar-form-page .validation-message,
.sahukar-validation-message {
    display: block;
    margin-top: 1px;
    color: var(--sahukar-ui-danger);
    font-size: 8.5px;
    line-height: 1.05;
}

.sahukar-inline-note,
.sahukar-help-block {
    min-height: var(--sahukar-control-height);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border: 1px dashed #d3dce8;
    border-radius: var(--sahukar-ui-radius-sm);
    background: #f8fafd;
    color: var(--sahukar-ui-muted);
    font-size: var(--sahukar-help-font);
    line-height: 1.08;
}

.sahukar-inline-note b,
.sahukar-help-block b {
    color: var(--sahukar-ui-label);
    font-weight: 700;
    white-space: nowrap;
}

.sahukar-action-bar {
    position: sticky;
    bottom: 0;
    z-index: 4;
    min-height: 35px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 4px;
    padding: 3px 5px;
    border: 1px solid var(--sahukar-ui-line);
    border-radius: var(--sahukar-ui-radius-md);
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -2px 8px rgba(31, 42, 54, .05);
    backdrop-filter: blur(4px);
}

.sahukar-action-bar > span,
.sahukar-action-bar .sahukar-action-note {
    margin-right: auto;
    color: var(--sahukar-ui-muted);
    font-size: 8.6px;
}

.sahukar-btn {
    min-height: var(--sahukar-button-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    text-align: center;
    vertical-align: middle;
    padding: 3px 10px;
    border: 1px solid transparent;
    border-radius: var(--sahukar-ui-radius-sm);
    font-family: var(--sahukar-ui-font);
    font-size: 10.5px;
    font-weight: 760;
    line-height: 1;
    cursor: pointer;
    transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.sahukar-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(36, 87, 214, .16);
}

.sahukar-btn:disabled {
    opacity: .6;
    cursor: default;
}

.sahukar-btn-primary {
    border-color: var(--sahukar-ui-primary-dark);
    background: var(--sahukar-ui-primary-dark);
    color: #fff;
}

.sahukar-btn-primary:hover:not(:disabled) {
    border-color: var(--sahukar-ui-primary);
    background: var(--sahukar-ui-primary);
}

.sahukar-btn-secondary {
    border-color: #c7d7f8;
    background: #eaf1ff;
    color: var(--sahukar-ui-primary-dark);
}

.sahukar-btn-secondary:hover:not(:disabled) {
    background: #dfe9ff;
}

.sahukar-btn-danger {
    border-color: var(--sahukar-ui-danger);
    background: var(--sahukar-ui-danger);
    color: #fff;
}

.sahukar-alert {
    margin-bottom: 6px;
    padding: 7px 9px;
    border: 1px solid;
    border-radius: var(--sahukar-ui-radius-md);
    background: #fff;
    font-size: 10.5px;
}

.sahukar-alert-error {
    border-color: #e4a7a1;
    background: #fff5f4;
    color: #8f1d14;
}

.sahukar-alert-success {
    border-color: #9bc6a4;
    background: #f4fbf5;
    color: #155c2d;
}

.sahukar-success-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5px;
}

.sahukar-success-title > span {
    color: var(--sahukar-ui-muted);
    font-size: 9.5px;
}

.sahukar-result-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin: 5px 0;
}

.sahukar-result-grid > span {
    min-width: 0;
    padding: 5px 6px;
    border: 1px solid #dce5df;
    border-radius: var(--sahukar-ui-radius-sm);
    background: #fff;
}

.sahukar-result-grid b {
    display: block;
    margin-bottom: 2px;
    font-size: 9px;
}

.sahukar-result-grid code {
    display: block;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sahukar-activation-line {
    margin: 5px 0;
    color: var(--sahukar-ui-muted);
    font-size: 9.5px;
}


/* SONAR Tenant-Onboarding density parity â€” desktop baseline.
   Keep shared/global: no page-specific sizing overrides. */
@media (min-width: 1201px) {
    .sahukar-form-shell {
        max-width: 1600px;
    }

    .sahukar-form-header {
        border-radius: 5px;
    }

    .sahukar-form-section,
    .sahukar-action-bar {
        border-radius: 5px;
    }

    .sahukar-section-header {
        background: #eef3f8;
    }

    .sahukar-section-title {
        letter-spacing: -.005em;
    }

    .sahukar-field > label,
    .sahukar-form-page .sahukar-label {
        font-weight: 700;
    }

    .sahukar-control {
        border-color: #bcc8d8;
    }

    .sahukar-inline-note,
    .sahukar-help-block {
        border-color: #d2dbe7;
    }
}

/* Large laptop / small desktop */
@media (max-width: 1200px) {
    .sahukar-form-page {
        --sahukar-control-height: 32px;
        --sahukar-control-font: 12px;
        --sahukar-label-font: 10.5px;
        --sahukar-button-height: 32px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .sahukar-form-grid {
        gap: 6px 7px;
    }

    .sahukar-form-grid > .sahukar-span-2 { grid-column: span 4; }
    .sahukar-form-grid > .sahukar-span-3 { grid-column: span 4; }
    .sahukar-form-grid > .sahukar-span-4 { grid-column: span 6; }
    .sahukar-form-grid > .sahukar-span-5 { grid-column: span 6; }
    .sahukar-form-grid > .sahukar-span-8,
    .sahukar-form-grid > .sahukar-span-9 { grid-column: 1 / -1; }
}

/* Tablet / narrow laptop */
@media (max-width: 900px) {
    .sahukar-form-page {
        --sahukar-control-height: 36px;
        --sahukar-control-font: 12.5px;
        --sahukar-label-font: 11px;
        --sahukar-help-font: 10px;
        --sahukar-button-height: 36px;
    }

    .sahukar-form-header {
        min-height: 54px;
    }

    .sahukar-form-grid > [class*="sahukar-span-"] {
        grid-column: span 6;
    }

    .sahukar-form-grid > .sahukar-inline-note,
    .sahukar-form-grid > .sahukar-span-8,
    .sahukar-form-grid > .sahukar-span-9,
    .sahukar-form-grid > .sahukar-span-10,
    .sahukar-form-grid > .sahukar-span-11,
    .sahukar-form-grid > .sahukar-span-12 {
        grid-column: 1 / -1;
    }

    .sahukar-result-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Phone */
@media (max-width: 720px) {
    .sahukar-form-page {
        --sahukar-control-height: 44px;
        --sahukar-control-font: 14px;
        --sahukar-label-font: 12px;
        --sahukar-help-font: 11px;
        --sahukar-button-height: 44px;
        padding: 6px 6px 70px;
        font-size: 13px;
    }

    .sahukar-form-header {
        min-height: 0;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 8px 9px;
    }

    .sahukar-title-line h1,
    .sahukar-title-line h2 {
        font-size: 18px;
    }

    .sahukar-header-truth {
        width: 100%;
        justify-content: space-between;
    }

    .sahukar-section-header {
        min-height: 35px;
        padding: 6px 8px;
    }

    .sahukar-section-index {
        width: 26px;
        min-width: 26px;
        height: 22px;
        font-size: 10.5px;
    }

    .sahukar-section-title {
        font-size: 12.5px;
    }

    .sahukar-section-meta {
        max-width: 48%;
        font-size: 9.5px;
    }

    .sahukar-form-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .sahukar-form-grid > [class*="sahukar-span-"] {
        grid-column: 1 / -1;
    }

    .sahukar-field > label,
    .sahukar-form-page .sahukar-label {
        min-height: 14px;
        white-space: normal;
    }

    .sahukar-control {
        padding-left: 10px;
        padding-right: 10px;
    }

    textarea.sahukar-control {
        min-height: 82px;
    }

    .sahukar-inline-note,
    .sahukar-help-block {
        min-height: 40px;
        padding: 6px 9px;
    }

    .sahukar-action-bar {
        min-height: 58px;
        flex-wrap: wrap;
        gap: 7px;
        padding: 7px;
    }

    .sahukar-action-bar > span,
    .sahukar-action-bar .sahukar-action-note {
        width: 100%;
        margin: 0;
        order: 2;
    }

    .sahukar-action-bar .sahukar-btn,
    .sahukar-action-bar > .sahukar-btn {
        width: 100%;
    }

    .sahukar-result-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .sahukar-success-title {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}

/* Very small phone */
@media (max-width: 420px) {
    .sahukar-form-page {
        padding-left: 4px;
        padding-right: 4px;
    }

    .sahukar-form-header,
    .sahukar-form-section,
    .sahukar-action-bar,
    .sahukar-alert {
        border-radius: 5px;
    }

    .sahukar-title-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .sahukar-status-pill {
        white-space: normal;
    }

    .sahukar-section-meta {
        max-width: 42%;
    }
}

/* Coarse-pointer tablet safeguard: compact visually, touch-safe interactively. */
@media (pointer: coarse) and (min-width: 721px) {
    .sahukar-form-page {
        --sahukar-control-height: max(var(--sahukar-control-height), 38px);
        --sahukar-button-height: max(var(--sahukar-button-height), 38px);
    }
}

/* SAHUKAR OS FORM DESIGN SYSTEM V1 END */

/* SAHUKAR OS COMMON IDENTITY CONSOLIDATION V1 START */
.identity-context-messages { display: grid; gap: 4px; margin-bottom: 4px; }
.identity-form-page .identity-form-shell { max-width: 1120px; }
.identity-card-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 5px; align-items: start; }
.identity-card-grid--login { max-width: 980px; margin: 0 auto; }
.identity-compact-grid { grid-template-columns: minmax(0, 1fr); }
.identity-compact-grid > [class*="sahukar-span-"] { grid-column: 1 / -1; }
.identity-intro { display: grid; gap: 2px; padding: 5px 6px 1px; color: var(--sahukar-ui-muted); font-size: 9px; }
.identity-intro strong { color: var(--sahukar-ui-text); font-size: 10px; }
.identity-form-actions, .identity-page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 4px 6px 5px; }
.identity-form-actions > span { margin-right: auto; color: var(--sahukar-ui-muted); font-size: 8.6px; }
.identity-form-actions > a, .identity-page-actions > a { margin-right: auto; color: var(--sahukar-ui-primary-dark); font-size: 9.5px; font-weight: 700; text-decoration: none; }
.identity-page-actions > a + a { margin-right: 0; }
.identity-page-actions form { margin: 0; }
.identity-action-message { margin: 0 0 4px; }
.identity-rule-list { display: grid; gap: 4px; padding: 5px 6px; }
.identity-rule-list > div { display: grid; gap: 1px; padding: 5px 6px; border: 1px solid var(--sahukar-ui-line); border-radius: var(--sahukar-ui-radius-sm); background: #fbfcfe; }
.identity-rule-list strong { font-size: 9.5px; }
.identity-rule-list span { color: var(--sahukar-ui-muted); font-size: 8.6px; }
.identity-fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 5px 6px; }
.identity-fact-grid > div { display: grid; gap: 1px; padding: 5px 6px; border: 1px solid var(--sahukar-ui-line); border-radius: var(--sahukar-ui-radius-sm); background: #fbfcfe; }
.identity-fact-grid span { color: var(--sahukar-ui-muted); font-size: 8.5px; }
.identity-fact-grid strong { font-size: 9.5px; }
.identity-empty { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px; color: var(--sahukar-ui-muted); }
.identity-empty strong { color: var(--sahukar-ui-text); }
.identity-empty .sahukar-btn { margin-left: auto; }
.identity-session-strip { display: flex; align-items: center; gap: 10px; min-width: 0; }
.identity-session-strip--body { margin: 0 0 4px; padding: 5px 6px; border: 1px solid var(--sahukar-ui-line); border-radius: var(--sahukar-ui-radius-md); background: var(--sahukar-ui-surface); }
.identity-session-strip > span { display: grid; min-width: 0; }
.identity-session-strip small { color: var(--sahukar-ui-muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.identity-session-strip strong { max-width: 230px; overflow: hidden; font-size: 9.5px; text-overflow: ellipsis; white-space: nowrap; }
.identity-tenant-list, .identity-user-list { display: grid; gap: 3px; padding: 5px 6px; }
.identity-tenant-row, .identity-user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; min-height: 34px; padding: 4px 5px; border: 1px solid var(--sahukar-ui-line); border-radius: var(--sahukar-ui-radius-sm); background: #fff; }
.identity-tenant-row > div, .identity-user-main { display: grid; gap: 1px; min-width: 0; }
.identity-tenant-row span, .identity-user-main span, .identity-user-main small { color: var(--sahukar-ui-muted); font-size: 8.5px; overflow-wrap: anywhere; }
.identity-tenant-row strong, .identity-user-main strong { font-size: 9.5px; }
.identity-user-row { grid-template-columns: minmax(220px, 1fr) auto minmax(240px, auto); }
.identity-row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.identity-row-actions form { margin: 0; }
.identity-current { color: var(--sahukar-ui-primary-dark); font-size: 9px; font-weight: 800; }
@media (max-width: 900px) { .identity-card-grid { grid-template-columns: minmax(0, 1fr); } .identity-user-row { grid-template-columns: minmax(0, 1fr) auto; } .identity-row-actions { grid-column: 1 / -1; justify-content: flex-start; } }
@media (max-width: 720px) { .identity-session-strip { width: 100%; align-items: stretch; flex-direction: column; gap: 5px; } .identity-session-strip strong { max-width: 100%; } .identity-session-strip .sahukar-btn { width: 100%; } .identity-fact-grid { grid-template-columns: minmax(0, 1fr); } .identity-form-actions, .identity-page-actions { align-items: stretch; flex-direction: column; } .identity-form-actions > span, .identity-form-actions > a, .identity-page-actions > a, .identity-page-actions form, .identity-page-actions .sahukar-btn { width: 100%; margin: 0; } .identity-user-row { grid-template-columns: minmax(0, 1fr); } .identity-row-actions { grid-column: auto; } .identity-row-actions form, .identity-row-actions .sahukar-btn { width: 100%; } }
/* SAHUKAR OS COMMON IDENTITY CONSOLIDATION V1 END */

/* SAHUKAR BORROWER COMBOBOX R8 — GLOBAL STYLES FOR JS-CREATED OPTIONS.
   Razor-scoped .razor.css cannot style children inserted dynamically by JS
   because those nodes have no Razor CSS-scope attribute. Fix is deliberately
   in the existing first-party form stylesheet; only the borrower popup is affected. */
.borrower-suggest-popup:popover-open {
  display:block;position:fixed;inset:auto;box-sizing:border-box;margin:0;
  padding:3px;background:#fff;border:1px solid #a8b9d6;border-radius:5px;
  box-shadow:0 6px 16px rgba(15,35,70,.17);overflow-y:auto;
  overflow-x:hidden;overscroll-behavior:contain;z-index:2147483000;
  color:#1c2d49;font-family:inherit;font-size:12px;
}
.borrower-suggest-popup:popover-open .borrower-suggest-options {display:block;overflow:visible;max-height:none;min-height:0;}
.borrower-suggest-popup:popover-open .borrower-suggest-item {
  display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;
  width:100%;box-sizing:border-box;text-align:left;gap:3px;padding:7px 9px;
  border:0;border-radius:3px;background:#fff;text-decoration:none;
  color:#1c2d49;font:inherit;font-size:12px;line-height:1.3;
  white-space:normal;overflow-wrap:anywhere;min-height:36px;
}
.borrower-suggest-popup:popover-open .borrower-suggest-item span {
  display:block;margin:0;font-size:12px;line-height:1.3;color:inherit;font-weight:500;
}
.borrower-suggest-popup:popover-open .borrower-suggest-item small {
  display:block;margin:0;color:#687a92;font-size:10px;line-height:1.3;font-weight:400;
}
.borrower-suggest-popup:popover-open .borrower-suggest-item:hover,
.borrower-suggest-popup:popover-open .borrower-suggest-item[aria-selected="true"],
.borrower-suggest-popup:popover-open .borrower-suggest-item:focus-visible {
  background:#e9f0ff;color:#184bb6;outline:0;
}
.borrower-suggest-popup:popover-open .borrower-suggest-status {
  display:block;padding:8px 9px;color:#60758e;font-size:11px;line-height:1.35;
}
.borrower-suggest-popup:popover-open .borrower-suggest-status[hidden] {display:none!important;}

/* R10 borrower-only popup density. Dynamic DOM requires global stylesheet. */
.borrower-suggest-popup:popover-open {max-height:208px;padding:2px;font-size:9.3px;}
.borrower-suggest-popup:popover-open .borrower-suggest-item {min-height:0;gap:1px;padding:4px 6px;font-size:9.3px;line-height:1.15;border-bottom:1px solid #edf0f5;}
.borrower-suggest-popup:popover-open .borrower-suggest-item span {font-size:9.3px;line-height:1.15;}
.borrower-suggest-popup:popover-open .borrower-suggest-item small {font-size:8.3px;line-height:1.12;}
.borrower-suggest-popup:popover-open .borrower-suggest-status {padding:4px 6px;font-size:9px;line-height:1.15;}
@media(max-width:600px) {
 .borrower-suggest-popup:popover-open .borrower-suggest-item span {font-size:10.5px;}
 .borrower-suggest-popup:popover-open .borrower-suggest-item small {font-size:9px;}
}
