#sub_page {
  padding: 100px 0;
}


input[type="checkbox"].option-check {
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* 숨김 input */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background-color: rgba(255, 255, 255, 0);
  color: #4b5563;
  /* text-gray-600 */
  border: none;
  border-radius: 8px;
  font-family: 'Sofia Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-back:hover {
  color: #111827;
  /* hover:text-gray-900 */
  background-color: #f3f4f6;
  /* hover:bg-gray-100 */
}

/* 아이콘 스타일 */
.btn-back .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

/* hover 시 아이콘 왼쪽으로 이동 */
.btn-back:hover .icon {
  transform: translateX(-4px);
}

/* 텍스트 */
.btn-back .text {
  color: rgba(0, 0, 0, 1);
}

/* ========================= */
/* 🔙 뒤로가기 버튼 */
/* ========================= */
.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0);
  color: #4b5563;
  /* gray-600 */
  font-family: 'Sofia Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.btn-back:hover {
  color: #111827;
  /* gray-900 */
  background: #f3f4f6;
  /* gray-100 */
}

.btn-back .icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.btn-back:hover .icon {
  transform: translateX(-4px);
}

.btn-back .text {
  color: rgba(0, 0, 0, 1);
}

.alert {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
  padding: 1rem;
  border-radius: .75rem;
  margin-top: 1rem;
}

.alert .icon {
  width: 20px;
  height: 20px;
  color: #dc2626;
  flex-shrink: 0;
}

.alert-body {
  flex: 1;
}

.alert-title {
  font-weight: 600;
  color: #b91c1c;
  margin-bottom: 2px;
}

.alert-text {
  font-size: 14px;
  color: #7f1d1d;
}

.alert-error {
  border-color: #fecaca;
  background: #fef2f2;
}

.lucide-circle-alert {
  stroke: #7f1d1d;
}

.top_layout {
  margin-bottom: 32px;
}

/* ========================= */
/* 🧭 탭 버튼 영역 */
/* ========================= */
.tab-wrap {
  margin-top: 24px;
  display: flex;
  justify-content: flex-start;
}

.tab-group {
  display: flex;
  gap: 16px;
  background: #f3f4f6;
  /* gray-100 */
  border-radius: 10px;
  padding: 6px;
}

.tab-btn {
  padding: 7px 32px;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #4b5563;
  /* gray-600 */
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #111827;
  /* gray-900 */
  background: #e5e7eb;
  /* gray-200 */
}

.tab-btn.active {
  background: #2563eb;
  /* blue-600 */
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab-btn.active:hover {
  background: #1d4ed8;
  /* blue-700 */
}

@media screen and (max-width:767px) {
  .tab-btn{
    padding: 6px 10px;
    font-size: 16px;
  }
}


/* 레이아웃 */
:root {
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --blue-600: #2563eb;
  --card-bg: #fff;
  --card-border: #e5e7eb;
  --radius-lg: 12px;
  --radius-md: 8px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, .08);
  --bd: #e5e7eb;
  --fg: #111827;
  --muted: #6b7280;
  --primary: #2563eb;
  --input-background: #f3f3f5;
  font-family: 'Sofia Sans', system-ui, -apple-system, sans-serif;
}

.bg-input-background {
  background-color: var(--input-background);
}

.estimate_page {
  margin-bottom: 100px;
}

/* 레이아웃 */
.est-layout {
  display: grid;
  gap: 24px
}

.est-layout .main-full {
  grid-column: 1 / -1;
}

@media (min-width:1024px) {
  .est-layout {
    grid-template-columns: 3fr 1fr
  }
}

.est-main {
  display: grid;
  gap: 24px
}



.est-side {
  position: relative
}

.est-layout .est-layout-form {
  width: 100%;
  display: grid;
  gap: 24px;
  margin: 0 auto;
  padding: 0 16px;
}

@media screen and (max-width:768px) {
  .est-layout .est-layout-form{
    padding: 0;
  }
}

.est-layout .card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 24px
}

.est-layout .card-header {
  padding: 24px 24px 0
}

.est-layout .card-title {
  font-weight: 700;
  font-size: 20px
}

.est-layout .card-header .sub_text {
  /* background: #f3f3f3; */
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 10px;
  border: 1px solid #fecaca;
  background: #fef2f2;
}
.est-layout .card-header .sub_text p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    /* color: #a5a5a5; */
    /* color: #666; */
    color: #7f1d1d;
}

.est-layout .card-content {
  padding: 0 24px 24px
}



/* 업로드 카드 */
.est-layout .dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  transition: border-color .2s, background .2s
}

/* 드래그 오버 시 강조 */
.dropzone.is-dragover {
  background: #e8f2ff;
  border-color: #60a5fa;
  box-shadow: 0 0 0 4px rgba(96, 165, 250, .25) inset;
}

.dz-ghost {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
  font: 600 13px/1.2 'Sofia Sans', system-ui, sans-serif;
  color: #111827;
}

.dz-ghost .ext {
  background: #7c3aed;
  /* 보라색 라벨 */
  color: #fff;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 700;
  font-size: 12px;
}

.dz-ghost .count {
  color: #6b7280;
  font-weight: 600;
}

.est-layout .dropzone:hover {
  border-color: #c7cdd4;
  background: var(--gray-50)
}

.est-layout .icon-64 {
  width: 64px;
  height: 64px;
  stroke: #9ca3af;
  stroke-width: 2;
  fill: none
}

.est-layout .icon-32 {
  width: 32px;
  height: 32px;
  stroke: #9ca3af;
  stroke-width: 2;
  fill: none
}

.est-layout .icon-16 {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none
}

.est-layout .dz-title {
  font-size: 18px;
  font-weight: 700;
  margin-top: -4px
}

