@import '_content/Blazor.Bootstrap/Blazor.Bootstrap.olwso25aue.bundle.scp.css';

/* _content/Adaapp.Web/Components/Layout/MainLayout.razor.rz.scp.css */
/* ============================================================================
   MainLayout.razor.css — Estilos aislados de la estructura general
   (el layout con sesión ahora lo maneja BlazorBootstrap: .bb-page + Sidebar2)
   ============================================================================ */

.adaapp-topbar[b-oagc58h8rk] {
    height: 3.3rem;
    background: #ffffff;
    border-bottom: 1px solid #e3e8e3;
    font-size: .9rem;
    color: #1e4620;
}

.topbar-empresa[b-oagc58h8rk] {
    font-weight: 600;
}

.topbar-usuario[b-oagc58h8rk] {
    color: #5a6b5c;
}

/* ---------- Pantalla sin sesión (Login): sin panel lateral ---------- */
.page-anonima[b-oagc58h8rk] {
    background-image: linear-gradient(165deg, #f6f8f6 0%, #e6ede7 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

    .page-anonima main[b-oagc58h8rk] {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

.content-anonima[b-oagc58h8rk] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.25rem;
}
/* _content/Adaapp.Web/Components/Layout/NavMenu.razor.rz.scp.css */
/* ============================================================================
   NavMenu.razor.css — Estilos aislados del menú lateral de Adaapp Web
   Ubicación: Adaapp.Web/Components/Layout/NavMenu.razor.css
   (el fondo verde del panel completo vive en MainLayout.razor.css)
   CORRECCIONES:
   - Títulos en UNA línea con elipsis (antes se partían en dos en laptop).
   - Scroll móvil real: dvh en lugar de vh (100vh incluye la barra del
     navegador móvil y dejaba opciones inalcanzables sin scroll).
   - .mod-items sin tope de 420px: el menú es dinámico y no sabemos cuántas
     opciones tendrá un módulo.
   ============================================================================ */

/* ---------- Barra superior: marca + hamburguesa ---------- */
.top-row[b-i88lvv54bg] {
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    position: relative;
}

.brand[b-i88lvv54bg] {
    display: flex;
    align-items: center;
    gap: .6rem;
    text-decoration: none;
}

.brand-icon[b-i88lvv54bg] {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: .55rem;
    background: rgba(255, 255, 255, .14);
    color: #d9f2dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.brand-text[b-i88lvv54bg] {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: .3px;
}

.brand-sub[b-i88lvv54bg] {
    color: #9fd8a8;
    font-weight: 400;
}

/* ---------- Hamburguesa (solo móvil) ----------
   El checkbox se oculta: guarda el estado abierto/cerrado.
   El label es el botón visible que lo activa. */
.navbar-toggler[b-i88lvv54bg] {
    display: none;
}

.navbar-toggler-label[b-i88lvv54bg] {
    position: absolute;
    top: .55rem;
    right: .9rem;
    width: 2.4rem;
    height: 2.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    border-radius: .5rem;
    cursor: pointer;
    margin: 0;
    transition: background-color .2s ease;
}

    .navbar-toggler-label:hover[b-i88lvv54bg] {
        background: rgba(255, 255, 255, .12);
    }

/* ---------- Contenedor de navegación ---------- */
/* Móvil: oculto hasta que el checkbox #nav-toggle esté marcado */
.nav-scrollable[b-i88lvv54bg] {
    display: none;
    padding: .5rem .65rem 1rem;
}

/* CORRECCIÓN MÓVIL: dvh = alto visible REAL (excluye la barra del navegador).
   La línea con vh queda como respaldo para navegadores viejos. */
.navbar-toggler:checked ~ .nav-scrollable[b-i88lvv54bg] {
    display: block;
    max-height: calc(100vh - 3.5rem);
    max-height: calc(100dvh - 3.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.nav-flex[b-i88lvv54bg] {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

/* ---------- Enlaces ----------
   NavLink renderiza un <a> (componente hijo), por eso se usa ::deep. */
.nav-item[b-i88lvv54bg]  a {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .78);
    text-decoration: none;
    padding: .55rem .8rem;
    border-radius: .55rem;
    font-size: .95rem;
    line-height: 1.2;
    min-width: 0; /* permite que el texto interno pueda encogerse (elipsis) */
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

/* CORRECCIÓN LAPTOP: el texto de la opción va en UNA línea con elipsis */
.nav-item[b-i88lvv54bg]  .nav-text {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-item[b-i88lvv54bg]  a:hover {
    background: rgba(255, 255, 255, .10);
    color: #fff;
    transform: translateX(2px);
}

.nav-item[b-i88lvv54bg]  a.active {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 #8fd19e;
}

.nav-ico[b-i88lvv54bg] {
    font-size: 1.05rem;
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

/* ---------- Módulos expandibles ----------
   Cada módulo tiene su propio checkbox oculto: tocarlo solo abre/cierra
   SUS opciones. No toca #nav-toggle, así que el menú permanece abierto. */
.nav-module[b-i88lvv54bg] {
    display: flex;
    flex-direction: column;
    margin-top: .35rem;
}

.mod-toggle[b-i88lvv54bg] {
    display: none;
}

.mod-header[b-i88lvv54bg] {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .86);
    padding: .55rem .8rem;
    border-radius: .55rem;
    cursor: pointer;
    user-select: none;
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .2px;
    margin-bottom: 0;
    transition: background-color .18s ease;
}

    .mod-header:hover[b-i88lvv54bg] {
        background: rgba(255, 255, 255, .10);
    }

/* CORRECCIÓN LAPTOP: título del módulo también en una línea con elipsis */
.mod-title[b-i88lvv54bg] {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mod-chevron[b-i88lvv54bg] {
    font-size: .8rem;
    flex-shrink: 0;
    transition: transform .25s ease;
}

.mod-toggle:checked ~ .mod-header .mod-chevron[b-i88lvv54bg] {
    transform: rotate(-180deg);
}

/* Opciones del módulo: colapsadas con animación suave.
   Sangría reducida (antes 1.35rem) para dar más ancho al texto. */
.mod-items[b-i88lvv54bg] {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-left: .85rem;
    padding-left: .5rem;
    border-left: 1px solid rgba(255, 255, 255, .12);
    transition: max-height .3s ease, opacity .25s ease;
}

/* CORRECCIÓN: tope alto (menú dinámico, cantidad de opciones desconocida).
   Solo existe para que la transición de colapso funcione. */
.mod-toggle:checked ~ .mod-items[b-i88lvv54bg] {
    max-height: 2000px;
    opacity: 1;
}

/* ---------- Escritorio (≥ 641px): menú siempre visible, sin hamburguesa ---------- */
@media (min-width: 641px) {
    .navbar-toggler-label[b-i88lvv54bg] {
        display: none;
    }

    .nav-scrollable[b-i88lvv54bg] {
        display: block !important;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }

        .nav-scrollable[b-i88lvv54bg]::-webkit-scrollbar {
            width: 6px;
        }

        .nav-scrollable[b-i88lvv54bg]::-webkit-scrollbar-thumb {
            background: rgba(255, 255, 255, .18);
            border-radius: 3px;
        }
}
/* _content/Adaapp.Web/Components/Pages/Home.razor.rz.scp.css */
/* ============================================================================
   Home.razor.css — Estilos aislados del Panel de Control
   Ubicación: Adaapp.Web/Components/Pages/Home.razor.css
   ============================================================================ */

/* ---------- Tarjetas de indicadores ---------- */
.kpi-card[b-q6b4zvixry] {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .9rem;
    padding: 1.15rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    box-shadow: 0 1px 3px rgba(30, 70, 32, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.kpi-card:hover[b-q6b4zvixry] {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(30, 70, 32, .12);
}

.kpi-icon[b-q6b4zvixry] {
    width: 3.1rem;
    height: 3.1rem;
    border-radius: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
}

.kpi-verde[b-q6b4zvixry] { background: #e6f2e8; color: #1e4620; }
.kpi-ambar[b-q6b4zvixry] { background: #fdf3dc; color: #8a6d1a; }
.kpi-gris[b-q6b4zvixry]  { background: #eef1f0; color: #4a5a4c; }

.kpi-titulo[b-q6b4zvixry] {
    font-size: .78rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}

.kpi-valor[b-q6b4zvixry] {
    font-size: 1.9rem;
    font-weight: 700;
    color: #1e4620;
    line-height: 1.1;
}

.kpi-link[b-q6b4zvixry] {
    font-size: .8rem;
    color: #1e4620;
    text-decoration: none;
    font-weight: 600;
}

.kpi-link:hover[b-q6b4zvixry] {
    text-decoration: underline;
}

/* ---------- Accesos rápidos ---------- */
.acceso-card[b-q6b4zvixry] {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: .9rem;
    padding: 1rem 1.15rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.acceso-card:hover[b-q6b4zvixry] {
    transform: translateY(-2px);
    border-color: #1e4620;
    box-shadow: 0 6px 16px rgba(30, 70, 32, .10);
}
/* _content/Adaapp.Web/Components/Pages/Login.razor.rz.scp.css */
/* ============================================================================
   Login.razor.css — Estilos aislados de la pantalla de inicio de sesión
   Ubicación: Adaapp.Web/Components/Pages/Login.razor.css
   ----------------------------------------------------------------------------
   El centrado vertical/horizontal lo aporta .content-anonima de
   MainLayout.razor.css; aquí solo se define la tarjeta.
   ============================================================================ */

.login-card[b-m3qjy0fxme] {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(30, 70, 32, .16);
}

/* ---------- Encabezado ---------- */
.login-header[b-m3qjy0fxme] {
    background-image: linear-gradient(160deg, #1e4620 0%, #16371a 100%);
    color: #fff;
    text-align: center;
    padding: 1.75rem 1.25rem 1.4rem;
}

.login-logo[b-m3qjy0fxme] {
    width: 3.2rem;
    height: 3.2rem;
    margin: 0 auto .7rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, .14);
    color: #d9f2dc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.login-titulo[b-m3qjy0fxme] {
    margin: 0;
    font-weight: 700;
    letter-spacing: .3px;
}

.login-sub[b-m3qjy0fxme] {
    display: block;
    margin-top: .2rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .72);
}

/* ---------- Cuerpo ---------- */
.login-body[b-m3qjy0fxme] {
    padding: 1.6rem 1.5rem 1.85rem;
}

.form-label[b-m3qjy0fxme] {
    font-size: .82rem;
    color: #45564a;
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: .35rem;
}

.input-group-text[b-m3qjy0fxme] {
    background: #f4f6f4;
    border-color: #dfe4e0;
    color: #1e4620;
}

.form-control[b-m3qjy0fxme] {
    border-color: #dfe4e0;
    padding-top: .55rem;
    padding-bottom: .55rem;
}

/* Anillo de foco en verde institucional en lugar del azul de Bootstrap */
.form-control:focus[b-m3qjy0fxme] {
    border-color: #1e4620;
    box-shadow: 0 0 0 .2rem rgba(30, 70, 32, .15) !important;
}

/* ---------- Botón INGRESAR ---------- */
.btn-ingresar[b-m3qjy0fxme] {
    background-color: #1e4620;
    border: 1px solid #1e4620;
    color: #fff;
    padding: .65rem 1rem;
    border-radius: .55rem;
    letter-spacing: .8px;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.btn-ingresar:hover:not(:disabled)[b-m3qjy0fxme] {
    background-color: #16371a;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(30, 70, 32, .28);
}

.btn-ingresar:active:not(:disabled)[b-m3qjy0fxme] {
    transform: translateY(0);
}

.btn-ingresar:disabled[b-m3qjy0fxme] {
    background-color: #4b6b4e;
    border-color: #4b6b4e;
    color: #fff;
    opacity: 1;
}
