/* =============================================
   Step 3 - 최종 견적서 출력 화면
   ============================================= */

/* === VIP Quote Container === */
.vq {
  background: var(--gradient-quote-bg);
  border: none;
  border-radius: 2px;
  padding: 48px 40px;
  max-width: var(--max-width-quote);
  margin: 0 auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.vq::before {
  content: '';
  position: absolute;
  top: 12px; left: 12px; right: 12px; bottom: 12px;
  border: 1px solid rgba(197, 164, 78, 0.3);
  pointer-events: none;
}

/* === Quote Header === */
.vq-hdr { text-align: center; margin-bottom: var(--space-sm); }
.vq-row1 { display: flex; justify-content: center; align-items: center; gap: 16px; }
.vq-hn { font-family: var(--font-display); font-size: var(--font-size-6xl); font-weight: 700; letter-spacing: 6px; color: var(--color-primary); }
.vq-sub { font-family: var(--font-display); font-size: 9px; letter-spacing: 3px; color: var(--color-text-muted); margin-top: 2px; text-align: center; }
.vq-ttl { text-align: center; font-family: var(--font-display); font-size: var(--font-size-3xl); font-weight: 600; color: var(--color-primary); letter-spacing: 4px; margin: 20px 0 2px; }
.vq-cl { text-align: center; font-family: var(--font-script); font-size: var(--font-size-4xl); color: var(--color-text); margin-bottom: 6px; }

/* === VIP Gold Badge === */
.vq-vip-gold {
  display: inline-block;
  background: var(--gradient-gold);
  border-radius: var(--radius-lg);
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 3px;
}

.vq-vip-std {
  display: inline-block;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-lg);
  padding: 5px 14px;
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 3px;
}

/* === Manager line === */
.vq-mgr {
  text-align: center;
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-bottom: 6px;
}

/* === Customer Meta (gender/age/nationality) === */
.vq-meta {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.vq-meta span {
  display: inline-block;
}

.vq-meta span + span::before {
  content: ' · ';
  color: var(--color-gold);
}

/* === Gold Divider === */
.vq-gdiv {
  height: 1px;
  background: var(--gradient-gold-divider);
  margin: 18px 0;
}

/* === Items Table === */
.vq-items-tbl {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-md) 0;
  font-size: var(--font-size-base);
}

.vq-items-tbl thead th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 8px 10px;
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.5px;
}

.vq-items-tbl thead th.col-no { width: 40px; text-align: center; }
.vq-items-tbl thead th.col-hosp { width: 120px; }
.vq-items-tbl thead th.col-price { width: 160px; text-align: right; }

.vq-items-tbl tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-gold-border);
  vertical-align: top;
}

.vq-items-tbl tbody td.col-no { text-align: center; color: var(--color-text-muted); }
.vq-items-tbl tbody td.col-hosp { font-size: var(--font-size-xs); color: var(--color-accent); font-weight: 600; }
.vq-items-tbl tbody td.col-price { text-align: right; font-weight: 600; white-space: nowrap; }

/* === 개별 시술 가격 편집 Input === */
.price-edit-input {
  width: 100px;
  padding: 3px 6px;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-align: right;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color 0.2s;
}
.price-edit-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(197, 164, 78, 0.15);
}

/* === Final Amount 편집 Input === */
.final-edit-input {
  width: 130px;
  padding: 6px 10px;
  border: 2px solid var(--color-gold);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-lg);
  font-weight: 700;
  text-align: right;
  background: var(--color-white);
  color: var(--color-primary);
}
.final-edit-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 164, 78, 0.2);
}

/* === Summary Block === */
.vq-summary {
  background: #f9f6f1;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  margin-top: var(--space-lg);
}

.vq-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: var(--font-size-md);
  border-bottom: 1px solid rgba(197, 164, 78, 0.15);
}

.vq-sum-row:last-child { border-bottom: none; }

.vq-sum-val {
  font-weight: 600;
  color: var(--color-text);
}

