/* ============================================================
   스드메 견적서 리뉴얼 (/sdmFrendly) 견적서 모달 스타일
   색상 토큰은 기존 사이트 팔레트만 사용한다 (신규 색 추가 금지)
   ============================================================ */
.qf-sheet {
    --cream: #FAF8F5;
    --beige: #F3EDE3;
    --beige-soft: #F8F4EE;
    --pink-note: #FDF3EF;
    --tan: #D9C4AC;
    --tan-strong: #C2A17A;
    --brown: #A0785A;
    --brown-deep: #8A6242;
    --ink: #2A2724;
    --ink-mid: #6B655E;
    --ink-soft: #948D84;
    --line: #E7E0D6;
    --red: #D9483B;
    --black: #16130F;

    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(60, 45, 30, .13);
    color: var(--ink);
    text-align: left;
}

/* ── 모달 헤더 ─────────────────────────── */
.qf-sheet .qf-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 26px 32px 20px;
    border-bottom: 1px solid var(--line);
}
.qf-sheet .qf-title {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.5px;
    color: var(--ink);
}
.qf-sheet .qf-sub {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--ink-soft);
}
.qf-sheet .qf-xbtn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #F1EDE7;
    border: 0;
    font-size: 17px;
    color: var(--ink-mid);
    cursor: pointer;
    flex: none;
}

.qf-sheet .qf-pad {
    padding: 0 32px;
}
.qf-sheet .qf-sec {
    padding: 30px 0;
    border-bottom: 1px solid var(--line);
}
.qf-sheet .qf-sec:last-child {
    border-bottom: 0;
}
.qf-sheet .qf-eyebrow {
    display: flex;
    align-items: baseline;
    gap: 9px;
    margin: 0 0 4px;
    flex-wrap: wrap;
}
.qf-sheet .qf-eyebrow b {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.3px;
    color: var(--ink);
}
.qf-sheet .qf-eyebrow span {
    font-size: 12.5px;
    color: var(--ink-soft);
    font-weight: 500;
}
.qf-sheet .qf-lead {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: var(--ink-mid);
    line-height: 1.65;
}
.qf-sheet .qf-cap {
    margin: 14px 0 0;
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.7;
}

/* ── A. 최종 금액 ──────────────────────── */
.qf-sheet .qf-total-card {
    background: var(--beige);
    border: 1px solid var(--tan);
    border-radius: 14px;
    padding: 26px 28px;
}
.qf-sheet .qf-total-label {
    font-size: 13.5px;
    color: var(--brown-deep);
    font-weight: 700;
    letter-spacing: -.2px;
}
.qf-sheet .qf-total-num {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 8px 0 4px;
}
.qf-sheet .qf-total-num strong {
    font-size: 46px;
    font-weight: 800;
    color: var(--brown-deep);
    letter-spacing: -2px;
    line-height: 1;
}
.qf-sheet .qf-total-num em {
    font-style: normal;
    font-size: 13px;
    color: var(--brown);
    font-weight: 600;
}
.qf-sheet .qf-total-note {
    font-size: 14.5px;
    color: var(--ink-mid);
    margin: 10px 0 0;
    line-height: 1.6;
}
.qf-sheet .qf-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}
.qf-sheet .qf-split > div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px;
}
.qf-sheet .qf-split p {
    margin: 0;
    font-size: 12.5px;
    color: var(--ink-soft);
    font-weight: 600;
}
.qf-sheet .qf-split b {
    display: block;
    margin-top: 5px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.6px;
    color: var(--ink);
}
.qf-sheet .qf-split small {
    display: block;
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--ink-soft);
    font-weight: 500;
}
.qf-sheet .qf-list-price {
    display: flex;
    gap: 14px;
    margin-top: 10px;
    font-size: 12.5px;
    color: var(--ink-soft);
}

