/* profitAndLoss.css */

.profit-loss-report-wrapper {
    font-family: var(--font-serif-report); /* Defined in dashboardStyles.css or root */
    font-size: 11pt;
    line-height: 1.4;
    color: #000;
    padding: 20px;
    border: 1px solid #ccc;
    background-color: #fff;
    max-width: 1200px; /* Maximum width for readability */
    margin: 0 auto; /* Center the content */
}

.profit-loss-report-wrapper .report-title { /* Qualify with wrapper */
    font-size: 16pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 5px;
}

.profit-loss-report-wrapper .report-subtitle {
    font-size: 10pt;
    text-align: center;
    margin-bottom: 25px;
    font-style: italic;
}

.profit-loss-report-wrapper .pl-table {
    width: 100%;
    border-collapse: collapse;
}

.profit-loss-report-wrapper .pl-table td {
    padding: 3px 2px; /* Tighter padding */
    border: none; /* No internal cell borders */
    vertical-align: top;
}

.profit-loss-report-wrapper .pl-table td.description-column {
    width: 65%;
}
.profit-loss-report-wrapper .pl-table td.label-column { /* For right-aligned total labels */
    width: 20%;
    text-align: right;
    font-weight: bold;
    padding-right: 10px;
    white-space: nowrap;
}
.profit-loss-report-wrapper .pl-table td.amount-column {
    width: 15%;
    text-align: right;
    padding-right: 10px;
}

.profit-loss-report-wrapper .pl-section-heading {
    font-weight: bold;
    font-size: 11pt; /* Consistent with body of report */
    padding-top: 12px;
    padding-bottom: 4px;
}

.profit-loss-report-wrapper .pl-account-item {
    padding-left: 25px !important; /* Indentation */
}

.profit-loss-report-wrapper .pl-total-line td.amount-column {
    font-weight: bold;
    border-bottom: 1px solid #000; /* Underline for the amount */
    padding-bottom: 1px;
}

.profit-loss-report-wrapper .pl-gross-profit-row td {
    font-weight: bold;
}
.profit-loss-report-wrapper .pl-gross-profit-row.whitespace-row td { /* For spacing */
    padding-top: 8px;
    padding-bottom: 8px;
}

.profit-loss-report-wrapper .pl-net-income-line td {
    font-weight: bold;
    border-top: 1px solid #000; /* Single line above */
    padding-top: 4px;
    border-bottom: 2.5px double #000; /* Double line below Net Income */
    padding-bottom: 4px;
}