.b00 {
	max-width: 1460px;
	text-align: left;
}

.mb0 {
	margin: 0 0 30px 0;
}

.mb1 {
	display: inline-block;
	vertical-align: middle;
}

.mb2 {
	display: inline-block;
	vertical-align: middle;
	margin-left: 40px;
	transform: scale(1.05);
}

.mb3 {
	display: inline-block;
	vertical-align: middle;
	margin: 0 30px 0 16px;
	line-height: 90%;
}

.mb4 {
	display: inline-block;
	vertical-align: middle;
	background: #f4f4f4;
	padding: 0px;
	width: 2px;
	height: 65px;
}

.mb5 {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0 0 32px
}

.ml1 {
	font-size: 0.8rem;
	font-weight: 500;
	text-decoration: none;
	color: #333;
}

.ml2 {
	text-decoration: none;
	font-size: 0.95rem;
	color: #333;
	font-weight: 500;
}

/* Основные стили */
body {
	font-family: Arial, sans-serif;
	padding: 20px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 100vh;
	box-sizing: border-box;
	margin: 0;
}

.calculator-container {
	max-width: 500px;
	min-width: 300px;
	width: 90%;
	margin: 0 auto;
	padding: 20px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Стили для строк ввода */
.row-container {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 5px;
}

.label-row {
	display: flex;
	width: 100%;
	padding: 2px 0;
	border-bottom: 1px solid #eee;
	font-weight: bold;
	font-size: 0.7rem;
}

.input-row {
	display: flex;
	width: 100%;
	gap: 2px;
	align-items: center;
	min-height: 40px;
}

.column-label,
.joint-type,
.weld-type,
.details-thickness,
.weld-length,
.weld-quantity,
.add-button,
.delete-button {
	padding: 4px;
	box-sizing: border-box;
	text-align: center;
}

.column-label:nth-child(1),
.joint-type {
	width: 30%;
	min-width: 30%;
}

.column-label:nth-child(2),
.weld-type {
	width: 15%;
	min-width: 15%;
}

.column-label:nth-child(3),
.details-thickness {
	width: 15%;
	min-width: 15%;
}

.column-label:nth-child(4),
.weld-length {
	width: 15%;
	min-width: 15%;
}

.column-label:nth-child(5),
.weld-quantity {
	width: 15%;
	min-width: 15%;
}

.column-label:nth-child(6),
.delete-button {
	width: 5%;
	min-width: 34px;
}

.column-label:nth-child(7),
.add-button {
	width: 5%;
	min-width: 34px;
}


/* Стили форм */
select,
input {
	width: 100%;
	padding: 2px 2px;
	border: 1px solid #ddd;
	border-radius: 2px;
	background: #fff;
	height: 28px;
	font-size: 0.7rem;
	box-sizing: border-box;
}

input[type="number"] {
	-moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Кнопки */
.add-button,
.delete-button {
	width: 24px;
	min-width: 24px;
	height: 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-weight: bold;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	flex-shrink: 0;
	margin-left: 2px;
}

.add-button {
	background-color: #28a745;
	color: white;
}

.add-button:hover {
	background-color: #218838;
}

.delete-button {
	background: #dc3545;
	color: white;
}

.delete-button:hover {
	background: #c82333;
}


/* Радиокнопки выбора типа данных */
.data-type-radios {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 15px;
}

.radio-label {
	display: flex;
	align-items: center;
	padding: 8px;
	cursor: pointer;
	font-size: 0.9rem;
	background: #f0f0f0;
	border: 1px solid #ddd;
	border-radius: 4px;
	transition: all 0.2s;
}

.radio-label:hover {
	background: #e0e0e0;
}

.radio-label.active {
	background: #007bff;
	color: white;
	border-color: #007bff;
}

.data-type-radio {
	margin-right: 10px;
	appearance: radio;
	-webkit-appearance: radio;
	-moz-appearance: radio;
	width: 16px;
	height: 16px;
}

/* Чекбокс расхода электродов */
.electrodeConsumption {
	all: revert;
	width: auto;
	height: auto;
	min-width: 13px;
	min-height: 13px;
	margin: 3px 0.5ex;
	padding: 0;
	border: 1px solid #767676;
	border-radius: 3px;
	background-color: #ffffff;
	font-family: system-ui, -apple-system, sans-serif;
	font-size: 13px;
	color: #000000;
	line-height: normal;
	vertical-align: middle;
	position: static;
	cursor: pointer;
	transition: none;
	appearance: checkbox;
	-webkit-appearance: checkbox;
	-moz-appearance: checkbox;
}

.electrodeConsumption:focus {
	outline: 2px solid #0066cc;
	outline-offset: 1px;
}

.electrodeConsumption:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.electrodeConsumption:checked {
	background-color: #0066cc;
	border-color: #0066cc;
}

.electrodeConsumption:checked::before {
	content: "";
	display: block;
	width: 4px;
	height: 8px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
	margin: 0 auto;
}

/* Дополнительное меню */
#additional-menu {
	display: none;
	flex-wrap: wrap;
	gap: 15px;
	margin-top: 10px;
}

#additional-menu .menu-group {
	flex: 1;
	min-width: 120px;
	margin-bottom: 0;
	display: flex;
	flex-direction: column;
}