/* ── B. 지불 타임라인 ─────────────────── */
.qf-sheet .qf-rail {
    position: relative;
    margin: 4px 0 0;
    padding-left: 30px;
}
.qf-sheet .qf-rail:before {
    content: "";
    position: absolute;
    left: 7px;
    top: 12px;
    bottom: 26px;
    width: 2px;
    background: linear-gradient(var(--tan), var(--line));
}
.qf-sheet .qf-stop {
    position: relative;
    padding: 0 0 22px;
}
.qf-sheet .qf-stop:before {
    content: "";
    position: absolute;
    left: -30px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--tan-strong);
    box-sizing: border-box;
}
.qf-sheet .qf-stop.now:before {
    background: var(--brown);
    border-color: var(--brown);
}
.qf-sheet .qf-stop.onsite:before {
    border-style: dashed;
    border-color: var(--tan-strong);
    border-width: 2px;
}
.qf-sheet .qf-stop-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.qf-sheet .qf-stop-when {
    font-size: 12.5px;
    color: var(--brown);
    font-weight: 700;
}
.qf-sheet .qf-stop-name {
    font-size: 15.5px;
    font-weight: 700;
    margin: 2px 0 0;
    color: var(--ink);
}
.qf-sheet .qf-stop-amt {
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -.6px;
    white-space: nowrap;
    color: var(--ink);
}
.qf-sheet .qf-stop-desc {
    margin: 6px 0 0;
    font-size: 12.5px;
    color: var(--ink-mid);
    line-height: 1.6;
}
.qf-sheet .qf-onsite-list {
    margin: 9px 0 0;
    padding: 12px 14px;
    background: var(--beige-soft);
    border-radius: 9px;
    border: 1px dashed var(--tan);
}
.qf-sheet .qf-onsite-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.qf-sheet .qf-onsite-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12.5px;
    padding: 5px 0;
    color: var(--ink-mid);
}
.qf-sheet .qf-onsite-list li + li {
    border-top: 1px dotted var(--tan);
}
.qf-sheet .qf-onsite-list b {
    color: var(--ink);
    font-weight: 700;
}

/* ── C. 옵션 상세 ──────────────────────── */
.qf-sheet .qf-cat {
    margin-top: 22px;
}
.qf-sheet .qf-cat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--brown);
}
.qf-sheet .qf-cat-head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 800;
    color: var(--brown);
}
.qf-sheet .qf-cat-head span {
    font-size: 13px;
    color: var(--ink-mid);
    font-weight: 600;
}
.qf-sheet .qf-cat-tip {
    margin: 10px 0 0;
    font-size: 12.5px;
    color: var(--ink-mid);
    line-height: 1.6;
}
.qf-sheet .qf-refund-btn,
.qf-sheet .estimate-refund-rule-btn.qf-refund-btn {
    margin-left: auto;
    font-size: 11.5px;
    border: 1px solid var(--tan);
    color: var(--brown);
    background: #fff;
    border-radius: 20px;
    padding: 4px 11px;
    cursor: pointer;
    flex: none;
}

/* 기존 estimate-* 카드형 구조를 시안의 플랫 리스트로 재정의 */
.qf-sheet .estimate-category-section.qf-cat {
    margin-bottom: 0;
}
.qf-sheet .estimate-option-group.qf-group {
    margin-bottom: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
}
.qf-sheet .qf-group-label,
.qf-sheet .estimate-option-name.qf-group-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    margin: 14px 0 0;
    letter-spacing: .3px;
}
.qf-sheet .estimate-radio-list {
    display: block;
    margin-top: 0;
}
.qf-sheet .estimate-addon-list.qf-addon-list {
    display: block;
    gap: 0;
}

