/* web/hud/server_panel.css
   The Server panel (web/hud/server_panel.js), for admins. One text size throughout, the
   panel's own: what matters less is greyer, never smaller. */

.sv { color: var(--pn-text); }
.sv [hidden] { display: none; }
.sv button { font: inherit; font-size: 1em; }
.sv p { margin: .2em 0 0; }
.sv-dim { color: var(--pn-label); }

/* The two lines on top: how long it has been up, then the version, who and the door. */
.sv-top { padding-bottom: .45em; border-bottom: 1px solid var(--line); }
.sv-state { font-weight: 700; }
.sv-state::before { content: ""; display: inline-block; width: .6em; height: .6em; margin-right: .45em; border-radius: 50%; background: #6c6; }
.sv-state.away::before { background: #f2b25c; }
.sv-part { white-space: nowrap; }

/* A section, under a heading that folds it, its count at the right. */
.sv-sec { border-bottom: 1px solid var(--line); }
.sv-sec:last-of-type { border-bottom: none; }
.sv .sv-sec-head {
  display: flex; align-items: baseline; gap: .5em; width: 100%; margin: 0; padding: .4em 0;
  background: none; border: none; border-radius: 0; text-align: left; color: var(--pn-text);
}
.sv-sec-head > * { pointer-events: none; }
.sv-sec-name { flex: 1; min-width: 0; font-weight: 700; }
.sv-sec-name::before { content: "\25BE"; display: inline-block; width: 1.1em; font-weight: 400; color: var(--pn-label); }
.sv-sec.shut .sv-sec-name::before { content: "\25B8"; }
.sv .sv-sec-head:hover .sv-sec-name { color: var(--ink); }
.sv .sv-sec-head:focus-visible { outline: 2px solid #8fd3ff; outline-offset: 1px; }
.sv-count { flex: none; color: var(--pn-label); }
.sv-count.attn { font-weight: 700; color: #f2b25c; }
.sv-sec-body { padding-bottom: .6em; }

/* A list: each item's age in a column of its own. An alert is one line, its Sent to
   phone tag at the right, or under it where the column is too narrow for both. An item
   is never wider than the panel, so a long room name is cut short. */
.sv-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3em; margin: 0; padding: 0; list-style: none; }
.sv-item { display: grid; grid-template-columns: 7ch minmax(0, 1fr); column-gap: .6em; align-items: baseline; }
.sv-when { white-space: nowrap; color: var(--pn-label); }
.sv-what { min-width: 0; overflow-wrap: anywhere; }
.sv-one .sv-what { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .6em; }
.sv-one .sv-phone { margin-left: auto; }
.sv-kind { font-weight: 600; color: #f2b25c; }
.sv-kind.high, .sv-kind.error { color: #ff8a80; }
.sv-phone { padding: 0 .4em; border-radius: 3px; font-weight: 700; white-space: nowrap; color: #8fd3ff; background: #13283a; }
.sv-phone::before { content: ""; display: inline-block; width: .5em; height: .8em; margin-right: .35em; vertical-align: -1px; border: 1.5px solid currentColor; border-radius: 2px; }
/* Its words carry the Tap indicator (web/hud/tap.css). */
.sv .sv-more { margin-top: .4em; padding: 0; background: none; border: none; border-radius: 0; color: #8fd3ff; }
.sv-what > .sv-more { display: block; margin-top: .2em; }

/* Content problems: a group to each check that found something, its lines under it, each
   with a hanging indent behind an amber mark. */
.sv-problems { display: grid; gap: .2em; margin: .2em 0 0; padding: 0; list-style: none; }
.sv-problem { position: relative; padding-left: 1em; overflow-wrap: anywhere; }
.sv-problem::before { content: "!"; position: absolute; left: .2em; font-weight: 700; color: #f2b25c; }

/* A report opened: where they stood, then the lines they were shown in a box that
   scrolls, its newest at the bottom. */
.sv-seen { margin-top: .3em; }
.sv-stood { margin: 0; }
.sv-stood div { overflow-wrap: break-word; }
.sv-stood dt, .sv-stood dd { display: inline; margin: 0; }
.sv-stood dt { color: var(--pn-label); }
.sv-stood dt::after { content: ": "; }
.sv-seen p { margin: .45em 0 .2em; }
.sv-lines {
  max-height: 16em; overflow-y: auto; padding: .3em .45em; border: 1px solid var(--line);
  border-radius: 4px; background: #15171c;
}
.sv-lines div { padding-left: 1em; text-indent: -1em; overflow-wrap: anywhere; }
.sv-lines:focus-visible { outline: 2px solid #8fd3ff; outline-offset: 1px; }
.sv-who { display: flex; align-items: baseline; gap: .6em; }
.sv-name { flex: none; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sv-room { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }

/* Staff, for the architect: a name to a row, its rank at the right; under them a
   character with no rank, a rank and Give rank, wrapping on a narrow panel. */
.sv select {
  min-width: 0; max-width: 100%; padding: 2px 6px; border: 1px solid var(--cell-edge);
  border-radius: 6px; background: var(--cell); color: var(--ink); font: inherit;
}
.sv-rank { flex: none; margin-left: auto; }
.sv-give { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; margin-top: .6em; }
.sv-staff p { margin-top: .5em; }

/* What goes to your phone, folded under the alerts. */
.sv-phone-list { margin-top: .4em; color: var(--pn-label); }
.sv-phone-list summary { cursor: pointer; color: #8fd3ff; }
.sv-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .15em 1em; margin: .35em 0 0; padding: 0; list-style: none; color: var(--pn-text); }
.sv-kinds-note { margin: .5em 0 .1em; }

/* The door. */
.sv-door { min-width: 0; margin: 0; padding: 0; border: none; }
.sv-door legend { padding: 0; margin-bottom: .2em; }
.sv-choice { display: block; margin-bottom: .15em; }
.sv-code { display: flex; align-items: center; gap: .5em; margin: .3em 0 .45em; }
.sv-code input {
  flex: 1; min-width: 0; padding: 1px 4px; border: 1px solid var(--cell-edge); border-radius: 4px;
  background: var(--cell); color: var(--ink); font: inherit;
}
.sv-code input:disabled { opacity: .5; }

/* Buttons (web/hud/panel_style.css's), and the question each asks first. Update
   is outlined amber, as a warning. */
.sv-acts { display: flex; flex-wrap: wrap; gap: .5em; }
.sv .sv-warn:not(:disabled) { border-color: #f2b25c; color: #f2b25c; }
.sv .pn-btn.go { background: #f2b25c; border-color: #f2b25c; }
.sv-ask { margin-top: .4em; border: 1px solid #3a3f4b; border-radius: 6px; padding: .5em; background: #15171c; }
.sv-ask .sv-dim { margin-top: .35em; }
.sv-ask .sv-acts { margin-top: .45em; }
.sv-note { margin-top: .35em; }

/* Restart and update. */
.sv-ready { margin-top: .5em; border: 1px solid rgba(242, 178, 92, .55); border-radius: 6px; padding: .5em .6em; }
.sv-ready-head { font-weight: 700; color: #f2b25c; }
.sv-headlines { margin: .3em 0 .45em; padding-left: 1.1em; }
.sv-headlines li { margin-bottom: .2em; overflow-wrap: anywhere; }
.sv-last { margin-top: .5em; overflow-wrap: anywhere; }
