.admin-list-page {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.list-page-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.list-header-copy {
    min-width: 0;
}

.list-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.list-page-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    margin-bottom: 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.08);
    border: 1px solid rgba(29, 78, 216, 0.12);
}

.list-page-header h1 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 2.5vw, 2.35rem);
    color: #0f172a;
}

.list-page-header p {
    margin: 0;
    color: #64748b;
    max-width: 640px;
}

.list-primary-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid #0f3d2e;
    background: #0f3d2e;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 18px 32px rgba(15, 61, 46, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.list-primary-action:hover {
    transform: translateY(-2px);
    background: #1f6f5a;
    color: #fff;
    box-shadow: 0 22px 34px rgba(15, 61, 46, 0.22);
}

.list-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(47, 93, 140, 0.18);
    background: #fff;
    color: #2f5d8c;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.list-secondary-action:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 93, 140, 0.28);
    color: #1d4ed8;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
}

.list-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.list-metric-card,
.list-filters-panel,
.list-table-panel {
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
}

.list-metric-card {
    padding: 18px 20px;
}

.list-metric-card span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}

.list-metric-card strong {
    font-size: 1.8rem;
    color: #0f172a;
}

.list-metric-card strong.is-positive {
    color: #15803d;
}

.list-metric-card strong.is-warning {
    color: #b45309;
}

.list-metric-card strong.is-danger {
    color: #b91c1c;
}

.list-filters-panel {
    padding: 18px;
}

.list-filters-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.list-filters-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.list-filters-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.list-filters-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.list-filters-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(190px, 1fr)) auto;
    gap: 14px;
    align-items: end;
}

.list-filter-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-filter-search {
    min-width: 0;
}

.list-field-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.list-search-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 14px;
    background: #f8fafc;
}

.list-search-icon {
    color: #64748b;
    display: inline-flex;
}

.list-search-input,
.list-select-input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f8fafc;
    color: #0f172a;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.list-search-input {
    min-height: auto;
    padding: 0;
    border: none;
    background: transparent;
    outline: none;
}

.list-select-input:focus,
.list-search-shell:focus-within {
    border-color: rgba(47, 93, 140, 0.34);
    box-shadow: 0 0 0 4px rgba(74, 127, 181, 0.12);
    background: #fff;
}

.list-filter-actions {
    display: flex;
    align-items: center;
}

.list-clear-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    color: #475569;
    font-weight: 600;
}

.list-table-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px 18px;
    border-bottom: 1px solid rgba(203, 213, 225, 0.75);
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
}

.list-table-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #0f172a;
}

.list-table-head p {
    margin: 6px 0 0;
    color: #64748b;
    font-size: 0.92rem;
}

.list-table-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.list-meta-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(47, 93, 140, 0.06);
    color: #2f5d8c;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.list-table-panel {
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 14px rgba(15, 23, 42, 0.04);
}

.list-table-scroll {
    width: 100%;
    padding: 10px 12px 14px;
    overflow-x: auto;
    overflow-y: visible;
    box-sizing: border-box;
}

.list-data-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0 14px 10px !important;
    background: transparent;
    color: #64748b;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-bottom: none;
}

.list-data-table {
    width: 100%;
    min-width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0 12px;
}

.list-data-table tbody td {
    padding: 16px 14px !important;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    vertical-align: middle;
}

.list-data-table tbody tr {
    transition: transform 0.18s ease, filter 0.18s ease;
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.05));
}

.list-data-table tbody tr:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 16px 26px rgba(15, 23, 42, 0.08));
}

.list-data-table tbody tr:hover td {
    border-top-color: rgba(59, 111, 232, 0.24);
    border-bottom-color: rgba(59, 111, 232, 0.24);
    background: #ffffff;
}

.list-data-table tbody td:first-child {
    padding-left: 18px !important;
    border-left: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 18px 0 0 18px;
}

.list-data-table tbody td:last-child {
    padding-right: 18px !important;
    border-right: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0 18px 18px 0;
}

.list-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.list-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: #fff;
    color: #475569;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.list-icon-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 20px rgba(15, 23, 42, 0.08);
    border-color: rgba(148, 163, 184, 0.42);
    background: #f8fafc;
}

.list-icon-button.is-primary {
    color: #1d4ed8;
}

.list-icon-button.is-danger {
    color: #b91c1c;
}

.list-table-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px 18px;
    color: #64748b;
    font-size: 0.9rem;
    border-top: 1px solid rgba(203, 213, 225, 0.75);
    background: rgba(255, 255, 255, 0.52);
}

.list-cell-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.list-tree-cell {
    position: relative;
    padding-left: calc(var(--depth, 0) * 22px);
}

.list-tree-cell::before {
    content: "";
    position: absolute;
    left: calc(var(--depth, 0) * 22px - 12px);
    top: 50%;
    width: 8px;
    height: 1px;
    background: rgba(148, 163, 184, 0.8);
    transform: translateY(-50%);
    opacity: 0;
}

.list-tree-cell[data-depth]:not([data-depth="0"])::before {
    opacity: 1;
}

.list-cell-main img,
.list-thumb {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.list-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(191, 219, 254, 0.7);
    background:
        linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(239, 246, 255, 0.98));
    color: #1d4ed8;
    font-weight: 800;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.list-cell-copy {
    min-width: 0;
}

.list-cell-title {
    display: block;
    color: #0f172a;
    font-weight: 800;
    font-size: 0.97rem;
}

.list-cell-subtitle {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 0.88rem;
    line-height: 1.45;
}

.list-mono {
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.86rem;
    letter-spacing: -0.01em;
}

.list-status-badge,
.list-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.list-count-badge {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
    border: 1px solid rgba(226, 232, 240, 0.9);
}

.list-inline-stack {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.list-image-text {
    display: block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #64748b;
}

.list-price-value {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
}

.list-data-table .badge.rounded-pill {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.list-data-table tbody td.text-end {
    white-space: nowrap;
}

.list-empty-state {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 280px;
    padding: 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: #64748b;
    text-align: center;
}

.list-empty-state h2,
.list-empty-state p {
    margin: 0;
}

/* =========================================================
   PAGINATION
   ========================================================= */
.list-pagination {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 14px 22px;
    border-top: 1px solid rgba(203, 213, 225, 0.75);
    background: rgba(255, 255, 255, 0.52);
    flex-wrap: wrap;
}

.list-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 8px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #fff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    line-height: 1;
}

.list-page-btn:hover:not(:disabled) {
    border-color: rgba(47, 93, 140, 0.34);
    background: #f1f5f9;
    color: #0f172a;
}

.list-page-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.list-page-btn.is-active {
    background: #0f3d2e;
    border-color: #0f3d2e;
    color: #fff;
    box-shadow: 0 4px 10px rgba(15, 61, 46, 0.2);
}

.list-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 34px;
    color: #94a3b8;
    font-size: 0.875rem;
}

.list-page-info {
    margin-left: auto;
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 1100px) {
    .list-page-header,
    .list-filters-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .list-header-actions,
    .list-table-meta {
        justify-content: flex-start;
    }

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

    .list-table-head,
    .list-filters-head {
        display: grid;
        grid-template-columns: 1fr;
    }

    .list-table-scroll {
        padding: 10px;
    }
}

@media (max-width: 640px) {
    .list-metric-grid {
        grid-template-columns: 1fr;
    }

    .list-primary-action,
    .list-secondary-action {
        width: 100%;
        justify-content: center;
    }

    .list-table-panel {
        border-radius: 20px;
    }

    .list-table-head,
    .list-table-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    .list-table-scroll {
        padding: 8px;
    }
}
