/* ============================================================
   La Salle Villavicencio — Unified Stylesheet (app.css)
   Extracted verbatim from all existing inline <style> blocks.
   DO NOT refactor, rename, or "improve" these styles.
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS Variables (:root)
   Unified from: index.php, login.php, footer.php,
   registrar_usuario.php, recuperar.php, restablecer.php,
   RecursosFisicos/Componentes/navbar.php,
   Financieros/Componentes/navbar.php,
   RecursosFisicos/gestion_hojas_vida.php,
   Financieros/financiero.php
   ------------------------------------------------------------ */
:root {
    --lasalle-blue-dark: #0b3c5d;
    --lasalle-blue-light: #1d5f8a;
    --lasalle-blue-ultra-light: #eef5f9;
    --lasalle-gold: #f39c12;
    --lasalle-gold-hover: #e67e22;
    --lasalle-gold-light: #fef5e7;
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
}

/* ------------------------------------------------------------
   2. Body & Base
   From: index.php, login.php, recuperar.php, restablecer.php,
   registrar_usuario.php, gestion_hojas_vida.php, financiero.php
   ------------------------------------------------------------ */
html, body {
    height: 100%;
    margin: 0;
}
html {
    display: flex;
    flex-direction: column;
}
body {
    flex: 1;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #dbeeff, #eef5f9);
    color: var(--text-dark);
}

.content-wrapper {
    flex: 1 0 auto;
}
.bg-lasalle-nav, .navbar-lasalle {
    flex-shrink: 0;
}
.bg-lasalle-footer {
    flex-shrink: 0;
}

/* Fix: dropdowns must appear above sticky elements */
.dropdown-menu, .nav-dropdown-menu { z-index: 1030 !important; }

/* ------------------------------------------------------------
   3. Login Page
   From: login.php, recuperar.php, restablecer.php
   ------------------------------------------------------------ */
.login-body {
    background: linear-gradient(
        135deg,
        rgba(11, 60, 93, 0.85) 0%,
        rgba(29, 95, 138, 0.85) 100%
    ),
    url('img/Fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    font-family: Arial, sans-serif;
}

.card-lasalle {
    border: none;
    border-radius: 12px;
    overflow: visible;
}

.card-header-lasalle {
    background-color: var(--lasalle-blue-dark);
    border-bottom: 3px solid var(--lasalle-gold);
    color: white;
    border-top-left-radius: 12px !important;
    border-top-right-radius: 12px !important;
}

.btn-lasalle {
    background-color: var(--lasalle-gold);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.btn-lasalle:hover {
    background-color: var(--lasalle-gold-hover);
    color: white;
    transform: translateY(-1px);
}

.form-control:focus {
    border-color: var(--lasalle-blue-light);
    box-shadow: 0 0 0 0.25rem rgba(29, 95, 138, 0.25);
}

.login-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* ------------------------------------------------------------
   4. Dashboard Header
   From: index.php lines 53-83
   ------------------------------------------------------------ */
.dashboard-header {
    background: linear-gradient(135deg, #082a42 0%, var(--lasalle-blue-light) 100%);
    border-bottom: 6px solid var(--lasalle-gold);
    padding: 45px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    color: white;
}

.header-title {
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 0 3px 8px rgba(0,0,0,0.6);
}

.header-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.95);
    font-weight: 600;
}

.dashboard-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

/* ------------------------------------------------------------
   5. Dashboard Cards
   From: index.php lines 85-117
   ------------------------------------------------------------ */
.card-modulo {
    border-radius: 16px;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255,255,255,0.8);
}

.card-modulo:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(11, 60, 93, 0.15);
}

.card-title {
    font-weight: 600;
    font-size: 1.15rem;
}

.card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.icon-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.icon-circle i {
    font-size: 2.5rem;
}

.icon-gold {
    background: var(--lasalle-gold-light);
    color: var(--lasalle-gold);
}

.icon-blue {
    background: #e3f2fd;
    color: var(--lasalle-blue-light);
}

.icon-green {
    background: #e8f8f5;
    color: #2ecc71;
}

.icon-purple {
    background: #f4ecf7;
    color: #9b59b6;
}

.icon-teal {
    background: #e0f7fa;
    color: #00838f;
}

