/* =========================
   ADMIN ORDERS PAGE
========================= */

.admin-orders-page {
    width: 100%;
    min-height: calc(100vh - 96px);
    background: #f3f2ee;
    color: #050505;
}

.admin-orders-shell {
    width: min(100% - 32px, 1460px);
    margin: 0 auto;
    padding: clamp(34px, 3.4vw, 58px) 0 clamp(58px, 5vw, 86px);
}

/* =========================
   HEAD
========================= */

.admin-orders-head {
    margin-bottom: clamp(26px, 2.8vw, 42px);
}

.admin-orders-back {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: clamp(18px, 1.8vw, 28px);
    color: #050505;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none;
    transition: color 0.18s ease;
}

.admin-orders-back:hover {
    color: #ff2118;
}

.admin-orders-head__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(22px, 2.6vw, 42px);
    align-items: end;
}

.admin-orders-head__text {
    min-width: 0;
}

.admin-orders-head h1 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(54px, 5.8vw, 104px);
    font-weight: 400;
    line-height: 0.78;
    letter-spacing: -0.085em;
    text-transform: uppercase;
    transform: scaleX(0.96) scaleY(1.1);
    transform-origin: left bottom;
}

.admin-orders-head p {
    max-width: 650px;
    margin: clamp(18px, 1.4vw, 24px) 0 0;
    color: rgba(5, 5, 5, 0.58);
    font-size: clamp(13px, 0.92vw, 16px);
    font-weight: 800;
    line-height: 1.34;
}

/* =========================
   FILTERS
========================= */

.admin-orders-filters {
    margin-bottom: clamp(22px, 2vw, 32px);
    padding: clamp(20px, 2vw, 28px) 0;
    border-top: 1px solid rgba(5, 5, 5, 0.16);
    border-bottom: 1px solid rgba(5, 5, 5, 0.16);
}

.admin-orders-filter-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(220px, 0.34fr) minmax(240px, auto);
    gap: clamp(16px, 1.6vw, 26px);
    align-items: end;
}

.admin-orders-field {
    min-width: 0;
    display: block;
}

.admin-orders-field span {
    display: block;
    margin-bottom: 8px;
    color: rgba(5, 5, 5, 0.54);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-transform: uppercase;
}

.admin-orders-field input,
.admin-orders-field select {
    width: 100% !important;
    height: 42px !important;
    padding: 0 28px 0 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(5, 5, 5, 0.38) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #050505 !important;
    font-size: clamp(14px, 0.95vw, 16px) !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color 0.18s ease;
}

.admin-orders-field input::placeholder {
    color: rgba(5, 5, 5, 0.38);
    font-weight: 900;
    opacity: 1;
}

.admin-orders-field select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.admin-orders-field input:focus,
.admin-orders-field select:focus {
    border-bottom-color: #ff2118 !important;
}

.admin-orders-filter-actions {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(100px, auto);
    gap: 14px;
    align-items: center;
}

.admin-orders-filter-submit {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #050505;
    background: #050505;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: clamp(10px, 0.74vw, 12px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.admin-orders-filter-submit:hover {
    border-color: #ff2118;
    background: #ff2118;
    color: #ffffff;
}

