.sub-block {
  /*display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #e8e9ea;
  margin-bottom: 5px;*/
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding: 0 15px;
  border-left: 1px solid #f1f1f1;
  border-right: 1px solid #f1f1f1;
  border-top: 2px solid #d6d2d2;
  border-bottom: 2px solid #d6d2d2;
  box-shadow: -3px -3px 2px 0 #fbfbfb;
}

.sub-block__left-column {
  flex: 1 250px;
}

.sub-block__right-column {
  display: flex;
  padding: 10px;
  padding-right: 0;
  justify-content: center;
  align-items: center;
}

.edit-form__sub-field {
  display: flex;
  flex-wrap: wrap;
  margin: 10px 0;
  min-height: 29px;
  position: relative;
}

.edit-form__sub-field--required .edit-form__sub-field-label:after {
  content: '*';
  font-size: 14pt;
  color: red;
  font-weight: normal;
  position: relative;
  top: auto;
  right: auto;
}

.edit-form__sub-field-label {
  flex: 0 200px;
  margin: 3px 15px 0 0;
  text-align: left;
  font-weight: bold;
  position: relative;
}

.edit-form__sub-field-value {
  flex: 1 320px;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.9rem;
}

.edit-form__sub-field-value:after {
  content: '';
  display: block;
  color: red;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease-in-out, opacity .5s ease-in-out;
  font-size: 0.9rem;
  opacity: 0;
  font-family: 'Trebuchet MS', sans-serif;
  will-change: height, opacity;
}

.edit-form__sub-field-value--error:after {
  content: attr(data-error-text);
  flex: 1 1 100%;
  max-height: 1000px;
  opacity: 1;
}


.edit-form {
  position: relative;
  margin-top: 30px;
}

.edit-form__group {
  position: relative;
}

.edit-form__group--active {
  background: #f9f9f9;
  padding: 10px 0;
  margin-bottom: 8px;
}

.edit-form__group--active.edit-form__group::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  background: #e4e4e4;
  height: 100%;
}

.edit-form__group-header {
  font-weight: bold;
  padding: 10px;
  margin-top: -10px;
  text-align: left;
  font-size: 12pt;
  position: relative;
  border-left: 3px solid #808080;
}

.edit-form__group-description {
  padding: 10px;
  margin-top: -10px;
  text-align: left;
  border-left: 3px solid #808080;
}


.edit-form__field {
  display: flex;
  margin: 10px 0;
  min-height: 29px;
  position: relative;
}

.edit-form__label {
  flex: 0 240px;
  margin: 3px 10px 0 10px;
  text-align: right;
  font-weight: bold;
  position: relative;
}

.edit-form__label-sub-text {
  font-size: 10.5pt;
  font-weight: normal;
}

.edit-form__field--required .edit-form__label:after {
  content: '*';
  font-size: 14pt;
  color: red;
  font-weight: normal;
  position: absolute;
  top: 0;
  right: -9px;
}

.edit-form__value {
  flex: 1 520px;
  font-family: 'Trebuchet MS', sans-serif;
  font-size: 0.9rem;
  margin: 0 10px;
}

.edit-form__hint {
  margin-top: 5px;
  font-style: italic;
  color: #808080;
}

.edit-form__additional-hint {
  margin-top: 10px;
}

.edit-form input:not([type="checkbox"]),
.edit-form .js-select:empty {
  height: 40px;
  border-radius: 0;
  border: 1px #c8cad2 solid;
}

.edit-form textarea {
  min-height: 200px;
  max-height: 350px;
  border: 1px #c8cad2 solid;
  width: 100%;
  resize: vertical;
  font-family: Arial;
  line-height: 14pt;
  padding: 10px;
}

.edit-form .react-select {
  width: 100%;
  height: auto;
  min-height: 40px;
  border-radius: 0;
}

.edit-form input.short {
  width: 112px;
  margin: 0 5px 5px 0;
}

