﻿:root {
    --colorNav: rgba(255, 255, 255, 1);
    --colorBody: #F2F6FA; /* Color de fondo más claro */
    --colorButton: #00A896; /* Verde suave para los botones */
    --colorTexto: #0E0E0E;
    --colorTextoHover:  #FFDE59;
    --colorBorde: #E0E0E0; /* Borde sutil */
    --colorTituloModal: rgb(67, 66, 66);
    --colorAzul: rgba(32, 109, 143, 1);
    --colorBlanco: rgba(255, 255, 255, 1);
    --colorAmarillo: rgba(255, 222, 89, 1);
    --backModalColor: rgba(0, 0, 0, 0.5);
}
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Montserrat:wght@400;500;600;700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900&family=Sarabun:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800&family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
@font-face {
    font-family: 'SF Pro Text';
    src: url('/fonts/SFProFonts/SF-Pro-Text-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
}
* {
    padding: 0;
    margin: 0;
}
/* iOS helpers */
html {
    -webkit-text-size-adjust: 100%;
}
/* evita que Safari cambie el zoom del texto */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    /* safe areas para notch/home bar */
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
}

/* Asegura alturas correctas en iOS (barra de URL dinámica) */
.min-screen {
    min-height: 100dvh; /* moderno */
    min-height: -webkit-fill-available; /* fallback iOS viejo */
}

/* Si usas overlays con blur */
.backdrop {
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px); /* prefijo para Safari */
}



/* Inputs ≥16px para que iOS no haga zoom automático al enfocar */
input, select, textarea {
    font-size: 16px;
}

/* Inercia de scroll “suave” en contenedores desplazables */
.scroll-y {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Evita romper sticky: no pongas overflow en ancestros de elementos sticky */

.popup-success {
    display: flex;
    align-items: center;
    background-color: #34c759; /* verde iOS-style */
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    gap: 12px;
    max-width: 400px;
    animation: fadeSlideIn 0.3s ease-in-out;
    z-index: 50000;
}

.popup-error {
    color: white;
    border-radius: 44px;
    z-index: 50000;
    display: flex;
    align-items: center;
    background-color: #ff3b30; /* rojo iOS-style */
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    gap: 12px;
    max-width: 400px;
    animation: fadeSlideIn 0.3s ease-in-out;
}

.popup-info {
    background: #eef4ff;
    color: #1f3b8f;
    border-radius: 44px;
    z-index: 50000;
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: 'Poppins', sans-serif;
    gap: 12px;
    max-width: 400px;
    animation: fadeSlideIn 0.3s ease-in-out;

{
    background: #eef4ff;
    color: #1f3b8f;
    border-left: 4px solid #5575B7;
}
}
#statusMessage {
    color: white;
}


.inferior {
    position: absolute;
    bottom: 0;
    gap: 24px;
    padding: 5px;
}



footer {
    width: 100%;
    text-align: center;
    margin: 0;
    padding: 10px 0; /* Agregar algo de padding para asegurar el tamaño */
    background-color: var(--colorNav); /* El mismo color de fondo */
    position: absolute; /* Mantener en el flujo normal del documento */
    z-index:130;
}
.content {
    padding-top: 92px; /* Compensa la altura del nav */
    padding-left: 260px;
}

@media (max-width: 768px) {
    .content {
        padding-left: 0px;
        padding-top: 0px; /* Ajusta si es necesario */
        margin-bottom: 15px;
        padding-bottom: 15px;
    }
    .textoSuperior {
        text-align:center;
        font-family: Poppins;
        font-weight: 600;
        font-size: 28px;
        line-height: 42px;
        letter-spacing: 0%;
    }
}
    footer p {
        margin: 0; /* Elimina cualquier margen predeterminado en el párrafo */
        padding: 0;
    }

