/* ============================================
   시간표 기본 스타일
   ============================================ */

/* 기간 표시 테이블 스타일 (원본 참조) */
.sTD {
    width: 100px;
    color: #FFFFFF;
    font-size: 14px;
    text-align: center;
    font-weight: bold;
    border-left: solid #000000 1pt;
    border-right: solid #000000 1pt;
    border-top: solid #000000 1pt;
    border-bottom: solid #000000 0pt;
    padding-top: 3px;
    background-color: #000000;
}

.unsTD {
    width: 100px;
    color: #000000;
    font-size: 12px;
    text-align: center;
    font-weight: normal;
    border-left: solid #eeeeee 1pt;
    border-right: solid #ffffff 1pt;
    border-top: solid #eeeeee 1pt;
    border-bottom: solid #000000 0pt;
    padding-top: 3px;
    background-color: #eeeeee;
}

.unsTD A:link {
    font-weight: normal;
    color: #828282;
}

.unsTD A:visited {
    font-weight: normal;
    color: #828282;
}

.unsTD A:hover {
    font-weight: bold;
    font-size: 14px;
    color: #ff3300;
}

.srightTD {
    width: 565px;
    color: #5769ce;
    font-size: 12px;
    text-align: left;
    font-weight: bold;
    border: solid #000000 0pt;
    padding-left: 20px;
    background-color: #ffffff;
}

.sbarTD {
    width: 765px;
    height: 5px;
    background-color: #000000;
}

/* Noto Sans KR 폰트 기본 적용 */
.timetable_wrap,
.timetable-period-title,
.timetable-info-message,
.timeTD,
.dayweekTD,
.lecture-box {
    font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif;
}

/* 시간표 래퍼 */
.timetable_wrap {
    margin: 20px 0;
}

.timetable-scroll-container {
    overflow-x: hidden;
    overflow-y: hidden;
    position: relative;
    width: 100%;
    max-width: 890px;
    margin: 0 auto;
}

.timetable-content {
    position: relative;
    width: 820px;
    margin: 0 auto;
    overflow: visible;
}

/* 기간 제목 */
.timetable-period-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 20px 0 15px 0;
    padding: 10px 0;
    border-bottom: 2px solid #17479e;
}

/* 안내 메시지 */
.timetable-info-message {
    font-size: 16px;
    color: #d9534f;
    margin: 15px 0 25px 0;
    padding: 12px 20px;
    background-color: #fff5f5;
    border-left: 5px solid #d9534f;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.6;
    box-shadow: 0 2px 8px rgba(217, 83, 79, 0.15);
    transition: opacity 1s ease, max-height 1s ease, margin 1s ease, padding 1s ease;
    overflow: hidden;
}

.timetable-info-message.hide {
    opacity: 0;
    max-height: 0;
    margin: 0;
    padding: 0;
}

/* 관리자 액션 영역 스타일 */
.admin-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* 관리자 액션 버튼 스타일 (다른 페이지와 통일) */
.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.admin-btn i {
    font-size: 14px;
}

.admin-btn--primary {
    background: #6f4c3e;
    color: #fff;
}

.admin-btn--primary:hover,
.admin-btn--primary:focus {
    filter: brightness(0.95);
}

.admin-btn--danger {
    background: #8f2f24;
    color: #fff;
}

.admin-btn--danger:hover,
.admin-btn--danger:focus {
    filter: brightness(0.95);
}

.admin-btn--muted {
    background: #b9a58f;
    color: #fff;
    cursor: not-allowed;
}

.admin-btn--muted:hover,
.admin-btn--muted:focus {
    filter: none;
}

.admin-btn--static {
    cursor: default;
    background: #cfc4b6;
    color: #5b4638;
}

.admin-btn--static:hover,
.admin-btn--static:focus {
    filter: none;
}

/* 인쇄/저장 버튼 스타일 (법인 원본 사이트와 동일) */
.print-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 6px;
    background: #17479e;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    border: none;
    transition: filter 0.2s ease;
    cursor: pointer;
}

.print-btn:hover,
.print-btn:focus {
    filter: brightness(0.9);
}

.print-btn--disabled {
    background: #d7dbe4;
    color: #666;
    border: none;
    cursor: not-allowed;
}

