:root {
  --gh-bg: #f5efe4;
  --gh-surface: rgba(255, 255, 255, 0.78);
  --gh-surface-strong: rgba(255, 255, 255, 0.92);
  --gh-line: rgba(58, 42, 26, 0.12);
  --gh-ink: #1e1c19;
  --gh-ink-soft: #5e5449;
  --gh-primary: #0f766e;
  --gh-primary-deep: #115e59;
  --gh-accent: #c2410c;
  --gh-shadow: 0 24px 70px rgba(74, 48, 21, 0.12);
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.65), transparent 28rem), linear-gradient(135deg, #f7f2e9 0%, #efe3cf 55%, #ead6bd 100%);
  color: var(--gh-ink);
  font-family: "Manrope", sans-serif;
}

h1,
h2,
h3,
h4,
.brand-wordmark {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

.app-shell {
  min-height: 100vh;
}

.glass-panel {
  background: var(--gh-surface);
  border: 1px solid var(--gh-line);
  box-shadow: var(--gh-shadow);
  backdrop-filter: blur(18px);
}

.sidebar-panel {
  background: linear-gradient(180deg, rgba(17, 94, 89, 0.93), rgba(10, 42, 58, 0.95));
  color: #f8fafc;
}

.sidebar-link {
  color: rgba(248, 250, 252, 0.88);
  border-radius: 1rem;
  transition: 160ms ease;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.topbar {
  border-bottom: 1px solid var(--gh-line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
}

.hero-card,
.content-card {
  border-radius: 1.5rem;
}

.hero-card {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.96), rgba(194, 65, 12, 0.92));
  color: #ffffff;
}

.btn-goosehub {
  background: var(--gh-primary);
  border-color: var(--gh-primary);
  color: #ffffff;
}

.btn-goosehub:hover,
.btn-goosehub:focus {
  background: var(--gh-primary-deep);
  border-color: var(--gh-primary-deep);
  color: #ffffff;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
}

.category-row:hover {
  background: rgba(15, 118, 110, 0.05);
}

.ledger-paper {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 252, 246, 0.95)), repeating-linear-gradient(180deg, transparent 0, transparent 2.3rem, rgba(173, 129, 78, 0.08) 2.3rem, rgba(173, 129, 78, 0.08) 2.42rem);
}

.ledger-table {
  --bs-table-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.26);
  --bs-table-hover-bg: rgba(15, 118, 110, 0.06);
  font-variant-numeric: tabular-nums;
}

.ledger-table thead th {
  border-bottom-width: 2px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  color: var(--gh-ink-soft);
}

.inventory-barcode-wrap {
  min-width: 8.5rem;
}

.inventory-barcode {
  display: block;
  width: 100%;
  height: auto;
}

.inventory-qr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  min-height: 3.5rem;
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.88);
}

.inventory-qr img,
.inventory-qr canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.inventory-code-card {
  padding: 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.inventory-code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(7.75rem, 1fr);
  gap: 1rem;
  align-items: center;
}

.inventory-code-panel {
  min-width: 0;
}

.inventory-barcode-detail {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 1rem;
  padding: 0.65rem;
}

.inventory-qr-detail {
  min-width: 8.25rem;
  min-height: 8.25rem;
}

@media (max-width: 991.98px) {
  .main-content {
    padding-top: 1rem;
  }
  .inventory-code-grid {
    grid-template-columns: 1fr;
  }
  .inventory-qr-detail {
    min-width: 7.25rem;
    min-height: 7.25rem;
  }
}
