/* Panel de error de SafeContent. Paleta Fluent del proyecto:
   #003E91 navy primario, #D13438 rojo error, #0078D4 azul Fluent. */

.safe-content-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 320px;
    padding: 24px;
    box-sizing: border-box;
}

.sce-card {
    max-width: 520px;
    width: 100%;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #D13438;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    text-align: center;
}

.sce-icon {
    font-size: 40px;
    color: #D13438;
    line-height: 1;
}

.sce-title {
    margin: 14px 0 6px;
    font-size: 19px;
    font-weight: 600;
    color: #003E91;
}

.sce-message {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

.sce-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.sce-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.sce-btn:focus-visible {
    outline: 2px solid #0078D4;
    outline-offset: 2px;
}

.sce-btn-primary {
    background: #003E91;
    color: #fff;
}

.sce-btn-primary:hover {
    background: #002d6b;
}

.sce-btn-ghost {
    background: transparent;
    color: #003E91;
    border-color: #c7d2e3;
}

.sce-btn-ghost:hover {
    background: #f3f6fb;
}

.sce-details {
    margin-top: 18px;
    text-align: left;
}

.sce-details summary {
    cursor: pointer;
    font-size: 12.5px;
    color: #6b7280;
    user-select: none;
}

.sce-details summary:focus-visible {
    outline: 2px solid #0078D4;
    outline-offset: 2px;
}

.sce-details pre {
    margin: 8px 0 0;
    padding: 10px 12px;
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 12px;
    color: #374151;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 180px;
    overflow: auto;
}

@media (max-width: 480px) {
    .sce-card {
        padding: 22px 18px;
    }

    .sce-actions {
        flex-direction: column;
    }
}
