/* Fix & Flip Calculator v2.0.0 — BiggerPockets Style */
#ffc-wrap,
#ffc-wrap {
  box-sizing: border-box;
  font-family: "Gilroy";
}
#ffc-wrap {
  padding: 46px 0 90px;
}
div#ffc-form-area {
  max-width: 930px;
  margin: 0 auto;
}
.-ffc-container {
  max-width: 1308px;
  margin: 0 auto;
  padding: 0 15px;
}
/* ── Login ── */
.ffc-login-notice {
  max-width: 960px;
  margin: 0 auto;
}
.ffc-login-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 32px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-align: center;
}
.ffc-login-box svg {
  color: #94a3b8;
}
.ffc-login-box p {
  color: #64748b;
  font-size: 1rem;
  margin: 0;
}
.ffc-login-btn {
  display: inline-block;
  padding: 11px 28px;
  background: var(--ffc-btn, #0d9488);
  color: #fff !important;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none !important;
  font-size: 0.95rem;
  transition: opacity 0.2s;
}
.ffc-login-btn:hover {
  opacity: 0.88;
}

/* ── Header ── */
.ffc-header {
  text-align: center;
  margin-bottom: 18px;
}
.ffc-title {
  font-size: 1.9rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.ffc-subtitle {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* ── TOP BAR (steps) ── */
.ffc-topbar {
  margin-bottom: 46px;
}
.ffc-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0;
}
.ffc-step-indicator {
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
}
.ffc-report-label {
  color: #45556c;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.ffc-progress-wrap {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}
.ffc-progress-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, #008080 0%, #066 100%);
}

/* ── Layout ── */
.ffc-container {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* ── Sidebar ── */
.ffc-sidebar {
  width: 272px;
  flex-shrink: 0;
  padding: 17px;
  position: sticky;
  top: 24px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 23px;
}

/* ── Photo ── */
.ffc-photo-box {
  position: relative;
  height: 116px;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s;
  border-radius: 14px;
  border: 2px solid #cad5e2;
}
.ffc-photo-box:hover {
  border-color: var(--ffc-primary);
}
.ffc-photo-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #4e5053;
  font-size: 14px;
  font-style: normal;
  line-height: 20px;
}
.ffc-photo-preview {
  display: none;
  position: absolute;
  inset: 0;
}

.ffc-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}
.ffc-photo-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #0095ff !important;
  color: #fff;
  border: none;
  font-size: 11px;
  cursor: pointer;
  line-height: 22px;
  text-align: center;
  padding: 0;
}
.ffc-photo-preview.visible {
  display: block;
}
.ffc-photo-placeholder.hidden {
  display: none;
}

/* ── Nav ── */
.ffc-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ffc-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 0px;
  border: none;
  background: transparent !important;
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  font-size: 14px;
  color: #45556c !important;
  font-style: normal;
  line-height: 20px;
  border: none;
  box-shadow: none;
}
.ffc-nav-item:hover {
  color: #0f172b !important;
}
.ffc-nav-item.active,
.ffc-nav-item.visible {
  color: #0f172b !important;
  font-weight: 500;
}
.ffc-nav-item.active span.ffc-nav-check,
.ffc-nav-item.visible span.ffc-nav-check {
  opacity: 1;
}
.ffc-nav-check {
  opacity: 0;
  transition: opacity 0.2s;
}
.ffc-nav-check svg {
  display: block;
}
.ffc-nav-check.visible {
  opacity: 1;
}
.ffc-update-btn,
.ffc-next-btn,
button#ffc-calc-btn {
  border: none;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.15s;
  border-radius: 10px;
  display: flex;
  padding: 12px 22.5px;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  gap: 5px;
}
.ffc-update-btn {
  width: 100%;
}
.ffc-update-btn {
  color: #fff;
  background: #0095ff;
}
.ffc-next-btn,
button#ffc-calc-btn {
  background: linear-gradient(180deg, #008080 0%, #066 100%);
  box-shadow:
    0 10px 15px -3px rgba(0, 128, 128, 0.3),
    0 4px 6px -4px rgba(0, 128, 128, 0.3);
  padding: 10px 22px;
  color: #fff !important;
}

