:root {
    --azul: #2682c5;
    --celeste: #a6d9ef;
    --oscuro: #0d181c;
    --sidebar-w: 240px;
}
* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}
body {
    background: #f0f4f8;
    margin: 0;
    display: flex;
    min-height: 100vh;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w);
    background: var(--oscuro);
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s;
}
.sidebar nav {
    flex: 1;
    overflow-y: auto;
}
.sidebar nav::-webkit-scrollbar {
    width: 6px;
}
.sidebar nav::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}
.sidebar nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}
.sidebar-brand {
    padding: 1.4rem 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.sidebar-brand span {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}
.sidebar-brand span b {
    color: var(--azul);
}
.sidebar-brand small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    display: block;
    margin-top: 0.1rem;
}
.nav-section {
    padding: 0.8rem 1rem 0.3rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 0.1rem 0;
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.sidebar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}
.sidebar-link.active {
    color: #fff;
    background: rgba(38, 130, 197, 0.2);
    border-left-color: var(--azul);
}
.sidebar-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}
.sidebar-footer {
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.user-pill {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--azul);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.user-pill > div:not(.user-avatar) {
    min-width: 0;
    flex: 1;
}
.user-name {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-role {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.4);
}

/* MAIN */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
}
.topbar {
    background: #fff;
    padding: 0.85rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e8edf3;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}
.page-content {
    padding: 1.5rem;
    flex: 1;
}

/* STAT CARDS */
.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.3rem 1.4rem;
    border: 1px solid #eaedf2;
    transition: all 0.2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--oscuro);
    line-height: 1;
}
.stat-label {
    font-size: 0.78rem;
    color: #888;
    font-weight: 500;
    margin-top: 0.2rem;
}
.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

/* 2.3 — KPI Delta Indicators */
.kpi-delta {
    font-size: 0.7rem;
    font-weight: 600;
    display: block;
    margin-top: 2px;
}

/* TABLE CARD */
.table-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #eaedf2;
    overflow: hidden;
}
.table-card-header {
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.table-card-header h6 {
    font-weight: 700;
    color: var(--oscuro);
    margin: 0;
    font-size: 0.95rem;
}
.table th {
    font-size: 0.75rem;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.7rem 1rem;
    white-space: nowrap;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
}
.table td {
    padding: 0.75rem 1rem;
    font-size: 0.88rem;
    color: #333;
    vertical-align: middle;
    border-bottom: 1px solid #f7f7f7;
}
.table tbody tr:hover {
    background: #f9fbfd;
}
.table tbody tr:last-child td {
    border-bottom: none;
}
.nuid-badge {
    background: var(--azul);
    color: #fff;
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
}
.status-badge {
    padding: 0.25rem 0.7rem;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
}
.status-pendiente {
    background: #fff3cd;
    color: #856404;
}
.status-pagada {
    background: #d1f5e0;
    color: #146c43;
}
.status-vencida {
    background: #fde8e8;
    color: #b02a37;
}
.status-suspendida {
    background: #e2e3e5;
    color: #41464b;
}
.status-por-facturar {
    background: #eaf5fc;
    color: var(--azul);
}

/* SEARCH & FILTER */
.search-input {
    border-radius: 10px;
    border: 1.5px solid #e0e8f0;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    width: 220px;
    transition: border 0.2s;
}
.search-input:focus {
    outline: none;
    border-color: var(--azul);
}
.btn-sm-azul {
    background: var(--azul);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-sm-azul:hover {
    background: #1a6aad;
    color: #fff;
}
.btn-sm-outline {
    border: 1.5px solid var(--azul);
    color: var(--azul);
    background: transparent;
    border-radius: 8px;
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-sm-outline:hover {
    background: var(--azul);
    color: #fff;
}

/* MODAL */
.modal-content {
    border-radius: 20px;
    border: none;
}
.modal-header {
    background: linear-gradient(135deg, var(--oscuro), #1a3d5c);
    border-radius: 20px 20px 0 0;
    padding: 1.2rem 1.5rem;
}
.modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}
.modal-header .btn-close {
    filter: invert(1);
}
.section-divider {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--azul);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0;
    border-bottom: 1px solid #eef2f7;
    margin-bottom: 0.8rem;
}
.cobro-row {
    background: #f9fafb;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.4rem;
}
.form-control-sm-v {
    border-radius: 8px;
    border: 1.5px solid #e0e8f0;
    padding: 0.4rem 0.7rem;
    font-size: 0.83rem;
}
.form-control-sm-v:focus {
    border-color: var(--azul);
    box-shadow: 0 0 0 2px rgba(38, 130, 197, 0.12);
    outline: none;
}

/* SORTABLE */
.sort-btn {
    background: none;
    border: none;
    color: #999;
    padding: 0 0.2rem;
    cursor: pointer;
    font-size: 0.8rem;
}
.sort-btn:hover {
    color: var(--azul);
}
th.sortable {
    cursor: pointer;
    user-select: none;
}
th.sortable:hover {
    color: var(--azul);
}

/* Paginación */
.page-link {
    color: var(--azul);
    border-color: #e0e8f0;
    font-size: 0.82rem;
}
.page-item.active .page-link {
    background: var(--azul);
    border-color: var(--azul);
}

/* Mes selector */
.mes-pill {
    background: #f0f4f8;
    border: 1.5px solid #dce5ef;
    border-radius: 10px;
    padding: 0.35rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}
.mes-pill:hover,
.mes-pill.active {
    background: var(--azul);
    color: #fff;
    border-color: var(--azul);
}

/* ═══════════ CAJA / PUNTO DE PAGO ═══════════ */
.caja-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    gap: 1.5rem;
}
.caja-input-wrapper {
    width: 100%;
    max-width: 680px;
    position: relative;
}
.caja-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    font-size: 1.35rem;
    font-weight: 600;
    border: 2.5px solid #dce5ef;
    border-radius: 18px;
    background: #fff;
    color: var(--oscuro);
    transition: all 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}