main {
    margin-bottom: 0; /* Asegúrate de que el margen inferior esté en 0 */
    padding-bottom: 0; /* Asegúrate de que el padding inferior esté en 0 */
    
}
@media (min-width: 768px) {
    .textoSuperior {
        margin-left: 320px;
        font-family: Poppins;
        font-weight: 600;
        font-size: 28px;
        line-height: 42px;
        letter-spacing: 0%;
    }
}
    .loader-overlay {
        margin-bottom: 0;
        padding-bottom: 0;
    }

    .container-fluid {
        padding: 0;
        margin: 0;
    }

    body {
        background-color: var(--colorBody);
    }



    header {
        width: 100%;
        overflow-x: hidden; /* Evita el desbordamiento horizontal */
        box-sizing: border-box; /* Asegura que padding y border no excedan el ancho del contenedor */
        margin: 0; /* Elimina cualquier margen por defecto */
    }

        header nav {
            align-items: center;
            background-color: var(--colorNav);
        }

    #graficaPagos {
        width: 100% !important; /* Ajusta al tamaño del contenedor */
        height: 400px; /* Ajusta la altura según el diseño */
    }

    a{
        text-decoration:none;
    }
    #navSuperior {
        height: 92px;
        background-color: var(--colorNav);
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        position: fixed;
        top: 0; /* Asegura que el nav quede en la parte superior */
        left: 0;
        width: 100%; /* Ocupa el ancho completo */
        z-index: 106;
    }



    #imgPerfilUsuario {
        width: 44px;
        height: 44px;
        border-radius: 36.22px;
        margin-left: 5px;
        /* Ajustar la imagen sin perder calidad */
        object-fit: cover; /* Ajusta la imagen para que llene el contenedor sin distorsionarse */
        image-rendering: auto; /* Ayuda a mejorar la calidad al escalar imágenes pequeñas */
        image-rendering: -webkit-optimize-contrast; /* Mejora la calidad en algunos navegadores */
        image-rendering: crisp-edges; /* En algunos navegadores permite mejorar el enfoque de imágenes pequeñas */
        /* Visibilidad de la imagen */
        opacity: 1; /* Asegúrate de que la imagen sea visible */
        
    }

    .nombreApellido {
        font-family: "Poppins", sans-serif;
        font-size: 14px;
        font-weight: 600;
        line-height: 20px;
        text-align: left;
        color: var(--colorAzul);
    }

#nombreFotoPerfil {
    text-align: center;
    height: 44px;
    z-index: 20000;
    overflow-y: visible;
}

    .divider {
        background: rgba(246, 246, 246, 1);
        height: 2px;
        gap: 0px;
        border-radius: 2px 0px 0px 0px;
        margin-top: 15px;
        justify-content: center;
        align-items: center;
    }

    .iconContainer {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .iconConfig {
        padding: 10px; /* Espaciado interno del icono */
        border-radius: 50%; /* Fondo circular */
        background-color: rgba(245, 247, 250, 1);
        /* Fondo gris para cada icono */
        margin: 0 10px; /* Espaciado entre los iconos */
        color: black; /* Color de los iconos */
        text-decoration: none; /* Quitar subrayado en el enlace */
        display: flex; /* Para centrar el icono dentro del enlace */
        justify-content: center; /* Centrar horizontalmente */
        align-items: center; /* Centrar verticalmente */
        width: 50px; /* Anchura fija del fondo */
        height: 50px; /* Altura fija del fondo */
    }

        .iconConfig i {
            font-size: 24px; /* Tamaño de los iconos */
        }


    .card-header {
        display: flex;
        align-items: center; /* Alinea verticalmente los elementos */
    }

    header nav a {
        color: var(--colorTexto);
    }

        header nav a:hover {
            color: var(--colorTexto);
            font-family: 'League Spartan', sans-serif;
        }

    #bodyPrincipal {
        margin-right: 0px;
    }

    #searchResults {
        position: absolute;
        z-index: 1000;
    }

    .navbar {
        text-align: center;
        justify-content: center;
        border: 1px solid rgba(0, 0, 0, 0.1);
    }


    .list-group-item {
        cursor: pointer;
    }

    .bodyRender {
        margin-left: 5px;
        margin-right: 0px;
    }


