/* =========================================================
   사이트 공통 추가 스타일 (DDA)
   - 파일 첨부 미리보기 썸네일 크기 제한
   - Flash 메시지 (CSP 안전 — 외부 CSS, 인라인 style 미사용)
   ========================================================= */

/* ── 파일 미리보기 썸네일 (출품/RFP 예시 이미지) ── */
.image-preview { gap: 8px; }
.exh-preview-img {
  width: 150px;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  display: inline-block;
  vertical-align: top;
}
.exh-preview-name {
  display: inline-block;
  padding: 6px 10px;
  margin: 0 8px 8px 0;
  background: #f5f5f5;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  font-size: 13px;
  color: #444;
}

/* ── Flash 메시지 ── */
.site-flash-list {
  margin: 16px auto;
  padding: 0px;
}
/* main 레이아웃에서는 flash 가 body 직속 자식 → 고정 헤더 높이만큼 내려준다.
   sub 레이아웃은 .sub-body 안에 위치하므로 영향 없음. */
body > .site-flash-list {
  margin-top: 110px;
}
.site-flash {
  padding: 14px 18px;
  margin-bottom: 8px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}
.site-flash.success { background: #e7f6ec; color: #1e7d3a; border: 1px solid #b7e1c4; }
.site-flash.error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }
.site-flash.info    { background: #e7f1fb; color: #1a5fb4; border: 1px solid #b6d4f4; }
.site-flash.warning { background: #fff8e1; color: #8a6d00; border: 1px solid #f7e1a0; }

/* 수상작 작품집 디자인은 sub_contents.css(.award-card / .collcetion_l 등)로 관리 */
/* 작품 파일 매니저 스타일은 file-manager.css 로 분리(사이트+관리자 공용) */

/* ── 심사위원 대시보드/목록 보조 ── */
.exh-thumb-sm { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; border: 1px solid #e5e5e5; }
/* 점수 입력 화면 작품 이미지(새창 링크) */
.exh-work-images { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.exh-work-img { width: 180px; height: 180px; object-fit: cover; border: 1px solid #e5e5e5; border-radius: 6px; cursor: zoom-in; transition: opacity .15s ease; }
.exh-work-img:hover { opacity: .85; }
/* 기업부문 RFP 참고 박스 */
.exh-rfp-box { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 10px 14px; background: #f3f7fb; border: 1px solid #d6e4f0; border-radius: 6px; font-size: 14px; }
.exh-rfp-link { display: inline-flex; align-items: center; gap: 2px; color: #1a5fb4; font-weight: 600; text-decoration: none; }
.exh-rfp-link:hover { text-decoration: underline; }
.exh-rfp-link .material-symbols-outlined { font-size: 18px; }
.exh-anon-no { font-family: 'Courier New', monospace; font-weight: 600; letter-spacing: .02em; }
.btn-submission.btn-sm { padding: 6px 16px; font-size: 13px; min-width: auto; }
.btn-submission.is-disabled { opacity: .45; pointer-events: none; cursor: not-allowed; }

/* ── 수상작보기: 회차 스테퍼 ── */
.award-round-stepper {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 8px 0 22px;
}
.award-round-nav {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; min-width: 40px; border-radius: 50%;
  border: 1px solid #ccc; color: #333; font-size: 24px; line-height: 1;
  text-decoration: none; background: #fff; transition: all .15s ease;
}
.award-round-nav:hover { background: #111; color: #fff; border-color: #111; }
.award-round-nav.is-disabled { opacity: .3; pointer-events: none; }
.award-round-cur {
  font-size: 22px; font-weight: 700; color: #111; min-width: 180px; text-align: center;display: inline-flex;  align-items: center;justify-content: center;
}
.award-round-cur .award-round-badge {
  display: inline-block; margin-left: 8px; padding: 4px 10px; border-radius: 12px;
  font-size: 12px; font-weight: 600; font-style: normal; color: #fff; background: #2e7d32; vertical-align: middle;
}

/* ── 수상작보기: 상(award-badge) 색상 ── */
.award-badge--grand    { background: rgb(231 66 0 / 84%) !important; border-color: rgb(255 103 45 / 94%) !important ;} /* 그랑프리 */
.award-badge--gold     { background: rgb(223 177 11 / 86%) !important; border-color: rgb(239 188 0 / 83%) !important; ;} /* 골드 */
.award-badge--silver     {  background:linear-gradient(170deg, rgb(215 223 237 / 93%) 20%, rgb(60 60 61 / 88%) 100%) !important; border-color: rgb(125 130 141 / 89%) !important;} /* 실버 */
.award-badge--bronze     { background: rgb(185 100 16 / 88%) !important;  border-color: rgb(200 137 22 / 88%) !important; } /* 브론즈 */
.award-badge--innovation { background: rgb(96 110 209 / 88%) !important; border-color: rgb(129 144 255 / 88%) !important; } /* 이노베이션 */
.award-badge--finalist   { background:rgb(16 185 129 / 89%) !important;    border-color: rgb(31 214 153 / 89%) !important;} /* 파이널리스트 */
.award-badge--selection  { background: #61a33feb !important;     border-color: #6eb62deb !important;} /* 셀렉션 */
.award-badge--default    { background: rgb(113 62 62 / 90%) !important;     border-color: rgb(146 94 94 / 90%) !important; }