.vq-sum-input {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

.vq-sum-input input {
  width: 100px;
  padding: 4px 8px;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-md);
  text-align: right;
  background: var(--color-white);
}

.vq-sum-input input:focus {
  outline: none;
  border-color: var(--color-gold);
}

.vq-sum-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 4px;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-primary);
  border-top: 2px solid var(--color-gold);
  margin-top: var(--space-sm);
}

.vq-final-val {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--font-size-sm);
}

/* .vq-final-val input → .final-edit-input 클래스로 이동됨 */

/* === Price Type === */
.vq-price-type {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-md);
  letter-spacing: 0.5px;
}

/* === Services Section === */
.vq-svc {
  background: var(--color-gold-light);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-top: 18px;
}

.vq-svc h4 {
  color: var(--color-gold);
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-align: center;
}

.vq-svc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.vq-svc-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  transition: var(--transition-fast);
}

.vq-svc-item.active {
  color: var(--color-text);
}

.vq-svc-item input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: var(--color-gold);
  flex-shrink: 0;
}

.vq-svc-ic {
  font-size: var(--font-size-sm);
  color: var(--color-gold);
  width: 16px;
  flex-shrink: 0;
}

.vq-svc-nm {
  flex: 1;
}

.vq-svc-loading {
  text-align: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: var(--space-sm) 0;
}

.vq-svc-none {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  padding: var(--space-sm) 0;
}

.vq-svc-none-ic {
  font-size: 1rem;
}

/* === Memo Section === */
.vq-memo-section {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: rgba(197, 164, 78, 0.05);
  border-left: 3px solid var(--color-gold);
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
}

/* === Quote Info Form === */
.vq-info {
  background: var(--color-bg-card);
  border-radius: var(--radius-2xl);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  max-width: var(--max-width-quote);
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow-sm);
}

.vq-info h3 {
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

/* === Footer === */
.vq-ft {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-light);
  margin-top: 20px;
  font-style: italic;
  font-family: var(--font-display);
}

.vq-date {
  text-align: center;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  margin-top: 4px;
}

.vq-url {
  text-align: center;
  font-size: 10px;
  color: var(--color-gold);
  letter-spacing: 1px;
  margin-top: 8px;
  font-weight: 600;
}

/* === Save Options === */
.save-options {
  max-width: var(--max-width-quote);
  margin: 24px auto;
}

.save-options h3 {
  font-size: 15px;
  color: var(--color-primary);
  margin-bottom: 14px;
}

.save-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.save-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-2xl);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.save-card:hover {
  border-color: var(--color-gold);
  background: var(--color-gold-light);
  transform: translateY(-2px);
}

.save-ic { font-size: 28px; margin-bottom: 8px; }
.save-nm { font-size: 14px; font-weight: 600; color: var(--color-primary); margin-bottom: 4px; }
.save-desc { font-size: 11px; color: var(--color-text-muted); }

/* 축소형 save-card (높이 50%) */
.save-card-sm {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}
.save-card-sm .save-ic { font-size: 20px; margin-bottom: 0; }
.save-card-sm .save-nm { margin-bottom: 0; }

/* === Share Modal === */
.share-modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.share-modal.show { opacity: 1; }
.share-modal-bg { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); }

.share-modal-box {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  max-width: 420px;
  width: 90%;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.share-modal-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-gold-border);
}

.share-modal-hd h3 { font-size: 15px; color: var(--color-primary); margin: 0; }
.share-modal-x { cursor: pointer; font-size: 18px; color: var(--color-text-muted); }
.share-modal-bd { padding: 20px; }

.share-url-box {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.share-url-box input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--color-gold-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  background: #f9f7f3;
  color: var(--color-text);
}

.share-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.share-actions .btn { flex: 1; font-size: 12px; padding: 8px 4px; }
.share-note { font-size: 11px; color: var(--color-text-muted); text-align: center; }

/* =============================================
   Step 4 - Premium Dark 견적서 (Design C Final)
   ============================================= */

