/* ========================================
   VELORA — Calculadora de Precificação
   Design System
======================================== */

:root {
  --velora-navy: #0B0F19;
  --velora-navy-mid: #03283A;
  --velora-teal: #03283A;
  --velora-cyan: #0682A6;
  --velora-white: #FFFFFF;

  --primary: #03283A;
  --primary-dark: #021D2A;
  --primary-light: #E8F0F1;
  --primary-glow: rgba(3, 40, 58, 0.16);

  --surface: #FFFFFF;
  --surface-alt: #F4F6FC;
  --surface-dark: #0B0F19;

  --border: rgba(11, 15, 25, 0.10);
  --border-selected: #03283A;

  --text-primary: #0B0F19;
  --text-secondary: #6B7280;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #A8C0C4;

  --status-green: #16A34A;
  --status-green-bg: #DCFCE7;
  --status-yellow: #CA8A04;
  --status-yellow-bg: #FEF9C3;
  --status-red: #DC2626;
  --status-red-bg: #FEE2E2;
  --status-orange: #EA580C;
  --status-orange-bg: #FFEDD5;

  --radius-card: 18px;
  --radius-btn: 12px;
  --radius-input: 10px;

  --shadow-card: 0 1px 2px rgba(11, 15, 25, 0.04), 0 10px 24px -14px rgba(11, 15, 25, 0.12);
  --shadow-btn: 0 8px 20px rgba(3, 40, 58, 0.30);

  --transition-fast: 150ms ease;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #FFFFFF;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- Progress Bar ---- */
.progress-bar-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--border);
  z-index: 100;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--velora-cyan));
  width: 0%;
  transition: width 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-header {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 76px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(3, 40, 58, 0.08);
}

.brand-logo {
  display: block;
  width: 150px;
  max-width: 45vw;
  height: auto;
}

@media (max-width: 480px) {
  .brand-header { justify-content: center; min-height: 68px; padding: 12px 16px; }
  .brand-logo { width: 132px; }
}

/* ---- App Shell ---- */
.app-shell {
  position: relative;
  overflow-x: hidden;
  padding-top: 4px;
}

/* ---- Screens ---- */
.screen {
  width: 100%;
  min-height: 100vh;
}

.screen-inner,
.result-hero-inner,
.result-block-inner,
.cta-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 16px;
}

.screen-inner {
  padding: 40px 16px 80px;
}

/* ---- Screen Header ---- */
.step-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.screen-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.screen-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
  line-height: 1.6;
}

/* ---- Card ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

/* Screen 1 field sections: flat, no box, reference-style */
.calc-fields {
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  margin-bottom: 36px;
}

.card-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.calc-fields .card-section-title {
  font-size: 17px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

/* Screen 1 fields: label left, input right, like the reference calculator */
.calc-fields .form-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 20px;
}

.calc-fields .form-group label {
  display: block;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1 1 200px;
}

.calc-fields .form-group .unit {
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 6px;
}

.calc-fields .form-group .tooltip-btn {
  vertical-align: middle;
  margin-left: 4px;
}

.calc-fields .input-wrap {
  width: 150px;
  flex: 0 0 auto;
}

@media (max-width: 420px) {
  .calc-fields .input-wrap { width: 100%; }
}

/* ---- Form Groups ---- */
.form-group {
  margin-bottom: 18px;
}
.form-group:last-child { margin-bottom: 0; }

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.unit {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 12px;
}

.input-wrap {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
  height: 46px;
}

.input-wrap:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.input-wrap:has(input[aria-invalid="true"]) {
  border-color: var(--status-red);
}

.input-prefix {
  padding: 0 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  height: 46px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
  border-right: none;
}

.input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: transparent;
  min-width: 0;
  height: 46px;
}

.input-wrap input::placeholder {
  color: #9AAEB2;
  font-weight: 400;
}

/* ---- Tooltip ---- */
.tooltip-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.tooltip-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: help;
}

