@charset "UTF-8";

:root {
  --radius-4: 4px;
  --radius-8: 8px;
}

/* flex */
.justify-content-between {
  justify-content: space-between !important;
}

/* 정렬 */
.text-left {
  text-align: left;
}

/* width */
.w-90 {
  width: 90%;
}
.w-100 {
  width: 100%;
}
.w-px-250 {
  width: 250px;
}
@media (max-width: 768px) {
  .w-md-100 {
    width: 100% !important;
  }
}

/* form */
input,
textarea {
  border: 1px solid var(--Stroke);
  border-radius: var(--radius-4);
  font-size: 16px;
}
input::placeholder,
textarea::placeholder {
  color: #DEDEDE;
}
input[readonly] {
  background-color: var(--Background);
  color: var(--Greyscale6);
}

/* 말줄임 */
.ellipsis {
  white-space: nowrap;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

/* 첨부파일 */
/* 파일첨부 */
#file_wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file_cus {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-wrap: wrap;
}
.file_cus label {
  display: flex;
  align-items: center;
  font-size: 0;
  cursor: pointer;
  flex: 1;
}
input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
}
.file_name {
  margin-right: 8px;
  flex-grow: 1;
  padding: 12px;
  border: 1px solid #ddd;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  border-radius: 4px;
  font-weight: 400;
}
.file_cus button,
.file_cus .btn {
  border-radius: var(--radius-4);
}
.file_btn {
  /* border: 1px solid var(--Greyscale7); */
  padding: 12px;
  color: #fff;
  font-weight: 500;
  border-radius: 6px;
  background: var(--subcolor1);
}
.file_remove {
  height: 47px;
  width: 47px;
  color: var(--Error) !important;
  border: 1px solid var(--Error) !important;
  min-width: inherit;
}
.file_remove::before,
.file_remove::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 2px;
  height: 13px;
  background-color: var(--Error);
  transform-origin: center;
  transition: transform 0.3s ease;
}
.file_remove::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.file_remove::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
#file_add {
  height: 47px;
  width: 47px;
  float: right;
  min-width: inherit;
  border: 1px solid var(--Primary);
}
#file_add::before,
#file_add::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 2px;
  background-color: var(--Primary);
  transform-origin: center;
  transition: transform 0.3s ease;
}
#file_add::before {
  transform: translate(-50%, -50%) rotate(0deg);
}
#file_add::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* hidden */
.sr-only {
  overflow: hidden;
  position: fixed;
  top: -1px;
  left: -1px;
  width: 1px;
  height: 1px;
  font-size: 0;
  line-height: 0;
}

