@keyframes loader5Animation{0% {tranform: rotate(0deg);}100%{transform: rotate(360deg);}}
@import url(//fonts.googleapis.com/css?family=Open+Sans:300italic,400italic,600italic,700italic,800italic,400,300,600,700,800&subset=latin,cyrillic-ext,greek-ext,vietnamese);

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Calibri', 'Open Sans', sans-serif;
  color: #000000;
  text-rendering: optimizeLegibility;
}

:root {
  --header-top-height:60px; 
  --column-left-width:50px;
}

/*::-webkit-scrollbar {
  width: 5px; 
}

::-webkit-scrollbar-thumb {
  background-color: #888; 
}
*/


h1, h2, h3, h4, h5, h6, p {
  margin-top: 0;
}

input[type="checkbox"]{cursor:pointer;margin: 0;}
input.error{border-color:red;}
.collection-admin-orders .error-quantity{font-size:16px;color:red;font-weight:bold;}

.center{
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:30px;
  height: 100%;
}

legend {
  
}

label{
  cursor:pointer;
  margin-bottom:0;
  font-weight:normal;
}

button[disabled]{opacity:0.3;cursor:no-drop;}
input[readonly]{background-color: #ededed;user-select: none;}

.form-control {
  display: block;
  width: 100%;
  height: 36px;
  padding: 8px 13px;
  font-size: 13px;
  line-height: 1.428571429;
  color: #555;
  background-color: #fff;
  background-image: none;
  border: 1px solid #ccc;
  border-radius: 3px;
  -webkit-box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%);
  -webkit-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  -o-transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
  transition: border-color ease-in-out 0.15s, box-shadow ease-in-out 0.15s;
}               

.w-100{width:100%!important;}
.w-80{width:80%!important;}
.w-75{width:75%!important;}
.w-70{width:70%!important;}
.w-50{width:50%!important;}
.w-40{width:40%!important;}
.w-30{width:30%!important;}
.w-25{width:25%!important;}
.w-20{width:20%!important;}

.d-none{display:none !important;}

.datetimepicker{width:120px;cursor:pointer;}
.datetimepicker_time{width:145px;cursor:pointer;}
.xmdate{width:120px;}
input[type="date"]{width:130px;}

#header{
  width: 100%;
  font-size: 18px;
  position: relative;
}

#header .top{
  height: var(--header-top-height);
  display:flex;
  align-items: center;
  justify-content: space-between;
  background-color: #114354;
  color: #FFF;
  padding: 0 10px 0 0;
  z-index:10;
  position: relative;
}

#header .left{display:flex;padding-left:var(--column-left-width);align-items:center;}
#header a.add{font-size:30px;line-height:21px;}

#login{
  display: inline-flex;
  align-items: center;
}

#header .menu{
  display: flex;
  align-items: center;
  padding: 5px 10px;
  /*box-shadow: 0px 0px 3px #ccc;*/
  /*background-color: #e5f9ff;*/
  gap: 20px;
}

#header .menu .menu-item{
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  align-items: center;
}

#header .menu .menu-item.active span{
  color: #00fa9a;
}

#header .menu .menu-item.active svg g{
  fill: #00fa9a;
}

#header .menu .menu-item object, #header .menu .menu-item svg{
  height:35px;
  width: 100%;
}

#header .menu .menu-item svg g{
  fill:#FFF;
}

#header .menu .menu-item:hover svg g{
  fill:#d0e6ed;
}

#header .menu .menu-item span{
  font-size:12px;
  color:#FFF;
}

#header .menu .menu-item:hover span{
  color:#d0e6ed;
}

#header .home{color:#FFF;height:25px;display:inline-block;margin-right:10px;}
#header .home img{height:100%;}

#header .logo{height:100%;}
#header .logo img{height:100%;}

body{
  /*background-image: url(/image/body.jpg);
  background-repeat: no-repeat;
  background-size: 70%;
  background-position: center 60px;*/
}

#content{
  /*padding:20px;*/
  /*margin-left:var(--column-left-width);*/
}

.page-menu{
  background-color: #ecf4f9;
  padding:10px;
  display:flex;
  align-items: center;
  justify-content: space-between;
}

.page-menu-controls{
  display:flex;
  gap:15px;
}

.flex1{
  flex:1;
}

.vitem{
  display:flex;
  flex-direction: column;
  position:relative;
}

.vitem.jc-end{
  justify-content: flex-end;
}

.gitem{
  display:flex;
  flex-direction: row;
  gap:10px;
  align-items: flex-end;
}

.gitem.jc-sb{
  justify-content: space-between;
}

.gitem.js-fend{
  justify-content: flex-end;
}

.gitem.ai-center{
  align-items: center;
}


.gitem.autofit > *{
  flex: 1;
}

.gitem.autofit > * input[type="text"]{
  width:100%;
}

.vitem div{
  
}

.vitem input:not([type="checkbox"]), .vitem select, .vitem textarea, 
.gitem input:not([type="checkbox"]), .gitem select, .gitem textarea, 
.modal_form input:not([type="checkbox"]), .modal_form select, .modal_form textarea, 
.controls input:not([type="checkbox"]){
  border-radius: 5px;
  outline: none;
  border:1px solid grey;
  padding:3px;
  width:100%;
  height: 30px;
}

.gitem .vitem input:not([type="radio"]), .gitem .vitem select,
.modal_form .questionnaire-users input:not([type="radio"]), .modal_form .questionnaire-users select, 
.form-driver input:not([type="radio"]){
  margin-bottom: 0 !important;
}

input[name="days"]{
  width:60px;
}

.page-content{
  padding:10px;
}

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

.i_table > thead > tr > td{
  background: #103740;
  padding: 7px;
  text-align: center;
  font-weight: bold;
  color:#FFF;
}

.i_table > thead > tr + tr > td{
  background: #8bd9a7;
}

.i_table > thead > tr:first-child > td:first-child{
  border-radius:10px 0 0 0;
}

.i_table > thead > tr:first-child > td:last-child{
  border-radius:0 10px 0 0;
}

.i_table > tbody > tr:nth-child(odd) > td{
  background:#cee1e2;

}

.i_table > tbody > tr:nth-child(even) > td{
  background:#e9f4f7;
}

.i_table > tbody > tr > td, .i_table > tfoot > tr > td, .i_table > tfoot > tr.border > td {
  padding: 7px; 
}

.i_table .action{
  width:50px;
  text-align:center;
  white-space: nowrap;
}

.i_table .action a + a{
  margin-left:5px;
}

.i_table .action img{
  height:20px;
}

