/* ==================================== app_owner 공용 모달 (.edk_modal) ==================================== */
/*
  공용 셸: common/css/popup.css 의 .popup_container / .popup_center
  사용:   <div class="popup_container edk_modal 고유클래스">
  chrome: .modal_head(아이콘+제목+부제) / .modal_body / .modal_footer(.modal_btn) / .section_label
  컴포넌트: .tp_cb(체크박스 3-state) / .grade_block·.class_chip(대상선택) / .selected_chip
  샘플/사용법: templates/app_owner/base/popup/sample.html
*/

.edk_modal .popup_center {
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(16, 24, 40, 0.18);
}

/* ===================== 헤더 ===================== */
.edk_modal .modal_head {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px 19px;
    border-bottom: 1px solid #e5e8ec;
    background: linear-gradient(168deg, #fff3ea 0%, #fff 73%);
}

.edk_modal .modal_head_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background-color: var(--main, #ff6d01);
    color: #fff;
    font-size: 18px;
}

.edk_modal .modal_head_text h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #222;
}

.edk_modal .modal_head_text p {
    margin-top: 3px;
    font-size: 12px;
    font-weight: 500;
    color: #5c6573;
}

.edk_modal .modal_head .btn_close {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
    color: #9aa1ac;
    font-size: 22px;
    cursor: pointer;
}

/* ===================== 바디 ===================== */
.edk_modal .modal_body {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 22px;
}

.edk_modal .target_section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 선택된 대상 섹션은 라벨-박스 간격 축소 */
.edk_modal .target_section+.target_section {
    gap: 8px;
}

.edk_modal .section_label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #222;
}

.edk_modal .section_label .req {
    margin-left: 2px;
    color: #ef4444;
    font-size: 11.5px;
}