.menu-group {
	margin-bottom: 15px;
}

.menu-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #333;
	font-size: 0.8rem;
	font-family: Arial, sans-serif;
}

/* Контейнеры строк и изображений */
.input-row-container {
	margin-bottom: 4px;
	border-bottom: 1px solid #eee;
	padding-bottom: 4px;
}

.input-row-container:last-child .weld-image-container {
	display: block !important;
	width: 100%;
	text-align: center;
	margin-top: 10px;
	text-align: left;
}

.input-row-container:last-child .weld-image-container svg {
	width: 120px;
	height: 60px;
	cursor: pointer;
	border: 1px solid #ddd;
	background: #f9f9f9;
	padding: 5px;
	border-radius: 4px;
	margin-left: 0;
}

.input-row-container .weld-image-container {
	display: none !important;
}

.weld-image-container {
	width: 100%;
	text-align: center;
	margin-top: 10px;
	display: none;
	text-align: left;
}

.weld-image-container svg {
	width: 120px;
	height: 60px;
	cursor: pointer;
	border: 1px solid #ddd;
	background: #f9f9f9;
	padding: 5px;
	border-radius: 4px;
	margin-left: 0;
}

/* Модальное окно изображения */
#weld-image-container {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

#weld-image {
	max-width: 80%;
	max-height: 80%;
	background: white;
	padding: 20px;
	border-radius: 5px;
}

/* Результаты */
.results-container {
	margin-top: 25px;
	padding: 12px;
	background: #f9f9f9;
	border-radius: 4px;
	border: 1px solid #eee;
	font-size: 0.9rem;
	width: 530px
}

.result-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.85rem;
}

.result-table th,
.result-table td {
	padding: 6px 8px;
	text-align: left;
	border-bottom: 1px solid #ddd;
}

.result-table th {
	background: #f5f5f5;
}

.results-container>div:first-child {
	font-weight: bold;
	margin-bottom: 8px;
	font-size: 1rem;
}

/* Вспомогательные классы */
.button-placeholder {
	display: none;
}

.description {
	font-size: 0.8rem;
}

.total-label {
	font-weight: bold;
	text-align: right;
}

.total-value {
	font-weight: bold;
}

.invalid-input {
	border-color: #dc3545 !important;
	background-color: #f8d7da !important;
}

/* Адаптивность */
@media (max-width: 480px) {
	.calculator-container {
		padding: 10px;
	}

	#additional-menu {
		flex-direction: column;
		gap: 10px;
	}

	#additional-menu .menu-group {
		min-width: auto;
	}

	.menu-group select {
		padding: 4px;
		font-size: 0.8rem;
	}

	.menu-group label {
		font-size: 0.9rem;
	}

	/* Упрощаем строки на мобильных */
	.input-row {
		flex-wrap: wrap;
		gap: 5px;
	}

	.joint-type,
	.weld-type,
	.details-thickness,
	.weld-length,
	.weld-quantity,
	.delete-button,
	.add-button {
		width: 48% !important;
		font-size: 0.8rem;
	}

	.column-label {
		width: 48% !important;
		font-size: 0.7rem;
	}

	/* Сохраняем фиксированный размер кнопок на мобильных */
	.delete-button,
	.add-button {
		width: 34px !important;
		min-width: 34px !important;
	}
}

@media (max-width: 360px) {
	.calculator-container {
		padding: 5px;
	}

	.input-row {
		flex-direction: column;
		gap: 5px;
	}

	.joint-type,
	.weld-type,
	.details-thickness,
	.weld-length,
	.weld-quantity,
	.delete-button,
	.add-button {
		width: 100% !important;
	}

	/* Сохраняем фиксированный размер кнопок на очень маленьких экранах */
	.delete-button,
	.add-button {
		width: 34px !important;
		min-width: 34px !important;
		align-self: flex-start;
	}
}

.data-type-select-container {
	margin-bottom: 5px;
	margin-top: 10px;
}

.data-type-select {
	width: 100%;
	padding: 2px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #fff;
	font-size: 0.9rem;
	box-sizing: border-box;
	min-height: 32px;
	height: 32px;
	margin-bottom: 5px;
}

/* Кнопка Посчитать */
#calculateBtn {
	margin: 10px 10px 10px 0;
	padding: 8px 15px;
	background-color: #002F6C;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	min-width: 120px;
}

#calculateBtn:hover {
	background-color: #002050;
}

/* Кнопки скачивания и копирования */
.download-btn {
	margin: 10px 10px 10px 0;
	padding: 8px 15px;
	background-color: #909090;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9rem;
	min-width: 120px;
}

.download-btn:hover {
	background-color: #707070;
}


