/* Direction: Dukaan Khata — white ledger paper, one neem-green accent,
   oversized rupee numerals, sized for older eyes and big thumbs. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #ffffff;
  --surface: #f6f8f3;
  --surface-2: #eaf0e6;
  --border: #dde3d8;
  --border-strong: #b3b8b5;
  --ink: #141a15;
  --muted: #555e55;
  --accent: #16803c;
  --accent-hover: #136d33;
  --accent-ink: #ffffff;
  --accent-text: #0f6b31;
  --accent-strong: #0b5527;
  --accent-soft: #e3f3e8;
  --accent-border: #96c6a7;
  --success: #16803c;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #147637;
  --warning: #96640a;
  --warning-ink: #ffffff;
  --warning-soft: #f2ece2;
  --warning-strong: #8a5c09;
  --danger: #a52318;
  --danger-ink: #ffffff;
  --danger-soft: #f4e5e3;
  --danger-strong: #a52318;
  --chart-1: #16803c;
  --chart-2: #2295a6;
  --chart-3: #374ca0;
  --chart-4: #ac5ea6;
  --chart-5: #8e291f;
  --chart-6: #9e7e19;

  --font-display: "Mukta", system-ui, sans-serif;
  --font-body: "Hind", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.015em;
  --radius-card: 18px;
  --radius-btn: 14px;
  --radius-input: 14px;
  --card-pad: 1.25rem;
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Hind", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #031208;
  --surface: #1c2a21;
  --surface-2: #101e14;
  --border: #26332b;
  --border-strong: #4f5952;
  --ink: #ffffff;
  --muted: #9aa09c;
  --accent: #16803c;
  --accent-hover: #399359;
  --accent-ink: #ffffff;
  --accent-text: #58a473;
  --accent-strong: #4a9c67;
  --accent-soft: #072a13;
  --accent-border: #0c441f;
  --success: #16803c;
  --success-ink: #ffffff;
  --success-soft: #072a13;
  --success-strong: #4a9c67;
  --warning: #96640a;
  --warning-ink: #ffffff;
  --warning-soft: #232408;
  --warning-strong: #ad8641;
  --danger: #a52318;
  --danger-ink: #ffffff;
  --danger-soft: #27160c;
  --danger-strong: #c46f66;
  --chart-1: #208642;
  --chart-2: #149caf;
  --chart-3: #607ad2;
  --chart-4: #b264ad;
  --chart-5: #c55c4d;
  --chart-6: #a68408;
}

/* Sharma Kirana credit book — read across a shop counter, so everything is
   one step bigger and nothing is allowed to squeeze. */

html {
  font-size: 118%;
}

body {
  line-height: 1.55;
  overflow-x: hidden;
}

/* Money and phone numbers: even columns, never broken across lines */
.amount {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* A customer's full name: its own line, wrapped — never cut with dots */
.khata-name {
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: none;
}

.khata-hero {
  background-image: linear-gradient(180deg, var(--accent-soft) 0%, var(--canvas) 92%);
}

.khata-row {
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.khata-row:active {
  transform: scale(0.995);
}

html.reduced-motion .khata-row,
html.reduced-motion .khata-row:active {
  transition: none;
  transform: none;
}

/* Big thumbs: tall buttons and tall fields everywhere */
.btn {
  min-height: 3.1rem;
}

.btn-lg {
  min-height: 3.9rem;
}

.btn-icon {
  min-width: 3.1rem;
}

.label {
  font-size: 1.15rem;
}

.input,
.select {
  min-height: 3.6rem;
  font-size: 1.2rem;
}

.badge {
  font-size: 1rem;
  white-space: nowrap;
}

.hint {
  font-size: 1.05rem;
}