.est-layout .dz-sub {
  color: var(--gray-600);
  margin-top: 4px;
  font-weight: bold;
  font-size: 14px;
}

.est-layout .dz-actions {
  margin-top: 12px
}

/* 버튼 */
.est-layout .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s
}

.est-layout .btn-dark {
  background: rgba(40, 40, 40, .89);
  color: #fff
}

.est-layout .btn-dark:hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow-sm)
}

.est-layout .btn-primary {
  background: var(--blue-600);
  color: #fff
}

.est-layout .btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: var(--shadow-sm)
}

.est-layout .btn.w-full {
  width: 100%;
}

/* Danger 스타일 (새로 추가) */
.btn-danger {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.btn-danger:hover:not([disabled]) {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fca5a5;
}

.btn-danger:active:not([disabled]) {
  background: #fecaca;
  border-color: #f87171;
}

.est-layout #clear-files {
  display: none;
}

.est-layout #clear-files.is-active {
  display: inline-flex;
  margin-top: 12px;
  font-size: 13px;
}

/* 가이드 */
.status-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #2563eb;
  /* Tailwind의 blue-600 */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.status-icon .icon {
  width: 12px;
  height: 12px;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.est-layout .guide {
  background: #eff6ff;
  color: #1e3a8a;
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0
}

.est-layout .guide h4 {
  margin: 0 0 6px;
  font-weight: 700
}

.est-layout .guide ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 13px;
  line-height: 1.6
}

.est-layout .guide ul li {
  display: flex;
  gap: 5px;
}

/* 폼 그리드 */
.est-layout .form-grid {
  display: grid;
  gap: 16px
}

.est-layout .form-grid .w-full {
  grid-column: 1 / -1;
}

@media (min-width:768px) {
  .est-layout .form-grid {
    grid-template-columns: 1fr 1fr
  }

  

}

@media screen and (max-width:767px) {
  .est-layout .card{
    gap: 15px;
  }
  .est-layout .dropzone{
    padding: 16px;
  }

  .est-layout .icon-64 {
    width: 32px;
    height: 32px;
  }

  .est-layout .dz-title {
    font-size: 16px;
  }

  .est-layout .dz-sub{
    font-size: 13px;
  }

  .est-layout .btn{
    font-size: 14px;
  }
}

.est-layout .form-field label {
  display: flex;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px
}

.est-layout .form-field .red {
  color: #991b1b;
}

.est-layout .form-field .gray {
  color: #757575;
  font-weight: 400;
}

.est-layout .form-field label.col {
  flex-direction: column;
}

.est-layout .form-field label.col>div {
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
}

.est-layout .form-field+.form-field {
  margin-top: 12px
}

.est-layout .form-grid .form-field+.form-field {
  margin-top: 0
}

.proc-alert {
  margin-top: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E40AF;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  box-shadow: 0 1px 0 rgba(2, 6, 23, .03);
  font-size: 14px;
  line-height: 1.45;
}

.proc-alert__ico {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 2px;
}

.proc-alert__text {
  margin: 0
}

.proc-name {
  font-weight: 800;
  color: #0F172A
}

/* 
************************************** 
 체크박스 옵션 
**************************************
*/

/* ===== 옵션 컴포넌트 ===== */
.option-content {
  padding: 0 24px 24px;
  /* display: none; */
  --oc-radius: 12px;
  --oc-gap: 12px;
  --oc-border: 1px solid rgba(0, 0, 0, 0.08);
  --oc-muted: #6b7280;
  /* gray-500 */
  --oc-fg: #111827;
  /* gray-900 */
  --oc-bg: #ffffff;
  --oc-bg-muted: #f3f4f6;
  /* gray-100 */
  --oc-ring: rgba(59, 130, 246, 0.4);
  /* ring */
  color: var(--oc-fg);

}

/* .option-content.is-active {
  display: block;
} */

.option-content * {
  box-sizing: border-box;
}

.option-content .icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* 헤더 */
.option-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.option-head__texts {
  display: grid;
  gap: 4px;
}

.option-title {
  font-weight: 600;
  color: var(--fg);
  font-size: 16px;
}

.option-sub {
  font-size: 13px;
  color: var(--muted);
}

/* 탭 버튼 영역 */
.option-content .tab-btns {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  background: var(--oc-bg-muted);
  padding: 4px;
  border-radius: 30px;
}

.option-content .tab-btn {
  /* height: 36px; */
  border: 0;
  border-radius: 30px;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  /* gray-700 */
  cursor: pointer;
  transition: background .2s, box-shadow .2s, color .2s, transform .06s;
  outline: none;
  padding: 6px 0;
}

.option-content .tab-btn:focus-visible {
  box-shadow: 0 0 0 3px var(--oc-ring);
}

.option-content .tab-btn.is-active {
  background: #fff;
  color: var(--oc-fg);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.option-content .option-panel-notice {
  background: #eff6ff;
  /* light blue (blue-50) */
  border-radius: 8px;
  padding: 10px 14px;
  margin: 20px 0;
}

.option-content .option-panel-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1e3a8a;
  /* blue-800 */
  font-weight: bold;
}

.option-content .option-panel-info {
  padding: 24px;
  border: 2px dashed #d1d5db;
  /* gray-300 */
  border-radius: 12px;
  background: #f9fafb;
  /* gray-50 */
  text-align: center;
  margin-bottom: 16px;
}

.option-content .option-panel-info .info-main {
  font-size: 0.9rem;
  color: #4b5563;
  /* gray-600 */
  margin: 0;
  font-weight: 500;
}

.option-content .option-panel-info .info-sub {
  font-size: 0.75rem;
  color: #6b7280;
  /* gray-500 */
  margin-top: 6px;
}


