:root {
  --bg: #f4f7f9;
  --panel: #ffffff;
  --ink: #172026;
  --muted: #65747f;
  --line: #d9e1e7;
  --primary: #146c5c;
  --primary-2: #0f5145;
  --accent: #bf6b21;
  --danger: #b42318;
  --ok: #157f3b;
  --warn: #9a5b00;
  --shadow: 0 12px 30px rgba(18, 38, 63, 0.08);
}

body.theme-dark,
body.theme-auto {
  --bg: #11181d;
  --panel: #18232a;
  --ink: #edf3f6;
  --muted: #a9b8c2;
  --line: #31414b;
  --primary: #2ea889;
  --primary-2: #58c3a8;
  --accent: #d7893c;
  --danger: #df5c51;
  --ok: #63d18b;
  --warn: #f1ba62;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

@media (prefers-color-scheme: light) {
  body.theme-auto {
    --bg: #f4f7f9;
    --panel: #ffffff;
    --ink: #172026;
    --muted: #65747f;
    --line: #d9e1e7;
    --primary: #146c5c;
    --primary-2: #0f5145;
    --accent: #bf6b21;
    --danger: #b42318;
    --ok: #157f3b;
    --warn: #9a5b00;
    --shadow: 0 12px 30px rgba(18, 38, 63, 0.08);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(130deg, rgba(20, 108, 92, 0.16), rgba(191, 107, 33, 0.14)),
    var(--bg);
}

.public-page {
  min-height: 100vh;
  padding: 24px;
  background: var(--bg);
}

.public-card {
  width: min(980px, 100%);
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-box {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-mark {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.brand h1,
.brand h2 {
  margin: 0;
  font-size: 1.2rem;
}

.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px 1fr;
}

.sidebar {
  background: #102722;
  color: #eef7f4;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sidebar .brand-mark {
  background: #eff8f5;
  color: var(--primary-2);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav button,
.logout {
  min-height: 46px;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0 12px;
}

.nav button.active,
.nav button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.logout {
  margin-top: auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.signature {
  margin: 0;
  color: rgba(238, 247, 244, 0.46);
  font-size: 0.82rem;
  line-height: 1.3;
  text-align: center;
}

.content {
  padding: 24px;
  overflow: auto;
}

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

.topbar h2 {
  margin: 0;
  font-size: 1.45rem;
}

.topbar-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.unit-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.unit-switcher select {
  width: min(340px, 42vw);
  min-height: 38px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
}

.unit-name {
  color: var(--muted);
  font-size: 0.9rem;
}

.unit-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.unit-checks label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 7px;
  background: var(--bg);
  line-height: 1.25;
}

.unit-checks input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

.user-pill,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary), var(--panel) 84%);
  color: var(--primary-2);
  font-size: 0.84rem;
  font-weight: 700;
}

.grid {
  display: grid;
  gap: 16px;
}

.stats {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
}

.stat,
.panel,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.stat {
  padding: 16px 14px;
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 4px;
}

.stat span,
.muted {
  color: var(--muted);
}

.stat span {
  font-size: 0.88rem;
}

.panel {
  padding: 18px;
}

.panel h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title h3 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}

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

.field.full {
  grid-column: 1 / -1;
}

.compact-search {
  max-width: 340px;
  min-height: 36px;
}

.vehicle-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 160px auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.vehicle-form-row .btn {
  margin-bottom: 6px;
}

label {
  font-weight: 700;
  font-size: 0.88rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 10px 12px;
  background: var(--panel);
  color: var(--ink);
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(20, 108, 92, 0.18);
  border-color: var(--primary);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  max-width: 230px;
}

.btn {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.btn.table-btn {
  min-height: 32px;
  border-radius: 7px;
  padding: 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.btn.table-btn.wide {
  min-width: 118px;
}

.btn:hover {
  background: var(--primary-2);
}

.btn.secondary {
  background: #e8eef1;
  color: var(--ink);
}

.btn.warning {
  background: var(--accent);
}

.btn.danger {
  background: var(--danger);
}

.camera-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(220px, 320px);
  gap: 16px;
}

.vehicle-panel {
  box-shadow: none;
}

.file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

video,
.photo-preview {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  background: #d8e1e6;
  border: 1px solid var(--line);
}

.photo-preview {
  display: grid;
  place-items: center;
  color: var(--muted);
  overflow: hidden;
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.table-wrap {
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

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

th {
  background: color-mix(in srgb, var(--panel), var(--line) 45%);
  color: var(--ink);
  font-size: 0.84rem;
  text-transform: uppercase;
}

tr.inside {
  background: color-mix(in srgb, var(--ok), var(--panel) 86%);
}

.thumb {
  width: 58px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.data-table-wrap {
  overflow-x: hidden;
}

.data-table {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.78rem;
}

.data-table th,
.data-table td {
  padding: 7px 6px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.data-table th {
  font-size: 0.7rem;
}

.data-table .thumb {
  width: 42px;
  height: 34px;
}

.data-table .badge {
  min-height: 24px;
  max-width: 100%;
  padding: 3px 6px;
  font-size: 0.7rem;
}

.data-table .btn {
  min-height: 30px;
  padding: 0 7px;
  font-size: 0.72rem;
}

.vehicle-table th:first-child,
.vehicle-table td:first-child {
  width: 12%;
}

.vehicle-table th:nth-child(2),
.vehicle-table td:nth-child(2),
.vehicle-table th:nth-child(3),
.vehicle-table td:nth-child(3),
.vehicle-table th:last-child,
.vehicle-table td:last-child {
  width: 14%;
}

.vehicle-table th:nth-child(4),
.vehicle-table td:nth-child(4) {
  width: 24%;
}

.vehicle-table th:nth-child(5),
.vehicle-table td:nth-child(5) {
  width: 22%;
}

.users-table th:last-child,
.users-table td:last-child {
  width: 30%;
}

.history-table th:first-child,
.history-table td:first-child {
  width: 18%;
}

.history-table th:nth-child(2),
.history-table td:nth-child(2),
.history-table th:last-child,
.history-table td:last-child {
  width: 12%;
}

.history-table th:nth-child(3),
.history-table td:nth-child(3) {
  width: 20%;
}

.authorizations-table th:first-child,
.authorizations-table td:first-child {
  width: 6%;
}

.authorizations-table th:nth-child(2),
.authorizations-table td:nth-child(2),
.authorizations-table th:nth-child(8),
.authorizations-table td:nth-child(8) {
  width: 8%;
}

.authorizations-table th:nth-child(3),
.authorizations-table td:nth-child(3),
.authorizations-table th:nth-child(4),
.authorizations-table td:nth-child(4),
.authorizations-table th:nth-child(5),
.authorizations-table td:nth-child(5) {
  width: 11%;
}

.authorizations-table th:nth-child(6),
.authorizations-table td:nth-child(6) {
  width: 14%;
}

.authorizations-table th:nth-child(7),
.authorizations-table td:nth-child(7) {
  width: 13%;
}

.authorizations-table th:last-child,
.authorizations-table td:last-child {
  width: 18%;
}

.authorizations-table .table-actions {
  max-width: none;
  gap: 4px;
}

.records-table th:nth-child(-n + 3),
.records-table td:nth-child(-n + 3) {
  width: 6%;
}

.records-table th:nth-child(4),
.records-table td:nth-child(4),
.records-table th:nth-child(5),
.records-table td:nth-child(5) {
  width: 8%;
}

.records-table th:nth-child(6),
.records-table td:nth-child(6) {
  width: 5%;
}

.records-table th:nth-child(7),
.records-table td:nth-child(7) {
  width: 9%;
}

.records-table th:nth-child(8),
.records-table td:nth-child(8),
.records-table th:nth-child(9),
.records-table td:nth-child(9) {
  width: 10%;
}

.records-table th:nth-child(10),
.records-table td:nth-child(10) {
  width: 7%;
}

.records-table th:nth-child(11),
.records-table td:nth-child(11) {
  width: 8%;
}

.records-table th:nth-child(12),
.records-table td:nth-child(12) {
  width: 9%;
}

.consulta-panel {
  padding: 14px 16px;
}

.consulta-panel h3 {
  margin-bottom: 10px;
}

.consulta-filters {
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 8px 12px;
}

.consulta-filters .field {
  gap: 3px;
}

.consulta-filters label {
  font-size: 0.78rem;
}

.consulta-filters input,
.consulta-filters select {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.86rem;
}

.consulta-actions {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.consulta-actions .btn {
  min-height: 36px;
  padding: 0 13px;
  font-size: 0.86rem;
}

#consultaTable {
  margin-top: 10px !important;
}

#consultaTable .table-wrap {
  overflow-x: hidden;
}

#consultaTable table {
  min-width: 0;
  table-layout: fixed;
  font-size: 0.75rem;
}

#consultaTable th,
#consultaTable td {
  padding: 7px 5px;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

#consultaTable th {
  font-size: 0.68rem;
}

#consultaTable .thumb {
  width: 40px;
  height: 32px;
}

#consultaTable th:nth-child(-n + 3),
#consultaTable td:nth-child(-n + 3) {
  width: 6%;
}

#consultaTable th:nth-child(4),
#consultaTable td:nth-child(4),
#consultaTable th:nth-child(5),
#consultaTable td:nth-child(5) {
  width: 8%;
}

