/* =====================================================
   REPORTE DE TRANSACCIONES
===================================================== */

.transactions-report {
    width: auto;
    padding: clamp(35px, 4vw, 65px) 20px 30px;

    border: 2px solid #506bd3;
    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            rgba(2, 2, 17, 0.98),
            rgba(0, 0, 8, 1)
        );

    color: #fff;

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.28),
        inset 0 0 30px rgba(62, 76, 183, 0.03);
}


/* =====================================================
   ENCABEZADO
===================================================== */

.transactions-report__header {
    margin-bottom: 55px;
    text-align: center;
}

.transactions-report__header h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(2rem, 3vw, 3.3rem);
    font-weight: 300;
    line-height: 1;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.transactions-report__header p {
    margin: 20px 0 0;

    color: #fff;

    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =====================================================
   FILTROS
===================================================== */

.transactions-filter {
    display: grid;

    grid-template-columns:
        minmax(210px, 300px)
        minmax(250px, 355px)
        auto;

    align-items: end;
    justify-content: center;

    gap: 22px;

    margin-bottom: 28px;
}

.transactions-filter__field {
    display: flex;
    flex-direction: column;

    gap: 10px;

    text-align: left;
}

.transactions-filter__field label {
    color: rgba(255, 255, 255, 0.94);

    font-size: 1rem;
    font-weight: 400;
}

.transactions-filter__control {
    position: relative;
}

.transactions-filter select,
.transactions-filter input {
    width: 100%;
    min-height: 70px;

    padding: 14px 24px;

    border: 0;
    border-radius: 14px;

    outline: none;

    background:
        linear-gradient(
            180deg,
            #3658c3,
            #2d48aa
        );

    color: #fff;

    font-family: inherit;
    font-size: 1.25rem;
    font-weight: 500;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 7px 18px rgba(0, 0, 0, 0.2);
}

.transactions-filter select {
    appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #fff 50%),
        linear-gradient(135deg, #fff 50%, transparent 50%),
        linear-gradient(180deg, #3658c3, #2d48aa);

    background-position:
        calc(100% - 24px) 50%,
        calc(100% - 17px) 50%,
        0 0;

    background-size:
        8px 8px,
        8px 8px,
        100% 100%;

    background-repeat: no-repeat;

    padding-right: 54px;
}

.transactions-filter input[type="month"] {
    color-scheme: dark;
}


/* =====================================================
   BOTONES
===================================================== */

.transactions-filter__actions {
    display: flex;
    align-items: end;

    gap: 16px;
}

.transactions-filter__button {
    min-width: 185px;
    min-height: 70px;

    padding: 15px 30px;

    border: 0;
    border-radius: 14px;

    color: #fff;

    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.25s ease,
        filter 0.25s ease,
        box-shadow 0.25s ease;
}

.transactions-filter__button--search {
    background:
        linear-gradient(
            180deg,
            #f4a51d,
            #e59013
        );
}

.transactions-filter__button--clear {
    background:
        linear-gradient(
            180deg,
            #4463c9,
            #3653b4
        );
}

.transactions-filter__button:hover {
    transform: translateY(-3px);
    filter: brightness(1.08);

    box-shadow:
        0 13px 25px rgba(0, 0, 0, 0.3);
}


/* =====================================================
   PESTAÑAS
===================================================== */

.transactions-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    overflow: hidden;

    margin-bottom: 24px;

    border-radius: 14px;

    background: #304fb6;
}

.transactions-tabs__button {
    min-height: 88px;

    padding: 18px 25px;

    border: 0;

    background: #304fb6;
    color: #fff;

    font-family: inherit;
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    font-weight: 800;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        filter 0.25s ease;
}

.transactions-tabs__button.is-active {
    background:
        linear-gradient(
            90deg,
            #5065ad,
            #4c63b3
        );
}

.transactions-tabs__button:hover {
    filter: brightness(1.08);
}


/* =====================================================
   TABLA
===================================================== */

.transactions-table-wrap {
    overflow: hidden;

    border-radius: 14px;

    background: #3153bb;
}

.transactions-table {
    width: 100%;

    border-collapse: collapse;

    color: #fff;
}

.transactions-table thead {
    background:
        linear-gradient(
            90deg,
            #4c62ae,
            #506cc9
        );
}

.transactions-table th {
    padding: 24px 18px;

    color: #fff;

    font-size: clamp(0.9rem, 1.45vw, 1.3rem);
    font-weight: 800;

    text-align: center;
    text-transform: uppercase;
}

.transactions-table td {
    padding: 20px 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    color: #fff;

    font-size: 0.95rem;
    text-align: center;
}

.transactions-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.055);
}