/* ===================== 공용 체크박스 ===================== */
.edk_modal .tp_cb {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #cbd0d7;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.edk_modal .tp_cb.checked {
    border-color: var(--main, #ff6d01);
    background-color: var(--main, #ff6d01);
}

.edk_modal .tp_cb.checked::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

.edk_modal .tp_cb.partial {
    border-color: var(--main, #ff6d01);
    background-color: #fff;
}

.edk_modal .tp_cb.partial::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background-color: var(--main, #ff6d01);
    transform: translate(-50%, -50%);
}

/* ===================== 필터 바 ===================== */
.edk_modal .filter_bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background-color: #fafbfc;
    cursor: pointer;
}

.edk_modal .filter_label {
    font-size: 14px;
    color: #222;
}

.edk_modal .filter_helper {
    font-size: 11px;
    color: #9aa1ac;
}

/* ===================== 학년 목록 ===================== */
.edk_modal .grade_list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edk_modal .grade_block {
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    overflow: hidden;
}

.edk_modal .grade_block.open {
    border-color: #ffd9bd;
}

.edk_modal .grade_header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background-color: #fff;
}

.edk_modal .grade_block.open .grade_header {
    background-color: #fff3ea;
}

/* 학년 체크박스 (박스만 · 클릭 시 반 전체 선택) */
.edk_modal .grade_cb {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #cbd0d7;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
}

.edk_modal .grade_cb.checked {
    border-color: var(--main, #ff6d01);
    background-color: var(--main, #ff6d01);
}

.edk_modal .grade_cb.checked::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 라벨~화살표 영역 (클릭 시 반 목록 펼치기/접기) */
.edk_modal .grade_open {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.edk_modal .grade_label {
    color: #222;
}

.edk_modal .grade_count {
    font-size: 11px;
    color: #9aa1ac;
}

.edk_modal .grade_count.on {
    color: #b84600;
}

.edk_modal .grade_arrow {
    margin-left: auto;
    font-size: 18px;
    line-height: 1;
    color: #5c6573;
    transition: transform 0.2s;
}

.edk_modal .grade_block.open .grade_arrow {
    color: var(--main, #ff6d01);
    transform: rotate(180deg);
}

/* 반 목록 (펼침) */
.edk_modal .class_grid {
    display: none;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 12px 14px 14px 44px;
    background-color: #fff;
}

.edk_modal .grade_block.open .class_grid {
    display: grid;
}

.edk_modal .class_chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 11px;
    border: 1px solid #e5e8ec;
    border-radius: 6px;
    background-color: #fff;
    font-size: 13px;
    color: #5c6573;
    cursor: pointer;
}

.edk_modal .class_chip.checked {
    border-color: var(--main, #ff6d01);
    background-color: #fff3ea;
    color: #b84600;
    font-weight: 500;
}

.edk_modal .chip_cb {
    position: relative;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    border: 1px solid #cbd0d7;
    border-radius: 3px;
    background-color: #fff;
}

.edk_modal .class_chip.checked .chip_cb {
    border-color: var(--main, #ff6d01);
    background-color: var(--main, #ff6d01);
}

.edk_modal .class_chip.checked .chip_cb::after {
    content: "";
    position: absolute;
    top: 44%;
    left: 50%;
    width: 4px;
    height: 7px;
    border: solid #fff;
    border-width: 0 1.5px 1.5px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* ===================== 선택된 대상 ===================== */
.edk_modal .selected_box {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 54px;
    padding: 16px;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    background-color: #fafbfc;
}

/* 선택 없음 안내 */
.edk_modal .selected_box:empty::before {
    content: "선택된 대상이 없어요";
    font-size: 12px;
    color: #9aa1ac;
}

.edk_modal .selected_chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    background-color: var(--main, #ff6d01);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

.edk_modal .selected_chip i {
    font-size: 14px;
    opacity: 0.6;
    cursor: pointer;
}

/* ===================== 푸터 ===================== */
.edk_modal .modal_footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 13px 22px 12px;
    border-top: 1px solid #e5e8ec;
    background-color: #fafbfc;
}

.edk_modal .modal_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.edk_modal .modal_btn.cancel {
    border: 1px solid #e5e8ec;
    background-color: #fff;
    color: #5c6573;
}

.edk_modal .modal_btn.confirm {
    border: 0;
    background-color: var(--main, #ff6d01);
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 109, 1, 0.25);
}

/* ==================================== 대상자 등록 (member_add) ==================================== */
/* 세그먼트 탭 */
.edk_modal .seg {
    display: flex;
    gap: 8px;
    padding: 4px;
    border-radius: 8px;
    background-color: #f3f3f3;
}

.edk_modal .seg_btn {
    flex: 1;
    min-width: 0;
    padding: 8px;
    border: 0;
    border-radius: 8px;
    background-color: transparent;
    font-size: 12px;
    font-weight: 500;
    color: #5c6573;
    cursor: pointer;
}

.edk_modal .seg_btn.active {
    background-color: #fff;
    color: #222;
    box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.09);
}

/* 패널 */
.edk_modal .m_panel {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.edk_modal .m_panel.active {
    display: flex;
}

/* 필드 / 행 */
.edk_modal .m_field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edk_modal .m_row {
    display: flex;
    gap: 12px;
}

.edk_modal .m_row>.m_field {
    flex: 1;
    min-width: 0;
}

/* 입력 */
.edk_modal .m_input {
    width: 100%;
    height: 44px;
    padding: 0 15px;
    border: 1px solid #e0e2e7;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #222;
}

.edk_modal .m_input::placeholder {
    color: #5c6573;
}

/* select */
.edk_modal .m_select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' stroke='%235c6573' stroke-width='1.2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

/* 프로필 사진 */
.edk_modal .m_photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border: 1px dashed #e5e8ec;
    border-radius: 4px;
    background-color: #fafbfc;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.edk_modal .m_photo_inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.edk_modal .m_photo.has_img .m_photo_inner {
    display: none;
}

/* 사진 제거 버튼 (업로드 후에만 노출) */
.edk_modal .m_photo_remove {
    position: absolute;
    top: 4px;
    right: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.edk_modal .m_photo.has_img .m_photo_remove {
    display: flex;
}

.edk_modal .m_photo_inner i {
    font-size: 16px;
    color: #9aa1ac;
}

.edk_modal .m_photo_text {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    color: #9aa1ac;
}

/* 라디오 카드 (성별) */
.edk_modal .m_radio_group {
    display: flex;
    gap: 8px;
}

.edk_modal .m_radio {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 17px;
    border: 1px solid #e0e2e7;
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
}

.edk_modal .m_radio.checked {
    border-color: #ff7a2d;
    background-color: #fff8f2;
}

.edk_modal .m_radio_dot {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    background-color: #fff;
}

.edk_modal .m_radio.checked .m_radio_dot {
    border-color: #ff7a2d;
}

.edk_modal .m_radio.checked .m_radio_dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #ff7a2d;
    transform: translate(-50%, -50%);
}

.edk_modal .m_radio_label {
    font-size: 14px;
    font-weight: 600;
    color: #2d2d2d;
}

.edk_modal .m_radio.checked .m_radio_label {
    color: #ff7a2d;
}

/* 요보호 박스 */
.edk_modal .m_label_help {
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.edk_modal .m_label_help i {
    font-size: 14px;
    font-weight: 400;
    color: #ff6d01;
}

/* 툴팁 */
.edk_modal .m_tip {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.edk_modal .m_tip>i {
    cursor: help;
}

.edk_modal .m_tip_box {
    position: absolute;
    top: calc(100% + 8px);
    left: -6px;
    width: max-content;
    max-width: min(240px, calc(100vw - 80px));
    padding: 8px 10px;
    border-radius: 6px;
    background-color: #222;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s;
    pointer-events: none;
    z-index: 10;
}

/* 아이콘 아래쪽 → 위로 향하는 꼬리 (아이콘 위치 기준 왼쪽) */
.edk_modal .m_tip_box::after {
    content: "";
    position: absolute;
    bottom: 100%;
    left: 12px;
    border: 5px solid transparent;
    border-bottom-color: #222;
}

.edk_modal .m_tip:hover .m_tip_box {
    opacity: 1;
    visibility: visible;
}

.edk_modal .m_protect_box {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    background-color: #fff;
}

.edk_modal .m_reason {
    gap: 8px;
}

/* 스위치 OFF 시 사유 라벨 비활성 (세그먼트·패널·뱃지 흐리게 + 잠금) */
.edk_modal .m_reason.disabled .seg,
.edk_modal .m_reason.disabled .m_reason_panel,
.edk_modal .m_reason.disabled .m_badges {
    opacity: 0.5;
    pointer-events: none;
}

/* 사유 라벨 패널 (기본 검색 / 직접추가) */
.edk_modal .m_reason_panel {
    display: none;
}

.edk_modal .m_reason_panel.active {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 직접추가 입력 + 버튼 */
.edk_modal .m_add_row {
    display: flex;
    gap: 8px;
}

.edk_modal .m_add_row .m_input {
    flex: 1;
    min-width: 0;
}

.edk_modal .m_add_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    height: 44px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background-color: var(--main, #ff6d01);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.edk_modal .m_add_btn i {
    font-size: 15px;
}

/* 뱃지 목록 */
.edk_modal .m_badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.edk_modal .m_badges:empty {
    display: none;
}

.edk_modal .m_badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #fce7f3;
    color: #be185d;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.4px;
}

.edk_modal .m_badge i {
    font-size: 13px;
    opacity: 0.6;
    cursor: pointer;
}

.edk_modal .m_switch_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.edk_modal .m_switch_info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.edk_modal .m_switch_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 6px;
    border-radius: 6px;
    background-color: #fce7f3;
    color: #db2777;
    font-size: 15px;
}

.edk_modal .m_switch_text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.edk_modal .m_switch_text strong {
    font-size: 13px;
    font-weight: 500;
    color: #222;
}

.edk_modal .m_switch_text span {
    font-size: 12px;
    color: #5c6573;
}

/* 스위치 */
.edk_modal .m_switch {
    position: relative;
    flex-shrink: 0;
    width: 34px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background-color: #cbd0d7;
    cursor: pointer;
    transition: background-color 0.2s;
}

.edk_modal .m_switch::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: left 0.2s;
}

.edk_modal .m_switch.on {
    background-color: var(--main, #ff6d01);
}

.edk_modal .m_switch.on::after {
    left: 16px;
}

/* 사유 라벨 하위 */
.edk_modal .m_sub_label {
    font-size: 13px;
    font-weight: 600;
    color: #222;
}

.edk_modal .m_notice {
    padding: 8px 10px;
    border: 1px solid #fbd993;
    border-radius: 8px;
    background-color: #fff6ee;
    font-size: 11px;
    line-height: 1.5;
    color: #92400e;
}

.edk_modal .m_notice strong {
    font-weight: 700;
    color: #ff6d01;
}

/* 검색 입력 */
.edk_modal .m_search {
    position: relative;
}

.edk_modal .m_search .m_input {
    padding-right: 38px;
}

.edk_modal .m_input:disabled {
    background-color: #f2f4f7;
    color: #cbd0d7;
}


.edk_modal .m_search i {
    position: absolute;
    top: 12px;
    right: 13px;
    font-size: 16px;
    color: #9aa1ac;
    pointer-events: none;
}

/* 기본 요보호 라벨 리스트 (검색 input 포커스 시 노출) */
.edk_modal .m_label_list {
    display: none;
    flex-direction: column;
    margin-top: 6px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background-color: #fff;
}

.edk_modal .m_search:focus-within .m_label_list {
    display: flex;
}

.edk_modal .m_label_item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 12px;
    font-size: 13px;
    color: #222;
    cursor: pointer;
}

.edk_modal .m_label_item:not(:last-of-type) {
    border-bottom: 1px solid #f2f4f7;
}

.edk_modal .m_label_item:hover {
    background-color: #fafbfc;
}

.edk_modal .m_label_item.checked {
    color: var(--main, #ff6d01);
    font-weight: 500;
}

.edk_modal .m_label_cb {
    position: relative;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd0d7;
    border-radius: 4px;
    background-color: #fff;
}

.edk_modal .m_label_item.checked .m_label_cb {
    border-color: var(--main, #ff6d01);
    background-color: var(--main, #ff6d01);
}

.edk_modal .m_label_item.checked .m_label_cb::after {
    content: "";
    position: absolute;
    top: 40%;
    left: 50%;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -50%) rotate(45deg);
}

/* 검색 결과 없음 */
.edk_modal .m_label_empty {
    display: none;
    padding: 24px 12px;
    font-size: 12px;
    text-align: center;
    color: #9aa1ac;
}

/* ==================================== 확인증 출력 (confirm_paper) ==================================== */
/* 확인증 종류 탭 (공용 .seg 재활용 + 폰트 확대) */
.edk_modal.popup_confirm_paper .seg_btn {
    font-size: 14px;
}

.edk_modal.popup_confirm_paper .seg_btn.active {
    font-weight: 700;
}

/* 패널 */
.edk_modal .cp_panel {
    display: none;
    width: 100%;
}

.edk_modal .cp_panel.active {
    display: block;
}

.edk_modal .cp_info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* 확인증 카드 */
.edk_modal .cp_card {
    overflow: hidden;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background-color: #fff;
}

/* 미리보기 헤더 바 */
.edk_modal .cp_prev_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    border-bottom: 1px solid #e5e8ec;
    background-color: #f7f8fa;
}

.edk_modal .cp_prev,
.edk_modal .cp_edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #5c6573;
}

.edk_modal .cp_prev {
    font-weight: 700;
}

.edk_modal .cp_prev i,
.edk_modal .cp_edit i {
    font-size: 13px;
}

/* 확인증 본문 */
.edk_modal .cp_paper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 32px 24px;
    background-color: #fff;
}

.edk_modal .cp_title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: #222;
}

.edk_modal .cp_bar {
    width: 38px;
    height: 3px;
    border-radius: 99px;
    background-color: var(--main, #ff6d01);
}

/* 폼 */
.edk_modal .cp_fields {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.edk_modal .cp_field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.edk_modal .cp_row {
    display: flex;
    gap: 12px;
    width: 100%;
}

.edk_modal .cp_row>.cp_field {
    flex: 1;
    min-width: 0;
}

.edk_modal .cp_label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #222;
}

.edk_modal .cp_input {
    width: 100%;
    height: 44px;
    padding: 0 11px;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background-color: #fff;
    font-size: 14px;
    color: #222;
}

.edk_modal .cp_input::placeholder {
    color: #5c6573;
}

.edk_modal .cp_date {
    cursor: pointer;
}

/* 확인 문구 / 학교 / 서명 */
.edk_modal .cp_footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.edk_modal .cp_confirm {
    width: 100%;
    padding: 16px;
    border: 1px dashed #fbd7b5;
    border-radius: 10px;
    background-color: #fffaf5;
    font-size: 14px;
    line-height: 20px;
    text-align: center;
    color: #222;
}

.edk_modal .cp_school {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    color: #222;
}

.edk_modal .cp_school strong {
    font-size: 20px;
    font-weight: 700;
}

.edk_modal .cp_school span {
    font-size: 16px;
    font-weight: 500;
}

.edk_modal .cp_signs {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.edk_modal .cp_sign {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.edk_modal .cp_sign_label {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.edk_modal .cp_sign_ink {
    font-size: 15px;
    font-weight: 500;
    color: #acafb4;
}

.edk_modal .cp_sign_nurse {
    display: inline-flex;
    align-items: center;
    gap: 24px;
}

.edk_modal .cp_sign_nurse strong {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

/* 하단 안내 */
.edk_modal .cp_notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 15px;
    border: 1px solid #ffd9bd;
    border-radius: 8px;
    background-color: #fff8f2;
}

.edk_modal .cp_notice i {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 15px;
    color: var(--main, #ff6d01);
}

.edk_modal .cp_notice p {
    font-size: 12px;
    line-height: 1.5;
    color: #5c6573;
}

/* ==================================== 학생 일괄 업로드 (bulk_student) ==================================== */
/* 안내 박스 */
.edk_modal .bs_guide {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #ffd9bd;
    border-radius: 8px;
    background-color: #fff8f2;
}

.edk_modal .bs_guide_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.edk_modal .bs_guide_head strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.26px;
    color: #222;
}

.edk_modal .bs_guide_chev {
    font-size: 16px;
    color: #5c6573;
    transition: transform 0.2s;
}

.edk_modal .bs_guide.collapsed .bs_guide_chev {
    transform: rotate(180deg);
}

.edk_modal .bs_guide.collapsed .bs_guide_list {
    display: none;
}

.edk_modal .bs_guide_list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edk_modal .bs_guide_item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.edk_modal .bs_num {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    border-radius: 100px;
    background-color: #fff1e6;
    color: var(--main, #ff6d01);
    font-size: 9px;
    font-weight: 700;
}

.edk_modal .bs_guide_item p {
    font-size: 11px;
    line-height: 1.6;
    color: #5c6573;
}

.edk_modal .bs_guide_item b {
    font-weight: 700;
    color: #222;
}

/* 힌트 */
.edk_modal .bs_hint {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #9ca3af;
}

.edk_modal .bs_hint i {
    font-size: 12px;
}

/* 엑셀 양식 다운로드 카드 */
.edk_modal .bs_dl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid #e5e8ec;
    border-radius: 8px;
    background-color: #e8f5ee;
}

.edk_modal .bs_dl_info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.edk_modal .bs_dl_icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border: 1px solid #107c41;
    border-radius: 9px;
    background-color: #e8f5ee;
    color: #107c41;
    font-size: 22px;
}

.edk_modal .bs_dl_text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.edk_modal .bs_dl_text strong {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.16px;
    color: #222;
}

.edk_modal .bs_dl_text span {
    font-size: 11px;
    letter-spacing: -0.55px;
    color: #5c6573;
}

.edk_modal .bs_dl_btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
    height: 27px;
    padding: 0 8px;
    border: 0;
    border-radius: 6px;
    background-color: #107c41;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.edk_modal .bs_dl_btn i {
    font-size: 13px;
}

/* 엑셀 파일 업로드 */
.edk_modal .bs_upload {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edk_modal .bs_up_row {
    display: flex;
    gap: 8px;
}

.edk_modal .bs_up_input {
    flex: 1;
    min-width: 0;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #e0e2e7;
    border-radius: 8px;
    background-color: #f7f8fa;
    font-size: 14px;
    color: #222;
}

.edk_modal .bs_up_input::placeholder {
    color: #5c6573;
}

.edk_modal .bs_up_btn {
    flex-shrink: 0;
    height: 44px;
    padding: 0 22px;
    border: 1px solid var(--main, #ff6d01);
    border-radius: 8px;
    background-color: #fff;
    color: var(--main, #ff6d01);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.edk_modal .bs_file {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: fit-content;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #107c41;
    border-radius: 4px;
    background-color: #fff;
}

.edk_modal .bs_file_name {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: -0.16px;
    color: #222;
}

.edk_modal .bs_file i {
    flex-shrink: 0;
    font-size: 13px;
    color: #5c6573;
    cursor: pointer;
}

/* 업로드 결과 영역 */
.edk_modal .bs_area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 17px;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    background-color: #fff;
}

.edk_modal .bs_result {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 10px;
    background-color: #fff1e6;
}

.edk_modal .bs_result_stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.edk_modal .bs_result_stat em {
    font-size: 12px;
    font-style: normal;
    color: #5c6573;
}

.edk_modal .bs_result_stat b {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.edk_modal .bs_result_stat b.ok {
    color: #0f6e56;
}

.edk_modal .bs_result_stat b.err {
    color: #e53935;
}

.edk_modal .bs_result_stat i {
    font-size: 12px;
    font-style: normal;
    color: #5c6573;
}

.edk_modal .bs_result_div {
    width: 1px;
    height: 14px;
    background-color: #e5e8ec;
}

/* 오류 리스트 */
.edk_modal .bs_errlist {
    max-height: 206px;
    overflow-y: auto;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
}

.edk_modal .bs_errrow {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 16px;
    border-left: 4px solid #e53935;
    border-bottom: 1px solid #e5e8ec;
    background-color: #fffafa;
}

.edk_modal .bs_errrow:last-child {
    border-bottom: 0;
}

.edk_modal .bs_err_line {
    flex-shrink: 0;
    padding: 4px 8px;
    border: 1px solid #fecdd3;
    border-radius: 6px;
    background-color: #fff;
    color: #dc2626;
    font-size: 11px;
    font-weight: 700;
}

.edk_modal .bs_err_msg {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    letter-spacing: -0.16px;
    color: #e53935;
}

.edk_modal .bs_err_tag {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: #fee2e2;
    color: #e53935;
    font-size: 11px;
    font-weight: 500;
}

.edk_modal .bs_err_note {
    display: flex;
    align-items: center;
    gap: 6px;
}

.edk_modal .bs_err_note i {
    flex-shrink: 0;
    font-size: 15px;
    color: var(--main, #ff6d01);
}

.edk_modal .bs_err_note p {
    font-size: 12px;
    line-height: 1.5;
    color: #5c6573;
}

/* ==================================== 학생 사진 일괄 업로드 (bulk_photo) ==================================== */
/* 파일명 규칙 안내 카드 */
.edk_modal .bp_guide {
    display: flex;
    flex-direction: column;
    gap: 9px;
    padding: 17px 19px;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
    background-color: #f7f8fa;
}

.edk_modal .bp_guide_top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edk_modal .bp_guide_title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.16px;
    color: #222;
}

.edk_modal .bp_guide_desc {
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: -0.16px;
    color: #5c6573;
}

.edk_modal .bp_guide_desc b {
    font-weight: 600;
    color: #222;
}

/* 예시 목록 */
.edk_modal .bp_examples {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edk_modal .bp_ex_row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border: 1px solid #e5e8ec;
    border-radius: 6px;
    background-color: #fff;
    font-size: 12px;
    letter-spacing: -0.16px;
}

.edk_modal .bp_ex_from {
    color: #5c6573;
}

.edk_modal .bp_ex_from b {
    font-weight: 600;
    color: #222;
}

.edk_modal .bp_ex_arrow {
    font-size: 14px;
    color: #b0b5bd;
}

.edk_modal .bp_ex_to {
    color: #222;
}

/* 업로드 영역 래퍼 */
.edk_modal .bp_upbox {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.edk_modal .bp_area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 17px;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    background-color: #fff;
}

/* 결과 요약 */
.edk_modal .bp_summary {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 14px 16px;
    border-radius: 10px;
    background-color: #fff1e6;
}

.edk_modal .bp_stat {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.edk_modal .bp_stat em {
    font-size: 12px;
    font-style: normal;
    color: #5c6573;
}

.edk_modal .bp_stat b {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.edk_modal .bp_stat b.ok {
    color: #0f6e56;
}

.edk_modal .bp_stat b.dup {
    color: #b45309;
}

.edk_modal .bp_stat b.err {
    color: #e53935;
}

.edk_modal .bp_stat i {
    font-size: 12px;
    font-style: normal;
    color: #5c6573;
}

.edk_modal .bp_sum_div {
    width: 1px;
    height: 14px;
    background-color: #e5e8ec;
}

/* 파일 리스트 */
.edk_modal .bp_list {
    max-height: 206px;
    overflow-y: auto;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
}

.edk_modal .bp_row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    border-left: 4px solid transparent;
    border-bottom: 1px solid #e5e8ec;
}

.edk_modal .bp_row:last-child {
    border-bottom: 0;
}

.edk_modal .bp_row.dup {
    border-left-color: #f59e0b;
    background-color: #fffcf5;
}

.edk_modal .bp_row.fail {
    border-left-color: #e53935;
    background-color: #fffafa;
}

.edk_modal .bp_row_info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.edk_modal .bp_row_name {
    font-size: 13px;
    letter-spacing: -0.16px;
    color: #222;
    word-break: break-all;
}

.edk_modal .bp_row_msg {
    font-size: 12px;
    letter-spacing: -0.16px;
}

.edk_modal .bp_row.dup .bp_row_msg {
    color: #b45309;
}

.edk_modal .bp_row.fail .bp_row_msg {
    color: #e53935;
}

.edk_modal .bp_row_tag {
    flex-shrink: 0;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: -0.77px;
}

.edk_modal .bp_row_tag.dup {
    background-color: #fff1cd;
    color: #b45309;
}

.edk_modal .bp_row_tag.fail {
    background-color: #fee2e2;
    color: #e53935;
}

/* 파일 업로드 버튼 (점선) */
.edk_modal .bp_upbtn {
    width: 100%;
    padding: 11px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    background-color: #fff;
    font-size: 13px;
    color: #5c6573;
    cursor: pointer;
}

.edk_modal .bp_upbtn:hover {
    border-color: var(--main, #ff6d01);
    color: var(--main, #ff6d01);
}

/* 안내 박스 */
.edk_modal .bp_alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px 15px;
    border: 1px solid #ffd9bd;
    border-radius: 8px;
    background-color: #fff8f2;
}

.edk_modal .bp_alert i {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 15px;
    color: var(--main, #ff6d01);
}

.edk_modal .bp_alert p {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    color: #5c6573;
}

/* 푸터 (좌측 안내 + 우측 버튼) */
.edk_modal .bp_footer {
    justify-content: space-between;
}

.edk_modal .bp_foot_info {
    font-size: 13px;
    letter-spacing: -0.16px;
    color: #5c6573;
}

.edk_modal .bp_foot_info b {
    font-weight: 600;
    color: #222;
}

.edk_modal .bp_foot_right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.edk_modal .bp_footer .modal_btn.confirm {
    min-width: 140px;
}

/* ==================================== 모바일 (≤767px) ==================================== */
@media screen and (max-width: 767px) {
    .edk_modal .modal_body {
        padding: 18px 16px;
    }

    .edk_modal .class_grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-left: 16px;
    }

    .edk_modal .filter_helper {
        display: none;
    }

    .edk_modal .m_row {
        gap: 8px;
    }

    .edk_modal .m_input {
        padding: 0 12px;
    }

    .edk_modal .cp_paper {
        padding: 24px 16px;
    }

    .edk_modal .cp_row {
        gap: 8px;
    }

    .edk_modal .cp_edit {
        display: none;
    }

    .edk_modal .bp_summary {
        gap: 10px 14px;
    }

    .edk_modal .bp_footer {
        flex-wrap: wrap;
        gap: 12px;
    }

    .edk_modal .bp_foot_info {
        flex: 1 1 100%;
    }

    .edk_modal .bp_foot_right {
        width: 100%;
        justify-content: flex-end;
    }

    .edk_modal .bp_foot_right .modal_btn {
        flex: 1;
    }

    .edk_modal .bp_footer .modal_btn.confirm {
        min-width: 0;
    }
}