/* 페이지넘버 & 검색 */
.board-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.board-info-current {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.board-info-current > span {
  display: flex;
  gap: 4px;
  position: relative;
  color: #666;
  font-weight: 300;
}

.board-info-current > span:not(:last-child):before {
  content: "";
  position: absolute;
  top: 6px;
  right: -11px;
  width: 1px;
  height: 14px;
  background-color: #ddd;
}

.board-info-current > span > strong {
  color: #333;
  font-weight: 500;
}

.board-info-search {
  display: flex;
  gap: 0.5rem;
  position: relative;
  width: 100%;
}
.board-info-search-select {
  position: relative;
  width: 100px;
}

.board-info-search-select select {
  width: 100%;
  height: 100%;
  font-weight: 300;
  border: 1px solid var(--Stroke);
  cursor: pointer;
  padding: 12px 42px 12px 12px;
  font-size: 16px;
  appearance: none; /* 표준 속성 */
  -webkit-appearance: none; /* Safari, Chrome */
  -moz-appearance: none; /* Firefox */
  background: url(../images/common/ico_arrow_drop_down.svg) right center no-repeat;
  border-radius: var(--radius-4);
}
.board-info-search-input {
  flex: 1;
}

.board-info-search-input input {
  height: 100%;
  border: 0;
  font-size: 16px;
  border: 1px solid var(--Stroke);
  border-radius: var(--radius-4);
}

.board-info-search-btn {
  height: 46px;
  font-size: 17px;
}

.board-info-search-btn button {
  padding: 0 1.6rem;
  width: 100%;
  height: 100%;
  background-color: var(--subcolor1);
  color: #fff;
  border-radius: var(--radius-4);
  font-size: 16px;
}
@media (max-width: 768px) {
  .board-info {
    flex-direction: column;
    align-items: start;
    gap: 10px;
    font-size: 16px;
  }
  .board-info-search {
    width: 100%;
    flex-direction: column;
    align-items: start;
    gap: 10px;
  }
  .board-info-search-select {
    width: 100%;
  }
  .board-info-search-select select {
    font-size: 14px;
  }
  .board-info-search-input {
    width: 100%;
  }
  .board-info-search-btn {
    width: 100%;
  }
}

/* 문의하기-뱃지 */
.board-list-table tbody tr td.title .badge {
  display: inline-block;
  padding: 3px 8px;
  box-sizing: border-box;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  vertical-align: middle;
  white-space: nowrap;
  flex-shrink: 0;
}

.board-list-table tbody tr td.title .badge.answered {
  background-color: var(--subcolor1);
  color: #fff;
}

.board-list-table tbody tr td.title .badge.pending {
  background-color: var(--Greyscale4, #e0e0e0);
  color: #888;
}

/* 테이블 - 목록 */
.board-list {
  overflow: hidden;
}

.board-list-table {
  width: 100%;
  table-layout: fixed;
}

.board-list-table th,
.board-list-table td {
  position: relative;
  vertical-align: middle;
  font-size: 18px;
  padding: 15px 10px;
  border-right: 0;
}
.board-list-table tbody {
  border-top: 2px solid var(--Greyscale9);
}
.board-list-table tbody tr td.title {
  text-align: left;
  min-width: 0;
}

.board-list-table--badge tbody tr td.title {
  display: flex;
  gap: 8px;
  align-items: center;
}
.board-list-table tbody tr td.title .ellipsis {
  display: block;
  min-width: 0;
  flex: 1;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: normal;
}
.board-list-table .image-icon {
  position: relative;
  top: -0.05rem;
  width: 1.8rem;
  height: 1.8rem;
}
.board-list-table th {
  font-weight: 500;
}
.board-list-table td {
  font-weight: 300;
}

@media (max-width: 768px) {
  .board-list-table colgroup {
    display: none;
  }
  .board-list-table colgroup col {
    width: auto !important;
  }
  .board-list-table thead {
    display: none;
  }
  .board-list-table tbody tr {
    display: block;
  }
  .board-list-table tbody tr {
    border-bottom: 1px solid var(--Stroke);
  }
  .board-list-table tbody tr th,
  .board-list-table tbody tr td {
    font-size: 16px;
  }
  .board-list-table tbody tr td {
    border: none;
  }
  .board-list-table tbody tr td.number {
    display: none;
  }
  .board-list-table tbody tr td.title {
    width: 100%;
    display: flex;
    padding-bottom: 0;
  }
  .board-list-table tbody tr td.writer,
  .board-list-table tbody tr td.date {
    width: fit-content;
  }
  .board-list-table tbody tr td.writer::after {
    content: "";
    display: inline-block;
    width: 1px;
    height: 14px;
    background: var(--Stroke);
    position: absolute;
    right: 0;
    top: 21px;
  }
}

/* 테이블 - 작성 */
.board-list-table {
  width: 100%;
  table-layout: fixed;
}

.board-list-table-view th,
.board-list-table-view td {
  position: relative;
  vertical-align: middle;
  font-size: 18px;
  padding: 15px 10px;
  border-right: 0;
  text-align: left;
}
.board-list-table-view tbody tr td.title {
  text-align: left;
}
.board-list-table-view .image-icon {
  position: relative;
  top: -0.05rem;
  width: 1.8rem;
  height: 1.8rem;
}
.board-list-table-view th {
  font-weight: 500;
}
.board-list-table-view td {
  font-weight: 300;
}

@media (max-width: 768px) {
  .board-list-table-view colgroup {
    display: none;
  }
  .board-list-table-view colgroup col {
    width: auto !important;
  }
  .board-list-table-view tr {
    width: 100%;
  }
  .board-list-table-view th,
  .board-list-table-view td {
    display: block;
    width: 100%;
  }
  .board-list-table-view tbody tr th,
  .board-list-table-view tbody tr td {
    font-size: 16px;
  }
}

/* 페이지네이션 */
.board-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 30px;
}

.board-pagination .image-icon {
  height: auto;
  aspect-ratio: 1 / 1;
}

.board-pagination-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-8);
  border: 1px solid #ddd;
  text-align: center;
}

