/* Histórico por usuário (admin > Usuários > Histórico) */
.edge-modal.wide.user-history-modal { width: min(1180px, 100%); }
.user-history-contact { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.user-history-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid rgba(66, 207, 245, .35);
  border-radius: 10px;
  background: rgba(66, 207, 245, .08);
  color: var(--brand-text, #f5f7fa);
  font-size: 13px;
  line-height: 1.5;
}
.user-history-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.user-history-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--brand-line, #2f2f2f);
  border-radius: 12px;
  background: var(--brand-surface-raised, #171717);
}
.user-history-card small {
  color: var(--brand-muted, #a6afbd);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.user-history-card strong { color: var(--brand-text, #fff); font-size: 22px; line-height: 1.2; }
.user-history-card span { color: var(--brand-muted, #a6afbd); font-size: 12px; }
.user-history-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 2px;
  overflow-x: auto;
  border-bottom: 1px solid var(--brand-line, #2f2f2f);
}
.user-history-tab {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--brand-muted, #a6afbd);
  font-weight: 600;
  cursor: pointer;
}
.user-history-tab:hover { color: var(--brand-text, #fff); }
.user-history-tab.active {
  border-color: var(--brand-line, #2f2f2f);
  background: var(--brand-surface-raised, #1d1d1d);
  color: var(--brand-pulse, #4fe6a1);
}
.user-history-tab:focus-visible { outline: 2px solid var(--brand-cyan, #42cff5); outline-offset: 2px; }
.user-history-panel h3 { margin: 18px 0 10px; color: var(--brand-text, #fff); font-size: 15px; }
.user-history-panel h3:first-child { margin-top: 0; }
.user-history-tools { display: flex; gap: 10px; margin-bottom: 12px; }
.user-history-tools .edge-input:first-child { flex: 1; }
.user-history-tools select.edge-input { width: auto; }
.user-history-table { min-width: 640px; }
.user-history-table a { color: var(--brand-cyan, #42cff5); }
.user-history-table small { color: var(--brand-muted, #a6afbd); }
.user-history-comment { max-width: 420px; white-space: pre-line; overflow-wrap: anywhere; }

@media (max-width: 720px) {
  .user-history-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .user-history-card strong { font-size: 17px; }
  .user-history-tools { flex-direction: column; }
  .user-history-tools select.edge-input { width: 100%; }
}
