/*
 * Capa visual del panel del propietario.
 *
 * Va como CSS propio y no como tema compilado de Tailwind a propósito: un tema
 * mete un paso de npm al despliegue, y si un día falla deja el panel sin
 * estilos. Esto se quita borrando este archivo y su línea en el panel.
 *
 * Todo lo que hay aquí es color, contraste y relieve. Nada cambia de lugar.
 */

/* ---------------------------------------------------------------
   1. La barra lateral, oscura
   El panel se veía plano porque era blanco sobre blanco: no había
   separación entre navegar y trabajar.
   --------------------------------------------------------------- */

.fi-sidebar,
.fi-sidebar-nav,
.fi-sidebar-header {
    background: linear-gradient(180deg, #101a2c 0%, #0b1220 100%) !important;
    border-color: rgba(148, 163, 184, .12) !important;
}

.fi-sidebar-header {
    box-shadow: inset 0 -1px 0 rgba(148, 163, 184, .12);
}

/* El logotipo usa currentColor y lo heredaba de .fi-logo, que viene en casi
   negro: sobre el lateral oscuro se perdía por completo. */
.fi-sidebar-header,
.fi-logo {
    color: #f8fafc !important;
}

/* El selector de empresa: es el que dice en qué negocio estás parado, tiene
   que leerse. */
.fi-sidebar-nav-tenant-menu-ctn button,
.fi-sidebar-nav-tenant-menu-ctn button * {
    color: #e2e8f0 !important;
}

.fi-sidebar-nav-tenant-menu-ctn button:hover {
    background: rgba(148, 163, 184, .1) !important;
}

/* La barra de scroll del menú, en el tono del lateral y no en gris claro */
.fi-sidebar-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .28) transparent;
}

.fi-sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .28);
    border-radius: 3px;
}

.fi-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

/* Los rótulos de grupo: presentes pero discretos */
.fi-sidebar-group-label {
    color: #64748b !important;
    font-size: .6875rem !important;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.fi-sidebar-group-collapse-button {
    color: #64748b !important;
}

.fi-sidebar-item-label {
    color: #cbd5e1 !important;
    font-weight: 500;
}

.fi-sidebar-item-icon {
    color: #64748b !important;
}

.fi-sidebar-item a:hover {
    background: rgba(148, 163, 184, .1) !important;
}

.fi-sidebar-item a:hover .fi-sidebar-item-label,
.fi-sidebar-item a:hover .fi-sidebar-item-icon {
    color: #f1f5f9 !important;
}

/* El activo, con filo cyan: dice dónde estás sin gritar */
.fi-sidebar-item-active > a {
    background: rgba(6, 182, 212, .14) !important;
    border-left: 3px solid #06b6d4;
    padding-left: calc(.75rem - 3px);
}

.fi-sidebar-item-active .fi-sidebar-item-label,
.fi-sidebar-item-active .fi-sidebar-item-icon {
    color: #22d3ee !important;
}

/* El selector de empresa, arriba del menú */
.fi-sidebar .fi-dropdown-trigger button,
.fi-sidebar .fi-dropdown-trigger {
    color: #e2e8f0 !important;
}

/* ---------------------------------------------------------------
   2. El fondo deja de ser gris plano
   Un halo cyan apenas perceptible arriba, para que el contenido
   tenga de dónde despegarse.
   --------------------------------------------------------------- */

.fi-body,
.fi-main-ctn {
    background:
        radial-gradient(1200px 400px at 70% -10%, rgba(6, 182, 212, .07), transparent 60%),
        linear-gradient(180deg, #f7fafc 0%, #f1f5f9 100%) !important;
}

.fi-topbar > div {
    background: rgba(255, 255, 255, .82) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, .18);
}

/* ---------------------------------------------------------------
   3. Tarjetas con relieve
   Sombra en dos capas: una difusa que da altura y una de contacto
   que la asienta. Una sola sombra se ve pegada o flotando.
   --------------------------------------------------------------- */

.fi-section,
.fi-wi-stats-overview-stat {
    border-radius: 14px !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 24px -12px rgba(15, 23, 42, .12) !important;
    transition: box-shadow .18s ease, transform .18s ease;
}

.fi-wi-stats-overview-stat:hover {
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .05),
        0 14px 32px -14px rgba(15, 23, 42, .18) !important;
    transform: translateY(-1px);
}

