.uppercase { text-transform: uppercase; }
.clear {clear:both;}
.left {float: left;}
.right  {float: right;}
.img-left {float: left; margin:0 15px 10px 0}
.img-right  {float: right; margin:0 0 10px 15px}
.t-left {text-align: left;}
.t-right  {text-align: right;}
.center {text-align: center;}
.ofl {overflow: hidden;	_zoom: 1;}
.red {color: $attention-color;}
.bold {font-weight:bold;}
.sbold {font-weight:600;}
.hidden {display: none;}
.mt-20 {margin-top: 20px;}

.warning {
  background-color: lighten($attention-color, 15%);
  border: 2px solid $attention-color;
  border-radius: $border-radius-base;
  color: #fff;
  font-weight: bold;
  margin: 20px 0;
  padding: 10px;
  text-align: center;
}

.clearfix {
  @extend %clearfix;
}

.error {
  border:1px solid $attention-color;
  background-color: lighten($attention-color, 50%);
}
.ok {
  border:1px solid $ok-color;
  background-color: lighten($ok-color, 50%);
}

.no-dec-link {
  @extend %no-dec-link;
}

.dashed-link {
  border-bottom: 1px dashed $link-color;
  text-decoration: none;
  &:hover {
    border-color: transparent;
  }
}

.color-box {
  display: inline-block;
  height: 100px;
  margin-right: 10px;
  width: 100px;
  &.__1 {
    background-color: $base-color;
  }
  &.__1_1 {
    background-color: $base-color-light;
  }
  &.__1_2 {
    background-color: $base-color-lighter;
  }

  &.__2 {
    background-color: $background-color;
  }

  &.__2_1 {
    background-color: $background-color-light;
  }

  &.__2_2 {
    background-color: $background-color-lighter;
  }
  &.__3 {
    background-color: $primary-color;
  }
  &.__4 {
    background-color: $secondary-color;
  }
  &.__5 {
    background-color: $attention-color;
  }
}

.pad-wrap {
  padding: 20px;
}

.ttl-base {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: .8em;
  text-align: center;
}

.plate {
  background-color: #fff;
  border-radius: $border-radius-base;
  margin-bottom: 30px;
  .grid & {
    margin-bottom: 0;
  }
}

.plate_ttl {
  @include display-flex;
  @include align-items(center);
  border-radius: $border-radius-base $border-radius-base 0 0;
  color: #fff;
  min-height: 48px;
  padding: 10px 20px;
  &.__base {
    background-color: $background-color;
  }
  &.__primary {
    background-color: $primary-color;
  }
  &.__secondary {
    background-color: $secondary-color;
  }
  h1 {
    font-size: 15px;
  }
}

.tbl-base {
  width: 100%;
  &:not(.__no-brd) {
    border-top: 2px solid $base-color-lighter;
    border-bottom: 2px solid $base-color-lighter;
  }
  tr {
    border-bottom: 2px solid $base-color-lighter;
    color: $base-color-light;
    &:last-child {
      border-bottom: none;
    }
    &.__disabled {
      color: #fff;
      td {
        background-color: $attention-color;
      }
      a {
        color: #fff;
      }
    }
  }
  &.__stripe {
    color: $base-color-light;
    tr:nth-child(2n) {
      background-color: $base-color-lightest;
    }
  }
  td, th {
    vertical-align: middle;
    padding: 20px 10px;
    &:first-child {
      padding-left: 20px;
    }
    &:last-child {
      padding-right: 20px;
    }
  }
  .pad-wrap > & {
    td, th {
      &:first-child {
        padding-left: 0;
      }
      &:last-child {
        padding-right: 0;
      }
    }
  }
  th {
    background-color: $base-color-lighter;
    font-weight: bold;
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
  }
  &.__tggl-rows {
    tbody:nth-child(2n) {
      background-color: $base-color-lightest;
    }
    .tggl-block {
      background-color: #fff;
      &:last-child {
        border-bottom: 2px solid $base-color-light;
      }
    }
  }
}

.tbl-log {
  td {
    vertical-align: top;
  }
}

.tggl-btn {
  text-align: left;
  width: 150px;
}

.bttns-wrap {
  text-align: right;
  @extend %clearfix;
  &:not(td) {
    padding: 20px;
  }
  .btn {
    margin-left: 10px;
  }
  .pad-wrap > & {
    padding: 20px 0;
  }
  .note {
    color: $base-color-light;
    margin: 10px 0;
  }
  .bttns_left {
    float: left;
    .btn {
      margin-left: 0;
      margin-right: 10px;
    }
  }
  .bttns_left_i {
    min-width: 220px;
  }
  .num-rows {
    line-height: 40px;
  }
}

.remove-td {
  width: 28px;
}

.disabled-wrap {
  color: #fff;
}

.logs_date {
  .lbl {
    display: inline-block;
    min-width: 160px;
  }
  .date {
    font-weight: 600;
    white-space: nowrap;
  }
}

.__check {
  color: $green-color;
}
.__add {
  color: $secondary-color;
}
.__change {
  color: $primary-color
}
.__del {
  color: $attention-color;
}
.__admin {
  color: $attention-color;
}
.__user {
  color: $green-color;
}

.tooltip_wrap {
  position: relative;
}

.tooltip_btn {
  &.__ac + .tooltip_content {
    display: block;
  }
  &.__drop-t + .tooltip_content {
    bottom: 100%;
    margin-bottom: 10px;
    &:before {
      border-top: 10px solid $base-color;
      border-bottom: none;
      bottom: -10px;
      top: auto;
    }
  }
}

.tooltip_content {
  background-color: #fff;
  border: 2px solid $base-color;
  border-radius: $border-radius-base;
  box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.2);
  display: none;
  margin-top: 10px;
  padding: 10px 10px 5px;
  position: absolute;
  right: 0;
  z-index: 10;
  &:before {
    border-bottom: 10px solid $base-color;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    content: '';
    position: absolute;
    top: -10px;
    right: 20px;
  }
  .btn {
    display: block;
    margin: 0 0 5px 0;
    text-align: left;
  }
}

.protocol_cell {
  @include flex(none);
  margin-left: 0 !important;
  width: 105px;
}