html {
  touch-action: manipulation;
}
body {
  /*-webkit-user-select: none;*/  /* Chrome all / Safari all */
  cursor: default;
  /*overflow-y:scroll;*/
}

.table-fixed table td {
	white-space: nowrap;
}

.switcher {
  top:inherit !important;
}

.switcher {
  /*top: 78px;*/
  right: 50%;
  bottom: -22px;
  transition: transform 0.2s ease;
  transform:translateY(100%);
}

.switcher.active {
    right: 50%;
    transform:translateY(0%);
    z-index: 1060; 
}

.switcher .sw-btn {
    left: 40%;
    bottom:auto;
    top:-42px;
    border-right-width: 1px;
}

/*******************/

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
/*    background:transparent;
	border-right:10px solid transparent;*/
}

::-webkit-scrollbar-thumb {
    background: rgba(194,199,204,.9);
	/*border-radius:10px;*/
}


table {
	 -webkit-user-select: text !important;  /* Chrome all / Safari all */
	 cursor: pointer;
}

/******** TABLES empty rows *********/
table tr + tr.table-empty-row {
	display:none;	
}

/******** MENU disabled items *********/
nav li[disabled] {
	opacity: 0.3;
}

.nav-border .nav > li.wow:after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    border-left-color: inherit;
    border-left-width: 3px;
    border-left-style: solid;
}

.navside .nav li li.nolevel li a { /* убрать отступ в 3ем уровне */
  padding-left: 3.5rem;
}

label.required {
	font-weight: bold;
}

/*******************/

tel, .tel {
	font-size: 11px;
	font-family: monospace;
	background: rgba(0,0,0,0.1);
	padding: 2px 5px;

}


/********** FORM ************/

input[type=date].form-control, input[type=time].form-control, input[type=datetime-local].form-control, input[type=month].form-control {
    padding: .375rem .5rem;
    font-size: 1rem;
}

input[type=date].form-control.form-control-sm, input[type=time].form-control.form-control-sm , input[type=datetime-local].form-control.form-control-sm  , input[type=month].form-control.form-control-sm  {
    padding: .1rem .5rem !important;
    margin-left: .3rem;
}

/********** RIPLE ************/

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple:after {
  content: "";
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, #000 10%, transparent 10.01%);
  background-repeat: no-repeat;
  background-position: 50%;
  transform: scale(9, 9);
  opacity: 0;
  transition: transform .3s, opacity 0.5s;
}

.ripple:active:after {
  transform: scale(0, 0);
  opacity: .2;
  transition: 0s;
}

/*******************************/

/************  THEMES ******************/