.board-pagination-num {
  color: var(--Greyscale7);
  border-color: transparent;
}

.board-pagination-num[data-status="active"] {
  background-color: var(--Greyscale9);
  border-color: var(--Greyscale9);
  color: #fff;
  font-weight: 700;
}

.board-pagination-num + .board-pagination-first {
  margin-left: 1rem;
}

.board-pagination-prev {
  margin-right: 1rem;
}

.board-pagination-prev .image-icon {
  width: 1.5rem;
  background-image: url(/resources/images/mps/board/board-pagination-prev.svg);
}

.board-pagination-next {
  margin-left: 1rem;
}

.board-pagination-next .image-icon {
  width: 1.5rem;
  background-image: url(/resources/images/mps/board/board-pagination-next.svg);
}

.board-pagination-first .image-icon {
  width: 1.8rem;
  background-image: url(/resources/images/mps/board/board-pagination-first.svg);
}

.board-pagination-last .image-icon {
  width: 1.8rem;
  background-image: url(/resources/images/mps/board/board-pagination-last.svg);
}

.board-pagination-link.first {
  margin-left: 10px;
}
.board-pagination-link.last {
  margin-right: 10px;
}
@media (max-width: 768px) {
  .board-pagination-link {
    font-size: 14px;
    width: 30px;
    height: 30px;
  }
  .board-pagination-link.first {
    margin-left: 0;
  }
  .board-pagination-link.last {
    margin-right: 0;
  }
}

/* 하단 버튼 */
.bottom-btn {
  display: flex;
  justify-content: end;
  margin-top: 30px;
  gap: 8px;
}
.bottom-btn button {
  padding: 10px 24px;
  border-radius: var(--radius-8);
}
button.primary {
  background: var(--subcolor1);
  color: #fff;
}
button.btn-gray {
  background: #fff;
  color: var(--Greyscale6);
  border: 1px solid var(--Greyscale4);
}

/* 상단 공지 행 */
.board-list-table tbody tr.tr-top {
  background-color: #F0FAF6;
}
.notice-badge {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid var(--Primary-dark);
  border-radius: 4px;
  color: var(--Primary-dark);
  font-size: 0.85rem;
  font-weight: 600;
}
button.line {
  color: #fff;
  background: #333;
}
@media (max-width: 768px) {
  .bottom-btn button {
    font-size: 16px;
  }
}

