/* TBA Framework - Asset Repositioning */

.tba-tool-asset-repositioning .tba-arep__inputs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1em;
	margin-bottom: 1.25em;
}

.tba-tool-asset-repositioning .tba-arep__withdrawal {
	margin-bottom: 1.25em;
}

.tba-tool-asset-repositioning .tba-arep__grid-heading {
	margin: 1.5em 0 0.5em;
}

.tba-tool-asset-repositioning .tba-arep__grid-heading:first-of-type {
	margin-top: 0;
}

.tba-tool-asset-repositioning .tba-arep__table-wrap {
	overflow-x: auto;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
}

.tba-arep__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
}

.tba-arep__table thead th {
	background: #f0f0f1;
	text-align: right;
	padding: 0.5em 0.75em;
	font-weight: 600;
	color: #3c434a;
	border-bottom: 1px solid #dcdcde;
	white-space: nowrap;
}

.tba-arep__table thead th:first-child {
	text-align: left;
}

.tba-arep__table td {
	text-align: right;
	padding: 0.4em 0.75em;
	border-bottom: 1px solid #eee;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.tba-arep__table td:first-child {
	text-align: left;
	font-weight: 600;
}

.tba-arep__table tbody tr:last-child td {
	border-bottom: none;
	font-weight: 700;
}

.tba-arep__table tfoot td {
	text-align: right;
	padding: 0.5em 0.75em;
	border-top: 2px solid #2c3338;
	font-weight: 700;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}

.tba-arep__table tfoot td:first-child {
	text-align: left;
}

.tba-tool-asset-repositioning .tba-arep__longevity {
	margin: 1.25em 0;
}

.tba-tool-asset-repositioning .tba-arep__chart {
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	padding: 1em;
	background: #fff;
}

.tba-tool-asset-repositioning .tba-arep__legend {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin: 0.75em 0 0;
	padding: 0;
	font-size: 0.85em;
	color: #3c434a;
}

.tba-arep__legend-item {
	display: flex;
	align-items: center;
	gap: 0.4em;
}

.tba-arep__legend-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
}
