.modal_wrap {width: 100vw; height: 100vh; z-index: 500; position: fixed; top: 0; left: 0; background: rgba(0, 0, 0, .2);}
.modal_container {position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);}

.modal_box {background-color: #fff; width: 40vw; padding: 40px;}

.modal_title {display: flex; align-items: center; justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #666; margin-bottom: 15px;}
.modal_title span {font-size: 24px; font-weight: 600;}
.modal_title .close {display: block; width: 25px; height: 25px; background: url(https://pomesoft-s3.s3.ap-northeast-2.amazonaws.com/pomesoft/_uploads/NEUTINAMU/publishing/168168314821887.png) no-repeat center/contain; cursor: pointer;}

.modal_box .text_box {background-color: #f8f8f8; padding: 20px; font-size: 16px; line-height: 1.4; word-break: keep-all; height: 30vh; overflow-y: auto; max-height: 450px;}


.modal_box .btn_box {justify-content: center; padding-top: 20px;}
.modal_box .btn_box .st1 {background-color: #555; color: #fff;}
.modal_box .btn_box .st2 {border: 1px solid #555; color: #555;}


.modal_wrap input[type="file"] {border: 1px solid #ccc; padding: 12px; width: 100%; background-color: #fff; cursor: pointer; font-size: 16px;}
.modal_wrap input[type="file"]::file-selector-button {cursor: pointer; font-family: inherit; font-size: 14px; border-radius: 0; border: 1px solid #aaa; color: #666; padding: 4px 10px;}
.modal_wrap textarea {resize: none; outline: none; padding: 10px; font-size: 16px; line-height: 1.4; word-break: keep-all; border: 1px solid #ccc; border-radius: 0; width: 100%; height: 15vh; overflow-y: auto;}
.modal_wrap textarea:focus {border-color: #888;}


/* 모달 : 알림 */
.modal_wrap.alert {z-index: 520;}
.modal_wrap.alert .modal_box {width: 25vw; min-width: 260px;}
.modal_wrap.alert .text_box {background-color: #fff; padding: 20px 0; height: auto;}


/* 모달 : 리스트 */
.modal_wrap.list .modal_box {width: 50vw;}
.modal_wrap.list .modal_title {border-bottom: none; margin-bottom: 0;}
.md_list .address_box {display: flex; flex-direction: column; align-items: flex-start;}

.md_list .list .list_con:nth-of-type(1) {width: 30%;}
.md_list .list .list_con:nth-of-type(2) {width: 50%;}
.md_list .list .list_con:nth-of-type(3) {width: 20%;}

.modal_wrap.list .modal_box .btn_box {padding-top: 0;}


/* 모달 : 파일업로드 */
.md_file {width: 100%;}
.md_file .form_box {display: flex; flex-direction: column;}
.md_file dl {display: flex; border-bottom: 1px solid #ddd;}
.md_file dt {width: 100px; padding: 15px 0; display: flex;}
.md_file dd {width: calc(100% - 100px); padding: 15px 0; display: flex; flex-wrap: wrap;}
.md_file dd button {word-break: keep-all; background-color: #eee; color: #555; border: 1px solid #999; padding: 4px 12px; font-size: 12px;}
.md_file dd .file_upload {display: flex; flex-direction: column; width: 100%;}
.sub_txt {font-size: 14px; color: #888; padding: 6px 0 15px;}
.sub_txt.txt_rt {text-align: right;}
.sub_txt.no_pt {padding-top: 0;}
.sub_txt.cst1 {padding-top: 0; margin-top: -5px; padding-bottom: 10px;}

/* 모달 : 디자인 발주서 상세내용보기 */
.md_file.view .form_box .tit {display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; padding-bottom: 10px;}
.md_file.view .form_box .tit em {display: block; width: 20px; height: 20px; background: url(https://pomesoft-s3.s3.ap-northeast-2.amazonaws.com/pomesoft/_uploads/NEUTINAMU/publishing/168176159576860.png) no-repeat center/contain;}

/* .md_file.view .form_box {padding: 20px;} */
.md_file.view .form_box.send {margin-bottom: 15px;
    /* background-color: #f6f6f6; */
}
.md_file.view .form_box.reply {border: 1px solid #ccc;}
.md_file .file_list {display: flex; flex-direction: column; gap: 8px;}
.md_file .file_list .file_con {display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
.md_file .file_list .file_con .file {font-size: 14px;}


/* 모달 : 장바구니 담기 */
.modal_wrap.cart .modal_box {width: 60vw;}
.modal_wrap.cart .detail_box {padding-bottom: 0;}



/* 모달 : 수량별 할인가 */
.modal_box.rate .discount_rate {overflow-y: auto; max-height: 40vh; padding: 0 0 15px; width: 100%; border-bottom: 1px solid #eee;}
.modal_box.rate .discount_rate::-webkit-scrollbar {width: 6px;}
.modal_box.rate .discount_rate::-webkit-scrollbar-thumb {border-radius: 2px; background-color: #aca8a5; background-clip: padding-box; border-left: 2px solid transparent;}
.modal_box.rate .discount_rate::-webkit-scrollbar-track {background-color: transparent;}
.modal_box.rate .discount_rate .discount_table {display: flex;}
.modal_box.rate .discount_rate .rate_table {width: 100%; display: flex; flex-direction: column; border: 1px solid #dad5d1;}
.modal_box.rate .discount_rate dl {display: flex; align-items: center; text-align: center; border-bottom: 1px solid #dad5d1; font-size: 14px;}
.modal_box.rate .discount_rate dl:last-child {border-bottom: none;}
.modal_box.rate .discount_rate dl.head {background-color: #dad5d1;}
.modal_box.rate .discount_rate dt {width: 50%; padding: 8px 0; border-right: 1px solid #cdc7c1;}
.modal_box.rate .discount_rate dd {width: 50%; padding: 8px 0;}


/* 모달 : 쿠폰 */
.modal_box.coupon {width: 70vw; max-height: 95vh; overflow-y: auto;}
.modal_box.coupon .md_tit {font-size: 18px; font-weight: 600; padding-bottom: 10px;}
.modal_box.coupon .coupon_enter {padding: 10px; gap: 10px; margin-bottom: 15px;}
.modal_box.coupon .coupon_enter span {font-size: 14px;}
.modal_box.coupon .discription {margin-bottom: 0; padding: 12px 15px; margin-top: 15px;}
.modal_box.coupon .discription .txt .txt_list dt {font-size: 15px; padding-bottom: 6px;}
.modal_box.coupon .discription .txt .txt_list dd {font-size: 14px;}
.modal_box.coupon .md_coupon_use {margin-top: 20px;}

.modal_box.coupon .form_list .res_box {display: flex; width: 100%; position: relative;}
.modal_box.coupon .form_list .res_box .list_con:nth-of-type(1) {width: 40%;}
.modal_box.coupon .form_list .res_box .list_con:nth-of-type(2) {width: 15%;}
.modal_box.coupon .form_list .res_box .list_con:nth-of-type(3) {width: 25%;}
.modal_box.coupon .form_list .res_box .list_con:nth-of-type(4) {width: 10%;}
.modal_box.coupon .form_list .res_box .list_con:nth-of-type(5) {width: 10%;}
.modal_box.coupon .form_list .list .list_con {padding: 6px;}
.modal_box.coupon .nice-select {height: 36px; line-height: 36px;}
/* .modal_box.coupon .md_coupon {max-height: 80vh; overflow-y: auto;} */

.modal_box.coupon .md_coupon_use .form_list .res_box {display: flex; width: 100%;}
.modal_box.coupon .md_coupon_use .form_list .res_box .list_con:nth-of-type(1) {width: 35%;}
.modal_box.coupon .md_coupon_use .form_list .res_box .list_con:nth-of-type(2) {width: 20%;}
.modal_box.coupon .md_coupon_use .form_list .res_box .list_con:nth-of-type(3) {width: 30%;}
.modal_box.coupon .md_coupon_use .form_list .res_box .list_con:nth-of-type(4) {width: 15%;}



/* -------- 메인 : 팝업 -------- */
.modal_popup {width: 90vw; top: 50%; left: 50%; transform: translate(-50%, -50%); position: absolute; height: 90vh; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 50px; overflow-y: auto;}
.popup_con {display: flex; flex-direction: column;}
.popup_con .popup_img {aspect-ratio: 1/1; width: 100%; cursor: pointer;}
.popup_con .popup_img img {width: 100%; height: 100%; display: block; object-fit: cover;}
.popup_con .pop_btn {display: flex; padding: 10px 12px; justify-content: space-between; width: 100%; background: #6c635b;}
.popup_con .pop_btn label, .popup_con .pop_btn input[type="checkbox"]:checked + label  {color: #fff; font-size: 16px;}
.popup_con .pop_btn button {font-size: 16px; color: #fff; padding: 4px; line-height: 1;}
.popup_con .pop_btn input[type="radio"]:checked + label::after, .popup_con .pop_btn input[type="checkbox"]:checked + label::after {border-color: #aaa;}


/* 팝업 : 견적서 */
/* .wrap.docu p, .wrap.docu span, .wrap.docu dt, .wrap.docu dd, .wrap.docu div, .wrap.docu td {font-family: initial !important;} */
.docu_wrap {padding: 0 20px 20px;}
.docu_wrap .title {font-size: 36px; text-align: center; padding: 20px 0; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_top {display: flex; align-items: flex-start; justify-content: space-between; width: 100%;}
.docu_receive {border: 1px solid #555; padding: 20px 10px; width: 45%; display: flex; flex-direction: column; gap: 5px;}
.docu_receive dl {display: flex; align-items: center; font-size: 16px; gap: 8px; font-family: '맑은 고딕', 'Malgun Gothic', Dotum; justify-content: space-between;}
.docu_receive dt {width: 80px; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_receive dd {
    /* width: calc(100% - 80px); */
    font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_receive dd span {font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_receive input[type="text"] {outline: none; border: 1px solid #555; border-radius: 3px; padding: 6px; font-size: 16px; margin-right: 4px; text-align: right; font-family: '맑은 고딕', 'Malgun Gothic', Dotum; width: min-content !important;}

.docu_send {width: 53%; border: 1px solid #555; display: flex;}
.docu_send .tit_send {display: flex; width: 30px; text-align: center; font-size: 18px; align-items: center; padding: 2px; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_send .send_info {border-left: 1px solid #555; width: calc(100% - 30px);}
.docu_send .send_info ul {display: flex; flex-direction: column;}
.docu_send .send_info dl {display: flex; align-items: stretch; width: 100%; border-bottom: 1px solid #555; font-size: 14px; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_send .send_info li:last-child dl {border-bottom: none;}
.docu_send .send_info li.db {display: flex;}
.docu_send .send_info li.db dl {width: 50%;}
.docu_send .send_info dt {width: 60px; border-right: 1px solid #555; display: flex; align-items: center; justify-content: center; background: #f3f3f3; color: #000; font-weight: 600; padding: 4px; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_send .send_info dd {width: calc(100% - 60px); color: #000; display: flex; align-items: center; padding: 4px; word-break: keep-all; line-height: 1.3; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_send .send_info li.db dl:last-child dt {border-left: 1px solid #aaa;}

.docu_sub {width: 100%; border-top: 1px dashed #ddd; display: flex; justify-content: flex-end; margin: 20px 0; padding-top: 5px;}
.docu_sub span {font-size: 14px; text-align: right; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}


.docu_table {border: 1px solid #555;}
.estimate_price {border-bottom: 1px solid #555;}
.estimate_price dl {display: flex; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.estimate_price dt {border-right: 1px solid #555; line-height: 1.3; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6px; color: #000; font-weight: 600; width: 155px; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.estimate_price dd {display: flex; align-items: center; justify-content: center; gap: 10px; width: calc(100% - 155px); font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.estimate_price dd span {font-weight: 600; color: #000; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.estimate_price dd .price_num {display: flex; align-items: center; gap: 30px; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}

.table_box table {width: 100%;}
.table_box thead {background-color: #f3f3f3; border-bottom: 1px solid #555;}
.table_box thead td {text-align: center; font-weight: 600; padding: 6px !important; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.table_box td {font-size: 14px; border-right: 1px solid #555; padding: 6px; text-align: left; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.table_box td:nth-of-type(1) {text-align: center; width: 60px;}
.table_box td:last-child {border-right: none}
.table_box .txt_ct {text-align: center; }
.table_box .txt_rt {text-align: right;}
.table_box tr {border-bottom: 1px solid #555;}
.table_box tr:last-child {border-bottom: none;}
.table_box .bg {background-color: #f3f3f3; font-weight: 600;}
.table_box tr:last-child td {padding: 20px 6px;}

.docu_account {border: 1px solid #555; margin-top: 10px;}
.docu_account dl {display: flex; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_account dt {background-color: #f3f3f3; line-height: 1.3; font-weight: 600; width: 60px; text-align: center; padding: 6px; font-size: 14px; border-right: 1px solid #555; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}
.docu_account dd {padding: 6px; display: flex; align-items: center; font-size: 14px; font-family: '맑은 고딕', 'Malgun Gothic', Dotum;}

.docu_wrap + .btn_box {margin: 30px 0;}

/* 인쇄내용 설정버튼 (0919 추가) */
.print_type {display: flex; padding: 20px 0 0; align-items: center; gap: 10px;}
.print_type span {font-size: 15px; padding: 12px 20px; color: #666; border: 1px solid #ddd; background-color: #f7f7f7; line-height: 1; cursor: pointer;}
.print_type span.on {color: #fff; background-color: #725a45; border-color: #725a45;}
 



/* 팝업: 견적서 - 인쇄처리 */
@media print {
    body {background: #fff; color: #000; font-size: 10pt; line-height: 150%; margin: 0px;}
    
    * { -webkit-print-color-adjust: exact; print-color-adjust: exact;/* 인쇄 시, background속성(background-image, background-color)를 강제로 보이게 지정 */
        font-family: '맑은 고딕', 'Malgun Gothic', Dotum;
    } 

    @page {margin:0; size: A4;}

    .print_type {display: none;}

    .docu_wrap .title {font-size: 14px; padding-bottom: 10px;}
    .docu_receive {gap: 0; padding: 10px; width: 30%; min-width: max-content;}
    .docu_receive dl, .docu_receive dl span {font-size: 9px;}
    .docu_receive dd {width: auto;}
    .docu_receive input[type="text"] {border: none; padding: 0; margin-right: 2px; font-size: 10px; width: inherit; margin-top: -4px;}
    .docu_receive dt {width: 50px;}

    .estimate_price dt, .estimate_price dd {font-size: 10px;}

    .docu_send {width: 66%;}
    .docu_send .tit_send {font-size: 11px; width: 20px;}
    .docu_send .send_info dl {font-size: 9px;}
    .docu_send .send_info dt {padding: 0;}
    .docu_sub {margin: 10px 0; padding-top: 2px;}
    .docu_sub span {font-size: 8px;}
    .table_box tr {min-height: 24px; height: 24px; max-height: fit-content;}
    .table_box td {font-size: 9px; padding: 2px;}
    .table_box tr:last-child td {padding: 2px !important;}
    .table_box thead td {padding: 2px !important;}
    .docu_account dt, .docu_account dd {font-size: 10px;}

    .docu_wrap + .btn_box {display: none;}
    
}




/* -------- 1280px -------- */ 
@media screen and (max-width: 1280px)  {
    .modal_wrap.alert .modal_box {padding: 30px; width: 40vw;}

    .modal_wrap.file_upload .modal_box {width: 80vw;}

    .modal_box.coupon {width: 95vw;}

}

/* -------- 1080px -------- */ 
@media screen and (max-width: 1080px)  {
    .modal_box {width: 90vw; padding: 25px;}
    .modal_box .text_box {padding: 15px;}
    .modal_wrap.coupon .form_list .list .list_con span {font-size: 14px;}
    .modal_box.coupon .form_list .list .list_con {font-size: 14px;}


    .modal_popup {grid-template-columns: 1fr 1fr;}
    .popup_con .pop_btn label, .popup_con .pop_btn input[type="checkbox"]:checked + label {font-size: 14px; padding-left: 30px;}
    .popup_con .pop_btn button {font-size: 14px;}
    .popup_con .pop_btn input[type="checkbox"] + label::before, .popup_con .pop_btn input[type="radio"] + label::before {width: 20px; height: 20px;}
    .popup_con .pop_btn input[type="checkbox"] + label::after, .popup_con .pop_btn input[type="radio"] + label::after {width: 20px; height: 20px;}
}



/* -------- 850px -------- */ 
@media screen and (max-width: 850px)  {
    .modal_box .btn_box {padding-top: 10px;}
    .modal_box .btn_box button {padding: 10px 24px; font-size: 15px;}

    .modal_title {padding-bottom: 10px; margin-bottom: 10px;}
    .modal_title span {font-size: 18px;}
    .modal_wrap.alert .modal_box {padding: 20px; width: 90vw;}
    .modal_box .text_box {font-size: 15px;}


    .modal_popup {grid-template-columns: 1fr;}

    .modal_wrap.alert .modal_box {width: 95vw;}


    .modal_wrap.file_upload .modal_box {width: 95vw;}
    .md_file dl {flex-direction: column; align-items: flex-start;}
    .md_file dd {padding: 0 0 12px; width: 100%;}
    .md_file dt {font-size: 15px; padding: 12px 0;}
    .sub_txt {padding: 5px 0; font-size: 13px;}


    /* .modal_wrap.terms {width: 90vw;} */


    /* 보유쿠폰내역 */
    .modal_box.coupon .form_list .res_box {flex-wrap: wrap; padding: 20px 0 10px;}
    .modal_box.coupon .form_list .list.tit .res_box {padding: 0;}
    .modal_box.coupon .form_list .list.tit .res_box .list_con:nth-of-type(1) {display: none;}
    .modal_box.coupon .form_list .list.tit .res_box .list_con:nth-of-type(3) {display: none;}
    .modal_box.coupon .form_list .list.tit .res_box .list_con:nth-of-type(4) {display: none;}
    .modal_box.coupon .form_list .list.tit .res_box .list_con:nth-of-type(5) {display: none;}
    .modal_box.coupon .form_list .list.tit .res_box .list_con:nth-of-type(2) {justify-content: center; text-align: center; width: 100%;}
    .modal_box.coupon .form_list .res_box .list_con:nth-of-type(1) {width: 100%; justify-content: flex-start; padding: 0 6px;}
    .modal_box.coupon .form_list .res_box .list_con:nth-of-type(2) {width: 100%; justify-content: flex-start; padding: 0 6px;}
    .modal_box.coupon .form_list .list.tit .res_box .list_con:nth-of-type(2) {padding: 10px 6px;}
    .modal_box.coupon .form_list .res_box .list_con:nth-of-type(3) {width: 100%; justify-content: flex-start;}
    .modal_box.coupon .form_list .res_box .list_con:nth-of-type(4) {width: 100%; justify-content: flex-start; padding: 0 6px;}
    .modal_box.coupon .form_list .res_box .list_con:nth-of-type(5) {width: 100%; justify-content: flex-end; position: absolute; top: 0; right: 0;}
    .modal_box.coupon .form_list .res_box .num_coupon {font-weight: 600;}
    .modal_box.coupon .form_list .res_box .list_con span {position: relative;}
    .modal_box.coupon .form_list .res_box .list_item {padding-left: 60px; line-height: 1;}
    .modal_box.coupon .form_list .res_box .list_item::before {content: "적용품목 : ";position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: 14px;}
    .modal_box.coupon .form_list .res_box .sale_coupon {padding-left: 70px; line-height: 1;}
    .modal_box.coupon .form_list .res_box .sale_coupon::before {content: "할인액(률) : ";position: absolute; top: 50%; left: 0; transform: translateY(-50%); font-size: 14px;}

    /* 쿠폰선택 */
    .modal_box.coupon .md_coupon_use .form_list .res_box {position: relative;}
    .modal_box.coupon .md_coupon_use .form_list .list.tit .res_box .list_con:nth-of-type(1) {display: block; width: 100%; justify-content: center; text-align: center;}
    .modal_box.coupon .md_coupon_use .form_list .list.tit .res_box .list_con:nth-of-type(2) {display: none;}
    .modal_box.coupon .md_coupon_use .form_list .list.tit .res_box .list_con:nth-of-type(3) {display: none;}
    .modal_box.coupon .md_coupon_use .form_list .list.tit .res_box .list_con:nth-of-type(4) {display: none;}

    .modal_box.coupon .md_coupon_use .form_list .res_box .list_con:nth-of-type(1) {width:50%;}
    .modal_box.coupon .md_coupon_use .form_list .res_box .list_con:nth-of-type(2) {width: 50%; position: absolute; top: 20px; right: 0; justify-content: flex-end;}
    .modal_box.coupon .md_coupon_use .form_list .res_box .list_con:nth-of-type(3) {width: 100%; justify-content: flex-end;}
    .modal_box.coupon .md_coupon_use .form_list .res_box .list_con:nth-of-type(4) {width: 100%; justify-content: flex-end; padding-top: 4px;}
    .modal_box.coupon .nice-select {width: 100%;}

    .modal_box.coupon .md_coupon_use .form_list .res_box .num_coupon {font-size: 15px;}
}