/* MOSCAP Core asset — FluentSnippets "MOSCAP ADMIN PAGES LAYOUT (CSS)" (77-moscap-admin-pages-layout.php, run_at=wp_head)
   снипетээс 2026-11-22-нд нүүлгэсэн; includes/assets.php ачаална. Энэ толгойноос
   бусад код өөрчлөгдөөгүй.
*/

/* ════════════════════════════════════════════════════════
   MOSCAP — Admin Pages: Unified Layout (CSS)
   FluentSnippets > MOSCAP ADMIN PAGES LAYOUT (CSS) > Site Wide Header

   Replaces the old per-page copies of this same CSS block (each
   keyed to a hardcoded page-id-XXX selector) with ONE shared block
   targeting the body classes added by MOSCAP ADMIN PAGES LAYOUT (PHP).
   Adding a new admin page later needs no new CSS here at all — just
   add its slug to that PHP snippet's page list.
   ════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   Shared light/dark theme tokens + toggle — every admin page.
   Piloted standalone on moscap-dashboard (page 1445) first;
   now the shared version all admin pages migrate onto. Dark
   values match the MOSCAP Icon Inventory artifact's palette.
   Toggled via [data-theme] on <html>, persisted in
   localStorage under 'madm_theme', set by
   MOSCAP_THEME_TOGGLE in this same snippet's injected script
   (see moscap_render_theme_toggle_html() in the PHP sibling).
   ═══════════════════════════════════════════════════════ */
:root {
    --madm-bg: #ffffff;
    --madm-surface: #ffffff;
    --madm-text: #111827;
    --madm-text-secondary: #374151;
    --madm-text-dim: #6b7280;
    --madm-text-faint: #9ca3af;
    --madm-border: #e5e7eb;
    --madm-border-light: #f3f4f6;
    --madm-divider: #f9fafb;
    --madm-border-strong: #d1d5db;
    --madm-hover-bg: #fafafa;
    --madm-success-bg: #d1fae5;
    --madm-success-fg: #065f46;
    --madm-error-bg: #fee2e2;
    --madm-error-fg: #991b1b;
    --madm-warning-bg: #fef3c7;
    --madm-warning-fg: #92400e;
}
:root[data-theme="dark"] {
    --madm-bg: #0f1a2e;
    --madm-surface: #16233d;
    --madm-text: #e5e7eb;
    --madm-text-secondary: #cbd5e1;
    --madm-text-dim: #94a3b8;
    --madm-text-faint: #64748b;
    --madm-border: #2d3f5c;
    --madm-border-light: #24334d;
    --madm-divider: #1e2b42;
    --madm-border-strong: #3a4d6b;
    --madm-hover-bg: #1c2a44;
    --madm-success-bg: #0f2e1a;
    --madm-success-fg: #4ade80;
    --madm-error-bg: #3d1414;
    --madm-error-fg: #fca5a5;
    --madm-warning-bg: #3d2e0c;
    --madm-warning-fg: #fbbf24;
}
html:has(body.moscap-admin-page),
body.moscap-admin-page,
body.moscap-admin-page #page,
body.moscap-admin-page .site,
body.moscap-admin-page .site-content,
body.moscap-admin-page .content-area,
body.moscap-admin-page .entry-content,
body.moscap-admin-page .inside-article,
body.moscap-admin-page .page-header,
body.moscap-admin-page .inside-page-header,
body.moscap-admin-page main {
    background: var(--madm-bg) !important;
    transition: background 0.2s;
}
.moscap-theme-toggle-row {
    display: flex;
    justify-content: flex-end;
    padding: 10px 24px 0;
}
.moscap-theme-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
    background: var(--madm-surface) !important;
    border: 1px solid var(--madm-border-strong) !important;
    color: var(--madm-text-secondary) !important;
    cursor: pointer;
    transition: all 0.2s;
}
.moscap-theme-toggle:hover { background: var(--madm-border-light) !important; }
.moscap-theme-toggle svg { width: 17px !important; height: 17px !important; display: block; }
.moscap-theme-toggle .moscap-theme-icon-dark { display: none !important; }
:root[data-theme="dark"] .moscap-theme-toggle .moscap-theme-icon-light { display: none !important; }
:root[data-theme="dark"] .moscap-theme-toggle .moscap-theme-icon-dark { display: inline-flex !important; }

