/* orçamento em passos (js/orcform.js) */
.qw-steps { display: flex; list-style: none; margin: 0 0 var(--space-4); padding: 0; justify-content: center; }
.qw-steps li { flex: 1; max-width: 220px; position: relative; text-align: center; }
.qw-steps li:not(:first-child)::before { content: ''; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--border); }
.qw-steps li.on:not(:first-child)::before, .qw-steps li.ok:not(:first-child)::before { background: var(--primary); }
.qw-steps button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; cursor: pointer; color: var(--muted-foreground); font: inherit; padding: 0; }
.qw-steps button:disabled { cursor: default; }
.qw-dot { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border); background: var(--surface); font-weight: 600; }
.qw-dot .icon { width: 16px; height: 16px; }
.qw-steps li.on .qw-dot { border-color: var(--primary); color: var(--primary); }
.qw-steps li.ok .qw-dot { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground, #fff); }
.qw-steps li.on .qw-lbl { color: var(--foreground); font-weight: 600; }
.qw-lbl { font-size: var(--text-sm, 13px); }
.qw-h { margin: 0 0 var(--space-1); font-size: var(--text-lg); }
.qw-top { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; align-items: flex-start; margin-bottom: var(--space-3); }
.qw-prop { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-3); margin-bottom: var(--space-3); background: var(--surface); }
.qw-ph { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); flex-wrap: wrap; }
.qw-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-foreground, #fff); display: grid; place-items: center; font-weight: 700; flex: none; }
.qw-nome { max-width: 280px; font-weight: 600; }
.qw-itens { display: flex; flex-direction: column; gap: var(--space-2); margin: var(--space-3) 0; }
.qw-item { display: grid; grid-template-columns: 78px minmax(0, 1fr) 70px 110px 140px 110px 36px; gap: var(--space-2); align-items: end; padding-bottom: var(--space-2); border-bottom: 1px solid var(--border); }
.qw-it-t { align-self: center; }
.qw-f { display: flex; flex-direction: column; gap: 2px; margin: 0; min-width: 0; }
.qw-l { font-size: 11px; color: var(--muted-foreground); }
.qw-dd { display: flex; gap: 4px; }
.qw-dd .input { min-width: 0; flex: 1; }
.qw-dd .select { width: 66px; flex: none; }
.qw-sub { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; min-height: 36px; justify-content: flex-end; }
.qw-add { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.qw-add .select:first-child { width: auto; }
.qw-add .select:nth-child(2) { flex: 1; min-width: 180px; }
.qw-desc { gap: var(--space-2); align-items: center; padding-top: var(--space-2); border-top: 1px dashed var(--border); }
.qw-pg { margin-top: var(--space-3); }
@media (max-width: 760px) {
  .qw-item { grid-template-columns: 1fr 1fr; }
  .qw-it-t, .qw-it-d { grid-column: 1 / -1; }
  .qw-x { justify-self: end; grid-column: 2; }
  .qw-nome { max-width: none; flex: 1; }
  .qw-steps li { max-width: none; }
}

/* editor e exibição de texto formatado (termos e garantias) */
.rt { border: 1px solid var(--border); border-radius: var(--radius-md, 8px); background: var(--surface, #fff); }
.rt:focus-within { border-color: var(--primary); }
.rt-bar { display: flex; flex-wrap: wrap; gap: var(--space-1, 4px); padding: var(--space-2, 8px); border-bottom: 1px solid var(--border); }
.rt-edit { min-height: 180px; max-height: 360px; overflow: auto; border: 0 !important; border-radius: 0 0 var(--radius-md, 8px) var(--radius-md, 8px); white-space: pre-wrap; outline: none; }
.rt-edit ul, .rt-edit ol, .rt-view ul, .rt-view ol { margin: 4px 0; padding-left: 22px; }
.rt-view > div { margin: 0 0 4px; }

/* seletor visual de itens (js/itempicker.js) */
.ip-ov { position: fixed; inset: 0; z-index: 3500; display: flex; align-items: center; justify-content: center; padding: var(--space-4); background: var(--overlay, #0008); }
.ip-box { display: flex; flex-direction: column; width: min(720px, 100%); max-height: min(720px, 100%); background: var(--card); color: var(--foreground); border: 1px solid var(--border); border-radius: var(--radius-lg, 12px); padding: var(--space-4); gap: var(--space-3); }
.ip-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ip-t { margin: 0; font-size: var(--text-lg, 18px); }
.ip-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.ip-filters .input { flex: 1 1 220px; }
.ip-filters .select { flex: 0 1 200px; }
.ip-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: var(--space-1); min-height: 160px; }
.ip-row { display: flex; align-items: center; gap: var(--space-3); width: 100%; text-align: left; padding: var(--space-2) var(--space-3); border: 1px solid var(--border); border-radius: var(--radius-md, 8px); background: var(--card); color: inherit; cursor: pointer; min-height: 56px; }
.ip-row:hover, .ip-row:focus-visible { border-color: var(--primary); }
.ip-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ip-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-side { display: flex; flex-direction: column; align-items: flex-end; flex: none; }
.ip-add { flex: none; display: inline-flex; color: var(--primary); }
.ip-foot { display: flex; align-items: center; gap: var(--space-3); }
@media (max-width: 640px) { .ip-ov { padding: 0; align-items: stretch; } .ip-box { max-height: 100%; height: 100%; border-radius: 0; } .ip-row { min-height: 64px; } }
