h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* ── MudSelect en AppBar oscuro (plataforma-select-*) ── */

/* Texto del valor seleccionado */
.plataforma-select-always .mud-input-slot,
.plataforma-select-mobile .mud-input-slot,
.plataforma-select-always .mud-select-input .mud-input-root,
.plataforma-select-mobile .mud-select-input .mud-input-root {
    color: #e8eaf0 !important;
}

/* Input nativo interno */
.plataforma-select-always .mud-input input,
.plataforma-select-mobile .mud-input input,
.plataforma-select-always .mud-select input,
.plataforma-select-mobile .mud-select input {
    color: #e8eaf0 !important;
    -webkit-text-fill-color: #e8eaf0 !important;
}

/* Texto del item seleccionado visible en el campo */
.plataforma-select-always .mud-select-input,
.plataforma-select-mobile .mud-select-input {
    color: #e8eaf0 !important;
}

/* Ícono flecha */
.plataforma-select-always .mud-input-adornment button svg,
.plataforma-select-mobile .mud-input-adornment button svg,
.plataforma-select-always .mud-select .mud-input-adornment svg,
.plataforma-select-mobile .mud-select .mud-input-adornment svg {
    color: rgba(232, 234, 240, 0.6) !important;
    fill: rgba(232, 234, 240, 0.6) !important;
}

/* Borde outlined */
.plataforma-select-always .mud-input-outlined fieldset,
.plataforma-select-mobile .mud-input-outlined fieldset {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Altura compacta: que no sobresalga del AppBar de 48px ── */

/* Eliminar márgenes del contenedor raíz */
.plataforma-select-always .mud-input-control,
.plataforma-select-mobile .mud-input-control {
    margin: 0 !important;
    padding: 0 !important;
}

/* Quitar espacio reservado para helper text debajo */
.plataforma-select-always .mud-input-control > .mud-input-control-input-container,
.plataforma-select-mobile .mud-input-control > .mud-input-control-input-container {
    padding-bottom: 0 !important;
}

/* Fijar alto del input outlined a 32px */
.plataforma-select-always .mud-input-outlined,
.plataforma-select-mobile .mud-input-outlined {
    margin: 0 !important;
    height: 32px !important;
}

/* Ajustar padding interno del slot para centrar el texto */
.plataforma-select-always .mud-input-outlined .mud-input-slot,
.plataforma-select-mobile .mud-input-outlined .mud-input-slot {
    height: 32px !important;
    min-height: unset !important;
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    box-sizing: border-box !important;
}

/* Alinear el fieldset (borde) con el nuevo alto */
.plataforma-select-always .mud-input-outlined fieldset,
.plataforma-select-mobile .mud-input-outlined fieldset {
    top: 0 !important;
    height: 32px !important;
}

/* ══════════════════════════════════════
   USER MENU POPOVER
   Debe estar en app.css (CSS global) porque
   MudBlazor renderiza el popover fuera del
   árbol del componente, scoped CSS no llega
══════════════════════════════════════ */
.user-menu-popover {
    background: #0f1420 !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.6) !important;
    min-width: 230px !important;
    padding: 6px 0 !important;
    margin-top: 6px !important;
    overflow: hidden !important;
}

.user-menu-popover .mud-list {
    background: #0f1420 !important;
    padding: 0 !important;
}

.user-menu-popover .mud-list-item {
    background: #0f1420 !important;
}

.user-menu-popover .mud-list-item:hover {
    background: rgba(255,255,255,0.06) !important;
}

.user-menu-popover .mud-list-item * {
    color: #c8ccd8 !important;
}

/* Item de cerrar sesión */
.user-menu-popover .user-menu-item-danger .mud-list-item:hover {
    background: rgba(244,67,54,0.08) !important;
}

.user-menu-popover .user-menu-item-danger * {
    color: rgba(244,67,54,0.85) !important;
}

/* ══════════════════════════════════════
   PERFIL DIALOG
══════════════════════════════════════ */
.mud-dialog {
    background: #0f1420 !important;
    border: 1px solid rgba(255,255,255,0.07) !important;
    border-radius: 16px !important;
    color: #e8eaf0 !important;
}

.mud-dialog .mud-dialog-title {
    color: #e8eaf0 !important;
    background: #0f1420 !important;
}

.mud-dialog .mud-dialog-content {
    background: #0f1420 !important;
    color: #e8eaf0 !important;
}

.mud-dialog .mud-dialog-actions {
    background: #0f1420 !important;
}

/* Tabs dentro del dialog */
.mud-dialog .mud-tabs-toolbar {
    background: #0f1420 !important;
    border-bottom: 1px solid rgba(255,255,255,0.07) !important;
}

.mud-dialog .mud-tabs-toolbar-wrapper,
.mud-dialog .mud-tabs-toolbar-inner,
.mud-dialog .mud-tabs-scroll-button,
.mud-dialog .mud-tabs-toolbar > *,
.mud-dialog .mud-tabs > .mud-tabs-toolbar,
.mud-dialog .mud-tabs > .mud-tabs-toolbar > div,
.mud-dialog .mud-tabs > .mud-tabs-toolbar > div > div {
    background: #0f1420 !important;
}

/* Nuclear: cualquier div dentro de la toolbar de tabs del dialog */
.mud-dialog .mud-tabs-toolbar div {
    background: #0f1420 !important;
}

.mud-dialog .mud-tabs-tabbar-content {
    background: #0f1420 !important;
}

.mud-tabs-tabbar-content {
    background: #0f1420 !important;
}

.mud-dialog .mud-tab {
    color: rgba(255,255,255,0.4) !important;
}

.mud-dialog .mud-tab.mud-tab-active {
    color: #4f9cf9 !important;
}

.mud-dialog .mud-tab-slider {
    background: #4f9cf9 !important;
}

/* Fondo de los panels de tab */
.mud-dialog .mud-tabs-panels {
    background: #0f1420 !important;
}

.mud-dialog .mud-tab-panel {
    background: #0f1420 !important;
}

.mud-dialog .mud-tabs-panels > div,
.mud-dialog .mud-tabs-panels > div > div {
    background: #0f1420 !important;
}

/* Inputs dentro del dialog */
.mud-dialog .mud-input-outlined fieldset {
    border-color: rgba(255,255,255,0.10) !important;
}

.mud-dialog .mud-input-outlined:hover fieldset {
    border-color: rgba(79,156,249,0.35) !important;
}

.mud-dialog .mud-input-outlined.mud-input-focused fieldset {
    border-color: #4f9cf9 !important;
}

.mud-dialog .mud-input-root input,
.mud-dialog .mud-input-root textarea {
    color: #e8eaf0 !important;
    -webkit-text-fill-color: #e8eaf0 !important;
}

.mud-dialog .mud-input-root input:disabled,
.mud-dialog .mud-input-root textarea:disabled {
    color: rgba(255,255,255,0.25) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.25) !important;
}

.mud-dialog .mud-input-label {
    color: rgba(255,255,255,0.4) !important;
}

.mud-dialog .mud-input-helper-text {
    color: rgba(255,255,255,0.28) !important;
}

.mud-dialog .mud-input-adornment svg {
    color: rgba(255,255,255,0.25) !important;
}

/* Botón cerrar (X) del dialog */
.mud-dialog .mud-button-root.mud-icon-button {
    color: rgba(255,255,255,0.35) !important;
}

/* Overlay del backdrop */
.mud-overlay-dialog {
    background: rgba(0,0,0,0.65) !important;
}
