/* ============================================================
   PCB_Fabrication_Quote_2026D_patch.css
   Purpose:
   - Quote page layout patch
   - Override skin_CNC-lite.css
   ============================================================ */

/* ===============================
   Layout Fix (CNC-lite override)
   =============================== */

body .content_panel{
  padding: 10px 12px !important;
}

body .float_right_out{
  max-width: none !important;
  width: 100% !important;
}

body .main_out{
  padding-left: 10px !important;
  padding-right: 12px !important;
}


/* ===============================
   Top Quote Navigation Bar
   =============================== */

#QTopNavBar{
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 6px 0;
}

#QTopNavBar .qnav_item{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

#QTopNavBar .qnav_inside{
  font-family: Tahoma, Geneva, sans-serif;
  font-size: 11px;
  color: #C00;
  font-weight: bold;
}

#QTopNavBar .qnav_btn,
#QTopNavBar .qnav_arrow{
  vertical-align: middle;
}

#QTopNavBar input,
#QTopNavBar img{
  display: inline-flex !important;
  align-items: center;
}



/* ===============================
   Flow Steps – Brand Green
   =============================== */

.flow_steps{
  margin: 18px auto 22px;
  text-align: center;
  font-family: Tahoma, Arial, sans-serif;
}

.flow_steps ul{
  list-style: none !important;
  margin: 0;
  padding: 10px 12px;

  display: flex !important;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;

  gap: 10px;                 /* ✅ 关键：每个胶囊之间留缝 */

  background: #fff;
  border: 1px solid #d7d7d7;
  border-radius: 12px;
  box-shadow: 0 1px 10px rgba(0,0,0,0.06);
}

.flow_steps li{
  display: inline-flex !important;
  align-items: center;
  white-space: nowrap;
  font-size: 14px;
  color: #203028;

  padding: 8px 16px;         /* ✅ 轻微加宽：视觉更松 */
  border-radius: 999px;
  border: 1px solid #e6ece8;
  background: #f3f7f5;
}

.flow_steps li + li::before{
  content: "›";
  margin: 0 14px 0 10px;     /* ✅ 箭头左右留白更舒服 */
  font-size: 22px;
  font-weight: 900;
  color: #0b5a3c;
}