/* ——— Topbar/header fix — every admin page ——— */
body.moscap-admin-page .moscap-topbar {
    position: relative !important;
    background: #060f1e !important;
}
body.moscap-admin-page .site-header {
    position: relative !important;
    top: 0 !important;
    background: #0a1a2f !important;
}
.moscap-admin-page .site-header::before { display: none !important; }
.moscap-admin-page .entry-header { display: none !important; }

/* ——— Full width override — only pages tagged --full-width ——— */
.moscap-admin-page--full-width .site-content {
    padding-top: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.moscap-admin-page--full-width .content-area,
.moscap-admin-page--full-width .entry-content,
.moscap-admin-page--full-width .inside-article,
.moscap-admin-page--full-width main {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* ——— Back button (auto-injected by the PHP snippet's the_content
   filter) — only present on pages tagged --has-back-btn ——— */
.moscap-admin-page--has-back-btn .moscap-back-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px 0;
    margin: 10px 24px 0 24px;
}
.moscap-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    background: var(--madm-surface);
    color: var(--madm-text-secondary);
    border: 1px solid var(--madm-border-strong);
    transition: all 0.2s;
}
.moscap-back-btn:hover { background: var(--madm-border-light); color: var(--madm-text); }
.moscap-back-btn svg { flex-shrink: 0; }
/* On pages WITH a back button, the toggle sits in the same row instead of
   its own row (set via PHP: moscap_render_theme_toggle_html($inline)). */
.moscap-back-bar .moscap-theme-toggle { margin-left: auto; }

/* ═══════════════════════════════════════════════════════
   Админы зүүн цэс (2026-11-21) — body.madm-has-sidebar
   (MOSCAP ADMIN PAGES LAYOUT (PHP): moscap_render_admin_sidebar_html).
   Desktop: sticky баганa, html.madm-sb-collapsed = зөвхөн дүрс (64px).
   ≤900px: хажуугаас гарч ирдэг хайрцаг, html.madm-sb-open = нээлттэй.
   ═══════════════════════════════════════════════════════ */
