/* Orders Table Styles */
.orders-table {
    margin-top: 4rem;
}

.orders-table h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--black);
}

.orders-table table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table table thead {
    background-color: var(--orange);
    color: var(--white);
}

.orders-table table th,
.orders-table table td {
    text-align: left;
    padding: 1rem;
    border-bottom: 1px solid #ccc;
}

.orders-table table tbody tr:hover {
    background-color: #f9f9f9;
}

.status {
    padding: 0.5rem 1rem;
    border-radius: 5px;
    color: var(--white);
    font-size: 1.4rem;
}

.status.delivered {
    background-color: green;
}

.status.pending {
    background-color: orange;
}

.status.returned {
    background-color: red;
}

/* Responsive Adjustments for Orders Table */
@media only screen and (max-width: 768px) {
    .orders-table table thead {
        display: none;
    }

    .orders-table table,
    .orders-table table tbody,
    .orders-table table tr,
    .orders-table table td {
        display: block;
        width: 100%;
    }

    .orders-table table tr {
        margin-bottom: 1rem;
    }

    .orders-table table td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .orders-table table td::before {
        content: attr(data-label);
        position: absolute;
        left: 0;
        width: 50%;
        padding-left: 1rem;
        font-weight: bold;
        text-align: left;
    }
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.orders-table select {
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
}

.orders-table select:focus {
    outline: none;
    border-color: var(--orange);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}