/* █████████████████████████████████████████████████████████████████████
   ЕДИНАЯ ТЕМНАЯ ТЕМА JK-CRM (jkcrmjk_theme.css)
   █████████████████████████████████████████████████████████████████████ */
:root {
    --bg-main: #090a0f;
    --bg-surface: #11131d;
    --bg-surface-2: #171a27;
    --bg-glass: rgba(13, 15, 24, 0.78);
    --border-soft: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --brand: #a100e4;
    --brand-light: #c042ff;
    --brand-glow: rgba(161, 0, 228, 0.28);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --ok: #10b981;
    --warn: #f59e0b;
    --err: #ef4444;
    --info: #38bdf8;
    --radius-lg: 22px;
    --radius-md: 15px;
    --radius-sm: 11px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

html.crm-scroll-locked,
body.crm-scroll-locked {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(600px circle at 15% 0%, rgba(161, 0, 228, 0.14), transparent 60%),
        radial-gradient(500px circle at 85% 95%, rgba(56, 189, 248, 0.08), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.hidden { display: none !important; }

/* ---------- АВТОРИЗАЦИЯ ---------- */
.crm-login-wrap {
    position: relative;
    z-index: 10;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.crm-login-card {
    width: 100%;
    max-width: 400px;
    padding: 28px 24px;
    border-radius: 28px;
    background: linear-gradient(165deg, rgba(22, 25, 38, 0.94), rgba(12, 14, 22, 0.98));
    border: 1px solid rgba(184, 41, 255, 0.22);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}
.crm-login-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}
.crm-logo-badge {
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--brand), #7e00b8);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 8px 24px var(--brand-glow);
}
.crm-login-title { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.crm-login-sub { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

/* ---------- ВЕРХНЯЯ ПАНЕЛЬ ---------- */
.crm-shell { position: relative; z-index: 1; min-height: 100dvh; padding-top: 62px; padding-bottom: 92px; }

.crm-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 60px;
    z-index: 85;
    background: rgba(9, 10, 15, 0.78);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    gap: 10px;
}
.crm-topbar-left, .crm-topbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; }

.crm-brand-mini {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.02em;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    padding: 6px 8px;
    border-radius: 12px;
}
.crm-brand-dot {
    width: 9px; height: 9px; border-radius: 50%;
    background: var(--brand-light);
    box-shadow: 0 0 12px var(--brand-light);
}

/* ---------- ФИРМЕННЫЕ ВЫПАДАЮЩИЕ СПИСКИ ---------- */
.crm-cselect {
    position: relative;
    width: 100%;
}
.crm-cselect-topbar {
    width: auto;
    min-width: 155px;
    max-width: 215px;
}
.crm-cselect-trigger {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-soft);
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.crm-cselect-topbar .crm-cselect-trigger {
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border-width: 1px;
    font-size: 13px;
}
.crm-cselect.open .crm-cselect-trigger,
.crm-cselect-trigger:hover {
    border-color: rgba(192, 66, 255, 0.55);
    background: rgba(161, 0, 228, 0.14);
}
.crm-cselect-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 8px currentColor;
}
.crm-cselect-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crm-cselect-arrow {
    font-size: 10.5px;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.crm-cselect.open .crm-cselect-arrow {
    transform: rotate(180deg);
    color: var(--brand-light);
}

.crm-cselect-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 100%;
    max-height: 280px;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 180;
    padding: 6px;
    border-radius: 18px;
    background: rgba(14, 16, 26, 0.96);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(184, 41, 255, 0.30);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.78);
    display: flex;
    flex-direction: column;
    gap: 4px;
    animation: crmDropDown 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
.crm-cselect-topbar .crm-cselect-menu {
    min-width: 245px;
}
@keyframes crmDropDown {
    from { opacity: 0; transform: translateY(-6px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.crm-cselect-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.crm-cselect-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.crm-cselect-option.selected {
    background: rgba(161, 0, 228, 0.22);
    border-color: rgba(184, 41, 255, 0.42);
    color: #fff;
}
.crm-cselect-opt-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}
.crm-cselect-opt-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.crm-cselect-opt-sub {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.crm-cselect-check {
    color: var(--brand-light);
    font-size: 13px;
    flex-shrink: 0;
}

.crm-sse-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.28);
    color: #34d399;
    font-size: 11.5px;
    font-weight: 800;
}
.crm-sse-pill.offline {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
    color: #f87171;
}
.crm-sse-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.crm-user-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    border-radius: 13px;
    padding: 4px 10px 4px 5px;
    color: #fff;
    cursor: pointer;
}
.crm-user-avatar {
    width: 28px; height: 28px; border-radius: 9px;
    background: linear-gradient(135deg, var(--brand), #7e00b8);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 13px;
}
.crm-user-meta { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.crm-user-meta span { font-size: 12px; font-weight: 800; }
.crm-user-meta small { font-size: 10px; color: var(--text-muted); }

.crm-icon-btn {
    width: 36px; height: 36px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.crm-icon-btn:hover { color: #fff; border-color: var(--brand); }

@media (max-width: 540px) {
    .crm-hide-xs { display: none !important; }
    .crm-user-chip { padding: 4px; }
    .crm-cselect-topbar { min-width: 135px; max-width: 175px; }
}

/* ---------- ОСНОВНАЯ РАБОЧАЯ ОБЛАСТЬ ---------- */
.crm-main-root {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 14px 20px 14px;
}
.crm-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}
.crm-page-title { font-size: 22px; font-weight: 900; margin: 0; letter-spacing: -0.02em; }
.crm-page-sub { font-size: 13px; color: var(--text-muted); margin-top: 3px; }

.crm-card {
    background: rgba(18, 21, 33, 0.86);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 18px;
    margin-bottom: 14px;
}
.crm-grid-2 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
.crm-grid-3 { display: grid; grid-template-columns: repeat(1, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 680px) { .crm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .crm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- ФОРМЫ, КНОПКИ, БЕЙДЖИ, ТАБЫ ---------- */
.crm-form-stack { display: flex; flex-direction: column; gap: 14px; }
.crm-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.crm-field label {
    font-size: 11.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding-left: 2px;
}
.crm-input-wrap { position: relative; display: flex; align-items: center; }
.crm-input-wrap > i { position: absolute; left: 14px; color: var(--text-dim); font-size: 14px; pointer-events: none; }
.crm-input-wrap input { padding-left: 40px !important; }

input.crm-input, select.crm-select, textarea.crm-textarea, .crm-input-wrap input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.04);
    border: 1.5px solid var(--border-soft);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
}
textarea.crm-textarea { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; font-family: inherit; }
input.crm-input:focus, select.crm-select:focus, textarea.crm-textarea:focus, .crm-input-wrap input:focus {
    border-color: var(--brand-light);
    background: rgba(255, 255, 255, 0.07);
}
select.crm-select option { background: #141724; color: #fff; }

.crm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.crm-btn-sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
.crm-btn-full { width: 100%; }
.crm-btn-primary {
    background: linear-gradient(135deg, var(--brand), #7e00b8);
    color: #fff;
    box-shadow: 0 8px 20px -6px var(--brand-glow);
}
.crm-btn-primary:hover { filter: brightness(1.08); }
.crm-btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-soft);
    color: #e2e8f0;
}
.crm-btn-ghost:hover { border-color: var(--brand-light); color: #fff; }
.crm-btn-danger {
    background: rgba(239, 68, 68, 0.14);
    border-color: rgba(239, 68, 68, 0.30);
    color: #f87171;
}
.crm-btn-danger:hover { background: rgba(239, 68, 68, 0.24); }
.crm-btn-success {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(16, 185, 129, 0.35);
    color: #34d399;
}

.crm-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 16px;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}
.crm-tabs::-webkit-scrollbar { display: none; }
.crm-tab-btn {
    padding: 9px 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}
.crm-tab-btn.active {
    background: rgba(161, 0, 228, 0.22);
    border-color: rgba(184, 41, 255, 0.48);
    color: #fff;
}

.crm-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9px;
    font-size: 11.5px;
    font-weight: 800;
    white-space: nowrap;
}
.crm-error-banner {
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

/* Тумблер (Switch) */
.crm-switch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    cursor: pointer;
}
.crm-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
    transition: background 0.2s ease;
}
.crm-switch::after {
    content: "";
    position: absolute;
    top: 3px; left: 3px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s ease;
}
.crm-switch.on { background: var(--brand); }
.crm-switch.on::after { transform: translateX(20px); }

/* Таблицы */
.crm-table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.crm-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.crm-table th {
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
}
.crm-table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}
.crm-table tr:last-child td { border-bottom: none; }
.crm-table tr.clickable:hover td { background: rgba(255, 255, 255, 0.03); cursor: pointer; }

/* ---------- МОДАЛЬНЫЕ ОКНА (С ЖЕСТКОЙ ИЗОЛЯЦИЕЙ СКРОЛЛА И ТАЧА) ---------- */
.crm-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 140;
    background: rgba(4, 5, 10, 0.76);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    overscroll-behavior: none;
    touch-action: none;
}
@media (min-width: 640px) {
    .crm-modal-overlay { align-items: center; padding: 20px; }
}
.crm-modal-card {
    width: 100%;
    max-width: 620px;
    max-height: 90dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    background: linear-gradient(165deg, #161926, #0d0f17);
    border-top: 1px solid var(--border-strong);
    border-radius: 26px 26px 0 0;
    padding: 20px 20px 28px 20px;
    box-shadow: 0 -16px 50px rgba(0, 0, 0, 0.85);
}
@media (min-width: 640px) {
    .crm-modal-card {
        border: 1px solid var(--border-strong);
        border-radius: 24px;
        padding: 24px;
    }
}
.crm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-soft);
}
.crm-modal-title { font-size: 18px; font-weight: 900; margin: 0; }

