﻿.client-card {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
}

.client-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.client-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.client-info {
    flex-grow: 1;
}

.client-name {
    font-weight: 600;
}

.client-email {
    font-size: 13px;
    color: #6b7280;
}

.client-checkin {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

.client-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.client-goal {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    background: #dbeafe;
    color: #1d4ed8;
    white-space: nowrap;
}


/* 📱 Mobile breakpoint fix */
@media (max-width: 640px) {
    .client-card-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .client-card-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .client-goal {
        margin-top: 4px;
    }
}

.filters-card {
    background: #fff;
    border: 1px solid #E0E6EB;
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.search-wrapper {
    position: relative;
}

.search-icon-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px !important;
}

.search-clear-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 10px !important;
}

/* FIGHTER LIST CONTAINER */
.fighter-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* CARD */

.client-wide-card,
.fighter-wide-card {
    display: flex;
    align-items: center;
    width: 100%;
    background: #fff;
    border: 1px solid #E0E6EB;
    border-radius: 24px;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* LEFT IMAGE */
.client-wide-avatar,
.fighter-wide-avatar {
    margin-right: 1rem;
}

/* AVATAR (final size used) */
.client-wide-img,
.fighter-wide-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
}

    .client-wide-img.fallback,
    .fighter-wide-img.fallback {
        background: #F2F4F7;
        color: #1E293B;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        font-weight: 600;
    }

/* CENTER INFO */
.client-wide-info,
.fighter-wide-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* critical for truncation */
}

.client-wide-name,
.fighter-wide-name {
    font-weight: 600;
    font-size: 16px;
    color: #1E293B;
}

.client-wide-email,
.fighter-wide-email {
    font-size: 13px;
    color: #6C757D;
    margin-top: -2px;
}

/* GOAL TAG */
.client-wide-goal,
.fighter-wide-goal {
    background: #70AFFB;
    padding: 3px 10px;
    color: #fff;
    font-size: 11px;
    border-radius: 12px;
    display: inline-block;
    width: fit-content;
}

/* RIGHT SIDE - final width used */
.client-wide-right,
.fighter-wide-right {
    width: 80px; /* increased for two-line label */
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ARROW BUTTON - consolidated */
.client-wide-arrow,
.fighter-wide-arrow {
    background: #F1F4F8;
    border: 1px solid #D7DFE9;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 4px;
    pointer-events: none; /* ensure card handles interaction */
}

.material-symbols-outlined {
    font-size: 22px;
    color: #1E293B;
}

/* CHECK-IN TEXT */
.client-wide-checkin,
.fighter-wide-checkin {
    font-size: 11px;
    color: #6C757D;
    margin-top: 10px;
}

.client-wide-checkin-label,
.fighter-wide-checkin-label {
    font-size: 10px;
    color: #6C757D;
    line-height: 1.1;
    margin-top: 6px;
    text-align: center;
}

.client-wide-checkin-date,
.fighter-wide-checkin-date {
    font-size: 12px;
    color: #1E293B;
    font-weight: 500;
    line-height: 1.1;
    margin-top: 2px;
    text-align: center;
}

.client-wide-tag-row,
.fighter-wide-tag-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.client-wide-status-badge-inline,
.fighter-wide-status-badge-inline {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 8px;
}

.client-wide-card.clickable,
.fighter-wide-card.clickable {
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

    .client-wide-card.clickable:hover,
    .fighter-wide-card.clickable:hover {
        background: #F9FAFB;
        box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    }

/* Sport Badge */
.fighter-wide-sport {
    background: #F0F7FF;
    color: #32677E;
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}

    .fighter-wide-sport .rzi {
        font-size: 14px;
    }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .fighter-list {
        gap: 0.5rem;
    }

    .client-wide-card,
    .fighter-wide-card {
        padding: 0.75rem 1rem;
        border-radius: 16px;
    }

    .client-wide-avatar,
    .fighter-wide-avatar {
        margin-right: 0.75rem;
    }

    .client-wide-img,
    .fighter-wide-img {
        width: 48px;
        height: 48px;
    }

    .client-wide-name,
    .fighter-wide-name {
        font-size: 15px;
    }

    .client-wide-email,
    .fighter-wide-email {
        font-size: 12px;
    }

    .client-wide-right,
    .fighter-wide-right {
        width: 70px;
    }

    .client-wide-arrow,
    .fighter-wide-arrow {
        width: 30px;
        height: 30px;
    }
}

.qv-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.25rem 1rem;
}

