/* -------- sub-apply -------- */

.check-group {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-weight: 500;
}

.check-item input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--Primary-dark);
    cursor: pointer;
    flex-shrink: 0;
}

.etc-input {
    width: 160px;
}


/* 본문 스타일 */
section .inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

section .inner .tit {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 600;
}

section .inner .tit::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--Primary-dark);
    flex-shrink: 0;
}

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

.writeBox .module_t {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 600;
    font-size: 1.2rem;
}

.writeBox .module_t .caption {
    font-weight: 400;
    font-size: 0.8rem;

    color: var(--Primary);
}

.writeBox .module_t .scaption {
    font-weight: 400;
    font-size: 0.88rem;
    color: var(--Greyscale6);
}

.writeBox.bb {
    padding-bottom: 24px;
    box-sizing: border-box;
    /* border-bottom: 1px solid var(--Greyscale4); */
}

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

.module_w .flex-row {
    display: flex;
    flex-direction: row;
    align-items: center;

    gap: 8px;
}

.module_w .inputField > input {
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #C3C3C3;
}

.zipcode {
    display: block;
    padding: 12px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    white-space: nowrap;
    background-color: var(--subcolor1);
    color: white;
}

.module_w .radioBox {
    display: flex;
    flex-direction: row;
    gap: 16px;
}


.inputField input.nop {
    width: 80px;
}

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

.writeWrap .writetit {
    margin-top: 16px;
    font-weight: 600;
}

/* 셀렉트박스 */
.selectWrap {
    width: 100%;
}

.selectWrap .selectBox {
    width: 100%;
    padding: 12px 14px;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #C3C3C3;
    box-sizing: border-box;
    background-color: transparent;

    /* color: var(--Greyscale6); */
    background-image: url(../images/common/ico_arrow_drop_down.svg);
    background-repeat: no-repeat;
    background-position: right center;
}

.selectWrap .selectBox .option {
    color: var(--Greyscale6);
    font-size: 0.9rem;
}

.selectWrap.disabled .selectBox {
    background-color: var(--Greyscale3);
}


/* 추가 업로드 버튼 */
.btnWrap {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
}

.addBtn img {
    filter: brightness(0) invert(1);
}

.addBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 180px;
    position: relative;
    padding: 16px 24px;
    border-radius: 8px;
    color: #ffffff;
    box-sizing: border-box;
    font-weight: 600;
    background: var(--subcolor1);
}

/* 파일 업로드 인풋 */
.uploadfield {
    display: flex;
    flex-direction: column;
    gap: 24px;

    font-size: 0.9rem;
}

.uploadfield ul li {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--Stroke);
    box-sizing: border-box;
}

.uploadfield ul li label {
    padding: 4px 8px;
    border-radius: 4px;
    box-sizing: border-box;
    color: white;
    background-color: var(--subcolor1);
    min-width: 140px;
    text-align: center;
}

input[type="file"] {
    position: absolute;
    margin: -1px;
    width: 1px;
    height: 1px;
    font-size: initial;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.uploadfield ul li span {
    display: block;
    width: 100%;
    padding: 4px 8px;
    box-sizing: border-box;
    color: var(--Greyscale6);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-delete {
    width: 32px;
    height: 32px;
    padding: 4px;
    /* border: 1px solid var(--Primary); */
    border-radius: 4px;
    box-sizing: border-box;
    background: url(../images/common/ico_delete_white.svg) center no-repeat;
    background-color: var(--subcolor1);
}

/* secton sc-note */
.sc-note .inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sc-note .notebox {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    border-radius: 8px;

    font-weight: 600;
    /* background-color: var(--Primary); */
}

.sc-note .notebox button {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    padding: 16px 0;
    box-sizing: border-box;
    border-radius: 8px;
    font-size: 1.05rem;
    color: white;
    background-color: var(--subcolor1);
    z-index: 1;
}

/* 유의사항 토글 */
.noteBtn:focus {
    outline: none;
}

.note_answer {
    display: none;

    position: relative;
    top: -4px;

    padding: 24px;
    box-sizing: border-box;
    border: 1px solid var(--Greyscale4);

    font-weight: 500;

    background-color: var(--Greyscale0);
}

.note_txt {
    padding: 4px 0;
    box-sizing: border-box;
}

.note_txt::before {
    content: "";

    display: block;
    position: relative;
    top: 16px;
    left: -12px;

    width: 6px;
    height: 6px;

    border-radius: 12px;
    background-color: var(--Primary);
}

.note_txt .color {
    color: var(--Primary-dark);
    font-weight: 600;
}


/* secton sc6 */
.personalInfoBox {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 24px;
    border: 1px solid var(--Stroke);
    border-radius: 16px;
    box-sizing: border-box;
}

.personalInfo {
    padding: 16px;
    border: 1px solid var(--Stroke);
    border-radius: 16px;
    box-sizing: border-box;
    background-color: var(--Greyscale0);

    font-size: 0.9rem;
    overflow-y: scroll;
}

.personalInfo.fixed-h {
    height: 320px;
}

.personalInfoBox .checkBox {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;

    font-size: 0.9rem;
}

.sc6 .checkBox {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 1px solid var(--Primary);
    box-sizing: border-box;
    position: relative;
    appearance: none;
    border-radius: 2px;
    cursor: pointer;
    border-radius: 5px;
}

input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: url(../images/common/ico_check.svg) center / contain no-repeat;
    opacity: 0;
}

input[type="checkbox"]:checked::before {
    background: url(../images/common/ico_check_white.svg) center / contain no-repeat;
    opacity: 1;
}

.agree {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 24px 0;
    box-sizing: border-box;
    text-align: center;
    color: var(--Greyscale9);
    font-weight: 500;
}

.submitbtnWrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;

    width: 100%;

    margin-top: 24px;
}

