.elementor-3609 .elementor-element.elementor-element-5331437{--display:flex;--padding-top:0px;--padding-bottom:0px;--padding-left:10px;--padding-right:10px;}body.elementor-page-3609:not(.elementor-motion-effects-element-type-background), body.elementor-page-3609 > .elementor-motion-effects-container > .elementor-motion-effects-layer{background-color:#795CF614;}body.elementor-page-3609{margin:0px 0px 0px 0px;padding:0px 0px 0px 0px;}@media(max-width:767px){.elementor-3609 .elementor-element.elementor-element-5331437{--padding-top:0px;--padding-bottom:0px;--padding-left:5px;--padding-right:5px;}}/* Start custom CSS for shortcode, class: .elementor-element-c9cd025 */.elementor-3609 .elementor-element.elementor-element-c9cd025 {
    font-family: "Montserrat", sans-serif !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Montserrat", sans-serif !important;
    background-color: #795CF614;
    color: #211d2b;
    line-height: 1.6;
}

/* ==================================================
   LOGIN - RESPONSIVE
   ================================================== */

.login-container {
    display: flex;
    min-height: 100vh;
    height: 15px;
    flex-direction: column;
}

.login-left {
    width: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    order: 2;
}

.login-right {
    width: 100%;
    background: linear-gradient(135deg, #141414 0%, #141414 100%);
    position: relative;
    overflow: hidden;
    order: 1;
    height: 40vh;
}

.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 20px;
    background-color: #ffffff;
}

.login-logo {
    margin-bottom: 20px;
    text-align: center;
}

.logo-image {
    width: 200px;
    height: auto;
}

.login-title {
    margin: 0 0 10px 0;
    color: #141414;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.login-subtitle {
    margin: 0 0 25px 0;
    color: #666;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
}

.login-error {
    margin-bottom: 20px;
    padding: 12px;
    background: #fee;
    color: #c00;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.login-form {
    display: grid;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #141414;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    transition: border-color 0.3s;
}

.form-input:focus {
    border-color: #4a12cd;
    outline: none;
}

.login-button {
    padding: 12px;
    background: #4a12cd;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Montserrat", sans-serif;
}

.login-button:hover {
    background: #4a12cd;
}

.login-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #795CF614;
}

