.ticket-history {
  display: grid;
  gap: 10px;
  padding: 0 var(--inset) 16px;
}
.ticket-entry {
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.ticket-entry > summary {
  color: var(--ink);
  padding: 4px 0;
  overflow-wrap: anywhere;
}
.ticket-rig {
  margin-inline-start: 9px;
  color: var(--muted);
  font-weight: 460;
}
.ticket-entry > .small { margin-top: 4px; }
.ticket-table {
  border-collapse: collapse;
  width: 100%;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
}
.ticket-table caption {
  text-align: left;
  color: var(--muted);
  font-size: .8rem;
  padding: 8px 0;
}
.ticket-table th, .ticket-table td { padding: 7px 4px; }
.ticket-table thead th {
  color: var(--muted);
  font-size: .77rem;
  font-weight: 550;
  border-bottom: 1px solid var(--line);
}
.ticket-table tbody th { font-weight: 540; }
.ticket-table tr > :first-child { text-align: left; padding-left: 0; }
.ticket-table tr > :last-child { padding-right: 0; }
.ticket-table tbody tr:last-child {
  border-top: 1px solid var(--line);
  font-weight: 620;
}
.ticket-layout {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 8px;
}
.ticket-layout p, .ticket-layout ul {
  overflow-wrap: anywhere;
  margin: 7px 0 0;
  line-height: 1.5;
}
.ticket-layout ul { padding-inline-start: 1.3em; }
.ticket-form-rig { font-size: .9rem; overflow-wrap: anywhere; }
.ticket-weights { min-width: 0; overflow-x: auto; }
.loaded-ticket-form .ticket-table caption { padding-top: 0; }
.loaded-ticket-form .ticket-table input {
  box-sizing: border-box;
  width: 100%;
  min-width: 62px;
  max-width: 108px;
  min-height: 37px;
  border: 1px solid #bcc7cb;
  border-radius: 3px;
  padding: 6px;
  text-align: right;
  font-size: 1rem;
}
.ticket-error {
  color: var(--over);
  font-size: .88rem;
}
@media (max-width: 420px) {
  #loaded-tickets .card-head { flex-wrap: wrap; gap: 2px 9px; }
  .ticket-table { font-size: .82rem; }
  .ticket-table th, .ticket-table td { padding-inline: 3px; }
  .ticket-table thead th { font-size: .73rem; }
  .loaded-ticket-form .dialog-body { padding-inline: 13px; }
}