/* ---------------------------------------------------------------
   4. Las tarjetas de indicadores
   Filament las deja como un recuadro blanco con el número en negro:
   se leen todas iguales y hay que detenerse a interpretar cada una.
   Aquí el color dice el estado antes de leer, en tres lugares que
   apuntan a lo mismo: un filo de color, el número y el icono.
   Todo se deduce de .fi-color-* que Filament ya pone en la
   descripción, así que no hace falta tocar los widgets.
   --------------------------------------------------------------- */

.fi-wi-stats-overview-stat {
    overflow: hidden;
    padding: 1.35rem 1.35rem 1.35rem 1.6rem !important;
}

/* El filo de color, pegado al canto izquierdo */
.fi-wi-stats-overview-stat::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #cbd5e1;
}

/* El icono deja de ir suelto detrás del texto y sube a una insignia.
   Es el mismo <svg> de descriptionIcon, sacado del flujo. */
.fi-wi-stats-overview-stat-description-icon {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    box-sizing: content-box;
    padding: .6rem;
    border-radius: 12px;
    background: #f1f5f9;
}

/* La etiqueta, en versalitas: deja de competir con el número */
.fi-wi-stats-overview-stat-label {
    color: #64748b !important;
    font-size: .6875rem !important;
    font-weight: 700 !important;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.fi-wi-stats-overview-stat-value {
    font-size: 2rem !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -.03em;
}

/* La descripción se vuelve gris a propósito: el color ya lo cargan el
   filo, el número y el icono, y repetirlo cuatro veces satura. */
.fi-wi-stats-overview-stat-description {
    color: #64748b !important;
    font-size: .8125rem !important;
}

/* --- Cada estado con su color --- */

.fi-wi-stats-overview-stat:has(.fi-color-danger) {
    background: linear-gradient(135deg, #fff 58%, rgba(244, 63, 94, .06)) !important;
}
.fi-wi-stats-overview-stat:has(.fi-color-danger)::before { background: #e11d48; }
.fi-wi-stats-overview-stat:has(.fi-color-danger) .fi-wi-stats-overview-stat-value { color: #be123c !important; }
.fi-wi-stats-overview-stat:has(.fi-color-danger) .fi-wi-stats-overview-stat-description-icon {
    background: rgba(244, 63, 94, .12);
}

.fi-wi-stats-overview-stat:has(.fi-color-warning) {
    background: linear-gradient(135deg, #fff 58%, rgba(249, 115, 22, .07)) !important;
}
.fi-wi-stats-overview-stat:has(.fi-color-warning)::before { background: #f97316; }
.fi-wi-stats-overview-stat:has(.fi-color-warning) .fi-wi-stats-overview-stat-value { color: #c2410c !important; }
.fi-wi-stats-overview-stat:has(.fi-color-warning) .fi-wi-stats-overview-stat-description-icon {
    background: rgba(249, 115, 22, .13);
}

.fi-wi-stats-overview-stat:has(.fi-color-success) {
    background: linear-gradient(135deg, #fff 58%, rgba(16, 185, 129, .07)) !important;
}
.fi-wi-stats-overview-stat:has(.fi-color-success)::before { background: #10b981; }
.fi-wi-stats-overview-stat:has(.fi-color-success) .fi-wi-stats-overview-stat-value { color: #047857 !important; }
.fi-wi-stats-overview-stat:has(.fi-color-success) .fi-wi-stats-overview-stat-description-icon {
    background: rgba(16, 185, 129, .13);
}

.fi-wi-stats-overview-stat:has(.fi-color-info) {
    background: linear-gradient(135deg, #fff 58%, rgba(6, 182, 212, .08)) !important;
}
.fi-wi-stats-overview-stat:has(.fi-color-info)::before { background: #06b6d4; }
.fi-wi-stats-overview-stat:has(.fi-color-info) .fi-wi-stats-overview-stat-value { color: #0e7490 !important; }
.fi-wi-stats-overview-stat:has(.fi-color-info) .fi-wi-stats-overview-stat-description-icon {
    background: rgba(6, 182, 212, .13);
}

/* Rejilla de cinco tarjetas.
   Filament sólo trae compiladas las rejillas de 1 a 4 columnas: cuando un
   widget pide 5 no emite ninguna clase y las tarjetas se apilan a renglón
   completo cada una. Se reconoce el caso por el número de hijos. */
@media (min-width: 768px) {
    .fi-wi-stats-overview-stats-ctn:has(> :nth-child(5)):not(:has(> :nth-child(6))) {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* ---------------------------------------------------------------
   5. Tablas con jerarquía
   --------------------------------------------------------------- */

.fi-ta-header-cell {
    background: #f8fafc !important;
    color: #475569 !important;
    font-size: .75rem !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fi-ta-row {
    transition: background .14s ease;
}

.fi-ta-row:hover {
    background: rgba(6, 182, 212, .045) !important;
}

/* Las etiquetas de estado, con más cuerpo */
.fi-badge {
    font-weight: 600 !important;
    letter-spacing: .01em;
    padding-top: .2rem !important;
    padding-bottom: .2rem !important;
}

/* ---------------------------------------------------------------
   6. Encabezados de página y de sección
   --------------------------------------------------------------- */

.fi-header-heading {
    letter-spacing: -.025em;
    font-weight: 700 !important;
}

.fi-section-header-heading {
    letter-spacing: -.01em;
    font-weight: 700 !important;
}

/* Los botones sólidos, con un poco de peso */
.fi-btn {
    font-weight: 600 !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

/* ---------------------------------------------------------------
   7. La guía "Sácale provecho"
   Con prefijo propio porque las utilidades de Tailwind que Filament
   no usa no están en su CSS compilado.
   --------------------------------------------------------------- */

.rf-provecho-aviso {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(249, 115, 22, .28);
    background: linear-gradient(135deg, #fffbf5 40%, rgba(249, 115, 22, .09));
}

.rf-provecho-aviso-ok {
    border-color: rgba(16, 185, 129, .3);
    background: linear-gradient(135deg, #f6fefb 40%, rgba(16, 185, 129, .1));
}

.rf-provecho-aviso-num {
    flex: none;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    background: #f97316;
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
}

.rf-provecho-aviso-ok .rf-provecho-aviso-num {
    background: #10b981;
}

.rf-provecho-aviso-titulo {
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
}

.rf-provecho-aviso-texto {
    margin-top: .15rem;
    font-size: .875rem;
    color: #64748b;
}

.rf-provecho-seccion {
    margin-top: 1.75rem;
    margin-bottom: -.35rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.rf-provecho-lista {
    display: grid;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .rf-provecho-lista {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.rf-herramienta {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 24px -14px rgba(15, 23, 42, .14);
}

/* Las sin estrenar traen filo cyan: son las que queremos que abra */
.rf-herramienta-destacada {
    border-color: rgba(6, 182, 212, .3);
    background: linear-gradient(135deg, #fff 62%, rgba(6, 182, 212, .05));
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .05),
        0 10px 28px -14px rgba(6, 182, 212, .35);
}

.rf-herramienta-icono {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: #f1f5f9;
    color: #475569;
}

.rf-herramienta-destacada .rf-herramienta-icono {
    background: rgba(6, 182, 212, .13);
    color: #0e7490;
}

.rf-herramienta-svg {
    width: 1.4rem;
    height: 1.4rem;
}

.rf-herramienta-cuerpo {
    min-width: 0;
}

.rf-herramienta-encabezado {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.rf-herramienta-titulo {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.015em;
}

.rf-etiqueta {
    padding: .12rem .5rem;
    border-radius: 999px;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.rf-etiqueta-ok {
    background: rgba(16, 185, 129, .13);
    color: #047857;
}

.rf-etiqueta-nueva {
    background: rgba(6, 182, 212, .15);
    color: #0e7490;
}

.rf-herramienta-beneficio {
    margin-top: .4rem;
    font-size: .875rem;
    line-height: 1.5;
    color: #334155;
}

/* La frase con sus propios números: es la que convence */
.rf-herramienta-pista {
    margin-top: .55rem;
    padding: .5rem .7rem;
    border-left: 3px solid #06b6d4;
    border-radius: 0 8px 8px 0;
    background: rgba(6, 182, 212, .07);
    font-size: .8125rem;
    line-height: 1.45;
    color: #0f172a;
}

.rf-herramienta-como {
    margin-top: .55rem;
    font-size: .8125rem;
    line-height: 1.45;
    color: #64748b;
}

.rf-herramienta-como-rotulo {
    font-weight: 700;
    color: #475569;
}

.rf-herramienta-accion {
    margin-top: .8rem;
}

/* ---------------------------------------------------------------
   8. El corte de caja
   --------------------------------------------------------------- */

.rf-corte-cifras {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .rf-corte-cifras {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.rf-corte-cifra {
    padding: 1.25rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 24px -14px rgba(15, 23, 42, .14);
}

/* El efectivo es el que hay que contar: va marcado */
.rf-corte-cifra-efectivo {
    border-color: rgba(16, 185, 129, .32);
    background: linear-gradient(135deg, #fff 58%, rgba(16, 185, 129, .08));
}

.rf-corte-rotulo {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #64748b;
}

.rf-corte-monto {
    margin-top: .3rem;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0f172a;
}

.rf-corte-cifra-efectivo .rf-corte-monto {
    color: #047857;
}

.rf-corte-nota {
    margin-top: .3rem;
    font-size: .8125rem;
    color: #64748b;
}

.rf-corte-cerrado {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.1rem 1.35rem;
    border-radius: 14px;
    border: 1px solid rgba(16, 185, 129, .3);
    background: linear-gradient(135deg, #f6fefb 40%, rgba(16, 185, 129, .1));
}

.rf-corte-cerrado-mal {
    border-color: rgba(249, 115, 22, .32);
    background: linear-gradient(135deg, #fffbf5 40%, rgba(249, 115, 22, .1));
}

.rf-corte-cerrado-titulo {
    font-weight: 700;
    color: #0f172a;
}

.rf-corte-cerrado-texto {
    margin-top: .2rem;
    font-size: .8125rem;
    color: #475569;
}

.rf-corte-vacio {
    margin-top: 1.5rem;
    padding: 2rem 1.35rem;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, .4);
    text-align: center;
    color: #64748b;
    font-size: .875rem;
}

.rf-corte-tabla-caja {
    margin-top: 1.75rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .18);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 24px -14px rgba(15, 23, 42, .14);
    overflow: hidden;
}

.rf-corte-seccion {
    padding: 1rem 1.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.015em;
    border-bottom: 1px solid rgba(148, 163, 184, .16);
}

/* La tabla se desplaza sola en celular en vez de estirar la página */
.rf-corte-scroll {
    overflow-x: auto;
}

.rf-corte-tabla {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
}

.rf-corte-tabla th {
    padding: .7rem 1.35rem;
    background: #f8fafc;
    color: #475569;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
}

.rf-corte-tabla td {
    padding: .8rem 1.35rem;
    border-top: 1px solid rgba(148, 163, 184, .14);
    color: #334155;
    white-space: nowrap;
}

.rf-corte-derecha {
    text-align: right;
}

.rf-corte-monto-fila {
    font-weight: 700;
    color: #0f172a;
}

/* ---------------------------------------------------------------
   9. Los pendientes del día, arriba del escritorio
   --------------------------------------------------------------- */

.rf-pendientes-titulo {
    margin-bottom: .6rem;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #64748b;
}

.rf-pendientes-lista {
    display: grid;
    gap: .65rem;
}

.rf-pendiente {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .2);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 22px -16px rgba(15, 23, 42, .18);
}

.rf-pendiente-icono {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 11px;
    background: #f1f5f9;
    color: #475569;
}

.rf-pendiente-svg {
    width: 1.25rem;
    height: 1.25rem;
}

.rf-pendiente-texto {
    flex: 1 1 auto;
    min-width: 0;
}

.rf-pendiente-que {
    font-size: .9375rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -.01em;
}

.rf-pendiente-porque {
    margin-top: .1rem;
    font-size: .8125rem;
    line-height: 1.4;
    color: #64748b;
}

.rf-pendiente-accion {
    flex: none;
}

/* Cada pendiente con el color de su urgencia, en el filo y en el icono */
.rf-pendiente-info {
    border-color: rgba(6, 182, 212, .3);
    background: linear-gradient(135deg, #fff 60%, rgba(6, 182, 212, .05));
}
.rf-pendiente-info .rf-pendiente-icono {
    background: rgba(6, 182, 212, .13);
    color: #0e7490;
}

.rf-pendiente-warning {
    border-color: rgba(249, 115, 22, .3);
    background: linear-gradient(135deg, #fff 60%, rgba(249, 115, 22, .06));
}
.rf-pendiente-warning .rf-pendiente-icono {
    background: rgba(249, 115, 22, .13);
    color: #c2410c;
}

.rf-pendiente-success {
    border-color: rgba(16, 185, 129, .3);
    background: linear-gradient(135deg, #fff 60%, rgba(16, 185, 129, .06));
}
.rf-pendiente-success .rf-pendiente-icono {
    background: rgba(16, 185, 129, .13);
    color: #047857;
}

/* En celular el botón se va abajo y ocupa el ancho: apretado al lado del
   texto quedaba de dos renglones y sin lugar para el dedo. */
@media (max-width: 640px) {
    .rf-pendiente {
        flex-wrap: wrap;
    }

    .rf-pendiente-texto {
        flex: 1 1 60%;
    }

    .rf-pendiente-accion {
        flex: 1 1 100%;
    }

    .rf-pendiente-accion .fi-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ---------------------------------------------------------------
   10. Avisos de hoy
   --------------------------------------------------------------- */

.rf-avisos-resumen {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.rf-avisos-cifra {
    flex: 1 1 0;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .2);
    background: #fff;
}

.rf-avisos-cifra-mal {
    border-color: rgba(225, 29, 72, .3);
    background: linear-gradient(135deg, #fff 58%, rgba(244, 63, 94, .06));
}

.rf-avisos-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0f172a;
}

.rf-avisos-cifra-mal .rf-avisos-num {
    color: #be123c;
}

.rf-avisos-etiqueta {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #64748b;
}

.rf-avisos-lista {
    display: grid;
    gap: .75rem;
}

.rf-aviso {
    display: grid;
    gap: .75rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, .2);
    background: #fff;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, .04),
        0 8px 22px -16px rgba(15, 23, 42, .18);
}

@media (min-width: 900px) {
    .rf-aviso {
        grid-template-columns: 15rem 1fr auto;
        align-items: center;
    }
}

.rf-aviso-vencido {
    border-color: rgba(225, 29, 72, .28);
    background: linear-gradient(135deg, #fff 62%, rgba(244, 63, 94, .05));
}

.rf-aviso-cliente {
    font-size: .9375rem;
    font-weight: 700;
    color: #0f172a;
}

.rf-aviso-equipo {
    font-size: .8125rem;
    color: #64748b;
}

.rf-aviso-cuando {
    margin-top: .15rem;
    font-size: .8125rem;
    font-weight: 600;
    color: #475569;
}

.rf-aviso-cuando-mal {
    color: #be123c;
}

/* El mensaje se enseña completo: mandar algo sin leerlo es como no mandarlo. */
.rf-aviso-mensaje {
    padding: .6rem .8rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, .16);
    font-size: .8125rem;
    line-height: 1.5;
    color: #334155;
}

@media (max-width: 899px) {
    .rf-aviso-accion .fi-btn {
        width: 100%;
        justify-content: center;
    }
}

.rf-avisos-vacio {
    padding: 2.5rem 1.5rem;
    border-radius: 14px;
    border: 1px dashed rgba(148, 163, 184, .4);
    text-align: center;
}

.rf-avisos-vacio-titulo {
    font-weight: 700;
    color: #0f172a;
}

.rf-avisos-vacio-texto {
    margin-top: .3rem;
    font-size: .875rem;
    color: #64748b;
}

.rf-avisos-pie {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, .22);
    font-size: .8125rem;
    line-height: 1.55;
    color: #64748b;
}

/* ---------------------------------------------------------------
   11. Preferencias: el resumen de lo que se está configurando
   Dos números sueltos no dejan ver si quedó como se quería.
   --------------------------------------------------------------- */

.rf-cfg-resumen {
    padding: .85rem 1.05rem;
    border-radius: 12px;
    border: 1px solid rgba(6, 182, 212, .28);
    background: linear-gradient(135deg, #f7feff 45%, rgba(6, 182, 212, .08));
    font-size: .875rem;
    line-height: 1.55;
    color: #0f172a;
}

.rf-cfg-resumen strong {
    font-weight: 700;
}

.rf-cfg-resumen-falta {
    border-color: rgba(249, 115, 22, .32);
    background: linear-gradient(135deg, #fffbf5 45%, rgba(249, 115, 22, .09));
    color: #7c2d12;
}

.rf-cfg-resumen-aviso {
    border-color: rgba(249, 115, 22, .28);
    background: linear-gradient(135deg, #fffbf5 45%, rgba(249, 115, 22, .07));
}

.rf-cfg-resumen-neutro {
    border-color: rgba(148, 163, 184, .3);
    background: #f8fafc;
    color: #475569;
}

/* El botón de ubicación del planificador de rutas */
.rf-ubicacion-nota {
    margin-top: .5rem;
    font-size: .8125rem;
    color: #64748b;
}

.rf-ubicacion-ok {
    color: #047857;
    font-weight: 600;
}

.rf-ubicacion-mal {
    color: #b45309;
}

[x-cloak] {
    display: none !important;
}

.rf-provecho-pie {
    margin-top: 1.75rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(148, 163, 184, .22);
    font-size: .8125rem;
    line-height: 1.55;
    color: #64748b;
}

/* ---------------------------------------------------------------------------
   La guía del demo: "Pruébalo tú mismo"

   Va en clases propias y no en utilidades de Tailwind porque Filament sólo
   compila las que usa él: sm:grid-cols-2 y compañía no existen en su CSS y la
   lista saldría en una sola columna a lo largo de toda la pantalla.
   --------------------------------------------------------------------------- */
.rf-guia-lista {
    display: grid;
    gap: .625rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .rf-guia-lista {
        grid-template-columns: 1fr 1fr;
    }
}

.rf-guia-paso {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    width: 100%;
    padding: .8rem .9rem;
    text-align: left;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: .625rem;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.rf-guia-paso:hover {
    border-color: rgba(6, 182, 212, .55);
    box-shadow: 0 2px 10px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

/* El que sigue se marca solo, para que no haya que decidir por dónde empezar. */
.rf-guia-paso-sigue {
    border-color: rgba(6, 182, 212, .6);
    background: linear-gradient(180deg, rgba(6, 182, 212, .07), rgba(6, 182, 212, .02));
}

.rf-guia-paso-visto {
    opacity: .62;
}

.rf-guia-num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
    font-size: .75rem;
    font-weight: 700;
}

.rf-guia-paso-sigue .rf-guia-num {
    background: #06b6d4;
    color: #fff;
}

.rf-guia-paso-visto .rf-guia-num {
    background: #059669;
    color: #fff;
}

.rf-guia-texto {
    display: block;
    min-width: 0;
}

.rf-guia-titulo {
    display: flex;
    /* Arriba y no al centro: con el título en dos renglones —que en el celular
       es lo normal— el icono se iba a la altura del segundo. */
    align-items: flex-start;
    gap: .4rem;
    font-size: .8125rem;
    font-weight: 650;
    color: #0f172a;
    line-height: 1.35;
}

.rf-guia-paso-visto .rf-guia-titulo {
    text-decoration: line-through;
}

.rf-guia-gancho {
    display: block;
    margin-top: .2rem;
    font-size: .75rem;
    line-height: 1.5;
    color: #64748b;
}

.dark .rf-guia-paso {
    background: rgba(30, 41, 59, .5);
    border-color: rgba(148, 163, 184, .2);
}

.dark .rf-guia-titulo {
    color: #e2e8f0;
}

.dark .rf-guia-num {
    background: #334155;
    color: #cbd5e1;
}

/* ---------------------------------------------------------------------------
   "Ya toca ir por ella": la cola de recolección, arriba de los avisos.

   Se distingue en rojo del resto de la pantalla a propósito: no es un
   recordatorio más, es la decisión de subirse a la camioneta.
   --------------------------------------------------------------------------- */
.rf-recoger {
    padding: 1.05rem 1.15rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(239, 68, 68, .35);
    border-left: 4px solid #ef4444;
    border-radius: .75rem;
    background: linear-gradient(180deg, rgba(239, 68, 68, .06), rgba(239, 68, 68, .015));
}

.rf-recoger-encabezado {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
}

.rf-recoger-titulo {
    font-size: .9375rem;
    font-weight: 700;
    color: #991b1b;
}

.rf-recoger-texto {
    margin-top: .2rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: #7f1d1d;
}

.rf-recoger-lista {
    margin-top: .9rem;
    border-top: 1px solid rgba(239, 68, 68, .2);
}

.rf-recoger-fila {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .6rem;
    padding: .45rem 0;
    border-bottom: 1px solid rgba(239, 68, 68, .12);
    font-size: .8125rem;
}

.rf-recoger-cliente {
    font-weight: 650;
    color: #0f172a;
}

.rf-recoger-equipo {
    color: #475569;
}

.rf-recoger-atraso {
    margin-left: auto;
    color: #b91c1c;
    font-weight: 600;
}

.rf-recoger-pie {
    margin-top: .85rem;
    font-size: .75rem;
    line-height: 1.55;
    color: #7f1d1d;
}

.dark .rf-recoger-titulo {
    color: #fca5a5;
}

.dark .rf-recoger-texto,
.dark .rf-recoger-pie {
    color: #fecaca;
}

.dark .rf-recoger-cliente {
    color: #e2e8f0;
}

.dark .rf-recoger-equipo {
    color: #cbd5e1;
}

/* ---------------------------------------------------------------------------
   "¿Te alcanza para otra lavadora?"

   Las cuatro cifras en rejilla propia: Filament sólo compila grid-cols 1 a 4 y
   nada de los prefijos sm:/md: que hacen falta aquí.
   --------------------------------------------------------------------------- */
.rf-crecer-cifras {
    display: grid;
    gap: .625rem;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .rf-crecer-cifras {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rf-crecer-cifra {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .85rem .9rem;
    border: 1px solid rgba(148, 163, 184, .22);
    border-radius: .625rem;
    background: linear-gradient(180deg, rgba(6, 182, 212, .045), transparent);
}

.rf-crecer-cifra-mal {
    border-color: rgba(249, 115, 22, .4);
    background: linear-gradient(180deg, rgba(249, 115, 22, .07), transparent);
}

.rf-crecer-num {
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0f172a;
}

.rf-crecer-et {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #64748b;
}

.rf-crecer-pie {
    font-size: .75rem;
    color: #94a3b8;
}

/* El veredicto es lo que se lee: va del ancho completo y con su filo de color. */
.rf-crecer-veredicto {
    margin-top: .9rem;
    padding: .8rem .95rem;
    border-left: 4px solid #cbd5e1;
    border-radius: .5rem;
    background: #f8fafc;
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.55;
    color: #334155;
}

.rf-crecer-success {
    border-left-color: #059669;
    background: rgba(5, 150, 105, .07);
    color: #065f46;
}

.rf-crecer-warning {
    border-left-color: #f97316;
    background: rgba(249, 115, 22, .07);
    color: #9a3412;
}

.rf-crecer-info {
    border-left-color: #06b6d4;
    background: rgba(6, 182, 212, .07);
    color: #155e75;
}

.rf-crecer-accion {
    margin-top: .8rem;
}

.dark .rf-crecer-num {
    color: #e2e8f0;
}

.dark .rf-crecer-veredicto {
    background: rgba(30, 41, 59, .5);
    color: #cbd5e1;
}

/* ---------------------------------------------------------------------------
   La bitácora del equipo: su línea de tiempo.
   --------------------------------------------------------------------------- */
.rf-bit-cifras {
    display: grid;
    gap: .625rem;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .rf-bit-cifras {
        grid-template-columns: repeat(4, 1fr);
    }
}

.rf-bit-cifra {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .95rem 1rem;
    border: 1px solid rgba(148, 163, 184, .2);
    border-left: 4px solid #cbd5e1;
    border-radius: .625rem;
    background: #fff;
}

.rf-bit-num {
    font-size: 1.5rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #0f172a;
}

.rf-bit-et {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #64748b;
}

.rf-bit-pie {
    margin-top: .15rem;
    font-size: .75rem;
    line-height: 1.45;
    color: #94a3b8;
}

.rf-bit-success { border-left-color: #059669; }
.rf-bit-success .rf-bit-num { color: #047857; }
.rf-bit-warning { border-left-color: #f97316; }
.rf-bit-warning .rf-bit-num { color: #c2410c; }
.rf-bit-danger { border-left-color: #e11d48; }
.rf-bit-danger .rf-bit-num { color: #be123c; }

/* La línea de tiempo */
.rf-bit-linea {
    position: relative;
    display: flex;
    flex-direction: column;
}

.rf-bit-evento {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .7rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.rf-bit-evento:last-child {
    border-bottom: 0;
}

.rf-bit-punto {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #475569;
}

.rf-bit-evento-primary .rf-bit-punto { background: rgba(6, 182, 212, .15); color: #0e7490; }
.rf-bit-evento-success .rf-bit-punto { background: rgba(5, 150, 105, .15); color: #047857; }
.rf-bit-evento-warning .rf-bit-punto { background: rgba(249, 115, 22, .16); color: #c2410c; }
.rf-bit-evento-danger .rf-bit-punto { background: rgba(225, 29, 72, .14); color: #be123c; }
.rf-bit-evento-info .rf-bit-punto { background: rgba(59, 130, 246, .15); color: #1d4ed8; }

.rf-bit-cuerpo {
    display: block;
    min-width: 0;
    flex: 1;
}

.rf-bit-titulo {
    display: block;
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.35;
    color: #0f172a;
}

.rf-bit-detalle {
    display: block;
    margin-top: .1rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: #64748b;
}

.rf-bit-fecha {
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 600;
    color: #94a3b8;
    white-space: nowrap;
}

.rf-bit-vacio {
    font-size: .875rem;
    line-height: 1.6;
    color: #64748b;
}

.dark .rf-bit-cifra {
    background: rgba(30, 41, 59, .5);
}

.dark .rf-bit-num,
.dark .rf-bit-titulo {
    color: #e2e8f0;
}

/* La nota al lado del rótulo de sección en "Sácale provecho" */
.rf-provecho-seccion-nota {
    margin-left: .5rem;
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #94a3b8;
}

/* ---------------------------------------------------------------------------
   "Si el sistema está trabajando": el latido de las tareas, en el escritorio
   del administrador.
   --------------------------------------------------------------------------- */
.rf-salud-ok {
    margin-bottom: .9rem;
    padding: .7rem .85rem;
    border-left: 4px solid #059669;
    border-radius: .5rem;
    background: rgba(5, 150, 105, .07);
    font-size: .875rem;
    font-weight: 600;
    color: #065f46;
}

.rf-salud-lista {
    display: flex;
    flex-direction: column;
}

.rf-salud-fila {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .3rem .75rem;
    padding: .55rem 0;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    font-size: .8125rem;
}

.rf-salud-fila:last-child {
    border-bottom: 0;
}

.rf-salud-nombre {
    font-weight: 600;
    color: #0f172a;
}

.rf-salud-comando {
    margin-left: .4rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .6875rem;
    font-weight: 400;
    color: #94a3b8;
}

.rf-salud-estado {
    color: #64748b;
}

.rf-salud-fila-mal .rf-salud-estado {
    color: #be123c;
    font-weight: 700;
}

.rf-salud-fila-mal .rf-salud-nombre {
    color: #9f1239;
}

.rf-salud-fila-gris .rf-salud-nombre,
.rf-salud-fila-gris .rf-salud-estado {
    color: #94a3b8;
}

.rf-salud-datos {
    margin-top: 1rem;
    padding: .85rem .95rem;
    border-left: 4px solid #f97316;
    border-radius: .5rem;
    background: rgba(249, 115, 22, .06);
}

.rf-salud-datos-titulo {
    font-size: .875rem;
    font-weight: 700;
    color: #9a3412;
}

.rf-salud-datos-linea {
    margin-top: .45rem;
    font-size: .8125rem;
    line-height: 1.5;
    color: #7c2d12;
}

.rf-salud-hallazgo {
    display: block;
    padding-left: .75rem;
    color: #9a3412;
}

.rf-salud-datos-pie {
    margin-top: .7rem;
    font-size: .75rem;
    line-height: 1.5;
    color: #9a3412;
}

.dark .rf-salud-nombre { color: #e2e8f0; }
.dark .rf-salud-datos-titulo,
.dark .rf-salud-datos-linea,
.dark .rf-salud-hallazgo,
.dark .rf-salud-datos-pie { color: #fed7aa; }
