@charset "UTF-8";
/*
 * 신규 CCTV 판별정보(e-cctvNew) 전용 - 기상정보 범례 도움말.
 *
 * 도로기상관측정보(mapRoad.jsp)의 지점정보 도움말과 같은 KRDS 모달 스타일을 쓰되,
 * 내용이 적어 1000px 은 너무 넓으므로 폭만 좁혀 별도로 둔다.
 * 선택자를 전부 #cctvWeatherHelpModal / .cctv-weather-help-btn 로 한정했으므로
 * 다른 화면의 모달에는 영향이 없다.
 */

/* ── 모달 폭 ─────────────────────────────────────────── */
/*
 * 지도 화면에는 전역 border-box 리셋이 없다.
 * 그대로 두면 .modal-conts 가 padding 만큼 좌우로 넘쳐 본문 여백이 사라진다.
 */
#cctvWeatherHelpModal,
#cctvWeatherHelpModal *,
#cctvWeatherHelpModal *::before,
#cctvWeatherHelpModal *::after {
  box-sizing: border-box;
}

#cctvWeatherHelpModal .modal-dialog {
  width: 720px;
  max-width: calc(100% - 40px);
}

#cctvWeatherHelpModal .modal-conts {
  padding: 16px 32px 8px;
}

/* ── 제목 ────────────────────────────────────────────── */
/* 우상단 닫기(X) 버튼과 같은 줄에 걸리지 않도록 한 행 내린다. */
#cctvWeatherHelpModal .cctv-weather-guide {
  padding-top: 30px;
}

#cctvWeatherHelpModal .cctv-weather-guide .sub-tit {
  margin: 0 0 12px;
  padding: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
}

#cctvWeatherHelpModal .cctv-weather-guide .cctv-weather-guide-list + .sub-tit,
#cctvWeatherHelpModal .cctv-weather-guide table + .sub-tit {
  margin-top: 20px;
}

/* ── 설명 목록 ───────────────────────────────────────── */
#cctvWeatherHelpModal .cctv-weather-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

#cctvWeatherHelpModal .cctv-weather-guide-list li {
  position: relative;
  margin-bottom: 6px;
  padding-left: 14px;
  color: #222222;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

#cctvWeatherHelpModal .cctv-weather-guide-list li:last-child {
  margin-bottom: 0;
}

#cctvWeatherHelpModal .cctv-weather-guide-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 5px;
  height: 1px;
  background: #555555;
}

/* ── 판별정보 표 ─────────────────────────────────────── */
#cctvWeatherHelpModal .cctv-weather-guide table {
  width: 100%;
  table-layout: fixed;
}

#cctvWeatherHelpModal .cctv-weather-guide th,
#cctvWeatherHelpModal .cctv-weather-guide td {
  overflow-wrap: anywhere;
  white-space: normal;
  text-align: center;
  vertical-align: middle;
}

#cctvWeatherHelpModal .cctv-weather-guide td img {
  display: inline-block;
  width: 28px;
  height: auto;
}

/* 지도 위에서 열리므로 지점정보 도움말과 같이 배경 딤을 쓰지 않는다. */
#cctvWeatherHelpModal .modal-back {
  display: none !important;
}

/* ── 범례 제목 옆 도움말 버튼 ────────────────────────── */
.cctv-weather-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 0;
  cursor: pointer;
}

.cctv-weather-help-btn img {
  display: block;
}

/* 기상정보 범례 제목을 도움말 아이콘과 같은 줄에 맞춘다. */
.cctv-new-weather-panel .map-panel-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── 모바일: 한 화면에 들어가도록 여백 축소 ──────────── */
/*
 * 기본 여백은 PC 기준이라 모바일에서는 내용보다 빈 공간이 커져
 * 스크롤해야 닫기 버튼이 보였다. 글자 크기는 그대로 두고 여백만 줄인다.
 */
@media (max-width: 768px) {
  #cctvWeatherHelpModal .modal-dialog {
    max-width: calc(100% - 24px);
  }

  #cctvWeatherHelpModal .modal-conts {
    padding: 8px 12px 4px;
  }

  /* 우상단 닫기(X) 와 겹치지 않을 만큼만 남긴다. */
  #cctvWeatherHelpModal .cctv-weather-guide {
    padding-top: 14px;
  }

  #cctvWeatherHelpModal .cctv-weather-guide .sub-tit {
    margin: 0 0 6px;
    padding: 0 0 6px;
    font-size: 17px;
  }

  #cctvWeatherHelpModal .cctv-weather-guide .cctv-weather-guide-list + .sub-tit,
  #cctvWeatherHelpModal .cctv-weather-guide table + .sub-tit {
    margin-top: 12px;
  }

  #cctvWeatherHelpModal .cctv-weather-guide-list li {
    margin-bottom: 4px;
    line-height: 1.45;
  }

  #cctvWeatherHelpModal .cctv-weather-guide-list li::before {
    top: 10px;
  }

  /*
   * 판별정보 표가 가로로 잘려 스크롤해야 아이콘이 다 보였다.
   * KRDS 표 기본값인 min-width(5열 x 146px = 732px)를 풀고
   * 셀 여백·글자·아이콘을 줄여 5열이 한 화면에 들어가게 한다.
   * PC(769px 이상)는 기존 표 그대로다.
   */
  #cctvWeatherHelpModal .krds-table-wrap {
    overflow-x: visible;
  }

  #cctvWeatherHelpModal .cctv-weather-guide table {
    min-width: 0;
    width: 100%;
  }

  /*
   * 셀 좌우 여백을 없애 아이콘에 쓸 폭을 최대한 확보한다.
   * 표 전체 폭은 그대로라 가로 스크롤은 생기지 않고, 세로만 조금 길어진다.
   */
  #cctvWeatherHelpModal .cctv-weather-guide th,
  #cctvWeatherHelpModal .cctv-weather-guide td {
    padding: 6px 0;
    font-size: 12px;
    line-height: 1.3;
    word-break: keep-all;
  }

  #cctvWeatherHelpModal .cctv-weather-guide td {
    padding: 10px 0;
  }

  /* 아이콘은 셀 폭에 맞춰 키우되 상한을 둬 너무 커지지 않게 한다. */
  #cctvWeatherHelpModal .cctv-weather-guide td img {
    width: 100%;
    max-width: 46px;
    min-width: 32px;
  }

  /* 닫기 버튼 영역이 88px 을 차지하고 있었다. */
  #cctvWeatherHelpModal .modal-btn,
  #cctvWeatherHelpModal .btn-wrap {
    padding-top: 8px;
    padding-bottom: 12px;
  }
}
