/**
 * 공통 탭 스타일 (목록 페이지 상태 탭 등)
 *
 * 표준: 그리드 페이지의 상태 탭은 grid-header-new 안의 stats-container 에
 *      stat-item.sortable 로 통합한다 (tab-container/tab-btn 별도 사용 금지).
 *
 *   <div class="grid-header-new">
 *     <div class="header-left">
 *       <div class="stats-container">
 *         <span class="stat-item">전체 <span id="totalCount">0</span>건</span>
 *         <span class="stat-separator">|</span>
 *         <span class="stat-item sortable active" data-status="" onclick="changeStatusTab(this)">전체</span>
 *         <span class="stat-separator">|</span>
 *         <span class="stat-item sortable" data-status="ACTIVE" onclick="changeStatusTab(this)">…</span>
 *       </div>
 *     </div>
 *   </div>
 *
 * .tab-container / .tab-btn 정의는 admin 외 컨텍스트(예: login 페이지) 호환을 위해 유지.
 */
.tab-container {
    display: flex;
    gap: 6px;
    align-items: center;
}

.tab-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: 1px solid var(--color-border-soft);
    background: #fff;
    color: var(--color-reset);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--color-bg-soft);
}

.tab-btn.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.tab-badge {
    margin-left: 4px;
    font-size: 12px;
    font-weight: 600;
}

/* ============================================================
   stats-container 안 stat-item 을 상태 탭으로 사용할 때 active 시각.
   .stat-item.sortable 의 padding/border-radius/cursor 는 그대로 상속.
   ============================================================ */
.stats-container .stat-item.active {
    background: #0d6efd;
    color: #fff;
    font-weight: 700;
}
.stats-container .stat-item.active:hover {
    background: #0b5ed7;
    color: #fff;
}
.stats-container .stat-item.active > b,
.stats-container .stat-item.active > span {
    color: #fff;
}
