/* Tela Peças trocadas. Reaproveito os tokens do app.css (--ok, --steel, --line, etc.) */
.pc-wrap { display: flex; flex-direction: column; gap: 16px }
.pc-tools { float: right }
.pc-bar { display: flex; align-items: center; gap: 8px; margin: 4px 0 14px }
.pc-toggle { padding: 7px 14px; border: 1px solid var(--line); background: var(--surface2); color: var(--muted);
  border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer }
.pc-toggle.on { background: var(--steel); color: #fff; border-color: var(--steel) }
.pc-search { flex: 1; margin-left: auto; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 8px; font-size: 12px; font-family: var(--ui) }
.pc-tbl { width: 100% }
.pc-tbl .r { text-align: right }
.pc-row { cursor: pointer }
.pc-row:hover { background: var(--surface2) }
.pc-drill > td { padding: 0 0 8px }
.pc-sub { width: 100%; background: var(--surface2); border-radius: 8px }
.pc-sub td { padding: 7px 12px; font-size: 12px; border-bottom: 1px solid var(--line) }
.pc-tag { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; margin-right: 6px }
.pc-produto { background: rgba(37, 99, 235, 0.12); color: var(--steel) }
.pc-laudo { background: rgba(5, 150, 105, 0.12); color: var(--ok) }
.pc-empty { padding: 28px; text-align: center; color: var(--faint) }
/* Top 5 (rankings clicáveis) + chip de foco */
.pc-tops { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 4px 0 }
.pc-top { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface) }
.pc-top h4 { margin: 0 0 8px; font-size: 12px; color: var(--muted); font-weight: 700 }
.pc-top .it { display: flex; justify-content: space-between; gap: 8px; padding: 5px 6px;
  border-radius: 6px; font-size: 12px; cursor: pointer }
.pc-top .it:hover { background: var(--surface2) }
.pc-top .it.on { background: var(--steel); color: #fff }
.pc-top .it .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pc-top .it .vl { font-weight: 700; flex: 0 0 auto }
.pc-foco { display: inline-flex; align-items: center; gap: 6px; background: var(--steel);
  color: #fff; border-radius: 14px; padding: 4px 10px; font-size: 11px; font-weight: 600 }
.pc-foco b { cursor: pointer }
.pc-sub thead th { font-size: 10px; color: var(--muted); text-align: left; padding: 6px 12px }
@media (max-width: 900px) { .pc-tops { grid-template-columns: repeat(2, 1fr) } }
/* Peças por técnico: grid de cards estilo apresentação (cabeçalho azul, qtd à direita) */
.pt-tools { float: right }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px }
.pt-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface) }
.pt-cap { background: var(--steel); color: #fff; font-weight: 700; font-size: 12px;
  text-align: center; padding: 7px 10px; text-transform: uppercase }
.pt-body { padding: 2px 0 }
.pt-row { display: flex; justify-content: space-between; gap: 8px; padding: 6px 12px;
  font-size: 12px; border-bottom: 1px solid var(--line) }
.pt-row:last-child { border-bottom: 0 }
.pt-pc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap }
.pt-q { font-weight: 700; flex: 0 0 auto }
.pt-more { width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--surface2);
  color: var(--steel); font-size: 11px; font-weight: 600; padding: 7px; cursor: pointer }
.pt-more:hover { background: var(--line) }
@media (max-width: 1100px) { .pt-grid { grid-template-columns: repeat(2, 1fr) } }
@media (max-width: 700px) { .pt-grid { grid-template-columns: 1fr } }