.admin-orders-filter-reset {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(5, 5, 5, 0.62);
    font-family: var(--font-display);
    font-size: clamp(10px, 0.72vw, 12px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.18s ease;
}

.admin-orders-filter-reset span {
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
}

.admin-orders-filter-reset:hover {
    color: #ff2118;
}

/* =========================
   TABLE CARD
========================= */

.admin-orders-table-card {
    width: 100%;
    border: 1px solid rgba(5, 5, 5, 0.16);
    background: rgba(255, 255, 255, 0.14);
}

.admin-orders-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.admin-orders-table {
    width: 100%;
    border-collapse: collapse;
    color: #050505;
}

.admin-orders-table thead {
    border-bottom: 2px solid rgba(5, 5, 5, 0.86);
}

.admin-orders-table th {
    padding: 18px clamp(14px, 1.3vw, 22px);
    color: rgba(5, 5, 5, 0.56);
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.012em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-orders-table td {
    padding: 18px clamp(14px, 1.3vw, 22px);
    border-bottom: 1px solid rgba(5, 5, 5, 0.12);
    color: #050505;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    vertical-align: middle;
}

.admin-orders-table tbody tr {
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.admin-orders-table tbody tr:hover {
    background: rgba(255, 33, 24, 0.04);
}

.admin-orders-table tbody tr:last-child td {
    border-bottom: 0;
}

/* =========================
   TABLE CONTENT
========================= */

.admin-orders-code {
    color: #050505;
    font-size: 15px;
    font-weight: 900;
    line-height: 1.2;
    white-space: nowrap;
}

.admin-orders-movie,
.admin-orders-session,
.admin-orders-client {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-orders-movie strong,
.admin-orders-session strong,
.admin-orders-client strong {
    color: #050505;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.22;
}

.admin-orders-movie span,
.admin-orders-session span,
.admin-orders-client span {
    color: rgba(5, 5, 5, 0.56);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
}

.admin-orders-status {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(5, 5, 5, 0.18);
    color: #050505;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-orders-status--booked {
    border-color: rgba(211, 139, 0, 0.3);
    background: rgba(211, 139, 0, 0.08);
    color: #b87400;
}

.admin-orders-status--paid {
    border-color: rgba(16, 139, 54, 0.28);
    background: rgba(16, 139, 54, 0.08);
    color: #108b36;
}

.admin-orders-status--used {
    border-color: rgba(5, 5, 5, 0.28);
    background: rgba(5, 5, 5, 0.08);
    color: #050505;
}

.admin-orders-status--cancelled,
.admin-orders-status--expired,
.admin-orders-status--refunded {
    border-color: rgba(213, 0, 0, 0.28);
    background: rgba(213, 0, 0, 0.07);
    color: #d50000;
}

.admin-orders-price {
    color: #050505;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.admin-orders-table__action {
    text-align: right;
}

.admin-orders-open {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(5, 5, 5, 0.28);
    color: #050505;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.admin-orders-open:hover {
    border-color: #ff2118;
    background: #ff2118;
    color: #ffffff;
}

/* =========================
   EMPTY
========================= */

.admin-orders-empty {
    padding: clamp(26px, 3vw, 42px);
    text-align: center;
}

.admin-orders-empty h2 {
    margin: 0;
    color: #050505;
    font-family: var(--font-display);
    font-size: clamp(28px, 2.4vw, 42px);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.admin-orders-empty p {
    max-width: 420px;
    margin: 12px auto 0;
    color: rgba(5, 5, 5, 0.56);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1080px) {
    .admin-orders-filter-form {
        grid-template-columns: 1fr 1fr;
    }

    .admin-orders-filter-actions {
        grid-column: 1 / -1;
        width: fit-content;
    }
}

@media (max-width: 760px) {
    .admin-orders-shell {
        width: min(100% - 18px, 1460px);
        padding-top: 26px;
        padding-bottom: 52px;
    }

    .admin-orders-head h1 {
        font-size: clamp(44px, 15vw, 70px);
        transform: scaleX(0.98) scaleY(1.08);
    }

    .admin-orders-head p {
        font-size: 13px;
    }

    .admin-orders-filter-form {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .admin-orders-filter-actions {
        width: 100%;
        grid-template-columns: 1fr;
    }

    .admin-orders-table-card {
        border: 0;
        background: transparent;
    }

    .admin-orders-table-wrap {
        overflow: visible;
    }

    .admin-orders-table,
    .admin-orders-table thead,
    .admin-orders-table tbody,
    .admin-orders-table th,
    .admin-orders-table td,
    .admin-orders-table tr {
        display: block;
    }

    .admin-orders-table thead {
        display: none;
    }

    .admin-orders-table tbody {
        display: grid;
        gap: 12px;
    }

    .admin-orders-table tr {
        border: 1px solid rgba(5, 5, 5, 0.16);
        background: rgba(255, 255, 255, 0.14);
    }

    .admin-orders-table td {
        display: grid;
        grid-template-columns: 118px minmax(0, 1fr);
        gap: 14px;
        padding: 13px 14px;
        border-bottom: 1px solid rgba(5, 5, 5, 0.1);
        text-align: left !important;
    }

    .admin-orders-table td::before {
        content: attr(data-label);
        color: rgba(5, 5, 5, 0.54);
        font-family: var(--font-display);
        font-size: 9px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: -0.012em;
        text-transform: uppercase;
    }

    .admin-orders-table td:last-child {
        border-bottom: 0;
    }

    .admin-orders-open {
        width: 100%;
        min-height: 38px;
    }
}

@media (max-width: 420px) {
    .admin-orders-shell {
        width: min(100% - 14px, 1460px);
    }

    .admin-orders-head h1 {
        font-size: 40px;
        transform: none;
    }

    .admin-orders-table td {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}