/* Détails commande */
.wcv-order-details {
    max-width: 900px;
    margin: 0 auto;
}

.wcv-order-summary {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.wcv-order-meta p {
    margin: 0.3rem 0;
}

.wcv-order-status {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 0.9em;
    text-transform: capitalize;
}

.status-processing {
    background: #fff8e1;
    color: #e65100;
}

.status-completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-pending {
    background: #ffebee;
    color: #c62828;
}

/* Tableau articles */
.wcv-order-items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.wcv-order-items-table th,
.wcv-order-items-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wcv-order-items-table img {
    max-width: 40px;
    height: auto;
    vertical-align: middle;
    margin-right: 10px;
}

.wcv-order-items-table small {
    color: #666;
}

/* Totals */
.wcv-order-totals-table {
    width: 100%;
    max-width: 300px;
    margin-left: auto;
}

.wcv-order-totals-table tr.wcv-total td {
    border-top: 2px solid #000;
}

/* Note client */
.wcv-customer-note {
    background: #fff8e1;
    padding: 1rem;
    border-left: 4px solid #ffb300;
    margin: 1.5rem 0;
}

.wcv-customer-note h3 {
    margin-top: 0;
}

/* Responsive */
@media (max-width: 768px) {

    .wcv-order-items-table,
    .wcv-order-totals-table {
        font-size: 0.9rem;
    }

    .wcv-order-items-table thead {
        display: none;
    }

    .wcv-order-items-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding-bottom: 1rem;
        border-bottom: 1px solid #eee;
    }

    .wcv-order-items-table tbody td {
        display: flex;
        justify-content: space-between;
        padding: 0.25rem 0;
    }

    .wcv-order-items-table tbody td:before {
        content: attr(data-label) ": ";
        font-weight: bold;
    }
}

/* Grille de cartes */
.wcv-stats-cards {
    display: grid;
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.wcv-stats-grid-cols-1 {
    grid-template-columns: 1fr;
}

.wcv-stats-grid-cols-2 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.wcv-stats-grid-cols-3 {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.wcv-stats-grid-cols-4 {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.wcv-stat-card {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.25rem;
    text-align: center;
}

.wcv-stat-card h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #666;
    font-weight: 600;
}

.wcv-stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2271b1;
    margin: 0;
}

/* Tableau */
.wcv-stats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.wcv-stats-table th,
.wcv-stats-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.wcv-stats-table th {
    background: #f6f7f7;
    font-weight: 600;
}

/* Liste */
.wcv-stats-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.wcv-stat-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.wcv-stat-item:last-child {
    border-bottom: none;
}

.wcv-stat-label {
    font-weight: 600;
    color: #333;
}

.wcv-stat-value {
    font-weight: bold;
    color: #2271b1;
}

/* Responsive */
@media (max-width: 768px) {
    .wcv-stats-cards {
        grid-template-columns: 1fr !important;
    }

    .wcv-stat-card h3 {
        font-size: 0.9rem;
    }

    .wcv-stat-value {
        font-size: 1.25rem;
    }
}