:root {
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --border-subtle: #e2e8f0;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --accent-primary: #0284c7;
  --accent-hover: #0369a1;
  --required-bg: #eff6ff;
  --required-border: #93c5fd;
}

html {
  font-size: 80%; /* Standardized compact UI scale */
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
}

body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Remove number input spinner steppers */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* Required input highlight standard */
.field-required {
  background-color: var(--required-bg);
  border-color: var(--required-border);
}

/* Subtle custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

@media print {
  html {
    font-size: 100%;
    background: #ffffff;
  }
  .no-print {
    display: none !important;
  }
}