/* ── Main panel ── */
.ffc-main {
  flex: 1;
  padding: 33px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

/* ── Steps ── */
.ffc-step {
  display: none;
}
.ffc-step.active {
  display: block;
  animation: ffcIn 0.28s ease;
}
@keyframes ffcIn {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.ffc-err:empty {
  display: none;
}
.ffc-step-header {
  margin-bottom: 32px;
  position: relative;
}
.ffc-step-header h3 {
  margin: 0 0 3px;
  color: #0f172b;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}
.ffc-step-header p {
  margin: 0;
  color: #4e5053;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

/* ── Help links ── */
.ffc-help-link {
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  color: #096;
  gap: 4px;
}
.ffc-help-link span {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #90a1b9;
}
.ffc-help-link:hover {
  color: #008080;
}
.ffc-help-inline {
  margin-left: 6px;
  font-size: 0.75rem;
}
.ffc-container input[type="text"],
input[type="number"],
.ffc-container input[type="email"],
input[type="url"],
.ffc-container input[type="password"],
input[type="search"],
.ffc-container input[type="reset"],
input[type="tel"],
.ffc-container input[type="date"],
.ffc-container select,
.ffc-container textarea,
.ffc-adv-item-label {
  width: 100%;
  padding: 12px 16px;
  box-shadow: none;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  min-height: 50px;
  color: #314158;
  font-family: Gilroy;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.ffc-container textarea {
  min-height: 122px;
}
.ffc-container input::-webkit-input-placeholder {
  /* Chrome/Opera/Safari */
  color: #90a1b9;
}
.ffc-container input::-moz-placeholder {
  /* Firefox 19+ */
  color: #90a1b9;
}
.ffc-container input:-ms-input-placeholder {
  /* IE 10+ */
  color: #90a1b9;
}
.ffc-container input:-moz-placeholder {
  /* Firefox 18- */
  color: #90a1b9;
}
.ffc-container input:-webkit-autofill {
  -webkit-text-fill-color: #314158 !important;
}
/* ── Fields ── */
.ffc-field-group {
  margin-bottom: 24px;
}
.ffc-field-group label {
  display: block;
  margin-bottom: 8px;
  color: #314158;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.ffc-field-group small {
  display: block;
  color: #4e5053;
  font-family: Gilroy;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
  margin-top: 6px;
}
.ffc-field-group small strong {
  color: #008080;
  font-weight: normal;
}
.ffc-field-group .ffc-slider-wrap {
  margin-bottom: 16px;
}
.ffc-required {
  color: #ef4444;
  margin-left: 2px;
}
#ffc-wrap .ffc-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.93rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
#ffc-wrap .ffc-input:focus {
  border-color: var(--ffc-primary);
  background: #fff;
}
.ffc-textarea {
  resize: vertical;
  min-height: 80px;
}
select.ffc-input {
  cursor: pointer;
}
.ffc-input-currency {
  position: relative;
}
.ffc-input-currency > span {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #4e5053;
  font-family: Gilroy;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.ffc-input-currency .ffc-input {
  padding-left: 26px;
}
.ffc-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
.ffc-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Validation errors ── */
.ffc-err {
  display: block;
  font-size: 0.775rem;
  color: #ef4444;
  margin-top: 4px;
  min-height: 16px;
}

/* ── Info box ── */
.ffc-info-box {
  margin-bottom: 20px;
}
.ffc-info-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 10px;
  font-size: 0.865rem;
  color: #134e4a;
  line-height: 1.5;
}
.ffc-info-notice svg {
  color: #0d9488;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ── Collapsible ── */
.ffc-collapsible {
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px;
  margin-bottom: 24px;
}
.ffc-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 12px 16px;
  box-shadow: none;
  border-radius: 0;
  border: 0px solid #e2e8f0 !important;
  background: #f8fafc !important;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  min-height: 56px;
  color: #314158 !important;
}
.ffc-collapse-label {
  display: flex;
  align-items: center;
  gap: 7px;
}
.ffc-collapse-label svg {
  color: #94a3b8;
  flex-shrink: 0;
}
.ffc-link {
  color: var(--ffc-primary);
  font-weight: 500;
}
.ffc-collapse-arrow {
  font-size: 0.7rem;
  color: #94a3b8;
  transition: transform 0.25s;
}
.ffc-collapse-arrow.open {
  transform: rotate(180deg);
}
.ffc-collapse-body {
  display: none;
  padding: 24px;
  background: #fff;
}
.ffc-collapse-body.open {
  display: block;
  animation: ffcIn 0.22s ease;
}

/* ── Advanced tags ── */
.ffc-advanced-collapsible {
  background: #fff;
}
.ffc-adv-label {
  font-size: 0.875rem;
}
.ffc-adv-add-label {
  margin: 0 0 12px;
  color: #314158;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.ffc-cost-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 8px;
}
.ffc-tag {
  padding: 6px 12px;
  background: #fff;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
  border-radius: 10px;
  border: 2px solid #00d084;
  color: #00d084;
  text-align: center;
  font-family: Gilroy;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.ffc-tag:hover,
.ffc-tag.active {
  background: #0095ff;
  color: #fff;
  border-color: #00d084;
}
.ffc-adv-total-row {
  display: none !important;
}
.ffc-adv-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.ffc-adv-item-row {
  display: grid;
  grid-template-columns: 1fr 155px auto;
  gap: 8px;
  align-items: center;
  max-width: 450px;
}
.ffc-adv-item-label {
  color: #000;
  font-size: 14px;
}
.ffc-adv-item-input {
  position: relative;
}
.ffc-adv-item-input span {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: #90a1b9;
  font-weight: 500;
  font-size: 0.88rem;
  pointer-events: none;
}
.ffc-adv-item-input input {
  width: 100%;
  padding: 9px 10px 9px 24px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #1e293b;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.2s;
}
.ffc-adv-item-input input:focus {
  border-color: var(--ffc-primary);
  background: #fff;
}
.ffc-adv-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  white-space: nowrap;
  color: #e32323 !important;
  margin: 0 10px;
  background: transparent !important;
}
div#step-4 a.ffc-help-link {
  max-width: 150px;
}
.ffc-adv-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  font-size: 0.85rem;
  color: #64748b;
}
.ffc-adv-total-row strong {
  color: #0f172a;
  font-size: 0.9rem;
}

/* ── Slider Tooltip ── */
.ffc-slider-wrap {
  position: relative;
}
.ffc-slider-tooltip {
  position: absolute;
  top: -38px;
  transform: translateX(-50%);
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 10;
}
.ffc-slider-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}
.ffc-slider-wrap:hover .ffc-slider-tooltip,
.ffc-slider-wrap.ffc-slider-active .ffc-slider-tooltip {
  opacity: 1;
}

/* Holding chart card also needs relative for tooltip */
.ffc-holding-chart-card {
  position: relative;
}


#ffc-wrap input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
  margin: 0;
  box-shadow: none !important;
}
#ffc-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #d9d9d9 !important;
  cursor: pointer;
  transition: transform 0.15s;
  margin-top: -8px;
  border: solid 4px #1297f7;
}
#ffc-wrap input[type="range"]::-moz-range-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #d9d9d9 !important;
  cursor: pointer;
  transition: transform 0.15s;
  margin-top: -8px;
  border: solid 4px #1297f7;
}
input#ffc-holding-months[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #008080 !important;
  cursor: pointer;
  transition: transform 0.15s;
  margin-top: -1px;
  border: none;
}
input#ffc-holding-months[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #008080 !important;
  cursor: pointer;
  transition: transform 0.15s;
  margin-top: -1px;
  border: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  box-shadow: unset !important;
}
.ffc-metric-card.ffc-metric-arv .ffc-res-slider-wrap {
  margin-top: -10px;
}
.ffc-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  color: #4e5053;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px;
}
.ffc-slider-value {
  text-align: center;
  font-weight: 700;
  color: var(--ffc-primary);
  margin-top: 7px;
  font-size: 0.95rem;
  display: none;
}

