/* Orders Report Plugin Styles */

.orders-report-container {
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.orders-report-title {
    color: #23282d;
    font-size: 24px;
    margin-bottom: 15px;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.orders-report-summary {
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.orders-report-summary p {
    margin: 0;
    font-weight: bold;
    color: #555;
    background: white;
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    border-left: 4px solid #0073aa;
}

.orders-report-table-container {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

                .orders-report-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 4px;
    overflow: hidden;
    min-width: 800px;
}.orders-report-table th {
    background: #0073aa;
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
}

.orders-report-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    vertical-align: top;
    white-space: nowrap;
}

.orders-report-table tr:nth-child(even) {
    background: #f9f9f9;
}

.orders-report-table tr:hover {
    background: #f0f8ff;
}

.orders-report-notes {
    max-width: 200px;
    word-wrap: break-word;
    font-style: italic;
    color: #666;
    white-space: normal;
}

.orders-report-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.orders-report-no-results {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
    text-align: center;
}

/* Mobile Card Layout */
@media (max-width: 768px) {
    .orders-report-table-container {
        overflow: visible;
    }
    
    .orders-report-table {
        display: none; /* Hide table on mobile */
    }
    
    .orders-report-mobile-cards {
        display: block;
    }
    
    .orders-report-card {
        background: white;
        border: 1px solid #ddd;
        border-radius: 8px;
        margin-bottom: 15px;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }
    
    .orders-report-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }
    
    .orders-report-card-id {
        font-weight: bold;
        font-size: 16px;
        color: #0073aa;
    }
    
    .orders-report-card-status {
        background: #0073aa;
        color: white;
        padding: 4px 8px;
        border-radius: 4px;
        font-size: 12px;
        text-transform: uppercase;
    }
    
    .orders-report-card-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 8px;
        flex-wrap: wrap;
    }
    
    .orders-report-card-label {
        font-weight: bold;
        color: #555;
        min-width: 100px;
    }
    
    .orders-report-card-value {
        color: #333;
        flex: 1;
        text-align: right;
    }
    
    .orders-report-card-notes {
        background: #f9f9f9;
        padding: 8px;
        border-radius: 4px;
        margin-top: 10px;
        font-style: italic;
        color: #666;
        font-size: 12px;
    }
    
    .orders-report-summary {
        grid-template-columns: 1fr;
    }
    
    .orders-report-title {
        font-size: 20px;
    }
}

/* Desktop - hide mobile cards */
@media (min-width: 769px) {
    .orders-report-mobile-cards {
        display: none;
    }
}

@media (max-width: 480px) {
    .orders-report-container {
        margin: 10px 0;
    }
    
    .orders-report-card {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .orders-report-card-row {
        flex-direction: column;
    }
    
    .orders-report-card-value {
        text-align: left;
        margin-top: 2px;
    }
}

/* Admin Page Styles */
.wrap .orders-report-usage {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 20px;
    margin-top: 20px;
}

.orders-report-usage h2 {
    margin-top: 0;
    color: #23282d;
}

.orders-report-usage ul {
    background: #f7f7f7;
    border-left: 4px solid #0073aa;
    padding: 15px 20px;
    margin: 15px 0;
}

.orders-report-usage code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: 13px;
}