.caja-input:focus {
    outline: none;
    border-color: var(--azul);
    box-shadow:
        0 0 0 4px rgba(38, 130, 197, 0.15),
        0 8px 30px rgba(38, 130, 197, 0.1);
}
.caja-input::placeholder {
    color: #aab;
    font-weight: 500;
}
.caja-input-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-80%);
    font-size: 1.4rem;
    color: var(--azul);
}
.caja-hint {
    font-size: 0.8rem;
    color: #999;
    text-align: center;
    margin-top: 0.2rem;
}
.caja-hint i {
    color: var(--azul);
}

/* Tarjeta de cobro */
.caja-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 24px;
    border: 2px solid #eaedf2;
    padding: 2.2rem 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    animation: cajaSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cajaSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.caja-card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}
.caja-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--azul), #1a6aad);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    flex-shrink: 0;
}
.caja-card-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--oscuro);
}
.caja-card-nuid {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
}
.caja-card-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f7f7f7;
}
.caja-card-detail:last-of-type {
    border: none;
}
.caja-card-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 500;
}
.caja-card-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--oscuro);
}
.caja-total-row {
    background: linear-gradient(135deg, #f0f9ff, #eaf5fc);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.caja-total-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--azul);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.caja-total-value {
    font-size: 2.6rem;
    font-weight: 900;
    color: var(--oscuro);
    line-height: 1;
}
.caja-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Botón de pagar */
.btn-pagar {
    width: 100%;
    max-width: 560px;
    padding: 1.1rem;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    color: #fff;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.35);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    animation: cajaSlideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.btn-pagar:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(40, 167, 69, 0.45);
}
.btn-pagar:active {
    transform: translateY(0);
}
.btn-pagar:disabled {
    background: #ccc;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* Estado vacío de caja */
.caja-empty {
    text-align: center;
    color: #bbb;
    margin-top: 1rem;
}
.caja-empty i {
    font-size: 4rem;
    display: block;
    margin-bottom: 1rem;
    color: #ddd;
}
.caja-empty p {
    font-size: 1rem;
    font-weight: 500;
}

/* Caja loading */
.caja-loading {
    display: none;
    text-align: center;
    color: var(--azul);
    font-weight: 600;
    font-size: 0.95rem;
}
.caja-loading .spinner-border {
    width: 1.5rem;
    height: 1.5rem;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.show {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .caja-input {
        font-size: 1.1rem;
        padding: 1rem 1.2rem 1rem 3rem;
    }
    .caja-total-value {
        font-size: 2rem;
    }
}

/* ── TABLE ACTION BUTTONS ── */
.btn-action-table {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    cursor: pointer;
    margin-right: 0.35rem;
    text-decoration: none;
}
.btn-action-table:last-child {
    margin-right: 0;
}
.btn-action-table i {
    transition: transform 0.25s ease;
}
.btn-action-table:hover {
    transform: translateY(-2px) scale(1.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.btn-action-table:active {
    transform: translateY(0) scale(0.95);
}

.btn-action-table.btn-blue {
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}
.btn-action-table.btn-blue:hover {
    background: #2563eb;
    color: #fff;
}
.btn-action-table.btn-green {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
}
.btn-action-table.btn-green:hover {
    background: #16a34a;
    color: #fff;
}
.btn-action-table.btn-red {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
}
.btn-action-table.btn-red:hover {
    background: #dc2626;
    color: #fff;
}
.btn-action-table.btn-orange {
    background: rgba(234, 88, 12, 0.08);
    color: #ea580c;
}
.btn-action-table.btn-orange:hover {
    background: #ea580c;
    color: #fff;
}

.btn-action-table:hover i.bi-eye-fill,
.btn-action-table:hover i.bi-eye {
    animation: pulseEye 1s infinite alternate;
}
.btn-action-table:hover i.bi-trash-fill {
    animation: shakeTrash 0.3s ease-in-out;
}
.btn-action-table:hover i.bi-plus-circle-fill,
.btn-action-table:hover i.bi-plus-lg {
    transform: rotate(90deg);
}
.btn-action-table:hover i.bi-check-circle-fill,
.btn-action-table:hover i.bi-check-lg {
    transform: scale(1.15);
}

@keyframes pulseEye {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.15);
    }
}
@keyframes shakeTrash {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-8deg);
    }
    75% {
        transform: rotate(8deg);
    }
}

/* CLASES DE UTILIDAD PARA ELIMINAR ESTILOS EN LÍNEA DE DASHBOARD.HTML */

.sidebar-brand-logo {
    height: 28px;
    width: fit-content;
}

.btn-change-password-icon {
    font-size: 1rem;
}

.filtro-anio-select {
    background-color: #f1f5f9;
    font-weight: 600;
    width: auto;
}

/* Variaciones de colores para KPI Icons */
.stat-icon-blue {
    background: #eaf5fc;
    color: var(--azul);
}

.stat-icon-success {
    background: #d1f5e0;
    color: #146c43;
}

.stat-icon-warning {
    background: #fff3cd;
    color: #856404;
}

.stat-icon-danger {
    background: #fde8e8;
    color: #b02a37;
}

.stat-icon-primary-blue {
    background: #e2f0fd;
    color: #0d6efd;
}

/* Tasa de recaudo */
.text-recaudo-label {
    font-size: 0.85rem;
}

.text-recaudo-val {
    font-size: 0.95rem;
}

.progress-recaudo-container {
    height: 12px;
    border-radius: 8px;
    background: #e9ecef;
}

.progress-recaudo-bar {
    border-radius: 8px;
    background: linear-gradient(90deg, #2563eb, #06b6d4);
    transition: width 1s ease;
}

/* Alertas rápidas */
.stat-card-clickable {
    cursor: pointer;
}

.alerta-val-warning {
    font-size: 1.5rem;
    font-weight: 800;
    color: #856404;
}

.alerta-val-danger {
    font-size: 1.5rem;
    font-weight: 800;
    color: #b02a37;
}

.alerta-val-blue {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--azul);
}

.alerta-val-success {
    font-size: 1.5rem;
    font-weight: 800;
    color: #198754;
}

/* Selectores y inputs de filtros */
.filter-select-custom {
    width: 140px;
    border-radius: 10px;
    border: 1.5px solid #e0e8f0;
    font-size: 0.82rem;
}

.filter-select-custom-sm {
    width: 140px;
    border-radius: 8px;
    border: 1.5px solid #e0e8f0;
    font-size: 0.82rem;
}

.search-input-wide {
    width: 240px;
}

/* Canvases de gráficos */
.chart-canvas-250 {
    max-height: 250px;
}

.chart-canvas-200 {
    max-height: 200px;
}

.list-scroll-300 {
    max-height: 300px;
}

/* Estilos de botones de navegación semánticos en Sidebar */
.sidebar-btn-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 1.2rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    margin: 0.1rem 0;
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    width: 100%;
    text-align: left;
}