.smartpos {
  
  background-color: #f0f0f0; }
  .smartpos .lt {
    background-color: #f8f8f8; }
  .smartpos .dk {
    background-color: #293339; }
  .smartpos .bg {
    background-color: #293339; }
    
  .smartpos .primary {
  /*color: rgba(255, 255, 255, 0.87);*/
  background-color: #2996cc; }
  .smartpos .primary .lt {
    background-color: #0dceb5; }
  .smartpos .primary .dk {
    background-color: #0bb69f; }
  .smartpos .primary .bg {
    background-color: #0cc2aa; }


.smartpos_light {
  color: #2996cc;
  background-color: #293339; }

  .smartpos_light .lt {
    background-color: #293339; }
  .smartpos_light .dk {
    background-color: #293339; }
  .smartpos_light .bg {
    background-color: #293339; }
  .smartpos_light .box {
	background-color: #374248; }
  .smartpos_light.app {
    background-color: #293339; }

/** radio buttons with background**/
.md-check.md-check-bgfill input + i:before {
    border-width: 0;
    background-color: inherit;
}

.md-check-group .md-check:last-child > i {
    margin-right: 0px;
}




.list-group-item {
  cursor: pointer;
}

.list-group .list-tool-delete {
  position: absolute;
  bottom:0px;
  right: 5px;
}

.list-group-item .list-tool-delete {
  display: none;
}
.list-group-item:hover .list-tool-delete {
  display: block;
}

.list-group-item h6 .fa-caret-down {
  display: none;
  margin-left: 5px;
}

.list-group-item h6:hover {
  color: #fff;
}

.list-group-item h6:hover .fa-caret-down {
  display: inline-block;
}




/* в меню добавлена возможность кликать только на стрелачку*/
.navside .nav li a.nav-caret-standalone {
  position: absolute;
  right: 0px;
  top:0;
}

.navside .nav li a:hover, .navside .nav li a:focus {
    background-color: transparent;
}
.navside .nav li:hover, .navside .nav li:focus {
    background-color: rgba(0, 0, 0, 0.065);
}



.text-overflow {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
  /*vertical-align: text-bottom;*/
  margin-bottom: -4px;

}


.btn-ghost {
  opacity: 0.3;
  font-weight: 300;
  border-color: rgba(255,255,255,0.2)
}

.white .btn-ghost {
  opacity: 0.5;
  font-weight: 300;
  border-color: rgba(200,200,200,1)
}

.btn-noborder {
  border:none;
  margin: 5px 0;
}


.btn-ghost:hover {
  opacity: 1;
}

.btn.b-light.btn-onhover-danger:hover, .btn.b-light.btn-onhover-danger:active {
  background-color: #f44455;
  color: #fff !important;;
}

/* WHY ???
.btn > i {
    line-height: normal;
}*/

.form-control.isnew {
  border-bottom-color: #0cc2aa !important;
}

.form-control.notparsed {
  border-bottom-color: #f44455 !important;
}


/********* sm-complete *********/

sm-completer {
  position: relative;
  width: 100%;
  display: table;
}



sm-completer .form-control {
   transition: border 0.2s ease;
   white-space: nowrap;
   /*color: #0cc2aa  !important;
   text-shadow: 0px 0px 0px rgba(255, 255, 255, 0.87);
   -webkit-text-fill-color: transparent;*/

   caret-color: #0cc2aa;
}


.dark sm-completer .form-control:focus 
{
    border-color:rgba(150, 160, 170, 0.5);
    /*border-bottom-color: transparent !important;*/
    /*background-color: #fff !important;*/
    /*color:#000;*/
}
/*
.dark .input-group sm-completer .form-control + ul {
    display: none;
}
.dark .input-group sm-completer .form-control:focus + ul {
    display: block;
}*/

sm-completer .form-control:focus + .sm-completer-box, sm-completer .md-input:focus + .sm-completer-box {
   display: block;
}

.sm-completer-box {
    position: absolute;
    z-index: 2000;
    top:100%;
    width: 100%;
    margin-top: -2px;
    list-style-type: none;
    background-color: #fff;
    color: #000;
    padding: 0;
    margin: 0;
    transition: all 0.2s ease;

    /*border: 1px solid #f00;
    border-top: 0;
    border-bottom-right-radius: 2px;
    border-bottom-left-radius: 2px;*/

    box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);

}

.sm-completer-box .sm-completer-row, .sm-completer-box li {
  padding: 10px;
  border-top:1px solid #ddd;
  line-height: normal;
  white-space: nowrap;
}


.sm-completer-row:hover, .sm-completer-box li:hover {
  color: inherit;
  background-color: rgba(0, 0, 0, 0.065);
}

/********************/

.box-button {
  cursor: pointer;
}

.box-button:not([disabled]):hover, .box-button:not([disabled]):focus, .box-button:not([disabled]).active {
    box-shadow: inset 0 -10rem 0px rgba(108, 108, 108, 0.2);
}

.box-button-hover-overlay {
  opacity: 0;
  z-index: 1;
  position: absolute;
  top:0;
  right: 0;
  left: 0;
  bottom: 0;
  background-color: rgba(0,0,0,0.5);
  transition: opacity .1s ease;
  display: flex;
  justify-content:center;
  align-content:center;
  flex-direction:column; 
}
.box-button-hover-overlay .btn-flex-patch {
  margin: auto;
}

.box-button:hover .box-button-hover-overlay {
  opacity: 1;
}



/***********************/

body.fullscreen .app-header, body.foldedtopside .app-header {
    top:-45px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body.fullscreen .app-header, body.foldedtopside .app-header:not(:hover) {
    background-color: #f0f0f0;
    box-shadow: none;
/*    padding-bottom: 10px;*/
}

body.fullscreen .app-header:hover, body.foldedtopside .app-header:hover {
    top:0px;
}

body.fullscreen .app-header ~ .app-body, body.foldedtopside .app-header ~ .app-body {
    padding-top: 0;
}


body.touch .isTouchscreen.hide, body.mobile .isMobile.hide {
  display: block !important;;
}


 .modal .right.animated-bg {
    transition: transform, background-color, 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
 }


/******************************/

.text-grey {
  color:rgba(255,255,255,0.5);
}
.text-grey a:hover {
  color:rgba(255,255,255,1) !important;
}

 /*****************************/


.perspective {
    perspective: 1000px;
}

.d3-cube {
  transform-style: preserve-3d;
  transition: all 0.3s;
  height: 100%;
}

.d3-cube > div {
  height: 100%;
  position: absolute;
}

.d3-cube .first  {
  transform-origin: 10% 100%;
  transform: rotateY(90deg);
}

.d3-cube .second {
  transform-origin: 100% 100%;
  transform: rotateY(-50deg);
}


/****************************/

.app-header-alert {
    margin: inherit;
    position: relative;
    z-index: 1021;
    margin: 0;
    padding:10px;
}

.app-header-alert ~ .app-header {
    padding-top: 3.5rem;
}

.app-header-alert ~ .app-body {
    padding-top: 7rem;
}


.app-aside-right {
  z-index: 1030;
}

.honeycomb-overlay {
  background-image: url('data:image/svg+xml, <svg xmlns="http://www.w3.org/2000/svg" width="56" height="100"> \
    <rect width="56" height="100" fill="rgba(0,0,0,0.5)"/> \
      <path d="M28 66L0 50L0 16L28 0L56 16L56 50L28 66L28 100" fill="none" stroke="rgba(255,255,255,0.6)" stroke-width="1"/>\
      <path d="M28 0L28 34L0 50L0 84L28 100L56 84L56 50L28 34" fill="none" stroke="#f44455" stroke-width="1"/>\
    </svg>');
  background-position: 0 0, 10px 17px;
  background-size: 20px 35px;
}


.grid-overlay {
  background-image:linear-gradient(0deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent), linear-gradient(90deg, transparent 24%, rgba(255, 255, 255, .05) 25%, rgba(255, 255, 255, .05) 26%, transparent 27%, transparent 74%, rgba(255, 255, 255, .05) 75%, rgba(255, 255, 255, .05) 76%, transparent 77%, transparent);
  background-size:50px 50px;
}

.box-shadow-z4.box-radius-3x {
  border:7px solid transparent;
  background-clip: content-box;
  overflow: hidden;
  background-color:rgba(244, 68, 85, 0.8);;
  border-radius: 15px;
  box-shadow: 0 0 35px 5px  rgba(0, 0, 0, 0.5) !important;
}

.box-shadow-z4.box-radius-3x:after {
  content: "\f071"; 
  font-family: FontAwesome;
  font-style: normal;
  font-weight: normal;
  text-decoration: inherit;
  position: absolute;
  font-size: 350px;
  color: #fff;
  top: 0px;
  line-height: 20px;
  right: 10px;
  z-index: -1;
  opacity: 0.1;
}


.md-check.md-check-bgfill > i {
    margin-right: 27px;
}

/********************/

.nav-header.hidden-folded  {
  display: block;
}

.folded .nav-header.hidden-folded * {
  visibility: hidden;
}



.folded.nav-expand:hover .hidden-folded * {
  visibility: visible;
}

.folded.nav-expand .nav-header.hidden-folded:before  {
  content: '';
  position: absolute;
  width: 35px;
  top:50%;
  /*border-top: 1px solid rgba(0,0,0,0.1);*/
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.folded.nav-expand:hover .nav-header.hidden-folded:before  {
  display: none;
}

.folded .nav > li > a .nav-icon {
    line-height: inherit !important;
}

/*

@media (min-width: 992px) {
  .app-aside.folded {
      width: 3.3rem;
  }

  .folded .nav > li > a {
    padding-left: 0px;
    padding-right: 8px;
}

  .folded.nav-expand {
    overflow-x: visible;
    overflow-y: visible;
  }

}*/

.header-search {
  padding: 0;
  font-size: 14px;
  padding: 6px 0;
  height: 40px;
  font-size: 1rem;
}
.header-search:focus::placeholder {
  opacity: 1 !important;
}
.header-search::placeholder {
  opacity: 0.5 !important;
  letter-spacing: -0.009rem;
  transition: opacity 0.2s;
}
/* не переностить на новую строку навбар если непомещается
.navbar-brand {
  float: none !important;
}*/

@media (min-width: 1200px) {
  .modal-xl {
      max-width: 1200px;
  }

  .container {
    max-width: 1200px;
  }

  body.container .app-aside.folded ~ .app-content .app-header {
    width: 71rem;
  }

}




.dropdown.dropdown-hover:hover > .dropdown-menu {
    display: block;    
}


/******************************/

#small-chat {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}
#small-chat .badge {
  position: absolute;
  top: -3px;
  right: -4px;
}
.open-small-chat {
  height: 38px;
  width: 38px;
  display: block;
  padding: 9px 8px;
  text-align: center;
  border-radius: 50%;
}

.small-chat-box {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 75px;
  z-index: 1000;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  width: 230px;
  height: 320px;
  color: #676a6c;
  background-clip: content-box;
}
.small-chat-box.ng-small-chat {
  display: block;
}
.body-small .small-chat-box {
  bottom: 70px;
  right: 20px;
}
.small-chat-box.active {
  display: block;
}
.small-chat-box .heading {
  padding: 8px 15px;
  color: #fff;
}
.small-chat-box .chat-date {
  opacity: 0.6;
  font-size: 10px;
  font-weight: normal;
}
.small-chat-box .content {
  padding: 15px 15px;
}
.small-chat-box .content .author-name {
  font-weight: 500;
  margin-bottom: 5px;
  font-size: 12px;
}
.small-chat-box .content > div {
  padding-bottom: 20px;
}
.small-chat-box .content .chat-message {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 14px;
  max-width: 80%;
  background: #f3f3f4;
  margin-bottom: 10px;
}
.small-chat-box .content .chat-message.active {
  background: #1ab394;
  color: #fff;
}
.small-chat-box .content .left {
  text-align: left;
  clear: both;
}
.small-chat-box .content .left .chat-message {
  float: left;
}
.small-chat-box .content .right {
  text-align: right;
  clear: both;
}
.small-chat-box .content .right .chat-message {
  float: right;
}
.small-chat-box .form-chat {
  padding: 10px 10px;
}

/***************************/

tr.deleted td {
  text-decoration: line-through;
  opacity: 0.5;
}

tr.canceled td {
  opacity: 0.5;
  color: #aaa;
  /*text-decoration: line-through;*/
}


tr.returned td {
  background: #fff6d9;
  color:#ccc !important;
}

button.close.outside {
  position: absolute;
  right: -20px;
  top:-20px;
  opacity: 1;

}

/*******************/

li.cursor-refresh a {
  /*cursor:  url(/assets/images/cursor-hand.svg) 0 0, s-resize !important;*/
  cursor:  url(/assets/images/cursor-refresh.svg) 0 0, s-resize !important;
}

/********************/


.htimeline {
  list-style-type: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.htimeline .li {
  margin-bottom: 20px;
  padding: 0px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-top: 2px solid #D6DCE0;
  position: relative;
}

.htimeline .li:before {
  content: "";
  width: 10px;
  height: 10px;
  background-color: white;
  border-radius: 10px;
  border: 1px solid #ddd;
  position: absolute;
  top: -15px;
  left: 42%;
  transition: all 200ms ease-in;
}

.htimeline .li.complete:before {
  border-top: 2px solid #66DC71;
}
.htimeline .li.complete:before {
  background-color: #66DC71;
  border: none;
  transition: all 200ms ease-in;
}

/********************/

pre.code { 
  white-space:pre-wrap;
  color:#bd4147;
  margin-bottom: 0;
    padding: .2rem .4rem;
    font-size: 90%;
    color: #bd4147;
    background-color: #f7f7f9;
    border-radius: .25rem;
}


/*****************/

.table tr.form > td, .table tr.form > th {
    border-bottom-color: transparent;
}

table tr.form td .form-control {
  border-width:0 0 1px 0;
  /*width: auto;*/
  padding: .75rem;
  font-size: inherit;
  background-color: transparent !important;
  /*text-align: right;*/
}

table tr.form td ng-select.form-control {
  padding:0.35rem 6px;
  border-width:0 0 1px 0;
}
table tr.form td ng-select.form-control > div {  border:none;  }
table tr.form td:not(:last-child) {  padding: 0; }

.table-hover tr.form:hover {
    background-color: transparent !important;
}

.table-hover tr.form td:hover .form-control,
.table-hover tr.form .form-control:focus {
   border-bottom-color: #0cc2aa !important;
}

.table-hover tr.form td:hover .form-control.error,
.table-hover tr.form .form-control.error {
   border-bottom-color: #f44455  !important;
}


/************************/
.nav-text {
    padding-right: 0.5625rem;
    overflow: hidden;
    text-overflow: ellipsis;
}


.btn .ui-check input:checked + i:before {
    left: 1px;
    top: 0px;
    width: auto;
    height: auto;
    background-color: transparent;
    content: "\f00c" !important;
}

.btn .ui-check input + i {
    box-shadow: none;
    width: 18px;
    height: 18px;
    border-radius: 2px;
    background-color: #fff;
}

/********************************/

.popover {
    border-radius: 0;
    padding: 0;
    /*border:none;*/
}

.popover-title {
    border-radius:0;
}

/******************/

.navbar-brand-md > svg {
  width: 45px !important; 
  height: 30px !important;
  max-height: 30px !important;
}

.navbar-brand-md .hidden-folded > svg {
  width: 170px !important; 
  height: 35px !important;
  max-height: 35px !important;
  margin-bottom: -5px;
}