.qf-sheet .qf-opt {
    display: flex;
    gap: 14px;
    padding: 16px 2px;
    border-bottom: 1px solid var(--line);
    background: transparent;
    border-radius: 0;
    align-items: flex-start;
    transition: opacity .15s;
}
.qf-sheet .estimate-radio-item.qf-opt,
.qf-sheet .estimate-addon-item.qf-opt {
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 16px 2px;
    cursor: pointer;
}
.qf-sheet .estimate-radio-item.qf-opt:hover,
.qf-sheet .estimate-addon-item.qf-opt:hover {
    background: var(--beige-soft);
    border-color: var(--line);
    border-top: 0;
    border-left: 0;
    border-right: 0;
}
.qf-sheet .estimate-addon-item.qf-opt.mandatory {
    background: transparent;
    border-color: var(--line);
    cursor: default;
}
.qf-sheet .estimate-radio-item.qf-opt:has(input[type="radio"]:checked) {
    background: transparent;
    border-color: var(--line);
}
/* 미선택 옵션: 행 전체를 흐리게 하지 않는다(선택 불가 옵션으로 오해 방지).
   뱃지·체크박스·가격은 또렷하게 두고 옵션명만 연하게 → 선택 시 진해진다 */
.qf-sheet .qf-opt.dim .qf-opt-name {
    color: var(--ink-soft);
}

.qf-sheet .qf-opt-body {
    flex: 1;
    min-width: 0;
}
.qf-sheet .qf-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.qf-sheet .qf-tag {
    font-size: 11px;
    font-weight: 700;
    border-radius: 5px;
    padding: 3px 8px;
    letter-spacing: -.2px;
}
.qf-sheet .qf-tag.t-must { background: #F5E7E4; color: #B03B2F; }
.qf-sheet .qf-tag.t-opt  { background: #EFEBE4; color: var(--ink-mid); }
.qf-sheet .qf-tag.t-inc  { background: #EAF0EA; color: #4A6B4F; }
.qf-sheet .qf-tag.t-site { background: #F6EEE3; color: var(--brown-deep); }
.qf-sheet .qf-tag.t-base { background: var(--brown); color: #fff; }

.qf-sheet .qf-opt-name,
.qf-sheet .estimate-radio-name.qf-opt-name,
.qf-sheet .estimate-addon-name.qf-opt-name {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0;
    color: var(--ink);
    transition: color .15s;
}
.qf-sheet .qf-opt-why {
    margin: 6px 0 0;
    font-size: 12.8px;
    color: var(--ink-mid);
    line-height: 1.65;
}
.qf-sheet .qf-opt-why .qf-skip {
    color: var(--ink);
    font-weight: 600;
}

/* 기본 구성 행 3단 배치: 1행 태그+옵션명 / 2행 설명 / 3행 가격 */
.qf-sheet .qf-opt-base .estimate-radio-info.qf-opt-body {
    display: block; /* 템플릿의 .estimate-radio-info flex(3열 배치) 무효화 */
    padding: 14px 16px; /* 선택 시 배경이 칠해지므로 테두리와 텍스트 사이 여백 확보 */
}
.qf-sheet .qf-opt-base .qf-opt-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}
.qf-sheet .qf-opt-base .qf-opt-head .qf-tag {
    flex: none;
}
.qf-sheet .qf-opt-base .qf-opt-why {
    margin: 10px 0 0;
    padding: 12px 14px;
    background: var(--beige-soft);
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.7;
}

/* 기본 구성 설명 구조화 표시 — 섹션(제목 라벨 + 설명 줄들) 단위 블록 */
.qf-sheet .qf-opt-why .qf-info-sec {
    display: block;
}
.qf-sheet .qf-opt-why .qf-info-sec + .qf-info-sec {
    margin-top: 18px; /* 섹션 사이를 넓게 띄워 구분 */
}
.qf-sheet .qf-opt-why .qf-info-line {
    display: block;
    margin: 2px 0;
}
.qf-sheet .qf-opt-why .qf-info-label {
    display: inline-block;
    margin: 0 0 6px;
    padding: 2px 10px;
    border-radius: 10px;
    background: var(--beige);
    color: var(--brown-deep);
    font-size: 15px; /* 제목은 본문(13.5px)보다 크게 */
    font-weight: 700;
    white-space: nowrap;
    vertical-align: baseline;
}
.qf-sheet .qf-opt-why .qf-info-head {
    display: block;
    margin: 0 0 12px;
    color: var(--brown-deep);
    font-size: 15.5px;
    font-weight: 800;
}
.qf-sheet .qf-opt-why .qf-info-divider {
    display: block;
    height: 1px;
    margin: 16px 0;
    background: var(--line);
}

.qf-sheet .qf-opt-right {
    text-align: right;
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    padding-top: 20px;
}
.qf-sheet .qf-opt-price,
.qf-sheet .estimate-radio-price.qf-opt-price,
.qf-sheet .estimate-addon-price.qf-opt-price {
    white-space: nowrap;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -.4px;
    color: var(--ink);
    min-width: 0;
    text-align: right;
}
.qf-sheet .estimate-radio-price.qf-opt-price {
    padding-top: 20px;
}
.qf-sheet .qf-unpicked {
    display: none;
    font-size: 11px;
    color: var(--ink-soft);
    font-weight: 500;
    margin-top: 3px;
}
.qf-sheet .qf-opt.dim .qf-unpicked {
    display: block;
}
.qf-sheet .qf-qty {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}
.qf-sheet .qf-qty label {
    font-size: 11.5px;
    color: var(--ink-soft);
}
.qf-sheet .qf-qty .quantity-input {
    width: 48px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 2px 4px;
    font-size: 12.5px;
    color: var(--ink);
    background: #fff;
}
.qf-sheet .qf-opt.dim .qf-qty {
    display: none;
}
.qf-sheet .qf-opt-toggle {
    flex: none;
    padding-top: 20px;
    cursor: pointer;
}
.qf-sheet .qf-opt-toggle .estimate-addon-checkbox {
    width: 17px;
    height: 17px;
    accent-color: var(--brown);
}

.qf-sheet .qf-cat-sum {
    display: flex;
    justify-content: space-between;
    padding: 13px 2px 0;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}
.qf-sheet .qf-cat-sum > span:first-child {
    color: var(--ink-mid);
}
.qf-sheet .qf-cat-sum small {
    font-weight: 500;
    color: var(--ink-soft);
}

/* 드레스 아코디언 재정의 */
.qf-sheet .estimate-dress-shop-section.qf-dress {
    border: 1px solid var(--line);
    border-radius: 11px;
    margin-top: 12px;
    background: #fff;
    overflow: hidden;
}
.qf-sheet .estimate-dress-shop-section.qf-dress.expanded {
    border-color: var(--tan-strong);
}
.qf-sheet .qf-dress-head,
.qf-sheet .estimate-dress-accordion-header.qf-dress-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--beige-soft);
    cursor: pointer;
    border: 0;
}
.qf-sheet .qf-dress-pick {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin: 0;
}
.qf-sheet .qf-dress-pick .estimate-dress-shop-radio {
    width: 16px;
    height: 16px;
    accent-color: var(--brown);
}
.qf-sheet .qf-dress-name,
.qf-sheet .estimate-dress-shop-name.qf-dress-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--ink);
}
.qf-sheet .qf-acc-icon {
    color: var(--ink-soft);
    flex: none;
    transition: transform .2s;
}
.qf-sheet .estimate-dress-shop-section.qf-dress.expanded .qf-acc-icon {
    transform: rotate(180deg);
}
.qf-sheet .estimate-dress-shop-content {
    padding: 0 14px 14px;
}
.qf-sheet .estimate-dress-accordion {
    border: 0;
    padding: 0;
    margin: 0;
}

