@charset "utf-8";

/* 학사일정 달력 레이아웃 — 캘린더 자체(.schedule_calendar) 스타일은
 * board 모듈 공용 common.css 로 승격됨(book_schedule 스킨과 공유). 여기는 이 스킨만의 래퍼 폭만 담당 */
.schedule_board_content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* 학사일정 게시판 목록 */

/* .board-toolbar 본체는 board common.css 로 승격 — schedule 은 캘린더 아래라 위 여백만 덧댐 */
.board-toolbar {
    margin: 60px 0 20px;
}

#list_total_count {
    color: var(--color-text-body);
    font-size: 16px;
    line-height: 24px;
}

@media screen and (max-width: 700px) {
    .board-toolbar {
        margin: 40px 0 16px;
    }
}

/* 학사일정 게시판 쓰기 폼 */
#board_wrap {
    width: 100%;
    height: auto;
    margin: 0 auto;
    overflow: hidden;
}

#board_write {
    width: 99.9%;
    clear: both;
    margin-bottom: 20px;
    border-top: 2px solid var(--color-border-board-header);
}

#board_write table {
    width: 100%;
    height: auto;
    border-collapse: collapse;
    border-width: 0;
    font-size: 13px;
    letter-spacing: -1px;
    text-align: left;
}

#board_write tbody tr {
    color: var(--color-text-body);
}

#board_write tbody tr a {
    padding-left: 4px;
    color: var(--color-text-link);
}

#board_write tbody th {
    padding: 0 0 0 7px;
    border-bottom: 1px solid var(--color-border-header);
    color: var(--color-gray800);
    font-size: 15px;
    font-weight: 500;
    line-height: 60px;
}

#board_write tbody td {
    padding: 6px 13px;
    border-bottom: 1px solid var(--color-border-header);
    border-left: 1px solid var(--color-border-base);
    font-size: 15px;
    letter-spacing: -0.02em;
    line-height: 22px;
}

#board_write tbody td .f_alert {
    display: block;
    padding: 5px 0 10px;
    color: var(--color-text-notice);
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
}

#board_write tbody td .board_view_contents {
    padding: 10px 0;
}

#board_write .leftcell {
    border-left: 0 !important;
}

#board_write .rightcell {
    border-right: 0 !important;
}

#board_write label {
    font-size: var(--font-size-caption);
    font-weight: 500;
    letter-spacing: -1px;
}

#board_write th:first-child,
#board_write td:first-child {
    border-left: 0;
}

#board_write div.bbs_file_ctl {
    width: 100%;
    height: auto;
    overflow: hidden;
}

#bbs_file_add {
    display: none;
}

.bbs_file_add_label {
    display: block;
    width: 100%;
    color: var(--color-gray800);
    font-size: 2rem;
    font-weight: 700;
    line-height: 40px;
    text-align: left;
    cursor: pointer;
}

.bbs_file_add_label::before {
    content: "+";
    display: inline-block;
    margin-right: 4px;
}

.bbs_file_add_label:hover {
    color: var(--color-text-notice);
}

.bbs_file_del_label {
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background-color: var(--color-gray300);
    transition: all 0.35s ease;
}

.bbs_file_del_label::before,
.bbs_file_del_label::after {
    content: "";
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 16px;
    background-color: var(--color-gray700);
    transition: all 0.35s ease;
}

.bbs_file_del_label::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.bbs_file_del_label::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

.bbs_file_del_label:hover {
    background-color: var(--color-danger);
}

.bbs_file_del_label:hover::before,
.bbs_file_del_label:hover::after {
    background-color: var(--color-white);
}

.file_upload {
    display: none;
}

.file_upload_name {
    display: inline-block;
    flex-shrink: 0;
    width: 210px;
    height: 40px;
    overflow: hidden;
    background-color: var(--color-gray200);
    line-height: 40px;
    text-overflow: ellipsis;
}

.bbs_file_item {
    display: flex;
    align-items: center;
    gap: 10px;
    height: auto;
    margin-bottom: 10px;
}

.bbs_file_item:last-child {
    margin-bottom: 0;
}

.bbs_file_item .file_info_text {
    flex: 1;
}

#captcha_chk_label {
    width: 50%;
}

#bbs_captcha_img {
    height: 40px;
    cursor: pointer;
}

