/* 🌎 Configuración Global */
:root {
    --background-color: #F8F9FA;
    --text-color: #212529;
    --accent-color: #007F5F;
    --box-background: #FFFFFF;
    --border-color: #DEE2E6;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

/* 🔹 Estilos Generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}
td { 
    text-align: center;
}
  /* Desbloquear scroll en la página */
  body, html {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: static !important;
      background-color: var(--background-color);
    color: var(--text-color);
  }
  /* === Layout base con scroll y sin 100vh forzado === */
html, body { min-height:100%; height:auto; overflow-y:auto; }

.toast {
    position: fixed;
    top: 20px;           /* súbelo o bájalo a gusto */
    right: 20px;
    z-index: 9999;
    min-width: 280px;
    max-width: 420px;
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(0,0,0,.25);
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease;
  }
  .toast.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  .toast-success {
    background: #10b981;       /* verde */
    color: #062e23;
    border: 1px solid #0ea271;
  }
  .toast-error {
    background: #ef4444;       /* rojo */
    color: #3f0b0b;
    border: 1px solid #dc2626;
  }
/* === Contenedor principal: columna centrada horizontalmente === */
.main-wrapper{
  display:flex;               /* asegúrate de que esté en flex */
  flex-direction:column;
  justify-content:flex-start; /* evita “center” vertical para que haya scroll */
  align-items:center;         /* centra horizontalmente a los hijos */
  padding:24px 16px;
  height:auto; min-height:auto; overflow:visible;
}

/* === Columna angosta y centrada por margen (fallback robusto en iOS) === */
.brand-logo,
.brand-description,
.auth-container{
  /* centra aunque el padre perdiera flex (fallback) */
  margin-left:auto;
  margin-right:auto;

  /* ancho fluido pero con límite agradable */
  max-width:560px;
  width: calc(100% - 32px); /* 16px de respiro por lado */
}

/* Texto centrado en encabezados */
.brand-logo, .brand-description { text-align:center; }

/* Si aún existe algún “parche” que amarra a 100vh o absolute, neutralízalo: */
.vh-100, .h-screen, .full-viewport, .center-viewport, [style*="100vh"]{
  height:auto !important; min-height:auto !important; overflow:visible !important;
}
.brand-logo, .brand-description, .auth-container{ position:static !important; }

h3 {
    color: #007f5f;
}
  /* Muy probable culpable */
  .main-wrapper {
    position: static !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    display: block !important;
    padding: 24px 16px !important; /* deja respirar el contenido */
  }
    .brand-logo {
        text-align: center;
    }
  /* Si en tu global.css centrabas verticalmente con 100vh, cámbialo por esto: */
  @media (min-width: 0) {
    .vh-100, .h-screen, .full-viewport, .center-viewport {
      height: auto !important;
      min-height: auto !important;
      overflow: visible !important;
    }
  }
#enviarGmail .subsection, #gestionFacturas .subsection, #gestionHoras .subsection {
   
    right: 0;
    transform: none;
            width: max-content;
}
  h1 {
            color: #007f5f; 
            margin-bottom: 15px; 
            text-align: center;
            
        }
  h2 {
            color: #007f5f; 
            margin-bottom: 15px; 
            text-align: center;
            
        }
             h3 {
            
         
            text-align: center;
            
        }
        
        th {
            color: #ffa500; 
            padding: 5px;
        }
         td {
            color: #007f5f; 
        }
        .delete-btn {
             color: red;
        }

textarea{
    
             border: grey !important; /* 🔥 Asegura que no tenga borde */
            color: #007f5f;
            outline: none;
            border-radius: 5px;
                width: 90%;
        
}
/* 🔥 Agregar borde verde en hover */
textarea:hover {
    border: 2px solid #007f5f !important;
    outline: none !important;
}

 input[type="text"] {
             flex-grow: 1;
            padding: 5px;
            background: #ffffff;
                align-self: center;
            color: #007f5f;
            border-radius: 5px;
                border: 1px solid #ccc;
            outline: none;
             width: 100%;
             height: 40px;
                 max-height: 40px!important;
                     margin-bottom: 10px;
        }