@media screen and (max-width:768px) {

  .est-layout .card-header{
    padding: 12px 12px 0;
  }

  .est-layout .card-title{
    font-size: 15px;
  }

  .est-layout .card-content{
    padding: 0 12px 12px;
  }

  .option-content{
    padding: 0 10px 10px;
  }

  .option-content .tab-btns{
    grid-template-columns: repeat(3, 1fr);
    border-radius: 10px;
  }
  
  .option-content .tab-btn {
    border-radius: 10px;
  }

}


/* 접기 버튼 */
/* .option-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--bd);
  border-radius: 8px;
  background: #fff;
  color: var(--fg);
  cursor: pointer;
  transition: .15s ease;
}

.option-toggle:hover {
  background: #f3f4f6;
}

.option-toggle[aria-expanded="false"] .icon {
  transform: rotate(180deg);
  transition: transform .15s;
} */

/* 패널/그리드 */
.option-panel {
  margin-top: 12px;
}

.option-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  /* border: 1px solid var(--bd); */
  /* border-radius: 12px; */
  /* padding: 16px; */
  max-height: 260px;
  overflow: auto;
}

@media (min-width:768px) {
  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width:1024px) {
  .option-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 항목 */
.option-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* 커스텀 체크박스 */
.option-check {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--bd);
  border-radius: 4px;
  background: var(--input-background);
  margin-top: 2px;
  cursor: pointer;
  position: relative;
  transition: .15s;
  flex-shrink: 0;
}

/* .option-check:checked {
  border-color:#000; background:#000;
} */

.option-check:checked::after {
  /* content:""; position:absolute; inset:0;
  background:
    linear-gradient(#fff,#fff) no-repeat center/60% 2px,
    linear-gradient(#fff,#fff) no-repeat center/2px 60%;
  transform:rotate(45deg); */
  content: "";
  width: 100%;
  height: 100%;
  background: url(../../images/common/ico_checkbox.png) no-repeat center center;
  background-size: contain;
  position: absolute;
  inset: 0;
}

/* 라벨 */
.option-label {
  display: grid;
  gap: 4px;
  cursor: pointer;
}

.option-label__row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.option-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}

.option-mult {
  font-size: 12px;
  color: #6b7280;
}

.option-desc {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.35;
}

/* 접근성 포커스 */
.option-check:focus-visible,
.option-toggle:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .25);
  outline-offset: 2px;
  border-color: var(--primary);
}



/* ========================= */
/* 세금계산서 발행 폼 */
/* ========================= */
.tax-box {
  margin-top: 1rem;
  padding: 1rem;
  background: #fffdf4;
  border: 1px solid oklch(.945 .129 101.54);
  ;
  border-radius: .75rem;
  display: none;
}

.tax-box.active {
  display: block;
  /* 체크 시 보이게 */
}

.tax-form {
  color: var(--text);
  font-size: 14px;
}

.tax-group {
  margin-bottom: .9rem;
}

.tax-file {
  padding: .4rem .6rem;
  cursor: pointer;
}


.tax-help {
  margin-top: .35rem;
  font-size: 12px;
  color: var(--muted);
}

.tax-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

@media (min-width: 768px) {
  .tax-row {
    grid-template-columns: 1fr 1fr;
  }
}

.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px #ef444422;
}

/* input/textarea */
.est-layout .input,
.est-layout .textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  background: var(--input-background);
  padding: 10px 12px;
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  font-weight: bold;
}

/* .est-layout .input:focus, .est-layout .textarea:focus{
  border-color:#a5b4fc;box-shadow:0 0 0 3px rgba(99,102,241,.25);outline:none
} */
.est-layout .textarea {
  min-height: 110px;
}

/* nice-select 스코프 */
.est-layout .nice-select,
.ord .nice-select {
  width: 100%;
  height: 42px;
  line-height: 40px;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  padding: 0 36px 0 12px;
  color: var(--gray-900);
  background: var(--input-background);
  font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
  font-weight: bold;
  color: #757575;
}

.est-layout .material-form .nice-select {
  margin-bottom: 10px;
}

.ord .nice-select .list {
  width: 100%
}

/* .est-layout .nice-select:hover,
.est-layout .nice-select.open,
.est-layout .nice-select:focus{border-color:#a5b4fc;box-shadow:0 0 0 3px rgba(99,102,241,.25)} */
.est-layout .nice-select:after {
  border-color: var(--gray-400);
  right: 12px
}

.est-layout .nice-select .list {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  margin-top: 6px
}

.est-layout .nice-select .option {
  line-height: 40px;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px
}

.est-layout .nice-select .option:hover,
.est-layout .nice-select .option.focus {
  background: var(--gray-100)
}

.est-layout .nice-select .option.selected {
  font-weight: 600;
  color: #111
}

/* 파일 리스트 */
.est-layout .file-list {
  margin-top: 10px;
  text-align: left;
  font-size: 13px;
  color: #333
}

.est-layout .file-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 1px dashed var(--gray-200);
  border-radius: 6px;
  margin-top: 6px
}

.est-layout .file-list small {
  color: var(--gray-500)
}

.est-layout .file-list .remove {
  color: #b91c1c;
  cursor: pointer
}

