@font-face {
  font-family: 'Cairo';
  src: url('/fonts/Cairo.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}
#printer-form [hidden] {
  display: none !important;
}
:root {
  --brand: #b86539;
  --ink: #232321;
  --muted: #6f706b;
  --line: #deded8;
  --bg: #f5f5f1;
  --white: #fff;
  --danger: #ae3838;
  --shadow: 0 4px 16px #23232106;
  color-scheme: light;
  font-family: 'Cairo', Tahoma, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #d49457;
  outline-offset: 3px;
}
button {
  border: 0;
}
a {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
small,
.muted {
  color: var(--muted);
}
.layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: linear-gradient(165deg, #193f36, #112e28);
  color: #e5ebe4;
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 0 6px 24px;
  border-bottom: 1px solid #ffffff20;
}
.brand img {
  width: 45px;
  height: 45px;
  border-radius: 12px;
  object-fit: cover;
}
.brand strong {
  font-size: 21px;
  display: block;
  font-weight: 800;
}
.brand small {
  font-size: 12px;
  color: #a4b9ab;
  display: block;
  letter-spacing: 0;
  margin-top: 2px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}
.nav-button {
  background: none;
  color: #c1d0c5;
  display: flex;
  gap: 12px;
  align-items: center;
  text-align: start;
  padding: 12px 15px;
  border-radius: 10px;
  font-size: 14px;
  min-height: 48px;
}
.nav-button.active {
  background: #eaf0df;
  color: var(--ink);
  font-weight: bold;
  box-shadow: inset -3px 0 #c9a565;
}
.nav-button:hover:not(.active) {
  background: #ffffff0c;
}
.icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sidebar-foot {
  margin-top: auto;
  display: grid;
  gap: 16px;
  flex-shrink: 0;
}
.sidebar-note {
  border: 1px solid #ffffff20;
  border-radius: 14px;
  padding: 15px;
  font-size: 12px;
  line-height: 1.9;
  color: #b5c5b9;
  background: #ffffff05;
}
.sidebar-note strong {
  display: block;
  color: #f3ebdb;
  margin-bottom: 5px;
}
.user {
  display: flex;
  gap: 10px;
  align-items: center;
}
.avatar {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  background: #35544c;
  border-radius: 50%;
}
.user small {
  color: #aabeb0;
  display: block;
  font-size: 11px;
  margin-top: 5px;
}
.logout {
  margin-inline-start: auto;
  background: none;
  color: #c1d0c5;
  padding: 8px;
}
.main {
  min-width: 0;
  padding: 0 30px 30px;
}
.topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-bottom: 2px;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 9px 13px;
  border-radius: 30px;
  white-space: nowrap;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 100%;
  background: #609b6d;
}
.status.offline .dot {
  background: #bc6249;
}
.round {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}
.page-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.page-intro p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.8;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  padding: 12px 18px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  min-height: 48px;
}
.button.secondary {
  background: white;
  border: 1px solid var(--line);
  color: var(--ink);
}
.button.warm {
  background: var(--brand);
  box-shadow: 0 4px 12px #9e542720;
}
.button.danger {
  background: #fff0ed;
  color: var(--danger);
  border: 1px solid #f0d5d0;
}
.button.small {
  padding: 8px 12px;
  min-height: 36px;
  font-size: 12px;
}
.button.full {
  width: 100%;
}
.pos-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}
.catalog {
  min-width: 0;
}
.search {
  position: relative;
  margin-bottom: 18px;
}
.search input {
  padding: 14px 16px;
  padding-inline-start: 46px;
  background: white;
  border: 1px solid var(--line);
  width: 100%;
  border-radius: 14px;
  font-size: 14px;
  box-shadow: 0 3px 12px #173e3403;
}
.search .icon {
  position: absolute;
  inset-inline-start: 14px;
  top: 17px;
  color: #8d978e;
}
.categories {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 10px;
  margin-bottom: 12px;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar {
  display: none;
}
.category {
  white-space: nowrap;
  background: white;
  color: #596d60;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  min-height: 44px;
}
.category.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.catalog-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 17px;
  font-size: 15px;
}
.catalog-label small {
  font-size: 12px;
}
.products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.product {
  text-align: start;
  display: flex;
  flex-direction: column;
  padding: 7px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 3px 10px #16372a04;
  overflow: hidden;
  transition:
    transform 0.15s,
    border-color 0.15s;
  min-width: 0;
}
.product:hover {
  transform: translateY(-2px);
  border-color: #9aac94;
  box-shadow: 0 8px 20px #16372a0b;
}
.product-visual {
  width: 100%;
  height: 124px;
  flex-shrink: 0;
  background: #f1eee5;
  border-radius: 12px;
  display: block;
  position: relative;
  overflow: hidden;
}

.product:nth-child(3n + 2) .product-visual {
  background: #edece2;
}
.product:nth-child(3n) .product-visual {
  background: #f2e7d9;
}
.product-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  position: absolute;
  inset: 0;
}

.product-copy {
  padding: 12px 8px 8px;
  width: 100%;
}
.product h3 {
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink);
  margin-bottom: 2px;
  font-weight: 750;
}
.product-desc {
  font-size: 11px;
  color: #718072;
  line-height: 1.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.price {
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.price small {
  font-size: 11px;
  font-weight: 600;
  color: #748071;
}
.add {
  background: #edf2e9;
  border: 1px solid #dde7d7;
  border-radius: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  font-size: 20px;
}
.cart {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 16px;
  padding: 20px;
}
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.cart-head h2 {
  font-size: 19px;
  font-weight: 800;
}
.cart-head span {
  font-size: 11px;
  background: #f2f3ed;
  padding: 6px 10px;
  border-radius: 6px;
}
.service-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: #f5f5f0;
  padding: 5px;
  border-radius: 9px;
  margin-bottom: 16px;
}
.service-switch button {
  padding: 10px 2px;
  font-size: 12px;
  background: none;
  color: #617465;
  border-radius: 6px;
  min-height: 44px;
  font-weight: 650;
}
.service-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 6px #0000000c;
}
.cart-items {
  min-height: 180px;
  max-height: 350px;
  overflow: auto;
  padding: 6px 0;
}
.empty {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 45px 20px;
  text-align: center;
  color: #728173;
  font-size: 13px;
  line-height: 1.8;
}
.empty .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.2;
}
.empty p { max-width: 38ch; overflow-wrap: anywhere; }
.product, .product-copy, .product-meta > span { min-width: 0; }
.product h3, .product-desc, .product-meta { overflow-wrap: anywhere; }
.dialog-title > button { display:inline-flex; align-items:center; justify-content:center; min-width:44px; min-height:44px; flex-shrink:0; }
.cart-item {
  padding: 13px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  border-bottom: 1px solid #f0f0ea;
}
.cart-item h3 {
  font-size: 14px;
  line-height: 1.7;
}
.cart-item small {
  display: block;
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.6;
}
.cart-item .price {
  font-size: 14px;
}
.quantity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 7px;
  font-size: 12px;
}
.quantity button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 9px;
  color: var(--ink);
  font-size: 16px;
}
.quantity .remove {
  border: 0;
  color: #a27666;
  width: auto;
  background: none;
  font-size: 12px;
  min-width: 40px;
}
.cart-summary {
  border-top: 1px dashed #d7dccf;
  padding-top: 17px;
  margin-top: 12px;
}
.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #7b857b;
  margin-bottom: 15px;
}
.summary-line.total {
  font-size: 16px;
  color: var(--ink);
  font-weight: bold;
}
.summary-line.total strong {
  font-size: 27px;
  font-weight: 800;
}
.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 18px 0 14px;
}
.payment-options label {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 3px;
  text-align: center;
  font-size: 12px;
}
.payment-options label:has(input:checked) {
  border-color: var(--ink);
  background: #edf3ed;
  color: var(--ink);
}
.payment-options input {
  width: auto;
  accent-color: var(--ink);
  margin-inline-end: 4px;
}
.cart-note {
  font-size: 11px;
  color: #758271;
  text-align: center;
  margin-top: 12px;
  line-height: 1.7;
}
.notice {
  background: #fbf3e3;
  border: 1px solid #ecdfbb;
  border-radius: 10px;
  padding: 13px 15px;
  font-size: 12px;
  line-height: 1.9;
  color: #866d35;
  margin-bottom: 18px;
}
.notice.good {
  background: #edf4ec;
  border-color: #d4e3cc;
  color: #416143;
}
.notice.error {
  background: #fff0ed;
  color: var(--danger);
  border-color: #f1d5cd;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: 0 3px 14px #153a3203;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.panel-head h2 {
  font-size: 18px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}
