.crm-toast-stack {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    width: calc(100vw - 36px);
    pointer-events: none;
    font-family: Arial, Helvetica, sans-serif;
}

.crm-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    border-left-width: 5px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    font-size: 13px;
    line-height: 1.45;
    animation: crmSlideIn 0.2s ease-out;
}

.crm-toast--warning { border-left-color: #f59e0b; }
.crm-toast--error   { border-left-color: #dc2626; }
.crm-toast--success { border-left-color: #16a34a; }
.crm-toast--info    { border-left-color: #0284c7; }

.crm-toast__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
}

.crm-toast__body {
    flex: 1 1 auto;
    min-width: 0;
}

.crm-toast__title {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 2px;
    color: #111827;
}

.crm-toast__msg {
    white-space: pre-line;
    word-break: break-word;
    color: #374151;
}

.crm-toast__close {
    flex: 0 0 auto;
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.crm-toast__close:hover {
    color: #111827;
}

.crm-modal-backdrop {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: Arial, Helvetica, sans-serif;
}

.crm-modal-card {
    background: #ffffff;
    border-radius: 12px;
    max-width: 440px;
    width: 100%;
    padding: 22px 24px 18px;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28);
    border-top: 5px solid #dc2626;
    text-align: left;
    animation: crmPopIn 0.18s ease-out;
}

.crm-modal-card--warning { border-top-color: #ea580c; }
.crm-modal-card--error   { border-top-color: #dc2626; }
.crm-modal-card--success { border-top-color: #16a34a; }
.crm-modal-card--info    { border-top-color: #0284c7; }

.crm-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.crm-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
}

.crm-modal-msg {
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    white-space: pre-line;
    word-break: break-word;
    margin-bottom: 18px;
}

.crm-modal-actions {
    display: flex;
    justify-content: flex-end;
}

.crm-modal-btn {
    background: #0099ff;
    color: #ffffff;
    border: none;
    border-radius: 7px;
    padding: 9px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.crm-modal-btn:hover {
    background: #007acc;
}

@keyframes crmSlideIn {
    from { opacity: 0; transform: translateX(18px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes crmPopIn {
    from { opacity: 0; transform: scale(0.95); }
    to   { opacity: 1; transform: scale(1); }
}