/* ----- est-side 전용 카드 스타일 ----- */
.est-side .card {
  background: #fff;
  /* bg-card */
  color: #111827;
  /* text-card-foreground */
  border: none;
  /* border */
  border-radius: 12px;
  /* rounded-xl */
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* sticky top-8 */
.est-side .sticky {
  position: sticky;
  top: 90px;
  /* top-8 */
}


.est-side .card .result-state {
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 14px;
}

/* header: px-6 pt-6 pb-2 */
.est-side .card-header {
  display: grid;
  /* grid, auto-rows-min */
  grid-auto-rows: min-content;
  gap: 6px;
  /* items-start gap-1.5 */
  padding: 0;
  /* px-6 pt-6 */
}

/* .est-side .card-header.pb-2 {
  padding-bottom: 8px;
} */

/* title: font-[Sofia_Sans] text-[18px] font-bold mb-1 */
.est-side .card-title {
  /* font-family: 'Sofia Sans', system-ui, -apple-system, sans-serif; */
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 4px;
}

/* content: px-6, last-child:pb-6, space-y-4 */
.est-side .card-content {
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  /* [&:last-child]:pb-6 + px-6 */
}

.est-side .card-content>*+* {
  margin-top: 16px;
  /* space-y-4 */
}

/* empty state: text-center py-8 text-gray-500 -mt-4 */
.est-side .empty {
  text-align: center;
  padding: 20px 0 0;
  /* py-8 */
  color: #6b7280;
  /* text-gray-500 */
  margin-top: -16px;
  /* -mt-4 */
}

/* 아이콘 (w-12 h-12 opacity-50) */
.est-side .icon-48 {
  width: 48px;
  height: 48px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  opacity: 0.5;
}

/* 독립 업로드 카드 전체 */
.upload-card-box {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 16px 20px;
  font-family: 'Sofia Sans', system-ui, sans-serif;
  margin-top: 20px;
}

/* 제목 */
.upload-header {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

/* 파일 리스트 */
.upload-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* 비었을 때 */
.upload-list.empty {
  text-align: center;
  padding: 20px 0;
  color: #6b7280;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
}

/* 각 파일 항목 */
.upload-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0fdf4;
  /* 연한 초록 (green-50) */
  border: 1px solid #bbf7d0;
  /* green-200 */
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
}

/* 왼쪽 아이콘 + 이름 */
.upload-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-left svg {
  width: 20px;
  height: 20px;
  stroke: #2563eb;
  /* 파란색 파일 아이콘 */
  stroke-width: 2;
  fill: none;
}

.upload-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-meta .name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.upload-name {
  font-weight: 600;
}

.upload-badge {
  background: #f3f4f6;
  color: #111;
  font-size: 12px;
  border-radius: 6px;
  padding: 2px 6px;
  font-weight: 600;
}

/* 파일 정보 (크기, 설명) */
.upload-sub {
  color: #6b7280;
  font-size: 13px;
}

/* 오른쪽 아이콘 */
.upload-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.upload-right .ok-icon {
  width: 20px;
  height: 20px;
  stroke: #16a34a;
  stroke-width: 2;
  fill: none;
}

.upload-right .del-icon {
  width: 18px;
  height: 18px;
  stroke: #dc2626;
  stroke-width: 2;
  fill: none;
  cursor: pointer;
  transition: 0.2s;
}

.upload-right .del-icon:hover {
  stroke: #b91c1c;
}

/* ===============================
   Empty-state: 상담 카드
   =============================== */

/* 카드 내부 */
.card-content.empty-state .empty-chat {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1rem;
}

/* 상단 정보 영역 */
.card-content.empty-state .chat-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.card-content.empty-state .chat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.card-content.empty-state .chat-icon svg {
  width: 24px;
  height: 24px;
}

.card-content.empty-state .chat-texts {
  text-align: left;
}

.card-content.empty-state .chat-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 2px;
}

.card-content.empty-state .chat-sub {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* 버튼 */
.card-content.empty-state .chat-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #fdc700;
  color: #111827;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  text-decoration: none;
  transition: background 0.2s ease;
  width: 100%;
}

.card-content.empty-state .chat-btn:hover {
  background: #f0b100;
}

.card-content.empty-state .chat-btn svg {
  width: 16px;
  height: 16px;
}


/* ===== 견적 결과 (스코프: .est-result) ===== */
.est-result {
  --bd: #e5e7eb;
  --fg: #111827;
  --muted: #6b7280;
  --blue: #2563eb;
  --blue-50: #eff6ff;
  --blue-200: #bfdbfe;
  --bg: #fff;
}

.est-result .icon {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

/* key-value 한 줄 */
.est-result .kv {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap:5px 12px;
  font-size: 14px;
  line-height: 1.2;
}

.est-result .kv .k {
  color: var(--muted);
}

.est-result .kv .v {
  color: var(--fg);
}

.est-result .kv.mini {
  font-size: 12px;
  color: var(--muted);
}

/* 배송비 */
.est-result .kv .help-tip {
  position: relative;
  width: 14px;
  height: 14px;
  margin-bottom: 2px;
  border-radius: 50%;
  border: 1px solid var(--muted);
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}

.est-result .kv .help-tip .tooltip {
  display: none;
  position: absolute;
  left: -57.5px;
  top: 130%;
  min-width: 250px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #333;
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  z-index: 5;
  text-align: start;
}

/* .est-result .kv .help-tip .tooltip::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 10px;
  border-width: 0 4px 4px 4px;
  border-style: solid;
  border-color: transparent transparent #333 transparent;
} */
.est-result .kv .help-tip:hover .tooltip,
.est-result .kv .help-tip:focus .tooltip {
  display: block;
}

.est-result .kv.mini {
  font-size: 12px;
  color: var(--muted);
}

/* 구분선 */
.est-result .est-sep {
  height: 1px;
  width: 100%;
  background: var(--bd);
  margin: 12px 0;
}

.est-result .est-divider {
  height: 1px;
  background: var(--bd);
  margin: 8px 0;
}

/* 섹션 타이틀 */
.est-result .est-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

/* 상단 요약 */
.est-result .est-summary {
  display: grid;
  gap: 6px;
}

/* 분석 결과 목록 */
.est-result .kv-list {
  display: grid;
  gap: 6px;
}

/* 가격 상자 */
.est-result .est-box {
  padding: 12px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: 10px;
  display: grid;
  gap: 8px;
}

.est-result .kv.total .k {
  color: var(--muted);
}

.est-result .kv.total .price {
  font-size: 18px;
  font-weight: 800;
  color: #1d4ed8;
}

/* 동의 */
.est-result .est-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  background: #f9fafb;
  border: 1px solid var(--bd);
  border-radius: 10px;
  margin-top: 10px;
}

