/* 기본 레이아웃 */
#latest_calendar {
    font-family: 'Segoe UI', sans-serif;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* 헤더 */
.calendar_header {
    text-align: center;
    margin-bottom: 15px;
}
.calendar_header a {
    margin: 0 5px;
    text-decoration: none;
    color: #0055ff;
    font-weight: bold;
    font-size: 13px;
}
.calendar_header strong {
    font-size: 13px;
    color: #333;
}

/* 테이블 */
.calendar_latest_table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.calendar_latest_table td {
	text-align:center;
    vertical-align: top;
    height: 20px;
    padding: 3px;
    position: relative;
    font-size: 12px;
}
.calendar_latest_table th {
	height:30px;
    background-color: #f0f0f0;
    font-weight: bold;
    font-size: 12px;
    color: #333;
}

/* 날짜 숫자 */
.calendar_latest_table .date_num {
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 5px;
	color:#111;
}
.calendar_latest_table .date_num.today {
    background-color: #dae6ff;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
}
.calendar_latest_table .date_num.holiday {
    color: #d00;
}

/* 요일 색상 */
.calendar_latest_table .sunday .date_num {
    color: #d00;
}
.calendar_latest_table .saturday .date_num {
    color: #0055ff;
}

/* 공휴일 이름 */
.calendar_latest_table .holiday_name {
    font-size: 10px;
    color: #d00;
    margin-top: 3px;
}

/* 일정 바 */
.calendar_latest_table .calendar_item {
    display: block;
    margin-top: 0px;
    position: relative;
    text-decoration: none;
}
.calendar_latest_table .calendar_bar {
	position:relative;
	top:-3px;
    height: 4px;	
    border-radius: 3px;
    background-color: #0055ff;
    width: calc(var(--duration) * 100%);
    transition: background 0.3s;
    cursor: pointer;
    max-width: 100%;
    overflow: hidden;
}

.calendar_latest_table .tooltip {
    position: absolute;
    top: 5px;
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    padding: 5px 8px;
    font-size: 11px;
    color: #333;
    white-space: normal;
    z-index: 10;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    min-width: 185px;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 반응형 */
@media (max-width: 768px) {
	#latest_calendar {
		font-family: 'Segoe UI', sans-serif;
		max-width: 100%;
		margin: 0 auto;
		padding: 0;
	}

	/* 헤더 */
	.calendar_header {
		text-align: center;
		margin-bottom: 15px;
	}
	.calendar_header a {
		margin: 0 5px;
		text-decoration: none;
		color: #0055ff;
		font-weight: bold;
		font-size: 12px;
	}
    .calendar_latest_table th,
    .calendar_latest_table td {
        height: 20px;
        font-size: 12px;
    }
    .calendar_header strong {
        font-size: 12px;
    }
	.calendar_latest_table  .tooltip {
        font-size: 12px;
        max-width: 80vw;
        left: auto;
        right: 0;
    }
}