.edit-form input.medium {
  width: 250px;
  margin: 0 5px 5px 0;
}

.edit-form input.date {
  background-position: 100% 5px;
}

.edit-form input.date[disabled] {
  background-color: #f6f6f6;
}

.edit-form input.date:hover {
  background-position: 100% -24px;
}

.edit-form input[type="time"].date--time {
  padding: 0 10px;
  background: none;
  font-family: "Trebuchet MS", "Arial", "Tahoma", "Verdana", "sans-serif";
}

.edit-form input[type="time"].date--time:focus {
  outline: none;
}

.edit-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.edit-form__field--general-error {
  margin: 0;
  min-height: 0;
}

.edit-form__field--control .edit-form__value {

}

.edit-form__field--control .edit-form__value > * {
  margin-right: 10px;
}

.edit-form__text-error {
  display: block;
  color: red;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.5s ease-in-out;
  font-size: 0.9rem;
  opacity: 0;
  font-family: 'Trebuchet MS', sans-serif;
  will-change: height, opacity;
}

.edit-form__value--error .edit-form__text-error {
  flex: 1 1 100%;
  max-height: 1000px;
  opacity: 1;
}

.edit-form__field--group-error {
  margin-top: 0;
  margin-bottom: 0;
  min-height: 0;
}

.edit-form__captcha-wrapper {
  display: flex;
}

.edit-form__captcha {
  margin: 0 10px 10px 0;
  width: 150px;
  height: 40px;
  cursor: pointer;
  position: relative;
}

.edit-form__captcha > img {
  width: 150px;
  height: 40px;
}

.edit-form__captcha:hover:after {
  content: "\f021";
  font-family: FontAwesome;
  font-size: 16pt;
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  text-align: center;
  background: rgba(43, 118, 178, 0.75);
  color: #ffffff;
  width: 150px;
  height: 40px;
  line-height: 40px;
}

.edit-form__icon {
  vertical-align: middle;
  margin: 0 5px 0 0;
}

.edit-form--disabled:before {
  content: '';
  background: rgba(255, 255, 255, 0.5);
  display: block;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.edit-form .bxlhe-frame {
  border: 1px #c8cad2 solid;
}

.edit-form__files-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.edit-form__file {
  position: relative;
  margin: 0 10px 10px 0;
  height: 102px;
  border-bottom: 2px #dbdbdb solid;
  background: #f3f3f3;
  overflow: hidden;
  text-decoration: none;
}

.edit-form__file-name {
  padding: 5px 25px 5px 5px;
  width: 140px;
  color: #7e7e7e;
}

.edit-form__file-delete {
  position: absolute;
  right: 2px;
  top: 2px;
  color: #a14743;
  background: #ffffff;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  font-size: 14pt;
}

.edit-form__file-delete:hover {
  color: #e42f27;
}

.edit-form__file-delete:disabled,
.edit-form__file-delete[disabled],
.edit-form__file-delete[disabled]:hover{
  color: #808080;
}

.edit-form__select {
  font-size: 10.5pt;
  border: 1px #c8cad2 solid;
  height: 40px;
  line-height: 40px;
  display: inline-block;
  width: 100%;
  position: relative;
}

.edit-form__select-value-container {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  overflow: hidden;
}

.edit-form__select-value {
  padding: 0 10px;
  flex: 1;
  overflow: hidden;
  height: 40px;
}

.edit-form__select-value--placeholder {
  color: #888888;
}

.edit-form__select-toggle {
  font-size: 12pt;
  color: #888888;
  padding: 0 10px;
  margin: 0;
}

.edit-form__select-value-container:hover .edit-form__select-trigger {
  color: #444444;
}

.edit-form__select-dropdown {
  display: none;
  box-shadow: 0 0 0 1px #c8cad2;
  position: absolute;
  top: 38px;
  background: #ffffff;
  z-index: 1;
  line-height: 1.5em;
  width: 100%;
}

.edit-form__select--opened .edit-form__select-dropdown {
  display: block;
}

input.edit-form__select-search {
  height: 32px !important;
  border: none;
  background: #f3f3f3;
  border-bottom: 1px #e2e2e2 solid
}

.edit-form__select-items {
  max-height: 200px;
  overflow-y: auto;
}

.edit-form__select-item {
  padding: 6px 10px;
  cursor: pointer;
}

.edit-form__select-item:hover {
  color: #ffffff;
  background: #888888;
}

.edit-form__tip,
.edit-form__tip--react {
  font-size: 0.85rem;
  color: #2b76b2;
}

.sub-block .edit-form__tip--react {
  margin-left: 5px;
}

@media screen and (max-width: 767px) {
  .edit-form__field {
    flex-wrap: wrap;
  }

  .edit-form__label {
    flex: 1 100%;
    text-align: left;
    margin-bottom: 10px;
  }

  .edit-form__field--checkbox {
    flex-wrap: nowrap;
  }

  .edit-form__field--checkbox .edit-form__value {
    order: 1;
    flex: 0 30px;
    margin: 5px 0;
  }

  .edit-form__field--checkbox .edit-form__label {
    order: 2;
  }

  .edit-form__field--required .edit-form__label:after {
    position: relative;
    top: auto;
    right: auto;
  }

  .edit-form input.short,
  .edit-form input.medium {
    width: 100%;
  }

  .edit-form__sub-field-label {
    margin-bottom: 10px;
  }
}

.colorful-box span {
  font-family: 'Trebuchet MS', sans-serif;
}

.colorful-box__button {
  padding: 5px;
  background: #ffffff;
  border-radius: 1px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1);
  display: inline-block;
  cursor: pointer;
}