.est-result .est-agree .agree-input {
  /* width: 16px;
  height: 16px; */
  margin-top: 2px;
}

.est-result .est-agree .agree-copy {
  font-size: 12px;
  color: var(--fg);
  line-height: 1.5;
}

.est-result .est-agree .agree-note {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

/* 버튼 */
.est-result .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid var(--bd);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .15s ease;
}

.est-result .btn .icon {
  width: 16px;
  height: 16px;
}

/* .est-result .btn:hover {
  background: #f3f4f6;
} */

.est-result .btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.est-result .btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.est-result .btn-primary:hover {
  filter: brightness(0.85);
}

.est-result .btn:disabled:hover {
  filter: brightness(1);
}

.est-result .btn-outline {
  background: #fff;
}

.est-result .w-full {
  width: 100%;
}

.est-result .btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}


/* cnc가공 */

/* ===== Customer type segmented tabs (.cu-*) ===== */
.cu {
  --fg: #0f172a;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border2: #d1d5db;
  --card: #ffffff;
  --bg: #f8fafc;
  --primary: #0ea5e9;
  --primary-600: #0284c7;
}

.cu-seg {
  display: flex;
  gap: 12px;
  padding: 6px;
  border-radius: 12px;
}

.cu-seg__btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #fff;
  color: #111827;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
  outline: none;
  border: 1px solid var(--border);
}

.cu-seg__btn:hover {
  border-color: #cfe3ff;
  background: #f6faff
}

.cu-seg__btn.is-active {
  border-color: var(--border2);
  box-shadow: 0 2px 0 rgba(2, 6, 23, .06) inset;
  background-color: #f6faff;
}

.cu-ico {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2
}

/* Panels */
.cu-panel {
  margin-top: 16px
}

.is-hidden {
  display: none !important
}


/* 전체 버튼 */
.btn-additional-drawings {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 8px 16px;
  margin: 12px auto;
  border: 1px solid #d1d5db;
  /* gray-300 */
  border-radius: 6px;
  background-color: #fff;
  color: #111827;
  /* gray-900 */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* hover / active / disabled */
.btn-additional-drawings:hover {
  background-color: #eff6ff;
  /* blue-50 */
  color: #1d4ed8;
  /* blue-700 */
}

.btn-additional-drawings:active {
  transform: scale(0.98);
}

.btn-additional-drawings:disabled {
  opacity: 0.5;
  pointer-events: none;
}

/* 내부 라벨 영역 */
.btn-additional-drawings .btn-additional-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-additional-drawings .btn-additional-label .label-main {
  font-size: 14px;
  font-weight: 500;
}

.btn-additional-drawings .btn-additional-label .label-sub {
  font-size: 12px;
  color: #6b7280;
  /* gray-500 */
}

/* 아이콘 */
.btn-additional-drawings .btn-additional-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* 펼쳐졌을 때 회전 */
.btn-additional-drawings.is-open .btn-additional-icon {
  transform: rotate(180deg);
}


/* cnc가공 */




/* ===== 주문 페이지 스코프 ===== */
.ord {
  --ord-border: #e5e7eb;
  --ord-muted: #6b7280;
  --ord-bg: #ffffff;
  --ord-soft: #f9fafb;
  /* --ord-primary: #2563eb; */
  --ord-primary: #111827;
  --ord-primary-50: #f2edee;
  /* --ord-ring: rgba(37, 99, 235, .25); */
  --ord-success: #059669;
  --ord-danger: #ef4444;
  --ord-radius: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  color: #111827;
}

/* grid */
.ord .ord-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 1024px) {
  .ord .ord-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* main / side */
.ord .ord-main {
  display: grid;
  gap: 24px;
}

.ord .ord-side {
  position: relative;
}

/* card */
.ord .ord-card {
  background: var(--ord-bg);
  border: 1px solid var(--ord-border);
  border-radius: var(--ord-radius);
}

.ord .ord-card--sticky {
  position: sticky;
  top: 32px;
}

.ord .ord-card__header {
  padding: 18px 20px 8px;
}

.ord .ord-card__title {
  font-size: 16px;
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
}

.ord .ord-card__body {
  padding: 12px 20px 20px;
  display: grid;
  gap: 16px;
}


.ord .ord-card-extra {
  margin-top: 16px;
  padding: 16px;
  background: var(--ord-soft);
  border-radius: 10px;
  border: 1px solid var(--ord-border);
}

.ord .ord-card-extra__title {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.ord .ord-field--full {
  grid-column: 1 / -1;
}


/* icons (size helpers) */
.ord-tip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 10px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-weight: bold;
}

.ord .ord-ic {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* rows / fields */
.ord .ord-row {
  display: grid;
  gap: 12px;
}

.ord .ord-row--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ord .ord-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.ord .ord-row--zip {
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
}

.ord .ord-field {
  display: grid;
  gap: 8px;
}

.ord .ord-label {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

/* inputs */
.ord .ord-input,
.ord .ord-select,
.ord .ord-btn.ord-btn--ghost {
  border: 1px solid var(--ord-border);
  border-radius: 10px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  background: #f3f3f5;
  transition: box-shadow .15s, border-color .15s, background .15s, color .15s;
  position: relative;
}

.ord .ord-input::placeholder {
  color: #9ca3af;
}

.ord .ord-input:focus,
.ord .ord-select:focus {
  outline: none;
  /* border-color: var(--ord-primary); */
  /* box-shadow: 0 0 0 3px var(--ord-ring); */
}

.ord .ord-input--sm {
  height: 36px;
}

/* .ord .ord-select {
  appearance: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2399A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 36px;
} */

/* buttons */
.ord .ord-btn {
  border: 1px solid transparent;
  border-radius: 10px;
  height: 40px;
  padding: 0 14px;
  font-weight: 600;
  cursor: pointer;
}

.ord .ord-btn.ord-btn--ghost {
  background: #fff;
  max-width: max-content;
  padding: 0 24px;
}

.ord .ord-btn.ord-btn--ghost:hover {
  background: var(--ord-soft);
}

.ord .ord-btn--primary {
  background: var(--ord-primary);
  color: #fff;
}

.ord .ord-btn--primary:hover {
  filter: brightness(0.97);
}

.ord .ord-btn--block {
  width: 100%;
  margin-top: 10px;
}

/* radio (카드형) */
.ord .ord-radio-group {
  display: grid;
  gap: 10px;
}

.ord .ord-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--ord-border);
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: background .15s, border-color .15s, box-shadow .15s;
}

.ord .ord-radio:hover {
  background: var(--ord-soft);
}

.ord .ord-radio input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ord-border);
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.ord .ord-radio input:checked {
  /* border-color: var(--ord-primary); */
  /* box-shadow: 0 0 0 3px var(--ord-ring); */
}

