/* Top search form */
#order-search-form-container
{
	margin-bottom: 13px;
	display: flex;
	flex-flow: row wrap;
	align-items: center;
}
#order-search-form-container > * + * { margin-left: 12px; }
#ordershistory-totals { margin-bottom: 13px; }
#ordershistory-totals .value { font-weight: bold; }

/* Orders table */
#ordershistory > tbody > tr > td
{
	padding-left: 18px;
	padding-right: 18px;
}
.oh-left-cell
{
	min-width: 85px;
	text-align: center;
	vertical-align: top;
}
.oh-id
{
	font-weight: bold;
	font-size: 150%;
}
.oh-order-type
{
	text-transform: lowercase;
	color: #2c9915;
	font-size: 85%;
	margin-top: 2px;
}
.oh-date
{
	font-size: 85%;
	text-align: center;
	margin-top: 5px;
	color: #666;
}
.oh-person
{
	margin-top: 5px;
	font-weight: bold;
}
.oh-phone
{
	margin-top: 6px;
	font-size: 95%;
	color: #333;
}
.oh-address-switcher
{
	display: inline-block;
	margin-top: 5px;
	white-space: nowrap;
}
.oh-address
{
	margin-top: 15px;
	background: #fff;
	box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	padding: 5px;
}

.oh-models-cell { width: 100%; }
.oh-models { width: 100%; }
table.minitable.oh-models tr { background: transparent; }
table.minitable.oh-models td
{
	background: transparent;
	border: 1px solid transparent;
}
.oh-models-q { white-space: nowrap; }
.oh-models-price
{
	white-space: nowrap;
	text-align: right;
	font-weight: bold;
}
.oh-models-discount
{
	white-space: nowrap;
	text-align: right;
}
.oh-models .price-discount { margin: 0; }
.oh-sum-cell { white-space: nowrap; }
.oh-sum-cell .price-discount
{
	margin: 5px 0 0 0;
	line-height: 18px;
}
.oh-status-cell { text-align: center; }
.oh-payed-status
{
	font-size: 85%;
	margin-top: 7px;
}
.oh-control
{
	margin-top: 10px;
}
.oh-reason
{
	margin-top: 10px;
	font-size: 85%;
}

@media screen and (max-width: 900px)
{
	.adaptive #ordershistory > tbody > tr
	{
		display: flex;
		flex-flow: column nowrap;
		justify-content: flex-start;
		align-items: stretch;
		border-bottom: 3px solid #eee;
	}
	.adaptive #ordershistory > tbody > tr > td
	{
		box-sizing: border-box;
		text-align: center;
		padding: 15px;
	}
	.adaptive table.minitable.oh-models
	{
		display: inline-block;
		width: auto;
	}
	.adaptive table.minitable.oh-models tr
	{
		display: flex;
		flex-flow: row wrap;
		justify-content: flex-start;
		align-items: center;
	}
	.adaptive table.minitable.oh-models td
	{
		width: auto;
		text-align: center;
	}
}

@media screen and (max-width: 600px)
{
	.adaptive table.minitable.oh-models tr
	{
		display: block;
	}
	.adaptive table.minitable.oh-models tr td
	{
		display: inline;
		padding: 0 3px;
	}
}

@media screen and (max-width: 414px)
{
	.adaptive #order-search-form-container
	{
		flex-flow: column nowrap;
		align-items: stretch;
	}
	.adaptive #ordershistory-totals
	{
		text-align: center;
	}
}