.footer-text {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 13px;
    text-align: center;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: #4a12cd;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

.whatsapp-button:hover {
    background: #1da851;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.background-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.78) 100%);
}

/* ==================================================
   LISTA DE EVENTOS - RESPONSIVE
   ================================================== */

.producer-dashboard {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 80px;
}

.producer-header {
    background: linear-gradient(135deg, #4a12cd 0%, #4a12cd 100%);
    color: white;
    padding: 20px;
    margin-bottom: 15px;
}

.header-content {
    max-width: 1450px;
    margin: 0 auto;
}

.producer-greeting {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
}

.producer-description {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.header-actions {
    margin-top: 10px;
}

.logout-button {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s;
    font-weight: 500;
}

.logout-button:hover {
    background: #141414;
}

.events-grid-container {
    padding: 0 10px;
    max-width: 1450px;
    margin: 0 auto 100px auto;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.event-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.event-card-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #f0f0f0;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.event-title {
    margin: 0 0 10px 0;
    color: #4a12cd;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-transform: uppercase;
}

.event-button {
    display: block;
    margin-top: auto;
    padding: 10px;
    background: #4a12cd;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 15px;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Montserrat", sans-serif;
}

.event-button:hover {
    background: #211d2b;
}

.producer-footer {
    margin-top: 20px;
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    position: fixed;
    width: 100%;
    bottom: 0;
    left: 0;
    z-index: 1000;
}

.footer-content {
    max-width: 1450px;
    margin: 0 auto;
    text-align: center;
}

/* ==================================================
   DASHBOARD - RESPONSIVE
   ================================================== */

.dashboard-container {
    max-width: 100%;
    margin: 0 auto;
}

.dashboard-header {
    background: linear-gradient(135deg, #4a12cd 0%, #4a12cd 100%);
    color: white;
    padding: 20px;
    margin-bottom: 20px;
}

.dashboard-header-content {
    max-width: 1450px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.dashboard-header-image {
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    width: 80px;
    height: 80px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    align-self: center;
}

.event-header-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-header-info {
    flex-grow: 1;
    text-align: center;
}

.dashboard-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

.dashboard-subtitle {
    margin: 0 0 8px 0;
    font-size: 14px;
    opacity: 0.9;
}

.dashboard-producer {
    margin: 0;
    font-size: 12px;
    opacity: 0.8;
}

.dashboard-header-buttons {
    flex-shrink: 0;
    display: grid;
    gap: 8px;
    justify-content: center;
}

.dashboard-button {
    padding: 8px 12px;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    transition: all 0.3s;
    font-weight: 500;
    text-align: center;
}

.back-button {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
}

.back-button:hover {
    background: rgba(255,255,255,0.3);
}

.dashboard-content {
    padding: 0 15px;
    max-width: 1450px;
    margin: 0px auto 100px auto;
}

.whatsapp-button-dashboard {
    display: inline;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #4a12cd;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.3s;
}

/* ==================================================
   FILTROS - RESPONSIVE
   ================================================== */

.tickera-filters {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 14px;
    min-width: 150px;
}

.custom-date-container {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.date-label {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.date-input {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
}

.filter-button {
    padding: 8px 16px;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
}

.apply-button {
    background: #4a12cd !important;
}

.apply-button:hover {
    background: #211d2b !important;
}

.reset-button {
    background: #f39200 !important;
    color: white !important;
    border-color: #f39200 !important;
}

.reset-button:hover {
    background: #333 !important;
    border-color: #333 !important;
}

/* ==================================================
   ESTADÍSTICAS - RESPONSIVE
   ================================================== */

.global-stats {
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-title {
    margin-top: 0;
    color: #141414;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.stat-item {
    padding: 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    font-weight: 500;
    border-left: 3px solid #4a12cd !important;
}

.stats-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 15px;
    background: white;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.stat-label {
    margin: 0 0 8px 0;
    color: #141414;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-value {
    margin: 0 0 12px 0 !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #4a12cd !important;
}

.refunded-value {
    color: #dc3545;
}

.stat-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.tooltip-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.tooltip-icon {
    width: 18px;
    height: 18px;
    background: #4a12cd !important;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
}

.tooltip-text {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

/* ==================================================
   TABLAS - RESPONSIVE
   ================================================== */

.ticket-stats {
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.stats-table th {
    padding: 12px 8px;
    text-align: left;
    background: #f9f9f9;
    font-weight: 600;
    color: #141414;
    border-bottom: 2px solid #4a12cd;
}

.stats-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e0e0e0;
}

.stats-table tr:hover {
    background: #f8f9fa;
}

.buyers-list {
    padding: 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.buyers-search-form {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
}

.search-button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    transition: background 0.3s;
}

.clear-button {
    background: #ddd;
    color: #141414;
}

.clear-button:hover {
    background: #ccc;
}

.download-button {
    background: #f39200 !important;
    color: white !important;
}

.download-button:hover {
    background: #218838;
}

.buyers-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    overflow-x: auto;
    display: block;
}

.buyers-table th {
    padding: 10px 6px;
    text-align: left;
    background: #f9f9f9;
    font-weight: 600;
    color: #141414;
    border-bottom: 2px solid #4a12cd;
}

.buyers-table td {
    padding: 8px 6px;
    border-bottom: 1px solid #e0e0e0;
}

.items-cell {
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.total-cell {
    text-align: right;
    font-weight: 700;
    color: #4a12cd;
}

.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* ==================================================
   PAGINACIÓN - RESPONSIVE
   ================================================== */

.pagination-container {
    margin-top: 15px;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-btn {
    padding: 6px 10px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    transition: all 0.3s;
}

.page-btn:hover {
    background: #f0f0f0;
}

.page-btn.active {
    background: #4a12cd;
    color: white;
    border-color: #4a12cd;
}

/* ==================================================
   GRÁFICOS - RESPONSIVE
   ================================================== */

.chart-container {
    padding: 20px;
    background: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #e0e0e0;
}

.chart-wrapper {
    position: relative;
    height: 300px;
}

.daily-sales-chart .chart-wrapper {
    height: 250px;
}

/* ==================================================
   MEDIA QUERIES - TABLET
   ================================================== */

@media (min-width: 768px) {
    .login-container {
        flex-direction: row;
    }
    
    .login-left {
        width: 35%;
        order: 1;
    }
    
    .login-right {
        width: 65%;
        order: 2;
        height: auto;
    }
    
    .login-content {
        padding: 40px 30px;
    }
    
    .login-logo {
        text-align: left;
    }
    
    .login-title {
        text-align: left;
        font-size: 28px;
    }
    
    .login-subtitle {
        text-align: left;
    }
    
    .producer-greeting {
        font-size: 32px;
    }
    
    .producer-description {
        font-size: 16px;
    }
    
    .logout-button {
        font-size: 14px;
        padding: 10px 20px;
    }
    
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .event-card-image {
        height: 100%;
    }
    
    .dashboard-header-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 20px;
    }
    
    .dashboard-header-image {
        width: 100px;
        height: 100px;
        align-self: flex-start;
    }
    
    .dashboard-header-info {
        text-align: left;
    }
    
    .dashboard-title {
        font-size: 24px;
    }
    
    .dashboard-header-buttons {
        flex-shrink: 0;
        display: grid;
        gap: 8px;
        justify-content: center;
    }
    
    .tickera-filters {
        justify-content: flex-start;
    }
    
    .custom-date-container {
        justify-content: flex-start;
    }
    
    .buyers-table {
        font-size: 13px;
        display: table;
    }
    
    .items-cell {
        font-size: 12px;
        max-width: none;
    }
}

@media only screen 
  and (min-device-width: 320px) 
  and (max-device-width: 480px)
  and (-webkit-min-device-pixel-ratio: 2) {
    .dashboard-header-buttons {
        flex-shrink: 0;
        display: flex;
        gap: 8px;
        justify-content: center;
        font-size: 13px;
    }
    
    .dashboard-subtitle {
        display: none;
    }
    
    .dashboard-header-image {
        display: none;
    }
    
    .event-header-image {
        display: none;
    }
    
    .back-button {
        font-size: 12px;
    }
    
    .logout-button {
        font-size: 12px !important;
    }
    
    .producer-global-stats-container {
        padding: 10px !important;
        margin: 0 !important;
    }
    
    .producer-global-stats-container .stats-title {
        font-size: 20px !important;
    }
    
    .login-right {
        display: none !important;
    }
}

/* ==================================================
   MEDIA QUERIES - DESKTOP
   ================================================== */

@media (min-width: 1024px) {
    .events-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .events-grid-container {
        padding: 0px;
    }
    
    .dashboard-content {
        padding: 0 20px;
    }
    
    .dashboard-header-image {
        width: 120px;
        height: 120px;
    }
    
    .dashboard-title {
        font-size: 28px;
    }
    
    .stats-grid-cards {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .chart-wrapper {
        height: 350px;
    }
    
    .daily-sales-chart .chart-wrapper {
        height: 300px;
    }
}

@media (min-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==================================================
   ESTADOS DE CARGA Y ERROR
   ================================================== */

.access-denied {
    padding: 20px;
    color: #c00;
    text-align: center;
    font-weight: 600;
}

.no-events-card {
    padding: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    max-width: 1400px;
    margin: 40px auto;
}

.no-events-title {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 24px;
    font-weight: 700;
}

.no-events-message {
    color: #000;
    margin: 20px 0 30px 0;
    font-size: 17px;
    line-height: 1.5;
}

.logout-button {
    background: #211d2b;
    color: white;
    font-size: 15px;
    border-color: #211d2b;
}

/* ==================================================
   ANIMACIONES Y TRANSICIONES
   ================================================== */

.event-card, .stat-card, .chart-container {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover, .stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ==================================================
   UTILIDADES
   ================================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-20 {
    margin-bottom: 20px;
}

.mt-20 {
    margin-top: 20px;
}

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* ==================================================
   SCROLLBAR PERSONALIZADO
   ================================================== */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #4a12cd;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4a12cd;
}

.producer-global-stats-container {
    max-width: 1450px;
    margin: 30px auto 40px auto;
    padding: 0px;
}

.producer-global-stats-container .global-stats {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
}

.producer-global-stats-container .stats-title {
    color: #000;
    font-size: 25px;
    margin: 0 0 20px 0;
    font-weight: 600;
    text-align: center;
}

.producer-global-stats-container .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.producer-global-stats-container .stat-item {
    background: #572fff12 !important;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.producer-global-stats-container .stat-item strong {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.producer-global-stats-container .stat-item:not(strong) {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Sección de exportación */
.export-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 15px;
    border: 1px solid #e5e7eb;
    margin-top: 30px;
}

.export-title {
    color: #1f2937;
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.export-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.event-select {
    flex: 1;
    min-width: 250px;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px !important;
    font-size: 15px;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.event-select:hover {
    border-color: #667eea;
}

.event-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.export-button {
    padding: 12px 24px;
    background: linear-gradient(135deg, #4a12cd 0%, #4a12cd 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.export-button:hover:not(:disabled) {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.export-button:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    opacity: 0.6;
}

.export-button .button-icon {
    font-size: 18px;
}

.export-hint {
    margin: 12px 0 0 0;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 768px) {
    .export-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .event-select {
        width: 100%;
    }
    
    .export-button {
        width: 100%;
        justify-content: center;
    }
}

.export-success {
    margin-top: 10px;
    padding: 10px 14px;
    background: #795CF614;
    border: 1px solid #4a12cd;
    border-radius: 8px;
    color: #4a12cd;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}/* End custom CSS */
/* Start custom CSS */@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

/* ========================================
   ESTILOS GENERALES
   ======================================== */

.tickera-sales-stats {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #000;
    background: #f4f2fe;
    border-radius: 8px;
    overflow: hidden;
}

.tickera-sales-stats h3 {
    background: #4a12cd;
    color: #ffffff;
    margin: 0;
    padding: 20px 24px;
    font-size: 25px;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: normal;
    font-family: 'Montserrat', sans-serif;
}

.tickera-sales-stats h4 {
    color: #141414;
    margin: 24px 24px 16px 24px;
    font-size: 18px;
    font-weight: 700;
    padding-bottom: 0;
    border-bottom: none;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* ========================================
   ESTADÍSTICAS GLOBALES
   ======================================== */

.global-stats {
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 4px;
    margin: 0px 0px 20px 0px;
    border: 1px solid #eeeeee;
}

.global-stats h4 {
    margin-top: 0;
    margin: 0px 0px 16px 0px !important;
    color: #141414;
    font-weight: 700 !important;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.stat-item {
    background: #572fff12 !important;
    padding: 18px;
    border-radius: 6px;
    border-left: 3px solid #4a12cd;
    transition: background 0.2s ease;
}

.stat-item:hover {
    background: #eeeeee;
}

.stat-item strong {
    color: #000;
    font-weight: 500;
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}

.stat-item > :not(strong) {
    font-size: 26px;
    font-weight: 700;
    color: #141414;
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   CARDS DE PROYECCIONES
   ======================================== */

.stats-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 0px 0px 20px 0px;
}

.stat-card {
    padding: 15px;
    background: white;
    border-radius: 4px;
    text-align: center;
    position: relative;
    font-family: 'Montserrat', sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    border: 1px solid #eeeeee;
}

.stat-card p {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
}

.stat-card p:first-child {
    color: #000;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-card p:nth-child(2) {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.tickets-issued-card p:nth-child(2) {
    color: #4a12cd;
}

.projection-card p:nth-child(2) {
    color: #4a12cd;
}

.refunded-card p:nth-child(2) {
    color: #dc3545;
}

.stat-card p:last-child {
    color: #999;
    font-size: 15px;
    margin: 0;
}

/* ========================================
   FILTROS
   ======================================== */

.tickera-filters {
    background: #ffffff;
    padding: 24px 24px;
    margin: 0px 0px 20px 0px;
    border: 1px solid #eeeeee;
    border-radius: 4px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    flex-wrap: wrap;
}

#filter-preset {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease;
    min-width: 180px;
    font-family: 'Montserrat', sans-serif;
}

#filter-preset:hover,
#filter-preset:focus {
    outline: none;
    border-color: #4a12cd;
}

#custom-date-inputs {
    display: none;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

#custom-date-inputs label {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #333333;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
}

#custom-date-inputs input[type="date"] {
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

#custom-date-inputs input[type="date"]:hover,
#custom-date-inputs input[type="date"]:focus {
    outline: none;
    border-color: #4a12cd;
}

.tickera-filters button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    height: 36px;
    font-family: 'Montserrat', sans-serif;
}

#apply-filters {
    background: #4a12cd;
    color: #ffffff;
}

#apply-filters:hover {
    background: #0052cc;
}

#reset-filters {
    background: #ffffff;
    color: #4a12cd;
    border: 1px solid #4a12cd;
}

#reset-filters:hover {
    background: #f0f8ff;
}

/* ========================================
   TABLAS GENERALES
   ======================================== */

.ticket-stats {
    margin: 0px 0px 20px 0px;
    padding: 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eeeeee;
}

.ticket-stats table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}

.ticket-stats th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333333;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
    font-family: 'Montserrat', sans-serif;
}

.ticket-stats td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
    color: #333333;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

.ticket-stats tbody tr {
    transition: background 0.15s ease;
}

.ticket-stats tbody tr:hover {
    background: #f9f9f9;
}

/* ========================================
   LISTA DE COMPRADORES
   ======================================== */

.buyers-list {
    margin: 0px 0px 20px 0px;
    padding: 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #eeeeee;
}

.buyers-search-form {
    margin: 0;
    padding: 20px 24px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background: #ffffff;
    border-bottom: 1px solid #eeeeee;
}

#buyers-search {
    flex: 1;
    min-width: 220px;
    padding: 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-size: 13px;
    color: #333333;
    background: #ffffff;
    transition: border-color 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

#buyers-search::placeholder {
    color: #999999;
}

#buyers-search:focus {
    outline: none;
    border-color: #4a12cd;
}

#clear-search {
    padding: 10px 14px;
    background: #ffffff;
    color: #666666;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 13px;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

#clear-search:hover {
    background: #f5f5f5;
    border-color: #4a12cd;
}

#download-buyers {
    padding: 10px 14px;
    background: #4a12cd;
    color: #ffffff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: 'Montserrat', sans-serif;
}

#download-buyers:hover {
    background: #0052cc;
}

#download-buyers:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.buyers-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.buyers-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    background: #ffffff;
}