/* 안내 박스 */
.qf-sheet .qf-note {
    display: flex;
    gap: 11px;
    background: var(--pink-note);
    border: 1px solid var(--tan);
    border-radius: 11px;
    padding: 15px 17px;
    margin-top: 20px;
}
.qf-sheet .qf-note i {
    font-style: normal;
    color: var(--brown);
    font-weight: 800;
    font-size: 14px;
}
.qf-sheet .qf-note p {
    margin: 0;
    font-size: 12.8px;
    line-height: 1.7;
    color: var(--ink-mid);
}
.qf-sheet .qf-note b {
    color: var(--ink);
}

/* ── D. 박람회 체크리스트 ─────────────── */
.qf-sheet .qf-check-intro {
    background: var(--beige);
    border-radius: 12px;
    padding: 20px 22px;
    margin: 16px 0 20px;
}
.qf-sheet .qf-check-intro h3 {
    margin: 0 0 7px;
    font-size: 15.5px;
    font-weight: 800;
    color: var(--ink);
}
.qf-sheet .qf-check-intro p {
    margin: 0;
    font-size: 13px;
    color: var(--ink-mid);
    line-height: 1.7;
}
.qf-sheet .qf-ck {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}
.qf-sheet .qf-ck-h {
    background: var(--beige-soft);
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--brown-deep);
    border-bottom: 1px solid var(--line);
}
.qf-sheet .qf-ck-i {
    display: flex;
    gap: 11px;
    padding: 13px 16px;
    border-bottom: 1px dotted var(--line);
}
.qf-sheet .qf-ck-i:last-child {
    border-bottom: 0;
}
.qf-sheet .qf-box {
    width: 17px;
    height: 17px;
    border: 1.5px solid var(--tan-strong);
    border-radius: 4px;
    flex: none;
    margin-top: 2px;
}
.qf-sheet .qf-ck-i p {
    margin: 0;
    font-size: 12.8px;
    line-height: 1.65;
    color: var(--ink);
}
.qf-sheet .qf-ck-i em {
    display: block;
    font-style: normal;
    margin-top: 4px;
    font-size: 12px;
    color: var(--ink-soft);
}