/* === Dark Quote Container === */
.qd {
  background: linear-gradient(180deg, #18180f 0%, #111110 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(201,169,110,0.12);
  box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  max-width: var(--max-width-quote);
  margin: 0 auto;
  position: relative;
  font-family: 'Outfit', 'Malgun Gothic', sans-serif;
  color: #e8e6e0;
}

/* === Header === */
.qd-header {
  text-align: center;
  padding: 40px 36px 24px;
  position: relative;
}

.qd-header::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 120px;
  background: radial-gradient(ellipse, rgba(201,169,110,0.12), transparent 70%);
  pointer-events: none;
}

.qd-logo {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 10px;
  background: linear-gradient(135deg, #e8d5a3, #c9a96e, #a88a4a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.qd-agency {
  font-size: 9px;
  letter-spacing: 3px;
  color: #6a6355;
  text-transform: uppercase;
  margin-top: 6px;
}

/* === Quotation Title === */
.qd-title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 36px;
  margin-bottom: 28px;
}

.qd-title-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,169,110,0.25), transparent);
}

.qd-title-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #c9a96e;
  text-transform: uppercase;
}

/* === Customer / Manager Info === */
.qd-info {
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
}

.qd-info-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: #5a5548;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.qd-customer-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: #f0ece4;
}

.qd-meta {
  font-size: 11px;
  color: #8a8278;
  margin-top: 4px;
}

.qd-meta span + span::before {
  content: ' · ';
  color: #c9a96e;
}

.qd-manager {
  font-size: 13px;
  color: #8a8278;
  text-align: right;
}

.qd-manager strong {
  color: #c9a96e;
  font-weight: 500;
}

/* === Items Zone — Warm Gray === */
.qd-items-zone {
  margin: 0 14px 24px;
  background: linear-gradient(180deg, #e8e4de 0%, #ddd8d0 100%);
  border-radius: 18px;
  padding: 16px 10px;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15);
}

.qd-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  margin-bottom: 6px;
  transition: all 0.2s;
}

.qd-item:last-child {
  margin-bottom: 0;
}

.qd-item:nth-child(odd) {
  background: rgba(255,255,255,0.5);
  border-color: rgba(200,190,175,0.3);
}

.qd-item-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #a09585;
  color: #7a6e60;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  background: rgba(255,255,255,0.5);
}

.qd-item-body {
  flex: 1;
  min-width: 0;
}

.qd-item-hosp {
  font-size: 10px;
  font-weight: 600;
  color: #9a876a;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.qd-item-name {
  font-size: 14px;
  font-weight: 400;
  color: #3a3530;
  line-height: 1.5;
}

.qd-item-price {
  font-size: 14px;
  font-weight: 600;
  color: #2c2822;
  white-space: nowrap;
  margin-top: 2px;
}

/* === Summary (Dark) === */
.qd-summary {
  margin: 0 24px 28px;
  background: rgba(201,169,110,0.04);
  border-radius: 16px;
  border: 1px solid rgba(201,169,110,0.1);
  overflow: hidden;
}

.qd-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  font-size: 13px;
  color: #8a8278;
}

.qd-sum-row + .qd-sum-row {
  border-top: 1px solid rgba(201,169,110,0.08);
}

.qd-sum-val {
  font-weight: 600;
  color: #d4d0c8;
}

.qd-discount .qd-sum-val {
  color: #e67e7e;
}

.qd-sum-final {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(201,169,110,0.12), rgba(201,169,110,0.06));
  border-top: 1px solid rgba(201,169,110,0.15);
}

.qd-sum-final-label {
  font-size: 14px;
  font-weight: 600;
  color: #c9a96e;
}

.qd-sum-final-val {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: #c9a96e;
}

/* === Services (Dark) === */
.qd-svc {
  margin: 0 24px 20px;
  background: rgba(201,169,110,0.04);
  border: 1px solid rgba(201,169,110,0.1);
  border-radius: 14px;
  padding: 16px 20px;
}

