// 공통
html,
body {
  margin: 0;
  overflow: hidden;
}

* {
  font-family: "Pretendard";
  font-size: 12px;
  font-weight: 400;
}

strong {
  font-weight: 700;
  font-size: 1em;
}
u {
  font-weight: unset;
}

li,
label,
input,
button,
a {
  cursor: pointer;
}

ul,
li,
ol,
a {
  list-style: none;
  text-decoration: none;
  margin: 0;
  padding: 0;
}

#select_list{
  display: flex;
  position: absolute;
  top: 100%;
  flex-direction: column;
  
}


// 툴팁

.tooltip {
  // position: relative;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 4px;
  box-sizing: border-box;

  &:hover {
    & ~ .tooltiptext {
      visibility: visible;
    }
  }
}

.tooltiptext {
  visibility: hidden;
  width: fit-content;
  min-width: 100%;
  background-color: $blue-004;
  color: #fff;
  text-align: center;
  text-wrap: nowrap;
  border-radius: 6px;
  padding: 7px;

  // position: absolute;
  z-index: 1;
  bottom: 0;
  left: 100%;
  height: 43%;
}

// 버튼 디자인
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
}

textarea {
  padding: 10px !important;
}

.point-btn {
  border: solid 1px #828282;
  background-color: #828282;
  color: rgba(255, 255, 255, 0.973);
  border-radius: 3px;
  padding: 8px 30px !important;

  text-wrap: nowrap;
  font-size: 13px;

  cursor: pointer;
}
.point-btn:hover {
  color: #828282;
  background-color: rgba(255, 255, 255, 0.973);
}

.basic-btn {
  border: solid 2px transparent;
  border-radius: 5px;
  background-color: $blue-005;
  color: white;
  font-size: 13px;

  padding: 7px 12px;
  cursor: pointer;

  &:hover {
    background-color: white;
    border: solid 2px $blue-005;
    color: $blue-005;
  }
}

.reverse-btn {
  background-color: white;
  border: solid 2px $blue-005;
  color: $blue-005;
  border-radius: 5px;
  font-size: 13px;

  padding: 7px 12px;
  cursor: pointer;

  &:hover {
    background-color: $blue-005;
    border: solid 2px transparent;
    color: white;
  }
}

.btn-danger {
  height: 100%;
  border: solid 2px red;
  border-radius: 3px;
  color: red;
  background-color: white;
  
  &:hover {
    border: solid 2px red !important;
    background-color: red;
    color: white;
  }
}
.close-btn {
  border: solid 2px #cf5b5b;
  color: white;
  background-color: #cf5b5b;

  border-radius: 3px;

  &:hover {
    background-color: white;
    color: #cf5b5b;
  }
}

.check-btn {
  position: absolute;
  top: 3px;
  height: 80%;
  right: 3px;
  box-sizing: border-box;
  padding: 2px 7px;
}

.reg-btn {
  height: 100%;
  width: 50px;
  word-break: keep-all;
}

.disabled-btn,
button[disabled] {
  background-color: rgba(255, 255, 255, 0.973) !important;
  color: #dddddd !important;
  border-color: #e9e9e9 !important;
  cursor: default !important;

  &:hover {
    background-color: rgba(255, 255, 255, 0.973) !important;
    color: #dddddd !important;
    border-color: #e9e9e9 !important;
  }
}

.tab-btn {
  background-color: white;
  color: black;
  border: solid 1px $gray-004;
  height: 30px;
  width: 25%;
  border-right: none;
  cursor: pointer;

  text-wrap: nowrap;

  &:hover,
  &.on {
    background-color: $gray-004;
    color: white;
  }
}

.left-round {
  border-radius: 50px 0px 0px 50px;
}

.right-round {
  border-radius: 0px 50px 50px 0px;
  border-right: solid 1px $gray-004;
}

// 전체 프레임
.have-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.container {
  height: calc(100vh - 48px);
  display: flex;
  justify-content: center;
}