.submitbtnWrap button {
    /* width: 100%; */
    padding: 15px 45px;
    box-sizing: border-box;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    background-color: var(--subcolor1);
}

.submitbtnWrap .cancle {
    border: 2px solid var(--Primary);
    color: var(--Primary);
    background-color: white;
}

.datepicker-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.datepicker-wrap .datepicker {
    width: 100%;
    padding-right: 40px;
}

.datepicker-wrap .ico-calendar {
    position: absolute;
    right: 10px;
    width: 20px;
    height: 20px;
    pointer-events: none;
    filter: brightness(0) invert(1) brightness(0.87);
}

.date-row {
    display: flex;
    flex-direction: row;
    gap: 16px;
}

.date-row .writeBox {
    flex: 1;
}

.datepicker {
    position: relative;
    cursor: pointer;
    padding: 12px 14px;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid #C3C3C3;
    box-sizing: border-box;
    background-color: transparent;
}

@media screen and (max-width: 960px) {
    .coninner {
        padding: 56px 16px;
    }

    .addBtn {
        width: 150px;

        padding: 12px;
        border-radius: 8px;
        box-sizing: border-box;

        font-size: 0.9rem;
        font-weight: 600;
        color: #ffffff;
    }

    section .inner .tit {
        font-size: 1.1rem;
    }

    .sc6 .checkBox {
        justify-content: center;
        margin-bottom: 30px;
    }
}

@media screen and (max-width: 480px) {
    section .inner .tit {
        font-size: 1rem;
    }
}

@media screen and (max-width: 440px) {
    .writeBox .module_t {
        font-size: 1rem;
    }

    section .inner {
        gap: 16px;
    }

    .personalInfoBox {
        padding: 14px;
    }

    .submitbtnWrap {
        gap: 8px;
        margin-top: 16px;
    }

    .submitbtnWrap button {
        padding: 12px 24px;
    }

    .modal-content {
        padding: 20px 16px;
        gap: 16px;
    }
}



/* ---------------- sub-adjustment ---------------- */

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

.tit-caption {
    display: block;
    font-size: 0.8rem;
    color: var(--subcolor1);
}



/* ---------------- sub-apply-check ---------------- */
.acheckWrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    gap: 16px;

    width: 640px;
    margin: 0 auto;
    padding: 24px 56px;
    box-sizing: border-box;
    border: 1px solid var(--Greyscale2);
    border-radius: 8px;
}

.acheck-header {
    font-size: 1.1rem;
    font-weight: 600;
}

.acheck-body {
    width: 100%;
}

.acheck-body .module_t {
    margin-bottom: 4px;
    font-weight: 600;
    font-size: 0.9rem;
}

button.confirm {
    width: 100%;
    padding: 16px 0;
    box-sizing: border-box;
    border-radius: 8px;

    font-weight: 600;
    color: white;
    background-color: var(--subcolor1);
}

@media screen and (max-width: 960px) {
    .acheckWrap {
        width: 100%;
        padding: 24px 16px;
    }
}



/* ---------------- sub-apply-check-list ---------------- */

/* tab-contents */
.tab {
    display: flex;
    flex-direction: row;
    align-items: center;
    box-sizing: border-box;
    border-bottom: 2px solid var(--subcolor1);
}

