/* design_system/entity_tabs.css — Entity tabs / segmented nav */

.entity-tabs {
    margin: 0.25rem 0 1.25rem;
    width: 100%;
}
.entity-tabs__scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.entity-tabs__scroll::-webkit-scrollbar {
    display: none;
}
.tabs-bar {
    display: flex;
    align-items: stretch;
    gap: 0.2rem;
    width: 100%;
    min-width: min-content;
    margin: 0;
    padding: 0.25rem;
    list-style: none;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
}
.tabs-bar > li {
    margin: 0;
    list-style: none;
    flex: 1 1 0;
    min-width: 5.5rem;
    display: flex;
}
.tabs-bar > li > .tab-btn,
.tabs-bar > li > a.tab-btn,
.tabs-bar > li > span.tab-btn {
    width: 100%;
}
.tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 2.25rem;
    padding: 0.45rem 0.85rem;
    font-size: var(--text-ui);
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    border: 1px solid transparent;
    border-radius: calc(var(--radius-input) - 2px);
    background: transparent;
    cursor: pointer;
    color: var(--color-text-muted);
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.tab-btn:hover {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.65);
}
.tab-btn.active {
    color: var(--color-accent);
    font-weight: 600;
    background: #fff;
    border-color: var(--color-accent-soft);
    box-shadow: 0 1px 2px rgba(15, 36, 52, 0.06);
}
.tab-btn:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}
.tab-btn--disabled,
.tab-btn.cursor-not-allowed {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
    color: var(--color-text-muted);
    background: transparent;
    box-shadow: none;
}
.tab-btn--multiline {
    flex-direction: column;
    white-space: normal;
    line-height: 1.2;
    font-size: var(--text-sm);
    padding: 0.4rem 0.55rem;
    min-height: 2.5rem;
    min-width: 6.25rem;
}
.tab-btn--multiline br {
    display: block;
    content: "";
    margin-top: 0.05rem;
}
