@charset "utf-8";

:root {
  --ksr-primary: #004cb0;
  --ksr-border: #d1e2f7;
  --ksr-head: #f7fbff;
}

.ksr-wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.contentBlock {
  padding: 0;
  border: 0;
  background: transparent;
}

.ksr-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px 0;
}

.ksr-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--ksr-primary);
  color: var(--ksr-primary);
  text-decoration: none;
  font-size: 14px;
}

.ksr-nav a:hover,
.ksr-nav a.is-on {
  background: var(--ksr-primary);
  color: #fff;
}

.ksr-card {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.ksr-card + .ksr-card {
  margin-top: 12px;
}

.ksr-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ksr-table th,
.ksr-table td {
  border: 1px solid var(--ksr-border);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  vertical-align: middle;
}

.ksr-table th {
  background: var(--ksr-head);
  text-align: center;
  white-space: nowrap;
  font-weight: 600;
}

.ksr-table td label {
  display: inline-flex;
  align-items: center;
  margin-right: 14px;
  margin-bottom: 6px;
  gap: 4px;
}

/* 목록 컬럼 */
.ksr-table .col-num {
  width: 72px;
  text-align: center;
}

.ksr-table .col-title {
  text-align: left;
}

.ksr-table .col-date {
  width: 210px;
  text-align: center;
  white-space: nowrap;
}

.ksr-table .col-count {
  width: 90px;
  text-align: center;
}

.ksr-table .col-status {
  width: 110px;
  text-align: center;
}

.ksr-table .col-title a {
  color: #222;
  text-decoration: none;
}

.ksr-table .col-title a:hover {
  color: var(--ksr-primary);
  text-decoration: underline;
}

/* 상세 보기 */
.ksr-table.is-view th {
  width: 160px;
  text-align: center;
}

.ksr-table.is-view td.is-center,
.ksr-wrap .ksr-table.is-view tbody td.is-center {
  text-align: center !important;
}

.ksr-cell-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.ksr-table.is-view td.is-desc {
  text-align: left;
  line-height: 1.75;
}

.ksr-table.is-view #writeContents table {
  width: 100%;
  max-width: 640px;
  margin: 12px 0;
  border-collapse: collapse;
}

.ksr-table.is-view #writeContents table th,
.ksr-table.is-view #writeContents table td {
  border: 1px solid var(--ksr-border);
  padding: 8px 10px;
  font-size: 13px;
  text-align: center;
  background: #fff;
}

.ksr-table.is-view #writeContents table th {
  background: var(--ksr-head);
  font-weight: 600;
}

/* 상태 배지 */
.ksr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.ksr-badge.is-open {
  background: #e6f7ed;
  color: #1a7f4b;
}

.ksr-badge.is-closed {
  background: #edf2f7;
  color: #718096;
}

.ksr-badge.is-default {
  background: #ebf4ff;
  color: #2b6cb0;
}

.ksr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.ksr-btn,
input.ksr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--ksr-primary);
  background: #fff;
  color: var(--ksr-primary);
  text-decoration: none;
  font-size: 14px;
  cursor: pointer;
}

.ksr-btn:hover,
input.ksr-btn:hover,
.ksr-btn.is-primary,
input.ksr-btn.is-primary {
  background: var(--ksr-primary);
  color: #fff;
}

.ksr-page {
  margin-top: 20px;
  text-align: center;
}

.ksr-page a,
.ksr-page b,
.ksr-page span {
  display: inline-block;
  min-width: 32px;
  line-height: 32px;
  border: 1px solid var(--ksr-border);
  border-radius: 6px;
  margin: 0 2px;
  text-decoration: none;
  color: #333;
  font-size: 13px;
}

.ksr-page b span {
  background: var(--ksr-primary);
  color: #fff !important;
  border-radius: 6px;
}

@media (max-width: 768px) {
  .ksr-wrap {
    padding: 0 10px;
  }

  .ksr-table {
    table-layout: auto;
  }

  .ksr-table th,
  .ksr-table td {
    font-size: 13px;
    padding: 10px 8px;
  }

  .ksr-table th {
    white-space: normal;
  }

  .ksr-table .col-date {
    width: auto;
    white-space: normal;
  }
}

/* 심사위원 목록 */
.ksr-table.is-examer-list .col-num {
  width: 72px;
  text-align: center;
}

.ksr-table.is-examer-list .col-id {
  width: 22%;
  text-align: center;
}

.ksr-table.is-examer-list .col-name {
  width: 18%;
  text-align: center;
}

.ksr-table.is-examer-list .col-affil {
  text-align: center;
}