.buyers-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: #333333;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
    font-family: 'Montserrat', sans-serif;
}

.buyers-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid #eeeeee;
    color: #333333;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

.buyers-table tbody tr {
    transition: background 0.15s ease;
}

.buyers-table tbody tr:hover {
    background: #f9f9f9;
}

#buyers-results {
    background: #ffffff;
    padding: 0 24px 20px 24px;
}

.buyers-info {
    padding: 10px 12px;
    background: #f9f9f9;
    border-radius: 4px;
    font-size: 13px;
    color: #666666;
    border-left: 2px solid #4a12cd;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.buyers-info p {
    margin: 0;
    font-weight: 500;
}

.buyers-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px 0 0 0;
}

.page-btn {
    padding: 8px 12px;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    color: #333333;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 12px;
    transition: all 0.2s ease;
    min-width: 36px;
    font-family: 'Montserrat', sans-serif;
}

.page-btn:hover:not(.active):not(:disabled) {
    border-color: #4a12cd;
    background: #f0f8ff;
}

.page-btn.active {
    background: #4a12cd;
    color: #ffffff;
    border-color: #4a12cd;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========================================
   GRÁFICOS
   ======================================== */

.chart-container {
    padding: 20px 24px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 6px;
    margin: 0px 0px 24px 0px;
}

.chart-container h4 {
    margin: 0 0 16px 0;
    color: #141414;
    font-weight: 700 !important;
    font-size: 16px;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
}

.chart-wrapper-payment {
    height: 320px;
}

.chart-container canvas {
    max-width: 100% !important;
    height: auto !important;
}

/* ========================================
   MÉTODOS DE PAGO
   ======================================== */

.payment-method-stats {
    margin: 0px 0px 24px 0px;
    padding: 20px 24px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #eeeeee;
}

.payment-method-stats h4 {
    margin: 0 0 16px 0;
    color: #141414;
    font-weight: 600;
    font-size: 16px;
}

#payment-chart {
    max-width: 100%;
    height: 300px;
}

