/* Commissions Ledger Responsive Styles */

/* Filter Section */
.posh-comm-filters {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin: 20px 0;
}

.posh-comm-filters h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.posh-comm-filters form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: end;
}

.posh-comm-filters > div {
    display: flex;
    flex-direction: column;
}

.posh-comm-filters label {
    font-weight: 600;
    margin-bottom: 5px;
    color: #555;
}

.posh-comm-filters input[type="date"] {
    width: 150px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.posh-comm-filters input[type="checkbox"] {
    margin-right: 8px;
}

.posh-comm-filters button {
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-weight: 600;
}

.posh-comm-filters button:hover {
    background: #005a87;
}

/* Transaction Types Checkboxes */
.posh-comm-filters .transaction-types {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Quick Filter Buttons */
.posh-comm-filters .quick-filters {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.posh-comm-filters .quick-filters button {
    padding: 5px 10px;
    font-size: 12px;
    background: #666;
}

.posh-comm-filters .quick-filters button:hover {
    background: #555;
}

/* Table Styles */
.posh-comm-history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.posh-comm-history table th,
.posh-comm-history table td {
    padding: 12px 8px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.posh-comm-history table th {
    background: #f1f1f1;
    font-weight: 600;
    color: #333;
}

.posh-comm-history table tr:hover {
    background: #f9f9f9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .posh-comm-filters form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .posh-comm-filters > div {
        margin-bottom: 15px;
    }
    
    .posh-comm-filters input[type="date"] {
        width: 100%;
    }
    
    .posh-comm-filters .transaction-types {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .posh-comm-filters .quick-filters {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
    }
    
    /* Hide less important columns on mobile */
    .posh-comm-history table th:nth-child(5), /* QV */
    .posh-comm-history table td:nth-child(5),
    .posh-comm-history table th:nth-child(6), /* CV */
    .posh-comm-history table td:nth-child(6),
    .posh-comm-history table th:nth-child(7), /* Rank */
    .posh-comm-history table td:nth-child(7),
    .posh-comm-history table th:nth-child(8) { /* Rate */
        display: none;
    }
    
    .posh-comm-history table td:nth-child(8) {
        display: none;
    }
    
    /* Make remaining columns more prominent */
    .posh-comm-history table th,
    .posh-comm-history table td {
        padding: 8px 4px;
        font-size: 14px;
    }
    
    .posh-comm-history table th:nth-child(1), /* Date */
    .posh-comm-history table td:nth-child(1) {
        min-width: 80px;
    }
    
    .posh-comm-history table th:nth-child(2), /* Type */
    .posh-comm-history table td:nth-child(2) {
        min-width: 100px;
    }
    
    .posh-comm-history table th:nth-child(3), /* Description */
    .posh-comm-history table td:nth-child(3) {
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .posh-comm-history table th:nth-child(4), /* Order # */
    .posh-comm-history table td:nth-child(4) {
        display: none;
    }
    
    .posh-comm-history table th,
    .posh-comm-history table td {
        padding: 6px 2px;
        font-size: 12px;
    }
    
    .posh-comm-filters {
        padding: 10px;
    }
    
    .posh-comm-filters h4 {
        font-size: 16px;
    }
}