.qv-icon-action {
    background: white;
    border-radius: 12px;
    padding: 1.25rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--cl-shadow-soft);
    transition: 0.15s ease;
}

    .qv-icon-action:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }

.qv-icon {
    font-size: 34px;
    color: #32677E;
    margin-bottom: 0.35rem;
}

.qv-icon-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
}

.client-qv-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.85rem 1rem;
    background: white;
    border-bottom: 1px solid #E0E6EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    position: sticky;
    top: 0;
    z-index: 50;
}

.qv-back-btn {
    background: #F3F6FA;
    border: none;
    border-radius: 10px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .qv-back-btn i {
        font-size: 22px;
        color: #32677E;
    }

.qv-header-center {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.qv-header-icon {
    font-size: 22px;
    color: #32677E;
}

.client-qv-panel-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
}

/* PANEL CONTAINER */
.client-qv-section-panel {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 70px);
    overflow: hidden;
    background: #ECEBF0 !important;
}


.rz-dialog {
    background: #ECEBF0 !important;
}

/* FIXED HEADER */
.client-qv-panel-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    background: #FFFFFF; /* Card-like header */
    border-bottom: 1px solid #E0E6EB;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.qv-scroll {
    flex: 1;
    overflow-y: auto;
    margin-bottom:20px;
    scroll-behavior: smooth;
}

/* === PROFILE INFO SECTION CARD === */
.profile-info-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #E0E6EB;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.profile-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #1E293B;
    margin-bottom: 1.25rem;
}

.profile-section-label i {
    font-size: 22px;
    color: #70AFFB; /* CoachLink primary */
}

.CleanFormLabel {
    display: block;
    margin-bottom: .25rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: #6C757D;
}

/* CLEANER INPUT STYLES */
.profile-info-card .rz-textbox,
.profile-info-card .rz-dropdown,
.profile-info-card .rz-date-picker {
    border-radius: 12px !important;
    background: #F9FAFB !important;
    border: 1px solid #E0E6EB !important;
    color: #1E293B !important;
    padding-left: 12px !important;
    height: 44px !important;
}

.qv-scroll::after {
    content: "";
    height: 40px;
    display: block;
}
.qv-back-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.75rem 0.25rem 1.25rem 0.25rem;
    color: #32677E;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    opacity: 0.85;
}

    .qv-back-row:hover {
        opacity: 1;
    }

    .qv-back-row .rzi {
        font-size: 22px;
        color: #32677E;
    }

.client-header-card {
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #E0E6EB;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.client-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #E0E6EB;
}

.client-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.client-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
}

.client-age {
    font-size: 0.9rem;
    color: #6C757D;
}

.client-tag {
    margin-top: 2px;
    display: inline-block;
    font-size: 0.8rem;
    background: #E8F1FF;
    padding: 2px 10px;
    border-radius: 12px;
    color: #32677E;
    font-weight: 500;
}

.client-header-actions {
    display: flex;
    gap: 10px;
}

.client-action-btn {
    width: 34px;
    height: 34px;
    background: #F3F6FA;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    color: #1E293B;
}

    .client-action-btn.danger {
        background: #FEE2E2;
        color: #EF4444;
    }

    .client-action-btn:hover {
        opacity: 0.85;
    }

.qv-header-wrapper {
    padding: 0.75rem 1rem 0.25rem 1rem;
    background: #ECEBF0 !important;
    border-bottom: 1px solid #e0e6eb;
}

.qv-header-top {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.25rem;
}

.qv-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
}

    .qv-close-btn i {
        font-size: 22px;
        color: #1e293b;
    }

.qv-client-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.qv-avatar {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #70AFFB;
}

.qv-client-meta {
    display: flex;
    flex-direction: column;
}

