/* Warehouse Orders Admin Styles */
.warehouse-orders-wrapper {
    direction: rtl;
    font-family: 'Tahoma', Arial, sans-serif;
}

.wo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wo-table th,
.wo-table td {
    padding: 12px 15px;
    text-align: right;
    border-bottom: 1px solid #e1e1e1;
}

.wo-table th {
    background: #f8f9fa;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.wo-table tbody tr:hover {
    background: #f8f9fa;
}

.wo-order-items {
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.wo-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: #f9f9f9;
    border-radius: 4px;
    border-right: 3px solid #0073aa;
}

.wo-item-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid #ddd;
    transition: transform 0.2s;
}

.wo-item-image:hover {
    transform: scale(1.05);
}

.wo-item-info {
    flex: 1;
    font-size: 12px;
}

.wo-item-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 2px;
}

.wo-item-sku {
    color: #666;
    font-size: 11px;
}

.wo-item-quantity {
    color: #0073aa;
    font-weight: bold;
}

/* Print Button */
.wo-print-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 20px 0;
    transition: background 0.3s;
}

.wo-print-btn:hover {
    background: #005a87;
}

.wo-print-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Selection Styles */
.wo-select-all {
    margin: 20px 0;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wo-select-all input[type="checkbox"] {
    transform: scale(1.2);
}

.wo-select-all label {
    margin: 0;
    font-weight: bold;
    color: #333;
}

/* Status Badge */
.wo-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.wo-status.processing {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.wo-status.on-hold {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wo-status.completed {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wo-status.pending {
    background: #cce5ff;
    color: #004085;
    border: 1px solid #b3d7ff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .wo-table {
        font-size: 13px;
    }
    
    .wo-table th,
    .wo-table td {
        padding: 8px 10px;
    }
}

@media (max-width: 768px) {
    .wo-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .wo-table th,
    .wo-table td {
        min-width: 120px;
    }
    
    .wo-order-items {
        max-width: 150px;
    }
    
    .wo-item-image {
        width: 30px;
        height: 30px;
    }
}

/* CSV Import Page */
.wo-csv-import-wrapper {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wo-csv-import-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.wo-csv-file-input {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    text-align: center;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s;
}

.wo-csv-file-input:hover {
    border-color: #0073aa;
    background: #f0f8ff;
}

.wo-csv-file-input input[type="file"] {
    display: none;
}

.wo-import-button {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.wo-import-button:hover {
    background: #218838;
}

.wo-import-button:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

/* Messages */
.wo-message,
.wo-error {
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-weight: bold;
}

.wo-message {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wo-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading Animation */
.wo-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Meta Box */
#warehouse_address {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: inherit;
    direction: rtl;
}

#warehouse_address:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}


.warehouse-settings-wrap h2.title {
    margin-top: 2rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}
.warehouse-settings-wrap .ltr-input {
    direction: ltr;
    text-align: left;
    width: 350px;
}
.warehouse-settings-wrap table {
    margin-bottom: 2rem;
}