/* ========================================
   TOOLTIPS
   ======================================== */

.tooltip-icon {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 18px !important;
    height: 18px !important;
    background: #f39200 !important;
    color: white !important;
    border-radius: 50% !important;
    font-size: 12px !important;
    font-weight: bold !important;
    cursor: help !important;
    font-family: 'Montserrat', sans-serif !important;
}

.tooltip-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #141414;
    color: #ffffff;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    width: 250px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
    word-wrap: break-word;
    white-space: normal;
    font-family: 'Montserrat', sans-serif;
}

.tooltip-icon::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #141414;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.tooltip-icon:hover::after,
.tooltip-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* ========================================
   ERRORES Y MENSAJES
   ======================================== */

.tickera-error {
    color: #d32f2f;
    background: #ffebee;
    border: 1px solid #ef5350;
    border-radius: 4px;
    padding: 12px 16px;
    margin: 10px 24px;
    font-weight: 500;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

p.sindatos {
    margin: 16px 24px;
    padding: 12px 14px;
    background: #f9f9f9;
    border-left: 2px solid #4a12cd;
    border-radius: 4px;
    color: #666666;
    font-weight: 500;
    text-align: center;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
}

/* ========================================
   RESPONSIVE - TABLET (768px)
   ======================================== */

@media (max-width: 768px) {
    .tickera-sales-stats h3 {
        font-size: 18px;
        padding: 16px 18px;
    }

    .tickera-sales-stats h4 {
        margin: 18px 18px 12px 18px;
        font-size: 15px;
    }

    .global-stats {
        margin: 0 18px 18px 18px;
        padding: 18px;
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 12px;
    }

    .stat-item {
        padding: 14px;
    }

    .stat-item > :not(strong) {
        font-size: 22px;
    }

    .stats-grid-cards {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        margin: 0 18px 18px 18px;
        gap: 12px;
    }

    .stat-card {
        min-height: 100px;
        padding: 12px;
    }

    .stat-card p:first-child {
        font-size: 12px;
    }

    .stat-card p:nth-child(2) {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .stat-card p:last-child {
        font-size: 13px;
    }

    .tickera-filters {
        margin: 0 18px 16px 18px;
        padding: 16px 18px;
    }

    #filter-preset {
        min-width: 160px;
    }

    .ticket-stats {
        margin: 0 18px 18px 18px;
    }

    .ticket-stats th,
    .ticket-stats td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .ticket-stats th {
        font-size: 11px;
    }

    .buyers-list {
        margin: 0 18px 18px 18px;
    }

    .buyers-search-form {
        padding: 16px 18px;
        gap: 8px;
    }

    #buyers-search,
    #clear-search,
    #download-buyers {
        font-size: 12px;
        padding: 8px 10px;
    }

    #buyers-results {
        padding: 0 18px 18px 18px;
    }

    .buyers-table th,
    .buyers-table td {
        padding: 10px 8px;
        font-size: 12px;
    }

    .buyers-table th {
        font-size: 11px;
    }

    .buyers-info {
        margin-bottom: 12px;
        font-size: 12px;
    }

    .page-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .chart-container {
        margin: 0 18px 18px 18px;
        padding: 16px 18px;
    }

    .chart-wrapper {
        height: 280px;
    }

    .chart-wrapper-payment {
        height: 280px;
    }

    .payment-method-stats {
        margin: 0 18px 18px 18px;
        padding: 16px 18px;
    }

    #payment-chart {
        height: 250px;
    }

    .tickera-error {
        margin: 10px 18px;
    }

    p.sindatos {
        margin: 12px 18px;
    }

    .tooltip-icon::after {
        width: 220px;
        font-size: 11px;
    }
}

