@charset "utf-8";

body.null {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
}

body .cont_head,
body.null .loading {
    display: none !important;
}

#smartPop_container {border-radius: 16px !important; overflow: hidden;}
/* 팝업 전체 */
.notice_view {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #fff;
    color: #172033;
    font-family: inherit;
}

.notice_view,
.notice_view *,
.notice_view *::before,
.notice_view *::after {
    box-sizing: border-box;
}

/* 공통 초기화 */
.notice_view dl,
.notice_view dt,
.notice_view dd {
    margin: 0;
    padding: 0;
}

.notice_view input,
.notice_view textarea,
.notice_view select,
.notice_view button {
    font-family: inherit;
}

/* 상단 영역 */
.notice_header {
    height: 56px;
    padding: 0 18px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #102d8e 0%, #05289b 100%);
    color: #fff;
}

.notice_type {
    display: flex;
    align-items: center;
    gap: 4px;
}

.notice_icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
}

.notice_badge {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
}

/* 상단 X 버튼 */
.btn_close {
    position: relative;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    appearance: none;
    cursor: pointer;
}

.btn_close::before,
.btn_close::after {
    content: "";
    position: absolute;
    top: 21px;
    left: 11px;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 1px;
    background: #fff;
    margin: 0;
}

.btn_close::before {
    transform: rotate(45deg);
}

.btn_close::after {
    transform: rotate(-45deg);
}

.btn_close:hover,
.btn_close:focus-visible {
    background: rgba(255, 255, 255, 0.14) !important;
}

.btn_close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* 콘텐츠 영역 */
.notice_body {
    height: calc(100vh - 56px);
    padding: 22px 24px 26px;
    overflow-y: auto;
}

/* 제목 */
.notice_title {
    margin-bottom: 18px;
}

/*
 * renderElement("SUBJECT")에서 생성하는
 * dt, dd 구조를 화면용으로 초기화한다.
 */
.notice_title dt {
    display: none;
}

.notice_title dd {
    width: 100%;
}

.notice_title #SUBJECT {
    display: block;
    width: 100% !important;
    height: 44px !important;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    background: transparent !important;
    color: #172033 !important;
    font-size: 25px !important;
    line-height: 44px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: none !important;
    outline: 0;
}

/* 등록일 및 공지기간 */
.notice_info {
    min-height: 48px;
    margin-bottom: 18px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid #d9deea;
    border-radius: 7px;
    background: #fff;
    padding: 0;
}

.notice_meta {
    min-width: 0;
    min-height: 48px;
    padding: 8px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.notice_meta + .notice_meta {
    border-left: 1px solid #d9deea;
}

.notice_meta strong {
    flex: 0 0 auto;
    color: #172033;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.notice_meta > span {
    color: #273044;
    font-size: 14px;
    white-space: nowrap;
}

.notice_date {
    display: grid;
    grid-template-columns: 110px auto 110px;
    align-items: center;
    gap: 8px;
}

.notice_date input {
    display: block !important;
    width: 110px !important;
    min-width: 110px !important;
    height: 30px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #273044 !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important;
    font-size: 14px;
}

.notice_date > span {
    color: #687083;
    font-size: 14px;
    text-align: center;
}

.notice_date .ui-datepicker-trigger {
    display: none !important;
}

/* 공통 섹션 */
.notice_section {
    margin-top: 18px;
}

.notice_section > h2 {
    margin: 0 0 8px;
    color: #172033;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}

/* 첨부파일 */
.notice_files {
    overflow: hidden;
    border: 1px solid #d9deea;
    border-radius: 7px;
    background: #fff;
}

.notice_files #file_list {
    display: block;
    width: 100% !important;
    height: 84px !important;
    margin: 0 !important;
    padding: 5px !important;
    overflow-y: auto;
    border: 0 !important;
    background: #fff;
    color: #273044;
    font-size: 14px;
    outline: 0;
}

.notice_files #file_list option {
    min-height: 32px;
    padding: 8px 12px;
    border-bottom: 1px solid #edf0f5;
}

/* 내용 */
.notice_content dt {
    display: none;
}

.notice_content dd {
    width: 100%;
}

.notice_content #CNTN_TXT {
    display: block;
    width: 100% !important;
    height: 297px !important;
    min-height: 297px;
    padding: 14px !important;
    overflow-y: auto;
    border: 1px solid #d9deea !important;
    border-radius: 7px;
    background: #fff !important;
    color: #273044 !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.7;
    resize: none;
    box-shadow: none !important;
    outline: 0;
}

/* 비고 */
.notice_remark dt {
    display: none;
}

.notice_remark dd {
    width: 100%;
}

.notice_remark #REMK {
    display: block;
    width: 100% !important;
    height: 64px !important;
    padding: 12px 14px !important;
    border: 1px solid #d9deea !important;
    border-radius: 7px;
    background: #fff !important;
    color: #273044 !important;
    box-shadow: none !important;
    outline: 0;
}

/* 작은 화면 */
@media screen and (max-width: 600px) {
    .notice_header {
        height: 56px;
        padding: 0 10px 0 16px;
    }

    .notice_body {
        height: calc(100vh - 56px);
        padding: 18px 16px 22px;
    }

    .notice_title #SUBJECT {
        height: 38px !important;
        font-size: 20px !important;
        line-height: 38px;
    }

    .notice_info {
        grid-template-columns: 1fr;
    }

    .notice_meta {
        justify-content: flex-start;
        gap: 18px;
    }

    .notice_meta + .notice_meta {
        border-top: 1px solid #d9deea;
        border-left: 0;
    }

    .notice_meta strong {
        width: 70px;
        text-align: center;
    }

    .notice_date {
        flex: 1;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .notice_date input {
        width: 100% !important;
        min-width: 0 !important;
    }
}