.sidebar-btn-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-btn-link.active {
    color: #fff;
    background: rgba(38, 130, 197, 0.2);
    border-left-color: var(--azul);
}

.sidebar-btn-link i {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* CLASES ADICIONALES PARA ELIMINAR ESTILOS EN LÍNEA RESTANTES */

.font-size-xs {
    font-size: 0.72rem !important;
}

.font-size-85 {
    font-size: 0.85rem !important;
}

.logo-qr-container {
    height: 100px;
}

.logo-qr-preview {
    max-height: 80px;
    object-fit: contain;
}

.metodo-pago-wrapper {
    max-width: 440px;
}

.caja-select-metodo {
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    border: 2px solid #e0e8f0;
}

.btn-pagar-icon {
    font-size: 1.5rem;
}

.caja-error-alert {
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
}

.font-size-sm-custom {
    font-size: 0.8rem !important;
}

.search-logs-container {
    max-width: 300px;
}

.col-width-250 {
    width: 250px;
}

.col-width-150 {
    width: 150px;
}

.preview-consumo-box {
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 12px;
    background: #d1f5e0;
    border-radius: 8px;
    margin-top: 4px;
}

.form-input-modal-p6 {
    padding: 6px 12px !important;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.form-input-modal-p8 {
    padding: 8px 12px !important;
    font-size: 0.85rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
}

.alert-rounded-10 {
    border-radius: 10px;
}

.progress-custom-h12 {
    height: 12px;
    border-radius: 8px;
}

.progress-bar-custom-r8 {
    border-radius: 8px;
}

.bg-var-azul {
    background-color: var(--azul) !important;
}

.width-140 {
    width: 140px;
}

.offcanvas-width-500 {
    width: 500px;
    max-width: 100vw;
}

.text-warning-dark {
    color: #856404 !important;
}

.btn-modal-cancel {
    border-radius: 8px;
    font-weight: 500;
}

/* ==========================================
   PDF EXPORT STYLING (FOR 1-PAGE LANDSCAPE)
   ========================================== */
body.pdf-printing {
    background: #f8fafc !important;
    display: block !important;
    min-height: auto !important;
    width: 1080px !important;
    overflow: visible !important;
}

body.pdf-printing .sidebar {
    display: none !important;
}

body.pdf-printing .main-content {
    margin-left: 0 !important;
    width: 1080px !important;
    display: block !important;
}

body.pdf-printing .topbar {
    display: none !important;
}

body.pdf-printing .page-content {
    padding: 0 !important;
    width: 1080px !important;
    display: block !important;
}

.pdf-export-mode {
    width: 1080px !important;
    background: #f8fafc !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

.pdf-export-mode .row {
    --bs-gutter-x: 12px !important;
    --bs-gutter-y: 12px !important;
}

.pdf-export-mode .table-card {
    padding: 10px 12px !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    border: 1.5px solid #e2e8f0 !important;
}

.pdf-export-mode .table-card-header {
    padding: 6px 4px !important;
    border-bottom: 1px solid #f1f5f9 !important;
    margin-bottom: 8px !important;
}

.pdf-export-mode .table-card-header h6 {
    font-size: 0.8rem !important;
    margin: 0 !important;
}

.pdf-export-mode h6 {
    font-size: 0.85rem !important;
}

/* Adjust canvas heights to fit in one page */
.pdf-export-mode .chart-canvas-250 {
    height: 150px !important;
    max-height: 150px !important;
}

.pdf-export-mode .chart-canvas-200 {
    height: 130px !important;
    max-height: 130px !important;
}

/* Adjust lists scroll height to fit in one page */
.pdf-export-mode .list-scroll-300 {
    max-height: 160px !important;
    overflow: hidden !important; /* Hide scrollbars in PDF */
}

/* Minimize spacing and paddings inside lists */
.pdf-export-mode .p-3 {
    padding: 4px !important;
}

.pdf-export-mode .mb-2 {
    margin-bottom: 6px !important;
}

.pdf-export-mode .pb-2 {
    padding-bottom: 6px !important;
}

/* Show dynamic PDF metadata */
.pdf-show-block {
    display: none !important;
}

.pdf-export-mode .pdf-show-block {
    display: block !important;
    font-size: 0.75rem !important;
    color: #64748b !important;
    margin-top: 2px !important;
}

/* ── Barra Flotante de Acciones en Lote ───────────────────────────────────── */
.bulk-action-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 16px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bulk-action-bar.d-none {
    display: none !important;
}

.bulk-action-bar:not(.d-none) {
    animation: slideUpFade 0.4s ease-out forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translate(-50%, 40px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.bulk-info {
    display: flex;
    align-items: center;
}

.bulk-actions button {
    font-weight: 500;
    transition: all 0.2s ease;
}

.bulk-actions button:hover {
    transform: translateY(-1px);
}

/* OVERLAY DE CARGA GLOBAL */
.global-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(13, 24, 28, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.2s ease;
}
.global-loader-box {
    background: #fff;
    padding: 2rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    animation: loaderBounce 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes loaderBounce {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* DROPDOWN ACTIONS STYLING */
.dropdown-toggle-no-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.dropdown-toggle-no-caret:hover, .dropdown-toggle-no-caret:focus {
    background-color: rgba(0, 0, 0, 0.05) !important;
    color: #2682c5 !important;
}
.dropdown-toggle-no-caret::after {
    display: none !important;
}

/* Prevent dropdown menu clipping in responsive tables */
.table-card .table-responsive {
    min-height: 240px !important;
}