.ffc-slider-accent::-webkit-slider-thumb {
  background: #008080;
}
.ffc-slider-accent::-moz-range-thumb {
  background: #008080;
}
.ffc-slider-yellow::-webkit-slider-thumb {
  background: #facc15;
}
.ffc-slider-yellow::-moz-range-thumb {
  background: #facc15;
}
.ffc-slider-red::-webkit-slider-thumb {
  background: #f43f5e;
}
.ffc-slider-red::-moz-range-thumb {
  background: #f43f5e;
}
.ffc-slider-teal::-webkit-slider-thumb {
  background: #008080;
}
.ffc-slider-teal::-moz-range-thumb {
  background: #008080;
}

/* ── Buttons ── */
.ffc-step-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 40px;
}

.ffc-prev-btn {
  padding: 10px 18px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.ffc-prev-btn:hover {
  background: #e2e8f0;
}
.ffc-restart-btn {
  padding: 10px 20px;
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}
.ffc-restart-btn:hover {
  background: #e2e8f0;
}

/* ═══════════════════════════════════════════════════════════
   RESULTS PAGE — BiggerPockets Style
═══════════════════════════════════════════════════════════ */
#ffc-results-page {
  max-width: 100%;
  margin: 0 auto;
}

/* ── BP Topbar ── */
.ffc-bp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
}
.ffc-res-address-row {
  text-align: center;
  padding: 32px 0;
  border-bottom: 1px solid #e2e8f0;
}
.ffc-bp-topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ffc-bp-report-title {
  color: #0f172b;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.ffc-bp-view-all {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  color: #0095ff !important;
  text-align: center;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  background: transparent !important;
  box-shadow: none;
}
.ffc-bp-view-all {
  text-decoration: underline;
}
.ffc-bp-view-all:hover {
  opacity: 0.75;
}
.ffc-bp-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.ffc-bp-last-updated {
  font-size: 14px;
  color: #62748e;
}
.ffc-bp-action-btn,
.ffc-edit-section-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 10px;
  border: 1px solid #cad5e2;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}
