html {
  scroll-behavior: smooth;
}

body {
  background-image:
    radial-gradient(
      circle at top right,
      rgba(245, 165, 36, 0.16),
      transparent 24%
    ),
    linear-gradient(180deg, #f8f4ec 0%, #f2ede4 100%);
}

.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cg fill='%230f172a' fill-opacity='0.45'%3E%3Ccircle cx='10' cy='10' r='1'/%3E%3Ccircle cx='50' cy='35' r='1'/%3E%3Ccircle cx='90' cy='25' r='1'/%3E%3Ccircle cx='140' cy='70' r='1'/%3E%3Ccircle cx='170' cy='15' r='1'/%3E%3Ccircle cx='15' cy='90' r='1'/%3E%3Ccircle cx='80' cy='95' r='1'/%3E%3Ccircle cx='130' cy='130' r='1'/%3E%3Ccircle cx='55' cy='145' r='1'/%3E%3Ccircle cx='165' cy='155' r='1'/%3E%3C/g%3E%3C/svg%3E");
}

.glass-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -35px auto;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.table-wrap thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.table-wrap th,
.table-wrap td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  vertical-align: top;
}

.table-wrap tbody tr:hover {
  background: rgba(248, 250, 252, 0.85);
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.56);
}

.modal-shell.is-open {
  display: flex;
}

.modal-card {
  max-height: calc(100vh - 2rem);
  width: min(100%, 38rem);
  overflow-y: auto;
  border-radius: 1.75rem;
  background: #ffffff;
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.26);
}

.print-sheet {
  background: #ffffff;
}

@media print {
  body {
    background: #ffffff;
  }

  .grain-overlay,
  aside,
  .no-print,
  .modal-shell,
  [data-mobile-nav-toggle] {
    display: none !important;
  }

  main {
    padding: 0 !important;
  }

  .print-sheet {
    box-shadow: none !important;
    border: 0 !important;
  }

  .table-wrap table {
    min-width: 100%;
  }
}