#accordionExample {
    max-height: calc(90vh - 250px); /* Ajusta según el tamaño del div inferior */
    overflow-y: auto; /* Scroll solo en el eje Y */
    overflow-x: hidden;
    padding:5px;
    width:100%;
    gap:24px;
}




    .cardLay {
        background-color: transparent;
        border: none;
    }

    .card-header {
        border: none;
        background-color: transparent;
    }
.toggleMenuBtn {
    background:black;
}

.btnCollapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--colorNav);
    border: none;
    font-family: Poppins;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.02em;
    border-radius: 8px;
    gap: 12px;
    border-radius: 8px;
    padding-top: 10px;
    padding-right: 12px;
    padding-bottom: 10px;
    padding-left: 12px;
    color: var(--colorTexto);
    width:100%;
    text-decoration: none;
}

.arrow {
    margin-left: auto; /* opcional si usas justify-content: space-between */
}
    .btnCollapse:hover {
        background-color: var(--colorAzul);
        color: var(--colorAmarillo);
        border: 1px solid var(--colorTexto);
    }
        .btnCollapse:hover svg path {
            stroke:var(--colorAmarillo);
        }
        .btnCollapse:hover .arrow path{
            fill: var(--colorAmarillo);
        }

.logout:hover svg path {
    fill: #FF0A00;
    stroke: #FF0A00;
}
.logout:hover{
    background-color:white;
    border:none;
}

.dropdown-item {
    font-family: Poppins;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -2%;
}
/* Íconos */
.btnCollapse svg.icon {
    flex-shrink: 0;
}



/* Texto */
.btnCollapse .btn-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .aCollapse {
        width: 100%; /* Que el botón ocupe todo el ancho disponible */
        max-width: 300px;
        color: var(--colorTexto); /* Color del texto */
        background-color: var(--colorNav); /* Color de fondo del botón */
        border: none; /* Sin bordes */
        font-size: 15px; /* Tamaño de fuente */
        font-family: Poppins; /* Fuente */
        font-weight: 500; /* Grosor del texto */
        letter-spacing: -0.02em; /* Espaciado entre letras */
        border-radius: 8px; /* Bordes redondeados */
        display: flex;
        min-width: 200px;
        align-items: center;
        text-decoration: none;
        padding: 3px 3px 3px 9px;
        border-radius: 8px;
    }

        .aCollapse span {
            color: var(--colorTexto);
        }

        .aCollapse svg.icon {
            margin-right: 10px; /* Espacio entre el ícono del lado izquierdo y el texto */
        }

        .aCollapse svg.arrow {
            margin-left: 10px; /* Espacio entre el texto y la flecha del lado derecho */
        }

        .aCollapse:hover {
            border: 1px solid var(--colorTexto);
            color: var(--colorAmarillo);
            background-color: var(--colorAzul);
            z-index: 1000;
            stroke: var(--colorAmarillo);
            font-size: 17px;
        }

            .aCollapse:hover svg {
                stroke: var(--colorAmarillo);
                color: var(--colorAmarillo);
            }

        .aCollapse h2 {
            font-family: Poppins;
            font-size: 14px;
            font-weight: 500;
            line-height: 20px;
            letter-spacing: -0.02em;
            text-align: left;
            text-underline-position: from-font;
            text-decoration-skip-ink: none;
        }

        .aCollapse:hover span {
            color: var(--colorAmarillo);
        }

        .aCollapse:focus {
            outline: none;
            box-shadow: none;
        }


    div.card-body ul li a {
        color: var(--colorTexto);
    }