/* ── E. 기록표 ─────────────────────────── */
.qf-sheet .qf-rec {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 12px;
}
.qf-sheet .qf-rec th {
    background: var(--beige);
    border: 1px solid var(--tan);
    padding: 9px 8px;
    font-weight: 700;
    color: var(--brown-deep);
    font-size: 11.5px;
}
.qf-sheet .qf-rec td {
    border: 1px solid var(--line);
    padding: 0;
    height: 34px;
}
.qf-sheet .qf-rec td.qf-lbl {
    background: var(--beige-soft);
    text-align: center;
    font-weight: 700;
    color: var(--ink-mid);
    width: 78px;
    font-size: 11.5px;
}
.qf-sheet .qf-rec tr.qf-total-row td {
    height: 40px;
    background: #FCFAF7;
}
.qf-sheet .qf-rec tr.qf-total-row td.qf-lbl {
    background: var(--beige);
    color: var(--brown-deep);
}
.qf-sheet .qf-rec td.qf-hint {
    padding: 0 10px;
    font-size: 11.5px;
    color: var(--ink-soft);
}
/* 패키지 단위 기록표 — 박람회는 스드메 패키지 금액만 알려주므로 1행 = 패키지 1건. 손글씨 칸이라 행을 높게 잡는다 */
.qf-sheet .qf-rec-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.qf-sheet .qf-rec.qf-rec-pkg {
    min-width: 620px;
    table-layout: fixed;
}
.qf-sheet .qf-rec.qf-rec-pkg th {
    text-align: center;
    white-space: nowrap;
}
.qf-sheet .qf-rec.qf-rec-pkg td {
    height: 62px;
}
.qf-sheet .qf-rec.qf-rec-pkg td.qf-lbl {
    width: 64px;
}
.qf-sheet .qf-rec-notes {
    margin: 10px 0 0;
    padding-left: 16px;
    font-size: 11.5px;
    color: var(--ink-soft);
    line-height: 1.7;
}
.qf-sheet .qf-rec-notes li + li {
    margin-top: 2px;
}
.qf-sheet .qf-rec-cap {
    font-size: 12px;
    color: var(--ink-soft);
    margin: 14px 0 0;
    line-height: 1.7;
}
.qf-sheet .qf-vs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 16px;
}
.qf-sheet .qf-vs-card {
    border: 1px solid var(--tan);
    border-radius: 11px;
    padding: 15px 16px;
}
.qf-sheet .qf-vs-card h4 {
    margin: 0 0 9px;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--brown-deep);
}
.qf-sheet .qf-vs-line {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    padding: 7px 0;
    border-bottom: 1px dotted var(--line);
    color: var(--ink-mid);
}
.qf-sheet .qf-vs-line:last-child {
    border: 0;
    font-weight: 800;
    color: var(--ink);
    font-size: 14px;
}
.qf-sheet .qf-blank {
    display: inline-block;
    min-width: 82px;
    border-bottom: 1px solid var(--tan-strong);
}

