/**
 * Les tableaux de la vue « Détail » : actions, dégâts & soins, pulls, cibles.
 */

/* ---------- Résumé ---------- */
.summary {
  margin-top: 40px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: right;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
}
th {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
th:hover,
th[aria-sort] {
  color: var(--fg);
}
th[aria-sort='ascending']::after {
  content: ' ▲';
}
th[aria-sort='descending']::after {
  content: ' ▼';
}
th:first-child,
td:first-child {
  text-align: left;
}
table tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
td.num {
  font-variant-numeric: tabular-nums;
}
td.zero {
  color: #4a5364;
}
/* Cellule chiffrée doublée d'une barre de part du total. */
td.bar {
  position: relative;
}
td.bar i {
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  border-radius: 0 2px 2px 0;
  opacity: 0.18;
}
td.bar span {
  position: relative;
}
td.idle:not(.zero) {
  color: var(--c-miss);
}
td small {
  font-size: 11px;
  opacity: 0.7;
}
.table-note {
  padding: 10px 14px 0;
  font-size: 11.5px;
  color: var(--muted);
}
.table-title {
  padding: 0 14px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
}
.tag-kind {
  font-size: 9.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 6px;
}
.tag-kind.is-boss {
  color: var(--accent);
  background: rgba(216, 166, 87, 0.14);
}
.tag-kind.is-pack {
  color: var(--muted);
  background: var(--line);
}
tr.pull,
tr.target {
  cursor: pointer;
}
.chev {
  display: inline-block;
  width: 14px;
  color: var(--muted);
  transition: transform 0.12s;
}
tr.pull.open .chev,
tr.target.open .chev {
  transform: rotate(90deg);
}
tr.pull-player td,
tr.target-row td {
  background: rgba(255, 255, 255, 0.02);
}
tr.pull-player td:first-child,
tr.target-row td:first-child {
  padding-left: 34px;
}
/* Pastille de couleur d'une cible, dans le détail comme dans la clé. */
tr.target-row i.sw,
.tgt-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  margin-right: 7px;
}
/* Clé des couleurs : sans elle la répartition est illisible, donc pas une aide
   qu'on masque en mode connaisseur. */
.tgt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 9px 4px 0;
  font-size: 11.5px;
  color: var(--muted);
}
.tgt-legend .lg {
  display: inline-flex;
  align-items: center;
}
/* Répartition des dégâts : couleurs de classe par pull, couleurs de cible en raid. */
td.stack {
  width: 160px;
}
td.stack > span {
  display: flex;
  height: 8px;
  border-radius: 3px;
  overflow: hidden;
  background: var(--sunken-2);
}
td.stack i {
  display: block;
  opacity: 0.8;
}
.kpi.avoid {
  cursor: pointer;
}
.kpi.avoid:hover .v {
  color: var(--c-interrupt);
}
tfoot td {
  border-top: 1px solid var(--line);
  font-weight: 600;
}
tfoot td:first-child {
  color: var(--muted);
}
