/* The head tester hub, the dashboard's Hub page (hub.js). It is drawn in the dashboard's own template
   (parts, tables, .act buttons, .filter and .pick fields, dashboard.css); these are only the few
   things that template has no name for. Every rule is scoped under .hub, so nothing here reaches
   the dashboard's other pages. */

/* Its tables only list, they never sort. */
.hub th { cursor: default; }
.hub th:hover { text-decoration: none; }
.hub td .acts { justify-content: flex-end; }
.hub td .flag { margin-left: 8px; }
.hub .code { font-weight: 400; }
.hub .hub-link { display: inline-flex; align-items: center; text-decoration: none; }

/* Fields in a row keep to the row's height and the width of what they hold. */
.hub .filter { height: 28px; }
.hub .filter.name { width: 150px; }
.hub .filter.days { width: 64px; text-align: right; }
.hub .filter.note { width: 220px; }
.hub .pick { height: 28px; max-width: 260px; }
.hub .count { font-size: 13px; }

/* A refusal: the server's own words in red, beside the button it answers. */
.hub .fail { color: var(--down); margin: 0 8px; white-space: normal; }

/* A button at work keeps its place and says so. */
.hub .act[aria-busy="true"] { display: inline-flex; align-items: center; gap: 6px; cursor: progress; color: var(--text); }
.hub .spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--control-hover); border-top-color: var(--text); animation: hub-spin .7s linear infinite; flex: none; }
@keyframes hub-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hub .spin { animation-duration: 2.4s; } }

/* A PC just approved, and an open Manage row under its PC: one line per thing it changes. */
.hub tr.fresh td { background: #121A16; }
.hub tr.detail td { height: auto; padding-top: 10px; padding-bottom: 14px; font-weight: 400; }
.hub .manage { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.hub .manage .line { display: grid; grid-template-columns: 110px minmax(0, 1fr); align-items: center; gap: 12px; }
.hub .manage .acts { flex-wrap: wrap; justify-content: flex-start; }
/* On a picked row's shade, its buttons and fields keep standing out. */
.hub tr.picked .act, .hub tr.picked .filter { background: var(--control-hover); }
.hub tr.picked .act:hover { background: var(--rule); }

/* Applications: one under the other like the Fixes page, its answers in two label and value
   columns, what they wrote under them. */
.hub .entry { padding: 16px 0 18px; border-bottom: 1px solid var(--line); }
.hub .entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.hub .entry-head b { font-size: 15px; font-weight: 600; }
.hub .entry-head .acts { margin-left: auto; }
.hub dl.answers { display: grid; grid-template-columns: 150px minmax(0, 1fr) 150px minmax(0, 1fr); gap: 6px 12px; max-width: 960px; margin: 12px 0 0; }
.hub dl.answers dt { font-size: 13px; }
.hub dl.answers dd { margin: 0; overflow-wrap: anywhere; }
.hub dl.answers dt.long { grid-column: 1; }
.hub dl.answers dd.long { grid-column: 2 / -1; white-space: pre-wrap; }

@media (max-width: 860px) {
  .hub dl.answers { grid-template-columns: 130px minmax(0, 1fr); }
  .hub dl.answers dd.long { grid-column: 2; }
  .hub .entry-head .acts { margin-left: 0; flex-wrap: wrap; }
  .hub .manage .line { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
