:root {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111a2e;
  --panel-strong: #17213b;
  --text: #edf2ff;
  --muted: #9bb4d6;
  --accent: #5ad9ff;
  --accent-strong: #34c5ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #14203a 0%, #0a101d 45%, #05090f 100%);
  color: var(--text);
}

body {
  padding: 14px;
}

.app-shell {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.hero {
  max-width: 100%;
  margin: 0 auto;
  padding: 18px 18px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(10, 16, 29, 0.92), rgba(11, 18, 32, 0.98));
  box-shadow: var(--shadow);
  text-align: center;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.input-panel textarea {
  width: 100%;
  min-height: 170px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 18px;
  resize: vertical;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  font-size: 1rem;
}

.field-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.field-row label {
  font-weight: 600;
  color: var(--muted);
  min-width: 100px;
}

.field-row input {
  width: 120px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 14px;
  background: #1a2640;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
  font-size: 1rem;
}

.input-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

button {
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-size: 1rem;
  cursor: pointer;
  color: #0b1220;
  background: var(--accent);
  transition: transform 0.15s ease, background 0.15s ease;
}

button.secondary {
  color: var(--text);
  background: rgba(255,255,255,0.08);
}

button:hover {
  transform: translateY(-1px);
}

.hint {
  margin-top: 12px;
  color: var(--muted);
}

.board-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.board-top h2 {
  margin: 0 0 8px;
}

.status-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted);
}

.layout-grid {
  display: grid;
  grid-template-columns: minmax(110px, 145px) 1fr;
  gap: 16px;
  margin-top: 18px;
  align-items: start;
}

.games-container {
  display: flex;
  gap: 12px;
  align-items: start;
  overflow-x: auto;
  padding-bottom: 6px;
}

.game-column {
  flex: 1 1 155px;
  min-width: 145px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.game-meta-input {
  width: 100%;
  font-size: 0.72rem;
  padding: 5px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
}

.game-meta-input::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
  cursor: pointer;
}

.game-meta-input option {
  background: #111a2e;
}

.ladder-section-label {
  margin: 8px 0 3px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

/* Not Bowling — amber */
.not-bowling-label {
  color: rgba(251, 191, 36, 0.75);
  margin-top: 14px;
}

.not-bowling-slot {
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.03);
}

.not-bowling-slot:hover,
.not-bowling-slot.active {
  border-color: rgba(251, 191, 36, 0.5);
  transform: translateY(-2px);
}

.not-bowling-slot.assigned {
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.35);
}

.not-bowling-tile {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.3);
}

/* Not Batting — rose/red */
.not-batting-label {
  color: rgba(248, 113, 113, 0.75);
  margin-top: 14px;
}

.not-batting-slot {
  border-color: rgba(248, 113, 113, 0.18);
  background: rgba(248, 113, 113, 0.03);
}

.not-batting-slot:hover,
.not-batting-slot.active {
  border-color: rgba(248, 113, 113, 0.5);
  transform: translateY(-2px);
}

.not-batting-slot.assigned {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
}

.not-batting-tile {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.3);
}