.qd-svc h4 {
  color: #c9a96e;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  margin-bottom: 10px;
  letter-spacing: 1px;
  text-align: center;
}

.qd-svc-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qd-svc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 13px;
  color: #d4d0c8;
}

.qd-svc-ic {
  color: #c9a96e;
  font-size: 12px;
  width: 16px;
  flex-shrink: 0;
}

/* === Service Package Tiles (Design B) === */
.qd-svc-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.qd-svc-tile {
  background: rgba(255,255,255,0.03);
  border: 0.5px solid rgba(201,169,110,0.12);
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  transition: border-color 0.2s;
}

.qd-svc-tile:hover {
  border-color: rgba(201,169,110,0.25);
}

.qd-svc-tile-ic {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.qd-svc-tile-title {
  font-size: 10px;
  color: #9a9889;
  letter-spacing: 0.5px;
  display: block;
}

.qd-svc-tile-val {
  font-size: 12px;
  color: #e8e6df;
  font-weight: 600;
  display: block;
  margin-top: 3px;
}

@media (max-width: 480px) {
  .qd-svc-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* === Memo (Dark) === */
.qd-memo {
  margin: 0 24px 20px;
  padding: 14px 18px;
  background: rgba(201,169,110,0.04);
  border-left: 3px solid rgba(201,169,110,0.3);
  font-size: 12px;
  color: #8a8278;
  border-radius: 0 8px 8px 0;
}

/* === Footer === */
.qd-footer {
  text-align: center;
  padding: 0 36px 32px;
}

.qd-valid {
  font-size: 11px;
  color: #4a4540;
  font-style: italic;
  margin-bottom: 4px;
}

.qd-date {
  font-size: 11px;
  color: #5a5548;
}

/* === Action Buttons (Dark) === */
.qd-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  max-width: var(--max-width-quote);
  margin: 14px auto 0;
}

.qd-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: none;
  font-family: 'Outfit', 'Malgun Gothic', sans-serif;
}

.qd-btn-copy {
  background: #1a1a14;
  color: #8bb8e0;
  border: 1px solid rgba(139,184,224,0.2);
}

.qd-btn-copy:hover {
  border-color: rgba(139,184,224,0.4);
  background: rgba(139,184,224,0.08);
}

.qd-btn-save {
  background: #1a1a14;
  color: #c9a96e;
  border: 1px solid rgba(201,169,110,0.2);
}

.qd-btn-save:hover {
  border-color: rgba(201,169,110,0.4);
  background: rgba(201,169,110,0.08);
}

.qd-btn-submit {
  background: linear-gradient(135deg, #c9a96e, #a88a4a);
  color: #0a0a0a;
  font-weight: 700;
}
.qd-btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.qd-btn-web {
  background: #1a1a14;
  color: #c9a96e;
  border: 1px solid rgba(201,169,110,0.3);
  font-weight: 700;
}

.qd-btn-web:hover {
  border-color: rgba(201,169,110,0.5);
  background: rgba(201,169,110,0.08);
}

/* === Hospital Count Bar (Step3) === */
.hosp-count-bar {
  max-width: var(--max-width-quote);
  margin: 0 auto 16px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(201,169,110,0.08), rgba(201,169,110,0.04));
  border: 1px solid rgba(201,169,110,0.15);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
}

/* === Hospital Section Label (Step3) === */
.hosp-section-label {
  max-width: var(--max-width-quote);
  margin: 24px auto 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.hosp-section-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.hosp-section-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
}

.hosp-section-cnt {
  font-size: 12px;
  color: var(--color-text-muted);
  background: var(--color-bg-gray);
  padding: 2px 10px;
  border-radius: 20px;
}

/* === Hospital Tabs (Step4 Premium Dark) === */
.qd-tabs {
  display: flex;
  gap: 8px;
  max-width: var(--max-width-quote);
  margin: 0 auto 16px;
  padding: 4px;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  border: 1px solid rgba(201,169,110,0.08);
}