.colorful-box__center {
  width: 36px;
  height: 14px;
  border-radius: 2px;
  background: #ff0000;
}

.colorful-box__popover {
  position: absolute;
  z-index: 2;
}

.colorful-box__shim {
  position: fixed;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
}


.calendar {
  position: relative;
  display: inline-block;
  padding: 0px;
  border: 1px solid #c8cad2;
  font-family: 'Trebuchet MS', sans-serif;
  color: #827e7d;
  border-bottom: 0;
}

.calendar__shim {
  position: absolute;
  top: 0px;
  left: 0px;
  right: 0px;
  bottom: 0px;
  background: rgba(255, 255, 255, 0.5);
  z-index: 50;
}

.calendar__row {
  display: flex;
  border: 0px solid #ff0000;
}

.calendar__header {
  display: flex;
  width: 100%;
  background: #fbfbfb;
  border-bottom: 1px solid #dadada;
}

.calendar__header .fa {
  font-size: 18pt;
  color: #6a656d;
}

.calendar__button-backward:active,
.calendar__button-forward:active {
  background: #e6e6e6;
}

.calendar__button-backward, .calendar__button-forward {
  display: flex;
  align-items: center;
  padding: 5px 10px;
  cursor: pointer;
}

.calendar__month-name {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 10pt;
  color: #6a656e;
  font-family: 'Trebuchet MS', sans-serif;
}

.calendar__day, .calendar__weekday-elem {
  margin-top: 0px;
  margin-right: 0px;
  width: 55px;
  height: 35px;
  position: relative;
  background: #f7f5f5;
  border: 1px solid #c8cad2;
  border-top: 0;
  border-left: 0;
  transition: background 0.1s;

}

.calendar__day--has-description {
  cursor: pointer;
}

/*
.calendar__day:not(.calendar__day--not-active) {
    cursor: pointer;
}*/
.calendar__day:last-child, .calendar__weekday-elem:last-child {
  border-right: 0;
}

.calendar__day-number {
  position: absolute;
  top: 3px;
  left: 5px;
  font-size: 10pt;
}

