/* ── Error dialog styles ── */
/* Global styles required because Syncfusion SfDialog (modal) renders outside the component tree. */

/* Dialog border */
.error-dialog.e-dialog {
    border: 2px solid #dc2626;
}

/* Header bar */
.error-dialog .e-dlg-header-content {
    color: #dc2626;
}

/* Prevent Syncfusion's default title truncation */
.error-dialog .e-dlg-header {
    overflow: visible;
    text-overflow: unset;
    white-space: normal;
}



/* Header template layout */
.error-dialog-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.error-dialog-icon.mdi {
    font-size: 2.25rem;
}

/* Content area */
.error-dialog-content {
    font-size: 0.875rem;
    line-height: 1.5;
}

.error-dialog-message {
    margin-bottom: 0.75rem;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Validation error list */
.error-dialog-validation {
    margin: 0.25rem 0 0.75rem 0;
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: #b91c1c;
}

.error-dialog-validation li {
    margin-bottom: 0.25rem;
}

/* Technical details collapsible */
.error-dialog-details {
    margin-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
    padding-top: 0.5rem;
}

.error-dialog-details summary {
    cursor: pointer;
    font-size: 0.8rem;
    color: #6b7280;
    user-select: none;
}

.error-dialog-details summary:hover {
    color: #374151;
}

.error-dialog-details-body {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    max-height: 350px;
    overflow-y: auto;
}

.error-dialog-details-body p {
    margin: 0.25rem 0;
    word-break: break-word;
}

.error-dialog-details-body code {
    font-family: monospace;
    font-size: 0.75rem;
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
}

.error-dialog-stacktrace {
    font-size: 0.7rem;
    max-height: 200px;
    overflow: auto;
    background: #f3f4f6;
    color: #1f2937;
    padding: 0.5rem;
    border-radius: 4px;
    white-space: pre-wrap;
    word-break: break-all;
    margin: 0.25rem 0 0 0;
    border: 1px solid #e5e7eb;
}
