/* Painel Recobrança — UX dedicada (escopo .recobranca-page) */

.recobranca-page {
  --rec-bg: #f4f6f9;
  --rec-card: #ffffff;
  --rec-border: #e2e8f0;
  --rec-text: #1e293b;
  --rec-muted: #64748b;
  --rec-accent: #2563eb;
  --rec-accent-soft: rgba(37, 99, 235, 0.08);
  --rec-success: #059669;
  --rec-radius: 12px;
  --rec-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px rgba(15, 23, 42, 0.04);
}

/* Sobrescreve regras globais do style.css que quebram layout de tabela */
.recobranca-page table thead {
  display: table-header-group;
}

.recobranca-page table tbody {
  display: table-row-group;
  overflow: visible;
  height: auto;
}

.recobranca-page table tr {
  display: table-row;
}

.recobranca-page table th,
.recobranca-page table td {
  display: table-cell;
  height: auto;
  min-width: 0;
  vertical-align: middle;
}

.recobranca-page .rec-shell {
  max-width: 1920px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

/* Hero */
.rec-hero {
  background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 55%, #3b82f6 100%);
  color: #fff;
  border-radius: var(--rec-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--rec-shadow);
}

.rec-hero h1 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  letter-spacing: -0.02em;
}

.rec-hero p {
  margin: 0;
  font-size: 0.875rem;
  opacity: 0.92;
}

.rec-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.rec-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.rec-pill strong {
  font-weight: 700;
}

.rec-alert-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(251, 191, 36, 0.25);
  color: #fef3c7;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
}

.rec-btn-lixeira {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.1s ease;
}

.rec-btn-lixeira:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  transform: translateY(-1px);
}

/* Toolbar filtros */
.rec-toolbar {
  background: var(--rec-card);
  border: 1px solid var(--rec-border);
  border-radius: var(--rec-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--rec-shadow);
}

.rec-toolbar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #e2e8f0;
}

.rec-status-group,
.rec-status-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.rec-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  line-height: 1;
  border-radius: 999px;
  padding: 0.38rem 0.68rem;
  border: 1px solid #dbe3ef;
  background: #f8fafc;
  color: #334155;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  animation: recFadeUp 0.28s ease both;
}

.rec-status-chip strong {
  font-size: 0.8rem;
}