.calendar__weekday-elem {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #e6e6e6;
  color: #6a656f;
  font-weight: bold;
  font-size: 9pt;
  height: 20px;
}

.calendar__day--not-active {
  background: #ffffff;
  color: #dadada;
}

.calendar__day--today {
  border: 2px solid #ff0000;
}

.calendar__day .fa {
  position: absolute;
  bottom: 5px;
  right: 5px;
  cursor: pointer;
  font-size: 11pt;
  color: #bbbbbb;
}

@media screen and (max-width: 500px) {
  .calendar__header .fa {
    font-size: 15pt;
  }

  .calendar__day {
    width: 40px;
    height: 30px;
  }

  .calendar__weekday-elem {
    width: 40px;
  }

  .calendar__day-number {
    font-size: 9pt;
  }

  .calendar__day .fa {
    font-size: 9pt;
  }
}

.prod-day-calendar-info {
  margin-bottom: 15px;
  padding: 15px;
  border: 0px solid #808080;
  background: #f3f3f3;
  border-top: 4px solid #bfbebf;
  border-bottom: 2px solid #dbdbdb;
}

.prod-day-calendar-info__close-button {
  border: 1px solid #c8cad3;
  background: #ffffff;
  width: 25px;
  height: 25px;
  font-size: 12pt;
  float: right;
  color: #c8cad3;
  cursor: pointer;
  position: relative;
}

.prod-day-calendar-info__close-button .fa {
  position: absolute;
  top: 3px;
  left: 5px;
}

.prod-day-calendar-info__close-button:hover {
  border-color: #a3a5ae;
  color: #a3a5ae;
}

.prod-day-calendar-info__header {
  display: none;
}

.prod-day-calendar-info__description {
  display: flex;
}

.prod-day-calendar-info__first-column {
  flex: 1;
}

.prod-day-calendar-info__second-column {
  flex: 0 50px;
}


.floating-hint {
  position: absolute;
  top: -999px;
  left: -999px;
  padding-bottom: 5px;
  border: 0px solid blue;
}

.floating-hint__content {
  position: relative;
  padding: 3px 5px;
  background: rgba(0, 0, 0, 0.7);
  color: #ffffff;
  float: left;
  border-radius: 4px;
}

.floating-hint__content:after {
  position: absolute;
  left: 50%;
  top: 100%;
  margin-left: -4px;
  content: "";
  border: 4px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.7);
}

.floating-hint__icon {
  float: left;
  border: 0px solid #ff0000;
  cursor: pointer;
}

.floating-hint__icon:last-child {
  margin-left: 5px;
}


.tree-group {
  font-size: 11.5pt;
  font-family: Tahoma;
  border: 0 solid #808080;
}

.tree-group ul {
  list-style-type: none;
  padding: 0;
}

.tree-group ul li {
  padding: 0;
}

.tree-group ul li:before {
  content: '';
}

.tree-group ul ul {
  margin: 0;
  padding-left: 30px;
  list-style-type: none;
}

.tree-group .fa {
  font-size: 10pt;
}

.tree-group__item {
  padding: 0;
  border: 1px solid #808080;
}

.tree-group__block {
  display: flex;
  padding: 3px 0;
  padding-left: 5px;
  border: 0 solid #000000;
  cursor: pointer;
}

.tree-group__block-icon {
  flex: 0 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 0 solid #808080;
}

.tree-group__block-icon-border {
  border: 1px solid #a2a2a2;
  border-top: 1px solid #5d5d5d;
  border-left: 1px solid #5d5d5d;
  width: 17px;
  height: 17px;
  padding: 0;
  border-radius: 3px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: -2px -1px 1px #f3f3f3;
}

.tree-group__block-text {
  flex: 1;
  padding: 3px;
  border: 0 solid #808080;
}

.tree-group__block-text--outdated {
  color: #808080;
}

.tree-group__block-text-note {
  font-size: 9pt;
  color: #a9a9a9;
}


