@charset "UTF-8";

/*
    시스템 관리 > 릴리즈 노트 (bit/system/releasenote)
    - 모달 프레임(mskin) 은 modal_skin.css 공통. 상세는 Q&A, 등록/수정은 문구 관리 모달 구성을 따른다.
*/

/* ── 목록 ─────────────────────────────────────── */
#system_releasenote .rn-td-title {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}
#system_releasenote .rn-file-icon { width: 16px; height: 16px; vertical-align: middle; }
#system_releasenote tbody tr { cursor: pointer; }

/* 버전 배지 (목록 · 상세 공용) */
#system_releasenote .rn-version,
#system_releasenote_detailModal .rn-version {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #047bb6;
    background: #e8f4fb;
}

/* ── 칩(구분 / 유형) ───────────────────────────── */
#system_releasenote .chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #495057;
    background: #f1f3f5;
    white-space: nowrap;
}
#system_releasenote .chip i {
    width: 6px; height: 6px; border-radius: 50%;
    background: #adb5bd; flex: none;
}
#system_releasenote .chip.target_customer   { background: #e7f1ff; color: #0a58ca; }
#system_releasenote .chip.target_customer i { background: #007bff; }
#system_releasenote .chip.target_dev        { background: #f3e8ff; color: #6b21a8; }
#system_releasenote .chip.target_dev i      { background: #9333ea; }
#system_releasenote .chip.note_01         { background: #e6f4ea; color: #1b7a37; }
#system_releasenote .chip.note_01 i       { background: #28a745; }
#system_releasenote .chip.note_02         { background: #fce8ea; color: #b02a37; }
#system_releasenote .chip.note_02 i       { background: #dc3545; }
#system_releasenote .chip.note_03         { background: #fff8e1; color: #9a7400; }
#system_releasenote .chip.note_03 i       { background: #ffc107; }

/* ── 상세 모달 (Q&A 상세와 같은 스크롤 체인) ─────── */
#system_releasenote_detailModal .modal-dialog {
    width: 760px;
    max-width: calc(100vw - 32px);
    max-height: 85vh;
}
#system_releasenote_detailModal .modal-content { padding: 0; }
#system_releasenote_detailModal .modal__card {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}
#system_releasenote_detailModal .section_content {
    flex: 1 1 auto;
    min-height: 0;
}
#system_releasenote_detailModal .rn-detail-body { padding: 14px; }

#system_releasenote_detailModal .rn-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #047bb6;
    border-radius: 10px;
    padding: 20px;
}
#system_releasenote_detailModal .rn-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    word-break: break-word;
}
#system_releasenote_detailModal .rn-title .rn-version { font-size: 16px; flex: none; }
#system_releasenote_detailModal .rn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 10px;
    margin-bottom: 14px;
}
#system_releasenote_detailModal .rn-meta span {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 14.5px;
    font-weight: 600;
    background: #fff;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}
#system_releasenote_detailModal .rn-meta span em {
    margin-left: 4px;
    font-style: normal;
    font-weight: 700;
    color: #374151;
}
#system_releasenote_detailModal .rn-content {
    font-size: 17px;
    line-height: 1.8;
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-word;
    min-height: 40px;
}
#system_releasenote_detailModal .rn-files {
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px dashed #e5e7eb;
}
#system_releasenote_detailModal .rn-files .file-label {
    font-size: 15px; font-weight: 600; color: #374151; margin-bottom: 8px;
}
#system_releasenote_detailModal .rn-files .file-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 6px;
    margin-bottom: 6px;
}
#system_releasenote_detailModal .rn-files .file-item:last-child { margin-bottom: 0; }
#system_releasenote_detailModal .rn-files .file-name { flex: 1; font-size: 16px; color: #111827; }
#system_releasenote_detailModal .rn-files .file-size { font-size: 14px; color: #9ca3af; }
/* .btn-download 모양은 bit.css 의 다운로드 버튼 공통 규칙에서 처리 */

/* ── 푸터 : 버튼 네모(사각) + 우측 정렬 (두 모달 공용) ── */
#system_releasenote_detailModal .modal-footer,
#system_releasenote_editModal .modal-footer {
    justify-content: flex-end;
    /* 본문 SimpleBar 트랙(absolute)이 버튼 클릭을 먹지 않게 올려 둔다 */
    position: relative;
    z-index: 2;
}
#system_releasenote_detailModal .modal-footer__actions,
#system_releasenote_editModal .modal-footer__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}
#system_releasenote_detailModal .modal-footer .btn,
#system_releasenote_editModal .modal-footer .btn {
    border-radius: 4px;
}

