body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; background-color: #f4f4f4; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 100vh; }
.container { background-color: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); width: 90%; max-width: 1300px; margin: 20px; }
header { background-color: #e74c3c; color: white; padding: 5px 20px; text-align: center; border-radius: 10px 10px 0 0; margin-bottom: 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
header .logo img { max-height: 100px; }
header h1 { margin: 0; font-size: 1.8em; font-weight: 500; }
header span { font-size: 1.1em; color: #f0f0f0; }
main { padding: 30px; background-color: #fff; border-radius: 0 0 12px 12px; border: 1px solid #ddd; }
.hidden { display: none !important; }
h2, h3 { text-align: center; color: #333; margin-bottom: 25px; }
.form-group { margin-bottom: 20px; }
label { display: block; margin-bottom: 8px; color: #555; font-weight: bold; }
input[type='email'],
input[type='password'],
input[type='number'],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px; 
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 1em;
}
button { background-color: #e74c3c; color: white; padding: 12px 20px; border: none; border-radius: 8px; cursor: pointer; font-size: 1.1em; transition: background-color 0.2s ease-in-out; }
button:hover { background-color: #c0392b; }
.mensaje { margin-top: 20px; padding: 15px; border-radius: 8px; font-weight: bold; }
.mensaje.exito { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.mensaje.error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.comedor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.pedidos-hoy { background-color: #f9f9f9; padding: 20px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); border: 1px solid #e0e0e0; }
.pedidos-hoy h4 { margin-top: 0; color: #333; padding-bottom: 10px; border-bottom: 1px solid #e0e0e0; margin-bottom: 15px; }
#lista-pedidos-hoy { list-style: none; padding: 0; margin: 0; max-height: 400px; overflow-y: auto; }
#lista-pedidos-hoy li { background-color: #ffffff; padding: 12px 15px; border: 1px solid #ddd; border-radius: 6px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); color: #444; font-size: 0.95em; transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; }
#lista-pedidos-hoy li:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(0,0,0,0.08); }
#lista-pedidos-hoy li:last-child { margin-bottom: 0; border-bottom: 1px solid #ddd; }
.modal { position: fixed; z-index: 1000;  left: 0; top: 0; width: 100%; height: 100%; overflow: auto;  background-color: rgba(0, 0, 0, 0.6);  }
#nuevo-usuario-modal { z-index: 1000; }
#alert-modal { z-index: 1001; }
#alert-modal .modal-content { padding: 25px 20px; text-align: center; max-width: 350px; margin: 10% auto; background-color: #fefefe; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
#alert-message { margin: 0; font-size: 1.2em; line-height: 1.5; color: #333; word-wrap: break-word; }
#alert-message span { font-weight: bold;  }
#alert-modal .modal-buttons { text-align: center; margin-top: 25px; }
#alert-modal .modal-buttons button { margin-left: 0; min-width: 100px; }
#confirmacion-modal { z-index: 1002; }
.modal-content { background-color: #fefefe; margin: 10% auto;  padding: 25px 30px; border: 1px solid #ddd; width: 90%; max-width: 450px;  border-radius: 8px; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);  position: relative; text-align: left; }
.modal-content h3 { text-align: center; margin-top: 0; margin-bottom: 25px; color: #333; font-size: 1.5em; }
.modal-content .form-group { margin-bottom: 20px; }
.modal-content input[type="email"],
.modal-content input[type="password"],
.modal-content input[type="text"],
.modal-content input[type="number"],
.modal-content select { width: 100%; }
.cerrar-modal-btn {  color: #aaa; float: right; font-size: 28px;  font-weight: bold; cursor: pointer; line-height: 1;  }
.cerrar-modal-btn:hover,
.cerrar-modal-btn:focus { color: #000; text-decoration: none; }
.modal-content .close-button { color: #aaa; position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; line-height: 1; }
.modal-content .close-button:hover,
.modal-content .close-button:focus { color: black; text-decoration: none; cursor: pointer; }
#lista-usuarios table { width: 100%; border-collapse: collapse; margin-bottom: 20px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); border-radius: 10px;  overflow: hidden; }
#lista-usuarios th,
#lista-usuarios td { border: 1px solid #ddd; padding: 12px 10px; text-align: left; }
#lista-usuarios th { background-color: #f2f2f2; font-weight: bold; color: #333; }
.acciones-usuarios { display: flex; gap: 10px; }
.acciones-usuarios button { padding: 10px 15px; font-size: 1em; border-radius: 8px; border: none; cursor: pointer; transition: opacity 0.2s ease-in-out; }
.acciones-usuarios button:hover { opacity: 0.8; }
.agregar-saldo-btn { background-color: #5cb85c; color: white; }
.editar-btn { background-color: #f0ad4e; color: white; }
.eliminar-btn { background-color: #d9534f; color: white; }
.cerrar-sesion-container { display: flex; flex-direction: column; align-items: center; margin-top: 80px; margin-bottom: 20px; }
.cerrar-sesion-container button { margin-bottom: 10px; }
button:disabled { background-color: #ccc; color: #666; cursor: not-allowed;  opacity: 0.7; }
.modal-buttons { text-align: right; margin-top: 20px; }
.modal-buttons button { background-color: #e74c3c; color: white; padding: 10px 15px; border: none; border-radius: 5px; cursor: pointer; margin-left: 10px; }
.modal-buttons button:hover { background-color: #c0392b; }
#colaborador-section #pedir-comida-btn,
#colaborador-section #cancelar-comida-btn { display: inline-block; width: auto; margin-right: 10px; margin-bottom: 15px; }
#colaborador-section #cancelar-comida-btn { margin-right: 0; }
#rh-section { position: relative; }
#rh-section .rh-actions-panel { display: flex; justify-content: flex-start; gap: 15px; padding: 15px; margin-bottom: 20px; background-color: #f8f9fa; border-radius: 8px; border: 1px solid #dee2e6; }
#rh-section #lista-usuarios-container { max-height: 400px; overflow-y: auto; overflow-x: auto; border: 1px solid #ddd; border-radius: 6px; padding: 5px; margin-bottom: 30px; }
#rh-section #lista-usuarios table { width: 100%; }
#rh-section .rh-logout-panel { position: absolute; top: 25px; right: 25px; padding: 10px; background-color: transparent; border: none; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; align-items: flex-end; text-align: right; margin-top: 0; }
#rh-section .rh-logout-panel button { margin-bottom: 5px; }
#rh-section .rh-logout-panel p { margin: 0; font-size: 0.8em; color: #6c757d; }
#rh-section .sortable-header { cursor: pointer; user-select: none; }
#rh-section .sortable-header:hover { background-color: #e9e9e9; }
.modal-body-alert { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 25px; }
.modal-logo-alert { width: 100px; height: auto; flex-shrink: 0; margin-right: 15px; }
#lista-entrega-hoy li.entregado { background-color: #d4edda; border-left: 5px solid #155724; }
#lista-entrega-hoy li.entregado button { background-color: #ccc; cursor: not-allowed; }
@media (max-width: 600px) {
    #login-section h2 { font-size: 1.8em; }
    #login-section button { width: 100%; padding: 14px; font-size: 1.1em; margin-bottom: 15px; }
    #login-section button:last-of-type { margin-bottom: 0; }
    #login-section p[style*="text-align: center"] { margin-top: 10px; margin-bottom: 10px; }
    #login-section #olvide-contrasena { display: block; text-align: center; margin-bottom: 20px; }
    #colaborador-section h2 { font-size: 1.8em; }
    #colaborador-section p { font-size: 0.95em;  line-height: 1.6; margin-bottom: 15px; }
    #colaborador-section #pedir-comida-btn,
    #colaborador-section #cancelar-comida-btn { display: block; width: 100%; margin-right: 0; margin-bottom: 20px; padding: 14px; font-size: 1.1em; }
    #colaborador-section .cerrar-sesion-container { margin-top: 40px;  }
    #colaborador-section .cerrar-sesion-container button { width: 100%;  max-width: 300px;  padding: 14px; font-size: 1.1em; }
    #colaborador-section .cerrar-sesion-container p { font-size: 0.9em;  text-align: center;  }
    .modal-content { padding: 20px; margin: 5% auto;  width: 75%; }
    #rh-section .rh-actions-panel { flex-direction: column; align-items: stretch; }
    #rh-section .rh-actions-panel button,
    #rh-section .rh-actions-panel div { width: 100%; margin-bottom: 15px; box-sizing: border-box; }
    #rh-section .rh-actions-panel div label { margin-bottom: 5px; }
    #rh-section .rh-actions-panel input[type="month"] { width: 100%; box-sizing: border-box; }
    #rh-section .rh-actions-panel button:last-child,
    #rh-section .rh-actions-panel div:last-child { margin-bottom: 0; }
    #rh-section h2 {  font-size: 1.6em; margin-bottom: 15px; }
    #rh-section .rh-logout-panel { top: 1px; right: 15px; }
    #alert-modal .modal-content { width: 90%; padding: 30px 20px; }
    .modal-logo-alert { width: 70px; margin-bottom: 15px; }
    #alert-message { font-size: 1.1em; }
}
@media (max-width: 768px) { .comedor-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 480px) { #rh-section .rh-actions-panel { flex-direction: column; align-items: stretch; } #rh-section .rh-actions-panel button { width: 100%; margin-bottom: 10px; } #rh-section .rh-actions-panel button:last-child { margin-bottom: 0; } #rh-section #mes-reporte { width: 100%; box-sizing: border-box; } }
@media (max-width: 1024px) { .container { width: 95%; padding: 25px; } header h1 { font-size: 1.6em; } .rh-actions-panel { flex-direction: column; align-items: stretch; } .rh-actions-panel button, .rh-actions-panel div { width: 100%; box-sizing: border-box; } #lista-entrega-hoy li strong { font-size: 1em; } #lista-entrega-hoy li small { font-size: 0.85em; } #lista-entrega-hoy li button { padding: 6px 12px; font-size: 0.8em; } }
.btn-google { background-color: #4285F4; color: white; }
.btn-google:hover { background-color: #357ae8; }
.btn-google img { width: 20px;  height: 20px;  vertical-align: middle;  margin-right: 8px; }
#lista-kiosco-container { border: 1px solid #ddd; border-radius: 8px; overflow: hidden; margin-top: 25px; }
.kiosco-header,
#lista-entrega-hoy li { display: grid; grid-template-columns: 1fr auto;  align-items: center; padding: 12px 15px; }
.kiosco-header { background-color: #f2f2f2; border-bottom: 1px solid #ddd; font-weight: bold; color: #333; }
.kiosco-body-scroll { max-height: 60vh; overflow-y: auto; }
#lista-entrega-hoy { list-style: none; padding: 0; margin: 0; }
#lista-entrega-hoy li { background-color: #ffffff; border-bottom: 1px solid #e0e0e0; transition: background-color 0.2s ease; }
#lista-entrega-hoy li:last-child { border-bottom: none; }
#lista-entrega-hoy li:nth-child(even) { background-color: #f9f9f9; }
#lista-entrega-hoy li.entregado { background-color: #d4edda !important; color: #155724; }
#lista-entrega-hoy li strong { font-size: 1.1em; color: #333; }
#lista-entrega-hoy li small { color: #666; font-size: 0.9em; }
#lista-entrega-hoy li button { background-color: #e74c3c; color: white; padding: 8px 16px; font-size: 0.9em; border-radius: 6px; border: none; cursor: pointer; }
#lista-entrega-hoy li button:hover { background-color: #c0392b; }
#lista-entrega-hoy li.entregado button { background-color: #28a745; cursor: not-allowed; }
#abrir-kiosco-link { color: inherit !important; text-decoration: none !important; cursor: default; -webkit-tap-highlight-color: transparent; }
#abrir-kiosco-link:hover { color: inherit; text-decoration: none !important; }
#voluntarios-modal .modal-content { max-width: 400px; padding: 25px 30px; }
#voluntarios-modal h3 { margin-bottom: 20px; font-size: 1.6em; }
#voluntarios-modal .form-group { margin-bottom: 25px; }
#voluntarios-modal label { font-size: 1.1em; margin-bottom: 10px; }
#voluntarios-modal input[type="number"] { padding: 12px; font-size: 1.1em; border-radius: 8px; border: 1px solid #ccc; }
#voluntarios-modal button { width: 100%; padding: 14px; font-size: 1.2em; margin-top: 15px; }
#voluntarios-modal .mensaje { margin-top: 20px; text-align: center; }
#voluntarios-modal { z-index: 1003; }
@media (max-width: 600px) { #voluntarios-modal .modal-content { width: 90%; padding: 20px; } #voluntarios-modal h3 { font-size: 1.4em; } #voluntarios-modal input[type="number"] { padding: 10px; font-size: 1em; } #voluntarios-modal button { padding: 12px; font-size: 1.1em; } }
#extras-modal { z-index: 1004; }
#extras-modal .modal-content { max-width: 400px; padding: 25px 30px; }
#extras-modal h3 { margin-bottom: 20px; font-size: 1.6em; }
#extras-modal .form-group { margin-bottom: 25px; }
#extras-modal label { font-size: 1.1em; margin-bottom: 10px; }
#extras-modal input[type="number"] { padding: 12px; font-size: 1.1em; border-radius: 8px; border: 1px solid #ccc; }
#extras-modal button { width: 100%; padding: 14px; font-size: 1.2em; margin-top: 15px; }
#extras-modal .mensaje { margin-top: 20px; text-align: center; }
@media (max-width: 600px) { #extras-modal .modal-content { width: 90%; padding: 20px; } #extras-modal h3 { font-size: 1.4em; } #extras-modal input[type="number"] { padding: 10px; font-size: 1em; } #extras-modal button { padding: 12px; font-size: 1.1em; } }
.btn { position: relative; overflow: hidden; }
.btn span { position: relative; z-index: 2; }
.btn::before { content: ''; position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); width: 0px; height: 0px; background: radial-gradient(circle closest-side, white, transparent); border-radius: 50%; opacity: 0; transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease; z-index: 1; }
.btn:hover::before { width: 200px; height: 200px; opacity: 0.5; }
#iniciar-sesion-microsoft-btn { position: relative; overflow: hidden; border: none;  }
#iniciar-sesion-microsoft-btn span { position: relative; z-index: 3; }
#iniciar-sesion-microsoft-btn::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, #ff0000, #ff7300, #ffeb00, #47ff00, #00ffee, #2b65ff, #8000ff, #ff0080, #ff0000); background-size: 400%; z-index: 1; animation: glow 3s linear infinite; opacity: 0; transition: opacity 0.3s ease; }
#iniciar-sesion-microsoft-btn:hover::before { opacity: 1; }
#iniciar-sesion-microsoft-btn::after { content: ''; position: absolute; top: 2px; left: 2px; width: calc(100% - 4px); height: calc(100% - 4px); background: #e74c3c;  z-index: 2; border-radius: 6px; transition: background 0.3s ease; }
#iniciar-sesion-microsoft-btn:hover::after { background: transparent; }
@keyframes glow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { width: 100%; padding-right: 40px; }
.toggle-password { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #888; }
input[type='email'],
input[type='password'],
input[type='number'],
input[type='text'],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px; 
    box-sizing: border-box;
    margin-bottom: 15px;
    font-size: 1em;
    position: relative; 
}