/* ---------- clearing out the built-in household names -----------------------
   A one-off job on the Maintenance tab, so it reads as a pile to work through
   rather than another permanent list: three groups, each with the one action
   that state needs. */

.hhl {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}
.hhl-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hhl-top > b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 750; color: var(--text); }
.hhl-top > b .ic { width: 16px; height: 16px; color: var(--cx-same-c); }
.hhl-count {
  font-size: 11px; font-weight: 800; padding: 2px 9px; border-radius: 999px;
  background: color-mix(in srgb, var(--cx-same-c) 13%, transparent); color: var(--cx-same-c);
}
.hhl-why { font-size: 12.5px; line-height: 1.55; color: var(--text-muted); margin: 8px 0 0; }

.hhl-reopen {
  display: flex; align-items: center; gap: 8px; width: 100%;
  margin: 0 0 14px; padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface); border: 1px dashed var(--border-strong);
  font-size: 12.5px; color: var(--text-muted); cursor: pointer; text-align: left;
}
.hhl-reopen:hover { border-color: var(--cx-same-c); color: var(--text-soft); }
.hhl-reopen b { color: var(--text); }
.hhl-reopen .ic { width: 14px; height: 14px; flex: none; }
.hhl-reopen .ic:first-child { color: var(--cx-same-c); }

/* one state's worth */
.hhl-group { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.hhl-ghead { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.hhl-ghead > b { font-size: 13.5px; font-weight: 750; color: var(--text); }
.hhl-gn {
  font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px;
  background: var(--surface-3); color: var(--text-soft);
}
.hhl-gwhy { flex: 1 1 260px; font-size: 11.5px; line-height: 1.5; color: var(--text-muted); }
.hhl-gwhy i { font-style: italic; }
.hhl-ghead .tool { flex: none; }

/* the never-used ones: a wall of chips, because the action is "all of them" */
.hhl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.hhl-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 5px 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.hhl-chip a { color: inherit; text-decoration: none; }
.hhl-chip a:hover { color: var(--text); text-decoration: underline; }
.hhl-chip button {
  border: none; background: none; cursor: pointer; padding: 0 3px;
  color: var(--text-muted); font-weight: 800; line-height: 1; font-size: 13px;
}
.hhl-chip button:hover { color: var(--red); }

/* the ones needing a decision, one row each */
.hhl-row {
  display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap;
  margin-top: 9px; padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
}
.hhl-row.name { border-left: 3px solid var(--cx-same-c); }
.hhl-row.product { border-left: 3px solid var(--amber); }
.hhl-id { flex: 1 1 240px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hhl-id > b { font-size: 13.5px; font-weight: 700; color: var(--text); cursor: pointer; }
.hhl-id > b:hover { color: var(--accent); text-decoration: underline; }
.hhl-dept { font-size: 11px; font-weight: 650; color: var(--text-muted); }
.hhl-facts {
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  font-size: 11.5px; color: var(--text-soft);
}
.hhl-facts .ic { width: 12px; height: 12px; opacity: .8; }
.hhl-points { font-size: 11.5px; color: var(--cx-same-c); font-weight: 650; }
.hhl-points .ic { width: 12px; height: 12px; vertical-align: -0.1em; margin-right: 3px; }
.hhl-points a { color: inherit; font-weight: 700; }

.hhl-acts { display: flex; align-items: flex-start; gap: 7px; flex-wrap: wrap; flex: 1 1 320px; }
.hhl-acts .tool { font-size: 12px; white-space: nowrap; }
.hhl-acts .tool i { font-style: italic; }
.hhl-acts .tool.warnish { color: var(--red); border-color: color-mix(in srgb, var(--red) 28%, transparent); }
.hhl-acts .tool.warnish:hover { background: color-mix(in srgb, var(--red) 10%, transparent); }
/* "you already own this one, by barcode" — the only suggestion certain enough to
   make a button out of */
.hhl-twin {
  flex: 1 1 100%;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 8px 11px; border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  font-size: 12px; color: var(--text-soft);
}
.hhl-twin > .ic { width: 14px; height: 14px; flex: none; color: var(--accent); }
.hhl-twin > span { flex: 1 1 200px; }
.hhl-twin a { color: var(--accent); font-weight: 700; }
.hhl-twin .tool { flex: none; font-size: 12px; }

.hhl-move { flex: 1 1 240px; min-width: 190px; }
.hhl-move input {
  width: 100%; font: inherit; font-size: 12.5px; padding: 7px 10px;
  border: 1px solid var(--border-strong); border-radius: 9px;
  background: var(--surface); color: var(--text);
}
.hhl-move input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }

@media (max-width: 720px) {
  .hhl { padding: 13px 14px; }
  .hhl-acts .tool { flex: 1 1 auto; justify-content: center; }
}