.qd-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 12px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #6a6355;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Outfit', 'Malgun Gothic', sans-serif;
}

.qd-tab:hover {
  background: rgba(201,169,110,0.06);
  color: #c9a96e;
}

.qd-tab-active {
  background: rgba(201,169,110,0.12);
  border-color: rgba(201,169,110,0.25);
  color: #c9a96e;
}

.qd-tab-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.qd-tab-cnt {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
}

/* === Send Notice (Step4) === */
.qd-send-notice {
  max-width: var(--max-width-quote);
  margin: 12px auto 0;
  padding: 10px 16px;
  background: rgba(201,169,110,0.06);
  border: 1px solid rgba(201,169,110,0.12);
  border-radius: 10px;
  font-size: 12px;
  color: #8a8278;
  text-align: center;
  font-family: 'Outfit', 'Malgun Gothic', sans-serif;
}

.qd-send-notice strong {
  color: #c9a96e;
  font-weight: 600;
}

/* =============================================
   Step 3 - 병원 로고 (클라이언트 모드)
   ============================================= */

/* Step 3 — 병원 로고 이미지 */
.vq-hosp-logo {
  max-height: 48px;
  max-width: 200px;
  object-fit: contain;
}

/* Step 3 — 클라이언트 모드 배경 */
.vq.vq-client-mode {
  background: linear-gradient(180deg, #FAF6EE 0%, #F5F0E5 100%);
  border: 1px solid rgba(180,160,120,0.2);
}
.vq.vq-client-mode::before {
  border-color: rgba(180,160,120,0.2);
}
.vq.vq-client-mode .vq-sub {
  color: #c9a96e;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-top: 8px;
}
.vq.vq-client-mode .vq-ttl { display: none; }
.vq.vq-client-mode .vq-cl { color: #333; }
.vq.vq-client-mode .vq-mgr { color: #555; }
.vq.vq-client-mode .vq-meta span { color: #777; background: rgba(0,0,0,0.04); }
.vq.vq-client-mode .vq-items-tbl th { background: rgba(180,160,120,0.12); color: #333; }
.vq.vq-client-mode .vq-items-tbl td { color: #333; border-bottom-color: rgba(180,160,120,0.15); }
.vq.vq-client-mode .vq-gdiv { background: linear-gradient(90deg, transparent, rgba(180,160,120,0.4), transparent); }
.vq.vq-client-mode .vq-tot { background: rgba(180,160,120,0.06); border: 1px solid rgba(180,160,120,0.15); }
.vq.vq-client-mode .vq-tot-label { color: #555; }
.vq.vq-client-mode .vq-tot-val { color: #1a1a2e; }
.vq.vq-client-mode .vq-fin-val { color: #8B6914; }
.vq.vq-client-mode .vq-ft { color: #999; }
.vq.vq-client-mode .vq-date { color: #777; }
.vq.vq-client-mode .price-edit-input { color: #333; border-color: rgba(180,160,120,0.3); background: rgba(255,255,255,0.6); }
.vq.vq-client-mode .final-edit-input { color: #8B6914; border-color: rgba(180,160,120,0.3); background: rgba(255,255,255,0.6); }

/* =============================================
   Step 4 - 병원 로고 (클라이언트 모드)
   ============================================= */

/* 클라이언트 모드 — 전체 컨테이너 라이트 테마 */
.qd.qd-client-mode {
  background: linear-gradient(180deg, #FAF6EE 0%, #F5F0E5 100%);
  border-color: rgba(180,160,120,0.2);
  color: #333;
}

/* 클라이언트 모드 — 헤더 가로 배치 */
.qd-header-client {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  text-align: left !important;
  padding: 32px 36px 20px !important;
}
.qd-header-client::before { display: none; }

.qd-client-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.qd-client-logo {
  max-height: 54px;
  max-width: 220px;
  object-fit: contain;
}

.qd-header-client .qd-agency {
  color: #8a8278;
  font-size: 10px;
  letter-spacing: 2px;
  margin-top: 4px;
}

/* 클라이언트 모드 — 병원명 텍스트 로고 (이미지 없을 때 또는 로딩 실패 폴백) */
.qd.qd-client-mode .qd-logo {
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #1a1a2e;
  background-clip: unset;
  color: #1a1a2e;
  font-size: 28px;
  letter-spacing: 3px;
}

/* Step 3 — 클라이언트 모드 병원명 폰트 (이미지 없을 때 폴백) */
.vq.vq-client-mode .vq-hn {
  color: #1a1a2e;
  -webkit-text-fill-color: #1a1a2e;
  font-size: var(--font-size-3xl);
  letter-spacing: 2px;
}

.qd-client-title-box {
  border: 2px solid #c9a96e;
  border-radius: 6px;
  padding: 8px 24px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 4px;
  color: #c9a96e;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

/* 클라이언트 모드 — 정보 영역 */
.qd.qd-client-mode .qd-info-label { color: #8a8278; }
.qd.qd-client-mode .qd-customer-name { color: #1a1a2e; }
.qd.qd-client-mode .qd-meta span { color: #777; }
.qd.qd-client-mode .qd-manager { color: #555; }
.qd.qd-client-mode .qd-manager strong { color: #333; }

/* 클라이언트 모드 — 시술 항목 영역 */
.qd.qd-client-mode .qd-items-zone { background: rgba(255,255,255,0.5); }
.qd.qd-client-mode .qd-item { background: rgba(255,255,255,0.8); border-color: rgba(180,160,120,0.12); }
.qd.qd-client-mode .qd-item-num { background: rgba(180,160,120,0.12); color: #8B6914; }
.qd.qd-client-mode .qd-item-hosp { color: #8a8278; }
.qd.qd-client-mode .qd-item-name { color: #333; }
.qd.qd-client-mode .qd-item-price { color: #1a1a2e; }

/* 클라이언트 모드 — 금액 요약 */
.qd.qd-client-mode .qd-summary { background: transparent; }
.qd.qd-client-mode .qd-sum-row { border-bottom-color: rgba(180,160,120,0.15); }
.qd.qd-client-mode .qd-sum-row span { color: #666; }
.qd.qd-client-mode .qd-sum-val { color: #333; }
.qd.qd-client-mode .qd-discount .qd-sum-val { color: #c0392b; }
.qd.qd-client-mode .qd-sum-final { background: rgba(180,160,120,0.08); }
.qd.qd-client-mode .qd-sum-final-label { color: #555; }
.qd.qd-client-mode .qd-sum-final-val { color: #8B6914; }

/* 클라이언트 모드 — 서비스 타일 */
.qd.qd-client-mode .qd-svc h4 { color: #8B6914; }
.qd.qd-client-mode .qd-svc-tile { background: rgba(255,255,255,0.7); border-color: rgba(180,160,120,0.15); }
.qd.qd-client-mode .qd-svc-tile-title { color: #8a8278; }
.qd.qd-client-mode .qd-svc-tile-val { color: #333; }

/* 클라이언트 모드 — 메모 / 하단 */
.qd.qd-client-mode .qd-memo { color: #555; border-top-color: rgba(180,160,120,0.15); }
.qd.qd-client-mode .qd-valid { color: #999; }
.qd.qd-client-mode .qd-date { color: #777; }
.qd.qd-client-mode .qd-footer { border-top-color: rgba(180,160,120,0.15); }

/* === Print Styles === */
@media print {
  .hd, .steps, .btns, .no-print, .vq-info { display: none !important; }
  .print-only { display: flex !important; }
  body { background: var(--color-white); }
  .main { padding: 0; max-width: none; }
  .card { box-shadow: none; border: none; }
  .vq { box-shadow: none; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .vq::before { display: none; }
  .vq-tot, .vq-svc, .vq-items-tbl th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qd { box-shadow: none; max-width: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qd, .qd-summary, .qd-sum-final, .qd-items-zone, .qd-svc, .qd-svc-tile { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