/* ========================================
   RESPONSIVE - MOBILE (480px)
   ======================================== */

@media (max-width: 480px) {
    .tickera-sales-stats h3 {
        font-size: 16px;
        padding: 14px 14px;
    }

    .tickera-sales-stats h4 {
        margin: 14px 14px 10px 14px;
        font-size: 14px;
    }

    .global-stats {
        margin: 0px 0px 14px 0px;
        padding: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-item {
        padding: 12px;
    }

    .stat-item strong {
        font-size: 11px;
    }

    .stat-item > :not(strong) {
        font-size: 20px;
    }

    .stats-grid-cards {
        grid-template-columns: 1fr;
        margin: 0px 0px 14px 0px;
        gap: 10px;
    }

    .stat-card {
        min-height: 90px;
        padding: 10px;
    }

    .stat-card p:first-child {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .stat-card p:nth-child(2) {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .stat-card p:last-child {
        font-size: 12px;
    }

    .tickera-filters {
        margin: 0px 0px 12px 0px;
        padding: 12px 14px;
        flex-direction: column;
        align-items: stretch;
    }

    #filter-preset {
        width: 100%;
        min-width: unset;
    }

    #custom-date-inputs {
        flex-direction: column;
        align-items: stretch;
    }

    #custom-date-inputs label {
        flex-direction: column;
        align-items: flex-start;
    }

    #custom-date-inputs input[type="date"] {
        width: 100%;
    }

    .tickera-filters button {
        width: 100%;
    }

    /* Tablas con scroll horizontal */
    .ticket-stats {
        margin: 0px 0px 14px 0px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .ticket-stats table {
        min-width: 600px;
        font-size: 11px;
    }

    .ticket-stats th,
    .ticket-stats td {
        padding: 8px 6px;
        font-size: 11px;
        white-space: nowrap;
    }

    .ticket-stats th {
        font-size: 10px;
    }

    .buyers-list {
        margin: 0px 0px 14px 0px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 20px 0px 0px 0px !important;
    }

    .buyers-search-form {
        padding: 12px 14px;
        flex-direction: column;
        gap: 8px;
        margin: 0;
    }

    #buyers-search,
    #clear-search,
    #download-buyers {
        width: 100%;
        padding: 8px 10px;
        font-size: 12px;
    }

    #buyers-results {
        padding: 0 8px 12px 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .buyers-table table {
        min-width: 800px;
        font-size: 11px;
    }

    .buyers-table th,
    .buyers-table td {
        padding: 8px 6px;
        font-size: 11px;
        white-space: nowrap;
    }

    .buyers-table th {
        font-size: 10px;
    }

    .buyers-info {
        margin: 0 0 10px 0;
        padding: 8px 10px;
        font-size: 11px;
    }

    .buyers-pagination {
        padding: 10px 0 0 0;
        gap: 4px;
    }

    .page-btn {
        padding: 6px 8px;
        font-size: 10px;
        min-width: 30px;
    }

    .chart-container {
        margin: 0px 0px 14px 0px;
        padding: 12px 14px;
    }

    .chart-container h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .chart-wrapper {
        height: 240px;
    }

    .chart-wrapper-payment {
        height: 240px;
    }

    .payment-method-stats {
        margin: 0px 0px 14px 0px;
        padding: 12px 14px;
    }

    .payment-method-stats h4 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    #payment-chart {
        height: 200px;
    }

    .tickera-error {
        margin: 10px 14px;
        font-size: 12px;
    }

    p.sindatos {
        margin: 12px 14px;
        padding: 10px 12px;
        font-size: 12px;
    }

    .tooltip-icon {
        width: 16px !important;
        height: 16px !important;
        font-size: 11px !important;
    }

    .tooltip-icon::after {
        width: 150px;
        font-size: 10px;
        bottom: 120%;
        left: -10px;
        transform: none;
    }

    .tooltip-icon::before {
        bottom: 115%;
        left: -45px;
        transform: none;
    }

    .tooltip-icon ~ span {
        font-size: 12px !important;
    }
}

/* ========================================
   RESPONSIVE - ULTRA MÓVIL (360px)
   ======================================== */

@media (max-width: 360px) {
    .tickera-sales-stats h3 {
        font-size: 14px;
        padding: 12px 12px;
    }

    .global-stats,
    .stats-grid-cards,
    .chart-container,
    .payment-method-stats {
        margin-left: 10px;
        margin-right: 10px;
        padding: 12px;
    }

    .stat-card p:nth-child(2) {
        font-size: 16px;
    }

    .ticket-stats,
    .buyers-list {
        margin: 0 10px 10px 10px;
    }

    .buyers-search-form {
        padding: 10px 12px;
    }

    #buyers-search,
    #clear-search,
    #download-buyers {
        font-size: 11px;
        padding: 7px 8px;
    }

    .tooltip-icon {
        width: 14px !important;
        height: 14px !important;
        font-size: 10px !important;
    }

    .tooltip-icon::after {
        width: 150px;
        font-size: 9px;
    }
}/* End custom CSS */