/* ---------- СКРОЛЛИРУЕМОЕ НИЖНЕЕ МЕНЮ (DOCK) + ВСПЛЫВАЮЩЕЕ ПОДМЕНЮ ---------- */
.crm-dock-wrap {
    position: fixed;
    bottom: 12px;
    left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 0 10px;
    pointer-events: none;
}
.crm-dock-bar {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    padding: 6px;
    border-radius: 24px;
    background: rgba(10, 12, 20, 0.82);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.crm-dock-bar::-webkit-scrollbar { display: none; }

.crm-dock-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 72px;
    padding: 8px 10px;
    border-radius: 17px;
    border: none;
    background: transparent;
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}
.crm-dock-btn i { font-size: 15.5px; }
.crm-dock-btn:hover,
.crm-dock-btn.active,
.crm-dock-btn.open {
    color: var(--brand-light);
    background: rgba(161, 0, 228, 0.22);
    box-shadow: inset 0 0 0 1px rgba(184, 41, 255, 0.36);
}
.crm-dock-caret {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 8px !important;
    opacity: 0.65;
}
.crm-dock-badge {
    position: absolute;
    top: 3px;
    right: 8px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 9.5px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.crm-dock-backdrop {
    position: fixed;
    inset: 0;
    z-index: 98;
    background: rgba(4, 5, 10, 0.45);
    backdrop-filter: blur(4px);
    overscroll-behavior: none;
    touch-action: none;
}
.crm-dock-popup {
    position: fixed;
    bottom: 84px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 105;
    width: calc(100% - 24px);
    max-width: 440px;
    max-height: calc(100dvh - 160px);
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    border-radius: 24px;
    background: rgba(13, 15, 24, 0.94);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(184, 41, 255, 0.28);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.78);
    animation: crmPopupRise 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes crmPopupRise {
    from { opacity: 0; transform: translate(-50%, 14px) scale(0.97); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.crm-popup-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-light);
    padding: 2px 4px 10px 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}
.crm-popup-group-label {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin: 10px 4px 6px 4px;
}
.crm-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}
.crm-popup-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    color: #f1f5f9;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: all 0.18s ease;
}
.crm-popup-item i { color: var(--brand-light); width: 18px; text-align: center; font-size: 14px; flex-shrink: 0; }
.crm-popup-item:hover, .crm-popup-item.active {
    background: rgba(161, 0, 228, 0.20);
    border-color: rgba(184, 41, 255, 0.45);
    color: #fff;
}

/* ---------- УВЕДОМЛЕНИЯ (ТОСТЫ И ОПЛАТА) ---------- */
.crm-toast-stack {
    position: fixed;
    top: 70px;
    right: 14px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: min(360px, calc(100vw - 28px));
}
.crm-toast {
    padding: 12px 15px;
    border-radius: 16px;
    background: rgba(18, 21, 33, 0.96);
    border: 1px solid var(--border-strong);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.crm-toast.ok { border-color: rgba(16, 185, 129, 0.5); color: #6ee7b7; }
.crm-toast.err { border-color: rgba(239, 68, 68, 0.5); color: #fca5a5; }
.crm-toast.pay {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.96), rgba(16, 185, 129, 0.25));
    border: 1.5px solid #10b981;
    color: #fff;
}
