.fee-summary { min-width: 0; }
.fee-summary-controls { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; padding: 10px; border: 1px solid #cedee9; border-radius: 8px; background: #f4f9fc; }
.fee-summary-controls label { display: grid; gap: 6px; flex: 1 1 150px; max-width: 240px; }
.fee-summary-controls button { min-height: 42px; white-space: nowrap; }
.fee-summary-controls [hidden] { display: none; }
.fee-summary-period { font-weight: 600; font-size: 12px; padding: 8px 0; margin: 0; border-top: 2px solid #173b56; }
.fee-summary > h3 { margin: 0 0 8px; }
.fee-summary-method { margin: 8px 0; font-size: 12px; color: #486581; }
.fee-summary-method summary { cursor: pointer; }
.fee-summary [role="status"] { font-size: 12px; margin: 10px 0; }
.fee-summary-warning:empty { display: none; }
.fee-summary-warning { color: #875400; }
.fee-summary-scroll { max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #cedee9; border-radius: 10px; }
.fee-summary .fee-summary-scroll table { width: max-content; min-width: 0; max-width: none; border-collapse: collapse; table-layout: auto; font-size: 12px; line-height: 1.4; }
.fee-summary .fee-summary-scroll th, .fee-summary .fee-summary-scroll td { width: auto; min-width: 0; max-width: none; padding: 6px 9px; text-align: left; vertical-align: top; white-space: nowrap; overflow-wrap: normal; word-break: normal; border: 1px solid #dde5eb; }
.fee-summary .fee-summary-scroll th { background: #edf3f7; color: #173b56; font-weight: 700; }
.fee-summary .fee-summary-scroll tbody tr:nth-child(even) { background: #f7fafc; }
.fee-summary .fee-summary-scroll tfoot td { border-top: 2px solid #173b56; }
.fee-summary .fee-summary-scroll .fee-summary-number { text-align: right; }
.fee-summary-scroll .fee-summary-number { text-align: right; white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.fee-summary-total { font-weight: 700; background: #e9f6f3; }
.fee-summary-preview { width: min(1200px, 96vw); max-width: 96vw; height: 90vh; padding: 14px; border: 1px solid #cedee9; border-radius: 12px; }
.fee-summary-preview::backdrop { background: #12304a88; }
.fee-summary-preview iframe { display: block; width: 100%; height: calc(100% - 56px); margin-top: 10px; border: 0; }
@media (max-width: 540px) { .fee-summary-controls label { max-width: none; } .fee-summary-controls button { flex: 1 1 150px; } }
