@charset "utf-8";
/* =========================================================
   DA&E 콘텐츠 어워드 — css/vote-admin.css  (vote-admin.html 전용)
   ▶ 현장 투표 집계 화면. css/style.css 토큰과 css/admin.css 의
     게이트·콘솔 레이아웃(.admin_gate · .admin_app · .abtn)을 재사용하고,
     이 파일은 '집계' 전용 부분만 담습니다.
   ========================================================= */

/* =========================================================
   1. 요약 카드
   ========================================================= */
.va_stats {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(172px, 1fr)); gap: 12px;
}
.va_card {
  padding: 17px 18px 15px; border-radius: 15px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.va_card.is_key {
  background: linear-gradient(120deg, rgba(0, 208, 255, 0.09), rgba(126, 91, 230, 0.09));
}
.va_k {
  font-size: 0.75rem; font-weight: 800; color: var(--ink-3); word-break: keep-all;
}
.va_v {
  margin-top: 8px; font-size: 1.62rem; font-weight: 800;
  letter-spacing: -0.035em; color: var(--ink); line-height: 1.1;
}
.va_v small { margin-left: 2px; font-size: 0.82rem; font-weight: 700; color: var(--gray); }
.va_m { margin-top: 6px; font-size: 0.76rem; color: var(--gray); word-break: keep-all; }

/* =========================================================
   2. 섹션
   ========================================================= */
.va_sec { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.va_head {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: flex-end; justify-content: space-between;
}
.va_head h2 {
  font-size: 1.14rem; font-weight: 800; letter-spacing: -0.03em;
  color: var(--ink); word-break: keep-all;
}
.va_sub {
  margin-top: 7px; font-size: 0.84rem; line-height: 1.6;
  color: var(--ink-3); word-break: keep-all;
}
.va_sort {
  padding: 11px 14px; border: none; border-radius: 12px;
  background: #fff; box-shadow: inset 0 0 0 1px var(--line);
  font-family: inherit; font-size: 0.86rem; font-weight: 700;
  color: var(--ink); cursor: pointer; word-break: keep-all;
}
.va_sort:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue-b); }

/* =========================================================
   3. 부문별 득표 카드
   ========================================================= */
.va_cats {
  margin-top: 18px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px;
}
.va_cat {
  padding: 18px 18px 16px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
}
.va_cat_top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.va_cat_name {
  font-size: 0.98rem; font-weight: 800; letter-spacing: -0.025em;
  color: var(--ink); word-break: keep-all;
}
.va_cat_sum { font-size: 0.76rem; font-weight: 700; color: var(--gray); white-space: nowrap; }

