.quant-screener-count {
    color: var(--accent-green);
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1;
}

.quant-screener-step {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--section-bg);
    color: var(--text-muted);
    font-weight: 700;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.quant-screener-step.is-current,
.quant-screener-step.is-complete {
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    color: var(--btn-text);
}

.quant-screener-step.is-current {
    box-shadow: 0 0 0 3px var(--focus-glow);
}

.quant-screener-step.is-error {
    border-color: var(--trend-up);
    background: var(--trend-up);
    color: var(--btn-text);
}

.quant-screener-panel {
    background: var(--section-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.quant-screener-result-panel {
    position: relative;
}

.quant-screener-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    min-height: 124px;
    padding: 1.25rem;
    color: var(--text-main);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.quant-screener-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-1px);
}

.quant-screener-card.is-active {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 1px var(--brand-primary), 0 0 18px var(--focus-glow);
}

.quant-screener-card-icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--section-bg);
    color: var(--brand-primary);
    font-size: 1.25rem;
}

.quant-screener-card-count {
    color: var(--accent-green);
    font-size: 1.55rem;
    font-weight: 700;
}

.quant-screener-category-nav {
    border-color: var(--border-color) !important;
}

.quant-screener-category-nav .nav-link {
    border-radius: 8px;
    color: var(--text-muted) !important;
    text-align: left;
}

.quant-screener-category-nav .nav-link.active {
    background: var(--brand-primary);
    color: var(--btn-text) !important;
}

.quant-screener-condition-card {
    min-height: 138px;
}

.quant-screener-filter {
    width: min(180px, 100%);
}

.quant-screener-filter-controls {
    flex-wrap: nowrap;
}

.quant-screener-filter-controls .form-check-label {
    white-space: nowrap;
}

.quant-screener-sort {
    width: 170px;
}

.quant-screener-control-label {
    align-self: center;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
}

.quant-screener-action-button {
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-color: var(--btn-text);
    --bs-btn-hover-bg: var(--brand-primary);
    --bs-btn-hover-border-color: var(--brand-primary);
    --bs-btn-hover-color: var(--btn-text);
    --bs-btn-active-bg: var(--brand-primary);
    --bs-btn-active-border-color: var(--brand-primary);
    --bs-btn-active-color: var(--btn-text);
    border-color: var(--brand-primary) !important;
    background-color: var(--brand-primary) !important;
    color: var(--btn-text) !important;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.quant-screener-action-button:hover,
.quant-screener-action-button:focus-visible {
    border-color: var(--brand-primary) !important;
    background-color: var(--brand-primary) !important;
    color: var(--btn-text) !important;
    box-shadow: 0 0 0 3px var(--focus-glow);
    transform: translateY(-1px);
}

.quant-screener-action-button:disabled {
    border-color: var(--border-color) !important;
    background-color: var(--section-bg) !important;
    color: var(--text-muted) !important;
    box-shadow: none;
    transform: none;
}

.quant-screener-status {
    display: none;
    position: fixed;
    top: auto;
    bottom: 28px;
    left: 50%;
    transform: translate(-50%, 16px);
    pointer-events: none;
    z-index: 1080;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.quant-screener-status.is-visible {
    opacity: 1 !important;
    transform: translate(-50%, 0);
}

.quant-screener-status.is-hiding {
    opacity: 0 !important;
    transform: translate(-50%, 16px);
}

.quant-screener-chip {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--section-bg);
    color: var(--text-main);
    padding: 0.45rem 0.65rem;
}

.quant-screener-chip button {
    color: var(--text-muted);
}

.quant-screener-control {
    max-width: 120px;
}

.quant-screener-table {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-main);
}

.quant-screener-table th {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    border-bottom-color: var(--border-color);
}

.quant-screener-table td {
    border-color: var(--border-color);
}

.quant-screener-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 600;
    padding: 0;
}

.quant-screener-sort-button:hover,
.quant-screener-sort-button.is-active {
    color: var(--text-main);
}

.quant-screener-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    font-size: 0.82rem;
    white-space: nowrap;
}

.quant-screener-detail-button {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--brand-primary);
    font-size: 1.15rem;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.quant-screener-detail-button:hover,
.quant-screener-detail-button:focus-visible {
    background: var(--section-bg);
    color: var(--brand-primary);
    transform: translateY(-1px);
}

.quant-screener-detail-button:focus-visible {
    outline: 2px solid var(--focus-glow);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .quant-screener-panel .table-responsive {
        overflow-x: visible;
        padding-right: 0.5rem !important;
        padding-left: 0.5rem !important;
    }

    .quant-screener-table {
        width: 100%;
        table-layout: fixed;
        font-size: 0.82rem;
    }

    .quant-screener-table thead {
        display: none;
    }

    .quant-screener-table th,
    .quant-screener-table td {
        padding: 0.6rem 0.25rem;
        white-space: normal;
        word-break: keep-all;
    }

    .quant-screener-table th:nth-child(1),
    .quant-screener-table td:nth-child(1) {
        width: 15%;
    }

    .quant-screener-table th:nth-child(2),
    .quant-screener-table td:nth-child(2) {
        width: 24%;
    }

    .quant-screener-table th:nth-child(3),
    .quant-screener-table td:nth-child(3) {
        width: 18%;
    }

    .quant-screener-table th:nth-child(4),
    .quant-screener-table td:nth-child(4) {
        width: 18%;
    }

    .quant-screener-table th:nth-child(5),
    .quant-screener-table td:nth-child(5) {
        width: 15%;
    }

    .quant-screener-table th:nth-child(7),
    .quant-screener-table td:nth-child(7) {
        width: 10%;
    }

    .quant-screener-table td:nth-child(2) .fw-semibold {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .quant-screener-table td:nth-child(2) .small {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .quant-screener-detail-button {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
}

.quant-screener-detail-label {
    color: var(--text-muted);
}

.quant-screener-detail-value {
    color: var(--text-main);
    font-weight: 600;
}

.quant-screener-status-match {
    color: var(--accent-green);
}

.quant-screener-status-missing {
    color: var(--text-muted);
}

.quant-screener-empty {
    min-height: 220px;
}
/* 
@media (max-width: 991.98px) {
    .quant-screener-filter-controls {
        flex-wrap: wrap;
    }

    .quant-screener-category-nav {
        border-right: 0 !important;
        border-bottom: 1px solid var(--border-color);
    }

    .quant-screener-category-nav .nav {
        flex-direction: row !important;
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .quant-screener-category-nav .nav-link {
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    .quant-screener-count {
        font-size: 2.5rem;
    }

    .quant-screener-filter,
    .quant-screener-sort {
        width: 100%;
    }
} */
