:root {
  color-scheme: light;
  font-family:
    "Amazon Ember", "Amazon Ember Display", Inter, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7f8;
  color: #172026;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.report-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 0 20px;
}

.print-logo {
  display: none;
}

h1 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.version-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid #c9d2d8;
  border-radius: 6px;
  padding: 0 8px;
  background: #ffffff;
  color: #5c6870;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

p {
  margin: 6px 0 0;
  color: #5c6870;
}

.date-control {
  display: grid;
  gap: 6px;
  min-width: 190px;
  color: #3f4a51;
  font-size: 0.9rem;
  font-weight: 650;
}

.date-control input {
  min-height: 42px;
  border: 1px solid #c9d2d8;
  border-radius: 6px;
  padding: 0 12px;
  background: #ffffff;
  color: #172026;
}

.date-control input:disabled {
  background: #edf2f4;
  color: #5c6870;
}

.report-surface {
  background: #ffffff;
  border: 1px solid #d9e0e4;
  border-radius: 8px;
  overflow: hidden;
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e2e7ea;
  padding: 14px 16px;
}

.table-header strong {
  font-size: 1rem;
}

.report-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-header button,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid #b9c5cc;
  border-radius: 6px;
  padding: 0 14px;
  background: #ffffff;
  color: #172026;
  cursor: pointer;
  text-decoration: none;
}

.table-header button:hover,
.button-link:hover {
  background: #edf2f4;
}

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

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf0f2;
  text-align: left;
  white-space: nowrap;
}

th {
  background: #f8fafb;
  color: #39464e;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

td:nth-child(2),
td:nth-child(3) {
  font-variant-numeric: tabular-nums;
}

tr:last-child td {
  border-bottom: 0;
}

.empty-state {
  margin: 0;
  padding: 28px 16px;
  border-top: 1px solid #edf0f2;
  color: #5c6870;
}

@media (max-width: 680px) {
  .app-shell {
    width: min(100% - 20px, 1120px);
    padding: 20px 0;
  }

  .report-toolbar {
    display: grid;
    gap: 18px;
  }

  .date-control {
    width: 100%;
  }

  h1 {
    font-size: 1.45rem;
  }

  th,
  td {
    padding: 12px;
  }
}

@media print {
  body {
    background: #ffffff;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .report-toolbar {
    align-items: start;
  }

  .print-logo {
    display: block;
    width: auto;
    max-width: 180px;
    max-height: 56px;
    margin: 0 0 16px;
  }

  .date-control,
  .report-actions {
    display: none;
  }

  .report-surface {
    border: 0;
  }
}