.rec-status-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.rec-status-active {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.rec-status-trash {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.rec-status-trash-value {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #3730a3;
}

.rec-status-filter {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.rec-status-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.rec-filter-results {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 600;
}

.rec-btn-lixeira-inline {
  border-radius: 10px;
  font-size: 0.77rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  color: #1e293b;
  background: #f8fafc;
  padding: 0.44rem 0.85rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rec-btn-lixeira-inline:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

.rec-btn-toggle-contrato {
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  font-size: 0.74rem;
  padding: 0.32rem 0.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rec-btn-toggle-contrato:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.rec-btn-toggle-contrato.is-active {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
  box-shadow: 0 4px 10px rgba(22, 101, 52, 0.12);
}

.rec-toolbar .form-control {
  border-radius: 8px;
  border-color: var(--rec-border);
  font-size: 0.875rem;
}

.rec-toolbar .form-control:focus {
  border-color: var(--rec-accent);
  box-shadow: 0 0 0 3px var(--rec-accent-soft);
}

.rec-toolbar label {
  font-size: 0.75rem;
  color: var(--rec-muted);
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.rec-keyword-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-height: 28px;
}

.rec-keyword-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  border-radius: 999px;
  padding: 0.2rem 0.5rem 0.2rem 0.62rem;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 600;
}

.rec-keyword-chip-text {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-keyword-chip-remove {
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.rec-keyword-chip-remove:hover {
  color: #0f172a;
}

.rec-btn-clear {
  border-radius: 8px;
  font-weight: 600;
  border-color: #cbd5e1;
  color: #334155;
  background: #f8fafc;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rec-btn-clear:hover {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: var(--rec-text);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08);
}

/* Card tabela */
.rec-table-card {
  background: var(--rec-card);
  border: 1px solid var(--rec-border);
  border-radius: var(--rec-radius);
  overflow: hidden;
  box-shadow: var(--rec-shadow);
}

.rec-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--rec-border);
  background: #f8fafc;
}

.rec-pagination-left,
.rec-pagination-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.rec-pagination-left label {
  font-size: 0.75rem;
  color: var(--rec-muted);
  font-weight: 600;
}

.rec-page-size {
  width: 84px;
}

.rec-page-info {
  font-size: 0.8rem;
  color: var(--rec-muted);
  min-width: 210px;
}

.rec-table-wrap {
  overflow-x: auto;
  max-height: min(70vh, 720px);
  overflow-y: auto;
}

.rec-table-main {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--rec-text);
}

.rec-table-main thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #1e293b !important;
  color: #f8fafc !important;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.65rem;
  padding: 0.65rem 0.5rem;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.rec-table-main thead th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.rec-table-main thead th[data-sort]:hover {
  background: #334155 !important;
}

.rec-sort-label {
  pointer-events: none;
}

.rec-sort-indicator {
  display: inline-block;
  min-width: 12px;
  margin-left: 6px;
  font-size: 0.62rem;
  line-height: 1;
  opacity: 0.9;
  pointer-events: none;
}

.rec-modal-table thead th .rec-sort-indicator {
  min-width: 10px;
  margin-left: 4px;
}

.rec-table-main thead th.is-sorted {
  background: #0f172a !important;
}

.rec-table-main tbody tr {
  transition: background 0.12s ease;
}

.rec-table-main tbody tr:hover {
  background: #f8fafc;
}

.rec-table-main tbody td {
  padding: 0.5rem;
  border-color: var(--rec-border);
  vertical-align: middle;
}

.rec-table-main .rec-input {
  border-radius: 8px;
  border-color: var(--rec-border);
  font-size: 0.8125rem;
}

.rec-table-main .rec-input:focus {
  border-color: var(--rec-accent);
  box-shadow: 0 0 0 2px var(--rec-accent-soft);
}

.rec-badge-os {
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}

.rec-badge-vendedor {
  display: inline-block;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #f1f5f9 !important;
  color: var(--rec-text) !important;
  border: 1px solid var(--rec-border);
}

.rec-valor {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #0f172a;
}

.rec-btn-itens {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-color: var(--rec-accent);
  color: var(--rec-accent);
  background: var(--rec-accent-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.rec-btn-itens:hover {
  background: var(--rec-accent);
  color: #fff;
  border-color: var(--rec-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.22);
}

.rec-btn-edit {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
  border-color: #1d4ed8;
  color: #1d4ed8;
  background: #e0e7ff;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rec-btn-edit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(29, 78, 216, 0.25);
}

.rec-action-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}

.rec-btn-pdf {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.4rem 0.75rem;
}

.rec-btn-pdf:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.12);
}

.rec-btn-copy {
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.25rem 0.55rem;
  border: 1px dashed #94a3b8;
  color: #0f172a;
  background: #f8fafc;
  cursor: pointer;
}

.rec-btn-copy:hover {
  border-color: #334155;
  background: #e2e8f0;
}

.rec-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.rec-contact-link {
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  padding: 0.22rem 0.55rem;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-contact-link:hover {
  background: #dbeafe;
  color: #1e40af;
}

.rec-contact-link.is-principal {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.rec-contact-link.is-legacy {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}

.rec-status-envio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 84px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  text-transform: capitalize;
  padding: 0.28rem 0.6rem;
}

.rec-status-envio.is-enviado {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.rec-status-envio.is-pendente {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.rec-edit-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rec-edit-contact-row {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.6rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.rec-edit-contact-row.is-principal {
  border-color: #86efac;
  background: #f0fdf4;
  box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.2);
}

.rec-edit-contact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.rec-edit-contact-head-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.rec-edit-contact-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.rec-edit-contact-preview {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-height: 1.3rem;
}

.rec-contact-preview-type {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.17rem 0.48rem;
}

.rec-contact-preview-type-email {
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
}

.rec-contact-preview-type-telefone {
  border-color: #a5b4fc;
  background: #eef2ff;
  color: #4338ca;
}

.rec-contact-preview-type-whatsapp {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.rec-contact-preview-type-outro {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #334155;
}

.rec-contact-preview-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.58rem;
  font-weight: 800;
  padding: 0 4px;
}

.rec-contact-preview-label {
  display: inline-block;
}

.rec-contact-preview-text {
  display: inline-block;
  max-width: 360px;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rec-contact-main-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #22c55e;
  background: #dcfce7;
  color: #166534;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.18rem 0.46rem;
}

.rec-edit-contact-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.rec-set-principal {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.24rem 0.6rem;
}

.rec-open-contact {
  border-radius: 999px;
  border-color: #93c5fd;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.24rem 0.6rem;
}

.rec-open-contact:hover {
  border-color: #60a5fa;
  background: #dbeafe;
  color: #1e40af;
}

.rec-set-principal:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.rec-set-principal.is-active {
  border-color: #16a34a;
  background: #dcfce7;
  color: #166534;
}

.rec-edit-contact-grid {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(230px, 1.6fr) minmax(180px, 1.2fr);
  gap: 0.55rem 0.65rem;
  align-items: stretch;
}

.rec-edit-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

.rec-edit-field label {
  display: block;
  margin: 0 0 0.2rem;
}

.rec-edit-field .form-control {
  height: calc(1.5em + 0.65rem + 2px);
  width: 100%;
}

.rec-edit-field-value .form-control {
  font-variant-numeric: tabular-nums;
}

.rec-edit-contact-row label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
}

#rec-edit-add-contact {
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.24rem 0.75rem;
}

.rec-contact-error {
  display: block;
  min-height: 14px;
  margin-top: 0.2rem;
  font-size: 0.67rem;
  color: #b91c1c;
}

.rec-contact-value.rec-contact-invalid {
  border-color: #dc2626 !important;
  background: #fef2f2;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15);
}

@media (max-width: 991.98px) {
  .rec-edit-contact-grid {
    grid-template-columns: 1fr;
  }

  .rec-edit-contact-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .rec-edit-contact-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .rec-contact-preview-text {
    max-width: 100%;
  }
}

.rec-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--rec-muted);
  font-size: 0.9rem;
}

.rec-table-skeleton {
  padding: 0.75rem 1rem 0.2rem;
  border-bottom: 1px solid var(--rec-border);
  background: #f8fafc;
}

.rec-skeleton-row {
  height: 14px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 37%, #e2e8f0 63%);
  background-size: 400% 100%;
  animation: recShimmer 1.25s ease infinite;
}

.rec-skeleton-row:nth-child(1) { width: 96%; }
.rec-skeleton-row:nth-child(2) { width: 90%; }
.rec-skeleton-row:nth-child(3) { width: 93%; }
.rec-skeleton-row:nth-child(4) { width: 88%; }
.rec-skeleton-row:nth-child(5) { width: 94%; }
.rec-skeleton-row:nth-child(6) { width: 91%; }

/* Modais */
.modal-recobranca .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
}

