/* style.css */
#wc-order-list-container {
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
}

#wc-order-filter-form {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

#wc-order-filter-form select,
#wc-order-filter-form input[type="text"],
#wc-order-filter-form input[type="datetime-local"],
#wc-order-filter-form button {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#wc-order-filter-form button {
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

#wc-order-filter-form button:hover {
    background-color: #45a049;
}

#wc-order-refresh {
    background-color: #008CBA !important;
}

#wc-order-refresh:hover {
    background-color: #007B9A !important;
}

/* Nuevo diseño de cuadrícula para las tarjetas de pedidos */
#wc-order-list-card-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
    padding: 20px 0;
}

.order-card {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-card h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.order-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: bold;
    margin-bottom: 10px;
}

.order-status-processing {
    background-color: #f8dda7;
    color: #94660c;
}

.order-status-completed {
    background-color: #c6e1c6;
    color: #5b841b;
}

.order-status-ready {
    background-color: #c8d7e1;
    color: #2e4453;
}

.order-status-out-for-delivery {
    background-color: #ffe0b2;
    color: #e65100;
}

.order-status-delivered {
    background-color: #e8f5e9;
    color: #1b5e20;
}

.order-details p {
    margin: 5px 0;
}

.product-list {
    margin-top: 10px;
}

.product-item {
    padding: 5px;
    margin-bottom: 5px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-item:nth-child(odd) {
    background-color: #f0f0f0;
}

.product-item:nth-child(even) {
    background-color: #e0e0e0;
}

.product-status-processing {
    border-left: 4px solid #f8dda7;
}

.product-status-ready {
    border-left: 4px solid #c6e1c6;
}

.product-ready-button,
.action-buttons button {
    padding: 5px 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
    color: white;
}

.product-ready-button {
    background-color: #4CAF50;
}

.action-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.action-buttons .ready-button {
    background-color: #4CAF50;
}

.action-buttons .out-for-delivery-button {
    background-color: #FF9800;
}

.action-buttons .delivered-button {
    background-color: #2196F3;
}

.order-time {
    font-weight: bold;
}

.order-time.green {
    color: #4CAF50;
}

.order-time.yellow {
    color: #FFC107;
}

.order-time.red {
    color: #F44336;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    padding: 5px 10px;
    margin: 0 5px;
    border: 1px solid #ddd;
    background-color: #f8f8f8;
    cursor: pointer;
}

.pagination button:hover {
    background-color: #ddd;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    #wc-order-list-card-container {
        grid-template-columns: repeat(3, 1fr); /* 3 columns for smaller desktops/tablets */
    }
}

@media (max-width: 768px) {
    #wc-order-list-card-container {
        grid-template-columns: repeat(2, 1fr); /* 2 columns for tablets and mobile */
    }
    
    #wc-order-filter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #wc-order-list-card-container {
        grid-template-columns: 1fr; /* 1 column for very small screens */
    }
}