fix(ui): resolver superposicion en menu colapsado, reparar edicion de ciclo lectivo, aplicar paleta UniCABA y agregar control de modo demo en config global
This commit is contained in:
@@ -4,63 +4,65 @@
|
||||
*/
|
||||
|
||||
:root {
|
||||
/* --- Brand Primary (Magenta / Uva) --- */
|
||||
--brand-primary: #9E2D77;
|
||||
--brand-primary-rgb: 158, 45, 119;
|
||||
--brand-primary-shade: #832062;
|
||||
--brand-primary-tint: #B43E8E;
|
||||
/* --- Brand Primary (Magenta / Frambuesa Oficial UniCABA) --- */
|
||||
--brand-primary: #B43E8E;
|
||||
--brand-primary-rgb: 180, 62, 142;
|
||||
--brand-primary-shade: #9E2D77;
|
||||
--brand-primary-tint: #D63384;
|
||||
--brand-primary-contrast: #FFFFFF;
|
||||
|
||||
/* --- Accent Colors (Modo Claro) con Alto Contraste --- */
|
||||
--accent-purple: #581C87;
|
||||
--accent-purple-rgb: 88, 28, 135;
|
||||
--secondary-magenta: #701A40;
|
||||
--secondary-magenta-rgb: 112, 26, 64;
|
||||
/* --- Accent Colors (Modo Claro) UniCABA: Rosas y Púrpuras Cálidos --- */
|
||||
--accent-purple: #682CAD;
|
||||
--accent-purple-rgb: 104, 44, 173;
|
||||
--secondary-magenta: #9E2D77;
|
||||
--secondary-magenta-rgb: 158, 45, 119;
|
||||
--accent-pink-soft: #FDF2F8;
|
||||
--accent-pink-border: #FBCFE8;
|
||||
|
||||
/* --- Global Surface & Text (Modo Claro - Diseñado para Descanso Visual y Nitidez) --- */
|
||||
--app-bg: #EEF2F6;
|
||||
/* --- Global Surface & Text (Modo Claro - Rosas Suaves, Blanco Puro y Contraste Nitido) --- */
|
||||
--app-bg: #FAF5F8;
|
||||
--card-bg: #FFFFFF;
|
||||
--card-border: #D8E0E9;
|
||||
--card-hover-border: #9E2D77;
|
||||
--card-shadow: 0 2px 10px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03);
|
||||
--card-hover-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
|
||||
--card-border: rgba(180, 62, 142, 0.16);
|
||||
--card-hover-border: #B43E8E;
|
||||
--card-shadow: 0 4px 18px rgba(180, 62, 142, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
|
||||
--card-hover-shadow: 0 8px 24px rgba(180, 62, 142, 0.12);
|
||||
|
||||
--text-primary: #0F172A;
|
||||
--text-secondary: #334155;
|
||||
--text-muted: #475569;
|
||||
--text-primary: #1E293B;
|
||||
--text-secondary: #475569;
|
||||
--text-muted: #64748B;
|
||||
|
||||
--navbar-bg: linear-gradient(135deg, #9E2D77 0%, #7B2049 100%);
|
||||
--navbar-bg: linear-gradient(135deg, #B43E8E 0%, #8E2B6E 100%);
|
||||
--navbar-text: #FFFFFF;
|
||||
--navbar-border: transparent;
|
||||
--navbar-shadow: 0 4px 16px rgba(158, 45, 119, 0.22);
|
||||
--navbar-shadow: 0 4px 18px rgba(180, 62, 142, 0.25);
|
||||
|
||||
--input-bg: #FFFFFF;
|
||||
--input-border: #94A3B8;
|
||||
--input-text: #0F172A;
|
||||
--input-focus-border: #9E2D77;
|
||||
--input-focus-shadow: 0 0 0 0.2rem rgba(158, 45, 119, 0.2);
|
||||
--input-border: #CBD5E1;
|
||||
--input-text: #1E293B;
|
||||
--input-focus-border: #B43E8E;
|
||||
--input-focus-shadow: 0 0 0 0.2rem rgba(180, 62, 142, 0.22);
|
||||
|
||||
/* --- Distinctive Gradient --- */
|
||||
--gradient-primary: linear-gradient(135deg, #9E2D77 0%, #832062 100%);
|
||||
--gradient-primary-shadow: 0 6px 18px rgba(158, 45, 119, 0.25);
|
||||
--gradient-hero: linear-gradient(135deg, rgba(158, 45, 119, 0.06) 0%, rgba(88, 28, 135, 0.08) 100%);
|
||||
/* --- Distinctive Gradient UniCABA --- */
|
||||
--gradient-primary: linear-gradient(135deg, #B43E8E 0%, #9E2D77 100%);
|
||||
--gradient-primary-shadow: 0 6px 20px rgba(180, 62, 142, 0.28);
|
||||
--gradient-hero: linear-gradient(135deg, rgba(180, 62, 142, 0.08) 0%, rgba(104, 44, 173, 0.06) 100%);
|
||||
|
||||
/* --- Badges (Modo Claro) --- */
|
||||
--badge-primary-bg: #9E2D77;
|
||||
--badge-primary-bg: #B43E8E;
|
||||
--badge-primary-text: #FFFFFF;
|
||||
--badge-accent-bg: #581C87;
|
||||
--badge-accent-bg: #682CAD;
|
||||
--badge-accent-text: #FFFFFF;
|
||||
--badge-magenta-bg: #701A40;
|
||||
--badge-magenta-bg: #9E2D77;
|
||||
--badge-magenta-text: #FFFFFF;
|
||||
}
|
||||
|
||||
[data-bs-theme="light"] {
|
||||
--bs-body-bg: #EEF2F6;
|
||||
--bs-body-color: #0F172A;
|
||||
--bs-body-bg: #FAF5F8;
|
||||
--bs-body-color: #1E293B;
|
||||
--bs-secondary-color: #475569;
|
||||
--bs-tertiary-bg: #F1F5F9;
|
||||
--bs-border-color: #D8E0E9;
|
||||
--bs-border-color-translucent: rgba(15, 23, 42, 0.12);
|
||||
--bs-tertiary-bg: #FDF2F8;
|
||||
--bs-border-color: rgba(180, 62, 142, 0.18);
|
||||
--bs-border-color-translucent: rgba(180, 62, 142, 0.12);
|
||||
}
|
||||
|
||||
/* =======================================================
|
||||
|
||||
@@ -106,72 +106,6 @@
|
||||
<i class="bi bi-pencil"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Modal Editar Ciclo Lectivo -->
|
||||
<div class="modal fade text-start" id="modalEditTerm{{ term.id }}" tabindex="-1" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<form method="POST" action="/admin/academic_term_edit">
|
||||
<input type="hidden" name="id" value="{{ term.id }}">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title h6 fw-bold">
|
||||
<i class="bi bi-pencil-square text-primary me-2"></i>Editar Ciclo Lectivo
|
||||
</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="row g-2 mb-3">
|
||||
<div class="col-md-5">
|
||||
<label class="form-label small fw-semibold">Código *</label>
|
||||
<input type="text" name="code" class="form-control form-control-sm font-monospace" value="{{ term.code }}" required>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<label class="form-label small fw-semibold">Año Calendario *</label>
|
||||
<input type="number" name="year" class="form-control form-control-sm" value="{{ term.year }}" min="2020" max="2050" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label small fw-semibold">Nombre Descriptivo *</label>
|
||||
<input type="text" name="name" class="form-control form-control-sm" value="{{ term.name }}" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label small fw-semibold">Tipo de Período</label>
|
||||
<select name="period_type" class="form-select form-select-sm">
|
||||
<option value="Primer Cuatrimestre" {% if term.period_type == 'Primer Cuatrimestre' %}selected{% endif %}>Primer Cuatrimestre</option>
|
||||
<option value="Segundo Cuatrimestre" {% if term.period_type == 'Segundo Cuatrimestre' %}selected{% endif %}>Segundo Cuatrimestre</option>
|
||||
<option value="Anual" {% if term.period_type == 'Anual' %}selected{% endif %}>Anual</option>
|
||||
<option value="Curso de Verano" {% if term.period_type == 'Curso de Verano' %}selected{% endif %}>Curso de Verano</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row g-2 mb-3">
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small fw-semibold">Fecha Inicio</label>
|
||||
<input type="date" name="start_date" class="form-control form-control-sm" value="{{ term.start_date if term.start_date else '' }}">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small fw-semibold">Fecha Fin</label>
|
||||
<input type="date" name="end_date" class="form-control form-control-sm" value="{{ term.end_date if term.end_date else '' }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-check mb-2">
|
||||
<input class="form-check-input" type="checkbox" name="is_current" id="isCurr{{ term.id }}" {% if term.is_current %}checked{% endif %}>
|
||||
<label class="form-check-label small fw-semibold text-primary" for="isCurr{{ term.id }}">
|
||||
Establecer como Ciclo Lectivo Activo Actual
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="is_active" id="isAct{{ term.id }}" {% if term.is_active %}checked{% endif %}>
|
||||
<label class="form-check-label small" for="isAct{{ term.id }}">Habilitado en el Sistema</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-bs-dismiss="modal">Cancelar</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary">Guardar Cambios</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
@@ -189,11 +123,81 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Modales Editar Ciclo Lectivo (Fuera de la tabla para evitar conflictos de stacking context y cierre prematuro) -->
|
||||
{% if can_edit %}
|
||||
{% for term in terms %}
|
||||
<div class="modal fade text-start" id="modalEditTerm{{ term.id }}" tabindex="-1" aria-labelledby="modalEditTermTitle{{ term.id }}" aria-hidden="true" data-bs-backdrop="static">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content shadow-lg border-0">
|
||||
<form method="POST" action="{{ url_for('admin.academic_term_edit', id=term.id) }}">
|
||||
<input type="hidden" name="id" value="{{ term.id }}">
|
||||
<div class="modal-header border-bottom">
|
||||
<h5 class="modal-title h6 fw-bold" id="modalEditTermTitle{{ term.id }}">
|
||||
<i class="bi bi-pencil-square text-primary me-2"></i>Editar Ciclo Lectivo: {{ term.name }}
|
||||
</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body p-4">
|
||||
<div class="row g-2 mb-3">
|
||||
<div class="col-md-5">
|
||||
<label class="form-label small fw-semibold">Código *</label>
|
||||
<input type="text" name="code" class="form-control form-control-sm font-monospace" value="{{ term.code }}" required>
|
||||
</div>
|
||||
<div class="col-md-7">
|
||||
<label class="form-label small fw-semibold">Año Calendario *</label>
|
||||
<input type="number" name="year" class="form-control form-control-sm" value="{{ term.year }}" min="2020" max="2050" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label small fw-semibold">Nombre Descriptivo *</label>
|
||||
<input type="text" name="name" class="form-control form-control-sm" value="{{ term.name }}" required>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label class="form-label small fw-semibold">Tipo de Período</label>
|
||||
<select name="period_type" class="form-select form-select-sm">
|
||||
<option value="Primer Cuatrimestre" {% if term.period_type == 'Primer Cuatrimestre' %}selected{% endif %}>Primer Cuatrimestre</option>
|
||||
<option value="Segundo Cuatrimestre" {% if term.period_type == 'Segundo Cuatrimestre' %}selected{% endif %}>Segundo Cuatrimestre</option>
|
||||
<option value="Anual" {% if term.period_type == 'Anual' %}selected{% endif %}>Anual</option>
|
||||
<option value="Curso de Verano" {% if term.period_type == 'Curso de Verano' %}selected{% endif %}>Curso de Verano</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="row g-2 mb-3">
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small fw-semibold">Fecha Inicio</label>
|
||||
<input type="date" name="start_date" class="form-control form-control-sm" value="{{ term.start_date if term.start_date else '' }}">
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<label class="form-label small fw-semibold">Fecha Fin</label>
|
||||
<input type="date" name="end_date" class="form-control form-control-sm" value="{{ term.end_date if term.end_date else '' }}">
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-check mb-2">
|
||||
<input class="form-check-input" type="checkbox" name="is_current" id="isCurr{{ term.id }}" {% if term.is_current %}checked{% endif %}>
|
||||
<label class="form-check-label small fw-semibold text-primary" for="isCurr{{ term.id }}">
|
||||
Establecer como Ciclo Lectivo Activo Actual
|
||||
</label>
|
||||
</div>
|
||||
<div class="form-check">
|
||||
<input class="form-check-input" type="checkbox" name="is_active" id="isAct{{ term.id }}" {% if term.is_active %}checked{% endif %}>
|
||||
<label class="form-check-label small" for="isAct{{ term.id }}">Habilitado en el Sistema</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer border-top">
|
||||
<button type="button" class="btn btn-sm btn-secondary" data-bs-dismiss="modal">Cancelar</button>
|
||||
<button type="submit" class="btn btn-sm btn-primary">Guardar Cambios</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
|
||||
<!-- Modal Nuevo Ciclo Lectivo -->
|
||||
{% if can_edit %}
|
||||
<div class="modal fade" id="modalAddTerm" tabindex="-1" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal fade" id="modalAddTerm" tabindex="-1" aria-labelledby="modalAddTermTitle" aria-hidden="true" data-bs-backdrop="static">
|
||||
<div class="modal-dialog modal-dialog-centered">
|
||||
<div class="modal-content shadow-lg border-0">
|
||||
<form method="POST" action="/admin/academic_term_add">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title h6 fw-bold">
|
||||
|
||||
@@ -226,6 +226,54 @@
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<!-- Control de Modo Demo y Cuentas de Prueba Iniciales -->
|
||||
<div class="card border border-warning-subtle shadow-sm p-3 rounded-3 mb-3">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
<h6 class="fw-bold mb-0 d-flex align-items-center text-body">
|
||||
<i class="bi bi-shield-lock-fill text-warning me-2"></i>Acceso Rápido Demo & Cuentas de Prueba
|
||||
</h6>
|
||||
<span id="demoModeBadge" class="badge {% if demo_access_enabled %}bg-warning-subtle text-warning border border-warning-subtle{% else %}bg-secondary-subtle text-secondary border border-secondary-subtle{% endif %}">
|
||||
{% if demo_access_enabled %}Activo en Login{% else %}Deshabilitado{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<p class="small text-muted mb-2" style="font-size: 0.82rem;">
|
||||
Permite ocultar el bloque de <em>"Acceso Rápido Demo (1 Clic)"</em> de la pantalla de inicio de sesión y deshabilitar las 3 cuentas de usuario de prueba iniciales para pasar a producción.
|
||||
</p>
|
||||
<div class="p-2 rounded bg-body-tertiary border mb-3 small">
|
||||
<div class="d-flex justify-content-between align-items-center mb-1">
|
||||
<span><i class="bi bi-building-gear me-1 text-warning"></i><strong>Bedelía:</strong> <code>bedelia@edu-space.com</code></span>
|
||||
<span id="badgeBedelia" class="badge {% if demo_accounts_active %}bg-success-subtle text-success{% else %}bg-danger-subtle text-danger{% endif %}">
|
||||
{% if demo_accounts_active %}Habilitado{% else %}Desactivado{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between align-items-center mb-1">
|
||||
<span><i class="bi bi-person-video3 me-1 text-info"></i><strong>Docente:</strong> <code>docente@edu-space.com</code></span>
|
||||
<span id="badgeDocente" class="badge {% if demo_accounts_active %}bg-success-subtle text-success{% else %}bg-danger-subtle text-danger{% endif %}">
|
||||
{% if demo_accounts_active %}Habilitado{% else %}Desactivado{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
<div class="d-flex justify-content-between align-items-center">
|
||||
<span><i class="bi bi-mortarboard me-1 text-success"></i><strong>Alumno:</strong> <code>alumno@edu-space.com</code></span>
|
||||
<span id="badgeAlumno" class="badge {% if demo_accounts_active %}bg-success-subtle text-success{% else %}bg-danger-subtle text-danger{% endif %}">
|
||||
{% if demo_accounts_active %}Habilitado{% else %}Desactivado{% endif %}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<button type="button" class="btn btn-sm {% if demo_access_enabled or demo_accounts_active %}btn-outline-danger{% else %}btn-outline-success{% endif %}" id="btnToggleDemoMode" onclick="toggleDemoMode()">
|
||||
<i class="bi {% if demo_access_enabled or demo_accounts_active %}bi-shield-slash{% else %}bi-shield-check{% endif %} me-1"></i>
|
||||
<span id="btnToggleDemoText">
|
||||
{% if demo_access_enabled or demo_accounts_active %}
|
||||
Deshabilitar Acceso Demo y Cuentas Default
|
||||
{% else %}
|
||||
Reactivar Acceso Demo y Cuentas Default
|
||||
{% endif %}
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="col-lg-6">
|
||||
@@ -556,6 +604,60 @@ async function saveAuthProviders(e) {
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------
|
||||
// Alternar Modo Demo y Cuentas de Prueba Default
|
||||
// -------------------------------------------------------------
|
||||
async function toggleDemoMode() {
|
||||
const btn = document.getElementById('btnToggleDemoMode');
|
||||
const btnText = document.getElementById('btnToggleDemoText');
|
||||
const badge = document.getElementById('demoModeBadge');
|
||||
btn.disabled = true;
|
||||
const isCurrentlyActive = btn.classList.contains('btn-outline-danger');
|
||||
const targetEnable = !isCurrentlyActive;
|
||||
|
||||
try {
|
||||
const res = await fetch('/admin/settings/demo-mode', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
'X-Requested-With': 'XMLHttpRequest'
|
||||
},
|
||||
body: JSON.stringify({ enabled: targetEnable })
|
||||
});
|
||||
const data = await res.json();
|
||||
if (res.ok) {
|
||||
showAlert(data.message, targetEnable ? 'info' : 'success');
|
||||
if (targetEnable) {
|
||||
btn.className = 'btn btn-sm btn-outline-danger';
|
||||
btn.querySelector('i').className = 'bi bi-shield-slash me-1';
|
||||
btnText.textContent = 'Deshabilitar Acceso Demo y Cuentas Default';
|
||||
badge.className = 'badge bg-warning-subtle text-warning border border-warning-subtle';
|
||||
badge.textContent = 'Activo en Login';
|
||||
['badgeBedelia', 'badgeDocente', 'badgeAlumno'].forEach(id => {
|
||||
const el = document.getElementById(id);
|
||||
if (el) { el.className = 'badge bg-success-subtle text-success'; el.textContent = 'Habilitado'; }
|
||||
});
|
||||
} else {
|
||||
btn.className = 'btn btn-sm btn-outline-success';
|
||||
btn.querySelector('i').className = 'bi bi-shield-check me-1';
|
||||
btnText.textContent = 'Reactivar Acceso Demo y Cuentas Default';
|
||||
badge.className = 'badge bg-secondary-subtle text-secondary border border-secondary-subtle';
|
||||
badge.textContent = 'Deshabilitado';
|
||||
['badgeBedelia', 'badgeDocente', 'badgeAlumno'].forEach(id => {
|
||||
const el = document.getElementById(id);
|
||||
if (el) { el.className = 'badge bg-danger-subtle text-danger'; el.textContent = 'Desactivado'; }
|
||||
});
|
||||
}
|
||||
} else {
|
||||
showAlert(data.message || 'Error al cambiar modo demo', 'danger');
|
||||
}
|
||||
} catch (err) {
|
||||
showAlert('Error de conexión: ' + err.message, 'danger');
|
||||
} finally {
|
||||
btn.disabled = false;
|
||||
}
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------
|
||||
// Guardar Google OAuth 2.0
|
||||
// -------------------------------------------------------------
|
||||
|
||||
@@ -190,6 +190,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if demo_access_enabled is not defined or demo_access_enabled %}
|
||||
<!-- Accesos Rápidos Institucionales (Demo) -->
|
||||
<div class="p-3 bg-body-tertiary rounded-3 border mt-3">
|
||||
<div class="d-flex justify-content-between align-items-center mb-2">
|
||||
@@ -215,6 +216,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="text-center mt-3">
|
||||
<small class="text-muted d-inline-flex align-items-center" style="font-size: 0.75rem;">
|
||||
|
||||
+221
-149
@@ -38,10 +38,10 @@
|
||||
transition: background-color 0.25s ease, color 0.25s ease;
|
||||
}
|
||||
|
||||
/* --- MODO CLARO ([data-bs-theme="light"]) - ALTO CONTRASTE & CONFORT VISUAL --- */
|
||||
/* --- MODO CLARO ([data-bs-theme="light"]) - PALETA OFICIAL UNICABA: ROSAS, MAGENTA Y BLANCO --- */
|
||||
[data-bs-theme="light"] body {
|
||||
background-color: #EEF2F6 !important;
|
||||
color: #0F172A !important;
|
||||
background-color: #FAF5F8 !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
.navbar-logo,
|
||||
[data-bs-theme="light"] .navbar-logo,
|
||||
@@ -52,26 +52,26 @@
|
||||
/* Sidebar en Modo Claro */
|
||||
[data-bs-theme="light"] .sidebar {
|
||||
background-color: #FFFFFF !important;
|
||||
border-right: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 2px 0 12px rgba(15, 23, 42, 0.04) !important;
|
||||
border-right: 1px solid rgba(180, 62, 142, 0.16) !important;
|
||||
box-shadow: 2px 0 14px rgba(180, 62, 142, 0.05) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-header {
|
||||
background-color: #FFFFFF !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
border-bottom: 1px solid rgba(180, 62, 142, 0.12) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-header .brand-text {
|
||||
color: #0F172A !important;
|
||||
color: #1E293B !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-toggle-btn {
|
||||
background-color: #F1F5F9 !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
color: #1E293B !important;
|
||||
background-color: rgba(180, 62, 142, 0.08) !important;
|
||||
border: 1px solid rgba(180, 62, 142, 0.25) !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-toggle-btn:hover {
|
||||
background-color: rgba(158, 45, 119, 0.1) !important;
|
||||
border-color: #9E2D77 !important;
|
||||
color: #9E2D77 !important;
|
||||
background-color: #B43E8E !important;
|
||||
border-color: #B43E8E !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-nav .nav-link {
|
||||
color: #1E293B !important;
|
||||
@@ -79,40 +79,29 @@
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-nav .nav-link:hover,
|
||||
[data-bs-theme="light"] .sidebar-nav .nav-link[aria-expanded="true"] {
|
||||
background-color: rgba(158, 45, 119, 0.1) !important;
|
||||
color: #9E2D77 !important;
|
||||
background-color: rgba(180, 62, 142, 0.1) !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-submenu .nav-link {
|
||||
color: #334155 !important;
|
||||
color: #475569 !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-submenu .nav-link:hover {
|
||||
background-color: rgba(158, 45, 119, 0.08) !important;
|
||||
color: #9E2D77 !important;
|
||||
background-color: rgba(180, 62, 142, 0.08) !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar-footer {
|
||||
background-color: #FFFFFF !important;
|
||||
border-top: 1px solid #E2E8F0 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar.collapsed .nav-item:hover > .collapse,
|
||||
[data-bs-theme="light"] .sidebar.collapsed .nav-item > .collapse.show,
|
||||
[data-bs-theme="light"] .sidebar.collapsed .nav-item.show-flyout > .collapse {
|
||||
background-color: #FFFFFF !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .sidebar.collapsed .flyout-header {
|
||||
background-color: #F8FAFC !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
border-top: 1px solid rgba(180, 62, 142, 0.12) !important;
|
||||
}
|
||||
|
||||
/* Navbar & Dropdowns */
|
||||
[data-bs-theme="light"] .glass-navbar {
|
||||
background: rgba(255, 255, 255, 0.95) !important;
|
||||
background: rgba(255, 255, 255, 0.96) !important;
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
|
||||
border-bottom: 1px solid rgba(180, 62, 142, 0.16) !important;
|
||||
box-shadow: 0 4px 18px rgba(180, 62, 142, 0.06) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link {
|
||||
color: #1E293B !important;
|
||||
@@ -120,105 +109,105 @@
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link:hover,
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link.active {
|
||||
color: #9E2D77 !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dropdown-menu {
|
||||
background-color: #FFFFFF !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12) !important;
|
||||
border: 1px solid rgba(180, 62, 142, 0.2) !important;
|
||||
box-shadow: 0 12px 32px rgba(180, 62, 142, 0.12) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dropdown-item {
|
||||
color: #1E293B !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
[data-bs-theme="light"] .dropdown-item:hover {
|
||||
background-color: #F1F5F9 !important;
|
||||
color: #9E2D77 !important;
|
||||
background-color: #FDF2F8 !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dropdown-divider {
|
||||
border-color: #E2E8F0 !important;
|
||||
border-color: rgba(180, 62, 142, 0.12) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dropdown-header {
|
||||
color: #475569 !important;
|
||||
color: #64748B !important;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Cards & Contenedores con Definición y Relieve */
|
||||
/* Cards & Contenedores UniCABA (Blanco Puro con acentos Rosas/Magenta) */
|
||||
[data-bs-theme="light"] .glass-card,
|
||||
[data-bs-theme="light"] .card {
|
||||
background: #FFFFFF !important;
|
||||
color: #0F172A !important;
|
||||
border: 1px solid #D8E0E9 !important;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
|
||||
color: #1E293B !important;
|
||||
border: 1px solid rgba(180, 62, 142, 0.16) !important;
|
||||
box-shadow: 0 4px 18px rgba(180, 62, 142, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .card-header {
|
||||
background-color: #F8FAFC !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
color: #0F172A !important;
|
||||
background-color: #FFF5F9 !important;
|
||||
border-bottom: 1px solid rgba(180, 62, 142, 0.14) !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .card-footer {
|
||||
background-color: #F8FAFC !important;
|
||||
border-top: 1px solid #E2E8F0 !important;
|
||||
background-color: #FFF5F9 !important;
|
||||
border-top: 1px solid rgba(180, 62, 142, 0.14) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dashboard-role-banner {
|
||||
background: #FFFFFF !important;
|
||||
border: 1px solid #D8E0E9 !important;
|
||||
border-left: 5px solid #9E2D77 !important;
|
||||
box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
|
||||
background: linear-gradient(135deg, #FFFFFF 0%, #FFF5F9 100%) !important;
|
||||
border: 1px solid rgba(180, 62, 142, 0.2) !important;
|
||||
border-left: 6px solid #B43E8E !important;
|
||||
box-shadow: 0 4px 18px rgba(180, 62, 142, 0.08) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .dashboard-stat-card:hover {
|
||||
border-color: #9E2D77 !important;
|
||||
box-shadow: 0 6px 20px rgba(158, 45, 119, 0.15) !important;
|
||||
border-color: #B43E8E !important;
|
||||
box-shadow: 0 8px 24px rgba(180, 62, 142, 0.16) !important;
|
||||
}
|
||||
|
||||
/* Tablas con Alto Contraste */
|
||||
/* Tablas con Alto Contraste y Encabezados UniCABA */
|
||||
[data-bs-theme="light"] .table {
|
||||
--bs-table-color: #0F172A;
|
||||
--bs-table-color: #1E293B;
|
||||
--bs-table-bg: transparent;
|
||||
border-color: #E2E8F0 !important;
|
||||
border-color: rgba(180, 62, 142, 0.12) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .table thead th {
|
||||
background-color: #F1F5F9 !important;
|
||||
color: #0F172A !important;
|
||||
background-color: #FFF5F9 !important;
|
||||
color: #1E293B !important;
|
||||
font-weight: 700 !important;
|
||||
border-bottom: 2px solid #CBD5E1 !important;
|
||||
border-bottom: 2px solid rgba(180, 62, 142, 0.25) !important;
|
||||
font-size: 0.82rem;
|
||||
letter-spacing: 0.03em;
|
||||
}
|
||||
[data-bs-theme="light"] .table tbody td {
|
||||
color: #1E293B !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
border-bottom: 1px solid rgba(180, 62, 142, 0.1) !important;
|
||||
vertical-align: middle;
|
||||
}
|
||||
[data-bs-theme="light"] .table tbody tr:hover td {
|
||||
background-color: #F8FAFC !important;
|
||||
background-color: rgba(180, 62, 142, 0.04) !important;
|
||||
}
|
||||
|
||||
/* Formularios, Inputs y Selects */
|
||||
[data-bs-theme="light"] .form-label {
|
||||
color: #0F172A !important;
|
||||
color: #1E293B !important;
|
||||
font-weight: 600 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .form-control,
|
||||
[data-bs-theme="light"] .form-select {
|
||||
background-color: #FFFFFF !important;
|
||||
border: 1px solid #94A3B8 !important;
|
||||
color: #0F172A !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
color: #1E293B !important;
|
||||
font-weight: 500;
|
||||
}
|
||||
[data-bs-theme="light"] .form-control:focus,
|
||||
[data-bs-theme="light"] .form-select:focus {
|
||||
border-color: #9E2D77 !important;
|
||||
box-shadow: 0 0 0 0.2rem rgba(158, 45, 119, 0.2) !important;
|
||||
border-color: #B43E8E !important;
|
||||
box-shadow: 0 0 0 0.2rem rgba(180, 62, 142, 0.22) !important;
|
||||
background-color: #FFFFFF !important;
|
||||
color: #0F172A !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .form-control::placeholder {
|
||||
color: #64748B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .input-group-text {
|
||||
background-color: #F1F5F9 !important;
|
||||
border: 1px solid #94A3B8 !important;
|
||||
background-color: #FFF5F9 !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
color: #334155 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .form-text {
|
||||
@@ -227,24 +216,24 @@
|
||||
|
||||
/* Jerarquía Tipográfica y Contraste de Texto */
|
||||
[data-bs-theme="light"] .bg-body-tertiary {
|
||||
background-color: #F1F5F9 !important;
|
||||
background-color: #FFF5F9 !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-body {
|
||||
color: #0F172A !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-muted {
|
||||
color: #475569 !important;
|
||||
color: #64748B !important;
|
||||
}
|
||||
[data-bs-theme="light"] h1, [data-bs-theme="light"] h2,
|
||||
[data-bs-theme="light"] h3, [data-bs-theme="light"] h4,
|
||||
[data-bs-theme="light"] h5, [data-bs-theme="light"] h6 {
|
||||
color: #0F172A !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
|
||||
/* Colores Semánticos de Alto Contraste en Modo Claro */
|
||||
/* Colores Semánticos UniCABA */
|
||||
[data-bs-theme="light"] .text-primary {
|
||||
color: #9E2D77 !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-warning {
|
||||
color: #B45309 !important;
|
||||
@@ -259,14 +248,14 @@
|
||||
color: #B91C1C !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-secondary {
|
||||
color: #334155 !important;
|
||||
color: #475569 !important;
|
||||
}
|
||||
|
||||
/* Badges de Estado con Bordes Nítidos y Excelente Contraste */
|
||||
/* Badges de Estado Rosas y Magentas UniCABA */
|
||||
[data-bs-theme="light"] .badge.bg-primary-subtle {
|
||||
background-color: #FCE7F3 !important;
|
||||
color: #831843 !important;
|
||||
border: 1px solid #F472B6 !important;
|
||||
background-color: #FDF2F8 !important;
|
||||
color: #9D174D !important;
|
||||
border: 1px solid #FBCFE8 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .badge.bg-success-subtle {
|
||||
background-color: #DCFCE7 !important;
|
||||
@@ -289,15 +278,15 @@
|
||||
border: 1px solid #FCA5A5 !important;
|
||||
}
|
||||
[data-bs-theme="light"] .badge.bg-secondary-subtle {
|
||||
background-color: #F1F5F9 !important;
|
||||
background-color: #FFF5F9 !important;
|
||||
color: #1E293B !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
border: 1px solid rgba(180, 62, 142, 0.18) !important;
|
||||
}
|
||||
|
||||
/* Fondos con opacidad suave para KPIs */
|
||||
[data-bs-theme="light"] .bg-primary.bg-opacity-10 {
|
||||
background-color: rgba(158, 45, 119, 0.12) !important;
|
||||
color: #9E2D77 !important;
|
||||
background-color: rgba(180, 62, 142, 0.12) !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="light"] .bg-success.bg-opacity-10 {
|
||||
background-color: rgba(21, 128, 61, 0.12) !important;
|
||||
@@ -312,33 +301,44 @@
|
||||
color: #B45309 !important;
|
||||
}
|
||||
|
||||
/* Botones de Contorno en Modo Claro */
|
||||
/* Botones en Modo Claro */
|
||||
[data-bs-theme="light"] .btn-primary {
|
||||
background: linear-gradient(135deg, #B43E8E 0%, #9E2D77 100%) !important;
|
||||
border: none !important;
|
||||
color: #FFFFFF !important;
|
||||
box-shadow: 0 4px 14px rgba(180, 62, 142, 0.35) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .btn-primary:hover {
|
||||
background: linear-gradient(135deg, #9E2D77 0%, #832062 100%) !important;
|
||||
box-shadow: 0 6px 18px rgba(180, 62, 142, 0.45) !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
[data-bs-theme="light"] .btn-outline-secondary {
|
||||
border-color: #94A3B8 !important;
|
||||
border-color: #CBD5E1 !important;
|
||||
color: #1E293B !important;
|
||||
background-color: #FFFFFF !important;
|
||||
}
|
||||
[data-bs-theme="light"] .btn-outline-secondary:hover {
|
||||
background-color: #F1F5F9 !important;
|
||||
border-color: #64748B !important;
|
||||
color: #0F172A !important;
|
||||
background-color: #FFF5F9 !important;
|
||||
border-color: #B43E8E !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="light"] .btn-outline-primary {
|
||||
color: #9E2D77 !important;
|
||||
border-color: #9E2D77 !important;
|
||||
color: #B43E8E !important;
|
||||
border-color: #B43E8E !important;
|
||||
background-color: #FFFFFF !important;
|
||||
}
|
||||
[data-bs-theme="light"] .btn-outline-primary:hover {
|
||||
background-color: #9E2D77 !important;
|
||||
border-color: #832062 !important;
|
||||
background: linear-gradient(135deg, #B43E8E 0%, #9E2D77 100%) !important;
|
||||
border-color: #9E2D77 !important;
|
||||
color: #FFFFFF !important;
|
||||
}
|
||||
[data-bs-theme="light"] .role-view-selector {
|
||||
background-color: #E2E8F0 !important;
|
||||
border: 1px solid #CBD5E1 !important;
|
||||
background-color: #FFF5F9 !important;
|
||||
border: 1px solid rgba(180, 62, 142, 0.2) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .role-view-selector .btn-outline-secondary {
|
||||
color: #334155 !important;
|
||||
color: #475569 !important;
|
||||
background-color: transparent !important;
|
||||
}
|
||||
|
||||
@@ -348,17 +348,17 @@
|
||||
[data-bs-theme="light"] .border-bottom,
|
||||
[data-bs-theme="light"] .border-start,
|
||||
[data-bs-theme="light"] .border-end {
|
||||
border-color: #CBD5E1 !important;
|
||||
border-color: rgba(180, 62, 142, 0.16) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .border-secondary-subtle {
|
||||
border-color: #CBD5E1 !important;
|
||||
border-color: rgba(180, 62, 142, 0.16) !important;
|
||||
}
|
||||
|
||||
/* Botón de Alternancia de Tema */
|
||||
[data-bs-theme="light"] .theme-toggle-btn {
|
||||
background: rgba(15, 23, 42, 0.08);
|
||||
color: #0F172A;
|
||||
border: 1px solid #CBD5E1;
|
||||
background: rgba(180, 62, 142, 0.08);
|
||||
color: #B43E8E;
|
||||
border: 1px solid rgba(180, 62, 142, 0.25);
|
||||
border-radius: 50%;
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
@@ -369,7 +369,7 @@
|
||||
transition: all 0.2s ease;
|
||||
}
|
||||
[data-bs-theme="light"] .theme-toggle-btn:hover {
|
||||
background: rgba(15, 23, 42, 0.15);
|
||||
background: rgba(180, 62, 142, 0.16);
|
||||
transform: scale(1.05);
|
||||
}
|
||||
|
||||
@@ -527,7 +527,7 @@
|
||||
|
||||
/* Sidebar Colapsado (Compacto, ultra limpio para pantallas chicas) */
|
||||
.sidebar.collapsed {
|
||||
width: 68px;
|
||||
width: 68px !important;
|
||||
overflow: visible !important;
|
||||
}
|
||||
.sidebar.collapsed .brand-link {
|
||||
@@ -547,17 +547,49 @@
|
||||
.sidebar.collapsed .sidebar-body {
|
||||
overflow: visible !important;
|
||||
}
|
||||
.sidebar.collapsed .nav-item {
|
||||
position: relative;
|
||||
.sidebar.collapsed .sidebar-nav {
|
||||
padding: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.sidebar.collapsed .nav-link {
|
||||
.sidebar.collapsed .sidebar-nav .nav-item {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
.sidebar.collapsed .sidebar-nav .nav-link {
|
||||
width: 44px !important;
|
||||
height: 44px !important;
|
||||
padding: 0 !important;
|
||||
display: inline-flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: center !important;
|
||||
padding: 0.55rem 0 !important;
|
||||
position: relative;
|
||||
border-radius: 12px !important;
|
||||
margin: 0 auto !important;
|
||||
color: #475569 !important;
|
||||
}
|
||||
.sidebar.collapsed .nav-link i {
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .sidebar-nav .nav-link {
|
||||
color: #CBD5E1 !important;
|
||||
}
|
||||
.sidebar.collapsed .sidebar-nav .nav-link:hover,
|
||||
.sidebar.collapsed .sidebar-nav .nav-link[aria-expanded="true"],
|
||||
.sidebar.collapsed .sidebar-nav .nav-item.show-flyout > .nav-link {
|
||||
background-color: rgba(180, 62, 142, 0.12) !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .sidebar-nav .nav-link:hover,
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .sidebar-nav .nav-link[aria-expanded="true"],
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .sidebar-nav .nav-item.show-flyout > .nav-link {
|
||||
background-color: rgba(255, 138, 182, 0.16) !important;
|
||||
color: #FF8AB6 !important;
|
||||
}
|
||||
.sidebar.collapsed .sidebar-nav .nav-link i {
|
||||
margin-right: 0 !important;
|
||||
font-size: 1.25rem !important;
|
||||
min-width: unset !important;
|
||||
}
|
||||
.sidebar.collapsed .sidebar-footer {
|
||||
padding: 0.5rem !important;
|
||||
@@ -570,33 +602,39 @@
|
||||
margin-bottom: 0.5rem !important;
|
||||
}
|
||||
|
||||
/* Submenús flotantes (Flyout) cuando el sidebar está contraído */
|
||||
.sidebar.collapsed .collapse {
|
||||
display: none;
|
||||
/* Ocultar cualquier animación o flujo vertical de Bootstrap dentro de los 68px */
|
||||
.sidebar.collapsed .collapse,
|
||||
.sidebar.collapsed .collapsing,
|
||||
.sidebar.collapsed .sidebar-submenu {
|
||||
display: none !important;
|
||||
height: auto !important;
|
||||
position: static !important;
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
/* Submenús flotantes (Flyout) cuando el sidebar está contraído:
|
||||
SÓLO se muestran para el ítem con :hover directo o con clase .show-flyout activa */
|
||||
.sidebar.collapsed .nav-item:hover > .collapse,
|
||||
.sidebar.collapsed .nav-item > .collapse.show,
|
||||
.sidebar.collapsed .nav-item.show-flyout > .collapse {
|
||||
display: block !important;
|
||||
position: absolute;
|
||||
left: 100%;
|
||||
top: 0;
|
||||
margin-left: 6px;
|
||||
min-width: 220px;
|
||||
background: var(--bs-body-bg);
|
||||
border: 1px solid rgba(0, 0, 0, 0.12);
|
||||
border-radius: 12px;
|
||||
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
|
||||
z-index: 1070;
|
||||
padding: 0.5rem 0;
|
||||
animation: flyoutSlideIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
|
||||
position: absolute !important;
|
||||
left: 100% !important;
|
||||
top: 0 !important;
|
||||
margin-left: 10px !important;
|
||||
min-width: 230px !important;
|
||||
background: #FFFFFF !important;
|
||||
border: 1px solid rgba(180, 62, 142, 0.22) !important;
|
||||
border-radius: 12px !important;
|
||||
box-shadow: 0 12px 32px rgba(180, 62, 142, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08) !important;
|
||||
z-index: 1090 !important;
|
||||
padding: 0.5rem 0 !important;
|
||||
animation: flyoutSlideIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) !important;
|
||||
}
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .nav-item:hover > .collapse,
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .nav-item > .collapse.show,
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .nav-item.show-flyout > .collapse {
|
||||
background: #1e293b;
|
||||
border-color: #334155;
|
||||
box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
|
||||
background: #18202F !important;
|
||||
border-color: rgba(255, 138, 182, 0.25) !important;
|
||||
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6) !important;
|
||||
}
|
||||
@keyframes flyoutSlideIn {
|
||||
from { opacity: 0; transform: translateX(-6px); }
|
||||
@@ -609,39 +647,47 @@
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.05em;
|
||||
padding: 0.35rem 1rem 0.45rem;
|
||||
border-bottom: 1px solid rgba(0, 0, 0, 0.08);
|
||||
color: #B43E8E !important;
|
||||
border-bottom: 1px solid rgba(180, 62, 142, 0.12);
|
||||
margin-bottom: 0.35rem;
|
||||
}
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .flyout-header {
|
||||
color: #FF8AB6 !important;
|
||||
border-bottom-color: rgba(255, 255, 255, 0.08);
|
||||
}
|
||||
.sidebar.collapsed .nav-item:hover .sidebar-submenu,
|
||||
.sidebar.collapsed .nav-item > .collapse.show .sidebar-submenu,
|
||||
.sidebar.collapsed .nav-item.show-flyout .sidebar-submenu {
|
||||
display: block !important;
|
||||
padding-left: 0 !important;
|
||||
padding: 0.25rem 0.5rem !important;
|
||||
margin: 0 !important;
|
||||
list-style: none;
|
||||
list-style: none !important;
|
||||
}
|
||||
.sidebar.collapsed .nav-item:hover .sidebar-submenu .nav-link,
|
||||
.sidebar.collapsed .nav-item > .collapse.show .sidebar-submenu .nav-link,
|
||||
.sidebar.collapsed .nav-item.show-flyout .sidebar-submenu .nav-link {
|
||||
padding: 0.5rem 1rem !important;
|
||||
padding: 0.5rem 0.85rem !important;
|
||||
font-size: 0.85rem;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
display: flex !important;
|
||||
align-items: center !important;
|
||||
justify-content: flex-start !important;
|
||||
width: 100% !important;
|
||||
height: auto !important;
|
||||
border-radius: 8px !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .nav-item:hover .sidebar-submenu .nav-link,
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .nav-item.show-flyout .sidebar-submenu .nav-link {
|
||||
color: #F8FAFC !important;
|
||||
}
|
||||
.sidebar.collapsed .nav-item:hover .sidebar-submenu .nav-link:hover,
|
||||
.sidebar.collapsed .nav-item > .collapse.show .sidebar-submenu .nav-link:hover,
|
||||
.sidebar.collapsed .nav-item.show-flyout .sidebar-submenu .nav-link:hover {
|
||||
background-color: rgba(180, 62, 142, 0.08);
|
||||
background-color: rgba(180, 62, 142, 0.1) !important;
|
||||
color: #B43E8E !important;
|
||||
}
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .nav-item:hover .sidebar-submenu .nav-link:hover,
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .nav-item > .collapse.show .sidebar-submenu .nav-link:hover,
|
||||
[data-bs-theme="dark"] .sidebar.collapsed .nav-item.show-flyout .sidebar-submenu .nav-link:hover {
|
||||
background-color: rgba(255, 138, 182, 0.1);
|
||||
background-color: rgba(255, 138, 182, 0.15) !important;
|
||||
color: #FF8AB6 !important;
|
||||
}
|
||||
|
||||
@@ -1069,11 +1115,26 @@
|
||||
toggleBtn.setAttribute("aria-label", isCollapsed ? "Expandir menú" : "Colapsar menú");
|
||||
}
|
||||
|
||||
function closeAllCollapses() {
|
||||
document.querySelectorAll('#sidebarNav .collapse.show').forEach(function(el) {
|
||||
el.classList.remove('show');
|
||||
const trigger = document.querySelector(`[data-bs-target="#${el.id}"]`);
|
||||
if (trigger) {
|
||||
trigger.setAttribute('aria-expanded', 'false');
|
||||
trigger.classList.add('collapsed');
|
||||
}
|
||||
});
|
||||
document.querySelectorAll('#sidebarNav > .nav-item.show-flyout').forEach(function(item) {
|
||||
item.classList.remove('show-flyout');
|
||||
});
|
||||
}
|
||||
|
||||
// Restore state from localStorage (desktop only)
|
||||
if (window.innerWidth >= 992) {
|
||||
const isCollapsed = localStorage.getItem("sidebarCollapsed") === "true";
|
||||
if (isCollapsed) {
|
||||
sidebar.classList.add("collapsed");
|
||||
closeAllCollapses();
|
||||
}
|
||||
}
|
||||
updateToggleIcon();
|
||||
@@ -1081,23 +1142,25 @@
|
||||
if (toggleBtn) {
|
||||
toggleBtn.addEventListener("click", function() {
|
||||
sidebar.classList.toggle("collapsed");
|
||||
localStorage.setItem("sidebarCollapsed", sidebar.classList.contains("collapsed"));
|
||||
const isNowCollapsed = sidebar.classList.contains("collapsed");
|
||||
localStorage.setItem("sidebarCollapsed", isNowCollapsed);
|
||||
updateToggleIcon();
|
||||
// Limpiar flyouts abiertos al alternar modo
|
||||
document.querySelectorAll('.nav-item.show-flyout').forEach(function(item) {
|
||||
item.classList.remove('show-flyout');
|
||||
});
|
||||
if (isNowCollapsed) {
|
||||
closeAllCollapses();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Manejo de clicks en submenús cuando el sidebar está colapsado (pantallas táctiles o click explícito)
|
||||
// Manejo de clicks e interacciones en submenús cuando el sidebar está colapsado
|
||||
document.querySelectorAll('#sidebarNav > .nav-item').forEach(function(item) {
|
||||
const trigger = item.querySelector('[data-bs-toggle="collapse"]');
|
||||
if (trigger) {
|
||||
// Usar fase de captura (true) para interceptar ANTES de que Bootstrap dispare .collapsing
|
||||
trigger.addEventListener('click', function(e) {
|
||||
if (sidebar.classList.contains('collapsed')) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
e.stopImmediatePropagation();
|
||||
const isAlreadyOpen = item.classList.contains('show-flyout');
|
||||
document.querySelectorAll('#sidebarNav > .nav-item.show-flyout').forEach(function(other) {
|
||||
other.classList.remove('show-flyout');
|
||||
@@ -1106,8 +1169,17 @@
|
||||
item.classList.add('show-flyout');
|
||||
}
|
||||
}
|
||||
});
|
||||
}, true);
|
||||
}
|
||||
|
||||
// Al hacer hover, limpiar cualquier flyout fijo anterior
|
||||
item.addEventListener('mouseenter', function() {
|
||||
if (sidebar.classList.contains('collapsed')) {
|
||||
document.querySelectorAll('#sidebarNav > .nav-item.show-flyout').forEach(function(other) {
|
||||
if (other !== item) other.classList.remove('show-flyout');
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Cerrar flyouts flotantes al hacer click fuera del sidebar
|
||||
|
||||
@@ -43,69 +43,69 @@
|
||||
padding-bottom: 0.35rem;
|
||||
}
|
||||
|
||||
/* --- MODO CLARO ([data-bs-theme="light"]) - ALTO CONTRASTE & CONFORT VISUAL --- */
|
||||
/* --- MODO CLARO ([data-bs-theme="light"]) - PALETA UNICABA (ROSA, MAGENTA, BLANCO) --- */
|
||||
[data-bs-theme="light"] body {
|
||||
background-color: #EEF2F6 !important;
|
||||
color: #0F172A !important;
|
||||
background-color: #FAF5F8 !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar {
|
||||
background: rgba(255, 255, 255, 0.95) !important;
|
||||
background: rgba(255, 255, 255, 0.96) !important;
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
border-bottom: 1px solid #CBD5E1 !important;
|
||||
box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
|
||||
border-bottom: 1px solid rgba(180, 62, 142, 0.16) !important;
|
||||
box-shadow: 0 4px 16px rgba(180, 62, 142, 0.05) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .navbar-brand span {
|
||||
background: linear-gradient(90deg, #9E2D77, #581C87);
|
||||
background: linear-gradient(90deg, #B43E8E, #682CAD);
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link {
|
||||
color: #1E293B !important;
|
||||
color: #334155 !important;
|
||||
font-weight: 600;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link:hover,
|
||||
[data-bs-theme="light"] .glass-navbar .nav-link.active {
|
||||
color: #9E2D77 !important;
|
||||
background: rgba(158, 45, 119, 0.08);
|
||||
color: #B43E8E !important;
|
||||
background: rgba(180, 62, 142, 0.08);
|
||||
border-radius: 7px;
|
||||
}
|
||||
[data-bs-theme="light"] .glass-card,
|
||||
[data-bs-theme="light"] .card {
|
||||
background: #FFFFFF !important;
|
||||
color: #0F172A !important;
|
||||
border: 1px solid #D8E0E9 !important;
|
||||
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
|
||||
color: #1E293B !important;
|
||||
border: 1px solid rgba(180, 62, 142, 0.16) !important;
|
||||
box-shadow: 0 2px 10px rgba(180, 62, 142, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .card-header {
|
||||
background-color: #F8FAFC !important;
|
||||
border-bottom: 1px solid #E2E8F0 !important;
|
||||
color: #0F172A !important;
|
||||
background-color: #FDF9FB !important;
|
||||
border-bottom: 1px solid rgba(180, 62, 142, 0.1) !important;
|
||||
color: #1E293B !important;
|
||||
}
|
||||
[data-bs-theme="light"] .table {
|
||||
--bs-table-color: #0F172A;
|
||||
border-color: #E2E8F0 !important;
|
||||
--bs-table-color: #1E293B;
|
||||
border-color: rgba(180, 62, 142, 0.1) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .table thead th {
|
||||
background-color: #F1F5F9 !important;
|
||||
color: #0F172A !important;
|
||||
background-color: #F8EEF4 !important;
|
||||
color: #1E293B !important;
|
||||
font-weight: 700 !important;
|
||||
border-bottom: 2px solid #CBD5E1 !important;
|
||||
border-bottom: 2px solid rgba(180, 62, 142, 0.2) !important;
|
||||
}
|
||||
[data-bs-theme="light"] .text-muted {
|
||||
color: #475569 !important;
|
||||
color: #64748B !important;
|
||||
}
|
||||
/* Toggle button - modo claro */
|
||||
[data-bs-theme="light"] .navbar-toggle-custom {
|
||||
color: #1E293B;
|
||||
border-color: #CBD5E1;
|
||||
background-color: #F1F5F9;
|
||||
color: #334155;
|
||||
border-color: rgba(180, 62, 142, 0.25);
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
[data-bs-theme="light"] .navbar-toggle-custom:hover {
|
||||
background: rgba(158, 45, 119, 0.1);
|
||||
border-color: #9E2D77;
|
||||
color: #9E2D77;
|
||||
background: rgba(180, 62, 142, 0.1);
|
||||
border-color: #B43E8E;
|
||||
color: #B43E8E;
|
||||
}
|
||||
|
||||
/* --- MODO OSCURO ([data-bs-theme="dark"]) --- */
|
||||
|
||||
Reference in New Issue
Block a user