.fmt-wrapper {
	max-width: 640px;
}

.fmt-tracked-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.fmt-card {
	background: #f7f7f8;
	border: 1px solid #e2e2e4;
	border-radius: 12px;
	padding: 16px 20px;
}

.fmt-card-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 12px;
}

.fmt-card-title {
	display: flex;
	flex-direction: column;
}

.fmt-package-size {
	font-size: 13px;
	color: #6b6b70;
}

.fmt-status {
	font-size: 12px;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.fmt-status-danger {
	background: #fdecec;
	color: #c0392b;
}
.fmt-progress-fill.fmt-status-danger {
	background: #c0392b;
}

.fmt-status-warning {
	background: #fdf3e3;
	color: #b9770e;
}
.fmt-progress-fill.fmt-status-warning {
	background: #d68910;
}

.fmt-status-success {
	background: #eafaf1;
	color: #1e8449;
}
.fmt-progress-fill.fmt-status-success {
	background: #27ae60;
}

.fmt-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 10px;
	font-size: 14px;
}

.fmt-stock-row {
	justify-content: flex-start;
}

.fmt-stock-display {
	font-weight: 500;
}

.fmt-manual-tag {
	font-size: 11px;
	color: #9a9a9e;
	font-weight: normal;
	margin-left: 4px;
}

.fmt-edit-stock-btn,
.fmt-save-stock-btn,
.fmt-cancel-stock-btn {
	background: none;
	border: 1px solid #d6d6d9;
	border-radius: 6px;
	padding: 2px 8px;
	cursor: pointer;
}

.fmt-dosage-input,
.fmt-stock-input {
	width: 70px;
}

.fmt-progress {
	height: 6px;
	border-radius: 4px;
	background: #e9e9eb;
	overflow: hidden;
	margin-bottom: 8px;
}

.fmt-progress-fill {
	height: 100%;
}

.fmt-meta-row {
	justify-content: space-between;
	color: #6b6b70;
	margin-bottom: 12px;
}

.fmt-reorder-btn {
	width: 100%;
	margin-bottom: 8px;
}

.fmt-remove-btn {
	background: none;
	border: none;
	color: #9a9a9e;
	font-size: 12px;
	cursor: pointer;
	text-decoration: underline;
}

.fmt-add-section {
	border-top: 1px solid #e2e2e4;
	padding-top: 16px;
}

.fmt-add-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fmt-add-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 10px 14px;
	border: 1px solid #e2e2e4;
	border-radius: 8px;
}

.fmt-add-row-name {
	flex: 1 1 auto;
}

.fmt-add-stock-form {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-basis: 100%;
}

.fmt-add-stock-form label {
	font-size: 13px;
	color: #6b6b70;
}

.fmt-add-stock-input {
	width: 70px;
}

.fmt-add-confirm-btn,
.fmt-add-cancel-btn {
	background: none;
	border: 1px solid #d6d6d9;
	border-radius: 6px;
	padding: 2px 8px;
	cursor: pointer;
}

.fmt-muted {
	color: #6b6b70;
	font-size: 13px;
}

.fmt-notice {
	margin-top: 12px;
	font-size: 13px;
}

.fmt-notice.fmt-error {
	color: #c0392b;
}

.fmt-notice.fmt-success {
	color: #1e8449;
}