.i_table.size-sm > thead > tr > td, .i_table.size-sm > tbody > tr > td{
  padding: 5px;
  font-size:12px;
}


.i_table:not(.nohover) > tbody > tr:hover:not(.nohover):not(.images_baner_block_row):not(.thead) > td{
  background-color: #e6f1ff;
}

.i_table > thead > tr > td, .i_table tr.thead > td {
  padding: 7px;
  text-align: left;
  font-weight: bold;
  /*border: 1px solid #DDDDDD;*/
}

.i_table > thead.no-background > tr > td{background:none;}

.i_table > tfoot > tr > td{font-weight:bold;}

.i_table.nowrap tr td{white-space:nowrap;}
.i_table.pointer > tbody > tr > td{cursor:pointer;}

.i_table.size-sm > thead > tr > td, .i_table.size-sm > tbody > tr > td{padding: 5px;font-size:12px;}
.i_table > thead > tr.filter > td{background-color:#e6f1ff;font-weight:normal;}
.i_table > thead > tr.filter select, .i_table > thead > tr.filter input{width:100%;}

.i_table.sticky thead tr:first-child td{position:sticky!important;top:-1px;z-index:2;}

.button-item-home{
  box-shadow: 0px 0px 8px #d7d7d7;
  padding: 30px 50px;
  border-radius: 5px;
  display: inline-block;
  font-size: 24px;
  background: #018def !important;
  border: 1px solid #018def !important;
  color: #FFF!important;
  margin-bottom:10px;
}


#price-list .content, #place-list .content{
  padding-top:0;
}

.button-item-home:hover{
  opacity:0.7;
  text-decoration: none;
}

button, .i_button{
  background: #175351;
  border: 1px solid #175351;
  color: #FFFFFF;
  padding: 5px 14px;
  font-weight: normal;
  border-radius: 3px;
  display: inline-flex;
  font-size: 14px;
  text-shadow: none;
  outline: none;
  box-shadow: none;
  max-width: 100%;
  text-align: center;
  border-radius: 4px;
  box-shadow: inset 0 1000px 0 rgb(0 0 0 / 10%);
  white-space: nowrap;
  text-decoration: none;
  cursor:pointer;
  min-height:37px;
  min-width:37px;
  align-items: center;
  justify-content: center;
  /*transition: all 0.1s;*/
  
}

.i_button:hover{
  text-decoration:none;
}

.page-menu-controls button:not(.i_button):not(.btn-default){
  height: 37px;
  width: 37px;
  align-self: flex-end;
}

.page-menu-controls .i_button{
  align-self: end;
}

.car-price{
  min-height: auto;
}

button:active:not([disabled]):not(.dropdown-toggle), .i_button:active:not([disabled]){
  transition: none;
  transform: scale(0.95);
}

button.btn-cancel{
  color: #666;
  background-color: #fff;
  border-color: #ddd;
}

button:not([disabled]):not(.dropdown-toggle):hover, .i_button:not([disabled]):hover{
  background-color: #26a67a;
  border: 1px solid #26a67a;
  opacity: .85;
  color:#FFF;
}

.controls{
  margin-bottom:10px;
  text-align:right;
}

.questionnaire-object .controls{
  margin:7px 0 0 0;
  text-align:left;
}

.questionnaire-object .controls button{
  min-height: 30px;
}

