:root {
  --amber: #F5A007;
  --orange: #F98E04;
  --ink: #111010;
  --paper: #F4F2EF;
  --line: rgba(17, 16, 16, .1);
  --muted: #8a8279;
  --teal: #2F80ED;
  --green: #198754;
  --red: #c0392b;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(17, 16, 16, .06);
  --shadow-md: 0 6px 20px rgba(17, 16, 16, .08);
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

.navbar {
  background: var(--ink) !important;
  box-shadow: var(--shadow-sm);
}
.navbar-brand { font-weight: 800; letter-spacing: -.02em; }
.navbar-brand span { color: var(--amber); }
.nav-link {
  color: rgba(255, 255, 255, .78) !important;
  font-size: .92rem;
  transition: color .15s ease;
}
.nav-link:hover, .nav-link.active { color: var(--amber) !important; }
.nav-link i { margin-right: .35em; }

.navbar-nav .dropdown-menu { --bs-dropdown-min-width: 11rem; }
.dropdown-item:hover, .dropdown-item:focus {
  background-color: var(--amber);
  color: var(--ink) !important;
}
.dropdown-item i { width: 1.1em; display: inline-block; }

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--ink);
  font-weight: 600;
  transition: transform .1s ease, background .15s ease;
}
.btn-amber:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
  transform: translateY(-1px);
}
.btn-amber:active { transform: translateY(0); }

.stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, transform .15s ease;
  overflow: hidden;
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.stat__k {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding-right: 34px;
}
.stat__v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }

.stat__icon {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #fff;
  background: var(--amber);
}
.stat--sales .stat__icon { background: var(--teal); }
.stat--good .stat__icon { background: var(--green); }
.stat--warn .stat__icon { background: var(--red); }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.75rem;
}
.page-header__eyebrow {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 2px;
}
.section-heading {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }

.app-footer {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  margin-top: 32px;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
}

.table { font-size: .9rem; }
.table thead th {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.table tbody tr { transition: background-color .1s ease; }
.table tbody tr:hover { background-color: rgba(245, 160, 7, .06); }

.money { font-variant-numeric: tabular-nums; text-align: right; }

.badge-draft { background: #6c757d; }
.badge-approved { background: var(--amber); color: #111; }
.badge-paid { background: #198754; }
.badge-full { background: #198754; }
.badge-hire-purchase { background: #5b6ee8; }

.locked-note {
  background: #FFF6E5;
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: .88rem;
}

.receipt-card { border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }

.balance-due { font-weight: 700; }
.balance-due--settled { color: #198754; }
.balance-due--pending { color: #c0392b; }
