html, body {
	font-family: 'PT Sans', Arial, sans-serif !important;
	font-size: 12px;
}
body {
	margin: 0;
	padding: 0;
	min-width: 476px;
}
#loader {
	width: 16px;
}
.error {
	background-color: #fdefee;
	color: #ff0000;
	border: 1px solid #ffc1c0;
	padding: 5px;
}
.info {
	background-color: #f9fdd3;
	color: #ff6f00;
	border: 1px solid #fff5ab;
	padding: 5px;
}

.hidden {
	display: none;
}

#form-wrapper {
	background-color: #203d49;
}

#form-wrapper .error {
	margin-bottom: 2px;
}

#create-order-form {
	padding: 5px;
	background-color: #203d49;
	color: #fff;
}

#create-order-form #unlink_order,
#create-order-form #link_order {
	float: left;
	padding-right: 0;
	padding-left: 0;
	font-size: 12px;
	text-decoration: none;
	color: #8e989c;
}

#create-order-form table {
	margin-top: 5px;
}
#product-list {
	border-collapse: collapse;
	width: 100%;
	background-color: #fff;
}
#product-list th {
	color: #949494;
	font-size: 11px;
	font-weight: normal;
}
#product-list td {
	border-bottom: 1px solid #ccc;
	padding: 2px 5px;
	position: relative;
	line-height: 20px;
}
#product-list input {
	width: 100%;
	text-align: right;
	font-size: 12px;
}
#product-list input:focus {
	outline: none;
}
#product-list .product-list-footer td {
	border-bottom: 0 none;
}
#product-list td .product_type,
.ui-autocomplete .product_type {
	border: 1px solid #ccc;
	border-radius: 2px;
	padding: 2px 3px;
	margin: 0 2px;
	font-size: 75%;
	background-color: #f0f0f0;
	color: #333333 !important;
}
.ui-autocomplete .product_type {
	display: inline-block;
}
.ui-state-active, .ui-widget-content .ui-state-active {
	border: none !important;
}
.ui-menu .ui-state-focus, .ui-menu .ui-state-active {
	margin: 0 !important;
}
.product-sum div {
	position: relative;
	padding-right: 23px;
	height: 22px;
	line-height: 20px;
}
.product-sum .ui-icon {
	position: absolute;
	right: -3px;
	top: 5px;
	cursor: pointer;
}
#product-list-count {
	padding-right: 1px !important;
}
#product-list-amount {
	padding-right: 25px !important;
}
#search {
	text-align: center !important;
}
.ui-widget.ui-autocomplete {
	overflow: hidden auto;
	min-width: 250px !important;
	max-height: 410px;
}
#product-list .row-image {
	max-width: 30px;
	width: 0;
	padding: 2px 0;
}
#product-list .row-image a,
.ui-menu-item-wrapper a {
	cursor: zoom-in;
}
.ui-menu-item-wrapper a {
	display: inline-block;
	position: relative;
	overflow: hidden;
	height: 30px;
	width: 30px;
	float: left;
}
.ui-menu-item-wrapper img {
	width: 29px;
	margin-right: 3px;
	float: left;
}
.ui-menu-item-wrapper .row {
	margin-left: 35px;
}
.form-row {
	position: relative;
	float: left;
	width: 100%;
	margin-bottom: 5px;
	font-size: 12px;
}
.form-row label {
	/*float: left;
	width: 150px;*/
	display: block;
	text-align: left;
	position: relative;
	margin-right: 5px;
}

.form-row input[type=date] {
	width: 98%;
	background: #fff;
	border: 1px solid #7f9db9;
	height: 20px;
	padding: 0 0 0 2px;
	outline: none;
	border-radius: 3px;
}

.form-row input[type=text],
.form-row input[type=password] {
	width: 98%;
	background: #fff;
	border: 1px solid #7f9db9;
	height: 20px;
	padding: 0 0 0 2px;
	outline: none;
	border-radius: 3px;
}
.form-row input[type=submit],
.form-row input[type=button],
.form-row button {
	/*margin-left: 155px;*/
	cursor: pointer;
	overflow: visible;
	padding: 4px 7px;
	outline: none;
}
.form-row input[type=submit]::-moz-focus-inner,
.form-row input[type=button]::-moz-focus-inner {
	padding: 0;
	border: 0;
}
.form-row select[readonly] {
	pointer-events: none;
}
.form-row select{
	width: 100%;
	background: #fff;
	border: 1px solid #7f9db9;
	line-height: 18px;
	height: 22px;
	outline: none;
	border-radius: 3px;
}
.form-row option{
	height: 18px;
}
.form-row optgroup option {
	padding-left: 20px;
}
.form-row input[type=checkbox],
.form-row input[type=radio] {
	border: none;
	/*margin-left: 155px;*/
}
.form-row textarea, .form-textarea {
	width: 97%;
	outline: none;
	border-radius: 3px;
}
.formLabelAuto { /* для label рядом с radio и check */
	width: auto !important; /* сбрасываем все, что уставили чтобы элемент вел себя как обычно */
	float: none !important;
	position: static !important;
	display: inline !important;
}

