﻿/* Variables CSS para Verificar */
:root {
    --verificar-primary: #4b1ca4;
    --verificar-primary-dark: #3a1580;
    --verificar-primary-light: #6b2dd4;
    --verificar-secondary: #d60739;
    --verificar-success: #28a745;
    --verificar-warning: #ffc107;
    --verificar-info: #17a2b8;
    --verificar-pending: #ff9800;
    --verificar-verified: #4caf50;
    --verificar-bg: #f8f9fa;
    --verificar-white: #ffffff;
    --verificar-text: #212529;
    --verificar-text-muted: #6c757d;
    --verificar-border: #dee2e6;
    --verificar-radius: 12px;
    --verificar-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --verificar-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
    --verificar-transition: all 0.3s ease;
}

/* Container principal */
.verificar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    min-height: calc(100vh - 80px);
}

/* Header */
.verificar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--verificar-primary);
}

.verificar-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--verificar-primary);
    margin: 0;
}

.btn-help-verificar {
    background-color: var(--verificar-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--verificar-transition);
    box-shadow: var(--verificar-shadow);
}

    .btn-help-verificar:hover {
        background-color: #b00530;
        transform: scale(1.1);
        box-shadow: var(--verificar-shadow-hover);
    }

/* Card de filtros */
.verificar-filters-card {
    background: var(--verificar-white);
    border-radius: var(--verificar-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--verificar-shadow);
}

.filters-subtitle {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--verificar-text);
    margin-bottom: 1.25rem;
}

.filters-group {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-item {
    display: flex;
    align-items: center;
}

.filter-radio {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    cursor: pointer;
    accent-color: var(--verificar-primary);
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--verificar-text);
    cursor: pointer;
    margin: 0;
    transition: var(--verificar-transition);
}

    .filter-label:hover {
        color: var(--verificar-primary);
    }

.filter-radio:checked + .filter-label {
    color: var(--verificar-primary);
    font-weight: 600;
}

/* Card de tabla */
.verificar-table-card {
    background: var(--verificar-white);
    border-radius: var(--verificar-radius);
    padding: 1.5rem;
    box-shadow: var(--verificar-shadow);
    overflow: hidden;
}

.table-responsive-verificar {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-verificar {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

    .table-verificar thead {
        background: linear-gradient(135deg, var(--verificar-primary), var(--verificar-primary-light));
        color: white;
    }

    .table-verificar th {
        padding: 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .table-verificar tbody tr {
        border-bottom: 1px solid var(--verificar-border);
        transition: var(--verificar-transition);
    }

        .table-verificar tbody tr:hover {
            background-color: #f8f9fa;
        }

    .table-verificar td {
        padding: 1rem;
        font-size: 0.95rem;
        color: var(--verificar-text);
    }

.row-pendiente {
    background-color: #fff8e1;
}

.row-verificado {
    background-color: #e8f5e9;
}

.td-importe {
    font-weight: 600;
    color: var(--verificar-primary);
}

/* Botones de tabla */
.btn-ver-comprobante {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--verificar-info);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--verificar-transition);
}

    .btn-ver-comprobante:hover {
        background-color: #138496;
        transform: translateY(-2px);
        box-shadow: var(--verificar-shadow);
    }

.btn-verificar-accion {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--verificar-primary), var(--verificar-primary-light));
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--verificar-transition);
}

    .btn-verificar-accion:hover {
        background: linear-gradient(135deg, var(--verificar-primary-dark), var(--verificar-primary));
        transform: translateY(-2px);
        box-shadow: var(--verificar-shadow);
    }

