/* v52 automatic service cost templates */
.service-cost-template-summary-v52{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:12px;
  padding:9px 11px;
  border:1px solid #dbe3ee;
  border-radius:10px;
  background:#f8fafc
}
.service-cost-template-summary-v52 strong{font-size:.82rem;color:#0f172a}
.service-cost-template-summary-v52 span{font-size:.72rem;color:#64748b;text-align:right}

.case-estimates-v52{
  padding:10px 11px;
  border:1px solid #dbe3ee;
  border-radius:11px;
  background:#fff
}
.case-estimates-head{
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  margin-bottom:7px
}
.case-estimates-head strong{font-size:.86rem;color:#0f172a}
.case-estimates-head span{font-size:.72rem;color:#64748b}
.case-estimate-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:9px;
  padding:8px 0;
  border-top:1px solid #edf1f5
}
.case-estimate-row:first-of-type{border-top:0}
.case-estimate-row strong{
  display:block;
  font-size:.79rem;
  color:#1e293b
}
.case-estimate-row span{
  display:block;
  margin-top:2px;
  font-size:.68rem;
  color:#64748b
}
.case-estimate-amount{
  min-width:82px;
  text-align:right;
  font-weight:800;
  font-size:.8rem;
  color:#0f172a
}
.estimated-fee-row{
  background:#fffbf2
}

@media(max-width:700px){
  .service-cost-template-summary-v52{
    display:grid;
    grid-template-columns:1fr;
    gap:3px
  }
  .service-cost-template-summary-v52 span{text-align:left}
  .case-estimate-row{
    grid-template-columns:minmax(0,1fr) auto;
  }
  .case-estimate-row .btn{
    grid-column:1/-1;
    width:100%;
    min-height:38px
  }
  .case-estimate-amount{min-width:0}
}


/* v54 official fee price display */
.case-estimate-official-note{
  margin-top:4px!important;
  color:#475569!important
}
.case-estimate-amount{
  max-width:210px;
  line-height:1.25;
  white-space:normal
}
@media(max-width:700px){
  .case-estimate-amount{
    max-width:150px;
    font-size:.76rem
  }
}


/* v55 stage-based consular workflow */
.case-stage-control-v55{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:9px 11px;
  border:1px solid #cbd5e1;
  border-radius:10px;
  background:#f8fafc
}
.case-stage-control-v55 strong{
  display:block;
  font-size:.78rem;
  color:#0f172a
}
.case-stage-control-v55 span{
  display:block;
  margin-top:2px;
  font-size:.72rem;
  color:#475569
}
.case-stage-select-v55{
  min-width:220px;
  max-width:300px;
  padding:7px 9px;
  border:1px solid #cbd5e1;
  border-radius:8px;
  background:#fff;
  color:#0f172a
}
@media(max-width:700px){
  .case-stage-control-v55{
    display:grid;
    grid-template-columns:1fr;
  }
  .case-stage-select-v55{
    width:100%;
    max-width:none;
    min-width:0;
  }
}