.modal_form {
	border-radius: 1px;
	background: #fff;
	position: fixed; 
  top: 25%;
  left: 45%; 
	display: none; 
	z-index: 99999999; 
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.modal_form p{margin-bottom:3px;}
.modal_form input:not([type="radio"]):not([type="checkbox"]), .modal_form select, .modal_form textarea, .modal_form .spicker{margin-bottom:9px;}
.modal_form p.error_text{margin-top:-12px;}
.modal_form .statusbar{height:12px;border-top:1px solid #ededed;margin-top:7px;margin-left:-10px;margin-right:-10px;padding:0 10px;}

.modal_form .modal_info{padding:10px 10px;}

.modal_form .modal_header {
  font-size: 14px;
  font-weight: bold;
  margin-top: 0px;
  text-align: left;
  background: #f6f4f6;
  padding: 5px 10px;
  border-radius: 5px 5px 0px 0px;
  cursor: move;
  white-space: nowrap;
  padding-right: 40px;
}

.modal_form .btn_close {
  font-size: 20px; 
  font-weight: bold; 
  float: right;
  cursor: pointer;
  margin-right: 5px;
  
  font-size: 34px !important;  
  line-height: 31px !important;
  font-weight: normal;
  opacity:0.7;
}

.modal_form .btn_close:hover{
  opacity:1;
}

.modal_form form{min-width:600px;max-width:100%;}

.modal_dropdown_menu{
  list-style: none;
}

.modal_dropdown_menu img, .modal_menu img{
  height:24px;
}

.modal_dropdown_menu > li:first-child{
  padding-left:0;
}

.modal_dropdown_menu ul{
  display:none;
  list-style: none;
  min-width: 160px;
}

.modal_dropdown_menu li{
  padding:3px 5px;
  position:relative;
  white-space: nowrap;
  background-color:#FFF;
}

.modal_dropdown_menu li:hover{
  background-color:#f5f5f5;
}

.modal_dropdown_menu li:hover > ul{
  display:block;
  position:absolute;
  left:0;
  top:100%;
  padding-left: 0;
  z-index: 1;
  box-shadow: 0px 0px 8px #d7d7d7;
}

.modal_dropdown_menu li:hover > ul > li > ul{
  left: 100%;
  top: 0;
  
  padding: 5px 0;
  margin: 2px 0 0;
}

.modal_dropdown_menu a{
  display: block;
  padding: 0 10px;
  clear: both;
  font-weight: normal;
  line-height: 1.42857;
  color: #333;
  white-space: nowrap;
  text-decoration:none;
}

.modal_menu{
  list-style: none;
  padding: 0;
  margin-bottom:9px;
}

.modal_menu > li:hover{
  box-shadow: 0px 0px 8px #d7d7d7;
}

.modal_menu > li, .modal_dropdown_menu > li{
  cursor:pointer;
  float:left;
}

.modal_menu > li + li{
  margin-left:7px;
}

.modal_menu li img:hover{
  opacity:0.7;
}

.modal_menu.nav > li > a{
  padding:0;
}

.buttons{margin-top:10px;text-align:right;}
.form-order-client .vitem{gap:20px;}

input.error, select.error{border-color:red !important;}
p.error_text{
  color: red;
  font-size: 13px;
  position: absolute;
  top: 100%;
  margin: 0;
  line-height: 11px;
}

.i_checkbox{display:none;}

.i_checkbox + label, #adult ~ * label[for="adult"], #main_contact ~ * label[for="main_contact"],
#blocked ~ * label[for="blocked"]{
  width: 45px;
  height: 29px;
  background-image: url(https://calc.ins-team.ru/images/off.png);
  background-size: cover;
  display: inline-block;
  cursor: pointer;
  margin:0;
}

.i_checkbox:checked + label, #adult:checked ~ * label[for="adult"], #main_contact:checked ~ * label[for="main_contact"],
#blocked:checked ~ * label[for="blocked"]{
  background-image: url(https://calc.ins-team.ru/images/on.png);
}

.user_form .phone{display:none;}
.user_form #adult:checked ~ .phone{display:block;} 
.user_form .persons{margin-top:30px;}
.user_form .persons .remove_person{float:right;}
.user_form .persons .edit_person{float: right;margin-right: 10px;}

.user_form.show .user_name{color:#eb7d93;}
.user_form.show .blocked p{font-size:14px;font-weight:normal;}
.user_form.show .blocked_date{display:none;}
#blocked:checked ~ .blocked_date{display:flex;justify-content:space-between;align-items:center;width:100%;}

#user-list .content{padding:0;}
#user-list .controls{padding:0 10px;}
#user-list .users, .persons{width:100%;padding:0;list-style-position: inside;}
#user-list .users li, .persons li{padding:15px 10px;border-top:1px solid #ededed;border-bottom:1px solid #ededed;}
.persons li{margin-right:-10px;margin-left: -10px;}
#user-list .users li + li, .persons li + li{border-top:none;}
#user-list .users li a.edit{float:right;}

a[href^="tel"]:hover{text-decoration:none;}
.color-red{color:red!important;}
.color-green{color:green!important;} 

.i_close{width: 20px;height: 20px;opacity: 0.3;position: relative;cursor: pointer;display: inline-block;}
.i_close.size-sm{width:12px;height:12px;}
.i_close:hover{opacity:1;}
.i_close:before, .i_close:after{position:absolute;left:9px;content:' ';height:23px;width:2px;background-color:#333;}
.i_close.size-sm:before,.i_close.size-sm:after{height:12px;width:1px;left:5px;} 
.i_close:before{transform: rotate(45deg);}
.i_close:after{transform: rotate(-45deg);}
.i_close.red:before, .i_close.red:after{background-color:red;}

.space-between{
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width:100%;
}

.i_list{
  width: 100%;
  padding: 0;
  list-style-position: inside;
}

.i_list li{
  font-size:16px;
  padding: 15px 10px;
  border-top: 1px solid #ededed;
  border-bottom: 1px solid #ededed;
  margin-right: -20px;
  margin-left: -20px;
  position: relative;
}

.i_list li + li {
  border-top: none;
}

.i_list li p{margin:0;}

.empty-data{
  font-size:16px;
}

.empty-data p:nth-child(2){
  color:#ac5d24;
  font-weight:bold;
}

.price_training li{
  font-weight:bold;
  position:relative;
  padding-right: 25px;
}

.price_training span{
  display: block;
  padding-left: 20px;
  margin-top: -22px;
}

.price_training .price{
  color: #eb7d93;
  margin-top:7px;
}

.price_training a.remove, .place a.remove{
  height: 30px;
  display: inline-flex;
  position: absolute;
  top: calc(50% - 15px);
  right: 10px;
}

#login span{
  font-size:16px;
  display:inline-block;
  margin-right:10px;
}

#column-left{
  transition: all 0.3s;
  left: 0px;
  width:var(--column-left-width);
  height: 100%;
  overflow: auto;
  background-color: #d0e6ed;
  position: absolute;
  top: 0px;
  padding-top: 60px;
  z-index: 1;
  padding-top:var(--header-top-height);
}

.pagination .links a, .pagination .links span{
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #d0e6ed;
  border-radius: 50%;
  text-decoration: none;
} 

.pagination .links span{
  font-weight:bold;
}

.form-questionnaire{
  display:flex;
  gap:15px;
  min-height:400px;
}

.questionnaire-list{
  width:200px;
}

.questionnaire-list-table tr[data-guid]{
  cursor:pointer;
}

.questionnaire-list-table tr.active td{
  background-color: #e6f1ff;
}

.questionnaire-users{
  width:400px;
}

.questionnaire-users .user-info-0, .questionnaire-users .user-info-1{
  display:none;
}

.questionnaire-child .tab-pane > * + *, .questionnaire-users .user-info-0 > * + *, .questionnaire-users .user-info-1 > * + *, 
.form-driver .gitem + .gitem{
  margin-top:7px;
}

input[id$="[car_credit_0]"]:checked ~ .car_credit{
  display:none;
}

input[id$="[client_type_0]"]:checked ~ .user-info-0, input[id$="[client_type_1]"]:checked ~ .user-info-1,
input[id$="[client_type2_0]"]:checked ~ .user-info-0, input[id$="[client_type2_1]"]:checked ~ .user-info-1{
  display:block;
}

.questionnaire-child:not(.active){
  display:none;
}

.questionnaire-object{
  width:500px;
}

.nav-tabs li.nav-item a {
  color: #a5a5a5;
  -webkit-user-drag: none;
}

.nav-tabs li.active a {
  font-weight: bold;
  color: #333;
}

.nav > li > a{
  padding:5px 7px;
}

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

.xm_table > thead > tr > td, .xm_table tr.thead > td {
  background: #efefef;
  padding: 7px;
  text-align: center;
  font-weight: bold;
  border: 1px solid #DDDDDD;
}

.xm_table > thead.no-background > tr > td{background:none;}

.xm_table > tbody > tr > td, .xm_table > tfoot > tr.border > td, 
.xm_table > tfoot > tr > td {
  padding: 7px; /*cursor:default;*/
  border: 1px solid #DDDDDD;
  background-color: #FFFFFF;
}

.xm_table > tfoot > tr > td{
  font-weight:bold;
}

.xm_table > tbody > tr:hover > td{
  background-color: #e6f1ff;
}

.xm_table.nowrap tr td{white-space:nowrap;}
.xm_table.pointer > tbody > tr > td, td.pointer{cursor:pointer;}

.xm_table.size-sm > thead > tr > td, .xm_table.size-sm > tbody > tr > td{padding: 5px;font-size:12px;}
.xm_table > thead > tr.filter > td{background-color:#e6f1ff;font-weight:normal;}
.xm_table > thead > tr.filter select, .xm_table > thead > tr.filter input{width:100%;}
.xm_table.sticky thead tr td{position:sticky!important;top:-1px;z-index:2;}
.text-number{text-align:right;width:20px;}

table.scrol-x{
  white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}

.switch-group{
  display: flex;
  border-radius: 10px;
  box-shadow: 0 0 10px rgb(0 0 0 / 5%);
}

.text-white {
  color: #fff;
}

.switch-group__button {
  flex: 1 0 auto;
  min-width: 0;
  max-width: 50%;
  user-select: none;
  margin-bottom:0;
  font-weight:normal;
}

.border-focus, .border-focus-inset {
  outline: none;
}

.switch-group__input {
  opacity: 0;
  position: absolute;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: none;
}

.switch-group__label {
  /*height: 50px;*/
  display: flex;
  align-items: center;
  padding: 5px 10px;
  justify-content: center;
  background-color: #fff;
  color: #175351;
  margin-right: 1px;
  cursor: pointer;
  position: relative;
  transition: background .2s, color .2s;
  text-align: center;
}

.switch-group__button:first-child .switch-group__label {
  border-radius: 10px 0 0 10px;
}

.switch-group__label:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.switch-group__button:first-child .switch-group__label:before {
  border-radius: 10px 0 0 10px;
}

.switch-group__button:last-child .switch-group__label {
  border-radius: 0 10px 10px 0;
  margin-right: 0;
}

.switch-group__button:last-child .switch-group__label:before {
  border-radius: 0 10px 10px 0;
}

.switch-group__input:checked~.switch-group__label,
input[id$="[client_type_0]"]:checked ~ .gitem label[for$="[client_type_0]"] .switch-group__label, input[id$="[client_type_1]"]:checked ~ .gitem label[for$="[client_type_1]"] .switch-group__label,
input[id$="[car_credit_0]"]:checked ~ .gitem label[for$="[car_credit_0]"] .switch-group__label, input[id$="[car_credit_1]"]:checked ~ .gitem label[for$="[car_credit_1]"] .switch-group__label,
input[id$="[client_type2_0]"]:checked ~ .gitem label[for$="[client_type2_0]"] .switch-group__label, input[id$="[client_type2_1]"]:checked ~ .gitem label[for$="[client_type2_1]"] .switch-group__label,
input[id$="[without_limitation_0]"]:checked ~ .controls label[for$="[without_limitation_0]"] .switch-group__label, input[id$="[without_limitation_1]"]:checked ~ .controls label[for$="[without_limitation_1]"] .switch-group__label{
  color: #fff;
  background: #175351;
}

.table-responsive{
  position:relative;
}

input[id$="[without_limitation_1]"]:checked ~ .table-responsive:after{
  content:"";
  position:absolute;
  z-index:1;
  left:0;top:0;
  width:100%;
  height:100%;
  background: #7b9b7d;
  opacity: 0.1;
}

.form-driver input[name="ltext5"]{
  width:auto;
}


.dropdown-item {
  display: block;
  width: 100%;
  /*padding: 0.25rem 1.5rem;*/
  /*padding: 3.5px 21px;*/
  padding: 3.5px 7px;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  text-decoration:none;
  font-size: 14px;
  line-height:normal;
}

.dropdown-item.active, .dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: #1e91cf;
}

.dropdown-item:hover, .dropdown-item:focus {
  color: #16181b;
  text-decoration: none;
  background-color: #f8f9fa;
}

.ios7-switch{margin-bottom:0;display:inline-block;position:relative;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;tap-highlight-color:transparent;font-size:23px!important;} 
.ios7-switch input{opacity:0;position:absolute}
.ios7-switch input + span{position:relative;display:inline-block;width:1.65em;height:1em;background:white;box-shadow:inset 0 0 0 .0625em #e9e9e9;border-radius:.5em;vertical-align:-.15em;transition:all 0.40s cubic-bezier(.17,.67,.43,.98)}
.ios7-switch:active input + span,.ios7-switch input + span:active{box-shadow:inset 0 0 0 .73em #e9e9e9}
.ios7-switch input + span:after{position:absolute;display:block;content:'';width:.875em;height:.875em;border-radius:.4375em;top:.0625em;left:.0625em;background:white;box-shadow:inset 0 0 0 .03em rgba(0,0,0,0.1),0 0 .05em rgba(0,0,0,0.05),0 .1em 0.2em rgba(0,0,0,0.2);transition:all 0.25s ease-out}
.ios7-switch:active input + span:after,.ios7-switch input + span:active:after{width:1.15em}
.ios7-switch input:checked + span{box-shadow:inset 0 0 0 .73em #4cd964}
.ios7-switch input:checked + span:after{left:.7125em}
.ios7-switch:active input:checked + span:after,.ios7-switch input:checked + span:active:after{left:.4375em}
.ios7-switch input:focus + span:after{box-shadow:inset 0 0 0 .03em rgba(0,0,0,0.15),0 0 .05em rgba(0,0,0,0.08),0 .1em 0.2em rgba(0,0,0,0.3);background:#fff}
.ios7-switch input:focus + span{box-shadow:inset 0 0 0 .0625em #dadada}
.ios7-switch input:focus:checked + span{box-shadow:inset 0 0 0 .73em #33be4b}
.ios7-switch:hover input:focus + span:after{box-shadow:inset 0 0 0 .03em rgba(0,0,0,0.1),0 0 .05em rgba(0,0,0,0.05),0 .1em 0.2em rgba(0,0,0,0.2);background:#fff}
.ios7-switch:hover input:focus + span{box-shadow:inset 0 0 0 .0625em #e9e9e9}
.ios7-switch:hover input:focus:checked + span{box-shadow:inset 0 0 0 .73em #4cd964}
.ios7-switch .switch_on,.ios7-switch input:checked ~ .switch_off{display:none}
.ios7-switch input:checked ~ .switch_on,.ios7-switch .switch_off{display:inline-block;font-size:.6em;position:relative;top:-.2em;left:.3em}
.ios7-switch .switch_off{color:#e0e0e0}

.dropdown-menu{
  min-width: 100%;
}

.reminder .dropdown{
  width: 100%;
}

.reminder .reminder-client input[type="text"]{
  margin-bottom:0;
}

.reminder .reminder-client input[name="nidlib"][value="0"] ~ .i_ajax{
  opacity:0.2;
  cursor:no-drop;
  pointer-events: none;
}

.qm{
  border: 1px solid;
  border-radius: 50%;
  display: inline-flex;
  width: 15px;
  height: 15px;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  cursor: pointer;
}

#loader {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: solid #2196F3 4px;
  margin-left: auto;
  margin-right: auto;
  position: fixed;
  left: calc(50% - 50px);
  top: calc(50% - 50px);
  z-index: 100001;
  /*display: none;*/
}

#loader:before {
  content: "";
  height: 42px;
  width: 4px;
  position: absolute;
  left: 44px; /*48*/
  top: 10px;
  background: #2196F3;
  border-radius: 2px;
  transform-origin: 2px 40px;
  animation: loader5Animation 2s linear infinite;
}

#loader:after {
  content: "";
  height: 27px;
  width: 4px;
  position: absolute;
  left: 44px; /*48*/
  top: 25px;
  background: #2196F3;
  border-radius: 2px;
  transform-origin: 2px 25px;
  animation: loader5Animation 12s linear infinite;
}

#overlay{
  z-index: 100000;
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  /*display: none;*/
  background: #000000;
  opacity: 0.1;
}

.reminder-info-content{
  margin-top:10px;
}

.demands tbody tr{
  cursor:pointer;
}

tr[data-applicable=""]{
  opacity:0.3;
}

.customer-balance{
  display:block;
  text-align:right;
  color: #8fd8ff!important; 
}

.page-menu-controls select[name="collections"], .page-menu-controls select[name="cid"]{
  width:200px;
}

.collection-form .gitem:first-child{
  margin-bottom:9px;
}

.collection-form textarea[name="description"]{
  height: 100px;
}

.collection-form .remove{
  width:20px;
  cursor:pointer;
}

.collection-form .spicker{
  width:100% !important;
}

.collection-products{
  margin-top:10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.collection-form .collection-products input[name$="[price]"]{
  display:none;
}

.collection-product-input{
  display: flex;
  gap: 10px;
  align-items: center;
}

.collection-product .parent-product{
  position:relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.collection-product .parent-product input[name$="[parent_coeff]"]{
  display:none;
}

.collection-product input[name$="[parent_id]"]:not([value="0"]) ~ input[name$="[parent_coeff]"]{
  display:inline-block;
}

.collection-product .parent-product-name{
  cursor:pointer;
  color:#14628c;
}

.collection-product .parent_product_list{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26), 0 2px 10px 0 rgba(0, 0, 0, 0.16);
  padding: 9px 0px;
  max-width: 340px;
  overflow: hidden;
  position: absolute;
  z-index: 10000;
}

.parent-product-name.active + .parent_product_list{
  display:inline-block;
}

.collection-product .parent_product_list > div{
  padding: 10px 24px;
}

.collection-product .parent_product_list > div:hover{
  background-color: #f4f5f5;
  cursor:pointer;
}

.collection-product input{
  margin:0!important;       
}

.collection-product input.ms-product-autocomplete{
  margin-top:5px!important;
}

.collection-product input[type="number"]{
  width:100px;
  text-align:right;
}

table.collection tr td:not(:first-child){
  width:150px;
  text-align:center;
}

table.collection td{
  position:relative;
}

table.collection td .product-exclude{
  position:absolute;
  top:5px;
  left:5px;
}

table.collection tr[data-orders_count] td{
  background: #22f86f!important; 
}

/*table.collection input[name="customer_client[]"]{
  position:absolute;
  top:7px;
  right:7px;
}*/

table.collection input:not([type="checkbox"]){
  width:100%;
  border-radius: 5px;
  height: 30px;
  text-align:right;
  padding:3px;
}

table.collection .product-exclude + input[type="number"]{
  
}

table.collection input[name="customer[]"]{
  margin:0;
  position: relative;
  top: 3px;
}

table.collection .free_quantity[data-value="0"],
table.collection .free_quantity[data-value^="-"]{
  color:red;
}

table.collection .collection-order span > * + * {
  display:inline-block;
  margin-left:10px;
}

table.collection .customer_name{
  cursor:pointer;
}

.glyphicon-ok:before{
  content: '';
  display: block;
  width: .5em;
  height: 1em;
  border-style: solid;
  border-width: 0 .26em .26em 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}

.bootstrap-select .bs-ok-default:after {
  
}

#message, .defform{
  width:350px;
}

#message textarea {
  width: 100%;
  height: 150px;
  border: 1px solid #ededed;
  border-radius: 5px;
}

#message .spicker, .defform .spicker{
  width:100%!important;
}

#message .upload{
  cursor:pointer;
}

.find_collection table{
  margin-bottom:20px;
}

table.collection input{
  /*width:100px;*/
}

.demand_price_zero_admin{
  color:red !important;
  display:innline-block;
  margin-left:30px;
}


.client-collection, .admin-collection, .admin-collection .controls{
  text-align: center;
}

.admin-collection .controls, .controls-links{
  flex-direction: column;
  gap:10px;
  display:flex;
  width:50%;
  margin: 0 auto 10px;
}

.controls-links{
  text-align:left;
}

.error-quantity-filter{
  color:red !important;
}

.error-quantity-filter.active{
  color:#000 !important;
}

.client-collection{
  padding-bottom:20px;
}

select[readonly]{
  pointer-events: none;
  background-color: #ededed;
}

.admin-collection .order-status[data-id="1"] span{
  color:red;
}

.admin-collection .order-status[data-id="2"] span{
  color:green;
}  

.admin-collection .order-status[data-id="3"] span{
  color:#e3503e;
  font-weight:bold;
}                  

.order-orders-count{
  color: #1e91cf;
  cursor:pointer;
}                             

.client-collection .pickpoint_content, .client-collection .promo_code_content{
  width:400px;
  margin-left:auto;
  margin-right:auto;
}

.client-collection .promo_code_apply{
  padding-left:20px;
  padding-right:20px;
}

.client-collection .pickpoint_content, .client-collection .promo_code_content{
  margin-top:10px;
}

.client-collection .products{
  display: flex;
  /*align-items: flex-end;*/
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
  margin-bottom:7px;
}

.client-collection .product{
  width: 200px;
  padding:10px;
  display: flex;
  flex-direction: column;
  align-items: center; 
  box-shadow: 0px 0px 8px #d7d7d7;
}

.client-collection .product-image{
  flex: 1;
}

.client-collection .product-image img{
  max-width:100%;
}

.client-collection .product-name{


}

.client-collection .product-price, .client-collection .product-price-promo,
.client-collection .product-quantity-info{
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 16px;
}

.product-promo .product-price{
  text-decoration: line-through;
}

.client-collection .product-price-promo{
  color:red;
}

.client-collection .product-quantity{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.client-collection .product-quantity input{
  width: 50%;
  border-radius:5px;
  text-align:right;
  pointer-events: none;
}

.product-quantity-controll{
  display: flex;
  width: 45%;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.product-quantity-controll span{
  width: 30px;
  height: 30px;
  border-radius: 5px;
  border: 1px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor:pointer;
  font-size: 30px;
  user-select: none;
}

.client-collection .product-limit{
  width: 100%;
  text-align: left;
}

.client-collection .client-info{
  justify-content: center;
  margin-top:20px;
}

.client-collection .client-info-message{
  margin-top:15px;
}

.client-collection .client-info .vitem div{
  text-align:left;
}

.client-collection-order .products{
  display:table !important;
  border-collapse: collapse;
  width:70%;
  margin-left:auto;
  margin-right:auto;
}

.client-collection-order .products .product{
  display: table-row;
  box-shadow:none;
  border:1px solid #ededed;
  position:relative;
}

.client-collection-order .products .product > div{
  display:table-cell;
  width:auto;
  text-align:left;
  padding:7px;
  
}

.client-collection-order .products div.product-image{
  width:70px;
}

.client-collection-order .products .product-image img{
  width: 70px;
  height: 70px;
  max-width: unset;
}

.client-collection .product-prices{
  width:100%;
}

.client-collection-order .products div.product-price,
.client-collection-order .products div.product-price-promo,
.client-collection-order .products div.product-prices{
  text-align:right;
  justify-content: flex-end;
}

.product.product-promo{
  position: relative;
}

.product.product-promo:before{
  /*content:"ПРОМО ЦЕНА";
  position: absolute;
  top: 0;
  left: 0;
  background-color: red;
  color: #FFF;
  width: 100%;
  height: 30px;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;*/
}

.client-collection-order .products div.product-quantity{
  width: 200px;
}

.client-collection-order .products div.product-quantity > *{
  vertical-align: middle; 
  gap: 7px; 
}

.client-collection-order .products .product-quantity-controll{
  display:inline-flex;
}

.client-collection-order .products .product-price div:first-child,
.client-collection-order .products .product-price-promo div:first-child{
  display:none;
}
  
.login_customers{
  width: 350px;
  height: 350px;
  overflow: auto;
}

.login_customers input{
  width:100%;
  margin-bottom:10px;
}

.login_customers tr{
  cursor:pointer;
}

.active_collection{
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.active_collection > span{
  display: inline-flex;
  flex-direction: column;
}

.active_collection_mobile{
  display:none;
}

label[for="filter-viewed"]{
  display:none;
}

.form-order-client .payment-type{
  margin-bottom: 20px;
}

.form-order-client .payment-type input[name="payment_type"][value="1"]:checked ~ .payment-type-controll label:first-child,
.form-order-client .payment-type input[name="payment_type"][value="2"]:checked ~ .payment-type-controll label:last-child{
  background: #88c9d9;
}

.form-order-client .payment-type input[type="radio"]{
  display:none;
}

.form-order-client .payment-type-controll{
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-order-client .payment-type-controll label{
  display: flex;
  height: 30px;
  border: 1px solid #ededed;
  border-radius: 5px;
  align-items: center;
  justify-content: center;
  width: 45%;
}

.form-order-client textarea[name="comment"]{
  height:85px;
  font-size: 16px;
  padding:7px;
}

.form-order-client .payment-type-1{
  display:none;
}

.form-order-client .payment-type input[name="payment_type"][value="1"]:checked ~ .payment-type-1{
  display:block;
}

.form-order-client .payment-type-1{
  font-size:16px;
  margin-top:20px;
}

.form-order-client .payment-type-1 > * + *{
  margin-top:5px;
}

.form-order-client .payment-type-1 input{
  width:100px;
  margin:0;
  text-align:right;
}

.orders-total{
  padding:10px;
  font-size:18px;
}

.collection-admin .community{
  width:200px;
}

.collection-admin .payment-link{
  text-align:right;
  padding: 0 10px 10px 0;
  font-size: 18px;
}

.form-order-client .order-client-products td.quantity, .form-order-client .order-client-products td.total{
  width:110px;
  white-space: nowrap;
}

.form-order-client input[name="quantity_kg"]{
  text-align:right;
  width: 100%;
  display: block;
}

#context_menu {
  background-color: white;
  border-radius: 3px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.26), 0 2px 10px 0 rgba(0, 0, 0, 0.16);
  padding: 9px 0px;
  
  max-width: 340px;
  overflow: hidden;
  position: absolute;
  z-index: 10000;
}

#context_menu ul {
  list-style: none;
  padding: 0; margin: 0;
}

#context_menu ul li {
  vertical-align: baseline;
  outline: none;
  margin: 0;
  padding: 0;
  border: 0;
}
    
#context_menu ul li:hover {  
  background-color: #f4f5f5;
}

#context_menu ul > li > div {
  padding-right: 24px;
  padding-left: 24px;
  cursor: pointer;
  padding-top: 13px;
  font-size: 14.5px;
  min-height: 40px;
  line-height: 14.5px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#context_menu.size-sm ul > li > div{
  padding-top:7px;
  min-height:29px;
}

#context_menu ul > li > div > a[data-json]{color: inherit;text-decoration: none;}
#context_menu li.separator {
  background-color: #ededed;
  height: 1px;
  margin: 5px 0px;
}

.header-product-name{
  cursor:pointer;
}

.header-product-name.active{
  color:red;
}

.product_handle_move{
  /*width: 15px;
  background: grey;
  height: 25px;
  margin-right: -10px;
  cursor: pointer;*/
  
  width: 38px;
  height: 20px;
  margin-right: -7px;
  cursor: pointer;
  border-top: 4px solid;
  border-bottom: 4px solid;
}

.product_handle_move:after{
  content: "";
  height: 4px;
  background: #000;
  width: 100%;
  position: relative;
  display: block;
  top: calc(50% - 2px);
}

.dropdown-toggle .filter-option{
  background: #FFF;
}

.admin-collection .spicker{
  flex:1;
}

.modal_form form.payment-customer-form{
  width:300px;
  min-width:auto;
}

.modal_form form.payment-customer-form textarea{
  height:unset;
}

.modal_form form.payment-customer-form input[name="summa"]{
  text-align:right;
}

.collection-customer-print{
  width:unset;
}

.collection-customer-print td{
  border-color:#000;
}

.collection-description-content{
  font-size: 20px;
}

.upload-image-content{
  
}

.upload-item{
  position: relative;
  display: inline-flex;
  align-items: center;
}

.upload-item span{
  font-size: 20px;
}

.upload-item .remove{
  width: 25px;
  cursor: pointer;
}

.soc-vk{
  justify-content: center;
  margin-top: 20px;
}

.soc-vk .vitem{
  align-items: flex-start;
  font-size: 20px;
} 

.soc-vk p{
  margin:0;
}

.page-links{
  display:flex;
  gap:20px;
}

.print-selected{
  position:relative;
}

.print-selected .i_close{
  position:absolute;
  top: -3px;
  right: -10px;
}

.order-images-items a + a{
  margin-left:5px;
}

.pickpoint-list{
  padding-top: 10px;
}

.pickpoint-item + .pickpoint-item{
  margin-top:5px;
}

.pickpoint-item input, .pickpoint-item select{
  margin:0!important; 
}

.pickpoint-item select{
  width:150px;
}

.pickpoint-item .telegram_group_name{
  width:150px;
  flex: 0 0 150px;
}

#table-quiz tr td:nth-child(2){
  width:80px;
}

#table-quiz textarea{
  border-radius: 5px;
  outline: none;
  border: 1px solid grey;
  padding:3px;
  width:100%;
}

