/* 시간표 이미지 대체 화면 (image-fallback.js) — 팝업 / 관리자 화면 공용
   색은 각 화면의 토큰을 쓰고, 없으면 기본값으로. */

.img-fallback {
  display: none;
}

.img-broken > img {
  display: none !important;
}

.img-broken > .img-fallback {
  display: flex;
}

.img-fallback {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  overflow: hidden;
  text-align: center;
  color: var(--text-3, #6f717a);
  /* 은은한 사선 무늬 + 가운데 빛 — 빈 검은 상자 대신 '자리 표시'로 읽히게 */
  background:
    radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, 0.05), transparent 65%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 8px, transparent 8px 16px),
    var(--surface-2, #1f2024);
}

.img-fallback-fill {
  position: absolute;
  inset: 0;
  padding-bottom: 32px; /* 썸네일 아래 겹쳐 놓이는 배지(주차 등)와 글자가 닿지 않게 */
}

.img-fallback-block {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.img-fallback-icon {
  position: absolute;
  inset: 0;
  padding: 0;
}

.img-fallback-ic {
  width: 28px;
  height: 28px;
  flex: none;
  padding: 8px;
  box-sizing: content-box;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2, #a4a6ae);
}

.img-fallback-icon .img-fallback-ic {
  width: 16px;
  height: 16px;
  padding: 4px;
}

.img-fallback-block .img-fallback-ic {
  width: 34px;
  height: 34px;
  padding: 11px;
}

.img-fallback-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2, #a4a6ae);
}

.img-fallback-block .img-fallback-title {
  font-size: 14px;
}

.img-fallback-detail {
  max-width: 100%;
  font-size: 11px;
  font-family: ui-monospace, Consolas, monospace;
  color: var(--text-3, #6f717a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.img-fallback-block .img-fallback-detail {
  font-family: inherit;
  font-size: 12px;
  white-space: normal;
}
