.leg-matrix{width:100%;min-width:0;max-width:100%}.leg-matrix__pan{box-sizing:border-box;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:color-mix(in srgb, var(--navy) 35%, var(--border)) transparent;border:1px solid var(--border);width:100%;min-width:0;max-width:100%;padding:var(--tool-inset);background:#fff;border-radius:.5rem;display:block;overflow:scroll visible}.leg-matrix__pan::-webkit-scrollbar{height:10px}.leg-matrix__pan::-webkit-scrollbar-thumb{background:color-mix(in srgb, var(--navy) 30%, var(--border));border-radius:999px}.leg-matrix__pan:focus-visible{outline:2px solid color-mix(in srgb, var(--gold) 55%, var(--navy));outline-offset:2px}.tool-bordered .leg-matrix__pan,.position-ssot .leg-matrix__pan{background:0 0;border:none;border-radius:0;padding:0}.tool-bordered .leg-matrix__pan{margin-top:0}.position-ssot .leg-matrix__pan{margin-top:var(--tool-inset-sm)}.tool-bordered .tool-bordered__divider .leg-matrix__pan{border-top:none;margin-top:0;padding-top:0}.leg-matrix__table{table-layout:fixed;border-collapse:collapse;font-size:.8125rem}.leg-matrix__col-label{width:11.25rem}.leg-matrix__col-leg{width:11.5rem}.leg-matrix--assumptions .leg-matrix__col-leg{width:12.5rem}.leg-matrix__corner{vertical-align:bottom}.leg-matrix__col-head{text-align:center;vertical-align:bottom}.leg-matrix__col-sub{font-size:var(--tool-type-caption-size);color:var(--tool-table-head-subtext);text-transform:none;letter-spacing:0;margin-top:.125rem;font-weight:600;display:block}.leg-matrix__col-sub .leg-side-label--long{color:var(--success)}.leg-matrix__col-sub .leg-side-label--short{color:var(--danger)}.leg-matrix__row-head{text-align:left;font-size:var(--tool-table-font-size);color:var(--tool-table-row-label);white-space:nowrap;vertical-align:top;padding:.5rem .75rem .5rem 0;font-weight:600}.tool-bordered .leg-matrix__row-head,.position-ssot .leg-matrix__row-head{padding-left:0}.leg-matrix__row-head--ssot{color:var(--navy);font-weight:700}.leg-matrix__row-label{flex-wrap:nowrap;align-items:center;gap:.35rem;width:100%;max-width:100%;display:inline-flex}.leg-matrix__cell{text-align:center;vertical-align:top;font-size:var(--tool-table-font-size);color:var(--tool-table-cell-text);border-bottom:1px solid #ddd5c8a6;padding:.375rem .5rem .375rem .75rem}.leg-matrix__cell--ssot{background:color-mix(in srgb, var(--cream) 65%, #fff);font-weight:600}.leg-matrix__cell--linked{color:#94a3b8;background:#f8fafcbf}.leg-matrix__linked-input{cursor:not-allowed;opacity:.72;background:#f1f5f9f2}.leg-matrix__cell .expiry-dhm{flex-wrap:nowrap}.leg-matrix__cell .expiry-dhm__field{flex-shrink:0}.leg-matrix__cell .expiry-dhm__input{width:3.25rem;min-width:3.25rem}.leg-matrix--assumptions .leg-matrix__cell .field-input[type=date]{width:100%;min-width:10.5rem;max-width:12rem;margin-inline:auto;display:block}.tool-bordered .leg-matrix__table thead .leg-matrix__corner,.position-ssot .leg-matrix__table thead .leg-matrix__corner{text-transform:none;letter-spacing:normal}.position-ssot .leg-matrix__table thead th:last-child,.position-ssot .leg-matrix__table tbody td:last-child,.tool-bordered .leg-matrix__table thead th:last-child,.tool-bordered .leg-matrix__table tbody td:last-child{padding-right:var(--tool-inset)}.tool-entry-locked .leg-matrix__pan{pointer-events:auto;-webkit-user-select:auto;user-select:auto}
