/*!
 * smit-org-switch — меню смены организации (build 1989). Пара с smit-org-switch.js.
 * Стили перенесены из .cdc-prov-menu дровера сделки CRM, чтобы вид смены
 * организации был одинаковым во всех разделах.
 */
.smit-orgsw-anchor { cursor: pointer; }

.smit-orgsw-menu {
    position: fixed; z-index: 2700; min-width: 120px;
    background: var(--surface-card, #fff);
    border: 1px solid var(--sc-border, #d9dee5);
    border-radius: 10px; padding: 6px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .16);
}
.smit-orgsw-head {
    font-size: var(--sc-fz-xs, .72rem); text-transform: uppercase; letter-spacing: .04em;
    color: var(--sc-text-muted, #64748b); padding: 2px 8px 6px;
}
.smit-orgsw-item {
    padding: 9px 12px; border-radius: 7px; cursor: pointer;
    font-size: var(--sc-fz-md, .95rem); display: flex; align-items: center; gap: 6px;
}
.smit-orgsw-item:hover,
.smit-orgsw-item:focus { background: #eef6f2; color: #2d7d5a; outline: none; }
.smit-orgsw-item:focus-visible { box-shadow: inset 0 0 0 2px var(--brand-primary, #43b77a); }
.smit-orgsw-plain { font-weight: 600; }

[data-bs-theme="dark"] .smit-orgsw-menu,
body.dark-theme .smit-orgsw-menu { background: #23272e; border-color: #3a3f47; }
[data-bs-theme="dark"] .smit-orgsw-item,
body.dark-theme .smit-orgsw-item { color: #e6e9ee; }
[data-bs-theme="dark"] .smit-orgsw-item:hover,
[data-bs-theme="dark"] .smit-orgsw-item:focus,
body.dark-theme .smit-orgsw-item:hover,
body.dark-theme .smit-orgsw-item:focus { background: #2b3a33; color: #7fd7ab; }

/* Мобильный: не выпадашка у бейджа, а панель снизу — как остальные модалки
   админки (полноэкранные слайд-панели). Пункты крупнее: попасть пальцем. */
@media (max-width: 767.98px) {
    .smit-orgsw-menu {
        left: 0 !important; right: 0; top: auto !important; bottom: 0;
        min-width: 0; border-radius: 16px 16px 0 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -8px 28px rgba(15, 23, 42, .22);
        animation: smitOrgswUp .22s ease-out;
    }
    .smit-orgsw-head { font-size: var(--sc-fz-sm, .82rem); padding: 4px 10px 8px; }
    .smit-orgsw-item { min-height: 48px; font-size: var(--sc-fz-lg, 1.05rem); padding: 12px 14px; }
}
@keyframes smitOrgswUp { from { transform: translateY(12px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .smit-orgsw-menu { animation: none; } }
