:root {
  font: 14px/1.5 sans-serif;
  color: #585858;
  background: #f7f9fc;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
}

.highlight {
  background: #ffeb3b;
}

.text-link {
  color: #2196f3;
}

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

.input {
  box-sizing: border-box;
  max-width: 100%;
  height: 32px;
  padding: 0 .75em;
  border: 1px solid #d8d8d8;
  color: inherit;
  background: #fff;
}
  .input:-webkit-autofill {
    background: #fff, none;
  }

  .input:focus {
    outline: 0;
    border-color: #55a8fd;
    box-shadow: 0 0 0 1px #55a8fd;
  }

  .input.ng-dirty.ng-invalid-required {
    background-color: #fdf4d2;
  }

  .input.ng-dirty.ng-invalid {
    border-color: #e24545;
  }

    .input.ng-dirty.ng-invalid:focus {
      box-shadow: 0 0 0 1px #e24545;
    }



.form-fields {
  font-size: 0;
}

.form-field {
  margin-bottom: 1em;
  display: inline-block;
  vertical-align: top;
  width: 100%;
  font-size: 14px;
  font-size: 1rem;
}

  .form-field__label {
    margin-bottom: .25em;
    display: block;
    font-size: 13px;
    color: #949494;
    cursor: pointer;
  }

  .form-field__input {
    width: 100%;
  }

  .form-field_half {
    width: calc(50% - 7px);
  }

  .form-field_half + .form-field_half {
    margin-left: 14px;
  }

.app-view {
  box-sizing: border-box;
  padding: 2em;
  height: 100%;
  min-height: 100%;
  will-change: -webkit-filter;
  will-change: filter;
}

  .app-page_show-modal .app-view {
    -webkit-filter: blur(2px);
            filter: blur(2px);
  }

.data-grid {
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-direction: column;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
  border: 1px solid #d8d8d8;
  background: #fff;
  box-shadow: 0 3px 6px rgba(195, 195, 195, 0.5);
}

  .data-grid__head {
    position: relative;
    -webkit-flex: 0 0 auto;
        -ms-flex: 0 0 auto;
            flex: 0 0 auto;
    border-bottom: inherit;
    box-shadow: 0 0 8px rgba(53, 53, 53, 0.22);
  }

  .data-grid__body {
    -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
    overflow-x: auto;
    overflow-y: scroll;
  }

 .data-grid__scroll {
   margin-right: 17px;
   overflow: hidden;
 }

.data-grid__search {
  padding: 1em 1.5em;
}

.data-grid__title {
  margin: 0;
  padding: .5em 1em 0;
}

.data-grid__toolbar {
  padding: .25em 1.5em 1.25em;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-justify-content: space-between;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.data-grid__tools {
  margin-left: auto;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: center;
      -ms-flex-align: center;
          align-items: center;
}

  .tool-divider {
    display: inline-block;
    vertical-align: middle;
    width: 1px;
    height: 32px;
    background: #d8d8d8;
  }

  .data-grid__tools .btn,
  .data-grid__tools .tool-divider {
    margin-left: 12px;
  }

.user-tools {
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

  .user-tools_show {
    opacity: 1;
    visibility: visible;
  }

.data-grid__count {
  color: #787878;
}

.data-grid__img {
  max-width: 100%;
  width:  48px;
  height: 48px;
  border-radius: 50%;
}

.data-table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

  .data-table__cell {
    position: relative;
    padding: 1em 1.5em;
    font-weight: normal;
    text-align: left;
  }

    .data-table__cell_head {
      padding-right: 40px;
      line-height: 1;
      letter-spacing: 0.025em;
      text-transform: uppercase;
      font-weight: bold;
      color: #757575;
      cursor: pointer;
      transition: background .2s;
      -webkit-user-select: none;
         -moz-user-select: none;
          -ms-user-select: none;
              user-select: none;
    }

      .data-table__cell_head:hover {
        background: rgba(85, 168, 253, 0.11);
      }

    .data-table__cell_align_center {
      text-align: center;
    }

  .data-table__head {}

  .data-table__body {}

    .data-table__body .data-table__row {
      border-bottom: 1px solid #d8d8d8;
      transition: .2s;
      cursor: pointer;
    }

    .data-table__body .data-table__row:nth-child(odd) {
      background: #F7F9FC;
    }

    .data-table__body .data-table__row:hover {
      background: rgba(85, 168, 253, 0.11);
    }

    .data-table__body .data-table__row.selected {
      color: #fff;
      background: #55a8fd;
    }

      .data-table__body .data-table__row.selected .text-link {
        color: inherit;
      }

.data-table__cell_number {
  width: 50px;
}

.data-table__cell_img {
  width: 100px;
  padding-right: 1.5em;
}

.data-table__cell_name {}

.data-table__cell_room {
  width: 130px;
}

.data-table__cell_phone {
  width: 180px;
}

.data-table__cell_address {}

.data-table__cell_email {}

.sort-tool {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 40px;
  opacity: 0;
  transition: .2s;
}

    .sort-tool:before {
      content: "";
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
      width: 24px;
      height: 24px;
      background-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTcuNDEsMTUuNDFMMTIsMTAuODNMMTYuNTksMTUuNDFMMTgsMTRMMTIsOEw2LDE0TDcuNDEsMTUuNDFaIiAvPjwvc3ZnPg==);
      background-size: 100% 100%;
    }

  .sort-tool_active {
    opacity: .6;
  }

  .sort-tool_up {
    -webkit-transform: rotate(0deg);
            -ms-transform: rotate(0deg);
        transform: rotate(0deg);
  }

  .sort-tool_down {
    -webkit-transform: rotate(180deg);
            -ms-transform: rotate(180deg);
        transform: rotate(180deg);
  }


.search {}

  .search__input {
    width: 100%;
  }

.btn {
  display: inline-block;
  vertical-align: middle;
  box-sizing: border-box;
  padding: 0 8px;
  max-width: 100%;
  height: 32px;
  line-height: 30px;
  font-size: 0;
  text-align: center;
  border: 1px solid #d8d8d8;
  color: inherit;
  background: #fff;
  border-radius: 2px;
  cursor: pointer;
  transition: .2s;
}

  .btn__text {
    margin: 0 2px;
    display: inline-block;
    vertical-align: middle;
    font-size: 14px;
    font-size: 1rem;
    line-height: 1;
  }

  .btn__icon {
    margin: 0 2px;
    display: inline-block;
    vertical-align: middle;
    width:  16px;
    height: 16px;
    fill: currentColor;
    -webkit-transform: translateX(0);
        -ms-transform: translateX(0);
            transform: translateX(0);
  }

    .btn__icon + .btn__text {
      margin-right: 6px;
    }

  .btn:hover {
    background: #f2f2f2;
  }

  .btn:focus {
    outline: 0;
    border-color: #55a8fd;
    box-shadow: 0 0 0 1px #55a8fd;
  }

  .btn:active {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) inset;
  }

  .btn:disabled,
  .btn[disabled] {
    opacity: 0.7;
    pointer-events: none;
    background: #d8d8d8;
  }

  .btn_act {}

    .btn_act:hover {
      color: #fff;
      border-color: #5dc560;
      background: #5dc560;
    }

  .btn_danger {}

    .btn_danger:hover {
      color: #fff;
      border-color: #e24545;
      background: #e24545;
    }

