/* ContaIA · Tablas de complementos de pago — estilos de la herramienta.
   Paleta canónica "Confianza fiscal" (src/design-tokens.css). */

.pagos-tabla-page {
  display: grid;
  gap: 18px;
}

.pagos-tabla-toolbar,
.pagos-tabla-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.pagos-tabla-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.pagos-tabla-kpi {
  background: var(--hatch-widget-surface, #fff);
  border: 1px solid var(--hatch-widget-border, #e4e6d8);
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
}

.pagos-tabla-kpi span {
  font-size: 12px;
  color: var(--hatch-widget-muted, #5a6b70);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pagos-tabla-kpi strong {
  font-size: 18px;
  color: var(--hatch-widget-text, #123b43);
}

.pagos-tabla-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hatch-widget-border, #e4e6d8);
  border-radius: 14px;
  background: var(--hatch-widget-surface, #fff);
}

.pagos-tabla-table {
  border-collapse: collapse;
  width: max-content;
  min-width: 100%;
  font-size: 13px;
}

.pagos-tabla-table th {
  background: #123b43;
  color: #fff;
  text-align: left;
  padding: 8px 10px;
  white-space: nowrap;
  font-weight: 600;
}

.pagos-tabla-table td {
  padding: 4px 6px;
  border-top: 1px solid var(--hatch-widget-border, #e4e6d8);
  vertical-align: middle;
}

.pagos-tabla-table tr.is-review {
  background: rgba(233, 130, 104, 0.08);
}

.pagos-tabla-table input {
  width: 140px;
  padding: 6px 8px;
  border: 1px solid var(--hatch-widget-border, #d8dcc8);
  border-radius: 8px;
  background: var(--hatch-widget-surface, #fff);
  color: var(--hatch-widget-text, #123b43);
  font: inherit;
}

.pagos-tabla-table input:focus {
  outline: 2px solid #16866f;
  outline-offset: 1px;
}

.pagos-tabla-diff {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pagos-tabla-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.pagos-tabla-status.is-ok {
  background: rgba(22, 134, 111, 0.14);
  color: #0f5f4e;
}

.pagos-tabla-status.is-review {
  background: rgba(233, 130, 104, 0.18);
  color: #8a3b28;
}

.pagos-tabla-empty {
  border: 1px dashed var(--hatch-widget-border, #c9cdb4);
  border-radius: 14px;
  padding: 18px;
  background: var(--hatch-widget-surface-muted, #f5f4ec);
}

.pagos-tabla-issue {
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0;
}

.pagos-tabla-issue.is-error {
  background: rgba(233, 130, 104, 0.14);
  color: #7a2f1d;
}

.pagos-tabla-issue.is-notice {
  background: rgba(22, 134, 111, 0.12);
  color: #0f5f4e;
}

.pagos-tabla-issues {
  border-radius: 10px;
  padding: 10px 12px;
  background: rgba(217, 184, 76, 0.14);
}

.pagos-tabla-save-line {
  font-size: 13px;
  color: var(--hatch-widget-muted, #5a6b70);
  margin: 0;
}

.pagos-tabla-assistant {
  border: 1px solid var(--hatch-widget-border, #e4e6d8);
  border-radius: 14px;
  background: var(--hatch-widget-surface, #fff);
  overflow: hidden;
}

.pagos-tabla-assistant-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: var(--hatch-widget-text, #123b43);
}

.pagos-tabla-assistant-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: #123b43;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.pagos-tabla-assistant-body {
  padding: 0 14px 14px;
  display: grid;
  gap: 10px;
}

.pagos-tabla-assistant-privacy {
  font-size: 13px;
  color: var(--hatch-widget-muted, #5a6b70);
  background: var(--hatch-widget-surface-muted, #f5f4ec);
  border-radius: 10px;
  padding: 10px 12px;
}

.pagos-tabla-assistant-messages {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.pagos-tabla-assistant-message {
  margin: 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--hatch-widget-surface-muted, #f5f4ec);
  white-space: pre-wrap;
  font-size: 14px;
}

.pagos-tabla-assistant-message.is-user {
  background: rgba(22, 134, 111, 0.12);
}

.pagos-tabla-nora-load {
  border: 1px solid #16866f;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}

.pagos-tabla-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid var(--hatch-widget-border, #d8dcc8);
  border-radius: 10px;
  font: inherit;
  resize: vertical;
}

.pagos-tabla-assistant-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.pagos-tabla-assistant-disclaimer {
  font-size: 12px;
  color: var(--hatch-widget-muted, #5a6b70);
  margin: 0;
}

.pagos-tabla-disclaimer {
  font-size: 13px;
  color: var(--hatch-widget-muted, #5a6b70);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
