/* Shared dashboard section header + accent styles */

.dashboard-section-card {
    background: var(--dashboard-surface, #ffffff);
    border: 1px solid var(--dashboard-border-soft, #e2e8f0);
    border-radius: 18px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.05);
    margin-bottom: 1.5rem;
}

.dashboard-section-card.is-collapsed .dashboard-section-header {
    margin-bottom: 0;
}

.dashboard-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.dashboard-section-header-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.dashboard-section-header-toggle:hover .dashboard-section-title {
    color: var(--dashboard-text-main, #0f172a);
}

.dashboard-section-header-toggle:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 3px;
    border-radius: 10px;
}

.dashboard-section-header-main {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
}

.dashboard-section-accent {
    width: 4px;
    border-radius: 999px;
    flex-shrink: 0;
    background: #2563eb;
}

.dashboard-section-accent-blue .dashboard-section-accent { background: linear-gradient(180deg, #3b82f6, #2563eb); }
.dashboard-section-accent-teal .dashboard-section-accent { background: linear-gradient(180deg, #14b8a6, #0f766e); }
.dashboard-section-accent-orange .dashboard-section-accent { background: linear-gradient(180deg, #fb923c, #ea580c); }
.dashboard-section-accent-green .dashboard-section-accent { background: linear-gradient(180deg, #4ade80, #16a34a); }
.dashboard-section-accent-violet .dashboard-section-accent { background: linear-gradient(180deg, #a78bfa, #7c3aed); }
.dashboard-section-accent-navy .dashboard-section-accent { background: linear-gradient(180deg, #1e40af, #1e3a8a); }
.dashboard-section-accent-slate .dashboard-section-accent { background: linear-gradient(180deg, #64748b, #475569); }
.dashboard-section-accent-coral .dashboard-section-accent { background: linear-gradient(180deg, #f87171, #dc2626); }

.dashboard-section-header-text {
    display: grid;
    gap: 0.2rem;
    min-width: 0;
}

.dashboard-section-eyebrow {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dashboard-text-muted, #64748b);
}

.dashboard-section-title {
    margin: 0;
    font-size: clamp(1.05rem, 1.2vw, 1.3rem);
    font-weight: 700;
    line-height: 1.25;
    color: var(--dashboard-text-main, #0f172a);
}

.dashboard-section-subtitle {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--dashboard-text-muted, #64748b);
}

.dashboard-section-header-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.dashboard-section-badge {
    display: inline-flex;
    align-items: center;
    min-width: 1.75rem;
    justify-content: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--dashboard-surface-muted, #f8fafc);
    border: 1px solid var(--dashboard-border-soft, #e2e8f0);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dashboard-text-main, #0f172a);
    white-space: nowrap;
}

.dashboard-section-toggle-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dashboard-text-muted, #64748b);
    white-space: nowrap;
}

.dashboard-section-chevron {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid var(--dashboard-border-soft, #e2e8f0);
    background: #fff;
    position: relative;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.dashboard-section-chevron::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.4rem;
    height: 0.4rem;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.dashboard-section-card.is-expanded .dashboard-section-chevron::before,
.collapsible-section.is-expanded .dashboard-section-chevron::before {
    transform: translate(-50%, -35%) rotate(-135deg);
}

.dashboard-section-card__body {
    min-width: 0;
}

.dashboard-section-card.is-coming-soon {
    border-style: dashed;
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
}

.dashboard-section-card.is-coming-soon .dashboard-section-badge {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
}

@media (max-width: 700px) {
    .dashboard-section-card {
        padding: 1rem 1.1rem;
    }

    .dashboard-section-header,
    .dashboard-section-header-toggle {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-section-header-meta {
        justify-content: flex-start;
        padding-left: calc(4px + 0.75rem);
    }
}