button { 
            
            border-radius: 8px; 
            border: none; 
            box-sizing: border-box;
            padding: 10px; 
                width: 100%;
    place-self: center;
    
    font-weight: 600;
    background-color: #007f5f; 
    color: #ffffff; 
    cursor: pointer; 
    margin: 5px 5px; 
    display: block;
    margin-top: 5px;
            
        } 
/*Dentro del perfil//////////////////////////////////////////////////////*/

/* Contenedor principal */
.layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh; /* Ocupar toda la pantalla */
}

/* Sidebar fijo arriba */

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%; /* 🔥 Asegura que no se pase del padre */
    max-width: 100vw; /* 🔥 Evita que se expanda más allá de la pantalla */
    height: 60px; /* Altura fija */
    background-color: var(--box-background);
    padding: 10px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0px 4px 5px rgba(0, 127, 95, 0.5);
    box-sizing: border-box; /* 🔥 Evita que el padding haga que se expanda más */
}

#menuInventarios, #rolesYLugaresContainer, #gestionHoras, #dropdown-grupos {
    position: absolute;
    top: 90%; /* 🔥 Se coloca justo debajo del botón */
    left: 0; /* Mantiene alineado con el botón */
    box-shadow: 0px 4px 6px var(--shadow-color);
    
    min-width: 200px;
    z-index: 1000;
    
     text-align-last: center;
   
    border-radius: 8px;
    background-color: var(--box-background);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
     margin: 10px 0;
     
}

/* 🔥 Estilo para los formularios dentro del menú */
.form-style {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    margin-top: 10px;
}

.form-style, select {
  width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--box-background);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    appearance: none;
    cursor: pointer;
}


.sidebar .dropdown-container {
    position: relative;
    display: inline-block;
}
/* 🔥 Asegura que el menú se muestre */
.dropdown-container:hover .subsection,
.dropdown-container:focus-within .subsection {
    display: block;
}

.sidebar .toggle-button {
    background: #ffffff;
    border: none;
    color: var(--text-color);
    font-size: 16px;
    padding: 5px;
    cursor: pointer;
}

.sidebar .toggle-button:hover {
    color: var(--accent-color);
}
/*///////Color de iconos*/
.nav-icon {
    color: #007f5f; /* Verde neón */
    font-size: 24px;
    transition: color 0.3s ease-in-out;
}
/* Efecto hover: cambia el color al pasar el mouse  iconos*/
.toggle-button:hover .nav-icon,
.dropdown-item:hover .nav-icon {
    color: cyan; /* Cambia a cian al pasar el mouse */
}


.hidden {
    display: none;
}

.subsection {
    position: absolute;
    top: 105%;
    left: 50%;
    transform: translateX(-50%); /* Centra el dropdown */
    background: var(--box-background);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0px 4px 6px var(--shadow-color);
    display: none;
    min-width: 180px;
    max-width: calc(100vw - 20px); /* 🔥 Evita que se salga de la pantalla */
    white-space: nowrap;
    
}

.dropdown-item {
    display: block;
    background: var(--border-color);
    color: var(--text-color);
    padding: 10px;
    text-align: center;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
    cursor: pointer;
    margin: 5px;
    
    /* Evita que el texto se salga del contenedor */
    overflow: hidden;         /* Oculta el texto que se desborde */
    white-space: nowrap;      /* Mantiene el texto en una sola línea */
    text-overflow: ellipsis;  /* Agrega "..." si el texto es demasiado largo */
    word-wrap: break-word;    /* Permite cortes de palabras si es necesario */
}


.dropdown-item:hover {
    background: var(--accent-color);
    color: var(--box-background);
}

   #enviarGmail .subsection, #gestionFacturas .subsection{
   
    right: 0;
    transform: none;
}

#gestionHoras .subsection, #menuRecetas .subsection{
           left: auto;
        right: 0;
        transform: none;
}


.miembros-container {
    display: none;
    background: #1E1E1E;
    padding: 10px;
    border-radius: 10px;
    position: absolute;
    top: 80px;
    right: 200px;
    box-shadow: 0px 4px 6px rgba(0, 255, 198, 0.3);
    z-index: 100;
}

.miembros-container ul {
    list-style: none;
    padding: 0;
}

