/* SiteFlow — Estimating */
.sfe-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.sfe-stats .sf-stat { background: #fff; border: 1px solid #E6E8EC; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.sfe-stats .sf-stat span { font-size: 12px; color: #5B6B87; }
.sfe-tabs { margin-bottom: 14px; }
.sfe-list tbody tr, .sfe-lines tbody tr { cursor: pointer; }
.sfe-list .mu, .sfe-lines .mu, .sfe-card .mu, .mu { color: #5B6B87; font-size: 12.5px; }
.sfe-card { background: #fff; border: 1px solid #E6E8EC; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.sfe-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #EEF0F3; }
.sfe-ch b { font-size: 15px; }
.sfe-empty { padding: 18px 16px; color: #5B6B87; font-size: 13.5px; }
.sfe-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; padding: 14px 16px; }
.sfe-line .sfe-grid { padding: 0; }
.sfe-f { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sfe-f.sfe-full { grid-column: 1 / -1; }
.sfe-f label { font-size: 12.5px; font-weight: 600; color: #0A1F44; }
.sfe-f label i { font-style: normal; font-weight: 400; color: #5B6B87; }
.sfe-f input, .sfe-f select, .sfe-f textarea, .sfe-pick { height: 40px; border: 1px solid #D6DAE1; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14px; background: #fff; min-width: 0; }
.sfe-f textarea { height: auto; padding: 8px 10px; resize: vertical; }
.sfe-f input:focus, .sfe-f select:focus, .sfe-f textarea:focus { outline: none; border-color: #F26B21; box-shadow: 0 0 0 3px rgba(242,107,33,.16); }
.sfe-pick { align-self: end; color: #5B6B87; font-size: 13px; }
.sfe-2col { align-items: start; }
.sfe-side { position: sticky; top: 80px; }
.sfe-totals { padding-bottom: 12px; }
.sfe-tr { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 16px; font-size: 14px; }
.sfe-tr i { font-style: normal; color: #5B6B87; font-size: 12px; margin-left: 4px; }
.sfe-tr.strong { font-weight: 700; font-size: 15px; }
.sfe-sep { height: 1px; background: #EEF0F3; margin: 6px 16px; }
.sfe-grand { display: flex; justify-content: space-between; align-items: center; margin: 8px 12px 0; padding: 12px 14px; background: #0A1F44; color: #fff; border-radius: 10px; }
.sfe-grand b { font-size: 22px; }
.sfe-pct { width: 64px; height: 30px; border: 1px solid #D6DAE1; border-radius: 6px; padding: 0 6px; margin: 0 4px; font: inherit; }
.sfe-small { padding: 8px 16px 0; }
.sfe-line { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.sfe-line h4 { margin: 8px 0 0; font-size: 14px; }
.sfe-calc { font-size: 13px; color: #1A4796; background: #F1F5FC; border-radius: 8px; padding: 8px 12px; }
.sfe-info { font-size: 13px; background: #FAFBFC; border: 1px solid #E6E8EC; border-radius: 10px; padding: 10px 12px; }
.sfe-info ul { margin: 6px 0; padding-left: 18px; }
.sfe-to td { font-size: 13px; }
.sfe-seg { align-self: flex-start; }
.sfe-linetot { margin: 0; padding: 8px 0 12px; }
.sfe-sheet-acts { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding-top: 4px; }
.sf-sheet.sfe-wide { max-width: 760px !important; width: min(760px, 100%) !important; max-height: 88vh; overflow: auto; }
.sfe-status .sf-row { width: 100%; }
.sfe-lead { color: #5B6B87; margin: -6px 0 16px; }
.sfe-rates input { height: 36px; border: 1px solid #D6DAE1; border-radius: 8px; padding: 0 10px; font: inherit; }
.sfe-rates td:first-child input { width: 100%; }
.sfe-phone-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
@media (max-width: 899px) {
  .sfe-stats { grid-template-columns: 1fr 1fr; }
  .sfe-grid { grid-template-columns: 1fr; }
  .sfe-side { position: static; }
}

.sfe-totals .sfe-pct { width: 64px !important; min-width: 0 !important; display: inline-block !important; height: 30px !important; }
.sfe-tr span { white-space: nowrap; }
#sf-estimate .sf-dh h1 { text-transform: none !important; }

#app .sfe-f label i { text-transform: none !important; }
.sfe-tbl { margin: 8px 0; }
.sfe-tbl summary { cursor: pointer; font-weight: 600; font-size: 13px; color: #1A4796; }
.sfe-tblwrap { overflow-x: auto; margin: 6px 0; }
.sfe-tblwrap table { border-collapse: collapse; font-size: 12px; }
.sfe-tblwrap th, .sfe-tblwrap td { border: 1px solid #E6E8EC; padding: 4px 8px; text-align: right; white-space: nowrap; }
.sfe-tblwrap thead th, .sfe-tblwrap tbody th { background: #F7F8FA; text-align: left; font-weight: 600; }
.sfe-warn { margin-top: 8px; background: #FFF6E5; border: 1px solid #F5D9A8; color: #8A5A12; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.sfe-reo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.sfe-reorow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sfe-reorow select, .sfe-reorow input { border: 1px solid #D5DAE2; border-radius: 8px; padding: 7px 8px; font: inherit; width: 110px; }
.sfe-reorow .mu { min-width: 70px; }
/* Rate slots for auto-pricing */
.sfe-slots .sfe-sgroup { margin-bottom: 12px; }
.sfe-slots h4 { margin: 8px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--n5, #667085); }
.sfe-slot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid #EEF0F3; }
.sfe-slot > span:first-child { font-weight: 600; flex: 1; min-width: 0; }
.sfe-sin { display: flex; align-items: center; gap: 6px; }
.sfe-sin i { font-style: normal; color: var(--n5, #667085); }
.sfe-sin input { width: 110px; height: 38px; border: 1px solid var(--line2, #E6E8EC); border-radius: 8px; padding: 0 10px; font: inherit; text-align: right; transition: background .3s; }
.sfe-sin input:placeholder-shown { background: #FFFAF5; }
.sfe-sin input.saved { background: #ECFDF3; border-color: #12B76A; }
.sfe-sin em { font-style: normal; font-size: 12px; color: var(--n5, #667085); width: 64px; }
.sfe-h3 { margin: 18px 0 6px; }
.sfe-pricedone .sfe-need { border: 1px solid #FBD9C4; background: #FFF9F5; border-radius: 12px; padding: 12px; margin: 10px 0; }
.sfe-pricedone ul { margin: 6px 0 10px 18px; padding: 0; }
.sfe-demo { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #B54708; background: #FEF0C7; border-radius: 6px; padding: 2px 6px; vertical-align: middle; }

/* quantity source + pre-quote checks */
.sfe-checks .sfe-ch { gap: 8px; }
.sfe-chk { list-style: none; margin: 0; padding: 4px 0; }
.sfe-chk li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 16px; font-size: 13.5px; line-height: 1.45; border-top: 1px solid #F0F2F5; }
.sfe-chk li:first-child { border-top: 0; }
.sfe-chk li[role=button] { cursor: pointer; }
.sfe-chk li[role=button]:hover { background: #F6F8FB; }
.sfe-chk li .ms { font-size: 18px; flex: none; margin-top: 1px; }
.sfe-chk li.block .ms { color: #B42318; }
.sfe-chk li.warn .ms { color: #B54708; }
.sfe-checks .sfe-small { padding: 0 16px 12px; }
.sfe-checks.flash { box-shadow: 0 0 0 3px #F04438; transition: box-shadow .2s; }
.sfe-aiq { display: flex; gap: 10px; align-items: flex-start; background: #FEF3F2; border: 1px solid #FECDCA; color: #7A271A; border-radius: 10px; padding: 12px 14px; margin: 12px 0; font-size: 13.5px; line-height: 1.5; }
.sfe-aiq .ms { color: #B42318; flex: none; }
.sfe-aiq .sf-b { margin-top: 8px; }
.sfdw-warn { display: flex; gap: 8px; align-items: flex-start; background: #FFFAEB; border: 1px solid #FEDF89; color: #7A2E0E; border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.sfdw-warn .ms { color: #B54708; font-size: 18px; flex: none; }
