/* 대시보드 전용 스타일 (style.css 와 겹치지 않게 .dash- 접두사만 사용) */

.dash {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

/* ---------- 기간 탭 ---------- */

.dash-tabs {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 2px;
}

.dash-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  padding: 5px 13px;
  border-radius: 999px;
  cursor: pointer;
}
.dash-tab.is-on {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

/* ---------- 선정 건수 / 금액 ---------- */

.dash-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.dash-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.dash-stat-label {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-stat-value {
  font-family: Georgia, "Noto Serif KR", "Nanum Myeongjo", serif;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.dash-stat-value.money { font-size: 18px; }
.dash-stat-value .unit {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 2px;
}

.dash-stat-hint { font-size: 11px; color: var(--muted); }

/* ---------- 진행률 ---------- */

.dash-rates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 13px;
}

.dash-rate { min-width: 0; }

/* 퍼센트를 라벨 바로 옆에 붙여둡니다. 양끝 정렬하면 옆 칸 라벨과 붙어 보입니다. */
.dash-rate-head {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.dash-rate-label { font-size: 11.5px; color: var(--muted); }

.dash-rate-value {
  font-family: Georgia, "Noto Serif KR", "Nanum Myeongjo", serif;
  font-size: 15px;
  font-weight: 600;
}

.dash-bar {
  margin-top: 5px;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.dash-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--muted);
  transition: width 0.25s ease;
}
.dash-bar i.tone-info { background: var(--info); }
.dash-bar i.tone-ok { background: var(--ok); }
.dash-bar i.tone-danger { background: var(--danger); }

.dash-rate-detail { margin-top: 4px; font-size: 10.5px; color: var(--muted); }

/* 예약율 분모에서 뺀 건수를 밝히는 줄 */
.dash-rates-note {
  margin: -4px 2px 0;
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* ---------- 미예약 ---------- */

.dash-unreserved {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: var(--accent-soft);
  border: 1px solid #e0cbc0;
  border-radius: 10px;
  padding: 11px 30px 11px 13px;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
}
.dash-unreserved:hover { border-color: var(--accent); }

.dash-unreserved-label {
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-unreserved-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-unreserved-value strong {
  font-family: Georgia, "Noto Serif KR", "Nanum Myeongjo", serif;
  font-size: 19px;
  font-weight: 600;
}
.dash-unreserved-value .money { font-size: 13px; color: var(--accent); }

.dash-unreserved-hint { font-size: 11px; color: var(--muted); }

.dash-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  color: var(--accent);
}
.dash-chevron svg { width: 18px; height: 18px; }

/* ---------- 임박 목록 ---------- */

.dash-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px 12px;
}

.dash-block h3 {
  margin: 0 0 6px;
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dash-count {
  display: inline-block;
  margin-left: 4px;
  color: var(--ink);
  font-size: 11px;
}
.dash-count.is-urgent { color: var(--danger); font-weight: 700; }

.dash-empty {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.dash-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.dash-items li + li { border-top: 1px solid var(--border); }

/* 한 줄 = 체험단명 | 마감일 D+n  (행을 낮게 유지) */
.dash-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 5px 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.dash-item:hover .dash-item-name { text-decoration: underline; }

.dash-item-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 마감일과 D 표기를 나란히 */
.dash-item-when {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-shrink: 0;
}

.dash-date {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}

.dash-dday {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dash-dday.is-urgent { color: var(--danger); font-weight: 600; }

.dash-more {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 6px;
  border: 0;
  background: transparent;
  padding: 3px 0;
  font-family: inherit;
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
}
.dash-more:hover { color: var(--ink); }

/* 대시보드 안의 인라인 아이콘 (style.css 의 .icon-btn svg 와 같은 모양) */
.dash-more svg, .dash-chevron svg, .dash-all-link svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.dash-more svg { width: 14px; height: 14px; }

/* ---------- 전체 목록으로 가는 링크 ---------- */

.dash-all-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}
.dash-all-link:hover { border-color: var(--ink); }
.dash-all-link svg { width: 15px; height: 15px; color: var(--muted); }

/* ---------- 좁은 화면 ---------- */

@media (max-width: 400px) {
  .dash-rates { padding: 11px 10px; gap: 7px; }
  .dash-rate-label { font-size: 11px; }
  .dash-stat-value { font-size: 21px; }
  .dash-stat-value.money { font-size: 16px; }
}
