:root,
.theme-light {
    --inmoges-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --inmoges-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.03);
    --inmoges-shadow-md: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 16px rgba(15, 23, 42, 0.04);
    --inmoges-shadow-lg: 0 6px 16px rgba(15, 23, 42, 0.07), 0 16px 32px rgba(15, 23, 42, 0.06);
    --inmoges-table-header-bg: #F1F5F9;
    --inmoges-table-hover-bg: rgba(15, 23, 42, 0.025);
    --inmoges-input-bg: #FFFFFF;
    --inmoges-pill-default-bg: #F1F5F9;
    --inmoges-pill-default-fg: #334155;
    --inmoges-pill-default-border: #E2E8F0;
    --inmoges-pill-primary-bg: rgba(37, 99, 235, 0.10);
    --inmoges-pill-primary-fg: #1D4ED8;
    --inmoges-pill-primary-border: rgba(37, 99, 235, 0.22);
    --inmoges-pill-secondary-bg: rgba(79, 70, 229, 0.10);
    --inmoges-pill-secondary-fg: #4338CA;
    --inmoges-pill-secondary-border: rgba(79, 70, 229, 0.22);
    --inmoges-pill-info-bg: rgba(2, 132, 199, 0.10);
    --inmoges-pill-info-fg: #0369A1;
    --inmoges-pill-info-border: rgba(2, 132, 199, 0.22);
    --inmoges-pill-success-bg: rgba(16, 185, 129, 0.13);
    --inmoges-pill-success-fg: #047857;
    --inmoges-pill-success-border: rgba(16, 185, 129, 0.26);
    --inmoges-pill-warning-bg: rgba(245, 158, 11, 0.14);
    --inmoges-pill-warning-fg: #B45309;
    --inmoges-pill-warning-border: rgba(245, 158, 11, 0.28);
    --inmoges-pill-error-bg: rgba(239, 68, 68, 0.12);
    --inmoges-pill-error-fg: #B91C1C;
    --inmoges-pill-error-border: rgba(239, 68, 68, 0.24);
    --inmoges-pill-tertiary-bg: rgba(139, 92, 246, 0.12);
    --inmoges-pill-tertiary-fg: #6D28D9;
    --inmoges-pill-tertiary-border: rgba(139, 92, 246, 0.24);
}

.theme-dark {
    --inmoges-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.28);
    --inmoges-shadow-md: 0 2px 8px rgba(0, 0, 0, 0.32), 0 8px 20px rgba(0, 0, 0, 0.22);
    --inmoges-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.45);
    --inmoges-table-header-bg: rgba(255, 255, 255, 0.04);
    --inmoges-table-hover-bg: rgba(255, 255, 255, 0.035);
    --inmoges-input-bg: rgba(255, 255, 255, 0.02);
    --inmoges-pill-default-bg: rgba(148, 163, 184, 0.14);
    --inmoges-pill-default-fg: #CBD5E1;
    --inmoges-pill-default-border: rgba(148, 163, 184, 0.22);
    --inmoges-pill-primary-bg: rgba(59, 130, 246, 0.18);
    --inmoges-pill-primary-fg: #93C5FD;
    --inmoges-pill-primary-border: rgba(59, 130, 246, 0.30);
    --inmoges-pill-secondary-bg: rgba(129, 140, 248, 0.18);
    --inmoges-pill-secondary-fg: #C7D2FE;
    --inmoges-pill-secondary-border: rgba(129, 140, 248, 0.30);
    --inmoges-pill-info-bg: rgba(56, 189, 248, 0.18);
    --inmoges-pill-info-fg: #7DD3FC;
    --inmoges-pill-info-border: rgba(56, 189, 248, 0.30);
    --inmoges-pill-success-bg: rgba(52, 211, 153, 0.18);
    --inmoges-pill-success-fg: #6EE7B7;
    --inmoges-pill-success-border: rgba(52, 211, 153, 0.30);
    --inmoges-pill-warning-bg: rgba(251, 191, 36, 0.18);
    --inmoges-pill-warning-fg: #FCD34D;
    --inmoges-pill-warning-border: rgba(251, 191, 36, 0.30);
    --inmoges-pill-error-bg: rgba(248, 113, 113, 0.18);
    --inmoges-pill-error-fg: #FCA5A5;
    --inmoges-pill-error-border: rgba(248, 113, 113, 0.30);
    --inmoges-pill-tertiary-bg: rgba(167, 139, 250, 0.18);
    --inmoges-pill-tertiary-fg: #DDD6FE;
    --inmoges-pill-tertiary-border: rgba(167, 139, 250, 0.30);
}

