/* 버전: 202607071412 */

/* 시작: 모달 오버레이 및 컨테이너 짧은설명: 화면 전체를 덮는 반투명 배경과 중앙 정렬된 모달 박스 스타일 */
.newdoc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
}

.newdoc-modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
}
/* 끝: 모달 오버레이 및 컨테이너 */

/* 시작: 모달 헤더 짧은설명: 제목과 닫기 버튼이 포함된 상단 영역 */
.newdoc-modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    flex-shrink: 0;
}

.newdoc-modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #333;
    display: flex;
    align-items: center;
}

.newdoc-header-icon {
    color: #2E9E6B;
    margin-right: 8px;
}

.newdoc-btn-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.newdoc-btn-close:hover {
    color: #333;
}
/* 끝: 모달 헤더 */

/* 시작: 모달 바디 및 섹션 짧은설명: 내부 컨텐츠의 여백과 각 기능별 구분선 정의 */
.newdoc-modal-body {
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
    overflow-y: auto;
}

.newdoc-section {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.newdoc-section.newdoc-no-border {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.newdoc-section h3 {
    margin: 0 0 12px 0;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    display: flex;
    align-items: center;
}

.newdoc-section p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    word-break: keep-all;
}

.newdoc-section-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.newdoc-section-row p {
    margin: 0 0 12px 0;
    flex: 1;
    min-width: 200px;
}
/* 끝: 모달 바디 및 섹션 */

/* 시작: 모달 버튼 공통 스타일 짧은설명: 확인 및 불러오기 버튼의 색상, 크기, 호버 효과 정의 */
.newdoc-custom-btn {
    padding: 8px 24px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    outline: none;
}

.newdoc-btn-confirm {
    background-color: #f1f3f4;
    color: #333;
    font-weight: bold;
}

.newdoc-btn-load {
    background-color: #fff;
    color: #333;
    font-weight: normal;
}

.newdoc-custom-btn:hover:not(:disabled) {
    background-color: #EEFAF3 !important;
    color: #2E9E6B !important;
    border-color: #C3E8D5 !important;
}

.newdoc-custom-btn:disabled {
    background-color: #f1f3f4;
    color: #888;
    cursor: not-allowed;
    opacity: 0.5;
}
/* 끝: 모달 버튼 공통 스타일 */

/* 시작: 다중 파일 입력 행 레이아웃 짧은설명: X버튼, 파일선택, 확인 버튼을 3단 Grid로 정렬하도록 수정 */
.newdoc-import-list-container {
    display: flex; 
    flex-direction: column; 
    gap: 8px;
}

.newdoc-btn-group {
    display: grid;
    grid-template-columns: 30px 1fr 80px; 
    gap: 8px;
    align-items: center;
    width: 100%;
}

.newdoc-btn-reset {
    grid-column: 1;
    background: none;
    border: 1px solid #eee;
    border-radius: 4px;
    color: #ff4d4d;
    cursor: pointer;
    height: 32px;
    width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    padding: 0;
    transition: background 0.2s;
}

.newdoc-btn-reset:hover {
    background-color: #fff5f5;
    border-color: #ffb3b3;
}

.newdoc-btn-group .newdoc-btn-load {
    grid-column: 2;
    justify-self: stretch;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block; 
    text-align: center;
}

.newdoc-btn-group .newdoc-btn-confirm {
    grid-column: 3;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}
/* 끝: 다중 파일 입력 행 레이아웃 */

/* 시작: 모달 푸터 짧은설명: 하단 버튼 영역의 레이아웃 및 여백 정의 */
.newdoc-modal-footer {
    padding: 15px 25px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-shrink: 0;
}
/* 끝: 모달 푸터 */

/* 시작: 확인 버튼 디자인 시스템 스타일 적용 짧은설명: 경로 새로 그리기·코스 불러오기·코스 추가하기·로그 편집 확인 = 활성 시 BTN-02(초록 채움), 비활성 시 회색 */
#newdoc-btn-confirm-create {
    background: #2E9E6B;
    color: #fff;
    border: none;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
}
#newdoc-btn-confirm-create:hover {
    background-color: #24835A !important;
    color: #fff !important;
    border-color: transparent !important;
}

#newdoc-btn-confirm-file,
#newdoc-btn-append-confirm,
#newdoc-btn-confirm-log {
    background: #2E9E6B;
    border: none;
    color: #fff;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
}
#newdoc-btn-confirm-file:hover:not(:disabled),
#newdoc-btn-append-confirm:hover:not(:disabled),
#newdoc-btn-confirm-log:hover:not(:disabled) {
    background-color: #24835A !important;
    border-color: transparent !important;
    color: #fff !important;
}
#newdoc-btn-confirm-file:disabled,
#newdoc-btn-append-confirm:disabled,
#newdoc-btn-confirm-log:disabled {
    background-color: #f1f3f4;
    border: none;
    color: #888;
}
/* 끝: 확인 버튼 디자인 시스템 스타일 적용 */

/* 시작: 코스 새로 그리기 확인 모달 버튼(디자인 시스템 BTN-02 확인/BTN-03 취소, #export-modal과 동일 스펙) */
#newdoc-confirm-modal .btn-02 {
    background: #2E9E6B;
    color: #fff;
    border: none;
    border-radius: 22px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s;
    font-family: inherit;
}
#newdoc-confirm-modal .btn-02:hover {
    background: #24835A;
}
#newdoc-confirm-modal .btn-03,
#newdoc-modal .btn-03 {
    background: #fff;
    border: 1px solid #c0c0c0;
    color: #555;
    border-radius: 22px;
    padding: 10px 28px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}
#newdoc-confirm-modal .btn-03:hover,
#newdoc-modal .btn-03:hover {
    background: #EEFAF3;
    border-color: #2E9E6B;
    color: #2E9E6B;
}
/* 끝: 코스 새로 그리기 확인 모달 버튼 */