* {
  box-sizing: border-box;
}

.clearfix:after {
  content: '';
  display: block;
  clear: both;
}

.form {
  position: absolute;
  z-index: 150;
  padding: 15px;
}

.overlap {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  height: 110%;
}

.calendar-form {
  min-width: 285px;
  padding: 0 5px;
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
}

.year_hidden,
.month_hidden {
  display: none;
}

.calendar-table {
  min-width: 275px;
  border-collapse: collapse;
  margin: 0 auto 40px;
  width: 100%;
  clear: both;
}

.calendar-table tr {
  display: flex;
  flex-direction: column;
}

.calendar-table__weekday {
  display: none;
}

.calendar-table__emptyday {
  display: none;
}

.calendar-table__usualday {
  margin-bottom: -1px;
  position: relative;
  display: block;
  vertical-align: top;
}

.calendar-table__usualday:before {
  content: '';
  position: absolute;
  display: block;
  height: 100%;
  width: 1px;
  top: 0;
  left: 50px;
}

.calendar-table__usualday:after {
  content: '';
  display: block;
  clear: both;
}

.calendar-table__usualday .clearfix {
  display: none;
}

.calendar-day__day-number {
  position: absolute;
  width: 50px;
  float: left;
}

.calendar-day__start-event-btn {
  cursor: pointer;
  align-self: flex-start;
  float: right;
  position: absolute;
  right: 0;
  top: 0;
}

.calendar-day__day-name {
  min-height: 60px;
  height: 100%;
  width: 50px;
  float: left;
}

.calendar-day__event-list {
  flex-grow: 1;
  position: relative;
  z-index: 10;
  margin-left: 50px;
  margin-right: 40px;
}

.form_content {
  overflow: hidden;
  height: calc(100% - 170px);
}

.one-client {
  line-height: 19px;
  position: relative;
  margin-top: 8px;
  padding-bottom: 17px;
  padding-right: 46px;
}

.one-client .del_client {
  position: absolute;
}

.one-client .restore_client {
  display: none;
  position: absolute;
}

.one-client_deleted .del_client {
  display: none;
}

.one-client_deleted .restore_client {
  display: block;
}

.success_message {
  width: 215px;
  padding-right: 40px;
  top: 30%;
  left: 50%;
  margin-left: -100px;
  position: fixed;
}

.success_message .close_form {
  position: absolute;
  right: 8px;
  top: 5px;
  cursor: pointer;
}

.client-list-tab__client-list {
  padding-left: 0;
  margin-top: 0;
  color: #A4A4A4;
  font-size: 16px;
}

.client-list-tab__client-item {
  margin-bottom: 10px;
}

.client-list-tab__client-item--deleted * {
  text-decoration: line-through !important;
  color: #E1E1E1 !important;
}

.client-list-tab__client-item--deleted .del_client {
  display: none;
}

.client-list-tab__client-item--deleted .restore_client {
  display: block;
}

.client-list-tab__client-item__row {
  line-height: 0.5em;
}

.client-list-tab__client-item__phone {
  display: inline-block;
  color: #595959;
}

.client-list-tab__client-item__name {
  display: inline-block;
}

.client-list-tab__client-item__status {
  display: block;
}

.client-list-tab__client-item__delete {
  margin-top: 5px;
  width: 14px;
  height: 14px;
  float: right;
  cursor: pointer;
  background: url("images/close_2.svg") no-repeat;
  background-size: 100%;
}

.client-list-tab__client-item__restore {
  display: none;
  margin-top: 5px;
  width: 14px;
  height: 14px;
  float: right;
  cursor: pointer;
  background: url("images/replay.svg") no-repeat;
  background-size: 100%;
}

.client-list-tab__page-1 {
  transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  height: 100%;
}

