@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  --orange: #e96c3e;
  --orange-dark: #d75b2e;
  --orange-soft: #fff0e8;
  --ink: #262b2a;
  --muted: #8a8e8c;
  --line: #eceeeb;
  --paper: #fff;
  --green: #448970;
  --bg: #f7f8fa;
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --heading: 'Manrope', var(--font);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #efaf8f;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px #e96c3e12;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--heading);
}
button .icon,
a .icon {
  flex-shrink: 0;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
button {
  border: 0;
  background: none;
}
strong {
  font-weight: 600;
}
small {
  font-size: 12px;
}
input,
select,
textarea {
  border: 1px solid #e2e5e1;
  background: white;
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  min-width: 0;
}
input::placeholder {
  color: #a1a5a2;
}
input[type='search']::-webkit-search-cancel-button {
  cursor: pointer;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
}
label small {
  font-weight: 400;
  color: var(--muted);
}
.muted {
  color: var(--muted);
}
.text-orange {
  color: var(--orange);
}
.text-green {
  color: var(--green);
}
.text-red {
  color: #c35454;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 28px var(--heading);
  letter-spacing: -1.5px;
}
.brand > span:last-child {
  display: flex;
  align-items: baseline;
}
.brand-light {
  font-weight: 500;
}
.brand i {
  display: block;
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  margin-left: 2px;
}
.brand-mark {
  background: var(--orange);
  color: #fff;
  border-radius: 10px;
  width: 35px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -4px;
  padding-right: 5px;
  padding-bottom: 5px;
  position: relative;
}
.brand-mark span {
  width: 10px;
  height: 10px;
  background: #f7f8fa;
  border-radius: 50%;
  position: absolute;
  right: -3px;
  top: 4px;
}
.app-body {
  background: var(--bg);
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 242px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding: 30px 19px 18px;
}
.sidebar-brand {
  padding: 0 14px 30px;
}
.workspace {
  padding: 13px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 2px 28px;
}
.workspace-symbol {
  width: 35px;
  height: 37px;
  border-radius: 7px;
  background: #f4f0e9;
  display: grid;
  place-items: center;
  color: #8a806c;
}
.workspace strong {
  font-size: 12px;
  display: block;
}
.workspace small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #999f9a;
  padding: 0 14px;
  margin-bottom: 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #7b827e;
  padding: 12px 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  transition: 0.18s;
}
.sidebar nav a:hover {
  background: #f9f8f5;
  color: var(--ink);
}
.sidebar nav a.active {
  background: var(--orange-soft);
  color: #db653a;
  font-weight: 600;
}
.sidebar nav .icon {
  width: 18px;
  height: 18px;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #f0f1ee;
  color: #8a8e89;
  padding: 2px 5px;
  border-radius: 4px;
}
.sidebar nav a.active .nav-count {
  background: #f9dbcb;
  color: #cd5d30;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 24px;
}
.little-promo {
  background: #fcf8f2;
  border: 1px solid #f4eee4;
  border-radius: 10px;
  padding: 15px;
  margin: 0 3px 16px;
  position: relative;
}
.promo-spark {
  position: absolute;
  right: 15px;
  top: 15px;
  color: #dba76c;
}
.little-promo strong {
  display: block;
  font: 600 12px/1.8 var(--heading);
  letter-spacing: -0.1px;
}
.little-promo a {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: #9b7c51;
}
.little-promo .icon {
  width: 14px;
}
.nav-help {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8a8e89;
  padding: 12px 13px;
  font-size: 11px;
  margin-bottom: 15px;
}
.nav-help .icon {
  width: 17px;
}
.sidebar-user {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 18px 5px 0;
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e9ede3;
  color: #6d7c58;
  font-size: 13px;
  font-weight: 700;
  border: 3px solid #f6f7f3;
}
.avatar.small {
  width: 33px;
  height: 33px;
  font-size: 11px;
}
.sidebar-user strong {
  display: block;
  font-size: 11px;
}
.sidebar-user small {
  display: block;
  font-size: 10px;
  color: #969c96;
  margin-top: 3px;
}
.sidebar-user .icon-btn {
  margin-left: auto;
  width: 27px;
}
.icon-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  color: #858d87;
  background: transparent;
}
.icon-btn:hover {
  background: #f3f5f1;
  color: var(--ink);
}
.main-shell {
  margin-left: 242px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}
