.commission-manager {
    max-width: 1200px;
    margin: 0 auto;
}

.commission-manager .form-group {
    margin-bottom: 20px;
}

.commission-manager label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.commission-manager input[type="text"],
.commission-manager input[type="number"],
.commission-manager input[type="email"],
.commission-manager input[type="tel"],
.commission-manager select,
.commission-manager textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.broker-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    flex: 1;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin-top: 0;
    color: #555;
}

.stat-card p {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 0;
}

.commission-table {
    width: 100%;
    border-collapse: collapse;
}

.commission-table th,
.commission-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.commission-table th {
    background-color: #f5f5f5;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: capitalize;
}

.status-pending {
    background-color: #fff8e5;
    color: #ffb900;
}

.status-approved {
    background-color: #e5f7ee;
    color: #00a32a;
}

.status-paid {
    background-color: #e5f0ff;
    color: #0066cc;
}

/* Commission Filters */
.commission-filters {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-group {
    display: inline-block;
    margin-right: 15px;
    margin-bottom: 10px;
}

.filter-group label {
    display: inline-block;
    margin-right: 5px;
    font-weight: normal;
}

/* Summary Cards */
.commission-summary, .dashboard-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.summary-card, .stat-card {
    flex: 1;
    min-width: 200px;
    background: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.summary-card h3, .stat-card h3 {
    margin-top: 0;
    font-size: 14px;
    color: #555;
}

.summary-card p, .stat-card p {
    font-size: 24px;
    margin-bottom: 0;
    color: #222;
}

/* Modal Styles */
.commission-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    width: 60%;
    max-width: 800px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.details-content {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 3px;
    margin-top: 15px;
}

/* Responsive Tables */
@media (max-width: 768px) {
    .commission-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .summary-card, .stat-card {
        min-width: 150px;
    }
}

.dashboard-row {
    display: flex;
}