.field {
  display: grid;
  gap: 8px;
  font-size: 13px;
  min-width: 0;
  font-weight: 600;
}
.field.wide {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #dfe4d9;
  padding: 12px;
  border-radius: 9px;
  background: white;
  min-height: 44px;
  color: var(--ink);
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #9ebc9e;
  outline-offset: 1px;
}
.field small {
  font-size: 12px;
  line-height: 1.7;
  font-weight: 400;
}
#promotion-form [aria-invalid="true"] {
  border-color: var(--danger);
  outline: 2px solid var(--danger);
  outline-offset: 2px;
}
#promotion-form .promotion-field-error {
  display: block;
  color: var(--danger);
  font-weight: 600;
  overflow-wrap: anywhere;
}
textarea {
  resize: vertical;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  margin: 15px 0;
}
.checkbox input {
  width: 17px;
  height: 17px;
  accent-color: var(--ink);
}
details {
  font-size: 12px;
  margin: 15px 0;
}
summary {
  cursor: pointer;
  color: #7e877a;
  padding: 9px 0;
}
details .fields {
  margin-top: 10px;
}
.actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 20px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
}
th {
  text-align: start;
  color: #8b9485;
  font-weight: 650;
  font-size: 12px;
  background: #fafaf6;
}
td,
th {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
}
td small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
}
.badge {
  display: inline-block;
  border-radius: 6px;
  padding: 6px 8px;
  background: #f1f2eb;
  color: #757f71;
  font-size: 10px;
  white-space: nowrap;
}
.badge.green {
  background: #eaf3e7;
  color: #4f7843;
}
.badge.orange {
  background: #fbefdd;
  color: #a4772d;
}
.badge.red {
  background: #fbece6;
  color: #b2614c;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.table-card,
.order-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
}
.table-card .icon {
  width: 42px;
  height: 42px;
  margin: 10px 0 20px;
  color: #8b9e83;
}
.table-card h3 {
  margin-bottom: 7px;
}
.table-card .table-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.table-card p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.9;
}
.table-card select {
  width: 100%;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: white;
  color: var(--ink);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 22px;
}
.stat {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 21px;
}
.stat p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.stat strong {
  font-size: 27px;
}
.stat small {
  font-size: 12px;
  margin-inline-start: 7px;
}
.order-card ul {
  padding-inline-start: 18px;
  font-size: 13px;
  line-height: 2;
}
.order-card .panel-head {
  margin-bottom: 10px;
}
.order-card time {
  font-size: 11px;
  color: var(--muted);
}
.loading {
  padding: 90px;
  text-align: center;
  color: var(--muted);
}
dialog {
  border: 0;
  padding: 27px;
  border-radius: 18px;
  width: min(600px, calc(100vw - 28px));
  max-height: 90vh;
  box-shadow: 0 25px 100px #082f3433;
  color: var(--ink);
}
dialog::backdrop {
  background: #163d3650;
  backdrop-filter: blur(3px);
}
.dialog-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.dialog-title button {
  background: #f3f3ed;
  color: #84907e;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 20px;
}
.dialog-title h2 {
  font-size: 19px;
}
.dialog-description {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin-bottom: 20px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #193c34;
  color: #fff;
  padding: 15px 24px;
  z-index: 20;
  border-radius: 12px;
  box-shadow: var(--shadow);
  font-size: 13px;
  max-width: 90vw;
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #a34238;
}
.notification-bell { position: relative; flex-shrink: 0; }
#notification-count { position: absolute; top: -5px; right: -5px; min-width: 20px; padding: 2px 5px; border-radius: 20px; background: #a34238; color: white; font-size: 11px; line-height: 16px; }
.notification-section { margin-top: 22px; }
.notification-item { padding: 14px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.notification-item .actions { display: flex; flex-wrap: wrap; gap: 8px; }
#login-request-status { overflow-wrap: anywhere; }
.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-story {
  background: var(--ink);
  color: #f5eddb;
  padding: 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-story::after {
  content: '';
  width: 550px;
  height: 550px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  position: absolute;
  left: -240px;
  bottom: -200px;
  box-shadow:
    0 0 0 60px #ffffff05,
    0 0 0 120px #ffffff04;
}
.login-story img {
  width: 80px;
  margin-bottom: 50px;
}
.login-story h1 {
  font-size: 45px;
  line-height: 1.65;
}
.login-story p {
  font-size: 15px;
  color: #c1d0bc;
  line-height: 2;
  margin-top: 25px;
}
.login-form {
  display: grid;
  place-items: center;
  padding: 40px;
}
.login-form form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 27px;
  margin-bottom: 13px;
}
.login-form .field {
  margin-bottom: 20px;
}
.login-form p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 35px;
  line-height: 1.8;
}
.login-form .button {
  margin-top: 10px;
}
.login-form a {
  display: block;
  text-align: center;
  font-size: 12px;
  margin-top: 25px;
}
.customer .main {
  max-width: 1250px;
  margin: auto;
}
.customer .topbar {
  height: 105px;
}
.customer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}
.customer-brand img {
  width: 50px;
  border-radius: 12px;
}
.customer .product-visual {
  height: 155px;
}
.customer .pos-grid {
  grid-template-columns: minmax(0, 1fr) 350px;
}
.receipt-number {
  text-align: center;
  padding: 24px;
  font-size: 66px;
  color: var(--brand);
  font-weight: bold;
}
.receipt-number.receipt-number-error {
  color: var(--danger);
}
[data-customer-reason] {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.receipt-title {
  text-align: center;
  font-size: 14px;
}
.option-list {
  display: grid;
  gap: 10px;
}
.option-list label {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.option-list label strong {
  margin-inline-start: auto;
}
.secret {
  font-family: monospace;
  direction: ltr;
  word-break: break-all;
  user-select: all;
  padding: 16px;
  background: #f1f3ed;
  border-radius: 8px;
  line-height: 1.8;
}
.inline-link {
  font-size: 12px;
  color: var(--brand);
  text-decoration: none;
}
.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;
}
.mobile-brand {
  display: none;
}
.helper-text {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 12px;
}
.pre-line {
  white-space: pre-line;
}
.footer-note {
  font-size: 11px;
  color: #909a89;
  padding: 20px 0;
  text-align: center;
}

.option-editor {
  display: grid;
  grid-template-columns: 1fr 110px 40px;
  gap: 10px;
  align-items: end;
  margin-top: 14px;
}
.mobile-cart-floating {
  display: none;
}

.menu-illustration {
  width: 138px;
  height: 120px;
  position: relative;
}
.cart-item .price {
  white-space: nowrap;
}
.cart-item .price small {
  display: inline;
  margin: 0;
}
.button,
.category,
.nav-button,
.quantity button {
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button:hover:not(:disabled) {
  filter: brightness(0.96);
}
input::placeholder,
textarea::placeholder {
  color: #859084;
  font-weight: 400;
}
.product:active:not(:disabled) {
  transform: scale(0.98);
}
.product:focus-visible {
  outline-offset: 2px;
}
.cart .button.full {
  min-height: 52px;
}

/* Getting-started checklist on the cashier for a new instance */
.setup-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.setup-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.setup-head h2 {
  margin: 0;
  font-size: 17px;
}
.setup-head .helper-text {
  margin: 2px 0 0;
}
.setup-progress {
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  margin: 12px 0 14px;
  overflow: hidden;
}
.setup-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: inherit;
}
.setup-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 10px;
}
.setup-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 60px;
  padding: 10px 12px;
  text-align: start;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.setup-step:hover {
  border-color: var(--brand);
}
.setup-step strong,
.setup-step small {
  display: block;
}
.setup-step strong {
  font-size: 14px;
}
.setup-step small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.setup-number {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-weight: 700;
  color: var(--brand);
  background: var(--white);
  border: 2px solid var(--brand);
}
.setup-step.done {
  background: var(--white);
}
.setup-step.done strong {
  color: var(--muted);
}
.setup-step.done .setup-number {
  color: var(--brand-ink, #fff);
  background: var(--brand);
}
/* Reports and expenses */
.report-controls,
.page-intro > .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.report-controls .field,
.compact-field {
  margin: 0;
  min-width: 140px;
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}
.report-grid > .panel {
  margin: 0;
}
.summary-line > span > small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}
.muted-row td {
  color: var(--muted);
}
.report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.report-head p {
  color: var(--muted);
  margin-top: 4px;
  font-size: 14px;
}
.export-button svg {
  width: 18px;
  height: 18px;
}
.chip-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 16px;
  scrollbar-width: none;
}
.chip {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--white, #fff);
  color: inherit;
  border-radius: 999px;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.chip.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 700;
}
.custom-range {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.custom-range .field {
  margin: 0;
  min-width: 150px;
}
.report-hero {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 2fr;
  gap: 16px;
  margin-bottom: 16px;
}
.hero-main {
  background: var(--brand);
  color: #fff;
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.hero-main p,
.hero-main small {
  opacity: 0.85;
}
.hero-main strong {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
}
.hero-main strong.negative {
  color: #ffd9d9;
}
.hero-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-tiles > div {
  background: var(--white, #fff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-tiles p,
.hero-tiles small {
  color: var(--muted);
  font-size: 13px;
}
.hero-tiles strong {
  font-size: 22px;
}
.bar-list {
  display: grid;
  gap: 14px;
}
.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 6px;
}
.bar-label small {
  color: var(--muted);
}
.bar-track {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  overflow: hidden;
}
.bar-fill {
  display: block;
  height: 100%;
  min-width: 2px;
  border-radius: inherit;
  background: var(--brand);
}
.bar-fill.expense {
  background: #d9822b;
}
.bar-fill.product {
  background: #4c8f6b;
}
.bar-row > small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.simple-table td small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.day-list {
  display: grid;
}
.day-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.day-row:last-child {
  border-bottom: 0;
}
.day-row > div > small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.day-figures {
  text-align: end;
}
.day-figures strong.negative {
  color: var(--danger);
}
.hero-tiles strong,
.bar-label strong,
.day-figures strong {
  white-space: nowrap;
}
.report-foot {
  margin-top: 4px;
}
@media (max-width: 760px) {
  .report-hero {
    grid-template-columns: 1fr;
  }
  .hero-tiles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-tiles > div {
    padding: 12px;
  }
  .hero-tiles strong {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Customer QR ordering and staff approval. */
.inbox-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: start;
  padding: 16px 20px;
  margin-bottom: 22px;
  color: #634c21;
  background: #fff3d9;
  border: 1px solid #eddbb5;
  border-radius: 14px;
}
.inbox-alert small {
  display: block;
  color: #806c47;
}
.inbox-alert b {
  margin-inline-start: auto;
}
.inbox-items {
  padding-inline-start: 20px;
  margin-block: 18px;
}
.inbox-items li {
  padding-block: 6px;
}
.inbox-items small {
  display: block;
}
.inbox-cards .actions .button {
  flex: 1 1 auto;
}
.recipient-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-block: 20px;
}
.recipient-options .checkbox {
  padding: 14px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.recipient-options .checkbox:has(input:checked) {
  background: #edf3e9;
  border-color: #9aae91;
}
.recipient-options small {
  display: block;
}
.recipient-names {
  margin-top: 8px;
  line-height: 2;
  font-weight: 700;
}
.table-context {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #e9f0e5;
  border: 1px solid #d7e3cf;
  border-radius: 14px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.table-context strong {
  font-size: 18px;
}
.table-context span {
  display: block;
  font-size: 12px;
  color: #66775d;
}
.table-context.compact {
  padding: 12px;
}
.table-context.compact strong {
  font-size: 15px;
}
.qr-sheet {
  text-align: center;
  padding: 22px;
  background: #fff;
  color: #183e36;
}
.qr-sheet h2 {
  font-size: 24px;
}
.qr-sheet h3 {
  margin-top: 8px;
}
.qr-brand {
  width: 52px;
  height: 52px;
  object-fit: contain;
  margin-bottom: 12px;
}
.qr-code {
  margin: 12px auto;
  width: min(280px, 100%);
  aspect-ratio: 1;
}
.qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}
.qr-sheet small {
  display: block;
  margin-top: 8px;
}
.qr-controls {
  margin-top: 18px;
}

/* Shared fluid layout: compact ordering below 1024px, workspace above it. */
.layout {
  min-height: 100dvh;
}
.layout > .main {
  width: 100%;
  max-width: 1700px;
  margin-inline: auto;
}
.sidebar {
  height: 100dvh;
  padding-block: 22px;
  gap: 18px;
}
.sidebar nav {
  scrollbar-color: #547365 transparent;
}
.brand,
.user,
.topbar > div,
.page-intro > div,
.panel-head > div,
.cart-item > div,
.table-context > div {
  min-width: 0;
}
h1,
h2,
h3,
p,
.recipient-names {
  overflow-wrap: anywhere;
}
.brand,
.sidebar-foot {
  flex-shrink: 0;
}
.page-intro,
.panel-head,
.table-line {
  flex-wrap: wrap;
}
.page-intro > .button {
  flex-shrink: 0;
}
.products {
  grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr));
}
.cards {
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.stat strong {
  font-size: clamp(20px, 2vw, 27px);
  overflow-wrap: anywhere;
}
.service-switch {
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
}
.round,
.dialog-title button {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.dialog-title {
  gap: 12px;
}
dialog {
  max-height: calc(100dvh - 32px);
  overscroll-behavior: contain;
}
.option-editor {
  grid-template-columns: minmax(0, 1fr) 110px 44px;
}
.menu-toggle,
.cart-back {
  display: none;
}
.compact-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.compact-nav .nav-button {
  color: var(--ink);
  background: var(--bg);
  font-size: 13px;
}
.compact-nav .nav-button.active {
  background: #e5eddf;
}
.compact-nav .nav-button:hover {
  background: #e5eddf;
}
.compact-user {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 20px;
}
.compact-user .button {
  margin-top: 12px;
}
.login-page {
  min-height: 100dvh;
}
.login-story {
  padding: clamp(30px, 5vw, 70px);
}
.login-story h1 {
  font-size: clamp(28px, 3.5vw, 45px);
}
.main {
  padding-inline: max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-left));
}
.cart-item {
  gap: 12px;
}
.cart-item .quantity {
  flex-wrap: wrap;
}
.cart-item .price {
  flex-shrink: 0;
}
.table-wrap {
  max-width: 100%;
}
.responsive-table td {
  max-width: 340px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.responsive-table .cell-label {
  display: none;
}
.table-cell-actions .cell-value {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.table-cell-actions .button {
  white-space: normal;
}
@media (max-height: 820px) {
  .sidebar-note {
    display: none;
  }
  .sidebar .brand {
    padding-bottom: 16px;
  }
  .sidebar nav {
    gap: 3px;
  }
}
@media (max-height: 650px) {
  .cart {
    position: static;
  }
  .sidebar {
    padding-block: 12px;
    gap: 10px;
  }
}
@media (min-width: 1600px) {
  .pos-grid {
    grid-template-columns: minmax(0, 1fr) 385px;
  }
  .product-visual {
    height: 160px;
  }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .layout {
    grid-template-columns: 80px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 12px;
  }
  .sidebar .brand {
    padding-inline: 0;
    justify-content: center;
  }
  .sidebar .brand div,
  .sidebar .nav-button span,
  .sidebar .nav-group-toggle span,
  .sidebar .nav-group-current,
  .sidebar .nav-chevron,
  .sidebar .user div,
  .sidebar-note,
  .sidebar .logout {
    display: none;
  }
  .sidebar .nav-button {
    justify-content: center;
    padding-inline: 12px;
  }
  .sidebar .nav-group-toggle { justify-content: center; padding-inline: 12px; }
  .sidebar .nav-group-items { margin-inline-start: 0; padding-inline-start: 0; border: 0; }
  .sidebar .user {
    justify-content: center;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .pos-grid,
  .customer .pos-grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 20px;
  }
  .topbar .today {
    display: none;
  }
}
@media (max-width: 1023px) {
  .layout {
    display: block;
  }
  .sidebar {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    padding: 10px 14px;
    min-height: 44px;
  }
  .topbar {
    height: auto;
    min-height: 86px;
    padding-block: 16px;
  }
  .topbar .today {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .pos-grid,
  .customer .pos-grid {
    display: block;
  }
  .cart {
    display: none;
    position: static;
    width: 100%;
    max-width: 720px;
    margin-inline: auto;
  }
  .cart-mode .catalog {
    display: none;
  }
  .cart-mode .cart {
    display: block;
  }
  .cart-back {
    display: inline-flex;
    margin-bottom: 20px;
  }
  .cart-items {
    min-height: 100px;
    max-height: none;
  }
  #app.has-cart .main {
    padding-bottom: calc(104px + env(safe-area-inset-bottom));
  }
  #app.cart-is-open .main {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
  .mobile-cart-floating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: fixed;
    bottom: max(16px, env(safe-area-inset-bottom));
    inset-inline: max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-left));
    width: auto;
    max-width: 720px;
    margin-inline: auto;
    background: var(--ink);
    color: white;
    border-radius: 16px;
    padding: 18px 22px;
    border: 1px solid #ffffff25;
    box-shadow: 0 5px 25px #193c3440;
    font-weight: 700;
    font-size: 15px;
    min-height: 60px;
    z-index: 8;
  }
  .cart-is-open .mobile-cart-floating {
    display: none;
  }
  .mobile-cart-floating small {
    color: #c4d0bc;
  }
  .product-visual,
  .customer .product-visual {
    height: 150px;
  }
  .field input,
  .field select,
  .field textarea,
  .search input,
  .table-card select {
    font-size: 16px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .button.small,
  .quantity button,
  .logout {
    min-width: 44px;
    min-height: 44px;
  }
  .payment-options label,
  summary,
  .checkbox {
    min-height: 44px;
  }
  .quantity {
    gap: 8px;
  }
  #app.has-cart ~ #toast {
    bottom: calc(94px + env(safe-area-inset-bottom));
  }
  #app.cart-is-open ~ #toast {
    bottom: max(20px, env(safe-area-inset-bottom));
  }
}
@media (max-width: 640px) {
  .main,
  .customer .main {
    padding-inline: max(14px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-left));
    padding-bottom: 28px;
  }
  .topbar,
  .customer .topbar {
    height: auto;
    min-height: 86px;
    margin-bottom: 22px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .topbar .eyebrow {
    display: none;
  }
  .topbar h3 {
    font-size: 16px;
  }
  .topbar-right {
    gap: 6px;
    flex-wrap: wrap;
  }
  .topbar-right .status {
    font-size: 10px;
    padding: 7px 9px;
  }
  .customer-brand {
    gap: 10px;
  }
  .customer-brand img {
    width: 42px;
  }
  .customer-brand h2 {
    font-size: 19px;
  }
  .customer-brand .helper-text {
    margin-top: 2px;
    font-size: 11px;
  }
  .page-intro {
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .page-intro h1 {
    font-size: 25px;
  }
  .page-intro p {
    font-size: 12px;
  }
  .page-intro > .button {
    padding: 10px 12px;
    font-size: 12px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .product-visual,
  .customer .product-visual {
    height: clamp(105px, 31vw, 170px);
  }
  .menu-illustration {
    max-width: 100%;
    height: 110px;
  }
  .product-copy {
    padding: 10px 4px 6px;
  }
  .product-bottom {
    gap: 3px;
    margin-top: 10px;
  }
  .price {
    font-size: 16px;
  }
  .add {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
  }
  .product h3 {
    font-size: 14px;
  }
  .fields,
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .panel,
  .table-card,
  .order-card {
    padding: 16px;
  }
  .cart {
    padding: 18px;
  }
  .cart .fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .cart-item {
    flex-wrap: wrap;
  }
  .cart-item > div {
    flex: 1 1 170px;
  }
  .cart-item .price {
    margin-inline-start: auto;
  }
  .stat {
    padding: 15px;
  }
  .stats {
    gap: 10px;
  }
  .button {
    padding: 12px 14px;
    font-size: 13px;
  }
  .option-editor {
    grid-template-columns: minmax(0, 1fr) 85px 44px;
    gap: 6px;
  }
  .option-editor input {
    padding-inline: 7px;
  }
  dialog {
    padding: 18px;
  }
  .dialog-title h2 {
    font-size: 18px;
  }
  .compact-nav .nav-button {
    padding: 12px 10px;
    gap: 8px;
  }
  .login-page {
    display: block;
  }
  .login-story {
    padding: 28px;
    min-height: 260px;
  }
  .login-story h1 {
    font-size: 28px;
    line-height: 1.5;
  }
  .login-story img {
    width: 50px;
    margin-bottom: 16px;
  }
  .login-story p {
    margin-top: 12px;
    font-size: 13px;
  }
  .login-form {
    padding: 32px 24px;
  }
  .login-form h2 {
    font-size: 24px;
  }
  .loading {
    padding: 48px 20px;
  }
  .recipient-options {
    grid-template-columns: minmax(0, 1fr);
  }
  .table-context,
  .inbox-alert {
    padding: 14px;
    gap: 10px;
  }
  .inbox-alert b {
    font-size: 12px;
  }
  .responsive-table {
    display: block;
    white-space: normal;
  }
  .responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .responsive-table tbody {
    display: grid;
    gap: 14px;
  }
  .responsive-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    background: white;
    gap: 12px;
  }
  .responsive-table td {
    display: block;
    padding: 0;
    border: 0;
    min-width: 0;
    max-width: none;
  }
  .responsive-table td:first-child,
  .responsive-table .table-cell-actions,
  .responsive-table td[colspan] {
    grid-column: 1 / -1;
  }
  .responsive-table td:first-child {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
  }
  .responsive-table .cell-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 5px;
    font-weight: 400;
  }
  .responsive-table .badge {
    white-space: normal;
  }
}
@media (max-width: 374px) {
  .topbar > div:first-child {
    flex: 1 1 100%;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .product-bottom {
    flex-wrap: wrap;
  }
  .service-switch {
    grid-template-columns: 1fr;
  }
  .option-editor {
    grid-template-columns: minmax(0, 1fr) 44px;
  }
  .option-editor > .field:first-child {
    grid-column: 1 / -1;
  }
}
@media (any-pointer: coarse) {
  .button.small,
  .quantity button,
  .logout {
    min-width: 44px;
    min-height: 44px;
  }
  .payment-options label,
  summary,
  .checkbox {
    min-height: 44px;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
}

@media print {
  .no-print,
  body:has(.qr-sheet) #app,
  body:has(.qr-sheet) #toast {
    display: none !important;
  }
  body:has(.qr-sheet) {
    background: white;
  }
  body:has(.qr-sheet) dialog[open] {
    position: static;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: visible;
    border: 0;
    box-shadow: none;
  }
  body:has(.qr-sheet) .dialog-title,
  .qr-controls {
    display: none !important;
  }
  .qr-sheet {
    width: 105mm;
    margin: 10mm auto;
    padding: 8mm;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
  .qr-code {
    width: 65mm;
  }
}

/* Language preferences are only shown inside Settings. */
.language-options {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.language-options button {
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 38px;
  min-width: 76px;
  padding: 5px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.language-options button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}
.language-options button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
html[dir='ltr'] .cart-back,
html[dir='ltr'] .inbox-alert b {
  direction: ltr;
}
html[lang='en'] .login-story h1 {
  line-height: 1.35;
}
.option-editor {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(90px, 0.7fr) auto;
}
@media (max-width: 640px) {
  .language-options button {
    min-height: 44px;
  }
  .option-editor {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
/* Light restaurant workspace. One brand colour connects navigation, selection and checkout. */
:root {
  --brand: #176b60;
  --brand-ink: #fff;
  --ink: #213b39;
  --muted: #667a77;
  --line: #e0e8e5;
  --bg: #f4f7f6;
  --brand-soft: color-mix(in srgb, var(--brand) 9%, white);
  --shadow: 0 8px 30px #203a3507;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--brand);
}
.sidebar {
  background: #fff;
  color: var(--ink);
  padding: 24px 16px;
  gap: 18px;
  border-inline-end: 1px solid var(--line);
}
.brand {
  gap: 12px;
  padding: 0 4px 22px;
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  background: var(--brand);
  color: var(--brand-ink);
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
  direction: ltr;
  border-radius: 15px 15px 5px 15px;
  letter-spacing: -1px;
}
.brand img,
.customer-brand img {
  object-fit: contain;
  background: white;
}
.brand strong {
  font-size: 21px;
}
.brand small,
.user small {
  color: var(--muted);
}
.sidebar nav {
  gap: 8px;
}
.nav-group {
  display: grid;
  gap: 3px;
}
.nav-pinned {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.nav-pinned .nav-button { font-weight: 700; }
.nav-group-title {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  padding: 0 14px 7px;
}
.nav-group-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 10px;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: 10px;
  color: #59716c;
  font-size: 13px;
  text-align: start;
}
.nav-group-toggle:hover,
.nav-group-toggle[aria-expanded='true'] {
  background: #f4f7f6;
  color: var(--ink);
}
.nav-group-toggle.contains-current { color: var(--brand); }
.nav-group-toggle .icon { width: 19px; height: 19px; }
.nav-group-toggle > span { flex: 1; min-width: 0; }
.nav-group-current {
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand);
  font-size: 10px;
}
.nav-group-toggle[aria-expanded='true'] .nav-group-current { display: none; }
.nav-chevron {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.nav-group-toggle[aria-expanded='true'] .nav-chevron { transform: rotate(180deg); }
.nav-group-items {
  display: grid;
  gap: 2px;
  margin-inline-start: 16px;
  padding-inline-start: 10px;
  border-inline-start: 2px solid var(--line);
}
.nav-group-items[hidden] { display: none; }
.nav-group-items .nav-button { min-height: 40px; font-size: 12px; }
.compact-nav .nav-pinned,
.compact-nav .nav-group { grid-column: 1 / -1; }
.compact-nav .nav-pinned,
.compact-nav .nav-group-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.compact-nav .nav-pinned .nav-group-title { grid-column: 1 / -1; }
.compact-nav .nav-group-items { margin: 0; padding: 0; border: 0; }
.compact-nav .nav-group-items .nav-button { min-height: 44px; }
.compact-nav .nav-group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  color: var(--muted);
  font-size: 12px;
}
.compact-nav .nav-group-heading .icon { width: 18px; height: 18px; }
.nav-button {
  color: #59716c;
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 44px;
  font-size: 13px;
}
.nav-button.active {
  background: var(--brand-soft);
  color: var(--ink);
  box-shadow: none;
  border: 0;
  font-weight: 800;
}
.nav-button.active .icon {
  color: var(--brand);
}
.nav-button:hover:not(.active) {
  background: #f4f7f6;
  color: var(--ink);
}
.sidebar-foot {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.avatar {
  background: #e9efed;
  color: var(--ink);
  border-radius: 50%;
}
.logout {
  color: var(--muted);
}
.topbar {
  height: 86px;
  margin-bottom: 24px;
  border-color: var(--line);
}
.topbar h3 {
  font-size: 19px;
  font-weight: 800;
}
.eyebrow {
  font-size: 11px;
}
.customer-brand h2 {
  font-size: 25px;
  font-weight: 800;
}
.status {
  background: transparent;
  border: 0;
  padding-inline: 0;
  color: #526a64;
}
.round {
  border-radius: 12px;
}
.page-intro {
  margin-bottom: 24px;
}
.page-intro h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0;
}
.page-intro p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.button {
  background: var(--brand);
  color: var(--brand-ink);
  border-radius: 10px;
  box-shadow: none;
}
.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.button.warm {
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 800;
}
.button:hover:not(:disabled) {
  filter: brightness(0.97);
}
.panel,
.stat {
  border-radius: 16px;
  box-shadow: var(--shadow);
  border-color: var(--line);
}
.search input {
  border-radius: 12px;
  background: #fff;
  min-height: 52px;
}
.categories {
  gap: 8px;
  border: 0;
  padding-bottom: 8px;
}
.category {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--ink);
}
.category.active {
  background: var(--brand);
  color: var(--brand-ink);
  border-color: var(--brand);
}
.category-count {
  font-size: 11px;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}
.catalog-label {
  margin-block: 18px 14px;
}
.catalog-label strong {
  font-weight: 750;
}
.products {
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(min(175px, 100%), 1fr));
}
.product {
  position: relative;
  padding: 0;
  border-radius: 15px;
  border: 1px solid var(--line);
  box-shadow: 0 3px 8px #244c3f03;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.product:hover {
  transform: none;
  border-color: var(--brand);
  background: white;
  box-shadow: 0 4px 16px #244c3f12;
}
.product.in-cart {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}
.product-symbol {
  margin: 16px 16px 0;
  height: 60px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1eee8;
  color: #887254;
}
.station-drinks .product-symbol {
  background: #eaf2ef;
  color: #51766a;
}
.product-symbol .icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.3;
}
.product-copy {
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  flex: 1;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  min-height: 21px;
  margin-bottom: 5px;
}
.product-count {
  color: var(--ink);
  background: var(--brand-soft);
  padding: 2px 6px;
  border-radius: 5px;
}
.product h3 {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.6;
  margin-bottom: 5px;
}
.product-desc {
  white-space: normal;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  min-height: 37px;
}
.product-bottom {
  margin-top: auto;
  padding-top: 14px;
}
.product .price {
  font-size: 22px;
  letter-spacing: -0.3px;
  font-variant-numeric: tabular-nums;
}
.price small {
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 500;
}
.add {
  background: var(--brand-soft);
  color: var(--ink);
  border: 0;
  border-radius: 10px;
  width: 34px;
  height: 34px;
}
.product:hover .add {
  background: var(--brand);
  color: var(--brand-ink);
}
.product-visual {
  border-radius: 0;
  height: 145px;
  background: #f0f4f2;
}
.cart {
  border-radius: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px #244c3f09;
}
.cart-head {
  background: transparent;
  color: var(--ink);
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}
.cart-head h2 {
  font-size: 19px;
}
.cart-head span {
  color: var(--ink);
  background: var(--brand-soft);
  border-radius: 7px;
}
.service-switch {
  background: #f2f5f4;
  border-radius: 10px;
  margin-bottom: 10px;
}
.service-switch button {
  color: #5c716a;
  border-radius: 7px;
}
.service-switch button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 5px #203a3510;
}
.cart-items {
  min-height: 110px;
  max-height: max(140px, calc(100dvh - 590px));
}
.cart-items .empty {
  padding-block: 22px;
  gap: 10px;
  color: var(--muted);
}
.cart-items .empty .icon {
  width: 32px;
  height: 32px;
}
.cart-item h3 {
  font-size: 15px;
}
.cart-summary {
  border-top: 1px dashed #b9ccc5;
  padding-top: 12px;
  margin-top: 12px;
}
.cart-summary > .summary-line:not(.total):not(.discount-shown) {
  display: none;
}
.summary-line.total {
  background: var(--brand-soft);
  border-radius: 10px;
  padding: 12px;
  margin-block: 0 14px;
}
.summary-line.total strong {
  font-size: 28px;
  font-weight: 850;
}
.cart-summary > .button {
  min-height: 52px;
  font-size: 15px;
}
.cart-note {
  font-size: 10px;
  line-height: 1.7;
}
.cart .payment-options {
  margin-block: 8px 12px;
}
.payment-options label {
  border-radius: 8px;
  padding-block: 9px;
}
.payment-options label:has(input:checked) {
  background: var(--brand-soft);
  color: var(--ink);
  border-color: var(--brand);
}
.field input,
.field select,
.field textarea {
  border-radius: 9px;
  border-color: #d7e2dd;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline-color: var(--brand);
  border-color: var(--brand);
}
input[type='checkbox'],
input[type='radio'],
input[type='range'] {
  accent-color: var(--brand);
}
.quantity button {
  border-radius: 7px;
}
.mobile-cart-floating {
  border-radius: 14px;
  background: var(--brand);
  color: var(--brand-ink);
  box-shadow: 0 5px 20px #183c3430;
}
.mobile-cart-floating small {
  color: inherit;
}
.compact-nav .nav-button {
  color: var(--ink);
}
.compact-nav .nav-button.active {
  background: var(--brand-soft);
}
.language-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.language-options {
  flex-shrink: 0;
  border-radius: 10px;
}
.language-options button {
  min-height: 44px;
  border-radius: 7px;
}
#preferences-dialog {
  max-width: 560px;
}
.login-story {
  background: #173f38;
  color: #fff;
  justify-content: center;
}
.login-story::after {
  display: none;
}
.login-story .brand-mark {
  width: 80px;
  height: 80px;
  font-size: 40px;
  margin-bottom: 40px;
}
.login-story .eyebrow,
.login-story p {
  color: #c6d9d2;
}
.login-story h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.5;
}
.login-rule {
  width: 60px;
  height: 3px;
  background: #b5cfa3;
  margin-block: 24px;
}
.login-form {
  position: relative;
}
.login-form h2 {
  font-size: 30px;
  font-weight: 800;
}
.login-form .login-settings {
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  margin: 0;
}
.business-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}
.business-details a {
  color: var(--ink);
}
.settings-workspace {
  max-width: 1100px;
}
.settings-section {
  padding: 26px;
  margin-bottom: 20px;
}
.section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}
.section-heading h2 {
  font-size: 19px;
}
.section-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}
.section-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--brand-soft);
  flex-shrink: 0;
}
.identity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 28px;
}
.identity-preview {
  background: #f4f7f5;
  border: 1px dashed #cbd9d3;
  border-radius: 16px;
  padding: 22px;
  text-align: center;
  align-self: start;
  overflow-wrap: anywhere;
}
.preview-brand {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  padding-block: 22px;
}
.preview-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: white;
  border-radius: 12px;
}
.preview-brand .brand-mark {
  width: 64px;
  height: 64px;
  font-size: 28px;
}
.preview-brand h3 {
  font-size: 21px;
}
.preview-brand p,
.preview-brand small {
  color: var(--muted);
  font-size: 12px;
}
.preview-order {
  padding: 9px 25px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--brand-ink);
  font-weight: 700;
  margin-top: 6px;
}
.brand-colors {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.brand-colors .field {
  margin: 0;
}
.brand-colors input {
  width: 72px;
  height: 44px;
  padding: 4px;
}
.color-presets {
  display: flex;
  gap: 10px;
  padding-top: 22px;
}
.color-preset {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--swatch);
  border: 3px solid white;
  box-shadow: 0 0 0 1px var(--line);
}
.logo-upload input {
  font-size: 12px;
  padding: 10px;
  background: #f8faf9;
}
.setting-toggle {
  padding: 12px 0;
}
.operations-details {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.settings-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 32px;
}
.settings-save span {
  font-size: 12px;
  color: var(--muted);
}
.preferences-panel,
.order-alert-settings {
  max-width: 1100px;
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav-group-title {
    display: none;
  }
  .sidebar .brand-mark {
    width: 42px;
    height: 42px;
  }
  .identity-layout {
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 20px;
  }
}
@media (max-width: 760px) {
  .identity-layout {
    grid-template-columns: 1fr;
  }
  .identity-preview {
    order: -1;
    padding: 16px;
  }
  .preview-brand {
    padding-block: 12px;
  }
  .settings-section {
    padding: 20px;
  }
  .settings-save {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 640px) {
  .topbar {
    min-height: 78px;
    height: auto;
    padding-block: 12px;
    margin-bottom: 20px;
  }
  .topbar h3 {
    font-size: 19px;
  }
  .customer-brand h2 {
    font-size: 23px;
  }
  .customer-brand .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
  .page-intro h1 {
    font-size: 26px;
  }
  .products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .product-copy {
    padding: 11px;
  }
  .product h3 {
    font-size: 16px;
  }
  .product .price {
    font-size: 20px;
  }
  .product-meta {
    font-size: 9px;
    flex-wrap: wrap;
  }
  .product-symbol {
    margin: 11px 11px 0;
    height: 55px;
  }
  .product-bottom {
    padding-top: 12px;
  }
  .product-desc {
    font-size: 10px;
    min-height: 34px;
  }
  .add {
    width: 29px;
    height: 29px;
  }
  .product-visual {
    height: 110px;
  }
  .cart {
    padding: 18px;
  }
  .cart-items {
    max-height: none;
  }
  .category {
    padding-inline: 13px;
  }
  .login-story {
    padding: 28px;
  }
  .login-story .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 23px;
    margin-bottom: 16px;
  }
  .login-story h1 {
    font-size: 38px;
  }
  .login-rule {
    margin-block: 14px;
  }
  .login-form {
    padding-top: 90px;
  }
  .business-details {
    gap: 6px 14px;
  }
}

