/* Running strategy legs table */
.running-strategy-legs-table.fi-fo-table-repeater table tbody td {
    vertical-align: top;
}

.running-strategy-legs-table .fi-fo-field {
    margin: 0;
}

.running-strategy-legs-table .fi-fo-field-content-col {
    gap: 0.25rem;
}

.running-strategy-legs-table .fi-input-wrp {
    min-height: 2.375rem;
}

.running-strategy-legs-table .leg-lot-field .fi-fo-field-wrp-helper-text,
.running-strategy-legs-table .leg-lot-field .fi-sc-text {
    font-size: 0.6875rem;
    line-height: 1.125rem;
    white-space: normal;
}

.running-strategy-legs-table .leg-lot-field .fi-input-wrp-prefix {
    gap: 0.5rem;
}

.running-strategy-legs-table .leg-expiry-field .fi-input-wrp {
    min-width: 5.5rem;
}

.running-strategy-legs-table .leg-expiry-field-wide .fi-input-wrp,
.running-strategy-legs-table .leg-expiry-field-wide .choices,
.running-strategy-legs-table .leg-expiry-field-wide .choices__inner {
    min-width: 7.25rem;
}

.running-strategy-legs-table .leg-expiry-field .fi-fo-field-wrp-helper-text,
.running-strategy-legs-table .leg-expiry-field .fi-sc-text,
.running-strategy-legs-table .leg-strike-field .fi-fo-field-wrp-helper-text,
.running-strategy-legs-table .leg-strike-field .fi-sc-text {
    font-size: 0.6875rem;
    line-height: 1rem;
    white-space: normal;
}

.running-strategy-legs-table.fi-fo-table-repeater table tbody td:has(.leg-tgt-sl-field),
.running-strategy-legs-table.fi-fo-table-repeater table tbody td:has(.leg-trail-sl-field) {
    vertical-align: middle;
}

.running-strategy-legs-table .leg-tgt-sl-field,
.running-strategy-legs-table .leg-trail-sl-field {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.running-strategy-legs-table .leg-tgt-sl-field .fi-fo-field-wrp,
.running-strategy-legs-table .leg-trail-sl-field .fi-fo-field-wrp,
.running-strategy-legs-table .leg-tgt-sl-field .fi-fo-field-content-col,
.running-strategy-legs-table .leg-trail-sl-field .fi-fo-field-content-col {
    align-items: center;
    justify-content: center;
}

/* Nested target row inside last column */
.running-strategy-leg-targets.fi-fo-repeater,
.running-strategy-leg-targets .fi-fo-repeater-items,
.running-strategy-leg-targets .fi-fo-repeater-item,
.running-strategy-leg-targets .fi-fo-repeater-item-content {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.running-strategy-leg-targets .fi-fo-repeater-item-header,
.running-strategy-leg-targets .fi-fo-repeater-item-actions {
    display: none !important;
}

.running-strategy-leg-targets .fi-fo-repeater-item-content > .fi-sc-component-ctn,
.running-strategy-leg-targets .fi-fo-repeater-item-content > .fi-grid {
    gap: 0.5rem !important;
}

.running-strategy-leg-targets .fi-input-wrp {
    min-width: 0;
}
