HTML {
	font-family: "Helvetica Neue", Helvetica, Arial;
	line-height: 1.42857143;
	font-size: 13px;
	width: 100%;
	height: 100%;
}

BODY {
	padding: 0px;
	margin: 0px;
	width: 100%;
	height: 100%;
}

IMG {
	border: none;
	vertical-align: middle;
}

A {
	color: #000;
}

.wrapper {
	position: relative;
	min-width: 100%;
	min-height: 100%;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
}

H1,
H2,
H3 {
	padding: 0px;
	margin: 0px;
}

/* Login */

.login {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.login>form {
	width: 100%;
	max-width: 300px;
	padding: 20px;
	border: 1px solid #ddd;
	border-radius: 16px;
}

.login h1 {
	font-size: 1.4em;
	text-align: center;
}

.login>form>div:last-child {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.login>form button {
	margin-top: 10px;
}

/* CUSTOM */

.hidden {
	display: none;
}

.error {
	display: none;
	color: #f00;
	margin: 10px 0px;
}

.width400 {
	width: 400px;
}

.modules {
	display: flex;
	flex-direction: column;
}

.content-wrapper {
	display: flex;
	flex-grow: 1;
}

.content-wrapper>div {
	padding: 10px;
	box-sizing: border-box;
}

.content-wrapper .left {
	width: 200px;
	min-width: 200px;
	max-width: 200px;
	background-color: #f7f7f7;
	border-right: 1px solid #eee;
}

.content-wrapper .left.closed {
	display: none;
}

.content-wrapper .left .divisions .show-all,
.content-wrapper .left .divisions .hide-all,
.content-wrapper .left .divisions .sort {
	display: none;
}

.content-wrapper .left .categories {
	border-bottom: none;
	margin-top: 8px;
}

.content-wrapper .left .categories>li {
	padding-left: 30px;
	background-position: left center;
	background-repeat: no-repeat;
	background-size: 20px;
	margin-bottom: 15px;
}

.content-wrapper .left .categories>li[data-id="1"] {
	background-image: url("/admin/img/catalogue.svg");
}

.content-wrapper .left .categories>li[data-id="3"] {
	background-image: url("/admin/img/news.svg");
}

.content-wrapper .left .categories>li[data-id="4"] {
	background-image: url("/admin/img/article.svg");
}

.content-wrapper .left .categories>li[data-id="7"] {
	background-size: 14px;
	background-position: left 4px top 7px;
}

.content-wrapper .left .categories>li::before {
	display: none;
}

.content-wrapper .left>div:first-child {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: 10px;
}

.modules {
	border-top: 1px solid #ddd;
}

.modules img {
	height: 20px;
	margin-right: 10px;
}

.modules>div {
	margin: 10px 0px;
	position: relative;
}

.modules>div a {
	text-decoration: none;
}

.modules>div.selected {
	font-weight: bold;
}

.badge {
	position: absolute;
	right: 0px;
	top: 50%;
	transform: translateY(-50%);
	background-color: #f00;
	color: #fff;
	height: 16px;
	min-width: 16px;
	padding: 2px;
	text-align: center;
	border-radius: 10px;
	font-weight: normal;
	font-size: 0.9em;
}

.badge:empty {
	display: none;
}

.content-wrapper .left .user {
	font-weight: bold;
}

.logout {
	width: 20px;
	height: 20px;
	background-image: url("/admin/img/logout.svg");
	background-position: left center;
	background-size: contain;
	background-repeat: no-repeat;
	cursor: pointer;
}

.logout:hover {
	text-decoration: underline;
}

.content-wrapper .content {
	position: relative;
	flex-grow: 1;
}

/* Buttons */

.sort-button {
	cursor: pointer;
}

/* Form */

.form>div,
.form>div>div {
	margin: 10px 0px;
}

.form .divider {
	font-weight: bold;
	padding: 5px;
	background-color: #f8f8f8;
	border: 1px solid #eee;
}

.form>div:first-child {
	margin-top: 0px;
}

.form>div:last-child {
	margin-bottom: 0px;
}

.form>div:last-child {
	margin-bottom: 0px;
}

.form label {
	display: flex;
	align-items: center;
	padding-bottom: 3px;
	opacity: 0.5;
}

.form input[type=text],
.form input[type=password],
.form input[type=number],
.form select,
.form textarea {
	padding: 5px;
	border-radius: 3px;
	border: 1px solid #ddd;
	box-sizing: border-box;
	width: 100%;
}

.form input[type=checkbox],
.form input[type=radio] {
	margin: 0px 5px 0px 0px;
}

.form button,
.form-button {
	cursor: pointer;
	background-color: #59a5da;
	padding: 5px 10px;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	color: #fff;
}

.item-offer-form,
.category-form {
	width: 1000px;
}

.entity-data-editor>div>div {
	margin: 10px 0px;
}

.item-offer-form .group {
	background-color: #f8f8f8;
	font-weight: bold;
	padding: 5px;
	border: 1px solid #eee;
	cursor: pointer;
}

.item-offer-form .meta-rows,
.category-form .meta-rows {
	position: relative;
	background-color: #f8f8f8;
	border: 1px solid #eee;
	padding: 0px 10px;
}

/* Form Image */

.form-image,
.form-images {
	display: flex;
	align-items: center;
	position: relative;
}

.form-images {
	flex-direction: column;
	align-items: flex-start;
}

.form-image input[type=file],
.form-images input[type=file] {
	opacity: 0;
	position: absolute;
	top: 0px;
	left: 0px;
	bottom: 0px;
	right: 0px;
}

.form-image span,
.form-images span {
	display: inline-flex;
	align-items: center;
	padding: 5px 10px 5px 34px;
	border-radius: 8px;
	color: #fff;
	background-color: #59a5da;
	background-image: url("/admin/img/image.svg");
	background-position: left 8px center;
	background-repeat: no-repeat;
	background-size: 18px;
	cursor: pointer;
}

.form-image span::after {
	content: "Добавить изображение";
}

.form-images span::after {
	content: "Добавить изображения";
}

.form-images .image-list {
	display: flex;
	flex-wrap: wrap;
}

.form-images .image-list:empty {
	display: none;
}

.form-image>div,
.form-images .image-list>div {
	position: relative;
	width: 70px;
	height: 70px;
	background-position: center;
	background-size: 60px;
	background-repeat: no-repeat;
	margin-right: 10px;
	border: 1px solid #ddd;
	display: none;
}

.form-images>div {
	margin: 0px 10px 10px 0px;
}

.form-image div .remove,
.form-images div .remove {
	position: absolute;
	right: 5px;
	top: 5px;
	width: 16px;
	height: 16px;
	background-image: url("/admin/img/remove.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
	cursor: pointer;
}

/* Table */

.table {
	display: table;
	flex-direction: column;
	border-collapse: collapse;
	margin: 10px 0px;
}

.table .thead,
.table thead {
	display: table-row-group;
	font-weight: bold;
	background-color: #f8f8f8;
	text-align: center;
}

.table .tbody {
	display: table-row-group;
}

.table .group {
	background-color: #f8f8f8;
	font-weight: bold;
}

.table .tr {
	display: table-row;
}

.table .row-group {
	display: table-row-group;
}

.table .tr>div,
.table td,
.table th {
	display: table-cell;
	vertical-align: middle;
	padding: 5px;
	border: 1px solid #eee;
}

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

.table .edit,
.table .delete {
	width: 20px;
	min-width: 20px;
	min-height: 20px;
	cursor: pointer;
}

/* Block */

.block {
	background-color: #f8f8f8;
	padding: 10px;
	border: 1px solid #eee;
}

.block .title {
	font-weight: bold;
	margin-bottom: 10px;
}

.params-block {
	display: inline-grid;
	gap: 5px 10px;
	grid-template-columns: auto auto;
}

.params-block>div:nth-child(2n+1) {
	opacity: 0.5;
}

.params-block>div:nth-child(2n+1)::after {
	content: ":";
}

/* Modal */

.modal {
	position: fixed;
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
	z-index: 5;
}

.modal>div {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	padding: 20px;
	box-sizing: border-box;
	background-color: #fff;
	border-radius: 16px;
	min-width: 200px;
	min-height: 50px;
	max-width: calc(100% - 30px);
	max-height: calc(100% - 30px);
	display: flex;
	flex-direction: column;
}

.modal>div>div:last-child {
	height: 100%;
	max-height: 100%;
	overflow-y: auto;
}

.modal>div>div:last-child::-webkit-scrollbar {
	width: 0px;
	background: transparent;
}

.modal>div>.close {
	position: absolute;
	top: -12px;
	right: -12px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #000;
	cursor: pointer;
}

.modal>div>.close:after {
	content: "X";
	color: #fff;
	display: block;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Division Add */

.division-add>div:nth-child(2) {
	padding: 10px;
	background-color: #eee;
	border-radius: 6px;
	margin-top: 10px;
}

.division-add {
	margin-bottom: 15px;
}

/* Division Settings */

.division-settings>div:last-child {
	display: flex;
	align-items: center;
}

.division-settings .delete {
	margin-top: 20px;
	color: #f00;
	cursor: pointer;
}

.division-settings .delete:hover {
	text-decoration: underline;
}

/* Categories */

.categories-wrapper {
	position: relative;
}

.categories-wrapper .show-all,
.categories-wrapper .hide-all,
.categories-wrapper .sort {
	display: inline-block;
	width: 14px;
	height: 14px;
	background-position: left center;
	background-repeat: no-repeat;
	background-size: contain;
	cursor: pointer;
	margin-right: 8px;
	margin-bottom: 4px;
}

.categories-wrapper .show-all {
	background-image: url("/admin/img/show-all.svg");
}

.categories-wrapper .hide-all {
	background-image: url("/admin/img/hide-all.svg");
}

.categories {
	position: relative;
	border-bottom: 1px solid #eee;
}

.categories,
.categories ul {
	padding: 0px;
	margin: 0px;
}

.categories ul {
	display: none;
	margin-left: 20px;
}

.categories li {
	list-style: none;
}

.categories li:before {
	content: "";
	display: block;
	position: absolute;
	left: 0px;
	width: 100%;
	height: 0px;
	border-bottom: 1px dotted #ddd;
}

.categories li.has-children {
	padding-left: 14px;
	background-image: url("/admin/img/has-children.svg");
	background-position: left top 10px;
	background-repeat: no-repeat;
	background-size: 8px;
}

.categories li.has-children.opened {
	background-image: url("/admin/img/opened.svg");
}

.categories li>div {
	width: 100%;
	box-sizing: border-box;
	padding: 5px 0px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.categories li>div>div:first-child {
	flex-grow: 1;
}

.categories li>div:hover {
	text-decoration: underline;
	cursor: pointer;
}

.categories li.selected>div:first-child {
	font-weight: bold;
}

.categories li.selected>div>.check-icon {
	background-image: url("/class/Klever/ui/img/check-on.svg");
}

/* Text */

.text {
	min-height: 100%;
}

.text .form-button {
	margin-top: 20px;
}

/* Tabs */

.tabs {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.tabs>div:first-child {
	display: flex;
	padding-bottom: 10px;
}

.tabs>div:first-child>div {
	padding: 5px 0px;
	margin-right: 20px;
	cursor: pointer;
}

.tabs>div:first-child>div:hover {
	border-bottom: 1px solid #000;
}

.tabs>div:first-child>div.selected {
	border-bottom: 2px solid #59a5da;
}

.tabs>div:nth-child(2) {
	flex-grow: 1;
	display: flex;
}

.tabs>div:nth-child(2)>div {
	display: none;
}

.tabs>div:nth-child(2)>div.selected {
	display: block;
	flex-grow: 1;
}

/* Field Settings */

.fields>.sort-button {
	display: inline-block;
	margin-top: 10px;
}

.list-values-header,
.color-values-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 15px 0px 10px 0px;
}

.list-values-header>div:first-child,
.color-values-header>div:first-child {
	flex-grow: 1;
	font-weight: bold;
}

.list-values-header .sort-button,
.color-values-header .sort-button {
	margin-left: 10px;
}

.add-list-value .form,
.add-color-value .form {
	display: flex;
}

.add-list-value .form>div,
.add-color-value .form>div {
	margin: 0px;
}

.add-list-value .form>div:first-child,
.add-color-value .form>div:first-child {
	flex-grow: 1;
}

.add-list-value .form>div.add-button,
.add-color-value .form>div.add-button {
	padding-left: 0px;
	margin-left: 10px;
}

.list-values .table,
.color-values .table {
	width: 100%;
}

.list-values .table .tbody>div>div:nth-child(2),
.color-values .table .tbody>div>div:nth-child(2) {
	width: 99%;
}

/* Entity Data View */

.entity-data-row-image-view {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	border: 1px solid #eee;
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.entity-data-row-color-view {
	display: flex;
	align-items: center;
}

.entity-data-row-color-view>div {
	width: 24px;
	height: 24px;
	margin-right: 6px;
	border-radius: 6px;
}

.entity-data-row-file-view {
	display: flex;
	flex-direction: column;
}

.entity-data-row-file-view a {
	color: #000;
	display: list-item;
	list-style: disc;
	margin-left: 12px;
}

/* Items */

.table.items .tr>div {
	border-right: none;
	border-left: none;
}

.table.items .item>div {
	background-color: #f8f8f8;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.table.items .icon {
	min-width: 24px;
}

.table.items .add-icon {
	padding-left: 30px;
	background-position: right 12px center;
}

.table.items .form {
	padding: 5px;
}

.shop-items .search-quick-edit-menu,
.custom-items .search-quick-edit-menu {
	display: flex;
}

.shop-items .search-quick-edit-menu>div,
.custom-items .search-quick-edit-menu>div {
	display: flex;
	padding: 3px 10px 3px 32px;
	background-position: left 10px center;
	background-repeat: no-repeat;
	background-size: 16px;
	background-color: #f8f8f8;
	border: 1px solid #ddd;
	border-radius: 4px;
	margin: 5px 10px 5px 0px;
}

.shop-items .search-quick-edit-menu>div>div,
.custom-items .search-quick-edit-menu>div>div {
	padding: 5px;
	cursor: pointer;
}

.shop-items .search-quick-edit-menu>div>div.selected,
.custom-items .search-quick-edit-menu>div>div.selected {
	font-weight: bold;
}

.shop-items .search-quick-edit-menu>div>div:hover,
.custom-items .search-quick-edit-menu>div>div:hover {
	text-decoration: underline;
}

.shop-items .search-quick-edit-menu .search-menu,
.custom-items .search-quick-edit-menu .search-menu {
	background-image: url(/admin/img/search.svg);
}

.shop-items .search-quick-edit-menu .quick-edit-menu,
.custom-items .search-quick-edit-menu .quick-edit-menu {
	background-image: url(/admin/img/quick-edit.svg);
}

.search {
	background-color: #f8f8f8;
	border: 1px solid #ddd;
	padding: 5px;
	margin-bottom: 10px;
	white-space: nowrap;
}

.shop-items .search,
.custom-items .search {
	display: none;
}

.search>.form {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
}

.search .form>div {
	margin: 0px 10px 0px 0px;
	padding: 5px 0px;
	display: flex;
	align-items: center;
}

.search .form>div>div {
	margin: 0px 0px 0px 10px;
}

.search .form label {
	padding-bottom: 0px;
	margin-right: 5px;
}

.search .form .date,
.search .form .date {
	width: 90px;
}

.search .form .date-time,
.search .form .date-time {
	width: 140px;
}

.search .form .select2,
.search .form .select2 {
	min-width: 150px;
}


.search .form .id,
.search .form .id {
	width: 60px;
}

.search .form label,
.search .form label {
	white-space: nowrap;
}

.search .form>div.xls,
.search .form>div.xls {
	margin-left: 16px;
	width: 16px;
	height: 16px;
	cursor: pointer;
	background-image: url("/admin/img/xls.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.select2-container .select2-item {
	display: flex;
	align-items: center;
}

.select2-container .select2-item .td {
	padding: 0px 5px;
}

.select2-container .select2-item .td .entity-data-row-image-view {
	width: 22px;
	height: 22px;
}

.shop-items .form.search .select2+div,
.shop-items .form.search .select2+div {
	margin: 0px 0px 0px 10px;
}

.shop-items .form.search .select2+div:empty,
.shop-items .form.search .select2+div:empty {
	display: none;
}

.shop-items .search .form>div>div.add-icon,
.shop-items .search .form>div>div.add-icon {
	margin: 0px 0px 0px 0px;
}

.shop-items .search .form>div>label,
.shop-items .search .form>div>label {
	padding-right: 10px;
	padding-bottom: 0px;
}

.shop-items .search .form button,
.shop-items .search .form button {
	margin-left: 5px;
}

.shop-items .search .form .float,
.shop-items .search .form .bool,
.shop-items .search .form .float,
.shop-items .search .form .bool {
	display: flex;
	align-items: center;
}

.shop-items .search .form .bool label,
.shop-items .search .form .bool label {
	cursor: pointer;
}

.shop-items .search .form .bool>label:first-child,
.shop-items .search .form .bool>label:first-child {
	margin-right: 5px;
}

.shop-items .search .form .float input,
.shop-items .search .form .float input {
	width: 64px;
}

.shop-items .search .form .float>input:first-child,
.shop-items .search .form .float>input:first-child {
	margin-right: 10px;
}

/* Search Items */

.search-items,
.search-categories {
	position: relative;
}

.search-suggestions {
	position: absolute;
	top: 50px;
	left: 0px;
	z-index: 1;
	max-width: 100%;
	box-sizing: border-box;
	background-color: #fff;
	border: 1px solid #ddd
}

.search-suggestions:empty {
	display: none;
}

.search-suggestions .table {
	margin: 0px;
	border-top: none;
	border-bottom: none;
}

.search-suggestions .table .tr {
	cursor: pointer;
}

.search-suggestions .table .tr:hover>div {
	background-color: #f8f8f8;
}

.search-suggestions .table .tr>div,
.selected-items .table .tr>div,
.selected-categories .table .tr>div {
	border-left: none;
	border-right: none;
}

/* Orders */

.order>div:first-child {
	display: flex;
	margin: 5px 0px;
	font-size: 1.2em;
}

.order-items .sum {
	text-align: right;
	font-weight: bold;
	padding: 0px 5px;
}

.order-items .sum:before {
	content: "Сумма заказа: ";
	margin-right: 5px;
}

.order-items input {
	width: 80px;
}

.order-items .edit .edit-icon {
	background-image: url("/class/Klever/ui/img/check-on.svg");
}

.order-items .clickable {
	cursor: pointer;
}

.order-items .clickable:hover {
	text-decoration: underline;
}

.users-count,
.orders-count,
.requests-count {
	font-weight: bold;
}

.orders-count:before {
	content: "Заказы: ";
}

.users-count {
	margin-top: 10px;
}

.users-count:before {
	content: "Пользователи: ";
}

.users .tr {
	cursor: pointer;
}

.users .tr:hover {
	background-color: #f8f8f8;
}

.add-machine {
	margin-top: 20px;
}

.user-messager .messager {
	height: calc(100vh - 130px);
}

.modal>div.user-add-form,
.modal>div.machine-add-form {
	width: 100%;
	max-width: 800px;
}

/* Multi Edit */

.multi-edit {
	display: flex;
	align-items: center;
	margin: 10px 0px;
}

.multi-edit>div {
	margin-right: 10px;
}

.multi-edit label {
	display: flex;
	align-items: center;
}

.multi-edit input {
	margin-right: 5px;
}

.entity-data-multi-editor {
	display: table;
}

.entity-data-multi-editor>div {
	display: table-row;
}

.entity-data-multi-editor>div:nth-child(2n)>div {
	background-color: #f8f8f8;
	border-top: 1px solid #ddd;
	border-bottom: 1px solid #ddd;
}

.entity-data-multi-editor>div>div {
	display: table-cell;
	vertical-align: middle;
	padding: 10px;
}

.entity-data-multi-editor>div>div>div {
	display: flex;
	align-items: center;
}

.entity-data-multi-editor>div>div>div>label {
	margin-right: 10px;
}

.entity-data-multi-editor>div>div>div .type {
	padding-right: 10px;
	white-space: nowrap;
}

.entity-data-multi-editor>div>div>div>div:last-child {
	flex-grow: 1;
}

.entity-data-multi-editor .disabled {
	position: relative;
}

.entity-data-multi-editor .disabled::after {
	position: absolute;
	content: "";
	top: 0px;
	left: 0px;
	width: 100%;
	height: 100%;
	background-color: #fff;
	opacity: 0.8;
}

.entity-data-multi-editor .float-params {
	display: flex;
	align-items: center;
}

.entity-data-multi-editor .float-params>label {
	margin-left: 5px;
}

.entity-data-multi-editor .float-params>select {
	margin-left: 5px;
}

.entity-data-multi-editor .text {
	width: 850px;
}

.entity-data-multi-editor .group {
	height: 40px;
	position: relative;
}

.entity-data-multi-editor .group>div {
	position: absolute;
	top: 0px;
	left: 0px;
	width: 100%;
	font-weight: bold;
}

/* Shop Categories */

.shop-categories .categories-wrapper,
.custom-categories .categories-wrapper,
.gallery-categories .categories-wrapper {
	display: inline-block;
	margin-top: 10px;
}

.shop-categories .categories .icon,
.custom-categories .categories .icon,
.gallery-categories .categories .icon {
	margin-left: 10px;
}

/* Order */

.order .xls {
	width: 32px;
	height: 32px;
	margin-bottom: 10px;
	cursor: pointer;
	background-image: url("/admin/img/xls.svg");
	background-position: center;
	background-repeat: no-repeat;
	background-size: contain;
}

.order-settings .add-form {
	max-width: none;
}

.order-settings .sort-icon,
.pickup .sort-icon {
	width: 16px;
	margin: 10px 0px;
}

.order-settings .location-icon {
	min-width: 16px;
	min-height: 16px;
	cursor: pointer;
	background-image: url("/class/Order/img/location.svg");
	background-position: center center;
	background-repeat: no-repeat;
	background-size: 16px;
}

.add-pickup.add-form {
	max-width: none;
}

/* Promo */

.promo-form .sale-row {
	display: flex;
	align-items: center;
}

.promo-form .sale-row input[type=number] {
	max-width: 100px;
	margin-right: 10px;
}

.promo-form select[name=categories],
.promo-form select[name=items] {
	display: none;
}

/* User Permissions */

.permissions>div>div>div:first-child {
	font-weight: bold;
	margin-top: 10px;
	margin-bottom: 5px;
}

.permissions>label:first-child+div {
	border-top: 1px solid #ddd;
	padding-top: 10px;
}