
.muted {
    color: var(--muted);
}

.badge {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

.badge-new {
    background: #e8f0fe;
    color: #21446d;
}

.badge-in_progress {
    background: #e8f0fe;
    color: #21446d;
}

.badge-closed {
    background: #e8f6ee;
    color: #2f7d45;
}

.badge-guest {
    background: #e8f0fe;
    color: #21446d;
}

.badge-expert {
    background: #e9f6ef;
    color: #2c6b48;
}

.badge-document_specialist {
    background: #eef4ff;
    color: #1d4c82;
}

.badge-administrator {
    background: #fff1cf;
    color: #916300;
}

.badge-call_center {
    background: #fce9f2;
    color: #9a3462;
}

.badge-active {
    background: #e8f6ee;
    color: #2f7d45;
}

.badge-inactive {
    background: #f1f3f5;
    color: #5b6573;
}

.demo-box {
    background: #fff7e1;
    border: 1px solid #f5d272;
    border-radius: 16px;
    padding: 1rem;
}

.toast-container {
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom));
    z-index: 1200;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100vw - 48px));
    max-height: min(70vh, 560px);
    overflow-y: auto;
    padding: 4px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
    padding: 14px 14px 14px 16px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    border-radius: 14px;
    box-shadow: 0 14px 36px rgba(19, 48, 92, 0.18);
    pointer-events: auto;
    overflow-wrap: anywhere;
    animation: toast-in 180ms ease-out both;
}

.toast-success { border-left-color: #3b9b68; }
.toast-info { border-left-color: var(--accent); }
.toast-warning { border-left-color: #d59626; }
.toast-error { border-left-color: #c95757; }

.toast-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.45;
}

.toast-close {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border-radius: 50%;
    font-size: 23px;
    font-weight: 300;
    line-height: 1;
}

.toast-close:hover,
.toast-close:focus-visible {
    color: var(--brand);
    background: #f3f7fd;
    transform: none;
}

.toast.is-closing {
    animation: toast-out 180ms ease-in forwards;
}

@keyframes toast-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes toast-out {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(8px); }
}
