/* CSS Document */

/** {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    background: #ffffff;
    color: #333;
}*/

.calendar-wrap {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 40px;
	font-family:'Noto Sans KR';
}
@media (max-width: 768px) {
	.calendar-wrap {
		margin: 40px 0px;
		padding: 0px 5px;
		font-family:'Noto Sans KR';
	}
}
/* ================= 상단 헤더 영역 ================= */
.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.cal-left,
.cal-right {
    display: flex;
    gap: 0;
}

/* 이전/다음 버튼 그룹 */
.cal-left {
    display: flex;
}

/* 이전/다음 공통 버튼 스타일 */
.cal-left .btn {
    border: 1px solid #2C3E50;
    background: #2C3E50;
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
    margin-right: -3px;          /* 버튼 사이 경계선 겹치기 */
    transition: all 0.15s ease;
	 height: 30px; /* 버튼 높이를 일정하게 유지 */
    line-height: 1; /* 글자 baseline 이슈 제거 */
}

/* 좌/우 버튼 모서리 */
.cal-left .btn:first-child {
    border-radius: 4px 0 0 4px;
}
.cal-left .btn:nth-child(2) {
    border-radius: 0 4px 4px 0;
}

/* Hover / Active / Focus / Disabled */
.cal-left .btn:hover {
  -webkit-box-shadow: 0 0 0 0.2rem rgba(76, 91, 106, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(76, 91, 106, 0.5);
  }
.cal-left .btn:active {
  -webkit-box-shadow: 0 0 0 0.2rem rgba(76, 91, 106, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(76, 91, 106, 0.5);
  }
.cal-left .btn:focus {
    -webkit-box-shadow: 0 0 0 0.2rem rgba(76, 91, 106, 0.5);
  box-shadow: 0 0 0 0.2rem rgba(76, 91, 106, 0.5);
}
.cal-left .btn:disabled {
    background: #d8d8d8;
    border-color: #cccccc;
    color: #8e8e8e;
    cursor: not-allowed;
    transform: none;
}

#btnToday {
    margin-left: 6px;
}
@media (max-width: 768px) {
	#btnToday {
		margin-left: 6px;
	}
	.cal-left .btn {
		font-size: 11px;
		padding: 6px 5px;
		margin-right: -3px;          /* 버튼 사이 경계선 겹치기 */
		 height: 25px; /* 버튼 높이를 일정하게 유지 */
		line-height: 1; /* 글자 baseline 이슈 제거 */
	}
}
@media (max-width: 400px) {
	#btnToday {
		margin-left: 0px;
		display:block !important;
	}
}

/* 공통 버튼 */
.btn {
    border: 1px solid #1b2431;
    background: #1b2431;
    color: #fff;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
}
.btn-outline {
    background: #fff;
    color: #1b2431;
}
.btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* 제목 */
.calendar-title {
    font-size: 35px;
    font-weight: 500;
    color: #00b9ef;
	font-family:'Noto Sans KR';
}
@media (max-width: 768px) {
	
	/* 제목 */
	.calendar-title {
		font-size: 24px;
		font-weight: 400 ;
	}
}
@media (max-width: 400px) {
	
	/* 제목 */
	.calendar-title {
		font-size: 16px;
		font-weight: 400 ;
	}
}

/* 월/주/일 토글 전체 박스 */
.view-toggle {
    display: inline-flex;     /* 가로로 나란히 배치 */
    flex-wrap: nowrap;        /* 줄바꿈 방지 */
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #2C3E50;
    background-color: #2C3E50;
}

/* 토글 버튼 하나하나 */
.view-toggle button {
    flex: 0 0 auto;           /* 버튼이 줄어들거나 늘어나지 않게 */
    border: none;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    background: #2C3E50;
    color: #fff;
    line-height: 1;           /* 글자 줄 간격 줄이기 */
    white-space: nowrap;      /* 글자 자체도 줄바꿈 안 되게 */
}

.view-toggle button.active {
    background: #1b2431;
    color: #fff;
}
@media (max-width: 768px) {
    .view-toggle button {
        padding: 4px 10px;    /* 버튼 폭/높이 줄이기 */
        font-size: 11px;
    }
}