/* Financial workspace shares the cashier typography and responsive table system. */
.finance-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.finance-report-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.finance-report-heading .field {
  max-width: 220px;
  margin: 0;
}
.finance-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.finance-panel {
  margin-bottom: 22px;
  min-width: 0;
}
.finance-columns .finance-panel {
  padding: 20px;
}
.finance-columns .panel-head {
  padding: 0 0 16px;
}
.finance-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--brand);
  font-size: 1.1rem;
}
.finance-warning {
  margin-bottom: 20px;
}
.finance-pad {
  padding: 0 20px 12px;
}
.finance-line {
  display: grid;
  grid-template-columns: minmax(120px, 2fr) repeat(2, minmax(80px, 1fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
}
.finance-line .field {
  margin: 0;
  min-width: 0;
}
.finance-line .button {
  margin-bottom: 2px;
}
#finance-form > .button {
  margin-top: 16px;
}
#finance-form .checkbox {
  margin: 16px 0;
}
@media (max-width: 850px) {
  .finance-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .finance-tabs .button {
    flex: 1 0 42%;
  }
  .finance-line {
    grid-template-columns: 1fr 1fr;
  }
  .finance-line .field:first-child {
    grid-column: 1/-1;
  }
  .finance-report-heading {
    flex-wrap: wrap;
  }
}

