.calculator {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 10vh;
	height: 50vh;
	width: 90vw;
	margin-left: auto;
	margin-right: auto;
}

.calculator > .container {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border: 1px solid #ccc;
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
	width: 95vw;
}

.calculator > .container h2 {
	text-align: center;
	margin-bottom: 20px;
	color: black;
}

.calculator > .container .row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 10px 0;
	width: 90%;
}

.calculator > .container .row label {
	font-weight: bold;
	flex: 0 0 100px;
}

.calculator > .container .row input {
	flex: 1;
	padding: 6px;
	font-size: 16px;
	text-align: right;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.calculator > .container .row span {
	flex: 1;
	padding: 6px;
	font-size: 16px;
	text-align: right;
	background: #f9f9f9;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.calculator > .container .row .amount-display {
	flex: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem 0.2rem;
	padding: 0.65rem;
	background: #f9f9f9;
	border: 1px solid #ccc;
	border-radius: 6px;
}

.calculator > .container .row .amount-cell {
	display: inline-flex;
	flex-direction: row;
	align-items: center;
	min-width: 2.3rem;
	white-space: nowrap;
}

.calculator > .container .row .amount-digit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 1.4rem;
	padding: 0;
	font-size: 18px;
	font-weight: bold;
	line-height: 1;
	color: #1f2d3d;
}

.calculator > .container .row .amount-unit {
	margin-left: 0.05rem;
	font-size: 12px;
	font-weight: bold;
	line-height: 1;
	color: #334155;
}

.calculator > .container .row .amount-cell-empty {
	position: relative;
	min-width: 2.3rem;
}

.calculator > .container .row .amount-cell-empty .amount-digit,
.calculator > .container .row .amount-cell-empty .amount-unit {
	color: transparent;
}

.calculator > .container .row .amount-cell-empty::after {
	content: "";
	position: absolute;
	left: 0.15rem;
	right: 0.15rem;
	top: 50%;
	border-top: 2px solid #64748b;
	transform: translateY(-50%);
}
