/* @import url(http://fonts.googleapis.com/css?family=Open+Sans:400);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:600);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:700);
@import url(http://fonts.googleapis.com/css?family=Open+Sans:300italic);
@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:400);
@import url(http://fonts.googleapis.com/css?family=Roboto+Condensed:300); */

/* body {
  font: 300 14px/20px 'Noto Sans KR', sans-serif;
  background-color: #fff;
} */

/* section {
  min-height: 600px;
} */

/* a {
  color: #f27364;
}

a:hover,
a:focus {
  color: #f26a5a;
}

h1 {
  color: #f26a5a;
} */

.hm-video-bar-option {
  padding: 10px;
  overflow: hidden;
}

.hm-video-bar-option a {
  margin: 5px;
  float: right;
  font-size: 20px;
  color: #ff8b00;
}

.hm-video-bar-option a.disabled {
  color: #eda655;
  cursor: not-allowed;
}

.hm-video-bar {
  position: relative;
  margin: 10px 0 0 0;
  border: 1px solid #ddd;
  background-color: #f5f5f5;
  overflow: hidden;
  box-shadow: 0 5px 5px rgba(150, 150, 150, 0.15);
}

.hm-video {
  padding: 5px;
  border-right: 1px solid #dadada;
  width: 200px;
  min-height: 115px;
  float: left;
}

.hm-video img {
  width: 100%;
}

.hm-details {
  float: left;
}

.hm-details h4,
.hm-details em {
  padding-left: 5px;
}

.hm-options {
  overflow: hidden;
  padding: 5px;
  position: absolute;
  bottom: 0;
  right: 0;
}

.hm-sqr {
  padding: 5px;
  border: 1px solid #dadada;
  background-color: #fbfbfb;
  float: right;
  text-align: center;
  border-radius: 5px;
  width: 100px;
  margin-left: 3px;
}

.hm-sqr p {
  font-size: 20px;
}

.hm-sqr a {
  cursor: pointer;
}

.hm-sqr span {
  font-size: 12px;
}

.hm-video-map {
  display: none;
  padding: 10px;
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-top: 0 none;
}

/* heat map*/
/* .heat-map {
  margin-top: 10px;
  padding: 30px 50px;
} */

/* .heat-map-row {
  height: 120px;
  padding-bottom: 10px;
} */

.heat-map-row .cols {
  clear: both;
  float: left;
  /* margin: 10px 0; */
  width: 100%;
  height: 35px;
  border: 1px solid #ddd;
  position: relative;
  /* -webkit-box-shadow: 2px -9px 50px -13px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px -9px 50px -13px rgba(0, 0, 0, 0.75);
  box-shadow: 2px -9px 50px -13px rgba(0, 0, 0, 0.75); */
}

.timeline-heatmap {
  position: relative; /* ✅ 반드시 있어야 tooltip 위치가 정상 동작 */
  height: 35px;
}
@media (max-width: 768px) {
  .timeline-heatmap {
    height: 30px;
  }
}

.timeline-heatmap .heat-map-points {
  position: absolute;
  border-left: 1px dashed #aaa;
  height: 35px;
  bottom: 0;
  z-index: 1;
}

.timeline-heatmap .heat-map-points:first-child {
  border-left: none;
}

.timeline-heatmap .heat-map-points.right {
  border: none;
}

.timeline-heatmap .heat-map-points.right span {
  right: -10px;
}

.timeline-heatmap .heat-map-points span {
  position: absolute;
  bottom: -20px;
  font-size: 10px;
  font-weight: 400;
  right: -17px;
}

/* PDF 컨텍스트에서 right 위치 조정 */
.pdf-context .heat-map-points span {
  right: 0 !important;
}

.heat-map-row .cols .col {
  height: 35px;
  display: inline-block;
  opacity: 1;
  cursor: pointer;
}

table .heat-map-row .cols .col {
  cursor: initial;
}

.heat-map .date {
  background-color: #00c3f7;
  color: #fff;
  float: left;
  padding: 3px;
  font-size: 11px;
  text-align: center;
  width: 80px;
  font-weight: bold;
  /* -webkit-box-shadow: 2px -9px 50px -13px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 2px -9px 50px -13px rgba(0, 0, 0, 0.75);
  box-shadow: 2px -9px 50px -13px rgba(0, 0, 0, 0.75); */
}

.heat-map-legend {
  height: 35px;
  overflow: hidden;
  text-align: right;
}

.heat-map-legend .hm-legend {
  position: relative;
  width: 200px;
  height: 20px;
  float: right;
}

.heat-map-legend .hm-legend .text-left {
  position: absolute;
  left: 0;
  bottom: -15px;
  font-size: 11px;
}

.heat-map-legend .hm-legend .text-right {
  position: absolute;
  right: 0;
  bottom: -15px;
  font-size: 11px;
}

.heatmap-tooltip {
  cursor: pointer;
}

/* START TOOLTIP STYLES */
[tooltip] {
  position: relative; /* opinion 1 */
}

/* Applies to all tooltips */
[tooltip]::before,
[tooltip]::after {
  text-transform: none; /* opinion 2 */
  font-size: 0.9em; /* opinion 3 */
  line-height: 1;
  user-select: none;
  pointer-events: none;
  position: absolute;
  display: none;
  opacity: 0;
}

[tooltip]::before {
  content: '';
  border: 5px solid transparent; /* opinion 4 */
  z-index: 1001; /* absurdity 1 */
}

