/* Borrowing sheets fit the available page width. */
.borrow-source{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:12px;color:var(--muted);margin-bottom:16px}
.borrow-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.borrow-stat{border:1px solid var(--line);border-radius:10px;padding:16px;min-width:0;background:var(--panel)}.borrow-stat>span,.borrow-stat>small{display:block;color:var(--muted);font-size:12px}.borrow-stat>strong{display:block;font-size:23px;margin:10px 0;overflow-wrap:anywhere}.borrow-stat em{font-size:12px;font-style:normal;margin-left:3px}.borrow-stat strong small{display:block;font-size:11px;font-weight:400}
#borrow-management-root>.panel{margin-bottom:20px}#borrow-management-root .table-wrap{width:100%;max-width:100%;overflow:visible}#borrow-management-root table{table-layout:fixed;width:100%;min-width:0!important;white-space:normal}#borrow-management-root th,#borrow-management-root td{padding:9px 5px!important;font-size:12px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle;box-sizing:border-box}#borrow-management-root th{font-size:11px}#borrow-management-root td small{display:block;font-size:10px;color:var(--muted);margin-top:4px}#borrow-management-root .borrow-cell{display:block;min-width:0!important;max-width:100%;width:100%;padding:5px 2px!important;font-size:12px;line-height:1.45;border:1px solid transparent;border-radius:4px;background:transparent;color:inherit;box-sizing:border-box}#borrow-management-root .borrow-cell:hover{border-color:var(--line)}#borrow-management-root .borrow-cell:focus{outline:2px solid #aebdd8;background:var(--panel)}#borrow-management-root select.borrow-cell{border-color:var(--line);font-size:11px}#borrow-management-root input[type=date]{font-size:10px;letter-spacing:-.5px}#borrow-management-root input[type=date]::-webkit-calendar-picker-indicator{width:10px;margin:0;padding:0}#borrow-management-root .borrow-lender{resize:none;field-sizing:content;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;min-height:48px}
#borrow-management-root [data-borrow-table=current] th:nth-child(1){width:13%}#borrow-management-root [data-borrow-table=current] th:nth-child(2){width:14%}#borrow-management-root [data-borrow-table=current] th:nth-child(3){width:7%}#borrow-management-root [data-borrow-table=current] th:nth-child(4){width:7%}#borrow-management-root [data-borrow-table=current] th:nth-child(5){width:12%}#borrow-management-root [data-borrow-table=current] th:nth-child(6){width:14%}#borrow-management-root [data-borrow-table=current] th:nth-child(7){width:12%}#borrow-management-root [data-borrow-table=current] th:nth-child(8){width:15%}#borrow-management-root [data-borrow-table=current] th:nth-child(9){width:6%}
#borrow-management-root [data-borrow-table=stocks] th:nth-child(1){width:17%}#borrow-management-root [data-borrow-table=stocks] th:nth-child(2){width:5%}#borrow-management-root [data-borrow-table=stocks] th:nth-child(3){width:10%}#borrow-management-root [data-borrow-table=stocks] th:nth-child(4){width:16%}#borrow-management-root [data-borrow-table=stocks] th:nth-child(5){width:11%}#borrow-management-root [data-borrow-table=stocks] th:nth-child(6){width:12%}#borrow-management-root [data-borrow-table=stocks] th:nth-child(7){width:19%}#borrow-management-root [data-borrow-table=stocks] th:nth-child(8){width:10%}
.borrow-stock-button{border:0;background:transparent;color:inherit;text-align:left;padding:0;font-weight:600;cursor:pointer;white-space:normal}.borrow-connection{font-size:11px}.borrow-connection.pending{color:var(--muted)}.borrow-route-picker{display:flex;flex-wrap:wrap;gap:4px}.borrow-edit-actions:not([hidden]),.borrow-actions{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.borrow-edit-actions small{color:#a33}.borrow-note{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 0 18px}.borrow-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.borrow-fields>div{padding:10px 0;border-bottom:1px solid var(--line);min-width:0}.borrow-fields dt{font-size:11px;color:var(--muted)}.borrow-fields dd{margin:5px 0;font-size:13px;overflow-wrap:anywhere}.borrow-history>summary{padding:16px;cursor:pointer;font-size:13px}
.borrow-upload{margin-top:22px}.borrow-add-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:24px;padding:20px}.borrow-add-grid>div{min-width:0}.borrow-add-grid h3{font-size:14px;margin:0 0 14px}.borrow-entry-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.borrow-entry-grid .field{min-width:0}.borrow-upload input,.borrow-upload select{width:100%;min-width:0;box-sizing:border-box}.borrow-extra{font-size:12px;margin:12px 0}.borrow-extra>summary{cursor:pointer;color:var(--muted);margin-bottom:10px}.borrow-drop{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:22px 15px;min-height:110px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:12px}.borrow-drop input{font-size:12px}.borrow-upload [role=status]{display:block;margin-top:10px;font-size:12px;line-height:1.6}
@media(max-width:760px){.borrow-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.borrow-stat{padding:12px}.borrow-stat>strong{font-size:20px}.borrow-add-grid{grid-template-columns:1fr;padding:14px;gap:25px}.borrow-entry-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#borrow-management-root table,#borrow-management-root table tbody{display:block;width:100%}#borrow-management-root table thead{display:none!important}#borrow-management-root table tbody tr{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:14px!important;border-bottom:1px solid var(--line)}#borrow-management-root table tbody td{display:block!important;position:static!important;width:auto!important;padding:0!important;text-align:left!important;border:0!important;min-width:0;box-shadow:none!important}#borrow-management-root table tbody td:before{display:block;content:attr(data-label);font-size:10px;color:var(--muted);margin-bottom:4px}#borrow-management-root .borrow-cell{font-size:13px}#borrow-management-root table tbody td:first-child{grid-column:1/-1}#borrow-management-root .panel-head{flex-wrap:wrap;gap:8px}.borrow-fields{gap:0 12px}}

.borrow-route-field{margin-bottom:14px;max-width:280px}.borrow-swap-rates{margin-top:12px}.borrow-total-rate{font-size:14px;font-weight:600}.borrow-detail-editor input,.borrow-detail-editor select{min-width:0;width:100%;box-sizing:border-box}

.borrow-pth-banner{display:flex;flex-wrap:wrap;align-items:center;gap:10px 20px;padding:16px;margin-bottom:18px;background:var(--panel);border:1px solid var(--line);border-radius:10px;font-size:12px}.borrow-pth-banner small{flex-basis:100%;color:var(--muted);line-height:1.6}

.borrow-pth-banner .borrow-reconcile-alert{color:#a34c26}