.flow_steps li.current{
  color: #fff;
  border-color: #064a31;
  background: linear-gradient(180deg,#0f6b46,#0b5a3c);
}

.flow_steps li:not(.current):hover{
  background: #eaf2ee;
  border-color: #cfe0d7;
}

/* 窄屏时稍微收一点间距，避免太容易换行 */
@media (max-width: 900px){
  .flow_steps ul{ gap: 6px; }
  .flow_steps li + li::before{ margin: 0 10px 0 8px; }
}







/* ===============================
   Dividers
   =============================== */

.q_vline{
  width: 14px;
  min-width: 14px;
  border-right: 2px solid #d6d6d6;
}

@media (max-width: 900px){
  .q_vline{ display:none; }
}

.q_top_divider{
  height: 2px;
  background: #d6d6d6;
  margin: 10px 0 12px;
  border-radius: 2px;
}


/* ===============================
   Pre-Layer Placeholder
   =============================== */

.q_pre_layer{
  width:96%;
  margin: 10px auto 26px;
  font-family: Tahoma, Arial, sans-serif;
}

.q_pre_shell{
  border:1px solid #d7e6de;
  border-radius: 14px;
  background:#fff;
  padding: 16px;
  box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

.q_pre_shell_fill{
  min-height: 340px;
}

.q_pre_title{
  font-weight: 800;
  color: #0b5a3c;
  font-size: 14px;
}

.q_pre_sub,
.q_pre_action{
  font-size: 12px;
  line-height: 18px;
  color: #2b3a33;
}

.q_pre_grid{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}

.q_pre_card{
  border: 1px solid #e4efe9;
  background: #fbfdfc;
  border-radius: 12px;
  padding: 12px;
}

.q_pre_list{
  list-style:none;
  padding:0;
  margin:0;
}

@media (max-width:900px){
  .q_pre_shell_fill{ min-height:0; }
}


/* Quote page – top title background (moved from inline style) */
.q_title_bg{
  background: url(/PCB-fabrication/PCB-fabrication-images/pcb_title_bg.jpg) no-repeat 230px;
}

/* Utility: remove td padding (moved from inline style) */
.q_td_pad0{
  padding: 0;
}

/* Step1 select border (moved from inline style) */
.q_select_border{
  border: 1px solid #000;
}

/* P1-Step5: normalize step table typography & spacing */
.main_table{
  font-size: 12px;
  line-height: 18px;
}

.main_table td{
  padding: 6px 8px;
  vertical-align: middle;
}

/* P1-Step6: legacy bgcolor replacement */
.q_row_green{
  background-color: #99CC99;
}

.q_row_cyan{
  background-color: #99CCCC;
}

/* P1-Step7: step header row (replace legacy td background image) */
.q_step_header{
  background: url(/PCB-fabrication/PCB-fabrication-images/title_bg2.jpg) repeat-x;
  font-weight: 800;
  color: #0b5a3c;
}

.q_step_header .title_area{
  color: inherit;
}


/* When q_step_header is used on plain <td> (no bg image), make it look like a header bar */
.q_step_header{
  padding: 8px 10px;
}

/* P1-Step8: light step title (icon + text layout) */
.q_step_title{
  vertical-align: middle;
  padding: 6px 6px;
}

.q_step_title .title_area{
  font-size: 15px;
  font-weight: 700;
  color: #0b5a3c;
  line-height: 20px;
}






/* ===== Pre-Layer missing pieces (restore from inline style) ===== */

.q_pre_sub{
  margin: 0 0 10px 0;
}

.q_pre_action{
  margin: 10px 0 12px 0;
  padding: 10px 12px;
  border: 1px dashed #cfe0d8;
  border-radius: 12px;
  background: #fbfcfb;
}
.q_pre_action b{ color:#0b5a3c; }

.q_pre_col{
  flex: 1 1 330px;
  min-width: 280px;
}

.q_pre_card{
  margin-bottom: 12px;
}

.q_pre_card_title{
  font-weight: 800;
  color:#0b5a3c;
  font-size: 13px;
  margin: 0 0 6px 0;
}

.q_pre_list{
  font-size: 12px;
  line-height: 18px;
  color: #2b3a33;
}
.q_pre_list li{ margin: 3px 0; }

.q_pre_details{
  margin-top: 10px;
  border-top: 1px solid #eef4f1;
  padding-top: 10px;
}
.q_pre_details summary{
  cursor:pointer;
  font-weight: 800;
  color:#0b5a3c;
  font-size: 12px;
}
.q_pre_details_body{
  margin-top: 8px;
  font-size: 12px;
  line-height: 18px;
  color: #2b3a33;
}








/* =====================================================
   Step2 – inline-style cleanup (2026F)
   ===================================================== */

/* 去掉 Step2 首行 td 的上边框 */
.q_td_no_top_border{
  border-top: 0 !important;
}

/* 统一：40px 输入框（尺寸类） */
.q_in_40{
  width: 40px;
  ime-mode: disabled;
  border: 1px solid #000;
}

/* 有些地方写了两次 width:40px，这里统一即可 */
.q_in_40:focus{
  outline: none;
}

/* 数量输入框（跟你原来一致：40px + 黑边） */
.q_qty_40{
  width: 40px;
  ime-mode: disabled;
  border: 1px solid #000;
}

/* 单位下拉 */
.q_sel_unit_55{ width: 55px; }
.q_sel_unit_48{ width: 48px; }

/* 问号提示 icon（替代 style="color:#900;font-size:14px;cursor:pointer"） */
.q_help_icon{
  color: #900;
  font-size: 14px;
  cursor: pointer;
}

/* Step2: “X x Y = ? boards” 的粗体小字 */
.q_small_bold{
  font-size: 11px;
  font-weight: bold;
}

/* 只读计算结果（透明背景、红字、下边框） */
.q_calc_ro_40{
  width: 40px;
  border-left: none;
  border-right: none;
  border-top: none;
  border-bottom: 1px solid #000;
  font-family: Tahoma, Arial, sans-serif;
  text-align: center;
  font-weight: bold;
  color: #C00;
  background-color: transparent;
}

/* 有些旧 CSS 会把 input 拉高，这里兜底一下 */
.q_calc_ro_40,
.q_in_40,
.q_qty_40{
  box-sizing: border-box;
}


/* ===== Flow Steps: compact vertical spacing ===== */
.flow_steps ul{
  margin: 6px 0 10px 0;   /* 收紧上下留白 */
}

.flow_steps li{
  padding: 6px 14px;     /* 原来通常是 10~14px，上下压缩 */
  line-height: 16px;     /* 关键：压缩高度 */
  min-height: 0;         /* 防止被旧样式撑高 */
}

/* 当前步骤（如果有 current / active）也一起压 */
.flow_steps li.current,
.flow_steps li.active{
  padding: 6px 14px;
  line-height: 16px;
}


/* ============================================================
   HARD FIX: force native select to render options correctly
   ============================================================ */
select[name="minimum_clearance"]{
  size: 1;
}
select[name="minimum_clearance"]:focus{
  size: 6;
}





/* =====================================================
   Flow Steps – Plain Arrow Separator (no pill / no shadow)
   ===================================================== */

/* 所有 steps 基础样式保持 */
.flow_steps ul{
  display:flex;
  align-items:center;
  gap:10px;
}

/* 空 li 作为箭头容器 */
.flow_steps ul li:empty{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  width: auto;
  min-width: auto;
  position: relative;
}

/* 用 CSS 生成箭头符号 */
.flow_steps ul li:empty::before{
  content: ">";
  font-size: 16px;
  font-weight: bold;
  color: #888;
}

/* 当前步骤保持高亮 */
.flow_steps li.current{
  background:#0f6b3f;
  color:#fff;
  border-color:#0f6b3f;
}

 

.quote_intro{
  margin-top:8px;
  font-size:14px;
  color:#444;
}


.panel-help-line{
  font-family: Verdana, Geneva, sans-serif;
  font-size: 11px;
  line-height: 1.5;
  color: #555;
  margin-top: 3px;
  margin-left: 28px;
}
.panel-help-line a{
  color: #0033cc;
  text-decoration: underline;
}