* {
  &.ik-container-background {
    background-color: $ikmd-color-t5;
  }

  &.ik-background-white {
    background-color: white;
  }

  &.ik-title-font {
    font-size: 14px;
    font-weight: bold;
  }

  &.ik-title-color {
    color: #263546;
  }

  &.ik-title {
    @extend .ik-title-font;

    @extend .ik-title-color;
  }

  &.ik-content-font {
    font-size: 12px;
  }

  &.ik-content-color {
    color: #858e99;
  }

  &.ik-content {
    @extend .ik-content-font;

    @extend .ik-content-color;
  }

  @each $direction in top, right, bottom, left {
    &.ik-border-#{$direction} {
      border-#{$direction}: 1px solid #ececec;
    }
  }

  @each $justify in left, center, right {
    &.ik-text-#{$justify} {
      text-align: #{$justify};
    }
  }

  &.ik-border {
    border: 1px solid #ececec;
  }

  &.ik-purchase-background, &.ik-purchase_order-background {
    background-color: #7ac3f9;
  }

  &.ik-sale-background, &.ik-sale_order-background {
    background-color: #ed9091;
  }

  &.ik-other-background, &.ik-storage_transfer-background {
    background-color: #afce83;
  }

  &.ik-storageio-background {
    background-color: #acb0e5;
  }
}

/* Hide number input spin */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.last-group {
  margin-bottom: #{$ikmd-space-base}px;
}

#guide-container {
  position: fixed;
  z-index: 1010;
  width: 288px;
  height: 271px;
  background-color: white;
  border-radius: 5px;

  .close {
    position: absolute;
    top: -11px;
    right: -11px;
    width: 22px;
    height: 22px;
    background-image: url(image_path("mobile/help/guide/popover-close.png"));
  }

  .header {
    height: 67px;
    background-size: 100% 100%;
    background-image: url(image_path("mobile/help/guide/popover-header.png"));
  }

  .body {
    padding: 14px;

    > a {
      display: block;
      width: 260px;
      height: 81px;
      background-size: 100% 100%;
    }

    .leader {
      margin-bottom: 14px;
      background-image: url(image_path("mobile/help/guide/popover-leader.png"));
    }

    .member {
      background-image: url(image_path("mobile/help/guide/popover-member.png"));
    }
  }
}

.ik-modal {
  $borde-color: #ddd;
  $borde-width: 5px;

  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background-color: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1010;

  .ik-modal-content {
    width: 80%;
    display: flex;
    flex-direction: column;
    border: 1px solid $borde-color;
    border-radius: $borde-width;
    background-color: #fff;

    > .ik-modal-header {
      img {
        display: block;
        max-width: 100%;
        border-top-left-radius: $borde-width;
        border-top-right-radius: $borde-width;
      }
    }

    > .ik-modal-body {
      flex: none;
      max-height: 50vh;
      padding: 1.5em 1em;
      font-size: 1.2em;
      line-height: 1.4;
    }

    > .ik-modal-footer {
      height: 45px;
      line-height: 45px;
      border-top: 1px solid $borde-color;
      text-align: center;
      font-size: 1.4em;
      display: flex;
      justify-content: center;
      align-items: center;

      .ik-modal-action {
        display: flex;
        flex: 1;
        background: none;
        border: none;
        outline: none;
        text-decoration: none;
        display: inline-block;
        text-align: center;
        color: #333;
      }

      .ik-modal-action:not(:last-child) {
        border-right: 1px solid $borde-color;
      }
    }
  }
}