.tooltip-text {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--velora-navy);
  color: var(--text-on-dark);
  font-size: 12px;
  font-weight: 400;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.tooltip-text::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--velora-navy);
}

.tooltip-btn:hover .tooltip-text,
.tooltip-btn:focus .tooltip-text,
.tooltip-btn.tooltip-open .tooltip-text {
  opacity: 1;
}

.tooltip-text.wide {
  white-space: normal;
  width: 230px;
  text-align: left;
  line-height: 1.5;
  left: 0;
  transform: none;
}

.tooltip-text.wide::after {
  left: 12px;
  transform: none;
}

/* ---- Sliders ---- */
.slider-group {
  margin-bottom: 22px;
}
.slider-group:last-child { margin-bottom: 0; }

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.slider-header label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.slider-value-display {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  background: transparent;
  border: 1.5px solid var(--border);
  padding: 3px 12px;
  border-radius: 100px;
  min-width: 68px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 100px;
  outline: none;
  cursor: pointer;
  background: linear-gradient(
    to right,
    var(--primary) 0%,
    var(--primary) var(--slider-value, 0%),
    #E1E8E9 var(--slider-value, 0%),
    #E1E8E9 100%
  );
  transition: box-shadow var(--transition-fast);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(11, 15, 25, 0.2);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover,
.slider:active::-webkit-slider-thumb {
  transform: scale(1.15);
  box-shadow: 0 3px 12px rgba(11, 15, 25, 0.28);
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--primary);
  box-shadow: 0 2px 8px rgba(11, 15, 25, 0.2);
  cursor: pointer;
}

.slider-limits {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 11px;
  color: #9AAEB2;
  font-weight: 400;
}

/* ---- Preview Card ---- */
.preview-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  margin-bottom: 24px;
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: -0.01em;
}

.preview-rows { display: flex; flex-direction: column; }

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.preview-row:last-child { border-bottom: none; }

.preview-label {
  font-size: 13px;
  color: var(--text-secondary);
}

.preview-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.preview-row-highlight {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-top: 16px;
}

.preview-row-highlight .preview-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  border-radius: var(--radius-btn);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.975); }

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(3, 40, 58, 0.38);
  transform: translateY(-1px);
}

.btn-primary:hover:active { transform: translateY(0) scale(0.975); }

.btn-primary:disabled {
  background: #B8C9CC;
  color: rgba(255,255,255,0.85);
  box-shadow: none;
  cursor: not-allowed;
}
.btn-primary:disabled:active { transform: none; }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-link {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 16px;
  font-weight: 500;
  border: none;
  font-size: 14px;
}

.btn-link:hover { color: var(--primary); }

.btn-full { width: 100%; }

.btn-cta {
  padding: 17px 40px;
  font-size: 16px;
}

/* ---- Required field marker ---- */
.required-star {
  color: var(--velora-teal);
  font-weight: 700;
  margin-left: 2px;
}

/* ---- Screen 1 hint ---- */
.s1-hint {
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 2px;
}

.s1-hint strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ---- Screen Actions ---- */
.screen-actions {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.screen-actions .btn-primary {
  width: 100%;
  font-size: 16px;
  padding: 17px 32px;
}

/* ---- Procedures Grid ---- */
.procedures-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}

@media (max-width: 480px) {
  .procedures-grid { grid-template-columns: 1fr; }
}

/* ---- Procedure Card ---- */
.proc-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  overflow: hidden;
  user-select: none;
}

.proc-card:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.proc-card.selected {
  border-color: var(--border-selected);
  background: var(--primary-light);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.proc-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px;
}

.proc-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}

.proc-dot--diamond {
  border-radius: 3px;
  transform: rotate(45deg);
}

.proc-dot--plus {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px dashed var(--text-secondary);
  background: transparent;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  line-height: 11px;
  text-align: center;
}

.proc-name {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.proc-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  background: white;
}

.proc-card.selected .proc-check {
  background: var(--primary);
  border-color: var(--primary);
}

