/*
   TabsViewComponent. Every tab button is a row with its text, icon and badge.
   Scoped under .sph-tabs: the theme's .btn loads later and would win over a single class.
*/
.sph-tabs .sph-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Underline: plain tabs over a baseline, the active one underlined. */
.sph-tabs-underline {
    padding-top: 8px;
    gap: 10px;
    box-shadow: inset 0 -1px 0 var(--sph-color-gray-200);
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sph-tabs-underline::-webkit-scrollbar {
    display: none;
}

.sph-tabs-underline.sph-tabs-fade-end {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}

.sph-tabs-underline.sph-tabs-fade-start {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px);
    mask-image: linear-gradient(to right, transparent, #000 40px);
}

.sph-tabs-underline.sph-tabs-fade-start.sph-tabs-fade-end {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}

@media (max-width: 575.98px) {
    .sph-tabs-underline {
        gap: 0;
    }

    .sph-tabs-underline-item {
        padding: 8px 6px;
    }
}

.sph-tabs-underline-item {
    padding: 8px;
    flex: 0 0 auto;
    border: 0;
    border-bottom: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--sph-color);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
    cursor: pointer;
}

.sph-tabs-underline-item-active {
    border-bottom-color: var(--sph-color-secondary-400);
    border-radius: 0;
    color: var(--sph-color-secondary-400);
}