.ord .ord-radio input:checked::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--ord-primary);
  border-radius: 999px;
}

.ord .ord-radio__label {
  display: flex;
  align-items: center;
  /* gap: 10px; */
}

.ord .ord-radio__label svg {
  margin-right: 5px;
}

.ord .ord-radio__title {
  font-weight: 600;
  font-size: 15px;
  margin-right: 10px;
}

.ord .ord-radio--inline {
  padding: 8px 12px;
  display: inline-flex;
  border-radius: 8px;
}

.ord .ord-radio--inline+.ord-radio--inline {
  margin-left: 8px;
}

.ord .ord-radio--inline span {
  font-size: 15px;
}

/* badge */
.ord .ord-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--ord-primary-50);
  color: #1f2937;
}

.ord .ord-badge--neutral {
  background: #f3f4f6;
  color: #374151;
}

/* checkbox rows */
.ord .ord-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ord .ord-check input {
  width: 16px;
  height: 16px;
}

.ord .ord-link {
  margin-left: 3px;
  font-size: 13px;
  font-weight: bold;
  background: none;
  border: 0;
  color: var(--ord-primary);
  text-decoration: underline;
  cursor: pointer;
}

.ord .ord-check span {
  font-size: 14px;
}

/* summary */
.ord .ord-summary {
  display: grid;
  gap: 10px;
}

.ord .ord-summary__block {
  display: grid;
  gap: 7px;
}

.ord .ord-summary__title {
  font-weight: 600;
  margin-bottom: 6px;
}

.ord .ord-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.ord .ord-list__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}

.ord .ord-list__name {
  font-weight: 600;
}

.ord .ord-list__sub {
  font-size: 12px;
  color: var(--ord-muted);
  margin-top: 2px;
}

.ord .ord-list__qty {
  color: #374151;
}

.ord .ord-opt {
  background: var(--ord-soft);
  border: 1px solid var(--ord-border);
  border-radius: 10px;
  padding: 12px;
}

.ord .ord-opt__name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.ord .ord-opt__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 10px;
  font-size: 12px;
}

.ord .ord-opt__grid>div {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.ord .ord-opt__grid span {
  color: var(--ord-muted);
}

.ord .ord-price {
  color: var(--ord-primary);
}

.ord .ord-note {
  color: #1d4ed8;
  font-size: 12px;
  margin-top: 4px;
  font-weight: bold;
}

.ord .ord-kv {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  /* border-bottom: 1px solid #d1d1d1;
  padding-bottom: 10px; */
}

.ord .ord-kv span:first-child {
  font-weight: 600;
}

.ord .ord-kv--bold {
  font-weight: 600;
  padding: 10px 0;
  border-top: 1px solid #d1d1d1;
  border-bottom: 1px solid #d1d1d1;
}

.ord .ord-help {
  color: var(--ord-muted);
  font-size: 12px;
  border-bottom: 1px solid #d1d1d1;
  padding-bottom: 10px;
}

.ord .ord-help--center {
  text-align: center;
  border-bottom: 0;
  padding-bottom: 0;
}

.ord .ord-sep {
  border: none;
  height: 1px;
  background: var(--ord-border);
  margin: 8px 0;
}

.ord .ord-grand {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
}

.ord .ord-grand__price {
  color: var(--ord-primary);
}

/* 상태 */
.ord .is-danger {
  color: var(--ord-danger);
}

.ord .is-success {
  color: var(--ord-success);
}



/* ===== base ===== */
.oc {
  max-width: 1120px;
  margin: 0 auto;
  color: #111827;
}

.oc .oc-muted {
  color: #6b7280;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 5px;
}

.oc .oc-green {
  color: #16a34a;
}

.oc .ord-sep {
  display: block;
  border: none;
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}


/* ===== card ===== */
.oc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.oc-card--center {
  text-align: center;
}

.oc-card--mb {
  margin-bottom: 32px;
}

.oc-card--mt {
  margin-top: 32px;
}

.oc-card__body {
  padding: 24px;
}

.oc-sticky {
  position: sticky;
  top: 24px;
}

/* ===== header area ===== */
.oc-done {
  width: 80px;
  height: 80px;
  border-radius: 9999px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dcfce7;
}

.oc-title {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 8px;
}

.oc-sub {
  color: #4b5563;
  font-size: 16px;
  margin: 0 0 20px;
}

/* ===== banner ===== */
.oc-banner {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
}

.oc-banner__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
}

.oc-banner__main {
  color: #1e40af;
  font-size: 16px;
}

