/* ========================================
   FLUJO DE CAJA - ESTILOS
   ======================================== */

.flujo-caja-container {
    padding: 1.5rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Header */
.header-flujo {
    background: linear-gradient(135deg, #2d2d2d 0%, #3d3d3d 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.1);
}

.header-flujo h1 {
    color: #d4af37;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-flujo h1 i {
    font-size: 2.2rem;
}

.header-flujo p {
    color: #9ca3af;
    margin: 0.5rem 0 0 0;
    font-size: 0.95rem;
}

.btn-estadisticas {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 0.65rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-estadisticas:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

/* Filtros */
.card-filtros {
    background: #2d2d2d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #3d3d3d;
}

/* Filtros modernos */
.card-filtros-modern {
    background: linear-gradient(135deg, #2d2d2d 0%, #323232 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #3d3d3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.filtros-titulo {
    color: #f3f4f6;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #3d3d3d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    user-select: none;
}

.filtros-titulo:hover {
    color: #d4af37;
}

.filtros-titulo i {
    color: #d4af37;
    font-size: 1rem;
}

.filtros-titulo i:last-child {
    transition: transform 0.3s ease;
}

.card-filtros-modern .collapse {
    padding-top: 1rem;
}

.filtros-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    align-items: end;
}

.filtros-grid-simple {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.75rem;
    align-items: end;
}

.filtro-item {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filtro-label {
    color: #d4af37;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.filtro-label i {
    font-size: 0.85rem;
}

.filtro-input {
    background: #1a1a1a;
    border: 1px solid #3d3d3d;
    color: #f3f4f6;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.filtro-input:focus {
    background: #1f1f1f;
    border-color: #d4af37;
    color: #f3f4f6;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

.filtro-item-btn {
    display: flex;
    align-items: flex-end;
}

.btn-filtrar-modern {
    background: linear-gradient(135deg, #d4af37, #b8942c);
    color: #1a1a1a;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.25);
}

.btn-filtrar-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.btn-filtrar-modern i {
    font-size: 1rem;
}

/* Mensaje de scroll */
.scroll-hint {
    background: rgba(212, 175, 55, 0.1);
    border: 1px dashed #d4af37;
    border-radius: 8px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #d4af37;
    font-size: 0.8rem;
    font-weight: 600;
    animation: pulse-hint 2s ease-in-out infinite;
}

.scroll-hint i {
    font-size: 1rem;
}

@keyframes pulse-hint {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* Sección de estadísticas */
.estadisticas-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #323232 100%);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #3d3d3d;
}

.estadisticas-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #3d3d3d;
}

.estadisticas-header i {
    font-size: 2rem;
    color: #d4af37;
}

.estadisticas-header h3 {
    color: #f3f4f6;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.estadisticas-header p {
    color: #9ca3af;
    font-size: 0.75rem;
    margin: 0;
    line-height: 1.2;
}

.form-label-custom {
    color: #f3f4f6;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control-custom,
.form-select {
    background: #1f1f1f;
    border: 1px solid #3d3d3d;
    color: #f3f4f6;
    border-radius: 8px;
    padding: 0.6rem;
}

.form-control-custom:focus,
.form-select:focus {
    background: #1f1f1f;
    border-color: #d4af37;
    color: #f3f4f6;
    box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

/* Cards de resumen */
.card-resumen {
    background: linear-gradient(135deg, #2d2d2d 0%, #353535 100%);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    border: 1px solid #3d3d3d;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.card-resumen:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.resumen-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.card-resumen.ingreso .resumen-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.card-resumen.interes .resumen-icon {
    background: linear-gradient(135deg, #d4af37, #b8942c);
    color: #1a1a1a;
}

.card-resumen.sebas .resumen-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.card-resumen.frank .resumen-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.resumen-info {
    flex: 1;
}

.resumen-label {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.resumen-value {
    color: #f3f4f6;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Tabla */
.card-tabla {
    background: #2d2d2d;
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid #3d3d3d;
}

.card-header-custom {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
}

.card-header-custom i {
    color: #d4af37;
    margin-right: 0.5rem;
}

.table {
    margin: 0;
    color: #f3f4f6;
}

.table thead {
    background: #1f1f1f;
}

.table thead th {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid #3d3d3d;
    vertical-align: middle;
}

.table tbody tr {
    transition: background-color 0.2s;
}

.table tbody tr:hover {
    background-color: rgba(212, 175, 55, 0.05);
}

.fecha-badge {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.35rem 0.7rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
}

.cliente-nombre-table {
    color: #f3f4f6;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.badge-tipo {
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
}

@media (max-width: 767px) {
    .badge-tipo {
        padding: 0.25rem 0.5rem;
        font-size: 0.65rem;
    }
}

.badge-tipo.pago {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-tipo.renovacion {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

/* Botón volver */
.btn-volver-estadisticas {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #3d3d3d, #2d2d2d);
    color: #f3f4f6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #4d4d4d;
    transition: all 0.3s ease;
}

.btn-volver-estadisticas:hover {
    background: linear-gradient(135deg, #4d4d4d, #3d3d3d);
    color: #d4af37;
    border-color: #d4af37;
    transform: translateX(-3px);
    text-decoration: none;
}

.btn-volver-estadisticas i {
    font-size: 1rem;
}

/* Sección de totales históricos */
.totales-historicos-section {
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 100%);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid #3d3d3d;
}

.totales-header {
    color: #d4af37;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3d3d3d;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.totales-header i {
    font-size: 1.3rem;
    color: #d4af37;
}

/* Cards de totales (estadísticas) */
.card-total {
    background: linear-gradient(135deg, #2d2d2d 0%, #353535 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #3d3d3d;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    height: 100%;
}

.card-total:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.total-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.total-info {
    flex: 1;
}

.total-label {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.total-value {
    color: #f3f4f6;
    font-size: 2rem;
    font-weight: 700;
}

.mes-badge {
    background: rgba(212, 175, 55, 0.1);
    color: #d4af37;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

/* Paginación personalizada - Desktop */
.pagination-custom {
    background: #2d2d2d;
    padding: 1.5rem;
    border-radius: 12px;
    margin-top: 1rem;
}

.pagination-info {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-pagination {
    background: linear-gradient(135deg, #3d3d3d, #2d2d2d);
    color: #f3f4f6;
    border: 1px solid #4d4d4d;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-pagination:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4af37, #b8942c);
    color: #1a1a1a;
    border-color: #d4af37;
    transform: translateY(-2px);
    text-decoration: none;
}

.btn-pagination:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-pages {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.page-number {
    background: #3d3d3d;
    color: #f3f4f6;
    border: 1px solid #4d4d4d;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: linear-gradient(135deg, #d4af37, #b8942c);
    color: #1a1a1a;
    border-color: #d4af37;
    text-decoration: none;
}

.page-number.active {
    background: linear-gradient(135deg, #d4af37, #b8942c);
    color: #1a1a1a;
    border-color: #d4af37;
}

/* Paginación personalizada - Móvil */
.pagination-custom-mobile {
    background: linear-gradient(135deg, #2d2d2d 0%, #323232 100%);
    padding: 1rem;
    border-radius: 12px;
    margin-top: 1rem;
    border: 1px solid #3d3d3d;
}

.pagination-info-mobile {
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.pagination-buttons-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-pagination-mobile {
    background: linear-gradient(135deg, #3d3d3d, #2d2d2d);
    color: #d4af37;
    border: 1px solid #4d4d4d;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-pagination-mobile:hover:not(:disabled) {
    background: linear-gradient(135deg, #d4af37, #b8942c);
    color: #1a1a1a;
    border-color: #d4af37;
    transform: scale(1.1);
    text-decoration: none;
}

.btn-pagination-mobile:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-indicator-mobile {
    color: #f3f4f6;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 60px;
    text-align: center;
}

/* Contenedor con scroll para movimientos */
.movimientos-scroll-container {
    max-height: calc(100vh - 320px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.25rem;
    margin-bottom: 1rem;
}

.movimientos-scroll-container .row {
    margin-left: 0;
    margin-right: 0;
}

.movimientos-scroll-container::-webkit-scrollbar {
    width: 4px;
}

.movimientos-scroll-container::-webkit-scrollbar-track {
    background: #1f1f1f;
    border-radius: 10px;
}

.movimientos-scroll-container::-webkit-scrollbar-thumb {
    background: #d4af37;
    border-radius: 10px;
}

.movimientos-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #b8942c;
}

/* Cards estilo préstamos */
.card-custom {
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.card-header-custom {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.border-libreta {
    border-bottom: 1px solid #e5e7eb;
}

.border-left-mobile {
    border-left: 1px solid #e5e7eb;
}

@media (max-width: 767px) {
    .border-libreta {
        border-bottom: 1px solid #e5e7eb;
    }

    .border-left-mobile {
        border-left: 1px solid #e5e7eb;
    }
}

/* Cards de movimientos para móvil (legacy - mantener por compatibilidad) */
.movimiento-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #353535 100%);
    border-radius: 15px;
    border: 1px solid #3d3d3d;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.movimiento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.movimiento-header {
    background: rgba(212, 175, 55, 0.1);
    padding: 1rem;
    border-bottom: 1px solid #3d3d3d;
}

.fecha-badge-mobile {
    background: rgba(212, 175, 55, 0.2);
    color: #d4af37;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.cliente-nombre-mobile {
    color: #f3f4f6;
    font-weight: 700;
    font-size: 1.05rem;
}

.movimiento-body {
    padding: 1rem;
}

.movimiento-item {
    background: rgba(31, 31, 31, 0.5);
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #3d3d3d;
}

.movimiento-label {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.movimiento-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.movimiento-value.ingreso {
    color: #10b981;
}

.movimiento-value.capital {
    color: #f3f4f6;
}

.movimiento-value.interes {
    color: #d4af37;
}

.movimiento-value.sebas {
    color: #3b82f6;
}

.movimiento-value.frank {
    color: #8b5cf6;
}

.empty-state-mobile {
    text-align: center;
    padding: 4rem 2rem;
    background: #2d2d2d;
    border-radius: 15px;
    border: 2px dashed #3d3d3d;
}

.empty-state-mobile i {
    font-size: 4rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    display: block;
}

.empty-state-mobile p {
    color: #9ca3af;
    margin: 0;
}

/* Cards de meses para móvil */
.card-header-mobile {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
}

.card-header-mobile i {
    color: #d4af37;
    margin-right: 0.5rem;
}

.mes-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #353535 100%);
    border-radius: 15px;
    border: 1px solid #3d3d3d;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mes-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.mes-card-header {
    background: rgba(212, 175, 55, 0.1);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #3d3d3d;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mes-nombre {
    color: #d4af37;
    font-weight: 700;
    font-size: 1rem;
    text-transform: capitalize;
}

.mes-card-body {
    padding: 1rem;
}

.mes-item {
    background: rgba(31, 31, 31, 0.5);
    padding: 0.7rem;
    border-radius: 8px;
    border: 1px solid #3d3d3d;
}

.mes-label {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.mes-value {
    font-size: 1rem;
    font-weight: 700;
}

/* Total anual card para móvil */
.total-anual-card {
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    border-radius: 15px;
    border: 2px solid #d4af37;
    margin-top: 1.5rem;
    overflow: hidden;
}

.total-anual-header {
    background: linear-gradient(135deg, #d4af37, #b8942c);
    color: #1a1a1a;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.total-anual-body {
    padding: 1rem;
}

.total-anual-item {
    background: rgba(212, 175, 55, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.total-anual-label {
    color: #d4af37;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.total-anual-value {
    font-size: 1.15rem;
    font-weight: 700;
}

.total-anual-value.ingreso,
.mes-value.ingreso {
    color: #10b981;
}

.total-anual-value.interes,
.mes-value.interes {
    color: #d4af37;
}

.total-anual-value.sebas,
.mes-value.sebas {
    color: #3b82f6;
}

.total-anual-value.frank,
.mes-value.frank {
    color: #8b5cf6;
}

/* Responsive */
@media (max-width: 991px) {
    .flujo-caja-container {
        padding: 1rem;
    }

    .header-flujo {
        padding: 1.5rem;
    }

    .header-flujo h1 {
        font-size: 1.5rem;
    }

    .resumen-value {
        font-size: 1.4rem;
    }

    .total-value {
        font-size: 1.5rem;
    }
}

@media (max-width: 767px) {
    .btn-volver-estadisticas {
        font-size: 0.85rem;
        padding: 0.4rem 0.85rem;
    }

    .header-flujo {
        padding: 1rem;
    }

    .header-flujo h1 {
        font-size: 1.3rem;
    }

    .card-filtros-modern {
        padding: 0.75rem;
        margin-bottom: 1.25rem;
    }

    .filtros-titulo {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .filtros-titulo i {
        font-size: 0.9rem;
    }

    .filtros-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .filtros-grid-simple {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .filtro-item-btn {
        grid-column: 1 / -1;
    }

    .filtro-label {
        font-size: 0.7rem;
    }

    .filtro-input {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    .btn-filtrar-modern {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .scroll-hint {
        font-size: 0.75rem;
        padding: 0.4rem;
    }

    .totales-historicos-section {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .totales-header {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
    }

    .totales-header i {
        font-size: 1.1rem;
    }

    .card-total {
        padding: 1rem;
        gap: 1rem;
    }

    .total-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .total-label {
        font-size: 0.75rem;
    }

    .total-value {
        font-size: 1.4rem;
    }

    .estadisticas-section {
        padding: 0.75rem;
    }

    .estadisticas-header {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .estadisticas-header i {
        font-size: 1.5rem;
    }

    .estadisticas-header h3 {
        font-size: 0.9rem;
    }

    .estadisticas-header p {
        font-size: 0.7rem;
    }

    .btn-estadisticas {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }

    .movimientos-scroll-container {
        max-height: calc(100vh - 350px);
    }

    .card-header-custom {
        padding: 0.75rem;
    }

    .card-custom {
        margin-bottom: 0.75rem;
    }

    .card-resumen {
        padding: 0.6rem 0.75rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .resumen-icon {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
        align-self: center;
    }

    .resumen-info {
        text-align: center;
        width: 100%;
    }

    .resumen-value {
        font-size: 0.95rem;
    }

    .resumen-label {
        font-size: 0.65rem;
        margin-bottom: 0.25rem;
    }

    .total-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }

    .total-value {
        font-size: 1.1rem;
    }

    .movimiento-card {
        margin-bottom: 0.65rem;
    }

    .movimiento-header {
        padding: 0.6rem;
    }

    .cliente-nombre-mobile {
        font-size: 0.85rem;
    }

    .movimiento-body {
        padding: 0.6rem;
    }

    .movimiento-item {
        padding: 0.5rem;
    }

    .movimiento-label {
        font-size: 0.75rem;
    }

    .movimiento-value {
        font-size: 0.9rem;
    }

    .pagination-custom {
        padding: 1rem;
    }

    .pagination-info {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .pagination-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .btn-pagination {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }

    .pagination-pages {
        gap: 0.3rem;
    }

    .page-number {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        min-width: 35px;
    }

    .pagination-custom-mobile {
        padding: 0.75rem;
    }

    .pagination-info-mobile {
        font-size: 0.7rem;
        margin-bottom: 0.6rem;
    }

    .btn-pagination-mobile {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .page-indicator-mobile {
        font-size: 0.8rem;
        min-width: 55px;
    }
}