/* 인쇄 시 숨김 */
@media print {
    /* 헤더 제외 */
    #header_wrap,
    #header,
    #mobile_header,
    .header_in,

    /* 배너 제외 */
    #sub_visual,

    /* 서브 메뉴 제외 */
    #sub_menu,

    /* 서브 타이틀 제외 */
    #sub_tit,

    /* 공유 버튼 제외 */
    .timetable-share-section,

    /* 네비게이션 버튼 제외 */
    .timetable-nav-btn,

    /* 강좌 상세 패널 제외 */
    .lecture-detail-panel,

    /* 인쇄/저장 버튼 및 하단 액션 영역 제외 */
    .print-btn,
    .admin-actions,
    .timetable-action-area,

    /* 풋터 제외 */
    footer,
    #footer,

    /* 상단 이동 버튼 제외 */
    #top_btn,

    /* 기타 인쇄 제외 요소 */
    .no-print {
        display: none !important;
    }

    /* 강좌시간표 콘텐츠 영역 명시적 표시 */
    .scontents.borderLeft {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    /* 강좌시간표 타이틀 포함 */
    .scontents.borderLeft .eng {
        display: block !important;
        visibility: visible !important;
        font-size: 24px !important;
        font-weight: bold !important;
        color: #17479e !important;
        margin: 0 0 15px 0 !important;
        padding-bottom: 10px !important;
        border-bottom: 2px solid #17479e !important;
    }

    /* 기간(일자) 포함 */
    .timetable-period-title {
        display: block !important;
        visibility: visible !important;
        font-size: 18px !important;
        font-weight: bold !important;
        color: #333 !important;
        margin: 0 0 20px 0 !important;
        padding-bottom: 10px !important;
        border-bottom: 1px solid #ddd !important;
    }

    /* 강좌시간표 전체 포함 */
    .timetable_wrap {
        display: block !important;
        visibility: visible !important;
        page-break-inside: avoid;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    .timetable-scroll-container {
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    .timetable-content {
        display: block !important;
        visibility: visible !important;
        page-break-inside: avoid;
        position: relative !important;
    }

    .lecture-box {
        display: block !important;
        visibility: visible !important;
        page-break-inside: avoid;
    }

    /* 인쇄 시 여백 조정 */
    body {
        margin: 0 !important;
        padding: 20px !important;
    }

    @page {
        margin: 15mm;
    }
}

/* 시간 표시 */
.timeTD {
    color: #6633cc;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    line-height: 100px;
    padding: 0;
    margin: 0;
}

.timeTD[style*="font-weight:normal"] {
    line-height: 100px !important;
    padding-top: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 요일 헤더 */
.dayweekTD {
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    background-color: #7c7c7c;
    text-align: center;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 10px 0 !important;
}

.day-header {
    cursor: default;
}

/* 강좌 번호 표시 */
.lectnumTD {
    left: -15px;
    top: -45px;
    height: 80px;
    width: 100px;
    padding-top: 10px;
    position: absolute;
    overflow: none;
    font-family: Arial;
    color: #000000;
    font-size: 60px;
    font-weight: bold;
    opacity: 0.12;
    filter: Alpha(opacity=15);
    z-index: 9999;
}

/* 강좌 박스 색상 (0~29번) - Noto Sans KR 폰트 적용 */
.lectTD0 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ffffff; }
.lectTD1 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ffede1; }
.lectTD2 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #eeffdd; }
.lectTD3 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #e1f1ff; }
.lectTD4 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #d9b3ff; }
.lectTD5 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #FDCCE6; }
.lectTD6 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ece4f8; }
.lectTD7 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #efefef; }
.lectTD8 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #efefef; }
.lectTD9 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #efefef; }
.lectTD10 { color: #333399; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #FFCC00; }
.lectTD11 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #FFFFFF; }
.lectTD12 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ffedff; }
.lectTD13 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #eeffdd; }
.lectTD14 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #eeffdd; }
.lectTD15 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #e1f1ff; }
.lectTD16 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #CC99FF; }
.lectTD17 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #efefef; }
.lectTD18 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #ece4f8; }
.lectTD19 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 20px; border: 1px solid #000000; background-color: #FDCCE6; }
.lectTD20 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #ffffff; }
.lectTD21 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #ffede1; }
.lectTD22 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #eeffdd; }
.lectTD23 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #e1f1ff; }
.lectTD24 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #CC99FF; }
.lectTD25 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #efefef; }
.lectTD26 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #ece4f8; }
.lectTD27 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 28px; border: 1px solid #000000; background-color: #FDCCE6; }
.lectTD28 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 35px; border: 1px solid #000000; background-color: #FFCC66; letter-spacing: -2px; }
.lectTD29 { color: #000000; font-family: 'Noto Sans KR', '나눔고딕', 'Nanum Gothic', 'Malgun Gothic', '맑은 고딕', sans-serif; font-size: 16px; font-weight: bold; line-height: 35px; border: 1px solid #000000; background-color: #CCFFCC; }

/* 강좌 박스 스타일 */
.lecture-box .lect-title {
    font-family: 'Noto Sans KR', '나눔고딕', 'Malgun Gothic', sans-serif;
    font-size: 19px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
    word-break: keep-all;
    word-wrap: break-word;
    white-space: normal;
}

.lecture-box .lect-detail {
    font-family: 'Noto Sans KR', '나눔고딕', 'Malgun Gothic', sans-serif;
    font-size: 16px;
    line-height: 2em;
    letter-spacing: -0.02em;
    word-break: keep-all;
    word-wrap: break-word;
    white-space: normal;
}

.lecture-box .lect-detail span {
    font-family: 'Noto Sans KR', '나눔고딕', 'Malgun Gothic', sans-serif !important;
    font-size: 16px !important;
    line-height: 2em !important;
    letter-spacing: -0.02em !important;
    word-break: keep-all !important;
    word-wrap: break-word !important;
    white-space: normal !important;
}

/* 축소된 박스는 상세정보 숨김 */
.overlap-box .lect-detail {
    display: none;
}

/* 모든 강좌 박스 공통 스타일 */
.lecture-box {
    cursor: pointer;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15) !important;
    border-radius: 2px !important;
    transition: box-shadow 0.2s ease !important;
}

.lecture-box:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2) !important;
}