.miembros-container li {
    padding: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.eliminar-btn {
    background: red;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    border-radius: 5px;
    display: none;
}

.miembros-container li:hover .eliminar-btn {
    display: inline;
}



        /* 🔹 Contenedor Principal */
       /* 🔹 Contenedor del Chat */
/* 📌 Contenedor principal */
.container {
      overflow-y: auto; /* 🔥 Scroll solo cuando sea necesario */
    max-width: 600px;
    height: 100%; /* Ocupa todo el alto de la pantalla */
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 🔥 NO usar `space-between`, así el contenido crece */
    
    width: 90%;
    
    /* ❌ Antes: `height: calc(100vh - 60px);` */
   min-height: calc(100vh - 100px); /* 🔥 Ajustar margen superior para evitar desbordes */
    max-height: 90vh; /* 🔥 Máximo 90% de la altura de la pantalla */
    
    border-radius: 10px;
    background-color: #F8F9FA;
    overflow: visible; /* 🔥 Permitir que crezca */
    align-self: center;
    
    margin: 30px auto;
}



/* 📌 Header (arriba) */
.header {
    width: 100%;
    text-align: center;
    margin-top: 60px; /* 🔥 Ajuste para que quede debajo del sidebar */
    background: transparent; /* 🔥 Sin fondo */
}

/* 📌 Chat-container (abajo, sin `absolute`, ahora bien ubicado) */
.chat-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-grow: 1; /* 🔥 Ocupa el espacio restante */
    max-height: calc(100vh - 100px); /* 🔥 Máximo tamaño sin romper el diseño */
    border-radius: 10px;
    
    overflow: hidden;
   
}



/* 📌 Nuevo contenedor interno que agrupa todo */
.chat-content {
  
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border: 1px solid #ccc;
     border-radius: 10px 10px 10px 10px;
     background: white;
     margin: 0px!important;
     padding: 0 !important;
}



/* 📌 Saludo (Fijo arriba) */
#saludoDinamicoChat {
    width: 100%;
    padding: 10px;
    text-align: center;
    background: white;
    border: 1px solid #ccc;
    border-bottom: none;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1);
    flex-shrink: 0; /* NO permite que cambie de tamaño */
}


/* 📌 Contenedor de mensajes (SOLO ESTO SE DESPLAZA) */
.messages-container {
    flex-grow: 1;
    overflow-y: auto !important; /* Habilitar scroll vertical */
    overflow-x: hidden !important; /* 🔹 Oculta el scroll horizontal */
    background: white;
        padding: 10px 0px 0px 10px;
   
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    scrollbar-width: thin;
    height: 100%;
    overflow-anchor: none;
    max-width: 100%; /* 🔹 Evitar que se expanda más allá del contenedor */
}


/* 🔥 Evitar que los mensajes se aplasten y asegurar que el scroll funcione */
.messages-container > * {
    
    min-height: 40px; /* 🚀 Asegura que cada mensaje tenga un tamaño mínimo */
    width: 100%; /* 🚀 Asegura que ocupen todo el ancho */
    word-wrap: break-word; /* 🚀 Evita que el texto se salga */
    overflow: hidden; /* 🚀 Evita que se monten unos sobre otros */
}

/* 🎨 Estilo de la barra de scroll en Chrome, Edge y Safari */
.messages-container::-webkit-scrollbar {
    width: 6px;
}

.messages-container::-webkit-scrollbar-thumb {
    background-color: #00ff00;
    border-radius: 3px;
}

.messages-container::-webkit-scrollbar-track {
    background-color: #000;
}

/* 📌 Asegurar que los mensajes NO se salgan */
#messages {
    height: 500px; /* 🔹 Ajusta según lo necesario */
    overflow-y: auto; /* 🔹 Permite scroll */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px; /* 🔹 Espacio extra para evitar que el último mensaje se tape */
}


.chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.messages-container {
    flex-grow: 1; /* 🔹 Hace que el contenedor de mensajes use todo el espacio disponible */
    overflow-y: auto;
}


/* 📌 Nuevo contenedor padre con 100% de ancho */
.input-box-container {
    width: 100%;
    display: flex;
    justify-content: center;
    background: transparent;
    position: relative; /* 🔹 Asegura que no tape mensajes */
    z-index: 10; /* 🔹 Mantiene el input visible pero no sobre mensajes */
        width: 90%;
    align-self: center;
    margin-bottom: 5px;
}




