/**
 * Vendor listings dashboard.
 */

.ht-manage-listings {
    max-width: 1100px;
    margin: 0 auto;
}

.ht-listings-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.ht-listings-header h2 {
    margin: 0;
}

.ht-listings-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.ht-stat {
    padding: 16px;
    text-align: center;
    background: #f6f7f7;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
}

.ht-stat--total {
    background: #f0f8ff;
    border-color: #b8dff5;
}

.ht-stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    color: #1d2327;
}

.ht-stat-label {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #646970;
}

.ht-subscription-status {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #f0f8ff;
    border-left: 4px solid #007cba;
    border-radius: 4px;
}

.ht-subscription-status p {
    margin: 0;
}

.ht-listings-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

.ht-listings-table th,
.ht-listings-table td {
    padding: 12px;
    border-bottom: 1px solid #e2e4e7;
    text-align: left;
    vertical-align: top;
}

.ht-listings-table th {
    font-size: 13px;
    font-weight: 600;
    color: #646970;
    background: #f6f7f7;
}

.ht-col-image img,
.ht-col-image .ht-no-image {
    width: 64px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
}

.ht-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    font-size: 11px;
    color: #666;
}

.ht-trailer-meta {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    color: #646970;
}

.ht-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ht-badge--publish {
    background: #edf9f0;
    color: #1e602e;
}

.ht-badge--pending {
    background: #fff8e5;
    color: #6b4f00;
}

.ht-badge--draft {
    background: #f0f0f1;
    color: #50575e;
}

.ht-badge--sold {
    background: #d63638;
    color: #fff;
    margin-left: 8px;
}

.ht-row-sold {
    opacity: 0.75;
}

.ht-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ht-pagination {
    margin-top: 16px;
}

.ht-pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
}

.ht-pagination .current {
    background: #007cba;
    border-color: #007cba;
    color: #fff;
}

@media (max-width: 768px) {
    .ht-listings-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