.form-row.required label {
	color: #fff6a3 !important;
}

.form-row.required input,
.form-row.required textarea,
.form-row.required select,
.form-row [required="required"] {
	border-color: #ffeb3b !important;
}

.btn {
	display: inline-block;
	font-weight: 700;
	color: #212529;
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	background-color: transparent;
	border: 1px solid transparent;
	padding: .375rem .75rem;
	font-size: 1rem;
	line-height: 1.5;
	border-radius: .25rem;
	transition: color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;
	-webkit-font-smoothing: antialiased;
}

.btn-primary {
	color: #fff;
	background-color: #4c8bf7;
	border-color: #4c8bf7;
}

.btn-link {
	font-weight: 400;
	color: #fff;
	background-color: transparent;
}

.btn-outline-light {
	color: #f8f9fa;
	border-color: #f8f9fa;
}

#tab-documents-content h4 {
	margin: 5px 0 0 0;
	font-size: 13px;
}
#tab-documents-content .ui-accordion-content {
	padding: 5px 10px;
}
#tab-documents-content .ui-accordion-header {
	outline: none;
}
.document-templates-list {
	list-style: none;
	padding: 0;
	margin-top: 0;
	margin-bottom: 12px;
	font-size: 13px;
}

.document-templates-list li {
	line-height: 22px;
	width: 300px;
	padding: 5px 5px 2px;
	margin: 5px 0;
	border: 1px solid #dddddd;
	border-radius: 5px;
}

.document-templates-list i.fas,
.document-templates-list i.far,
.document-templates-list i.fa,
#accordion i.fa {
	font-size: 20px;
}

.document-templates-list .fa.fa-thin {
	font-weight: normal;
}

.document-templates-list i.fa-file-pdf-o {
	color: indianred;
}

.document-templates-list i.fa-file-excel-o {
	color: darkgreen;
}

#tab-documents-content i.fa-plus-square-o {
	color: darkgrey;
}

#tab-documents-content i.fa-external-link {
	color: #4c8bf7;
}
.popup-products {
	position: absolute;
	background-color: #fff;
	border: 1px solid #ccc;
	box-shadow: 0 0 4px 1px rgba(0, 0, 0, .2);
	cursor: pointer;
}

.popup-products table {
	border-collapse: collapse;
}

.popup-prices table {
	width: 175px;
}

.popup-vats table {
	width: 55px;
}

.popup-products tr:hover td {
	background-color: #ffff84;
}

.order-field {
	font-size: 1rem;
}

/* settings */
#settings-content .tab-pane {
	padding-bottom: 15px;
}

.tab-pane fieldset {
	border: 1px solid #dee2e6;
	padding: 10px;
	margin-bottom: 20px;
	background: #f7f7f7;
	border-radius: 3px;
}

.tab-pane legend {
	padding: 0 6px;
	width: auto;
	background: #fff;
	font-size: 15px;
}

/* amo-tabs */
#ms-tabs {
	border: 0 none;
	padding: 0;
	border-radius: 0;
	font-family: inherit !important;
}

#ms-tabs .ui-widget-header {
	border: 0 none;
	background: #203d49;
	color: #62757d;
}

#ms-tabs .ui-tabs-nav {
	padding: 10px 0 0 22px;
	border-radius: 0;
}

#ms-tabs .ui-tabs-nav li {
	cursor: pointer;
	display: -webkit-inline-box;
	display: inline-flex;
	color: #62757d;
	font-weight: 700;
	position: relative;
	height: 100%;
	box-sizing: border-box;
	padding: 0 8px;
	-webkit-transition: color .2s;
	transition: color .2s;
	margin: 0;
	border: 0 none;
	border-radius: 0;
	background: inherit;
}

#ms-tabs .ui-tabs-nav li.ui-state-default {
	border-bottom: transparent 3px solid;
}

#ms-tabs .ui-tabs-nav li.ui-state-active {
	border-bottom: white 3px solid;
}

#ms-tabs .ui-tabs-nav a {
	float: none;
	font-weight: bold;
	overflow: hidden;
	white-space: nowrap;
	padding: 0;
	height: 26px;
	font-size: 15px;
	color: #62757d;
}

#ms-tabs .ui-tabs-tab a {
	border: 0 none;
	outline: none;
}

#ms-tabs .ui-state-active a,
#ms-tabs .ui-state-active a:hover {
	border: 0 none;
	background: inherit;
	color: #fff;
}

#ms-tabs .ui-tabs-panel {
	padding: 0;
}

#tab-documents-content {
	padding-left: 25px !important;
	padding-top: 5px !important;
}