/* Super Admin tab slider: one tidy row of pill tabs that scrolls sideways.
   Applies only to the Super Admin tabs (className "sa-tabs"). */

.sa-tab-slider {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0 4px;
    padding: 6px;
    background: #f4f6f9;
    border: 1px solid #e3e7ee;
    border-radius: 12px;
}

.sa-tabs-parent {
    flex: 1 1 auto;
    min-width: 0;              /* lets the row shrink and scroll */
}

.sa-tabs.tab-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x proximity;
    scrollbar-width: none;     /* Firefox */
    -ms-overflow-style: none;
    border: none !important;
}

.sa-tabs.tab-container::-webkit-scrollbar {
    display: none;             /* Chrome / Edge / Safari */
}

.sa-tabs .tab {
    flex: 0 0 auto !important;
    width: auto !important;
    white-space: nowrap;
    scroll-snap-align: start;
    padding: 8px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 999px;
    background: transparent !important;
    color: #4a5568;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.2;
    transition: background 0.15s, color 0.15s;
}

.sa-tabs .tab:hover {
    background: #e7ecf3 !important;
    color: #1f2d3d;
}

.sa-tabs .tab.tab--selected {
    background: #24476b !important;
    color: #ffffff !important;
    border-color: #24476b !important;
    box-shadow: 0 1px 3px rgba(36, 71, 107, 0.35);
}

.sa-tab-arrow {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 1px solid #d5dbe5;
    border-radius: 50%;
    background: #ffffff;
    color: #24476b;
    font-size: 1.3rem;
    line-height: 1;
    padding: 0 0 3px;
    cursor: pointer;
    transition: opacity 0.15s, background 0.15s;
}

.sa-tab-arrow:hover {
    background: #e7ecf3;
}

.sa-tab-arrow.is-disabled {
    opacity: 0.3;
    cursor: default;
}

/* Soft fade at an edge that has more tabs hidden behind it */
.sa-tabs-parent {
    position: relative;
}

.sa-tabs-parent.fade-left::before,
.sa-tabs-parent.fade-right::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 28px;
    pointer-events: none;
    z-index: 1;
}

.sa-tabs-parent.fade-left::before {
    left: 0;
    background: linear-gradient(to right, #f4f6f9, rgba(244, 246, 249, 0));
}

.sa-tabs-parent.fade-right::after {
    right: 0;
    background: linear-gradient(to left, #f4f6f9, rgba(244, 246, 249, 0));
}
