/* Diálogos premium — SuiteDialog */
.suite-dialog-toast {
    position: fixed;
    bottom: 72px;
    right: 20px;
    z-index: 100001;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 700;
    font-family: 'Inter', system-ui, sans-serif;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    max-width: min(92vw, 360px);
    line-height: 1.35;
    white-space: normal;
}
.suite-dialog-toast.long {
    max-width: min(92vw, 520px);
    padding: 16px 20px;
    font-size: 0.82rem;
    line-height: 1.5;
    font-weight: 600;
    pointer-events: auto;
    cursor: pointer;
}
.suite-dialog-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.suite-dialog-toast.ok {
    background: rgba(52, 211, 153, 0.95);
    color: #042f1a;
    border: 1px solid rgba(52, 211, 153, 0.6);
}
.suite-dialog-toast.err {
    background: rgba(251, 113, 133, 0.95);
    color: #450a0a;
    border: 1px solid rgba(251, 113, 133, 0.55);
}
.suite-dialog-toast.info {
    background: rgba(99, 102, 241, 0.95);
    color: #eef2ff;
    border: 1px solid rgba(129, 140, 248, 0.5);
}

.suite-dialog-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.suite-dialog-modal.open { display: flex; }
.suite-dialog-panel {
    background: linear-gradient(165deg, #141820 0%, #0f1218 100%);
    border: 1px solid rgba(129, 140, 248, 0.22);
    border-radius: 18px;
    width: min(96vw, 480px);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
    overflow: hidden;
}
.suite-dialog-panel.suite-dialog-wide {
    width: min(98vw, 920px);
    max-height: min(92vh, 880px);
    display: flex;
    flex-direction: column;
}
.suite-dialog-panel.suite-dialog-wide .suite-dialog-body {
    overflow: auto;
    max-height: min(68vh, 620px);
}
/* Auditoría Card 4 — modal detalle (grande, legible) */
.suite-dialog-panel.suite-dialog-xl {
    width: min(98vw, 1320px);
    max-height: 96vh;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.78), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.suite-dialog-panel.suite-dialog-xl .suite-dialog-hdr h2 {
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}
.suite-dialog-panel.suite-dialog-xl .suite-dialog-body {
    overflow: auto;
    max-height: min(78vh, 820px);
    padding: 20px 24px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.5) 0%, rgba(2, 6, 23, 0.85) 100%);
    font-size: 12px;
    line-height: 1.5;
}
.suite-dialog-hdr {
    padding: 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.suite-dialog-hdr h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #f1f5f9;
    margin: 0 0 4px;
}
.suite-dialog-hdr p {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
}
.suite-dialog-close {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.9rem;
    line-height: 1;
}
.suite-dialog-close:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.suite-dialog-body { padding: 18px 22px; }
.suite-dialog-msg {
    font-size: 0.82rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin: 0;
}
.suite-dialog-label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
}
.suite-dialog-req { color: #fb7185; }
.suite-dialog-input {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 12px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    resize: vertical;
}
.suite-dialog-input:focus {
    outline: none;
    border-color: rgba(129, 140, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}
.suite-dialog-hint {
    font-size: 0.68rem;
    min-height: 1em;
    margin: 0;
}
.suite-dialog-footer {
    padding: 14px 22px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.suite-dialog-btn {
    padding: 9px 16px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
}
.suite-dialog-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.suite-dialog-btn.primary {
    border: none;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35);
}
.suite-dialog-btn.primary:hover { filter: brightness(1.08); }
.suite-dialog-btn.ghost { background: transparent; }

/* Header unificado páginas suite */
.suite-page-hdr {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 21, 28, 0.96);
    flex-wrap: wrap;
    gap: 12px;
}
.suite-page-hdr-title h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0;
    color: #f1f5f9;
}
.suite-page-hdr-title p {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 4px 0 0;
}
.suite-page-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.suite-page-nav a {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #a5b4fc;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 700;
    transition: all 0.15s;
}
.suite-page-nav a:hover {
    color: #e0e7ff;
    border-color: rgba(129, 140, 248, 0.45);
    background: rgba(99, 102, 241, 0.1);
}
.suite-page-nav .suite-page-nav-sep {
    width: 1px;
    height: 20px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 4px;
}
.suite-page-logout-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 12px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(251, 113, 133, 0.45) !important;
    background: rgba(251, 113, 133, 0.08) !important;
    color: #fda4af !important;
    font-size: 0.68rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none !important;
    min-width: auto !important;
    width: auto !important;
}
.suite-page-logout-btn:hover {
    color: #ffe4e6 !important;
    border-color: rgba(251, 113, 133, 0.65) !important;
    background: rgba(251, 113, 133, 0.18) !important;
}