.proc-check-icon {
  color: white;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.proc-card.selected .proc-check-icon { opacity: 1; }

/* Expanded content */
.proc-expanded {
  overflow: hidden;
  max-height: 0;
  transition: max-height 250ms ease, padding 250ms ease;
  padding: 0 16px;
}

.proc-card.selected .proc-expanded {
  max-height: 520px;
  padding: 0 16px 16px;
}

.proc-expanded-inner {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.proc-expanded .form-group { margin-bottom: 0; }
.proc-expanded .form-group label { font-size: 12px; margin-bottom: 4px; }
.proc-expanded .input-wrap { height: 38px; }
.proc-expanded .input-wrap input { font-size: 13px; padding: 6px 10px; height: 38px; }
.proc-expanded .input-prefix { font-size: 12px; padding: 0 10px; height: 38px; }

.btn-add-procedure {
  width: 100%;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius-card);
  background: var(--primary-light);
  color: var(--primary-dark);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.btn-add-procedure:hover {
  background: #DCE8EA;
  border-color: var(--primary-dark);
}

.proc-remove {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--status-red);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.proc-remove:hover { text-decoration: underline; }

.input-wrap--no-prefix input { padding-left: 12px; }

.proc-session-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.proc-session-toggle {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
  cursor: pointer;
  color: var(--text-primary) !important;
  font-size: 13px !important;
}

.proc-session-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.proc-session-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}

.proc-session-count[hidden] { display: none; }

.proc-session-count > span:first-child {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ---- Treatments ---- */
.treatments-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 8px; }

.treatment-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.treatment-card.active {
  border-color: var(--border-selected);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.treatment-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  user-select: none;
}

.treatment-emoji { font-size: 22px; flex-shrink: 0; }

.treatment-info { flex: 1; }

.treatment-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.treatment-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.treatment-toggle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.treatment-card.active .treatment-toggle {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.treatment-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height 300ms ease, padding 300ms ease;
}

.treatment-card.active .treatment-body {
  max-height: 600px;
}

.treatment-body-inner {
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.session-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.session-row:last-child { border-bottom: none; }

.session-proc-name { font-size: 14px; color: var(--text-primary); font-weight: 500; }

.session-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.session-btn {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  line-height: 1;
}

.session-btn:hover { background: var(--primary-light); border-color: var(--primary); }
.session-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.session-btn:disabled:hover { background: var(--surface); border-color: var(--border); }

.session-count {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Custom treatment: procedure selector */
.custom-proc-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.custom-proc-select-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.custom-proc-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proc-chip {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.proc-chip.selected {
  background: var(--primary-light);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ---- RESULT PAGE ---- */

/* Hero Block */
.result-hero {
  background: linear-gradient(135deg, var(--velora-navy) 0%, var(--velora-navy-mid) 100%);
  padding: 60px 16px;
  text-align: center;
}

.result-hero-label {
  font-size: 16px;
  color: var(--text-on-dark-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

.result-hero-label strong { color: var(--text-on-dark); }

.result-hero-number {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.result-currency {
  font-size: 28px;
  font-weight: 700;
  color: var(--velora-cyan);
}

.result-big-number {
  font-size: clamp(40px, 10vw, 64px);
  font-weight: 800;
  color: var(--velora-cyan);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.03em;
}

.result-period {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
}

.result-hero-sub {
  font-size: 15px;
  color: var(--text-on-dark-muted);
  line-height: 1.5;
}

.result-hero-sub strong { color: var(--velora-cyan); }

/* Result Blocks */
.result-block {
  padding: 40px 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.result-block-alt { background: var(--surface-alt); }

.result-block-inner { max-width: 680px; margin: 0 auto; padding: 0 16px; }

.result-block-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.result-table-heading .result-block-title { margin-bottom: 0; }

.result-table-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.table-expand-btn,
.table-expanded-toolbar {
  display: none;
}

.financial-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.finance-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  box-shadow: none;
}

.finance-card.highlight {
  border-color: rgba(3, 40, 58, 0.22);
  background: var(--surface);
}

.finance-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.finance-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  margin-bottom: 8px;
}

.finance-card.highlight strong { color: var(--primary-dark); }

.finance-card p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

@media (max-width: 520px) {
  .financial-summary-grid { grid-template-columns: 1fr; }
}

/* Table */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid #03283A;
  box-shadow: none;
  background: var(--surface);
}

.prices-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.prices-table thead tr {
  background: #03283A;
}

.prices-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--velora-white);
}

.prices-table thead th:nth-child(2) {
  font-weight: 800;
}

.prices-table thead th:nth-child(4),
.prices-table tbody td:nth-child(4) {
  text-align: center;
}

.prices-table tbody td:nth-child(4) {
  vertical-align: middle;
}

.prices-table tbody tr { border-bottom: 1px solid var(--border); }
.prices-table tbody tr:last-child { border-bottom: none; }

.prices-table tbody td {
  padding: 13px 16px;
  font-size: 14px;
  color: var(--text-primary);
}

.prices-table tbody td:first-child { font-weight: 600; }
.prices-table tbody td:first-child small {
  display: block;
  margin-top: 4px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
}
.prices-table tbody td:nth-child(2),
.prices-table tbody td:nth-child(3) { font-weight: 700; font-variant-numeric: tabular-nums; }

.prices-table tbody td:nth-child(2) {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 800;
}

.row-green,
.row-yellow,
.row-red { background-color: var(--surface); }

.row-green td:first-child { box-shadow: inset 3px 0 0 var(--status-green); }
.row-yellow td:first-child { box-shadow: inset 3px 0 0 var(--status-yellow); }
.row-red td:first-child { box-shadow: inset 3px 0 0 var(--status-red); }

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 120px;
  min-width: 120px;
  min-height: 36px;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 700;
  text-align: center;
  border: 0;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.green {
  color: var(--status-green);
  background: var(--status-green-bg);
}

.status-badge.yellow {
  color: var(--status-yellow);
  background: var(--status-yellow-bg);
}

.status-badge.red {
  color: var(--status-red);
  background: var(--status-red-bg);
}

.icon-alert {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  vertical-align: -2px;
}

.table-legend {
  display: none;
}

.legend-alert {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--status-red);
  font-weight: 500;
}

/* Treatments result grid */
.treatments-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .treatments-result-grid { grid-template-columns: 1fr; }
}

.treatment-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
}

.treatment-result-emoji { font-size: 24px; margin-bottom: 10px; display: block; }

.treatment-result-name {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.treatment-result-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
}

.treatment-result-row:last-child { border-bottom: none; }

.treatment-result-row .tr-label { color: var(--text-secondary); }
.treatment-result-row .tr-value { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.treatment-result-row .tr-value.ideal { color: var(--primary-dark); }

/* Diagnosis Block */
.diagnosis-block {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: 12px;
  padding: 20px;
  background: var(--surface);
  animation: fadeIn 300ms ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.diagnosis-block.red { border-left-color: var(--status-red); }
.diagnosis-block.orange { border-left-color: var(--status-orange); }
.diagnosis-block.yellow { border-left-color: var(--status-yellow); }
.diagnosis-block.green { border-left-color: var(--status-green); }

.diag-icon {
  grid-row: 1 / span 2;
  display: block;
  margin-top: 1px;
  font-size: 20px;
  line-height: 1;
}
.diag-icon svg { width: 20px; height: 20px; vertical-align: 0; }
.diagnosis-block.red .diag-icon { color: var(--status-red); }
.diagnosis-block.orange .diag-icon { color: var(--status-orange); }
.diagnosis-block.yellow .diag-icon { color: var(--status-yellow); }
.diagnosis-block.green .diag-icon { color: var(--status-green); }

.diag-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text-primary);
  line-height: 1.3;
}

.diag-body {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.diag-body strong { color: var(--text-primary); }

/* CTA Section */
.cta-section {
  background: var(--primary);
  padding: 56px 0;
}

.cta-inner { max-width: 620px; margin: 0 auto; padding: 0 16px; text-align: center; }

.cta-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #7DD3E8;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cta-title {
  font-size: clamp(24px, 5vw, 32px);
  font-weight: 800;
  color: var(--text-on-dark);
  margin-bottom: 14px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-subtitle {
  font-size: 15px;
  color: #C5D8DC;
  margin-bottom: 16px;
  line-height: 1.6;
}

.cta-contact-text {
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 26px;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.cta-actions .btn { min-width: 210px; }

.cta-button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: currentColor;
}

.cta-whatsapp {
  background: var(--velora-cyan);
  color: var(--text-on-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.cta-whatsapp:hover {
  background: #05718F;
  transform: translateY(-1px);
}

.cta-instagram {
  color: var(--text-on-dark);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.cta-instagram:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--text-on-dark);
  transform: translateY(-1px);
}

@media (max-width: 520px) {
  .cta-section { padding: 44px 0; }
  .cta-actions { flex-direction: column; }
  .cta-actions .btn { width: 100%; min-width: 0; }
}

/* Result footer */
.result-footer {
  padding: 24px 16px;
  background: var(--surface);
  display: flex;
  justify-content: center;
}

/* ---- Screen transitions ---- */
.screen { display: none; }
.screen.active { display: block; }

.screen-slide-enter {
  animation: slideEnter 200ms ease-in-out forwards;
}

.screen-slide-enter-back {
  animation: slideEnterBack 200ms ease-in-out forwards;
}

@keyframes slideEnter {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideEnterBack {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .screen-inner { padding: 28px 12px 70px; }

  .screen-actions .btn { width: 100%; }

  .result-hero { padding: 40px 12px; }
  .result-block { padding: 28px 0; }
  .result-block-inner { padding: 0 12px; }

  .prices-table tbody td { padding: 10px 12px; }
  .prices-table thead th { padding: 10px 12px; }

  .mix-bar-row {
    grid-template-columns: 1fr auto auto;
    gap: 8px;
  }
  .mix-bar-track { display: none; }

  .mix-card { padding: 14px 16px; }

  .card { padding: 18px 16px; }
}

@media (max-width: 380px) {
  .screen-title { font-size: 20px; }
  .result-big-number { font-size: 38px; }
  .result-currency { font-size: 22px; }
}

/* ---- Occupancy Explainer ---- */
.occupancy-explainer {
  background: var(--primary-light);
  border-left: 3px solid var(--velora-teal);
  border-radius: 12px;
  padding: 16px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.7;
  margin-top: 16px;
}

.occupancy-explainer strong { color: var(--primary-dark); }
.occupancy-explainer p { margin-bottom: 8px; }
.occupancy-explainer p:last-child { margin-bottom: 0; }

/* ---- Mix Cards (Screen 3) ---- */
.mix-cards-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.mix-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.mix-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.mix-card-emoji { font-size: 20px; }

.mix-card-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  flex: 1;
}

.mix-card-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mix-card-meta {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 10px;
}

.mix-card-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mix-qty-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  line-height: 1;
}

.mix-qty-btn:hover { background: var(--primary-light); border-color: var(--primary); }
.mix-qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.mix-qty-btn:disabled:hover { background: var(--surface); border-color: var(--border); }

.mix-qty-input {
  width: 64px;
  height: 36px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color var(--transition-fast);
}

.mix-qty-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* ---- Mix Preview ---- */
.mix-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-card);
  padding: 20px;
  margin-bottom: 8px;
  box-shadow: var(--shadow-card);
}