/* 📌 Input (Fijo abajo) */
.input-container {
       width: 100%;
    place-self: anchor-center;
    
    background: white;
 
    flex-shrink: 0; /* NO permite que cambie de tamaño */
   
    
        margin-bottom: 5px;
    flex-direction: column; /* 🔥 Hace que las respuestas aparezcan abajo */
    justify-content: center; /* 🔥 Centra horizontalmente */
    align-items: center; /* 🔥 Centra verticalmente */
    text-align-last: center!important;
   
}

   .input-container:hover {
    border-color: #007f5f !important; /* 🔥 Cambia a un verde elegante al tocar */
}
/* 🔥 Contenedor Padre con Borde */
.profile-wrapper {
    padding: 10px;
    display: inline-block;
}


.profile-container {
    display: flex;
    align-items: center;
    gap: 20px; /* Espaciado entre elementos */
    width: 100%;
       border-radius: 10px;
    justify-content: space-between; /* Distribuye los elementos */
    position: relative; /* Permite posicionar elementos dentro */
}

.profile-container a {
    color: #007f5f;
}
.user span {
    color: #007f5f !important;
 
    font-weight: bold !important;
    text-shadow: none !important;
    background: none !important;
}


.profile-picture {
    width: 75px;  /* 🔥 Tamaño de la imagen */
    height: 60px;
    border-radius: 50%;  /* 🔥 Imagen redonda */
    
    object-fit: cover;
    border: 2px solid #007f5f;  /* 🔥 Borde verde neón */
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.profile-picture:hover {
    transform: scale(1.1);  /* 🔥 Efecto al pasar el mouse */
}

.profile-text {
    display: flex;
    flex-direction: column;
    color: white;
      flex-grow: 1; /* Permite que el texto se expanda en el espacio disponible */
}


.profile-saludo {
    font-size: 14px;
    font-weight: bold;
    color: #007f5f; /* 🔥 Color */
    margin-bottom: 2px;
}

.profile-name {
    font-size: 16px;
    font-weight: bold;
}

.profile-help {
    font-size: 15px;
    color: #007f5f;
}

   

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px; /* Espacio entre la imagen y el texto */
}

.mibrida {
    font-size: 12px !important; /* 🔥 Usa font-size en lugar de size */
    color: #007f5f;
  
}
.mibrida::before {
    content: "🤖 "; /* 🔥 Agrega el emoji de robot antes del mensaje */
    font-size: 14px; /* 🔥 Ajusta el tamaño del icono */
    margin-right: 5px; /* 🔥 Espacio entre el icono y el mensaje */
}
.user {
    font-size: 12px !important; /* 🔥 Usa font-size en lugar de size */
    
    color: #646464;
}


 

 
   


        .input-box {
            display: flex;
            width: 100%;
            align-items: center;
        }


       .send-button {
    background: none;
    color: #007f5f;
   
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 5px;
    transition: transform 0.2s ease-in-out; /* 🔥 Animación suave */
    width: 15%;
}

.send-button:hover {
    transform: scale(1.1); /* 🔥 Aumenta un 20% */
}

.material-icons {
    transition: color 0.2s ease-in-out, transform 0.2s ease-in-out; /* 🔥 Transición fluida */
}

.material-icons:hover {
    color: cyan; /* 🔥 Cambia a color cyan */
    transform: scale(1.1); /* 🔥 Agranda el icono un 30% */
}


     .report-button {
    font-size: 20px;
    padding: 8px;
    border-radius: 5px;
    text-decoration: none;
    background: none;
    margin: 0; /* 🔥 Evita que se desplace por un margen externo */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0; /* 🔥 Evita que se haga más grande de lo necesario */
    width: 15%;
}


       .report-button:hover {
    transform: scale(1.3); /* 🔥 Aumenta el tamaño un 30% */
}





/*Fin Dentro del perfil//////////////////////////////////////////////////////*/

/*Gmail//////////////////////////////////////////////////////////////////////*/
/* 📩 Gmail - Mismo Estilo que el Chat */
  
      
      