.page-menu-controls .dropdown.bootstrap-select{
  width:auto !important;
}

select[name="count_orders[]"] + .dropdown-toggle,
.spicker.size-sm + .dropdown-toggle,
.pickpoint-list select.spicker + .dropdown-toggle 
{
  width:100px;
  box-shadow:unset;
  border-radius: 5px;
  min-height:unset;
  height:30px;
}

body[data-page="order.php"] .spicker.size-sm, body[data-page="order.php"] .spicker.size-sm + .dropdown-toggle{
  width:200px;
}

.spicker.w-100{
  width:unset;
}

.spicker.w-100 + .dropdown-toggle{
  width:100%;
}

.spicker.w-100 ~ .dropdown-menu{
  min-width:unset !important; 
  width: 100%!important; 
}

.pickpoint-list select.spicker + .dropdown-toggle{
  width:100%;
}

select[name="count_orders[]"] + .dropdown-toggle .filter-option,
.spicker.size-sm + .dropdown-toggle .filter-option,  
.pickpoint-list select.spicker + .dropdown-toggle .filter-option{
  border-radius: 5px;
}

select[name="count_orders[]"] + .dropdown-toggle .filter-option-inner,
.spicker.size-sm + .dropdown-toggle .filter-option-inner,
.pickpoint-list select.spicker + .dropdown-toggle .filter-option-inner{
  top: -3px;
  position: relative;
}

