/* 고객센터 목록 — 게시판(GO-V 패널+테이블)과 동일 룩·너비 */

.idx-cc {
  --idx-cc-w: 1200px;
  --idx-cc-pad: 12px;
  --idx-cc-blue: #2b7de9;
  --idx-cc-border: #d0d7de;
  --idx-cc-head: #f0f3f7;
  --idx-cc-row: #ffffff;
  --idx-cc-row-alt: #fafbfc;
  --idx-cc-text: #1a1a1a;
  --idx-cc-muted: #667085;
  --idx-cc-accent: #2b7de9;
  --idx-cc-danger: #d73d3f;
  --idx-cc-del: #c62828;
  --idx-cc-status-ok: #2e7d32;
  --idx-cc-status-wait: #ef6c00;

  position: relative;
  width: 100%;
  max-width: var(--idx-cc-w);
  margin: 0 auto;
  padding: 12px var(--idx-cc-pad) 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  box-sizing: border-box;
}

.idx-page.idx-page--logged-in .idx-cc {
  max-width: var(--gov-content-w, 1200px);
  padding-left: var(--gov-content-pad, 12px);
  padding-right: var(--gov-content-pad, 12px);
}

.idx-cc__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  background: #3a4656;
  border: 1px solid #3a4656;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
}

.idx-cc__bar-icon {
  display: none;
}

.idx-cc__bar-title {
  margin: 0;
  font: 700 16px/1.2 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-cc__surface {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  background: #fff;
  border: 1px solid var(--idx-cc-border);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(15, 40, 70, 0.06);
}

.idx-cc__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 24px 12px;
  margin: 0;
  border-bottom: 1px solid #e8ecf0;
  background: #fafbfc;
}

.idx-cc__telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  background: #229ed9;
  font: 600 13px/1.35 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.idx-cc__telegram:hover {
  filter: brightness(1.05);
}

.idx-cc__telegram-img {
  display: block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  object-fit: contain;
}

.idx-cc__compose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--idx-cc-blue);
  border-radius: 4px;
  cursor: pointer;
  background: var(--idx-cc-blue);
  font: 600 13px/1.35 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #fff;
  white-space: nowrap;
}

.idx-cc__compose:hover {
  filter: brightness(1.05);
}

.idx-cc__compose-img {
  display: none;
}

.idx-cc__table-wrap {
  padding: 0;
  border-bottom: 0;
}

.idx-cc__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}

