/* ── Auditor de CVN ── */

/* File upload */
.auditor-file-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.auditor-file-btn {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1.5px solid var(--border);
  padding: 8px 18px; border-radius: 99px; font-size: 13px; font-weight: 700;
  transition: all var(--transition);
}
.auditor-file-btn:hover { background: var(--surface-dim); border-color: #ddd6ce; }
.auditor-file-label { font-size: 12.5px; color: var(--text-muted); }

.auditor-actions-row { display: flex; gap: 10px; margin-top: 16px; }

/* Resumen / stats */
.auditor-resumen { margin: 8px 0 18px; }
.auditor-resumen-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.auditor-resumen-meta code { font-family: var(--font-mono); font-size: 12px; background: var(--surface-dim); padding: 1px 6px; border-radius: 4px; }
.auditor-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.auditor-stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm);
}
.auditor-stat-num { font-size: 24px; font-weight: 700; color: var(--text); line-height: 1; }
.auditor-stat-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.4px; }
.auditor-stat-ok { border-color: var(--ok-text); }
.auditor-stat-ok .auditor-stat-num { color: var(--ok-text); }
.auditor-stat-warn { border-color: var(--accent); background: var(--accent-light); }
.auditor-stat-warn .auditor-stat-num { color: var(--accent); }

/* Collapsible sections */
.auditor-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.auditor-summary {
  list-style: none; cursor: pointer; padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 700; font-size: 14.5px; color: var(--text); user-select: none;
}
.auditor-summary::-webkit-details-marker { display: none; }
.auditor-summary:hover { background: var(--surface-dim); }
.auditor-section-title { display: flex; align-items: center; gap: 8px; }
.auditor-section-title::before { content: '▸'; color: var(--text-muted); font-size: 12px; transition: transform var(--transition); }
.auditor-section[open] .auditor-section-title::before { transform: rotate(90deg); }
.auditor-section-body { padding: 4px 18px 18px; }

/* Badges */
.auditor-badge { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; min-width: 26px; text-align: center; }
.auditor-badge-neutral { background: var(--surface-dim); color: var(--text-secondary); }
.auditor-badge-ok { background: var(--ok-bg); color: var(--ok-text); }
.auditor-badge-warn { background: var(--accent-light); color: var(--accent); }
.auditor-badge-info { background: #eef4ff; color: #2563a8; }

/* Tables */
.auditor-table-scroll { overflow-x: auto; }
.auditor-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.auditor-table th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--text-muted); padding: 8px 10px; border-bottom: 1.5px solid var(--border); white-space: nowrap;
}
.auditor-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.auditor-table tr:last-child td { border-bottom: none; }
.auditor-cell-title { max-width: 360px; }
.auditor-cell-journal { color: var(--text-secondary); max-width: 200px; }
.auditor-table code { font-family: var(--font-mono); font-size: 11.5px; }
.auditor-table a { color: var(--accent); text-decoration: none; }
.auditor-table a:hover { text-decoration: underline; }

/* Actions inside section */
.auditor-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 6px 0 16px; }
.auditor-actions-hint { font-size: 12px; color: var(--text-muted); }
.auditor-section-hint { font-size: 12.5px; color: var(--text-secondary); margin: 4px 0 14px; line-height: 1.5; }

/* Fuzzy pairs */
.auditor-pairs { display: flex; flex-direction: column; gap: 10px; }
.auditor-pair { display: flex; gap: 12px; align-items: stretch; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.auditor-pair-score { font-weight: 700; font-size: 14px; color: var(--accent); display: flex; align-items: center; min-width: 44px; }
.auditor-pair-bodies { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.auditor-pair-row { font-size: 13px; color: var(--text); }
.auditor-pair-tag { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 4px; background: var(--surface-dim); color: var(--text-secondary); margin-right: 4px; }
.auditor-pair-tag-oa { background: #eef4ff; color: #2563a8; }
.auditor-pair-row code { font-family: var(--font-mono); font-size: 11px; }
.auditor-pair-row a { color: var(--accent); text-decoration: none; }

/* Lists */
.auditor-list { margin: 4px 0 12px; padding-left: 20px; font-size: 13px; line-height: 1.7; }
.auditor-list code { font-family: var(--font-mono); font-size: 11.5px; }
.auditor-list-group { background: var(--surface-dim); border-radius: var(--radius-sm); padding: 8px 8px 8px 28px; margin-bottom: 8px; }
.auditor-subtitle { font-size: 13px; font-weight: 700; margin: 14px 0 4px; color: var(--text); }

.auditor-q-high { color: var(--ok-text); font-weight: 700; }
.auditor-q-mid { color: var(--warning-text); font-weight: 700; }
.auditor-q-low { color: var(--text-secondary); font-weight: 600; }

.auditor-empty { font-size: 13px; color: var(--text-muted); padding: 6px 0; }
.auditor-muted { color: var(--text-muted); }
