/* Collection Dashboard Styles */
.dashboard-container {
    max-width: 100vw;
    margin: 0 auto;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.date {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.metrics-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.metric-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.metric-title {
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
}

.metric-value {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
}

.metric-trend {
    font-size: 14px;
    display: flex;
    align-items: center;
}

.trend-up {
    color: #28a745;
}

.trend-down {
    color: #dc3545;
}

.chart-container {
    height: 100px;
    margin-top: 15px;
}

.donut-container {
    display: flex;
    justify-content: center;
    height: 150px;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.button-primary {
    background-color: #4a8cda;
    color: white;
}

.button-secondary {
    background-color: #b8d0e8;
    color: #333;
}

.button:hover {
    opacity: 0.9;
}

.aging-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.aging-card {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    flex: 1;
    min-width: 300px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.aging-title {
    color: #555;
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: bold;
}

.bar-chart-container {
    margin-top: 15px;
}

.funnel-container {
    margin-top: 15px;
}

.funnel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    padding: 15px;
    margin-bottom: 5px;
    text-align: center;
}

.funnel-notice {
    background-color: #ffd24d;
}

.funnel-process {
    background-color: #e67e22;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.funnel-court {
    background-color: #e74c3c;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
}

.table-container {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    overflow-x: auto;
}

.table-title {
    color: #555;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background-color: #f5f5f5;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    font-weight: bold;
    color: #555;
}

.status-process {
    color: #e67e22;
}

.status-notice {
    color: #ffd24d;
}

.status-court {
    color: #e74c3c;
}

.aging-days {
    color: #e74c3c;
}

.rupee {
    font-family: Arial, sans-serif;
}

.progress-bar {
    height: 25px;
    margin: 10px 0;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.progress-current {
    background-color: #4caf50;
}

.progress-30 {
    background-color: #8bc34a;
}

.progress-60 {
    background-color: #ffc107;
}

.progress-90 {
    background-color: #ff9800;
}

.progress-90-plus {
    background-color: #f44336;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .metrics-row, .aging-row {
        flex-direction: column;
    }
    
    .metric-card, .aging-card {
        margin-bottom: 20px;
    }
}