.reg-plate {
  display: inline-flex;
  align-items: stretch;
  vertical-align: middle;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid #151515;
  border-radius: 4px;
  background: #ffdc00;
  color: #080808;
  font:
    700 clamp(12px, 0.85em, 32px) / 1.2 Arial,
    sans-serif;
  letter-spacing: 0.045em;
  white-space: nowrap;
  text-transform: uppercase;
}
.reg-band {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: none;
  gap: 1px;
  width: 1.7em;
  padding: 0.12em 0.15em;
  background: #123e89;
  color: white;
  font:
    bold 0.6em/1 Arial,
    sans-serif;
  letter-spacing: 0;
}
.reg-flag {
  width: 1.25em;
  height: 0.65em;
  background: url("/static/shared/uk-flag.svg") center/contain no-repeat;
}
.reg-value {
  padding: 0.22em 0.42em;
  overflow: hidden;
  text-overflow: ellipsis;
}
.reg-plate input {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #ffdc00 !important;
  color: #080808 !important;
  font: inherit !important;
  letter-spacing: inherit;
  text-transform: uppercase;
  padding: 0.38em 0.5em !important;
}
.reg-plate:focus-within {
  outline: 3px solid #60baff;
  outline-offset: 2px;
}
.reg-plate:has(input) {
  width: min(100%, 23ch);
  font-size: 20px;
}
.mini-work .reg-plate {
  font-size: 10px;
}
.carfix-event .reg-plate {
  font-size: 11px;
}
.compact-table .reg-plate {
  font-size: 11px;
}
[data-row-link] {
  cursor: pointer;
}
[data-row-link]:focus-visible {
  outline: 2px solid #60baff;
  outline-offset: -2px;
}
[data-row-link]:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mini-work .reg-plate,
.carfix-event .reg-plate {
  display: inline-flex;
}
.mini-work .reg-band {
  display: flex;
}