.ffc-bp-download-btn {
  background: #008080 !important;
  color: #fff !important;
  border-color: #008080 !important;
}
.ffc-bp-download-btn:hover {
  background: #006666 !important;
  border-color: #006666 !important;
}
.ffc-bp-download-btn svg {
  stroke: #fff !important;
}
.ffc-bp-topbar-right button.ffc-bp-more-btn:last-child {
  border: none;
  background: transparent;
  box-shadow: none;
  color: #0a0a0a;
}
.ffc-bp-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 16px;
  background: #fff;
  color: #374151;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 10px;
  border: 1px solid #cad5e2;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 20px;
}

.ffc-bp-more-btn {
  padding: 6px 10px;
  background: #fff;
  color: #374151;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
}

/* ── Address row ── */
.ffc-res-address-row {
  text-align: center;
  margin-bottom: 48px;
}
.ffc-res-address-text {
  color: #1d293d;
  text-align: center;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

/* ── Property photo strip ── */
.ffc-res-photo-strip {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
  max-height: 220px;
}
.ffc-res-photo-strip img {
  width: 100%;
  object-fit: cover;
  display: block;
  max-width: 128px !important;
  margin: 0 auto;
}

/* ── MAO + ARV metric cards ── */
.ffc-metrics-grid,
.ffc-bp-row,
.ffc-two-col-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.ffc-metric-card,
.ffc-bp-card,
.ffc-repair-details-strip {
  padding: 33px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
}
.ffc-bp-row {
  padding: 33px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.ffc-bp-row .ffc-bp-card {
  background: transparent;
  padding: 0;
  border: none;
  border-radius: 0;
}
.ffc-metric-label {
  margin-bottom: 6px;
  color: #45556c;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.ffc-metric-value {
  margin-bottom: 12px;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}
.ffc-value-accent {
  color: var(--ffc-accent, #0ea5e9) !important;
}
.ffc-metric-bar-wrap {
  height: 8px;
  background: #E2E8F0;
  border-radius: 999px;
  overflow: hidden;
}
.ffc-metric-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.ffc-bar-red {
  background: #FE6868;
}
.ffc-bar-teal {
  background: var(--ffc-accent);
}

/* ── BP Row (Rehab card + chart side by side) ── */
.ffc-bp-card-title {
  margin: 0 0 14px;
  color: #1d293d;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
}
.ffc-bp-card-body {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex-direction: column;
  width: 100%;
}
.ffc-donut-col {
  flex-shrink: 0;
  margin: 0 auto;
}
.ffc-bp-sliders {
  flex: 1;
  min-width: 0;
  width: 100%;
}
.ffc-bp-slider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ffc-bp-slider-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #314158;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.ffc-bp-slider-val {
  white-space: nowrap;
  margin-left: 8px;
  color: #0095ff;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

/* ── Holding chart card ── */
.ffc-holding-chart-card canvas {
  width: 100% !important;
  height: auto;
  margin: 0 auto !important;
  display: block;
}
.ffc-holding-chart-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ffc-holding-slider-row {
  justify-content: space-between;
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #314158;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.ffc-holding-time-val {
  white-space: nowrap;
  margin-left: 8px;
  color: #0095ff;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

/* ── Donut ── */
.ffc-donut-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 14px;
}
.ffc-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #374151;
  text-align: center;
}

/* ── Dots ── */
.ffc-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}
.ffc-dot-teal {
  background: #008080;
}
.ffc-dot-teal-light {
  background: #5eead4;
}
.ffc-dot-blue {
  background: #0ea5e9;
}
.ffc-dot-yellow {
  background: #edf841;
}
.ffc-dot-orange {
  background: #fb923c;
}
.ffc-dot-red {
  background: #D35B5B;
}
.ffc-dot-red-soft {
  background: #FE6868;
}
.ffc-dot-pink {
  background: #f472b6;
}
button#ffc-edit-purchase-bt,
button#ffc-edit-sale-btnn {
  margin-top: 24px;
}
/* ── Edit section button ── */
button.ffc-prev-btn {
  display: none;
}
/* ── Repair Details strip ── */
.ffc-repair-details-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ffc-repair-details-label {
  color: #1d293d;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
.ffc-repair-details-val {
  color: #45556c;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}
.ffc-repair-details-val strong {
  color: #0f172b;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}
button#ffc-edit-purchase-btn,
button#ffc-edit-sale-btn {
  margin-top: 24px;
}
.ffc-adv-item-input input {
  padding-left: 22px !important;
}
/* ── Responsive ── */
@media (min-width: 1025px) {
  div#step-5 a.ffc-help-link {
    max-width: 100px;
  }
  .ffc-help-link {
    position: absolute;
    bottom: -30px;
    right: 0;
    max-width: 170px;
  }
  div#step-2 a.ffc-help-link {
    max-width: 110px;
  }
  div#step-3 a.ffc-help-link {
    max-width: 100px;
  }
}
@media (max-width: 767px) {
  .ffc-main {
    padding: 24px 16px;
    width: 100%;
  }
  .ffc-collapse-body,
  .ffc-metric-card,
  .ffc-bp-card,
  .ffc-repair-details-strip,
  .ffc-bp-row {
    padding: 24px 16px;
  }
  .ffc-container {
    flex-direction: column;
  }
  .ffc-sidebar {
    width: 100%;
    position: static;
  }

  .ffc-row-3,
  .ffc-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ffc-adv-item-row {
    grid-template-columns: 1fr 120px auto;
  }
  .ffc-metrics-grid,
  .ffc-bp-row,
  .ffc-two-col-row {
    grid-template-columns: 1fr;
    gap: 0px;
  }
  .ffc-bp-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .ffc-bp-card-body {
    flex-direction: column;
  }
}
@media (max-width: 460px) {
  .ffc-adv-item-row {
    grid-template-columns: 1fr;
  }
}

/* ── Percentage input ── */
.ffc-input-pct {
  position: relative;
  display: flex;
  align-items: center;
}
.ffc-input-pct .ffc-input {
  padding-right: 36px;
}
.ffc-pct-symbol {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.93rem;
  pointer-events: none;
}
