:root {
  --bg: #0b0d10;
  --surface: #161a1f;
  --surface-2: #1e242c;
  --text: #f1f3f5;
  --text-dim: #9aa4b2;
  --accent: #4ade80;
  --accent-text: #0b0d10;
  --positive: #4ade80;
  --negative: #f87171;
  --neutral: #94a3b8;
  --border: #2a313b;
  --radius: 10px;
  --tap: 56px;
  --tab-h: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.4;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
}

body {
  display: flex;
  flex-direction: column;
}

/* ---------- Header ---------- */
.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.app-header h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  flex: 1;
}

/* Brand block — logo + wordmark on every screen */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
  background: var(--bg);
}

.brand-name {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* "Update available" pill that lives in the header */
.header-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  animation: pill-pulse 1.6s ease-in-out infinite;
}

.header-pill[hidden] { display: none; }
.header-pill:disabled { opacity: 0.7; cursor: progress; animation: none; }

@keyframes pill-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  50%      { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

/* ---------- Main scroll area ---------- */
.root {
  flex: 1;
  padding: 16px;
  padding-bottom: calc(var(--tab-h) + 32px + env(safe-area-inset-bottom));
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- Bottom tab bar ---------- */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  z-index: 20;
}

.tab {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px;
}

.tab .tab-icon { font-size: 22px; line-height: 1; }
.tab[aria-selected="true"] { color: var(--accent); }
.tab:active { background: var(--surface-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.card-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.muted { color: var(--text-dim); font-size: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 17px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--surface-2);
  color: var(--text);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}

.btn-primary:active { background: #22c55e; }

.btn-block { width: 100%; }

.btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}

.btn-icon {
  min-height: 44px;
  width: 44px;
  padding: 0;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 20px;
}

.btn-icon:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ---------- Sticky bottom action ---------- */
.fab-row {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
  padding: 12px 16px;
  background: linear-gradient(to top, var(--bg) 70%, transparent);
  display: flex;
  gap: 12px;
  z-index: 5;
}

.fab-row .btn { flex: 1; }

/* ---------- Date strip ---------- */
.date-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.date-strip .date-label {
  flex: 1;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  font-variant-numeric: tabular-nums;
}

.date-strip .date-label small {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 500;
  margin-top: 2px;
}

/* ---------- Tonnage banner ---------- */
.tonnage-banner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 14px;
}

.tonnage-banner .label {
  color: var(--text-dim);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.tonnage-banner .value {
  font-size: 24px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.tonnage-banner .delta {
  font-size: 13px;
  font-weight: 600;
}

.delta.positive { color: var(--positive); }
.delta.negative { color: var(--negative); }
.delta.neutral { color: var(--neutral); }

/* ---------- Sets list ---------- */
.set-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.set-row {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.set-row:last-child { border-bottom: none; }

.set-row .idx {
  color: var(--text-dim);
  font-size: 14px;
  text-align: center;
}

.set-row .value { font-weight: 600; }

.set-row .delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 18px;
  width: 44px;
  height: 44px;
  cursor: pointer;
}

.set-row .delete:active { color: var(--negative); }

/* ---------- Forms ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 14px;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-align: center;
}

.field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

/* ---------- Exercise picker ---------- */
.exercise-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.exercise-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  min-height: var(--tap);
}

.exercise-item:active { background: var(--surface-2); }
.exercise-item .name { font-weight: 600; }
.exercise-item .meta { color: var(--text-dim); font-size: 13px; }

.search-row { margin-bottom: 12px; }

.search-row input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  font-size: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
}

/* Picker section headers (Recent / Custom / Legs / Back …) */
.picker-section {
  list-style: none;
  margin: 18px 4px 6px;
  padding: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}

.picker-section:first-of-type {
  margin-top: 4px;
}

.picker-section-count {
  display: inline-block;
  background: var(--surface-2);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 700;
}

/* ---------- Empty state ---------- */
.empty {
  text-align: center;
  color: var(--text-dim);
  padding: 32px 16px;
}

.empty p { margin: 0 0 4px; }

/* ---------- Modal ---------- */
.modal-root {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  animation: slide-up 0.18s ease-out;
}

.modal-root[hidden] { display: none; }

@keyframes slide-up {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  padding-top: max(14px, env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  margin: 0;
  flex: 1;
  font-size: 19px;
  font-weight: 600;
}

.modal-close {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

/* ---------- Stat tiles ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.stat-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}

.stat-tile .label {
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.stat-tile .value {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.stat-tile .sublabel {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ---------- Insights ---------- */
.insight-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.insight-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.insight-item:last-child { border-bottom: none; }

.insight-item .icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.insight-item .body { flex: 1; min-width: 0; }
.insight-item .name { font-weight: 600; }
.insight-item .detail { color: var(--text-dim); font-size: 13px; }
.insight-item .delta { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Chart ---------- */
.chart-wrap {
  width: 100%;
}

.chart-wrap select {
  width: 100%;
  min-height: 44px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
  font-size: 16px;
  margin-bottom: 12px;
}

.chart-svg {
  width: 100%;
  height: 220px;
  display: block;
}

.chart-svg .axis {
  stroke: var(--border);
  stroke-width: 1;
}

.chart-svg .axis-label {
  fill: var(--text-dim);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.chart-svg .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.chart-svg .area {
  fill: var(--accent);
  opacity: 0.12;
}

.chart-svg .dot {
  fill: var(--accent);
}

/* ---------- Misc ---------- */
.row-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* ---------- Custom exercise form ---------- */
.custom-form select {
  width: 100%;
  min-height: var(--tap);
  padding: 0 14px;
  font-size: 17px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                    linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.custom-form input[type="text"] {
  font-weight: 500 !important;
}

.custom-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-dim, #166534);
  color: var(--accent);
  margin-left: 6px;
  vertical-align: middle;
}

.delete-custom {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.delete-custom:active { color: var(--negative); background: var(--surface-2); }

.edit-custom {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.edit-custom:active { color: var(--accent); background: var(--surface-2); }

.overflow-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  line-height: 1;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.overflow-btn:active { background: var(--surface-2); color: var(--text); }

.exercise-item .name.hidden-name {
  color: var(--text-dim);
  text-decoration: line-through;
}

.hidden-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  margin-left: 6px;
  vertical-align: middle;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 13px;
  cursor: pointer;
  padding: 6px 4px;
  margin-bottom: 8px;
  text-decoration: underline;
}

.link-btn:active { color: var(--text); }

/* ---------- Inline edit row for custom exercises ---------- */
.exercise-item.edit-row {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
}

.exercise-item.edit-row .edit-name,
.exercise-item.edit-row .edit-group {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  font-size: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
}

.exercise-item.edit-row .edit-name:focus,
.exercise-item.edit-row .edit-group:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

.exercise-item.edit-row .edit-actions {
  display: flex;
  gap: 8px;
}

.exercise-item.edit-row .edit-actions .btn {
  flex: 1;
  min-height: 44px;
  font-size: 15px;
}

.exercise-item.edit-row .edit-actions .btn-ghost {
  flex: 0 0 auto;
  padding: 0 16px;
}

/* ---------- Backup-needed banner (loud, can't miss) ---------- */
.backup-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #3a1212, #4a1818);
  border: 1px solid #7f2222;
  color: #ffdede;
}

.backup-banner .bb-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.35;
}

.backup-banner .bb-text strong {
  color: #ffe6e6;
  font-size: 14px;
}

.backup-banner .bb-text p {
  margin: 2px 0 0;
  color: #ffb3b3;
}

.backup-banner .btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
  flex-shrink: 0;
}

/* ---------- First-run modal (full-screen, single dismiss) ---------- */
.first-run-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-top: max(16px, env(safe-area-inset-top));
  padding-bottom: max(16px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.first-run-overlay[hidden] { display: none; }

.first-run-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  max-width: 460px;
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
}

.first-run-card h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.first-run-card .lede {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 15px;
}

.first-run-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
}

.first-run-list li {
  position: relative;
  padding: 10px 0 10px 26px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.45;
}

.first-run-list li:last-child { border-bottom: none; }

.first-run-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.first-run-list strong { color: var(--text); }

/* ---------- Action sheet (overflow menu) ---------- */
.action-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 35;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: as-fade 0.18s ease-out;
}

.action-sheet-overlay[hidden] { display: none; }

.action-sheet-backdrop { flex: 1; }

.action-sheet-card {
  background: var(--surface);
  border-radius: 14px 14px 0 0;
  padding: 14px 12px max(16px, env(safe-area-inset-bottom));
  margin: 0 auto;
  max-width: 500px;
  width: 100%;
  animation: as-up 0.22s ease-out;
}

@keyframes as-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes as-up   { from { transform: translateY(40px); } to { transform: translateY(0); } }

.action-sheet-title {
  text-align: center;
  margin: 4px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.action-item {
  width: 100%;
  min-height: 52px;
  background: var(--surface-2);
  border: none;
  border-radius: 12px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  cursor: pointer;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.action-item:active { background: var(--border); }
.action-item.action-danger { color: var(--negative); }
.action-item.action-cancel {
  background: var(--surface);
  margin-top: 4px;
  margin-bottom: 0;
  justify-content: center;
}

/* ---------- Toast notifications ---------- */
.toast-root {
  position: fixed;
  bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom));
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.toast {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 11px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  pointer-events: auto;
}

.toast.toast-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Device-local reminder ---------- */
.device-note {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.35;
}

/* ---------- Print view (hidden on screen, visible during print) ---------- */
#print-view {
  display: none;
}

@media print {
  /* Hide everything except the print view */
  .app-header, .tab-bar, .modal-root, #root {
    display: none !important;
  }
  body {
    background: white !important;
    color: black !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  }
  #print-view {
    display: block !important;
    padding: 0;
    max-width: 100%;
  }
  .print-header {
    border-bottom: 2px solid #222;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }
  .print-header h1 {
    margin: 0 0 4px;
    font-size: 22px;
  }
  .print-header p {
    margin: 2px 0;
    font-size: 13px;
    color: #444;
  }
  .print-day {
    page-break-inside: avoid;
    margin-bottom: 18px;
  }
  .print-day h2 {
    margin: 14px 0 8px;
    font-size: 16px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 4px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
  }
  .print-day-ton {
    font-size: 13px;
    color: #555;
    font-weight: 500;
  }
  .print-ex {
    margin: 8px 0 14px;
    page-break-inside: avoid;
  }
  .print-ex h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
  }
  .print-group {
    font-size: 11px;
    color: #666;
    font-weight: 500;
    background: #eee;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
  }
  .print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
  }
  .print-table th, .print-table td {
    text-align: left;
    padding: 4px 8px;
    border-bottom: 1px solid #ddd;
  }
  .print-table th {
    font-weight: 700;
    background: #f4f4f4;
  }
  .print-table td:nth-child(1) { width: 32px; color: #777; }
  .print-table td:nth-child(2),
  .print-table td:nth-child(3),
  .print-table td:nth-child(4) {
    font-variant-numeric: tabular-nums;
    text-align: right;
  }
  .print-empty {
    padding: 24px;
    text-align: center;
    color: #777;
  }
  .print-footer {
    margin-top: 24px;
    padding-top: 8px;
    border-top: 1px solid #ccc;
    font-size: 11px;
    color: #888;
    text-align: center;
  }
  @page {
    margin: 14mm 12mm;
  }
}