[tooltip]::after {
  content: attr(tooltip); /* magic! */

  /* most of the rest of this is opinion */
  font-family: Helvetica, sans-serif;
  text-align: center;

  /*
    Let the content set the size of the tooltips
    but this will also keep them from being obnoxious
    */
  min-width: 3em;
  max-width: 21em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 1ch 1.5ch;
  border-radius: 0.3ch;
  box-shadow: 0 1em 2em -0.5em rgba(0, 0, 0, 0.35);
  background: #333;
  color: #fff;
  z-index: 1000; /* absurdity 2 */
}

/* Make the tooltips respond to hover */
[tooltip]:hover::before,
[tooltip]:hover::after {
  display: block;
}

/* don't show empty tooltips */
[tooltip='']::before,
[tooltip='']::after {
  display: none !important;
}

/* FLOW: UP */
[tooltip]:not([flow])::before {
  bottom: 100%;
  border-bottom-width: 0;
  border-top-color: #333;
}

[tooltip]:not([flow])::after,
[tooltip][flow^='up']::after {
  bottom: calc(100% + 5px);
}

[tooltip]:not([flow])::before,
[tooltip]:not([flow])::after,


  /* FLOW: DOWN */
[tooltip][flow^="down"]::before {
  top: 100%;
  border-top-width: 0;
  border-bottom-color: #333;
}

[tooltip][flow^='down']::after {
  top: calc(100% + 5px);
}

[tooltip][flow^='down']::before,
[tooltip][flow^='down']::after {
  left: 50%;
  transform: translate(-50%, 0.5em);
}

/* KEYFRAMES */
@keyframes tooltips-vert {
  to {
    opacity: 0.9;
    transform: translate(-50%, 0);
  }
}

@keyframes tooltips-horz {
  to {
    opacity: 0.9;
    transform: translate(0, -50%);
  }
}

/* FX All The Things */
[tooltip]:not([flow]):hover::before,
[tooltip]:not([flow]):hover::after,
[tooltip][flow^='down']:hover::before,
[tooltip][flow^='down']:hover::after {
  animation: tooltips-vert 300ms ease-out forwards;
}

.timeline-text {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
    width: 100%;

}

.timeline-text ul {
  display: flex;
  margin-top: 50px;
  flex-wrap: wrap;
}

.timeline-text li {
  list-style: none;
  display: flex;
  align-items: center;
  font-size: 14px;
  font-weight: normal;
  margin-left: 14px;
}

/*.timeline-text li::before {*/
/*    content: "";*/
/*    display: inline-block;*/
/*    width: 12px;*/
/*    height: 12px;*/
/*    margin-right: 6px;*/
/*    !*border: 1px solid #ccc;*!*/
/*}*/
.timeline-text li:first-child::before {
  content: none;
}

.timeline-text li::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 10px;
  margin-right: 6px;
  border-radius: 2px;
  /*border: 1px solid #ccc;*/
}
.legend-title {
    font-weight: 700;
    font-size: 14px;
    color: #111111;
}
.play-label {
    font-weight: 500;
    font-size: 14px;
    color: #333333;

}
/* 색상 설정 */
.play-0::before { background-color: #E4EDF7; border: 1px solid black;}
.play-1::before { background-color: #B1D0FD; border: 1px solid black;}
.play-2::before { background-color: #80B2FB; border: 1px solid black;}
.play-3::before { background-color: #5785FF; border: 1px solid black;}
.play-4::before { background-color: #5785FF; border: 1px solid black;}
.play-5::before { background-color: #5785FF; border: 1px solid black;}


/* HeatMapViewer 전용 스타일 범위 설정 */
.timeline-heatmap.heatmap-viewer {
  /* 이 클래스가 있으면 내부 요소에만 스타일 적용 */
}

.timeline-heatmap.heatmap-viewer .heat-map-row .cols {
  height: 38px;
}

.timeline-heatmap.heatmap-viewer .heat-map-points {
  height: 38px;
  top: 0;
}

.timeline-heatmap.heatmap-viewer .heat-map-row .cols .col {
  height: 38px;
}

@media (max-width: 768px) {
  .heatmap-tooltip {
    height: 30px !important;
  }
  /* Heatmap 박스 자체 크기 축소 */
  .heat-map-row .cols {
    height: 30px;
    border-width: 0.5px;
  }

  /* 세로 구분선도 축소 */
  .timeline-heatmap .heat-map-points {
    top: 0; /* ✅ 위에서부터 시작 */
    bottom: unset; /* ✅ bottom 제거 */
    height: 100%; /* ✅ 부모 높이에 맞춤 */
    border-left: 0.5px dashed #bbb; /* 더 얇게 */
  }

  /* 시간 텍스트 크기 축소 */
  .timeline-heatmap .heat-map-points span {
    font-size: 9px;
    bottom: -16px;
    right: -12px;
  }

  /* 색상 칸 크기 줄이기 */
  .heat-map-row .cols .col {
    height: 30px;
    min-width: 2px;
  }

  /* 범례 텍스트 크기 줄이기 */
  .timeline-text {
    font-size: 12px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
    row-gap: 4px;
  }

  .timeline-text ul {
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 20px;
    padding: 0;
  }

  .timeline-text li {
    font-size: 12px;
    margin: 2px 6px;
    display: flex;
    align-items: center;
    white-space: nowrap;
  }

  .timeline-text li::before {
    width: 10px;
    height: 10px;
    margin-right: 4px;
  }

  /* 전체 padding 줄이기 */
  .hm-video-bar-option {
    padding: 6px;
  }

  .hm-sqr {
    width: 80px;
    padding: 3px;
  }

  /* tooltip 크기 조정 */
  [tooltip]::after {
    font-size: 0.8em;
    padding: 0.5ch 1ch;
  }
}
