/* =========================
   ADMIN MODEL LIST PAGE
========================= */

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

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

.admin-list-bulk-form {
    width: 100%;
    margin: 0;
}

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

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

.admin-list-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-list-back:hover {
    color: #ff2118;
}

.admin-list-head__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
    gap: clamp(24px, 3vw, 52px);
    align-items: end;
}

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

.admin-list-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-list-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;
}

/* =========================
   TOP ACTIONS
========================= */

.admin-list-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 9px;
}

.admin-list-action {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 17px;
    border-radius: 0;
    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;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.admin-list-action span {
    font-family: Arial, sans-serif;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
}

.admin-list-action--main {
    border: 1px solid #ff2118;
    background: #ff2118;
    color: #ffffff;
}

.admin-list-action--main:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.admin-list-action--ghost {
    border: 1px solid rgba(5, 5, 5, 0.28);
    background: transparent;
    color: #050505;
}

.admin-list-action--ghost:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.admin-list-action--danger {
    border: 1px solid rgba(213, 0, 0, 0.36);
    background: transparent;
    color: #d50000;
}

.admin-list-action--danger:hover {
    border-color: #d50000;
    background: #d50000;
    color: #ffffff;
}

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

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

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

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

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

.admin-list-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-list-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-list-table tbody tr {
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

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

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

.admin-list-table__actions-head,
.admin-list-table__actions-cell {
    text-align: right !important;
}

.admin-list-table__checkbox-cell {
    width: 46px;
    padding-left: 18px !important;
    padding-right: 8px !important;
}

/* =========================
   CHECKBOX
========================= */

.admin-list-checkbox-label {
    position: relative;
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    cursor: pointer;
}

.admin-list-checkbox-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.admin-list-checkbox-label span {
    width: 20px;
    height: 20px;
    display: block;
    border: 1px solid rgba(5, 5, 5, 0.34);
    background: transparent;
    transition:
        background 0.18s ease,
        border-color 0.18s ease;
}

.admin-list-checkbox-label input:checked + span {
    border-color: #ff2118;
    background: #ff2118;
}

.admin-list-checkbox-label input:checked + span::after {
    content: "";
    width: 7px;
    height: 11px;
    display: block;
    margin: 3px auto 0;
    border-right: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(45deg);
}

/* =========================
   ROW ACTIONS
========================= */

.admin-list-row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 7px;
}

.admin-list-row-action {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px;
    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-list-row-action:hover {
    border-color: #050505;
    background: #050505;
    color: #ffffff;
}

.admin-list-row-action--danger {
    border-color: rgba(213, 0, 0, 0.34);
    color: #d50000;
}

.admin-list-row-action--danger:hover {
    border-color: #d50000;
    background: #d50000;
    color: #ffffff;
}

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

.admin-list-empty {
    padding: clamp(28px, 3vw, 46px);
    text-align: center;
}

.admin-list-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-list-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-list-head__row {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .admin-list-actions {
        justify-content: flex-start;
    }
}

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

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

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

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

    .admin-list-action {
        width: 100%;
        min-height: 42px;
    }

    .admin-list-table-card {
        background: transparent;
    }

    .admin-list-table-wrap {
        overflow-x: auto;
    }

    .admin-list-table {
        min-width: 760px;
    }

    .admin-list-table th,
    .admin-list-table td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .admin-list-row-actions {
        justify-content: flex-end;
    }
}

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

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

    .admin-list-table {
        min-width: 720px;
    }
}