/* 機構知識庫管理：本院 / 全平台 範圍切換（admin only） */
.kb-scope-switch {
    display: inline-flex;
    align-items: stretch;
    border: 2px solid #E2E4E0;
    border-radius: 10px;
    overflow: hidden;
    background: #F9F9F9;
    min-height: 44px;
}

.kb-scope-switch__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #4F544C;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.3;
}

.kb-scope-switch__btn:hover {
    color: #93C0AD;
    background: rgba(147, 192, 173, 0.08);
    text-decoration: none;
}

.kb-scope-switch__btn.is-active {
    background: linear-gradient(135deg, #93C0AD 0%, #3D8A6B 100%);
    color: #fff;
}

.kb-scope-switch__btn.is-active:hover {
    color: #fff;
    background: linear-gradient(135deg, #81B7A0 0%, #3B7C62 100%);
}

.kb-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.kb-page-header__title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 200px;
}

.kb-page-header__scope {
    flex: 0 0 auto;
}

.kb-scope-hint {
    font-size: 0.875rem;
    color: #767F70;
    margin: 4px 0 0;
}

@media (max-width: 576px) {
    .kb-scope-switch {
        width: 100%;
    }

    .kb-scope-switch__btn {
        flex: 1 1 50%;
        padding: 10px 12px;
        font-size: 0.875rem;
    }
}
