@charset 'utf-8';

@mixin ellipsis($row) {
  overflow: hidden;
  text-overflow: ellipsis;
  @if $row == 1 {
    display: block;
    white-space: nowrap;
    word-wrap: normal;
  } @else if $row >= 2 {
    display: -webkit-box;
    -webkit-line-clamp: $row;
    -webkit-box-orient: vertical;
    word-wrap: break-word;
  }
}

.current-head {
  /*display: flex;
  justify-content: center;
  padding: 0 10px;
  height: 70px;
  background-color: #eeeeee;
  background: #f15f79;
  background: -webkit-linear-gradient(to right, #352a37, #f15f79);
  background: linear-gradient(to right, #352a37, #ef4c73);
  color: #ffffff;*/
  h3 {
    display: inline-flex;
    padding-left: 10px;
    align-items: center;
    width: 100%;
  }
  .btn-box {
    height: 100%;
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    svg {
      stroke: #333333;
    }
  }
}
.search-result {
  height: calc(100% - 40px);
  overflow: auto;
  .result-num {
    padding: 10px;
    display: flex;
    height: 40px;
  }
}

.oraganization-tab {
  height: calc(100% - 130px);
  flex-direction: inherit;
  display: flex;
  .oraganization-tab-tree {
    height: 40%;
    overflow-y: auto;
  }
}

//팝업에 있는 조직도
.mat-card-content {
  .mat-tab-body-content {
    .oraganization-box {
      .oraganization-tab {
        height: 80%;
        flex-direction: row;
      }
    }
  }
}

.select-list {
  height: 60%;
  border-top: 1px solid #dddddd;
  .select-dept {
    padding: 0 20px;
    height: 40px;
    line-height: 40px;
    display: flex;
    background-color: #f9f9f9;
    dt {
      font-weight:600;
    }
    dd {
      margin-left: auto;
    }
  }
  .search-list {
    height: calc(100% - 40px);
    overflow: auto;
    .list-item {
      height: 70px;
    }
  }
}
.btn-box {
  padding: 10px;
  button {
    width: 100%;
    @include ellipsis(1);
    span {
      vertical-align: baseline;
    }
  }
  ul {
    display: flex;
    flex-flow: row;
    align-content: space-between;
    margin-top: 4px;
    li {
      display: inline-flex;
      align-items: center;
      flex-grow: 1;
      width: 33%;
      margin-right: 4px;
      &:last-child {
        margin-right: 0;
      }
      button {
        text-align: center;
        width: 100%;
        height: 100%;
        padding: 0 6px;
      }
    }
  }
}

.dialog-org {
  .oraganization-tab {
    width: 100%;
    height: 380px;
    border-bottom: 1px solid #dddddd;
    position: relative;
    .oraganization-tab-tree {
      display: inline-flex;
      width: 50%;
      height: 100%;
      border-right: 1px solid #dddddd;
      overflow: auto;
    }
    .select-list {
      display: inline-flex;
      flex-direction: column;
      width: 50%;
      height: 100%;
      overflow: auto;
      .search-list {
        overflow: auto;
      }
    }
  }
}