.boton-gpt {
    display: inline-flex; /* 🔥 Asegura alineación correcta */
    align-items: center; /* 🔥 Centra el ícono */
    justify-content: center;
    padding: 10px 15px;
   
    color: white;
    border-radius: 8px;
    font-size: 20px;
    text-decoration: none; /* ❌ Evita el subrayado */
    cursor: pointer; /* 🔥 Hace que el mouse lo detecte como botón */
    transition: background 0.3s, transform 0.2s;
    user-select: none; /* 🔥 Evita selección accidental */
}

.boton-gpt:hover {
    
    transform: scale(1.05); /* 🔥 Efecto de agrandar */
}

.boton-gpt:active {
    transform: scale(0.95); /* 🔥 Efecto de clic */
}

#resultadosGPT {
    margin-top: 20px;
    width: 100%;
    place-items: center;
    color: #007f5f;
}

        
    .botones-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.botones-container button {
    width: 30%;
    background-color: #007f5f;
    color: white;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    border: none;
}

input, .buscadorGPT{
margin-right: 5px;
}
#correos{
        width: 90%;
    align-self: center;
}

        .correo {
            border: 1px solid #ccc; 
            padding: 10px; 
            margin-bottom: 10px; 
            border-radius: 8px; 
            text-align: left;
            color: #007f5f;
            
        }
        .oculto {
            display: none;
            
        } 
        
        .correo p strong:first-child {
    color: #e80000; /* Verde neón para 'De:' */
}

.remitente {
    color:#007f5f; /* Verde neón para el remitente */
    font-weight: bold;
}




.btn-back:hover {
    color: #00E6B8; /* Verde más oscuro */
}
       .btn-back{
  display:block;          /* o inline-flex si prefieres */
  width:max-content;      /* se ajusta al contenido */
  margin:5px auto;          /* <-- lo centra horizontalmente */
  padding:10px 14px;
  border-radius:8px;
  border:0;

  color:#007f5f;
  text-decoration:none;
  font-weight:700;
  transition:background .2s, box-shadow .2s;
  text-align:center;
}
.btn-back:hover{
  background: #007f5f!important;
  box-shadow:0 4px 8px rgba(0,0,0,.15);
}

.correo p strong:last-child {
    color: #FFA500; /* Naranja para 'Asunto:' (cambiá el color como querás) */
}


/*Fin Gmail//////////////////////////////////////////////////////////////////*/

/*Enviar Gmail////////////////////////////////////////////////////////////////*/
/* 📌 Contenedor de la lista de trabajadores */
#lista_trabajadores {
  display: flex; /* 🔥 Asegura que los hijos se acomoden dentro */
    flex-wrap: wrap; /* 🔥 Evita que se desborden y los coloca abajo si es necesario */
    
    max-width: 100%; /* 🔥 Evita que el contenedor se pase del tamaño */
    
    margin-top: 15px;
        margin-bottom: 15px;
    max-height: 250px;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    background-color: var(--box-background);
        place-self: center;
          overflow-y: auto; /* 🔥 Scroll solo cuando sea necesario */
    max-height: 100vh; /* 🔥 Evita que se pase del tamaño de la pantalla */
    padding: 0px 30px 0px 30px;
    justify-content: center;
}

/* 📌 Cada trabajador en la lista */
#lista_trabajadores div {
    display: flex;
    align-items: center;
    width: 60%;
    margin-right: 40px;
    border-bottom: 1px solid var(--border-color);
    
}

label {
    font-size: 16px;
    color: #007f5f; /* Verde */
    font-weight: bold;
    display: block; /* 🔥 Hace que el label ocupe toda la línea */
    margin-bottom: 5px;
    
}
input[type="checkbox"] {
    float: left;
    margin-right: 0; /* Espacio entre el checkbox y el texto */
}


#buscador {
    width: 100%;
    padding: 5px; /* 🔥 Ajustado para no afectar la altura */
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--box-background);
    color: var(--text-color);
    height: 40px; /* 🔥 Fijar altura exacta */
    line-height: 20px; /* 🔥 Ajustar altura del texto */
    margin-bottom: 10px;
    box-sizing: border-box; /* 🔥 Asegura que padding no agrande el input */
    display: block;
}



/* 📌 Contenedor de archivos adjuntos */
#listaArchivos {
    margin-top: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    background-color: var(--box-background);
}