.lecture-box table td {
    padding: 5px !important;
}

/* 활성화 시 색상 반전 */
.lecture-box.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    z-index: 100 !important;
}

.lecture-box.active table td {
    background-color: #17479e !important;
    color: #ffffff !important;
    padding: 5px !important;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.lecture-box.active .lect-title {
    color: #ffffff !important;
}

.lecture-box.active .lect-detail span {
    color: #e6e6e6 !important;
}

/* 연결선 스타일 */
.lecture-connection-line {
    transition: all 0.3s ease;
    display: none;
    visibility: hidden;
    opacity: 0;
}

.lecture-connection-line.active-connection {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    border-top-width: 5px !important;
    border-top-color: #0d3a7a !important;
    z-index: 80 !important;
}

.lecture-week-label {
    transition: all 0.3s ease;
    display: none;
    visibility: hidden;
    opacity: 0;
}

.lecture-week-label.active-connection {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: #17479e !important;
    color: white !important;
    border-color: #0d3a7a !important;
    transform: scale(1.1);
    z-index: 90 !important;
    box-shadow: 0 4px 12px rgba(23, 71, 158, 0.4) !important;
}

/* 겹치는 박스 확장 */
.overlap-box.expanded {
    width: 156px !important;
    z-index: 101 !important;
    transform: translateX(-39px);
}

.overlap-box.expanded.active {
    z-index: 110 !important;
}

.overlap-box.expanded .lect-detail {
    display: block;
}

.overlap-box {
    transition: width 0.3s ease, transform 0.3s ease, z-index 0s;
    cursor: pointer;
}

/* 모바일 네비게이션 버튼 (비활성화) */
.timetable-nav-btn {
    display: none !important;
    visibility: hidden !important;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(23, 71, 158, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
}

.timetable-nav-btn:hover {
    background-color: rgba(23, 71, 158, 1);
}

.timetable-nav-prev {
    left: 10px;
}

.timetable-nav-next {
    right: 10px;
}

.timetable-nav-btn.hidden {
    opacity: 0.3;
    cursor: not-allowed;
}

/* 인쇄 관련 */
.no-print {
    display: block;
}

@media print {
    .no-print {
        display: none !important;
    }
    
    .timetable-scroll-container {
        overflow-x: hidden;
        overflow-y: hidden;
    }
}

/* 반응형 */
@media screen and (max-width: 768px) {
    .timetable-nav-btn {
        display: block;
    }
    
    .timetable-period-title {
        font-size: 16px;
    }
    
    .timetable-info-message {
        font-size: 13px;
        padding: 8px;
    }
}