.breadcrumb {
  display: flex;
  gap: 16px;
  font-size: 11px;
  align-items: center;
  color: #939893;
}
.breadcrumb strong {
  font-weight: 500;
  color: #535b54;
}
.crumb-slash {
  color: #c8ccc7;
}
.topbar-actions {
  display: flex;
  gap: 22px;
  align-items: center;
}
.top-date {
  color: #91978f;
  font-size: 11px;
}
.demo-tag {
  font-size: 10px;
  color: #7e8b76;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.demo-tag i {
  width: 5px;
  height: 5px;
  background: #89a477;
  border-radius: 50%;
}
.notifications {
  position: relative;
}
.notifications i {
  position: absolute;
  width: 5px;
  height: 5px;
  right: 8px;
  top: 6px;
  background: var(--orange);
  border: 1px solid #fff;
  border-radius: 50%;
}
#main-content {
  padding: 32px 34px 14px;
  max-width: 1700px;
  margin: auto;
  min-height: calc(100vh - 132px);
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 15px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #8e978a;
  font-weight: 500;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -1px;
  font-weight: 750;
  line-height: 1.4;
}
.page-heading p {
  font-size: 12px;
  color: #8e948e;
  margin-top: 6px;
  line-height: 1.6;
}
.heading-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #e3e7e1;
  padding: 10px 16px;
  border-radius: 7px;
  background: #fff;
  color: #636b63;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  min-height: 39px;
  transition: 0.15s;
}
.btn:hover {
  border-color: #cad1c6;
  transform: translateY(-1px);
}
.btn .icon {
  width: 16px;
  height: 16px;
}
.btn-primary {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  box-shadow: 0 2px 3px #b1582210;
}
.btn-primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}
.btn-soft {
  background: var(--orange-soft);
  border-color: transparent;
  color: var(--orange-dark);
}
.btn-danger {
  color: #ba5050;
  border-color: #e9bcbc;
}
.btn-dark {
  background: #2c3831;
  border-color: #2c3831;
  color: white;
}
.btn-sm {
  font-size: 11px;
  padding: 7px 10px;
  min-height: 30px;
}
.btn-wide {
  width: 100%;
}
.range-select {
  font-size: 11px;
  padding: 9px 12px;
  color: #6e756d;
  background: #fff;
  border-color: #e6e9e3;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 23px;
}
.stat-card {
  background: #fff;
  border: 1px solid #e9ece7;
  border-radius: 10px;
  padding: 20px 21px;
  position: relative;
  overflow: hidden;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #858c82;
}
.stat-icon {
  width: 33px;
  height: 33px;
  background: #f2f5ef;
  color: #859475;
  border-radius: 9px;
  display: grid;
  place-items: center;
}
.stat-card:nth-child(2) .stat-icon {
  background: #edf2fa;
  color: #8297b3;
}
.stat-card:nth-child(3) .stat-icon {
  background: #fbf0e7;
  color: #c2956c;
}
.stat-card:nth-child(4) .stat-icon {
  background: #f2eef7;
  color: #a093b1;
}
.stat-icon .icon {
  width: 17px;
}
.stat-number {
  font-family: var(--heading);
  font-size: 29px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 10px 0 11px;
  line-height: 1.25;
}
.stat-bottom {
  font-size: 10px;
  color: #a1a59e;
  display: flex;
  align-items: center;
  gap: 7px;
}
.stat-trend {
  background: #f1f7ee;
  color: #6b9161;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 9px;
}
.stat-trend .icon {
  width: 11px;
  height: 11px;
}
.stat-card .sparkline {
  position: absolute;
  right: 14px;
  bottom: 19px;
  opacity: 0.75;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(285px, 1fr);
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid #e9ece7;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 21px 22px 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panel-head h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.2px;
}
.panel-head p {
  font-size: 10px;
  color: #9a9f97;
  margin-top: 5px;
}
.panel-link {
  font-size: 10px;
  color: #9b9f97;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.panel-link .icon {
  width: 13px;
}
.panel-link:hover {
  color: var(--orange);
}
.chart-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 3px 23px 2px;
}
.chart-summary strong {
  font-family: var(--heading);
  font-size: 24px;
  letter-spacing: -0.7px;
}
.chart-summary span {
  font-size: 10px;
  color: #93a68b;
}
.chart-legend {
  display: flex;
  gap: 15px;
  font-size: 9px;
  color: #92988d;
  padding: 4px 24px;
  justify-content: flex-end;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.chart-legend span:last-child i {
  background: #d9dfd1;
}
.chart-wrap {
  padding: 3px 18px 12px;
}
.sales-chart {
  width: 100%;
  height: 200px;
  display: block;
  overflow: visible;
}
.sales-chart text {
  font: 9px var(--font);
  fill: #a5aa9f;
}
.chart-footer {
  border-top: 1px solid #f1f2ee;
  display: flex;
  justify-content: space-between;
  padding: 13px 22px;
  font-size: 10px;
  color: #9aa092;
}
.chart-footer strong {
  color: #737c6c;
  font-weight: 500;
}
.popular-list {
  padding: 0 21px 9px;
}
.popular-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 0;
  border-bottom: 1px solid #f0f2ed;
}
.popular-item:last-child {
  border-bottom: 0;
}
.food-thumb {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.popular-item .item-detail {
  flex: 1;
  min-width: 0;
}
.popular-item strong {
  font-size: 11px;
  display: block;
}
.popular-item small {
  font-size: 9px;
  color: #a1a79a;
  display: block;
  margin-top: 5px;
}
.popular-item .item-sales {
  text-align: right;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}
.popular-item .item-sales small {
  font-weight: 400;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: #929a8f;
  font-size: 10px;
  padding: 12px 21px;
  background: #fafbf8;
  border-top: 1px solid #f0f2ec;
  border-bottom: 1px solid #f0f2ec;
}
td {
  padding: 15px 21px;
  font-size: 11px;
  border-bottom: 1px solid #f1f3ed;
  color: #6b7467;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fdfdfa;
}
.table-primary {
  color: #4b5549;
  font-weight: 500;
}
.table-sub {
  font-size: 9px;
  color: #9ba392;
  display: block;
  margin-top: 4px;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 500;
  background: #f0f3ed;
  color: #7e8a72;
}
.badge:before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.badge.completed,
.badge.active {
  background: #edf6ed;
  color: #6e9765;
}
.badge.preparing {
  background: #fff3df;
  color: #bd954a;
}
.badge.ready {
  background: #eef1fb;
  color: #8396b8;
}
.badge.cancelled,
.badge.suspended {
  background: #fceeee;
  color: #bd7c7c;
}
.status-button {
  padding: 0;
  background: none;
  cursor: pointer;
}
.table-footer {
  padding: 14px 22px;
  color: #9a9f94;
  font-size: 10px;
  border-top: 1px solid #f0f2ec;
  display: flex;
  justify-content: space-between;
}
.low-stock-panel {
  background: #fffdf7;
  border-color: #f0ebdc;
}
.low-stock-panel .panel-head {
  padding-bottom: 9px;
}
.low-stock-panel .panel-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #f9ecd0;
  color: #ba9b5e;
  font-size: 11px;
}
.low-stock-list {
  padding: 0 21px 8px;
}
.low-stock-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  padding: 11px 0;
  border-bottom: 1px solid #f2eedf;
}
.low-stock-item:last-child {
  border: 0;
}
.stock-count {
  color: #b59b68;
  font-size: 10px;
}
.low-stock-footer {
  padding: 12px 21px;
  border-top: 1px solid #f1ebdb;
  color: #b59961;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.low-stock-footer .icon {
  width: 13px;
}
.app-footer {
  font-size: 9px;
  color: #aab0a4;
  padding: 10px 35px 22px;
  display: flex;
  justify-content: space-between;
  max-width: 1700px;
  margin: auto;
}
.footer-dot {
  color: #96ac88;
  font-size: 6px;
  vertical-align: middle;
  margin: 0 5px;
}
.welcome-note {
  border: 1px solid #e5e9e0;
  background: #f2f5ec;
  border-radius: 9px;
  padding: 17px 20px;
  margin-bottom: 22px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: #7e8d6f;
}
.welcome-note .icon {
  width: 23px;
}
.welcome-note strong {
  font-size: 11px;
  color: #6d7e5e;
}
.welcome-note p {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 3px;
  color: #929d86;
}
.welcome-note .btn {
  margin-left: auto;
}
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 16px 21px;
  border-bottom: 1px solid var(--line);
}
.search-input {
  position: relative;
  min-width: 220px;
}
.search-input .icon {
  position: absolute;
  top: 11px;
  left: 12px;
  width: 16px;
  color: #a0a799;
}
.search-input input {
  padding: 10px 12px 10px 36px;
  width: 100%;
  font-size: 11px;
  border-color: #e9ece4;
}
.filter-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter-pill {
  border: 1px solid #e4e8df;
  border-radius: 6px;
  padding: 7px 11px;
  font-size: 11px;
  color: #8c9584;
  background: #fff;
}
.filter-pill.active {
  border-color: #f3d5c6;
  background: #fff2e9;
  color: var(--orange);
}
.empty-state {
  padding: 55px 25px;
  text-align: center;
  color: #939c8b;
}
.empty-state .icon {
  width: 33px;
  height: 33px;
  opacity: 0.6;
  margin-bottom: 13px;
}
.empty-state h3 {
  font-size: 16px;
  color: #66715e;
  margin-bottom: 8px;
}
.empty-state p {
  font-size: 12px;
  line-height: 1.7;
  max-width: 360px;
  margin: 0 auto 15px;
}
.loading-state {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12px;
  color: #8c9685;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #ecefe7;
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.product-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}
.product-cell img {
  width: 37px;
  height: 37px;
  border-radius: 7px;
  object-fit: cover;
}
.stock-bar {
  height: 4px;
  width: 65px;
  background: #eef1e9;
  border-radius: 2px;
  margin-top: 5px;
}
.stock-bar span {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: #a1b98d;
}
.stock-bar.low span {
  background: #dcb774;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.form-error {
  color: #ba5555;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
}
.form-hint {
  color: #939b8b;
  font-size: 11px;
  line-height: 1.7;
  margin-top: 12px;
}
.field-prefix {
  display: flex;
  border: 1px solid #e2e5e1;
  border-radius: 8px;
  align-items: center;
  overflow: hidden;
}
.field-prefix span {
  padding-left: 13px;
  color: #9ca392;
}
.field-prefix input {
  border: 0;
  flex: 1;
  width: 100%;
}
dialog {
  border: 1px solid #e5e9e1;
  border-radius: 14px;
  padding: 0;
  width: 540px;
  max-width: calc(100vw - 32px);
  box-shadow: 0 20px 100px #26331f33;
  color: var(--ink);
}
dialog::backdrop {
  background: #24312166;
  backdrop-filter: blur(3px);
}
.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-top h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
#modal-content {
  padding: 24px;
  max-height: 75vh;
  overflow: auto;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  background: #2d3a2c;
  color: #fff;
  border-radius: 9px;
  padding: 13px 22px;
  z-index: 100;
  font-size: 12px;
  box-shadow: 0 4px 20px #0002;
  transition: 0.2s;
  max-width: 90vw;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #a64f42;
}
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 335px;
  gap: 24px;
  align-items: start;
}
.pos-menu .toolbar {
  padding: 0 0 20px;
  border: 0;
  flex-wrap: wrap;
}
.pos-menu .search-input {
  width: 100%;
}
.category-tabs {
  display: flex;
  gap: 9px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding: 1px;
}
.category-tab {
  min-width: 80px;
  display: grid;
  justify-items: center;
  gap: 9px;
  border: 1px solid #e8ece3;
  background: white;
  padding: 15px 17px 12px;
  border-radius: 10px;
  font-size: 10px;
  color: #8c9781;
}
.category-tab .emoji {
  font-size: 22px;
}
.category-tab.active {
  border-color: #efbca6;
  background: #fff1e9;
  color: #d46a3e;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-card {
  background: white;
  border: 1px solid #e7ebe1;
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition: 0.18s;
  position: relative;
}
.product-card:hover {
  border-color: #eaa98d;
  transform: translateY(-3px);
  box-shadow: 0 5px 14px #3e48230a;
}
.product-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}
.product-card-content {
  padding: 13px 14px 15px;
}
.product-card h3 {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  min-height: 36px;
}
.product-card p {
  font-size: 9px;
  color: #a5ac9c;
  margin: 3px 0 12px;
}
.product-price {
  font: 700 15px var(--heading);
  color: #d97649;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-add {
  width: 25px;
  height: 25px;
  border-radius: 6px;
  background: #fcf0e7;
  display: grid;
  place-items: center;
}
.product-add .icon {
  width: 14px;
}
.cart-panel {
  background: white;
  border: 1px solid #e7ebe1;
  border-radius: 12px;
  position: sticky;
  top: 20px;
  overflow: hidden;
}
.cart-heading {
  padding: 21px 20px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-heading h2 {
  font-size: 16px;
}
.cart-heading span {
  font-size: 10px;
  color: #a0a795;
}
.cart-types {
  display: flex;
  padding: 0 18px 17px;
  gap: 4px;
}
.cart-type {
  flex: 1;
  padding: 8px 3px;
  background: #f7f8f4;
  font-size: 10px;
  border-radius: 5px;
  color: #8c967f;
}
.cart-type.active {
  background: #fff0e6;
  color: #d17847;
}
.cart-customer {
  padding: 0 19px 17px;
}
.cart-customer input {
  font-size: 11px;
  width: 100%;
  border-color: #e8ece3;
}
.cart-items {
  padding: 0 19px;
  min-height: 140px;
  max-height: 330px;
  overflow: auto;
  border-top: 1px dashed #e7ebdf;
}
.cart-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f3e9;
}
.cart-item img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 7px;
}
.cart-item-detail {
  flex: 1;
  min-width: 0;
}
.cart-item strong {
  font-size: 10px;
  line-height: 1.5;
  display: block;
}
.cart-item small {
  font-size: 10px;
  color: #a5ac9a;
  margin-top: 4px;
  display: block;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.quantity button {
  width: 21px;
  height: 21px;
  background: #f5f7f0;
  border-radius: 4px;
  color: #9ba88d;
}
.cart-totals {
  padding: 17px 20px;
  background: #fdfdfa;
}
.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8d9981;
  margin-bottom: 11px;
}
.cart-row.total {
  border-top: 1px dashed #dfe5d5;
  padding-top: 15px;
  margin-top: 15px;
  color: #46533d;
  font: 700 17px var(--heading);
}
.cart-discount {
  width: 65px;
  padding: 3px 6px;
  font-size: 10px;
  text-align: right;
  border: 1px solid #e8ecdf;
  border-radius: 3px;
}
.cart-payment {
  padding: 3px 20px 20px;
}
.payment-options {
  display: flex;
  gap: 6px;
  margin: 8px 0 15px;
}
.payment-option {
  flex: 1;
  border: 1px solid #e6ecdc;
  border-radius: 6px;
  font-size: 9px;
  padding: 10px 3px;
  color: #8e9b80;
}
.payment-option.active {
  color: #d67b49;
  border-color: #ebbd9b;
  background: #fff8f1;
}
.cart-note {
  font-size: 9px;
  color: #a7b099;
  text-align: center;
  margin-top: 12px;
}
.receipt-summary {
  text-align: center;
  background: #f7f9f2;
  border: 1px solid #e8eddf;
  border-radius: 10px;
  padding: 22px;
  margin-bottom: 20px;
}
.receipt-summary .check-circle {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #e6efdd;
  color: #829d69;
  border-radius: 50%;
  margin: 0 auto 12px;
}
.receipt-summary h3 {
  font-size: 21px;
  margin-bottom: 8px;
}
.receipt-summary p {
  font-size: 12px;
  color: #8d9b7e;
}
.order-info {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 12px;
  border-bottom: 1px solid #f0f2e9;
}
.order-info:last-child {
  border: 0;
}
.detail-items {
  margin: 15px 0;
}
.detail-items td {
  padding: 12px 5px;
}
.status-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.panel-body {
  padding: 0 23px 23px;
}
.device-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #f0f2e9;
}
.device-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: #f4f6ee;
  color: #9ba78c;
  display: grid;
  place-items: center;
}
.device-card strong {
  font-size: 12px;
  display: block;
}
.device-card small {
  font-size: 10px;
  color: #99a38f;
  display: block;
  margin-top: 5px;
}
.device-card .badge {
  margin-left: auto;
}
.report-breakdown {
  padding: 0 23px 20px;
}
.report-row {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid #edf1e5;
  font-size: 13px;
  color: #909d7f;
}
.report-row strong {
  color: #58694a;
  font-size: 16px;
}
.report-row.report-total {
  color: var(--orange);
  font-weight: 600;
}
.report-row.report-total strong {
  color: var(--orange);
  font-size: 23px;
}
.mini-number {
  font-size: 26px;
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -1px;
}
.mobile-menu,
.mobile-close {
  display: none;
}
.help-grid {
  display: grid;
  gap: 18px;
}
.help-item {
  display: flex;
  gap: 13px;
}
.help-item .icon {
  color: var(--orange);
  margin-top: 3px;
}
.help-item h3 {
  font-size: 13px;
  margin-bottom: 5px;
}
.help-item p {
  font-size: 11px;
  line-height: 1.8;
  color: #8f9c7e;
}
/* Public website */
.landing-body {
  background: #fcfbf7;
}
.landing-nav {
  max-width: 1220px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
}
.landing-nav-links {
  display: flex;
  gap: 33px;
  font-size: 12px;
  color: #7c8474;
}
.landing-nav-actions {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 12px;
}
.landing-nav .btn {
  padding: 12px 20px;
}
.hero {
  max-width: 1220px;
  margin: 0 auto;
  padding: 65px 36px 85px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 65px;
  min-height: 600px;
}
.hero-tag {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  border: 1px solid #e7e8dc;
  background: #fffdf8;
  border-radius: 30px;
  font-size: 10px;
  color: #969a80;
  padding: 7px 12px;
  margin-bottom: 24px;
}
.hero-tag .icon {
  width: 12px;
  height: 12px;
  color: #d59158;
}
.hero h1 {
  font-size: 66px;
  line-height: 1.12;
  letter-spacing: -3.5px;
  font-weight: 750;
  color: #303d2c;
}
.hero h1 em {
  font-style: normal;
  color: var(--orange);
}
.hero-description {
  font-size: 15px;
  line-height: 1.9;
  max-width: 390px;
  color: #90987f;
  margin-top: 24px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 29px 0 18px;
}
.hero-actions .btn {
  padding: 14px 23px;
  font-size: 12px;
}
.hero-footnote {
  font-size: 10px;
  color: #a6ae98;
  display: flex;
  gap: 14px;
}
.hero-footnote span {
  display: flex;
  gap: 4px;
  align-items: center;
}
.hero-footnote .icon {
  width: 12px;
}
.hero-art {
  position: relative;
  padding: 36px 0 26px 30px;
}
.hero-art:before {
  content: '';
  position: absolute;
  inset: -15px -20px 0 20px;
  background: #f4e9d9;
  border-radius: 48% 48% 35% 40%;
  z-index: -1;
}
.hero-app {
  background: #fffdf9;
  border: 1px solid #e9e7d9;
  border-radius: 14px;
  box-shadow: 0 22px 65px #7964401a;
  overflow: hidden;
  transform: rotate(-2deg);
  position: relative;
}
.hero-app-top {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 13px 16px;
  border-bottom: 1px solid #f0eee4;
}
.hero-app-top i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #e2dfd2;
}
.hero-app-top span {
  font-size: 9px;
  color: #a9ad99;
  margin-left: 10px;
}
.hero-mini-body {
  padding: 20px;
}
.hero-mini-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.hero-mini-title h3 {
  font-size: 16px;
  letter-spacing: -0.5px;
}
.hero-mini-title span {
  font-size: 8px;
  color: #a0aa8c;
}
.hero-mini-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 15px;
}
.hero-mini-products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.hero-mini-product {
  border: 1px solid #ebeede;
  border-radius: 7px;
  overflow: hidden;
}
.hero-mini-product img {
  width: 100%;
  height: 80px;
  object-fit: cover;
}
.hero-mini-product div {
  padding: 8px;
}
.hero-mini-product strong {
  font-size: 9px;
  display: block;
}
.hero-mini-product span {
  font-size: 10px;
  color: var(--orange);
  display: block;
  margin-top: 7px;
}
.hero-mini-order {
  padding: 12px;
  background: #f8f9f1;
  border-radius: 7px;
}
.hero-mini-order h4 {
  font-size: 10px;
  border-bottom: 1px dashed #e2e8d4;
  padding-bottom: 10px;
  margin-bottom: 10px;
}
.hero-mini-order p {
  font-size: 8px;
  color: #9da58a;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 15px;
  line-height: 1.6;
}
.hero-mini-total {
  margin-top: 45px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
}
.hero-mini-pay {
  background: var(--orange);
  color: white;
  font-size: 9px;
  text-align: center;
  padding: 10px;
  border-radius: 4px;
  margin-top: 13px;
}
.floating-sale {
  background: white;
  border: 1px solid #e7ecdf;
  border-radius: 9px;
  padding: 14px 20px;
  position: absolute;
  left: -10px;
  bottom: -4px;
  box-shadow: 0 12px 30px #56663d13;
  transform: rotate(2deg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.floating-sale > span {
  width: 35px;
  height: 35px;
  background: #eef4e7;
  color: #7d9b62;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.floating-sale strong {
  font-size: 11px;
  display: block;
}
.floating-sale small {
  font-size: 9px;
  color: #9fa88c;
  margin-top: 4px;
  display: block;
}
.floating-qr {
  position: absolute;
  right: -26px;
  top: 3px;
  padding: 15px;
  background: #fffef9;
  border: 1px solid #e9eada;
  border-radius: 10px;
  box-shadow: 0 12px 30px #6b743e16;
  transform: rotate(7deg);
}
.floating-qr .icon {
  width: 35px;
  height: 35px;
  color: #64744f;
}
.floating-qr small {
  font-size: 8px;
  display: block;
  text-align: center;
  margin-top: 6px;
  color: #9ba587;
}
.landing-strip {
  border-top: 1px solid #e9ecdf;
  border-bottom: 1px solid #e9ecdf;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  font-size: 12px;
  color: #879076;
  background: #f6f7ee;
}
.landing-strip span {
  display: flex;
  gap: 9px;
  align-items: center;
}
.landing-strip .icon {
  width: 17px;
  color: #a6b095;
}
.landing-section {
  max-width: 1220px;
  margin: auto;
  padding: 85px 36px;
}
.section-heading {
  max-width: 530px;
  margin-bottom: 45px;
}
.section-heading h2 {
  font-size: 37px;
  line-height: 1.25;
  letter-spacing: -1.7px;
  color: #3c4a31;
}
.section-heading p {
  font-size: 13px;
  color: #98a186;
  line-height: 1.9;
  margin-top: 17px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px 50px;
}
.feature-card .feature-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  background: #f4eee2;
  color: #bda176;
  border-radius: 11px;
  margin-bottom: 19px;
}
.feature-card h3 {
  font-size: 16px;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  color: #536343;
}
.feature-card p {
  font-size: 12px;
  line-height: 1.9;
  color: #99a28a;
}
.hardware-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: center;
}
.hardware-visual {
  background: #ecefe2;
  border: 1px solid #e5e9d8;
  border-radius: 22px;
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
}
.device-mock {
  background: #383d35;
  padding: 15px;
  border-radius: 23px;
  box-shadow: 12px 18px 30px #6370482c;
  width: 155px;
  transform: rotate(-7deg);
}
.device-paper {
  background: #fffef7;
  padding: 18px 13px;
  text-align: center;
  font: 9px/1.7 monospace;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 96%,
    95% 100%,
    90% 96%,
    85% 100%,
    80% 96%,
    75% 100%,
    70% 96%,
    65% 100%,
    60% 96%,
    55% 100%,
    50% 96%,
    45% 100%,
    40% 96%,
    35% 100%,
    30% 96%,
    25% 100%,
    20% 96%,
    15% 100%,
    10% 96%,
    5% 100%,
    0 96%
  );
}
.device-paper strong {
  font-size: 14px;
  display: block;
  margin-bottom: 8px;
}
.device-paper .icon {
  width: 46px;
  height: 46px;
  display: block;
  margin: 15px auto 0;
}
.device-screen {
  background: var(--orange);
  color: white;
  border-radius: 7px;
  padding: 19px 10px;
  text-align: center;
  font-size: 10px;
  margin-top: 10px;
}
.device-screen strong {
  display: block;
  font-size: 20px;
  margin-bottom: 5px;
}
.hardware-tags {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.hardware-tags span {
  font-size: 10px;
  color: #87986c;
  padding: 11px 15px;
  border: 1px solid #d8e0c7;
  border-radius: 20px;
  background: #f7f9f0;
}
.hardware-tags .icon {
  width: 14px;
}
.hardware-section .section-heading {
  margin: 0;
}
.hardware-section .btn {
  margin-top: 25px;
}
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.plan-card {
  background: #fffefb;
  border: 1px solid #e8ecdd;
  border-radius: 13px;
  padding: 28px;
}
.plan-card.featured {
  border-color: #e9b694;
  box-shadow: 0 8px 25px #8b6e3810;
}
.plan-card h3 {
  font-size: 18px;
}
.plan-card .plan-desc {
  font-size: 11px;
  color: #a1aa91;
  margin-top: 8px;
}
.plan-price {
  font-size: 30px;
  font-family: var(--heading);
  font-weight: 700;
  letter-spacing: -1px;
  margin: 23px 0 5px;
  color: #62764a;
}
.plan-price small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: #a3ad91;
}
.plan-card ul {
  padding: 0;
  list-style: none;
  margin: 22px 0;
  font-size: 11px;
  color: #8d9c79;
  line-height: 2.8;
}
.plan-card li {
  display: flex;
  align-items: center;
  gap: 7px;
}
.plan-card li .icon {
  width: 13px;
  color: #a0b483;
}
.plan-note {
  font-size: 10px;
  line-height: 1.7;
  color: #9faa8d;
  margin-top: 17px;
}
.landing-cta {
  max-width: 1150px;
  margin: 10px auto 70px;
  border-radius: 18px;
  background: #38482f;
  color: #fbfcf7;
  padding: 50px 55px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.landing-cta h2 {
  font-size: 30px;
  letter-spacing: -1px;
}
.landing-cta p {
  font-size: 12px;
  margin-top: 12px;
  color: #b0c09e;
}
.landing-footer {
  max-width: 1220px;
  margin: auto;
  padding: 25px 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #a1ac91;
  font-size: 10px;
}
.landing-footer .brand {
  font-size: 23px;
}
.landing-footer .brand-mark {
  transform: scale(0.8);
}
.auth-body {
  background: #f8f9f3;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-aside {
  background: #34412e;
  padding: 45px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #f7f9ef;
  position: relative;
  overflow: hidden;
}
.auth-aside .brand-mark span {
  background: #34412e;
}
.auth-aside h1 {
  font-size: 51px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -2px;
  max-width: 450px;
}
.auth-aside h1 span {
  color: #f3b692;
}
.auth-aside p {
  font-size: 13px;
  color: #bac7a8;
  line-height: 1.9;
  max-width: 350px;
  margin-top: 20px;
}
.auth-aside small {
  font-size: 10px;
  color: #91a17b;
}
.auth-decoration {
  font-size: 130px;
  position: absolute;
  bottom: 90px;
  right: -5px;
  opacity: 0.05;
  font-weight: 800;
  transform: rotate(-90deg);
  transform-origin: center;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 35px;
}
.auth-card {
  max-width: 380px;
  width: 100%;
}
.auth-card h2 {
  font-size: 28px;
  letter-spacing: -1px;
  margin-bottom: 10px;
  color: #46573a;
}
.auth-card > p {
  font-size: 12px;
  color: #98a487;
  line-height: 1.8;
  margin-bottom: 27px;
}
.auth-card label {
  margin-bottom: 17px;
  font-size: 11px;
  color: #7f8f6b;
}
.auth-card input {
  padding: 13px;
  font-size: 12px;
}
.auth-card .form-grid {
  gap: 0 13px;
}
.auth-switch {
  font-size: 11px;
  color: #9ca88c;
  text-align: center;
  margin-top: 20px;
}
.auth-switch a {
  color: var(--orange);
}
.demo-accounts {
  border-top: 1px solid #e4e9da;
  margin-top: 28px;
  padding-top: 22px;
}
.demo-accounts p {
  font-size: 10px;
  color: #9ca88b;
  text-align: center;
  margin-bottom: 13px;
}
.demo-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.demo-buttons button {
  font-size: 10px;
  background: #fff;
  border: 1px solid #e4ead9;
  border-radius: 6px;
  padding: 9px;
  color: #8b9b76;
}
.demo-buttons button:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.back-link {
  display: inline-block;
  font-size: 11px;
  color: #a4b08e;
  margin-bottom: 40px;
}
@media (min-width: 1500px) {
  .stat-card {
    padding: 25px;
  }
  .stat-number {
    font-size: 34px;
  }
  .sales-chart {
    height: 230px;
  }
  .popular-item {
    padding: 17px 0;
  }
  .product-card img {
    height: 170px;
  }
}
@media (max-height: 850px) and (min-width: 1001px) {
  .sidebar {
    padding-top: 24px;
  }
  .sidebar-brand {
    padding-bottom: 23px;
  }
  .workspace {
    margin-bottom: 21px;
  }
  .sidebar nav a {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .sidebar nav {
    gap: 3px;
  }
  .little-promo {
    padding: 12px;
    margin-bottom: 8px;
  }
  .sidebar-bottom {
    padding-top: 15px;
  }
  .nav-help {
    margin-bottom: 6px;
    padding: 8px 13px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .main-shell {
    margin-left: 220px;
  }
  #main-content {
    padding: 28px 24px 14px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stat-number {
    font-size: 25px;
  }
  .stat-card {
    padding: 17px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
    gap: 17px;
  }
  .panel-head {
    padding: 19px 18px 15px;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .topbar-actions {
    gap: 16px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 18px;
  }
  .hero {
    gap: 35px;
  }
  .hero h1 {
    font-size: 57px;
  }
  .hero-art {
    padding-left: 0;
  }
  .floating-qr {
    right: -12px;
  }
  .hero-mini-body {
    padding: 15px;
  }
}
@media (max-width: 1000px) {
  .sidebar {
    width: 202px;
  }
  .main-shell {
    margin-left: 202px;
  }
  .workspace {
    padding: 10px 7px;
  }
  .workspace-symbol {
    display: none;
  }
  .sidebar nav a {
    font-size: 11px;
    gap: 10px;
  }
  .sidebar-user strong {
    font-size: 10px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-number {
    font-size: 23px;
  }
  .stat-bottom {
    font-size: 9px;
  }
  .stat-card .sparkline {
    display: none;
  }
  .stat-top {
    font-size: 10px;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
  }
  .dashboard-right .welcome-note {
    grid-column: 1/-1;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .top-date {
    display: none;
  }
  .pos-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 14px;
  }
  .category-tab {
    padding: 12px 10px;
    min-width: 65px;
  }
  .product-card img {
    height: 100px;
  }
  .product-grid {
    gap: 10px;
  }
  .product-card-content {
    padding: 11px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    gap: 25px;
    padding-top: 40px;
    padding-bottom: 60px;
  }
  .hero h1 {
    font-size: 48px;
  }
  .hero-description {
    font-size: 13px;
  }
  .hero-mini-layout {
    grid-template-columns: 1.4fr 1fr;
    gap: 9px;
  }
  .hero-mini-product img {
    height: 65px;
  }
  .hero-mini-product strong {
    font-size: 8px;
  }
  .hero-mini-order {
    padding: 9px;
  }
  .hero-mini-title h3 {
    font-size: 13px;
  }
  .hero-mini-total {
    font-size: 10px;
  }
  .landing-strip {
    gap: 30px;
    font-size: 10px;
  }
  .hero-mini-title span {
    display: none;
  }
  .auth-aside {
    padding: 40px;
  }
  .auth-aside h1 {
    font-size: 42px;
  }
  .auth-main {
    padding: 30px;
  }
  .landing-nav-links {
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 242px;
    box-shadow: 10px 0 60px #0001;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .mobile-close,
  .mobile-menu {
    display: inline-flex;
  }
  .main-shell {
    margin-left: 0;
  }
  .topbar {
    height: 65px;
    padding: 0 19px;
  }
  .breadcrumb {
    gap: 10px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .demo-tag {
    font-size: 9px;
  }
  .topbar .avatar {
    display: none;
  }
  #main-content {
    padding: 23px 18px 10px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .heading-actions .btn,
  .heading-actions select {
    font-size: 10px;
    min-height: 33px;
    padding: 8px 10px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-number {
    font-size: 26px;
  }
  .stat-top {
    font-size: 11px;
  }
  .stat-card .sparkline {
    display: block;
  }
  .dashboard-right {
    grid-template-columns: 1fr;
  }
  .panel {
    margin-bottom: 18px;
  }
  .dashboard-grid {
    gap: 0;
  }
  .dashboard-right {
    gap: 0;
  }
  .chart-summary strong {
    font-size: 23px;
  }
  .chart-legend {
    padding-top: 8px;
  }
  .sales-chart {
    height: 185px;
  }
  .app-footer {
    padding: 12px 20px 20px;
    font-size: 8px;
  }
  .app-footer span:first-child {
    display: none;
  }
  .pos-layout {
    grid-template-columns: 1fr;
  }
  .cart-panel {
    position: relative;
    top: 0;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .product-card img {
    height: 145px;
  }
  .product-card h3 {
    min-height: auto;
  }
  .cart-items {
    max-height: none;
  }
  .cart-heading {
    padding-bottom: 15px;
  }
  .category-tabs {
    justify-content: space-between;
  }
  .category-tab {
    flex: 1;
  }
  .toolbar {
    flex-wrap: wrap;
    padding: 15px;
  }
  .toolbar .search-input {
    flex: 1;
    min-width: 100%;
  }
  .filter-pills {
    gap: 5px;
  }
  .filter-pill {
    font-size: 10px;
    padding: 7px 8px;
  }
  .form-grid {
    gap: 14px;
  }
  .stat-bottom {
    font-size: 10px;
  }
  .form-grid label {
    font-size: 11px;
  }
  #toast {
    left: 50%;
    width: max-content;
  }
  #modal-content {
    padding: 20px;
  }
  .modal-top {
    padding: 16px 20px;
  }
  .landing-nav {
    padding: 22px 24px;
  }
  .landing-nav-links {
    display: none;
  }
  .landing-nav-actions {
    gap: 15px;
    font-size: 11px;
  }
  .landing-nav .btn {
    padding: 10px 13px;
    font-size: 10px;
  }
  .landing-nav .brand {
    font-size: 25px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 35px 24px 65px;
    gap: 45px;
  }
  .hero h1 {
    font-size: 56px;
    letter-spacing: -2.8px;
  }
  .hero-description {
    max-width: 400px;
    font-size: 14px;
  }
  .hero-art {
    max-width: 450px;
    width: 90%;
    margin: 0 auto;
    padding: 10px 0 15px;
  }
  .hero-art:before {
    inset: -15px -22px -10px -10px;
  }
  .hero-mini-product img {
    height: 90px;
  }
  .hero-mini-product strong {
    font-size: 10px;
  }
  .hero-mini-title h3 {
    font-size: 16px;
  }
  .hero-mini-body {
    padding: 20px;
  }
  .hero-mini-order {
    padding: 13px;
  }
  .hero-mini-order h4 {
    font-size: 11px;
  }
  .hero-mini-order p {
    font-size: 9px;
  }
  .hero-mini-total {
    font-size: 13px;
    margin-top: 60px;
  }
  .floating-sale {
    left: -17px;
    bottom: -10px;
  }
  .floating-qr {
    right: -24px;
    top: -15px;
  }
  .landing-strip {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 25px;
    font-size: 11px;
  }
  .landing-section {
    padding: 60px 24px;
  }
  .section-heading {
    margin-bottom: 30px;
  }
  .section-heading h2 {
    font-size: 32px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 25px;
  }
  .feature-card h3 {
    font-size: 14px;
  }
  .feature-card p {
    font-size: 11px;
  }
  .hardware-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .hardware-visual {
    min-height: 320px;
  }
  .plans-grid {
    grid-template-columns: 1fr;
  }
  .landing-cta {
    margin: 0 20px 35px;
    padding: 35px 25px;
    display: block;
  }
  .landing-cta h2 {
    font-size: 27px;
  }
  .landing-cta .btn {
    margin-top: 25px;
  }
  .landing-footer {
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
  }
  .auth-body {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 25px 30px;
    min-height: auto;
  }
  .auth-aside h1,
  .auth-aside p,
  .auth-aside small,
  .auth-decoration {
    display: none;
  }
  .auth-aside .brand {
    font-size: 26px;
  }
  .auth-main {
    padding: 35px 25px;
  }
  .auth-card {
    max-width: 400px;
  }
  .back-link {
    margin-bottom: 25px;
  }
  .little-promo {
    display: none;
  }
  .sidebar nav a {
    font-size: 12px;
    padding: 12px;
  }
  .workspace-symbol {
    display: grid;
  }
  .workspace {
    margin-bottom: 24px;
  }
  .sidebar nav {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Keep secondary text readable on bright counter displays. */
.page-heading p,
.panel-head p,
.stat-top,
.stat-bottom,
.table-sub,
.popular-item small,
.cart-row,
.form-hint,
.hero-description,
.section-heading p,
.feature-card p {
  color: #737e6b;
}
th,
.top-date,
.breadcrumb,
.chart-footer,
.chart-legend {
  color: #7a8472;
}

/* Subscription billing */
.subscription-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  background: #173d30;
  color: #fff;
  padding: 30px 34px;
  border-radius: 18px;
  margin-bottom: 24px;
}
.subscription-hero .eyebrow {
  color: #bed0a9;
}
.subscription-hero h2 {
  font-size: 30px;
  margin: 10px 0;
}
.subscription-hero h2 .badge {
  vertical-align: middle;
  font-size: 11px;
  margin-left: 8px;
}
.subscription-hero p {
  font-size: 12px;
  line-height: 1.8;
  max-width: 590px;
  color: #d7e3d6;
  margin: 6px 0;
}
.subscription-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.subscription-actions .btn:not(.btn-primary) {
  background: transparent;
  color: #e2eade;
  border-color: #5e7a6d;
}
.usage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.usage-card {
  padding: 22px;
  border: 1px solid var(--border, #e6e8df);
  background: white;
  border-radius: 14px;
}
.usage-card > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
}
.usage-card strong {
  font-size: 15px;
}
.usage-card small {
  font-size: 10px;
  color: #7b8177;
}
.usage-track {
  height: 6px;
  background: #eef0e9;
  border-radius: 8px;
  margin: 16px 0 10px;
  overflow: hidden;
}
.usage-track i {
  display: block;
  background: #648a54;
  height: 100%;
  border-radius: 8px;
}
.usage-track i.near-limit {
  background: #e58b39;
}
.billing-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.billing-plans .plan-card {
  padding: 26px;
}
.billing-plans .plan-price {
  font-size: 31px;
}
.billing-plans .plan-price small {
  font-size: 11px;
  display: inline-block;
  margin-left: 4px;
}
.plan-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.billing-plans ul {
  font-size: 12px;
}
.billing-plans .plan-desc {
  min-height: 36px;
}
.section-spacer {
  margin: 32px 0 20px;
}
.section-spacer h2 {
  font-size: 22px;
  margin-bottom: 8px;
}
.section-spacer p {
  font-size: 12px;
  line-height: 1.8;
}
.billing-alert {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff5e7;
  border: 1px solid #ead6b9;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 22px;
}
.billing-alert > svg {
  width: 22px;
  flex-shrink: 0;
}
.billing-alert > div {
  flex: 1;
}
.billing-alert strong {
  font-size: 13px;
}
.billing-alert p,
.billing-alert > span {
  font-size: 11px;
  line-height: 1.7;
  margin: 4px 0 0;
}
.billing-ok {
  background: #eef4e9;
  border-color: #d9e4ce;
}
.invoice-actions {
  display: flex;
  gap: 7px;
  justify-content: flex-end;
}
.badge.paid,
.badge.trialing {
  background: #eaf2e4;
  color: #47683a;
}
.badge.open,
.badge.past_due {
  background: #fff1da;
  color: #936326;
}
.badge.expired,
.badge.canceled,
.badge.refunded {
  background: #fae8e5;
  color: #a3483d;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
@media (max-width: 1100px) {
  .billing-plans {
    gap: 12px;
  }
  .billing-plans .plan-card {
    padding: 20px;
  }
  .billing-plans .plan-price {
    font-size: 26px;
  }
  .usage-card {
    padding: 17px;
  }
  .usage-card > div:first-child {
    flex-direction: column;
  }
}
@media (max-width: 760px) {
  .subscription-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 24px;
  }
  .subscription-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .billing-plans,
  .usage-grid {
    grid-template-columns: 1fr;
  }
  .billing-plans .plan-desc {
    min-height: 0;
  }
  .billing-alert {
    flex-wrap: wrap;
  }
  .usage-card > div:first-child {
    flex-direction: row;
  }
  .billing-plans .plan-price {
    font-size: 32px;
  }
}
.sidebar {
  overflow-y: auto;
}
.sidebar > * {
  flex-shrink: 0;
}
@media (max-height: 1000px) {
  .sidebar .little-promo {
    display: none;
  }
}

.gateway-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.gateway-mode {
  padding-bottom: 23px;
}
.gateway-mode select {
  width: 100%;
}
.gateway-credentials {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0 0 24px;
  padding: 20px;
  min-width: 0;
}
.gateway-credentials .form-grid {
  align-items: start;
}
.gateway-credentials legend {
  font-size: 13px;
  font-weight: 600;
  padding: 0 8px;
}
.gateway-credentials legend .badge {
  margin-left: 9px;
}
.gateway-credentials small {
  font-weight: 400;
  font-size: 10px;
  line-height: 1.6;
}
.gateway-security {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 15px;
  border-radius: 9px;
  background: #eef4e9;
  margin-bottom: 18px;
  color: #4a6344;
}
.gateway-security p {
  font-size: 11px;
  line-height: 1.8;
}
.gateway-security svg {
  width: 18px;
  margin-top: 2px;
}
.gateway-url {
  margin-bottom: 25px;
}
.gateway-url input {
  font-size: 11px;
  width: 100%;
  background: #f8f9f6;
}
.gateway-url .btn {
  margin-top: 10px;
}
.gateway-pattern {
  display: block;
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-size: 10px;
  color: #777f74;
  line-height: 1.7;
}
.gateway-layout .form-actions {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.gateway-layout .form-actions > .muted {
  font-size: 10px;
}
.gateway-layout .back-link {
  font-size: 12px;
  margin: 0;
}
.gateway-layout .billing-alert {
  padding: 14px;
  margin-bottom: 14px;
}
.gateway-layout .welcome-note {
  margin-top: 0;
}
@media (max-width: 1100px) {
  .gateway-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .gateway-layout > .panel {
    margin-bottom: 0;
  }
}
@media (max-width: 760px) {
  .gateway-credentials {
    padding: 15px;
  }
  .gateway-credentials .form-grid {
    grid-template-columns: 1fr;
  }
  .gateway-layout {
    gap: 18px;
  }
}

.gateway-test-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.gateway-test-actions span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
.gateway-test-result {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 13px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f3f5f1;
  color: #687361;
  overflow-wrap: anywhere;
}
.gateway-test-result.success {
  background: #eef5e9;
  color: #46633b;
}
.gateway-test-result.error {
  background: #fcefed;
  color: #a3483d;
}
@media (max-width: 760px) {
  .gateway-test-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.gateway-log-link {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--orange-dark);
  margin-bottom: 22px;
}
.gateway-log-link .icon {
  width: 14px;
}
.notification-filters {
  padding: 22px;
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: end;
}
.notification-filters label {
  font-size: 11px;
  min-width: 0;
}
.notification-filters input,
.notification-filters select {
  width: 100%;
  font-size: 12px;
}
.notification-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  grid-column: 1/3;
}
.notification-filter-actions {
  grid-column: 3/5;
  display: flex;
  gap: 9px;
  justify-content: flex-end;
}
.notification-reference {
  font-size: 10px;
  overflow-wrap: anywhere;
  white-space: normal;
}
.notification-message {
  white-space: normal;
  max-width: 300px;
  line-height: 1.6;
}
.notification-invoice {
  color: var(--orange-dark);
}
.notification-stats .stat-number {
  font-size: 26px;
}
.notification-pagination {
  align-items: center;
  gap: 12px;
}
.notification-pagination > div {
  display: flex;
  gap: 7px;
}
.notification-retention {
  max-width: 900px;
  line-height: 1.9;
}
.badge.verified {
  background: #eef5e9;
  color: #47683a;
}
.badge.error,
.badge.rejected {
  background: #fcefed;
  color: #a3483d;
}
.badge.deferred,
.badge.received {
  background: #fff3df;
  color: #936326;
}
.notification-detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
.notification-detail-message {
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.8;
}
.notification-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0;
}
.notification-meta dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.notification-meta dd {
  font-size: 12px;
  margin: 0;
  overflow-wrap: anywhere;
}
.notification-detail h3 {
  font-size: 13px;
  margin: 24px 0 10px;
}
.notification-detail pre {
  background: #f5f7f2;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.8;
}
.notification-detail > .btn {
  margin-top: 12px;
}
@media (max-width: 1100px) {
  .notification-filters {
    grid-template-columns: 1fr 1fr;
  }
  .notification-dates {
    grid-column: 1/2;
  }
  .notification-filter-actions {
    grid-column: 2/3;
  }
  .notification-table th,
  .notification-table td {
    padding: 13px 15px;
  }
}
@media (max-width: 760px) {
  .notification-filters {
    padding: 18px;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .notification-filters > label:first-child {
    grid-column: 1/-1;
  }
  .notification-dates {
    grid-column: 1/-1;
  }
  .notification-filter-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
  }
  .notification-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
}
.notification-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.notification-actions .btn {
  white-space: nowrap;
}
.notification-retry-summary {
  color: var(--orange-dark);
  margin-top: 9px;
}
.notification-retry-panel {
  padding: 18px;
  background: #f5f7f2;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.notification-retry-panel h3 {
  margin: 0 0 9px;
}
.notification-retry-panel p,
.notification-retry-attempt p {
  font-size: 12px;
  line-height: 1.8;
}
.notification-current-status {
  display: flex;
  align-items: center;
  gap: 10px;
}
.notification-latest-result {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.notification-latest-result p {
  margin: 5px 0;
}
.notification-retry-attempt {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 10px;
}
.notification-retry-attempt summary {
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  font-size: 11px;
}
.notification-retry-attempt summary:after {
  content: '▾';
  margin-left: auto;
}
.notification-retry-attempt .notification-meta {
  margin: 14px 0;
}
.notification-retry-panel [data-retry-countdown] {
  display: block;
  margin-top: 8px;
}
/* Mobile verification follows the existing form and panel spacing. */
.otp-step {
  padding: 20px;
  border: 1px solid #e1e7da;
  border-radius: 16px;
  background: #f7f8f4;
  margin: 20px 0;
}
.otp-step[hidden] {
  display: none;
}
.otp-step [name='otp'] {
  letter-spacing: 0.25em;
  font-size: 20px;
}
.otp-step p {
  font-size: 13px;
  line-height: 1.6;
}
.otp-step .btn {
  margin-top: 12px;
}

.sms-test-message {
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8f9f6;
}
.sms-test-message .eyebrow {
  font-size: 9px;
}
.sms-test-message p {
  font-size: 12px;
  line-height: 1.8;
  margin: 8px 0 0;
}
[data-sms-test] .panel-body > h3 {
  font-size: 14px;
  margin: 24px 0 12px;
}