html,
body {
    font-family: var(--inmoges-font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

.tabular-nums {
    font-variant-numeric: tabular-nums;
}

a:not(.mud-button-root):not(.mud-nav-link):not(.mud-chip):not(.mud-link) {
    color: var(--mud-palette-primary);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

/* =========================================================
   BARRA SUPERIOR MODERNA (GLASSMORPHISM + OMNIBOX)
   ========================================================= */
.inmoges-appbar {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--mud-palette-divider);
    box-shadow: var(--inmoges-shadow-sm) !important;
}

.inmoges-brand-badge {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--mud-palette-primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.inmoges-omnibox-trigger {
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-secondary);
    border-radius: 10px;
    padding: 5px 10px;
    min-height: 36px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
}

.inmoges-omnibox-trigger:hover {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 3px var(--inmoges-pill-primary-bg);
}

.inmoges-kbd {
    font-family: var(--inmoges-font-sans);
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-secondary);
}

.appbar-pill {
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.12s ease, filter 0.15s ease;
    border: 1px solid transparent;
}

.appbar-pill:hover {
    transform: translateY(-1px);
    filter: brightness(0.97);
}

.appbar-pill-warning {
    background: var(--inmoges-pill-warning-bg);
    color: var(--inmoges-pill-warning-fg);
    border-color: var(--inmoges-pill-warning-border);
}

.appbar-pill-info {
    background: var(--inmoges-pill-info-bg);
    color: var(--inmoges-pill-info-fg);
    border-color: var(--inmoges-pill-info-border);
}

.appbar-pill-secondary {
    background: var(--inmoges-pill-secondary-bg);
    color: var(--inmoges-pill-secondary-fg);
    border-color: var(--inmoges-pill-secondary-border);
}

.appbar-pill-neutral {
    background: var(--inmoges-pill-default-bg);
    color: var(--mud-palette-text-primary);
    border-color: var(--inmoges-pill-default-border);
}

/* Mantener bordes sutiles en el menú lateral sin alterarlo */
.mud-drawer:not(.mud-drawer-temporary) {
    border-right: 1px solid var(--mud-palette-divider) !important;
    box-shadow: none !important;
}

/* =========================================================
   SUPERFICIES, TARJETAS Y SOMBRAS DIFUSAS MODERNAS
   ========================================================= */
.mud-main-content .mud-card:not(.bg-transparent),
.mud-main-content .mud-paper-outlined:not(.bg-transparent),
.mud-main-content .mud-elevation-1:not(.bg-transparent),
.mud-main-content .mud-elevation-2:not(.bg-transparent),
.mud-main-content .mud-elevation-3:not(.bg-transparent),
.mud-main-content .mud-elevation-4:not(.bg-transparent),
.inmoges-surface-card {
    border-radius: 12px !important;
    border: 1px solid var(--mud-palette-divider);
    box-shadow: var(--inmoges-shadow-md) !important;
}

.mud-popover {
    border-radius: 12px !important;
    border: 1px solid var(--mud-palette-divider);
    box-shadow: var(--inmoges-shadow-lg) !important;
}

.mud-dialog {
    border-radius: 16px !important;
    border: 1px solid var(--mud-palette-divider);
    box-shadow: var(--inmoges-shadow-lg) !important;
}

/* =========================================================
   CABECERAS DE PÁGINA Y BOTONES SEGMENTADOS
   ========================================================= */
.inmoges-page-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-bottom: 18px;
}

.inmoges-page-title {
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.inmoges-count-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 600;
    background: var(--inmoges-pill-default-bg);
    color: var(--inmoges-pill-default-fg);
    border: 1px solid var(--inmoges-pill-default-border);
}

.mud-button-root.mud-button-filled {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
    text-transform: none !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em;
}

.mud-button-root.mud-button-outlined {
    text-transform: none !important;
    font-weight: 600 !important;
}