/* 📌 Cada archivo en la lista */
#listaArchivos div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    border-bottom: 1px solid var(--border-color);
}

/* 📌 Botón para eliminar archivos adjuntos */
#listaArchivos button {
    background-color: #DC3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
}

#listaArchivos button:hover {
    background-color: #B02A37;
}
.file-container {
    position: relative;
    display: inline-block;
}

#inputArchivos {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.custom-file-button {
    padding: 10px 15px;
    background-color: #007f5f;
    color: white;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    border: none;
    transition: background 0.3s, transform 0.2s;
}

.custom-file-button:hover {
    background-color: #005F44;
    transform: scale(1.05);
}

.custom-file-button:active {
    transform: scale(0.95);
}


/* 📌 Barra de progreso */
progress {
    width: 100%;
    height: 10px;
    margin-top: 10px;
}

/* 📌 Mensaje de éxito */
#mensaje-exito {
    color: var(--accent-color);
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
}

/*Fin Enviar Gmail////////////////////////////////////////////////////////////////*/

/*Login/////////////////////////////////////////////////////////////////////////*/

/* 🔹 Contenedor Principal */
.main-wrapper {
     
    max-height: 100vh; /* 🔥 Evita que se pase del tamaño de la pantalla */
    width: 100%;
    min-height: 100vh;  /* 🔥 Usa min-height en lugar de height para evitar cortes */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    position: absolute; /* 🔥 Cambia a absolute para evitar problemas con fixed */
    top: 0;
    left: 0;
    right: 0;
    overflow-y: auto;  /* 🔥 Permite desplazamiento si el contenido es más grande */
}




/* 🚀 Logo y Descripción */
.brand-logo {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.3rem;
    text-shadow: 0px 2px 4px var(--shadow-color);
}

.brand-description {
    font-size: 1rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 500;
}

/* 🔐 Contenedor de Login */
.auth-container {
    width: 350px;
    padding: 2rem;
    background-color: var(--box-background);
    border-radius: 12px;
    box-shadow: 0 6px 12px var(--shadow-color);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
          place-self: center;
}

.auth-container:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px var(--shadow-color);
}

/* 📩 Inputs */
.auth-container input {
    text-align-last: center;
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--box-background);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    
}




.auth-container input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 127, 95, 0.3);
}

.auth-container input::placeholder {
    color: #888;
}

/* 🔹 Estilos para selects (sexo y tipo de usuario) */
.auth-container select {
    width: 80%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--box-background);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    appearance: none; /* Oculta la flecha predeterminada en algunos navegadores */
    cursor: pointer;
}

/* 🎨 Efecto al pasar el cursor o seleccionar */
.auth-container select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 8px rgba(0, 127, 95, 0.3);
}

/* 🔻 Flecha personalizada para los selects */
.auth-container select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23E0E0E0" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

/* 🔹 Espaciado entre opciones dentro del select */
.auth-container select option {
    padding: 10px;
    background-color: var(--box-background);
    color: var(--text-color);
}

/* 🔘 Botón de Inicio de Sesión */
.btn-primary {
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: var(--box-background);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0px 3px 8px rgba(0, 127, 95, 0.2);
}

.btn-primary:hover {
    background-color: #005F44;
    box-shadow: 0 0 12px rgba(0, 127, 95, 0.4);
}


/* ✅ Mensajes de Éxito y Error */
.alert-success, .alert-error {
    text-align: center;
    font-weight: 500; /* Hace que la letra no sea gruesa */
    font-size: 15px; /* Tamaño normal */
    padding: 0; /* Sin relleno */
    margin: 0; /* Sin margen para que no mueva el contenedor */
    border: none; /* Sin bordes */
    background: none; /* Sin fondo */
    box-shadow: none; /* Sin sombra */
}

/* ✅ Mensaje de éxito - SOLO TEXTO VERDE */
.alert-success {
    color: #28A745; /* Verde */
    margin-top: 5px;
}

/* ❌ Mensaje de error - SOLO TEXTO ROJO */
.alert-error {
    color: #DC3545; /* Rojo */
     margin-top: 5px;
}