.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  padding: 14px;
  font-size: 0;
  white-space: nowrap;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  transition: .4s;
  cursor: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48IURPQ1RZUEUgc3ZnIFBVQkxJQyAiLS8vVzNDLy9EVEQgU1ZHIDEuMS8vRU4iICJodHRwOi8vd3d3LnczLm9yZy9HcmFwaGljcy9TVkcvMS4xL0RURC9zdmcxMS5kdGQiPjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHBhdGggZD0iTTEzLjQ2LDEyTDE5LDE3LjU0VjE5SDE3LjU0TDEyLDEzLjQ2TDYuNDYsMTlINVYxNy41NEwxMC41NCwxMkw1LDYuNDZWNUg2LjQ2TDEyLDEwLjU0TDE3LjU0LDVIMTlWNi40NkwxMy40NiwxMloiIGZpbGw9IiNmZmZmZmYiIC8+PC9zdmc+), auto;
}

  .modal:after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    height: 100%;
  }

  .modal__content {
    width: 480px;
    display: inline-block;
    vertical-align: middle;
    white-space: normal;
    text-align: left;
    font-size: 14px;
    font-size: 1rem;
    border-radius: 2px;
    border: 1px solid #d8d8d8;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    -webkit-animation-duration: .4s;
            animation-duration: .4s;
    -webkit-animation-fill-mode: both;
            animation-fill-mode: both;
    -webkit-animation-name: hideModal;
            animation-name: hideModal;
    cursor: default;
  }

  .modal__header,
  .modal__body,
  .modal__footer {
    padding: 1em;
  }

  .modal__header {
    margin: -1px -1px 0;
    border-bottom: inherit;
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    color: #fff;
    background: #55a8fd;
  }

  .modal__title {
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: bold;
  }

  .modal__footer {
    border-top: inherit;
    text-align: right;
    background: #f7f9fc;
    border-bottom-left-radius: inherit;
    border-bottom-right-radius: inherit;
  }

    .modal__footer .btn {
      margin-left: .5rem;
    }

  .modal_body {
    -webkit-flex: 1 1 auto;
        -ms-flex: 1 1 auto;
            flex: 1 1 auto;
  }

  .modal_show {
    opacity: 1;
    visibility: visible;
  }

    .modal_show .modal__content {
      -webkit-animation-name: showModal;
              animation-name: showModal;
    }

    @-webkit-keyframes hideModal {
      to {
        -webkit-transform: scale(1.2);
                transform: scale(1.2);
      }
    }

    @keyframes hideModal {
      to {
        -webkit-transform: scale(1.2);
                transform: scale(1.2);
      }
    }

    @-webkit-keyframes showModal {
      from {
        -webkit-transform: scale(0.8);
                transform: scale(0.8);
      }

      to {
        -webkit-transform: scale(1);
                transform: scale(1);
      }
    }

    @keyframes showModal {
      from {
        -webkit-transform: scale(0.8);
                transform: scale(0.8);
      }

      to {
        -webkit-transform: scale(1);
                transform: scale(1);
      }
    }

/* индикатор ожидания загрузки */
.loader {
  position: fixed;
  z-index: 9;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  background: rgba(255, 255, 255, .6);
  transition: .4s;
}

  .loader:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    width:  48px;
    height: 48px;
    border: 2px solid;
    border-color: #55a8fd #55a8fd rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    box-shadow: 0 0 1px transparent;
  }

  .app-page_loading .loader {
    opacity: 1;
    visibility: visible;
  }

    .app-page_loading .loader:before {
      animation: loading .75s linear infinite;
    }

    @keyframes loading {
      to {
        transform: rotate(1turn);
      }
    }