/* Segmented ToggleGroup limpio */
.mud-toggle-group {
    border-radius: 10px !important;
    border: 1px solid var(--mud-palette-divider) !important;
    background: var(--mud-palette-surface);
    padding: 2px;
}

.mud-toggle-group .mud-toggle-item {
    border-radius: 8px !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: none !important;
}

/* =========================================================
   TARJETAS KPI MODERNAS
   ========================================================= */
.inmoges-kpi-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-divider);
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: var(--inmoges-shadow-sm);
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    height: 100%;
}

.inmoges-kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--inmoges-shadow-md);
}

.inmoges-kpi-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.inmoges-kpi-value {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

/* =========================================================
   TABLAS MODERNAS SIN CEBRADO PESADO
   ========================================================= */
.mud-table {
    background: var(--mud-palette-surface) !important;
}

.mud-table-head .mud-table-cell {
    background-color: var(--inmoges-table-header-bg) !important;
    color: var(--mud-palette-text-secondary) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 11px 16px !important;
    border-bottom: 1px solid var(--mud-palette-divider) !important;
    white-space: nowrap;
}

.mud-table-body .mud-table-cell {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--mud-palette-table-lines) !important;
    font-size: 0.875rem;
}

.mud-table-hover .mud-table-body .mud-table-row:hover {
    background-color: var(--inmoges-table-hover-bg) !important;
}

/* =========================================================
   SISTEMA UNIFICADO DE SOFT BADGES / PILLS
   ========================================================= */
.mud-main-content .mud-chip.mud-chip-filled.mud-chip-color-default,
.soft-pill-default {
    background-color: var(--inmoges-pill-default-bg) !important;
    color: var(--inmoges-pill-default-fg) !important;
    border: 1px solid var(--inmoges-pill-default-border);
    font-weight: 600;
}

.mud-main-content .mud-chip.mud-chip-filled.mud-chip-color-primary,
.soft-pill-primary {
    background-color: var(--inmoges-pill-primary-bg) !important;
    color: var(--inmoges-pill-primary-fg) !important;
    border: 1px solid var(--inmoges-pill-primary-border);
    font-weight: 600;
}

.mud-main-content .mud-chip.mud-chip-filled.mud-chip-color-secondary,
.soft-pill-secondary {
    background-color: var(--inmoges-pill-secondary-bg) !important;
    color: var(--inmoges-pill-secondary-fg) !important;
    border: 1px solid var(--inmoges-pill-secondary-border);
    font-weight: 600;
}

.mud-main-content .mud-chip.mud-chip-filled.mud-chip-color-info,
.soft-pill-info {
    background-color: var(--inmoges-pill-info-bg) !important;
    color: var(--inmoges-pill-info-fg) !important;
    border: 1px solid var(--inmoges-pill-info-border);
    font-weight: 600;
}

.mud-main-content .mud-chip.mud-chip-filled.mud-chip-color-success,
.soft-pill-success {
    background-color: var(--inmoges-pill-success-bg) !important;
    color: var(--inmoges-pill-success-fg) !important;
    border: 1px solid var(--inmoges-pill-success-border);
    font-weight: 600;
}

.mud-main-content .mud-chip.mud-chip-filled.mud-chip-color-warning,
.soft-pill-warning {
    background-color: var(--inmoges-pill-warning-bg) !important;
    color: var(--inmoges-pill-warning-fg) !important;
    border: 1px solid var(--inmoges-pill-warning-border);
    font-weight: 600;
}

.mud-main-content .mud-chip.mud-chip-filled.mud-chip-color-error,
.soft-pill-error {
    background-color: var(--inmoges-pill-error-bg) !important;
    color: var(--inmoges-pill-error-fg) !important;
    border: 1px solid var(--inmoges-pill-error-border);
    font-weight: 600;
}

.mud-main-content .mud-chip.mud-chip-filled.mud-chip-color-tertiary,
.soft-pill-tertiary {
    background-color: var(--inmoges-pill-tertiary-bg) !important;
    color: var(--inmoges-pill-tertiary-fg) !important;
    border: 1px solid var(--inmoges-pill-tertiary-border);
    font-weight: 600;
}