/* =====================================================
   MENSAJE VACÍO
===================================================== */

.transactions-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 125px;

    padding: 25px;

    color: #fff;

    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 800;

    text-align: center;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1150px) {

    .transactions-filter {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .transactions-filter__actions {
        grid-column: 1 / -1;
        justify-content: center;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .transactions-report {
        padding: 32px 12px 20px;

        border-radius: 24px;
    }

    .transactions-report__header {
        margin-bottom: 35px;
    }

    .transactions-report__header h2 {
        font-size: 2rem;
    }

    .transactions-report__header p {
        margin-top: 14px;
        font-size: 1.15rem;
    }


    /* Filtros */

    .transactions-filter {
        grid-template-columns: 1fr;

        gap: 16px;

        margin-bottom: 24px;
    }

    .transactions-filter__actions {
        grid-column: auto;

        display: grid;
        grid-template-columns: repeat(2, 1fr);

        width: 100%;
    }

    .transactions-filter select,
    .transactions-filter input,
    .transactions-filter__button {
        min-height: 58px;

        font-size: 1rem;
    }

    .transactions-filter__button {
        min-width: 0;
        width: 100%;

        padding-inline: 12px;
    }


    /* Tabs */

    .transactions-tabs__button {
        min-height: 65px;

        padding-inline: 10px;

        font-size: 0.9rem;
    }


    /* Tabla en formato cards */

    .transactions-table thead {
        display: none;
    }

    .transactions-table,
    .transactions-table tbody,
    .transactions-table tr,
    .transactions-table td {
        display: block;
        width: 100%;
    }

    .transactions-table tr {
        margin-bottom: 12px;

        padding: 12px;

        border-radius: 10px;

        background: rgba(255, 255, 255, 0.055);
    }

    .transactions-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 20px;

        padding: 10px 5px;

        border-top:
            1px solid rgba(255, 255, 255, 0.08);

        text-align: right;
    }

    .transactions-table td:first-child {
        border-top: 0;
    }

    .transactions-table td::before {
        content: attr(data-label);

        color: rgba(255, 255, 255, 0.72);

        font-size: 0.78rem;
        font-weight: 800;

        text-align: left;
        text-transform: uppercase;
    }

    .transactions-empty {
        min-height: 110px;

        font-size: 0.95rem;
    }

}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

.transactions-filter select:focus-visible,
.transactions-filter input:focus-visible,
.transactions-filter__button:focus-visible,
.transactions-tabs__button:focus-visible {
    outline: 3px solid #ffd000;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .transactions-filter__button,
    .transactions-tabs__button {
        transition: none;
    }

}

/* =====================================================
   REPORTE DE TIQUETES
===================================================== */

.tickets-report {
    width: auto;
    padding: clamp(36px, 4vw, 64px) 20px 34px;

    border: 2px solid #506bd3;
    border-radius: 34px;

    background:
        linear-gradient(
            145deg,
            rgba(2, 2, 17, 0.98),
            rgba(0, 0, 8, 1)
        );

    color: #fff;

    box-shadow:
        0 16px 35px rgba(0, 0, 0, 0.28),
        inset 0 0 30px rgba(62, 76, 183, 0.03);
}


/* =====================================================
   ENCABEZADO
===================================================== */

.tickets-report__header {
    margin-bottom: 52px;
    text-align: center;
}

.tickets-report__header h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(2rem, 3vw, 3.3rem);
    font-weight: 300;
    line-height: 1;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.tickets-report__header p {
    margin: 20px 0 0;

    color: #fff;

    font-size: clamp(1.3rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}


/* =====================================================
   PANEL
===================================================== */

.tickets-report__panel {
    width: 100%;

    overflow: hidden;

    border-radius: 14px;

    background:
        linear-gradient(
            180deg,
            #4465cd,
            #3a59bd
        );

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.18);
}


/* =====================================================
   TÍTULO DEL PANEL
===================================================== */

.tickets-report__panel-title {
    margin: 0;

    padding: 28px 20px;

    color: #fff;

    font-size: clamp(1.1rem, 1.8vw, 1.6rem);
    font-weight: 800;
    line-height: 1;

    letter-spacing: 0.12em;
    text-align: center;
    text-transform: uppercase;
}


/* =====================================================
   TABLA
===================================================== */

.tickets-table-wrap {
    width: 100%;
}

.tickets-table {
    width: 100%;

    border-collapse: collapse;

    color: #fff;
}

.tickets-table thead {
    background:
        linear-gradient(
            90deg,
            #4260c1,
            #4768d0
        );
}

.tickets-table th {
    padding: 24px 18px;

    color: #fff;

    font-size: clamp(0.85rem, 1.3vw, 1.15rem);
    font-weight: 800;

    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tickets-table td {
    padding: 20px 18px;

    border-top:
        1px solid rgba(255, 255, 255, 0.1);

    color: #fff;

    font-size: 0.95rem;
    text-align: center;
}

.tickets-table tbody tr {
    transition:
        background-color 0.22s ease;
}

.tickets-table tbody tr:hover {
    background:
        rgba(255, 255, 255, 0.055);
}


/* =====================================================
   ESTADO VACÍO
===================================================== */

.tickets-empty {
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 110px;

    margin: 0 32px 32px;
    padding: 24px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;

    background:
        linear-gradient(
            90deg,
            rgba(124, 150, 224, 0.65),
            rgba(118, 146, 221, 0.68)
        );

    color: #fff;

    font-size: clamp(1rem, 1.45vw, 1.25rem);
    font-weight: 400;

    text-align: center;
}


/* =====================================================
   ESTADOS DEL TIQUETE
===================================================== */

.ticket-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 92px;

    padding: 8px 14px;

    border-radius: 999px;

    font-size: 0.78rem;
    font-weight: 800;

    text-transform: uppercase;
}

.ticket-status--active {
    background: rgba(26, 190, 94, 0.18);
    color: #9dffc2;
}

.ticket-status--paid {
    background: rgba(255, 208, 0, 0.18);
    color: #ffe66a;
}

.ticket-status--cancelled {
    background: rgba(232, 57, 78, 0.18);
    color: #ff9aa7;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1024px) {

    .tickets-report {
        border-radius: 28px;
    }

    .tickets-table th {
        font-size: 0.82rem;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .tickets-report {
        padding: 32px 12px 22px;

        border-radius: 24px;
    }

    .tickets-report__header {
        margin-bottom: 34px;
    }

    .tickets-report__header h2 {
        font-size: 2rem;
    }

    .tickets-report__header p {
        margin-top: 14px;
        font-size: 1.15rem;
    }

    .tickets-report__panel-title {
        padding: 22px 14px;
        font-size: 1.1rem;
    }


    /* Tabla tipo cards */

    .tickets-table thead {
        display: none;
    }

    .tickets-table,
    .tickets-table tbody,
    .tickets-table tr,
    .tickets-table td {
        display: block;
        width: 100%;
    }

    .tickets-table tbody {
        padding: 12px;
    }

    .tickets-table tr {
        margin-bottom: 12px;
        padding: 12px;

        border-radius: 12px;

        background:
            rgba(255, 255, 255, 0.055);
    }

    .tickets-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;

        gap: 20px;

        padding: 10px 5px;

        border-top:
            1px solid rgba(255, 255, 255, 0.08);

        text-align: right;
    }

    .tickets-table td:first-child {
        border-top: 0;
    }

    .tickets-table td::before {
        content: attr(data-label);

        color: rgba(255, 255, 255, 0.75);

        font-size: 0.72rem;
        font-weight: 800;

        text-align: left;
        text-transform: uppercase;
    }

    .tickets-empty {
        min-height: 95px;

        margin: 12px;
        padding: 20px;

        border-radius: 14px;

        font-size: 0.95rem;
    }

}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 430px) {

    .tickets-report {
        padding-inline: 9px;
    }

    .tickets-table td {
        gap: 12px;
        font-size: 0.86rem;
    }

}


/* =====================================================
   ACCESIBILIDAD
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .tickets-table tbody tr {
        transition: none;
    }

}