/* ==========================================================================
   components/tabs.css
   Existing pages use `.nav-pills` with `.rounded-pill` links (the leads
   sub-nav). These are restyled into a quiet segmented control: neutral
   resting state, white raised active state — no pills, no gradients.
   ========================================================================== */

/* Segmented control (leads All / Rejected / Archived) */
.nav-pills {
    background: #eef0f3;
    border: 1px solid var(--crm-border);
    border-radius: var(--crm-radius);
    padding: 3px;
    display: inline-flex !important;
    gap: 2px !important;
    width: auto;
}

.nav-pills .nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--crm-text-secondary);
    border-radius: var(--crm-radius-sm) !important;   /* overrides .rounded-pill */
    padding: 0.375rem 0.875rem !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.nav-pills .nav-link i { color: var(--crm-text-faint); margin-right: 0.25rem; }

.nav-pills .nav-link:hover { color: var(--crm-ink); }

.nav-pills .nav-link.active {
    background: var(--crm-surface) !important;
    color: var(--crm-ink) !important;
    box-shadow: var(--crm-shadow-xs);
    border: 1px solid var(--crm-border);
}
.nav-pills .nav-link.active i { color: var(--crm-primary); }

/* Underline tabs (detail pages) */
.nav-tabs {
    border-bottom: 1px solid var(--crm-border);
    gap: 0.25rem;
}
.nav-tabs .nav-link {
    font-size: 0.8438rem;
    font-weight: 500;
    color: var(--crm-text-muted);
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.625rem 0.875rem;
    margin-bottom: -1px;
}
.nav-tabs .nav-link:hover { color: var(--crm-ink); border-color: var(--crm-border-strong); }
.nav-tabs .nav-link.active {
    color: var(--crm-primary);
    background: transparent;
    border-bottom: 2px solid var(--crm-primary);
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}
.breadcrumb-item a { color: var(--crm-text-muted); }
.breadcrumb-item a:hover { color: var(--crm-primary); }
.breadcrumb-item.active { color: var(--crm-text); font-weight: 500; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--crm-text-faint); }