.pickpoint-list .dropdown.bootstrap-select.spicker{
  margin-bottom:0px;
}


.order-products:hover > td{background-color: #FFF!important;} 
.order-products:not(.active){display:none;}

.payment_href{
  background: #43c518 !important;
  border-color: #43c518 !important;
  margin-top:10px;
}

a.suspend_collection{
  color: orange;
}

.suspend td{
  background: yellow !important;
}

.payment_status{
  color:red;
  padding-left:7px;
}

.payment-refresh{
  color:#000;
  margin-left:10px;
}

.order-action{
  cursor:pointer;
}

#collection-stat-table .collection-name, #collection-stat-table .customer-name{
  cursor:pointer;
}

#collection-stat-table .collection-name{
  font-weight:bold;
}

#collection-stat-table .customer-name{
  padding-left:30px;
}

#collection-stat-table .pickpoint-name{
  padding-left:60px;
}

#collection-stat-table tr[class*="customer-pickpoint"] td{
  background-color:#fafaae;
}

.collection_copy_product_form{
  width:250px;
  min-width: unset !important;
}

.collection_copy_product_form .bootstrap-select{
  width:100% !important;
}

#payment-paid, #payment-overpayments{
  display:none;
}

label[for="payment-paid"], label[for="payment-overpayments"]{
  padding-left: 25px;
  font-size: 14px;
  position: relative;
  top: -3px;
  display: inline-flex;
  align-items: center;
  cursor:pointer;
}