.modal-recobranca .modal-header {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #f8fafc;
  border: none;
  padding: 1rem 1.25rem;
  align-items: center;
}

.modal-recobranca .modal-title {
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.02em;
}

.modal-recobranca .modal-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.25rem;
  border-radius: 2px;
  background: #3b82f6;
}

.modal-recobranca .close {
  color: #fff;
  opacity: 0.85;
  text-shadow: none;
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1;
}

.modal-recobranca .close:hover {
  opacity: 1;
  color: #fff;
}

.modal-recobranca .modal-body {
  padding: 1.25rem;
  background: #f8fafc;
  max-height: min(75vh, 640px);
  overflow-y: auto;
}

.modal-recobranca .modal-footer {
  border-top: 1px solid var(--rec-border);
  background: #fff;
  padding: 0.75rem 1.25rem;
}

#pdfModal .modal-body .form-group label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pdf-os-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: min(54vh, 460px);
  overflow-y: auto;
  padding: 0.25rem;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #f8fafc;
}

.pdf-os-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #ffffff;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pdf-os-item:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.pdf-os-item.is-selected {
  border-color: #60a5fa;
  background: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.pdf-os-check {
  margin-top: 0.22rem;
  width: 16px;
  height: 16px;
}

.pdf-os-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.pdf-os-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.2;
}