.tabBtn a {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 0.625rem;
    font-size: 1rem;
    font-weight: 500;

    color: var(--Greyscale5);
}

.tab .tabBtn {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: var(--Greyscale0);
}

.tab .tabBtn.active {
    background: var(--subcolor1);
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
}

.tab .tabBtn.active a {
    color: white;
    font-weight: 700;
}

.tabConItem {
    display: none;
}

.tabConItem.active {
    display: block;
}

@media (max-width: 960px) {    
    .tab {
        width: 100%;
    }

    .tab .tabBtn {
        width:  100%;
    }
}

/* table */
.board tbody tr td a {
    display: block;
    width: 100%;
    text-decoration: underline;
}

.board tbody tr td .setbadge {
    width: 100px;
    padding: 8px 4px;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9rem;
    margin: 0 auto;
    background-color: var(--Greyscale2);
}

.setbadge.approve {
    color: white;
    background-color: var(--Primary-dark) !important;
}
.setbadge.return {
    background-color: var(--Greyscale3) !important;
}
.setbadge.progress {
    color: white;
    background-color: #7a9f9a !important;
}

.border-none {
    border-top: 0 !important;
}
/* 테이블 고정형 */
.table-cont {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
}

@media screen and (max-width: 1200px) {
    .table-cont table {
        min-width: 1100px;
    }
}

.board thead tr th {
    font-size: 16px;
    padding: 10px 8px;
}

.board tbody tr td {
    font-size: 16px;
    padding: 10px 8px;
}

.board tbody tr td .setbadge {
    width: auto;
    min-width: 56px;
    padding: 6px 8px;
    font-size: 14px;
}

/* ---------------- apply-check-in ---------------- */
.listbtnWrap {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 100%;
    margin-top: 48px;
}

.listbtnWrap .backlist {
    width: 200px;

    padding: 16px;
    border-radius: 8px;
    border: 2px solid var(--Primary);
    box-sizing: border-box;

    font-size: 0.9rem;
    font-weight: 600;
    color: var(--Primary);
}

.submitbtnWrap .backlist {
    width: 100%;
    padding: 16px;
    border-radius: 8px;
    /* border: 2px solid var(--Primary); */
    box-sizing: border-box;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background-color: #333;
}

@media (max-width: 960px) {    
    .listbtnWrap .backlist {
        width: 140px;
    }
}


/* 로딩 스피너 */
.loadingOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 2000;
}

.loadingOverlay.active {
    display: flex;
}

.spinner {
    width: 52px;
    height: 52px;
    border: 5px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-txt {
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* 안내/신청완료 모달팝업 공통 */
.noticeModal,
.applyModal {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.applyModal.active,
.noticeModal.active {
    display: flex;
}

.noticeModal .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    background-color: rgba(0, 0, 0, 0.5);
}

.noticeModalClose {
    padding: 8px 30px;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: var(--subcolor1);
    color: white;
    font-weight: 600;
}

.modal-content.active {
    transform: translateY(0);
}

.applyModal .overlay {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;

    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 640px;
    max-height: 80vh;
    margin-top: 0;
    padding: 30px 30px;
    border-radius: 11px;
    box-sizing: border-box;
    background-color: white;
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}

.modal-tit {
    font-size: 1.1rem;
    font-weight: 600;
}

.modal-body {
    font-size: 0.9rem;
    text-align: center;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.modal-footer {
    /* display: flex; */
    /* width: 100%; */
    /* justify-content: flex-end; */
}

.receipt-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.copy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--subcolor1);
    background-color: transparent;
    border: 1.5px solid var(--subcolor1);
    flex-shrink: 0;
    transition: background-color 0.15s, color 0.15s;
}

.copy-btn:hover {
    background-color: var(--subcolor1);
    color: white;
}

.copy-btn.copied {
    background-color: var(--subcolor1);
    color: white;
}

.modalClose {
    /* width: 80px; */
    padding: 8px 30px;
    border-radius: 6px;
    box-sizing: border-box;
    background-color: var(--subcolor1);
    color: white;
    font-weight: 600;
}

body.noscroll {
    overflow: hidden;
}

@media (max-width: 960px) {
    .modal-content {
        width: 90%;
        max-height: 90vh;
    }
}
@media (max-width: 600px) {
    .modal-content {
        padding: 30px 15px;
        gap: 12px;
        max-height: 75vh;
    }
    .modal-body{
        max-height: 350px;
        overflow: scroll;
    }
}