/*
 * A photographer's record (تسک ۰۳، ۱۴۰۵/۰۸/۲۳، بند ۱۶): twelve tabs did not fit
 * in one row at 1440 pixels, so the last one («تنظیمات») sat past the edge and
 * had to be scrolled to. The bar now wraps onto a second row instead — every tab
 * in view, none cut, no sideways scroll of the bar or of the page — at every
 * width, phone included. A label never breaks inside itself.
 */
.fi-pa-photographer-record .fi-tabs:not(.fi-vertical) {
    flex-wrap: wrap;
    overflow-x: visible;
    max-width: 100%;
    row-gap: .25rem;
    column-gap: .25rem;
    justify-content: flex-start;
}

.fi-pa-photographer-record .fi-tabs:not(.fi-vertical) .fi-tabs-item {
    white-space: nowrap;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .fi-pa-photographer-record .fi-tabs:not(.fi-vertical) .fi-tabs-item {
        padding-inline: .6rem;
        font-size: .8125rem;
    }
}

/*
 * تسک ۰۵ ۱۴۰۵/۰۸/۲۴ (بند ۲۰ و ۲۱), the records of «عکاسان» and «ادیتورها»:
 * a short, thin upright line between every two tabs, in the dark panel's grey,
 * half the height of a tab and centred in the gap, so the bar keeps its height
 * and never scrolls sideways. A tab that begins a row (the bar wraps) draws
 * none: photoaman-photographer-record.js marks it `fi-tabs-row-start`; before
 * that runs only the very first tab goes without.
 *
 * The count of a tab is green, in brackets — «شبکه‌های اجتماعی (۳)» — rather
 * than Filament's filled pill, and reads the same on the active tab.
 */
.fi-pa-photographer-record .fi-tabs:not(.fi-vertical) {
    column-gap: .75rem;
}

.fi-pa-photographer-record .fi-tabs:not(.fi-vertical) .fi-tabs-item {
    position: relative;
}

.fi-pa-photographer-record .fi-tabs:not(.fi-vertical) .fi-tabs-item:not(:first-child):not(.fi-tabs-row-start)::before {
    content: '';
    position: absolute;
    inset-inline-start: calc(-.375rem - .5px);
    top: 25%;
    height: 50%;
    width: 1px;
    background: rgba(148, 163, 184, .45);
    pointer-events: none;
}

.dark .fi-pa-photographer-record .fi-tabs:not(.fi-vertical) .fi-tabs-item:not(:first-child):not(.fi-tabs-row-start)::before {
    background: rgba(148, 163, 184, .38);
}

.fi-pa-photographer-record .fi-tabs-item .fi-badge {
    background: transparent !important;
    box-shadow: none !important;
    --tw-ring-color: transparent !important;
    padding: 0 !important;
    min-width: 0;
    color: rgb(22 163 74) !important;
    font-weight: 700;
}

.dark .fi-pa-photographer-record .fi-tabs-item .fi-badge {
    color: rgb(74 222 128) !important;
}

.fi-pa-photographer-record .fi-tabs-item .fi-badge .fi-badge-label::before {
    content: '(';
}

.fi-pa-photographer-record .fi-tabs-item .fi-badge .fi-badge-label::after {
    content: ')';
}
