/* financial-tracker/css/financial-tracker-styles.css */

/* General table styling */
.financial-tracker-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}
.financial-tracker-table th,
.financial-tracker-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: left;
    font-size: 0.9em; /* Smaller font for table content */
}
.financial-tracker-table .even {
    background-color: #f2f2f2; /* Light grey for even rows */
}
.financial-tracker-table .odd {
    background-color: #ffffff; /* White for odd rows */
}
.financial-tracker-table {
    clear: both; /* Clear floats from summaries if any were still present */
}
.financial-tracker-table td:nth-child(2) {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* --- New / Updated CSS for Summary Lines --- */

/* Apply flexbox to all summary containers (summary tags and "No Records" divs) */
/* This ensures consistent left-aligned title and right-aligned amount/text */
.financial-tracker-flex-summary-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* This class styles the right-justified amount/text within a summary line */
.financial-tracker-summary-amount-display {
    text-align: right; /* Ensure text alignment is right within its flex item */
}

/* For the "No Records" text within the summary, ensure it's not bold by default */
.financial-tracker-no-records-summary .financial-tracker-summary-amount-display {
    font-weight: normal;
}

/* Styling for Income/Expenses accordion summaries AND "No Records" div */
/* These are the elements that should mirror each other visually */
.financial-tracker-detail-summary, /* for Income/Expenses details summary */
.financial-tracker-no-records-summary { /* for the "No Records" div */
    padding: 8px 10px;
    border: 1px solid #eee;
    background-color: #f9f9f9;
    font-size: 0.8em; /* Match table font size for consistency */
    margin-bottom: 5px; /* Spacing between these elements */
    margin-left: 1.5em; /* Explicit indent to align with typical nested details */
}

/* No specific margin-left rule for .financial-tracker-no-records-summary as it's now handled by the shared .financial-tracker-detail-summary style */
