/* List page skin (based on 게시판_디자인.html) */

/* Base / reset (scoped) */
.sbr2-list,
.sbr2-list *,
.sbr2-list *::before,
.sbr2-list *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.sbr2-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background-color: #ffffff;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
}

.sbr2-list a {
  text-decoration: none;
  color: inherit;
}

/* Top summary + write button */
.sbr2-list__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 15px;
}

.sbr2-list__total {
  font-size: 14px;
  color: #333;
}

.sbr2-list__total-num {
  color: #ff5050;
  font-weight: 700;
}

.sbr2-list__write-btn {
  background-color: #a03178;
  color: #fff;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: opacity 0.2s;
  display: inline-block;
}

.sbr2-list__write-btn:hover {
  opacity: 0.9;
  color: #fff;
}

/* Table (grid rows) */
.sbr2-list__table {
  width: 100%;
  border-top: 2px solid #000;
}

.sbr2-list__row {
  display: grid;
  /* 번호 | 문의유형 | 제목(가변) | 작성자 | 작성일 | 조회수 | 상태 */
  grid-template-columns: 80px 100px 1fr 100px 120px 80px 100px;
  align-items: center;
  text-align: center;
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
  background-color: #fff;
  color: #666;
  font-size: 14px;
  transition: background-color 0.2s;
}

.sbr2-list__row[data-sbr2-view-url] {
  cursor: pointer;
}

.sbr2-list__row:hover {
  background-color: #f9f9f9;
}

.sbr2-list__row--head {
  font-weight: 700;
  background-color: #fff;
  font-size: 15px;
  color: #000;
}

.sbr2-list__row--head:hover {
  background-color: #fff;
}

.sbr2-list__row--notice {
  background-color: #fcfcfc;
}

.sbr2-list__row--empty {
  display: block;
  padding: 0;
}

.sbr2-list__empty {
  width: 100%;
  padding: 60px 0;
  text-align: center;
  color: #666;
}

/* Cells */
.sbr2-list__col {
  min-width: 0;
}

/* Title column */
.sbr2-list__col--title {
  padding: 0 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sbr2-list__row:not(.sbr2-list__row--head) .sbr2-list__col--title {
  color: #333;
}

.sbr2-list__col--title-left {
  text-align: left;
}

.sbr2-list__title-link {
  display: inline-block;
  max-width: 100%;
  font-weight: inherit;
  vertical-align: middle;
}

.sbr2-list__title-link:hover {
  text-decoration: underline;
}

.sbr2-list__notice-title {
  color: #000;
}

/* Badges & icons */
.sbr2-list__badge-notice {
  background-color: #000;
  color: #fff;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 2px;
  font-weight: 500;
  display: inline-block;
}

.sbr2-list__icon-lock {
  color: #777;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-flex;
}

.sbr2-list__icon-attachment {
  color: #777;
  margin-right: 6px;
  vertical-align: middle;
  display: inline-flex;
}

.sbr2-list__icon-new {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  background-color: #ff5b5b;
  color: #fff;
  font-size: 10px;
  border-radius: 50%;
  margin-left: 6px;
  vertical-align: middle;
  font-weight: 700;
  line-height: 1;
}

/* Status badge */
.sbr2-list__status-badge {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 3px;
  display: inline-block;
  color: #fff;
  line-height: 1;
}

.sbr2-list__status-badge--waiting {
  background-color: #999;
}

.sbr2-list__status-badge--complete {
  background-color: #7484d2;
}

/* Views */
.sbr2-list__row:not(.sbr2-list__row--head) .sbr2-list__col--views {
  color: #999;
  font-size: 13px;
}

.sbr2-list__views-label {
  display: none;
}

/* Bottom pagination + write button */
.sbr2-list__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.sbr2-list__pagination {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Oxygen pagination markup */
.sbr2-list__pagination .oxy-repeater-pages-wrap {
  padding: 0;
  display: block;
}

.sbr2-list__pagination .oxy-repeater-pages {
  display: flex;
  gap: 5px;
  align-items: center;
}

.sbr2-list__pagination .oxy-repeater-pages .page-numbers,
.sbr2-list__pagination .oxy-repeater-pages .page-numbers:link,
.sbr2-list__pagination .oxy-repeater-pages .page-numbers:visited,
.sbr2-list__pagination .oxy-repeater-pages .page-numbers:active {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-size: 14px;
  line-height: 1;
  color: #999;
  text-decoration: none;
  border-radius: 50%;
}

.sbr2-list__pagination .oxy-repeater-pages .page-numbers.current,
.sbr2-list__pagination .oxy-repeater-pages .current.page-numbers {
  color: #000;
  font-weight: 700;
}

.sbr2-list__pagination .oxy-repeater-pages .page-numbers:hover:not(.current) {
  background-color: #f5f5f5;
  color: #333;
}

.sbr2-list__pagination .oxy-repeater-pages .page-numbers.prev,
.sbr2-list__pagination .oxy-repeater-pages .page-numbers.next {
  color: #ccc;
}

/* Responsive (≤768px) */
@media (max-width: 768px) {
  .sbr2-list {
    padding: 15px;
  }

  .sbr2-list__row--head {
    display: none;
  }

  .sbr2-list__row {
    display: block;
    padding: 15px 5px;
    text-align: left;
    position: relative;
  }

  .sbr2-list__col--num {
    display: none;
  }

  .sbr2-list__row--notice .sbr2-list__col--num {
    display: inline-block;
    margin-right: 5px;
    vertical-align: middle;
  }

  .sbr2-list__col--category {
    display: inline-block;
    color: #888;
    font-size: 12px;
    margin-right: 4px;
    width: auto;
    text-align: left;
  }

  .sbr2-list__col--title {
    display: block;
    font-size: 16px;
    margin: 8px 0;
    padding: 0;
    white-space: normal;
    line-height: 1.4;
  }

  .sbr2-list__col--author {
    display: inline-block;
    width: auto;
    margin-right: 10px;
    text-align: left;
  }

  .sbr2-list__col--author::after {
    content: "|";
    margin-left: 10px;
    color: #eee;
  }

  .sbr2-list__col--date {
    display: inline-block;
    width: auto;
  }

  .sbr2-list__row:not(.sbr2-list__row--head) .sbr2-list__col--views {
    display: inline-flex;
    align-items: center;
    width: auto;
    font-size: 12px;
    color: #999;
  }

  .sbr2-list__row:not(.sbr2-list__row--head) .sbr2-list__col--views::before {
    content: "|";
    margin: 0 10px;
    color: #eee;
  }

  .sbr2-list__views-label {
    display: inline;
    margin-right: 4px;
  }

  .sbr2-list__col--status {
    position: absolute;
    top: 15px;
    right: 0;
    width: auto;
    text-align: right;
  }

  .sbr2-list__bottom {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .sbr2-list__pagination {
    justify-content: center;
  }

  .sbr2-list__bottom .sbr2-list__write-btn {
    align-self: flex-end;
  }
}