.soft-pill-primary .mud-chip-icon,
.mud-main-content .mud-chip.mud-chip-filled .mud-chip-icon {
    color: inherit !important;
}

/* Etiquetas flotantes translúcidas sobre fotografías de inmuebles */
.frosted-badge {
    background: rgba(255, 255, 255, 0.90) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #0F172A !important;
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.10);
}

.frosted-badge-success {
    background: rgba(236, 253, 245, 0.92) !important;
    backdrop-filter: blur(8px);
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.28);
    font-weight: 700 !important;
}

.frosted-badge-warning {
    background: rgba(255, 251, 235, 0.92) !important;
    backdrop-filter: blur(8px);
    color: #B45309 !important;
    border: 1px solid rgba(245, 158, 11, 0.30);
    font-weight: 700 !important;
}

.frosted-badge-error {
    background: rgba(254, 242, 242, 0.92) !important;
    backdrop-filter: blur(8px);
    color: #B91C1C !important;
    border: 1px solid rgba(239, 68, 68, 0.30);
    font-weight: 700 !important;
}

/* =========================================================
   BOTONES DE ACCIÓN DISCRETOS EN TABLAS Y TARJETAS
   ========================================================= */
.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-size-small,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-size-small,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-size-small {
    border-radius: 8px !important;
    box-shadow: none !important;
    border: 1px solid var(--mud-palette-divider);
    background-color: var(--mud-palette-surface) !important;
    color: var(--mud-palette-text-secondary) !important;
    transition: all 0.15s ease;
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-primary,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-primary,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-primary {
    color: var(--inmoges-pill-primary-fg) !important;
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-primary:hover,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-primary:hover,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-primary:hover {
    background-color: var(--inmoges-pill-primary-bg) !important;
    color: var(--inmoges-pill-primary-fg) !important;
    border-color: var(--inmoges-pill-primary-border);
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-secondary,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-secondary,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-secondary {
    color: var(--inmoges-pill-secondary-fg) !important;
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-secondary:hover,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-secondary:hover,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-secondary:hover {
    background-color: var(--inmoges-pill-secondary-bg) !important;
    color: var(--inmoges-pill-secondary-fg) !important;
    border-color: var(--inmoges-pill-secondary-border);
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-info,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-info,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-info {
    color: var(--inmoges-pill-info-fg) !important;
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-info:hover,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-info:hover,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-info:hover {
    background-color: var(--inmoges-pill-info-bg) !important;
    color: var(--inmoges-pill-info-fg) !important;
    border-color: var(--inmoges-pill-info-border);
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-success,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-success,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-success {
    color: var(--inmoges-pill-success-fg) !important;
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-success:hover,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-success:hover,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-success:hover {
    background-color: var(--inmoges-pill-success-bg) !important;
    color: var(--inmoges-pill-success-fg) !important;
    border-color: var(--inmoges-pill-success-border);
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-warning,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-warning,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-warning {
    color: var(--inmoges-pill-warning-fg) !important;
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-warning:hover,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-warning:hover,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-warning:hover {
    background-color: var(--inmoges-pill-warning-bg) !important;
    color: var(--inmoges-pill-warning-fg) !important;
    border-color: var(--inmoges-pill-warning-border);
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-error,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-error,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-error {
    color: var(--inmoges-pill-error-fg) !important;
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-error:hover,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-error:hover,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-error:hover {
    background-color: var(--inmoges-pill-error-bg) !important;
    color: var(--inmoges-pill-error-fg) !important;
    border-color: var(--inmoges-pill-error-border);
}

.mud-main-content .mud-table-cell .mud-icon-button.mud-button-filled-default:hover,
.mud-main-content .mud-card-actions .mud-icon-button.mud-button-filled-default:hover,
.mud-main-content .action-buttons-mobile .mud-icon-button.mud-button-filled-default:hover {
    background-color: var(--inmoges-pill-default-bg) !important;
    color: var(--inmoges-pill-default-fg) !important;
    border-color: var(--inmoges-pill-default-border);
}

/* =========================================================
   TARJETAS DE PROPIEDADES MODERNAS
   ========================================================= */
.property-card-modern {
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.property-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--inmoges-shadow-lg) !important;
}

.property-card-media-wrap {
    position: relative;
    overflow: hidden;
}

.property-card-modern:hover .mud-card-media {
    transform: scale(1.03);
}

.property-card-media-wrap .mud-card-media {
    transition: transform 0.35s ease;
}

.property-price-tag {
    font-size: 1.32rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.025em;
    font-variant-numeric: tabular-nums;
}

.property-specs-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--mud-palette-background);
    border: 1px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
}

/* =========================================================
   PANEL LATERAL STICKY Y TIMELINE COMPACTO DE SEGUIMIENTOS
   ========================================================= */
@media (min-width: 1280px) {
    .inmoges-sticky-side-panel {
        position: sticky;
        top: calc(var(--mud-appbar-height, 48px) + 12px);
        max-height: calc(100vh - var(--mud-appbar-height, 48px) - 24px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 4px;
        scrollbar-width: thin;
    }
}

.inmoges-compact-timeline.mud-timeline {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}

.inmoges-compact-timeline .mud-timeline-item {
    padding-bottom: 8px !important;
}

.inmoges-compact-timeline .mud-timeline-item:last-child {
    padding-bottom: 0 !important;
}

.inmoges-compact-timeline .mud-timeline-item-divider {
    min-width: 22px !important;
}

.inmoges-compact-timeline .mud-timeline-item-dot {
    width: 14px !important;
    height: 14px !important;
}

.inmoges-compact-timeline .mud-timeline-item-dot-inner {
    width: 10px !important;
    height: 10px !important;
}

.inmoges-compact-timeline .mud-timeline-item-content {
    padding-left: 6px !important;
}

.inmoges-compact-timeline .inmoges-seg-meta {
    font-size: 0.70rem;
    line-height: 1.2;
}

.inmoges-compact-timeline .inmoges-seg-text {
    font-size: 0.80rem;
    line-height: 1.32;
    word-break: break-word;
}

/* =========================================================
   INPUTS Y VALIDACIÓN
   ========================================================= */
.mud-input-outlined-border {
    border-radius: 9px !important;
}

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

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

.validation-message {
    color: #dc2626;
}

.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;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.info-icon {
    font-size: 20px;
    cursor: pointer;
    user-select: none;
    color: var(--mud-palette-primary);
}

.info-icon:hover {
    opacity: 0.8;
}

/* BOTONES DE ACCIÓN PARA DISPOSITIVOS MÓVILES (TOTALMENTE UNIFORMES Y CUADRADOS) */
@media (max-width: 767.98px) {
    .mud-table-cell[data-label="Acciones"],
    .mud-table-cell[data-label=""],
    .mud-card-actions {
        padding: 10px 4px !important;
    }

    .mud-table-cell[data-label="Acciones"] .d-flex,
    .mud-table-cell[data-label=""] .d-flex,
    .mud-card-actions,
    .action-buttons-mobile {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: wrap !important;
    }

    .mud-table-cell[data-label="Acciones"] .mud-icon-button,
    .mud-table-cell[data-label=""] .mud-icon-button,
    .mud-card-actions .mud-icon-button,
    .action-buttons-mobile .mud-icon-button {
        flex: 0 0 46px !important;
        width: 46px !important;
        height: 46px !important;
        min-width: 46px !important;
        min-height: 46px !important;
        max-width: 46px !important;
        max-height: 46px !important;
        padding: 0 !important;
        margin: 0 !important;
        border-radius: 10px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .mud-table-cell[data-label="Acciones"] .mud-icon-button .mud-icon-root,
    .mud-table-cell[data-label=""] .mud-icon-button .mud-icon-root,
    .mud-card-actions .mud-icon-button .mud-icon-root,
    .action-buttons-mobile .mud-icon-button .mud-icon-root {
        font-size: 1.5rem !important;
    }
}

/* =========================================================
   SOBREESCRITURAS DEFENSIVAS PARA TEMAS OSCUROS (BOOTSTRAP)
   ========================================================= */
.theme-dark .bg-white {
    background-color: var(--mud-palette-surface) !important;
}

.theme-dark .bg-light {
    background-color: var(--inmoges-table-header-bg) !important;
}

.theme-dark .border-bottom,
.theme-dark .border-top,
.theme-dark .border-b,
.theme-dark .border-t {
    border-color: var(--mud-palette-divider) !important;
}