.oc-banner__sub {
  color: #1d4ed8;
  font-size: 14px;
  text-align: center;
}

/* ===== icons ===== */
.oc-ic {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.oc-ic--xs {
  width: 16px;
  height: 16px;
}

.oc-ic--sm {
  width: 18px;
  height: 18px;
}

.oc-ic--md {
  width: 24px;
  height: 24px;
}

.oc-ic--lg {
  width: 40px;
  height: 40px;
}

.oc-ic--green {
  color: #16a34a;
}

.oc-ic--blue {
  color: #2563eb;
}

/* ===== grid ===== */
.oc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.oc-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width:1024px) {
  .oc-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
  }
}

/* ===== titles ===== */
.oc-h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin: 0 0 16px;
}

/* ===== key-value list ===== */
.oc-kv {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.oc-kv__row {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 16px;
}

.oc-kv__row dt {
  color: #6b7280;
  font-weight: bold;
}

.oc-kv__row dd {
  font-weight: 600;
}

/* ===== list rows ===== */
.oc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.oc-list__row {
  display: flex;
  /* align-items: center; */
  gap: 8px;
}

.oc-list__row--start {
  align-items: flex-start;
}

/* ===== items ===== */
.oc-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.oc-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.oc-item__name {
  font-weight: 600;
}

.oc-item__sub {
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

.oc-item__qty {
  font-weight: 600;
  white-space: nowrap;
}

/* ===== steps (right column) ===== */
.oc-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.oc-step {
  display: flex;
  gap: 12px;
}

.oc-step__dot {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  background: #f3f4f6;
  color: #9ca3af;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.oc-step__dot::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20%;
  height: 20%;
  border-radius: 9999px;
  background-color: #757575;
}

.oc-step--done .oc-step__dot::after {
  content: none;
}

.oc-step--done .oc-step__dot {
  background: #dcfce7;
  color: #16a34a;
}

.oc-step__body {
  flex: 1;
  min-width: 0;
}

.oc-step__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.oc-step__title {
  font-weight: 600;
}

.oc-step__desc {
  color: #6b7280;
  font-size: 14px;
  margin: 0 0 2px;
}

.oc-step__time {
  color: #9ca3af;
  font-size: 12px;
  margin: 0;
}

.oc-badge {
  background: #f3f4f6;
  color: #111827;
  border-radius: 8px;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
}

/* ===== mini steps ===== */
.oc-steps-mini {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width:768px) {
  .oc-steps-mini {
    grid-template-columns: repeat(3, 1fr);
  }
}

.oc-steps-mini__item {
  text-align: center;
  padding: 8px;
}

.oc-steps-mini__icon {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.oc-steps-mini__icon--blue {
  background: #dbeafe;
  color: #2563eb;
}

.oc-steps-mini__icon--green {
  background: #dcfce7;
  color: #16a34a;
}

.oc-steps-mini__icon--purple {
  background: #ede9fe;
  color: #7c3aed;
}

.oc-steps-mini__title {
  font-weight: 600;
  margin-bottom: 6px;
}

.oc-steps-mini__desc {
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

/* ===== buttons ===== */
.oc-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.oc-actions--col {
  flex-direction: column;
}

.oc-btn {
  border-radius: 8px;
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  background: #111827;
  color: #fff;
  cursor: pointer;
}

.oc-btn--primary {
  background: #111827;
}

.oc-btn--primary.sod_fin_c_btn{
  background-color: #7f1d1d;
}

.oc-btn--ghost {
  background: #fff;
  color: #111827;
  border-color: #e5e7eb;
}

.oc-btn--full {
  width: 100%;
}

.oc-btn:hover {
  filter: brightness(0.97);
}

/* ===== footer ===== */
.oc-footer {
  text-align: center;
  margin-top: 24px;
}

.oc-note {
  color: #6b7280;
  font-size: 13px;
  margin-top: 8px;
}

/* ===== extras ===== */
.oc-ic path,
.oc-ic rect,
.oc-ic circle,
.oc-ic line,
.oc-ic polyline {
  vector-effect: non-scaling-stroke;
}


@media screen and (max-width:960px) {
  .oc-card__body {
    padding: 12px;
  }

  .oc-h3 {
    font-size: 16px;
  }
}



/* 결과 카드 전체에 로딩 오버레이 */
.est-result .is-loading {
  position: relative;
  min-height: 96px;
}
.est-result .is-loading::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(1px);
}

/* 중앙 스피너 */
.est-result .is-loading::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 24px; height: 24px; margin: -12px 0 0 -12px;
  border: 3px solid #d1d5db; border-top-color: #2563eb;
  border-radius: 50%;
  animation: qa3d-spin 0.9s linear infinite;
  z-index: 1;
}
@keyframes qa3d-spin { to { transform: rotate(360deg); } }

/* 스켈레톤 라인 (분석 K/V 자리) */
.kv-list.--skeleton .kv .v {
  display:inline-block; min-width: 80px; height: 12px;
  background: linear-gradient(90deg,#f3f4f6, #e5e7eb, #f3f4f6);
  background-size: 200% 100%;
  animation: qa3d-shimmer 1.2s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes qa3d-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

#sod_cancel_pop {display:none;width:100%;height:100%;position:fixed;top:0;left:0;z-index:999}
#sod_fin_cancelfrm {position:absolute;top:50%;left:50%;background:#fff;text-align:center; padding: 20px; transform: translate(-50%, -50%); overflow-y:auto;border-radius:5px;-webkit-box-shadow:1px 1px 18px rgba(0,0,0,0.2);-moz-box-shadow:1px 1px 18px rgba(0,0,0,0.2);box-shadow:1px 1px 18px rgba(0,0,0,0.2);border:1px solid #dde7e9;background:#fff;border-radius:3px}  
#sod_fin_cancelfrm form {padding:20px}
.sod_fin_bg {background:rgba(0,0,0,0.1);width:100%;height:100%}
.sod_cls_btn {position:absolute;right:0;top:0;color:#b5b8bb;border:0;padding:12px 15px;font-size:16px;background:#fff}

#sod_fin_cancelfrm .frm_input {background:#fff;margin:0 0 5px;width:100%}
#sod_fin_cancelfrm .btn_frmline {background:#5e6b6f;color:#fff;border:0;padding:10px;width:100%;cursor:pointer}
#sod_fin_test {padding:10px}

#sod_fin_cancelfrm .frm_input {
    border: 1px solid #d0d3db;
    background: #fff;
    color: #000;
    vertical-align: middle;
    border-radius: 3px;
    padding: 5px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
}

/* priv_modal popup */
.layerWrap {
    width: 100%;
    position: fixed;
    bottom:  0;
    left: 0;
    height: 100vh;
    z-index: 9999;
    display: none;
  }
  .layerWrap .bg {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
  }
  .layerWrap .popWrap {
    position: relative;
    width: 90%;
    max-width: 900px;
    background-color: #fff;
    padding: 35px;
    box-sizing: border-box;
    line-height: 1.2;
    height: 70vh;
    top: 50vh;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .layerWrap .popWrap .popClose {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    position: absolute;
    bottom: 100%;
    right: 0;
    color: #fff;
    background-color: #000;
    cursor: pointer;
  }
  .layerWrap .popWrap .pop {
    /* overflow-y: auto; */
    height: 100%;
  }
  .layerWrap .popWrap .pop dl dt {
    font-size: 18px;
  }
  .layerWrap .popWrap .pop dl dd {
    font-size: 14px;
    margin-top: 10px;
  }
  .layerWrap .popWrap .pop p {
    margin-top: 20px;
    font-size: 14px;
  }
  .layerWrap .popWrap .pop textarea{
    margin-top: 20px;
    display: block;
    width: 100%;
    height: 90%;
  }
  .layerWrap strong {
    font-weight: bold;
  }
  @media screen and (max-width: 820px) {
    .layerWrap .popWrap {
      padding: 15px;
      height: 50vh;
    }
  }



  /****************************신청폼 리뉴얼 ****************************/

.esti_section {
  background: #f7f9fb;
  padding: 150px 0 120px;
}

.esti_notice_top {
  background: #eef7fb;
  border-radius: 10px;
  padding: 18px 20px;
  font-size: 14px;
  color: #006a8c;
  margin-bottom: 20px;
}

.esti_tab_wrap {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 2px solid #e4e7ec;
}

.esti_tab {
  
  text-align: center;
  flex: 1;
  padding: 10px 0;
  border: 1px solid #008fbe;
  border-bottom: none;
  background: #ffffff;
  font-size: 20px;
  font-weight: 500;
  color: #008fbe;
  cursor: pointer;
}

.esti_tab {
  border-left: none;
}

.esti_tab.is-active {
  background: #008fbe;
  color: #ffffff;
}

.esti_tab.none-active {
  transition: background .3s;
}

.esti_tab.none-active:hover {
  background: #f1f1f1;
}

.esti_form {
  margin-top: 0;
}

.esti_box {
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  border: 1px solid #e4e7ec;
  padding: 24px 22px 28px;
}

.esti_row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.esti_field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.esti_field.full {
  flex: 1 0 100%;
}

.esti_field label {
  font-size: 18px;
  font-weight: 500;
  color: #333;
  margin-bottom: 6px;
}

.esti_field label span {
  font-size: 14px;
}

.esti_field input,
.esti_field textarea {
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 11px 12px;
  font-size: 16px;
  line-height: 1.5;
  background: #ffffff;
}

.esti_field input::placeholder,
.esti_field textarea::placeholder {
  color: #b0b4bc;
}

.esti_field input:focus,
.esti_field textarea:focus {
  outline: none;
  border-color: #008fbe;
  box-shadow: 0 0 0 1px rgba(0,143,190,0.25);
}

.esti_check_wrap {
  flex: none;
}

.esti_file_help {
  margin-top: 6px;
  font-size: 13px;
  color: #757b86;
}


.esti_check {
  display: block;
  font-size: 14px;
  color: #444;
  margin-bottom: 4px;
}

.esti_check input {
  margin-right: 4px;
}

.agree_con {
  font-size: 12px;
  background: #ebebeb;
  border-radius: 5px;
  padding: 2px 5px;
}

.esti_submit {
  width: 220px;
  height: 48px;
  border-radius: 24px;
  margin: 20px auto 0;
  border: none;
  background: #008fbe;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  transition: background .3s;
}

.esti_submit:hover {
  background: #0080aa;
}



@media (max-width: 900px) {
  .esti_box {
    padding: 18px 16px 22px;
  }
  .esti_row {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .esti_tab_wrap {
    flex-wrap: wrap;
    gap: 10px;
  }
  .esti_tab {
    flex: auto;
    width: 100%;
    border-bottom: 1px solid #008fbe;
    border-left: 1px solid #008fbe;
  }
}

/* 이용약관 동의 */
.agree_dim {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 90;
  display: none;
}

.agree_dim.is-open {
  display: block;
}

.agree_modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 91;
}

.agree_modal.is-open {
  display: flex;
}

.agree_modal_inner {
  width: 90%;
  max-width: 900px;
  max-height: 80vh;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
}

.agree_modal_head {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agree_modal_head h3 {
  font-size: 16px;
  font-weight: 600;
}

.agree_close {
  border: none;
  background: none;
  font-size: 18px;
  cursor: pointer;
}

.agree_modal_body {
  padding: 16px 18px 18px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.agree_modal_body h4 {
  font-size: 14px;
  margin: 14px 0 4px;
  font-weight: 600;
}