/* 🔗 Links */
.link-secondary {
    display: block;
    text-align: center;
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

.link-secondary:hover {
    text-decoration: underline;
}


/* 📱 🔹 RESPONSIVE PARA MÓVILES PEQUEÑOS (iPhone 11, Samsung A, Xiaomi, etc.) */

@media screen and (max-width: 480px) {
    
    
    
    .auth-container {
        width: 90%;
        padding: 1.5rem;
    }

    .brand-logo {
        font-size: 2.4rem;
    }

    .brand-description {
        font-size: 0.9rem;
    }
    
      .profile-text {
    display: flex;
    flex-direction: column;
    color: white;
    align-items: center;
}

.sidebar {
        justify-content: space-between; /* 🔥 Distribuye mejor en pantallas pequeñas */
        padding: 5px;
        
    }
    .container {
        
        width: 95%; /* 🔥 Más ancho en móviles pequeños */
        height: auto;
        min-height: calc(100vh - 120px); /* 🔥 Evita cortes por la barra de navegación */
        position: relative!important; /* ❌ NO usar fixed aquí */
        margin: 20px auto; /* 🔥 Centrado automático */
        
    }
    
       #enviarGmail .subsection, #gestionFacturas .subsection, #gestionHoras .subsection {
   
    right: 0;
    transform: none;
}

.#menuRecetas .subsection {
          left: -150px; /* 🔥 Mueve 50px más a la izquierda */
      
        transform: none;
} 
#menuInventarios .subsection{
          left: -20; /* 🔥 Mueve 50px más a la izquierda */
       
        transform: none;
}
/* 🔥 Mover todo el contenedor a la izquierda */

/* 🔥 Mover todo el contenedor a la izquierda */
/* 🔥 Mantener el contenedor principal a la izquierda */
#rolesYLugaresContainer {
    position: absolute!important;
    left: -100px !important;
    transform: none !important;
}

/* 🔥 Asegurar que la subsección también se mueva */
#rolesYLugaresContainer .subsection {
    position: relative!important; /* ✅ Cambiado de absolute a relative */
    left: -100px !important;
    transform: none !important;
}

/* 🔥 Ajustar los formularios para que se muevan dentro del contenedor sin salirse */
#formRoles, #formLugares {
    position: relative!important; /* ✅ Cambiar absolute por relative */
    left: -100px !important; /* 🔥 Asegura que sigan dentro del contenedor */
    width: 100%; /* 🔥 Asegura que no se desborden */
    
    margin-top: 10px; /* 🔥 Espaciado para que no se superpongan */
}


    



/* 📲 🔹 RESPONSIVE PARA TABLETS Y TELÉFONOS GRANDES (iPhone Pro Max, Samsung Ultra, etc.) */

@media screen and (max-width: 768px) {

    .main-wrapper {
        width: 100vw; /* Ocupa todo el ancho de la pantalla */
        height: 100vh; /* Asegura que cubra toda la pantalla */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
          overflow-y: auto; /* 🔥 Scroll solo cuando sea necesario */
           overflow-x: hidden; /* 🔥 Evita scroll a los lados */
   
        top: 0;
        left: 0;
    }


    .container {
        height: auto;
        width: 90%;
        max-width: 700px;
        min-height: calc(100vh - 120px);
        position: relative;
        margin: 20px auto;
        
    }
       #enviarGmail .subsection, #gestionFacturas .subsection, #gestionHoras .subsection {
   
    right: 0;
    transform: none;
            width: max-content;
}

#menuRecetas .subsection, #menuInventarios .subsection{
          left: -150px; /* 🔥 Mueve 50px más a la izquierda */
       
        transform: none;
}
#menuInventarios .subsection{
          left: -20; /* 🔥 Mueve 50px más a la izquierda */
       
        transform: none;
}
/* 🔥 Mover todo el contenedor a la izquierda */
/* 🔥 Mantener el contenedor principal a la izquierda */
#rolesYLugaresContainer {
    position: absolute!important;
    left: -25px !important;
    transform: none !important;
}

/* 🔥 Asegurar que la subsección también se mueva */
#rolesYLugaresContainer .subsection {
    position: relative!important; /* ✅ Cambiado de absolute a relative */
    left: -25px !important;
    transform: none !important;
}

