.signature-pad {
  width: 100%;
  height: 180px;
  background: #fff;
  border: 1px dashed #9dac9f;
  border-radius: 12px;
  touch-action: none;
}

.signature-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 18px;
}

.signature-tools span { font-size: 11px; }

.signature-contract-preview { margin-bottom: 16px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.signature-contract-preview>strong,.signature-contract-preview>small { display: block; }
.signature-contract-preview>small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.signature-contract-preview .row-actions { margin-top: 10px; }
.signature-contract-preview a { color: var(--forest); font-size: 11px; font-weight: 700; }
.signature-consent span { display: flex; align-items: flex-start; gap: 9px; line-height: 1.45; }
.signature-consent input { width: auto; margin-top: 2px; flex: none; }
.signature-security { padding: 10px 12px; border-radius: 9px; background: #edf5ef; color: #496057; font-size: 10px; line-height: 1.5; }
.contract-evidence { margin-top: 16px; padding: 13px; border: 1px solid #bbd8c7; border-radius: 12px; background: #f1f8f3; }
.contract-evidence strong,.contract-evidence small { display: block; }
.contract-evidence small { margin: 5px 0 10px; color: var(--muted); }
.govbr-option,.govbr-validation-warning { margin: 14px 0; padding: 13px; border: 1px solid #bfd3df; border-radius: 11px; background: #f0f7fb; }
.govbr-option strong,.govbr-option small { display: block; }
.govbr-option small { margin: 4px 0 10px; color: var(--muted); }
.govbr-steps { display: grid; gap: 10px; }
.govbr-steps>div { display: grid; grid-template-columns: 31px 1fr; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.govbr-steps>div>b { display: grid; place-items:center; width: 29px; height: 29px; border-radius: 50%; background: #1351b4; color: #fff; }
.govbr-steps span>strong,.govbr-steps span>small { display:block; }
.govbr-steps span>small { margin: 4px 0 9px; color: var(--muted); line-height: 1.45; }
.govbr-steps input[type="file"] { margin-top: 8px; }
.govbr-validation-warning p { font-size: 11px; line-height: 1.5; }

/* Todas as abas desktop encolhem para permanecer visíveis sem scroll horizontal. */
.tabbar .tab {
  flex: 1 1 0;
  min-width: 0;
}

.animal-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.animal-summary p { margin: 0; }
.animal-summary strong { font-size: 12px; }
.modal-body h3 { margin: 14px 0; font-size: 14px; color: var(--forest); }

.document-preview {
  margin-bottom: 18px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.document-preview header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.document-preview img, .document-preview iframe { width: 100%; min-height: 320px; max-height: 520px; object-fit: contain; border: 0; border-radius: 10px; background: #f3f5f2; }
.document-preview.compact { padding: 10px 14px; margin-bottom: 10px; }
.document-preview.compact header { margin-bottom: 0; }
.document-preview.compact .document-content { margin-top: 12px; }
