/* 고객센터 문의 목록 — 37_Callcenter_1 .board-list-2 만 참고, .idx-cc 로 스코프 */

.idx-cc {
  position: relative;
  --idx-cc-bar: var(--bg-bar, #272a31);
  --idx-cc-surface: var(--bg-bar, #272a31);
  --idx-cc-head: #212328;
  --idx-cc-cell: #3b3f46;
  --idx-cc-detail: var(--bg-panel, #303338);
  --idx-cc-muted: var(--text-soft, #99a1af);
  --idx-cc-body: var(--text-body, #d1d5dc);
  --idx-cc-accent: #eeff00;
  --idx-cc-danger: #d73d3f;
  --idx-cc-del: #ff4e00;
  width: 100%;
  max-width: 1550px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
}

.idx-cc__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 10px 20px;
  background-color: var(--idx-cc-bar);
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
}

.idx-cc__bar-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  object-fit: contain;
}

.idx-cc__bar-title {
  margin: 0;
  font: 600 16px/1.2 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.08px;
  color: var(--text, #fff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-cc__surface {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 10px;
  background-color: var(--idx-cc-surface);
  border-radius: var(--radius-md, 16px);
  overflow: hidden;
}

.idx-cc__top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 10px;
  margin-bottom: 4px;
}

.idx-cc__telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 15px;
  border-radius: 10px;
  text-decoration: none;
  background: linear-gradient(90deg, rgba(17, 163, 198, 1) 0%, rgba(17, 158, 192, 1) 100%);
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #fff;
  white-space: nowrap;
}

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

.idx-cc__compose {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: var(--idx-cc-detail);
  font: 600 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: var(--idx-cc-body);
  white-space: nowrap;
}

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

.idx-cc__table-wrap {
  padding: 5px 0 10px;
  border-bottom: 1px solid #282828;
}

.idx-cc__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 2px 4px;
  table-layout: fixed;
}

.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: 0 1px 0 #282828;
}

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

.idx-cc__th {
  background-color: var(--idx-cc-head);
  font: 400 10px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.05px;
  color: var(--idx-cc-muted);
  text-align: center;
  font-weight: 400;
  padding: 4px 12px;
  min-height: 30px;
}

.idx-cc__th:nth-child(1) {
  width: 40%;
  border-radius: 5px 0 0 5px;
}

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

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

.idx-cc__td {
  padding: 8px 6px;
  vertical-align: middle;
  background-color: var(--idx-cc-cell);
  font: 400 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: var(--text, #fff);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.idx-cc__tr .idx-cc__td:first-child {
  border-radius: 5px 0 0 5px;
}

.idx-cc__tr .idx-cc__td:last-child {
  border-radius: 0 5px 5px 0;
}

.idx-cc__td--subject {
  text-align: left;
}

.idx-cc__subject-btn {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  color: inherit;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
}

.idx-cc__subject-btn:hover {
  text-decoration: underline;
}

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

.idx-cc__group--open .idx-cc__subject-btn {
  font-weight: 600;
}

.idx-cc__status {
  font: 400 10px/1.45 var(--font-kr, "Noto Sans KR", Helvetica, sans-serif);
  letter-spacing: -0.05px;
}

.idx-cc__del {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: var(--idx-cc-del);
  cursor: pointer;
  text-decoration: none;
}

.idx-cc__del:hover {
  text-decoration: underline;
}

.idx-cc__detail-cell {
  padding: 0;
  background: transparent;
  vertical-align: middle;
  white-space: normal;
}

.idx-cc__detail {
  margin: 0;
  padding: 10px 20px;
  background-color: var(--idx-cc-detail);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  box-sizing: border-box;
}

.idx-cc__detail-line {
  margin: 0;
  font: 400 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.01px;
  color: var(--text, #fff);
}

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

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

/* 베팅내역 문의 — 티켓 카드 HTML 스냅샷 (idx-em-betlist.css 와 함께) */
.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 {
  width: 100%;
  pointer-events: none;
  position: static;
  background-color: transparent;
}

.idx-cc__bet-ticket-wrap .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 {
  margin-top: 0;
}

.idx-cc__pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 20px;
  margin-top: 6px;
}

.idx-cc__page-current {
  font: 600 14px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.07px;
  color: var(--idx-cc-accent);
}

.idx-cc__bulk {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}

.idx-cc__bulk-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  min-height: 36px;
  padding: 0 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background-color: var(--idx-cc-danger);
  font: 500 12px/1.45 var(--font-sans, "Inter", Helvetica, sans-serif);
  letter-spacing: -0.06px;
  color: #fff;
}

.idx-cc__bulk-btn:hover {
  filter: brightness(1.06);
}

@media (max-width: 520px) {
  .idx-cc__th,
  .idx-cc__td {
    padding-inline: 6px;
    font-size: 10px;
  }

  .idx-cc__td--subject {
    font-size: 11px;
  }
}
