.proc-wrap {
  --proc-line: color-mix(in srgb, currentColor 19%, transparent);
  --proc-soft: color-mix(in srgb, currentColor 5%, transparent);
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.proc-wrap > *,
.proc-wrap fieldset,
.proc-wrap .panel {
  min-width: 0;
}
.proc-wrap h1,
.proc-wrap h2,
.proc-wrap h3,
.proc-wrap p {
  margin-block: 0 0.5rem;
}
.proc-wrap .page-head,
.proc-links,
.proc-queues,
.proc-actions,
.proc-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.proc-wrap .page-head > div:first-child {
  flex: 1 1 18rem;
}
.proc-links {
  gap: 0.3rem 1.3rem;
  border-bottom: 1px solid var(--proc-line);
}
.proc-links a {
  padding: 0.6rem 0.1rem;
  color: inherit;
  text-decoration: none;
  border-bottom: 3px solid transparent;
}
.proc-links a[aria-current='page'] {
  border-bottom-color: currentColor;
  font-weight: 650;
}
.proc-queues button[aria-pressed='true'] {
  box-shadow: inset 0 -3px 0 currentColor;
}
.proc-queues button span {
  margin-inline-start: 0.3rem;
  font-variant-numeric: tabular-nums;
}
.proc-filter {
  align-items: flex-end;
}
.proc-wrap label {
  display: grid;
  gap: 0.35rem;
}
.proc-wrap label:has(input[type='checkbox']) {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.proc-wrap input,
.proc-wrap textarea,
.proc-wrap select {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.proc-wrap textarea {
  min-height: 5rem;
}
.proc-form,
.proc-wrap .panel {
  display: grid;
  gap: 0.8rem;
}
.proc-form {
  max-width: 48rem;
}
.proc-form button[type='submit'] {
  justify-self: start;
}
.proc-form fieldset {
  display: grid;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem;
  border: 1px solid var(--proc-line);
}
.proc-form fieldset > button {
  justify-self: start;
}
.proc-form [data-lines],
.proc-form [data-new-fields] {
  display: grid;
  gap: 0.6rem;
}
.proc-wrap [hidden] {
  display: none !important;
}
.proc-allocation {
  display: grid;
  grid-template-columns: minmax(7rem, 1.2fr) minmax(6rem, 0.8fr) auto;
  align-items: end;
  gap: 0.6rem;
}
.proc-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(12rem, 100%), 1fr));
  gap: 1rem;
  margin: 0.25rem 0;
}
.proc-facts div {
  min-width: 0;
}
.proc-facts dt {
  font-size: 0.85rem;
  opacity: 0.76;
}
.proc-facts dd {
  margin: 0.2rem 0 0;
  overflow-wrap: anywhere;
}
.proc-wrap .table-wrap {
  width: 100%;
  overflow-x: auto;
}
.proc-wrap table {
  width: 100%;
  border-collapse: collapse;
}
.proc-wrap th,
.proc-wrap td {
  padding: 0.7rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--proc-line);
}
.proc-wrap th {
  background: var(--proc-soft);
}
.proc-wrap .empty {
  padding: 1.4rem;
  background: var(--proc-soft);
  border-radius: 0.5rem;
}
.proc-wrap li + li {
  margin-block-start: 0.65rem;
}
.proc-wrap [role='alert']:empty {
  display: none;
}
@media (max-width: 36rem) {
  .proc-allocation {
    grid-template-columns: 1fr;
  }
  .proc-filter label {
    width: 100%;
  }
  .proc-links,
  .proc-queues {
    gap: 0.35rem;
  }
  .proc-links a {
    padding-inline: 0.3rem;
  }
  .proc-form button,
  .proc-actions button,
  .proc-queues button {
    min-height: 44px;
  }
  .proc-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .proc-wrap table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .proc-wrap table,
  .proc-wrap table tbody,
  .proc-wrap table tr {
    display: block;
  }
  .proc-wrap table tr {
    padding: 0.5rem 0;
    border-top: 1px solid var(--proc-line);
  }
  .proc-wrap table td {
    display: grid;
    grid-template-columns: minmax(5rem, 34%) minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.3rem 0.15rem;
    border: 0;
  }
  .proc-wrap table td::before {
    content: attr(data-head);
    font-size: 0.85rem;
    color: var(--muted);
  }
  .proc-wrap table td:has(> span:empty) {
    display: none;
  }
}