.order-alert-settings {
  margin-bottom: 22px;
}
.shift-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--brand-soft);
  border: 1px solid var(--line);
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.shift-banner small {
  display: block;
  margin-top: 3px;
}
.shift-current {
  padding: 22px;
  margin-bottom: 22px;
}
.shift-current .panel-head {
  padding: 0 0 20px;
  flex-wrap: wrap;
}
.shift-current .stats {
  margin-bottom: 18px;
}
.shift-current .stat {
  padding: 16px;
  box-shadow: none;
}
.shift-current .stat strong {
  font-size: 23px;
}
.shift-shortage {
  color: var(--danger);
  font-weight: 700;
}
.shift-count-result {
  font-size: 20px;
  font-weight: 800;
  margin-block: 14px;
}
.shift-ledger-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.shift-ledger-row p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .shift-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .shift-current {
    padding: 16px;
  }
  .shift-current .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shift-ledger-row {
    flex-wrap: wrap;
  }
}
.order-alert-settings .field {
  max-width: 440px;
}
.order-alert-settings input[type='range'] {
  padding: 0;
  min-height: 40px;
  accent-color: var(--brand);
}
.order-alert-settings .notice {
  margin-top: 20px;
}
#inbox-sound-status {
  margin-top: 4px;
  font-size: 12px;
}
@media (prefers-reduced-motion: no-preference) {
  .inbox-alert {
    animation: order-arrival 0.5s ease-out;
  }
  @keyframes order-arrival {
    from {
      transform: translateY(-4px);
      opacity: 0.6;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

/* Receipt editor stays usable on touch screens and narrow phones. */
.receipt-editor-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(220px,340px); gap:24px; align-items:start; }
.receipt-group { border-bottom:1px solid var(--border,#e4e7e5); padding:12px 0; }
.receipt-group summary { display:flex; align-items:center; gap:10px; cursor:pointer; font-weight:700; min-height:44px; }
.receipt-group summary span { display:grid; place-items:center; width:28px; height:28px; border-radius:8px; background:#edf4f1; color:#176b60; flex-shrink:0; }
.receipt-group-body { padding:14px 0; display:grid; gap:14px; }
.receipt-group-body textarea { width:100%; min-height:88px; resize:vertical; }
.receipt-preview-panel { background:#f0f2ef; padding:18px; border-radius:16px; position:sticky; top:90px; }
.receipt-preview-panel h3 { margin:0 0 12px; }
.receipt-paper { container-type:inline-size; width:100%; margin:18px auto 0; background:white; color:black; box-shadow:0 4px 20px #0000000c; padding:12px; font-family:Arial,sans-serif; }
.receipt-preview-line { white-space:pre-wrap; overflow-wrap:anywhere; padding:4px 0; line-height:1.35; }
.receipt-paper img { display:inline-block; max-width:100%; image-rendering:pixelated; }
.receipt-box { border:2px solid black; padding:6px; margin:4px 0; }
.receipt-save { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid #e4e7e5; margin-top:20px; padding-top:20px; }
.receipt-save>span { font-size:13px; color:#53635b; }
@media(max-width:850px) { .receipt-editor-grid { grid-template-columns:1fr; } .receipt-preview-panel { position:static; } .receipt-save .actions { width:100%; flex-wrap:wrap; } }

.receipt-preview-rule { border-top:2px dotted #000; margin:7px 0; }
.receipt-preview-columns { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.receipt-preview-columns>span { min-width:0; overflow-wrap:anywhere; }
.permission-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.permission-list legend {
  padding-inline: 6px;
  font-weight: 700;
}
#permission-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 6px 14px;
}

.edition-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 6px 14px;
}

.plain-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.pin-staff {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-block: 14px;
}
.pin-person {
  display: grid;
  gap: 2px;
  min-height: 64px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-align: center;
  cursor: pointer;
}
.pin-person small {
  color: var(--muted);
}
.pin-person.active {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand);
}
.auth-link {
  margin-top: 12px;
  border: 0;
  background: none;
  color: var(--brand);
  text-decoration: underline;
  cursor: pointer;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.discount-line {
  color: var(--brand);
}
.discount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.cart-discount {
  display: block;
  margin-bottom: 10px;
}

.report-preview {
  max-height: 320px;
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font: inherit;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.share-actions {
  flex-wrap: wrap;
}
/* Pre-orders */
.preorder-switch {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 8px;
}
.preorder-fields {
  margin-top: 8px;
}
.preorder-tag {
  display: block;
  color: var(--brand);
  font-weight: 700;
}
.preorder-panel {
  margin-bottom: 16px;
}
.preorder-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.preorder-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  text-align: start;
}
.preorder-item strong {
  color: var(--brand);
  white-space: nowrap;
}
.preorder-who {
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (max-width: 560px) {
  .preorder-item {
    grid-template-columns: 1fr auto;
  }
  .preorder-who {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
/* Bank transfer receipts */
.transfer-box {
  margin-top: 8px;
}
.transfer-box p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.proof-thumb {
  display: block;
  max-width: 100%;
  max-height: 320px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.proof-attached {
  margin-top: 8px;
}

/* Simplified cashier: search toolbar, compact product cards and one-row payment choice. */
.catalog-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.catalog-toolbar .search {
  flex: 1;
  margin-bottom: 0;
}
.catalog-toolbar > .button {
  flex: none;
  min-height: 52px;
}
.products:has(> .product.compact) {
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: 10px;
}
.product.compact .product-copy {
  padding: 12px 14px 14px;
}
.product.compact .product-meta {
  margin-bottom: 2px;
}
.product.compact h3 {
  font-size: 16px;
  line-height: 1.5;
}
.product.compact .product-bottom {
  padding-top: 10px;
}
.product.compact .product-visual {
  height: 96px;
}
.cart .payment-options {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 6px;
}
.cart .payment-options label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 8px 2px;
  font-size: 13px;
  font-weight: 700;
}
.cart .payment-options input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.cart .payment-options label:has(input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.cart .payment-options label:has(input:checked) {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-ink, #fff);
}
#cart-extra .preorder-switch {
  margin-top: 10px;
}
.cart .cart-item {
  padding-block: 9px;
}
.cart .cart-item .quantity {
  margin-top: 4px;
}
/* Backups saved on this device */
.device-backup {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 14px;
}
.device-backup h3 {
  margin: 12px 0 4px;
  font-size: 15px;
}
.device-backup .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.backup-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.device-backup .option-list span strong,
.device-backup .option-list span small {
  display: block;
}
.device-backup .option-list span small {
  color: var(--muted);
  font-weight: 400;
}
.device-backup .option-list span strong {
  margin: 0;
}

/* Compact workspace header: navigation stays at the physical right edge on phones. */
@media (max-width: 1023px) {
  .layout .topbar {
    display:grid;
    direction:ltr;
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-areas:"title actions menu";
    align-items:center;
    column-gap:12px;
  }
  .layout .topbar-title { grid-area:title; min-width:0; }
  .layout .topbar-right { grid-area:actions; width:auto; min-width:0; justify-content:flex-start; flex-wrap:nowrap; }
  .layout .menu-toggle { grid-area:menu; margin:0; justify-self:end; flex:none; }
  html[dir='rtl'] .layout .topbar-title,html[dir='rtl'] .layout .topbar-right { direction:rtl; }
  .layout .topbar h3 { overflow-wrap:anywhere; }
  .layout .topbar .round { display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; min-width:44px; padding:0; }
  .layout .topbar .icon { width:20px; height:20px; }
}
@media (max-width: 640px) {
  .layout .topbar { grid-template-columns:minmax(0,1fr) auto; grid-template-areas:"actions menu" "title title"; row-gap:13px; padding-block:12px 17px; }
  .layout .topbar-title { width:100%; }
  .layout .topbar h3 { font-size:17px; line-height:1.6; }
  .layout .topbar-right { gap:7px; justify-self:start; }
  .layout .topbar-right .status { width:10px; min-width:10px; padding:0; border:0; background:none; font-size:0; gap:0; }
  .layout .menu-toggle { min-height:44px; gap:8px; padding:9px 12px; border-radius:12px; }
  .layout .menu-toggle span { font-size:12px; }
  .products > .empty { min-height:230px; padding:32px 16px; }
  .products > .empty .button { max-width:100%; white-space:normal; }
  .product-bottom { flex-wrap:wrap; gap:8px; }
  .product .add { flex-shrink:0; }
}
.app-update-notice {
  position: fixed;
  z-index: 10000;
  inset-block-start: max(12px, env(safe-area-inset-top));
  inset-inline: 12px;
  margin-inline: auto;
  max-width: 620px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid #b7c8c3;
  border-radius: 16px;
  background: #fff;
  color: #203e36;
  box-shadow: 0 12px 40px #142e3026;
  font-size: 14px;
}
.app-update-notice span { flex: 1 1 220px; min-width: 0; }
.app-update-notice button { min-height: 44px; }
:root { --waiting-ink: #176c62; }
.customer-wait { display: flex; align-items: center; gap: 18px; margin-block: 18px 4px; }
.customer-wait > div:last-child { min-width: 0; flex: 1; }
.customer-wait p { margin-block: 8px; }
.customer-wait small { display: block; margin-top: 9px; line-height: 1.7; }
.wait-clock { flex: 0 0 86px; width: 86px; height: 86px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--waiting-ink); background: radial-gradient(circle, var(--surface, #fff) 61%, transparent 63%), conic-gradient(var(--waiting-ink) calc(var(--wait-progress) * 1turn), #dce8e4 0); }
.wait-clock strong { font-size: 29px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.wait-clock small { margin: 0; font-size: 11px; }
.ordering-hours { margin-block: 20px; border: 1px solid #dce8e4; border-radius: 16px; padding: 16px; min-width: 0; }
.ordering-hours legend { font-weight: 700; padding-inline: 8px; }
.ordering-days { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-block: 16px; }
.ordering-hours input[type=time] { min-width: 0; }
@media (max-width: 480px) { .customer-wait { align-items: flex-start; gap: 12px; } .wait-clock { flex-basis: 70px; width: 70px; height: 70px; } .customer-wait .button { width: 100%; padding-inline: 10px; } }
.coupon-box { border: 1px solid #dce8e4; border-radius: 14px; padding: 14px; margin-block: 12px; }
.coupon-box small { display: block; line-height: 1.7; }
.coupon-box .summary-line > :last-child { white-space: nowrap; }
.coupon-box .summary-line small { display: inline; }
.offers-banner { margin-block: 18px; border: 1px solid #dce8e4; border-radius: 20px; padding: 18px; background: var(--surface, #fff); }
.offers-banner h2 { font-size: 20px; margin: 0; }
.offer-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 14px; }
.offer-card { padding: 14px; border-radius: 14px; background: #edf4f1; color: #173e36; }
.offer-card p { font-size: 12px; }
.offer-badge { margin-block: 4px; }
.promotion-products { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 12px; max-height: 300px; overflow: auto; padding: 12px; margin-block: 12px; border: 1px solid #dce8e4; border-radius: 12px; }
.product-image-editor { grid-column: 1 / -1; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; }
.product-image-editor canvas { display: block; width: min(100%, 320px); height: auto; aspect-ratio: 1; margin: 12px auto; border: 1px solid var(--line); border-radius: 10px; background: #f0f4f2; touch-action: none; cursor: grab; }
.product-image-editor canvas:active { cursor: grabbing; }
.product-image-editor [type=range] { width: 100%; padding: 0; min-height: 36px; accent-color: var(--brand); }
.product-image-editor p { font-size: 13px; line-height: 1.8; }
.product-image-editor [data-image-error] { color: #a6322d; }
.product-image-editor [data-image-remove] { margin-top: 12px; }
.product.without-photo { align-self: start; }
.product.without-photo .product-copy { min-height: 145px; }
/* Square menu tiles: the saved square preview occupies the entire card. */
@media(max-width:600px) {
.products, .products:has(> .product.compact) { grid-template-columns: repeat(auto-fill, minmax(min(160px,100%),1fr)); gap: 10px; align-items: start; }
.products .product { aspect-ratio: 1; min-height: 0; border-radius: 12px; padding: 0; position: relative; background: #e9efec; }
.products .product .product-visual { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; background: #e9efec; }
.products .product .product-visual img { object-fit: contain; }
.products .product .product-copy { position: absolute; inset: 0; justify-content: flex-end; min-height: 0; padding: 10px; gap: 3px; }
.products .product.with-photo .product-copy { background: linear-gradient(transparent 35%,#10282230 57%,#102822df 100%); color: #fff; }
.products .product h3 { color: inherit; font-size: 15px; line-height: 1.45; margin: 0; font-weight: 700; }
.products .product .product-meta, .products .product .product-desc, .products .product .product-symbol { display: none; }
.products .product .product-bottom { margin: 0; padding: 0; gap: 4px; flex-wrap: nowrap; }
.products .product .price { color: inherit; font-size: 14px; letter-spacing: 0; white-space: nowrap; }
.products .product .price small { color: inherit; opacity: .85; font-size: 10px; }
.products .product .add { width: 26px; height: 26px; border-radius: 7px; font-size: 19px; }
.products .product.with-photo .add { background: #ffffffde; color: #173e36; }
.products .product.without-photo { background: var(--brand-soft); color: var(--ink); }
.products .product.without-photo .product-copy { justify-content: center; text-align: center; padding-bottom: 35px; }
.products .product.without-photo .product-bottom { position: absolute; inset-inline: 10px; bottom: 8px; }
.products .product .offer-badge { position: absolute; top: 7px; inset-inline-start: 7px; margin: 0; font-size: 9px; }
.products .product.in-cart::after { content: attr(data-cart-count); position: absolute; top: 7px; inset-inline-end: 7px; background: var(--brand); color: white; border-radius: 20px; padding: 1px 7px; font-size: 12px; }
}
.mobile-product-layout { display: none; }
.order-field-label { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.order-field-label small { margin-inline-start: auto; font-size: 11px; }
.order-fields-context { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-block: 12px; min-width: 0; }
.order-fields-context .fields > div { min-width: 0; }
.order-fields-context .fields { grid-template-columns: 1fr; gap: 12px; }
.order-fields-context .field { display: grid; grid-template-columns: minmax(0,1fr) minmax(90px,120px); align-items: center; gap: 10px; }
.order-fields-context .field select { min-width: 0; }
.order-fields-context legend { padding-inline: 8px; font-weight: 700; }
.schedule-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-block: 10px; }
.schedule-presets button { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--surface,#fff); color: var(--ink); border-radius: 10px; padding: 9px; font-size: 12px; }
.schedule-presets button.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.schedule-presets .icon { width: 17px; height: 17px; }
.topbar-right .connection-status, .layout .topbar-right .connection-status { width: auto; min-width: 0; display: inline-flex; flex: none; gap: 7px; padding: 8px 11px; border: 1px solid #5fdda0; border-radius: 12px; background: linear-gradient(135deg,#effff5,#bcf5d4); color: #066336; font-size: 12px; box-shadow: 0 2px 8px #16a34a18; }
.topbar-right .connection-status svg { width: 19px; height: 19px; flex: none; }
.topbar-right .connection-status strong { font-weight: 800; line-height: 1.5; }
.topbar-right .connection-status.offline { border-color: #f29c98; background: linear-gradient(135deg,#fff5f4,#ffd4d1); color: #a52321; box-shadow: 0 2px 8px #dc262620; }
.topbar-right .connection-status.local { border-color: #91c5ed; background: #e6f4ff; color: #205c8a; box-shadow: none; }
@media(max-width:640px) {
  .layout .topbar { column-gap: 6px; }
  .layout .topbar-right { flex-wrap: nowrap; width: auto; gap: 5px; }
  .layout .topbar .round { width: 40px; height: 40px; min-width: 40px; }
  .layout .menu-toggle { align-self: center; min-height: 40px; padding: 8px 10px; }
  .layout .topbar-right .connection-status { padding: 7px; gap: 5px; font-size: 11px; }
}
@media(max-width:420px) {
  .layout .menu-toggle { width: 40px; min-width: 40px; justify-content: center; padding: 8px; }
  .layout .menu-toggle span { display: none; }
}
.image-card-preview { position: relative; width: min(100%,320px); margin: 12px auto; overflow: hidden; border-radius: 10px; }
.product-image-editor .image-card-preview canvas { width: 100%; border: 0; margin: 0; border-radius: 0; }
.image-card-caption { position: absolute; inset: 0; pointer-events: none; display: flex; flex-direction: column; justify-content: flex-end; padding: 10px; color: white; background: linear-gradient(transparent 35%,#10282230 57%,#102822df 100%); }
.image-card-caption strong { font-size: 15px; }
.image-card-caption small { font-size: 14px; }
.image-card-caption[hidden] { display: none; }
.image-crop-actions { flex-wrap: wrap; }
.product-image-editor [hidden] { display: none !important; }
@media(max-width:600px) {
  .mobile-product-layout { display: inline-flex; flex: 0 0 44px; width: 44px; height: 44px; padding: 10px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface,#fff); color: var(--ink); cursor: pointer; }
  .mobile-product-layout:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .catalog-toolbar .search { min-width: 0; }
  .catalog-toolbar { flex-wrap: wrap; }
  .products, .products:has(> .product.compact) { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
  .products .product { border-radius: 8px; }
  .products .product .product-copy { padding: 7px; }
  .products .product h3 { font-size: 12px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .products .product .price { font-size: 12px; }
  .products .product .price small { font-size: 8px; }
  .products .product .add { display: none; }
  .products .product.without-photo .product-bottom { inset-inline: 7px; bottom: 7px; }
  #products-grid[data-mobile-layout=large] { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .products[data-mobile-layout=large] .product h3 { font-size: 15px; }
  #products-grid[data-mobile-layout=small] { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 5px; }
  .products[data-mobile-layout=small] .product .product-copy { padding: 5px; }
  .products[data-mobile-layout=small] .product h3, .products[data-mobile-layout=small] .product .price { font-size: 10px; }
  .products[data-mobile-layout=small] .product.without-photo .product-copy { padding-bottom: 24px; }
  .products[data-mobile-layout=small] .offer-badge { font-size: 7px; padding: 1px 3px; top: 3px; }
  #products-grid[data-mobile-layout=list] { grid-template-columns: minmax(0,1fr); }
  .products[data-mobile-layout=list] .product { aspect-ratio: auto; height: 100px; }
  .products[data-mobile-layout=list] .product .product-visual { width: 98px; height: 98px; inset-inline-start: 0; inset-inline-end: auto; }
  .products[data-mobile-layout=list] .product .product-copy { background: none; color: var(--ink); padding: 12px; justify-content: center; text-align: start; }
  .products[data-mobile-layout=list] .product.with-photo .product-copy { padding-inline-start: 110px; }
  .products[data-mobile-layout=list] .product h3 { font-size: 15px; }
  .products[data-mobile-layout=list] .product .product-bottom { position: static; }
  .products[data-mobile-layout=list] .product .price { font-size: 14px; }
  .products[data-mobile-layout=list] .product .offer-badge { position: static; align-self: start; }
}