.qv-name-line {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.qv-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

.qv-age {
    font-size: 0.95rem;
    color: #6c757d;
}

.qv-goal-badge {
    display: inline-block;
    margin-top: 4px;
    background: #e6f0ff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #32677e;
}

.qv-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 14px;
    margin: 0.75rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.qv-header-left {
    display: flex;
    align-items: center;
}

.qv-header-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 0.75rem;
    border: 3px solid #70AFFB;
}

.qv-header-text {
    display: flex;
    flex-direction: column;
}

.qv-header-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1E293B;
}

.qv-header-age {
    font-size: 0.95rem;
    color: #64748B;
    margin-left: 4px;
}

.qv-header-tag {
    margin-top: 4px;
    background: #E7F2FF;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    color: #32677E;
    width: fit-content;
    font-weight: 500;
}

.qv-header-actions {
    display: flex;
    gap: 0.4rem;
}

.qv-action-btn {
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
}

.qv-divider {
    border: none;
    border-bottom: 1px solid #E2E8F0;
    margin: 0.5rem 1rem 1rem 1rem;
}

/* STAT CARD (shared section container) */
.stats-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #E0E6EB;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.units-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.UnitNote {
    font-size: .75rem;
    color: #6C757D;
    margin-top: 0.25rem;
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.option-card {
    background: #F3F6FA;
    padding: 1rem .75rem;
    border-radius: 14px;
    text-align: center;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background .15s ease, border .15s ease, transform .15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .option-card:hover {
        transform: translateY(-3px);
        background: #EDF1F5;
    }

    .option-card.selected {
        border: 1px solid #70AFFB;
        background: #E8F1FF;
    }

.option-icon {
    font-size: 34px;
    color: #32677E;
    margin-bottom: 6px;
}

.option-label {
    font-size: .9rem;
    font-weight: 600;
    color: #1E293B;
}

.env-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 1rem;
}

.env-card {
    background: #F3F6FA;
    padding: 1rem .75rem;
    border-radius: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: transform .15s ease, background .2s ease, border .2s ease;
}

    .env-card:hover {
        transform: translateY(-3px);
        background: #EDF1F5;
    }

    .env-card.selected {
        background: #E8F1FF;
        border: 1px solid #70AFFB;
    }

.env-icon {
    font-size: 36px;
    color: #32677E;
    margin-bottom: 6px;
}

.env-name {
    font-weight: 600;
    font-size: .95rem;
    color: #1E293B;
}

.env-desc {
    font-size: .75rem;
    color: #6C757D;
    margin-top: 2px;
}

.env-loading {
    text-align: center;
    color: #6C757D;
    margin: 1rem 0;
}

.spin {
    animation: spin 1s linear infinite;
}

.preset-banner {
    margin-top: 1rem;
    background: #F0FFF4;
    border: 1px solid #22C55E;
    padding: .75rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .9rem;
    color: #166534;
}

.success-icon {
    color: #22C55E;
    font-size: 20px;
}

.equipment-category-block {
    margin-bottom: 1.5rem;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: .5rem;
}

.category-icon {
    font-size: 22px;
    color: #32677E;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
}

.equipment-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.equipment-tag {
    background: #E5E7EB;
    padding: 6px 10px;
    border-radius: 12px;
    font-size: .85rem;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remove-btn {
    border: none;
    background: none;
    font-size: 16px;
    color: #EF4444;
    cursor: pointer;
}

.plan-card {
    background: #F8F9FB;
    border-radius: 14px;
    border: 1px solid #E0E6EB;
    padding: 1rem;
    margin-bottom: 1rem;
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

.plan-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
}

.plan-status {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
}

    .plan-status.active {
        background: #E8F7FF;
        color: #0EA5E9;
    }

    .plan-status.archived {
        background: #FEE2E2;
        color: #EF4444;
    }

.plan-description {
    font-size: .9rem;
    color: #6C757D;
    margin-bottom: .75rem;
}

.plan-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    color: #64748B;
    margin-bottom: .75rem;
}

    .plan-meta .dot {
        opacity: .6;
    }

.plan-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
    margin-bottom: .75rem;
}

.plan-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: #70AFFB;
    transition: width .2s ease;
}

.plan-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.plans-flex-spacer {
    flex: 1;
}

.archived-panel > div {
    border-radius: 12px !important;
}

.empty-state {
    padding: .5rem;
    text-align: center;
    color: #6C757D;
    font-size: .9rem;
}

