.customer__form {
	margin-bottom: 4rem;
	max-width: 500px;
}

th {
	text-align: left;
}

.customer__form button {
	margin: 20px 0;
}

.customer__form h4 {
	margin: 25px 0;
}

.customer__menu button {
	cursor: pointer;
	padding: 9px 12px;
	width: 100%;
	text-align: start;
}

.customer__menu button.active {
	background: #d3d3d3;
}

.customer h4 {
	margin: 0 0 25px;
}

@media(min-width: 992px) {
	.customer__form {
		width: 100%;
	}

	.customer__menu {
		width: 200px;
	}

	.container--customer {
		display: flex;
		gap: 40px;
	}
}

.customer th,
.customer td {
	padding: 5px 15px;
	text-align: left;
}

.customer th {
	border-bottom: 1px solid #d3d3d3;
}

.customer .align--right {
	text-align: end;
}

.customer__orders {
	font-family: 'Arial', sans-serif;
	background-color: #f8f9fa;
	color: #333;
	border-radius: 8px;
	padding: 20px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	width: 100%;
	overflow: auto;
}

.orders__repeat {
	text-align: end;
}

.orders__repeat .button {
	padding: 1rem 1rem;
	min-width: 100px;
}

.table__header-row th {
	vertical-align: top;
	padding: 10px;
}

.orders__table {
	width: 100%;
	border-collapse: collapse;
}

.order__item td {
	padding: 10px;
	border-bottom: 1px solid #dee2e6;
}

.subrow {
	border-top: 2px solid #bfbfbf;
    border-bottom: 2px solid #bfbfbf;
}

.subrow--headings {
	font-weight: 600;
}

.subrow span {
	padding: 0 10px;
	min-width: 100px;
}

.code,
.name {
	padding: 0;
}

.code {
	font-size: 12px;
}

.subrow--itemName {
	min-width: 160px;
	display: flex;
    flex-direction: column;
}

.subrow--nowrap {
	white-space: nowrap;
}

.subrow h5 {
	padding: 10px;
}

.order__item td {
	text-wrap: nowrap;
}

td.order_number {
	text-wrap: wrap;
	word-wrap: break-word;
}

.subrow li {
	display: grid;
	grid-template-columns: 3fr 1fr 1fr 1fr;
	padding: 10px 0;
}

.subrow__heading td {
	padding-left: 20px;
	font-weight: 600;
	border-top: none;
}

.subrow td {
	background-color: #f9f9f9;
}

.subrow .finalrow {
	padding: 3px;
}

.subrow .finalrow--total {
	font-weight: 600;
	padding-bottom: 10px;
}

.subrow ol {
	border-top: 1px solid #c5c5c5;
	padding-top: 7px;
}

td svg {
	width: 20px;
	height: 20px;
	cursor: pointer;
}

td svg.active {
	transform: rotate(180deg);
}

.align--right {
	text-align: right;
}

.align--center {
	text-align: center;
}

.repeat__order-cell {
	display: flex;
	align-items: center;
	justify-content: center;
}

.repeat__link {
	text-decoration: none;
	padding: 5px 10px;
	border-radius: 5px;
	transition: background-color 0.3s, color 0.3s;
}

.repeat__link:hover {
	color: white;
}

.orders__repeat svg {
	width: 25px;
	height: 25px;
}

@media(max-width: 992px) {
	.customer__menu {
		margin-bottom: 40px;
	}
}

#repeat-order-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #00000035;
	justify-content: center;
	align-items: center;
	z-index: 100
}

#repeat-order-popup {
	background-color: #fafafa;
	border-radius: 2px;
	max-width: 300px;
	z-index: 101;
	color: #000
}

#repeat-order-popup p {
	padding: 20px
}

@media(max-width: 430px) {
	#repeat-order-popup .button {
		min-width: 140px
	}
}

.modal-buttons {
	display: flex;
	gap: 3px;
}

.order__open {
	width: 50px;
}

.modal-buttons .button {
	font-size: 16px;
}

.pagination {
	justify-content: center;
}

.pagination__form {
    align-items: center;
}

.pagination p {
	font-size: 1.2rem;
}

@media(max-width:599px) {
	.customer__orders th,
	.customer__orders td,
	.customer__orders span {
		font-size: 13px;
	}

	.order__item td,
	.table__header-row th {
		vertical-align: top;
		padding: 5px;
	}

	.customer__orders {
		padding: 5px;
	}

	.orders__repeat svg {
		width: 20px;
		height: 20px;
	}

	td svg {
		width: 17px;
		height: 17px;
		cursor: pointer;
	}

	.customer__orders .code {
		font-size: 10px;
	}
}