#consultaTable th:nth-child(6),
#consultaTable td:nth-child(6) {
  width: 5%;
}

#consultaTable th:nth-child(7),
#consultaTable td:nth-child(7) {
  width: 9%;
}

#consultaTable th:nth-child(8),
#consultaTable td:nth-child(8),
#consultaTable th:nth-child(9),
#consultaTable td:nth-child(9) {
  width: 10%;
}

#consultaTable th:nth-child(10),
#consultaTable td:nth-child(10) {
  width: 7%;
}

#consultaTable th:nth-child(11),
#consultaTable td:nth-child(11) {
  width: 8%;
}

#consultaTable th:nth-child(12),
#consultaTable td:nth-child(12) {
  width: 9%;
}

#consultaTable .badge {
  min-height: 24px;
  max-width: 100%;
  padding: 3px 6px;
  font-size: 0.7rem;
  overflow-wrap: normal;
}

#consultaTable .btn {
  width: 100%;
  min-height: 30px;
  padding: 0 6px;
  font-size: 0.72rem;
}

.status-dentro,
.status-ativa,
.status-rascunho,
.status-link_gerado,
.status-link_copiado,
.status-aguardando_preenchimento,
.status-pre_cadastro_preenchido,
.status-aguardando_validacao_portaria {
  background: color-mix(in srgb, var(--ok), var(--panel) 82%);
  color: var(--ok);
}