/* ── 등록/수정 모달 (문구 관리 모달 구성) ─────────── */
#system_releasenote_editModal .modal-dialog {
    width: 90%;
    max-width: 760px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
}
/* overflow:hidden 이면 SimpleBar 가 세로축을 끄고, visible 이면 푸터를 덮는다 → clip */
#system_releasenote_editModal .modal-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: clip;
    min-height: 0;
    padding: 0;
}
#system_releasenote_editModal .modal-section {
    background-color: #fff;
    border-radius: 6px;
    padding: 20px;
    margin: 14px;
    border: 1px solid #e5e7eb;
}
#system_releasenote_editModal .modal-section + .modal-section { margin-top: 0; }
#system_releasenote_editModal .section-title {
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e5e7eb;
}
#system_releasenote_editModal .section-content {
    display: flex;
    flex-direction: column;
}
#system_releasenote_editModal .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 8px;
    min-width: 0;
}
#system_releasenote_editModal .form-group.ti-top    { align-items: flex-start; }
#system_releasenote_editModal .form-group:last-child { margin-bottom: 0; }
#system_releasenote_editModal .form-ti { flex-shrink: 0; }
#system_releasenote_editModal .form-ti.w120 { width: 100px; }
#system_releasenote_editModal .form-ti.required::after {
    content: '*';
    color: #e54e57;
    margin-left: 3px;
}
#system_releasenote_editModal .form-control {
    flex: 1;
    height: 34px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 17px;
    color: #1d1d1d;
    /* background 단축속성은 공통 날짜칸(.js-datepicker)의 캘린더 아이콘(background-image)을 지운다.
       배경색만 지정해 공통 아이콘을 살린다. */
    background-color: #fff;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}
#system_releasenote_editModal .form-control:focus { border-color: #047bb6; }
/* 공통 날짜칸: 오른쪽 캘린더 아이콘과 글자가 겹치지 않게 여백 확보 */
#system_releasenote_editModal .form-control.js-datepicker { padding-right: 34px; }
#system_releasenote_editModal input[type="date"].form-control { cursor: pointer; }
#system_releasenote_editModal select.form-control {
    appearance: auto;
    -webkit-appearance: auto;
}
#system_releasenote_editModal textarea.form-control {
    flex: 1 1 auto;
    height: clamp(120px, 30vh, 320px);
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

/* 게시여부 체크 */
#system_releasenote_editModal .rn-target-radio {
    display: flex;
    align-items: center;
    gap: 20px;
    height: 34px;
}
#system_releasenote_editModal .rn-target-radio label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 17px;
    cursor: pointer;
}
#system_releasenote_editModal .rn-target-hint {
    margin: -2px 0 10px 100px;
    font-size: 14px;
    color: #6b7280;
}

/* 첨부 : 기존 파일 */
#system_releasenote_editModal .existing-files { margin-bottom: 10px; }
#system_releasenote_editModal .existing-file-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; background: #f9fafb;
    border: 1px solid #e5e7eb; border-radius: 6px; margin-bottom: 6px;
}
#system_releasenote_editModal .existing-file-item:last-child { margin-bottom: 0; }
#system_releasenote_editModal .existing-file-item .file-name { flex: 1; font-size: 15px; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#system_releasenote_editModal .existing-file-item .file-size { font-size: 14px; color: #9ca3af; }

/* 첨부 : 업로드 영역 */
#system_releasenote_editModal .file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 6px;
    padding: 22px 15px;
    text-align: center;
    cursor: pointer;
    background: #fafbfc;
    transition: all .2s;
}
#system_releasenote_editModal .file-upload-area:hover,
#system_releasenote_editModal .file-upload-area.dragover { border-color: #047bb6; background: #f0f7ff; }
#system_releasenote_editModal .file-upload-inner { display: flex; flex-direction: column; align-items: center; gap: 4px; }
#system_releasenote_editModal .upload-text { margin: 0; font-size: 16px; font-weight: 500; color: #374151; }
#system_releasenote_editModal .upload-hint { margin: 0; font-size: 14px; color: #9ca3af; }

/* 첨부 : 새 파일 */
#system_releasenote_editModal .new-files { margin-top: 10px; }
#system_releasenote_editModal .new-file-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 12px; background: #ecfdf5;
    border: 1px solid #a7f3d0; border-radius: 6px; margin-bottom: 6px;
}
#system_releasenote_editModal .new-file-item:last-child { margin-bottom: 0; }
#system_releasenote_editModal .new-file-item .file-name { flex: 1; font-size: 15px; color: #065f46; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#system_releasenote_editModal .new-file-item .file-size { font-size: 14px; color: #059669; }

#system_releasenote_editModal .btn-remove {
    width: 22px; height: 22px; border: none;
    background: #ef4444; color: #fff; border-radius: 50%;
    cursor: pointer; font-size: 14px;
    display: flex; align-items: center; justify-content: center; flex: none;
}
#system_releasenote_editModal .btn-remove:hover { background: #dc2626; }