label[for="payment-paid"]:before, label[for="payment-overpayments"]:before{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background: #FFF;
  border: 1px solid #a69db2;
  border-radius: 3px;
}

#payment-paid:checked ~ #content label[for="payment-paid"]:after, #payment-overpayments:checked ~ #content label[for="payment-overpayments"]:after{
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  background-color: #43c518;
  background-image: url(/docs/image/check.svg);
  background-repeat: no-repeat;
  background-position: center;
  border: 1px solid #43c518;
  border-radius: 3px;
  background-size: 80%;
}

#payment-paid:checked ~ .page-content tbody tr, #payment-overpayments:checked ~ .page-content tbody tr,
#payment-paid:checked ~ .page-content tfoot, #payment-overpayments:checked ~ .page-content tfoot{
  display:none;
}

#payment-paid:checked ~ .page-content tbody tr[data-payment_status_id="3"], 
#payment-overpayments:checked ~ .page-content tbody tr[data-payment_status_id="4"]{
  display: table-row!important; 
}

.pickpoints-form .controlls{
  margin-bottom:15px;
}

.pickpoints-form .controlls input{
  margin-bottom:0 !important;
}

.pickpoints-form-items{
  height:500px;
  width:900px;
  /*overflow:auto;*/
  overflow-y: auto;
  overflow-x: hidden;
}

