/* ============================================================
   Shared Section Tabs Stylesheet
   Used by Billing, Account, Support, and Order Form pages
   ============================================================ */

/* ---- Section Tabs with underline style (Invoices, Quotes, Tickets, Details) ---- */
.cp-section-tabs {
    background: var(--cp-surface);
    /* Inset rule instead of a border: the active underline paints over it from inside the scroll
       strip, so the links need no negative margin poking out of an overflow container. */
    box-shadow: inset 0 -1px 0 var(--cp-border-neutral);
}

.cp-section-tabs-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 12px;
    padding: 0;
    overflow-x: auto;
    /* overflow-x alone turns overflow-y into auto; keep the strip from ever scrolling vertically */
    overflow-y: hidden;
}

.cp-section-tab-nav {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    flex-shrink: 0;
    overflow-x: auto;
    /* overflow-x alone turns overflow-y into auto; keep the strip from ever scrolling vertically */
    overflow-y: hidden;
}

.cp-section-tab-link {
    display: inline-block;
    flex-shrink: 0;
    padding: 14px 16px;
    border-bottom: 2px solid transparent;
    color: var(--cp-gray-600);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.cp-section-tab-link:hover {
    color: var(--cp-gray-900);
    text-decoration: none;
}

.cp-section-tab-link.active {
    border-bottom-color: var(--cp-primary-500);
    color: var(--cp-gray-900);
    font-weight: 600;
}

.cp-section-tabs-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

/* ---- Section Tabs in content (moved placement for Billing and Account pages) ---- */
.primary-content > .cp-section-tabs {
    width: 100%;
    max-width: var(--cp-content-max);
    margin: 0 auto 16px;
    background: transparent;
}

.primary-content > .cp-section-tabs .cp-section-tab-nav {
    scrollbar-width: none;
    overflow-x: auto;
    overflow-y: hidden;
}

.primary-content > .cp-section-tabs .cp-section-tab-nav::-webkit-scrollbar {
    display: none;
}