/* Aplicar estilo como hover cuando el botón está expandido */
.btnCollapse.expanded,
.aCollapse.expanded {
    background-color: var(--colorAzul);
    color: var(--colorAmarillo);
    border: 1px solid var(--colorTexto);
    stroke: var(--colorAmarillo);
}

    .btnCollapse.expanded .arrow,
    .aCollapse.expanded .arrow {
        stroke: var(--colorAmarillo);
        fill: var(--colorAmarillo);
        transform: rotate(0deg);

    }


   


/* Asegurar que las flechas rotan si tienen clase */
.rotate-90 {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
}


    #InicioBtn {
        display: block;
        width: 100%;
        height: 100%;
        text-align: left;
        padding: 10px;
        color: var(--colorTexto);
        background-color: var(--colorNav);
        border: none;
        font-size: 16px;
        border-radius: 10px;
    }

        #InicioBtn:hover {
            border: 1px solid rgb(255, 255, 255);
            color: var(--colorTexto);
            z-index: 1000;
            font-size: 17px;
        }


#cerrarSesionBtn {
    color: #FF0A00;
    font-family: Inter;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    text-align: left;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;

}
.card-header{
    padding:.5rem;
}

    .loader-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Fondo gris semitransparente */
        z-index: 99999; /* Asegura que esté por encima de todo */

        visibility: hidden; /* Mantener oculto inicialmente */
    }

    .btn-success {
        background-color: #21A101;
    }


#barraLateral {
    min-width: 92px;
    max-width: 286px; /* Limitar el tamaño máximo */
    transition: width 0.3s ease;

    overflow-y: visible;
    overflow-x: visible;
    height: 100%;
    background-color: var(--colorNav);
    padding: 24px;
    gap: 24px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    position: fixed;
    z-index: 108;
    font-size: 15px;
    display: flex; /* Habilitar flexbox */
    flex-direction: column; /* Alinear elementos en columna */
    justify-content: space-between; /* Colocar elementos al inicio y final */
}

.dropwdown-item {
    font-family: Poppins;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -2%;
}

.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 4px;
}

.menu-item {
    display: block;
    padding: 8px 8px;
    color: var(--colorTexto);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.4s ease-in-out;
    font-family: Poppins;
    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: -2%;
    margin-left:20px;
}

    .menu-item:hover {
        background-color: var(--colorAzul);
        color: var(--colorAmarillo);
    }

    .menu-item.active {
        background-color: var(--colorAzul);
        color: var(--colorAmarillo);
        font-weight: 600;
    }

