/* Elite: custom, dependency-free CSS. Layout → components → pages → mobile. */
:root {
  --forest: #173d35;
  --forest-deep: #102e28;
  --green: #286451;
  --mint: #dcebe1;
  --orange: #d36c39;
  --paper: #f6f7f3;
  --white: #fff;
  --ink: #243c34;
  --muted: #737c76;
  --line: #e5e9e2;
  --radius: 18px;
  --shadow: 0 5px 24px #20382b04;
  font-family: Inter,"Segoe UI",Arial,sans-serif;
  color: var(--ink);
  font-synthesis: none;
  font-size: 14px
}
* {
  box-sizing: border-box
}
body {
  margin: 0;
  background: var(--paper)
}
button,input,select,textarea {
  font: inherit
}
button,a,input,select,summary {
  -webkit-tap-highlight-color: transparent
}
a {
  color: inherit;
  text-decoration: none
}
button,summary {
  cursor: pointer
}
button {
  border: 0
}
h1,h2,h3,p {
  margin: 0
}
h1 {
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -1.1px;
  font-weight: 650
}
h2 {
  font-size: 18px;
  letter-spacing: -.4px;
  font-weight: 650
}
h3 {
  font-size: 16px;
  font-weight: 600
}
p {
  line-height: 1.65
}
small,.small {
  font-size: 12px
}
small {
  display: block;
  color: var(--muted);
  line-height: 1.5
}
strong,.strong {
  font-weight: 600
}
.muted {
  color: var(--muted)
}
.orange {
  color: var(--orange)
}
.positive {
  color: var(--green)
}
.center {
  text-align: center
}
.nowrap {
  white-space: nowrap
}
.icon {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  vertical-align: middle
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.65px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 9px
}
.eyebrow.light {
  color: #bccfc4
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  background: var(--white);
  padding: 15px;
  z-index: 100
}
.skip-link:focus {
  top: 10px
}
:focus-visible {
  outline: 3px solid #da8b54;
  outline-offset: 3px
}
[hidden] {
  display: none!important
}
/* Workspace frame */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  padding: 33px 20px 22px;
  background: var(--forest-deep);
  color: #c0d0c7;
  display: flex;
  flex-direction: column;
  z-index: 40
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  line-height: 1;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: -1px
}
.brand-mark {
  width: 44px;
  height: 44px;
  border: 1px solid #ffffff36;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  font-size: 36px;
  font-family: Georgia,serif;
  position: relative
}
.brand-mark span {
  font-size: 17px;
  color: #edab79;
  position: absolute;
  right: 5px;
  bottom: 4px
}
.brand-caption {
  display: block;
  font-size: 7px;
  letter-spacing: 2px;
  color: #bbcec2;
  margin-top: 9px;
  font-weight: 400
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  margin: 44px 14px 14px;
  color: #96aca0
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 14px;
  margin: 3px 0;
  border-radius: 9px;
  font-size: 13px;
  min-height: 47px;
  transition: background .18s,color .18s
}
.nav-link .icon {
  width: 19px;
  height: 19px;
  opacity: .85
}
.nav-link:hover {
  background: #ffffff0b;
  color: white
}
.nav-link.active {
  background: #315248;
  color: white
}
.nav-link.active .icon {
  color: #e6bf8f
}
.nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  background: #edba82;
  border-radius: 50%
}
.sidebar-foot {
  margin-top: auto;
  padding: 30px 12px 0;
  font-size: 10px;
  color: #b3c7bb
}
.sidebar-foot small {
  font-size: 9px;
  color: #80998a;
  margin-top: 12px
}
.status-dot,.mini-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a3c2a3;
  margin-right: 6px
}
.app-shell {
  margin-left: 238px;
  min-height: 100vh
}
.topbar {
  height: 83px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 26px
}
.breadcrumb {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap
}
.breadcrumb span {
  padding: 0 12px;
  color: #bbc0b9
}
.breadcrumb strong {
  font-weight: 500;
  color: var(--ink)
}
.global-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: #fafbf8;
  border-radius: 9px;
  padding: 0 12px;
  gap: 9px;
  width: min(310px,32vw);
  height: 40px
}
.global-search>.icon {
  width: 17px;
  color: #90998f
}
.global-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  background: transparent;
  outline: 0;
  font-size: 12px;
  padding: 0;
  min-height: 36px
}
.global-search button {
  background: transparent;
  color: #8a978d;
  padding: 0;
  display: flex
}
.global-search button .icon {
  width: 16px
}
.profile {
  position: relative
}
.profile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none
}
.profile summary::-webkit-details-marker {
  display: none
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e6ebdf;
  color: #385a43;
  font-weight: 600;
  font-size: 13px
}
.profile-name {
  font-size: 12px;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis
}
.profile-name small {
  font-size: 10px;
  margin-top: 3px
}
.profile-menu {
  position: absolute;
  right: 0;
  top: 47px;
  width: 190px;
  background: white;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 10px 30px #173d3512;
  z-index: 20
}
.profile-menu a,.profile-menu button {
  padding: 9px 0;
  font-size: 12px
}
.main {
  max-width: 1550px;
  margin: auto;
  padding: 35px 38px 20px
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 27px
}
.page-heading p {
  margin-top: 10px;
  font-size: 13px
}
.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding: 18px 0 0;
  font-size: 10px;
  color: #939b93
}
.bottom-nav,.mobile-menu {
  display: none
}
/* Common components */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 45px;
  padding: 12px 19px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  transition: background .18s
}
.button .icon {
  width: 18px;
  height: 18px
}
.button.primary {
  background: var(--forest);
  color: #fff
}
.button.primary:hover {
  background: #28604e
}
.button.secondary {
  background: #fff;
  border-color: #dce2d8;
  color: var(--ink)
}
.button.secondary:hover {
  background: #edf1e9
}
.button.danger {
  background: #a54330;
  color: white
}
.button.full {
  width: 100%
}
.button:disabled {
  opacity: .65;
  cursor: wait
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap
}
.text-link,.text-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-weight: 600;
  background: none;
  padding: 0;
  line-height: 1.5
}
.text-link .icon,.text-button .icon {
  width: 16px
}
.text-link:hover,.text-button:hover {
  text-decoration: underline
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 23px;
  min-width: 0
}
.panel-heading {
  padding: 23px 25px 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px
}
.panel-heading p {
  margin-top: 6px
}
.panel-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 6px
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 500;
  background: #edf5eb;
  color: #3d6d4b;
  white-space: nowrap;
  line-height: 1.4
}
.badge.warning {
  background: #fff0e3;
  color: #a3602e
}
.badge.neutral {
  background: #f1f4ee;
  color: #6b766b
}
.badge .icon {
  width: 15px;
  height: 15px
}
.count {
  font-size: 11px;
  color: var(--muted);
  background: #f2f4ef;
  padding: 4px 8px;
  border-radius: 6px;
  margin-left: 7px;
  white-space: nowrap
}
.notice {
  background: #e8f1e5;
  border: 1px solid #d4e2cd;
  padding: 15px 18px;
  border-radius: 10px;
  margin-bottom: 23px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 13px;
  line-height: 1.6;
  color: #345739
}
.notice .icon {
  margin-top: 1px;
  width: 19px
}
.notice.error {
  background: #fff0eb;
  border-color: #f0cabe;
  color: #9b4132
}
.notice.secret {
  background: #fff4df;
  border-color: #e8d6b2;
  color: #6f5530;
  overflow-wrap: anywhere
}
.notice.secret>div {
  width: 100%;
  min-width: 0
}
.notice p {
  margin-top: 6px
}
.empty-state {
  text-align: center;
  padding: 44px 25px;
  color: var(--muted)
}
.empty-state>.icon {
  width: 38px;
  height: 38px;
  color: #91a38c;
  margin-bottom: 16px
}
.empty-state h3,.empty-state h2 {
  color: var(--ink);
  margin-bottom: 8px
}
.empty-state p {
  max-width: 400px;
  margin: 0 auto 20px;
  font-size: 13px
}
.empty-state p:last-child {
  margin-bottom: 0
}
.empty-state .button {
  margin-top: 1px
}
.narrow {
  max-width: 580px;
  padding: 32px;
  margin: 35px auto
}
.narrow p {
  margin: 14px 0 24px
}
.error-panel {
  padding: 40px;
  max-width: 700px;
  margin: 70px auto
}
.error-panel p {
  margin: 20px 0 28px
}
.icon-button {
  background: transparent;
  padding: 9px;
  color: var(--ink);
  border-radius: 7px
}
/* Dashboard */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
  margin-bottom: 25px
}
.stat-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 19px 21px 18px;
  min-width: 0;
  display: block
}
.stat-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px
}
.stat-label .icon {
  width: 17px;
  height: 17px;
  color: #829782
}
.stat-card>strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.7px;
  white-space: nowrap;
  font-weight: 600
}
.stat-card>strong small {
  display: inline;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted)
}
.stat-card>span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 17px
}
.stat-card.featured {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff
}
.featured .stat-label,.featured>span {
  color: #c0d2c4
}
.featured .stat-label .icon {
  color: #b3c3a2
}
.featured .mini-dot {
  background: #bfd092
}
.dashboard-middle {
  display: grid;
  grid-template-columns: minmax(0,1.85fr) minmax(270px,1fr);
  gap: 23px;
  margin-bottom: 30px
}
.dashboard-middle .panel {
  margin: 0
}
.trend-panel {
  padding-bottom: 20px
}
.trend-total {
  padding: 0 25px;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.7px
}
.trend-total span {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-left: 12px
}
.bar-chart {
  height: 165px;
  margin: 18px 28px 0;
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top,transparent,transparent 39px,#eff1eb 40px)
}
.bar-column {
  flex: 1;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center
}
.bar-track {
  height: 130px;
  width: 100%;
  max-width: 42px;
  display: flex;
  align-items: flex-end
}
.bar-fill {
  height: 100%;
  width: 100%;
  color: #abc5ac;
  display: block
}
.bar-fill.today {
  color: var(--forest)
}
.bar-column>span:last-child {
  font-size: 10px;
  color: var(--muted);
  height: 28px;
  margin-top: 7px
}
.bar-tooltip {
  position: absolute;
  top: -5px;
  font-size: 9px;
  font-weight: 500;
  white-space: nowrap;
  display: none;
  color: var(--ink);
  padding: 3px 5px;
  background: #f2f5ee;
  border-radius: 4px;
  z-index: 2
}
.bar-column:hover .bar-tooltip {
  display: block
}
.chart-note {
  padding: 12px 25px 0;
  font-size: 10px;
  color: var(--muted)
}
.quick-panel {
  background: #eceee1;
  border: 1px solid #e0e5d6;
  border-radius: var(--radius);
  padding: 25px
}
.quick-panel .eyebrow {
  font-size: 9px;
  color: #6d795e
}
.quick-panel h2 {
  font-family: Georgia,serif;
  font-size: 31px;
  font-weight: 400;
  margin-top: 10px
}
.quick-panel>p {
  font-size: 12px;
  color: #6c7866;
  margin: 10px 0 16px
}
.quick-panel>a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid #dce0d1
}
.quick-panel>a>.icon:first-child {
  padding: 8px;
  box-sizing: content-box;
  width: 17px;
  height: 17px;
  background: #fff9;
  border-radius: 9px
}
.quick-panel>a span {
  font-size: 12px;
  font-weight: 600;
  flex: 1
}
.quick-panel>a small {
  font-size: 10px;
  font-weight: 400;
  margin-top: 3px
}
.quick-panel>a>.icon:last-child {
  width: 16px;
  color: #7d8b71
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
  gap: 15px
}
.section-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 6px
}
.department-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 17px;
  margin-bottom: 27px
}
.department-card {
  padding: 20px 21px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform .18s,border-color .18s;
  min-width: 0
}
.department-card:hover {
  transform: translateY(-3px);
  border-color: #adbaa6
}
.department-icon {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 10px;
  margin-bottom: 15px;
  background: #f0e7f3;
  color: #88658f
}
.dept-2 .department-icon {
  background: #e5edf4;
  color: #537a95
}
.dept-3 .department-icon {
  background: #fbecdd;
  color: #b57d40
}
.dept-4 .department-icon {
  background: #f5e7e2;
  color: #a66c55
}
.department-icon .icon {
  width: 20px;
  height: 20px
}
.department-name {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 12px
}
.department-card>strong {
  font-size: 21px;
  letter-spacing: -.5px;
  white-space: nowrap
}
.department-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
  margin-top: 16px
}
.department-foot .icon {
  width: 16px
}
.department-tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 5px;
  background: #f2eaf4;
  color: #89628e;
  font-size: 10px;
  white-space: nowrap
}
.department-tag.dept-2 {
  background: #e9f0f7;
  color: #5b7d99
}
.department-tag.dept-3 {
  background: #fcf0e1;
  color: #ac7a3e
}
.department-tag.dept-4 {
  background: #f5eae5;
  color: #a77258
}
/* Tables and forms */
.table-scroll {
  width: 100%;
  overflow: auto;
  border-radius: 0 0 var(--radius) var(--radius)
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px
}
thead {
  background: #fafbf8;
  color: #7c847b;
  font-size: 10px;
  font-weight: 500
}
th {
  font-weight: 500;
  letter-spacing: .15px
}
td,th {
  padding: 15px 23px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: middle
}
td small {
  font-size: 10px;
  margin-top: 4px;
  max-width: 310px
}
tbody tr:last-child td {
  border-bottom: 0
}
tbody tr:hover {
  background: #fcfdfb
}
.row-arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 30px;
  color: #8e9c8a
}
.row-arrow .icon {
  width: 17px
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 19px
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px;
  padding: 10px 25px 25px
}
.form-grid>label,.form-stack>label,.inline-form>label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 12px;
  font-weight: 500
}
label {
  line-height: 1.5
}
.required {
  color: var(--orange)
}
input,select,textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid #dfe5da;
  border-radius: 8px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: 0;
  transition: border-color .15s,box-shadow .15s
}
input::placeholder {
  color: #9ca39a;
  font-weight: 400
}
input:focus,select:focus,textarea:focus {
  border-color: #819b77;
  box-shadow: 0 0 0 3px #a2bb8d1c
}
input[type=checkbox] {
  width: 17px;
  min-height: 17px;
  height: 17px;
  accent-color: var(--forest);
  margin: 0;
  flex-shrink: 0
}
input[type=number] {
  appearance: textfield;
  -moz-appearance: textfield
}
input::-webkit-inner-spin-button {
  appearance: none
}
.form-actions {
  grid-column: 1/-1;
  display: flex;
  gap: 12px;
  align-items: center
}
.form-help {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 11px;
  background: #f6f8f2;
  padding: 13px;
  border-radius: 8px;
  line-height: 1.7
}
.span-2 {
  grid-column: 1/-1
}
.add-panel>summary {
  padding: 21px 25px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center
}
.add-panel>summary::after {
  content: '+';
  font-size: 19px;
  margin-left: auto;
  font-weight: 400;
  color: var(--muted)
}
.add-panel[open]>summary::after {
  content: '−'
}
.add-panel>summary::-webkit-details-marker {
  display: none
}
.item-search {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fafbf8;
  margin: 0 25px 10px
}
.item-search .icon {
  width: 17px;
  color: #8c9789
}
.item-search input {
  border: 0;
  box-shadow: none;
  background: transparent;
  font-weight: 400;
  padding: 11px 0;
  outline: 0
}
.item-search.compact {
  max-width: 240px;
  margin: 0
}
.item-search.compact input {
  min-height: 35px;
  font-size: 11px
}
.checkbox-field {
  flex-direction: row!important;
  align-items: center
}
.department-checks {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0
}
.department-checks legend {
  font-size: 12px;
  padding: 0 5px
}
.department-checks label {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 17px;
  padding: 23px;
  flex-wrap: wrap
}
.inline-form label {
  flex: 1;
  min-width: 160px
}
.mini-form {
  min-width: 190px;
  padding-top: 12px
}
.reset-link {
  font-size: 12px;
  margin-top: 10px;
  background: #fff9
}
.department-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
  overflow: auto
}
.department-tabs a {
  padding: 12px 19px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  border: 1px solid #dde4d8;
  background: white
}
.department-tabs a.active {
  background: var(--forest);
  border-color: var(--forest);
  color: white
}
.sale-layout {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(290px,1fr);
  gap: 25px;
  align-items: start
}
.sale-layout .panel {
  margin: 0
}
.sale-items {
  padding: 0 25px 15px
}
.sale-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line)
}
.sale-item:last-child {
  border: 0
}
.sale-item strong {
  font-size: 13px
}
.sale-item small {
  font-size: 11px;
  margin-top: 7px
}
.quantity-control {
  display: flex;
  align-items: center;
  background: #f6f8f2;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  flex-shrink: 0
}
.quantity-control button {
  width: 37px;
  height: 43px;
  background: transparent;
  color: var(--forest);
  font-size: 21px
}
.quantity-control button:hover {
  background: #e6ede0
}
.quantity-control input {
  width: 45px;
  min-height: 43px;
  padding: 5px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
  font-size: 14px;
  box-shadow: none
}
.checkout {
  padding: 25px;
  position: sticky;
  top: 20px
}
.checkout h2 {
  margin-bottom: 23px
}
.checkout-total {
  border-top: 1px dashed #d4dfce;
  padding-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px
}
.checkout-total>span {
  font-size: 12px;
  color: var(--muted)
}
.checkout-total>strong {
  font-size: 30px;
  letter-spacing: -.7px
}
.checkout-total small {
  font-size: 11px
}
.receipt {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px
}
.receipt-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px
}
.receipt-brand {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -2px
}
.receipt-brand span {
  color: var(--orange)
}
.receipt-meta {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-bottom: 25px
}
.receipt-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 13px
}
.receipt td,.receipt th {
  padding-left: 0;
  padding-right: 16px
}
.receipt-total {
  display: flex;
  justify-content: space-between;
  padding: 25px 0;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 20px
}
.receipt-total strong {
  font-size: 25px
}
.danger-zone {
  max-width: 800px;
  margin: 25px auto;
  padding: 22px
}
.danger-zone summary {
  color: #9c5d48;
  font-size: 12px
}
.danger-zone p {
  margin-top: 15px
}
.danger-zone .inline-form {
  padding: 18px 0 0
}
.stock-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-bottom: 25px
}
.stock-card {
  margin: 0;
  padding: 23px
}
.stock-card>div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px
}
.stock-card>div>.icon {
  color: #96a78e
}
.stock-card h3 {
  font-size: 14px;
  margin-bottom: 19px
}
.stock-card>strong {
  display: block;
  font-size: 30px;
  margin-bottom: 17px;
  letter-spacing: -1px
}
.stock-card strong small {
  display: inline;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px
}
.report-stats {
  grid-template-columns: repeat(3,1fr)
}
.report-note {
  font-size: 11px;
  color: var(--muted);
  padding: 20px 25px;
  border-top: 1px solid var(--line)
}
.simple-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  font-size: 12px
}
.simple-row strong {
  white-space: nowrap
}
.simple-row small {
  font-size: 10px;
  margin-top: 4px
}
.audit-details {
  white-space: pre-wrap;
  max-width: 350px;
  font-size: 10px;
  overflow-wrap: anywhere;
  background: #f4f6f0;
  padding: 12px;
  border-radius: 7px;
  max-height: 250px;
  overflow: auto
}
.pagination {
  justify-content: center
}
.search-page-form {
  display: flex;
  align-items: center;
  padding: 20px;
  gap: 15px
}
.search-page-form .item-search {
  margin: 0;
  flex: 1
}
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 25px;
  border-top: 1px solid var(--line)
}
.search-result:hover {
  background: #f7f9f3
}
.search-result strong {
  display: block;
  font-size: 14px;
  margin: 6px 0
}
.search-result small {
  overflow-wrap: anywhere
}
.search-result .eyebrow {
  font-size: 9px;
  margin: 0
}
/* Sign in */
.guest-body {
  background: #f8f9f5
}
.guest-main {
  min-height: 100vh
}
.guest-main>.notice {
  position: relative;
  max-width: 600px;
  margin: 20px auto
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh
}
.login-story {
  background: var(--forest);
  color: white;
  padding: 45px 55px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden
}
.login-story::after {
  content: '';
  position: absolute;
  right: -180px;
  top: 160px;
  width: 470px;
  height: 470px;
  border: 1px solid #ffffff0b;
  border-radius: 50%;
  box-shadow: 0 0 0 60px #ffffff03,0 0 0 120px #ffffff03;
  pointer-events: none
}
.login-story .brand {
  font-size: 38px
}
.login-story .brand-mark {
  width: 50px;
  height: 50px;
  font-size: 42px
}
.story-copy {
  margin: auto 0;
  padding: 55px 0 40px;
  position: relative;
  z-index: 1
}
.story-copy .eyebrow {
  font-size: 10px;
  margin-bottom: 30px
}
.story-copy h1 {
  font-family: Georgia,"Times New Roman",serif;
  font-size: clamp(48px,5.7vw,86px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -3px;
  color: #f4f3df
}
.story-copy h1>span {
  color: #e9ad7b
}
.story-copy p {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  color: #b8c9bd;
  margin-top: 30px
}
.business-pills {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-bottom: 45px
}
.business-pills>span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 9px 11px;
  border: 1px solid #ffffff23;
  border-radius: 6px;
  color: #c9d6ca
}
.business-pills .icon {
  width: 14px;
  height: 14px;
  color: #c6ccab
}
.story-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #ffffff20;
  padding-top: 22px;
  color: #9bb3a2;
  font-size: 10px
}
.story-footer>span {
  font-size: 18px;
  color: #dac6a5
}
.login-form-panel {
  padding: 45px 45px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center
}
.login-form-inner {
  width: 100%;
  max-width: 370px;
  margin: auto 0;
  padding: 35px 0
}
.login-form-inner>.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  margin-bottom: 17px
}
.login-form-inner>h2 {
  font-size: 36px;
  letter-spacing: -1.6px;
  font-weight: 600
}
.login-form-inner>.muted {
  font-size: 13px;
  margin-top: 12px;
  margin-bottom: 35px
}
.login-form-inner .form-stack {
  gap: 22px
}
.login-form-inner .form-stack label {
  font-size: 12px;
  gap: 10px
}
.login-form-inner .form-stack input {
  height: 49px;
  font-size: 12px
}
.login-form-inner .form-stack>.small {
  font-size: 11px;
  margin-top: -7px
}
.login-form-inner .button {
  height: 49px;
  margin-top: 3px
}
.password-input {
  position: relative;
  display: block
}
.password-input input {
  padding-right: 62px
}
.password-toggle {
  position: absolute;
  right: 13px;
  top: 15px;
  font-size: 11px;
  color: #68795f;
  background: transparent;
  padding: 1px
}
.install-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e0e5d8;
  border-radius: 10px;
  padding: 17px 14px;
  margin-top: 29px;
  background: #f1f4e9
}
.install-icon {
  width: 32px;
  height: 35px;
  display: grid;
  place-items: center;
  color: #70815a
}
.install-card>div {
  flex: 1
}
.install-card strong {
  font-size: 11px;
  font-weight: 600
}
.install-card small {
  font-size: 9px;
  margin-top: 4px
}
.install-card .text-button {
  font-size: 11px
}
.install-help {
  padding: 10px 2px
}
.login-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: #8d9788;
  margin-top: 28px
}
.login-secure .icon {
  width: 14px;
  height: 14px
}
.login-copyright {
  font-size: 9px;
  color: #9da595;
  margin-top: 25px
}
.login-mobile-brand {
  display: none
}
@media(min-width:1500px) {
  .main {
    padding-top: 42px
  }
  .stats-grid {
    gap: 22px
  }
  .stat-card {
    padding: 23px 25px
  }
  .stat-card>strong {
    font-size: 30px
  }
  .dashboard-middle {
    grid-template-columns: 2fr 1fr
  }
  .bar-chart {
    height: 195px
  }
  .bar-track {
    height: 160px
  }
  .department-card {
    padding: 23px 25px
  }
}
@media(max-width:1200px) {
  .sidebar {
    width: 210px;
    padding-left: 14px;
    padding-right: 14px
  }
  .app-shell {
    margin-left: 210px
  }
  .topbar {
    padding: 0 25px;
    gap: 18px
  }
  .main {
    padding: 28px 25px 20px
  }
  .stat-card {
    padding: 17px
  }
  .stat-card>strong {
    font-size: 22px
  }
  .stats-grid {
    gap: 12px
  }
  .department-card {
    padding: 17px
  }
  .department-card>strong {
    font-size: 18px
  }
  .department-grid {
    gap: 12px
  }
  .profile-name {
    display: none
  }
  .dashboard-middle {
    gap: 18px;
    grid-template-columns: minmax(0,1.6fr) minmax(250px,1fr)
  }
  .sale-layout {
    gap: 18px;
    grid-template-columns: minmax(0,1.4fr) minmax(270px,1fr)
  }
  td,th {
    padding-left: 18px;
    padding-right: 18px
  }
  .login-story {
    padding-left: 38px;
    padding-right: 38px
  }
}
@media(max-width:950px) {
  .sidebar {
    width: 190px
  }
  .app-shell {
    margin-left: 190px
  }
  .sidebar .brand {
    font-size: 29px
  }
  .nav-link {
    font-size: 12px;
    padding: 12px
  }
  .workspace-label {
    font-size: 8px
  }
  .breadcrumb {
    display: none
  }
  .global-search {
    margin-left: 0;
    flex: 1;
    width: auto;
    max-width: 400px
  }
  .profile {
    margin-left: auto
  }
  .stats-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .stat-card>strong {
    font-size: 27px
  }
  .department-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
  .dashboard-middle {
    grid-template-columns: 1fr
  }
  .quick-panel {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px 15px;
    padding: 20px
  }
  .quick-panel>.eyebrow,.quick-panel>h2,.quick-panel>p {
    grid-column: 1/-1
  }
  .quick-panel>p {
    display: none
  }
  .quick-panel>h2 {
    font-size: 25px;
    margin: 0 0 10px
  }
  .quick-panel>.eyebrow {
    margin: 0
  }
  .quick-panel>a {
    border: 0;
    padding: 5px 0
  }
  .quick-panel>a>.icon:first-child {
    display: none
  }
  .quick-panel>a small {
    font-size: 9px
  }
  .sale-layout {
    grid-template-columns: 1fr
  }
  .checkout {
    position: static
  }
  .checkout .form-stack {
    display: grid;
    grid-template-columns: 1fr 1fr
  }
  .checkout .checkout-total,.checkout .button,.checkout .form-stack>p {
    grid-column: 1/-1
  }
  .stock-grid {
    grid-template-columns: repeat(2,1fr)
  }
  .report-stats {
    grid-template-columns: 1fr
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 0
  }
  .login-form-panel {
    padding: 35px
  }
  .login-story {
    padding: 35px 30px 25px
  }
  .story-copy h1 {
    font-size: 60px
  }
}
@media(max-width:700px) {
  :root {
    font-size: 14px
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    width: 255px;
    box-shadow: 15px 0 60px #163c3430;
    overflow-y: auto
  }
  .sidebar.menu-open {
    transform: translateX(0)
  }
  .sidebar .brand {
    font-size: 34px
  }
  .sidebar nav {
    padding-bottom: 70px
  }
  .sidebar .nav-link {
    font-size: 13px
  }
  .sidebar-foot {
    display: none
  }
  .app-shell {
    margin: 0
  }
  .topbar {
    height: 66px;
    padding: 0 17px;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 30;
    background: #fffffff5;
    backdrop-filter: blur(12px)
  }
  .mobile-menu {
    display: flex;
    align-items: center;
    margin-left: -7px
  }
  .global-search {
    height: 37px;
    max-width: none
  }
  .global-search input {
    font-size: 11px
  }
  .global-search>.icon {
    width: 15px
  }
  .profile summary {
    gap: 0
  }
  .avatar {
    width: 32px;
    height: 32px
  }
  .main {
    padding: 25px 18px 98px
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 23px
  }
  .page-heading h1 {
    font-size: 28px;
    letter-spacing: -1px;
    line-height: 1.2
  }
  .page-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.7;
    margin-top: 8px
  }
  .page-heading>.button {
    min-height: 44px;
    padding: 11px 16px
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 20px
  }
  .stat-card {
    padding: 16px 14px;
    border-radius: 12px
  }
  .stat-label {
    font-size: 10px;
    margin-bottom: 19px;
    gap: 5px
  }
  .stat-label .icon {
    width: 15px;
    height: 15px
  }
  .stat-card>strong {
    font-size: 23px
  }
  .stat-card>strong small {
    font-size: 10px
  }
  .stat-card>span {
    font-size: 9px;
    line-height: 1.5;
    margin-top: 14px
  }
  .dashboard-middle {
    gap: 18px;
    margin-bottom: 25px
  }
  .panel {
    border-radius: 13px;
    margin-bottom: 20px
  }
  .panel-heading {
    padding: 20px 18px 17px
  }
  .panel-heading h2 {
    font-size: 16px
  }
  .panel-heading .badge {
    font-size: 8px
  }
  .trend-total {
    padding: 0 18px;
    font-size: 25px
  }
  .trend-total span {
    font-size: 10px;
    display: block;
    margin: 7px 0 0
  }
  .bar-chart {
    height: 150px;
    margin: 20px 20px 0;
    gap: 18px
  }
  .bar-track {
    height: 120px;
    max-width: 30px
  }
  .bar-column>span:last-child {
    font-size: 9px
  }
  .chart-note {
    padding: 12px 18px 0;
    font-size: 9px
  }
  .quick-panel {
    padding: 20px 18px;
    gap: 8px
  }
  .quick-panel h2 {
    font-size: 27px
  }
  .quick-panel>a {
    display: flex;
    align-items: flex-start;
    gap: 5px
  }
  .quick-panel>a span {
    font-size: 11px
  }
  .quick-panel>a>.icon:last-child {
    width: 13px;
    margin-top: 2px
  }
  .quick-panel>a small {
    font-size: 9px;
    line-height: 1.6;
    margin-top: 5px
  }
  .section-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1.2px
  }
  .section-heading h2 {
    font-size: 17px
  }
  .section-heading>.small {
    font-size: 9px
  }
  .department-grid {
    gap: 11px;
    margin-bottom: 24px
  }
  .department-card {
    padding: 18px 16px
  }
  .department-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 13px
  }
  .department-name {
    font-size: 12px;
    margin-bottom: 11px
  }
  .department-card>strong {
    font-size: 22px
  }
  .department-foot {
    font-size: 9px;
    margin-top: 15px
  }
  .department-foot .icon {
    width: 14px
  }
  .department-tag {
    font-size: 9px
  }
  .recent-panel .panel-heading p {
    font-size: 10px
  }
  .text-link {
    font-size: 11px
  }
  .recent-panel .text-link .icon {
    width: 13px
  }
  td,th {
    padding: 14px 18px
  }
  table {
    font-size: 11px;
    min-width: 570px
  }
  thead {
    font-size: 9px
  }
  .badge {
    font-size: 9px
  }
  .empty-state {
    padding: 35px 20px
  }
  .empty-state h3 {
    font-size: 15px
  }
  .empty-state p {
    font-size: 12px
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    height: calc(66px + env(safe-area-inset-bottom));
    padding: 8px 9px calc(5px + env(safe-area-inset-bottom));
    z-index: 50;
    justify-content: space-around
  }
  .bottom-nav a {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    color: #83907f
  }
  .bottom-nav .icon {
    width: 21px;
    height: 21px
  }
  .bottom-nav a.active {
    color: var(--forest);
    font-weight: 600
  }
  .bottom-nav a:nth-child(2)>.icon {
    background: var(--forest);
    color: white;
    padding: 5px;
    box-sizing: content-box;
    width: 19px;
    height: 19px;
    border-radius: 8px;
    margin-top: -5px
  }
  .page-footer {
    font-size: 9px;
    margin-top: 28px
  }
  .form-grid {
    grid-template-columns: 1fr;
    padding: 8px 18px 20px;
    gap: 19px
  }
  .form-grid .span-2 {
    grid-column: auto
  }
  .form-stack>label,.form-grid>label {
    font-size: 12px
  }
  .form-actions {
    flex-wrap: wrap
  }
  .form-actions>.button {
    flex: 1
  }
  input,select,textarea {
    font-size: 16px;
    min-height: 48px
  }
  .form-grid input::placeholder,.form-stack input::placeholder {
    font-size: 13px
  }
  .add-panel>summary {
    padding: 19px 18px;
    font-size: 13px
  }
  .item-search {
    margin: 0 18px 10px
  }
  .item-search input {
    font-size: 13px
  }
  .item-search.compact {
    max-width: 160px;
    padding: 0 8px
  }
  .item-search.compact input {
    font-size: 10px
  }
  .item-search.compact>.icon {
    width: 14px
  }
  .department-tabs {
    gap: 7px;
    margin-bottom: 20px
  }
  .department-tabs a {
    padding: 11px 15px;
    font-size: 11px
  }
  .sale-items {
    padding: 0 18px 10px
  }
  .sale-item {
    padding: 18px 0
  }
  .sale-item strong {
    font-size: 13px
  }
  .sale-item small {
    font-size: 10px
  }
  .quantity-control button {
    width: 38px;
    height: 45px
  }
  .quantity-control input {
    width: 40px;
    font-size: 16px
  }
  .checkout {
    padding: 22px 18px
  }
  .checkout .form-stack {
    display: flex
  }
  .checkout h2 {
    font-size: 18px
  }
  .checkout-total strong {
    font-size: 31px
  }
  .checkout .button {
    min-height: 48px
  }
  .receipt {
    padding: 23px 18px
  }
  .receipt-meta {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px
  }
  .receipt-meta strong {
    font-size: 12px
  }
  .receipt table {
    min-width: 360px
  }
  .receipt-total strong {
    font-size: 23px
  }
  .danger-zone {
    padding: 20px 18px
  }
  .stock-grid {
    gap: 11px;
    margin-bottom: 20px
  }
  .stock-card {
    padding: 17px 14px;
    margin: 0
  }
  .stock-card h3 {
    font-size: 12px;
    line-height: 1.5;
    min-height: 36px;
    margin-bottom: 10px
  }
  .stock-card>strong {
    font-size: 29px
  }
  .stock-card>div {
    margin-bottom: 14px
  }
  .stock-card>div>.icon {
    width: 16px
  }
  .stock-card .badge {
    font-size: 8px;
    padding: 5px 7px
  }
  .report-stats {
    grid-template-columns: 1fr
  }
  .inline-form {
    padding: 20px 18px;
    gap: 15px
  }
  .inline-form label {
    min-width: 120px
  }
  .inline-form>.button {
    width: 100%
  }
  .search-page-form {
    padding: 16px;
    gap: 10px;
    flex-wrap: wrap
  }
  .search-page-form .item-search {
    min-width: 100%
  }
  .search-page-form>.button {
    width: 100%
  }
  .search-result {
    padding: 20px 18px
  }
  .search-result strong {
    font-size: 13px
  }
  .search-result small {
    font-size: 11px
  }
  .narrow {
    padding: 25px;
    margin: 25px 18px
  }
  .narrow h1 {
    font-size: 28px
  }
  .error-panel {
    padding: 28px 22px;
    margin: 40px 18px
  }
  .notice {
    font-size: 12px;
    padding: 14px
  }
  .login-layout {
    display: block
  }
  .login-story {
    display: none
  }
  .login-form-panel {
    min-height: 100vh;
    padding: 35px 28px 24px
  }
  .login-mobile-brand {
    display: block;
    font-size: 39px;
    letter-spacing: -2px;
    font-weight: 650;
    align-self: flex-start
  }
  .login-mobile-brand>span {
    color: var(--orange)
  }
  .login-form-inner {
    padding: 45px 0 30px;
    max-width: 420px
  }
  .login-form-inner>h2 {
    font-size: 36px
  }
  .login-form-inner>.eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px
  }
  .login-form-inner .form-stack input {
    font-size: 16px;
    height: 51px
  }
  .login-form-inner .form-stack input::placeholder {
    font-size: 13px
  }
  .login-form-inner .button {
    height: 51px;
    font-size: 13px
  }
  .login-form-inner>.muted {
    font-size: 13px;
    margin-bottom: 32px
  }
  .install-card {
    margin-top: 28px
  }
  .install-card strong {
    font-size: 11px
  }
  .install-card small {
    font-size: 9px
  }
  .login-copyright {
    font-size: 9px
  }
  .login-secure {
    font-size: 10px
  }
  .password-toggle {
    top: 17px
  }
}
@media(max-width:370px) {
  .main {
    padding-left: 13px;
    padding-right: 13px
  }
  .stat-card>strong {
    font-size: 20px
  }
  .department-card>strong {
    font-size: 20px
  }
  .topbar {
    padding-left: 12px;
    padding-right: 12px
  }
  .quick-panel>a span {
    font-size: 10px
  }
  .login-form-panel {
    padding-left: 23px;
    padding-right: 23px
  }
  .login-form-inner>h2 {
    font-size: 33px
  }
  .install-card {
    padding: 13px 10px;
    gap: 6px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition: none!important;
    scroll-behavior: auto!important
  }
}
@media print {
  body {
    background: white
  }
  .sidebar,.topbar,.bottom-nav,.page-footer,.page-heading .actions,.no-print,.notice {
    display: none!important
  }
  .app-shell {
    margin: 0
  }
  .main {
    padding: 0;
    max-width: none
  }
  .receipt {
    border: 0;
    margin: 0;
    max-width: none;
    box-shadow: none
  }
  .page-heading {
    margin: 20px 0
  }
  table {
    min-width: 0!important
  }
  .receipt .badge {
    border: 1px solid #ccc
  }
}
/* Long amounts and product names must stay inside small phone cards. */
.stat-card>strong,.department-card>strong {
  white-space: normal;
  overflow-wrap: anywhere
}
.sale-item>div:first-child {
  min-width: 0;
  overflow-wrap: anywhere
}
@media(max-width:700px) {
  .quantity-control button {
    width: 44px
  }
}