/* 🔥 Ajustar los formularios para que se muevan dentro del contenedor sin salirse */
#formRoles, #formLugares {
    position: relative!important; /* ✅ Cambiar absolute por relative */
    left: -100px !important; /* 🔥 Asegura que sigan dentro del contenedor */
    width: 100%; /* 🔥 Asegura que no se desborden */
 
    margin-top: 10px; /* 🔥 Espaciado para que no se superpongan */
}


    
}
/*/////////////////////////////////////////////////////////////
/* ====== Workers (admin_workers.php) — Layout seguro y responsive ====== */
.container.workers-page {
  max-width: 1200px;      /* más ancho que tu .container default */
  width: 95%;
  margin: 30px auto;
  padding: 12px;
  box-sizing: border-box;
  overflow-wrap: anywhere; /* evita que textos largos rompan el ancho */
}

/* Buscador y acciones */
.workers-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.workers-search { flex: 1 1 260px; min-width: 220px; }
.workers-search input { width: 100%; }

/* Contenedor con scroll horizontal solo si es necesario */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #e9e9e9;
  background: #fff;
}

/* Tabla específica para esta vista (no usa .auth-container) */
table.workers-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px; /* fuerza scroll en móviles si no cabe */
}

.workers-table th,
.workers-table td {
  padding: 10px 12px;
  text-align: left;         /* ⬅ override a tu td { text-align:center } */
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
  white-space: nowrap;      /* mantiene filas compactas */
}

.workers-table th {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.workers-table tr:hover { background: #fcfcff; }

/* Píldoras de estado (mejor que inline styles) */
.estado-pill {
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  display: inline-block;
}
.estado-pendiente { color: #ad7a00; background: #fff6e0; }
.estado-aceptado  { color: #0b6b2a; background: #eaffe5; }
.estado-eliminado { color: #8a0e0e; background: #ffe9e9; }

.workers-table .acciones a {
  display: inline-block;
  margin-right: 8px;
  font-weight: 600;
}
/* Fijar la primera columna (Nombre) */
.workers-table th:first-child,
.workers-table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;   /* fondo para tapar lo que pase detrás */
  z-index: 2;         /* se mantiene sobre las demás celdas */
}


/* Ajustes finos para móviles (iPhone) */
@media (max-width: 480px) {
  .container.workers-page { padding: 10px; }
  .workers-actions { gap: 6px; }
  .workers-table th,
  .workers-table td { padding: 9px 10px; font-size: 13px; }
}

/* ====== Grupos (gestionar_grupos.php) ====== */
.container.grupos-page {
  max-width: 1000px;    /* más ancho que los formularios normales */
  width: 95%;           /* que no tope a los lados */
  margin: 30px auto;    /* centrado */
  padding: 12px;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

/* Contenedor con scroll horizontal solo si hace falta */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
  border: 1px solid #e9e9e9;
  background: #fff;
}

/* Tabla específica de grupos */
.grupos-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;  /* fuerza scroll en móviles si no cabe */
}

.grupos-table th,
.grupos-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #f0f0f0;
  white-space: nowrap;
}

.grupos-table th {
  background: #fafafa;
  font-weight: 600;
  position: sticky;
  top: 0;
  z-index: 1;
}

.grupos-table tr:hover {
  background: #fcfcff;
}

/* Fijar primera columna (Nombre) */
.grupos-table th:first-child,
.grupos-table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 2;
}

/* Responsive fino en móviles */
@media (max-width: 480px) {
  .container.grupos-page { padding: 10px; }
  .grupos-table th,
  .grupos-table td { padding: 9px 10px; font-size: 13px; }
}



/* 💻 🔹 RESPONSIVE PARA LAPTOPS Y MONITORES MEDIANOS */
@media screen and (min-width: 1024px) {
    .container {
        width: 60%;
        height: auto;
        max-width: 1000px;
        min-height: calc(100vh - 120px);
        position: relative;
        margin: 10px auto;
       
    }
}

/* 🖥️ 🔹 RESPONSIVE PARA MONITORES GRANDES Y TVs */
@media screen and (min-width: 1440px) {
    .container {
        width: 55%;
        height: auto;
        max-width: 1300px;
        min-height: calc(100vh - 120px);
        position: relative;
        margin: 10px auto;
    }
}


