/*
================================================================================
Borrower Onboarding Hub - CSS Styles
Based on Loan Officer Onboarding Hub design with Borrower-specific adjustments
================================================================================
*/

/* ============================================================================
   WELCOME BANNER
   ============================================================================ */

.borrower-welcome-banner {
    background: linear-gradient(135deg, #002BC6 0%, #001d8a 100%);
    border-radius: 12px;
    padding: 24px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 43, 198, 0.2);
}

.borrower-welcome-banner__content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex: 1;
}

.borrower-welcome-banner__icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.borrower-welcome-banner__text {
    flex: 1;
}

.borrower-welcome-banner__title {
    font-family: 'Wavehaus', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.borrower-welcome-banner__description {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.5;
    max-width: 600px;
}

.borrower-welcome-banner__actions {
    flex-shrink: 0;
}

.borrower-welcome-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: #FFFFFF;
    color: #002BC6;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border-radius: 45px;
    text-decoration: none;
    text-transform: lowercase;
    transition: all 0.2s ease;
}

.borrower-welcome-banner__cta:hover {
    background: #f0f4ff;
    color: #001d8a;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.borrower-welcome-banner__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.borrower-welcome-banner__close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Welcome Banner Responsive */
@media (max-width: 992px) {
    .borrower-welcome-banner {
        padding: 20px 24px;
    }
    
    .borrower-welcome-banner__content {
        flex-wrap: wrap;
        gap: 16px;
    }
    
    .borrower-welcome-banner__title {
        font-size: 20px;
    }
    
    .borrower-welcome-banner__description {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .borrower-welcome-banner {
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .borrower-welcome-banner__content {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .borrower-welcome-banner__icon {
        display: none;
    }
    
    .borrower-welcome-banner__actions {
        width: 100%;
    }
    
    .borrower-welcome-banner__cta {
        width: 100%;
        text-align: center;
    }
    
    .borrower-welcome-banner__close {
        top: 12px;
        right: 12px;
    }
}

/* ============================================================================
   FOLLOW-UP BANNER (State B)
   ============================================================================ */

.borrower-followup-banner-wrapper {
    border: 1px solid #D8DCEB;
    border-radius: 8px;
    padding: 24px;
    background: #FFFFFF;
    width: 100%;
    margin-bottom: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.borrower-followup-banner {
    background: #FFFFFF;
    border-radius: 0 0 8px 8px;
    box-shadow: 6px 6px 54px 0px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 16px 24px;
    position: relative;
}

.borrower-followup-banner__image {
    width: 260px;
    height: 170px;
    flex-shrink: 0;
    background: #f9f9ff;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.borrower-followup-banner__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.borrower-followup-banner__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 32px;
    min-width: 0;
}

.borrower-followup-banner__header {
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.borrower-followup-banner__title {
    font-family: 'Wavehaus', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #002BC6;
    line-height: 1;
    margin: 0;
    flex: 1;
}

.borrower-followup-banner__close {
    width: 39px;
    height: 39px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

.borrower-followup-banner__close:hover {
    opacity: 0.6;
}

.borrower-followup-banner__stats {
    display: flex;
    align-items: center;
    gap: 0;
}

.borrower-followup-banner__stat {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
}

.borrower-followup-banner__stat:first-child {
    padding-left: 0;
}

.borrower-followup-banner__stat:last-child {
    padding-right: 0;
}

.borrower-followup-banner__stat-number {
    font-family: 'Wavehaus', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #13151A;
    line-height: 1.4;
}

.borrower-followup-banner__stat-label {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #393E4D;
    line-height: 1;
}

.borrower-followup-banner__stat-divider {
    width: 1px;
    height: 32px;
    background: #C7CBD9;
    flex-shrink: 0;
}

/* Follow-up Banner Responsive - Tablet */
@media (max-width: 992px) {
    .borrower-followup-banner {
        gap: 24px;
    }

    .borrower-followup-banner__image {
        width: 200px;
        height: 140px;
    }

    .borrower-followup-banner__title {
        font-size: 22px;
    }

    .borrower-followup-banner__body {
        gap: 24px;
    }

    .borrower-followup-banner__stat {
        gap: 8px;
        padding: 0 16px;
    }

    .borrower-followup-banner__stat-number {
        font-size: 18px;
    }

    .borrower-followup-banner__stat-label {
        font-size: 14px;
    }
}

/* Follow-up Banner Responsive - Mobile */
@media (max-width: 768px) {
    .borrower-followup-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 16px 24px;
    }

    .borrower-followup-banner-wrapper {
        padding: 16px;
    }

    .borrower-followup-banner__image {
        width: 100%;
        height: 189px;
        border-radius: 0;
    }

    .borrower-followup-banner__body {
        gap: 16px;
    }

    .borrower-followup-banner__header {
        width: 100%;
    }

    .borrower-followup-banner__title {
        font-size: 20px;
        line-height: 1.4;
    }

    .borrower-followup-banner__close {
        width: 34px;
        height: 34px;
        position: absolute;
        top: 16px;
        right: 16px;
    }

    .borrower-followup-banner__stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .borrower-followup-banner__stat {
        padding: 0;
        gap: 4px;
    }

    .borrower-followup-banner__stat-divider {
        display: none;
    }
}

/* ============================================================================
   ONBOARDING HUB MODAL
   ============================================================================ */

/* Modal Overlay */
.borrower-onboarding-hub-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    z-index: 1999 !important;
    padding: 20px !important;
    padding-right: 30px !important;
    padding-bottom: 20px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.borrower-onboarding-hub-modal.is-visible {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.8) !important;
}

.borrower-onboarding-hub-modal.is-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    background: rgba(0, 0, 0, 0) !important;
}

/* Wrapper */
.borrower-onboarding-hub-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    max-width: 500px;
    width: 100%;
    transform-origin: bottom right;
    position: relative;
    margin-right: 80px;
    margin-bottom: 70px;
}

/* Hub Container */
.borrower-onboarding-hub {
    background: #FFFAEB;
    border: 1px solid rgba(181, 71, 8, 0.22);
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    border-radius: 45px;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                border-radius 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.borrower-onboarding-hub-modal.is-visible .borrower-onboarding-hub {
    transform: scale(1);
    opacity: 1;
    border-radius: 8px;
}

.borrower-onboarding-hub-modal.is-hidden .borrower-onboarding-hub {
    transform: scale(0);
    opacity: 0;
    border-radius: 45px;
}

/* Action Required Badge */
.borrower-onboarding-hub__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFAEB;
    border: 1px solid #B54708;
    color: #B54708;
    font-family: 'Wavehaus', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

/* Header */
.borrower-onboarding-hub__header {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.borrower-onboarding-hub__stepper {
    width: 72px;
    height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
    position: relative;
}

.borrower-onboarding-hub__progress-svg {
    width: 58px;
    height: 58px;
}

.borrower-onboarding-hub__progress-count {
    position: absolute;
    top: 21px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #002BC6;
    letter-spacing: -0.7px;
    white-space: nowrap;
    line-height: 20px;
}

.borrower-onboarding-hub__header-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.borrower-onboarding-hub__title {
    font-family: 'Wavehaus', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #13151A;
    margin: 0;
    line-height: 1.4;
}

.borrower-onboarding-hub__subtitle {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #13151A;
    margin: 0;
    line-height: 1.4;
}

/* Task List */
.borrower-onboarding-hub__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.borrower-onboarding-hub__task {
    display: flex;
    align-items: center;
    gap: 24px;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 8px 16px;
    min-height: 56px;
    transition: border-color 0.2s ease;
}

.borrower-onboarding-hub__task:hover {
    border: 1px solid #002BC6;
}

.borrower-onboarding-hub__task-icon {
    width: 32.836px;
    height: 32.836px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #C7CBD9;
    border-radius: 59.703px;
    flex-shrink: 0;
}

.borrower-onboarding-hub__task-icon img {
    width: 24px;
    height: 24px;
    display: block;
}

.borrower-onboarding-hub__task-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.borrower-onboarding-hub__task-title {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    margin: 0;
    line-height: 30px;
    height: 25px;
}

.borrower-onboarding-hub__task-description {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #535766;
    margin: 0;
    line-height: normal;
}

.borrower-onboarding-hub__task-action {
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.borrower-onboarding-hub.loaded .borrower-onboarding-hub__task-action {
    opacity: 1;
}

.borrower-onboarding-hub__task-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: #002BC6;
    color: #FFFFFF;
    font-family: 'Wavehaus', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color 0.2s;
    line-height: 17.46px;
}

.borrower-onboarding-hub__task-start:hover {
    background: #001d8a;
    color: #FFFFFF;
    text-decoration: none;
}

.borrower-onboarding-hub__task-done {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    background: rgba(223, 236, 226, 0.6);
    color: #005337;
    font-family: 'Wavehaus', sans-serif;
    font-size: 11px;
    font-weight: 600;
    border-radius: 45px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 17.46px;
}

.borrower-onboarding-hub__task-done-dot {
    width: 11px;
    height: 11px;
    background: #14AE5C;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ============================================================================
   FLOATING BUTTON
   ============================================================================ */

.borrower-onboarding-hub__progress-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 73px;
    background: #002BC6;
    color: #FFFFFF;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 45px;
    cursor: pointer;
    white-space: nowrap;
    line-height: 21.34px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.borrower-onboarding-hub__progress-btn--floating {
    position: fixed !important;
    bottom: 30px;
    right: 110px !important;
    padding: 14px 28px !important;
    font-size: 14px !important;
    box-shadow: 0 4px 20px rgba(0, 43, 198, 0.3) !important;
    z-index: 1999 !important;
    opacity: 0 !important;
    transform: scale(0.8) !important;
    transition: opacity 0.3s ease, transform 0.3s ease, bottom 0.3s ease !important;
    pointer-events: none !important;
}

.borrower-onboarding-hub__progress-btn--floating.is-visible {
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

.borrower-onboarding-hub__progress-btn:hover {
    background: #001d8a;
    box-shadow: 0 6px 25px rgba(0, 43, 198, 0.4);
}

.borrower-onboarding-hub__progress-btn--floating:hover {
    transform: scale(1.05);
}

/* Floating button always visible */
#borrower-onboarding-progress-btn-floating {
    display: inline-flex !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    pointer-events: auto !important;
}

/* Loading spinner */
.borrower-onboarding-fab__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: borrower-onboarding-fab-spin 0.6s linear infinite;
    flex-shrink: 0;
}

.borrower-onboarding-fab--loading .borrower-onboarding-fab__spinner {
    display: inline-block;
    margin-right: 8px;
}

.borrower-onboarding-fab--loading .borrower-onboarding-fab__text {
    opacity: 0.8;
}

@keyframes borrower-onboarding-fab-spin {
    to { transform: rotate(360deg); }
}

#borrower-onboarding-progress-btn-floating.is-ready .borrower-onboarding-fab__spinner {
    display: none;
}

#borrower-onboarding-progress-btn-floating.is-ready .borrower-onboarding-fab__text {
    opacity: 1;
}

/* Animation when completing 100% */
#borrower-onboarding-progress-btn-floating.is-completing {
    animation: borrower-fab-complete 0.5s ease-out forwards;
}

@keyframes borrower-fab-complete {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0;
        transform: scale(0.8);
        pointer-events: none;
    }
}

/* ============================================================================
   CELEBRATION MODAL
   ============================================================================ */

.borrower-onboarding-celebration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.borrower-onboarding-celebration-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.borrower-onboarding-celebration__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.borrower-onboarding-celebration__content {
    position: relative;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 32px 48px 48px 48px;
    max-width: 513px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.borrower-onboarding-celebration-modal.is-visible .borrower-onboarding-celebration__content {
    transform: scale(1);
}

.borrower-onboarding-celebration__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.borrower-onboarding-celebration__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 275px;
}

.borrower-onboarding-celebration__icon {
    width: 116px;
    height: 116px;
    flex-shrink: 0;
}

.borrower-onboarding-celebration__close {
    width: 39px;
    height: 39px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.borrower-onboarding-celebration__close:hover {
    opacity: 0.7;
}

.borrower-onboarding-celebration__body {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.borrower-onboarding-celebration__title {
    font-family: 'Wavehaus', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: normal;
    text-align: center;
    width: 100%;
}

.borrower-onboarding-celebration__subtitle {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #73788C;
    margin: 0;
    line-height: normal;
    text-align: center;
    width: 100%;
}

.borrower-onboarding-celebration__divider {
    width: 417px;
    max-width: 100%;
    height: 1px;
    background: #D8DCEB;
}

.borrower-onboarding-celebration__question {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #13151A;
    margin: 0;
    text-align: center;
    width: 100%;
}

.borrower-onboarding-celebration__rate {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.borrower-onboarding-celebration__emojis {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 71px;
}

.borrower-onboarding-celebration__emoji {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 16px;
    background: transparent;
    border: 1px solid #D8DCEB;
    border-radius: 8px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #73788C;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    gap: 4px;
}

.borrower-onboarding-celebration__emoji:hover {
    border-color: #002BC6;
    background: #F0F4FF;
    color: #002BC6;
}

.borrower-onboarding-celebration__emoji.active {
    border-color: #002BC6;
    background: #002BC6;
    color: #FFFFFF;
}

.borrower-onboarding-celebration__gradient {
    width: 64px;
    height: 5px;
    flex-shrink: 0;
}

.borrower-onboarding-celebration__gradient--bad-neutral {
    background: linear-gradient(90deg, #EC221F 0%, #E8B931 100%);
}

.borrower-onboarding-celebration__gradient--neutral-good {
    background: linear-gradient(90deg, #E8B931 0%, #14AE5C 100%);
    flex: 1;
    min-width: 64px;
}

.borrower-onboarding-celebration__textfield {
    width: 100%;
    height: 102px;
    padding: 16px;
    background: #FFFFFF;
    border: 1px solid #C7CBD9;
    border-radius: 8px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #13151A;
    resize: none;
    transition: border-color 0.2s ease;
}

.borrower-onboarding-celebration__textfield::placeholder {
    color: #A8ADBF;
}

.borrower-onboarding-celebration__textfield:focus {
    outline: none;
    border-color: #002BC6;
}

.borrower-onboarding-celebration__button {
    width: 100%;
    padding: 14px 73px;
    background: #002BC6;
    color: #FFFFFF;
    border: none;
    border-radius: 45px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 21.34px;
    cursor: pointer;
    transition: background-color 0.2s ease, opacity 0.2s ease;
    text-transform: lowercase;
    text-align: center;
}

.borrower-onboarding-celebration__button:hover {
    background: #001d8a;
}

.borrower-onboarding-celebration__button:disabled,
.borrower-onboarding-celebration__button.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   RESPONSIVE STYLES
   ============================================================================ */

@media (max-width: 992px) {
    .borrower-onboarding-hub-modal {
        padding: 16px !important;
        padding-bottom: 100px !important;
    }
    
    .borrower-onboarding-hub-wrapper {
        max-width: 90% !important;
        margin-right: 0 !important;
    }

    .borrower-onboarding-hub__title {
        font-size: 20px;
    }

    .borrower-onboarding-hub__subtitle {
        font-size: 15px;
    }
    
    .borrower-onboarding-hub__progress-btn {
        padding: 12px 50px;
        font-size: 15px;
    }
    
    .borrower-onboarding-hub__progress-btn--floating {
        right: 80px !important;
    }
}

@media (max-width: 768px) {
    .borrower-onboarding-hub-modal {
        padding: 12px !important;
        padding-bottom: 80px !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }

    .borrower-onboarding-hub-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        margin-right: 0 !important;
        transform-origin: center bottom !important;
    }

    .borrower-onboarding-hub {
        padding: 16px !important;
        gap: 16px !important;
        max-height: calc(100svh - 100px) !important;
        transform-origin: center bottom !important;
        width: 100% !important;
    }
    
    .borrower-onboarding-hub-modal.is-visible .borrower-onboarding-hub {
        border-radius: 16px !important;
    }
    
    .borrower-onboarding-hub__progress-btn--floating {
        width: 60px !important;
        height: 60px !important;
        border-radius: 50% !important;
        padding: 0 !important;
        font-size: 0 !important;
        position: fixed !important;
        bottom: 30px;
        right: 22% !important;
        transform: translateX(50%) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    
    .borrower-onboarding-hub__progress-btn--floating .borrower-onboarding-fab__text,
    .borrower-onboarding-hub__progress-btn--floating .borrower-onboarding-fab__spinner {
        display: none !important;
    }
    
    .borrower-onboarding-hub__progress-btn--floating::before {
        content: attr(data-progress) !important;
        font-size: 16px !important;
        font-family: 'Wavehaus', sans-serif !important;
        font-weight: 700 !important;
        color: white !important;
        line-height: 1 !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
        display: block !important;
    }
    
    .borrower-onboarding-hub__badge {
        font-size: 10px;
        padding: 2px 6px;
    }

    .borrower-onboarding-hub__header {
        gap: 16px !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .borrower-onboarding-hub__stepper {
        width: 58px !important;
        height: 80px !important;
        margin: 0 auto !important;
    }
    
    .borrower-onboarding-hub__header-text {
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .borrower-onboarding-hub__progress-svg {
        width: 50px;
        height: 50px;
    }

    .borrower-onboarding-hub__progress-count {
        font-size: 12px;
        top: 19px;
    }

    .borrower-onboarding-hub__title {
        font-size: 18px;
    }

    .borrower-onboarding-hub__subtitle {
        font-size: 14px;
    }

    .borrower-onboarding-hub__list {
        gap: 12px;
    }

    .borrower-onboarding-hub__task {
        gap: 12px !important;
        padding: 12px !important;
        min-height: 60px !important;
        flex-direction: row !important;
        align-items: flex-start !important;
    }

    .borrower-onboarding-hub__task-icon {
        width: 32px !important;
        height: 32px !important;
        margin-top: 4px !important;
    }

    .borrower-onboarding-hub__task-icon img {
        width: 20px !important;
        height: 20px !important;
    }
    
    .borrower-onboarding-hub__task-content {
        flex: 1 !important;
        min-width: 0 !important;
    }

    .borrower-onboarding-hub__task-title {
        font-size: 14px !important;
        line-height: 1.4 !important;
        height: auto !important;
        margin-bottom: 4px !important;
    }

    .borrower-onboarding-hub__task-description {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
    
    .borrower-onboarding-hub__task-action {
        margin-top: 4px !important;
        align-self: flex-start !important;
    }

    .borrower-onboarding-hub__task-start {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .borrower-onboarding-hub__task-done {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }
    
    .borrower-onboarding-hub__progress-btn {
        padding: 12px 32px !important;
        font-size: 14px !important;
        width: 100% !important;
        max-width: 280px !important;
    }

    /* Celebration Modal Mobile */
    .borrower-onboarding-celebration-modal {
        align-items: flex-end;
        justify-content: flex-end;
    }

    .borrower-onboarding-celebration__content {
        max-width: 100%;
        width: 100%;
        margin: 0;
        padding: 32px 16px 48px 16px;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    }

    .borrower-onboarding-celebration-modal.is-visible .borrower-onboarding-celebration__content {
        transform: translateY(0);
    }

    .borrower-onboarding-celebration__header {
        width: 100%;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
    }

    .borrower-onboarding-celebration__icon-wrapper {
        width: 248px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .borrower-onboarding-celebration__icon {
        width: 94.213px;
        height: 94.213px;
    }

    .borrower-onboarding-celebration__close {
        width: 31.675px;
        height: 31.675px;
        position: relative;
        top: auto;
        right: auto;
    }

    .borrower-onboarding-celebration__close svg {
        width: 100%;
        height: 100%;
    }

    .borrower-onboarding-celebration__title {
        font-size: 32px;
    }

    .borrower-onboarding-celebration__subtitle {
        font-size: 16px;
    }

    .borrower-onboarding-celebration__divider {
        width: 100%;
        max-width: 417px;
    }

    .borrower-onboarding-celebration__question {
        font-size: 16px;
    }

    .borrower-onboarding-celebration__emojis {
        height: 45px;
        flex-wrap: nowrap;
        gap: 0;
        justify-content: space-between;
    }

    .borrower-onboarding-celebration__gradient {
        display: block;
        width: 64px;
    }

    .borrower-onboarding-celebration__gradient--neutral-good {
        flex: 1;
        min-width: 64px;
    }

    .borrower-onboarding-celebration__emoji {
        flex: none;
        min-width: auto;
        font-size: 16px;
    }

    .borrower-onboarding-celebration__textfield {
        height: 102px;
        font-size: 16px;
    }

    .borrower-onboarding-celebration__button {
        padding: 14px 73px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .borrower-onboarding-hub-modal {
        padding: 8px !important;
        padding-bottom: 72px !important;
    }

    .borrower-onboarding-hub {
        padding: 14px !important;
        gap: 12px !important;
        border-radius: 12px !important;
        max-height: calc(100svh - 88px) !important;
    }
    
    .borrower-onboarding-hub__header {
        gap: 12px !important;
    }
    
    .borrower-onboarding-hub__title {
        font-size: 16px !important;
    }

    .borrower-onboarding-hub__subtitle {
        font-size: 13px !important;
    }
    
    .borrower-onboarding-hub__task {
        padding: 10px !important;
        min-height: 56px !important;
    }
    
    .borrower-onboarding-hub__task-title {
        font-size: 13px !important;
    }

    .borrower-onboarding-hub__task-description {
        font-size: 12px !important;
    }
    
    .borrower-onboarding-hub__progress-btn {
        padding: 10px 24px !important;
        font-size: 13px !important;
    }
    
    .borrower-onboarding-hub__progress-btn--floating {
        width: 56px !important;
        height: 56px !important;
        bottom: 20px !important;
    }
    
    .borrower-onboarding-hub__progress-btn--floating::before {
        font-size: 14px !important;
    }

    /* Celebration Modal Extra Small */
    .borrower-onboarding-celebration__icon-wrapper {
        width: auto;
        flex: 1;
        justify-content: center;
    }

    .borrower-onboarding-celebration__icon {
        width: 80px;
        height: 80px;
    }

    .borrower-onboarding-celebration__title {
        font-size: 26px;
    }

    .borrower-onboarding-celebration__emojis {
        height: auto;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .borrower-onboarding-celebration__gradient {
        display: none;
    }

    .borrower-onboarding-celebration__emoji {
        flex: 1;
        min-width: 70px;
        font-size: 14px;
        padding: 0 12px;
    }
}

/* ============================================================================
   BORROWER SEARCH BAR
   Matches Figma node 941:12758 exactly
   ============================================================================ */

/* On dashboard, remove header margin so search bar sits flush */
body.page-template-dashboard #header {
    margin-bottom: 0;
}

.borrower-search-bar {
    background: #FFFFFF;
    border: 1px solid #D8DCEB;
    border-radius: 0 0 16px 16px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
    /* Horizontal padding is set dynamically by JS to match .header-nav-layout */
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    overflow: visible;
    position: relative;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    transition: padding 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                gap 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                max-width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                border-radius 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Top row: toggle + fields + actions */
.borrower-search-bar__form {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.borrower-search-bar__row {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

/* Purchase/Refinance Toggle Pill */
.borrower-search-bar__toggle {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.borrower-search-bar__toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 104px;
    height: 78px;
    padding: 8px;
    background: rgba(162, 177, 230, 0.22);
    border: none;
    border-radius: 8px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #002BC6;
    text-transform: uppercase;
    letter-spacing: 0.24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-radius 0.2s ease;
}

.borrower-search-bar__toggle-btn:hover {
    background: rgba(162, 177, 230, 0.35);
}

.borrower-search-bar__toggle.is-open .borrower-search-bar__toggle-btn {
    border-radius: 8px 8px 0 0;
}

.borrower-search-bar__toggle.is-open .borrower-search-bar__toggle-chevron {
    transform: rotate(180deg);
}

.borrower-search-bar__toggle-btn svg {
    flex-shrink: 0;
}

.borrower-search-bar__toggle-chevron {
    width: 24px;
    height: 24px;
    transition: transform 0.2s ease;
}

.borrower-search-bar__toggle-dropdown {
    position: fixed;
    z-index: 9999;
    background: #FFFFFF;
    border: 1px solid #C7CBD9;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 6px 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform-origin: top center;
    opacity: 1;
    transform: scaleY(1);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.borrower-search-bar__toggle-dropdown.is-entering {
    opacity: 0;
    transform: scaleY(0.4);
}

.borrower-search-bar__toggle-dropdown.is-leaving {
    opacity: 0;
    transform: scaleY(0.4);
}

.borrower-search-bar__toggle-option {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #0C0C0C;
    text-transform: uppercase;
    letter-spacing: 0.24px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.borrower-search-bar__toggle-option:hover {
    background: rgba(162, 177, 230, 0.23);
}

/* Fields + ZIP wrapper */
.borrower-search-bar__fields-wrapper {
    flex: 1;
    display: flex;
    align-items: stretch;
    min-width: 0;
}

/* Fields container (left side — all fields except ZIP) */
.borrower-search-bar__fields {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 16px;
    border: 1px solid #E0E0E0;
    border-radius: 8px 0 0 8px;
    padding: 8px 16px;
    min-width: 0;
    overflow: visible;
}

/* ZIP container (right side — default: gray like other fields) */
.borrower-search-bar__zip-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: flex-end;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 0 8px 8px 0;
    padding: 8px 16px;
    flex-shrink: 0;
    min-width: 122px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* ZIP container — blue highlight on focus or when county is showing */
.borrower-search-bar__zip-container:focus-within,
.borrower-search-bar__zip-container--active {
    border-color: #002BC6;
    box-shadow: 0px 0px 25.1px 0px rgba(0, 43, 198, 0.25);
}

.borrower-search-bar__zip-container:focus-within .borrower-search-bar__label,
.borrower-search-bar__zip-container--active .borrower-search-bar__label {
    color: #002BC6;
}

.borrower-search-bar__zip-container:focus-within .borrower-search-bar__info-icon,
.borrower-search-bar__zip-container--active .borrower-search-bar__info-icon {
    fill: #002BC6;
}

/* ZIP status (searching / error) — absolutely positioned below ZIP container */
.borrower-search-bar__zip-status {
    position: absolute;
    font-family: 'Wavehaus', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 15.52px;
    display: none;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    z-index: 10;
}

.borrower-search-bar__zip-status.borrower-search-bar__zip-status--searching,
.borrower-search-bar__zip-status.borrower-search-bar__zip-status--error {
    display: flex;
}

.borrower-search-bar__zip-status--searching {
    color: #73788C;
}

.borrower-search-bar__zip-status--searching::before {
    content: '';
    display: inline-block;
    width: 19px;
    height: 19px;
    border: 2px solid #D8DCEB;
    border-top-color: #73788C;
    border-radius: 50%;
    animation: borrower-search-bar-spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes borrower-search-bar-spin {
    to { transform: rotate(360deg); }
}

.borrower-search-bar__zip-status--error {
    color: #B3261E;
}

.borrower-search-bar__zip-status--error::before {
    content: '';
    display: inline-block;
    width: 19px;
    height: 19px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 19 19' fill='none'%3E%3Ccircle cx='9.5' cy='9.5' r='8' stroke='%23B3261E' stroke-width='1.5'/%3E%3Cpath d='M12 7L7 12' stroke='%23B3261E' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M7 7L12 12' stroke='%23B3261E' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat;
    flex-shrink: 0;
}

/* ZIP container error state — red border */
.borrower-search-bar__zip-container--error {
    border-color: #B3261E;
}

/* County field inside ZIP container */
/* County field inside ZIP container — blue labels, separator */
.borrower-search-bar__zip-container .borrower-search-bar__field--county {
    padding: 0 15px;
    border-left: 1px solid rgba(0, 43, 198, 0.2);
    margin-left: 8px;
    padding-left: 16px;
}

.borrower-search-bar__zip-container .borrower-search-bar__field--county .borrower-search-bar__label {
    color: #002BC6;
}

.borrower-search-bar__zip-container .borrower-search-bar__field--county .borrower-search-bar__info-icon {
    fill: #002BC6;
}

.borrower-search-bar__field--county .borrower-search-bar__select {
    font-size: 14px;
}

.borrower-search-bar__field--county .borrower-search-bar__select:disabled {
    opacity: 1;
    color: #000000;
    -webkit-text-fill-color: #000000;
}

/* County field focus state — when dropdown is open */
.borrower-search-bar__field--county-focus {
    background: #FFFFFF;
    border: 1px solid #002BC6;
    border-radius: 8px;
    box-shadow: 0px 0px 25.1px 0px rgba(0, 43, 198, 0.25);
    margin: -1px;
    padding: 8px 12px !important;
}

.borrower-search-bar__field--county-focus .borrower-search-bar__label {
    color: #002BC6;
}

.borrower-search-bar__field--county-focus .borrower-search-bar__info-icon {
    fill: #002BC6;
}

/* County dropdown — no special zip-container override needed, always absolute */

/* County dropdown — absolute positioned below county field */
.borrower-search-bar__location-dropdown {
    position: fixed;
    z-index: 9999;
    background: #FFFFFF;
    border: 1px solid #002BC6;
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 8px 16px;
    box-shadow: 0 0 25px rgba(0, 43, 198, 0.25);
}

.borrower-search-bar__location-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: normal;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.borrower-search-bar__location-item:hover {
    background: rgba(162, 177, 230, 0.22);
}

.borrower-search-bar__location-header {
    padding: 4px 8px 6px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #535766;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.borrower-search-bar__county-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #000000;
    line-height: normal;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
}

.borrower-search-bar__county-option:hover,
.borrower-search-bar__county-option.is-selected {
    background: rgba(162, 177, 230, 0.22);
}

.borrower-search-bar__county-clear {
    padding: 8px;
    margin-top: 4px;
    border-top: 1px solid #E8EAF2;
    font-family: 'Wavehaus', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #535766;
    cursor: pointer;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.borrower-search-bar__county-clear:hover {
    color: #002BC6;
    background: rgba(162, 177, 230, 0.12);
}

/* Selected location display */
.borrower-search-bar__value--location {
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.borrower-search-bar__value--location .borrower-search-bar__chevron-down {
    flex-shrink: 0;
    display: none;
}

.borrower-search-bar__value--location.is-selected .borrower-search-bar__input--zip {
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    pointer-events: none;
    cursor: pointer;
}

.borrower-search-bar__value--location.is-selected .borrower-search-bar__chevron-down {
    display: block;
}

.borrower-search-bar__value--location.is-selected {
    cursor: pointer;
}

/* No coverage alert — separate card below search bar */
.borrower-search-bar__no-coverage-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    margin-top: -16px;
    position: relative;
    z-index: 0;
}

.borrower-search-bar__no-coverage-wrapper--visible {
    max-height: 250px;
}

/* White background card that extends below search bar */
.borrower-search-bar__no-coverage-bg {
    background: #FFFFFF;
    border: 1px solid #D8DCEB;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
    padding: 24px 40px 16px;
    display: flex;
    justify-content: center;
}

.borrower-search-bar__no-coverage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(253, 232, 232, 0.4) 0%, rgba(253, 232, 232, 0.4) 100%), #FFFFFF;
    width: 75%;
}

.borrower-search-bar__no-coverage-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.borrower-search-bar__no-coverage-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.borrower-search-bar__no-coverage-text {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #8C0F0F;
    line-height: 1.4;
}

.borrower-search-bar__no-coverage-text strong {
    font-weight: 700;
}

.borrower-search-bar__no-coverage-text a {
    color: #8C0F0F;
    text-decoration: none;
}

.borrower-search-bar__no-coverage-text a:hover {
    text-decoration: underline;
}

.borrower-search-bar__no-coverage-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.borrower-search-bar__no-coverage-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid #8C0F0F;
    border-radius: 45px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #8C0F0F;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.borrower-search-bar__no-coverage-btn:hover {
    background: rgba(140, 15, 15, 0.05);
}

.borrower-search-bar__no-coverage-btn--text {
    border: none;
    padding: 13px 0;
}

/* Vertical divider between fields */
.borrower-search-bar__divider {
    width: 1px;
    align-self: stretch;
    background: #E0E0E0;
    flex-shrink: 0;
}

/* ===================== ADVANCED SEARCH ===================== */
.borrower-search-bar__advanced {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 0 141px 24px;
}

/* Type of Loan section */
.borrower-search-bar__advanced-type {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 729px;
    align-self: flex-start;
}

.borrower-search-bar__advanced-type-label {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

/* Loan type chips */
.borrower-search-bar__advanced-chips {
    display: flex;
    gap: 16px;
    width: 100%;
}

.borrower-search-bar__chip {
    flex: 1;
    height: 63px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid #D8DCEB;
    border-radius: 8px;
    background: #FFFFFF;
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #535766;
    cursor: pointer;
    padding: 6px 16px;
    line-height: normal;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.borrower-search-bar__chip--active {
    background: #002BC6;
    border-color: #002BC6;
    color: #F5F7FC;
}

.borrower-search-bar__chip-sub {
    font-weight: 400;
    font-size: 12px;
}

.borrower-search-bar__conforming-limit {
    font-family: 'Wavehaus', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #002bc6;
}

.borrower-search-bar__pmi-warning {
    font-family: 'Wavehaus', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #002bc6;
    border: 1px solid #002bc6;
    border-radius: 6px;
    padding: 8px 12px;
    margin-top: 8px;
}

/* Loan details card */
.borrower-search-bar__advanced-card {
    width: 100%;
    border: 1px solid #D8DCEB;
    border-radius: 8px;
    background: #FFFFFF;
    padding: 32px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.borrower-search-bar__advanced-row {
    display: flex;
    gap: 16px;
    width: 100%;
}

.borrower-search-bar__advanced-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.borrower-search-bar__advanced-label {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 4px;
}

.borrower-search-bar__advanced-label .borrower-search-bar__info-icon {
    width: 16.5px;
    height: 16.5px;
}

.borrower-search-bar__advanced-select,
.borrower-search-bar__advanced-input {
    height: 46px;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 12px 15px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #535766;
    background: #FFFFFF;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    outline: none;
}

.borrower-search-bar__advanced-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M8 10L12 14L16 10' stroke='%23535766' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.borrower-search-bar__advanced-input--readonly {
    background: #FFFFFF;
    color: #535766;
    cursor: default;
}

.borrower-search-bar__advanced-select:focus,
.borrower-search-bar__advanced-input:focus {
    border-color: #002BC6;
}

/* Subordinate financing checkbox */
.borrower-search-bar__advanced-checkbox {
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    height: 41px;
}

.borrower-search-bar__advanced-checkbox input[type="checkbox"] {
    width: 24px;
    height: 24px;
    border: 1px solid #767676;
    border-radius: 2.5px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
}

.borrower-search-bar__advanced-checkbox input[type="checkbox"]:checked {
    background: #002BC6;
    border-color: #002BC6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M5 12L10 17L19 7' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

/* Advanced search toggle button */
.borrower-search-bar__advanced-toggle-btn {
    width: 598px;
    height: 50px;
    border: 1.5px solid #002BC6;
    border-radius: 45px;
    background: #FFFFFF;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #002BC6;
    cursor: pointer;
    text-transform: lowercase;
    transition: background 0.2s ease;
}

.borrower-search-bar__advanced-toggle-btn:hover {
    background: rgba(0, 43, 198, 0.05);
}

/* Bullets */
.borrower-search-bar__advanced-bullets {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.borrower-search-bar__advanced-bullet {
    display: flex;
    align-items: center;
    gap: 8px;
}

.borrower-search-bar__advanced-bullet svg {
    flex-shrink: 0;
}

.borrower-search-bar__advanced-bullet span {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #393E4D;
    white-space: nowrap;
}

/* ===================== END ADVANCED SEARCH ===================== */

/* Individual field — default flex */
.borrower-search-bar__field {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-width: 0;
    flex: 1;
}

/* Field-specific proportions — sized to fit labels + info icons */
.borrower-search-bar__field--purchase-price   { flex: 1.30; padding: 0 8px; }
.borrower-search-bar__field--down-payment     { flex: 1.50; padding: 0 8px; }
.borrower-search-bar__field--home-value       { flex: 1.70; padding: 0 8px; }
.borrower-search-bar__field--loan-amount      { flex: 1.14; padding: 0 8px; }
.borrower-search-bar__field--credit-score     { flex: 1.70; padding: 0 8px; }
.borrower-search-bar__field--zip              { padding: 0 15px; flex: 0 0 auto; }
/* When ZIP is inside the main fields container (county resolved state) */
.borrower-search-bar__fields .borrower-search-bar__field--zip   { flex: 0.60; padding: 0 8px; }
.borrower-search-bar__fields .borrower-search-bar__field--county { flex: 1.40; padding: 0 8px; }
.borrower-search-bar__field--credit-score .borrower-search-bar__select { font-size: 14px; }

.borrower-search-bar__label {
    display: flex;
    align-items: center;
    gap: 3.745px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #73788C;
    white-space: nowrap;
    line-height: normal;
    min-height: 20px;
    margin: 0;
}

.borrower-search-bar__label span {
    line-height: normal;
}

.borrower-search-bar__info-icon {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}

.borrower-search-bar__value {
    width: 100%;
    padding: 4px 0;
}

.borrower-search-bar__input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    padding: 0;
    line-height: normal;
}

.borrower-search-bar__input::placeholder {
    color: #A8ADBF;
    font-weight: 600;
}

.borrower-search-bar__select {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    padding: 0;
    padding-right: 28px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: normal;
}

/* Dropdown wrapper for selects — positions the chevron arrow */
.borrower-search-bar__value--dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.borrower-search-bar__value--dropdown::after {
    display: none;
}

.borrower-search-bar__chevron-down {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    pointer-events: none;
    flex-shrink: 0;
}

/* Actions: Search button + Filter */
.borrower-search-bar__actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.borrower-search-bar__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 164px;
    padding: 13px 35px;
    background: #002BC6;
    border: none;
    border-radius: 45px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #F5F7FC;
    cursor: pointer;
    white-space: nowrap;
    line-height: 21.34px;
    transition: background 0.2s ease;
}

.borrower-search-bar__submit:hover:not(:disabled) {
    background: #001d8a;
}

.borrower-search-bar__submit[disabled],
.borrower-search-bar__submit:disabled {
    background: #D8DCEB !important;
    color: #9296A6 !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.borrower-search-bar__filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 47px;
    height: 47px;
    border: 1px solid #002BC6;
    border-radius: 60px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease;
}

.borrower-search-bar__filter-btn:hover {
    background: rgba(0, 43, 198, 0.05);
}

/* Collapse / Expand toggle */
.borrower-search-bar__collapse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    padding: 0;
}

.borrower-search-bar__collapse-line {
    flex: 1;
    height: 1px;
    background: #D8DCEB;
}

.borrower-search-bar__collapse-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    white-space: nowrap;
}

.borrower-search-bar__collapse-btn span {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #002BC6;
    text-transform: capitalize;
    line-height: 20px;
}

.borrower-search-bar__collapse-btn:hover span {
    text-decoration: underline;
}

.borrower-search-bar__collapse-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.borrower-search-bar__collapse-icon.is-flipped {
    transform: rotate(180deg);
}

/* Collapse / Expand transitions */
.borrower-search-bar__collapse-line {
    transition: opacity 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
                width 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.borrower-search-bar__form {
    transition: max-height 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
                opacity 0.6s ease;
    will-change: max-height, opacity;
    overflow: visible;
}

/* Collapsed state */
.borrower-search-bar.is-collapsed {
    padding: 4px 16px;
    gap: 0;
    max-width: 260px;
    border-radius: 0 0 24px 24px;
}

.borrower-search-bar.is-collapsed .borrower-search-bar__form {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.borrower-search-bar.is-collapsed .borrower-search-bar__collapse-line {
    opacity: 0;
    width: 0;
    overflow: hidden;
}

/* Sticky floating bubble */
.borrower-search-bubble {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.borrower-search-bubble.is-visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.borrower-search-bubble__btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    background: #FFFFFF;
    border: 1px solid #D8DCEB;
    border-radius: 0 0 16px 16px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.12);
    white-space: nowrap;
    transition: box-shadow 0.2s ease;
}

.borrower-search-bubble__btn span {
    color: #002BC6;
    text-transform: capitalize;
    line-height: 20px;
}

.borrower-search-bubble__btn:hover {
    box-shadow: 0px 6px 24px 0px rgba(0, 0, 0, 0.18);
}

.borrower-search-bubble__btn svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

/* ============================================================================
   SEARCH BAR RESPONSIVE
   ============================================================================ */

/* Hide entire search bar (form + collapse) and bubble on mobile/tablet */
@media (max-width: 768px) {
    .borrower-search-bar {
        display: none !important;
    }
    .borrower-search-bubble {
        display: none !important;
    }
}

/* Tablet breakpoint — stack fields into a grid */
@media (min-width: 769px) and (max-width: 992px) {
    .borrower-search-bar__row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .borrower-search-bar__toggle {
        width: auto;
    }

    .borrower-search-bar__toggle-btn {
        width: auto;
        height: auto;
        padding: 10px 16px;
    }

    .borrower-search-bar__fields-wrapper {
        flex-wrap: wrap;
        order: 3;
        width: 100%;
    }

    .borrower-search-bar__fields {
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        border-radius: 8px 8px 0 0;
    }

    .borrower-search-bar__zip-container {
        width: 100%;
        border-radius: 0 0 8px 8px;
    }

    .borrower-search-bar__divider {
        display: none;
    }

    .borrower-search-bar__field {
        flex: 1 1 calc(33.33% - 8px) !important;
        min-width: 120px;
        padding: 8px 0 !important;
        border-bottom: 1px solid #F5F7FC;
    }

    .borrower-search-bar__actions {
        margin-left: auto;
    }

    .borrower-search-bar__submit {
        width: auto;
        padding: 12px 24px;
        font-size: 14px;
    }

    .borrower-search-bar__filter-btn {
        width: 42px;
        height: 42px;
    }
}

/* Medium screens — reduce spacing slightly */
@media (min-width: 993px) and (max-width: 1200px) {
    .borrower-search-bar__fields {
        gap: 10px;
        padding: 8px 12px;
    }

    .borrower-search-bar__field--down-payment,
    .borrower-search-bar__field--home-value,
    .borrower-search-bar__field--loan-amount,
    .borrower-search-bar__field--credit-score,
    .borrower-search-bar__field--zip {
        padding: 0 8px;
    }

    .borrower-search-bar__input,
    .borrower-search-bar__select {
        font-size: 14px;
    }

    .borrower-search-bar__submit {
        width: auto;
        padding: 12px 24px;
        font-size: 14px;
    }

    .borrower-search-bar__filter-btn {
        width: 42px;
        height: 42px;
    }

    .borrower-search-bar__divider {
        height: 50px;
    }
}

/* Large screens — full Figma fidelity */
@media (min-width: 1201px) and (max-width: 1400px) {
    .borrower-search-bar__fields {
        gap: 12px;
    }

    .borrower-search-bar__field--down-payment,
    .borrower-search-bar__field--home-value,
    .borrower-search-bar__field--loan-amount,
    .borrower-search-bar__field--credit-score,
    .borrower-search-bar__field--zip {
        padding: 0 10px;
    }
}

/* ============================================================================
   BORROWER DASHBOARD CARDS
   Based on Figma designs for Borrower Dashboard
   ============================================================================ */

/* Base Card Style */
.borrower-dashboard-card {
    background: #FFFFFF;
    border: 1px solid #D8DCEB;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 6px 6px 54px 0px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

/* Card Header */
.borrower-dashboard-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid #D8DCEB;
    width: 100%;
}

.borrower-dashboard-card__title {
    font-family: 'Wavehaus', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #13151A;
    margin: 0;
}

.borrower-dashboard-card__title-with-counter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.borrower-dashboard-card__counter {
    font-family: 'Wavehaus', sans-serif;
    font-size: 12.738px;
    font-weight: 400;
    color: #000000;
    line-height: 0.97;
}

.borrower-dashboard-card__see-all {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #002BC6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.borrower-dashboard-card__see-all:hover {
    color: #001d8a;
    text-decoration: underline;
}

/* Empty State */
.borrower-dashboard-card__empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex: 1;
    background: #F5F7FC;
    border-radius: 8px;
    padding: 10px 16px;
    min-height: 200px;
    text-align: center;
}

.borrower-dashboard-card__empty-state--large {
    gap: 40px;
    min-height: 287px;
}

.borrower-dashboard-card__empty-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.borrower-dashboard-card__empty-title {
    font-family: 'Wavehaus', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #002BC6;
    margin: 0;
    line-height: normal;
}

.borrower-dashboard-card__empty-text {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #535766;
    margin: 0;
    line-height: normal;
    max-width: 509px;
}

/* Card Button */
.borrower-dashboard-card__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid #002BC6;
    border-radius: 45px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #002BC6;
    text-decoration: none;
    text-transform: lowercase;
    line-height: 21.34px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.borrower-dashboard-card__btn:hover {
    background: #002BC6;
    color: #FFFFFF;
    text-decoration: none;
}

/* Documents List Style */
.borrower-dashboard-card__docs-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

.borrower-dashboard-card__doc-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 16px;
    height: 46px;
    background: #FFFFFF;
    border-bottom: 1px solid #F5F7FC;
}

.borrower-dashboard-card__doc-label {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 30px;
    width: 90px;
}

.borrower-dashboard-card__doc-action {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #002BC6;
    text-decoration: underline;
    line-height: 1.4;
    padding-left: 8px;
    transition: color 0.2s ease;
}

.borrower-dashboard-card__doc-action:hover {
    color: #001d8a;
    text-decoration: underline;
}

.borrower-dashboard-card__doc-action--uploaded {
    color: #10B981;
    text-decoration: none;
}

.borrower-dashboard-card__doc-action--uploaded:hover {
    color: #10B981;
    text-decoration: none;
    cursor: default;
}

/* Greeting above welcome banner */
.borrower-dashboard-greeting {
    font-family: 'Wavehaus', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.4;
    color: #13151A;
    margin: 24px 0 24px 0;
}

/* Grid Layout for Dashboard Home */
.borrower-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.borrower-dashboard-grid--full {
    grid-template-columns: 1fr;
}

/* Row with 3 columns */
.borrower-dashboard-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Row with 2 columns */
.borrower-dashboard-row-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

/* Row with 2 columns - searches variant: Recent search wider, Saved search smaller */
.borrower-dashboard-row-2--searches {
    grid-template-columns: 3fr 2fr;
}

/* Applications Card - Full Width */
.borrower-dashboard-card--applications {
    width: 100%;
    gap: 16px;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .borrower-dashboard-row-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .borrower-dashboard-row-3 > *:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 992px) {
    .borrower-dashboard-greeting {
        font-size: 24px;
    }

    .borrower-dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .borrower-dashboard-row-3 {
        grid-template-columns: 1fr;
    }
    
    .borrower-dashboard-row-3 > *:last-child {
        grid-column: span 1;
    }
    
    .borrower-dashboard-row-2 {
        grid-template-columns: 1fr;
    }

    .borrower-dashboard-row-2--searches {
        grid-template-columns: 1fr;
    }
    
    .borrower-dashboard-card__title {
        font-size: 20px;
    }
    
    .borrower-dashboard-card__empty-title {
        font-size: 20px;
    }
    
    .borrower-dashboard-card__empty-text {
        font-size: 14px;
    }
    
    .borrower-dashboard-card__btn {
        font-size: 16px;
        padding: 12px 20px;
    }
}

@media (max-width: 768px) {
    .borrower-dashboard-card {
        padding: 16px;
        gap: 16px;
    }
    
    .borrower-dashboard-card__empty-state {
        min-height: 180px;
        padding: 16px;
    }
    
    .borrower-dashboard-card__empty-state--large {
        min-height: 220px;
        gap: 24px;
    }
    
    .borrower-dashboard-card__title {
        font-size: 18px;
    }
    
    .borrower-dashboard-card__see-all {
        font-size: 14px;
    }
    
    .borrower-dashboard-card__empty-title {
        font-size: 18px;
    }
    
    .borrower-dashboard-card__empty-text {
        font-size: 14px;
    }
    
    .borrower-dashboard-card__btn {
        font-size: 14px;
        padding: 10px 16px;
        width: 100%;
    }
    
    .borrower-dashboard-card__doc-item {
        padding: 8px 12px;
    }
    
    .borrower-dashboard-card__doc-label {
        font-size: 13px;
        width: auto;
        flex: 1;
    }
}

/* ============================================================================
   RECENT / SAVED SEARCHES TABLE
   Matches Figma node 1:22557
   ============================================================================ */

/* Card header variant for searches (bottom border built into card header) */
.borrower-dashboard-card__header--searches {
    border-bottom: 1px solid #D8DCEB;
    padding-bottom: 8px;
}

.borrower-dashboard-card__title--searches {
    font-family: 'Wavehaus', sans-serif;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.4;
    color: #13151A;
}

/* Table container */
.borrower-searches-table {
    width: 100%;
    overflow-x: auto;
}

.borrower-searches-table::-webkit-scrollbar {
    height: 6px;
}

.borrower-searches-table::-webkit-scrollbar-track {
    background: #F5F7FC;
    border-radius: 3px;
}

.borrower-searches-table::-webkit-scrollbar-thumb {
    background: #C7CBD9;
    border-radius: 3px;
}

.borrower-searches-table__inner {
    min-width: 520px;
}

/* Header Row */
.borrower-searches-table__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F5F7FC;
    border-radius: 8px 8px 0 0;
    padding: 8px 16px;
}

.borrower-searches-table__header .borrower-searches-table__cell {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 30px;
    white-space: nowrap;
}

/* Status header label with chevron */
.borrower-searches-table__header .borrower-searches-table__cell--status {
    display: flex;
    align-items: center;
    gap: 4px;
}

.borrower-searches-table__header-chevron {
    width: 18px;
    height: 18px;
    transform: rotate(-90deg);
    flex-shrink: 0;
}

/* Data Rows Container */
.borrower-searches-table__body {
    display: flex;
    flex-direction: column;
}

/* Individual Data Row */
.borrower-searches-table__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 50px;
    padding: 8px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #F5F7FC;
    border-right: 3px solid transparent;
    transition: background-color 0.15s ease, border-right-color 0.15s ease;
}

/* Hover — blue highlight with right border */
.borrower-searches-table__row:hover {
    background: #D8DCEB;
    border-right-color: #002BC6;
}

/* Cell base */
.borrower-searches-table__cell {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #535766;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Column Widths */
.borrower-searches-table__cell--date {
    width: 63px;
    flex-shrink: 0;
}

.borrower-searches-table__cell--zip {
    width: 205px;
    flex-shrink: 0;
}

.borrower-searches-table__cell--amount {
    width: 80px;
    flex-shrink: 0;
    text-align: right;
}

.borrower-searches-table__cell--piti {
    width: 52px;
    flex-shrink: 0;
    text-align: right;
}

.borrower-searches-table__cell--status {
    width: 103px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Resume Button — Blue pill */
.borrower-searches-table__resume-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 71px;
    height: 25px;
    background: #002BC6;
    border: 0.545px solid #002BC6;
    border-radius: 10.909px;
    padding: 5.455px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-transform: lowercase;
    text-decoration: none;
    text-align: center;
    line-height: 1.035;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.borrower-searches-table__resume-btn:hover {
    background: #001d8a;
    color: #FFFFFF;
    text-decoration: none;
}

/* Applied Badge — Gray pill (reusing badge pattern) */
.borrower-searches-table__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    padding: 2px 8px;
    background: #C7CBD9;
    border: 1px solid #73788C;
    border-radius: 16px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #535766;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

/* Row chevron (for applied status) */
.borrower-searches-table__row-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Mobile card layout for searches */
.borrower-searches-cards {
    display: none;
}

.borrower-searches-card {
    background: #FFFFFF;
    border: 1px solid #F5F7FC;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.borrower-searches-card__row {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #535766;
    line-height: 1.4;
}

.borrower-searches-card__row strong {
    font-weight: 600;
    color: #13151A;
}

.borrower-searches-card__applied {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    text-decoration: none;
    padding-top: 4px;
}

/* Responsive: Searches Table */
@media (max-width: 768px) {
    .borrower-searches-table {
        display: none !important;
    }
    .borrower-searches-cards {
        display: block !important;
    }
}

@media (max-width: 1200px) {
    .borrower-searches-table__cell--zip {
        width: 140px;
    }
}

@media (max-width: 992px) {
    .borrower-searches-table__cell {
        font-size: 13px;
    }

    .borrower-searches-table__cell--zip {
        width: 120px;
    }

    .borrower-searches-table__header .borrower-searches-table__cell {
        font-size: 12px;
    }
}


/* ============================================================================
   SAVED SEARCHES LIST — Figma node 1:22757
   ============================================================================ */

/* List Container */
.borrower-saved-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Individual Saved Search Row */
a.borrower-saved-list__item,
.borrower-saved-list__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #F5F7FC;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

/* Hover — blue highlight with right border */
a.borrower-saved-list__item:hover,
.borrower-saved-list__item:hover {
    background: #D8DCEB;
    border-right: 3px solid #002BC6;
    text-decoration: none;
    color: inherit;
}

/* Content: title + date stacked vertically */
.borrower-saved-list__content {
    display: flex;
    flex: 1 0 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    line-height: 30px;
    font-size: 14px;
    color: #000000;
}

.borrower-saved-list__title {
    font-family: 'Wavehaus', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.borrower-saved-list__date {
    font-family: 'Wavehaus', sans-serif;
    font-weight: 400;
    white-space: nowrap;
}

/* Icon button (trash / message) */
.borrower-saved-list__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27.55px;
    height: 27.55px;
    background: #FFFFFF;
    border: 0.725px solid #C0C0C0;
    border-radius: 5.8px;
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.15s ease;
    padding: 0;
    text-decoration: none;
}

.borrower-saved-list__icon-btn:hover {
    background: #F5F7FC;
}

.borrower-saved-list__icon-btn svg {
    width: 17px;
    height: 17px;
}

.borrower-saved-list__delete-btn svg {
    width: 20px;
    height: 20px;
}

/* Chevron right */
.borrower-saved-list__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    a.borrower-saved-list__item,
    .borrower-saved-list__item {
        padding: 8px 12px;
        gap: 12px;
    }

    .borrower-saved-list__content {
        line-height: 1.4;
        font-size: 13px;
    }
}


/* ============================================================================
   APPLICATIONS TABLE - FLEX-BASED LAYOUT
   ============================================================================ */

/* Table Scroll Wrapper — horizontal scroll when content overflows */
.borrower-apps-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Subtle scrollbar styling */
.borrower-apps-table::-webkit-scrollbar {
    height: 4px;
}

.borrower-apps-table::-webkit-scrollbar-track {
    background: #F5F7FC;
    border-radius: 4px;
}

.borrower-apps-table::-webkit-scrollbar-thumb {
    background: #C7CBD9;
    border-radius: 4px;
}

.borrower-apps-table::-webkit-scrollbar-thumb:hover {
    background: #A8ADBF;
}

/* Inner container keeps columns aligned */
.borrower-apps-table__inner {
    min-width: 0;
    width: 100%;
}

/* Header Row */
.borrower-apps-table__header {
    display: flex;
    align-items: center;
    height: 46px;
    background: #F5F7FC;
    border-radius: 8px 8px 0 0;
    padding: 0 16px;
}

.borrower-apps-table__header .borrower-apps-table__cell {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    line-height: 30px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Header status */
.borrower-apps-table__header .borrower-apps-table__cell--status,
.borrower-apps-table__row .borrower-apps-table__cell--status {
    justify-content: flex-start;
}

/* Sort icon in header cells */
.borrower-apps-table__sort-icon {
    display: none;
}

/* Data Rows Container */
.borrower-apps-table__body {
    display: flex;
    flex-direction: column;
}

/* Individual Data Row (clickable <a> tag) */
a.borrower-apps-table__row,
.borrower-apps-table__row {
    display: flex;
    align-items: center;
    height: 50px;
    padding: 0 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #F5F7FC;
    transition: background-color 0.15s ease, border-right-color 0.15s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    border-right: 3px solid transparent;
}

/* Hover — blue highlight with right border */
a.borrower-apps-table__row:hover,
.borrower-apps-table__row:hover {
    background: #D8DCEB;
    border-right-color: #002BC6;
    text-decoration: none;
    color: inherit;
}

/* Cell base */
.borrower-apps-table__cell {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #535766;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 8px;
    box-sizing: border-box;
}

/* Column Widths — matches Figma layout with ZIP column */
.borrower-apps-table__cell--date {
    flex: 0 0 10%;
}

.borrower-apps-table__cell--lo {
    flex: 0 0 18%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.borrower-apps-table__cell--property {
    flex: 0 0 10%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.borrower-apps-table__cell--zip {
    flex: 0 0 6%;
}

.borrower-apps-table__cell--type {
    flex: 0 0 9%;
}

.borrower-apps-table__cell--product {
    flex: 0 0 7%;
}

.borrower-apps-table__cell--amount {
    flex: 0 0 10%;
    text-align: left;
    justify-content: flex-start;
}

.borrower-apps-table__cell--rate {
    flex: 0 0 7%;
    text-align: left;
    justify-content: flex-start;
}

.borrower-apps-table__cell--apr {
    flex: 0 0 7%;
    text-align: left;
    justify-content: flex-start;
}

.borrower-apps-table__cell--status {
    flex: 0 0 16%;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    padding-right: 0;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
}

/* Status Badge Styles */
.borrower-apps-table__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 16px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
    min-width: 110px;
    height: 24px;
    box-sizing: border-box;
    border: 1px solid #73788C;
    background: #C7CBD9;
    color: #535766;
}

/* Pre-Approved / Approved — Green */
.borrower-apps-table__badge.status-pre-approved,
.borrower-apps-table__badge.status-state-pre-approved,
.borrower-apps-table__badge.status-approved,
.borrower-apps-table__badge.status-state-approved {
    background: rgba(223, 236, 226, 0.6);
    border-color: #14AE5C;
    color: #005337;
}

/* Funded — Blue */
.borrower-apps-table__badge.status-funded {
    background: rgba(218, 228, 248, 0.5);
    border-color: #0F378C;
    color: #0F378C;
}

/* In Review — Yellow/Orange */
.borrower-apps-table__badge.status-in-review,
.borrower-apps-table__badge.status-state-in-review {
    background: #FFFAEB;
    border-color: #B54708;
    color: #B54708;
}

/* Submitted / New / Pending — Blue */
.borrower-apps-table__badge.status-submitted,
.borrower-apps-table__badge.status-state-submitted,
.borrower-apps-table__badge.status-new,
.borrower-apps-table__badge.status-state-new {
    background: rgba(218, 228, 248, 0.5);
    border-color: #0F378C;
    color: #0F378C;
}

/* Draft — Gray */
.borrower-apps-table__badge.status-draft {
    background: #D8DCEB;
    border-color: #A8ADBF;
    color: #535766;
}

/* Denied — Red */
.borrower-apps-table__badge.status-denied,
.borrower-apps-table__badge.status-state-denied {
    background: rgba(253, 232, 232, 0.4);
    border-color: #8C0F0F;
    color: #B3261E;
}

/* Stale Alert Icon (red circle-!) */
.borrower-apps-table__stale-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Row Icon — right-pointing chevron arrow */
.borrower-apps-table__row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Mobile card badge */
.app-card .borrower-apps-table__badge {
    font-size: 10px;
    padding: 2px 6px;
    width: auto;
}

.app-card__view-details {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #002BC6;
    padding-top: 8px;
    border-top: 1px solid #F5F7FC;
}

/* Responsive: Applications Table */
@media (max-width: 1200px) {
    .borrower-apps-table__cell {
        font-size: 13px;
        padding-right: 6px;
    }

    .borrower-apps-table__header .borrower-apps-table__cell {
        font-size: 12px;
    }
}

@media (max-width: 992px) {
    .borrower-apps-table__header,
    .borrower-apps-table__row {
        padding: 0 12px;
    }

    .borrower-apps-table__cell {
        font-size: 12px;
        padding-right: 6px;
    }

    .borrower-apps-table__header .borrower-apps-table__cell {
        font-size: 11px;
    }

    .borrower-apps-table__badge {
        font-size: 10px;
        padding: 2px 6px;
        width: auto;
    }
}

/* ============================================================================
   MESSAGES LIST — POPULATED STATE
   Matches Figma node 1:22905
   ============================================================================ */

/* List Container */
.borrower-msg-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Individual Message Row */
a.borrower-msg-list__item,
.borrower-msg-list__item {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 46px;
    padding: 8px 16px;
    background: #FFFFFF;
    border-bottom: 1px solid #F5F7FC;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease;
    cursor: pointer;
}

/* Hover — blue highlight with right border */
a.borrower-msg-list__item:hover,
.borrower-msg-list__item:hover {
    background: #D8DCEB;
    border-right: 3px solid #002BC6;
    text-decoration: none;
    color: inherit;
}

/* Message Icon */
.borrower-msg-list__icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Content: Name + count */
.borrower-msg-list__content {
    display: flex;
    flex: 1 0 0;
    align-items: center;
    gap: 4px;
    min-width: 0;
    line-height: 30px;
    font-size: 14px;
    color: #000000;
}

.borrower-msg-list__name {
    font-family: 'Wavehaus', sans-serif;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.borrower-msg-list__count {
    font-family: 'Wavehaus', sans-serif;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Status area: badge + chevron */
.borrower-msg-list__status {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

/* NEW Badge — green pill */
.borrower-msg-list__badge-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    background: rgba(223, 236, 226, 0.6);
    border: 1px solid #005337;
    border-radius: 16px;
    font-family: 'Wavehaus', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #005337;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

/* Chevron right */
.borrower-msg-list__chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    a.borrower-msg-list__item,
    .borrower-msg-list__item {
        height: auto;
        min-height: 46px;
        padding: 8px 12px;
        gap: 12px;
    }

    .borrower-msg-list__content {
        flex-wrap: wrap;
        line-height: 1.4;
        font-size: 13px;
    }

    .borrower-msg-list__name {
        font-size: 13px;
    }

    .borrower-msg-list__count {
        font-size: 12px;
        color: #535766;
    }
}


/* ============================================================================
   FAV LOAN OFFICERS - POPULATED STATE
   ============================================================================ */

/* LO List Container */
.borrower-dashboard-card__lo-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
}

/* Individual LO Row */
.borrower-dashboard-card__lo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    height: 50px;
    background: #FFFFFF;
    border-bottom: 1px solid #F5F7FC;
}

/* LO Profile (avatar + info) */
.borrower-dashboard-card__lo-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    min-width: 0;
}

.borrower-dashboard-card__lo-avatar {
    width: 27px;
    height: 27px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.borrower-dashboard-card__lo-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.borrower-dashboard-card__lo-name {
    font-family: 'Wavehaus', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #000000;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.borrower-dashboard-card__lo-company {
    font-family: 'Wavehaus', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #535766;
    line-height: 1.265;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* LO Action Buttons */
.borrower-dashboard-card__lo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: 16px;
}

.borrower-dashboard-card__lo-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 27.55px;
    height: 27.55px;
    background: #FFFFFF;
    border: 0.725px solid #C0C0C0;
    border-radius: 5.8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    padding: 0;
}

.borrower-dashboard-card__lo-action-btn:hover {
    border-color: #002BC6;
    background: #F5F7FC;
    text-decoration: none;
}

.borrower-dashboard-card__lo-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.borrower-dashboard-card__lo-chevron:hover {
    transform: translateX(2px);
    text-decoration: none;
}

/* ============================================================================
   RECENT CLOSED LOANS
   ============================================================================ */

/* Recent Closed Loans List */
.borrower-closed-list {
    display: flex;
    flex-direction: column;
}

.borrower-closed-list__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    height: 46px;
    background-color: white;
    border-bottom: 1px solid #F5F7FC;
    border-right: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-right-color 0.2s ease;
}

.borrower-closed-list__item:hover {
    background-color: #D8DCEB;
    border-right-color: #002BC6;
    text-decoration: none;
    color: inherit;
}

.borrower-closed-list__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.borrower-closed-list__content {
    flex: 1;
    min-width: 0;
}

.borrower-closed-list__address {
    font-family: 'Wavehaus', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #13151A;
    line-height: 30px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.borrower-closed-list__status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.borrower-closed-list__badge-new {
    background-color: rgba(223, 236, 226, 0.6);
    border: 1px solid #005337;
    border-radius: 16px;
    padding: 2px 8px;
    min-width: 80px;
    text-align: center;
    font-family: 'Wavehaus', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #005337;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

.borrower-closed-list__badge-funded {
    background-color: #C7CBD9;
    border: 1px solid #73788C;
    border-radius: 16px;
    padding: 2px 8px;
    min-width: 80px;
    text-align: center;
    font-family: 'Wavehaus', sans-serif;
    font-weight: 600;
    font-size: 12px;
    color: #535766;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

.borrower-closed-list__chevron {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================================================
   DOCUMENTS LIST
   ============================================================================ */

.borrower-doc-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.borrower-doc-list__item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    height: 46px;
    background-color: white;
    border-bottom: 1px solid #F5F7FC;
    border-right: 3px solid transparent;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, border-right-color 0.2s ease;
}

.borrower-doc-list__item:hover {
    background-color: #D8DCEB;
    border-right-color: #002BC6;
    text-decoration: none;
    color: inherit;
}

.borrower-doc-list__content {
    display: flex;
    align-items: center;
    flex: 0 0 90px;
}

.borrower-doc-list__label {
    font-family: 'Wavehaus', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #13151A;
    line-height: 30px;
}

.borrower-doc-list__status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1;
}

.borrower-doc-list__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 16px;
    font-family: 'Wavehaus', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 1.4;
    white-space: nowrap;
}

.borrower-doc-list__badge--completed {
    background-color: rgba(223, 236, 226, 0.6);
    border: 1px solid #14AE5C;
    color: #005337;
}

.borrower-doc-list__badge--outdated {
    background-color: #FFFAEB;
    border: 1px solid #B54708;
    color: #B54708;
}

.borrower-doc-list__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 8px;
}

.borrower-doc-list__upload-btn {
    font-family: 'Wavehaus', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #002BC6;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: text-decoration 0.2s ease;
}

.borrower-doc-list__upload-btn:hover {
    text-decoration: none;
}

.borrower-doc-list__date {
    font-family: 'Wavehaus', sans-serif;
    font-weight: 500;
    font-size: 12px;
    color: #535766;
    line-height: 30px;
    text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
    .borrower-dashboard-card__lo-item {
        padding: 8px 12px;
        height: auto;
        min-height: 50px;
    }

    .borrower-dashboard-card__lo-name {
        font-size: 14px;
    }

    .borrower-dashboard-card__lo-company {
        font-size: 12px;
    }

    .borrower-dashboard-card__lo-avatar {
        width: 24px;
        height: 24px;
    }

    .borrower-closed-list__item {
        padding: 8px 12px;
        height: auto;
        min-height: 46px;
    }

    .borrower-closed-list__address {
        line-height: 24px;
        font-size: 13px;
    }

    .borrower-doc-list__item {
        padding: 8px 12px;
        height: auto;
        min-height: 46px;
        flex-wrap: wrap;
        gap: 8px;
    }

    .borrower-doc-list__content {
        flex: 1;
        min-width: 100px;
    }

    .borrower-doc-list__label {
        line-height: 24px;
        font-size: 13px;
    }

    .borrower-doc-list__status {
        flex: 1;
        justify-content: flex-start;
    }

    .borrower-doc-list__actions {
        flex: 0 0 auto;
        padding-left: 0;
    }
}
