.common-document {
  overflow: hidden;

  .icon {
    width: 50px;
    height: 50px;
    margin: 0 auto;
    padding-top: 7px;
    color: #fff;
    border-radius: 5px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
  }

  .content, .content-top {
    .status p {
      display: inline-block;
      width: 66px;
      padding: 2px 0;
      border-radius: 20px;
      color: #fff;

      &.approving, &.second_approving, &.third_approving {
        background-color: $ikmd-color-t1;
      }

      &.rejected, &.deprecated {
        background-color: $ikmd-color-t7;
      }

      &.draft {
        background-color: $ikmd-color-t4;
      }

      &.submitted, &.passed {
        background-color: $ikmd-color-t3;
      }
    }
  }

  .content {
    @extend .ik-border-bottom;

    .info {
      padding: 15px 0;
    }
  }

  .content-top {
    .info {
      padding-top: 15px;
    }
  }

  .content-bottom {
    @extend .ik-border-bottom;

    padding-bottom: 15px;
  }
}

#mobile_documents_index,
#mobile_dashboard_index,
#mobile_purchases_index,
#mobile_sales_index,
#mobile_storageios_index,
#mobile_storage_transfers_index {
  .document {
    @extend .common-document;
  }
}

#mobile_purchase_orders_index,
#mobile_sale_orders_index {
  .order {
    @extend .common-document;
  }
}

#mobile_documents_index,
#mobile_purchases_index,
#mobile_sales_index {
  .documents {
    i.anticon-file {
      margin-top: 50px;
      font-size: 100px;
    }
  }

  .cancel-search {
    font-size: 12px;
    line-height: 32px;
    text-align: center;
    color: $ikmd-color-t1;
  }

  .search-btn {
    float: right;
  }

  .ant-form-item {
    margin-bottom: 0;
  }
}

#mobile_documents_show,
#mobile_purchases_show,
#mobile_sales_show {
  .container-fluid {
    background-color: #ebebf0;
  }

  .container {
    background-color: #ebebf0;

    .buttons {
      button {
        width: 47.5%;

        &.right {
          margin-left: 5%;
        }
      }
    }

    .title-wrapper, .info-wrapper, .table-wrapper {
      background-color: #fff;
    }

    .title-wrapper {
      .icon {
        width: 50px;
        height: 50px;
        margin: 0 auto;
        padding-top: 7px;
        color: #fff;
        border-radius: 5px;
        text-align: center;
        font-size: 12px;
        font-weight: bold;
      }

      .status {
        p {
          display: inline-block;
          padding: 2px 8px;
          border-radius: 20px;
          background-color: #469cfc;
          color: #fff;
        }
      }
    }

    .info-wrapper {
      .top {
        @extend .ik-border-bottom;

        .item {
          float: left;
          width: 33%;
          padding: 15px;

          @extend .ik-border-right;

          &:last-child {
            border: none;
          }
        }
      }
    }

    .table-wrapper {
      overflow-x: auto;
    }
  }
}