/* ── 하단 액션 ─────────────────────────── */
.qf-sheet .qf-actions {
    padding: 24px 32px 30px;
    background: var(--cream);
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    align-items: center;
}
.qf-sheet .qf-actions-left {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.qf-sheet .qf-btn {
    padding: 17px;
    border-radius: 11px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    border: 1px solid var(--black);
    font-family: inherit;
}
.qf-sheet .qf-btn-main {
    flex: 1;
    background: var(--black);
    color: #fff;
}
.qf-sheet .qf-btn-sub {
    background: #fff;
    color: var(--ink);
    border-color: var(--tan-strong);
}
.qf-sheet .qf-linklike {
    background: none;
    border: 0;
    font-size: 12.5px;
    color: var(--ink-mid);
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    white-space: nowrap;
}

/* ── 반응형 ────────────────────────────── */
@media (max-width: 640px) {
    .qf-sheet .qf-split,
    .qf-sheet .qf-vs {
        grid-template-columns: 1fr;
    }
    .qf-sheet .qf-pad {
        padding: 0 18px;
    }
    .qf-sheet .qf-top,
    .qf-sheet .qf-actions {
        padding-left: 18px;
        padding-right: 18px;
    }
    .qf-sheet .qf-total-num strong {
        font-size: 38px;
    }
    .qf-sheet .qf-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .qf-sheet .qf-actions-left {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .qf-sheet .qf-opt {
        flex-wrap: wrap;
    }
    .qf-sheet .qf-opt-right {
        padding-top: 0;
        width: 100%;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
    }
}

/* ── 인쇄 (A4 견적서) ──────────────────── */
@media print {
    @page {
        size: A4;
        margin: 12mm;
    }
    /* 인쇄 시작 시 JS가 모달 조상 경로 외 요소에 붙이는 클래스 */
    .qf-print-hide {
        display: none !important;
    }
    html.qf-print body {
        background: #fff !important;
    }
    html.qf-print #estimate-modal.modal-overlay {
        position: static !important;
        display: block !important;
        padding: 0 !important;
        background: #fff !important;
        backdrop-filter: none !important;
        overflow: visible !important;
    }
    html.qf-print .qf-sheet {
        box-shadow: none;
        border-radius: 0;
        max-width: none;
    }
    html.qf-print .qf-xbtn,
    html.qf-print .qf-actions {
        display: none !important;
    }
    html.qf-print .qf-sec {
        page-break-inside: avoid;
    }
    html.qf-print .qf-sec-faircheck {
        page-break-before: always;
    }
    html.qf-print .qf-ck,
    html.qf-print .qf-stop {
        page-break-inside: avoid;
    }
    /* 배경색이 인쇄에서 빠지지 않도록 */
    html.qf-print .qf-total-card,
    html.qf-print .qf-split > div,
    html.qf-print .qf-onsite-list,
    html.qf-print .qf-note,
    html.qf-print .qf-check-intro,
    html.qf-print .qf-ck-h,
    html.qf-print .qf-rec th,
    html.qf-print .qf-rec td.qf-lbl,
    html.qf-print .qf-rec tr.qf-total-row td,
    html.qf-print .qf-tag,
    html.qf-print .qf-dress-head {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    /* 체크리스트만 인쇄 모드: D·E 섹션만 출력 */
    html.qf-print-checklist .qf-sec-total,
    html.qf-print-checklist .qf-sec-timeline,
    html.qf-print-checklist .qf-sec-options {
        display: none !important;
    }
    html.qf-print-checklist .qf-sec-faircheck {
        page-break-before: auto;
    }
    /* 견적서 인쇄 시 옵션의 수량 입력·체크박스는 인쇄용으로 정리 */
    html.qf-print .qf-qty .quantity-input {
        border: 0;
    }
}
