@charset "utf-8";

/* 캘린더 전체 박스 */
.sched-list {
  border: 1px solid #555;
  border-radius: 8px;
  background: #f6f6f6;
  /* overflow: hidden;  ← ❌ 이거 때문에 팝업 잘림 */
  overflow: visible;      /* ✅ 팝업이 밖으로 나와도 보이게 */
  box-sizing: border-box;
  font-family: 'Galmuri11', monospace;
}

/* 상단 월/연도 헤더 */
.cal-nav h2 {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0;
  padding: 8px 12px;
  background: #B3BDB3;    /* 녹색 띠 */
  color: #fff;            /* 글씨 흰색 */
  border-radius: 7px 7px 0 0;    
  text-align: center;
  text-transform: uppercase;
}

/* 요일 표시 칸 */
.sched-list .theme-list th {
  height: 30px;
  padding: 0;
  font-size: 11px;
  font-weight: normal;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  background: none;
  color: #555;
}

/* 날짜 칸 */
.sched-list .theme-list td {
  text-align: center;
  padding: 0;
  line-height: 18px;
  font-size: 11px;
  height: 40px;
  border-bottom: 0 none;
  background: none;
  color: #555;   /* 날짜 글씨 */
  position: relative; /* ✅ 팝업 위치 기준 */
}

/* 날짜 숫자 */
.sched-list .theme-list td i {
  position: relative;
  display: block;
  margin-bottom: 3px;
  font-style: normal;
}

/* 오늘 날짜 강조 */
.sched-list .theme-list td.today i {
  font-weight: bold;
}
.sched-list .theme-list td.today i:after {
  content: "";
  display: block;
  position: absolute;
  top: 50%; left: 50%;
  width: 19px; height: 19px;
  border: 2px solid #B3BDB3; /* 오늘은 녹색 테두리 */
  border-radius: 100%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* 일정 막대 */
.sched-list .liner {
  position: relative;
  display: block;
  margin-top: 1px;
  width: 100%;
  height: 15px;
  color: #fff;
} 
.sched-list .starter {padding: 0;}
.sched-list .liner:not(.first,.starter) {z-index: -1;}

.sched-list .s_subject {
  height: 15px;
  line-height: 14px;
}
.sched-list .left .starter .s_subject {left: 0;}
.sched-list .right .starter .s_subject {right: 0;}
.sched-list .starter .s_subject,
.sched-list .first .s_subject {
  border-radius: 5px;
  z-index: 2;
}
.sched-list .starter .s_subject {
  position: absolute;
  width: 100%;
  min-width: 100%;
  padding: 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  font-size: 10px;
  box-sizing: border-box;
}
.sched-list .starter:hover .s_subject {
  width: auto;
  overflow: visible;
}
.sched-list .liner:not(.first, .starter) p {
  background: none;
  border: 0 none;
}

/* 팝업 레이어 */
.sched-list .popup_layer {
  position: absolute;
  display: none;
  bottom: 110%;             /* ✅ 셀 위쪽에 띄우기 */
  left: 50%;
  transform: translateX(-50%);
  padding: 10px;
  border-radius: 6px;
  width: 150px;
  z-index: 9999;
  background: #fff;
  border: 1px solid #555;
  color: #000;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
  white-space: normal;      /* 내용 줄바꿈 허용 */
}

/* a에 호버하면 팝업 표시 */
.sched-list td a:hover .popup_layer {
  display: block;
}

/* 링크 전체 영역 확대 */
.sched-list td a {
  position: relative;
  display: inline-block;
  width: 100%;
  height: 100%;
}

/*표시색상*/
.color_1{background:#777}
.color_2{background:#B3BDB3;}
.color_3{background:#dccfc0;}
.color_4{background:#f6f6f6;} 