.btn-text {
    font-family: Poppins;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -2%;
    justify-content:end;
}

    /* Loader en la esquina superior izquierda */
    .loader {
        position: absolute;
        top: 0px; /* Ajuste vertical desde el top */
        left: 10px; /* Ajuste horizontal desde el left */
    }

        /* Ajusta el tamaño del GIF si es necesario */
        .loader img {
            width: 75px;
            height: auto;
        }

    /* Ajustes para el contenedor del header */
    .container-fluid {
        display: flex;
        justify-content: space-between; /* Espacia los elementos (loader, logo, barra de búsqueda) */
        align-items: center;
    }

    #divSearch {
        width: 303.33px;
        height: 50px;
        border-radius: 40px;
        display: flex;
        align-items: center;
        padding: 0 15px; /* Añadir un padding interno para espacio alrededor del contenido */
        background-color: rgba(245, 247, 250, 1);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Sombra ligera opcional */
    }

    #searchInput {
        background-color: rgba(245, 247, 250, 1);
        border: none;
        outline: none;
        flex-grow: 1; /* Deja que el input ocupe todo el espacio restante */
        padding-left: 10px; /* Espacio entre el ícono y el texto */
        font-size: 16px;
    }

    .search-icon {
        font-size: 20px;
        color: gray;
    }

    /* Opcional: Si deseas cambiar el estilo del input al hacer focus */
    #searchInput:focus {
        outline: none; /* Elimina el borde por defecto del navegador */
    }

    #searchResults {
        margin-top: 5px;
    }
    /*

*/
    .arrow {
        transform: rotate(-90deg);
        transition: transform 0.3s ease;
    }


    .icon {
        transform: rotate(0);
    }



    .boton-agregar {
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .boton-agregar i {
            margin-right: 5px; /* Espaciado entre ícono y texto */
        }

    .col-1 i {
        font-size: 1.5rem; /* Tamaño del ícono info para que sea más visible */
    }



    .modal-backdrop {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* Fondo gris con opacidad */
        display: none; /* Oculto inicialmente */
        z-index: 107; /* Asegúrate de que esté detrás del modal */
    }

        .modal-backdrop.show {
            display: block; /* Muestra el modal-backdrop */
        }



    .modal {
        background-color: var(--colorBlanco);
        font-family: 'League Spartan', 'Nunito Sans', sans-serif;
        width: 30%;
        background: rgba(255, 255, 255, 1);
        max-width: 400px;
        height: 100vh;
        position: fixed;
        top: 0;
        right: 0; /* Asegura que el modal esté oculto hacia la derecha */
        z-index: 10001;
        gap: 44px;
        left: auto;
        padding: 6px;
    }

        .modal.show {
            right: 0; /* Muestra el modal alineado al borde derecho */
        }

    /*
        .form-control {
    background-color: rgba(245, 246, 250, 1);
    padding: 10px 12px 10px 12px;
    gap: 0px;
    border-radius: 4px;
    border: 0.6px 0px 0px 0px;
    justify-content: space-between;
}
    */


    .modal-content {
        border: none;
        padding: 15px;
    }

.sucursalSesion {
    width: 151px;
    height: 36px;
    border-radius: 10px;
    gap: 8px;
    padding: 5px;
    border-width: 2px;
    background: rgba(185, 211, 223, 1);
    border: 2px solid rgba(33, 109, 143, 1);

}

.tituloSucursal {
    width: 71px;
    height: 28px;
    padding: 4px;
    font-family: Poppins;
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0%;
    vertical-align: middle;
    color: #FFFFFF;
    background: rgba(33, 109, 143, 1);
    border-radius:10px;
    text-align:center;
}

.nombreSucursal {
    width: 60px;
    height: 28px;
    font-family: Poppins;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: rgba(0, 0, 0, 1);
}






#barraLateral {
    width: 260px;
    transition: width 0.3s ease;
    overflow-x: visible;
}

    #barraLateral.collapsed {
        width: 70px;
        padding: 24px 10px;
    }
        #barraLateral.collapsed .sucursalSesion {
            width:50%;
        }

        #barraLateral.collapsed .btnCollapse .btn-text,
        #barraLateral.collapsed p,
        #barraLateral.collapsed .nombreApellido,
        #barraLateral.collapsed .tituloSucursal,
        #barraLateral.collapsed .arrow {
            display: none !important;
        }
        #barraLateral.collapsed .aCollapse span {
            display: none !important;
        }

    #barraLateral .btnCollapse,
    #barraLateral .aCollapse {
        justify-content: flex-start;
    }



    #barraLateral.collapsed #toggleMenuBtn {
        border: 1px solid #F6F6F6;
        width: 28px;
        height: 28px;
        gap: 8px;
        border-radius: 8px;
        border-width: 1px;
        background: #0E0E0E;
        margin-left: 10px;
        border: 1px solid black;
    }

        #barraLateral.collapsed #toggleMenuBtn svg {
            transform: rotate(-180deg);
            transition: transform 0.3s ease;
        }
        #barraLateral.collapsed #toggleMenuBtn svg path {
            fill:white;
        }



.content.shifted {
    padding-left: 92px;
    padding-top: 92px; /* Solo si también lo necesitas */
}

    #toggleMenuBtn {
    border: 1px solid #F6F6F6;
    width: 28px;
    height: 28px;
    gap: 8px;
    border-radius: 8px;
    border-width: 1px;
    background:  #FFFFFF;
}



#accordionExample::-webkit-scrollbar {
    width: 5px;
}