.active-module {
    border-left: 5px solid var(--lasalle-gold);
    background: linear-gradient(to bottom, #ffffff, var(--lasalle-gold-light));
}

/* ------------------------------------------------------------
   6. Session Bar
   From: index.php lines 134-157
   ------------------------------------------------------------ */
.session-bar {
    background-color: #ffffff;
    border-left: 4px solid var(--lasalle-blue-light);
    transition: border-color 0.3s ease;
}

.btn-logout-premium {
    background-color: transparent;
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.btn-logout-premium:hover {
    background-color: #dc3545;
    color: #ffffff;
    border-color: #dc3545;
    box-shadow: 0 4px 10px rgba(220, 53, 69, 0.15);
}

/* ------------------------------------------------------------
   7. Navbar
   From: RecursosFisicos/Componentes/navbar.php,
   Financieros/Componentes/navbar.php
   ------------------------------------------------------------ */
.bg-lasalle-nav {
    background-color: var(--lasalle-blue-dark) !important;
    border-bottom: 4px solid var(--lasalle-gold);
    font-family: sans-serif;
}

.navbar-lasalle .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 13px;
    transition: color 0.3s ease;
}

.navbar-lasalle .nav-link:hover {
    color: var(--lasalle-gold) !important;
}

.navbar-lasalle .nav-link.active {
    color: var(--lasalle-gold) !important;
    font-weight: bold;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.user-dropdown-container .user-dropdown-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
    padding: 6px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.user-dropdown-container .user-dropdown-toggle:hover,
.user-dropdown-container .user-dropdown-toggle:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--lasalle-gold);
}

.user-dropdown-container .user-dropdown-toggle::after {
    margin-left: 8px;
    vertical-align: middle;
    color: var(--lasalle-gold);
}

.user-dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    margin-top: 8px !important;
    font-size: 13px;
    overflow: hidden;
    min-width: 190px;
}

.user-dropdown-item {
    padding: 8px 16px;
    color: #333333;
    transition: background 0.2s ease;
}

.user-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #000000;
}

.user-dropdown-item.text-danger:hover {
    background-color: #fff5f5 !important;
    color: #dc3545 !important;
}

/* Dropdown submenu (Financieros navbar) */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    border-radius: 8px;
    box-shadow: 4px 4px 12px rgba(0,0,0,0.15);
    display: none;
}

.dropdown-submenu:hover .dropdown-menu {
    display: block;
}

.dropdown-submenu > .dropdown-item::after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-left: 10px;
}

.dropdown-submenu:hover > .dropdown-item::after {
    border-left-color: var(--lasalle-gold);
}

/* Notification dropdown (Financieros navbar) */
.nav-notif-dropdown .dropdown-toggle::after {
    display: none !important;
}

.notif-menu-box {
    width: 290px;
    max-height: 380px;
    overflow-y: auto;
    padding: 0;
}

.notif-header {
    background-color: #f8f9fa;
    font-weight: bold;
    color: var(--lasalle-blue-dark);
    padding: 10px 14px;
    border-bottom: 1px solid #e9ecef;
    font-size: 13px;
}

.notif-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid #f1f3f5;
    transition: background 0.2s ease;
    text-decoration: none;
    color: #333333;
}

.notif-item:hover {
    background-color: #f4f6f8;
    color: #000000;
}

.notif-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(29, 95, 138, 0.1);
    color: var(--lasalle-blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Nav dropdown menu (Financieros formatos) */
.nav-dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    font-size: 12px;
    max-height: 440px;
}

/* ------------------------------------------------------------
   8. Footer
   From: footer.php
   ------------------------------------------------------------ */
.bg-lasalle-footer {
    background-color: var(--lasalle-blue-dark) !important;
    border-top: 4px solid var(--lasalle-gold);
    color: rgba(255, 255, 255, 0.85);
}

.footer-brand-gold {
    color: var(--lasalle-gold) !important;
    font-weight: bold;
    letter-spacing: 0.5px;
}

/* ------------------------------------------------------------
   9. Tables
   From: RecursosFisicos/gestion_hojas_vida.php,
   Financieros/financiero.php
   ------------------------------------------------------------ */
.card-header-lasalle {
    background-color: var(--lasalle-blue-dark);
    color: white;
    border-bottom: 3px solid var(--lasalle-gold);
}

.table-thead-lasalle {
    background-color: var(--lasalle-blue-dark) !important;
    color: white !important;
}

