/* /public_html/app/css/style.css */

/* Paleta de Colores SkillMcMill (para referencia):
   Rosa Fuerte: #EF476F
   Amarillo Mostaza: #FFD166
   Verde Turquesa Brillante: #06D6A0
   Azul Verdoso: #118AB2
   Azul Oscuro: #073B4C

   Colores Cabecera/Footer:
   Fondo Cabecera/Footer: #f9fbff
   Texto Cabecera/Footer: #2e2e2e
*/

/* --- Reseteo Básico y Tipografía Base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F4F7F6; 
    color: #073B4C; 
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 95%; 
    max-width: 1140px; 
    margin: 0 auto; 
    padding: 0 10px; 
}
@media (min-width: 480px) { .container { padding: 0 15px; } }
@media (min-width: 768px) { .container { width: 90%; padding: 0 20px; } }

/* --- Cabecera --- */
header {
    background-color: #f9fbff; 
    color: #2e2e2e; 
    padding: 12px 0; 
    border-bottom: 2px solid #E9EDF0; 
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04); 
    position: sticky; 
    top: 0;
    z-index: 1000; 
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
header h1 { margin: 0; font-size: 1.6em; font-weight: 700; }
header h1 a { color: #000; text-decoration: none; transition: color 0.2s ease;}
header h1 a:hover { color: #118AB2; }


/* --- Navegación Principal y Menú Hamburguesa (Universal) --- */
.hamburger-button { display: flex; flex-direction: column; justify-content: space-around; width: 28px; height: 24px; background: transparent; border: 0; cursor: pointer; padding: 0; z-index: 1002; position: relative; box-shadow: none; }
.hamburger-button:hover { background-color: transparent; }

.hamburger-button .hamburger-bar { display: block; width: 100%; height: 3px; background-color: #000000; border-radius: none; transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); }
.hamburger-button.active .hamburger-bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger-button.active .hamburger-bar:nth-child(2) { opacity: 0; }
.hamburger-button.active .hamburger-bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.main-nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background-color: #ffffff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); border-top: 1px solid #E9EDF0; max-height: 0; overflow-y: auto; transition: max-height 0.4s cubic-bezier(0.23, 1, 0.32, 1); z-index: 1001; }
.main-nav.menu-open { display: flex; max-height: calc(100vh - 60px); } 
.main-nav ul { flex-direction: column; width: 100%; margin: 0; padding: 0; list-style: none; }
.main-nav ul li { width: 100%; text-align: left; }
.main-nav ul li a { color: #073B4C; text-decoration: none; font-size: 1em; font-weight: 500; padding: 15px 25px; display: block; border-bottom: 1px solid #f0f2f5; transition: color 0.2s ease; } /* Eliminada transition de background */
.main-nav ul li:last-child a { border-bottom: none; }
.main-nav ul li a:hover { 
    color: #06D6A0; 
    background-color: transparent !important; /* CORRECCIÓN: Sin cambio de fondo en hover */
}

/* --- Main Content --- */
main { padding: 25px 0; }
main .container.main-page-container { background-color: #FFFFFF; padding: 20px; border-radius: 10px; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07); }
@media (min-width: 768px) { main .container.main-page-container { padding: 30px 35px; } }

/* --- Footer --- */
footer { background-color: #f9fbff; color: #2e2e2e; text-align: center; padding: 25px 20px; margin-top: 30px; border-top: 2px solid #E9EDF0; font-size: 0.7em; }

/* === Mensajes de Sistema === */
.message-box { padding: 15px 20px; margin: 20px 0; border-radius: 8px; font-weight: 500; display: flex; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: opacity 0.3s ease; text-align: left; }
.message-box-icon { font-size: 1.6em; margin-right: 15px; line-height: 1; }
.message-box p { margin: 0; line-height: 1.5; }
.error-message { color: #721c24; background-color: #f8d7da; border: 1px solid #f1c1c6; border-left-width: 5px; border-left-color: #EF476F; }
.error-message .message-box-icon::before { content: "❗"; } 
.success-message { color: #155724; background-color: #d4edda; border: 1px solid #c3e6cb; border-left-width: 5px; border-left-color: #06D6A0;}
.success-message .message-box-icon::before { content: "✅"; } 
.info-message { color: #0c5460; background-color: #d1ecf1; border: 1px solid #bee5eb; border-left-width: 5px; border-left-color: #118AB2;}
.info-message .message-box-icon::before { content: "ℹ️"; } 

/* === Formularios Estándar === */
/* ... (Estilos de formulario como los tenías, la corrección de .form-row ya estaba) ... */
.standard-form { background-color: #fff; padding: 25px 30px; border: 1px solid #e9edf0; border-radius: 8px; margin-bottom: 25px; box-shadow: 0 1px 4px rgba(0,0,0,0.05); }
.standard-form h3, .standard-form h4 { margin-top: 0; border-bottom: 1px solid #f0f2f5; padding-bottom: 12px; margin-bottom: 25px; color: #073B4C; text-align: left; font-weight: 600;}
.standard-form h4 { font-size: 1.15em; color: #118AB2; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #073B4C; text-align: left; font-size: 0.95em; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="password"], .form-group input[type="date"], .form-group input[type="tel"], .form-group input[type="number"], .form-group textarea, .form-group select { width: 100%; padding: 12px 15px; box-sizing: border-box; border: 1px solid #ccd0d5; border-radius: 6px; font-size: 1em; color: #073B4C; background-color: #fdfdfe; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: #06D6A0; outline: none; box-shadow: 0 0 0 3px rgba(6, 214, 160, 0.25); }
.form-group small { display: block; margin-top: 6px; font-size: 0.85em; color: #555; text-align: left; }
.standard-form .form-row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-end; } 
.standard-form .form-row .form-group { flex: 1; min-width: 0; margin-bottom: 0; }
.standard-form .form-row .form-group-inline-item { flex-grow: 0; display: flex; align-items: center; padding-bottom: 10px; }
.standard-form .form-group-inline-item input[type="checkbox"] { width: auto; margin-right: 8px; transform: scale(1.1); }
.standard-form .form-group-inline-item label { display: inline; font-weight: normal; margin-bottom: 0; }


/* === Botones === */
/* ... (Estilos de botones como los tenías, ya eran bastante buenos) ... */
button, .button { display: inline-flex; align-items: center; justify-content: center; background-color: #d4e7ff; color: #073B4C; border: none; padding: 12px 22px; text-decoration: none; border-radius: 6px; cursor: pointer; font-size: 1em; font-weight: 600; transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1); box-shadow: 0 2px 3px rgba(0,0,0,0.08), 0 1px 1px rgba(0,0,0,0.06); }
button:hover, .button:hover { background-color:#51f1c8; color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 3px rgba(0,0,0,0.08); }
button:active, .button:active { transform: translateY(0px); box-shadow: 0 1px 2px rgba(0,0,0,0.1); }
.button .button-icon { margin-right: 8px; font-size: 1.1em; line-height: 1; } 
.button.secondary { background-color: #FFD166; color: #073B4C; }
.button.secondary:hover { background-color: #F5C040; color: #073B4C; } 
.button.danger { background-color: #EF476F; color: #FFFFFF; }
.button.danger:hover { background-color: #E04165; color: #FFFFFF; } 
.button.small { padding: 8px 15px; font-size: 0.9em; }


/* === Estilos para Tablas === */
/* ... (Estilos de tablas como los tenías, ya eran bastante buenos) ... */
.table-responsive-container { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 20px; border: 1px solid #e9edf0; border-radius: 8px; }
.styled-table { width: 100%; min-width: 650px; border-collapse: collapse; margin: 0; font-size: 0.9em; }
.styled-table thead tr { background-color: #f6f8fa; color: #073B4C; text-align: left; font-weight: 600; border-bottom: 2px solid #d0d7de; }
.styled-table th, .styled-table td { padding: 12px 15px; border-bottom: 1px solid #e9edf0; border-left: none; border-right: none; vertical-align: middle; }
.styled-table th:first-child, .styled-table td:first-child { padding-left: 20px; } 
.styled-table th:last-child, .styled-table td:last-child { padding-right: 20px; text-align: right; } 
.styled-table tbody tr:last-of-type { border-bottom: none; }
.styled-table tbody tr:hover { background-color: #f0f8ff; } 
.styled-table tbody tr.option-correct-row { background-color: #d4edda !important; }
.styled-table tbody tr.option-correct-row td { font-weight: bold; }
.actions-cell { text-align: right; white-space: nowrap; } 
.actions-cell .button-icon { text-decoration: none; margin-left: 8px; font-size: 1.2em; padding: 5px; border-radius: 3px; vertical-align: middle; opacity: 0.8; transition: opacity 0.2s ease; }
.actions-cell .button-icon:hover { opacity: 1; }
.button-icon.view { color: #06D6A0; } .button-icon.edit { color: #118AB2; } .button-icon.delete { color: #EF476F; } 
.button-icon.disabled-delete { color: #cccccc; cursor: not-allowed; opacity: 0.5; }


/* === Estilos Comunes para Cabeceras de Página de Módulos === */
.page-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 2px solid #E9EDF0; }
.page-header h2 { margin: 0 0 10px 0; border-bottom: none; padding-bottom: 0; color: #073B4C; text-align: left; flex-basis: 100%; font-size: 1.8em; font-weight: 600; }
@media (min-width: 768px) { .page-header h2 { flex-basis: auto; margin-bottom:0; } }
.page-header .button, .page-header form { margin-top: 10px; } 
@media (min-width: 768px) { .page-header .button, .page-header form { margin-top:0; } }

/* === Estilos para Dashboards ===}*/
/*.welcome-message-dashboard { background-color: #e7f3fe; color: #073B4C; padding: 25px 30px; border-radius: 10px; margin-bottom: 35px; border-left: 6px solid #118AB2; box-shadow: 0 2px 8px rgba(0,0,0,0.05); }
/*.welcome-message-dashboard h2 { margin-top: 0; margin-bottom: 8px; font-size: 1.9em; font-weight: 600; }
/*.welcome-message-dashboard p { margin-bottom: 0; font-size: 1.1em; }


/* En tu style.css (Canvas css_style_design_polish_004 o más reciente) */

.welcome-message-dashboard {
    background-color: #e7f3fe; 
    color: #073B4C;
    padding: 15px; /* Ajustar padding */
    border-radius: 10px;
    margin-bottom: 35px;
    border-left: 6px solid #118AB2; 
    box-shadow: 0 3px 10px rgba(0,0,0,0.06);
    display: flex; /* Para alinear texto y foto */
    align-items: center; /* Centrar verticalmente */
}

.welcome-message-dashboard h2 {
    font-size: 1.2em;
}

.welcome-message-dashboard p {
    font-size: 0.8em;
}

.welcome-text-content {
    flex-grow: 1; /* Que el texto ocupe el espacio disponible */
}
.welcome-text-content h2 { margin-top: 0; margin-bottom: 5px; font-size: 1.2em; font-weight: 600; }
.welcome-text-content p { margin-bottom: 0; font-size: 0.8em; }

.welcome-profile-photo {
    margin-left: 0; /* Espacio entre texto y foto */
    flex-shrink: 0; /* Evitar que la foto se encoja */
    order: 1; /* Opcional: poner la foto a la izquierda del texto */
}
.welcome-text-content { /* Si la foto va a la izquierda */
    order: 2;
    margin-left: 0; /* Resetear si antes estaba a la izquierda */
    padding-left: 25px; /* Nuevo padding para separar del borde si la foto está a la izquierda */
}
/* Si prefieres foto a la derecha (default de antes), quita order y el padding-left de welcome-text-content */


.dashboard-profile-photo {
    width: 70px;  /* Tamaño aumentado */
    height: 70px; /* Tamaño aumentado */
    border-radius: 50%; 
    object-fit: cover; 
    border: 0px solid #06D6A0; /* Borde más grueso y con color de acento */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 25px; margin-bottom: 35px; }
@media (max-width: 560px) { .dashboard-widgets { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 15px; } }
@media (max-width: 380px) { .dashboard-widgets { grid-template-columns: 1fr; } } /* Una columna en pantallas muy pequeñas */

.widget { background-color: #FFFFFF; border: 1px solid #e9edf0; border-radius: 10px; padding: 20px 25px; box-shadow: 0 4px 10px rgba(0,0,0,0.07); position: relative; display: flex; flex-direction: column; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.widget:hover { transform: translateY(-4px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }
.widget-accent::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.widget-accent-pink::before { background-color: #EF476F; } .widget-accent-yellow::before { background-color: #FFD166; }
.widget-accent-green::before { background-color: #06D6A0; } .widget-accent-blue::before { background-color: #118AB2; }
.widget-icon { font-size: 2.4em; margin-bottom: 5px; line-height: 1; }
.widget-accent-pink .widget-icon { color: #EF476F; } .widget-accent-yellow .widget-icon { color: #FFD166; }
.widget-accent-green .widget-icon { color: #06D6A0; } .widget-accent-blue .widget-icon { color: #118AB2; }
.widget h3 { margin-top: 0; margin-bottom: 10px; color: #073B4C; font-size: 1.15em; font-weight: 600; }
.widget p.widget-data { font-size: 2.4em; font-weight: 700; color: #073B4C; margin-bottom: 12px; margin-top: 10px; line-height: 1.1; }
.widget p.widget-data-small { font-size: 1em; color: #333; margin-bottom: 12px; }
.widget a.widget-link { text-decoration: none; color: #118AB2; font-weight: 600; font-size: 0.9em; margin-top: auto; display: inline-block; padding-top: 10px; transition: color 0.2s ease; }
.widget a.widget-link:hover { color: #06D6A0; text-decoration: underline; }

.quick-actions { margin-top: 35px; padding-top: 25px; border-top: 1px solid #E9EDF0; }
.quick-actions h3 { margin-top: 0; margin-bottom: 20px; color: #073B4C; text-align: left; font-size: 1.5em; font-weight: 600;  grid-column: span 3; /* 🔧 hace que el título ocupe toda la fila */
 } 
.quick-actions .quick-action-button {
    display: flex; align-items: center; justify-content: flex-start; 
    background-color: #FFFFFF; color: #073B4C; 
    border: 1px solid #d0d7de; 
    box-shadow: 0 2px 5px rgba(27,31,35,0.08);
    padding: 15px 20px; margin-bottom: 15px; 
    text-align: left; width: 100%; box-sizing: border-box;
    border-radius: 8px; font-weight: 500; font-size: 1.05em;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.quick-actions .quick-action-button:hover {
    background-color: #f7f9fc; 
    border-color: #118AB2; 
    color: #118AB2; 
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(27,31,35,0.12);
}
.quick-actions .button-icon { margin-right: 12px; font-size: 1.5em; color: #118AB2; line-height: 1; transition: color 0.2s ease; }
.quick-actions .quick-action-button:hover .button-icon { color: #06D6A0; }
@media (min-width: 768px) { 
    .quick-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
    .quick-actions .quick-action-button { width: auto; margin-bottom: 0; }
}

/* === Estilos para Página de Perfil, Tarjetas de Curso/Recompensa, etc. (Consistencia) === */
.profile-card, .course-card, .reward-card, .redeemed-reward-card, .course-article, 
.evaluation-form fieldset.question-block, .results-summary, 
.balance-summary-card, .permit-summary-card {
    background-color: #fff; 
    border: 1px solid #e9edf0; 
    border-radius: 10px; 
    padding: 20px 25px; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.07); 
    margin-bottom: 25px; 
}

.reward-image-container, .reward-image { max-width:200px; width:100px; align-content:center; margin:auto; }
.reward-card-body { text-align: center;
}
.reward-card-footer { text-align: center;
}

.course-card, .reward-card, .redeemed-reward-card { 
    display: flex; flex-direction: column; 
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.course-card:hover, .reward-card:hover, .redeemed-reward-card:hover {
    transform: translateY(-4px); 
    box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.profile-details dl, .balance-summary-card .details-grid, .permit-summary-card .details-grid { 
    display: grid; 
    grid-template-columns: 150px 1fr; /* Ajuste para etiquetas más cortas */
    gap: 8px 15px; 
    margin-bottom: 15px; 
    font-size: 1em; 
}
.profile-details dt, .balance-summary-card .details-grid dt, .permit-summary-card .details-grid dt { 
    font-weight: 500; 
    color: #333; 
    text-align: left; 
    padding-right: 10px; 
}
.profile-details dd, .balance-summary-card .details-grid dd, .permit-summary-card .details-grid dd { 
    margin-left: 0; 
    color: #073B4C; 
    font-weight: 400; 
    text-align: center;
    background-color: #f0f6ff;
    align-content: center;
    border-radius: 10px;
}
.balance-summary-card .details-grid dd strong, .permit-summary-card .details-grid dd strong { 
    font-weight: 600; 
    color: #06D6A0;
}
.balance-summary-card .available-balance-label, .permit-summary-card .available-balance-label { 
    font-size: 1.05em;
    color: #118AB2; 
    font-weight: 600; /* Hacer la etiqueta del saldo más prominente */
}
.balance-summary-card .available-balance-value strong, .permit-summary-card .available-balance-value strong {
    font-size: 1.2em;
}
.permit-summary-card { border-left: 5px solid #FFD166; }
.permit-summary-card h3 { margin-top: 0; margin-bottom: 20px; color: #073B4C; font-size: 1.2em; border-bottom: 1px solid #f0f0f0; padding-bottom: 10px; }
.permit-summary-card .details-grid hr.separator { grid-column: 1 / -1; border: none; border-top: 1px dashed #ccc; margin: 10px 0; }


/* === Estilos para Móviles (Ajustes Generales y Tablas a Tarjetas) === */
@media (max-width: 768px) {
    header h1 { font-size: 1.35em; } 
    .container { width: 95%; padding: 0 10px; } 
    main .container.main-page-container { padding: 15px; } 
    .page-header h2 { font-size: 1.5em; }
    .quick-actions h3 { font-size: 1.3em; grid-column: span 2; }
    
    .quick-actions { display: grid; /* asegúrate de que sigue siendo un grid */
    grid-template-columns: 1fr 1fr;
    gap: 10px; }

    /* Tablas a Tarjetas */
    .responsive-card-table thead { display: none; }
    .responsive-card-table, .responsive-card-table tbody, .responsive-card-table tr, .responsive-card-table td { display: block; width: 100% !important; box-sizing: border-box; }
    .responsive-card-table tr { margin-bottom: 20px; border: 1px solid #e9edf0; border-radius: 8px; padding: 15px; background-color: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.07); }
    .responsive-card-table tr:nth-of-type(even) { background-color: #fff; } 
    .responsive-card-table tr:last-of-type { border-bottom: 1px solid #e9edf0; } 
    .responsive-card-table td { text-align: right; padding-left: 40%; position: relative; border: none; padding-top: 10px; padding-bottom: 10px; min-height: 24px; }
    .responsive-card-table td:last-child { border-bottom: none; }
    .responsive-card-table td::before { content: attr(data-label); position: absolute; left: 10px; width: calc(40% - 15px); padding-right: 5px; font-weight: 600; text-align: left; color: #073B4C; font-size:0.9em; }
    .responsive-card-table td[data-label="Estado:"] .status-badge { float: right; } 
    .responsive-card-table td[data-label="Razón:"], 
    .responsive-card-table td[data-label="Notas Admin:"], 
    .responsive-card-table td[data-label="Notas (Empleado/Admin):"], 
    .responsive-card-table td[data-label="Sus Notas:"],
    .responsive-card-table td[data-label="Descripción:"] { text-align: left; padding-left: 10px; }
    .responsive-card-table td[data-label="Razón:"]::before, 
    .responsive-card-table td[data-label="Notas Admin:"]::before, 
    .responsive-card-table td[data-label="Notas (Empleado/Admin):"]::before, 
    .responsive-card-table td[data-label="Sus Notas:"]::before,
    .responsive-card-table td[data-label="Descripción:"]::before { position: static; display: block; width: 100%; margin-bottom: 5px; padding-right: 0; }
    .responsive-card-table .desktop-only, .responsive-card-table td.desktop-only::before { display: none !important; }

    .standard-form .form-row { flex-direction: column; gap: 0; }
    .standard-form .form-row .form-group { width: 100%; margin-bottom: 15px; }
    .standard-form .form-row .form-group:last-child { margin-bottom: 0; }
    .standard-form .form-row .form-group-inline-item { margin-bottom: 15px; padding-bottom: 0; align-items: center; }
    .standard-form .form-row .form-group-inline-item label { margin-top: 0; }

    .standard-form .form-actions, 
    .standard-form button[type="submit"],
    .standard-form a.button { 
        display: block; width: 100%; margin-left: 0; margin-right: 0; 
        margin-top: 20px; box-sizing: border-box; 
    }
    .standard-form .form-group + button[type="submit"], 
    .standard-form .form-group + a.button { margin-top: 0; }
    .standard-form button[type="submit"] + a.button,
    .standard-form a.button + button[type="submit"],
    .standard-form a.button + a.button { margin-top: 10px; }

    .course-content-container .page-header .button.small,
    .take-evaluation-container .page-header .button.small,
    .manage-question-options-container .page-header .button.small {
        margin-bottom: 10px; width: 100%; text-align: center;
    }
     .course-content-container .page-header h2,
    .take-evaluation-container .page-header h2,
    .manage-question-options-container .page-header h2 {
        text-align: center; width: 100%;
    }
}
/* Media query específica para pantallas muy pequeñas como 450px */
@media (max-width: 450px) {
    .container { padding: 0 8px; } 
    main .container.main-page-container { padding: 10px; }
    .dashboard-widgets { grid-template-columns: 1fr; gap: 15px; }
    .widget { padding: 15px; min-width: 0; }
    .widget h3 { font-size: 1em; } .widget p.widget-data { font-size: 2em; } .widget-icon { font-size: 2em; }
    .quick-actions { display: grid; /* asegúrate de que sigue siendo un grid */
    grid-template-columns: 1fr 1fr;
    gap: 10px; }
    
    .quick-actions .quick-action-button { padding: 10px 15px; font-size: 0.95em; }
    .quick-actions .button-icon { font-size: 1.2em; }
    .page-header h2 { font-size: 1.3em; }
    .standard-form { padding: 15px; }
    button, .button { padding: 10px 15px; font-size: 0.95em; }
    .button.small { padding: 5px 10px; font-size: 0.8em; }
    .actions-cell .button-icon { font-size: 1.1em; margin: 0 2px; }
    .styled-table th, .styled-table td { padding: 8px 10px; }
    .styled-table { min-width: 0; }
    .profile-details dl, .balance-summary-card .details-grid, .permit-summary-card .details-grid { grid-template-columns: 120px 1fr; }
}

/* === Estilos para el Menú de Navegación Inferior === */
.bottom-nav {
    display: none; /* Oculto por defecto, se mostrará solo para empleados */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
    border-top: 1px solid #e0e0e0; 
    z-index: 999; 
    padding: 5px 0; 
}

/* Mostrar solo para empleados (si el body tiene la clase employee-view) */
body.employee-view .bottom-nav { 
    display: flex;
    justify-content: space-around; 
    align-items: stretch; 
}

.bottom-nav-item {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    flex: 1; 
    padding: 8px 5px; 
    color: #555; 
    text-decoration: none;
    font-size: 0.75em; 
    line-height: 1.2;
    transition: color 0.2s ease, transform 0.1s ease;
    text-align: center;
    min-width: 60px; 
    border-radius: 6px; 
    margin: 0 2px; 
}

.bottom-nav-icon {
    font-size: 1.6em; 
    margin-bottom: 4px; 
    line-height: 1;
}

.bottom-nav-text {
    display: block; 
    white-space: nowrap; 
    overflow: hidden;
    text-overflow: ellipsis; 
    max-width: 100%;
}

.bottom-nav-item:hover {
    color: #118AB2; 
    background-color: #f0f8ff; 
}

.bottom-nav-item.active {
    color: #06D6A0; 
    background-color: #e6f7f2; 
}

/* Ajustar el padding inferior del contenido principal solo para empleados */
body.employee-view .main-content-area { 
    padding-bottom: 75px; /* Altura aproximada del bottom-nav + un poco de margen */
}

/* Menú Fijo inferior para Administrador*/
.bottom-nav-admin {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #ffffff; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1); 
    border-top: 1px solid #e0e0e0; 
    z-index: 999;
    padding: 5px 0;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
}

body.admin-view .main-content-area { 
    padding-bottom: 75px; /* Altura aproximada del bottom-nav + un poco de margen */

.bottom-nav-admin .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 5px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.75em;
    line-height: 1.2;
    text-align: center;
    border-radius: 6px;
    margin: 0 2px;
    transition: color 0.2s ease, background-color 0.1s ease;
}

.bottom-nav-admin .bottom-nav-icon {
    font-size: 1.6em;
    margin-bottom: 4px;
}

.bottom-nav-admin .bottom-nav-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.bottom-nav-admin .bottom-nav-item:hover {
    color: #000;
    background-color: #f0f8ff;
}

.bottom-nav-admin .bottom-nav-item.active {
    color: #06D6A0; 
    background-color: #e6f7f2;
}