.badge-verificado {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--verificar-verified);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Estados de carga y vacío */
.loading-cell,
.empty-cell {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner,
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--verificar-text-muted);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--verificar-border);
    border-top-color: var(--verificar-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.empty-state svg {
    color: var(--verificar-text-muted);
    opacity: 0.5;
}

/* Modal personalizado */
.modal-verificar-content {
    border-radius: var(--verificar-radius);
}

.modal-verificar-header {
    background: linear-gradient(135deg, var(--verificar-primary), var(--verificar-primary-light));
    color: white;
    border-top-left-radius: var(--verificar-radius);
    border-top-right-radius: var (--verificar-radius);
}

/* ============================================
   CARDS EXPANDIBLES (Reemplazo de tabla)
   ============================================ */

.verificar-cards-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Card individual */
.deposito-card {
    background: white;
    border-radius: var(--verificar-radius);
    box-shadow: var(--verificar-shadow);
    overflow: hidden;
    transition: var(--verificar-transition);
    border: 2px solid transparent;
}

    .deposito-card:hover {
        box-shadow: var(--verificar-shadow-md);
    }

/* Estados de las cards */
.card-pendiente {
    border-left: 4px solid var(--verificar-warning);
}

.card-verificado {
    border-left: 4px solid var(--verificar-success);
}

.card-expanded {
    box-shadow: var(--verificar-shadow-lg);
}

/* Header de la card (siempre visible) */
.card-header {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s;
}

    .card-header:hover {
        background-color: #f8fafc;
    }

.card-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.card-importe {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--verificar-primary);
    font-family: 'Courier New', monospace;
}

.card-tipo {
    font-size: 0.95rem;
    color: var(--verificar-text-muted);
    font-weight: 500;
}

.card-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mini-badge-verificado {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, var(--verificar-success), #059669);
    border-radius: 50%;
    color: white;
}

.card-chevron {
    transition: transform 0.3s;
    color: var(--verificar-text-muted);
}

.card-expanded .card-chevron {
    transform: rotate(180deg);
}

/* Cuerpo de la card (expandible) */
.card-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 1.5rem;
}

    .card-body.show {
        max-height: 500px;
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

.card-details {
    border-top: 1px solid var(--verificar-border-light);
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--verificar-border-light);
}

    .detail-row:last-child {
        border-bottom: none;
    }

.detail-label {
    font-weight: 600;
    color: var(--verificar-text);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--verificar-text-muted);
    font-size: 0.9rem;
    text-align: right;
}

/* Acciones de la card */
.card-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-card-comprobante,
.btn-card-verificar {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--verificar-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--verificar-transition);
    box-shadow: var(--verificar-shadow);
}

