@import '~@ucap/lg-scss/mixins';

:host {
  width: 100%;
  height: 100%;
}

.layout-container {
  width: 100%;
  height: 100%;

  .navitab-page {
    //GNB /////////////////////////////////////
    .gnb {
      background-color: $gray-ref0;
      width: 60px;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      align-items: center;
      border-right: 1px solid rgba(204, 204, 204, 0.8);
      .mat-gnb-toolbar {
        flex-basis: 64px;
        .img-logo {
          margin: 9px 0 5px;
        }
      }
      .left-container {
        display: flex;
        width: calc(100% - 28px);
        height: 100%;
      }
      .global-menu {
        width: 100%;
        background-color: $gray-ref0;
        flex-grow: 1;
      }
      .btn-homepage-area {
        flex-flow: column-reverse;
        position: relative;
        button {
          padding: 30px 0 12px;
          &::before {
            content: '';
            width: 20px;
            height: 20px;
            background-image: url(../../../assets/images/ico/btn_gnb_hompage.svg);
            display: block;
            position: absolute;
            top: 9px;
            left: calc(50% - 10px);
          }
          em {
            font-style: normal;
            font-size: 8px;
            color: $gray-re6;
            display: block;
            line-height: 9px;
            font-weight: 600;
          }
        }
      }
      ::ng-deep .global-menu {
        //display: flex;
        //flex-direction: row;
        .mat-tab-header {
          border-bottom: none !important;
          width: 100%;
        }
        .mat-tab-label-container {
          .mat-tab-list {
            .mat-tab-labels {
              display: flex;
              flex-flow: column;
              justify-content: space-around;
              height: 272px;
              border-bottom: none;

              .mat-tab-label {
                width: 100%;
                height: 32px;
                padding: 0;
                min-width: 0 !important;
                .mat-tab-label-content {
                  .icon-item {
                    display: inline-flex;
                    width: 32px;
                    height: 32px;
                    border-radius: 50%;
                    justify-content: center;
                    align-items: center;
                    //transform: scale(0.9);
                    transition: transform 0.3s cubic-bezier(0.4, 0, 0, 1);

                    svg {
                      //width: 24px;
                      //height: 24px;
                      stroke: $gray-re9;
                      stroke-width: 2;
                      stroke-linecap: square;
                      stroke-linejoin: miter;
                      fill: none;
                      g {
                        &#icon_gnb_organiztion_g32 {
                          .prefix__cls-1,
                          .prefix__cls-4 {
                            fill: none;
                          }
                          .prefix__cls-1 {
                            stroke: #999;
                            stroke-width: 2px;
                          }
                          .prefix__cls-3 {
                            stroke: none;
                          }
                        }
                        &#icon_gnb_message_g32 {
                          .prefix__cls-1 {
                            fill: none;
                            stroke: #999;
                            stroke-width: 2px;
                            stroke-linejoin: round;
                          }
                        }
                      }
                    }
                    .mat-badge-content {
                      right: -9px !important;
                      border: 1px solid #ffbf2a;
                      //width: 24px;
                      //height: 24px;
                      box-sizing: content-box;
                      top: -10px !important;
                    }
                  }
                }
                &.mat-tab-label-active {
                  opacity: 0;
                  svg {
                    stroke: #fff !important;
                    g {
                      &#prefix_23,
                      &#icon_gnb_chat_g32,
                      &#icon_gnb_call_g32 {
                        path {
                          &:nth-child(2) {
                            fill: #fff !important;
                          }
                        }
                      }
                      &#icon_gnb_organiztion_g32 {
                        .prefix__cls-1 {
                          stroke: #fff !important;
                        }
                        path {
                          &:nth-last-of-type(2) {
                            stroke: #fff !important;
                          }
                        }
                      }
                      &#icon_gnb_message_g32 {
                        .prefix__cls-1 {
                          stroke: #fff !important;
                        }
                        path {
                          &:nth-child(3) {
                            stroke: #fff !important;
                          }
                        }
                      }
                    }
                  }
                }
                &[aria-selected='true'] {
                  opacity: 1;
                  .mat-tab-label-content {
                    .icon-item {
                      transform: scale(1);
                    }
                  }
                }
              }
            }
            .mat-ink-bar {
              opacity: 0;
            }
          }
        }
        .mat-tab-body-wrapper {
          .mat-tab-body {
            height: 100%;
            width: 100%;
          }
        }
      }
    }
    /////////////////////////////////////GNB //
  }

  .content-page {
    width: calc(100% - 60px);
    height: 100%;

    .content-body {
      width: 100%;
      height: calc(100% - 38px);

      mat-sidenav-container {
        width: 100%;
        height: 100%;

        .left-sidenav {
          width: 370px;
          max-width: 90%;

          .left-sidenav-container {
            width: 100%;
            height: 100%;
            .top-bar {
              font: {
                size: 13px;
                color: $gray-re70;
              }
              line-height: 15px;
              padding: 25px 0 0 17px;
            }
          }
        }

        mat-sidenav-content {
          .content-sidenav-container {
            width: 100%;
            height: 100%;

            .content-sidenav-body {
              overflow: auto;
            }
          }
        }
      }
    }

    .content-statusbar {
      width: 100%;
      height: 100%;
      //Footer ////////////////////////
      .footer {
        display: flex;
        justify-content: space-between;
        width: 100%;
        height: 38px;
        border-top: 1px solid $line-color-gray01;
        background-color: $white;
        .foot-info {
          display: flex;
          flex-grow: 1;
          align-items: center;
          font-size: 12px;
          color: $gray-re70;
          @include font-family($font-light);
          font-weight: 600;
          &.version-info {
            .var-txt {
              padding-left: 8px;
              color: $gray-re70;
              &::before {
                content: '';
                width: 1px;
                height: 10px;
                display: inline-block;
                background-color: #d4d4d4;
                margin-right: 8px;
              }
              &:first-of-type {
                &::before {
                  width: 0;
                }
              }
              &.new-var {
                color: $brown;
              }
            }
          }
          &.help-info {
            flex-flow: row-reverse;
            padding-right: 20px;
            p {
              margin: 0;
              span {
                color: $lipstick;
              }
              em {
                margin-left: 10px;
              }
            }
          }
        }
      }
      //////////////////////// Footer//
    }
  }
}
