/* Shared styling for FeeReport framework (CustomJS/fee_report.js) */
.fr-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.fr-card {
    flex: 1 1 130px;
    background: #f7f8fa;
    border: 1px solid #e4e7ea;
    border-radius: 6px;
    padding: 12px 14px;
}
.fr-card-label {
    font-size: 12px;
    color: #8a8f97;
    margin-bottom: 4px;
    white-space: nowrap;
}
.fr-card-value {
    font-size: 22px;
    font-weight: 500;
    color: #2c3e50;
}
.fr-table td.fr-num,
.fr-table th.fr-num {
    text-align: right;
    white-space: nowrap;
}
.fr-table tfoot th {
    font-weight: 600;
    background: #f7f8fa;
}
.fr-filter {
    width: 100%;
    min-width: 90px;
}
.fr-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: flex-end;
    margin-bottom: 12px;
}
.fr-filter-item {
    display: flex;
    flex-direction: column;
}
.fr-filter-item label {
    font-size: 12px;
    color: #8a8f97;
    font-weight: normal;
    margin-bottom: 2px;
}
.fr-filter-item select {
    min-width: 140px;
}
div.dt-buttons {
    margin-bottom: 8px;
}
div.dt-buttons .dt-button {
    background: #f4f4f4;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 4px 12px;
    margin-right: 4px;
    font-size: 13px;
}

/* Expandable detail rows (FeeReport detail feature) */
.fr-table td.fr-ctrl {
    width: 26px;
    text-align: center;
}
.fr-table td.fr-expand {
    cursor: pointer;
    color: #3c8dbc;
    user-select: none;
}
.fr-chev {
    font-size: 11px;
    line-height: 1;
}
.fr-detail-wrap {
    padding: 8px 10px;
    background: #f7f8fa;
}
.fr-detail-table {
    width: auto !important;
    max-width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #fff;
}
.fr-detail-table td.fr-num,
.fr-detail-table th.fr-num {
    min-width: 70px;
}
.fr-detail-table th,
.fr-detail-table td {
    border: 1px solid #e4e7ea;
    padding: 5px 8px;
}
.fr-detail-table th {
    background: #eef1f5;
    font-weight: 600;
    text-align: left;
}
.fr-detail-table td.fr-num,
.fr-detail-table th.fr-num {
    text-align: right;
    white-space: nowrap;
}

/* Defend against legacy per-report <style> blocks from the old pivot design that
   globally restyle every table (display:block on table/thead/tbody, fixed 250px
   cells, scroll boxes). Those globals break the FeeReport DataTable column
   alignment and stretch the detail sub-table. Re-assert normal table layout,
   scoped to FeeReport's own tables only. */
.fr-table,
.fr-detail-table {
    display: table !important;
    overflow: visible !important;
}
.fr-table { width: 100% !important; }
.fr-detail-table { width: auto !important; }
.fr-table thead,
.fr-detail-table thead { display: table-header-group !important; }
.fr-table tbody,
.fr-detail-table tbody {
    display: table-row-group !important;
    height: auto !important;
    overflow: visible !important;
}
.fr-table tfoot,
.fr-detail-table tfoot { display: table-footer-group !important; }
.fr-table tr,
.fr-detail-table tr { display: table-row !important; }
.fr-table th,
.fr-table td,
.fr-detail-table th,
.fr-detail-table td {
    min-width: 0 !important;
    height: auto !important;
}
.fr-detail-table th,
.fr-detail-table td { width: auto !important; }
.fr-detail-table td.fr-num,
.fr-detail-table th.fr-num { min-width: 70px !important; }

/* Grouped (two-row) category headers (FeeReport column groups) */
.fr-table thead th.fr-grp {
    text-align: center;
    border-bottom: 1px solid #c7ccd1;
    background: #eef1f5;
}