.idx-cc__caption {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.idx-cc thead {
  box-shadow: none;
}

.idx-cc thead th {
  padding: 0;
  vertical-align: middle;
}

.idx-cc__th {
  background: var(--idx-cc-head);
  border-bottom: 1px solid var(--idx-cc-border);
  font: 700 14px/1.4 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: #333;
  text-align: center;
  padding: 22px 16px;
  min-height: 64px;
  height: 64px;
}

.idx-cc__th:nth-child(1) {
  width: 48%;
  border-radius: 0;
  text-align: left;
  padding-left: 24px;
}

.idx-cc__th:nth-child(2),
.idx-cc__th:nth-child(3),
.idx-cc__th:nth-child(4) {
  width: 17.333%;
}

.idx-cc__th:last-child {
  border-radius: 0;
}

.idx-cc__tr .idx-cc__td:first-child,
.idx-cc__tr .idx-cc__td:last-child {
  border-radius: 0;
}

.idx-cc__td {
  padding: 14px 16px;
  vertical-align: middle;
  background: var(--idx-cc-row);
  border-bottom: 1px solid #e8ecf0;
  font: 400 13px/1.45 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: var(--idx-cc-text);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-cc__group:nth-child(even of .idx-cc__group) .idx-cc__tr--summary .idx-cc__td {
  background: var(--idx-cc-row-alt);
}

.idx-cc__td--subject {
  text-align: left;
  white-space: normal;
  padding-left: 24px;
  padding-right: 20px;
}

.idx-cc__subject-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: 600 13px/1.45 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: inherit;
  color: #111;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.idx-cc__subject-btn:hover {
  color: var(--idx-cc-blue);
  text-decoration: underline;
}

.idx-cc__subject-btn:focus-visible {
  outline: 2px solid var(--idx-cc-blue);
  outline-offset: 2px;
}

.idx-cc__group--open .idx-cc__subject-btn {
  font-weight: 700;
  color: var(--idx-cc-blue);
}

.idx-cc__status {
  font: 700 12px/1.35 "Noto Sans KR", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: var(--idx-cc-status-wait);
}

.idx-cc__status.is-done,
.idx-cc__status[data-status="done"],
.idx-cc__status[data-status="answered"],
.idx-cc__status[data-status="complete"] {
  color: var(--idx-cc-status-ok);
}

.idx-cc__del {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #f1c0c0;
  border-radius: 4px;
  background: #fff5f5;
  font: 600 12px/1.35 "Noto Sans KR", Helvetica, sans-serif;
  color: var(--idx-cc-del);
  cursor: pointer;
  text-decoration: none;
}

.idx-cc__del:hover {
  background: #ffe8e8;
  text-decoration: none;
}

.idx-cc__detail-cell {
  padding: 0;
  background: transparent;
  vertical-align: middle;
  white-space: normal;
  border-bottom: 1px solid #e8ecf0;
}

.idx-cc__detail {
  margin: 0;
  padding: 18px 24px 22px;
  background: #f7f9fc;
  border-radius: 0;
  border-top: 1px solid #e8ecf0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  box-sizing: border-box;
}

.idx-cc__detail-line {
  margin: 0;
  font: 400 13px/1.55 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.01px;
  color: #333;
}

.idx-cc__detail-pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.idx-cc__detail-pre--html {
  white-space: normal;
}

.idx-cc__detail-meta {
  margin: 0;
  font: 500 12px/1.45 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.01px;
  color: var(--idx-cc-accent);
}

.idx-cc__bet-ticket-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.idx-cc__bet-ticket-wrap .element-betlist.idx-cc__bet-ticket-snapshot,
.idx-cc__bet-ticket-wrap .element-betlist.idx-cc__bet-ticket-snapshot.idx-betlist--gov,
.idx-notice__thread-line--bet .element-betlist.idx-cc__bet-ticket-snapshot,
.idx-notice__thread-line--bet .element-betlist.idx-cc__bet-ticket-snapshot.idx-betlist--gov {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
  position: static;
  background-color: transparent;
}

.idx-cc__bet-ticket-wrap .element-betlist.idx-cc__bet-ticket-snapshot .bet-list,
.idx-notice__thread-line--bet .element-betlist.idx-cc__bet-ticket-snapshot .bet-list {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  overflow: visible;
}

.idx-cc__bet-ticket-wrap .element-betlist.idx-cc__bet-ticket-snapshot .bet-ticket-unit,
.idx-notice__thread-line--bet .element-betlist.idx-cc__bet-ticket-snapshot .bet-ticket-unit {
  margin-top: 0;
}

.idx-notice__thread-line--bet {
  margin-top: 12px;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

.idx-notice__thread-line--bet > .idx-cc__detail-line,
.idx-notice__thread-line--bet > .idx-cc__detail-pre,
.idx-notice__thread-line--bet > .idx-cc__detail-meta {
  text-align: left;
}

.idx-cc__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 16px 0 4px;
  padding: 0 12px;
}

.idx-cc__pager .pagination {
  display: inline-block;
  margin: 0;
  padding: 0;
  list-style: none;
  border-radius: 4px;
}

.idx-cc__pager .pagination::before,
.idx-cc__pager .pagination::after {
  content: " ";
  display: table;
}

.idx-cc__pager .pagination::after {
  clear: both;
}

.idx-cc__pager .pagination > li {
  display: inline;
}

.idx-cc__pager .pagination > li > a,
.idx-cc__pager .pagination > li > span {
  position: relative;
  float: left;
  padding: 6px 12px;
  margin-left: -1px;
  line-height: 1.42857143;
  color: #337ab7;
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #ddd;
  font: 400 14px/1.42857143 "Noto Sans KR", Helvetica, sans-serif;
  cursor: pointer;
  box-sizing: border-box;
  min-width: 36px;
  text-align: center;
}

.idx-cc__pager .pagination > li:first-child > a,
.idx-cc__pager .pagination > li:first-child > span {
  margin-left: 0;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.idx-cc__pager .pagination > li:last-child > a,
.idx-cc__pager .pagination > li:last-child > span {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

.idx-cc__pager .pagination > li > a:hover,
.idx-cc__pager .pagination > li > a:focus {
  z-index: 2;
  color: #23527c;
  background-color: #eee;
  border-color: #ddd;
}

.idx-cc__pager .pagination > li > a[aria-current="page"],
.idx-cc__pager .pagination > .active > a,
.idx-cc__pager .pagination > .active > span {
  z-index: 3;
  color: #fff;
  cursor: default;
  background-color: #337ab7;
  border-color: #337ab7;
}

.idx-cc__pager .pagination > li > a[aria-current="page"] b,
.idx-cc__pager .pagination > .active > a b {
  font-weight: 700;
  color: inherit;
}

.idx-cc__pager .pagination > .disabled > a,
.idx-cc__pager .pagination > .disabled > span {
  color: #9aa3b2;
  cursor: not-allowed;
  background-color: #f5f7fa;
  border-color: #ddd;
  pointer-events: none;
}

.idx-cc__page-current {
  display: none;
}

.idx-cc__bulk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 24px 18px;
}

.idx-cc__bulk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 320px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #e0a0a0;
  border-radius: 4px;
  cursor: pointer;
  background: #fff5f5;
  font: 600 13px/1.45 "Noto Sans KR", "Inter", Helvetica, sans-serif;
  letter-spacing: -0.02em;
  color: var(--idx-cc-danger);
}

.idx-cc__bulk-btn:hover {
  background: #ffe8e8;
}

@media (max-width: 767px) {
  .idx-cc__th:nth-child(3),
  .idx-cc__tr--summary > .idx-cc__td:nth-child(3) {
    display: none;
  }

  .idx-cc__th:nth-child(1) {
    width: 50%;
    padding-left: 16px;
  }

  .idx-cc__th:nth-child(2),
  .idx-cc__th:nth-child(4) {
    width: 25%;
  }

  .idx-cc__th {
    height: 56px;
    min-height: 56px;
    padding: 18px 12px;
    font-size: 13px;
  }

  .idx-cc__td {
    padding: 12px 12px;
    font-size: 12px;
  }

  .idx-cc__td--subject {
    padding-left: 16px;
    padding-right: 12px;
  }

  .idx-cc__td--subject,
  .idx-cc__subject-btn {
    font-size: 13px;
  }

  .idx-cc__top {
    justify-content: stretch;
    padding: 12px 16px 10px;
  }

  .idx-cc__telegram,
  .idx-cc__compose {
    flex: 1;
  }
}