#accordionExample::-webkit-scrollbar-track {
    background: #f1f1f1;
}

#accordionExample::-webkit-scrollbar-thumb {
    background-color: #888;
    border-radius: 4px;
}

#accordionExamplee::-webkit-scrollbar-thumb:hover {
    background-color: #555;
}

/* Firefox */
#accordionExample {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.navSuperiorMobile {
    width: 100%;
    height: 42px;
    opacity: 1;
    angle: 0 deg;
    opacity: 1;
   border:none;
    background: rgba(255, 255, 255, 1);
    position:fixed;
    z-index:9999;
}
.textoMobileSuperior {
    font-family: SF Pro Text;
    font-weight: 600;
    font-style: Semibold;
    font-size: 17px;
    leading-trim: NONE;
    line-height: 22px;
    letter-spacing: -0.41px;
    text-align: center;
    vertical-align: middle;
}


:root {
    --help-bg: #1F6B80; /* azul verdoso del botón */
    --help-text: #ffffff;
    --badge: #E01E1E;
}
/* BASE */
.help-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    height: 56px;
    width: 56px; /* círculo en compacto */
    border: 0;
    border-radius: 999px;
    display: flex; /* <-- FALTA EN TU CSS */
    align-items: center;
    padding: 8px; /* compacto: solo respira el icono */
    background: var(--help-bg, rgba(31, 107, 128, 0.43));
    color: var(--help-text, #fff);
    box-shadow: 0 6px 16px rgba(0,0,0,.25);
    cursor: pointer;
    z-index: 2147483646;
    transition: width .25s ease, padding .25s ease, transform .08s ease;
    overflow: hidden;
    white-space: nowrap; /* evita salto de línea */
}
    .help-fab.compact {
        width: 56px;
        padding: 8px;
        justify-content: center; /* centra el icono */
        gap: 0; /* ¡sin espacio fantasma! */
    }

        .help-fab.compact .help-fab__label {
            display: none; /* no ocupa espacio */
        }

    .help-fab:active {
        transform: scale(.98);
    }
    .help-fab.compact .help-fab__label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }
    /* evita animaciones mientras se arrastra */
    .help-fab.dragging {
        transition: none;
    }
    .help-fab.dragging {
        transition: none;
    }
    /* sin animaciones al arrastrar */
    .help-fab.compact {
        gap: 0;
        justify-content: center;
    }
        /* icono centrado en compacto */
        .help-fab.compact .help-fab__label {
            display: none;
        }
    /* no ocupa espacio */

    .help-fab.compact {
        gap: 0;
    }

/* Icono */
.help-fab__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: 0 0 40px;
}