.status-finalizado,
.status-utilizada {
  background: color-mix(in srgb, var(--panel), var(--line) 55%);
  color: var(--muted);
}

.status-cancelada,
.status-expirada {
  background: color-mix(in srgb, var(--danger), var(--panel) 84%);
  color: var(--danger);
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--warn), var(--panel) 82%);
  color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn), var(--line) 55%);
}

.privacy-box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel), var(--line) 18%);
}

.company-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel), var(--line) 18%);
}

.company-preview img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.company-preview strong,
.company-preview span {
  display: block;
}

#printReportHeader {
  display: none;
}

.print-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 0 0 12px;
  border-bottom: 2px solid #172026;
}

.print-logo-box {
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  color: var(--primary);
  font-weight: 800;
}

.print-logo-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.print-brand strong {
  display: block;
  color: #172026;
  font-size: 18px;
  line-height: 1.15;
}

.print-brand span {
  display: block;
  color: #52616b;
  font-size: 11px;
  margin-top: 3px;
}

.print-brand small {
  display: block;
  color: #52616b;
  font-size: 10px;
  margin-top: 6px;
}

.print-date {
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.privacy-box h3 {
  margin: 0 0 10px;
}

.privacy-box p {
  line-height: 1.55;
}

.lgpd-term-text {
  white-space: pre-line;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
}

.check-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(420px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: 8px;
  background: #132c26;
  color: #fff;
  box-shadow: var(--shadow);
  z-index: 10;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 23, 30, 0.55);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 9;
}

.modal {
  width: min(820px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--panel);
  border-radius: 8px;
  padding: 20px;
}

.details {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
}

.details img {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.vehicle-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.vehicle-compare img,
.vehicle-compare video {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #d8e1e6;
}

.large-preview {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 8px;
}

#receiptPrintArea {
  display: none;
}

.receipt-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid #172026;
}

.receipt-header strong,
.receipt-header span,
.receipt-header small {
  display: block;
}

.receipt-header strong {
  font-size: 18px;
}

.receipt-visitor {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
}

.receipt-visitor img {
  width: 150px;
  height: 115px;
  object-fit: cover;
  border: 1px solid #cfd8df;
  border-radius: 6px;
}