.mix-preview-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.mix-bar-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
}

.mix-bar-name {
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mix-bar-track {
  width: 80px;
  height: 8px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.mix-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--velora-cyan));
  border-radius: 100px;
  transition: width 300ms ease;
}

.mix-bar-pct {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mix-bar-mins {
  font-size: 12px;
  color: var(--text-secondary);
  min-width: 55px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mix-preview-separator {
  border: none;
  border-top: 1px solid var(--border);
  margin: 12px 0;
}

.mix-summary {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mix-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.mix-summary-row .ms-label { color: var(--text-secondary); }
.mix-summary-row .ms-value { font-weight: 700; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.mix-summary-row .ms-value.highlight { color: var(--primary-dark); }

.mix-warning {
  margin-top: 12px;
  background: var(--status-orange-bg);
  border: 1px solid #FBD9C0;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--status-orange);
  font-weight: 500;
  line-height: 1.5;
}

/* ---- Result Table Footer ---- */
.result-table-footer {
  background: #F7F9F9;
  border-top: 1px solid var(--border);
}

.result-table-footer td {
  color: var(--text-primary) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 13px 16px !important;
}

.result-table-footer td:nth-child(2) {
  color: var(--primary-dark) !important;
  font-size: 14px !important;
}

/* ---- Memória de Cálculo ---- */
.calc-memory {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.calc-memory-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.calc-memory-summary::-webkit-details-marker { display: none; }

.calc-memory-summary-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.calc-memory-summary-hint {
  font-size: 13px;
  color: var(--text-secondary);
}

.calc-memory-chevron {
  margin-left: auto;
  font-size: 20px;
  line-height: 1;
  color: var(--text-secondary);
  transition: transform var(--transition-fast);
}

.calc-memory[open] .calc-memory-chevron { transform: rotate(180deg); }

.calc-memory-body {
  padding: 0 20px 20px;
}

.cm-intro {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cm-step {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 14px;
}

.cm-step:last-child { margin-bottom: 0; }

.cm-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.cm-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cm-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
}

.cm-line:last-child { border-bottom: none; }

.cm-line > span:last-child {
  text-align: right;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.cm-line strong { color: var(--text-primary); font-weight: 700; }

.cm-line-total {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1.5px solid var(--border);
  border-bottom: none;
}

.cm-line-total > span:first-child { font-weight: 600; color: var(--text-primary); }
.cm-line-total strong { color: var(--primary-dark); }

.cm-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.6;
  background: var(--primary-light);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.cm-proc {
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 12px;
}

.cm-proc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* ---- Recalcular Button ---- */
.btn-recalcular {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 12px 16px;
  transition: color var(--transition-fast);
}

.btn-recalcular:hover { color: var(--primary); }

/* ---- Mobile touch and fit improvements ---- */
button,
a,
input,
[role="button"] {
  touch-action: manipulation;
}

@media (max-width: 600px) {
  body { overflow-x: hidden; }

  .input-wrap input,
  .proc-expanded .input-wrap input,
  .mix-qty-input {
    font-size: 16px;
  }

  .slider {
    height: 44px;
    margin: 0;
    background-size: 100% 5px;
    background-position: center;
    background-repeat: no-repeat;
    touch-action: pan-y;
  }

  .slider::-webkit-slider-thumb {
    width: 30px;
    height: 30px;
  }

  .slider::-moz-range-thumb {
    width: 30px;
    height: 30px;
  }

  .slider-limits { margin-top: 0; }

  .mix-qty-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    -webkit-user-select: none;
    user-select: none;
  }

  .mix-qty-input {
    width: 68px;
    height: 44px;
  }

  .table-wrap {
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .prices-table {
    min-width: 0;
    max-width: 100%;
    table-layout: fixed;
  }

  .prices-col-procedure { width: 34%; }
  .prices-col-minimum { width: 22%; }
  .prices-col-current { width: 20%; }
  .prices-col-status { width: 24%; }

  .prices-table thead th {
    padding: 10px 7px;
    font-size: 9px;
    letter-spacing: 0.025em;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .prices-table tbody td {
    padding: 11px 7px;
    font-size: 12px;
    line-height: 1.4;
    vertical-align: top;
    overflow-wrap: anywhere;
  }

  .prices-table tbody td:first-child small { font-size: 10px; }

  .status-badge {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    gap: 4px;
    padding: 6px 5px;
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
  }

  .status-badge::before {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
  }

  .result-table-footer td {
    padding: 11px 7px !important;
    font-size: 11px !important;
  }

  .result-table-footer td:nth-child(2) {
    font-size: 12px !important;
  }

  .result-table-footer td:nth-child(3) {
    font-size: 10px !important;
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .prices-col-procedure { width: 32%; }
  .prices-col-minimum { width: 24%; }
  .prices-col-current { width: 16%; }
  .prices-col-status { width: 28%; }

  .prices-table thead th {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 8.5px;
  }

  .prices-table tbody td {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 11px;
  }

  .status-badge {
    padding: 3px 4px;
    font-size: 9px;
  }

  .result-table-footer td {
    padding-right: 5px !important;
    padding-left: 5px !important;
  }

  .result-table-footer td:nth-child(2) { font-size: 11px !important; }
}

@media (max-width: 600px) {
  .result-table-heading {
    align-items: flex-start;
    gap: 10px;
  }

  .result-table-heading .result-block-title { flex: 1; }

  .table-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    padding: 8px 10px;
    flex: 0 0 auto;
    border: 1px solid var(--primary);
    border-radius: 9px;
    background: var(--surface);
    color: var(--primary);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
  }

  .table-expand-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .prices-table tbody td:nth-child(2) { font-size: 13px; }

  body.table-view-open { overflow: hidden; }

  body.table-view-open .screen.active {
    animation: none !important;
    transform: none !important;
  }

  .table-wrap.table-expanded {
    position: fixed;
    inset: 0;
    z-index: 500;
    padding: 76px 16px 24px;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y pinch-zoom;
  }

  .table-expanded .table-expanded-toolbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 510;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 10px 16px;
    background: var(--primary);
    color: var(--text-on-dark);
    box-shadow: 0 3px 12px rgba(3, 40, 58, 0.2);
  }

  .table-expanded-toolbar strong {
    font-size: 16px;
    font-weight: 800;
  }

  .table-expand-close {
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 8px;
    background: transparent;
    color: var(--text-on-dark);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .table-expanded .prices-table {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 680px;
    margin: 0 auto;
    border: 0;
    background: transparent;
  }

  .table-expanded .prices-table colgroup,
  .table-expanded .prices-table thead {
    display: none;
  }

  .table-expanded .prices-table tbody {
    display: grid;
    gap: 12px;
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
  }

  .table-expanded .prices-table tbody tr.row-green { border-left: 3px solid var(--status-green); }
  .table-expanded .prices-table tbody tr.row-yellow { border-left: 3px solid var(--status-yellow); }
  .table-expanded .prices-table tbody tr.row-red { border-left: 3px solid var(--status-red); }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td {
    display: block;
    min-width: 0;
    padding: 14px;
    border: 0;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td::before {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td:first-child {
    grid-column: 1 / -1;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    font-size: 15px;
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td:first-child::before {
    content: 'Procedimento';
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td:nth-child(2) {
    border-right: 1px solid var(--border);
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td:nth-child(2)::before {
    content: 'Preço mínimo necessário';
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td:nth-child(3)::before {
    content: 'Preço que você cobra';
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td:nth-child(4) {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    text-align: left;
  }

  .table-expanded .prices-table tbody tr:not(.result-table-footer) td:nth-child(4)::before {
    content: 'Situação';
    margin-bottom: 0;
  }

  .table-expanded .prices-table tbody td:nth-child(2) { font-size: 16px; }
  .table-expanded .prices-table tbody td:first-child small { font-size: 11px; }

  .table-expanded .status-badge {
    width: 120px;
    min-width: 120px;
    min-height: 36px;
    padding: 6px 10px;
    font-size: 11px;
  }

  .table-expanded .result-table-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-alt);
  }

  .table-expanded .result-table-footer td {
    display: block;
    padding: 14px !important;
    font-size: 13px !important;
  }

  .table-expanded .result-table-footer td:nth-child(2) { font-size: 15px !important; }
  .table-expanded .result-table-footer td:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 12px !important;
    border-top: 1px solid var(--border);
    font-size: 12px !important;
  }
}
