/**
 * Refinance Finder dashboard styles.
 *
 * Keep styling focused on page layout and control spacing. Shared table styling
 * remains in tables.css and enhanced_tables.css.
 */

.refinance-finder {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Remove duplicated hero spacing on this page: page-shell gap already controls
   separation before the intro callout. */
.refinance-finder .page-hero {
    margin-bottom: 0;
}

.refinance-finder__intro-callout {
    margin-top: 0;
    margin-bottom: 0;
}

.refinance-finder__summary,
.refinance-finder__filters,
.refinance-finder__status,
.refinance-finder__missing,
.refinance-finder__excluded,
.refinance-finder__empty,
.refinance-finder__demo-note {
    margin: 0;
}

.refinance-finder__demo-note-copy {
    margin: 0 auto;
    max-width: 750px;
    padding: 0.875rem 1rem;
    border: 1px dashed #d1d5db;
    border-radius: 0.75rem;
    background-color: #f9fafb;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
}

.refinance-finder__status {
    margin-bottom: 0;
}

.refinance-finder__methodology {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.25rem;
}

.refinance-finder__bulk-actions {
    gap: 0.75rem;
}

.refinance-finder__table {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    border: none;
}

.refinance-finder .refinance-finder-row-select,
.refinance-finder #refinance-finder-select-all {
    cursor: pointer;
}

.refinance-finder__checkbox-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

.refinance-finder__checkbox-grid {
    display: grid;
    width: 1rem;
    height: 1rem;
    grid-template-columns: 1fr;
    margin-top: 0.125rem;
}

.refinance-finder__checkbox-input,
.refinance-finder__checkbox-icon {
    grid-row: 1;
    grid-column: 1;
}

.refinance-finder__checkbox-input {
    width: 1rem;
    height: 1rem;
    appearance: none;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    background-color: #ffffff;
}

.refinance-finder__checkbox-input:checked {
    border-color: #16a34a;
    background-color: #16a34a;
}

.refinance-finder__checkbox-input:focus,
.refinance-finder__checkbox-input:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}

.refinance-finder__checkbox-icon {
    pointer-events: none;
    width: 0.875rem;
    height: 0.875rem;
    align-self: center;
    justify-self: center;
    stroke: #ffffff;
}

.refinance-finder__checkbox-checkmark {
    opacity: 0;
}

.refinance-finder__checkbox-input:checked + .refinance-finder__checkbox-icon .refinance-finder__checkbox-checkmark {
    opacity: 1;
}

.refinance-finder__numeric {
    font-variant-numeric: tabular-nums;
}

.refinance-finder__priority-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1rem;
    font-weight: 600;
    border: 1px solid transparent;
}

.refinance-finder__priority-badge--highest {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.refinance-finder__priority-badge--secondary {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.refinance-finder__priority-badge--standard {
    background: #f9fafb;
    color: #4b5563;
    border-color: #d1d5db;
}

.refinance-finder__excluded .table-responsive {
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .refinance-finder__bulk-actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .refinance-finder__methodology {
        justify-content: stretch;
    }
}