.client-list-tab__page-1.show {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.client-list-tab__page-2 {
  position: absolute;
  top: 0;
  width: 100%;
  transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
  -webkit-transform: translateX(100%);
  transform: translateX(100%);
}

.client-list-tab__page-2.show {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

.event_clients {
  overflow-y: auto;
  margin-top: 25px;
  padding: 0 25px;
  height: calc(100% - 50px);
}

.edit-event-form {
  width: 100%;
  left: 0;
  top: 0;
  display: none;
  position: fixed;
  height: 100%;
}

.edit-event-form .control_panel {
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 90%;
}

.edit-event-form .form_content .form_page {
  display: none;
  position: relative;
  overflow: hidden;
  height: calc(100% - 52px);
}

.edit-event-form .form_content .form_page_active {
  display: block;
}

.edit-event-form__tab-names {
  font-size: 0;
  margin-bottom: 15px;
  margin-left: -15px;
  margin-right: -15px;
}

.edit-event-form__tab-name {
  display: inline-block;
  cursor: pointer;
}

.edit-event-form__tab-name-disabled {
  cursor: default;
}

.edit-event-form__input-holder {
  text-align: center;
  margin-bottom: 15px;
}

.edit-event-form__input-holder:after {
  content: '';
  clear: both;
  display: block;
}

.edit-event-form__textarea {
  width: 100%;
}

.edit-event-form__input_time {
  width: 32px;
}

.edit-event-form__input_date {
  width: 144px;
}

.edit-event-form__without-restrict {
  display: inline-block;
}

.edit-event-form__clients-settings {
  margin-bottom: 10px;
}

.edit-event-form__send-change-message {
  display: none;
  position: relative;
}

.edit-event-form__clients-settings:after {
  content: '';
  display: block;
  clear: both;
}

.edit-event-form__pointer-holder-prev {
  float: left;
}

.edit-event-form__pointer-holder-next {
  float: right;
}

.edit-event-form__btn-cancel {
  cursor: pointer;
}

.edit-event-form__btn-delete {
  cursor: pointer;
  position: relative;
}

.edit-event-form .control_panel {
  text-align: center;
  margin-top: 10px;
}

.edit-event-form__pointer-holder-prev {
  width: 40px;
  height: 40px;
}

.edit-event-form__pointer-holder-next {
  width: 40px;
  height: 40px;
}

.edit-event-form__btn-cancel {
  border: none;
  background: none;
  font-size: 16px;
  text-decoration: underline;
  color: #555;
  width: 112px;
  height: 44px;
  margin-right: 20px;
  padding-left: 25px;
}

.edit-event-form__form-name {
  text-align: left;
  text-transform: uppercase;
  font-size: 19px;
  color: #5FAD35;
  margin-bottom: 15px;
  padding-right: 17px;
  font-weight: 300;
}

.edit-event-form__main-row {
  color: #000000;
  margin: 15px 0 7.5px 0;
  border-bottom: 1px solid #f1f1f1;
  padding-bottom: 7.5px;
}

.edit-event-form__main-row:after {
  content: '';
  clear: both;
  display: block;
}

.edit-event-form__main-row.deleted .edit-event-form__del-row {
  display: none;
}

.edit-event-form__main-row.deleted .edit-event-form__restore-row {
  display: block;
}

.edit-event-form__main-row.deleted * {
  text-decoration: line-through !important;
  color: #E1E1E1 !important;
}

.edit-event-form__main-row__left {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2em;
  margin-bottom: 10px;
  color: #595959;
}

.edit-event-form__main-row__right {
  text-align: right;
  white-space: nowrap;
}

.edit-event-form__main-row__event-date {
  float: right;
  margin: -50px 20px 0 0;
}

.edit-event-form__main-row__event-date input {
  width: 114px;
  text-align: center;
}

.edit-event-form__main-row__event-time-start,
.edit-event-form__main-row__event-time-end {
  display: inline-block;
  margin-bottom: 5px;
}

.edit-event-form__main-row__event-time-start input,
.edit-event-form__main-row__event-time-end input {
  width: 44px;
  padding: 0 0 0 5px;
}

.edit-event-form__main-row__event-time-start {
  width: 120px;
}

.edit-event-form__main-row__event-time-end {
  width: 130px;
}

.edit-event-form__main-row__people-count {
  width: 65px;
}

.edit-event-form__without-restrict {
  color: #A4A4A4;
}

.edit-event-form__input {
  border: 1px solid #E1E1E1;
  font-size: 16px;
  font-weight: 300;
  width: 100%;
  max-width: 100%;
  height: 36px;
  margin: 0;
  padding: 0 10px;
  color: #A4A4A4;
}

.edit-event-form__input--short {
  width: 56px;
  margin: 0 10px;
}

.edit-event-form__textarea {
  border: 1px solid #E1E1E1;
  font-size: 16px;
  font-weight: 300;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 15px 10px;
  color: #A4A4A4;
}

.edit-event-form__tab-name {
  width: 25%;
  text-align: center;
  font-size: 11px;
  border-bottom: 1px dotted #E1E1E1;
  padding: 4px 0;
  line-height: 1;
}

.edit-event-form__tab-name-disabled {
  color: #A4A4A4;
}

.edit-event-form__tab-name-current {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  border: 1px dotted #E1E1E1;
  border-bottom: none;
  color: #5FAD35;
}

.edit-event-form__btn-delete {
  border: none;
  background: none;
  font-size: 16px;
  text-decoration: underline;
  height: 44px;
  padding-left: 22px;
  color: #595959;
  margin-left: -3px;
}

.edit-event-form__btn-delete:before {
  content: '';
  position: absolute;
  display: block;
  left: 4px;
  top: 18px;
  width: 10px;
  height: 10px;
  background: url("images/close_2.svg") no-repeat;
}

.edit-event-form__delete-confirm {
  width: 66px;
  height: 30px;
  text-align: center;
  font-size: 14px;
  margin-left: 15px;
  background: #fff;
  float: right;
  display: none;
  cursor: pointer;
  margin-top: 8px;
}

.edit-event-form__delete-confirm_yes {
  border: 1px dashed #C9270A;
  padding-left: 7px;
  color: #C9270A;
}

.edit-event-form__delete-confirm_no {
  border: 1px dashed #5FAD35;
  padding-left: 4px;
  color: #5FAD35;
}

.edit-event-form__btn-save {
  cursor: pointer;
  width: 135px;
  height: 44px;
  background-color: #5FAD35;
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 16px;
}

.edit-event-form__pointer-prev {
  width: 100%;
  height: 100%;
  display: none;
  cursor: pointer;
  background: #fff url("images/back.svg") no-repeat;
  background-size: 100%;
  margin-bottom: 8px;
}

.edit-event-form__pointer-next {
  width: 100%;
  height: 100%;
  cursor: pointer;
  background: #fff url("images/forward.svg") no-repeat;
  background-size: 100%;
  margin-bottom: 8px;
}

.edit-event-form__del-row {
  margin-top: 12px;
  width: 14px;
  margin-left: 6px;
  height: 14px;
  display: inline-block;
  cursor: pointer;
  background: url("images/close_2.svg") no-repeat;
  background-size: 100%;
}

.edit-event-form__restore-row {
  display: none;
  margin-top: 12px;
  width: 14px;
  margin-left: 6px;
  height: 14px;
  float: right;
  cursor: pointer;
  background: url("images/replay.svg") no-repeat;
  background-size: 100%;
}

.edit-event-form__multi-caption {
  font-size: 14px;
  font-style: italic;
  color: #000000;
}

.edit-event-form input[type="radio"] + label,
.edit-event-form input[type="checkbox"] + label {
  cursor: pointer;
}

.edit-event-form input[type="radio"]:not(checked),
.edit-event-form input[type="checkbox"]:not(checked) {
  position: absolute !important;
  opacity: 0;
}

.edit-event-form input[type="radio"]:not(checked) + label,
.edit-event-form input[type="checkbox"]:not(checked) + label {
  position: relative;
  padding: 0 0 0 20px;
  line-height: 1em;
  margin: 5px 0;
}

.edit-event-form input[type="radio"]:not(checked) + label:before,
.edit-event-form input[type="checkbox"]:not(checked) + label:before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 15px;
  height: 15px;
  background: url("images/checkbox-off.svg");
  background-size: 100%;
}

.edit-event-form input[type="radio"]:not(checked) + label:after,
.edit-event-form input[type="checkbox"]:not(checked) + label:after {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 15px;
  height: 15px;
  display: none;
  background: url("images/checkbox-on.svg");
  background-size: 100%;
}

.edit-event-form input[type="radio"]:checked + label:after,
.edit-event-form input[type="checkbox"]:checked + label:after {
  display: block;
}

.multi-event-list {
  counter-reset: events 1;
  overflow-y: auto;
  padding-right: 20px;
  height: calc(100% - 120px);
}

.multi-event-list__day-count {
  font-size: 14px;
  font-style: italic;
  color: #000000;
  font-weight: 300;
}

.multi-event-list__day-count:before {
  counter-increment: events;
  content: counter(events);
}

.multi-event-list__day-count-caption {
  font-size: 16px;
  color: #595959;
  font-weight: 300;
}

.email-sending {
  padding: 0 10px;
}

.email-sending__first-send.hide {
  display: none;
}

.email-sending__success-send {
  color: #595959;
}

.email-sending__success-send span {
  margin-top: 10px;
}

.email-sending__success-send.hide {
  display: none;
}

.email-sending__link {
  color: #5FAD35;
  border-bottom: 1px dashed #5FAD35;
  display: inline-block;
  cursor: pointer;
}

.email-sending__back-link {
  color: #A4A4A4;
  border-bottom: 1px dashed #A4A4A4;
  display: inline-block;
  cursor: pointer;
  margin-left: 15px;
}

.email-sending__back-link:before {
  display: block;
  content: '';
  float: left;
  width: 6px;
  height: 10px;
  background: url("images/back-to-list.svg") no-repeat left center;
  background-size: 100%;
  margin: 9px 0 0 -14px;
}

.email-sending__form {
  padding: 5px 10px 0 10px;
}

.email-sending__submit-btn {
  text-align: left;
}

.email-sending__submit-btn input[type="submit"] {
  color: #5FAD35;
  border: 1px dashed #5FAD35;
  cursor: pointer;
  width: 135px;
  height: 44px;
  background-color: #fff;
  font-size: 16px;
}

@media (min-width: 400px) {
  .form_content {
    height: calc(100% - 110px);
  }
}

@media (min-width: 450px) {
  .edit-event-form__main-row {
    margin: 15px 0;
    border-bottom: none;
    padding-bottom: 0;
  }

  .edit-event-form__main-row__event-date {
    float: left;
    margin: 0;
  }
}

@media (min-width: 480px) {
  .calendar-form {
    padding: 0 15px;
  }

  .calendar-table__usualday:after {
    content: '';
    position: absolute;
    display: block;
    height: 100%;
    width: 1px;
    top: 0;
    left: 100px;
  }

  .calendar-day__day-number {
    position: static;
    padding-top: 19px;
  }

  .calendar-day__day-name {
    padding-top: 19px;
  }

  .calendar-day__event-list {
    margin-left: 100px;
  }

  .edit-event-form__main-row__left {
    float: left;
    width: calc(100% - 390px);
    margin-bottom: 0;
  }

  .edit-event-form__main-row__right {
    float: right;
    width: 390px;
  }
}

@media (min-width: 576px) {
  .form_content {
    height: calc(100% - 110px);
  }
}

@media (min-width: 600px) {
  .form {
    padding: 20px 30px;
  }

  .form_content {
    min-height: 260px;
  }

  .client-list-tab__client-item__phone {
    width: 140px;
  }

  .client-list-tab__client-item__name {
    width: 140px;
  }

  .client-list-tab__client-item__status {
    display: inline-block;
  }

  .edit-event-form__tab-names {
    margin-right: 0;
    margin-left: 0;
  }

  .edit-event-form__input-name {
    float: left;
    width: auto;
  }

  .edit-event-form__input-holder {
    text-align: right;
  }

  .edit-event-form__input_time {
    width: 46px;
  }

  .edit-event-form__input_date {
    width: 161px;
  }

  .edit-event-form__without-restrict {
    display: block;
  }

  .edit-event-form__form-name {
    font-size: 25px;
    text-align: center;
    padding-right: 0;
    margin-bottom: 25px;
  }

  .edit-event-form__tab-name {
    font-size: 14px;
    padding: 8px 0;
  }

  .edit-event-form__btn-save {
    width: 152px;
  }

  .edit-event-form input[type="radio"]:not(checked) + label,
  .edit-event-form input[type="checkbox"]:not(checked) + label {
    padding: 0 0 0 24px;
  }

  .edit-event-form input[type="radio"]:not(checked) + label:before,
  .edit-event-form input[type="checkbox"]:not(checked) + label:before {
    top: -2px;
  }

  .edit-event-form input[type="radio"]:not(checked) + label:after,
  .edit-event-form input[type="checkbox"]:not(checked) + label:after {
    top: -2px;
  }
}

@media (min-width: 900px) {
  .calendar-form {
    padding: 0 30px;
  }

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

  .calendar-table__weekday {
    display: table-cell;
  }

  .calendar-table__emptyday {
    display: table-cell;
  }

  .calendar-table__usualday .clearfix {
    display: block;
  }

  .calendar-table__usualday {
    display: table-cell;
    width: 14.28%;
    margin-bottom: 0;
    height: 60px;
  }

  .calendar-table__usualday:before,
  .calendar-table__usualday:after {
    display: none;
  }

  .calendar-day__day-number {
    margin: 1px 3px 0 0;
    float: right;
    padding-top: 0;
    text-align: right;
  }

  .calendar-day__start-event-btn {
    float: left;
    position: absolute;
    top: 0;
    left: 0;
  }

  .calendar-day__day-name {
    display: none;
  }

  .calendar-day__event-list {
    margin-left: 0;
    margin-right: 0;
  }

  .edit-event-form {
    max-height: 100%;
    height: 480px;
    width: 620px;
    left: 50%;
    top: 50%;
    -webkit-transform: translateY(-50%) translateX(-50%);
    transform: translateY(-50%) translateX(-50%);
  }
}

@media (max-width: 480px) {
  .keyboard-open .form {
    top: -110px !important;
    box-shadow: none;
  }

  .keyboard-open .overlap {
    background: #fff;
  }

  .keyboard-open .edit-event-form__btn-cancel {
    display: none;
  }

  .keyboard-open .edit-event-form__btn-save {
    display: none;
  }

  .keyboard-open .edit-event-form__btn-delete {
    display: none;
  }

  .keyboard-open .edit-event-form__pointer-next {
    display: none !important;
  }

  .keyboard-open .edit-event-form__pointer-prev {
    display: none !important;
  }
}