/* Piloto F3 — modal cobro Motor V3 (legible en tema claro y theme-f10) */
.nd-modal.cob-v3-pilot-modal {
  max-width: 52rem;
}

.cob-v3-pilot-intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--muted, #5c6570);
}

.cob-v3-pilot-context {
  margin: 0 0 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border, #d8dee4);
  background: var(--neo-base, #f4f6f8);
  color: var(--text, #2c2824);
  font-size: 0.88rem;
  line-height: 1.45;
}

.cob-v3-pilot-context strong {
  color: var(--text, #2c2824);
}

.cob-v3-pilot-form .form-grid {
  gap: 0.75rem 1rem;
}

.cob-v3-pilot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

/* Paneles preview / resultado: heredan texto del modal, fondos con contraste */
.cob-v3-pilot-panel {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border, #d8dee4);
  border-radius: 8px;
  background: var(--card, #fff);
  color: var(--text, #2c2824);
}

.cob-v3-pilot-panel h3,
.cob-v3-pilot-panel p,
.cob-v3-pilot-panel li,
.cob-v3-pilot-panel strong {
  color: inherit;
}

.cob-v3-pilot-panel--ok {
  border-color: rgba(45, 138, 78, 0.45);
  background: rgba(45, 138, 78, 0.1);
  color: #1e3d28;
}

.cob-v3-pilot-panel--err {
  border-color: rgba(180, 60, 60, 0.45);
  background: rgba(180, 60, 60, 0.08);
  color: #5c2020;
}

.cob-v3-pilot-err-list {
  margin: 0;
  padding-left: 1.2rem;
  color: inherit;
}

.cob-v3-pilot-mov-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin-top: 0.5rem;
  color: inherit;
}

.cob-v3-pilot-mov-table th,
.cob-v3-pilot-mov-table td {
  border-bottom: 1px solid var(--border, #e8ecef);
  padding: 0.35rem 0.5rem;
  text-align: left;
  color: inherit;
}

.cob-v3-pilot-mov-table th {
  font-weight: 600;
  background: rgba(0, 0, 0, 0.04);
}

.cob-v3-pilot-recibo-section {
  margin-top: 0.75rem;
  color: inherit;
}

.cob-v3-pilot-recibo-section ul {
  margin: 0.25rem 0 0;
  padding-left: 1.1rem;
}

.cob-v3-pilot-badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  background: rgba(26, 77, 140, 0.15);
  color: #1a4d8c;
  vertical-align: middle;
  -webkit-text-fill-color: #1a4d8c;
}

.cob-v3-pilot-hidden {
  display: none !important;
}

/* —— Tema oscuro F10 (neo) —— */
html.theme-f10 .cob-v3-pilot-intro {
  color: rgba(196, 188, 178, 0.9);
}

html.theme-f10 .cob-v3-pilot-context {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  color: #e8e4df;
}

html.theme-f10 .cob-v3-pilot-context strong {
  color: #f5f2ee;
}

html.theme-f10 .cob-v3-pilot-panel {
  background: rgba(0, 0, 0, 0.22);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ebe8e4;
}

html.theme-f10 .cob-v3-pilot-panel--ok {
  background: rgba(56, 140, 86, 0.22);
  border-color: rgba(100, 200, 130, 0.4);
  color: #e8f5ec;
}

html.theme-f10 .cob-v3-pilot-panel--err {
  background: rgba(160, 56, 56, 0.2);
  border-color: rgba(220, 120, 120, 0.35);
  color: #fce8e8;
}

html.theme-f10 .cob-v3-pilot-mov-table th {
  background: rgba(0, 0, 0, 0.35);
  color: #f5f2ee;
}

html.theme-f10 .cob-v3-pilot-mov-table td {
  color: #e0dbd6;
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.theme-f10 .cob-v3-pilot-badge {
  background: rgba(120, 160, 220, 0.2);
  color: #c8daf5;
  -webkit-text-fill-color: #c8daf5;
}