.help-fab__badge {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    background: var(--badge,#E01E1E);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--help-bg,#1F6B80);
}

/* Texto */
.help-fab__label {
    display: inline-block;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .2s ease, transform .2s ease;
    font-family: Poppins;
    font-weight: 500;
    font-style: Medium;
    font-size: 13px;
    leading-trim: NONE;
    line-height: 28px;
    letter-spacing: 0px;
    vertical-align: middle;
}

/* Estados */
.help-fab.compact {
    width: 56px;
    justify-content: center; /* centra el icono en círculo */
    padding: 8px;
}

.help-fab.expanded {
    width: 176px; /* píldora */
    justify-content: flex-start;
    padding: 8px;
    background: var(--help-bg, #1F6B80);
    
}

    .help-fab.expanded .help-fab__label {
        opacity: 1;
        transform: translateX(0);
    }


/* Panel “drawer” flotante (arrastrable por la cabecera) */
.help-drawer {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 360px;
    max-width: 92vw;
    height: 80vh;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 24px 48px rgba(0,0,0,.25);
    border: 1px solid rgba(0,0,0,.06);
    display: none;
    z-index: 2147483647;
}

    .help-drawer.show {
        display: block;
    }

.help-drawer__header {
    padding: 10px 12px;
    cursor: move;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: #f8f8f8;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.help-drawer__title {
    font-weight: 700;
}

.help-drawer__close {
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.help-drawer__body {
    padding: 16px;
    height: calc(100% - 52px);
    overflow: auto;
}

/* Mini UI interna del panel según tu captura */
.manager-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    margin-bottom: 18px;
}

    .manager-card img {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
    }

.muted {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.section-title {
    margin: 16px 0 8px;
    font-weight: 700;
}

details.accordion {
    border-bottom: 1px solid #eee;
    padding: 10px 0;
}

    details.accordion summary {
        list-style: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 600;
    }

        details.accordion summary::-webkit-details-marker {
            display: none;
        }
.help-fab.dragging {
    transition: none;
}

.help-fab.dock-right {
    transform-origin: right center;
}

.help-fab.dock-left {
    transform-origin: left center;
}
:root {
    /* color base del botón en RGB (sin alpha) */
    --help-bg-rgb: 31 107 128; /* #1F6B80 */
    --help-alpha-compact: .35; /* más transparente cuando flota */
    --help-alpha-hover: .5; /* un poco menos transparente al hover */
    --help-alpha-expanded: 1; /* sólido al expandirse */
}

/* Base (compacto/flotando) */
.help-fab {
    background: rgb(var(--help-bg-rgb) / var(--help-alpha-compact));
    color: #fff;
}

    /* Al pasar el mouse y aún cerrado */
    .help-fab:hover:not(.expanded) {
        background: rgb(var(--help-bg-rgb) / var(--help-alpha-hover));
    }

    /* Al expandirse (o con el drawer abierto) */
    .help-fab.expanded {
        background: rgb(var(--help-bg-rgb) / var(--help-alpha-expanded));
    }

    /* Mientras arrastras, si quieres darle un toque visual */
    .help-fab.dragging {
        background: rgb(var(--help-bg-rgb) / .45);
        transition: none;
    }

.help-drawer__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #eee;
}

.help-drawer__close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    color: #555;
}

    .help-drawer__close:hover {
        color: #000;
    }
/* Punto común */
.page-zoom {
    transform-origin: top left;
}
/* Solo cuando la ventana es <1750px y NO es móvil (mouse/teclado) */
@media (max-width: 1750px) and (hover: hover) and (pointer: fine) {

    /* Navegadores que soportan zoom (Chrome/Edge/Opera) */
    @supports (zoom: 1) {
        .page-zoom {
            zoom: 0.90;
        }
        /* 90% */
        #accordionExample {
            max-height: calc(90vh - 230px);
        }
    }

    /* Fallback Safari/Firefox (no soportan zoom) */
    @supports not (zoom: 1) {
        .page-zoom {
            transform: scale(0.90);
            transform-origin: top left;
            width: calc(100% / 0.90); /* compensa ancho */
            min-height: calc(100vh / 0.90); /* compensa alto para evitar recorte */
            -webkit-font-smoothing: antialiased;
        }
    }
}

@media (min-width: 1750px) and (hover: hover) and (pointer: fine) and (min-height: 200px) {

    @supports (zoom: 1) {
        .page-zoom {
            zoom: 0.90;
        }
        /* 90% */

    }

    @supports not (zoom: 1) {
        /* Unifica: evita zoom y usa transform con compensación */
        .page-zoom {
            transform: scale(.90);
            transform-origin: top left;
            width: calc(100% / .90);
            min-height: calc(100vh / .90);
        }

        html, body {
            overflow-x: hidden;
        }
    }
}


.ipad-warning {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.ipad-card {
    max-width: 520px;
}

/* iPad en vertical */
@media screen and (orientation: portrait) and (hover: none) and (pointer: coarse) and (min-device-width: 768px) and (max-device-width: 1024px) {

    /* mostrar aviso y ocultar tu app */
    #ipadWarning {
        display: flex !important;
    }

    #appRoot {
        display: none !important;
    }
}