.receipt-wide-img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid #cfd8df;
  border-radius: 6px;
}

.receipt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 18px;
}

.receipt-placeholder {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  color: #65747f;
}

@media (max-width: 920px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    padding: 12px;
  }

  .sidebar .brand {
    margin-bottom: 0;
  }

  .nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .logout {
    margin-top: 0;
  }

  .signature {
    margin: 0;
    font-size: 0.74rem;
  }

  .stats,
  .form-grid,
  .camera-grid,
  .vehicle-form-row,
  .vehicle-compare,
  .details {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .content {
    padding: 16px;
  }

  .consulta-filters {
    grid-template-columns: repeat(2, minmax(150px, 1fr));
  }

  #consultaTable .table-wrap {
    overflow-x: auto;
  }

  #consultaTable table {
    min-width: 900px;
  }

  .data-table-wrap {
    overflow-x: auto;
  }

  .data-table {
    min-width: 860px;
  }
}

@media (max-width: 560px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    grid-template-columns: 1fr 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .btn {
    width: 100%;
  }

  .btn.table-btn {
    width: auto;
  }
}

@media print {
  @page records-report {
    size: A4 landscape;
    margin: 8mm;
  }

  @page {
    size: A4 portrait;
    margin: 10mm;
  }

  body.print-receipt-only > :not(#receiptPrintArea) {
    display: none !important;
  }

  body.print-receipt-only {
    background: #fff;
  }

  body.print-receipt-only #receiptPrintArea {
    display: block;
    color: #172026;
    font-size: 11px;
  }

  body.print-receipt-only #receiptPrintArea h2 {
    margin: 16px 0 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid #cfd8df;
    font-size: 13px;
    letter-spacing: 0;
  }

  body.print-records-only {
    background: #fff;
  }

  body.print-records-only .sidebar,
  body.print-records-only .topbar,
  body.print-records-only .content > .panel,
  body.print-records-only .toast,
  body.print-records-only .modal-backdrop {
    display: none !important;
  }

  body.print-records-only .app-shell {
    display: block;
    min-height: auto;
  }

  body.print-records-only .content {
    padding: 0;
    overflow: visible;
  }

  body.print-records-only #consultaTable {
    margin-top: 0 !important;
    width: 100%;
    page: records-report;
  }

  body.print-records-only #printReportHeader {
    display: block;
  }

  body.print-records-only .print-brand {
    break-inside: avoid;
  }

  body.print-records-only .table-wrap {
    border: 0;
    box-shadow: none;
    overflow: visible;
    width: 100%;
  }

  body.print-records-only table {
    width: 100% !important;
    min-width: 0;
    table-layout: fixed;
    font-size: 7px;
  }

  body.print-records-only th,
  body.print-records-only td {
    padding: 3px 2px;
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  body.print-records-only .thumb {
    width: 34px;
    height: 28px;
    object-fit: cover;
  }

  body.print-records-only .badge {
    min-height: 18px;
    padding: 2px 3px;
    font-size: 6.5px;
  }

  body.print-records-only th:nth-child(-n + 3),
  body.print-records-only td:nth-child(-n + 3) {
    width: 5%;
  }

  body.print-records-only th:nth-child(4),
  body.print-records-only td:nth-child(4),
  body.print-records-only th:nth-child(5),
  body.print-records-only td:nth-child(5) {
    width: 8%;
  }

  body.print-records-only th:nth-child(6),
  body.print-records-only td:nth-child(6) {
    width: 5%;
  }

  body.print-records-only th:nth-child(7),
  body.print-records-only td:nth-child(7),
  body.print-records-only th:nth-child(8),
  body.print-records-only td:nth-child(8) {
    width: 11%;
  }

  body.print-records-only th:nth-child(9),
  body.print-records-only td:nth-child(9) {
    width: 14%;
  }

  body.print-records-only th:nth-child(10),
  body.print-records-only td:nth-child(10) {
    width: 10%;
  }

  body.print-records-only th:nth-child(11),
  body.print-records-only td:nth-child(11) {
    width: 18%;
  }

  body.print-records-only img {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  body.print-records-only th:last-child,
  body.print-records-only td:last-child {
    display: none;
  }

  body.print-records-only tr {
    break-inside: avoid;
  }
}
