body { 
    font-family: 'Plus Jakarta Sans', sans-serif !important; 
    -webkit-tap-highlight-color: transparent; 
}

.card-white { 
    background: #ffffff; 
    border: 1px solid #e2e8f0; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
}

.btn-jockey { 
    background-color: #6b1d2f; 
    color: #ffffff; 
}

.btn-jockey:hover { 
    background-color: #581625; 
}

.border-jockey { 
    border-color: #6b1d2f; 
}

.text-jockey { 
    color: #6b1d2f; 
}

.btn-custom {
    border-radius: 8px !important;
    font-weight: 600 !important;
}

/* Ocultar barra de scroll manteniendo la funcionalidad (Estética App) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none; /* IE y Edge */
    scrollbar-width: none; /* Firefox */
}

/* SweetAlert2: evita saltos de layout al abrir/cerrar modales */
body.swal2-height-auto { height: 100% !important; }
body.swal2-shown { padding-right: 0 !important; }

@media print {
    @page {
        size: A4 landscape;
        margin: 12mm;
    }

    html, body {
        width: auto !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
        color: #111827 !important;
        font-size: 10.5pt !important;
    }

    body {
        display: block !important;
    }

    nav, header, .no-print, .mobile-nav,
    #tab-dashboard, #tab-nuevo {
        display: none !important;
    }

    main {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    #tab-informes {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #tab-informes > .card-white:first-of-type {
        display: none !important;
    }

    .print-only {
        display: block !important;
        margin: 0 0 8mm 0 !important;
        padding: 0 0 4mm 0 !important;
        border-bottom: 1px solid #d1d5db !important;
    }

    .print-only h1 {
        margin: 0 0 2mm 0 !important;
        font-size: 16pt !important;
        line-height: 1.2 !important;
        color: #4f1020 !important;
    }

    .print-only p {
        margin: 0 !important;
        font-size: 9pt !important;
        color: #6b7280 !important;
    }

    #tab-informes > .bg-jockey-50 {
        margin: 0 0 6mm 0 !important;
        padding: 4mm 5mm !important;
        border: 1px solid #e5cbd1 !important;
        border-radius: 3mm !important;
        box-shadow: none !important;
        break-inside: avoid !important;
    }

    #filtrado-label {
        font-size: 9pt !important;
    }

    #filtrado-count {
        font-size: 9pt !important;
    }

    #filtrado-monto {
        font-size: 18pt !important;
        line-height: 1 !important;
    }

    .report-table-card,
    .report-table-wrap {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .report-table {
        width: 100% !important;
        max-width: none !important;
        table-layout: auto !important;
        border-collapse: collapse !important;
        font-size: 9pt !important;
    }

    .report-table thead {
        display: table-header-group !important;
        background: #f3f4f6 !important;
    }

    .report-table tr {
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .report-table th,
    .report-table td {
        padding: 2.5mm 2mm !important;
        border-bottom: 1px solid #d1d5db !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        vertical-align: middle !important;
    }

    .report-table th {
        font-size: 8pt !important;
        font-weight: 700 !important;
        color: #4b5563 !important;
    }

    .report-table th:nth-child(1), .report-table td:nth-child(1) { width: 12%; }
    .report-table th:nth-child(2), .report-table td:nth-child(2) { width: 11%; }
    .report-table th:nth-child(3), .report-table td:nth-child(3) { width: 16%; }
    .report-table th:nth-child(4), .report-table td:nth-child(4) { width: 16%; }
    .report-table th:nth-child(5), .report-table td:nth-child(5) { width: 22%; }
    .report-table th:nth-child(6), .report-table td:nth-child(6) { width: 8%; text-align: center !important; }
    .report-table th:nth-child(7), .report-table td:nth-child(7) { width: 15%; text-align: right !important; }

    .report-table img {
        width: 28px !important;
        height: 28px !important;
        object-fit: cover !important;
    }

    .card-white {
        box-shadow: none !important;
    }
}