:root { --madm-sb-w: 248px; }
html.madm-sb-collapsed { --madm-sb-w: 64px; }
body.madm-has-sidebar .site-content {
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
}
body.madm-has-sidebar .content-area,
body.madm-has-sidebar main,
body.madm-has-sidebar article,
body.madm-has-sidebar .inside-article {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.madm-has-sidebar .entry-content {
    display: flex;
    align-items: flex-start;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.madm-main { flex: 1 1 auto; min-width: 0; }
/* Theme-ийн 1200px хүрээ (#page.grid-container) зүүн цэстэй үед бүх өргөнөөр;
   full-width биш хуудсууд хуучин 1200px өргөнөө .madm-main дотроо хадгална. */
body.madm-has-sidebar .site.grid-container { max-width: 100% !important; }
body.madm-has-sidebar:not(.moscap-admin-page--full-width) .madm-main { max-width: 1200px; margin: 0 auto; }
/* Theme-ийн гүйлгэхэд гарч ирдэг sticky цэс (#sticky-navigation) зүүн цэсний
   дээд хэсгийг дардаг — админ хуудсанд хэрэггүй (зүүн цэс нь навигац). */
body.madm-has-sidebar #sticky-navigation { display: none !important; }
.madm-mobilebar { display: none; }

.madm-sb {
    position: sticky;
    top: 0;
    flex: 0 0 var(--madm-sb-w);
    width: var(--madm-sb-w);
    height: 100vh;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    background: var(--madm-surface);
    border-right: 1px solid var(--madm-border);
    overflow: hidden;
    z-index: 60;
    transition: width 0.18s ease, flex-basis 0.18s ease, background 0.2s;
    font-family: 'Inter', sans-serif;
}
.madm-sb__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 10px; }
.madm-sb__brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 700; letter-spacing: 0.2px;
    color: var(--madm-text) !important; text-decoration: none !important; white-space: nowrap;
}
.madm-sb__brand svg { width: 22px; height: 22px; stroke: #006EB4; flex-shrink: 0; }
.madm-sb__close { display: none; }
.madm-sb__nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 2px 10px 10px; scrollbar-width: thin; }
.madm-sb__group { margin-bottom: 8px; }
.madm-sb__group-label {
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--madm-text-faint); padding: 8px 10px 3px; white-space: nowrap;
}
.madm-sb__item {
    position: relative;
    display: flex; align-items: center; gap: 10px;
    padding: 7px 10px; border-radius: 8px;
    font-size: 13px; font-weight: 500; line-height: 1.3; white-space: nowrap;
    color: var(--madm-text-secondary) !important; text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
}
.madm-sb__item svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--madm-text-dim); }
.madm-sb__item:hover { background: var(--madm-hover-bg); color: var(--madm-text) !important; }
.madm-sb__item.is-active { background: rgba(0, 110, 180, 0.10); color: #006EB4 !important; font-weight: 600; }
.madm-sb__item.is-active svg { stroke: #006EB4; }
:root[data-theme="dark"] .madm-sb__item.is-active { background: rgba(59, 130, 246, 0.18); color: #93c5fd !important; }
:root[data-theme="dark"] .madm-sb__item.is-active svg { stroke: #93c5fd; }
.madm-sb__label { overflow: hidden; text-overflow: ellipsis; }
.madm-sb__badge {
    margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
    background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; line-height: 1;
    display: inline-flex; align-items: center; justify-content: center;
}
.madm-sb__footer { display: flex; align-items: center; gap: 8px; padding: 10px; border-top: 1px solid var(--madm-border); }
.madm-sb__collapse,
.madm-sb__open {
    -webkit-appearance: none; appearance: none;
    display: inline-flex !important; align-items: center !important; gap: 8px;
    flex: 1 1 auto; height: 36px !important; padding: 0 10px !important; margin: 0 !important;
    box-sizing: border-box !important; border-radius: 8px !important;
    background: var(--madm-surface) !important; border: 1px solid var(--madm-border-strong) !important;
    color: var(--madm-text-secondary) !important; font-size: 12px !important; font-weight: 600 !important;
    white-space: nowrap; cursor: pointer; transition: all 0.2s;
}
.madm-sb__collapse:hover, .madm-sb__open:hover { background: var(--madm-border-light) !important; }
.madm-sb__collapse svg, .madm-sb__open svg { width: 16px !important; height: 16px !important; display: block; flex-shrink: 0; }
.madm-sb__collapse-ico-r { display: none !important; }

@media (min-width: 901px) {
    html.madm-sb-collapsed .madm-sb__label,
    html.madm-sb-collapsed .madm-sb__group-label { display: none; }
    html.madm-sb-collapsed .madm-sb__top { justify-content: center; padding: 14px 0 10px; }
    html.madm-sb-collapsed .madm-sb__nav { padding: 2px 8px 10px; }
    html.madm-sb-collapsed .madm-sb__group { padding-top: 6px; margin-bottom: 6px; border-top: 1px solid var(--madm-border-light); }
    html.madm-sb-collapsed .madm-sb__group:first-child { border-top: 0; padding-top: 0; }
    html.madm-sb-collapsed .madm-sb__item { justify-content: center; padding: 9px 0; }
    html.madm-sb-collapsed .madm-sb__badge { position: absolute; top: 2px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 9.5px; }
    html.madm-sb-collapsed .madm-sb__footer { flex-direction: column; padding: 8px 6px; }
    html.madm-sb-collapsed .madm-sb__collapse { width: 36px; flex: 0 0 auto; justify-content: center !important; padding: 0 !important; }
    html.madm-sb-collapsed .madm-sb__collapse-ico-l { display: none !important; }
    html.madm-sb-collapsed .madm-sb__collapse-ico-r { display: block !important; }
}

@media (max-width: 900px) {
    body.madm-has-sidebar .entry-content { display: block; }
    .madm-mobilebar {
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 16px; background: var(--madm-surface); border-bottom: 1px solid var(--madm-border);
        position: sticky; top: 0; z-index: 55;
    }
    .madm-sb__open { flex: 0 0 auto; font-size: 13px !important; padding: 0 12px !important; }
    .madm-sb {
        position: fixed; left: 0; top: 0; height: 100vh !important; width: 272px !important;
        transform: translateX(-105%); transition: transform 0.2s ease;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25); z-index: 10000;
    }
    html.madm-sb-open .madm-sb { transform: none; }
    .madm-sb__backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, 0.5); z-index: 9999; }
    html.madm-sb-open .madm-sb__backdrop { display: block; }
    .madm-sb__close {
        -webkit-appearance: none; appearance: none;
        display: inline-flex !important; align-items: center !important; justify-content: center !important;
        width: 32px !important; height: 32px !important; padding: 0 !important; margin: 0 !important;
        border-radius: 8px !important; background: transparent !important;
        border: 1px solid var(--madm-border-strong) !important; color: var(--madm-text-secondary) !important; cursor: pointer;
    }
    .madm-sb__close svg { width: 16px; height: 16px; }
    .madm-sb__footer .madm-sb__collapse,
    .madm-sb__footer .moscap-theme-toggle { display: none !important; }
}

/* ═══ Админы нэгдсэн товч, таб (2026-11-22) ═══════════════════════════
   Бүх админ хуудсанд нэг л хэв маяг. Шинэ товч: class="madm-btn madm-btn--primary"
   (--secondary / --danger / --success, жижиг бол + madm-btn--sm). Таб:
   <div class="madm-tabs"><button class="madm-tab is-active">…</button></div>
   (.active ч ажиллана). !important — сайтын button{padding:10px 20px} дүрмийг
   давахын тулд ([[moscap_button_padding]]). */
.madm-btn {
    -webkit-appearance: none !important; appearance: none !important;
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 16px !important; border-radius: 7px !important;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; line-height: 1;
    border: 1.5px solid transparent !important; cursor: pointer; white-space: nowrap;
    outline: none !important; box-shadow: none !important; text-decoration: none !important;
    transition: background .15s, border-color .15s, color .15s;
}
.madm-btn:hover, .madm-btn:focus, .madm-btn:focus-visible, .madm-btn:active { outline: none !important; box-shadow: none !important; text-decoration: none !important; }
.madm-btn:disabled { opacity: .55; cursor: not-allowed; }
.madm-btn--primary { background: #006EB4 !important; color: #fff !important; border-color: #006EB4 !important; }
.madm-btn--primary:hover { background: #005a94 !important; border-color: #005a94 !important; }
.madm-btn--secondary { background: var(--madm-surface) !important; color: var(--madm-text-secondary) !important; border-color: var(--madm-border-strong) !important; }
.madm-btn--secondary:hover { border-color: #006EB4 !important; color: #006EB4 !important; }
.madm-btn--danger { background: var(--madm-surface) !important; color: var(--madm-error-fg) !important; border-color: var(--madm-error-fg) !important; }
.madm-btn--danger:hover { background: var(--madm-error-bg) !important; }
.madm-btn--success { background: #1d9e75 !important; color: #fff !important; border-color: #1d9e75 !important; }
.madm-btn--success:hover { background: #17805e !important; border-color: #17805e !important; }
.madm-btn--sm { height: 30px; padding: 0 10px !important; font-size: 12px; border-radius: 6px !important; }
.madm-btn .lucide, .madm-btn svg { width: 16px; height: 16px; }

/* Таб = сегмент тавиур (2026-11-22, хэрэглэгчийн сонголт): саарал дугуйрсан
   тавиур дотор товчнууд, идэвхтэй нь цэнхэр дүүргэлттэй. Үйлдлийн товч
   (.madm-btn)-оос нүдэнд шууд ялгарна. */
.madm-tabs {
    display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
    background: var(--madm-hover-bg); border: 1px solid var(--madm-border); border-radius: 10px;
    margin-bottom: 20px;
}
.madm-tab {
    -webkit-appearance: none !important; appearance: none !important;
    display: inline-flex !important; align-items: center; gap: 8px;
    height: 34px; padding: 0 16px !important; margin: 0;
    background: transparent !important; border: none !important; border-radius: 7px !important;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600; line-height: 1;
    color: var(--madm-text-secondary) !important; cursor: pointer; white-space: nowrap;
    outline: none !important; box-shadow: none !important; text-decoration: none !important;
    transition: background .15s, color .15s;
}
.madm-tab:hover, .madm-tab:focus, .madm-tab:focus-visible, .madm-tab:visited { background: rgba(0, 110, 180, .10) !important; color: #006EB4 !important; outline: none !important; box-shadow: none !important; text-decoration: none !important; }
.madm-tab.is-active, .madm-tab.active,
.madm-tab.is-active:hover, .madm-tab.is-active:focus, .madm-tab.is-active:focus-visible, .madm-tab.is-active:visited,
.madm-tab.active:hover, .madm-tab.active:focus, .madm-tab.active:focus-visible, .madm-tab.active:visited { background: #006EB4 !important; color: #fff !important; }

/* ═══ Хуучин хуудасны товчнуудыг нэг хэмжээнд оруулах (2026-11-22) ════
   Хуудас бүрийн HTML-ийг өөрчлөхгүйгээр одоо байгаа класс нэрсийг .madm-btn-
   тэй ижил хэмжээ, булан, үсгэнд оруулна. Өнгө нь тухайн хуудасных хэвээр
   (үндсэн цэнхэр, хар хөх, ногоон импорт), зөвхөн устгах товч нэг загварт.
   Хуудсын CSS-д !important байгаа тул энд ч !important + body.madm-has-sidebar. */
body.madm-has-sidebar .mcd-action-btn,
body.madm-has-sidebar .moscap-artist-btn,
body.madm-has-sidebar .moscap-filter-submit,
body.madm-has-sidebar .mpl-add-btn,
body.madm-has-sidebar .mpl-import-btn,
body.madm-has-sidebar .nse-add-btn,
body.madm-has-sidebar .wtg-btn-primary,
body.madm-has-sidebar .ra-btn,
body.madm-has-sidebar .mwr-add-btn,
body.madm-has-sidebar .mwr-check-dupes-btn,
body.madm-has-sidebar .mwr-reset-btn,
body.madm-has-sidebar .mar-submit-btn,
body.madm-has-sidebar .mwr-submit-btn,
body.madm-has-sidebar .msg-btn,
body.madm-has-sidebar .rms-btn {
    -webkit-appearance: none !important; appearance: none !important;
    display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
    height: 38px !important; min-height: 0 !important; padding: 0 16px !important; border-radius: 7px !important;
    font-family: 'Inter', sans-serif; font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important;
    border-width: 1.5px !important; border-style: solid !important; white-space: nowrap;
    outline: none !important; box-shadow: none !important; text-decoration: none !important;
}
body.madm-has-sidebar .mcd-action-btn--primary,
body.madm-has-sidebar .mcd-action-btn--amber,
body.madm-has-sidebar .moscap-filter-submit,
body.madm-has-sidebar .mpl-add-btn,
body.madm-has-sidebar .nse-add-btn,
body.madm-has-sidebar .mwr-add-btn,
body.madm-has-sidebar .mar-submit-btn,
body.madm-has-sidebar .mwr-submit-btn { border-color: transparent !important; }
body.madm-has-sidebar .moscap-artist-btn--register { border-color: #006EB4 !important; }
/* Зөвхөн дүрстэй дөрвөлжин товч (жиш: гүйцэтгэгчийн төрөл тохируулах) */
body.madm-has-sidebar .mcd-action-btn--icon { width: 38px; padding: 0 !important; }
body.madm-has-sidebar .mcd-action-btn--icon svg { width: 17px; height: 17px; }

/* Мөрийн жижиг товч (Засах / ID солих / Устгах / Хадгалах / ✕) */
body.madm-has-sidebar .maem-edit-btn,
body.madm-has-sidebar .maem-change-id-btn,
body.madm-has-sidebar .moscap-soft-delete-btn,
body.madm-has-sidebar .mpl-edit-btn,
body.madm-has-sidebar .mpl-delete-btn,
body.madm-has-sidebar .wtg-btn,
body.madm-has-sidebar .mwr-remove-btn,
body.madm-has-sidebar .nse-del-btn,
body.madm-has-sidebar .mbnk-remove-btn {
    -webkit-appearance: none !important; appearance: none !important;
    display: inline-flex !important; align-items: center; justify-content: center; gap: 4px;
    height: 30px !important; min-height: 0 !important; padding: 0 10px !important; border-radius: 6px !important;
    font-family: 'Inter', sans-serif; font-size: 12px !important; font-weight: 600 !important; line-height: 1 !important;
    border-width: 1.5px !important; border-style: solid !important; white-space: nowrap;
    outline: none !important; box-shadow: none !important; text-decoration: none !important;
}
body.madm-has-sidebar .mbnk-remove-btn, body.madm-has-sidebar .mwr-remove-btn, body.madm-has-sidebar .nse-del-btn { width: 30px; padding: 0 !important; }
body.madm-has-sidebar .wtg-btn-primary { height: 38px !important; padding: 0 16px !important; border-radius: 7px !important; font-size: 13px !important; }

/* Устгах: цагаан дэвсгэр, улаан хүрээ, улаан үсэг — бүх хуудсанд нэг */
body.madm-has-sidebar .moscap-soft-delete-btn,
body.madm-has-sidebar .mpl-delete-btn,
body.madm-has-sidebar .wtg-btn-danger,
body.madm-has-sidebar .mwr-remove-btn,
body.madm-has-sidebar .nse-del-btn,
body.madm-has-sidebar .mbnk-remove-btn {
    background: var(--madm-surface) !important; color: var(--madm-error-fg) !important; border-color: var(--madm-error-fg) !important;
}
body.madm-has-sidebar .moscap-soft-delete-btn:hover,
body.madm-has-sidebar .mpl-delete-btn:hover,
body.madm-has-sidebar .wtg-btn-danger:hover,
body.madm-has-sidebar .mwr-remove-btn:hover,
body.madm-has-sidebar .nse-del-btn:hover,
body.madm-has-sidebar .mbnk-remove-btn:hover { background: var(--madm-error-bg) !important; }

/* Хуучин таб-ын мөрүүд (лиценз, гүйцэтгэгч, бүлэглэлт, роялти, төрөл/жанр,
   гишүүдийн ангилал) → мөн сегмент тавиур. HTML өөрчлөхгүй. */
body.madm-has-sidebar .mlr-tabs,
body.madm-has-sidebar .mpl-tabs-nav,
body.madm-has-sidebar .msg-tabs,
body.madm-has-sidebar .ra-tabs,
body.madm-has-sidebar .wtg-tabs,
body.madm-has-sidebar .moscap-category-tabs {
    display: inline-flex !important; flex-wrap: wrap; gap: 4px !important; padding: 4px !important;
    background: var(--madm-hover-bg) !important; border: 1px solid var(--madm-border) !important; border-radius: 10px !important;
    margin-bottom: 20px;
}
body.madm-has-sidebar .mlr-tab-btn,
body.madm-has-sidebar .mpl-tab-btn,
body.madm-has-sidebar .msg-tab-btn,
body.madm-has-sidebar .ra-tab-btn,
body.madm-has-sidebar .wtg-tab-btn,
body.madm-has-sidebar .moscap-category-tab {
    -webkit-appearance: none !important; appearance: none !important;
    display: inline-flex !important; align-items: center; gap: 8px;
    height: 34px !important; padding: 0 16px !important; margin: 0 !important;
    background: transparent !important; border: none !important; border-radius: 7px !important;
    font-family: 'Inter', sans-serif; font-size: 13px !important; font-weight: 600 !important; line-height: 1 !important;
    color: var(--madm-text-secondary) !important; cursor: pointer; white-space: nowrap;
    outline: none !important; box-shadow: none !important; text-decoration: none !important;
    transition: background .15s, color .15s;
}
body.madm-has-sidebar .mlr-tab-btn:hover, body.madm-has-sidebar .mlr-tab-btn:focus, body.madm-has-sidebar .mlr-tab-btn:visited,
body.madm-has-sidebar .mpl-tab-btn:hover, body.madm-has-sidebar .mpl-tab-btn:focus, body.madm-has-sidebar .mpl-tab-btn:visited,
body.madm-has-sidebar .msg-tab-btn:hover, body.madm-has-sidebar .msg-tab-btn:focus, body.madm-has-sidebar .msg-tab-btn:visited,
body.madm-has-sidebar .ra-tab-btn:hover, body.madm-has-sidebar .ra-tab-btn:focus, body.madm-has-sidebar .ra-tab-btn:visited,
body.madm-has-sidebar .wtg-tab-btn:hover, body.madm-has-sidebar .wtg-tab-btn:focus, body.madm-has-sidebar .wtg-tab-btn:visited,
body.madm-has-sidebar .moscap-category-tab:hover, body.madm-has-sidebar .moscap-category-tab:focus, body.madm-has-sidebar .moscap-category-tab:visited {
    background: rgba(0, 110, 180, .10) !important; color: #006EB4 !important; border: none !important; outline: none !important; box-shadow: none !important; text-decoration: none !important;
}
body.madm-has-sidebar .mlr-tab-btn.active, body.madm-has-sidebar .mlr-tab-btn.active:hover, body.madm-has-sidebar .mlr-tab-btn.active:focus, body.madm-has-sidebar .mlr-tab-btn.active:focus-visible, body.madm-has-sidebar .mlr-tab-btn.active:visited,
body.madm-has-sidebar .mpl-tab-btn.active, body.madm-has-sidebar .mpl-tab-btn.active:hover, body.madm-has-sidebar .mpl-tab-btn.active:focus, body.madm-has-sidebar .mpl-tab-btn.active:focus-visible, body.madm-has-sidebar .mpl-tab-btn.active:visited,
body.madm-has-sidebar .msg-tab-btn.active, body.madm-has-sidebar .msg-tab-btn.active:hover, body.madm-has-sidebar .msg-tab-btn.active:focus, body.madm-has-sidebar .msg-tab-btn.active:focus-visible, body.madm-has-sidebar .msg-tab-btn.active:visited,
body.madm-has-sidebar .ra-tab-btn.active, body.madm-has-sidebar .ra-tab-btn.active:hover, body.madm-has-sidebar .ra-tab-btn.active:focus, body.madm-has-sidebar .ra-tab-btn.active:focus-visible, body.madm-has-sidebar .ra-tab-btn.active:visited,
body.madm-has-sidebar .wtg-tab-btn.active, body.madm-has-sidebar .wtg-tab-btn.active:hover, body.madm-has-sidebar .wtg-tab-btn.active:focus, body.madm-has-sidebar .wtg-tab-btn.active:focus-visible, body.madm-has-sidebar .wtg-tab-btn.active:visited,
body.madm-has-sidebar .moscap-category-tab--active, body.madm-has-sidebar .moscap-category-tab--active:hover, body.madm-has-sidebar .moscap-category-tab--active:focus, body.madm-has-sidebar .moscap-category-tab--active:focus-visible, body.madm-has-sidebar .moscap-category-tab--active:visited {
    background: #006EB4 !important; color: #fff !important; border: none !important;
}
