/* ERP & Accounting Integration — Sprint 11.1 */
#m-tools-erp-accounting .tools-erp-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.erp-lead {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--texto-suave, #64748b);
  line-height: 1.45;
}

.erp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.erp-tab {
  min-height: 32px;
  padding: 0 12px;
  border-radius: 10px;
  border: var(--borde-fino, 1px solid #cbd5e1);
  background: var(--gris-50, #f8fafc);
  font-size: 12px;
  font-weight: 700;
  color: var(--texto-base, #334155);
  cursor: pointer;
}

.erp-tab.active {
  background: var(--gris-100, #f1f5f9);
  border-color: var(--gris-400, #94a3b8);
  color: var(--texto-fuerte, #0f172a);
}

.erp-mode-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.erp-mode-row label {
  font-size: 11px;
  font-weight: 700;
  color: var(--texto-base, #334155);
}

.erp-mode-row select.fi {
  min-height: 32px;
  max-width: 220px;
}

.erp-upload-card {
  text-align: center;
  padding: 16px;
}

.erp-file-lbl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  cursor: pointer;
}

.erp-hint {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--texto-muted, #94a3b8);
}

.erp-map-sub {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: var(--texto-fuerte, #0f172a);
}

.erp-map-table,
.erp-preview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.erp-map-table th,
.erp-map-table td,
.erp-preview-table th,
.erp-preview-table td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--gris-200, #e2e8f0);
  text-align: left;
}

.erp-preview-table-wrap {
  max-height: 240px;
  overflow: auto;
  border: var(--borde-fino, 1px solid #cbd5e1);
  border-radius: 10px;
  margin-bottom: 10px;
}

.erp-preview-table tr.err {
  background: #fef2f2;
}

.erp-preview-meta {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--texto-fuerte, #0f172a);
}

.erp-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: var(--texto-base, #334155);
}

.erp-history-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--gris-200, #e2e8f0);
}

.erp-empty {
  margin: 0;
  font-size: 12px;
  color: var(--texto-muted, #94a3b8);
}

#erp-btn-import {
  width: 100%;
  min-height: 36px;
  margin-top: 8px;
}