/* table-layout:fixed 는 min-width를 개별 td에 줘도 무시하고 width만으로 컬럼폭을 정함
 * (제목처럼 width:auto인 컬럼은 고정폭 컬럼들 합만큼 폭을 뺏겨 좁아질 수 있음) — 그래서
 * 컬럼을 억지로 짜부러뜨리는 대신 표 자체에 최소폭을 주고 컨테이너가 좁으면 스크롤되게 함
 * (book_schedule 과 동일 원리, 2026-09-02) */
#board_list {
    width: 100%;
    overflow-x: auto;
}

#board_list table {
    width: 100%;
    min-width: 900px;
    table-layout: fixed;
    border-collapse: collapse;
    border-top: 1px solid var(--color-border-board-list-strong);
}

#board_list caption {
    overflow: hidden;
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(0, 0, 0, 0);
}

#board_list th,
#board_list td {
    height: 85px;
    padding: 28px 30px;
    border: 0;
    border-bottom: 1px solid var(--color-border-board-list);
    background: var(--color-bg-board-list-row);
    color: var(--color-text-board-list);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    text-align: center;
    vertical-align: middle;
}

#board_list th {
    height: 58px;
    padding-top: 15px;
    padding-bottom: 15px;
    font-weight: 500;
}

#board_list .t_num {
    width: 102px;
    font-family: var(--font-number);
}

#board_list .t_title {
    width: auto;
    min-width: 143px;
}

#board_list .t_file {
    width: 102px;
}

#board_list .t_user {
    width: 143px;
}

#board_list .t_date {
    width: 183px;
    font-family: var(--font-number);
}

#board_list .t_hit {
    width: 105px;
    font-family: var(--font-number);
}

#board_list td.t_title {
    text-align: left;
}

#board_list td.t_title a {
    display: block;
    width: 100%;
    max-width: 100%;
    color: var(--color-text-board-list);
    font-size: 20px;
    font-weight: 400;
    line-height: 28px;
    white-space: normal;
    word-break: break-all;
}

#board_list td.t_title a:hover,
#board_list td.t_title a:focus-visible {
    color: var(--color-text-board-list-hover);
    text-decoration: none;
}

#board_list .category {
    margin-right: 8px;
    color: var(--color-text-board-list-hover);
    font-weight: 500;
}

#board_list .t_file img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

@media screen and (max-width: 700px) {
    .schedule_board_content {
        min-width: 0;
    }

    #board_list table {
        min-width: 700px;
    }

    #board_list th,
    #board_list td {
        height: 64px;
        padding: 16px 12px;
        font-size: 15px;
        line-height: 22px;
    }

    #board_list td.t_title a {
        font-size: 15px;
        line-height: 22px;
    }

    #board_list .t_num {
        width: 60px;
    }

    #board_list .t_file {
        width: 58px;
    }

    #board_list .t_user {
        width: 100px;
    }

    #board_list .t_hit {
        display: none;
    }

    #board_list .t_date {
        width: 110px;
    }
}

@media screen and (max-width: 700px) {
    #board_write tbody th {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 5px 0;
        overflow: hidden;
        border-bottom: 1px solid var(--color-border-header);
        line-height: 24px;
    }

    #board_write tbody td {
        display: block;
        width: 100%;
        box-sizing: border-box;
        margin-bottom: 12px;
        padding: 5px;
        border: 0;
    }

    #board_write .input_type {
        width: 100%;
        box-sizing: border-box;
    }

    #board_write tbody td .f_alert {
        font-size: 14px;
    }

    #board_btn {
        flex-wrap: wrap;
        gap: 8px;
    }

    #board_btn .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    #captcha_chk_label {
        margin-top: 24px;
    }

    .bbs_file_ctl {
        display: inline-block;
        width: calc(100% - 80px) !important;
        padding-left: 10px;
    }

    .bbs_file_item .file_info_text {
        width: calc(100% - 50px) !important;
    }
}

@media screen and (max-width: 520px) {
    .bbs_file_item {
        flex-wrap: wrap;
    }

    .file_upload_name {
        width: calc(100% - 130px);
    }

    .bbs_file_item .file_info_text {
        flex: 0 0 100%;
        width: 100% !important;
    }

    #captcha_chk_label {
        width: 100%;
    }
}
