/* Dmytro's admin-refresh: overview above destinations, record reached from a row. */
.operator {
  max-width: 1504px;
  margin: 0 auto;
  padding: 32px;
  font-variant-numeric: tabular-nums;
}
.operator h1,
.operator h2 {
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  margin: 0 0 16px;
}
.operator h3 {
  font-size: 15px;
  font-weight: 500;
}
.op-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}
.op-top > span {
  flex: 1;
  color: var(--fg-muted);
}
.op-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.op-bar > span {
  flex: 1 1 260px;
}
.op-density {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.op-density input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--brand);
}
.op-overview {
  padding: 24px 0;
}
.op-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.op-metric {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}
.op-metric h2 {
  padding-right: 36px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  min-height: 48px;
  margin-bottom: 8px;
}
.op-root {
  grid-column: 1 / -1;
  background: var(--brand-wash);
  border-color: transparent;
}
.op-root h2 {
  min-height: 0;
}
.operator .op-provenance {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--fg-muted);
}
.operator .op-provenance:hover,
.operator .op-provenance[aria-expanded="true"] {
  color: var(--brand);
  background: var(--bg);
}
.op-provenance-panel {
  position: fixed;
  z-index: 60;
  width: min(352px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--tip-fg-muted);
  border-radius: 8px;
  background: var(--tip-bg);
  color: var(--tip-fg-muted);
  font-size: 13px;
  line-height: 20px;
  overflow: auto;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 24px #0003;
}
.op-provenance-panel dl,
.op-provenance-panel dd {
  margin: 0;
}
.op-provenance-panel dt {
  color: var(--tip-fg);
  font-weight: 600;
  margin-bottom: 4px;
}
.op-value {
  font-size: 32px;
  line-height: 40px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.op-root .op-value {
  font-size: 40px;
  line-height: 48px;
}
.op-absent {
  font-weight: 400;
  color: var(--fg-muted);
}
.operator details {
  margin-top: 16px;
  color: var(--fg-muted);
  font-size: 13px;
}
.operator summary {
  cursor: pointer;
  min-height: 32px;
  padding: 6px 0;
}
.operator details p {
  margin: 8px 0 0;
}
.op-commercial {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 16px;
  margin-top: 56px;
}
.op-commercial h2 {
  font-size: 15px;
  margin: 0;
}
.op-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.op-tabs button {
  height: 40px;
  border: 0;
  border-radius: 4px 4px 0 0;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: var(--fg-muted);
  padding: 0 16px;
}
.op-tabs button[aria-selected="true"] {
  color: var(--brand);
  border-bottom-color: var(--brand);
  font-weight: 600;
}
.op-panel {
  min-width: 0;
}
.op-usage-counts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
}
.op-usage-counts a {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: var(--fg);
  text-decoration: none;
}
.op-usage-counts a[aria-current] span {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.op-usage-counts strong {
  font-size: 24px;
  font-weight: 500;
}
@media (max-width: 599px) {
  .op-usage-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.op-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}
.op-heading h1,
.op-heading h2 {
  margin: 0;
}
.op-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 16px;
}
.op-controls label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  min-width: 0;
}
.op-controls label:first-child {
  flex: 1 1 240px;
}
.op-controls input,
.op-controls select {
  height: 36px;
  padding: 6px 8px;
  width: 100%;
  min-width: 0;
  font-size: 15px;
}
.op-controls button {
  min-height: 36px;
}
#op-usage-filter {
  display: grid;
  grid-template-columns: 160px 160px minmax(160px, 1fr) 120px minmax(160px, 1fr) auto;
}
@media (max-width: 1199px) {
  #op-usage-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  #op-usage-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #op-usage-filter label:nth-child(3),
  #op-usage-filter label:nth-child(5),
  #op-usage-filter button {
    grid-column: 1 / -1;
  }
}
.op-table {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.op-table table {
  border-collapse: collapse;
  width: 100%;
  min-width: 940px;
  font-size: 15px;
}
.op-table th {
  font-size: 13px;
  font-weight: 500;
  background: var(--surface);
  text-align: left;
}
.op-table td,
.op-table th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.op-table td {
  max-width: 320px;
  overflow-wrap: anywhere;
}
.op-table .num {
  text-align: right;
  white-space: nowrap;
}
.op-table a {
  color: var(--fg);
  font-weight: 500;
}
.op-table a:hover {
  color: var(--brand);
}
.op-id {
  display: block;
  font-size: 13px;
  color: var(--fg-muted);
  overflow-wrap: anywhere;
}
.op-pager {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}
.op-pager span {
  margin-right: auto;
}
.op-pager button {
  width: 36px;
  height: 36px;
  padding: 8px;
}
.op-record > a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}
.op-record-header {
  margin-bottom: 24px;
}
.operator .op-record-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  overflow-wrap: anywhere;
}
.op-record-kind {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.op-record-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--fg-muted);
}
.op-record-facts li {
  min-width: 0;
  overflow-wrap: anywhere;
}
.op-record > .op-record-section {
  border-top: 0;
  padding: 0;
  margin-top: 32px;
}
.operator .op-record > .op-record-section > h2,
.operator .op-record > .op-record-section > .op-heading > h2 {
  font-size: 15px;
  line-height: 24px;
  margin-bottom: 12px;
}
.op-record-section > a {
  overflow-wrap: anywhere;
}
.op-record .op-facts {
  margin: 12px 0;
  gap: 16px 24px;
}
.op-record .op-facts dd {
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
}
.op-record .op-facts .op-fact-detail {
  font-size: 13px;
  line-height: 20px;
  font-weight: 400;
  color: var(--fg-muted);
}
.op-record-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.op-record-actions button {
  min-height: 36px;
  max-width: 100%;
  font-size: 13px;
}
.op-record-actions button:disabled {
  border-style: dashed;
}
.op-record-actions p {
  flex-basis: 100%;
  margin: 0;
}
.op-audit-scopes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.op-audit-scopes a {
  padding: 8px 0;
  overflow-wrap: anywhere;
}
.op-audit-scopes a[aria-current="page"] {
  color: var(--fg);
  font-weight: 600;
  border-bottom: 2px solid currentColor;
  text-decoration: none;
}
.op-audit-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}
.op-audit-shortcuts {
  display: flex;
  flex-wrap: wrap;
  margin: 16px 0;
}
.op-audit-shortcuts a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
}
.op-audit-shortcuts a[aria-current="true"] {
  color: var(--fg);
  font-weight: 600;
}
.op-audit-grid > section {
  min-width: 0;
}
.op-event-table table {
  min-width: 720px;
}
.op-event-table time {
  white-space: nowrap;
}
.op-coverage ul {
  list-style: none;
  padding: 0;
}
.op-coverage li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  margin: 16px 0;
}
.op-coverage a {
  overflow-wrap: anywhere;
}
.op-coverage meter {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  background: var(--surface-raised);
  border: 0;
  border-radius: 0;
}
.op-coverage meter::-webkit-meter-bar {
  background: var(--surface-raised);
  border: 0;
  border-radius: 0;
}
.op-coverage meter::-webkit-meter-optimum-value {
  background: var(--brand);
}
.op-coverage meter::-moz-meter-bar {
  background: var(--brand);
}
.op-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 24px 0;
}
.op-facts dt {
  font-size: 13px;
  color: var(--fg-muted);
}
.op-facts dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.op-record-section {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.op-people-register {
  margin-top: 24px;
}
.op-people-register h2 {
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 4px;
}
.op-people-count {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 16px;
}
.op-people-register .op-controls label:first-child {
  flex: 0 1 320px;
}
.op-people-collapsed .op-pager a {
  display: none;
}
.op-pager .op-people-expand {
  width: auto;
  padding: 6px 12px;
  font-size: 13px;
}
.op-people-register .op-table,
.op-account-register .op-table,
.op-account-people .op-table,
.op-record [aria-label="Organisation activity"],
.op-person .op-table {
  max-height: 420px;
}
.op-people-register thead th,
.op-account-register thead th,
.op-account-people thead th,
.op-record [aria-label="Organisation activity"] thead th,
.op-person thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.op-person-organisations table {
  min-width: 760px;
}
.op-related-account table {
  min-width: 620px;
}
.op-record .op-heading h1 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.op-pager {
  flex-wrap: wrap;
}
.op-pager a.icon-button {
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--fg);
  width: 36px;
  height: 36px;
  padding: 8px;
}
.op-counts {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 24px;
}
.op-counts > div {
  display: grid;
  gap: 4px;
}
.op-compact .op-table td,
.op-compact .op-table th {
  padding-top: 8px;
  padding-bottom: 8px;
}
@media (max-width: 1279px) {
  .operator {
    padding: 24px;
  }
}
@media (max-width: 959px) {
  .operator {
    padding: 16px;
  }
  .op-grid,
  .op-facts,
  .op-audit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .op-metric h2 {
    min-height: 0;
  }
}
.op-access {
  padding: 40px 24px;
}
.op-access h1 {
  font-size: 24px;
}
.op-access p {
  max-width: 60ch;
}
.operator-dialog .form-field,
.operator-dialog .check-field,
.operator-dialog .dialog-error {
  font-size: 15px;
}
.op-loading-status {
  position: fixed;
  inset: auto 0 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 12px 24px;
  border-top: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
}
.op-loading-status a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.op-diagnostic-id {
  font-size: 18px;
  overflow-wrap: anywhere;
}
.op-diagnostic-report {
  max-height: 65vh;
  overflow: auto;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
}