.table td, .table th {
    vertical-align: middle;
}

/* ------------------------------------------------------------
   10. Buttons
    From: index.php, gestion_hojas_vida.php, financiero.php,
    registrar_usuario.php
    ------------------------------------------------------------ */
.btn-lasalle {
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
}

.btn-lasalle-gold {
    background-color: var(--lasalle-gold);
    color: white;
    font-weight: bold;
    border: none;
    transition: all 0.3s ease;
}

.btn-lasalle-gold:hover {
    background-color: var(--lasalle-gold-hover);
    color: white;
    transform: translateY(-2px);
}

.btn-locked {
    background-color: #e2e8f0;
    color: #94a3b8;
}

.btn-lasalle-blue {
    background-color: var(--lasalle-blue-light);
    color: white;
    border: none;
}

.btn-lasalle-blue:hover {
    background-color: var(--lasalle-blue-dark);
    color: white;
}

/* ------------------------------------------------------------
   11. Forms
    From: registrar_usuario.php
    ------------------------------------------------------------ */
html, body {
    min-height: 100%;
}

body {
    font-family: Arial, sans-serif;
    font-size: 13px;
    display: flex;
    flex-direction: column;
}

/* ------------------------------------------------------------
   12. Responsive (Media Queries)
    Ordered ascending by breakpoint.
    ------------------------------------------------------------ */

/* Navbar responsive — from both component navbars */
@media (max-width: 991.98px) {
    .user-dropdown-container {
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        padding-top: 1rem;
        margin-top: 0.5rem;
        width: 100%;
    }
    .user-dropdown-container .user-dropdown-toggle {
        background: transparent;
        border: none;
        padding: 0;
        width: 100%;
    }
    .user-dropdown-menu {
        border-radius: 6px;
        box-shadow: none;
        width: 100%;
        background-color: #ffffff !important;
    }
    .user-dropdown-item {
        color: #333333 !important;
        padding: 10px 16px;
    }
    .user-dropdown-item:hover {
        background-color: #f8f9fa !important;
    }
    .nav-dropdown-menu, .notif-menu-box {
        border-radius: 4px;
        box-shadow: none;
        width: 100%;
        max-height: none;
    }
    .dropdown-submenu .dropdown-menu {
        position: relative;
        left: 0;
        box-shadow: none;
        background-color: #fcfcfc;
        padding-left: 15px;
    }
    .nav-notif-dropdown {
        margin-bottom: 10px;
    }
}

/* Table action buttons responsive */
@media (max-width: 575.98px) {
    .btn-responsive-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
        width: 100%;
    }
    .btn-responsive-group .btn {
        width: 100%;
        border-radius: 4px !important;
    }
}

/* Footer ultra-small screens */
@media (max-width: 350px) {
    .bg-lasalle-footer {
        font-size: 11px !important;
    }
    .badge-responsive {
        font-size: 10px !important;
        white-space: normal !important;
    }
}

