
.orderp-admin-wrap {
    max-width: 1200px;
}

.orderp-statuses-container {
    margin-top: 20px;
}

.orderp-status-item {
    background: #fff;
    border: 1px solid #ccd0d4;
    margin-bottom: 10px;
    border-radius: 4px;
}

.orderp-status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.orderp-status-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orderp-status-color {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-block;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #ccc;
}

.orderp-status-icon {
    font-size: 18px;
}

.orderp-status-label {
    font-weight: 600;
    font-size: 16px;
}

.orderp-status-key {
    color: #666;
    font-size: 12px;
}

.orderp-status-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.orderp-drag-handle {
    cursor: move;
    color: #ccc;
    font-size: 18px;
}

.orderp-status-details {
    padding: 20px;
    background: #f9f9f9;
}

.orderp-sort-placeholder {
    background: #f0f8ff;
    border: 2px dashed #0073aa;
    height: 60px;
    margin-bottom: 10px;
    border-radius: 4px;
}

.orderp-no-statuses,
.orderp-no-rules {
    text-align: center;
    padding: 40px;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
}

/* Modal Styles */
.orderp-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.orderp-modal-content {
    background-color: #fff;
    border-radius: 4px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.orderp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.orderp-modal-header h2 {
    margin: 0;
}

.orderp-modal-close {
    cursor: pointer;
    font-size: 24px;
    color: #666;
}

.orderp-modal-close:hover {
    color: #000;
}

.orderp-modal-body {
    padding: 20px;
}

/* Quick Status Change */
.orderp-quick-status-change {
    min-width: 150px;
}

.orderp-loading {
    margin-left: 5px;
    font-size: 16px;
}

/* Email Template Row */
.orderp-email-template-row {
    background: #f9f9f9;
}

/* Rule Status */
.orderp-rule-status {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.orderp-rule-status.active {
    background: #d4edda;
    color: #155724;
}

.orderp-rule-status.inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Conditions */
.orderp-condition {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.orderp-condition select,
.orderp-condition input {
    flex: 1;
}

/* RTL Support */
[dir="rtl"] .orderp-status-info {
    flex-direction: row-reverse;
}

[dir="rtl"] .orderp-status-actions {
    flex-direction: row-reverse;
}

[dir="rtl"] .orderp-modal-header {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 768px) {
    .orderp-modal-content {
        width: 95%;
    }
    
    .orderp-status-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .orderp-condition {
        flex-direction: column;
    }
}

/* Color picker styling */
input[type="color"] {
    width: 50px;
    height: 30px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Form improvements */
.orderp-status-form .form-table th {
    width: 150px;
}

.orderp-status-form .description {
    font-style: italic;
    color: #666;
}

/* Loading states */
.orderp-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.orderp-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: orderp-spin 1s linear infinite;
}

@keyframes orderp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status colors in orders list */
.order-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

/* Bulk actions styling */
.orderp-bulk-notice {
    margin: 15px 0;
}

/* Email template variables help */
.orderp-template-vars {
    background: #f0f8ff;
    border: 1px solid #c3d9ff;
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.orderp-template-vars h4 {
    margin: 0 0 5px 0;
    color: #0073aa;
}

.orderp-template-vars code {
    background: #fff;
    padding: 2px 4px;
    border-radius: 2px;
    margin: 2px;
    display: inline-block;
}