.container .main-part {
  width: calc(100% - 235px);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.breadcrumb {
  .inner-container {
    padding: 20px 15px;

    a,
    i {
      font-size: 15px;
    }

    a:nth-of-type(3) {
      font-size: 20px;
      color: #1f2859;
      font-weight: 700;
    }
  }
}

.sub-container {
  width: 49%;
  height: calc(100% - 25px);

  .button-box {
    &.main-table {
      display: flex;
    }

    &.sub-table {
      display: none;
    }
  }
}

.tab-menu {
  gap: 5px;
  border-bottom: solid 2px #162788;

  li {
    border-left: solid 2px #162788;
    border-right: solid 2px #162788;
    border-top: solid 2px #162788;
    border-radius: 5px 5px 0 0;
    padding: 7px 12px;
    background-color: white;
    color: #162788;

    min-width: 80px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;

    &:hover {
      background-color: #162788;
      color: white;
    }

    &.on {
      background-color: #162788;
      color: white;
    }
  }
}
.tab-container {
  height: 98%;

  > div {
    display: none;
    height: calc(100vh - 320px);

    .table-box:first-of-type,
    .tab-box:first-of-type {
      width: 100%;
      position: relative;

      .table-title {
        position: absolute;
        top: -35px;
        right: 0;
        margin-bottom: 15px;
      }
    }

    &.on {
      display: flex;
    }
  }
}

.opacity-0{
  opacity: 0;
}

// 메인 프레임
.table-title {
  display: flex;
  justify-content: space-between;
  align-items: end;
  height: 32px;

  p {
    font-size: 16px;
    margin: 0;
    text-wrap: nowrap;
  }
}

.contents-container {
  height: calc(100vh - 205px);
  width: 100%;

  &.full-height {
    height: 100%;
  }

  .table-container {
    width: 100%;
    height: 98%;
    margin: 10px 0 30px 0;

    .inner-container {
      width: calc(100% - 80px);
      height: calc(100% - 10px);
      border-radius: 5px;
      border: 1px solid $gray-002;
      padding: 10px 15px 0px 15px;

      .sub-table {
        .table-box {
          width: 49%;
        }
      }
    }
  }
}
.table-container {
  height: 90%;
  margin-top: 10px;
}
.inner-container {
  margin: 0 25px;
  padding: 0 15px;
  > .flexrow,
  > .flexcol {
    height: calc(100% - 15px);
  }
}

.table-box {
  width: 100%;
  height: 98%;
}
.sub-table,
.inner-container {
  &.flexrow {
    width: 100%;
    > .table-box {
      width: 49%;
    }
    > .flexcol {
      width: 49%;
    }
  }
}
.flexcol {
  width: 100%;
  height: 100%;
  > .table-box {
    width: 100%;
    height: 49%;
  }
  > .flexrow {
    height: 49%;
  }
}

.tb-height-full {
  height: calc(100vh - 290px);
}

.tb-height-half {
  height: calc(50vh - 150px);
}
.tb-height-half-col {
  height: calc(50vh - 172px);
}

.tb-height-30 {
  height: 18vh;
  max-height: calc(100% - 50px);
}
.tb-height-70 {
  height: 39vh;
  max-height: calc(100% - 50px);
}
.tb-height-60 {
  height: 60px;
}
.tb-height-55vh {
  height: 55vh;
  max-height: calc(100% - 50px);
}

.label-tag {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 25px;
  width: 60px;
  border-radius: 5px;

  span {
    width: 6px;
    height: 100%;
    margin-right: 9px;
  }
}

.blue-back {
  //background-color: #d2e7ff !important;
  background-color: #d2e7ff !important;
}
.green-back {
  background-color: #d2ffd5 !important;
}
.orange-back {
  background-color: #ffe0d2 !important;
}
.yellow-back {
  background-color: #fff9ab !important;
}
.red-back {
  background-color: #ff7d7d !important;
}
.gray-back {
  background-color: #afafaf !important;
}
.black-back {
  background-color: #757575 !important;
}

.white-font {
  color: white;
}
.red-font {
  color: crimson;
  font-weight: 700;
}

// width
.min-width-572 {
  min-width: 572px;
}
.width-auto {
  width: auto;
}
.width-100per {
  width: 100%;
}
.width-49per {
  width: 49%;
}
.width-30per {
  width: 30%;
}
.width-50per {
  width: 50%;
}
.width-70px{
  width: 70px;
}
.width-80px {
  width: 80px !important;
}
.width-140px{
  width: 140px;
}
.width-740px {
  width: 740px;
}
.fit-content {
  width: fit-content !important;
}

// margin
.marign-top-7px {
  margin-top: 7px !important;
}
.marign-7px {
  margin: 7px !important;
}

//padding
.padding-bottom-none {
  padding-bottom: 0px !important;
}
.padding-1-12 {
  padding: 1px 12px;
}
.padding-1-5 {
  padding: 1px 5px;
}

// height
.full-height {
  height: 100% !important;
}
.height-140px {
  height: 140px;
}
.height-280px {
  height: 280px;
}
.height-300px {
  height: 300px;
}
.height-35per {
  height: 35%;
}
.h-fit-content {
  height: fit-content !important;
}


// position
.relative {
  position: relative;
}
.static {
  position: static;
}
.absolute {
  position: absolute;
}

// font-wieght
.font-weight-700 {
  font-weight: 700;
}

.card-container {
  display: none !important;
  background-color: rgba(31, 40, 89, 0.6117647059);
  border-radius: 15px;

  width: fit-content;
  height: 350px;

  padding: 20px;
  box-sizing: border-box;
  margin: 10%;

  h1 {
    font-size: 30px;
    font-weight: 600;

    color: white;
  }
}

.dashboard {
  width: 260px;
}

.card {
  background-color: white;
  border-radius: 7px;

  .title {
    border-radius: 7px 7px 0px 0px;
    margin: 0;
    background: $blue-004;
    padding: 20px 10px;
    font-size: 15px;
    color: white;
  }
}

.open-btn{
  height: 100%;
  width: 30px;
  border-radius: 7px;

  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  background-color: $blue-004;

  &:hover{
    color: #4c5269;
    background-color: white;
  }
}

.graph-card{
  width: 0px;
  opacity: 0;

  transition: all 0.5s ease;



  &.on{
    width: 740px;
    opacity: 1;
  }
}