/* ===== 13. Hoja de Vida ===== */
/* Extracted from RecursosFisicos/hoja_vida.php lines 58-83 */
body { font-family: Arial, sans-serif; font-size: 11px; color: #333; }
.form-container { background-color: #fff; padding: 20px; }
.bg-orange-dark { background-color: #e67e22 !important; color: white !important; font-weight: bold; text-align: center; font-size: 13px; }
.bg-orange-light { background-color: #f39c12 !important; color: white !important; font-weight: bold; text-align: center; font-size: 11px; }
.bg-label { background-color: #fdf2e9; font-weight: bold; width: 15%; min-width: 90px; }
.table-form { width: 100%; margin-bottom: 15px; border-collapse: collapse; }
.table-form th, .table-form td { border: 1px solid #f5b041; padding: 5px; vertical-align: middle; }
.side-header { font-weight: bold; text-align: center; background-color: #fff3e0; width: 4%; letter-spacing: 2px; }
.header-table { width: 100%; border: 2px solid #e67e22; margin-bottom: 20px; }
.header-table td { padding: 10px; border: 1px solid #e67e22; }
.logo-section { background-color: #0b3c5d; color: white; text-align: center; font-weight: bold; font-size: 14px; width: 25%; }
.title-section { background-color: #e67e22; color: white; text-align: center; font-weight: bold; font-size: 16px; }
.version-section { font-size: 9px; text-align: center; width: 15%; background-color: #e67e22; color: white; }

/* Estilo sutil para el select dentro de la tabla */
.select-verificacion { font-size: 10px; padding: 2px; height: auto; border-radius: 3px; min-width: 100px; }
.estado-pendiente { background-color: #fcf3cf; color: #b7950b; font-weight: bold; }
.estado-aprobado { background-color: #d4efdf; color: #1e8449; font-weight: bold; }

@media print {
    .d-print-none { display: none !important; }
    body { background-color: white; padding: 0; }
    .table-form th, .table-form td { border: 1px solid #e67e22 !important; }
    .select-verificacion { border: none !important; appearance: none; background: transparent !important; color: black !important; }
}

/* ===== 14. Financieros — Shared Styles ===== */
/* Centralized from 12 views. Views use original class names (no prefix). */
.card-header-dinamico { background-color: #0b3c5d !important; color: #fff !important; border-bottom: 4px solid var(--lasalle-gold); }
.form-container { background: #fff; border: 2px solid #000; padding: 15px; color: #000; }
.form-header-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; min-width: 500px; }
.form-header-table td { border: 1px solid #000; padding: 5px; vertical-align: middle; }
.grid-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; min-width: 600px; }
.grid-table td { border: 1px solid #000; padding: 6px; vertical-align: middle; background: #fff; }
.section-header-orange { background-color: #ff6600 !important; color: #fff !important; font-weight: bold; text-align: center; text-transform: uppercase; font-size: 13px; padding: 4px !important; border: 1px solid #000 !important; }
.lbl { background-color: #f2f2f2; font-weight: bold; font-size: 11px; text-transform: uppercase; }
.tr-selected { background-color: #fff3cd !important; border-left: 5px solid var(--lasalle-gold) !important; }
.check-box { border: 1px solid #000; display: inline-block; width: 16px; height: 16px; text-align: center; line-height: 14px; font-weight: bold; font-size: 11px; margin-right: 4px; background: #fff; }
.check-box.active { background-color: #000; color: #fff; }
.table-custom { width: 100%; border-collapse: collapse; margin-bottom: 15px; }
.table-custom th, .table-custom td { border: 1px solid #000 !important; padding: 6px; vertical-align: middle; }
.score-box { font-size: 24px; font-weight: bold; color: white; background-color: red; text-align: center; width: 80px; height: 50px; display: flex; align-items: center; justify-content: center; margin: auto; }
.signature-container { border: 2px dashed #6c757d; background-color: #fdfdfd; padding: 15px; border-radius: 6px; }
.signature-container.signed { border-color: #198754; background-color: #f4fff7; }
.signature-box { font-family: 'Courier New', monospace; font-size: 18px; font-style: italic; font-weight: bold; text-transform: uppercase; color: #6c757d; padding: 10px 0; min-height: 45px; border-bottom: 1px solid #333; }
.input-blank { border: none; border-bottom: 1px dotted #000; width: 100%; background: transparent; padding: 2px; }
.bg-red-format { background-color: #C0392B; color: white; }
.bg-orange-header { background-color: #ff6600; color: white; font-weight: bold; text-align: center; font-size: 14px; padding: 12px; }
.formato-container { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; width: 100%; max-width: 1000px; margin: 0 auto; box-shadow: 0 4px 6px -1px rgba(0,0,0,.05); }
.bg-lasalle { background-color: #0b3c5d !important; color: white; border-bottom: 4px solid var(--lasalle-gold); }
.tabla-formato { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.tabla-formato th, .tabla-formato td { border: 1px solid #e2e8f0; padding: 10px 12px; vertical-align: middle; }
.header-titulo { font-size: 18px; font-weight: 800; text-align: center; background: linear-gradient(135deg, #ff6600, #ff822d) !important; color: #fff !important; border-radius: 6px; }
.header-calidad-moderno { display: flex; width: 100%; border-bottom: 3px solid #ff6600; margin-bottom: 20px; }
.header-calidad-moderno .logo-section { background: #0b3c5d; color: white; padding: 18px 20px; width: 35%; text-align: center; }
.header-calidad-moderno .brand-title { font-size: 15px; font-weight: bold; line-height: 1.2; }
.header-calidad-moderno .brand-subtitle { font-size: 9px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.header-calidad-moderno .orange-section { background: #ff6600; color: white; padding: 12px 20px; width: 65%; display: flex; justify-content: space-between; align-items: center; }
.header-calidad-moderno .title-main { font-size: 18px; font-weight: bold; text-transform: uppercase; }
.notice-box { background-color: #fff3cd; border-left: 5px solid #ffc107; color: #856404; padding: 15px; border-radius: 6px; font-size: 12.5px; }
.card-menu-lateral { border-radius: 12px; border: none; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05); }

/* Responsive: stack format tables on mobile */
@media (max-width: 768px) {
    .form-header-table, .grid-table, .form-header-table tbody, .grid-table tbody { display: block !important; width: 100% !important; }
    .form-header-table tr, .grid-table tr { display: block !important; width: 100% !important; border-bottom: 2px solid #000 !important; }
    .form-header-table td, .grid-table td { display: block !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box !important; border: none !important; border-bottom: 1px dashed #bbb !important; padding: 8px 6px !important; }
    .form-header-table td:last-child, .grid-table td:last-child { border-bottom: none !important; }
    .score-box { width: 60px; height: 40px; font-size: 18px; }
    .bg-orange-header { font-size: 12px; padding: 6px; }
    .table-custom th, .table-custom td { padding: 4px; font-size: 11px; }
}

/* ============================================================
   16. PROFESSIONAL ENHANCEMENTS
   Added polish while preserving institutional identity.
   ============================================================ */

/* Smoother transitions everywhere */
a, button, .btn, input, select, textarea, .card, .list-group-item {
    transition: all 0.2s ease;
}

/* Elevated cards with subtle border */
.card {
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

/* Table enhancements */
.table-thead-lasalle {
    background: linear-gradient(180deg, #0b3c5d, #0d4a6e) !important;
    color: #fff !important;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.table-thead-lasalle th {
    border-color: rgba(255,255,255,0.1) !important;
    padding: 10px 8px !important;
}
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(11,60,93,0.02);
}

/* Form inputs */
.form-control:focus, .form-select:focus {
    border-color: #f39c12;
    box-shadow: 0 0 0 3px rgba(243,156,18,0.12);
}

/* Badge refinement */
.badge {
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 4px 8px;
}

/* Navbar polish */
.bg-lasalle-nav {
    background: linear-gradient(135deg, #0b3c5d 0%, #0d4a6e 50%, #0f5a85 100%) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Sidebar list items */
.list-group-item.active {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    border-color: #e67e22 !important;
}

/* Page heading subtlety */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: -0.3px;
}

/* Button refinement */
.btn {
    font-weight: 500;
    letter-spacing: 0.2px;
    border-radius: 6px;
}

/* Alert polish */
.alert {
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Footer subtlety */
.bg-lasalle-footer {
    background: linear-gradient(180deg, #0b3c5d, #092e47) !important;
    font-size: 11px;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; border-radius: 3px; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ============================================================
   17. LAYOUT ALIGNMENT & RESPONSIVE FIXES
   Corrección de descuadre visual del módulo de préstamos.
   No cambia lógica, solo garantiza un eje horizontal consistente.
   ============================================================ */

/* 1. Box-sizing global + prevención de overflow horizontal */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* 2. Contenedor principal centrado con ancho máximo consistente */
.container {
    width: 100%;
    max-width: 1540px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
}

/* 3. Card principal: ancho completo sin desborde */
.card {
    width: 100%;
    overflow: hidden;
}

/* 4. Padding horizontal consistente entre header y body del card */
.card-header,
.card-body,
.card-footer {
    padding-left: 28px;
    padding-right: 28px;
}

/* 5. Header del card en flex: título a la izquierda, acción a la derecha */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.card-header > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.card-header .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* 6. Pestañas/filtros: scroll horizontal propio, sin desbordar el body */
.tabs-container,
.btn-group {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
}

.btn-group .btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* 7. Tabla: ancho completo, sin márgenes laterales, sin desborde */
.table-container,
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

/* 8. Footer alineado al mismo sistema de ancho */
.bg-lasalle-footer {
    width: 100%;
}

/* 9. Responsive: tablet */
@media (max-width: 991.98px) {
    .card-header,
    .card-body,
    .card-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* 10. Responsive: móvil */
@media (max-width: 575.98px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .card-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .card-header .btn {
        width: 100%;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding-left: 14px;
        padding-right: 14px;
    }
}
