/*
 * The console in operator mode (Package 80, Part 5): the Operator banner, the
 * greyed look and the pages for "no session" and "ended". Only the console's
 * own tokens (console.css, portal_shell.css); both themes come with them.
 * Ink on accent-soft is far past WCAG AA in light and dark.
 */

/* The banner: at the top of <main>, on every page, never scrolled away. */
.opbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 28px 0;
  padding: 8px 8px 8px 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-ink);
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
}
.opbar[hidden] { display: none; }
.opbar .opb-words { flex: 1 1 auto; margin: 0; min-width: 0; }
.opbar .opb-short { display: none; }
.opbar .cb { min-height: 40px; flex: none; }
@media (max-width: 767px) {
  .opbar { margin: 8px 16px 0; }
  .opbar .opb-long { display: none; }
  .opbar .opb-short { display: inline; }
}

/* In operator mode the place is fixed: the switcher is a name, not a list. */
body.operator-mode .pswitch { pointer-events: none; }
body.operator-mode .pswitch .ps-chev { display: none; }

/* Greyed: never hidden, never an error after the press. */
[data-opc] { cursor: not-allowed; }
[data-opc]:not(:disabled) { opacity: 0.55; }
[data-opc]:disabled { opacity: 0.55; }
a[data-opc], [role="switch"][data-opc], [role="button"][data-opc] { pointer-events: none; }
.opc-note { margin: 0 0 8px; color: var(--ink2); font-weight: 600; }
/* Inside a rounded, clipped list (the Team's rows) the note takes a row's padding, so its first letter is not cut off. */
.crows.opc-note-host > .opc-note, .opc-note-host.crows > .opc-note { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); }

/* The pages that replace the console: no session, and the visit ended. */
.opcover {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px;
  text-align: center;
  background: var(--canvas);
  color: var(--ink);
}
.opcover[hidden] { display: none; }
.opcover .csub { max-width: 380px; margin: 0; }

/* What a place's own team sees of support: calm, never red. */
#supportLine { color: var(--ink2); }
.pmain > #supportLine[hidden] { display: none; }
.support-visits { margin-top: 18px; }
.support-visits .support-empty { margin: 6px 0 0; }

/* A greyed control with no note near it: its "Not in operator mode" line, visible beside it (a phone has no tooltips). */
.opc-inline { display: block; margin: 4px 0 0; font-size: 12.5px; }
/* A header control's note: its own row under the page's header, never inside it. */
.opc-head { margin: 0; padding: 0 28px 10px; }
@media (max-width: 767px) { .opc-head { padding: 0 16px 10px; } }