.plan-summary-card {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.25rem 1rem;
    margin-bottom: .5rem;
    border: 1px solid #E0E6EB;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.plan-summary-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    margin-left: 0.5rem;
}

.plan-summary-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.plan-summary-label {
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #6C757D;
}

.plan-summary-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1E293B;
}

.plan-summary-meta {
    font-size: .85rem;
    color: #64748B;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.plan-summary-ring {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 4px solid #E0E6EB;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.plan-summary-ring-inner {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #E8F1FF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #32677E;
    font-size: .9rem;
}

.plan-summary-ring-label {
    font-size: .75rem;
    color: #6C757D;
}

@media (max-width: 768px) {
    .plan-summary-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .plan-summary-right {
        margin-top: 1rem;
        margin-left: 0;
    }
}

.plan-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #dbdee0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 20px;
    cursor: pointer;
    transition: all .15s ease;
}

    .plan-action-btn:hover {
        background: #E2E8F0;
        color: #1E293B;
        transform: translateY(-1px);
    }

    .plan-action-btn.danger {
        background: #FEE2E2;
        color: #B91C1C;
    }

        .plan-action-btn.danger:hover {
            background: #FCA5A5;
            color: #7F1D1D;
        }

.challenge-card {
    background: #F8F9FB;
    border-radius: 14px;
    border: 1px solid #E0E6EB;
    padding: 1rem;
    margin-bottom: 1rem;
}

.challenge-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
}

.challenge-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
}

.challenge-status {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: .75rem;
    font-weight: 600;
}

    .challenge-status.active {
        background: #FFF7E6;
        color: #F59E0B;
    }

    .challenge-status.completed {
        background: #DCFCE7;
        color: #16A34A;
    }

.challenge-description {
    font-size: .9rem;
    color: #6C757D;
    margin-bottom: .75rem;
}

.challenge-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .8rem;
    color: #64748B;
    margin-bottom: .75rem;
}

    .challenge-meta .dot {
        opacity: .6;
    }

.challenge-progress-bar {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
    margin-bottom: .75rem;
}

    .challenge-progress-bar.compact {
        margin-bottom: .5rem;
    }

.challenge-progress-fill {
    height: 100%;
    border-radius: 999px;
    background: #F59E0B;
    transition: width .2s ease;
}

.challenge-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-spacer {
    flex: 1;
}

.challenge-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    font-size: 20px;
    cursor: pointer;
    transition: all .15s ease;
}

    .challenge-action-btn:hover {
        background: #E2E8F0;
        color: #1E293B;
        transform: translateY(-1px);
    }

    .challenge-action-btn.danger {
        background: #FEE2E2;
        color: #B91C1C;
    }

        .challenge-action-btn.danger:hover {
            background: #FCA5A5;
            color: #7F1D1D;
        }

.cl-empty-state {
    background: #ffffff;
    border: 1px dashed #D1D5DB;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
}

.cl-empty-icon {
    font-size: 48px;
    color: #70AFFB;
    margin-bottom: .25rem;
}

.cl-empty-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1E293B;
}

.cl-empty-subtext {
    font-size: .9rem;
    color: #6C757D;
    margin-bottom: .5rem;
}

.cl-empty-button {
    background: #70AFFB;
    color: white;
    border: none;
    border-radius: 10px;
    padding: .5rem 1rem;
    font-size: .9rem;
    display: flex;
    align-items: center;
    gap: .35rem;
    cursor: pointer;
    font-weight: 600;
    transition: background .15s ease;
}

    .cl-empty-button:hover {
        background: #589AE8;
    }






/* Wrapper around both headers */
.qv-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #F8F9FB;
    transition: height 0.25s ease, padding 0.25s ease;
}

/* full height normally */
.qv-header-wrapper {
    padding-bottom: 0.75rem;
}

    /* collapsed state removes the big card, keeps small header */
    .qv-header-wrapper.header-collapsed .client-header-card {
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
    }

    .qv-header-wrapper.header-collapsed {
        padding-bottom: 0; /* removes the extra gap */
    }

/* allow animation */
.client-header-card {
    transition: transform 0.25s ease, opacity 0.25s ease;
    will-change: transform, opacity;
}
