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

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.admin-users-table {
  min-width: 1540px;
}

.admin-users-table th,
.admin-users-table td {
  padding-left: 6px;
  padding-right: 6px;
}

.admin-users-table .row-actions {
  min-width: 330px;
}

tbody tr:nth-child(odd) {
  background: #f1f7ff;
}

tbody tr:nth-child(even) {
  background: #ffffff;
}

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

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.tag {
  display: inline-block;
  min-width: 68px;
  padding: 3px 7px;
  border-radius: 6px;
  text-align: center;
  color: #fff;
}

.tag.entrada { background: var(--green); }
.tag.salida { background: var(--amber); }

.map-button {
  display: inline-block;
  margin-left: 8px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.report-document {
  color: #111827;
}

.report-header {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.4fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.report-company {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.report-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.report-meta div {
  display: grid;
  gap: 2px;
}

.report-meta dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.report-meta dd {
  margin: 0;
}

.report-table {
  min-width: 1080px;
}

.report-table th,
.report-table td {
  padding: 10px 9px;
}

.report-table .has-incident td {
  background: #fff7ed;
}

.numeric {
  text-align: right;
  white-space: nowrap;
}

.report-totals {
  margin-top: 18px;
}

.totals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.totals-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.totals-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.totals-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.report-totals-table {
  min-width: 760px;
}

.report-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.close-report-form {
  margin-top: 10px;
}

.report-closure {
  margin-bottom: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.report-closure h2 {
  margin-bottom: 10px;
}

.hash-value {
  overflow-wrap: anywhere;
  font-family: Consolas, monospace;
  font-size: 12px;
}

@media print {
  .topbar, .no-print, .messages { display: none; }

  body { background: #fff; }

  .page {
    max-width: none;
    padding: 0;
  }

  .panel {
    border: 0;
    padding: 0;
  }

  .print-panel {
    margin: 0;
  }

  .report-header {
    grid-template-columns: 1fr;
    gap: 8px;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
  }

  .report-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-meta dt,
  th,
  .totals-grid span,
  .report-footer {
    color: #000;
  }

  .table-wrap {
    overflow: visible;
  }

  .report-table,
  .report-totals-table {
    min-width: 0;
    font-size: 10.5px;
  }

  table,
  th,
  td {
    border-color: #000;
  }

  tbody tr:nth-child(odd),
  tbody tr:nth-child(even),
  .report-table .has-incident td {
    background: #fff;
  }

  th,
  td {
    padding: 5px 4px;
  }

  .totals-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .totals-grid div {
    border-color: #000;
    padding: 7px;
  }

  .totals-grid strong {
    font-size: 16px;
  }

  .report-closure {
    border-color: #000;
    background: #fff;
    padding: 8px 0;
  }
}
