/* Module G — proposal-to-invoice styles. Staff views reuse app.js classes
   (.card, .btn, .badge, .tiny, .muted, .row); these are the module-specific
   pieces. */

/* DRAFT banner — same treatment everywhere a proposal appears. */
.prop-draft {
  background: var(--soft-amber, #fff7e6);
  border: 1px solid var(--amber, #b7791f);
  border-radius: 8px;
  padding: .5rem .8rem;
  font-size: .8rem;
  font-weight: 700;
  margin: .6rem 0;
}

/* Funnel: sent → viewed → accepted → invoiced */
.prop-funnel {
  display: flex;
  align-items: center;
  gap: .5rem;
  justify-content: center;
  padding: .4rem 0;
}
.prop-fstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.prop-fstep strong { font-size: 1.4rem; }
.prop-fstep span { font-size: .72rem; color: var(--muted, #666); }
.prop-farrow { color: var(--muted, #999); font-size: 1.1rem; }

/* List rows (clickable cards) */
.prop-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .6rem;
  padding: .6rem .2rem;
  border-bottom: 1px solid var(--line, #e6e6e6);
  cursor: pointer;
}
.prop-row:last-child { border-bottom: none; }
.prop-row:hover { background: var(--surface-soft, #f7f7f7); }

/* Builder */
.prop-tiers { border: 1px solid var(--line, #e0e0e0); border-radius: 8px; padding: .6rem; margin: .8rem 0; }
.prop-tiers legend { font-weight: 700; font-size: .85rem; padding: 0 .4rem; }
.prop-tier {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  padding: .5rem .2rem;
  border-bottom: 1px solid var(--line, #eee);
  cursor: pointer;
}
.prop-tier:last-child { border-bottom: none; }
.prop-tier input { margin-top: .25rem; }
.prop-desc { display: block; margin-top: .2rem; }
.prop-check { display: flex; gap: .5rem; align-items: flex-start; margin: .7rem 0; cursor: pointer; }
.prop-check input { margin-top: .2rem; }
.prop-total { font-size: 1.15rem; margin: .8rem 0; }

/* Pricing table */
.prop-lines { width: 100%; border-collapse: collapse; margin: .4rem 0; }
.prop-lines td { padding: .45rem .2rem; border-bottom: 1px solid var(--line, #eee); }
.prop-lines td.r { text-align: right; white-space: nowrap; }
.prop-lines tr.total td { font-weight: 700; border-bottom: none; font-size: 1.05rem; }

/* Timeline */
.prop-timeline { list-style: none; margin: .4rem 0; padding: 0; }
.prop-timeline li {
  padding: .45rem 0 .45rem 1.1rem;
  border-left: 2px solid var(--teal, #0f766e);
  margin-left: .3rem;
  position: relative;
}
.prop-timeline li::before {
  content: '';
  position: absolute;
  left: -5px; top: 1rem;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--teal, #0f766e);
}

/* ================= client acceptance page (no staff chrome) ================= */
.prop-public {
  min-height: 100vh;
  background: var(--bg, #fafafa);
  display: flex;
  justify-content: center;
  padding: 1rem;
}
.prop-card {
  background: #fff;
  border: 1px solid var(--line, #e6e6e6);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  padding: 1.4rem;
  height: fit-content;
}
.prop-brand {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: .4rem;
}
.prop-pill {
  font-size: .7rem;
  font-weight: 700;
  background: var(--soft-blue, #e8f1ff);
  color: var(--blue, #1d4ed8);
  border-radius: 999px;
  padding: .15rem .6rem;
  vertical-align: middle;
}
.prop-legal-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--muted, #666);
  background: var(--surface-soft, #f4f4f4);
  border: 1px dashed var(--line, #ccc);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: .4rem .8rem;
}
.prop-legal {
  border: 1px dashed var(--line, #ccc);
  border-radius: 0 0 8px 8px;
  padding: .4rem .8rem;
  margin-bottom: 1rem;
  font-size: .88rem;
  max-height: 320px;
  overflow-y: auto;
}
.prop-legal p { margin: .6rem 0; }
.prop-accept {
  border-top: 1px solid var(--line, #e6e6e6);
  margin-top: 1.2rem;
  padding-top: 1rem;
}
.prop-accept input[type="text"], .prop-accept input:not([type]),
.prop-accept textarea, .prop-accept select {
  width: 100%;
  padding: .55rem;
  border: 1px solid var(--line, #ccc);
  border-radius: 8px;
  font-size: 1rem;
  margin-top: .3rem;
}
.prop-decline { margin-top: .8rem; text-align: center; }
.prop-ok {
  background: var(--soft-green, #e6f6ec);
  border: 1px solid var(--green, #15803d);
  border-radius: 8px;
  padding: .7rem .9rem;
}
.prop-foot { margin-top: 1.4rem; }
.hidden { display: none !important; }