/* ================= 달력 테이블 공통 ================= */
table.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar thead th,
.calendar tbody td {
    border: 1px solid #dadada; 
}

.calendar thead th {
    padding: 15px 0;
    font-size: 18px;
    font-weight: 500;
    background: #f9f9f9;
	text-align:center;
}

.calendar thead th.sun {
    color: #ff0000;
}
.calendar thead th.sat {
    color: #0000ff;
}

.calendar tbody td {
    /*vertical-align: top;*/
	text-align:center;
    height: 90px; /* 월 뷰 기본 높이 */
    padding: 8px 10px;
    font-size: 18px;
    position: relative;
}

/* 날짜 숫자 */
.day-num {
    margin-bottom: 4px;
	font-weight:500;
}
.sun .day-num {
    color: #e74c3c;
}
.sat .day-num {
    color: #2980ff;
}

/* 전월/익월 날짜 */
.other-month {
    color: #e0e0e0;
}

/* 오늘 강조 */
.today {
    /* outline: 2px solid #00a3ff; outline-offset: -1px; */
    background-color: #fff;
}

/* 하루짜리 일정 버튼 컨테이너 */
.event-wrap {
    margin-top: 4px;
}
.event-btn {
    display: block;
    width: 100%;
    border: none;
    background: #00b9ef;
    color: #fff;
    font-size: 14px;
    padding: 10px 0;
    margin-top: 2px;
    cursor: pointer;
}
.event-btn + .event-btn {
    margin-top: 2px;
}

/* =====================================================
   여러 날짜 막대가 들어가는 tr 공통 (월/주 공통)
===================================================== */
tr.event-row td,
tr.week-event-row td {
    height: auto;
    padding: 0;
}

/* ================== 월(Month) 뷰 – event-row ================== */
tr.event-row td {
    border-top: none !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
}
tr.event-row td:first-child {
    border-left: 1px solid #dadada !important;
}
tr.event-row td:last-child {
    border-right: 1px solid #dadada !important;
}

/* 막대 비주얼 */
.event-bar-inner {
    background: #00b9ef;
    color: #fff;
    text-align: center;
    font-size: 14px;
    padding: 10px 0;
    cursor: pointer;
    margin-top: 1px;
    margin-bottom: 1px;
}

/* ================== 주(Week) 뷰 – week-event-row ================== */
/* 기본 : 안쪽 선은 모두 제거 */
.week-event-row td {
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
}

/* 첫 번째 줄: 위쪽 바깥 라인 */
.week-event-row:first-child td {
    border-top: 1px solid #dadada !important;
}

/* 마지막 줄: 아래쪽 바깥 라인 */
.week-event-row:last-child td {
    border-bottom: 1px solid #dadada !important;
}

/* 모든 줄의 맨 왼쪽/오른쪽 칸에만 세로선 표시 (바깥 프레임) */
.week-event-row td:first-child {
    border-left: 1px solid #dadada !important;
}
.week-event-row td:last-child {
    border-right: 1px solid #dadada !important;
}

/* 주 뷰 – 이벤트가 전혀 없는 주 */
.week-event-row.no-event td {
    border: 1px solid #dadada !important;
    height: auto;
    padding: 10px 0;
    vertical-align: middle;
	height: 49px;
}

/* ================== 일(Day) 뷰 – no-event ================== */
.day-event-row.no-event td {
    /*height: auto;*/
    padding: 10px 0;
    vertical-align: middle;
	height: 49px;
}

/* ================= 하단 버튼 ================= */
.bottom-right {
    margin-top: 18px;
    text-align: right;
}
.btn-blue {
    border-radius: 3px;
    border: none;
    background: #00a3ff;
    color: #fff;
    padding: 9px 20px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 8px;
}
/* 달력 테이블에서 마지막 행의 아래쪽 선은 항상 보여주기 */
table.calendar tbody tr:last-child td {
	border-bottom: 1px solid #dadada !important;
}
@media (max-width: 768px) {
	.sub5_1 {padding: 30px 5px;}
}

/* 전월/다음달 기본 숫자 */
.other-month .day-num {
    color:#d0d0d0;
}

/* 전월/다음달 주말만 조금 포인트 */
.other-month.sun .day-num {
    color:#ffb8b8;
}

.other-month.sat .day-num {
    color:#a7c9ff;
}