/* 게시글 */
.board-view {
}
.board-view .board-view-head {
  border-bottom: 2px solid var(--Greyscale9);
  padding-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.board-view .board-view-head h6 {
  font-size: 24px;
}
.board-view .board-view-head ul {
  display: flex;
  gap: 10px;
}
.board-view .board-view-head ul li {
}
.board-view .board-view-cont {
  padding: 30px 0;
  border-bottom: 2px solid var(--Stroke);
  padding-bottom: 100px;
  min-height: 170px;
}

.asterisk {
  display: inline-block;
  vertical-align: middle;
  color: var(--Error);
  margin-top: -5px;
  margin-left: 1px;
}

.board-view-file {
  display: flex;
  flex-direction: column;
  gap: 4px;

  width: 100%;
  margin-top: 8px;

  color: var(--Greyscale7);
  font-size: 0.9rem;
}

.board-file {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

.board-file a {
  display: block;
  color: var(--Greyscale7);
  text-decoration: underline;
}

@media screen and (max-width: 1200px) {
  .board-view .board-view-cont img {
    width: 100%;
  }

  .board-view .board-view-cont p img {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .board-view {
    font-size: 16px;
  }
  .board-view .board-view-head h6 {
    font-size: 20px;
  }

  .board-view-file {
    font-size: 0.8rem;
  }
}

@media (max-width: 440px) {
  .board-view .board-view-head h6 {
    font-size: 18px;
  }
}


/* 모달팝업 */
body.active {
  overflow: hidden;
}

/* 패스워드 모달 */
#pwModal {
  display: none;
}

.modal {
  display: none;

  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  background-color: rgba(0, 0, 0, 0.5);

  display: flex;
  justify-content: center;
  align-items: center;

  z-index: 999;
}

#pwModal.active {
  display: flex;
}

.modal-content {
  display: flex;
  flex-direction: column;
  gap: 16px;

  padding: 32px 16px;
  box-sizing: border-box;
  border-radius: 8px;

  background-color: white;

  text-align: center;
  font-weight: 600;
}

.modal-content.pwModal {
  width: 16rem;
}

.modal-body .pw {
  width: 100%;
}

.modal-footer {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.modal-footer button {
  width: 100%;
  padding: 8px 16px;
  border: 1px solid var(--Primary);
  border-radius: 4px;
  background-color: #fff;
}

.modal-footer button.confirm {
  color: #fff;
  background-color: var(--Primary);
}

@media screen and (max-width: 480px) {
  .modal {
    padding: 0 16px;
  }

  .modal-content {
    width: 100%;
  }

  .modal-content.pwModal {
    width: 100%;
  }
}

/* 이중모달 */
#modalA { display: none; }
#modalB { display: none; }

#modalA.active { display: flex; }
#modalB.active { display: flex; }

.modal-footer button.delete {
  color: #fff;
  background-color: var(--Primary);
}


/* ------------- qna -------------  */
.board-answer {
  margin-top: 24px;
  padding: 16px;
  box-sizing: border-box;
  border-radius: 8px;
  border: 2px solid var(--Primary);
}

.board-answer .board-view-head {
  border-bottom: 1px solid var(--Greyscale4);
}

.board-answer .board-view-cont {
  border-bottom: none;
}


/* Quill editor */
.ql-editor.ql-blank::before {
    color: #DEDEDE !important;
}

.ql-editor {
    min-height: 280px;
    font-family: inherit !important;
    font-size: inherit !important;
    white-space: normal !important;
}

.ql-editor p {
    margin: initial !important;
    padding: initial !important;
}

.ql-editor strong {
    font-weight: 700 !important;
}

.ql-editor em {
    font-style: italic !important;
}

.ql-editor u {
    text-decoration: underline !important;
}

.ql-editor ul,
.ql-editor ol {
    margin: initial !important;
    padding: 1em !important;
}

.ql-editor ul li {
    list-style: none !important;
    margin: initial !important;
    padding: initial !important;
}

.ql-editor ol li {
    list-style: none !important;
    margin: initial !important;
    padding: initial !important;
}
/* 글쓰기 페이지 배경 */
.container.write-bg {
  background-color: #FFF7E9;
  overflow: hidden;
}

/* 글쓰기 페이지 제목 */
.write-page-title {
  font-family: "Paperlogy";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--Greyscale9);
}

/* 글쓰기 페이지 input 스타일 */
.write-bg .module_w .inputField > input {
  border: 1px solid var(--Stroke);
  border-radius: 8px;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
}
.writeWrap{
    gap: 12px;
    display: flex;
    flex-direction: column;
}