/**
 * PMOR Reports Admin Styles
 */

.pmor-reports-container {
    margin-top: 20px;
}

.pmor-reports-filters {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.pmor-reports-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.pmor-reports-filter {
    margin-bottom: 10px;
    min-width: 200px;
}

.pmor-reports-filter label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.pmor-reports-filter select,
.pmor-reports-filter input[type="text"] {
    width: 100%;
}

.pmor-reports-filter.has-condition {
    display: none;
}

.pmor-reports-filter-actions {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.pmor-reports-summary {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.pmor-reports-summary-item {
    margin-right: 20px;
}

.pmor-reports-summary-label {
    font-weight: 600;
    margin-right: 5px;
}

.pmor-reports-summary-value {
    font-size: 1.2em;
}

.pmor-reports-summary-value .percentage {
    font-size: 0.85em;
    color: #757575;
    margin-left: 5px;
    font-style: italic;
}

.pmor-reports-content {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 4px;
    padding: 15px;
}

.pmor-reports-table {
    width: 100%;
    border-collapse: collapse;
}

.pmor-reports-table th {
    text-align: left;
    padding: 10px;
    border-bottom: 1px solid #ccd0d4;
    font-weight: 600;
}

.pmor-reports-table td {
    padding: 10px;
    border-bottom: 1px solid #f0f0f1;
}

.pmor-reports-table tr:last-child td {
    border-bottom: none;
}

.pmor-reports-table .order_id {
    width: 100px;
}

.pmor-reports-table .order_amount {
    width: 150px;
}

.pmor-reports-no-data {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #757575;
}

/* Pagination */
.pmor-reports-pagination {
    margin-top: 15px;
}

.pmor-reports-pagination .tablenav-pages {
    float: right;
    margin: 0;
}

.pmor-reports-pagination .tablenav-pages .pagination-links {
    margin-left: 10px;
}

.pmor-reports-pagination .tablenav-pages .button {
    padding: 0 10px;
    font-size: 16px;
    line-height: 1.5;
}

.pmor-reports-pagination .tablenav-pages .button.disabled {
    color: #a0a5aa;
    border-color: #ddd;
    background: #f7f7f7;
    box-shadow: none;
    cursor: default;
    transform: none;
}

.pmor-reports-pagination .paging-input {
    margin: 0 6px;
    vertical-align: middle;
}

.pmor-reports-pagination .current-page {
    width: 40px;
    height: 30px;
    vertical-align: middle;
    text-align: center;
}

/* Date Picker Styling */
.ui-datepicker {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.075) !important;
}

.ui-datepicker-header {
    background-color: #f7f7f7 !important;
    border-bottom: 1px solid #ddd !important;
}

.ui-datepicker-calendar {
    background-color: #fff !important;
}

.ui-datepicker-calendar td {
    background-color: #fff !important;
}

.ui-datepicker-calendar td a {
    background-color: #fff !important;
}

.ui-datepicker-calendar td a.ui-state-active {
    background-color: #0073aa !important;
    color: #fff !important;
}

.ui-datepicker-calendar td a.ui-state-hover {
    background-color: #f0f0f0 !important;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    .pmor-reports-filter {
        width: 100%;
    }
    
    .pmor-reports-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .pmor-reports-summary-item {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .pmor-reports-pagination .tablenav-pages {
        float: none;
        text-align: center;
        margin-top: 10px;
    }
}

/* End of styles */