.btn-card-comprobante {
    background: linear-gradient(135deg, var(--verificar-info), #2563eb);
    color: white;
}

    .btn-card-comprobante:hover {
        background: linear-gradient(135deg, #2563eb, #1e40af);
        transform: translateY(-2px);
        box-shadow: var(--verificar-shadow-md);
    }

.btn-card-verificar {
    background: linear-gradient(135deg, var(--verificar-primary), var(--verificar-primary-light));
    color: white;
}

    .btn-card-verificar:hover {
        background: linear-gradient(135deg, var(--verificar-primary-dark), var(--verificar-primary));
        transform: translateY(-2px);
        box-shadow: var(--verificar-shadow-md);
    }

.badge-card-verificado {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--verificar-success), #059669);
    color: white;
    border-radius: var(--verificar-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--verificar-shadow);
}

/* Botón de reenvío de comprobante */
.btn-card-reenviar {
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: var(--verificar-radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--verificar-transition);
    box-shadow: var(--verificar-shadow);
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
}

    .btn-card-reenviar:hover {
        background: linear-gradient(135deg, #f57c00, #e65100);
        transform: translateY(-2px);
        box-shadow: var(--verificar-shadow-md);
    }

    .btn-card-reenviar svg {
        animation: rotate-icon 2s linear infinite;
    }

    .btn-card-reenviar:hover svg {
        animation: rotate-icon 0.8s linear infinite;
    }

@keyframes rotate-icon {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ============================================
   DISEÑO DEL RECIBO MODERNO (Optimizado para PDF Tamaño Carta)
   ============================================ */
.recibo-content {
    /* Tamaño carta: 8.5" x 11" = 816px x 1056px a 96 DPI */
    width: 100%;
    max-width: 816px;
    min-height: 700px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Yu Gothic UI', 'Segoe UI', Arial, sans-serif;
    color: var(--verificar-text);
    background: white;
    box-sizing: border-box;
    position: relative;
}

/* ===== ENCABEZADO MODERNO CON DEGRADADO ===== */
.recibo-header-modern {
    position: relative;
    padding: 3rem 2.5rem 2rem 2.5rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #4b7bc4 50%, #5eb3d1 100%);
    overflow: hidden;
}

.recibo-header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.recibo-header-content-new {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 2rem;
}

/* ===== LOGO IEI ===== */
.recibo-logo-container {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recibo-logo-iei-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Fallback para SVG (si se usa) */
.recibo-logo-iei {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* ===== TEXTOS DEL ENCABEZADO ===== */
.recibo-header-text {
    flex: 1;
    color: white;
}

.recibo-title-main {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.recibo-title-sub {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.recibo-title-destination {
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
    border-radius: 4px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

/* ===== LÍNEAS DECORATIVAS ===== */
.recibo-decorative-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    display: flex;
    gap: 2px;
}

.recibo-line {
    flex: 1;
    height: 100%;
}

.recibo-line-1 {
    background: #2c5aa0;
}

.recibo-line-2 {
    background: #4b7bc4;
}

.recibo-line-3 {
    background: #5eb3d1;
}

/* ===== BADGE DE COMPROBANTE ===== */
.recibo-badge-container {
    padding: 2rem 2.5rem 1rem 2.5rem;
    display: flex;
    justify-content: center;
}

.recibo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #2c5aa0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
}

.recibo-badge svg {
    color: #4caf50;
}

/* ===== DETALLES DEL RECIBO ===== */
.recibo-details-modern {
    padding: 1.5rem 2.5rem 2rem 2.5rem;
}

.recibo-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #2c5aa0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.recibo-detail-row:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.recibo-detail-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 200px;
}

.recibo-detail-label svg {
    flex-shrink: 0;
    opacity: 0.8;
}

.recibo-detail-value {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--verificar-text);
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* ===== SECCIÓN DE IMPORTE DESTACADO ===== */
.recibo-amount-section {
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #4b7bc4 100%);
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(44, 90, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.recibo-amount-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.recibo-amount-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.recibo-amount-value {
    font-size: 3rem;
    font-weight: 900;
    color: white;
    font-family: 'Courier New', monospace;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 2px;
    line-height: 1;
}

.recibo-amount-line {
    width: 80px;
    height: 4px;
    background: white;
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* ===== FOOTER DEL RECIBO ===== */
.recibo-footer-modern {
    padding: 2rem 2.5rem;
    background: #f8f9fa;
    border-top: 3px solid #e9ecef;
}

.recibo-footer-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #2c5aa0, #4b7bc4, #5eb3d1);
    margin-bottom: 1.5rem;
}

.recibo-footer-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.recibo-footer-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--verificar-text-muted);
    font-weight: 500;
}

.recibo-footer-date svg {
    color: #2c5aa0;
}

.recibo-footer-text {
    font-size: 0.875rem;
    color: var(--verificar-text-muted);
    font-style: italic;
    text-align: right;
}

/* ===== CÓDIGO QR PLACEHOLDER ===== */
.recibo-qr-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #dee2e6;
}

.recibo-qr-box {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.recibo-qr-box svg {
    width: 100%;
    height: 100%;
    color: #2c5aa0;
}

.recibo-qr-placeholder small {
    font-size: 0.75rem;
    color: var(--verificar-text-muted);
    font-weight: 600;
}

/* ===== RESPONSIVE PARA EL RECIBO ===== */
@media screen and (max-width: 768px) {
    .recibo-content {
        min-height: auto;
    }

    .recibo-header-modern {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }

    .recibo-header-content-new {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .recibo-logo-container {
        width: 100px;
        height: 100px;
    }

    .recibo-title-main {
        font-size: 1.5rem;
    }

    .recibo-title-sub {
        font-size: 1.1rem;
    }

    .recibo-badge-container {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .recibo-badge {
        padding: 0.6rem 1.5rem;
        font-size: 0.8rem;
    }

    .recibo-details-modern {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }

    .recibo-detail-row {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }

    .recibo-detail-label {
        min-width: auto;
        font-size: 0.85rem;
    }

    .recibo-detail-value {
        text-align: left;
        font-size: 0.95rem;
    }

    .recibo-amount-section {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }

    .recibo-amount-value {
        font-size: 2.5rem;
    }

    .recibo-footer-modern {
        padding: 1.5rem;
    }

    .recibo-footer-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .recibo-footer-text {
        text-align: center;
    }
}

/* ===== ESTILOS PARA IMPRESIÓN/PDF ===== */
@media print {
    .recibo-content {
        width: 8.5in;
        min-height: 11in;
        padding: 0;
        page-break-after: always;
    }

    .recibo-header-modern {
        background: linear-gradient(135deg, #2c5aa0 0%, #4b7bc4 50%, #5eb3d1 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-header-gradient {
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-logo-container {
        background: white !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-detail-row {
        page-break-inside: avoid;
        background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%) !important;
        border-left: 4px solid #2c5aa0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-amount-section {
        background: linear-gradient(135deg, #2c5aa0 0%, #4b7bc4 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        page-break-inside: avoid;
    }

    .recibo-badge {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border: 2px solid #2c5aa0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-decorative-lines {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-line-1,
    .recibo-line-2,
    .recibo-line-3 {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* ============================================
   DISEÑO DEL RECIBO COMPACTO (UNA SOLA PÁGINA)
   ============================================ */
.recibo-content {
    /* Tamaño carta: 8.5" x 11" = 816px x 1056px a 96 DPI */
    width: 100%;
    max-width: 816px;
    min-height: auto;
    max-height: 1056px;
    margin: 0 auto;
    padding: 0;
    font-family: 'Yu Gothic UI', 'Segoe UI', Arial, sans-serif;
    color: var(--verificar-text);
    background: white;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* ===== ENCABEZADO MODERNO COMPACTO ===== */
.recibo-header-modern {
    position: relative;
    padding: 1.5rem 2rem 1rem 2rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #4b7bc4 50%, #5eb3d1 100%);
    overflow: hidden;
}

.recibo-header-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}

.recibo-header-content-new {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* ===== LOGO IEI COMPACTO ===== */
.recibo-logo-container {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.recibo-logo-iei-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Fallback para SVG (si se usa) */
.recibo-logo-iei {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* ===== TEXTOS DEL ENCABEZADO COMPACTO ===== */
.recibo-header-text {
    flex: 1;
    color: white;
}

.recibo-title-main {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 0.25rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

.recibo-title-sub {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    opacity: 0.95;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.recibo-title-destination {
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-left: 3px solid white;
    border-radius: 3px;
    backdrop-filter: blur(10px);
    display: inline-block;
}

/* ===== LÍNEAS DECORATIVAS COMPACTAS ===== */
.recibo-decorative-lines {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    display: flex;
    gap: 1px;
}

.recibo-line {
    flex: 1;
    height: 100%;
}

.recibo-line-1 {
    background: #2c5aa0;
}

.recibo-line-2 {
    background: #4b7bc4;
}

.recibo-line-3 {
    background: #5eb3d1;
}

/* ===== BADGE DE COMPROBANTE COMPACTO ===== */
.recibo-badge-container {
    padding: 1rem 2rem 0.75rem 2rem;
    display: flex;
    justify-content: center;
}

.recibo-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #2c5aa0;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.15);
}

.recibo-badge svg {
    color: #4caf50;
    width: 16px;
    height: 16px;
}

/* ===== DETALLES DEL RECIBO COMPACTO ===== */
.recibo-details-modern {
    padding: 0.75rem 2rem 1rem 2rem;
}

.recibo-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 1rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%);
    border-left: 3px solid #2c5aa0;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.recibo-detail-row:hover {
    transform: translateX(3px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.recibo-detail-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.8rem;
    color: #2c5aa0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    min-width: 150px;
}

.recibo-detail-label svg {
    flex-shrink: 0;
    opacity: 0.8;
    width: 16px;
    height: 16px;
}

.recibo-detail-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--verificar-text);
    text-align: right;
    flex: 1;
    word-break: break-word;
}

/* ===== SECCIÓN DE IMPORTE COMPACTA ===== */
.recibo-amount-section {
    margin: 1.25rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, #2c5aa0 0%, #4b7bc4 100%);
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(44, 90, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.recibo-amount-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.recibo-amount-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.3rem;
}

.recibo-amount-value {
    font-size: 2.25rem;
    font-weight: 900;
    color: white;
    font-family: 'Courier New', monospace;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    line-height: 1;
}

.recibo-amount-line {
    width: 60px;
    height: 3px;
    background: white;
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ===== FOOTER DEL RECIBO COMPACTO ===== */
.recibo-footer-modern {
    padding: 1rem 2rem;
    background: #f8f9fa;
    border-top: 2px solid #e9ecef;
}

.recibo-footer-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #2c5aa0, #4b7bc4, #5eb3d1);
    margin-bottom: 0.75rem;
}

.recibo-footer-info {
    display: flex;
    justify-content: center;
    align-items: center;
}

.recibo-footer-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--verificar-text-muted);
    font-weight: 500;
}

.recibo-footer-date svg {
    color: #2c5aa0;
    width: 12px;
    height: 12px;
}

.recibo-footer-text {
    font-size: 0.7rem;
    color: var(--verificar-text-muted);
    font-style: italic;
}

/* ===== RESPONSIVE PARA EL RECIBO ===== */
@media screen and (max-width: 768px) {
    .recibo-content {
        min-height: auto;
        max-height: none;
    }

    .recibo-header-modern {
        padding: 1.25rem 1.5rem 0.75rem 1.5rem;
    }

    .recibo-header-content-new {
        flex-direction: row;
        gap: 1rem;
    }

    .recibo-logo-container {
        width: 70px;
        height: 70px;
    }

    .recibo-title-main {
        font-size: 1.1rem;
    }

    .recibo-title-sub {
        font-size: 0.85rem;
    }

    .recibo-badge-container {
        padding: 0.75rem 1.5rem 0.5rem 1.5rem;
    }

    .recibo-badge {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }

    .recibo-details-modern {
        padding: 0.5rem 1.5rem 0.75rem 1.5rem;
    }

    .recibo-detail-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
        padding: 0.6rem 0.8rem;
        margin-bottom: 0.4rem;
    }

    .recibo-detail-label {
        min-width: auto;
        font-size: 0.75rem;
    }

    .recibo-detail-value {
        text-align: left;
        font-size: 0.85rem;
    }

    .recibo-amount-section {
        padding: 1rem;
        margin: 1rem 0;
    }

    .recibo-amount-value {
        font-size: 2rem;
    }

    .recibo-footer-modern {
        padding: 0.75rem 1.5rem;
    }
}

/* ===== ESTILOS PARA IMPRESIÓN/PDF (FORZAR UNA PÁGINA) ===== */
@media print {
    .recibo-content {
        width: 8.5in;
        height: 11in;
        max-height: 11in;
        padding: 0;
        page-break-after: always;
        page-break-inside: avoid;
    }

    .recibo-header-modern {
        background: linear-gradient(135deg, #2c5aa0 0%, #4b7bc4 50%, #5eb3d1 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        page-break-inside: avoid;
    }

    .recibo-header-gradient {
        background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-logo-container {
        background: white !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-detail-row {
        page-break-inside: avoid;
        background: linear-gradient(to right, #f8f9fa 0%, #ffffff 100%) !important;
        border-left: 3px solid #2c5aa0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-amount-section {
        background: linear-gradient(135deg, #2c5aa0 0%, #4b7bc4 100%) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        page-break-inside: avoid;
    }

    .recibo-badge {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        border: 2px solid #2c5aa0 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-decorative-lines {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-line-1,
    .recibo-line-2,
    .recibo-line-3 {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .recibo-footer-modern {
        page-break-inside: avoid;
    }

    /* Forzar que todo quepa en una página */
    * {
        page-break-inside: avoid !important;
    }
}
