/*
 * NEW FILE: public/driver_earnings.css
 * [Source: 33] public/driver_earnings.css (New File)
 * [Source: 34] Reason: To provide dedicated styles for the new earnings summary
 * cards, charts (if any), and the list of completed rides.
 */

/* --- Main Dashboard Controls --- */
#earnings-dashboard .earnings-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--background-color-light);
    border-radius: var(--border-radius);
    margin-top: 1rem;
}

#earnings-dashboard .earnings-controls label {
    font-weight: 600;
    margin: 0;
}

#earnings-dashboard .earnings-controls input[type="month"] {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background-color: #fff;
}

/* --- Summary Cards --- */
/* [Source: 34] styles for the new earnings summary cards */
#earnings-summary.earnings-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

#earnings-summary .summary-card {
    background-color: var(--background-color-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-large);
    padding: 1.25rem;
    text-align: center;
}

#earnings-summary .summary-card h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
}

#earnings-summary .summary-card .summary-value {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.1;
}

/* --- Completed Ride List --- */
/* [Source: 34] styles for... the list of completed rides. */
#earnings-ride-list-container {
    margin-top: 1.5rem;
}

#earnings-ride-list .list-item.card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

#earnings-ride-list .earnings-ride-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

#earnings-ride-list .earnings-ride-fare {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--success);
}

#earnings-ride-list .earnings-ride-details {
    font-size: 0.85rem;
    line-height: 1.4;
}

#earnings-ride-list .earnings-ride-details > div {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}