/* Emitir, revisar e acompanhar; também usado por Clientes (campos do cliente). */
.form-card { padding: var(--s4); display: grid; gap: var(--s3); }
.form-card > .t-rotulo { color: var(--muted); }
.form-card textarea { min-height: 96px; padding: var(--s3); resize: vertical; }
.check { display: flex; align-items: center; gap: var(--s2); min-height: 44px; font-weight: 500; }
.check input { width: 22px; height: 22px; accent-color: var(--primary); }
.addr summary { display: flex; align-items: center; gap: var(--s2); min-height: var(--touch); font-weight: 600; cursor: pointer; list-style: none; }
.addr summary::-webkit-details-marker { display: none; }
.addr summary span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 500; }
.addr[open] summary svg { transform: rotate(180deg); }
.addr .stack { padding-top: var(--s2); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.link-btn { justify-self: start; padding: var(--s2) 0; background: none; border: 0; font-weight: 600; color: var(--primary); text-decoration: underline; }
.money input { min-height: 64px; font-size: var(--fs-valor); line-height: var(--lh-valor); font-weight: 700; font-variant-numeric: tabular-nums; }
.pills { display: flex; gap: var(--s2); }
.pills button { flex: 1; min-height: var(--touch); background: var(--surface); border: 1px solid var(--border-control); border-radius: var(--radius-pill); font-weight: 600; }
.pills button[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.mode { margin-bottom: var(--s4); }

.receipt { padding: var(--s4); display: grid; gap: var(--s3); }
.receipt .lead { color: var(--accent-ink); }
.receipt hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 0; }
.kv { display: flex; justify-content: space-between; gap: var(--s4); }
.kv span:first-child { color: var(--muted); font-size: var(--fs-detalhe); flex: none; }
.kv span:last-child { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.receipt .total { text-align: right; }
.notice { display: flex; gap: var(--s2); padding: var(--s3); border-radius: var(--radius-sm); background: var(--surface-2); font-size: var(--fs-detalhe); line-height: var(--lh-detalhe); }
.notice svg { color: var(--muted); }

.bar-fixed {
  position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 15;
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4);
  background: var(--surface); border-top: 1px solid var(--line);
}
.bar-fixed .sum { display: grid; flex: 1; }
.bar-fixed .btn-primary { width: auto; min-height: 52px; flex: 1; }
.bar-fixed .btn-secondary { flex: none; min-height: 52px; }
.view:has(.bar-fixed) { padding-bottom: calc(var(--tabbar-h) + 96px + env(safe-area-inset-bottom)); }
.view:has(.bar-fixed.no-tabs) { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.bar-fixed.no-tabs { bottom: 0; padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); }
.cols > aside { display: none; }
.app:has(.bar-fixed.no-tabs) .tabbar { display: none; }

.track { display: grid; justify-items: center; gap: var(--s3); text-align: center; padding-top: var(--s6); }
.track .big { display: grid; place-items: center; width: 96px; height: 96px; border-radius: var(--radius-pill); background: var(--b-bg); color: var(--b-fg); }
.track .big svg { width: 44px; height: 44px; }
.track .btns { display: grid; gap: var(--s2); width: 100%; max-width: 420px; margin-top: var(--s3); }
.track .btns .btn { width: 100%; }
.track p { color: var(--muted); max-width: 40ch; }
.reason { width: 100%; max-width: 420px; padding: var(--s4); text-align: left; }

@media (min-width: 1024px) {
  .view:has(.cols) { max-width: 1120px; }
  .cols { display: grid; grid-template-columns: minmax(0, 640px) 360px; gap: var(--s6); align-items: start; }
  .cols > aside { display: block; position: sticky; top: var(--s5); }
  .bar-fixed { display: none; }
  .bar-fixed.no-tabs { display: flex; position: static; padding: 0; border: 0; background: none; }
  .view:has(.bar-fixed), .view:has(.bar-fixed.no-tabs) { padding-bottom: var(--s7); }
}

.copy-line { display: flex; align-items: center; gap: var(--s2); padding: var(--s3); background: var(--surface-2); border-radius: var(--radius-sm); }
.copy-line code { flex: 1; min-width: 0; font-size: var(--fs-detalhe); line-height: var(--lh-detalhe); overflow-wrap: anywhere; }
@media (max-width: 600px) { .copy-line { flex-wrap: wrap; } .copy-line .btn { width: 100%; } }
.copy-line .btn { min-height: 40px; padding: 0 var(--s3); min-width: 0; }