.va_bars { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.va_bar_row {
  display: grid; grid-template-columns: 24px 1fr 62px;
  gap: 10px; align-items: center;
}
.va_bar_n {
  font-size: 0.76rem; font-weight: 800; color: var(--gray); text-align: right;
}
.va_bar_mid { min-width: 0; }
.va_bar_t {
  display: block; font-size: 0.81rem; font-weight: 700; color: var(--ink-2);
  letter-spacing: -0.015em; line-height: 1.42; word-break: keep-all;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.va_bar_track {
  margin-top: 5px; height: 9px; border-radius: 100px;
  background: #eef1f5; overflow: hidden;
}
.va_bar_fill {
  display: block; height: 100%; border-radius: 100px;
  background: var(--brand);
  transition: width 0.4s var(--ease);
}
.va_bar_row.is_lead .va_bar_fill { background: linear-gradient(120deg, #f7d774, #e0b03a); }
.va_bar_row.is_lead .va_bar_n { color: var(--ink); }
.va_bar_row.is_zero .va_bar_t { color: var(--gray); }
.va_bar_cnt {
  text-align: right; font-size: 0.9rem; font-weight: 800; color: var(--ink);
  white-space: nowrap;
}
.va_bar_cnt small { font-size: 0.72rem; font-weight: 700; color: var(--gray); }

/* =========================================================
   4. 최종 합산 표
   ========================================================= */
.va_final {
  margin-top: 18px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px;
}
.va_ftable {
  border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
}
.va_ftable_h {
  padding: 15px 17px; background: #f7f9fb;
  box-shadow: inset 0 -1px 0 var(--line);
  font-size: 0.88rem; font-weight: 800; color: var(--ink);
  word-break: keep-all;
}
.va_scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.va_table { width: 100%; border-collapse: collapse; font-size: 0.83rem; min-width: 380px; }
.va_table thead th {
  padding: 10px 10px; text-align: left; white-space: nowrap;
  font-size: 0.71rem; font-weight: 800; color: var(--ink-3);
  background: #fcfdfe; box-shadow: inset 0 -1px 0 var(--line);
  word-break: keep-all;
}
.va_table tbody td {
  padding: 11px 10px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); vertical-align: middle;
}
.va_table tbody tr:last-child td { border-bottom: none; }
.va_table .t_rk { width: 40px; text-align: center; }
.va_table .t_rk b { font-size: 0.92rem; font-weight: 800; color: var(--ink-3); }
.va_table .t_title { min-width: 168px; }
.va_table .t_title b {
  display: block; font-size: 0.83rem; font-weight: 800; color: var(--ink);
  line-height: 1.45; letter-spacing: -0.02em; word-break: keep-all;
}
.va_table .t_title span { display: block; margin-top: 2px; font-size: 0.72rem; color: var(--gray); }
.va_table .t_num { text-align: right; width: 62px; white-space: nowrap; }
.va_table .t_num b { font-weight: 800; color: var(--ink); }
.va_table .t_fin { text-align: right; width: 66px; white-space: nowrap; }
.va_table .t_fin b { font-size: 0.95rem; font-weight: 800; color: var(--blue); }

.va_table tr.is_top td { background: rgba(247, 215, 116, 0.1); }
.va_table tr.is_top .t_rk b { color: #b8860b; }

/* =========================================================
   4-1. 총괄 집계 — 투표점수(등급컷) 열
   ---------------------------------------------------------
   ▶ 6열(순위·작품·심사·득표·투표점수·총괄)이라 두 칸씩 나란히 두면
     마지막 '총괄' 열이 잘립니다. 부문별 표를 한 줄에 하나씩(전체 폭) 놓습니다.
   ========================================================= */
.va_sumgrid { grid-template-columns: 1fr; }

.va_sumtable { min-width: 0; table-layout: fixed; }
.va_sumtable .t_rk { width: 48px; }
.va_sumtable .t_title { width: auto; min-width: 0; }
.va_sumtable .t_num { width: 64px; }
.va_sumtable .t_mid { width: 92px; text-align: right; white-space: nowrap; }
.va_sumtable .t_fin { width: 82px; }
.va_sumtable .t_fin b { font-size: 0.98rem; }

/* 투표점수 칩 — 기본(넓은 화면) 크기. 좁은 화면 값은 아래 미디어쿼리에서
   덮어쓰므로 **기본 규칙을 미디어쿼리보다 먼저** 둡니다. */
.va_grade {
  display: inline-block; min-width: 44px;
  padding: 3px 8px; border-radius: 8px;
  background: var(--brand-soft); color: var(--blue);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem; font-weight: 800; text-align: center;
  letter-spacing: -0.01em;
}
.va_grade.is_first {
  background: linear-gradient(120deg, #f7d774, #e0b03a); color: #6b4b00;
  box-shadow: 0 3px 8px rgba(224, 176, 58, 0.3);
}
.va_grade.is_zero {
  background: #eef1f5; color: #b0b8c1;
}
.va_grade_r {
  display: block; margin-top: 3px;
  font-size: 0.66rem; font-weight: 700; color: var(--gray);
}

/* 좁은 화면 — 6열이 390px 안에 다 들어오도록 여백·글자를 줄입니다.
   (가로 스크롤로 '총괄' 열이 가려지면 안 되므로 표 자체를 줄입니다.) */
@media screen and (max-width: 560px) {
  .va_sumtable { min-width: 0; table-layout: fixed; font-size: 0.78rem; }
  .va_sumtable thead th { padding: 8px 4px; font-size: 0.64rem; letter-spacing: -0.03em; }
  .va_sumtable tbody td { padding: 9px 4px; }
  .va_sumtable .t_rk { width: 26px; }
  .va_sumtable .t_title { width: auto; min-width: 0; }
  .va_sumtable .t_title b { font-size: 0.78rem; line-height: 1.4; }
  .va_sumtable .t_title span { font-size: 0.66rem; }
  .va_sumtable .t_num { width: 42px; }
  .va_sumtable .t_mid { width: 62px; }
  .va_sumtable .t_fin { width: 56px; }
  .va_sumtable .t_fin b { font-size: 0.86rem; }
  .va_grade {
    min-width: 0; padding: 2px 5px; border-radius: 6px;
    font-size: 0.72rem; letter-spacing: -0.03em;
  }
  .va_grade_r { margin-top: 2px; font-size: 0.58rem; }
}


.va_note {
  margin-top: 16px; padding: 14px 16px; border-radius: 14px;
  background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.79rem; line-height: 1.75; color: var(--ink-3); word-break: keep-all;
}
.va_note i { margin-right: 5px; color: var(--blue-b); }
.va_note b { color: var(--ink-2); font-weight: 800; }

/* =========================================================
   5. 참여 명찰 그리드
   ========================================================= */
.va_badges {
  margin-top: 18px; padding: 16px; border-radius: 16px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px;
}
.va_bd {
  display: grid; place-items: center;
  min-height: 34px; border-radius: 8px; background: #eef1f5;
  font-family: 'Montserrat', sans-serif; font-size: 0.72rem; font-weight: 800;
  color: #b0b8c1; letter-spacing: 0.01em;
}
.va_bd.is_on {
  background: linear-gradient(120deg, #00d0ff, #0074e0);
  color: #fff; box-shadow: 0 4px 10px rgba(0, 116, 224, 0.22);
}
.va_bd.is_part {
  background: rgba(178, 106, 0, 0.14); color: #b26a00;
}

/* =========================================================
   6. 반응형
   ========================================================= */
@media screen and (max-width: 900px) {
  .va_head { align-items: stretch; }
  .va_head .va_sort { width: 100%; }
  .va_cats, .va_final { grid-template-columns: 1fr; }
}

@media screen and (max-width: 640px) {
  .admin_app { padding: 22px 16px 64px; }
  .va_stats { grid-template-columns: 1fr 1fr; }
  .va_v { font-size: 1.36rem; }
  .va_bar_row { grid-template-columns: 20px 1fr 54px; }
  .va_badges { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 5px; }
  .va_bd { min-height: 30px; font-size: 0.66rem; }
}
