/* ── Lynx Dashboard ── */
.lynx-dashboard {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column;
  background: var(--bg); z-index: 4;
}
.lynx-dash-header {
  flex-shrink: 0; background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}
.lynx-dash-counters {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
}
.lynx-dash-counter {
  font-size: 13px; font-weight: 600; padding: 3px 10px;
  border-radius: 12px; background: var(--surface-alt); color: var(--text-muted);
}
.lynx-cnt-analyzed { background: #dcfce7; color: #065f46; }
.lynx-cnt-pending { background: #fef3c7; color: #92400e; }
.lynx-cnt-error { background: #fee2e2; color: #991b1b; }
.lynx-dash-filters {
  flex-shrink: 0; background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
}
.lynx-dash-filter-row {
  display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.lynx-dash-filter-group {
  display: flex; flex-direction: column; min-width: 0;
}
.lynx-dash-filter-group label {
  font-size: 11px; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.03em;
  margin-bottom: 3px;
}
.lynx-dash-input {
  font-size: 12px; padding: 5px 8px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-main);
}
.lynx-dash-input:focus {
  outline: none; border-color: var(--interactive);
  box-shadow: 0 0 0 2px rgba(37,99,235,0.12);
}
.lynx-dash-table-wrap {
  flex: 1; overflow: auto; min-height: 0;
}
.lynx-dash-table {
  width: 100%; border-collapse: collapse; font-size: 12px;
  table-layout: auto;
}
.lynx-dash-table th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-alt); color: var(--text-muted);
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.03em; padding: 8px 8px;
  border-bottom: 2px solid var(--border); text-align: left;
  white-space: nowrap;
}
.lynx-dash-table td {
  padding: 7px 8px; border-bottom: 1px solid var(--border);
  vertical-align: middle; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}
.lynx-dash-table tr:hover { background: var(--surface-alt); }
.lynx-dash-status {
  display: inline-block; padding: 1px 8px;
  border-radius: 10px; font-size: 10px; font-weight: 600;
  white-space: nowrap;
}
.lynx-dash-status.resolved { background: #dcfce7; color: #065f46; }
.lynx-dash-status.analyzing_xml, .lynx-dash-status.analyzing_pdf,
.lynx-dash-status.building_graph { background: #dbeafe; color: #1e40af; }
.lynx-dash-status.awaiting_nota, .lynx-dash-status.awaiting_visure { background: #fef3c7; color: #92400e; }
.lynx-dash-status.error { background: #fee2e2; color: #991b1b; }
.lynx-dash-status.started { background: #f3f4f6; color: #6b7280; }
.lynx-dash-pagination {
  flex-shrink: 0; padding: 8px 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: 4px;
  justify-content: center;
}
.lynx-dash-page-btn {
  padding: 3px 10px; font-size: 11px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text-main);
  cursor: pointer;
}
.lynx-dash-page-btn:hover { background: var(--surface-alt); }
.lynx-dash-page-btn.active {
  background: var(--interactive); color: #fff; border-color: var(--interactive);
}
.lynx-dash-loading {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.7); z-index: 5;
}
.lynx-dash-spinner {
  width: 32px; height: 32px;
  border: 3px solid var(--border); border-top-color: var(--interactive);
  border-radius: 50%;
  animation: lynxSpin 0.8s linear infinite;
}
@keyframes lynxSpin { to { transform: rotate(360deg); } }
.lynx-dash-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 14px;
}
