.seomur-woo-orders {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    color: #333;
    overflow-x: auto;
}

.seomur-generation-time {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    text-align: right;
}

.seomur-orders-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
}

.seomur-table-header {
    display: table-row;
    font-weight: 600;
    background-color: #f5f5f5;
}

.seomur-table-header .seomur-header-item {
    display: table-cell;
    padding: 12px 15px;
    border-bottom: 2px solid #ddd;
    text-align: center;
}

.seomur-order-row {
    display: table-row;
    border-bottom: 1px solid #eee;
}

.seomur-order-row:nth-child(even) {
    background-color: #f9f9f9;
}

.seomur-order-row.has-user-discount {
    background-color: #f0f8ff !important;
}

.seomur-order-row.has-warning {
    background-color: #ffebee !important;
}

.seomur-order-cell {
    display: table-cell;
    padding: 12px 15px;
    vertical-align: middle;
    text-align: center;
}

.seomur-status-icon {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    text-align: center;
    line-height: 22px;
    font-weight: bold;
}

.seomur-success {
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
}

.seomur-warning {
    color: #FFC107;
    background-color: rgba(255, 193, 7, 0.1);
}

.seomur-empty {
    color: #999;
}

.seomur-discount-rub {
    color: #2196F3;
    font-weight: bold;
}

.seomur-discount-bonus {
    color: #FF9800;
    font-weight: bold;
}

.seomur-admin-link-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.seomur-admin-link {
    color: #2271b1;
    text-decoration: none;
}

.seomur-order-time {
    font-size: 0.85em;
    color: #666;
}

.seomur-guest-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.seomur-guest-name {
    font-weight: 500;
}

.seomur-guest-phone {
    font-size: 0.85em;
    color: #666;
}

.seomur-update-iiko-btn {
    background: #2196F3;
    color: white;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    transition: background 0.3s;
}

.seomur-update-iiko-btn:hover {
    background: #0d8aee;
}

.seomur-update-iiko-btn .dashicons {
    font-size: 16px;
}

.seomur-update-iiko-btn.processing {
    background: #757575;
}

.seomur-update-iiko-btn.processing .dashicons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .seomur-orders-table,
    .seomur-table-header,
    .seomur-order-row,
    .seomur-order-cell {
        display: block;
    }
    
    .seomur-table-header {
        display: none;
    }
    
    .seomur-order-row {
        margin-bottom: 20px;
        padding: 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
    }
    
    .seomur-order-cell {
        display: flex;
        justify-content: space-between;
        padding: 8px 5px;
        border-bottom: 1px solid #eee;
        text-align: left;
    }
    
    .seomur-order-cell:last-child {
        border-bottom: none;
    }
    
    .seomur-order-cell::before {
        content: attr(data-label);
        font-weight: 600;
        color: #555;
        margin-right: 10px;
    }

    .seomur-admin-link-wrap {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .seomur-guest-info {
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
}