.game-title {
  text-align: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(90, 217, 255, 0.08);
  border: 1px solid rgba(90, 217, 255, 0.18);
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.tiles-panel {
  min-height: 280px;
  padding: 10px;
  border-radius: 20px;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  display: grid;
  gap: 12px;
  align-content: start;
  justify-content: stretch;
  justify-items: stretch;
  transition: border-color 0.2s ease, background 0.2s ease;
}

/* Pool glows and shows a hint when an assigned tile is selected (mobile unassign) */
.tiles-panel.drop-target {
  border-color: rgba(90, 217, 255, 0.55);
  background: rgba(90, 217, 255, 0.05);
}

.tiles-panel.drop-target::after {
  content: "Tap here to return to pool";
  display: block;
  text-align: center;
  color: var(--accent);
  font-size: 0.82rem;
  padding: 10px 8px 4px;
  opacity: 0.8;
  font-style: italic;
  pointer-events: none;
}

.panel-column {
  display: grid;
  gap: 16px;
}

.panel-title {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.empty-state {
  color: var(--muted);
  padding: 18px;
  text-align: center;
}

.player-tile {
  width: 100%;
  padding: 8px 10px;
  border-radius: 16px;
  background: rgba(86, 147, 255, 0.12);
  border: 1px solid rgba(90, 217, 255, 0.24);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: grab;
  user-select: none;
}

.player-tile.selected {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.1);
}

.player-tile:active {
  cursor: grabbing;
}

.player-tile.dragging {
  opacity: 0.55;
}

.player-tile span:first-child {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-tile span:last-child {
  flex: none;
  color: var(--muted);
  font-size: 0.85em;
}

.slot-card {
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.03);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.slot-card:hover,
.slot-card.active {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.slot-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.slot-content {
  flex: 1;
  min-height: 1.8rem;
  display: flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.85rem;
  overflow: hidden;
}

.slot-card.assigned {
  background: rgba(58, 170, 255, 0.12);
  border-color: rgba(90, 217, 255, 0.35);
}

.slot-card.assigned .slot-content {
  color: var(--text);
}

.slot-card .assigned-player {
  font-weight: 600;
  color: var(--text);
}

.legend-panel {
  display: grid;
  gap: 12px;
}

.legend-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  color: var(--muted);
}

@media (max-width: 860px) {
  .layout-grid {
    grid-template-columns: 1fr;
  }

  .game-column {
    flex: 0 0 145px;
  }
}

@media (max-width: 680px) {
  body {
    padding: 14px;
  }

  .panel {
    padding: 18px;
  }
}

/* Report button */
.report-btn {
  color: var(--text);
  background: rgba(180, 130, 255, 0.15);
  border: 1px solid rgba(180, 130, 255, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.report-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.report-btn:not(:disabled):hover {
  background: rgba(180, 130, 255, 0.28);
}

/* Export button */
.export-btn {
  color: var(--text);
  background: rgba(90, 217, 255, 0.15);
  border: 1px solid rgba(90, 217, 255, 0.35);
  transition: background 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}

.export-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.export-btn:not(:disabled):hover {
  background: rgba(90, 217, 255, 0.28);
}

/* ── Report modal ─────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 9, 15, 0.82);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  padding: 20px;
}

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

.modal-box {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  width: 100%;
  max-width: 860px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 1rem;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: none;
}

.modal-body {
  overflow-y: auto;
  padding: 4px 24px 24px;
  flex: 1;
}

.modal-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
}

#report-print-sheet {
  display: none;
}

/* ── Report content ───────────────────────────────────────────────────────── */
.report-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.report-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.report-heading {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--accent);
}

.report-sub {
  margin: 0 0 14px;
  font-size: 0.82rem;
  color: var(--muted);
}

.report-scroll {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.report-table th {
  text-align: left;
  padding: 7px 12px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.report-table td {
  padding: 7px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.report-table tr:last-child td {
  border-bottom: none;
}

.report-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.r-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.r-name {
  font-weight: 500;
  white-space: nowrap;
}

.r-muted {
  color: var(--muted);
  font-style: normal;
}

.r-absent {
  color: #f87171;
  font-weight: 600;
}

.r-present {
  color: #4ade80;
}

.r-missing-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.r-game-tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  background: rgba(90, 217, 255, 0.1);
  border: 1px solid rgba(90, 217, 255, 0.2);
  border-radius: 6px;
  padding: 2px 8px;
  min-width: 58px;
  text-align: center;
}

.r-missing-names {
  font-size: 0.88rem;
  color: var(--text);
}

.r-game-sub {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}

.r-game-tag-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

/* ── Squad toolbar ────────────────────────────────────────────────────────── */

.squad-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 12px 0 6px;
  margin-bottom: 4px;
  border-top: 1px solid var(--border);
}

/* Base style shared by all toolbar buttons AND the import label-as-button */
.toolbar-btn {
  padding: 9px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
  min-height: 40px;         /* iOS HIG 44 px recommended — close enough with border */
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: inherit;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.share-btn {
  color: var(--text);
  background: rgba(90, 217, 255, 0.15);
  border: 1px solid rgba(90, 217, 255, 0.35);
}

.share-btn:hover {
  background: rgba(90, 217, 255, 0.28);
  transform: translateY(-1px);
}

.export-json-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.export-json-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* Label styled to look like the other toolbar buttons */
.import-json-label {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none;
}

.import-json-label:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

/* ── Save status indicator ────────────────────────────────────────────────── */

.save-status {
  font-size: 0.78rem;
  color: #4ade80;
  opacity: 0;
  transition: opacity 0.45s ease;
  margin-left: 2px;
  align-self: center;
  white-space: nowrap;
  pointer-events: none;
}

.save-status.save-active {
  opacity: 1;
  transition: opacity 0s; /* instant appear, slow fade out */
}

/* ── Toast / snackbar ─────────────────────────────────────────────────────── */

.ctb-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: rgba(18, 28, 48, 0.97);
  color: var(--text);
  padding: 11px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  font-family: inherit;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: normal;
  max-width: min(420px, calc(100vw - 40px));
  text-align: center;
  line-height: 1.5;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.ctb-toast.ctb-toast-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ctb-toast.ctb-toast-error {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(44, 14, 14, 0.97);
}

/* ── PWA install banner ───────────────────────────────────────────────────── */

.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--panel-strong);
  border-top: 1px solid rgba(90, 217, 255, 0.25);
  padding: 12px 16px max(16px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  z-index: 800;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.install-banner[hidden] {
  display: none;
}

.install-banner-text {
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
  min-width: 160px;
}

.install-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ios-banner .install-banner-text {
  line-height: 1.6;
}

.ios-banner svg {
  color: var(--accent);
}

/* ── Mobile-specific improvements ─────────────────────────────────────────── */

@media (max-width: 600px) {
  /* 2-column grid: label on left, input on right — gives long labels enough room */
  .field-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
  }

  .field-row label {
    min-width: unset;
    font-size: 0.92rem;
  }

  .field-row input {
    width: 80px;
    min-width: 0;
    text-align: center;
  }

  /* Modal becomes a bottom sheet on mobile */
  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal-box {
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
    width: 100%;
  }

  /* Slightly smaller toolbar buttons so they wrap less on small screens */
  .toolbar-btn {
    padding: 8px 13px;
    font-size: 0.82rem;
  }

  .squad-toolbar {
    gap: 6px;
  }

  /* Prevent toast overlapping install banner */
  .ctb-toast {
    bottom: 80px;
  }
}

/* Very small screens (320 px): keep 2-column, shrink input slightly */
@media (max-width: 380px) {
  .field-row input {
    width: 64px;
  }
}

/* Print sheet — hidden on screen, visible only when printing */
#print-sheet {
  display: none;
}

@media print {
  /* Hide the whole app UI */
  body > * {
    display: none !important;
  }

  /* Team PDF (default) */
  #print-sheet {
    display: block !important;
    font-family: Georgia, "Times New Roman", serif;
    color: #000;
    padding: 40px 60px;
  }

  .print-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 16px;
    margin-bottom: 28px;
  }

  .print-header h1 {
    font-size: 2rem;
    margin: 0 0 6px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .print-header p {
    margin: 0;
    font-size: 0.9rem;
    color: #555;
  }

  #print-list {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 48px;
  }

  .print-game {
    break-inside: avoid;
    flex: 1 1 180px;
  }

  .print-be-heading {
    margin: 10px 0 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #444;
  }

  .print-be-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
  }

  .print-be-list li {
    padding: 2px 0;
    font-size: 0.88rem;
    color: #333;
  }

  .print-game-meta {
    margin: 2px 0 0;
    font-size: 0.8rem;
    color: #555;
    font-style: italic;
  }

  .print-game h2 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #bbb;
    color: #333;
  }

  .print-game-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: batting-order;
  }

  .print-game-list li {
    counter-increment: batting-order;
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 7px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 1.05rem;
  }

  .print-game-list li::before {
    content: counter(batting-order);
    min-width: 24px;
    font-size: 0.8rem;
    color: #888;
    font-variant-numeric: tabular-nums;
  }

  /* Report PDF mode — triggered by body.printing-report */
  body.printing-report #print-sheet { display: none !important; }

  body.printing-report #report-print-sheet {
    display: block !important;
    font-family: Georgia, "Times New Roman", serif;
    color: #000;
    padding: 40px 60px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .rp-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 14px;
    margin-bottom: 28px;
  }

  .rp-header h1 {
    font-size: 1.8rem;
    margin: 0 0 4px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .rp-header p {
    margin: 0;
    font-size: 0.85rem;
    color: #555;
  }

  /* Re-use the on-screen report styles, adjusted for print */
  body.printing-report .report-section {
    padding: 16px 0;
    border-bottom: none;
    break-after: page;
  }

  body.printing-report .report-section:last-child {
    break-after: auto;
  }

  body.printing-report .report-heading {
    font-size: 0.95rem;
    color: #000;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 4px;
  }

  body.printing-report .report-sub {
    font-size: 0.8rem;
    color: #555;
    margin: 0 0 10px;
  }

  body.printing-report .report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
  }

  body.printing-report .report-table th {
    text-align: left;
    padding: 5px 10px;
    color: #333;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-bottom: 1px solid #bbb;
  }

  body.printing-report .report-table td {
    padding: 5px 10px;
    border-bottom: 1px solid #eee;
    color: #000;
  }

  body.printing-report .r-absent { color: #c0392b; font-weight: 700; }
  body.printing-report .r-present { color: #27ae60; }
  body.printing-report .r-muted { color: #888; }
  body.printing-report .r-num { text-align: center; }
  body.printing-report .r-game-sub { color: #555; }
  body.printing-report .r-game-tag-sub { color: #555; }

  body.printing-report .r-missing-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.85rem;
    color: #000;
  }

  body.printing-report .r-missing-names {
    color: #000;
  }

  body.printing-report .r-game-tag {
    font-weight: 700;
    font-size: 0.75rem;
    min-width: 55px;
    color: #000;
    border: 1px solid #aaa;
    border-radius: 4px;
    padding: 1px 6px;
    text-align: center;
  }

  /* Hide the modal chrome (close button, footer) from print output */
  body.printing-report .modal-close,
  body.printing-report .modal-footer { display: none !important; }
}
