:root {
  color-scheme: light;
  --brand: #12354a;
  --brand-ink: #0b2433;
  --brand-soft: #e9f0f5;
  --accent: #e8a317;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --subtle: #f9fafb;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #667085;
  --line: #e4e7ec;
  --line-strong: #d0d5dd;
  --select: #eef4fb;
  --ok: #067647;
  --ok-soft: #ecfdf3;
  --warn: #b54708;
  --bad: #b42318;
  --bad-soft: #fef3f2;
  --info: #175cd3;
  --info-soft: #eff8ff;
  --radius: 8px;
  --sidebar: 236px;
  --tabbar: 58px;

  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
p {
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

a {
  color: var(--info);
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--info);
  outline-offset: 2px;
}

/* Page headings take focus on navigation only so screen readers announce them. */
[tabindex="-1"]:focus {
  outline: none;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #fff;
  background: var(--brand-ink);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.network-status {
  display: none;
}

body.offline .network-status {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  color: #fff;
  background: var(--bad);
  font-size: 12.5px;
}

.network-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.progress {
  position: fixed;
  z-index: 40;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  overflow: hidden;
}

.progress span {
  display: block;
  width: 40%;
  height: 100%;
  background: var(--accent);
  animation: progress 1s ease-in-out infinite;
}

@keyframes progress {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(250%);
  }
}

/* Shell. Phones get a top bar and the main navigation as tabs at the bottom. */
.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 max(8px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 7px;
}

.brand span {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}

.brand strong,
.brand small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand strong {
  font-size: 14px;
  font-weight: 600;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.account {
  display: flex;
  align-items: center;
}

.account-name {
  display: none;
}

.primary-nav {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  height: calc(var(--tabbar) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.primary-nav a {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-decoration: none;
}

.primary-nav .icon {
  width: 22px;
  height: 22px;
}

.primary-nav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 600;
}

/* Phones reach QC from Home and right after a save, so it has no tab of its own. */
.primary-nav .nav-checks {
  display: none;
}

@media (max-width: 359.98px) {
  .primary-nav a {
    font-size: 10px;
  }
}

main {
  padding: 16px max(16px, env(safe-area-inset-right)) calc(var(--tabbar) + 96px) max(16px, env(safe-area-inset-left));
}

main:focus {
  outline: none;
}

/* Page furniture */
.page-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.page-head h1 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.page-sub {
  margin-top: 2px;
  color: var(--muted);
  font-size: 13.5px;
}

.eyebrow {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.back-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover {
  color: var(--ink);
}

.back-link .icon {
  width: 16px;
  height: 16px;
}

.notice {
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #b2ccff;
  border-radius: var(--radius);
  color: #1849a9;
  background: var(--info-soft);
  font-size: 13.5px;
}

.notice.success {
  border-color: #abefc6;
  color: var(--ok);
  background: var(--ok-soft);
}

.notice.error {
  border-color: #fecdca;
  color: var(--bad);
  background: var(--bad-soft);
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

/* Each cell draws its top and left rule; the frame clips the outer ones. */
.stat {
  display: grid;
  gap: 2px;
  align-content: start;
  margin: -1px 0 0 -1px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

a.stat:hover {
  background: var(--subtle);
}

.stat-label,
.stat-note {
  color: var(--muted);
  font-size: 12.5px;
}

.stat-value {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.split {
  display: grid;
  gap: 16px;
  align-items: start;
}

.split .panel {
  margin-bottom: 0;
}

.panel {
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 14.5px;
  font-weight: 600;
}

.panel-meta {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 12.5px;
}

.panel-link {
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}

.panel-note {
  padding: 10px 16px;
  border-bottom: 1px solid #fedf89;
  color: var(--warn);
  background: #fffaeb;
  font-size: 13px;
}

.search-field {
  flex: 1 1 14rem;
  max-width: 20rem;
}

.empty {
  padding: 28px 16px;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

/* Controls */
.button {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.button-primary {
  color: #fff;
  background: var(--brand);
}

.button-primary:hover:not(:disabled) {
  background: var(--brand-ink);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink-2);
  background: var(--surface);
}

.button-secondary:hover:not(:disabled),
.button-quiet:hover:not(:disabled) {
  background: var(--subtle);
}

.button-danger {
  color: #fff;
  background: var(--bad);
}

.button-quiet {
  color: var(--ink-2);
  background: transparent;
}

.button-link {
  min-height: 36px;
  padding: 0;
  color: var(--info);
  background: transparent;
}

.button-small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.button-block {
  width: 100%;
}

input:not([type="checkbox"], [type="radio"]),
select {
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
}

input:not([type="checkbox"], [type="radio"]):focus,
select:focus {
  border-color: var(--info);
  outline: 2px solid rgba(23, 92, 211, 0.18);
  outline-offset: 0;
}

input[type="checkbox"],
input[type="radio"] {
  width: 20px;
  height: 20px;
  margin: 0;
  vertical-align: middle;
  accent-color: var(--brand);
}

.check-label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.inline-field {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.segmented {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

.segmented label {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.segmented label:first-child {
  border-left: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented label:hover {
  background: var(--subtle);
}

.segmented label:has(input:checked) {
  color: #fff;
  background: var(--brand);
}

.segmented label:has(input:focus-visible) {
  outline: 2px solid var(--info);
  outline-offset: -2px;
}

.segmented.results label:has(input[value="Approved"]:checked) {
  background: var(--ok);
}

.segmented.results label:has(input[value="Hold"]:checked) {
  background: var(--warn);
}

.segmented.results label:has(input[value="Reject"]:checked) {
  background: var(--bad);
}

.action-bar {
  position: sticky;
  z-index: 10;
  bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 8px);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.1);
}

.action-summary {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}

/* Status text: a dot and a word, coloured by meaning. */
.status {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status.ok {
  color: var(--ok);
}

.status.warn {
  color: var(--warn);
}

.status.bad {
  color: var(--bad);
}

.meter {
  width: 88px;
  height: 6px;
  overflow: hidden;
  border: 0;
  border-radius: 3px;
  background: var(--line);
  vertical-align: middle;
  appearance: none;
}

.meter::-webkit-progress-bar {
  border-radius: 3px;
  background: var(--line);
}

.meter::-webkit-progress-value {
  border-radius: 3px;
  background: var(--brand);
}

.meter::-moz-progress-bar {
  border-radius: 3px;
  background: var(--brand);
}

.progress-cell {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.file-link {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.file-link .icon {
  width: 15px;
  height: 15px;
}

.route {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

/* Tables: real tables on a desk, divided list rows on a phone (see the phone rules below). */
.table-scroll {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table thead th {
  color: var(--muted);
  background: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: var(--subtle);
}

.data-table tbody tr:has(input[data-line]:checked) {
  background: var(--select);
}

.data-table tfoot td {
  border-top: 1px solid var(--line-strong);
  border-bottom: 0;
  background: var(--subtle);
  font-weight: 600;
}

.data-table .group-row th {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  background: #f2f4f7;
  font-size: 12.5px;
  font-weight: 600;
}

.group-meta {
  margin-left: 10px;
  color: var(--muted);
  font-weight: 400;
}

.data-table .num {
  text-align: right;
  white-space: nowrap;
}

.data-table .col-check {
  width: 1%;
  padding-right: 4px;
}

.data-table .strong,
.data-table a.strong {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}

.data-table a.strong:hover {
  color: var(--info);
  text-decoration: underline;
}

.data-table .muted {
  color: var(--muted);
}

.data-table .nowrap {
  white-space: nowrap;
}

.data-table tr[data-href] {
  cursor: pointer;
}

.data-table tr.is-blocked > * {
  color: var(--muted);
}

.remarks {
  min-width: 12rem;
}

/* Sign-in and state screens */
.login-view {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
}

.login-card,
.state-card {
  width: min(100%, 400px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.login-brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.login-brand img {
  border-radius: 9px;
}

.login-card h1,
.state-card h1 {
  font-size: 22px;
  font-weight: 600;
}

.lead {
  margin: 6px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.login-card form {
  display: grid;
  gap: 14px;
}

.phone-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 500;
}

.state-card {
  margin: 40px auto;
  text-align: center;
}

.state-card p {
  margin: 8px 0 18px;
  color: var(--muted);
}

.dialog {
  width: min(92vw, 420px);
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.18);
}

.dialog::backdrop {
  background: rgba(16, 24, 40, 0.45);
}

.dialog h2 {
  font-size: 16px;
  font-weight: 600;
}

.dialog p {
  margin: 8px 0 20px;
  color: var(--muted);
  font-size: 14px;
}

.dialog-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* Phones, tablets and narrow windows */
@media (max-width: 1099.98px) {
  .only-d,
  .hide-m {
    display: none !important;
  }

  .page-head > .button {
    width: 100%;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
  }

  .segmented {
    display: flex;
    width: 100%;
  }

  .segmented label {
    flex: 1 0 auto;
  }

  .inline-field {
    justify-content: space-between;
  }

  .inline-field select {
    flex: 1;
    width: auto;
    min-width: 0;
  }

  .action-bar .button {
    flex: 0 0 auto;
  }

  .search-field {
    max-width: none;
  }

  /* Rows become list items: title and details on the left, quantities on the right. */
  .data-table,
  .data-table tbody,
  .data-table tfoot {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    display: grid;
    grid-template-areas:
      "title end"
      "sub end2"
      "extra extra"
      "extra2 extra2";
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    align-items: baseline;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
  }

  .data-table.has-lead tr {
    grid-template-areas:
      "lead title end"
      "lead sub end2"
      "lead extra extra";
    grid-template-columns: 24px minmax(0, 1fr) auto;
  }

  .data-table tbody tr:last-child {
    border-bottom: 0;
  }

  .data-table tr > * {
    display: none;
    padding: 0;
    border: 0;
  }

  .data-table .m-lead {
    display: block;
    grid-area: lead;
    align-self: center;
  }

  .data-table .m-title {
    display: block;
    grid-area: title;
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
  }

  .data-table .m-sub {
    display: block;
    grid-area: sub;
    color: var(--muted);
    font-size: 13px;
  }

  .data-table .m-end {
    display: block;
    grid-area: end;
    font-size: 14px;
    font-weight: 600;
    text-align: right;
  }

  .data-table .m-end2 {
    display: block;
    grid-area: end2;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    text-align: right;
  }

  .data-table .m-extra {
    display: block;
    grid-area: extra;
    margin-top: 10px;
  }

  .data-table .m-extra2 {
    display: block;
    grid-area: extra2;
    margin-top: 8px;
  }

  .data-table [data-unit]::after {
    content: " " attr(data-unit);
  }

  .data-table tr.group-row {
    display: block;
    padding: 10px 16px;
    background: #f2f4f7;
  }

  .data-table tr.group-row > th {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    align-items: center;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13px;
  }

  .group-meta {
    margin-left: 0;
  }

  .data-table tfoot tr {
    border-top: 1px solid var(--line-strong);
    background: var(--subtle);
  }

  .data-table tfoot td {
    border-top: 0;
  }

  .data-table tfoot .m-title {
    font-size: 13px;
  }

  .data-table tr[data-href] {
    position: relative;
    padding-right: 40px;
  }

  .data-table tr[data-href]::after {
    position: absolute;
    top: 50%;
    right: 18px;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--line-strong);
    border-right: 2px solid var(--line-strong);
    content: "";
    transform: translateY(-50%) rotate(45deg);
  }

  .segmented.results label {
    flex: 1 1 0;
  }
}

/* Desk: a sidebar, wider tables and smaller controls for a mouse. */
@media (min-width: 1100px) {
  body {
    font-size: 14px;
  }

  .only-m {
    display: none !important;
  }

  .app-header {
    position: fixed;
    inset: 0 auto 0 0;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    width: var(--sidebar);
    height: auto;
    padding: 16px 12px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .brand {
    margin-bottom: 12px;
    padding: 2px 8px 16px;
    border-bottom: 1px solid var(--line);
  }

  .brand strong,
  .brand small {
    white-space: normal;
  }

  .primary-nav {
    position: static;
    flex-direction: column;
    gap: 2px;
    height: auto;
    padding: 0;
    border: 0;
    background: none;
  }

  .primary-nav a,
  .primary-nav .nav-checks {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 10px;
    justify-content: flex-start;
    padding: 8px 10px;
    border-radius: 6px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
  }

  .primary-nav .icon {
    width: 18px;
    height: 18px;
    color: var(--muted);
  }

  .primary-nav a:hover {
    background: var(--subtle);
  }

  .primary-nav a[aria-current="page"] {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
  }

  .primary-nav a[aria-current="page"] .icon {
    color: var(--brand);
  }

  .account {
    flex-direction: column;
    gap: 6px;
    align-items: stretch;
    margin-top: auto;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
  }

  .account-name {
    display: grid;
    padding: 0 10px;
    line-height: 1.3;
  }

  .account-name strong {
    overflow: hidden;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .account-name small {
    color: var(--muted);
    font-size: 12px;
  }

  .account .button {
    justify-content: flex-start;
    min-height: 36px;
    padding: 0 10px;
    font-size: 13.5px;
    font-weight: 500;
  }

  .app-header:not([hidden]) ~ main {
    margin-left: var(--sidebar);
  }

  main {
    padding: 24px 32px 48px;
  }

  main > * {
    max-width: 1360px;
    margin-right: auto;
    margin-left: auto;
  }

  .page-head {
    margin-bottom: 20px;
  }

  .page-head h1 {
    font-size: 21px;
  }

  .stats {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .stat {
    padding: 14px 18px;
  }

  .stat-value {
    font-size: 20px;
  }

  .button {
    min-height: 36px;
    padding: 0 14px;
    font-size: 13.5px;
  }

  .button-small {
    min-height: 30px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  input:not([type="checkbox"], [type="radio"]),
  select {
    min-height: 36px;
    font-size: 14px;
  }

  .inline-field select {
    width: auto;
    min-width: 13rem;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    padding-left: 16px;
  }

  .data-table th:last-child,
  .data-table td:last-child {
    padding-right: 16px;
  }

  .data-table input:not([type="checkbox"], [type="radio"]) {
    min-height: 30px;
    font-size: 13px;
  }

  input[type="checkbox"],
  input[type="radio"] {
    width: 16px;
    height: 16px;
  }

  .segmented label {
    min-height: 34px;
    font-size: 13px;
  }

  .segmented.small label {
    min-height: 28px;
    padding: 0 10px;
    font-size: 12.5px;
  }

  .action-bar {
    bottom: 16px;
  }

  .login-view {
    min-height: calc(100vh - 96px);
  }
}

/* Narrow desk windows drop secondary columns rather than scroll sideways. */
@media (min-width: 1100px) and (max-width: 1279.98px) {
  .data-table .col-wide {
    display: none;
  }
}

/* Small laptops: tighter cells so the wide tables still fit beside the sidebar. */
@media (min-width: 1100px) and (max-width: 1365.98px) {
  .data-table th,
  .data-table td {
    padding-right: 8px;
    padding-left: 8px;
  }

  .remarks {
    min-width: 9rem;
  }
}

@media (min-width: 1200px) {
  .split {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .data-table th,
  .data-table td {
    padding-top: 9px;
    padding-bottom: 9px;
  }
}