.pdf-os-meta {
  font-size: 0.73rem;
  color: #64748b;
  line-height: 1.2;
  word-break: break-word;
}

.pdf-os-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #fff;
  padding: 1rem;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

.pdf-contact-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 168px;
  overflow-y: auto;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #f8fafc;
  padding: 0.35rem;
}

.pdf-contact-option {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  padding: 0.38rem 0.45rem;
  margin: 0;
  cursor: pointer;
}

.pdf-contact-option:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.pdf-contact-radio {
  margin-top: 0.2rem;
}

.pdf-contact-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
}

.pdf-contact-title {
  font-size: 0.75rem;
  color: #1e293b;
  font-weight: 700;
  line-height: 1.2;
}

.pdf-contact-detail {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.2;
  word-break: break-word;
}

.pdf-contact-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #22c55e;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.1rem 0.36rem;
  margin-left: 0.24rem;
}

.pdf-contact-empty {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  padding: 0.7rem;
  text-align: center;
}

.modal-recobranca .btn-fechar {
  border-radius: 10px;
  font-weight: 600;
  padding: 0.45rem 1.1rem;
  background: #f1f5f9;
  border: 1px solid var(--rec-border);
  color: var(--rec-text);
}

.modal-recobranca .btn-fechar:hover {
  background: #e2e8f0;
  color: var(--rec-text);
}

/* Tabela dentro do modal */
.rec-modal-table-wrap {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--rec-border);
  overflow: hidden;
}

.rec-modal-table {
  margin: 0;
  font-size: 0.8125rem;
}

.rec-modal-table thead th {
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: none;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--rec-border);
}

.rec-modal-table thead th[data-sort] {
  cursor: pointer;
  user-select: none;
}

.rec-modal-table thead th[data-sort]:hover {
  background: #e2e8f0;
}

.rec-modal-table thead th.is-sorted {
  color: #1e293b;
  background: #dbeafe;
}

.rec-modal-table tbody td {
  padding: 0.6rem 0.75rem;
  border-color: #f1f5f9;
  vertical-align: middle;
}

.rec-modal-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.rec-modal-table tbody tr:hover {
  background: #eff6ff;
}

.rec-modal-table .rec-col-codigo {
  font-family: ui-monospace, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rec-accent);
}

.rec-modal-empty {
  text-align: center;
  padding: 2rem;
  color: var(--rec-muted);
  font-size: 0.9rem;
}

.modal-lixeira .modal-header {
  background: linear-gradient(135deg, #475569 0%, #64748b 100%);
}

/* Modais ficam fora de .recobranca-page — neutraliza tbody display:block global */
.modal-recobranca table thead {
  display: table-header-group;
}

.modal-recobranca table tbody {
  display: table-row-group;
  overflow: visible;
  height: auto;
}

.modal-recobranca table tr {
  display: table-row;
}

.modal-recobranca table th,
.modal-recobranca table td {
  display: table-cell;
  height: auto;
  min-width: 0;
}

@keyframes recShimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

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