.pickpoints-form-items table input, .pickpoints-form-items table select{
  margin:0!important; 
}

.pickpoints-form-items .remove img{
  width:20px;
}

.pickpoints-form-items tbody tr td:last-child{
  white-space: nowrap;
  text-align:center;
}

.pickpoints-form .spicker{
  margin:0!important;
}

.pickpoints-form .bootstrap-select{
  width:100%!important;
}

.pickpoints-form .spicker .dropdown-menu.open{
  min-width: 100%!important;
  width: 100%!important;
}

.pickpoints-form .spicker + .dropdown-toggle{
  width:100%;
}

.promocode-form{
  width:700px;  
}

.promocode-form .dropdown.bootstrap-select.spicker{
  width:100%!important;   
}

.promocode-form .pickpoint-items{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.promocode-form .pickpoint-items .pickpoint-item{
  display: flex;
  align-items: center;
  gap: 5px;
  width: 50%;
  line-height: normal;
  font-size: 15px;
}

.promocode-form input, .promocode-form select, .promocode-form .spicker{
  margin:0;
}

.promocode-form .products-items input{
  width:100%;
  margin:0 !important;
}

.promocode-form .products-items table tr td{
  width:100px;
}

.promocode-form .products-items table tr td:first-child{
  width:auto;
}

.collection-pickpoint-form .edit{
  cursor:pointer;
}

.m-0 {
    margin: 0 !important
}

.mt-0,.my-0 {
    margin-top: 0 !important
}

.mr-0,.mx-0 {
    margin-right: 0 !important
}

.mb-0,.my-0 {
    margin-bottom: 0 !important
}

.ml-0,.mx-0 {
    margin-left: 0 !important
}

.m-1 {
    margin: 0.25rem !important
}

.mt-1,.my-1 {
    margin-top: 0.25rem !important
}

.mr-1,.mx-1 {
    margin-right: 0.25rem !important
}

.mb-1,.my-1 {
    margin-bottom: 0.25rem !important
}

.ml-1,.mx-1 {
    margin-left: 0.25rem !important
}

.m-2 {
    margin: 0.5rem !important
}

.mt-2,.my-2 {
    margin-top: 0.5rem !important
}

.mr-2,.mx-2 {
    margin-right: 0.5rem !important
}

.mb-2,.my-2 {
    margin-bottom: 0.5rem !important
}

.ml-2,.mx-2 {
    margin-left: 0.5rem !important
}

.m-3 {
    margin: 1rem !important
}

.mt-3,.my-3 {
    margin-top: 1rem !important
}

.mr-3,.mx-3 {
    margin-right: 1rem !important
}

.mb-3,.my-3 {
    margin-bottom: 1rem !important
}

.ml-3,.mx-3 {
    margin-left: 1rem !important
}

.m-4 {
    margin: 1.5rem !important
}

.mt-4,.my-4 {
    margin-top: 1.5rem !important
}

.mr-4,.mx-4 {
    margin-right: 1.5rem !important
}

.mb-4,.my-4 {
    margin-bottom: 1.5rem !important
}

.ml-4,.mx-4 {
    margin-left: 1.5rem !important
}

.m-5 {
    margin: 3rem !important
}

.mt-5,.my-5 {
    margin-top: 3rem !important
}

.mr-5,.mx-5 {
    margin-right: 3rem !important
}

.mb-5,.my-5 {
    margin-bottom: 3rem !important
}

.ml-5,.mx-5 {
    margin-left: 3rem !important
}

@media (max-width:640px){
  body{background-position: center;}
  
  .modal_form{
    left: 0!important; 
    width: 100%!important;
    min-height: 100%;
    border-radius: 0!important;
    position:absolute!important; 
  }
  
  .modal_form:not(.conover){
    top: 0!important;
  }
  
  .modal_form form{
    width: 100%;
    min-width: unset;
  }
  
  .modal_form .modal_header{
    background: #88c9d9;
    color: white;
    padding: 10px;
    border-radius:0;
  }
  
  .modal_form .btn_close{
    line-height: 33px !important;
    color: white;
    font-size: 70px !important;
  }
  
  .user_form.show p, .user_form.show span{    
    font-size: 16px;
    font-weight: bold;
  }
  
  button, .i_button{
    background: #39767f;
  }
  
  .payment_href{
    margin: 10px auto;
    width: 50%;
  }
  
  .i_button:active{opacity:0.5;}
  .i_button:focus, .i_button:active{color:white;text-decoration:none;}
  
  .user_form .add_person{margin-top:50px;border-radius:20px;}
  
  .person{background-color:#fafbfb;padding:7px;border-radius:7px;border:1px solid #b4c9cc;}
  .person button[type="submit"], .person button[type="button"]{border-radius:20px;}
  
  .button-item-home{width:100%;text-align:center;padding: 10px;}
  
  #header .left{
    padding-left:0;
  }
  
  .page-content{
    overflow: auto;
  }
  
  table.collection input:not([type="checkbox"]){
    width:50px;
  }
  
  body[data-page="collection.php"] .page-menu-controls{
    flex-wrap: wrap;
  }
  
  #header.isactive_coll .top{
    /*height: calc(var(--header-top-height) + 40px);
    align-items: flex-start;
    padding-top: 10px;*/
  }
  
  .active_collection{
    /*position: absolute;
    bottom: 0;
    width: 100%;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;*/
    display:none;
  }
  
  .active_collection_mobile{
    display:flex;
    background-color: #114354;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
  }
  
  .active_collection_mobile > div{
    white-space: nowrap;
    color:#FFF;
  }
  
  .active_collection_mobile > span{
    display: flex;
    flex-direction: column;
    overflow: hidden;
    white-space: nowrap;
  }
  
  .active_collection_mobile a{
    width: 100%; 
  }
  
  #header.isactive_coll #login{
    padding-top: 9px;
  }
  
  .client-collection .products{
    flex-wrap: wrap;
  }
  
  .client-collection .product{
    width: 45%;
  }
  
  .client-collection .client-info{
    flex-wrap: wrap;
  }
  
  .client-collection .client-info .vitem{
    width:45%;
  }
  
  .client-collection .client-info button{
    width:95%;
    margin-top: 20px;
  }
  
  .client-collection .client-info .payment_href{
    width:95%;
    margin-bottom:20px;
  }
  
  .admin-collection .controls{
    font-size: 20px;
    width: 80%;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    justify-content: space-between;
    gap:20px;
  }
  
  .admin-collection .controls select{
    flex:1;
  }
  
  .form-order-client{
    font-size:20px;
  }
  
  
  
  .collection-admin .community{
    width:100px;
  }
  
  .collection-admin-orders td:not(.mobile-view){
    display:none;
  } 
  
  .collection-admin-orders .order-link{
    font-size:20px;
    color:#000;
    font-weight:bold;
  } 
  
  .modal_form.conover + #container{
    max-height:100%;
    overflow:hidden;
  }
  
  .client-collection .product-quantity input{
    width: 40px;
  }
  
  .product-quantity-controll{
    width:auto;
    flex:1;
    gap: 10px;
  }
  
  .product-quantity-controll span{
    width: 45px;
    height: 45px; 
  }
  
  .client-collection-order .products{
    width:calc(100% - 10px);
  }
  
  .client-collection-order .products .product-quantity-controll{
    flex-direction: column-reverse;
  }
  
  .client-collection-order .products div.product-quantity{
    width:110px;
    text-align:right;
  }
  
  .client-collection-order .products .product_out_stock{
    position:absolute;
    top:0; 
    left:0;
    width:100%;
    text-align:center;
  }
  
  .client-collection .pickpoint_content, .client-collection .promo_code_content{
    width:100%;
    padding-left:10px;
    padding-right:10px;
  }
  
  .modal_form form.payment-customer-form{
    width:100%;
  }
}

@media print {
  
  .admin-collection .controls{
    display:none;
  }
  
  .content-data.collection-admin{
    width:100%;
  }

  .admin-collection .i_table td{
    background: unset !important;
    border: 2px solid #000!important;
  }
  
  .admin-collection .i_table thead td{
    color:#000;
  }
}