/* Scoped fee workflow; existing labels and amounts remain available. */
.km-fee-dialog{margin:auto;width:min(960px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 32px);padding:0;border:1px solid #d7e3ee;border-radius:20px;background:#fff;color:#233c60;box-shadow:0 24px 80px #10234155;overflow:auto;overscroll-behavior:contain}
.km-fee-dialog::backdrop{background:#14284099}
.km-fee-dialog-head{position:sticky;top:0;z-index:2;background:#fff;display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 24px;border-bottom:1px solid #e2eaf3}
.km-fee-dialog-head h2{margin:0;font-size:22px;line-height:1.4;overflow-wrap:anywhere}.km-fee-dialog-head p{margin:6px 0 0;color:#627891}.km-fee-dialog-head button{flex:none;min-height:44px}
.km-fee-dialog-body{padding:20px 24px}.km-fee-dialog-body h3{font-size:17px;margin:24px 0 12px}.km-fee-dialog-summary{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:16px;background:#f1f7fc;border-radius:12px}.km-fee-dialog-summary span,.km-fee-dialog-summary strong{display:block}.km-fee-dialog-summary strong{font-size:24px;color:#17375d}.km-fee-dialog .data-table{width:100%}.km-fee-dialog .table-scroll{max-height:none}.km-fee-dialog td{overflow-wrap:anywhere}.km-fee-dialog button{white-space:normal;height:auto;min-height:44px}
@media(max-width:760px){
 .segmented-tabs{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;gap:6px!important;border-bottom:0!important;padding:4px 0!important}
 .segmented-tabs>button{flex:1 1 auto!important;max-width:100%;min-width:0!important;white-space:normal!important;overflow-wrap:anywhere;height:auto!important;min-height:44px;padding:10px 12px!important;border:1px solid #d7e3f0!important;border-radius:10px!important;font-size:14px!important;line-height:1.6!important}
 .segmented-tabs>button[aria-selected=true]{background:#e8f0ff!important;color:#2059d5!important;border-color:#8eafff!important}
 .km-fee-ledger>.panel-head{align-items:flex-start;flex-wrap:wrap;gap:8px}.km-fee-ledger>.panel-head h2{font-size:20px!important}.km-fee-ledger>.table-scroll{overflow:visible!important;max-height:none!important}
 .km-fee-ledger>.table-scroll>.data-table{display:block!important;min-width:0!important;width:100%!important}.km-fee-ledger>.table-scroll>.data-table>thead{display:none!important}.km-fee-ledger>.table-scroll>.data-table>tbody{display:grid!important;gap:12px!important}
 .km-fee-ledger>.table-scroll>.data-table>tbody>tr{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:8px 16px!important;padding:16px!important;border:1px solid #dce6f1!important;border-radius:14px!important;background:#fff!important}
 .km-fee-ledger>.table-scroll>.data-table>tbody>tr>td{display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:3px!important;min-width:0!important;padding:0!important;border:0!important;font-size:15px!important;line-height:1.55!important;white-space:normal!important}
 .km-fee-ledger>.table-scroll>.data-table>tbody>tr>td::before{font-size:12px!important;line-height:1.5!important;color:#60758c!important;content:attr(data-label)}
 .km-fee-ledger>.table-scroll>.data-table>tbody>tr>td:first-child,.km-fee-ledger>.table-scroll>.data-table>tbody>tr>td:last-child{grid-column:1/-1!important}
 .km-fee-ledger>.table-scroll>.data-table>tbody>tr>td:first-child::before,.km-fee-ledger>.table-scroll>.data-table>tbody>tr>td:last-child::before{display:none!important}
 .km-fee-ledger .table-subline{font-size:13px!important;margin:2px 0 4px!important}.km-fee-ledger .row-actions{display:flex!important;flex-wrap:wrap!important;width:100%;gap:8px!important;margin-top:8px}.km-fee-ledger .row-actions>button{flex:1 1 125px!important;min-height:44px!important;height:auto!important;white-space:normal!important;font-size:14px!important;padding:9px 12px!important;line-height:1.6!important}
 .fee-filter-grid{display:flex!important;flex-direction:column!important;gap:12px!important}.fee-filter-grid>label:nth-child(2){order:-1}
 .km-fee-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.km-fee-dialog-head{padding:16px;padding-top:max(16px,env(safe-area-inset-top))}.km-fee-dialog-head h2{font-size:20px}.km-fee-dialog-body{padding:16px;padding-bottom:max(24px,env(safe-area-inset-bottom))}.km-fee-dialog .table-scroll{overflow:visible!important}.km-fee-dialog .data-table{display:block!important;min-width:0!important}.km-fee-dialog .data-table thead{display:none!important}.km-fee-dialog .data-table tbody{display:grid;gap:12px}.km-fee-dialog .data-table tr{display:block;border:1px solid #dce6f1;border-radius:12px;padding:12px}.km-fee-dialog .data-table td{display:grid!important;grid-template-columns:minmax(80px,35%) minmax(0,1fr)!important;gap:10px;padding:6px 0!important;white-space:normal!important;font-size:14px!important;border:0!important}.km-fee-dialog .data-table td::before{content:attr(data-label);font-size:13px;color:#627891}.km-fee-dialog .staff-pagination{flex-wrap:wrap}.km-fee-dialog .pagination{flex-wrap:wrap}
}
