@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* CSS reset.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: 100%;
  font-weight: normal;
}
a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
ul {
  list-style: none;
}
button {
  cursor: pointer;
  border: none;
  white-space: nowrap;
  font-size: 16px;
}

img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-use-select: none;
  user-select: none;
}

/* CSS common.css */
:root {
  --bg: #f6f6f8;
  --darkgray: #313131;
  --button: #222;
  --graybutton: #dfdfdf;
  --blue: #286bd0;
  --red: #f22121;
  --white: #fff;
  --gray: #b7b7b7;
  --black: #000;
}
* {
  font-family: "Pretendard";
}

body {
  background-color: var(--bg);
}

h1 {
  font-weight: 600;
  color: var(--white);
}

h2 {
  font-size: 22px;
  font-weight: 600;
}

header {
  min-width: 1800px;
  height: 70px;
  background-color: var(--white);
  padding: 0 40px;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid #e1e1e1;
  & p {
    font-size: 18px;
    & span {
      font-weight: 600;
    }
  }
}

textarea {
  resize: none;
}

.inner {
  padding: 40px;
}

.layout {
  padding-left: 272px;
  min-width: 1800px;
}

.button {
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 18px;
  background-color: var(--button);
  color: var(--white);
}

.small-button {
  padding: 4px 12px;
  background-color: var(--button);
  border-radius: 4px;
  height: 27px;
  color: #fff;
  white-space: nowrap;
}
.small-gray-button {
  padding: 4px 12px;
  background-color: var(--graybutton);
  color: #5b5b5b;
  border-radius: 4px;
  height: 27px;
}

.input {
  padding: 9px 16px;
  border-radius: 4px;
  border: 1px solid #bcbcbc;
  font-size: 18px;
  width: 100%;
  &[type="week"] {
    padding: 8px 16px;
    font-size: 16px;
    max-width: 180px;
  }
  &[type="date"] {
    padding: 8px 16px;
    font-size: 16px;
    max-width: 150px;
  }
  &[type="time"] {
    padding: 8px 16px;
    font-size: 16px;
    max-width: 150px;
  }
  &::placeholder {
    color: var(--gray);
    font-size: 18px;
  }
}

input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.textarea {
  padding: 9px 16px;
  font-size: 18px;
}

.title-wrap {
  padding-bottom: 40px;
}

.table {
  border-collapse: collapse;
  width: 100%;
  table-layout: fixed;
  & th {
    border: 1px solid #d9d9d9;
    font-weight: 500;
    padding: 8px 16px;
  }
  & td {
    background-color: var(--white);
    border: 1px solid #d9d9d9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 8px 16px;
  }
}

.row-table {
  & th {
    text-align: left;
  }
}

.table-title {
  height: 54px;
  background-color: #efefef;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.table td.table-head {
  background-color: #efefef;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.required-star {
  color: var(--red);
}

& .attached-file {
  color: var(--blue);
  text-decoration-line: underline;
  cursor: pointer;
}

/* .modal {
    position: fixed;
    top: 110px;
    right: 40px;
    width: calc(100% - 352px);
    z-index: 30;
    padding-bottom: 40px;
  } */

.modal {
  padding: 40px;
}

.modal-head {
  background-color: var(--darkgray);
  height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  & p {
    color: var(--white);
    font-size: 22px;
    font-weight: 600;
  }
  & img {
    cursor: pointer;
  }
}

.modal-body {
  padding: 30px;
  border: 1px solid #bcbcbc;
  background-color: var(--white);
}

.modal-bottom-button {
  margin-top: 60px;
  text-align: right;
  & button {
    padding: 12px 16px;
    height: 48px;
    font-size: 20px;
  }
}

.menubar {
  background-color: var(--darkgray);
  width: 272px;
  height: 100vh;
  position: fixed;
  top: 0;
  overflow: auto;
  z-index: 100;

  & .head {
    padding: 60px 0px;
    text-align: center;
    & h1 {
      font-size: 32px;
      line-height: 28px;
      cursor: pointer;
    }
  }

  & details {
    cursor: pointer;
    &[open] > summary > img {
      transform: rotate(180deg);
    }
  }

  & summary {
    padding: 16px 24px;
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    list-style-type: none;
    &::-webkit-details-marker {
      display: none;
    }
  }
  & a {
    display: inline-block;
    width: 100%;
    padding: 16px 24px;
    color: var(--white);
    font-size: 18px;
    font-weight: 500;
    background-color: var(--button);
  }
  & .list-count {
    display: inline-block;
    font-size: 14px;
    font-weight: 400;
    margin-left: 5px;
    color: var(--red);
    text-decoration-line: underline;
    width: 16px;
    & img {
      animation-name: spinner;
      animation-duration: 2s;
      animation-timing-function: linear;
      animation-iteration-count: infinite;
    }
  }
}

