/* Arishma POS — Base Reset & Typography */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--lh-normal);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
:root[data-theme="dark"] body { color-scheme: dark; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--ink);
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); font-weight: var(--fw-extrabold); }
h3 { font-size: var(--text-lg); }
h4 { font-size: var(--text-md); }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { display: block; max-width: 100%; }

/* Focus */
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.sidebar :focus-visible,
[data-dark-focus] :focus-visible { outline-color: #fff; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tabular figures for financial data */
.tabnum { font-variant-numeric: tabular-nums; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-md);
  z-index: 100;
  text-decoration: none;
  font-weight: var(--fw-bold);
}
.skip-link:focus, .skip-link:focus-visible {
  left: var(--sp-3);
  top: var(--sp-3);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Utility text */
.text-muted { color: var(--muted); }
.text-success { color: var(--success); font-weight: var(--fw-semibold); }
.text-danger { color: var(--danger); font-weight: var(--fw-semibold); }
.text-warning { color: var(--warning); }
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

/* Help text */
.help { font-size: var(--text-sm); color: var(--muted); line-height: var(--lh-relaxed); }
.err { color: var(--danger); font-size: var(--text-sm); }

/* No-print utility */
@media print { .no-print { display: none !important; } }

/* Selection */
::selection { background: var(--teal-soft); color: var(--ink); }
