/* Tea inspired visual refresh. Keep layout and behavior in styles.css. */
:root {
  --ink: #292b21;
  --ink-soft: #464a3b;
  --muted: #697264;
  --line: #e4e5da;
  --paper: #fffef9;
  --bg: #f4f2e9;
  --green: #47634a;
  --green-dark: #344c37;
  --green-light: #e6ecdf;
  --green-pale: #eef2e9;
  --cream: #f8f2e3;
  --shadow: 0 8px 28px #302e1e0c;
  --radius: 18px;
}
body { background: var(--bg); font-size: 15px; }
.sidebar { background: #283d32; border: 0; padding-top: 32px; }
.brand, .brand b { color: #fff9e9; }
.brand small, .side-footer small { color: #c2d0bc; }
.brand-mark { background: #cfb977; box-shadow: none; outline-color: #7d9578; color: #283d32; }
.brand-mark span { color: #283d32; }
.side-label { color: #a8bea8; }
.nav-item { color: #d0ddcf; font-size: 13px; }
.nav-icon { display: block; width: 21px; height: 21px; flex: 0 0 21px; background-color: currentColor; font-size: 0; line-height: 0; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.nav-item[data-page="dashboard"] .nav-icon { -webkit-mask-image: url('icons/house.svg'); mask-image: url('icons/house.svg'); }
.nav-item[data-page="inventory"] .nav-icon { -webkit-mask-image: url('icons/boxes.svg'); mask-image: url('icons/boxes.svg'); }
.nav-item[data-page="receiving"] .nav-icon { -webkit-mask-image: url('icons/package-plus.svg'); mask-image: url('icons/package-plus.svg'); }
.nav-item[data-page="sales"] .nav-icon { -webkit-mask-image: url('icons/shopping-cart.svg'); mask-image: url('icons/shopping-cart.svg'); }
.nav-item[data-page="reports"] .nav-icon { -webkit-mask-image: url('icons/chart-column.svg'); mask-image: url('icons/chart-column.svg'); }
.nav-item:hover { background: #385646; color: #fff; }
.nav-item.active { background: #e9edda; color: #284534; }
.nav-count { background: #ffffffd9; color: #345640; }
.sidebar-bottom { background: #385344; border-color: #51705c; color: #fff9e9; }
.sidebar-bottom p { color: #ceddcc; font-size: 12px; }
.leaf-art { color: #668367; }
.side-footer b { color: #f2f3e8; }
.avatar { background: #d9c787; color: #344635; }
.dots { color: #a6bda6; }
.main-content { padding-inline: 42px; }
.topbar { height: 76px; }
.breadcrumb, .today { font-size: 12px; }
.page { padding-top: 36px; }
.eyebrow { color: #7e876d; font-size: 12px; font-weight: 600; }
h1 { font-size: 32px; letter-spacing: 0; }
.page-heading p { font-size: 14px; color: #687164; }
.button { font-size: 13px; min-height: 44px; border-radius: 10px; }
.button.primary { box-shadow: none; }
.button.secondary { background: #e9eddf; color: #405946; }
.stat-card { min-height: 145px; padding: 20px; border-top: 3px solid #c6b477; }
.stat-card:after { background: #f5f3e9; }
.stat-top { font-size: 12px; color: #67715f; }
.stat-value { font-size: 27px; margin-top: 9px; color: #2c4836; }
.stat-note { font-size: 11px; color: #778074; }
.panel-heading { padding: 20px 22px; }
.panel-heading h2 { font-size: 16px; }
.panel-heading p, .annual-tables .panel-heading p { font-size: 12px; color: #737d70; }
.text-link, .more-button { font-size: 12px; }
th { font-size: 11px; color: #586b5d; background: #f4f5ec; }
td { font-size: 12px; }
.product-name { font-size: 12px; }
.product-sub, .recent-desc small { font-size: 10px; }
.category-tag, .status { font-size: 10px; }
.stock-cell, .recent-desc b, .recent-amount, .purchase-total { font-size: 12px; }
.empty-state { font-size: 12px; color: #6e786c; }
.tip-bar { background: #e9eddf; border-color: #dce5d3; padding: 17px 20px; }
.tip-bar b { font-size: 12px; }
.tip-bar small, .tip-action { font-size: 11px; }
.search-box input, .inventory-toolbar select, .field input, .field select, .field textarea { font-size: 13px; }
.field, .form-hint { font-size: 12px; }
.field-help, .optional { font-size: 11px; }
.purchase-summary span { font-size: 11px; }
.purchase-summary b { font-size: 21px; }
.purchase-main b, .purchase-meta { font-size: 12px; }
.purchase-main small { font-size: 10px; }
.backup-button { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; border: 1px solid #d8dfd3; border-radius: 9px; background: #fffef9; color: #45644c; padding: 6px 10px; font-size: 11px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.backup-button:hover { background: #e6ecdf; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.auth-screen { min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: radial-gradient(circle at 20% 15%, #e9e5ca, transparent 35%), #f4f2e9; }
.auth-card { width: min(420px, 100%); background: #fffef9; border: 1px solid #e0e4d8; border-radius: 24px; padding: 34px; box-shadow: 0 24px 70px #283d321a; }
.auth-symbol { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 17px; background: #283d32; color: #e9d792; font-size: 28px; font-weight: 700; }
.auth-kicker { margin: 22px 0 4px; color: #768672; font-size: 12px; }
.auth-card h1 { font-size: 28px; }
.auth-description { margin: 8px 0 25px; color: #6d796c; font-size: 13px; line-height: 1.8; }
.auth-field { display: grid; gap: 7px; margin-bottom: 16px; color: #465947; font-size: 13px; font-weight: 600; }
.auth-field input { width: 100%; min-height: 46px; border: 1px solid #dfe5dc; border-radius: 11px; padding: 10px 13px; background: #fff; font-size: 15px; }
.auth-submit { width: 100%; margin-top: 4px; }
.auth-submit:disabled { opacity: .55; cursor: wait; }
.auth-error { min-height: 20px; margin: 5px 0; color: #a53932; font-size: 12px; }
#passwordForm { display: grid; gap: 12px; }
button:focus-visible, .backup-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #c2943b; outline-offset: 2px; }
@media (max-width: 1120px) { .main-content { padding-inline: 25px; } }
@media (max-width: 760px) {
  html, body { touch-action: pan-x pan-y; }
  body { background: var(--bg); }
  input, select, textarea, .search-box input, .field input, .field select, .field textarea, .auth-field input { font-size: 16px; }
  .sidebar { position: fixed; inset: auto 0 0 0; width: 100%; height: calc(72px + env(safe-area-inset-bottom)); padding: 6px 12px calc(6px + env(safe-area-inset-bottom)); background: #fffef9f5; border: 1px solid #dfe4d8; border-bottom: 0; border-radius: 18px 18px 0 0; box-shadow: 0 -7px 24px #283d3218; z-index: 10; }
  .nav-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; height: 100%; }
  .nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; min-height: 0; height: 100%; padding: 4px 2px; color: #667465; font-size: 11px; line-height: 1.2; text-align: center; white-space: nowrap; }
  .nav-icon { width: 23px; height: 23px; flex: 0 0 23px; font-size: 0; }
  .nav-item[data-page="reports"] { display: none; }
  .nav-item.active { background: #e6ecdf; color: #294c36; }
  .main-content { padding-inline: 16px; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .topbar { height: auto; min-height: 60px; margin-inline: -16px; padding: 9px 16px; background: #f4f2e9f2; align-items: flex-start; gap: 8px; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
  .today { width: 100%; text-align: left; font-size: 10px; }
  .backup-button { min-height: 29px; padding: 3px 6px; font-size: 9px; }
  .page { padding-top: 24px; }
  h1, .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 12px; }
  .heading-actions { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .heading-actions:has(.button:nth-child(3)) { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .heading-actions .button:nth-child(3) { grid-column: 1 / -1; }
  .heading-actions .button { font-size: 11px; }
  .stat-card { min-height: 124px; padding: 14px; }
  .stat-top, .stat-note { font-size: 10px; }
  .stat-value { font-size: 22px; }
  .panel-heading { padding: 16px; }
  .panel-heading h2 { font-size: 14px; }
  .panel-heading p { font-size: 11px; }
  .tip-bar b { font-size: 11px; }
  .tip-bar small, .tip-action { font-size: 10px; }
  .full-panel tbody td, .purchase-meta { font-size: 11px; }
  .purchase-summary span { font-size: 9px; }
  .purchase-summary b { font-size: 15px; }
  .main-footer { font-size: 9px; }
}