@keyframes spinner {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.select-menu {
  background-color: #4b4b4b !important;
}

.pick-period {
  display: flex;
  align-items: center;
  gap: 0 8px;
  & p {
    font-size: 20px;
    font-weight: 500;
  }
  & input {
    height: 35px;
  }
}

td:has(div.datalist-wrap) {
  overflow: visible;
}

.datalist-wrap {
  position: relative;
}

/* .notice-text {
  color: var(--red);
} */

/* .datalist-wrap input:focus + .datalist {
  display: block;
} */

.datalist {
  display: none;
  margin-top: 4px;
  border-radius: 4px;
  border: 1px solid #bcbcbc;
  position: absolute;
  width: 100%;
  background-color: white;
  z-index: 1;
}

.datalist > div {
  padding: 9px 16px;
  &:hover {
    background-color: #efefef;
  }
}
.selectData {
  background-color: #efefef;
}

.page-move {
  color: var(--blue);
}

cite {
  font-style: normal;
}

.pagenation {
  display: flex;
  gap: 0 15px;
  font-size: 18px;
  justify-content: center;
  margin-top: 24px;
  & p {
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }
}

.select-pg {
  background-color: var(--darkgray);
  color: #fff;
  border-radius: 4px;
}

.empty-list {
  margin-top: 250px;
  text-align: center;
  & p {
    font-size: 24px;
    color: var(--graybutton);
  }
}

.setting-table {
  margin-top: 10px;
  border: 1px solid #d9d9d9;
  & th {
    border: none;
  }
  & td {
    text-align: center;
    height: 56px;
    border: none;
  }
  & tr {
    border-top: 1px solid #d9d9d9;
    border-bottom: 1px solid #d9d9d9;
  }
}

.setting-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.setting-title {
  display: flex;
  align-items: center;
  gap: 0 20px;
  & button {
    height: 37px;
    font-weight: 600;
    padding: 8px 12px;
    &:nth-of-type(1) {
      background-color: var(--blue);
    }
    &:nth-of-type(2) {
      background-color: var(--red);
    }
  }
}

.search-wrap {
  display: flex;
  gap: 0 10px;
  & input {
    height: 39px;
  }
}

.search-date-wrap {
  display: flex;
  align-items: center;
  gap: 0 10px;
}

.switch {
  position: relative;
  & input {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
  }
}

.main-setting-modal {
  & .small-modal {
    & p {
      margin-bottom: 0;
    }
    & li {
      display: flex;
      align-items: center;
      gap: 16px;
      margin-top: 16px;
      justify-content: space-between;
      & p {
        margin: 0;
        font-weight: 400;
        font-size: 16px;
      }
      & input {
        max-width: 270px;
      }
      &:nth-child(-n + 3) input {
        margin-right: 46px;
      }
    }
  }
  & .small-modal-title {
    margin-bottom: 32px;
    justify-content: space-between;
    & > div {
      display: flex;
      gap: 10px;
      & > button {
        background-color: var(--darkgray);
      }
    }
    & .main-notice-text {
      font-size: 14px;
      font-weight: 400;
      display: flex;
      align-items: center;
    }
  }

  .main-button-container {
    justify-content: end;
    margin-top: 32px;
    & button {
      background-color: var(--button);
    }
  }
}

.bottom-button-wrap {
  padding-top: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  & button {
    padding: 12px 16px;
    font-size: 20px;
  }
}

/* CSS login(index) */
.login-layout {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.login-bg-logo {
  display: flex;
  flex-direction: column;
  gap: 300px 0px;
  & span {
    font-size: 250px;
    font-weight: 700;
    line-height: 200px;
    color: #2c2c2c;
    text-align: center;
  }
}

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 9px 9px 20px 0px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  width: 498px;
  height: 467px;
  border-radius: 8px;
  padding: 0 102px;
  & h1 {
    font-size: 40px;
    line-height: 30px;
  }
  & p {
    font-size: 22px;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 45px;
    color: var(--white);
  }
  & button {
    padding: 12px 0;
    background-color: var(--button);
    color: var(--white);
    width: 100%;
    height: 48px;
    font-size: 20px;
    font-weight: 600;
    margin-top: 40px;
  }
}
.login-input-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 20px 0;
}
/* .option {
  height: 54px;
} */

.hide {
  display: none;
}
.show {
  display: block;
}

/* CSS postmessage */
#postMessageTable {
  & .textarea-tr {
    & textarea {
      height: 320px;
      border: none;
      outline: none;
      font-size: 18px;
      &::placeholder {
        color: var(--gray);
        font-size: 18px;
      }
    }

    & > div {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    & .text-counter-wrap {
      text-align: right;
      & span {
        color: var(--gray);
      }
    }
  }
}
