/*
 * SDEO: Universal Status Badge Styles (v2.1 - THE FINAL FIX)
 * This file styles all status indicators across the entire dashboard
 * and provides the definitive fix for hiding the "Order again" button.
 */

/* --- The Definitive "Order Again" Button Fix --- */
.woocommerce-order-details .order_again, 
form.order_again {
    display: none !important;
}

/* --- Base Style for All Status Badges --- */
.sdeo-status-badge {
    display: inline-block;
    padding: .35em .7em;
    font-size: 0.8em;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 10rem;
    text-transform: capitalize;
    /* Default Grey Fallback */
    color: #383d41;
    background-color: #e2e3e5;
    border: 1px solid #d6d8db;
}

/* --- Color Variations (These override the default grey) --- */

/* GREEN (Success) */
.sdeo-status-badge.sdeo-status-completed,
.sdeo-status-badge.sdeo-status-approved {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* RED (Danger/Cancelled) */
.sdeo-status-badge.sdeo-status-cancelled,
.sdeo-status-badge.sdeo-status-rejected,
.sdeo-status-badge.sdeo-status-declined,
.sdeo-status-badge.sdeo-status-failed,
.sdeo-status-badge.sdeo-status-refunded {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* YELLOW / ORANGE (Pending/In Progress) */
.sdeo-status-badge.sdeo-status-pending,
.sdeo-status-badge.sdeo-status-pending-payment,
.sdeo-status-badge.sdeo-status-on-hold,
.sdeo-status-badge.sdeo-status-processing,
.sdeo-status-badge.sdeo-status-review {
    color: #856404;
    background-color: #fff3cd;
    border-color: #ffeeba;
}