@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #231f1c;
  --muted: #6d625a;
  --line: #ded7cf;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --accent: #1f6f5f;
  --accent-dark: #175447;
  --wine: #8f2738;
  --amber: #c4832b;
  --shadow: 0 18px 46px rgba(36, 29, 25, 0.09);
}

* {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 250, 247, 0.94)),
    var(--paper);
  color: var(--ink);
  font-family: 'Roboto Condensed', Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

a {
  color: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-shell.waiter-shell .admin-sidebar {
  box-shadow: 18px 0 36px rgba(31, 23, 20, 0.18);
  left: 0;
  position: fixed;
  top: 0;
  transition: transform 0.2s ease;
  width: 260px;
  z-index: 40;
}

.admin-shell.waiter-shell.sidebar-collapsed .admin-sidebar {
  transform: translateX(-100%);
}

.admin-shell.waiter-shell {
  display: block;
}

.admin-shell.waiter-shell .admin-content {
  margin-left: 0;
  min-height: 100vh;
  padding-top: 64px;
}

.waiter-menu-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #1f1714;
  box-shadow: 0 10px 24px rgba(31, 23, 20, 0.18);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  left: 14px;
  min-height: 44px;
  padding: 9px 15px;
  position: fixed;
  top: 14px;
  z-index: 90;
}

.waiter-panel-brand {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(31, 23, 20, 0.12);
  color: var(--ink);
  display: inline-flex;
  gap: 9px;
  left: 50%;
  min-height: 44px;
  padding: 7px 14px 7px 10px;
  position: fixed;
  text-decoration: none;
  top: 14px;
  transform: translateX(-50%);
  z-index: 88;
}

.waiter-panel-brand img {
  height: 30px;
  width: auto;
}

.waiter-panel-brand .waiter-brand-name,
.waiter-panel-brand .waiter-user-name {
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.waiter-panel-brand .waiter-user-name {
  align-items: center;
  border-left: 1px solid var(--line);
  color: var(--wine);
  display: inline-flex;
  font-size: 13px;
  line-height: 1;
  max-width: 160px;
  min-height: 30px;
  overflow: hidden;
  padding-left: 9px;
  text-overflow: ellipsis;
}

.admin-mobile-menu-toggle {
  display: none;
}

.admin-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 22px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 6px 0 14px;
  text-align: center;
}

.admin-brand img {
  width: 86px;
  height: auto;
}

.admin-brand strong {
  font-size: 18px;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a,
.nav-group summary,
.admin-logout button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: flex-start;
  padding: 12px 13px;
  text-decoration: none;
  font-weight: 800;
}

.nav-group {
  display: grid;
  gap: 6px;
}

.nav-group summary {
  list-style: none;
}

.nav-group summary::-webkit-details-marker {
  display: none;
}

.nav-group summary::after {
  content: "⌄";
  margin-left: auto;
}

.nav-group[open] summary::after {
  content: "⌃";
}

.nav-group a {
  margin-left: 12px;
}

.admin-nav a:hover,
.nav-group summary:hover,
.admin-nav a.active {
  background: #eef5f3;
  color: var(--accent-dark);
}

.admin-logout {
  margin-top: 0;
}

.admin-logout button {
  width: 100%;
  color: var(--wine);
}

.admin-customer-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f3;
  color: var(--accent-dark);
  display: block;
  font-weight: 900;
  margin-top: auto;
  padding: 12px 13px;
  text-align: center;
  text-decoration: none;
}

.admin-content {
  min-width: 0;
  padding: 28px 30px;
  position: relative;
  width: min(100%, 1540px);
}

.privacy-mode-toggle {
  align-items: center;
  border: 1px solid rgba(143, 39, 56, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 30px rgba(36, 29, 25, 0.12);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  position: fixed;
  right: 22px;
  top: 18px;
  z-index: 92;
}

.privacy-mode-toggle span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
}

.privacy-mode-toggle small {
  border-radius: 999px;
  background: #f4eee9;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
}

.privacy-mode-toggle.is-active {
  background: #1f1714;
  border-color: #1f1714;
  color: #fff;
}

.privacy-mode-toggle.is-active small {
  background: var(--wine);
  color: #fff;
}

.privacy-mode-active .privacy-money-mask {
  color: transparent !important;
  position: relative;
  text-shadow: none !important;
  white-space: nowrap;
}

.privacy-mode-active .privacy-money-mask::after {
  color: var(--privacy-mask-color, var(--ink));
  content: attr(data-privacy-mask);
  left: 0;
  position: absolute;
  top: 0;
}

.notification-widget {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 46px;
  z-index: 20;
}

.notification-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--shadow);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 0;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  padding: 0;
  position: relative;
  width: 46px;
}

.notification-widget.has-new .notification-toggle {
  border-color: rgba(122, 31, 43, 0.42);
  box-shadow: 0 18px 50px rgba(122, 31, 43, 0.24);
}

.notification-widget.is-open {
  z-index: 32;
}

.notification-toggle svg,
.action-approval-toggle svg {
  fill: none;
  height: 21px;
  pointer-events: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 21px;
}

.notification-label,
.action-approval-label {
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.notification-count {
  align-items: center;
  background: var(--wine);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  min-width: 19px;
  padding: 2px 5px;
  position: absolute;
  right: -5px;
  top: -5px;
}

.notification-count[hidden],
.action-approval-toggle [data-action-approval-count][hidden] {
  display: none;
}

.notification-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(36, 29, 25, 0.18);
  display: none;
  bottom: calc(100% + 8px);
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  position: absolute;
  right: 0;
  width: min(340px, calc(100vw - 28px));
}

.notification-panel.open {
  display: block;
}

.notification-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.notification-clear {
  border: 0;
  border-radius: 8px;
  background: #eef5f3;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 900;
  padding: 7px 9px;
}

.notification-list {
  display: grid;
  gap: 8px;
}

.notification-empty {
  color: var(--muted);
  margin-bottom: 0;
}

.notification-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.notification-item.order {
  border-color: rgba(31, 111, 95, 0.24);
  background: #f3faf7;
}

.notification-item.service {
  border-color: rgba(177, 58, 49, 0.24);
  background: #fff4f0;
}

.notification-item span,
.notification-item small {
  color: var(--muted);
}

.action-approval-widget {
  bottom: 74px;
  position: fixed;
  right: 18px;
  width: 46px;
  z-index: 24;
}

.action-approval-toggle {
  align-items: center;
  background: #211917;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  box-shadow: 0 18px 52px rgba(33, 25, 23, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 0;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  line-height: 1;
  max-width: 46px;
  min-width: 0;
  padding: 0;
  position: relative;
  width: 46px;
}

.action-approval-toggle [data-action-approval-count] {
  align-items: center;
  background: var(--wine);
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  justify-content: center;
  min-width: 19px;
  padding: 2px 5px;
  position: absolute;
  right: -5px;
  top: -5px;
}

.action-approval-widget.has-pending .action-approval-toggle {
  animation: approvalPulse 1.4s ease-in-out infinite;
  background: #7a1f2b;
}

.action-approval-widget.is-open {
  z-index: 34;
}

@keyframes approvalPulse {
  0%,
  100% {
    box-shadow: 0 18px 52px rgba(122, 31, 43, 0.28);
  }
  50% {
    box-shadow: 0 18px 64px rgba(122, 31, 43, 0.48);
  }
}

.action-approval-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  bottom: calc(100% + 8px);
  box-shadow: 0 24px 80px rgba(36, 29, 25, 0.22);
  display: none;
  max-height: 520px;
  overflow: auto;
  padding: 12px;
  position: absolute;
  right: 0;
  width: min(360px, calc(100vw - 28px));
}

.action-approval-panel.open {
  display: block;
}

.action-approval-head,
.action-approval-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.action-approval-head {
  margin-bottom: 10px;
}

.action-approval-head button {
  background: #f4efea;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  padding: 7px 10px;
}

.action-approval-list {
  display: grid;
  gap: 9px;
}

.action-approval-empty {
  color: var(--muted);
  margin: 0;
}

.action-approval-item {
  background: #fffdfa;
  border: 1px solid rgba(122, 31, 43, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 11px;
}

.action-approval-item.suspicious {
  background: #fff7f4;
  border-color: rgba(122, 31, 43, 0.34);
}

.action-approval-item-header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.action-approval-badge {
  background: rgba(27, 118, 93, 0.12);
  border: 1px solid rgba(27, 118, 93, 0.22);
  border-radius: 999px;
  color: #1b765d;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
}

.action-approval-badge.danger {
  background: rgba(122, 31, 43, 0.12);
  border-color: rgba(122, 31, 43, 0.25);
  color: var(--wine);
}

.action-approval-detail-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
}

.action-approval-detail-list div {
  align-items: start;
  background: rgba(244, 239, 234, 0.72);
  border: 1px solid rgba(36, 29, 25, 0.06);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 82px 1fr;
  padding: 7px 8px;
}

.action-approval-detail-list dt,
.action-approval-detail-list dd {
  margin: 0;
}

.action-approval-detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.action-approval-detail-list dd {
  color: var(--ink);
  font-weight: 800;
}

.action-approval-item strong,
.action-approval-item span,
.action-approval-item small,
.action-approval-item p {
  display: block;
}

.action-approval-item span,
.action-approval-item small,
.action-approval-item p {
  color: var(--muted);
}

.action-approval-item p {
  margin: 6px 0 0;
}

.action-approval-actions .primary-btn,
.action-approval-actions .delete-btn,
.action-approval-actions .ghost-btn {
  flex: 1;
  padding: 9px 10px;
  text-align: center;
}

.approval-request-btn {
  border-color: rgba(122, 31, 43, 0.28);
  color: var(--wine);
}

.staff-announcement-modal {
  align-items: center;
  background: rgba(20, 16, 14, 0.66);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 120;
}

body.staff-announcement-open {
  overflow: hidden;
}

.access-location-lock {
  align-items: center;
  background: rgba(20, 16, 14, 0.62);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 118;
}

.access-location-lock[hidden] {
  display: none;
}

body.access-location-locked {
  overflow: hidden;
}

.access-location-card {
  border: 2px solid rgba(131, 29, 42, 0.26);
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  display: grid;
  gap: 12px;
  max-width: 520px;
  padding: 24px;
  text-align: center;
  width: min(100%, 520px);
}

.access-location-card span {
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.access-location-card strong {
  color: var(--ink);
  font-size: clamp(23px, 4vw, 32px);
  line-height: 1.12;
}

.access-location-card p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0;
}

.access-location-actions {
  align-items: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.access-location-actions .primary-btn {
  min-height: 48px;
  min-width: 170px;
}

.access-location-actions small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.access-location-override {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 4px;
  padding-top: 12px;
  width: 100%;
}

.access-location-override label,
.location-override-field {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  text-align: left;
  width: 100%;
}

.access-location-override input,
.location-override-field input {
  letter-spacing: 0.16em;
  min-height: 44px;
  text-align: center;
}

.access-location-override .ghost-btn {
  width: 100%;
}

.staff-announcement-modal[hidden] {
  display: none;
}

.staff-announcement-card {
  border: 2px solid rgba(131, 29, 42, 0.22);
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
  display: grid;
  gap: 13px;
  max-width: 560px;
  padding: 24px;
  text-align: center;
  width: min(100%, 560px);
}

.staff-announcement-card span {
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-announcement-card strong {
  color: var(--ink);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.1;
}

.staff-announcement-card p {
  color: var(--ink);
  font-size: clamp(19px, 3vw, 25px);
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.staff-announcement-card small {
  color: var(--muted);
  font-weight: 800;
}

.staff-announcement-card .primary-btn {
  justify-self: center;
  min-height: 48px;
  min-width: 150px;
}

.staff-announcement-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.staff-announcement-modal-actions .primary-btn,
.staff-announcement-modal-actions .ghost-btn {
  min-height: 48px;
  min-width: 142px;
}

.staff-announcement-layout {
  align-items: start;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.staff-announcement-side {
  display: grid;
  gap: 14px;
}

.staff-announcement-stats {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: end;
}

.staff-announcement-form textarea {
  min-height: 150px;
  resize: vertical;
}

.quick-template-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quick-template-card {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
  text-align: left;
}

.quick-template-card:hover {
  border-color: rgba(26, 121, 91, 0.35);
  box-shadow: 0 12px 28px rgba(36, 29, 25, 0.08);
}

.quick-template-card strong,
.quick-template-card span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-template-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.quick-template-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.staff-announcement-options,
.staff-template-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recipient-mode-box {
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.recipient-mode-box > strong {
  color: var(--ink);
  font-size: 13px;
}

.radio-row {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  margin: 0;
}

.waiter-check-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 4px;
}

.staff-template-manager {
  display: grid;
  gap: 12px;
}

.staff-template-manager > summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.staff-template-manager > summary::-webkit-details-marker,
.staff-template-item > summary::-webkit-details-marker {
  display: none;
}

.staff-template-manager[open] > summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.staff-template-form,
.staff-template-list {
  display: grid;
  gap: 9px;
}

.staff-template-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.staff-template-item > summary {
  align-items: center;
  background: #fffdfa;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
  padding: 10px;
}

.staff-template-item > summary strong,
.staff-template-item > summary span {
  min-width: 0;
}

.staff-template-item > summary strong {
  color: var(--ink);
  font-size: 13px;
}

.staff-template-item > summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.staff-template-item .staff-template-form,
.staff-template-delete {
  padding: 10px;
}

.staff-template-delete {
  border-top: 1px solid var(--line);
  margin: 0;
}

.staff-template-delete .delete-btn,
.staff-template-form .primary-btn,
.staff-template-form .ghost-btn {
  width: 100%;
}

.firebase-diagnostic-panel {
  display: grid;
  gap: 12px;
}

.firebase-status-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.firebase-status-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
}

.firebase-status-card.ok {
  background: #edf8f2;
  border-color: #b9dec9;
}

.firebase-status-card.warn {
  background: #fff1e8;
  border-color: #efc4a8;
}

.firebase-status-card span,
.firebase-status-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.firebase-status-card strong {
  color: var(--ink);
  font-size: 14px;
}

.firebase-status-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.firebase-log-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding-right: 2px;
}

.firebase-log-entry {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px;
}

.firebase-log-entry.ok {
  border-color: #b9dec9;
}

.firebase-log-entry.fail {
  border-color: #e9b4ac;
  background: #fff7f4;
}

.firebase-log-entry strong,
.firebase-log-entry span,
.firebase-log-entry small {
  display: block;
}

.firebase-log-entry strong {
  color: var(--ink);
  font-size: 12px;
}

.firebase-log-entry span,
.firebase-log-entry small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
}

.firebase-log-entry em {
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 5px 7px;
}

.staff-announcement-list {
  display: grid;
  gap: 10px;
}

.staff-announcement-item {
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.staff-announcement-item.task {
  border-color: rgba(26, 121, 91, 0.24);
}

.staff-announcement-item.urgent {
  background: #fff7f4;
  border-color: rgba(122, 31, 43, 0.28);
}

.staff-announcement-item strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.staff-announcement-item p {
  color: var(--ink);
  font-weight: 800;
  margin: 0 0 6px;
}

.staff-announcement-item small,
.staff-announcement-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.staff-announcement-item span {
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  padding: 6px 9px;
  white-space: nowrap;
}

.staff-announcement-main {
  min-width: 0;
}

.staff-announcement-badges {
  align-items: end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.staff-announcement-badges .urgent {
  background: #fff1e8;
  color: #ad3e10;
}

.staff-announcement-badges .important {
  background: #fff8db;
  color: #8a5b00;
}

.staff-announcement-badges .done {
  background: #edf8f2;
  color: var(--accent-dark);
}

.staff-announcement-badges .category {
  background: #f1ede8;
  color: var(--ink);
}

.staff-announcement-read-details {
  border-top: 1px solid var(--line);
  grid-column: 1 / -1;
  padding-top: 10px;
}

.staff-announcement-read-details summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-announcement-read-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.staff-announcement-read-grid > div {
  background: #f8f4ec;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.staff-announcement-read-grid ul {
  display: grid;
  gap: 6px;
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}

.staff-announcement-read-grid li {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.staff-announcement-read-grid li span {
  background: transparent;
  color: var(--ink);
  padding: 0;
  white-space: normal;
}

.staff-announcement-read-grid li small {
  flex: 0 0 auto;
}

.staff-announcement-read-grid .muted-line {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact-btn {
  min-height: 36px;
  padding: 8px 11px;
}

.admin-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.admin-page-head h1 {
  font-size: clamp(30px, 4vw, 44px);
}

.table-page-eyebrow {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.active-user-pill {
  border: 1px solid rgba(131, 29, 42, 0.18);
  border-radius: 999px;
  background: rgba(131, 29, 42, 0.08);
  color: var(--wine);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  max-width: 220px;
  overflow: hidden;
  padding: 6px 10px;
  text-overflow: ellipsis;
  text-transform: none;
  vertical-align: middle;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.dashboard-extra-stats {
  margin-top: -4px;
}

.dashboard-finance-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-finance-stats .stat-card {
  background: linear-gradient(135deg, #fffdfa 0%, #eef5f3 100%);
}

.dashboard-finance-stats .stat-card strong {
  color: var(--accent-dark);
}

.stat-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
}

.stat-card span {
  color: var(--muted);
  display: block;
  font-weight: 800;
  margin-bottom: 8px;
}

.stat-card strong {
  display: block;
  font-size: 36px;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.report-filter-form {
  align-items: end;
  background: linear-gradient(135deg, #fffdfa 0%, #f8f4ed 100%);
  border-color: rgba(31, 111, 95, 0.16);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(170px, 0.9fr) minmax(190px, 1fr) minmax(190px, 1fr) auto auto;
  margin-bottom: 18px;
  padding: 20px 22px;
}

.report-filter-form label {
  display: grid;
  gap: 7px;
  margin: 0;
  min-width: 0;
}

.report-filter-form label[hidden] {
  display: none;
}

.report-filter-form select,
.report-filter-form input {
  background: #fff;
  border-color: rgba(36, 29, 25, 0.14);
  min-height: 48px;
}

.report-filter-form button,
.report-filter-form .ghost-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
  white-space: nowrap;
}

.report-stats {
  margin-bottom: 18px;
}

.report-stats .stat-card {
  overflow: hidden;
  position: relative;
}

.report-stats .stat-card::after {
  background: rgba(31, 111, 95, 0.09);
  border-radius: 999px;
  content: "";
  height: 72px;
  position: absolute;
  right: -26px;
  top: -28px;
  width: 72px;
}

.report-stats .stat-card strong {
  font-size: clamp(23px, 2.3vw, 32px);
  max-width: 100%;
  overflow-wrap: anywhere;
  position: relative;
  z-index: 1;
}

.report-dashboard {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(340px, 0.92fr) minmax(0, 1.08fr);
}

.day-close-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
}

.day-close-grid,
.day-close-subgrid {
  display: grid;
  gap: 12px;
}

.day-close-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.day-close-subgrid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.day-close-card,
.day-close-subgrid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 13px;
}

.day-close-card.ok {
  background: #f2faf7;
  border-color: rgba(31, 111, 95, 0.24);
}

.day-close-card.warning,
.day-close-subgrid > div.warning {
  background: #fff7f6;
  border-color: rgba(184, 43, 43, 0.22);
}

.day-close-card span,
.day-close-subgrid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.day-close-card.ok span {
  color: var(--accent-dark);
}

.day-close-card.warning span,
.day-close-subgrid > div.warning span {
  color: var(--wine);
}

.day-close-card strong,
.day-close-subgrid strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.day-close-card b,
.day-close-subgrid b {
  color: var(--ink);
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.day-close-card small,
.day-close-subgrid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.backup-security-grid,
.backup-command-layout,
.backup-path-grid,
.backup-note-grid {
  display: grid;
  gap: 14px;
}

.backup-security-grid,
.backup-command-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.backup-security-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.backup-check-list,
.backup-plan-list,
.backup-command-list,
.backup-cron-box {
  display: grid;
  gap: 10px;
}

.backup-check-row,
.backup-plan-list > div,
.backup-path-grid > div,
.backup-note-grid > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.backup-check-row.ok {
  background: #f2faf7;
  border-color: rgba(31, 111, 95, 0.22);
}

.backup-check-row.warning {
  background: #fff7f6;
  border-color: rgba(184, 43, 43, 0.2);
}

.backup-check-row span,
.backup-path-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.backup-check-row.ok span {
  color: var(--accent-dark);
}

.backup-check-row.warning span {
  color: var(--wine);
}

.backup-check-row strong,
.backup-plan-list strong,
.backup-path-grid strong,
.backup-note-grid strong {
  color: var(--ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.backup-check-row small,
.backup-plan-list span,
.backup-note-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.backup-path-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.backup-note-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.backup-command-card,
.backup-cron-box > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  position: relative;
}

.backup-command-card > strong,
.backup-cron-box strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  padding-right: 92px;
}

.backup-cron-box small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.backup-command-card button,
.backup-cron-box button {
  background: var(--accent-dark);
  border: 0;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 7px 10px;
  position: absolute;
  right: 12px;
  top: 10px;
}

.backup-command-card pre,
.backup-cron-box pre {
  background: #241d19;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
  margin: 0;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1180px) {
  .day-close-grid,
  .day-close-subgrid,
  .backup-path-grid,
  .backup-note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.payment-timing-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px;
}

.payment-timing-next-day {
  align-items: flex-end;
  display: grid;
  gap: 4px;
  justify-items: end;
  text-align: right;
}

.payment-timing-next-day span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-timing-next-day strong {
  color: var(--accent-dark);
  font-size: 24px;
  line-height: 1;
}

.payment-timing-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-timing-card {
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 10px;
  padding: 14px;
}

.payment-timing-card.total {
  background: #eef5f3;
  border-color: rgba(31, 111, 95, 0.24);
}

.payment-timing-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-timing-card strong {
  color: var(--text);
  font-size: 23px;
  line-height: 1.1;
}

.payment-timing-card div {
  display: grid;
  gap: 4px;
}

.payment-timing-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.payment-timing-table-wrap {
  overflow-x: auto;
}

.payment-timing-table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
  width: 100%;
}

.payment-timing-table th,
.payment-timing-table td {
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  text-align: right;
  white-space: nowrap;
}

.payment-timing-table th:first-child,
.payment-timing-table td:first-child {
  text-align: left;
}

.payment-timing-table th {
  background: #f7efe4;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.payment-timing-table td {
  font-size: 13px;
  font-weight: 800;
}

.report-chart-panel,
.report-breakdown-panel {
  background: #fffdfa;
  border-color: rgba(36, 29, 25, 0.12);
  display: grid;
  gap: 18px;
  min-width: 0;
  padding: 22px;
}

.expense-donut-wrap {
  align-items: center;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 380px;
  padding: 34px;
  place-items: center;
}

.expense-donut {
  align-items: center;
  aspect-ratio: 1;
  border-radius: 999px;
  box-shadow: 0 22px 58px rgba(36, 29, 25, 0.16);
  display: grid;
  justify-items: center;
  max-width: 340px;
  padding: 32px;
  place-items: center;
  position: relative;
  width: min(100%, 340px);
}

.expense-donut-svg {
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
  width: 100%;
}

.expense-donut-bg,
.expense-donut-segment {
  fill: none;
  stroke-linecap: round;
  stroke-width: 18;
}

.expense-donut-bg {
  stroke: #f2eee7;
}

.expense-donut-segment {
  cursor: help;
  transition: filter 0.18s ease, opacity 0.18s ease, stroke-width 0.18s ease;
}

.expense-donut-segment:hover {
  filter: drop-shadow(0 5px 8px rgba(36, 29, 25, 0.25));
  opacity: 0.92;
  stroke-width: 21;
}

.expense-donut-center {
  align-items: center;
  background: #fffdfa;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: grid;
  gap: 8px;
  inset: 28%;
  max-width: 170px;
  min-height: 110px;
  padding: 18px;
  place-items: center;
  position: absolute;
  text-align: center;
  z-index: 1;
}

.expense-donut-center strong {
  color: var(--wine);
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1;
  width: 100%;
}

.expense-donut-center span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.report-breakdown-list {
  display: grid;
  gap: 10px;
}

.report-breakdown-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) minmax(74px, auto);
  padding: 13px 14px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.report-breakdown-row:hover {
  border-color: rgba(31, 111, 95, 0.3);
  box-shadow: 0 10px 26px rgba(36, 29, 25, 0.08);
  transform: translateY(-1px);
}

.report-color-dot {
  border: 3px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px var(--line);
  height: 18px;
  width: 18px;
}

.report-breakdown-row strong,
.report-breakdown-row small {
  display: block;
}

.report-breakdown-row strong {
  font-size: 15px;
  overflow-wrap: anywhere;
}

.report-breakdown-row small {
  color: var(--muted);
  font-weight: 800;
  margin-top: 3px;
}

.report-breakdown-row b {
  background: #eef5f3;
  border-radius: 999px;
  color: var(--accent-dark);
  justify-self: end;
  padding: 6px 10px;
}

.suspicious-report-grid {
  align-items: start;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.6fr);
}

.suspicious-event-panel {
  min-width: 0;
}

.suspicious-event-list {
  display: grid;
  gap: 10px;
}

.suspicious-event-card {
  background: #fff8f3;
  border: 1px solid rgba(122, 31, 43, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 170px;
  padding: 12px;
}

.suspicious-event-card.resolved {
  background: #f5fbf8;
  border-color: rgba(31, 111, 95, 0.22);
}

.suspicious-event-card strong,
.suspicious-event-card span,
.suspicious-event-card p,
.suspicious-event-card small {
  display: block;
}

.suspicious-event-card strong {
  color: var(--ink);
}

.suspicious-event-card span,
.suspicious-event-card small,
.suspicious-event-card p {
  color: var(--muted);
  margin-top: 4px;
}

.suspicious-event-card aside {
  align-content: start;
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
}

.suspicious-event-card aside b {
  color: var(--danger);
}

.suspicious-event-card.resolved aside b {
  color: var(--success);
}

.suspicious-event-card aside em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.product-report-head {
  align-items: center;
}

.product-report-filter {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.product-report-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.product-report-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.product-report-stats .stat-card strong {
  font-size: clamp(22px, 2.2vw, 30px);
}

.product-report-layout {
  display: grid;
  gap: 18px;
}

.product-report-section {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.product-report-section .list-header {
  margin-bottom: 0;
}

.product-report-section h2 {
  margin-bottom: 5px;
}

.product-report-section p {
  color: var(--muted);
  margin-bottom: 0;
}

.product-report-accordion {
  display: grid;
  gap: 10px;
}

.product-report-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.product-report-category summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(170px, 1fr) minmax(120px, auto) minmax(110px, auto) minmax(160px, auto) 24px;
  list-style: none;
  padding: 14px 16px;
}

.product-report-category summary::-webkit-details-marker {
  display: none;
}

.product-report-category summary::after {
  color: var(--accent-dark);
  content: "⌄";
  font-size: 22px;
  font-weight: 900;
  justify-self: end;
  line-height: 1;
  transition: transform 0.18s ease;
}

.product-report-category[open] summary::after {
  transform: rotate(180deg);
}

.product-report-category summary span {
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.product-report-category summary strong {
  color: var(--wine);
  font-size: 18px;
  justify-self: end;
}

.product-report-category summary small,
.product-report-category summary em {
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  justify-self: end;
  padding: 6px 10px;
  white-space: nowrap;
}

.product-report-category summary small {
  background: #eef5f3;
}

.product-report-category summary em {
  background: #fff2d8;
  color: #8a5a00;
}

.product-report-table-wrap {
  overflow-x: auto;
}

.product-report-table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

.product-report-table th,
.product-report-table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: middle;
}

.product-report-table th {
  background: #f8f4ed;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-report-table td {
  font-size: 14px;
  font-weight: 800;
}

.product-report-table .report-num {
  text-align: right;
  white-space: nowrap;
}

.product-report-table tr:last-child td {
  border-bottom: 0;
}

.staff-report-head {
  align-items: center;
}

.staff-report-filter {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.staff-report-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  grid-column: 1 / -1;
}

.staff-report-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-report-stats .stat-card strong {
  font-size: clamp(22px, 2.2vw, 30px);
}

.staff-report-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.staff-report-panel .list-header {
  margin-bottom: 0;
}

.staff-report-panel h2 {
  margin-bottom: 5px;
}

.staff-report-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.staff-report-table-wrap {
  display: grid;
  gap: 10px;
}

.staff-report-table,
.staff-report-row summary {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.2fr) repeat(5, minmax(110px, 0.85fr)) minmax(70px, 0.35fr);
}

.staff-report-table-head {
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 11px 44px 11px 14px;
  text-transform: uppercase;
}

.staff-report-row {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.staff-report-row summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 14px;
  position: relative;
}

.staff-report-row summary::-webkit-details-marker {
  display: none;
}

.staff-report-row summary::after {
  color: var(--accent-dark);
  content: "⌄";
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.18s ease;
}

.staff-report-row[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.staff-report-row summary span,
.staff-report-row summary strong,
.staff-report-row summary em {
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.staff-report-row summary strong {
  color: var(--wine);
}

.staff-report-row summary em {
  background: #eef5f3;
  border-radius: 999px;
  color: var(--accent-dark);
  justify-self: start;
  padding: 5px 10px;
}

.staff-report-name {
  color: var(--ink);
  font-size: 16px !important;
}

.staff-report-detail {
  border-top: 1px solid var(--line);
  overflow-x: auto;
  padding: 0 14px 14px;
}

.staff-report-detail table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

.staff-report-detail th,
.staff-report-detail td {
  border-bottom: 1px solid var(--line);
  padding: 11px 8px;
  text-align: left;
  vertical-align: middle;
}

.staff-report-detail th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-report-detail td {
  font-size: 14px;
  font-weight: 800;
}

.staff-report-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 5px 9px;
  white-space: nowrap;
}

.staff-report-badge.is-payment {
  background: #eef5f3;
  color: var(--accent-dark);
}

.staff-report-badge.is-advance {
  background: #fff2d8;
  color: #8a5a00;
}

.staff-report-badge.is-travel {
  background: #f8e8e8;
  color: var(--danger);
}

.insight-report-head {
  align-items: center;
}

.insight-report-filter {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.insight-report-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-report-layout {
  display: grid;
  gap: 18px;
}

.insight-report-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.insight-report-panel .list-header {
  margin-bottom: 0;
}

.insight-report-panel h2 {
  margin-bottom: 5px;
}

.insight-report-panel p {
  color: var(--muted);
  margin-bottom: 0;
}

.insight-report-table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.insight-report-table {
  min-width: 820px;
}

.insight-report-table td:first-child {
  color: var(--ink);
  font-weight: 900;
}

.insight-report-table td:not(:first-child) {
  white-space: nowrap;
}

.daily-table-head {
  align-items: center;
}

.daily-table-filter {
  grid-template-columns: minmax(180px, 240px) auto auto auto;
}

.daily-table-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.daily-table-summary-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.daily-table-report-table {
  min-width: 980px;
}

.daily-table-report-table td {
  vertical-align: top;
}

.daily-table-report-table td small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.daily-table-free-row {
  background: #fff8ed;
}

.daily-table-warning-row {
  background: #f8e8e9;
}

.daily-table-detail {
  min-width: 220px;
}

.daily-table-detail summary {
  cursor: pointer;
  display: grid;
  gap: 3px;
  list-style: none;
}

.daily-table-detail summary::-webkit-details-marker {
  display: none;
}

.daily-table-detail summary strong {
  color: var(--ink);
  font-size: 15px;
}

.daily-detail-grid {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
  padding: 10px;
}

.daily-detail-grid span {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 2px;
}

.daily-detail-grid strong {
  color: var(--ink);
  font-size: 13px;
}

.daily-item-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.daily-item-list span {
  align-items: center;
  background: #f8f4ed;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: space-between;
  padding: 7px 9px;
}

.daily-item-list b,
.daily-item-list em {
  border-radius: 999px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 3px 7px;
}

.daily-item-list b {
  background: #eef5f3;
  color: var(--accent-dark);
}

.daily-item-list em {
  background: #fff2d8;
  color: #8a5a00;
}

.daily-status-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.daily-status-badge.paid {
  background: #e4f2ee;
  color: var(--accent-dark);
}

.daily-status-badge.account {
  background: #eef5f3;
  color: #3b4a6b;
}

.daily-status-badge.free {
  background: #fff2d8;
  color: #8a5a00;
}

.daily-status-badge.warning {
  background: #f8e8e9;
  color: var(--wine);
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--wine);
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 52px);
}

h2 {
  margin-bottom: 18px;
  font-size: 22px;
}

.today-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.today-card {
  min-width: 190px;
  padding: 14px 16px;
}

.today-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}

.today-card strong {
  font-size: 20px;
}

.layout {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.public-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0;
}

.site-footer,
.admin-footer {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  padding: 24px 0 4px;
  text-align: center;
}

.admin-footer {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-bottom: 0;
}

.public-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}

.public-logo {
  display: block;
  width: min(110px, 34vw);
  height: auto;
}

.public-language-switcher {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 0 auto 12px;
}

.public-language-switcher a {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  min-width: 42px;
  padding: 7px 10px;
  text-align: center;
  text-decoration: none;
}

.public-language-switcher a.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.public-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.public-cart-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  gap: 8px;
  font-weight: 900;
  padding: 11px 14px;
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 18;
}

.public-account-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-weight: 900;
  padding: 11px 14px;
  position: fixed;
  right: 18px;
  top: 70px;
  z-index: 18;
}

.public-whatsapp-button {
  align-items: center;
  animation: whatsapp-float 2.4s ease-in-out infinite;
  border-radius: 999px;
  background: #25d366;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.35);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  position: fixed;
  right: 18px;
  bottom: 18px;
  text-decoration: none;
  z-index: 22;
}

.public-whatsapp-button::before {
  content: "";
  background: #fff;
  border-radius: 999px;
  display: inline-block;
  height: 18px;
  mask: radial-gradient(circle at 50% 50%, #000 58%, transparent 60%);
  position: relative;
  width: 18px;
}

@keyframes whatsapp-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-6px);
  }
}

.public-cart-button span {
  align-items: center;
  background: var(--wine);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  justify-content: center;
  min-width: 22px;
  padding: 3px 7px;
}

.cart-toast {
  position: fixed;
  right: 18px;
  top: 72px;
  z-index: 19;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  opacity: 0;
  padding: 11px 14px;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.public-tab-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  min-width: min(140px, 100%);
  padding: 12px 16px;
  text-align: center;
  text-decoration: none;
}

.public-tab-button:hover,
.public-tab-button.active {
  background: #eef5f3;
  color: var(--accent-dark);
}

.public-tab-panel {
  display: none;
}

.public-tab-panel.active {
  display: block;
}

.public-bg-panel {
  border-radius: 0;
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.public-bg-panel.has-public-bg {
  margin-left: calc(50% - 50vw);
  min-height: calc(100vh - 150px);
  padding: 48px max(24px, calc((100vw - 1120px) / 2 + 16px));
  width: 100vw;
}

.public-bg-panel.has-public-bg::before,
.public-bg-panel.has-public-bg::after {
  content: "";
  inset: 0;
  position: absolute;
  z-index: -2;
}

.public-bg-panel.has-public-bg::before {
  background-image: var(--public-bg-image);
  background-position: center;
  background-size: cover;
  filter: blur(2px);
  transform: scale(1.025);
}

.public-bg-panel.has-public-bg::after {
  background: linear-gradient(135deg, rgba(20, 12, 10, 0.58), rgba(20, 12, 10, 0.28));
  z-index: -1;
}

.public-bg-panel.has-public-bg .public-copy,
.public-bg-panel.has-public-bg .public-section-head,
.public-bg-panel.has-public-bg .public-section-copy {
  color: #fff;
}

.public-bg-panel.has-public-bg .eyebrow {
  color: #f2c36b;
}

.public-bg-panel.has-public-bg .public-copy h1,
.public-bg-panel.has-public-bg .public-section-head h2 {
  color: #fff;
}

.public-bg-panel.has-public-bg .public-copy p,
.public-bg-panel.has-public-bg .public-section-copy {
  color: rgba(255, 255, 255, 0.88);
}

.public-bg-panel.has-public-bg .public-hero {
  min-height: calc(100vh - 245px);
}

.public-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 130px);
}

.public-menu-section {
  padding: 42px 0 24px;
}

.public-contact-section {
  padding: 42px 0 24px;
}

.public-section-head {
  margin-bottom: 16px;
  text-align: center;
}

.public-section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin-bottom: 0;
}

.public-section-copy {
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
  margin: 8px auto 0;
  max-width: 620px;
}

.public-menu-intro {
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  margin: 10px auto 0;
  max-width: 760px;
}

.public-bg-panel.has-public-bg .public-menu-intro {
  color: rgba(255, 255, 255, 0.9);
}

.menu-intro-settings textarea {
  min-height: 150px;
}

.menu-accordion {
  display: grid;
  gap: 10px;
  margin: 0 auto;
  max-width: 820px;
}

.public-menu-search {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 0 auto 14px;
  max-width: 820px;
}

.public-menu-search label {
  font-weight: 900;
  margin: 0;
}

.public-menu-search input {
  background: #fffdfa;
  margin-top: 6px;
}

.public-menu-search span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding-bottom: 12px;
  white-space: nowrap;
}

.public-order-prompt,
.public-service-panel {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.94);
  box-shadow: 0 14px 36px rgba(36, 29, 25, 0.12);
  display: grid;
  gap: 12px;
  margin: 0 auto 14px;
  max-width: 820px;
  padding: 14px;
}

.public-order-prompt {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.public-order-prompt strong,
.public-service-panel strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.public-order-prompt span,
.public-service-panel span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 3px;
}

.public-service-panel label {
  margin: 0;
}

.public-service-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.public-service-actions button {
  border: 1px solid #e6d8c8;
  border-radius: 8px;
  background: #fffdfa;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 7px;
}

.public-service-actions button:hover,
.public-service-actions button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.public-help-section {
  padding: 42px 0 24px;
}

.public-help-shell {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1040px;
}

.public-help-grid {
  align-items: stretch;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
}

.public-help-info {
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(31, 85, 74, 0.96), rgba(105, 38, 52, 0.96)),
    #1f554a;
  box-shadow: 0 18px 42px rgba(36, 29, 25, 0.14);
  color: #fff;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
}

.public-help-info strong {
  font-size: 24px;
  font-weight: 900;
}

.public-help-info > span {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
  line-height: 1.5;
}

.public-help-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.public-help-badges span {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

.public-help-form {
  margin: 0;
  max-width: none;
}

.public-help-form .public-service-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.public-help-form .public-service-actions-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-help-form .public-service-actions button {
  min-height: 74px;
  padding: 10px;
  text-align: left;
}

.public-help-form .public-service-actions-compact button {
  min-height: 40px;
  text-align: center;
}

.public-help-form .public-service-actions button strong {
  font-size: 14px;
  line-height: 1.2;
}

.public-help-form .public-service-actions button span {
  font-size: 12px;
  line-height: 1.25;
  margin-top: 4px;
}

@media (max-width: 860px) {
  .public-help-grid {
    grid-template-columns: 1fr;
  }
}

.menu-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.menu-category-wrap {
  display: grid;
  gap: 8px;
}

.menu-category-wrap-featured .menu-category {
  border-color: rgba(196, 131, 43, 0.42);
}

.menu-category-wrap-featured .menu-category summary {
  box-shadow: inset 0 0 0 999px rgba(70, 38, 12, 0.08);
}

.menu-category-wrap.is-menu-filter-hidden,
.menu-item.is-menu-filter-hidden {
  display: none !important;
}

.menu-category summary {
  align-items: center;
  background-color: var(--ink);
  background-position: center;
  background-size: cover;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  letter-spacing: 0;
  min-height: 110px;
  list-style: none;
  padding: 18px;
  text-align: center;
  text-transform: uppercase;
}

.menu-category summary.has-menu-background {
  background-image: linear-gradient(rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.42)), var(--menu-category-bg-image);
}

.menu-category summary::-webkit-details-marker {
  display: none;
}

.menu-category summary::after {
  content: "⌄";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  margin-left: 0;
  transform: none;
}

.menu-category[open] summary::after {
  content: "⌃";
}

.menu-items {
  border-top: 1px solid var(--line);
  display: grid;
  padding: 6px 18px;
}

.menu-item {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  border-bottom: 1px solid #f0ece6;
  padding: 12px 0;
}

.menu-item-content {
  flex: 1;
  min-width: 0;
}

.menu-item-content strong {
  display: block;
  line-height: 1.25;
  overflow-wrap: normal;
  word-break: normal;
}

.menu-item-image {
  background: #f1eee9;
  border-radius: 8px;
  flex: 0 0 58px;
  height: 58px;
  object-fit: cover;
  width: 58px;
}

.public-menu-image-preview {
  border: 0;
  background: transparent;
  cursor: zoom-in;
  flex: 0 0 58px;
  padding: 0;
}

.menu-item:last-child {
  border-bottom: 0;
}

.menu-item p,
.menu-empty {
  color: var(--muted);
  margin: 5px 0 0;
}

.menu-item .menu-item-calories {
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.menu-item span {
  font-weight: 900;
}

.menu-item-buy {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
  justify-content: flex-end;
  min-width: 116px;
  white-space: nowrap;
}

.menu-add-button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.contact-map {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  height: 360px;
  margin: 0 auto 18px;
  max-width: 980px;
  overflow: hidden;
  position: relative;
  background: #fff;
}

.contact-map-feature {
  height: 410px;
}

.contact-map iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.contact-map-card {
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 253, 250, 0.94);
  bottom: 18px;
  box-shadow: 0 18px 38px rgba(28, 18, 15, 0.18);
  display: grid;
  gap: 7px;
  left: 18px;
  max-width: min(360px, calc(100% - 36px));
  padding: 16px;
  position: absolute;
}

.contact-map-card span,
.contact-card-head span,
.contact-info-item span {
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-map-card strong {
  color: var(--text);
  font-size: 19px;
  font-weight: 900;
}

.contact-map-card p {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 18px;
  margin: 0 auto;
  max-width: 980px;
}

.contact-info-card,
.public-contact-form,
.contact-settings-panel {
  padding: 22px;
}

.logo-settings-panel {
  display: grid;
  gap: 18px;
  max-width: 620px;
  padding: 22px;
}

.public-background-settings {
  margin-top: 18px;
  max-width: 1100px;
}

.public-background-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.public-background-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  overflow: hidden;
}

.public-background-preview {
  align-items: center;
  background: #f4eee4;
  color: var(--muted);
  display: flex;
  font-weight: 900;
  justify-content: center;
  min-height: 150px;
}

.public-background-preview img {
  aspect-ratio: 16 / 9;
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.public-background-content {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.public-background-content h3 {
  margin: 0;
}

.public-background-content p {
  color: var(--muted);
  margin: 0;
}

.logo-preview-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.logo-preview-card span {
  color: var(--muted);
  font-weight: 900;
}

.logo-preview-card img {
  display: block;
  max-height: 120px;
  max-width: 220px;
  object-fit: contain;
}

.contact-info-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.contact-card-head {
  display: grid;
  gap: 4px;
}

.contact-card-head h3 {
  color: var(--text);
  font-size: 24px;
  margin: 0;
}

.contact-info-list {
  display: grid;
  gap: 10px;
}

.contact-info-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 5px;
  padding: 12px;
}

.contact-info-item strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.4;
  white-space: pre-line;
}

.contact-info-item a {
  color: var(--accent-dark);
  font-weight: 900;
  justify-self: start;
  text-decoration: none;
}

.contact-socials {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 12px;
}

.contact-social-link {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  color: var(--text);
  display: flex;
  gap: 8px;
  min-height: 46px;
  padding: 9px 10px;
  text-decoration: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.contact-social-link:hover {
  border-color: rgba(111, 31, 47, 0.35);
  box-shadow: 0 10px 20px rgba(39, 25, 20, 0.08);
  transform: translateY(-1px);
}

.contact-social-link svg {
  fill: none;
  flex: 0 0 22px;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 22px;
}

.contact-social-link span {
  font-size: 13px;
  font-weight: 900;
}

.contact-social-link.instagram {
  color: #9f2d67;
}

.contact-social-link.facebook {
  color: #2457a6;
}

.contact-social-link.tiktok {
  color: #111;
}

.contact-social-link.youtube {
  color: #c92d2d;
}

.public-contact-form {
  display: grid;
  gap: 14px;
}

.public-contact-form .split {
  gap: 12px;
}

.public-cart-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(36, 29, 25, 0.28);
  max-width: min(460px, calc(100% - 28px));
  padding: 18px;
  width: 460px;
}

.public-account-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(36, 29, 25, 0.28);
  max-width: min(760px, calc(100% - 28px));
  padding: 18px;
  width: 760px;
}

.public-account-dialog::backdrop {
  background: rgba(36, 29, 25, 0.38);
}

.public-account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.public-account-form {
  display: grid;
  gap: 12px;
}

.account-subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.account-subtab {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  padding: 10px 12px;
}

.account-subtab.active {
  background: #eef5f3;
  color: var(--accent-dark);
}

.account-panel {
  display: none;
}

.account-panel.active {
  display: block;
}

.public-orders {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding-top: 16px;
}

.public-order-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 4px;
  padding: 12px;
}

.public-order-lines {
  display: grid;
  gap: 4px;
}

.public-order-product {
  align-items: center;
  border-top: 1px solid #f0ece6;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  line-height: 1.2;
  padding-top: 5px;
}

.public-order-product:first-child {
  border-top: 0;
  padding-top: 0;
}

.public-order-product span {
  color: var(--muted);
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.public-order-product strong {
  color: var(--ink);
  flex: 0 0 auto;
  font-size: 13px;
}

.repeat-order-button {
  flex: 0 0 auto;
  font-size: 11px;
  min-height: 28px;
  padding: 5px 8px;
}

.customer-order-add-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 86px 86px;
  margin-top: 8px;
  padding-top: 10px;
  align-items: end;
}

.customer-grid {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 140px minmax(190px, 1fr) 130px 100px;
  gap: 10px;
  align-items: end;
}

.customer-filters {
  grid-template-columns: minmax(240px, 1fr) auto;
}

.customer-order-filters {
  align-items: end;
  grid-template-columns: minmax(260px, 1.4fr) minmax(130px, 0.6fr) minmax(180px, 1fr) repeat(2, minmax(145px, 0.7fr)) auto;
}

.customer-order-filters label {
  min-width: 0;
}

.customer-order-filters input,
.customer-order-filters select,
.customer-order-filters button {
  width: 100%;
}

.user-item.customer-card {
  display: grid;
  gap: 14px;
  width: 100%;
}

.customer-accordion {
  padding: 0;
  overflow: hidden;
}

.customer-accordion-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) auto auto auto 22px;
  list-style: none;
  padding: 14px 16px;
}

.customer-accordion-summary::-webkit-details-marker {
  display: none;
}

.customer-accordion-summary::after {
  color: var(--muted);
  content: "⌄";
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
}

.customer-accordion[open] .customer-accordion-summary::after {
  content: "⌃";
}

.customer-accordion-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.customer-accordion-summary strong {
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.customer-accordion-summary span,
.customer-accordion-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-accordion-summary em {
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
}

.customer-accordion-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 14px 16px 16px;
}

.customer-card-main {
  display: flex;
  gap: 12px;
  width: 100%;
}

.customer-card-main .user-edit-form {
  flex: 1;
}

.customer-orders-panel {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  width: 100%;
}

.admin-order-list {
  display: grid;
  gap: 12px;
}

.admin-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.admin-order-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) 150px 22px;
  list-style: none;
  padding: 14px;
}

.admin-order-summary > div:first-child {
  min-width: 0;
}

.admin-order-summary > div:first-child > strong {
  color: var(--text);
  display: block;
  font-size: 15px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-order-summary .meta {
  line-height: 1.35;
  margin-top: 4px;
}

.admin-order-summary::-webkit-details-marker {
  display: none;
}

.admin-order-summary::after {
  align-self: center;
  color: var(--wine);
  content: "⌄";
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  margin-left: 4px;
}

.admin-order-card[open] .admin-order-summary {
  border-bottom: 1px solid var(--line);
}

.admin-order-card[open] .admin-order-summary::after {
  transform: rotate(180deg);
}

.admin-order-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.order-payment-correction-form {
  align-items: end;
  background: #f8fbfa;
  border: 1px solid rgba(27, 118, 93, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(190px, 1.4fr) minmax(110px, 0.8fr) minmax(110px, 0.8fr) auto auto;
  padding: 12px;
}

.order-payment-correction-form div,
.order-payment-correction-form label,
.order-payment-correction-form span {
  display: grid;
  gap: 5px;
}

.order-payment-correction-form strong,
.order-payment-correction-form b {
  color: var(--ink);
}

.order-payment-correction-form small,
.order-payment-correction-form span {
  color: var(--muted);
  font-weight: 800;
}

.order-payment-correction-form input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.order-payment-correction-form .primary-btn {
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .order-payment-correction-form {
    grid-template-columns: 1fr 1fr;
  }

  .order-payment-correction-form div,
  .order-payment-correction-form span,
  .order-payment-correction-form .primary-btn {
    grid-column: 1 / -1;
  }
}

.requirement-summary-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.requirement-summary-card {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 36px rgba(36, 29, 25, 0.06);
  display: grid;
  gap: 6px;
  padding: 14px;
}

.requirement-summary-card.ok {
  border-color: rgba(27, 118, 93, 0.22);
}

.requirement-summary-card.warning {
  border-color: rgba(122, 31, 43, 0.28);
}

.requirement-summary-card span,
.requirement-summary-card p {
  color: var(--muted);
  margin: 0;
}

.requirement-summary-card strong {
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.system-requirement-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 16px;
}

.system-requirement-panel {
  display: grid;
  gap: 14px;
}

.panel-title-row {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.panel-title-row h2,
.panel-title-row p {
  margin: 0;
}

.panel-title-row p {
  color: var(--muted);
}

.system-info-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.system-info-grid div,
.requirement-check-row,
.requirement-path-row,
.requirement-extension-card {
  background: #fbf8f4;
  border: 1px solid rgba(36, 29, 25, 0.08);
  border-radius: 8px;
  padding: 10px;
}

.system-info-grid div {
  display: grid;
  gap: 4px;
}

.system-info-grid span,
.requirement-check-row span,
.requirement-path-row span,
.requirement-extension-card span {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.system-info-grid strong,
.requirement-check-row strong,
.requirement-path-row strong,
.requirement-extension-card strong {
  color: var(--ink);
}

.requirement-check-list,
.requirement-path-list,
.requirement-extension-grid {
  display: grid;
  gap: 9px;
}

.requirement-extension-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.requirement-extension-grid.compact {
  grid-template-columns: 1fr;
}

.requirement-check-row,
.requirement-path-row,
.requirement-extension-card {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.requirement-status-pill,
.requirement-extension-card b,
.requirement-muted-badge {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  padding: 6px 9px;
  white-space: nowrap;
}

.requirement-status-pill.ok,
.requirement-extension-card.ok b {
  background: rgba(27, 118, 93, 0.12);
  color: #1b765d;
}

.requirement-status-pill.missing,
.requirement-extension-card.missing b {
  background: rgba(122, 31, 43, 0.12);
  color: var(--wine);
}

.requirement-extension-card.optional b,
.requirement-muted-badge {
  background: rgba(178, 134, 61, 0.14);
  color: #8a5b13;
}

@media (max-width: 1100px) {
  .requirement-summary-grid,
  .system-requirement-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .requirement-summary-grid,
  .system-requirement-layout,
  .system-info-grid,
  .requirement-extension-grid {
    grid-template-columns: 1fr;
  }

  .panel-title-row,
  .requirement-check-row,
  .requirement-path-row,
  .requirement-extension-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
}

.admin-order-total {
  align-items: flex-end;
  display: grid;
  gap: 4px;
  justify-items: end;
  min-width: 150px;
  text-align: right;
}

.admin-order-total span {
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-weight: 900;
  padding: 4px 9px;
}

.admin-order-total span.free-closed {
  background: #241d19;
  color: #fff;
}

.admin-order-total strong {
  color: var(--text);
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}

.admin-order-total small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-item-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  margin-left: 6px;
  padding: 2px 7px;
  vertical-align: middle;
}

.order-item-pill.complimentary {
  background: #fff2d8;
  color: #8a5a00;
}

.order-item-pill.cancelled {
  background: #f8e8e9;
  color: var(--wine);
}

.order-item-pill.free {
  background: #241d19;
  color: #fff;
}

.free-close-note {
  border: 1px solid rgba(36, 29, 25, 0.12);
  border-radius: 8px;
  background: #f8f4ed;
  padding: 10px 12px;
}

.order-print-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.order-print-actions .ghost-btn,
.order-print-actions .primary-btn {
  border-radius: 7px;
  font-size: 12px;
  min-height: 30px;
  padding: 6px 8px;
  text-align: center;
  text-decoration: none;
}

.print-settings-panel {
  max-width: 1040px;
  padding: 20px;
}

.mail-settings-panel {
  display: grid;
  gap: 16px;
  max-width: 820px;
  padding: 20px;
}

.mail-settings-form {
  display: grid;
  gap: 14px;
}

.print-settings-form {
  display: grid;
  gap: 10px;
}

.qz-settings-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.qz-settings-box h3 {
  margin: 0 0 4px;
}

.qz-settings-box p {
  color: var(--muted);
  margin: 0;
}

.qz-printer-grid,
.qz-signing-grid {
  display: grid;
  gap: 12px;
}

.qz-printer-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.qz-signing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qz-printer-grid label,
.qz-signing-grid label {
  display: grid;
  gap: 6px;
}

.qz-signing-grid small {
  color: var(--muted);
  font-weight: 800;
}

.qz-test-panel {
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff8ed;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.qz-test-panel h4 {
  margin: 0 0 4px;
}

.qz-test-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.qz-test-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  padding: 10px 12px;
}

.qz-test-status.ok {
  background: #e4f2ee;
  color: var(--accent-dark);
}

.qz-test-status.warn {
  background: #fff4d8;
  color: #7a5a14;
}

.qz-test-status.error {
  background: #f8e8e9;
  color: var(--wine);
}

.qz-printer-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.qz-printer-list button,
.qz-printer-list span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 9px 10px;
  text-align: left;
}

.print-station-panel {
  display: grid;
  gap: 18px;
}

.print-station-page {
  margin: 0 auto;
  padding: 28px 18px;
  width: min(1180px, 100%);
}

.print-station-kiosk-badge,
.print-station-public-link {
  margin-top: 10px;
}

.print-station-kiosk-badge {
  border: 1px solid #b9e9d3;
  border-radius: 999px;
  background: #eefaf5;
  color: #176246;
  display: inline-flex;
  font-weight: 900;
  padding: 7px 12px;
}

.print-station-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.print-station-head h2 {
  margin: 0 0 6px;
}

.print-station-head p {
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

.print-station-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.print-station-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ed;
  color: #8a5a15;
  font-weight: 800;
  padding: 12px 14px;
}

.print-station-status.ok {
  background: #eefaf5;
  border-color: #b9e9d3;
  color: #176246;
}

.print-station-status.error {
  background: #fff0f0;
  border-color: #f1b7b7;
  color: #a31d2c;
}

.print-station-status.warn {
  background: #fff8ed;
  border-color: #f0d4a4;
  color: #8a5a15;
}

.print-station-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.print-station-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.print-station-grid span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.print-station-grid strong {
  font-size: 1.2rem;
}

.print-station-log {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  padding: 14px;
}

.print-station-log p {
  border-bottom: 1px solid #f1ece5;
  color: var(--muted);
  margin: 0;
  padding-bottom: 8px;
}

.print-station-log p:first-child {
  color: var(--ink);
  font-weight: 800;
}

.print-station-log p.error {
  color: #a31d2c;
}

.toggle-row {
  align-items: center;
  display: flex;
  gap: 10px;
  font-weight: 900;
}

.toggle-row input {
  height: 18px;
  width: 18px;
}

.print-settings-grid {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) minmax(180px, 240px);
  padding: 10px;
}

.print-settings-head {
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.kitchen-group-field {
  display: grid;
  gap: 4px;
}

.kitchen-group-field small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.kitchen-group-field select:disabled {
  background: #f3f0ea;
  color: #9b9184;
  cursor: not-allowed;
}

.print-settings-grid.is-kitchen-station {
  border-color: rgba(39, 116, 91, 0.28);
  background: #f8fffc;
}

.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;
}

.customer-orders-panel summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.customer-orders-panel summary::-webkit-details-marker {
  display: none;
}

.customer-orders-panel summary::after {
  content: "⌄";
  color: var(--muted);
  margin-left: 8px;
}

.customer-orders-panel[open] summary::after {
  content: "⌃";
}

.customer-order-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.customer-order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.customer-order-head,
.customer-order-row {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.customer-order-head > div {
  align-items: center;
  display: flex;
  gap: 10px;
}

.customer-order-head span {
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-weight: 900;
  padding: 4px 9px;
}

.customer-order-items {
  display: grid;
  gap: 7px;
}

.customer-order-row {
  border-top: 1px solid #f0ece6;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 100px 80px 110px;
  padding-top: 7px;
}

.customer-order-row small {
  color: var(--muted);
  font-weight: 800;
}

.current-account-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.current-account-filters {
  grid-template-columns: minmax(260px, 1fr) 180px auto;
}

.current-account-list {
  display: grid;
  gap: 10px;
}

.current-account-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, 0.9fr) minmax(170px, 1.2fr) 90px 120px 120px;
  padding: 10px;
}

.current-account-head {
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
}

.current-account-row span,
.current-account-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.current-account-debt {
  color: var(--wine);
  font-size: 18px;
}

.current-account-debt small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.current-account-detail {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.current-account-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, auto)) 110px 22px;
  list-style: none;
  padding: 14px;
}

.current-account-summary::-webkit-details-marker {
  display: none;
}

.current-account-summary::after {
  color: var(--muted);
  content: "⌄";
  font-size: 20px;
  font-weight: 900;
}

.current-account-detail[open] .current-account-summary::after {
  content: "⌃";
}

.current-account-summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.current-account-summary strong {
  color: var(--ink);
  font-size: 16px;
  overflow-wrap: anywhere;
}

.current-account-summary span {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 3px;
}

.current-account-summary span b {
  color: var(--ink);
  font-size: 15px;
}

.current-account-summary .current-account-balance b {
  color: var(--wine);
  font-size: 18px;
}

.current-account-summary em {
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  padding: 6px 10px;
  text-align: center;
}

.current-account-detail-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 14px;
}

.current-account-overview {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.current-account-overview article,
.current-account-action-card,
.current-account-section,
.current-account-order-card,
.current-account-entry-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.current-account-overview article {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.current-account-overview span,
.current-account-section summary,
.current-account-action-card h3 {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.current-account-overview strong {
  color: var(--ink);
  font-size: 18px;
}

.current-account-actions-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.current-account-action-card {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.current-account-action-card h3 {
  margin: 0;
}

.current-account-section {
  display: grid;
  gap: 0;
  overflow: hidden;
}

.current-account-section summary {
  cursor: pointer;
  list-style: none;
  padding: 12px;
}

.current-account-section summary::-webkit-details-marker,
.current-account-order-card summary::-webkit-details-marker {
  display: none;
}

.current-account-section summary::after {
  color: var(--muted);
  content: "⌄";
  float: right;
  font-size: 18px;
}

.current-account-section[open] summary::after {
  content: "⌃";
}

.current-account-entry-list,
.current-account-order-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px;
}

.current-account-entry-card {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 74px;
  padding: 10px;
}

.current-account-entry-card.payment {
  border-left: 4px solid var(--accent);
}

.current-account-entry-card.debt {
  border-left: 4px solid var(--wine);
}

.current-account-entry-edit {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 120px 120px 130px 120px minmax(170px, 1fr) minmax(190px, 1fr) 150px;
}

.current-account-entry-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.current-account-entry-type {
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.current-account-order-card {
  overflow: hidden;
}

.current-account-order-card summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 120px auto 22px;
  list-style: none;
  padding: 12px;
}

.current-account-order-card summary::after {
  color: var(--muted);
  content: "⌄";
  font-size: 18px;
  font-weight: 900;
}

.current-account-order-card[open] summary::after {
  content: "⌃";
}

.current-account-order-card summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.current-account-order-card summary span,
.current-account-order-card summary em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.current-account-order-card summary b {
  color: var(--ink);
}

.current-account-order-items {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
}

.current-account-order-items > div {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 80px 110px;
  padding: 9px 12px;
}

.current-account-order-items > div + div {
  border-top: 1px solid #f0ece6;
}

.current-account-order-items small {
  color: var(--muted);
  font-weight: 800;
}

.customer-account-panel {
  display: grid;
  gap: 12px;
}

.customer-account-form,
.customer-account-entry-form {
  display: grid;
  gap: 8px;
  grid-template-columns: 130px 120px 120px minmax(180px, 1fr) minmax(180px, 1fr) 96px;
  align-items: end;
  margin-top: 12px;
}

.customer-account-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.customer-account-entry {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 70px;
  padding: 10px;
}

.table-admin-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.table-area-list {
  display: grid;
  gap: 12px;
}

.table-area-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.table-area-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 14px;
}

.table-area-card summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
}

.table-area-card[open] summary::after {
  content: "⌃";
}

.table-area-card summary .drag-handle {
  flex: 0 0 38px;
}

.table-area-card summary::-webkit-details-marker {
  display: none;
}

.table-area-card summary span {
  color: var(--muted);
  font-weight: 900;
}

.table-area-edit,
.table-row {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) 92px;
  padding: 12px;
}

.table-area-card.dragging,
.table-row.dragging {
  opacity: 0.55;
}

.table-area-form,
.table-row-form {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(150px, 1fr) 90px 90px 120px;
  align-items: end;
}

.table-row-form {
  grid-template-columns: minmax(150px, 1fr) minmax(100px, 0.8fr) 90px 90px 90px;
}

.table-list {
  display: grid;
}

.table-monitor-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.table-monitor-toolbar button.status-pill {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.service-mode-toggle {
  min-height: 38px;
}

.service-mode-toggle.is-active {
  background: #2f2a24;
  border-color: #2f2a24;
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 42, 36, 0.16);
}

.open-table-list-toggle.is-open {
  box-shadow: inset 0 0 0 2px rgba(31, 111, 95, 0.18), 0 10px 22px rgba(31, 111, 95, 0.1);
}

.open-table-list-panel {
  border: 1px solid rgba(31, 111, 95, 0.18);
  border-radius: 8px;
  background: #fbfffd;
  box-shadow: 0 12px 28px rgba(36, 29, 25, 0.06);
  display: grid;
  gap: 10px;
  margin: -6px 0 16px;
  padding: 12px;
}

.open-table-list-panel[hidden] {
  display: none;
}

.open-table-list-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.open-table-list-head strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.open-table-list-head span,
.open-table-list-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.open-table-list-items {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.open-table-list-items button {
  border: 1px solid rgba(131, 29, 42, 0.18);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 62px;
  padding: 9px 10px;
  text-align: left;
}

.open-table-list-items button:hover {
  border-color: rgba(31, 111, 95, 0.4);
  box-shadow: 0 10px 20px rgba(31, 111, 95, 0.08);
}

.open-table-list-items strong,
.open-table-list-items span,
.open-table-list-items em,
.open-table-list-items small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.open-table-list-items strong {
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
}

.open-table-list-items span,
.open-table-list-items small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.open-table-list-items em {
  color: var(--accent-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  justify-self: end;
}

.open-table-list-items small {
  justify-self: end;
}

.fruit-plan-card {
  border: 1px solid rgba(131, 29, 42, 0.18);
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}

.fruit-plan-card summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 1fr) auto auto auto 20px;
  list-style: none;
  padding: 12px 14px;
}

.fruit-plan-card summary::-webkit-details-marker {
  display: none;
}

.fruit-plan-card summary::after {
  color: var(--wine);
  content: "⌄";
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.fruit-plan-card[open] summary::after {
  content: "⌃";
}

.fruit-plan-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fruit-plan-card summary strong {
  color: var(--wine);
  font-size: 19px;
  white-space: nowrap;
}

.fruit-plan-card summary em,
.fruit-plan-card summary small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.fruit-plan-card.has-missing summary small {
  border-radius: 999px;
  background: rgba(131, 29, 42, 0.09);
  color: var(--wine);
  padding: 5px 9px;
}

.fruit-plan-card.has-served summary small {
  border-radius: 999px;
  background: rgba(46, 125, 50, 0.1);
  color: #2e7d32;
  padding: 5px 9px;
}

.fruit-plan-detail {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 12px 14px 14px;
}

.fruit-plan-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fruit-plan-stats span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 3px;
  padding: 9px 10px;
}

.fruit-plan-stats strong {
  color: var(--ink);
  font-size: 20px;
}

.fruit-plan-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.fruit-plan-row {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px 10px;
}

.fruit-plan-row strong,
.fruit-plan-row span,
.fruit-plan-row em {
  font-size: 12px;
}

.fruit-plan-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fruit-plan-row span,
.fruit-plan-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.fruit-plan-row.missing {
  border-color: rgba(131, 29, 42, 0.22);
  background: #fff1f2;
  grid-template-columns: minmax(0, 1fr) auto;
}

.fruit-plan-row.missing span {
  color: var(--wine);
}

.fruit-plan-row.served {
  border-color: rgba(46, 125, 50, 0.22);
  background: #f1f8f2;
  grid-template-columns: minmax(0, 1fr) auto;
}

.fruit-plan-row.served span {
  color: #2e7d32;
}

.fruit-plan-row.empty {
  color: var(--muted);
  grid-template-columns: 1fr;
}

.table-monitor {
  display: grid;
  gap: 18px;
}

.table-area-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.table-area-tab {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-weight: 900;
  padding: 10px 12px;
}

.table-area-tab span {
  border-radius: 999px;
  background: #f8e8e9;
  color: var(--wine);
  font-size: 12px;
  padding: 3px 7px;
}

.table-area-tab.active,
.table-area-tab:hover {
  background: #eef5f3;
  color: var(--accent-dark);
}

.table-area-tab.active span {
  background: #e4f2ee;
  color: var(--accent-dark);
}

.table-product-filter {
  border: 1px solid rgba(49, 95, 143, 0.16);
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: 0 10px 26px rgba(36, 29, 25, 0.05);
  display: grid;
  gap: 10px;
  padding: 11px;
}

.table-product-filter-main {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(220px, 1fr) auto;
}

.table-product-filter-main label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.table-product-filter-main input {
  min-height: 40px;
}

.table-product-filter-main .ghost-btn {
  min-height: 40px;
  padding: 8px 12px;
}

.table-product-filter-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.table-product-filter-meta > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-product-filter-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-product-filter-results button {
  border: 1px solid rgba(49, 95, 143, 0.2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  max-width: 260px;
  min-height: 32px;
  padding: 6px 10px;
}

.table-product-filter-results strong,
.table-product-filter-results span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-product-filter-results strong {
  color: var(--accent-dark);
  font-size: 12px;
}

.table-product-filter-results span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.table-monitor-area {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  display: none;
  padding: 12px;
}

.table-monitor-area.active {
  display: block;
}

.table-monitor-grid {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.table-monitor-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  cursor: pointer;
  display: grid;
  gap: 8px;
  min-height: 112px;
  padding: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.table-monitor-card:hover {
  box-shadow: 0 14px 34px rgba(28, 18, 15, 0.08);
}

.table-monitor-card:active {
  transform: scale(0.985);
}

.table-monitor-card.open {
  border-color: rgba(131, 29, 42, 0.42);
  background: #fff1f2;
}

.table-monitor-card.temporary-order-card {
  border-color: rgba(49, 95, 143, 0.34);
  background: #f5f9ff;
}

.table-monitor-card.temporary-order-card.open {
  border-color: rgba(49, 95, 143, 0.62);
  background: #eaf3ff;
}

.temporary-area .list-header {
  align-items: center;
}

.table-monitor-card.is-product-filter-hidden {
  display: none;
}

.table-monitor-card.product-filter-match {
  border-color: rgba(49, 95, 143, 0.55);
  box-shadow: inset 0 0 0 2px rgba(49, 95, 143, 0.16), 0 14px 30px rgba(49, 95, 143, 0.08);
}

.table-monitor-card.product-filter-pulse,
.table-monitor-card.open-table-list-pulse {
  animation: productFilterPulse 0.9s ease;
}

@keyframes productFilterPulse {
  0%,
  100% {
    transform: scale(1);
  }

  38% {
    transform: scale(1.025);
  }
}

.table-monitor-card.has-pending-print {
  border-color: #d58a00;
  background: #fff4d7;
  box-shadow: inset 0 0 0 2px rgba(213, 138, 0, 0.22);
}

.table-monitor-card.customer-pending {
  border-color: #1f1714;
  background: #1f1714;
  color: #fff;
}

.table-monitor-card.customer-pending .table-monitor-head span,
.table-monitor-card.customer-pending .table-order-meta span,
.table-monitor-card.customer-pending .table-open-time {
  color: rgba(255, 255, 255, 0.76);
}

.table-monitor-card.customer-pending .table-state {
  background: #fff;
  color: #1f1714;
}

.table-monitor-card.has-pending-print:not(.customer-pending) .table-state {
  background: #b86a00;
  color: #fff;
}

.table-monitor-card.has-bill-requested:not(.customer-pending) {
  border-color: rgba(217, 119, 6, 0.48);
  background: #fff7ed;
  box-shadow: inset 0 0 0 2px rgba(217, 119, 6, 0.13);
}

.table-monitor-card.has-cashier-printed:not(.customer-pending) {
  border-color: rgba(91, 33, 182, 0.44);
  background: #f5f3ff;
  box-shadow: inset 0 0 0 2px rgba(91, 33, 182, 0.13);
}

.table-monitor-card.has-bill-requested:not(.customer-pending) .table-state {
  background: #d97706;
  color: #fff;
}

.table-monitor-card.has-cashier-printed:not(.customer-pending) .table-state {
  background: #5b21b6;
  color: #fff;
}

.table-monitor-card.closed {
  background: #fffdfa;
}

.table-monitor-head,
.table-order-meta {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  font-size: 13px;
}

.table-order-meta strong {
  font-size: 20px;
}

.table-card-alerts {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.table-card-alert {
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 8px;
}

.table-card-alert.print {
  background: #b86a00;
  color: #fff;
}

.table-card-alert.late {
  background: #d83b22;
  color: #fff;
}

.table-card-alert.customer {
  background: #1f1714;
  color: #fff;
}

.table-card-alert.starter {
  background: #fff;
  color: var(--wine);
  border: 1px solid rgba(131, 29, 42, 0.22);
}

.table-card-alert.reserved {
  background: #5b3c88;
  color: #fff;
}

.table-card-alert.reserve-reminder {
  background: #3f2a6d;
  color: #fff;
}

.table-card-alert.suspicious {
  background: #151313;
  color: #fff;
}

.table-card-alert.payment {
  background: #1f6f5f;
  color: #fff;
}

.table-card-alert.account {
  background: #315f8f;
  color: #fff;
}

.table-card-alert.discount {
  background: var(--wine);
  color: #fff;
}

.table-card-alert.gift {
  background: #eef5f3;
  border: 1px solid rgba(31, 111, 95, 0.24);
  color: #1f6f5f;
}

.table-card-alert.bill {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.table-card-alert.cashier {
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #5b21b6;
}

.table-monitor-card.customer-pending .table-card-alert.customer {
  background: #fff;
  color: #1f1714;
}

.table-monitor-card.has-late-control {
  border-color: rgba(216, 59, 34, 0.42);
  box-shadow: inset 0 0 0 2px rgba(216, 59, 34, 0.12);
}

.table-monitor-card.has-reserve-reminder {
  border-color: rgba(63, 42, 109, 0.44);
  box-shadow: inset 0 0 0 2px rgba(63, 42, 109, 0.12);
}

.table-monitor-card.has-suspicious-warning {
  border-color: rgba(21, 19, 19, 0.42);
  box-shadow: inset 0 0 0 2px rgba(21, 19, 19, 0.12);
}

.table-monitor-card > .touch-order-open {
  justify-self: stretch;
}

.table-monitor-card > .table-add-item-form {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.table-monitor-card > .table-add-item-form label {
  font-size: 12px;
}

.table-monitor-card > .table-add-item-form input,
.table-monitor-card > .table-add-item-form textarea {
  min-height: 34px;
  padding: 8px 10px;
}

.table-monitor-card > .table-add-item-form .primary-btn,
.table-monitor-card > .table-add-item-form .ghost-btn {
  min-height: 32px;
  padding: 7px 10px;
}

.table-monitor-head strong {
  display: block;
  font-size: 24px;
}

.table-monitor-head span,
.table-order-meta span,
.table-order-item span {
  color: var(--muted);
  font-weight: 800;
}

.item-note-text {
  color: var(--wine);
  display: block;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  margin-top: 3px;
}

.table-open-time {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
}

.table-state {
  border-radius: 999px;
  background: #f8e8e9;
  color: var(--wine);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 8px;
}

.table-monitor-card.open .table-state {
  background: var(--wine);
  color: #fff;
}

.table-order-update,
.table-add-item-form {
  display: grid;
  gap: 6px;
}

.table-order-items {
  display: grid;
  gap: 8px;
}

.table-order-item {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding-top: 8px;
}

.table-order-item > div {
  min-width: 0;
}

.table-order-item strong {
  overflow-wrap: anywhere;
}

.table-order-quantity {
  display: grid;
  gap: 5px;
  grid-template-columns: 48px 38px 52px;
  justify-content: start;
}

.table-order-quantity input {
  min-width: 0;
  min-height: 34px;
  padding: 7px 8px;
}

.table-order-quantity .ghost-btn,
.table-order-item .delete-btn {
  min-height: 34px;
  padding: 7px 8px;
}

.table-order-item .delete-btn {
  width: 46px;
}

.note-icon-btn {
  min-height: 34px;
  padding: 7px 8px;
}

.note-icon-btn.has-note {
  border-color: rgba(31, 111, 95, 0.35);
  background: #e4f2ee;
  color: var(--accent-dark);
}

.note-popup,
.price-popup {
  border: 0;
  background: transparent;
  padding: 0;
  width: min(100% - 32px, 440px);
}

.note-popup::backdrop,
.price-popup::backdrop {
  background: rgba(28, 18, 15, 0.38);
}

.note-popup-card,
.price-popup-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fffdfa;
  box-shadow: 0 24px 70px rgba(28, 18, 15, 0.2);
  display: grid;
  gap: 12px;
  padding: 16px;
  width: 100%;
}

.note-popup-head,
.note-popup-actions,
.price-popup-head,
.price-popup-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.price-popup-head small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.price-popup-card label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  text-transform: uppercase;
}

.price-popup-card input {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 42px;
}

.note-popup-keyboard {
  margin-right: auto;
}

.note-popup textarea {
  min-height: 130px;
}

.item-price-override-text {
  color: #8b4f13;
  font-weight: 900;
}

.table-order-item.is-price-overridden,
.touch-order-line.is-price-overridden {
  border-color: rgba(196, 131, 43, 0.5);
  background: #fff8e8;
}

.table-order-detail {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  padding-top: 9px;
}

.table-order-detail[hidden] {
  display: none;
}

.table-detail-toggle {
  cursor: pointer;
}

.product-search-field {
  position: relative;
}

.product-search-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(36, 29, 25, 0.16);
  display: grid;
  gap: 4px;
  left: 0;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 25;
}

.product-search-results:empty {
  display: none;
}

.product-search-results button {
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  text-align: left;
}

.product-search-results button:hover {
  background: #eef5f3;
}

.product-search-results button:disabled {
  color: var(--muted);
  cursor: default;
}

.product-search-results span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.touch-order-open {
  min-height: 34px;
  padding: 7px 10px;
}

.touch-order-dialog {
  border: 0;
  border-radius: 0;
  height: 100dvh;
  max-height: none;
  max-width: none;
  padding: 0;
  width: 100vw;
}

.touch-order-dialog::backdrop {
  background: rgba(36, 29, 25, 0.52);
}

.touch-order-dialog.is-hydrating .touch-order-body,
.touch-order-dialog.is-hydrating .touch-product-picker,
.touch-order-dialog.is-hydrating [data-touch-show-details],
.touch-order-dialog.is-hydrating [data-touch-show-products],
.touch-order-dialog.is-hydrating [data-touch-queue-cashier],
.touch-order-dialog.is-hydrating [data-touch-print-order] {
  opacity: 0.58;
  pointer-events: none;
}

.touch-order-dialog.is-hydrating::after {
  background: rgba(255, 253, 250, 0.95);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(36, 29, 25, 0.16);
  color: var(--ink);
  content: attr(data-loading-text);
  font-weight: 800;
  left: 50%;
  padding: 10px 16px;
  position: fixed;
  top: 86px;
  transform: translateX(-50%);
  z-index: 4;
}

.touch-order-shell {
  background: #fffdfa;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
}

.touch-order-head {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 22px;
}

.touch-order-head h2 {
  font-size: 32px;
  margin: 0;
}

.touch-order-head span {
  color: var(--muted);
  font-weight: 900;
}

.touch-order-head .touch-head-warning {
  border-radius: 999px;
  background: #b86a00;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  margin-top: 6px;
  padding: 6px 9px;
}

.touch-order-head .touch-head-warning[hidden],
.touch-starter-warning[hidden],
.touch-late-control-warning[hidden],
.touch-reserve-reminder-warning[hidden],
.touch-suspicious-warning[hidden],
.touch-close-approval[hidden] {
  display: none;
}

.touch-order-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.touch-section-keyboard,
.note-popup-keyboard,
.touch-voice-btn {
  border: 1px solid rgba(31, 111, 95, 0.22);
  background: #eef5f3;
  color: var(--accent-dark);
}

.touch-section-keyboard-row {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.touch-section-keyboard,
.touch-section-voice {
  margin-top: 0;
}

.touch-voice-btn {
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
  min-height: 38px;
  padding: 8px 12px;
  white-space: nowrap;
}

.touch-voice-btn.is-listening {
  border-color: rgba(184, 43, 43, 0.36);
  background: #b82b2b;
  color: #fff;
}

.touch-voice-order-button {
  min-height: 38px;
}

.voice-order-dialog {
  border: 0;
  border-radius: 12px;
  max-width: min(520px, calc(100vw - 28px));
  padding: 0;
  width: 100%;
}

.voice-order-dialog::backdrop {
  background: rgba(36, 29, 25, 0.48);
}

.voice-order-card {
  background: #fffdfa;
  color: var(--ink);
  display: grid;
  gap: 14px;
  padding: 18px;
}

.voice-order-head,
.voice-order-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.voice-order-head strong,
.voice-order-summary strong,
.voice-order-item strong {
  display: block;
  font-weight: 900;
}

.voice-order-head small,
.voice-order-summary span,
.voice-order-item span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
}

.voice-order-summary {
  border: 1px solid rgba(31, 111, 95, 0.18);
  border-radius: 8px;
  background: #eef5f3;
  padding: 10px 12px;
}

.voice-order-items {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.voice-order-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.touch-order-actions a[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
}

.touch-print-order {
  background: #1f6f5f;
  min-height: 46px;
}

.touch-print-order:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.touch-order-body {
  display: grid;
  gap: 0;
  grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
  min-height: 0;
}

.touch-order-dialog.mode-details .touch-order-body,
.touch-order-dialog.mode-products .touch-order-body {
  grid-template-columns: minmax(0, 1fr);
}

.touch-order-dialog.mode-details .touch-product-picker,
.touch-order-dialog.mode-products .touch-order-side {
  display: none;
}

.touch-order-dialog.mode-details .touch-order-side {
  border-right: 0;
  margin: 0 auto;
  max-width: 980px;
  overflow: auto;
  width: 100%;
}

.touch-order-side {
  border-right: 1px solid var(--line);
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 0;
  overflow: auto;
  padding: 16px;
}

.touch-status-field,
.touch-note-field {
  display: grid;
  gap: 6px;
}

.touch-starter-warning {
  border: 1px solid rgba(184, 106, 0, 0.28);
  border-radius: 8px;
  background: #fff4d7;
  color: #7a4300;
  font-size: 13px;
  font-weight: 900;
  padding: 9px 10px;
}

.touch-late-control-warning {
  align-items: center;
  border: 1px solid rgba(216, 59, 34, 0.28);
  border-radius: 8px;
  background: #fff0ec;
  color: #7d1d0d;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.touch-reserve-reminder-warning {
  align-items: center;
  border: 1px solid rgba(63, 42, 109, 0.28);
  border-radius: 8px;
  background: #f4efff;
  color: #2c1c52;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.touch-suspicious-warning {
  border: 1px solid rgba(21, 19, 19, 0.18);
  border-radius: 8px;
  background: #f4f1ee;
  color: #1f1714;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.touch-suspicious-warning > div:first-child {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
}

.touch-suspicious-warning .ghost-btn {
  min-height: 34px;
  padding: 7px 10px;
}

.touch-late-control-warning strong,
.touch-late-control-warning span,
.touch-reserve-reminder-warning strong,
.touch-reserve-reminder-warning span,
.touch-suspicious-warning strong,
.touch-suspicious-warning span,
.touch-suspicious-warning small {
  display: block;
}

.touch-late-control-warning strong,
.touch-reserve-reminder-warning strong,
.touch-suspicious-warning strong {
  font-size: 14px;
  font-weight: 900;
}

.touch-late-control-warning span,
.touch-reserve-reminder-warning span {
  font-size: 12px;
  font-weight: 800;
}

.touch-suspicious-warning [data-touch-suspicious-list] {
  display: grid;
  gap: 6px;
}

.touch-suspicious-item {
  align-items: start;
  border: 1px solid rgba(21, 19, 19, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #1f1714;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px 10px;
}

.touch-suspicious-item b {
  font-size: 12px;
  font-weight: 900;
}

.touch-suspicious-item small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.touch-suspicious-item .ghost-btn {
  align-self: center;
  min-height: 30px;
  padding: 6px 8px;
  white-space: nowrap;
}

.touch-close-approval {
  border: 1px solid rgba(176, 45, 31, 0.24);
  border-radius: 8px;
  background: #fff4ef;
  color: #3b1f18;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.touch-close-approval strong,
.touch-close-approval small {
  display: block;
}

.touch-close-approval strong {
  font-size: 14px;
  font-weight: 900;
}

.touch-close-approval label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  font-weight: 900;
}

.touch-close-approval input {
  border: 1px solid rgba(176, 45, 31, 0.24);
  border-radius: 8px;
  min-height: 42px;
  padding: 8px 10px;
}

.touch-approval-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.touch-detail-tabs {
  background: #fffdfa;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 6px;
  position: sticky;
  top: 0;
  z-index: 120;
  box-shadow: 0 8px 14px rgba(255, 253, 250, 0.94);
}

.touch-detail-tabs button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
  font-size: 15px;
  font-weight: 900;
  min-height: 44px;
  padding: 9px 13px;
}

.touch-detail-tabs button.active {
  background: #1f6f5f;
  border-color: #1f6f5f;
  color: #fff;
}

.touch-detail-tabs span {
  border-radius: 999px;
  background: #f8f4ed;
  color: var(--muted);
  font-size: 12px;
  padding: 3px 7px;
}

.touch-detail-tabs button.active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.touch-detail-panel {
  display: none;
}

.touch-detail-panel.active {
  display: grid;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

details.touch-detail-panel.active {
  display: block;
}

.touch-side-section.touch-detail-panel {
  border: 0;
  background: transparent;
  overflow: visible;
}

.touch-side-section.touch-detail-panel > summary {
  display: none;
}

.touch-payment-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.touch-payment-box > strong {
  color: var(--ink);
  font-size: 16px;
}

.touch-payment-box p {
  color: var(--accent-dark);
  font-weight: 900;
  margin: 0;
}

.touch-payment-box label {
  display: grid;
  gap: 5px;
}

.touch-payment-box input,
.touch-payment-box select {
  font-size: 18px;
  min-height: 46px;
}

.touch-payment-box input.is-touch-money-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 95, 0.16);
}

.touch-bill-box {
  align-items: center;
  border: 1px solid rgba(217, 119, 6, 0.22);
  border-radius: 8px;
  background: #fff7ed;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 10px 0;
  padding: 10px;
}

.touch-bill-box strong,
.touch-bill-box span {
  display: block;
}

.touch-bill-box strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.touch-bill-box span {
  color: #9a3412;
  font-size: 12px;
  font-weight: 900;
  margin-top: 2px;
}

.touch-bill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.touch-bill-box .ghost-btn,
.touch-bill-box .delete-btn {
  min-height: 38px;
  white-space: nowrap;
}

.touch-history-list {
  display: grid;
  gap: 8px;
}

.touch-history-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 10px;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 9px;
}

.touch-history-item time {
  align-self: start;
  border-radius: 999px;
  background: #f8f4ed;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 7px;
  text-align: center;
}

.touch-history-item strong,
.touch-history-item span,
.touch-history-item small {
  display: block;
}

.touch-history-item strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.touch-history-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.touch-history-item small {
  color: #8b6f5c;
  font-size: 11px;
  font-weight: 800;
  margin-top: 4px;
}

.touch-money-panel {
  border: 1px solid rgba(31, 111, 95, 0.14);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 10px;
  padding: 10px;
  position: relative;
  z-index: 0;
}

.touch-close-accordion {
  gap: 0;
}

.touch-close-accordion > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  min-height: 42px;
}

.touch-close-accordion > summary::-webkit-details-marker {
  display: none;
}

.touch-close-accordion > summary::after {
  color: var(--accent-dark);
  content: "+";
  font-size: 12px;
  font-weight: 900;
}

.touch-close-accordion[open] {
  gap: 10px;
}

.touch-close-accordion[open] > summary {
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
  padding-bottom: 10px;
}

.touch-close-accordion[open] > summary::after {
  content: "-";
}

.touch-close-accordion > summary strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.touch-close-accordion > summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.touch-discount-panel {
  border-color: rgba(180, 83, 9, 0.28);
  background: #fff8eb;
  box-shadow: inset 4px 0 0 #f59e0b;
}

.touch-discount-panel > summary::after,
.touch-discount-panel > summary strong {
  color: #92400e;
}

.touch-discount-panel > summary span,
.touch-discount-panel small {
  color: #a16207;
}

.touch-cash-panel {
  border-color: rgba(31, 111, 95, 0.28);
  background: #f1fbf7;
  box-shadow: inset 4px 0 0 #1f6f5f;
}

.touch-cash-panel::before {
  color: #14532d;
  content: "Kasa kapama";
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.touch-cash-panel label {
  color: #14532d;
}

.touch-account-panel {
  border-color: rgba(37, 99, 235, 0.28);
  background: #eff6ff;
  gap: 9px;
  box-shadow: inset 4px 0 0 #2563eb;
}

.touch-account-panel > summary::after,
.touch-account-panel > summary strong {
  color: #1d4ed8;
}

.touch-account-panel > summary span,
.touch-account-panel small {
  color: #1e40af;
}

.touch-money-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.touch-discount-panel > strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.touch-discount-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.touch-numpad {
  clear: both;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
  position: static;
  width: 100%;
  z-index: 0;
}

.touch-numpad button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
  min-height: 52px;
  padding: 10px 8px;
}

.touch-numpad button:active {
  background: #eef5f3;
  transform: scale(0.98);
}

.touch-numpad button[data-touch-numpad-clear],
.touch-numpad button[data-touch-numpad-back] {
  background: #f8f4ed;
  color: var(--muted);
  font-size: 14px;
}

.touch-payment-box small {
  color: var(--wine);
  font-weight: 900;
}

.touch-payment-box .touch-discount-panel small {
  color: #a16207;
}

.touch-payment-box .touch-account-panel small {
  color: #1e40af;
}

.touch-payment-box small.ok {
  color: var(--accent-dark);
}

.touch-payment-box .touch-business-day-note {
  color: var(--muted);
  font-weight: 800;
}

.touch-early-payment-list {
  display: grid;
  gap: 8px;
}

.touch-payment-line {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 9px;
}

.touch-payment-line strong,
.touch-payment-line span {
  display: block;
}

.touch-payment-line span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.touch-payment-box .ghost-btn,
.touch-payment-box .primary-btn {
  min-height: 42px;
  width: 100%;
}

.touch-transfer-actions {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.touch-account-panel select,
.touch-account-panel input {
  width: 100%;
}

.touch-free-close-panel {
  border-color: rgba(122, 31, 43, 0.22);
  background: #fff7f7;
}

.touch-free-close-panel strong {
  color: var(--wine);
}

.touch-free-close-panel p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.touch-free-close-panel textarea {
  min-height: 74px;
  resize: vertical;
}

.touch-account-new-fields {
  display: grid;
  gap: 8px;
}

.touch-payment-box .touch-fill-remaining-btn {
  font-size: 12px;
  min-height: 32px;
  padding: 6px 10px;
  width: 100%;
}

@media (min-width: 901px) {
  .touch-order-dialog.mode-details .touch-order-side {
    align-content: stretch;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    max-height: calc(100dvh - 86px);
    overflow: hidden;
  }

  .touch-order-dialog.mode-details .touch-detail-tabs {
    flex-wrap: wrap;
    overflow: visible;
    position: relative;
    top: auto;
    z-index: 20;
  }

  .touch-order-dialog.mode-details .touch-detail-panel.active {
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
  }

  .touch-order-dialog.mode-details details.touch-detail-panel.active {
    overflow: auto;
  }

  .touch-order-dialog.mode-details .touch-payment-box {
    align-content: start;
  }
}

.touch-status-field select {
  font-size: 18px;
  min-height: 50px;
}

.touch-side-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.touch-side-section summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 13px 14px;
  user-select: none;
}

.touch-side-section summary::-webkit-details-marker {
  display: none;
}

.touch-side-section summary::after {
  color: var(--wine);
  content: "⌄";
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.touch-side-section[open] summary {
  border-bottom: 1px solid var(--line);
}

.touch-side-section[open] summary::after {
  transform: rotate(180deg);
}

.touch-side-section summary span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.touch-side-section summary b {
  border-radius: 999px;
  background: #f8f4ed;
  color: var(--muted);
  font-size: 12px;
  padding: 4px 8px;
}

.touch-side-section-body {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.touch-table-action-panel {
  border-color: rgba(49, 95, 143, 0.22);
  background: #f7fbff;
}

.touch-table-action-body label {
  display: grid;
  gap: 5px;
}

.touch-table-action-body select {
  min-height: 42px;
}

.touch-table-action-body small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-consumption-panel {
  border: 1px solid rgba(31, 111, 95, 0.22);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(36, 29, 25, 0.07);
  margin-top: 18px;
  overflow: hidden;
}

.live-consumption-panel summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 58px;
  padding: 15px 16px;
  user-select: none;
}

.live-consumption-panel summary::-webkit-details-marker {
  display: none;
}

.live-consumption-title {
  display: grid;
  gap: 3px;
}

.live-consumption-title span {
  color: var(--ink);
  font-size: 19px;
  font-weight: 900;
}

.live-consumption-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-consumption-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.live-consumption-actions b {
  border-radius: 999px;
  background: #e4f2ee;
  color: var(--accent-dark);
  font-size: 13px;
  padding: 7px 11px;
}

.live-consumption-refresh {
  min-height: 34px;
  padding: 7px 11px;
}

.live-consumption-panel[open] summary {
  border-bottom: 1px solid var(--line);
}

.live-consumption-panel.is-loading {
  opacity: 0.82;
}

.live-consumption-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.live-consumption-controls {
  border: 1px solid rgba(31, 111, 95, 0.14);
  border-radius: 8px;
  background: #f7fbf9;
  display: inline-grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, auto));
  justify-self: start;
  padding: 5px;
}

.live-consumption-controls button {
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 11px;
}

.live-consumption-controls button.active {
  background: #1f6f5f;
  color: #fff;
  box-shadow: 0 8px 16px rgba(31, 111, 95, 0.16);
}

.live-consumption-stats,
.live-consumption-grid {
  display: grid;
  gap: 12px;
}

.live-consumption-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.live-consumption-stats article,
.live-consumption-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
}

.live-consumption-stats article {
  display: grid;
  gap: 5px;
  padding: 13px;
  position: relative;
}

.live-consumption-stats article::before {
  border-radius: 999px;
  background: #1f6f5f;
  content: "";
  height: 4px;
  left: 13px;
  position: absolute;
  right: 13px;
  top: 0;
}

.live-consumption-stats span,
.live-consumption-row span,
.live-consumption-row em,
.live-consumption-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.live-consumption-stats strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1.1;
}

.live-consumption-grid {
  grid-template-columns: 1.1fr 1fr 1.1fr;
}

.live-consumption-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
}

.live-consumption-card h3 {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
  margin: 0;
}

.live-consumption-list {
  display: grid;
  gap: 8px;
}

.live-consumption-row {
  align-items: center;
  border: 1px solid rgba(68, 55, 47, 0.08);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 6px;
  grid-template-columns: 28px minmax(0, 1fr) auto auto;
  min-height: 42px;
  padding: 8px 10px;
}

.live-consumption-rank {
  align-items: center;
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark) !important;
  display: inline-flex;
  font-size: 12px !important;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.live-consumption-row strong {
  color: var(--ink);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-consumption-row em {
  color: var(--accent-dark);
  font-style: normal;
}

.live-consumption-row.suggestion {
  align-items: start;
  grid-template-columns: minmax(92px, auto) minmax(0, 1fr);
}

.live-consumption-row.suggestion span {
  color: #7a4d08;
}

.live-consumption-empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
}

.live-daily-card {
  border: 1px solid rgba(49, 95, 143, 0.18);
  border-radius: 8px;
  background: #fbfdff;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.live-daily-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.live-daily-head h3 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
  margin: 0;
}

.live-daily-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.live-daily-head .ghost-btn {
  min-height: 34px;
  padding: 7px 11px;
}

.live-daily-list {
  display: grid;
  gap: 8px;
}

.live-daily-list.is-loading {
  opacity: 0.78;
}

.live-daily-row {
  align-items: center;
  border: 1px solid rgba(49, 95, 143, 0.1);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(96px, 0.7fr) minmax(100px, 0.8fr) minmax(118px, 0.9fr) minmax(96px, 0.75fr) minmax(180px, 1.4fr);
  padding: 10px;
}

.live-daily-date,
.live-daily-metric {
  display: grid;
  gap: 3px;
}

.live-daily-date strong,
.live-daily-metric strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
}

.live-daily-date span,
.live-daily-metric span,
.live-daily-metric small,
.live-daily-products em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.live-daily-metric small.up {
  color: #1f6f5f;
}

.live-daily-metric small.down {
  color: #b42318;
}

.live-daily-metric small.flat {
  color: var(--muted);
}

.live-daily-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.live-daily-products span {
  border: 1px solid rgba(31, 111, 95, 0.14);
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  display: inline-flex;
  gap: 5px;
  max-width: 190px;
  min-height: 28px;
  padding: 5px 8px;
}

.live-daily-products span,
.live-daily-products b {
  font-size: 12px;
  font-weight: 900;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-daily-products b {
  color: var(--muted);
  flex: 0 0 auto;
}

.touch-order-lines {
  align-content: start;
  display: grid;
  gap: 10px;
  min-height: 0;
  max-height: clamp(420px, 58dvh, 760px);
  overflow: auto;
}

.touch-order-total {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f3;
  color: var(--accent-dark);
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  padding: 11px 13px;
}

.touch-order-line {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.touch-order-line.is-complimentary {
  border-color: rgba(160, 35, 48, 0.22);
  background: #fff7f7;
}

.touch-order-line.is-customer-pending {
  border-color: rgba(122, 31, 43, 0.46);
  background: #fff1d8;
  box-shadow: inset 4px 0 0 var(--wine);
}

.touch-order-line.is-pending-print {
  border-color: rgba(31, 111, 95, 0.48);
  background: #eaf6f2;
  box-shadow: inset 4px 0 0 #1f6f5f;
}

.touch-order-line.is-quantity-pending,
.touch-order-line.is-quantity-saving {
  border-color: rgba(196, 131, 43, 0.46);
  background: #fff8e8;
}

.touch-order-line.is-quantity-saving {
  box-shadow: inset 4px 0 0 #c4832b;
}

.touch-order-line.is-late-control,
.table-order-item.is-late-control {
  border-color: rgba(216, 59, 34, 0.42);
  background: #fff0ec;
  box-shadow: inset 4px 0 0 #d83b22;
}

.touch-order-line.is-reserve-reminder,
.table-order-item.is-reserve-reminder {
  border-color: rgba(63, 42, 109, 0.42);
  background: #f6f1ff;
  box-shadow: inset 4px 0 0 #3f2a6d;
}

.touch-order-line.is-reserved {
  border-color: rgba(176, 118, 21, 0.5);
  background: #fff8e8;
  box-shadow: inset 4px 0 0 #b07615;
}

.touch-order-line.is-customer-pending.is-pending-print {
  border-color: rgba(122, 31, 43, 0.46);
  background: #fff1d8;
  box-shadow: inset 4px 0 0 var(--wine);
}

.touch-order-line.is-cancelled {
  border-color: rgba(122, 31, 43, 0.28);
  background: #f8e8e9;
  opacity: 0.82;
}

.touch-order-line strong {
  display: block;
  font-size: 17px;
}

.touch-order-line span {
  color: var(--muted);
  font-weight: 900;
}

.item-time-text {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-top: 3px;
}

.item-gift-text {
  border-radius: 999px;
  background: #f8e8e9;
  color: var(--wine);
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  margin: 3px 0 0;
  padding: 2px 7px;
}

.customer-extra-text {
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  margin: 3px 6px 0 0;
  padding: 3px 8px;
}

.pending-print-text,
.late-control-text,
.reserve-reminder-text,
.reserved-print-text {
  border-radius: 999px;
  background: #1f6f5f;
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  margin: 3px 6px 0 0;
  padding: 3px 8px;
}

.late-control-text {
  background: #d83b22;
}

.reserve-reminder-text {
  background: #3f2a6d;
}

.reserved-print-text {
  background: #b07615;
}

.item-cancel-text,
.cancelled-line-text {
  border-radius: 999px;
  background: var(--wine);
  color: #fff;
  display: inline-block;
  font-size: 12px;
  font-weight: 900;
  margin: 3px 0 0;
  padding: 2px 7px;
}

.cancelled-line-text {
  align-self: center;
  justify-self: start;
}

.touch-order-line.is-cancelled .touch-line-controls {
  grid-template-columns: minmax(0, 1fr);
}

.touch-line-controls {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 42px 32px 42px repeat(5, minmax(58px, 1fr));
}

.touch-line-controls button {
  min-height: 44px;
  padding: 8px 10px;
}

.touch-line-controls button:not(.delete-btn) {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f3;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 22px;
  font-weight: 900;
}

.touch-line-controls .note-icon-btn.has-note {
  border-color: rgba(31, 111, 95, 0.35);
  background: #d8ece7;
  color: var(--accent-dark);
}

.touch-line-controls .gift-btn {
  font-size: 13px;
}

.touch-line-controls .gift-btn,
.touch-line-controls .price-btn,
.touch-line-controls .note-icon-btn,
.touch-line-controls .reserve-btn,
.touch-line-controls .delete-btn {
  font-size: 13px;
  justify-content: center;
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
  width: 100%;
}

.touch-line-controls .reserve-btn {
  background: #fff8e8;
  color: #7a4d08;
}

.touch-line-controls .reserve-btn.is-march {
  background: #1f6f5f;
  color: #fff;
}

.touch-line-controls .gift-btn.has-gift {
  border-color: rgba(160, 35, 48, 0.28);
  background: #f8e8e9;
  color: var(--wine);
}

.touch-line-controls .price-btn.has-price-override,
.price-btn.has-price-override {
  border-color: rgba(196, 131, 43, 0.45);
  background: #fff1d2;
  color: #7a4d08;
}

.touch-line-controls b {
  text-align: center;
}

.touch-product-picker {
  display: grid;
  gap: 8px;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  min-height: 0;
  padding: 12px 18px 18px;
  width: 100%;
}

.touch-product-search {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.touch-product-search input {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 12px;
  width: 100%;
}

.touch-product-search .ghost-btn {
  min-height: 44px;
  white-space: nowrap;
}

.touch-product-search-actions {
  align-items: stretch;
  display: flex;
  gap: 6px;
}

.touch-product-search .touch-product-search-keyboard {
  margin-top: 0;
  min-height: 44px;
  width: 46px;
}

.touch-product-search .touch-product-search-voice {
  min-height: 44px;
}

.touch-product-search-results {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  max-height: min(360px, 48dvh);
  overflow: auto;
  padding: 8px;
}

.touch-product-search-results .touch-product-card {
  min-height: 128px;
}

.touch-product-search-results[hidden] {
  display: none;
}

.touch-product-queue {
  align-items: center;
  border: 1px solid rgba(31, 111, 95, 0.22);
  border-radius: 8px;
  background: #edf7f3;
  color: #123f36;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 8px 10px;
}

.touch-product-queue[hidden] {
  display: none;
}

.touch-product-queue strong {
  display: block;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.touch-product-queue small {
  display: block;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  opacity: 0.76;
}

.touch-product-queue .ghost-btn {
  min-height: 34px;
  padding: 6px 10px;
  white-space: nowrap;
}

.touch-product-queue.is-saving {
  background: #fff4db;
  border-color: rgba(169, 110, 13, 0.26);
  color: #6a3d00;
}

.touch-category-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scrollbar-width: thin;
}

.touch-category-tab {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  font-size: 14px;
  font-weight: 900;
  min-height: 42px;
  padding: 8px 11px;
}

.touch-category-tab span {
  border-radius: 999px;
  background: #f8e8e9;
  color: var(--wine);
  font-size: 12px;
  padding: 3px 8px;
}

.touch-category-tab.active {
  background: #1f6f5f;
  border-color: #1f6f5f;
  color: #fff;
}

.touch-category-tab.active span {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.touch-product-panels {
  min-height: 0;
  overflow: auto;
}

.touch-product-panel {
  display: none;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
}

.touch-product-panel.active {
  display: grid;
}

.touch-product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 14px rgba(36, 29, 25, 0.07);
  display: grid;
  grid-template-rows: auto auto;
  min-height: 106px;
  overflow: hidden;
  position: relative;
  transition: background-color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.touch-product-card.is-adding {
  border-color: #1f6f5f;
  background: #dcefe9;
  box-shadow: 0 0 0 3px rgba(31, 111, 95, 0.24), 0 8px 18px rgba(31, 111, 95, 0.16);
  transform: translateY(-1px);
}

.touch-product-card.is-added {
  animation: touchProductAdded 0.85s ease;
  border-color: #15844f;
  background: #d9f4e5;
  box-shadow: 0 0 0 4px rgba(21, 132, 79, 0.24), 0 9px 20px rgba(21, 132, 79, 0.16);
}

.touch-product-card.is-added .touch-product-add::after {
  border-radius: 999px;
  background: #15844f;
  color: #fff;
  content: "Eklendi";
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-self: start;
  padding: 3px 8px;
}

@keyframes touchProductAdded {
  0% { transform: scale(1); }
  38% { transform: scale(1.025); }
  100% { transform: scale(1); }
}

.touch-product-add {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 72px;
  padding: 10px;
  text-align: left;
}

.touch-product-note {
  border: 0;
  background: #f8f4ed;
  color: var(--wine);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 34px;
  padding: 6px 8px;
}

.touch-product-tools {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.touch-product-gift {
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff7f7;
  color: var(--wine);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 28px;
  padding: 4px 8px;
}

.touch-product-quantity {
  align-items: center;
  display: grid;
  gap: 4px;
  grid-column: 1 / -1;
  grid-template-columns: 34px minmax(42px, 1fr) 34px;
  padding: 5px 6px;
}

.touch-product-quantity button,
.touch-product-quantity input {
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 30px;
}

.touch-product-quantity button {
  background: #eef5f3;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 17px;
  font-weight: 900;
  padding: 0;
}

.touch-product-quantity input {
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
  padding: 3px;
  text-align: center;
}

.touch-product-tools .touch-product-note {
  min-height: 28px;
  padding: 4px 8px;
}

.touch-product-add:active,
.touch-product-add:hover,
.touch-product-gift:active,
.touch-product-gift:hover,
.touch-product-quantity button:active,
.touch-product-quantity button:hover,
.touch-product-note:active,
.touch-product-note:hover {
  background: #eef5f3;
}

.touch-product-card:has(.touch-product-add:hover),
.touch-product-card:has(.touch-product-gift:hover),
.touch-product-card:has(.touch-product-note:hover) {
  border-color: rgba(31, 111, 95, 0.38);
}

.touch-product-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.touch-product-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.touch-product-card span {
  align-self: end;
  color: var(--accent-dark);
  font-size: 15px;
  font-weight: 900;
}

@media (max-width: 900px) {
  .report-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-timing-panel .list-header {
    align-items: flex-start;
    display: grid;
    gap: 10px;
  }

  .payment-timing-next-day {
    justify-items: start;
    text-align: left;
  }

  .payment-timing-grid {
    grid-template-columns: 1fr;
  }

  .table-refresh-card {
    display: none;
  }

  .table-monitor-toolbar {
    gap: 6px;
    margin-bottom: 10px;
  }

  .fruit-plan-card {
    margin-bottom: 10px;
  }

  .fruit-plan-card summary {
    gap: 5px 8px;
    grid-template-columns: minmax(0, 1fr) auto 20px;
    padding: 9px 10px;
  }

  .fruit-plan-card summary::after {
    grid-column: 3;
    grid-row: 1;
  }

  .fruit-plan-card summary strong {
    font-size: 16px;
  }

  .fruit-plan-card summary em,
  .fruit-plan-card summary small {
    font-size: 11px;
  }

  .fruit-plan-card summary em,
  .fruit-plan-card summary small {
    grid-column: 1 / -1;
  }

  .fruit-plan-detail {
    padding: 10px;
  }

  .fruit-plan-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .fruit-plan-stats span {
    padding: 7px 8px;
  }

  .fruit-plan-stats strong {
    font-size: 17px;
  }

  .fruit-plan-list {
    grid-template-columns: 1fr;
  }

  .table-area-tabs {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .table-area-tab {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 9px;
  }

  .table-product-filter {
    gap: 8px;
    padding: 8px;
  }

  .table-product-filter-main {
    grid-template-columns: 1fr auto;
  }

  .table-product-filter-main label {
    grid-column: 1 / -1;
  }

  .table-product-filter-main input {
    min-width: 0;
  }

  .table-product-filter-meta {
    align-items: stretch;
    display: grid;
  }

  .table-product-filter-results {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .table-product-filter-results button {
    flex: 0 0 auto;
    max-width: 220px;
  }

  .table-monitor-area {
    padding: 8px;
  }

  .table-monitor-area .list-header {
    display: none;
  }

  .table-monitor-grid {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-monitor-card {
    gap: 6px;
    min-height: 96px;
    padding: 8px;
  }

  .table-monitor-head {
    align-items: flex-start;
    display: grid;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr);
  }

  .table-monitor-head strong {
    font-size: 18px;
    line-height: 1.05;
  }

  .table-monitor-head span,
  .table-open-time,
  .table-state,
  .table-order-meta span {
    font-size: 11px;
  }

  .table-state {
    justify-self: start;
  }

  .table-order-meta {
    align-items: flex-start;
    display: grid;
    gap: 4px;
  }

  .table-order-meta strong {
    font-size: 16px;
  }

  .report-filter-form button,
  .report-filter-form .ghost-btn {
    width: 100%;
  }

  .touch-order-head,
  .touch-order-body {
    grid-template-columns: 1fr;
  }

  .touch-order-head {
    align-items: center;
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: max(16px, calc(env(safe-area-inset-top, 0px) + 10px)) max(10px, calc(env(safe-area-inset-right, 0px) + 8px)) 8px max(10px, calc(env(safe-area-inset-left, 0px) + 8px));
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .touch-order-head > div:first-child {
    min-width: 0;
  }

  .touch-order-head .eyebrow {
    font-size: 9px;
    line-height: 1;
    margin-bottom: 0;
  }

  .touch-order-head h2 {
    font-size: 17px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .touch-order-head span {
    display: none;
  }

  .touch-order-actions {
    flex-wrap: nowrap;
    gap: 7px;
    justify-content: flex-end;
    overflow-x: visible;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .touch-order-actions .ghost-btn,
  .touch-order-actions .primary-btn,
  .touch-order-actions .delete-btn {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 0;
    justify-content: center;
    line-height: 1;
    min-height: 48px;
    min-width: 52px;
    padding: 10px 13px;
    text-align: center;
    white-space: nowrap;
  }

  .touch-order-actions button::before {
    content: attr(data-mobile-label);
    display: block;
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
  }

  .touch-print-order {
    min-height: 48px;
    min-width: 58px;
  }

  .touch-order-body {
    overflow: auto;
  }

  .touch-order-side {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    gap: 6px;
    padding: 7px;
  }

  .touch-order-dialog.mode-details .touch-order-side {
    max-height: calc(100dvh - 72px);
    overflow: auto;
  }

  .touch-detail-tabs {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 3px 0 4px;
    top: 0;
    z-index: 140;
  }

  .touch-detail-tabs button {
    border-radius: 6px;
    font-size: 11px;
    gap: 3px;
    justify-content: center;
    line-height: 1.12;
    min-height: 34px;
    padding: 4px 6px;
    text-align: center;
    white-space: normal;
    width: 100%;
  }

  .touch-detail-tabs span {
    font-size: 10px;
    padding: 1px 5px;
  }

  .touch-status-field select {
    font-size: 15px;
    min-height: 40px;
  }

  .touch-note-field textarea {
    min-height: 70px;
  }

  .touch-payment-box {
    gap: 8px;
    padding: 9px;
  }

  .touch-payment-box input,
  .touch-payment-box select {
    font-size: 15px;
    min-height: 38px;
  }

  .touch-money-panel {
    gap: 7px;
    padding: 7px;
  }

  .touch-money-fields {
    gap: 6px;
    grid-template-columns: 1fr;
  }

  .touch-numpad {
    gap: 5px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .touch-numpad button {
    border-radius: 6px;
    font-size: 17px;
    min-height: 40px;
    padding: 6px;
  }

  .touch-numpad button[data-touch-numpad-clear],
  .touch-numpad button[data-touch-numpad-back] {
    font-size: 11px;
  }

  .touch-payment-box .ghost-btn,
  .touch-payment-box .primary-btn {
    min-height: 36px;
  }

  .touch-transfer-actions {
    grid-template-columns: 1fr;
  }

  .touch-payment-box .touch-fill-remaining-btn {
    min-height: 30px;
    padding: 5px 9px;
  }

  .touch-side-section-body {
    gap: 6px;
    padding: 6px;
  }

  .touch-order-lines {
    gap: 5px;
    max-height: none;
    overflow: visible;
  }

  .touch-order-total {
    padding: 6px 8px;
  }

  .touch-order-line {
    gap: 5px;
    padding: 6px;
  }

  .touch-order-line strong {
    font-size: 14px;
    line-height: 1.12;
  }

  .touch-order-line span,
  .item-time-text,
  .customer-extra-text,
  .item-gift-text,
  .item-price-override-text,
  .reserved-print-text,
  .item-cancel-text,
  .item-note-text {
    font-size: 10px;
  }

  .touch-line-controls {
    gap: 4px;
    grid-template-columns: 28px 22px 28px repeat(5, minmax(44px, 1fr));
  }

  .touch-line-controls button {
    min-height: 29px;
    padding: 3px 5px;
  }

  .touch-line-controls button:not(.delete-btn) {
    font-size: 15px;
  }

  .touch-line-controls .gift-btn,
  .touch-line-controls .price-btn,
  .touch-line-controls .note-icon-btn,
  .touch-line-controls .reserve-btn,
  .touch-line-controls .delete-btn {
    font-size: 10px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .touch-product-picker {
    gap: 7px;
    padding: 9px 10px 12px;
  }

  .touch-product-queue {
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    padding: 7px 8px;
  }

  .touch-product-queue .ghost-btn {
    width: 100%;
  }

  .live-consumption-panel {
    margin-top: 12px;
  }

  .live-consumption-panel summary {
    align-items: stretch;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
  }

  .live-consumption-actions {
    justify-content: flex-start;
  }

  .live-consumption-controls {
    grid-template-columns: 1fr;
    justify-self: stretch;
  }

  .live-consumption-stats,
  .live-consumption-grid {
    grid-template-columns: 1fr;
  }

  .live-consumption-body {
    padding: 12px;
  }

  .live-consumption-row {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }

  .live-consumption-row em {
    grid-column: 3;
  }

  .live-consumption-row.suggestion {
    grid-template-columns: 1fr;
  }

  .live-daily-card {
    padding: 10px;
  }

  .live-daily-head {
    align-items: stretch;
    display: grid;
    gap: 8px;
  }

  .live-daily-head .ghost-btn {
    justify-self: start;
  }

  .live-daily-row {
    align-items: stretch;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .live-daily-date,
  .live-daily-products {
    grid-column: 1 / -1;
  }

  .live-daily-products {
    justify-content: flex-start;
  }

  .touch-product-search-results {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  }

  .touch-product-panel {
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  }

  .touch-product-search-results {
    max-height: 48dvh;
  }

  .touch-product-search-results .touch-product-card {
    min-height: 122px;
  }

  .touch-product-card {
    min-height: 0;
  }

  .touch-product-add {
    gap: 4px;
    min-height: 64px;
    padding: 8px;
  }

  .touch-product-card strong {
    font-size: 13px;
    line-height: 1.16;
  }

  .touch-product-card small,
  .touch-product-card span {
    font-size: 11px;
    line-height: 1.12;
  }

  .touch-product-tools {
    grid-template-columns: 1fr 1fr;
  }

  .touch-product-quantity {
    gap: 3px;
    grid-template-columns: 30px minmax(34px, 1fr) 30px;
    padding: 4px 5px;
  }

  .touch-product-quantity button,
  .touch-product-quantity input {
    min-height: 28px;
  }

  .touch-product-gift,
  .touch-product-tools .touch-product-note {
    font-size: 11px;
    min-height: 28px;
    padding: 4px 6px;
  }

  .has-touch-keyboard {
    padding-bottom: 0;
  }

  .touch-keyboard,
  .touch-keyboard-toggle,
  .touch-keyboard-dock,
  .global-keyboard-toggle {
    display: none !important;
  }

  .touch-product-search input,
  .touch-product-search .ghost-btn,
  .touch-product-search .touch-voice-btn {
    min-height: 38px;
  }

  .touch-category-tab {
    font-size: 12px;
    min-height: 34px;
    padding: 6px 9px;
  }
}

.public-cart-dialog::backdrop {
  background: rgba(36, 29, 25, 0.38);
}

.public-cart-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.public-cart-head {
  margin-bottom: 14px;
}

.public-cart-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.public-cart-list {
  display: grid;
  gap: 10px;
  max-height: 55vh;
  overflow: auto;
}

.public-repeat-panel {
  border: 1px solid #eadccc;
  border-radius: 8px;
  background: #fff8ef;
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 11px;
}

.public-repeat-panel[hidden] {
  display: none;
}

.public-repeat-panel strong {
  font-size: 14px;
  font-weight: 900;
}

#publicRepeatItems {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

#publicRepeatItems button {
  align-items: center;
  border: 1px solid #e2d0bc;
  border-radius: 999px;
  background: #fffdfa;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  gap: 6px;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
}

#publicRepeatItems small {
  color: var(--accent-dark);
  font-weight: 900;
}

.cart-order-form {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
}

.cart-login-note {
  color: var(--muted);
  margin-bottom: 0;
}

.public-cart-item {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  padding: 10px;
}

.public-cart-item span,
.cart-empty {
  color: var(--muted);
}

.cart-quantity {
  align-items: center;
  display: flex;
  gap: 8px;
}

.cart-quantity button {
  border: 0;
  border-radius: 999px;
  background: #eef5f3;
  color: var(--accent-dark);
  cursor: pointer;
  font-weight: 900;
  height: 30px;
  width: 30px;
}


.public-copy h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.04;
}

.public-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.public-form,
.login-panel {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.public-form {
  align-self: center;
}

.public-form h2,
.login-panel h1 {
  margin-bottom: 2px;
}

.public-form .alert,
.login-panel .alert {
  margin-bottom: 0;
}

.login-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 28px 16px;
}

.login-panel {
  width: min(100%, 420px);
}

.login-brand {
  display: grid;
  gap: 8px;
  justify-items: center;
  margin-bottom: 4px;
  text-align: center;
}

.login-brand img {
  max-height: 92px;
  max-width: min(240px, 78%);
  object-fit: contain;
  width: auto;
}

.login-brand span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-panel .ghost-btn,
.login-panel .primary-btn,
.public-form .primary-btn {
  width: 100%;
}

.waiter-login-shell {
  background:
    radial-gradient(circle at top left, rgba(130, 34, 46, 0.14), transparent 34%),
    linear-gradient(135deg, #fffaf2 0%, #f2eadf 100%);
}

.waiter-pin-panel {
  width: min(100%, 520px);
  gap: 18px;
  padding: 28px;
}

.waiter-pin-panel h1 {
  font-size: 34px;
  text-align: center;
}

.waiter-pin-panel .eyebrow {
  text-align: center;
}

.waiter-location-warning {
  border: 1px solid rgba(131, 29, 42, 0.18);
  border-radius: 8px;
  background: #fff8e8;
  color: var(--ink);
  display: grid;
  gap: 7px;
  padding: 12px;
  text-align: center;
}

.waiter-location-warning strong {
  color: var(--wine);
  font-size: 16px;
  font-weight: 900;
}

.waiter-location-warning span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.waiter-location-warning .ghost-btn {
  justify-self: center;
  min-height: 36px;
  padding: 7px 12px;
  width: auto;
}

.waiter-location-warning.ready {
  border-color: rgba(31, 111, 95, 0.24);
  background: #eef8f4;
}

.waiter-location-warning.ready strong {
  color: var(--accent-dark);
}

.waiter-location-warning.error {
  border-color: rgba(177, 35, 35, 0.28);
  background: #fff0ef;
}

.waiter-location-warning.error strong {
  color: #b12323;
}

.waiter-pin-panel button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.pin-display {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 4px 0 6px;
}

.pin-display span {
  height: 58px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff;
  position: relative;
}

.pin-display span.filled::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--wine);
  transform: translate(-50%, -50%);
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.pin-keypad button {
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 28px;
  font-weight: 900;
}

.pin-keypad button:active {
  transform: scale(0.98);
}

.pin-keypad .pin-muted {
  background: #f8f4ed;
  color: var(--muted);
  font-size: 16px;
}

.pin-submit {
  min-height: 58px;
  font-size: 18px;
}

.form-panel {
  display: grid;
  gap: 14px;
  padding: 20px;
  position: sticky;
  top: 28px;
  min-width: 0;
}

.table-order-settings-panel form {
  display: grid;
  gap: 18px;
}

.table-order-settings-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.receipt-order-form {
  display: grid;
  gap: 18px;
}

.receipt-order-toolbar {
  align-items: center;
  background: #151515;
  border-radius: 8px;
  color: #fff;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.receipt-order-toolbar strong,
.receipt-order-toolbar span {
  display: block;
}

.receipt-order-toolbar span {
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
}

.receipt-order-head,
.receipt-order-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px minmax(220px, 1fr) minmax(160px, 240px) 96px;
}

.receipt-order-head {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  padding: 0 14px;
  text-transform: uppercase;
}

.receipt-order-list {
  display: grid;
  gap: 9px;
}

.receipt-order-row {
  background: linear-gradient(180deg, #fffdf9 0%, #fff8ee 100%);
  border: 1px solid rgba(35, 31, 25, .12);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(20, 16, 12, .04);
  padding: 10px 12px;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.receipt-order-row:hover {
  border-color: rgba(176, 37, 37, .34);
  box-shadow: 0 12px 28px rgba(20, 16, 12, .07);
}

.receipt-order-row.is-dragging {
  border-color: #b02525;
  box-shadow: 0 18px 34px rgba(176, 37, 37, .18);
  opacity: .72;
  transform: scale(.995);
}

.receipt-drag-handle {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: grab;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 38px;
  padding: 0 10px;
  text-transform: uppercase;
}

.receipt-drag-handle:active {
  cursor: grabbing;
}

.receipt-category-cell {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr);
  min-width: 0;
}

.receipt-position {
  align-items: center;
  background: #151515;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.receipt-order-row strong,
.receipt-order-row small {
  display: block;
}

.receipt-order-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-order-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.receipt-order-row select,
.receipt-order-row input {
  min-height: 38px;
  padding: 8px 10px;
}

.receipt-order-number {
  display: grid;
  gap: 3px;
}

.receipt-order-number span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-order-number input {
  background: #f4efe7;
  font-weight: 900;
  text-align: center;
}

.settings-subsection {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 14px;
}

.settings-subsection h2 {
  font-size: 20px;
  margin: 0 0 4px;
}

.settings-subsection p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.settings-help-box {
  border: 1px solid rgba(31, 111, 95, 0.16);
  border-radius: 8px;
  background: #f8f4ed;
  display: grid;
  gap: 6px;
  padding: 12px;
}

.settings-help-box strong {
  color: var(--ink);
}

.settings-help-box p {
  color: var(--muted);
  font-weight: 800;
  margin: 0;
}

.collapsible-form-panel {
  align-content: start;
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.collapsible-form-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 18px 20px;
}

.collapsible-form-panel > summary::-webkit-details-marker {
  display: none;
}

.collapsible-form-panel > summary::after {
  border: solid var(--muted);
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  margin-left: auto;
  transform: rotate(45deg);
  transition: transform 0.18s ease, border-color 0.18s ease;
  width: 9px;
}

.collapsible-form-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}

.collapsible-form-panel[open] > summary::after {
  border-color: var(--accent);
  transform: rotate(-135deg);
}

.collapsible-form-panel > summary span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 900;
}

.collapsible-form-panel > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.collapsible-form-body {
  display: grid;
  gap: 14px;
  padding: 18px 20px 20px;
}

.inline-collapsible-form {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 95, 0.14);
}

textarea {
  resize: vertical;
}

.has-touch-keyboard {
  padding-bottom: 250px;
}

.touch-keyboard {
  border-top: 1px solid var(--line);
  background: #fffdfa;
  box-shadow: 0 -18px 45px rgba(28, 18, 15, 0.16);
  bottom: 0;
  left: 0;
  padding: 10px;
  position: fixed;
  right: 0;
  z-index: 1200;
}

.touch-keyboard[hidden] {
  display: none;
}

.touch-keyboard-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdfa;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  justify-content: center;
  margin-top: 6px;
  min-height: 38px;
  padding: 6px 10px;
  width: 46px;
}

.touch-keyboard-toggle:active {
  background: #eef5f3;
  transform: scale(0.98);
}

.global-keyboard-toggle {
  border-color: rgba(31, 111, 95, 0.26);
  background: #1f6f5f;
  box-shadow: 0 12px 28px rgba(31, 111, 95, 0.24);
  color: #fff;
  margin: 0;
  min-height: 42px;
  position: fixed;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  z-index: 1180;
}

.global-keyboard-toggle:active {
  background: var(--accent-dark);
  transform: translateY(-50%) scale(0.98);
}

.touch-keyboard-dock {
  align-items: center;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  grid-column: 1 / -1;
  margin-top: 2px;
  padding-top: 8px;
}

.touch-keyboard-dock span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  margin-right: 4px;
  text-transform: uppercase;
}

.touch-keyboard-dock .touch-keyboard-toggle {
  font-size: 14px;
  margin-top: 0;
  min-height: 30px;
  padding: 4px 8px;
  width: 36px;
}

.touch-keyboard-field {
  display: block;
  position: relative;
}

.touch-keyboard-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 8px;
  max-width: 920px;
}

.touch-keyboard-head strong {
  color: var(--ink);
  font-size: 14px;
}

.touch-keyboard-head button,
.touch-keyboard-keys button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.touch-keyboard-head button {
  padding: 7px 12px;
}

.touch-keyboard-keys {
  display: grid;
  gap: 6px;
  margin: 0 auto;
  max-width: 920px;
}

.touch-keyboard-row {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.touch-keyboard-keys button {
  min-height: 42px;
  min-width: 42px;
  padding: 8px 10px;
}

.touch-keyboard-keys button:active {
  background: #eef5f3;
  transform: scale(0.98);
}

.touch-keyboard-keys .keyboard-space {
  flex: 1;
  max-width: 260px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.delete-btn {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  min-height: 42px;
  white-space: nowrap;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  padding: 13px 16px;
  text-align: center;
  text-decoration: none;
}

.primary-btn:hover {
  background: var(--accent-dark);
}

.ghost-btn {
  background: #eef5f3;
  color: var(--accent-dark);
  display: inline-flex;
  justify-content: center;
  padding: 10px 12px;
  text-decoration: none;
}

.list-panel {
  padding: 20px;
}

.list-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.list-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 170px 160px auto;
  gap: 12px;
  margin-bottom: 18px;
  align-items: end;
}

.reservation-list {
  display: grid;
  gap: 12px;
}

.reservation-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.reservation-print-sheet {
  display: none;
}

.reservation-item {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fffdfa;
}

.reservation-card-top {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  min-width: 0;
}

.reservation-item.status-pending {
  border-left-color: var(--wine);
  background: #fff7f7;
}

.reservation-item.status-confirmed {
  border-left-color: var(--accent);
  background: #f7fcfa;
}

.item-main {
  display: flex;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.reservation-quick-form {
  align-items: center;
}

.reservation-date-badge {
  align-items: center;
  background: #1f1714;
  border-radius: 8px;
  color: #fff;
  display: grid;
  flex: 0 0 128px;
  justify-items: center;
  min-height: 46px;
  padding: 5px;
  text-align: center;
}

.editable-date-badge {
  cursor: pointer;
  gap: 2px;
}

.editable-date-badge input {
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  color-scheme: dark;
  font-size: 11px;
  font-weight: 900;
  min-height: 24px;
  padding: 2px 4px;
  text-align: center;
  width: 100%;
}

.editable-date-badge input:focus {
  border-color: #f2c36b;
  box-shadow: 0 0 0 2px rgba(242, 195, 107, 0.24);
}

.reservation-date-badge span,
.reservation-date-badge small {
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.reservation-date-badge strong {
  color: #f2c36b;
  font-size: 22px;
  line-height: 1;
}

.time-badge {
  display: grid;
  place-items: center;
  flex: 0 0 74px;
  height: 40px;
  border-radius: 8px;
  background: #f6ead8;
  color: #6b3e0e;
  font-weight: 900;
}

.editable-time-badge {
  cursor: pointer;
  height: auto;
  min-height: 46px;
  padding: 5px;
}

.editable-time-badge input {
  cursor: pointer;
  border: 1px solid #e6c796;
  border-radius: 6px;
  background: #fffdfa;
  color: #6b3e0e;
  font-size: 12px;
  font-weight: 900;
  min-height: 24px;
  padding: 2px 4px;
  text-align: center;
  width: 100%;
}

.editable-time-badge input:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 2px rgba(196, 131, 43, 0.18);
}

.reservation-summary {
  min-width: 0;
}

.reservation-title-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 3px;
}

.reservation-title-row h3 {
  margin: 0;
}

.reservation-name-field {
  color: var(--ink);
  display: grid;
  min-width: min(280px, 100%);
  position: relative;
}

.reservation-name-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.reservation-name-field input {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  min-height: 34px;
  padding: 2px 34px 2px 0;
}

.reservation-name-field input:focus {
  background: #fff;
  border-color: var(--accent);
  padding-inline: 8px;
}

.reservation-quick-form .reservation-name-field .touch-keyboard-toggle {
  font-size: 13px;
  margin: 0;
  min-height: 28px;
  padding: 0;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  z-index: 2;
}

.reservation-quick-form .reservation-name-field .touch-keyboard-toggle:active {
  transform: translateY(-50%) scale(0.98);
}

.party-size-badge {
  background: #f6ead8;
  border: 1px solid #e6c796;
  border-radius: 999px;
  color: #6b3e0e;
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 4px 8px;
}

.editable-party-badge {
  align-items: center;
  gap: 4px;
}

.editable-party-badge input {
  border: 0;
  background: transparent;
  color: #6b3e0e;
  font-weight: 900;
  max-width: 42px;
  padding: 0;
  text-align: center;
}

.editable-party-badge input:focus {
  background: #fff;
  border: 1px solid #e6c796;
  padding: 3px 4px;
}

.quick-save-btn {
  border: 1px solid rgba(31, 111, 95, 0.24);
  border-radius: 8px;
  background: #e4f2ee;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 9px;
}

.reservation-item h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.meta,
.note {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.note {
  margin-top: 6px;
}

.item-actions {
  display: grid;
  align-items: start;
  gap: 8px;
  flex: 0 0 210px;
}

.reservation-compact-actions {
  flex-basis: 150px;
}

.item-actions form {
  margin: 0;
}

.status-select {
  min-width: 132px;
}

.readonly-status {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f3ee;
  color: var(--muted);
  display: inline-flex;
  min-height: 38px;
  padding: 8px 10px;
}

.reservation-compact-actions .status-select {
  min-height: 30px;
  min-width: 0;
  padding: 5px 8px;
}

.reservation-edit-panel {
  position: relative;
}

.reservation-edit-panel summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
  min-height: 30px;
  padding: 5px 8px;
  text-align: center;
}

.reservation-compact-actions .delete-btn {
  min-height: 30px;
  padding: 5px 8px;
}

.whatsapp-confirm-btn {
  align-items: center;
  border: 1px solid rgba(31, 111, 95, 0.22);
  border-radius: 8px;
  background: #eefaf4;
  color: #167248;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 30px;
  padding: 5px 8px;
  text-decoration: none;
  white-space: nowrap;
}

.whatsapp-confirm-btn:hover {
  background: #dff6eb;
  color: #0f5f3b;
}

.reservation-edit-panel summary::-webkit-details-marker {
  display: none;
}

.reservation-edit-panel[open] summary {
  background: #eef5f3;
  border-color: rgba(31, 111, 95, 0.26);
  color: var(--accent-dark);
}

.reservation-edit-form {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(36, 29, 25, 0.14);
  display: grid;
  gap: 10px;
  min-width: min(520px, calc(100vw - 48px));
  padding: 14px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 12;
}

.reservation-edit-form label {
  font-size: 13px;
  position: relative;
}

.reservation-edit-form input,
.reservation-edit-form textarea {
  padding-right: 40px;
}

.reservation-edit-form .touch-keyboard-toggle {
  font-size: 13px;
  margin: 0;
  min-height: 28px;
  padding: 0;
  position: absolute;
  right: 6px;
  top: 28px;
  width: 30px;
  z-index: 2;
}

.reservation-head {
  align-items: center;
}

.reservation-admin-layout {
  display: grid;
  gap: 16px;
}

.reservation-fast-panel,
.reservation-pending-panel,
.reservation-list-panel {
  border: 1px solid rgba(68, 55, 47, 0.1);
  box-shadow: 0 12px 26px rgba(36, 29, 25, 0.05);
}

.reservation-fast-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.reservation-fast-head,
.reservation-section-head {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.reservation-fast-head h2,
.reservation-section-head h2 {
  font-size: 20px;
  margin: 0 0 3px;
}

.reservation-fast-head p,
.reservation-section-head p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.reservation-date-presets,
.reservation-scope-tabs {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reservation-date-presets button,
.reservation-scope-tabs a {
  align-items: center;
  border: 1px solid rgba(31, 111, 95, 0.18);
  border-radius: 8px;
  background: #f5f8f6;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  text-decoration: none;
}

.reservation-date-presets button {
  cursor: pointer;
}

.reservation-scope-tabs a.active {
  background: var(--accent);
  color: #fff;
}

.reservation-scope-tabs .ghost-btn {
  margin-left: auto;
  min-height: 36px;
}

.reservation-fast-form {
  align-items: end;
  display: grid;
  grid-template-columns: minmax(124px, 0.72fr) minmax(104px, 0.52fr) minmax(220px, 1.2fr) minmax(108px, 0.52fr) minmax(150px, 0.8fr) minmax(145px, 0.78fr) minmax(190px, 1fr) auto;
  gap: 8px;
}

.reservation-fast-form label,
.reservation-dialog-grid label {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  font-weight: 900;
  gap: 5px;
  text-transform: uppercase;
}

.reservation-fast-form input,
.reservation-fast-form select,
.reservation-dialog-grid input,
.reservation-dialog-grid select,
.reservation-dialog-grid textarea {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  min-height: 34px;
  padding: 7px 9px;
  text-transform: none;
  width: 100%;
}

.reservation-fast-form input:focus,
.reservation-fast-form select:focus,
.reservation-dialog-grid input:focus,
.reservation-dialog-grid select:focus,
.reservation-dialog-grid textarea:focus {
  border-color: rgba(31, 111, 95, 0.6);
  box-shadow: 0 0 0 3px rgba(31, 111, 95, 0.12);
  outline: 0;
}

.party-stepper {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  overflow: hidden;
}

.party-stepper button {
  border: 0;
  background: #f4ede6;
  color: var(--ink);
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  height: 38px;
}

.party-stepper input {
  border: 0;
  border-radius: 0;
  min-height: 38px;
  padding-inline: 4px;
  text-align: center;
}

.fast-save-btn {
  min-height: 38px;
  padding-block: 9px;
}

.quick-note-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.quick-note-chips button {
  border: 1px dashed rgba(31, 111, 95, 0.28);
  border-radius: 999px;
  background: #fbf8f2;
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 30px;
  padding: 5px 10px;
}

.reservation-row-list {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}

.reservation-list-total {
  align-items: center;
  border: 1px solid rgba(31, 111, 95, 0.18);
  border-radius: 10px;
  background: #f4faf7;
  color: var(--accent-dark);
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 10px;
  padding: 9px 12px;
}

.reservation-list-total span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reservation-list-total strong {
  color: var(--accent-dark);
  font-size: 18px;
  font-weight: 950;
}

.reservation-row {
  align-items: center;
  border: 1px solid var(--line);
  border-left: 4px solid #d9cec2;
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 7px 9px;
}

.reservation-row-pending {
  border-left-color: #c73737;
  background: #fff6f5;
}

.reservation-row-confirmed {
  border-left-color: var(--accent);
  background: #f7fcfa;
}

.reservation-row-request {
  box-shadow: inset 0 0 0 1px rgba(199, 55, 55, 0.08);
}

.reservation-row-main {
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 62px minmax(0, 1fr) 70px 104px;
  min-width: 0;
  padding: 0;
  text-align: left;
}

.reservation-row-time {
  align-items: center;
  border-radius: 8px;
  background: #1f1714;
  color: #f2c36b;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  justify-content: center;
  min-height: 34px;
}

.reservation-row-info {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.reservation-row-info strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reservation-row-info small,
.reservation-row-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reservation-row-info em {
  color: #8b4f13;
  font-weight: 800;
}

.reservation-row-party,
.reservation-status-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  justify-content: center;
  min-height: 28px;
  padding: 4px 7px;
  white-space: nowrap;
}

.reservation-row-party {
  background: #f6ead8;
  color: #6b3e0e;
}

.reservation-status-pill {
  background: #f1ede8;
  color: var(--muted);
}

.reservation-status-pill.pending {
  background: #ffe2e0;
  color: #b12323;
}

.reservation-status-pill.confirmed {
  background: #def4e9;
  color: #11633f;
}

.reservation-row-actions {
  align-items: center;
  display: grid;
  gap: 5px;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
}

.reservation-row-actions form {
  margin: 0;
}

.reservation-row-actions .primary-btn,
.reservation-row-actions .ghost-btn,
.reservation-row-actions .delete-btn,
.reservation-row-actions .whatsapp-confirm-btn,
.reservation-row-actions .status-select {
  font-size: 11px;
  min-height: 29px;
  padding: 4px 7px;
}

.reservation-row-actions .delete-btn {
  border-radius: 8px;
}

.reservation-pending-panel.is-empty .reservation-row-list {
  margin-top: 10px;
}

.reservation-dialog {
  border: 0;
  border-radius: 12px;
  max-width: min(760px, calc(100vw - 24px));
  padding: 0;
  width: 100%;
}

.reservation-dialog::backdrop {
  background: rgba(21, 17, 14, 0.48);
}

.reservation-dialog-card {
  background: #fffdfa;
  border: 1px solid rgba(68, 55, 47, 0.1);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.reservation-dialog-card header {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.reservation-dialog-card header h2 {
  margin: 0;
}

.reservation-dialog-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dialog-note-field {
  grid-column: 1 / -1;
}

.reservation-dialog-actions {
  display: flex;
  justify-content: flex-end;
}

.reservation-toast {
  bottom: 22px;
  box-shadow: 0 18px 42px rgba(21, 17, 14, 0.24);
  position: fixed;
  right: 22px;
  z-index: 80;
}

.reservation-toast:not([hidden]) {
  align-items: center;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  font-weight: 900;
  min-height: 44px;
  padding: 10px 14px;
}

.reservation-toast.is-error:not([hidden]) {
  background: #b42323;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 2mm 5mm 5mm;
  }

  html,
  body {
    background: #fff !important;
    height: auto !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body:has(.reservation-print-sheet) * {
    visibility: hidden !important;
  }

  body.is-reservation-printing * {
    visibility: hidden !important;
  }

  body.is-reservation-printing .admin-content > :not(.reservation-print-sheet),
  body:has(.reservation-print-sheet) .admin-content > :not(.reservation-print-sheet) {
    display: none !important;
  }

  body:has(.reservation-print-sheet) .reservation-print-sheet,
  body:has(.reservation-print-sheet) .reservation-print-sheet *,
  body.is-reservation-printing .reservation-print-sheet,
  body.is-reservation-printing .reservation-print-sheet * {
    visibility: visible !important;
  }

  .admin-sidebar,
  .admin-page-head,
  .reservation-admin-layout,
  .reservation-dialog,
  .reservation-toast,
  .notification-widget,
  .privacy-mode-toggle,
  .global-keyboard-toggle,
  .action-approval-widget,
  .staff-announcement-modal,
  .access-location-lock,
  .admin-footer,
  .alert,
  script {
    display: none !important;
  }

  .admin-shell,
  .admin-content {
    display: block !important;
    margin: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .reservation-print-sheet {
    color: #111;
    display: block !important;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 8.5pt;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    top: 0 !important;
    width: 100%;
  }

  .reservation-print-head {
    align-items: flex-start;
    border-bottom: 2px solid #111;
    display: flex;
    justify-content: space-between;
    margin: 0 0 2mm;
    padding-bottom: 1mm;
  }

  .reservation-print-head h1 {
    font-size: 13pt;
    margin: 0;
  }

  .reservation-print-head p,
  .reservation-print-head span {
    display: block;
    margin: 0;
  }

  .reservation-print-head strong {
    display: block;
    font-size: 9.5pt;
    margin-bottom: 0;
    text-align: right;
  }

  .reservation-print-table {
    border-collapse: collapse;
    margin-bottom: 0;
    table-layout: fixed;
    width: 100%;
  }

  .reservation-print-table th,
  .reservation-print-table td {
    border: 1px solid #111;
    line-height: 1.12;
    padding: 1.3mm 1.2mm;
    text-align: left;
    vertical-align: top;
  }

  .reservation-print-table th {
    background: #efefef !important;
    font-size: 8pt;
    font-weight: 700;
  }

  .reservation-print-table td {
    height: 6mm;
  }

  .reservation-print-table th:nth-child(1),
  .reservation-print-table td:nth-child(1) {
    width: 24%;
  }

  .reservation-print-table th:nth-child(2),
  .reservation-print-table td:nth-child(2) {
    width: 12%;
  }

  .reservation-print-table th:nth-child(3),
  .reservation-print-table td:nth-child(3) {
    width: 9%;
    text-align: center;
  }

  .reservation-print-table th:nth-child(4),
  .reservation-print-table td:nth-child(4) {
    width: 16%;
  }

  .reservation-print-table th:nth-child(5),
  .reservation-print-table td:nth-child(5) {
    width: 15%;
  }

  .reservation-print-total-row td {
    background: #efefef !important;
    font-size: 9pt;
    font-weight: 700;
    height: 7mm;
  }

  .reservation-print-total-row td:nth-child(2) {
    text-align: center;
  }

  .reservation-print-sheet h2 {
    display: none !important;
  }

  .blank-rows-table {
    display: none !important;
  }

.blank-reservation-row td {
    height: 8.5mm;
  }

  .product-report-head {
    align-items: flex-start !important;
    border-bottom: 2px solid #111;
    color: #111;
    display: flex !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
  }

  .product-report-head h1 {
    font-size: 18pt;
  }

  .product-report-filter,
  .daily-table-filter,
  .insight-report-filter,
  .product-report-actions {
    display: none !important;
  }

  .product-report-stats,
  .daily-table-stats,
  .insight-report-stats {
    display: grid !important;
    gap: 6px !important;
    grid-template-columns: repeat(3, 1fr) !important;
    margin-bottom: 8px !important;
  }

  .product-report-stats .stat-card,
  .daily-table-stats .stat-card,
  .insight-report-stats .stat-card,
  .daily-table-summary-panel,
  .product-report-section,
  .insight-report-panel,
  .product-report-category {
    border: 1px solid #111 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .product-report-stats .stat-card,
  .daily-table-stats .stat-card {
    padding: 7px !important;
  }

  .product-report-stats .stat-card strong,
  .daily-table-stats .stat-card strong {
    font-size: 13pt !important;
  }

  .product-report-section,
  .daily-table-summary-panel {
    display: block !important;
    margin-bottom: 8px !important;
    padding: 8px !important;
  }

  .product-report-category summary {
    padding: 7px !important;
  }

  .product-report-category summary::after {
    display: none !important;
  }

  .product-report-table {
    font-size: 8pt;
    min-width: 0 !important;
  }

  .product-report-table th,
  .product-report-table td {
    border: 1px solid #111 !important;
    padding: 4px !important;
  }

  .daily-table-detail summary {
    display: block !important;
  }

  .daily-detail-grid,
  .daily-item-list {
    display: none !important;
  }
}

.status-pending-select {
  border-color: #e2a9ae;
  background: #f8e8e9;
  color: var(--wine);
  font-weight: 900;
}

.status-confirmed-select {
  border-color: #a9d8ca;
  background: #e4f2ee;
  color: var(--accent-dark);
  font-weight: 900;
}

.reservation-status-text {
  border-radius: 999px;
  display: inline-flex;
  font-weight: 900;
  padding: 2px 8px;
}

.reservation-status-text.pending {
  background: #f8e8e9;
  color: var(--wine);
}

.reservation-status-text.confirmed {
  background: #e4f2ee;
  color: var(--accent-dark);
}

.delete-btn {
  background: #f8e8e9;
  color: var(--wine);
  padding: 11px 12px;
}

.users-layout {
  grid-template-columns: minmax(300px, 340px) minmax(0, 1fr);
}

.user-list {
  display: grid;
  gap: 12px;
}

.user-control-summary {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.user-control-card {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-height: 98px;
  padding: 12px;
}

.user-control-card span,
.user-control-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-control-card strong {
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.user-control-card.safe {
  border-color: rgba(31, 111, 95, 0.22);
  background: #f2faf7;
}

.user-control-card.warning {
  border-color: rgba(184, 43, 43, 0.24);
  background: #fff7f6;
}

.user-list-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.user-list-filters input {
  flex: 1 1 220px;
  min-height: 40px;
}

.user-list-filters button {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  min-height: 40px;
  padding: 8px 12px;
}

.user-list-filters button.active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.user-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.user-accordion {
  display: block;
}

.user-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  list-style: none;
  min-height: 56px;
  padding: 12px 14px;
}

.user-summary::-webkit-details-marker {
  display: none;
}

.user-summary-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-summary-main strong,
.user-summary-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-summary-main strong {
  color: var(--ink);
  font-size: 15px;
}

.user-summary-main small {
  color: var(--muted);
  font-size: 12px;
}

.user-summary-submeta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-summary-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.user-summary-arrow {
  background: #f3eadf;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.user-accordion[open] .user-summary {
  border-bottom: 1px solid var(--line);
}

.user-accordion[open] .user-summary-arrow {
  background: var(--accent-dark);
  color: #fff;
}

.user-accordion[open] .user-summary-arrow::before {
  content: "Kapat";
}

.user-accordion[open] .user-summary-arrow {
  font-size: 0;
}

.user-accordion[open] .user-summary-arrow::before {
  font-size: 12px;
}

.user-accordion-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.user-risk-strip {
  background: #fff7f6;
  border: 1px solid rgba(184, 43, 43, 0.18);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.user-risk-strip strong {
  color: var(--wine);
  font-size: 13px;
  font-weight: 900;
}

.user-risk-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.user-edit-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.user-delete-form {
  display: flex;
  justify-content: flex-end;
}

.permission-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8f4ed;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.permission-box.muted {
  opacity: 0.72;
}

.permission-head {
  display: grid;
  gap: 3px;
}

.permission-head strong {
  color: var(--ink);
  font-size: 14px;
}

.permission-head span {
  color: var(--muted);
  font-size: 12px;
}

.permission-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.permission-grid.permission-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.permission-check {
  align-items: center;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
}

.permission-check input {
  flex: 0 0 auto;
  height: 16px;
  width: 16px;
}

.permission-check-detail {
  align-items: flex-start;
  min-height: 72px;
}

.permission-check-detail span {
  display: grid;
  gap: 3px;
}

.permission-check-detail strong {
  color: var(--ink);
  font-size: 13px;
}

.permission-check-detail small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.check-row {
  align-items: center;
  display: flex;
  gap: 10px;
  min-height: 44px;
}

.check-row input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.warning-panel {
  background: #fff8e8;
  border-color: #ead19a;
  color: #6d4b00;
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
}

.warning-panel strong {
  font-weight: 900;
}

.warning-panel p {
  margin-bottom: 0;
}

.inventory-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.inventory-list {
  display: grid;
  gap: 12px;
}

.inventory-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 8px;
}

.inventory-item.is-low-stock {
  border-color: #e7b3b3;
  box-shadow: 0 0 0 3px rgba(201, 45, 45, 0.06);
}

.inventory-card-head {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  min-height: 44px;
  min-width: 0;
  padding: 2px 4px;
}

.inventory-card-head::-webkit-details-marker {
  display: none;
}

.inventory-card-head strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.inventory-card-head small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-card-details {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.inventory-card-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  margin-top: 8px;
  min-width: 0;
  overflow: hidden;
  padding-top: 10px;
}

.inventory-title-block {
  min-width: 0;
}

.inventory-title-block strong,
.inventory-title-block small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-summary-metrics {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: min(100%, 520px);
}

.inventory-stock-pill {
  align-items: flex-end;
  background: #eef5f3;
  border-radius: 7px;
  color: var(--accent-dark);
  display: grid;
  gap: 2px;
  min-width: 108px;
  padding: 6px 8px;
  text-align: right;
}

.inventory-stock-pill span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.inventory-stock-pill b {
  font-size: 13px;
  font-weight: 900;
}

.inventory-stock-pill.is-danger {
  background: #f8e8e8;
  color: var(--danger);
}

.inventory-mini-pill {
  align-items: flex-end;
  background: #f7f3ed;
  border: 1px solid rgba(33, 28, 23, 0.06);
  border-radius: 7px;
  color: var(--ink);
  display: grid;
  gap: 2px;
  min-width: 86px;
  padding: 6px 8px;
  text-align: right;
}

.inventory-mini-pill span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.inventory-mini-pill b {
  font-size: 12px;
  font-weight: 900;
}

.inventory-open-cue {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  justify-content: center;
  min-width: 64px;
  padding: 7px 10px;
}

.inventory-open-cue::after {
  content: "v";
  font-size: 13px;
  line-height: 1;
}

.inventory-card-details[open] .inventory-open-cue::after {
  content: "^";
}

.inventory-edit-form {
  display: grid;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.inventory-grid label {
  min-width: 0;
}

.inventory-grid input,
.inventory-grid select {
  width: 100%;
}

.inventory-movement-panel {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.inventory-movement-panel summary {
  color: var(--accent-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

.inventory-movement-panel summary::-webkit-details-marker {
  display: none;
}

.inventory-movement-form {
  align-items: end;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  margin-top: 12px;
  min-width: 0;
}

.inventory-movement-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.inventory-movement-list > div {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  min-width: 0;
  padding: 9px 10px;
}

.inventory-movement-list span,
.inventory-movement-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-movement-list strong {
  font-size: 13px;
  font-weight: 900;
}

.inventory-movement-list em {
  color: var(--wine);
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.inventory-filters {
  align-items: end;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
}

.inventory-filters label:nth-child(2) {
  min-width: min(240px, 100%);
}

.inventory-filters .primary-btn {
  min-height: 42px;
}

.sort-form {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sort-form p {
  color: var(--muted);
  margin-bottom: 0;
}

.drag-handle {
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: grab;
  font-size: 18px;
  font-weight: 900;
  min-width: 38px;
  user-select: none;
  touch-action: none;
}

.drag-handle:active {
  cursor: grabbing;
}

body.is-dragging-sortable {
  cursor: grabbing;
  user-select: none;
}

.inventory-item.dragging {
  opacity: 0.55;
}

.inventory-item > .drag-handle {
  grid-column: 1;
  grid-row: 1;
}

.inventory-delete-form {
  display: flex;
  justify-content: flex-end;
}

.shopping-layout {
  align-items: start;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.shopping-layout > *,
.shopping-list-panel,
.shopping-list-body > *,
.shopping-side-stack,
.shopping-product-pool {
  min-width: 0;
}

.shopping-side-stack {
  display: grid;
  gap: 14px;
}

.shopping-product-pool {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.shopping-pool-filter {
  align-items: stretch;
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  grid-template-columns: 1fr;
  margin-bottom: 0;
  padding: 12px;
}

.shopping-pool-filter .primary-btn,
.shopping-product-add .ghost-btn {
  width: 100%;
}

.shopping-product-add {
  align-items: end;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
  padding: 12px;
}

.shopping-quick-fill {
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.shopping-quick-fill summary,
.shopping-bulk-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  list-style: none;
}

.shopping-quick-fill summary::-webkit-details-marker,
.shopping-bulk-panel summary::-webkit-details-marker {
  display: none;
}

.shopping-quick-fill summary::after,
.shopping-bulk-panel summary::after {
  color: var(--accent-dark);
  content: " v";
}

.shopping-quick-fill[open] summary::after,
.shopping-bulk-panel[open] summary::after {
  content: " ^";
}

.shopping-category-checks {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  margin-top: 12px;
}

.shopping-category-checks label {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 8px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  max-width: 100%;
  min-height: 42px;
  padding: 8px 10px;
}

.shopping-category-checks input {
  accent-color: var(--accent-dark);
  justify-self: center;
  margin: 0;
}

.shopping-category-checks span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  min-width: 0;
  overflow-wrap: anywhere;
  text-align: left;
}

.shopping-category-checks small {
  background: #f4eee4;
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 5px 7px;
  white-space: nowrap;
}

.shopping-category-checks.compact {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(207, 224, 208, 0.9);
  border-radius: 8px;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  max-height: 184px;
  overflow: auto;
  padding: 10px;
}

.shopping-category-list,
.shopping-list-stack,
.shopping-items-by-category,
.shopping-item-rows {
  display: grid;
  gap: 10px;
}

.shopping-category-card,
.shopping-list-card {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.shopping-category-card summary,
.shopping-list-card summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 12px;
}

.shopping-category-card summary::-webkit-details-marker,
.shopping-list-card summary::-webkit-details-marker {
  display: none;
}

.shopping-category-card summary strong,
.shopping-list-card summary strong {
  color: var(--ink);
  display: block;
  font-size: 15px;
  font-weight: 900;
}

.shopping-category-card summary span,
.shopping-list-card summary span {
  background: #f0e9df;
  border-radius: 999px;
  color: var(--accent-dark);
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
}

.shopping-list-card summary small {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-top: 2px;
}

.shopping-product-tags {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 5px;
  max-height: 210px;
  overflow: auto;
  padding: 10px;
}

.shopping-product-tags span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  padding: 7px 9px;
  word-break: break-word;
}

.shopping-list-filter {
  grid-template-columns: minmax(150px, 220px) auto auto;
  margin-bottom: 14px;
}

.shopping-list-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding: 12px;
}

.shopping-bulk-panel {
  background: #f4f8f4;
  border: 1px solid #cfe0d0;
  border-radius: 8px;
  padding: 12px;
}

.shopping-bulk-panel summary {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.shopping-bulk-panel summary strong {
  color: #235d31;
  font-size: 14px;
}

.shopping-bulk-panel summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.shopping-bulk-form {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 0.85fr) auto;
  margin-top: 12px;
}

.shopping-bulk-form > div,
.shopping-bulk-form label {
  min-width: 0;
}

.shopping-bulk-form > div,
.shopping-bulk-form > label {
  background: #fff;
  border: 1px solid rgba(207, 224, 208, 0.9);
  border-radius: 8px;
  padding: 10px;
}

.shopping-bulk-form > div > strong {
  color: var(--ink);
  display: block;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 2px;
}

.shopping-bulk-form select[multiple] {
  min-height: 146px;
}

.shopping-bulk-form .primary-btn {
  min-height: 42px;
  white-space: nowrap;
}

.shopping-list-meta-form,
.shopping-item-add-form {
  align-items: end;
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  padding: 12px;
}

.shopping-item-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.shopping-item-group summary {
  align-items: center;
  background: #211c17;
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
  padding: 10px 12px;
}

.shopping-item-group summary::-webkit-details-marker {
  display: none;
}

.shopping-item-group summary::after {
  color: rgba(255, 255, 255, 0.82);
  content: "v";
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
}

.shopping-item-group[open] summary::after {
  content: "^";
}

.shopping-item-group summary strong {
  color: #fff;
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 900;
  min-width: 0;
  overflow-wrap: anywhere;
}

.shopping-item-group summary span {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
  white-space: nowrap;
}

.shopping-item-rows {
  padding: 10px;
}

.shopping-item-edit-card {
  align-items: start;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 58px;
  padding: 9px;
}

.shopping-item-row {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: 58px 76px minmax(150px, 1.15fr) minmax(130px, 0.9fr) 86px 76px minmax(120px, 1fr) auto;
  min-width: 0;
}

.shopping-item-row input,
.shopping-item-row select {
  min-width: 0;
  width: 100%;
}

.shopping-item-row.is-saving {
  opacity: 0.72;
  pointer-events: none;
}

.shopping-item-row.is-saved .primary-btn {
  background: #23612f;
}

.shopping-item-row.is-error .primary-btn {
  background: #9b2d24;
}

.shopping-check {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  display: flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  height: 40px;
  justify-content: center;
  padding: 0 8px;
}

.shopping-check-available {
  background: #eef8ef;
  border-color: #cfe5d1;
  color: #23612f;
}

.shopping-check-available:has(input:checked) {
  background: #dff1e1;
  border-color: #78b47e;
  color: #174d22;
}

.shopping-item-delete {
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.shopping-item-delete .delete-btn {
  min-height: 40px;
  padding-left: 12px;
  padding-right: 12px;
}

.shopping-list-actions {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 12px;
}

.staff-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.staff-layout > .form-panel {
  grid-column: 1;
}

.staff-layout > .list-panel {
  grid-column: 2;
  grid-row: 1 / span 3;
}

.expense-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.income-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.income-form-stack {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 20px;
}

.income-form-stack .form-panel {
  position: static;
}

.income-payment-panel {
  background: #fff8ed;
}

.staff-filters {
  grid-template-columns: minmax(180px, 1fr) 145px 155px auto;
}

.expense-filters {
  grid-template-columns: minmax(170px, 1.2fr) 145px 145px 145px auto;
}

.expense-total-card span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.expense-total-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.income-filters {
  grid-template-columns: 150px 150px auto;
}

.staff-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.staff-total-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f3;
  color: var(--accent-dark);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
}

.staff-total-card span {
  display: grid;
  gap: 2px;
  font-weight: 800;
}

.staff-total-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.staff-total-card strong {
  font-size: 24px;
}

.staff-total-card-accent {
  background: #fff8ed;
  color: var(--wine);
}

.staff-total-card-warm {
  background: #fff3dc;
  color: #8a5208;
}

.staff-advance-balance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.staff-advance-balance-list span {
  border: 1px solid #eadfce;
  border-radius: 999px;
  background: #fff8ed;
  color: var(--wine);
  font-size: 13px;
  font-weight: 800;
  padding: 7px 10px;
}

.staff-advance-balance-list b {
  color: var(--text);
}

.staff-advance-detail-list {
  display: grid;
  gap: 8px;
  margin: -4px 0 16px;
}

.staff-advance-detail-list span {
  align-items: center;
  background: #fbf6ee;
  border: 1px solid #eadfce;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(130px, 1fr) auto auto auto;
  padding: 9px 11px;
}

.staff-advance-detail-list b {
  color: var(--text);
}

.staff-advance-detail-list small {
  color: var(--muted);
  font-weight: 800;
}

.staff-advance-detail-list strong {
  color: var(--wine);
  font-size: 13px;
}

@media (max-width: 720px) {
  .staff-advance-detail-list span {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }
}

.staff-advance-preview,
.staff-payment-breakdown {
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff8ed;
  color: var(--text);
  display: grid;
  gap: 4px;
  padding: 10px 12px;
}

.staff-advance-preview span,
.staff-payment-breakdown span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.staff-advance-preview strong,
.staff-payment-breakdown strong {
  color: var(--accent-dark);
  font-size: 17px;
  font-weight: 900;
}

.staff-advance-preview small,
.staff-payment-breakdown small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.muted-form-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: -4px;
}

.staff-travel-form {
  gap: 10px;
}

.staff-travel-mode {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 8px;
}

.staff-travel-mode label {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
}

.staff-travel-mode label:has(input:checked) {
  border-color: #d6b98d;
  background: #fff3dc;
  color: var(--accent-dark);
}

.staff-travel-mode input {
  width: auto;
}

.staff-travel-rows {
  display: grid;
  gap: 8px;
}

.staff-travel-row {
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) 120px 54px;
  padding: 8px;
}

.staff-travel-row label {
  margin: 0;
}

.staff-travel-remove {
  min-height: 39px;
  padding: 8px;
}

.staff-shared-travel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.staff-shared-travel label,
.staff-shared-field {
  margin: 0;
}

.staff-shared-label {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-shared-employee-list {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 6px;
}

.staff-shared-employee {
  align-items: center;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 7px 8px;
}

.staff-shared-employee input {
  width: auto;
}

.staff-travel-total {
  align-items: center;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff8ed;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.staff-travel-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.staff-travel-total strong {
  color: var(--wine);
  font-size: 18px;
  font-weight: 900;
}

.staff-deduct-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eef5f3;
  color: var(--accent-dark);
  display: flex;
  font-weight: 900;
  gap: 8px;
  justify-content: flex-start;
  padding: 10px 12px;
}

.staff-deduct-toggle input {
  width: auto;
}

.staff-list {
  display: grid;
  gap: 8px;
}

.staff-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.staff-row[open] {
  box-shadow: 0 14px 28px rgba(58, 42, 32, 0.08);
}

.staff-row-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 92px minmax(150px, 0.6fr) 74px;
  gap: 10px;
  list-style: none;
  padding: 10px 12px;
}

.staff-row-summary::-webkit-details-marker {
  display: none;
}

.staff-row-person,
.staff-row-amount {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.staff-row-person strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-row-person small,
.staff-row-amount small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.staff-row-type {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 6px;
  justify-self: start;
  padding: 5px 9px;
  white-space: nowrap;
}

.staff-row-type.is-payment {
  background: #e4f2ee;
  color: var(--accent-dark);
}

.staff-row-type.is-advance {
  background: #f8e8e9;
  color: var(--wine);
}

.staff-row-type.is-travel {
  background: #fff3dc;
  color: #8a5208;
}

.staff-row-type small {
  border-left: 1px solid currentColor;
  font-size: 10px;
  line-height: 1;
  opacity: 0.82;
  padding-left: 6px;
  text-transform: uppercase;
}

.staff-row-amount {
  justify-items: end;
  text-align: right;
}

.staff-row-amount strong {
  color: var(--accent-dark);
  font-size: 16px;
}

.staff-row-toggle {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  justify-self: end;
  padding: 5px 9px;
}

.staff-row[open] .staff-row-toggle {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.expense-row-summary {
  grid-template-columns: minmax(220px, 1fr) 82px minmax(140px, 0.5fr) 74px;
}

.staff-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 12px;
}

.staff-edit-form {
  display: grid;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.staff-grid {
  display: grid;
  grid-template-columns: minmax(135px, 0.8fr) minmax(170px, 1.2fr) 145px 145px;
  gap: 10px;
  align-items: end;
}

.expense-grid {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1.2fr) 150px 130px;
  gap: 10px;
  align-items: end;
}

.income-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
  align-items: end;
}

.income-total-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.income-total-grid .staff-total-card {
  align-items: flex-start;
  flex-direction: column;
  margin-bottom: 0;
}

.income-total-grid .staff-total-card strong {
  font-size: 20px;
}

.income-accordion-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.income-section-head {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 18px 0 12px;
  padding-top: 16px;
}

.income-section-head h2 {
  margin: 0;
}

.income-section-head p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 2px 0 0;
}

.income-section-head strong {
  color: var(--accent-dark);
  font-size: 22px;
  white-space: nowrap;
}

.income-accordion-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.income-accordion-item summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  padding: 14px 16px;
}

.income-accordion-item summary::-webkit-details-marker {
  display: none;
}

.income-accordion-item summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
  margin-left: 4px;
}

.income-accordion-item[open] summary::after {
  content: "⌃";
}

.income-accordion-item summary span {
  font-weight: 900;
}

.income-accordion-item summary strong {
  color: var(--accent-dark);
  font-size: 22px;
  margin-left: auto;
}

.income-accordion-item .staff-item {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
}

.pagination-panel {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
}

.pagination-panel p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  text-align: center;
}

.pagination-panel p strong {
  color: var(--text);
  display: block;
  margin-top: 2px;
}

.pagination-panel a,
.pagination-disabled {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 11px;
  text-decoration: none;
}

.pagination-panel a:hover {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.pagination-disabled {
  color: #b9aea0;
  cursor: not-allowed;
}

.menu-admin-layout {
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.stack-form {
  display: grid;
  gap: 14px;
}

.panel-separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 8px 0;
  width: 100%;
}

.admin-menu-list {
  display: grid;
  gap: 12px;
}

.admin-menu-category {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 12px;
}

.admin-menu-category summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
  margin-bottom: 10px;
}

.admin-menu-category-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) 46px 46px 110px;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.category-name-fields {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-menu-items {
  display: grid;
  gap: 8px;
}

.admin-menu-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.admin-menu-item[open] {
  border-color: rgba(111, 31, 47, 0.22);
  box-shadow: 0 10px 22px rgba(39, 25, 20, 0.08);
}

.admin-menu-item summary::-webkit-details-marker {
  display: none;
}

.admin-menu-item-summary {
  display: grid;
  grid-template-columns: 38px 54px minmax(180px, 1fr) minmax(105px, 145px) minmax(62px, auto) minmax(92px, auto) minmax(52px, auto) 22px;
  gap: 8px;
  align-items: center;
  cursor: pointer;
  list-style: none;
  min-height: 58px;
  padding: 7px 8px;
}

.menu-item-summary-media {
  align-items: center;
  background: #f5f0ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 10px;
  font-weight: 800;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  text-transform: uppercase;
}

.menu-item-summary-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.menu-item-summary-main {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.menu-item-summary-main strong,
.menu-item-summary-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-item-summary-main strong {
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
}

.menu-item-summary-main small,
.menu-item-summary-meta small {
  color: var(--muted);
  font-size: 11px;
}

.menu-item-summary-meta {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 0;
}

.menu-item-summary-meta b {
  color: var(--accent-dark);
  font-size: 13px;
  white-space: nowrap;
}

.menu-item-summary-price-editor {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1fr) 30px;
  max-width: 150px;
  width: 100%;
}

.menu-inline-price-input {
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  height: 32px;
  min-width: 0;
  padding: 4px 6px;
  text-align: right;
  width: 100%;
}

.menu-inline-price-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(35, 128, 101, 0.12);
  outline: 0;
}

.menu-inline-price-save {
  align-items: center;
  border: 1px solid rgba(35, 128, 101, 0.35);
  border-radius: 6px;
  background: #edf7f3;
  color: var(--accent-dark);
  cursor: pointer;
  display: inline-flex;
  font-size: 15px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 30px;
}

.menu-inline-price-save:hover {
  background: #dff1ea;
}

.menu-inline-price-save.is-saving {
  cursor: wait;
  opacity: 0.72;
}

.menu-inline-price-save.is-success {
  background: #dff3e7;
  border-color: #74b78e;
  color: #1f7a46;
}

.menu-inline-price-save.is-error {
  background: #f8e8e8;
  border-color: #d89a9a;
  color: #a62f2f;
}

.menu-item-summary-state {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.15;
  padding: 6px 8px;
  text-align: center;
}

.menu-item-summary-state.is-active {
  background: #e8f6ee;
  color: #1f7a46;
}

.menu-item-summary-state.is-passive {
  background: #f4e7e7;
  color: #9d2f2f;
}

.menu-item-summary-state.is-chef {
  background: rgba(196, 131, 43, 0.15);
  color: #8b5516;
}

.menu-item-summary-arrow::before {
  border-bottom: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  content: "";
  display: block;
  height: 8px;
  margin: 0 auto;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
  width: 8px;
}

.admin-menu-item[open] .menu-item-summary-arrow::before {
  transform: rotate(225deg);
}

.admin-menu-item-body {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 8px;
  padding: 10px;
}

.admin-menu-item-form {
  display: grid;
  grid-template-columns: 82px minmax(240px, 1fr) minmax(180px, 240px);
  gap: 10px;
  align-items: start;
}

.admin-menu-item-head {
  display: grid;
  grid-template-columns: 38px minmax(320px, 1fr) minmax(180px, 240px) 72px;
  gap: 8px;
  align-items: center;
  border-radius: 8px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  margin-bottom: 6px;
  padding: 9px 8px;
}

.menu-item-media-cell {
  min-width: 0;
}

.menu-item-main-fields {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.menu-item-main-fields textarea {
  min-height: 42px;
  resize: vertical;
}

.menu-item-meta-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

.menu-item-meta-fields .compact-check {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 40px;
}

.menu-item-meta-fields label {
  font-size: 12px;
  position: relative;
}

.menu-item-meta-fields input {
  padding: 9px 10px;
}

.menu-image-field {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.menu-image-field img,
.menu-image-preview img {
  border-radius: 8px;
  height: 52px;
  object-fit: cover;
  width: 52px;
}

.menu-image-preview {
  border: 0;
  background: transparent;
  cursor: zoom-in;
  justify-self: start;
  padding: 0;
}

.menu-image-field input[type="file"] {
  padding: 8px;
}

.chef-recommendation-image-field .inline-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chef-recommendation-preview[hidden] {
  display: none;
}

.menu-item-actions {
  display: grid;
  gap: 6px;
  align-content: start;
}

.menu-item-actions form {
  margin: 0;
}

.menu-item-actions .primary-btn,
.menu-item-actions .delete-btn {
  min-height: 38px;
  padding: 8px 9px;
  width: 100%;
}

.menu-item-actions .primary-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.menu-item-save-status {
  display: block;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  min-height: 14px;
  text-align: center;
}

.menu-item-save-status.is-saving {
  color: var(--muted);
}

.menu-item-save-status.is-success {
  color: #1f7a46;
}

.menu-item-save-status.is-error {
  color: #a62f2f;
}

.admin-menu-item.is-saving {
  border-color: rgba(35, 128, 101, 0.35);
}

.menu-image-path {
  font-size: 13px;
}

.image-picker-dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(36, 29, 25, 0.28);
  max-width: min(920px, calc(100% - 28px));
  padding: 18px;
  width: 920px;
}

.image-picker-dialog::backdrop {
  background: rgba(36, 29, 25, 0.38);
}

.image-picker-head {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.image-picker-head h2 {
  margin-bottom: 4px;
}

.image-picker-head p {
  color: var(--muted);
  margin-bottom: 0;
}

.image-picker-grid {
  display: grid;
  gap: 10px;
  max-height: 65vh;
  overflow: auto;
}

.image-manager-mini {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.image-manager-mini .image-upload-form {
  grid-template-columns: minmax(150px, 190px) minmax(220px, 1fr) auto;
  align-items: end;
}

.image-picker-folder {
  display: grid;
  gap: 8px;
}

.image-picker-folder h3 {
  margin: 8px 0 0;
}

.image-picker-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.image-picker-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 7px;
  padding: 8px;
}

.image-picker-item {
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: grid;
  gap: 7px;
  padding: 0;
  text-align: left;
}

.image-picker-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 111, 95, 0.14);
}

.image-picker-item img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.image-picker-item span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.image-picker-card form,
.image-card form {
  margin: 0;
}

.image-picker-card .delete-btn,
.image-card .delete-btn {
  width: 100%;
}

.image-lightbox {
  border: 0;
  border-radius: 8px;
  background: #111;
  color: #fff;
  max-width: min(920px, calc(100% - 28px));
  padding: 16px;
  position: relative;
}

.image-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.image-lightbox img {
  display: block;
  max-height: 78vh;
  max-width: 100%;
  object-fit: contain;
}

.image-lightbox strong {
  display: block;
  margin-top: 10px;
  text-align: center;
}

.image-lightbox-close {
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #111;
  cursor: pointer;
  font-weight: 900;
  padding: 9px 12px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.settings-group {
  margin-top: 12px;
}

.image-manager-panel {
  margin-bottom: 18px;
  padding: 20px;
}

.image-upload-form {
  display: grid;
  gap: 14px;
}

.image-folder-form {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.folder-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.folder-tabs a,
.folder-tab-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
  padding: 9px 11px;
  text-decoration: none;
}

.folder-tabs a.active,
.folder-tab-wrap.active,
.folder-tabs a:hover {
  background: #eef5f3;
  color: var(--accent-dark);
}

.folder-tab-wrap {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  padding: 0;
}

.folder-tab-wrap a {
  border: 0;
  background: transparent;
}

.folder-tab-wrap form {
  margin: 0;
}

.folder-tab-wrap button {
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  color: var(--wine);
  cursor: pointer;
  font-weight: 900;
  padding: 9px 10px;
}

.drop-zone {
  align-items: center;
  border: 2px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: grid;
  justify-items: center;
  min-height: 180px;
  padding: 24px;
  text-align: center;
}

.drop-zone strong {
  color: var(--ink);
  font-size: 22px;
}

.drop-zone input {
  max-width: 320px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.image-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  display: grid;
  gap: 8px;
  padding: 10px;
}

.image-card img {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  object-fit: cover;
  width: 100%;
}

.image-card strong {
  overflow-wrap: anywhere;
}

.inline-handle {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 38px;
  vertical-align: middle;
}

.admin-menu-category > summary .inline-handle {
  margin-right: 8px;
  min-width: 38px;
}

.sortable-list.is-sorting > [draggable="true"] {
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sortable-list.is-sorting {
  outline: 2px dashed rgba(111, 31, 47, 0.22);
  outline-offset: 4px;
}

.admin-menu-category.dragging,
.admin-menu-item.dragging {
  opacity: 0.62;
  transform: scale(0.992);
  border-color: rgba(111, 31, 47, 0.45);
  background: #fff7ec;
  box-shadow: 0 14px 28px rgba(39, 25, 20, 0.14);
}

.admin-menu-items.is-sorting .admin-menu-item:not(.dragging) {
  background: #fffdfa;
}

.admin-category-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 62px;
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 10px;
}

.admin-category-form {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(260px, 1.5fr) 46px 46px 90px;
  gap: 8px;
  align-items: center;
}

.category-image-field {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-file-button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
}

.inline-file-button:hover {
  background: #eef5f3;
  color: var(--accent-dark);
}

.inline-file-button input {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.admin-category-row.dragging {
  opacity: 0.55;
}

.compact-table {
  display: grid;
  gap: 8px;
}

.compact-row,
.compact-row-form {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) 70px 150px;
  gap: 8px;
  align-items: center;
}

.compact-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 8px;
}

.compact-row-form {
  display: contents;
}

.compact-head {
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 10px;
}

.compact-row input {
  padding: 9px 10px;
}

.compact-check {
  display: flex;
  justify-content: center;
}

.compact-check input {
  height: 18px;
  width: 18px;
}

.compact-actions {
  display: flex;
  gap: 6px;
}

.compact-actions form {
  margin: 0;
}

.compact-actions .primary-btn,
.compact-actions .delete-btn {
  padding: 9px 10px;
}

.column-list {
  display: grid;
  gap: 8px;
}

.column-list-head,
.column-list-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(130px, 0.8fr) minmax(130px, 0.8fr) 90px 170px;
  gap: 12px;
  align-items: center;
}

.column-list-head {
  border-radius: 8px;
  background: #eef5f3;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 900;
  padding: 11px 12px;
}

.column-list-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  padding: 12px;
}

.employee-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdfa;
  overflow: hidden;
}

.employee-row[open] {
  box-shadow: 0 10px 24px rgba(31, 24, 20, 0.08);
}

.employee-row-summary {
  border: 0;
  border-radius: 0;
  cursor: pointer;
  list-style: none;
}

.employee-row-summary::-webkit-details-marker {
  display: none;
}

.employee-row-toggle {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  justify-content: center;
  min-height: 31px;
  padding: 5px 10px;
}

.employee-row[open] .employee-row-toggle {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.employee-row-body {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.employee-edit-form {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.8fr) minmax(140px, 0.8fr) minmax(130px, auto);
}

.employee-sync-check {
  grid-column: 1 / -1;
}

.employee-edit-actions {
  grid-column: 1 / -1;
}

.employee-delete-form {
  margin: 0;
}

.status-pill {
  border-radius: 999px;
  background: #f8e8e9;
  color: var(--wine);
  display: inline-flex;
  font-size: 13px;
  font-weight: 900;
  padding: 6px 10px;
}

.status-pill.active {
  background: #e4f2ee;
  color: var(--accent-dark);
}

.status-pill.neutral {
  background: #f3eadf;
  color: var(--ink);
}

.status-pill.warning {
  background: #fff0e6;
  color: #a54812;
}

@media (max-width: 900px) {
  .user-control-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .user-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .user-summary-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .user-control-summary {
    grid-template-columns: 1fr;
  }

  .user-list-filters input,
  .user-list-filters button {
    flex: 1 1 100%;
  }
}

.list-panel,
.form-panel,
.stat-card,
.user-item,
.inventory-item,
.staff-item {
  min-width: 0;
}

.reservation-item h3,
.meta,
.note {
  overflow-wrap: anywhere;
}

.empty-state,
.alert {
  border-radius: 8px;
  padding: 16px;
}

.empty-state {
  border: 1px dashed var(--line);
  color: var(--muted);
  padding: 28px;
  text-align: center;
}

.alert-success {
  background: #e4f2ee;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.alert-error {
  background: #f8e8e9;
  color: var(--wine);
  margin-bottom: 16px;
}

.error-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

@media (max-width: 860px) {
  .suspicious-report-grid,
  .suspicious-event-card {
    grid-template-columns: 1fr;
  }

  .suspicious-event-card aside {
    justify-items: start;
    text-align: left;
  }

  .reservation-fast-head,
  .reservation-section-head,
  .reservation-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-date-presets,
  .reservation-scope-tabs {
    width: 100%;
  }

  .reservation-scope-tabs .ghost-btn {
    margin-left: 0;
    width: 100%;
  }

  .reservation-fast-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fast-name-field,
  .fast-note-field,
  .fast-save-btn {
    grid-column: 1 / -1;
  }

  .reservation-row {
    grid-template-columns: 1fr;
  }

  .reservation-row-main {
    grid-template-columns: 64px minmax(0, 1fr) 70px;
  }

  .reservation-status-pill {
    grid-column: 2 / -1;
    justify-self: start;
    min-height: 26px;
  }

  .reservation-row-actions {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .reservation-row-actions > *,
  .reservation-row-actions .status-select,
  .reservation-row-actions .primary-btn,
  .reservation-row-actions .ghost-btn,
  .reservation-row-actions .delete-btn,
  .reservation-row-actions .whatsapp-confirm-btn {
    width: 100%;
  }

  .reservation-dialog {
    max-height: calc(100vh - 20px);
  }

  .reservation-dialog-card {
    max-height: calc(100vh - 20px);
    overflow: auto;
  }

  .reservation-dialog-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    width: min(100% - 24px, 720px);
    padding: 22px 0;
  }

  .topbar,
  .list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-shell,
  .layout,
  .filters,
  .public-hero,
  .contact-grid,
  .public-background-grid {
    grid-template-columns: 1fr;
  }

  .public-bg-panel.has-public-bg {
    min-height: calc(100dvh - 130px);
    padding: 28px 16px;
  }

  .public-bg-panel.has-public-bg .public-hero {
    min-height: calc(100dvh - 190px);
  }

  .admin-sidebar {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    height: auto;
    position: static;
  }

  .admin-shell:not(.waiter-shell) .admin-sidebar {
    align-items: center;
    box-shadow: 0 10px 26px rgba(36, 29, 25, 0.08);
    display: grid;
    gap: 8px 10px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 9px 12px;
    position: sticky;
    top: 0;
    z-index: 35;
  }

  .admin-shell:not(.waiter-shell) .admin-brand {
    gap: 7px;
    grid-template-columns: 36px auto;
    justify-items: start;
    padding: 0;
    text-align: left;
  }

  .admin-shell:not(.waiter-shell) .admin-brand img {
    width: 36px;
  }

  .admin-shell:not(.waiter-shell) .admin-brand strong {
    font-size: 16px;
  }

  .admin-shell:not(.waiter-shell) .admin-mobile-menu-toggle {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #1f1714;
    color: #fff;
    cursor: pointer;
    display: flex;
    font-weight: 900;
    gap: 10px;
    justify-content: space-between;
    min-height: 42px;
    min-width: 0;
    padding: 9px 11px;
    width: 100%;
  }

  .admin-mobile-menu-toggle span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-mobile-menu-toggle strong {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    flex: 0 0 auto;
    font-size: 12px;
    padding: 4px 8px;
  }

  .admin-shell:not(.waiter-shell) .admin-nav,
  .admin-shell:not(.waiter-shell) .admin-customer-link,
  .admin-shell:not(.waiter-shell) .admin-logout {
    display: none;
  }

  .admin-shell:not(.waiter-shell) .admin-sidebar.mobile-menu-open .admin-nav {
    display: grid;
    gap: 6px;
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    max-height: calc(100dvh - 138px);
    overflow-y: auto;
    padding-top: 6px;
  }

  .admin-shell:not(.waiter-shell) .admin-sidebar.mobile-menu-open .admin-customer-link,
  .admin-shell:not(.waiter-shell) .admin-sidebar.mobile-menu-open .admin-logout {
    display: block;
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .admin-shell:not(.waiter-shell) .nav-group a {
    margin-left: 0;
  }

  .admin-shell.waiter-shell .admin-sidebar {
    border-bottom: 0;
    border-right: 1px solid var(--line);
    height: 100dvh;
    position: fixed;
  }

  .admin-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-content {
    padding: 20px 12px;
    width: 100%;
  }

  .privacy-mode-toggle {
    bottom: 72px;
    left: 12px;
    right: auto;
    top: auto;
  }

  .staff-layout > .form-panel,
  .staff-layout > .list-panel {
    grid-column: auto;
    grid-row: auto;
  }

  .notification-widget {
    bottom: 12px;
    right: 12px;
    width: 44px;
  }

  .action-approval-widget {
    bottom: 60px;
    right: 12px;
    width: 40px;
  }

  .notification-toggle {
    height: 44px;
    width: 44px;
  }

  .action-approval-toggle {
    height: 40px;
    max-width: 40px;
    width: 40px;
  }

  .action-approval-toggle svg {
    height: 18px;
    width: 18px;
  }

  .notification-panel {
    width: min(340px, calc(100vw - 24px));
  }

  .action-approval-panel {
    width: min(360px, calc(100vw - 24px));
  }

  .staff-announcement-card {
    padding: 18px;
  }

  .staff-announcement-layout,
  .staff-announcement-item {
    grid-template-columns: 1fr;
  }

  .firebase-status-grid,
  .firebase-log-entry {
    grid-template-columns: 1fr;
  }

  .staff-announcement-stats {
    justify-content: stretch;
  }

  .staff-announcement-stats .today-card {
    flex: 1 1 140px;
  }

  .staff-announcement-item span {
    justify-self: start;
  }

  .staff-announcement-badges {
    align-items: start;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .staff-announcement-read-grid {
    grid-template-columns: 1fr;
  }

  .quick-template-grid,
  .staff-announcement-options,
  .staff-template-grid,
  .waiter-check-grid {
    grid-template-columns: 1fr;
  }

  .staff-announcement-modal-actions .primary-btn,
  .staff-announcement-modal-actions .ghost-btn {
    width: 100%;
  }

  .print-station-head {
    display: grid;
  }

  .print-station-actions {
    justify-content: stretch;
  }

  .print-station-actions .primary-btn,
  .print-station-actions .ghost-btn {
    width: 100%;
  }

  .print-station-grid {
    grid-template-columns: 1fr;
  }

  .admin-page-head {
    align-items: stretch;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    grid-template-columns: 1fr;
  }

  .public-hero {
    min-height: auto;
    gap: 22px;
  }

  .public-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .public-menu-search {
    grid-template-columns: 1fr;
  }

  .public-menu-search span {
    padding-bottom: 0;
  }

  .public-tab-button {
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
    width: 100%;
  }

  .contact-map {
    height: 300px;
  }

  .contact-map-feature {
    height: 380px;
  }

  .contact-map-card {
    bottom: 12px;
    left: 12px;
    max-width: calc(100% - 24px);
    padding: 13px;
  }

  .contact-socials {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-copy h1 {
    font-size: 38px;
  }

  .public-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .form-panel {
    position: static;
  }

  .income-form-stack {
    position: static;
  }

  .income-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .reservation-item,
  .item-actions,
  .user-item,
  .inventory-item {
    flex-direction: column;
  }

  .reservation-card-top {
    align-items: stretch;
    flex-direction: column;
  }

  .item-actions {
    align-items: stretch;
    width: 100%;
  }

  .reservation-edit-form {
    min-width: 0;
    position: static;
    width: 100%;
  }

  .item-actions .primary-btn,
  .item-actions .delete-btn,
  .item-actions form,
  .status-select {
    width: 100%;
  }

  .inventory-grid {
    grid-template-columns: 1fr;
  }

  .inventory-item {
    grid-template-columns: 1fr;
  }

  .inventory-item > .drag-handle,
  .inventory-card-details {
    grid-column: 1;
  }

  .inventory-item > .drag-handle {
    min-height: 38px;
  }

  .inventory-card-head {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-summary-metrics {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .inventory-stock-pill,
  .inventory-mini-pill,
  .inventory-open-cue {
    flex: 1 1 112px;
  }

  .inventory-stock-pill {
    align-items: start;
    text-align: left;
  }

  .inventory-movement-form,
  .inventory-movement-list > div {
    grid-template-columns: 1fr;
  }

  .inventory-movement-list em {
    text-align: left;
  }

  .shopping-layout,
  .shopping-bulk-form,
  .shopping-item-edit-card,
  .shopping-product-add,
  .shopping-pool-filter,
  .shopping-list-filter,
  .shopping-item-row {
    grid-template-columns: 1fr;
  }

  .shopping-list-panel {
    order: -1;
  }

  .shopping-side-stack {
    order: 2;
  }

  .shopping-list-panel > .list-header,
  .shopping-list-panel > .filters {
    padding-left: 10px;
    padding-right: 10px;
  }

  .shopping-list-card > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopping-list-body {
    gap: 10px;
    padding: 10px;
  }

  .shopping-list-meta-form,
  .shopping-item-add-form {
    gap: 8px;
    padding: 10px;
  }

  .shopping-bulk-panel summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .shopping-category-checks.compact {
    max-height: 230px;
  }

  .shopping-item-delete,
  .shopping-item-delete .delete-btn {
    width: 100%;
  }

  .shopping-item-group summary {
    gap: 7px;
    padding: 11px 10px;
  }

  .shopping-item-group summary span {
    font-size: 10px;
    padding: 5px 7px;
  }

  .shopping-item-rows {
    gap: 8px;
    padding: 8px;
  }

  .shopping-item-edit-card {
    gap: 8px;
    padding: 8px;
  }

  .shopping-item-row {
    align-items: stretch;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shopping-item-row > label:not(.shopping-check) {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
  }

  .shopping-item-row > label:nth-of-type(3),
  .shopping-item-row > label:nth-of-type(4),
  .shopping-item-row > label:nth-of-type(7),
  .shopping-item-row > button {
    grid-column: 1 / -1;
  }

  .shopping-item-row input,
  .shopping-item-row select {
    font-size: 16px;
    min-height: 44px;
  }

  .shopping-check {
    font-size: 14px;
    height: 48px;
  }

  .shopping-check input {
    height: 18px;
    width: 18px;
  }

  .shopping-item-row .primary-btn,
  .shopping-item-delete .delete-btn {
    min-height: 46px;
  }

  .shopping-list-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: rgba(255, 253, 250, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 -8px 22px rgba(37, 28, 19, 0.08);
  }

  .shopping-list-actions .primary-btn,
  .shopping-list-actions .ghost-btn,
  .shopping-list-actions .delete-btn,
  .shopping-list-actions form {
    width: 100%;
  }

  .shopping-list-actions form {
    grid-column: 1 / -1;
  }

  .staff-filters,
  .expense-filters,
  .income-filters,
  .staff-total-grid,
  .staff-row-summary,
  .staff-travel-mode,
  .staff-travel-row,
  .staff-shared-employee-list,
  .staff-grid,
  .expense-grid,
  .income-grid,
  .income-total-grid,
  .image-folder-form,
  .image-manager-mini .image-upload-form,
  .admin-menu-category-form,
  .admin-menu-item-head,
  .admin-menu-item-form,
  .admin-menu-item-body,
  .menu-item-meta-fields,
  .admin-category-row,
  .admin-category-form,
  .compact-row,
  .compact-row-form,
  .column-list-head,
  .column-list-row,
  .qz-printer-grid,
  .qz-signing-grid,
  .print-settings-grid,
  .current-account-filters,
  .current-account-summary,
  .current-account-overview,
  .current-account-actions-grid,
  .current-account-entry-card,
  .current-account-entry-edit,
  .current-account-order-card summary,
  .current-account-order-items > div,
  .current-account-row,
  .customer-account-form,
  .customer-account-entry-form,
  .customer-account-entry,
  .table-area-edit,
  .table-row,
  .table-area-form,
  .table-row-form,
  .table-order-item,
  .table-order-quantity {
    grid-template-columns: 1fr;
  }

  .compact-row-form {
    display: grid;
  }

  .compact-head,
  .column-list-head,
  .admin-menu-item-head,
  .current-account-head {
    display: none;
  }

  .compact-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .compact-actions .primary-btn,
  .compact-actions .delete-btn,
  .compact-actions form {
    width: 100%;
  }

  .employee-row-body,
  .employee-edit-form {
    grid-template-columns: 1fr;
  }

  .employee-delete-form,
  .employee-delete-form .delete-btn {
    width: 100%;
  }

  .admin-menu-item-summary {
    grid-template-columns: 38px 48px minmax(0, 1fr) 22px;
  }

  .menu-item-summary-meta,
  .menu-item-summary-state {
    grid-column: 3 / 4;
    justify-self: start;
  }

  .menu-item-summary-state {
    margin-top: 4px;
  }

  .menu-item-summary-arrow {
    grid-column: 4;
    grid-row: 1 / span 3;
  }

  .staff-total-card,
  .staff-item {
    align-items: stretch;
    flex-direction: column;
  }

  .inventory-filters,
  .sort-form {
    grid-template-columns: 1fr;
  }

  .sort-form {
    align-items: stretch;
    flex-direction: column;
  }

  .drag-handle {
    min-height: 42px;
    width: 100%;
  }
}

@media (max-width: 520px) {
  .reservation-fast-panel,
  .reservation-pending-panel,
  .reservation-list-panel {
    padding: 14px;
  }

  .reservation-fast-form {
    grid-template-columns: 1fr;
  }

  .reservation-row-main {
    align-items: start;
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .reservation-row-time {
    font-size: 15px;
    min-height: 36px;
  }

  .reservation-row-party,
  .reservation-status-pill {
    justify-self: start;
  }

  .reservation-row-party {
    grid-column: 2;
    grid-row: 2;
  }

  .reservation-status-pill {
    grid-column: 2;
    grid-row: 3;
  }

  .reservation-row-actions {
    grid-template-columns: 1fr;
  }

  .reservation-toast {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .waiter-panel-brand {
    left: auto;
    padding: 7px 10px;
    right: 12px;
    transform: none;
  }

  .waiter-panel-brand img {
    height: 28px;
  }

  .waiter-panel-brand .waiter-brand-name {
    display: none;
  }

  .waiter-panel-brand .waiter-user-name {
    display: inline-flex;
    font-size: 12px;
    max-width: 118px;
    min-height: 28px;
    padding-left: 7px;
  }

  .table-page-eyebrow .active-user-pill {
    display: none;
  }

  .login-brand img {
    max-height: 78px;
    max-width: min(210px, 74%);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .item-main {
    flex-direction: column;
  }

  .time-badge {
    width: 68px;
  }

  .public-shell {
    width: min(100% - 20px, 420px);
    padding: 18px 0;
  }

  .public-tabs {
    gap: 6px;
  }

  .public-tab-button {
    font-size: 14px;
  }

  .public-logo-wrap {
    margin-bottom: 4px;
  }

  .public-logo {
    width: min(95px, 32vw);
  }

  .public-cart-button {
    right: 10px;
    top: 10px;
  }

  .public-account-button {
    right: 10px;
    top: 62px;
  }

  .public-whatsapp-button {
    bottom: 12px;
    min-height: 48px;
    padding: 0 14px;
    right: 12px;
  }

  .cart-toast {
    left: 10px;
    right: 10px;
    top: 62px;
    text-align: center;
  }

  .public-order-prompt {
    grid-template-columns: 1fr;
  }

  .public-order-prompt,
  .public-service-panel {
    padding: 12px;
  }

  .public-help-section {
    padding: 30px 0 18px;
  }

  .public-help-grid {
    grid-template-columns: 1fr;
  }

  .public-help-info {
    padding: 16px;
  }

  .public-service-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-service-actions button {
    min-height: 40px;
  }

  .public-help-form .public-service-actions,
  .public-help-form .public-service-actions-compact {
    grid-template-columns: 1fr;
  }

  .public-help-form .public-service-actions button {
    min-height: 62px;
  }

  .public-cart-dialog {
    padding: 14px;
  }

  .public-cart-item {
    grid-template-columns: 1fr;
  }

  .menu-item {
    align-items: center;
    display: grid;
    column-gap: 10px;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    row-gap: 4px;
  }

  .menu-item:not(:has(.public-menu-image-preview)) {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .menu-item .public-menu-image-preview {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .menu-item-content {
    grid-column: 2;
    min-width: 0;
  }

  .menu-item:not(:has(.public-menu-image-preview)) .menu-item-content {
    grid-column: 1;
  }

  .menu-item-content strong {
    font-size: 15px;
    line-height: 1.22;
  }

  .menu-item-buy {
    align-self: center;
    grid-column: 3;
    grid-row: 1 / span 2;
    justify-content: flex-end;
    min-width: 0;
    width: auto;
  }

  .menu-item:not(:has(.public-menu-image-preview)) .menu-item-buy {
    grid-column: 2;
  }

  .menu-item-buy span {
    font-size: 14px;
  }

  .public-account-grid,
  .customer-order-add-form,
  .customer-grid,
  .customer-filters,
  .customer-order-filters {
    grid-template-columns: 1fr;
  }

  .customer-accordion-summary {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .customer-accordion-summary::after {
    justify-self: start;
  }

  .customer-order-row {
    grid-template-columns: 1fr;
  }

  .customer-card-main,
  .admin-order-summary,
  .customer-order-head,
  .customer-order-row {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-order-total {
    align-items: stretch;
    justify-items: stretch;
  }

  .admin-order-summary::after {
    align-self: flex-start;
    position: absolute;
    right: 14px;
    top: 16px;
  }

  .admin-order-summary {
    grid-template-columns: 1fr;
    padding-right: 38px;
    position: relative;
  }

  .admin-order-total {
    justify-items: start;
    min-width: 0;
    text-align: left;
  }

  .public-copy h1 {
    font-size: 32px;
  }

  .public-form,
  .public-contact-form,
  .contact-info-card,
  .login-panel {
    padding: 18px;
  }

  .login-panel h1 {
    font-size: 32px;
  }

  .admin-nav,
  .stats-grid,
  .report-filter-form,
  .report-dashboard,
  .day-close-grid,
  .day-close-subgrid,
  .backup-security-grid,
  .backup-command-layout,
  .backup-path-grid,
  .backup-note-grid,
  .insight-report-layout,
  .current-account-stats {
    grid-template-columns: 1fr;
  }

  .expense-donut-wrap {
    min-height: 300px;
    padding: 22px;
  }

  .expense-donut {
    max-width: 260px;
    width: min(100%, 260px);
  }
}

@media (max-width: 900px) {
  .receipt-order-head {
    display: none;
  }

  .receipt-order-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .receipt-order-row {
    grid-template-columns: 1fr;
  }

  .receipt-drag-handle {
    justify-self: start;
    min-width: 72px;
  }

  .receipt-category-cell {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .product-report-filter,
  .staff-report-filter,
  .daily-table-filter,
  .insight-report-filter,
  .product-report-stats,
  .staff-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-table-stats,
  .insight-report-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .daily-table-summary-panel,
  .insight-report-panel {
    padding: 16px;
  }

  .daily-detail-grid {
    grid-template-columns: 1fr;
  }

  .product-report-category summary {
    align-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .product-report-category summary strong,
  .product-report-category summary small,
  .product-report-category summary em {
    justify-self: start;
  }

  .product-report-category summary strong,
  .product-report-category summary small,
  .product-report-category summary em {
    grid-column: 1 / 2;
  }

  .product-report-category summary::after {
    grid-column: 2;
    grid-row: 1 / span 4;
  }

  .staff-report-panel {
    padding: 16px;
  }

  .staff-report-table-wrap {
    overflow-x: auto;
  }

  .staff-report-table,
  .staff-report-row summary {
    min-width: 960px;
  }
}

@media (max-width: 620px) {
  .product-report-filter,
  .staff-report-filter,
  .daily-table-filter,
  .product-report-stats,
  .staff-report-stats {
    grid-template-columns: 1fr;
  }

  .daily-table-stats {
    grid-template-columns: 1fr;
  }

  .product-report-actions .primary-btn,
  .product-report-actions .ghost-btn,
  .staff-report-actions .primary-btn,
  .staff-report-actions .ghost-btn {
    flex: 1 1 160px;
  }

  .product-report-section,
  .staff-report-panel {
    padding: 16px;
  }

  .product-report-table {
    min-width: 640px;
  }

  .daily-table-report-table {
    min-width: 860px;
  }
}

.kitchen-plan-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.kitchen-plan-side,
.kitchen-plan-main,
.kitchen-plan-card,
.kitchen-plan-body,
.kitchen-task-card,
.kitchen-task-form {
  min-width: 0;
}

.kitchen-plan-side {
  display: grid;
  gap: 14px;
}

.kitchen-plan-side .form-grid,
.kitchen-plan-filter {
  display: grid;
  grid-template-columns: 1fr;
}

.kitchen-plan-side > .kitchen-plan-filter {
  display: none;
}

.kitchen-plan-main > .kitchen-plan-top-filter {
  align-items: end;
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(170px, 1fr) minmax(170px, 1fr) minmax(130px, auto) minmax(120px, auto);
  margin-bottom: 14px;
  padding: 12px;
}

.kitchen-plan-top-filter label {
  margin: 0;
  min-width: 0;
}

.kitchen-plan-top-filter input,
.kitchen-plan-top-filter select {
  min-height: 42px;
  width: 100%;
}

.kitchen-plan-top-filter .primary-btn,
.kitchen-plan-top-filter .ghost-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 42px;
}

.kitchen-plan-list,
.kitchen-task-groups,
.kitchen-task-list {
  display: grid;
  gap: 10px;
}

.kitchen-plan-card {
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  scroll-margin-top: 84px;
}

.kitchen-plan-card > summary,
.kitchen-task-group > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  list-style: none;
}

.kitchen-plan-card > summary::-webkit-details-marker,
.kitchen-task-group > summary::-webkit-details-marker {
  display: none;
}

.kitchen-plan-card > summary {
  padding: 14px;
}

.kitchen-plan-card > summary > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.kitchen-plan-card > summary strong,
.kitchen-plan-card > summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kitchen-plan-card > summary strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
}

.kitchen-plan-card > summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.kitchen-plan-card > summary em {
  background: #fff1db;
  border-radius: 999px;
  color: #91570f;
  flex: 0 0 auto;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  padding: 6px 9px;
}

.kitchen-plan-card .status-pill {
  background: #f1ede8;
  color: var(--muted);
  flex: 0 0 auto;
}

.kitchen-plan-card .status-pill.pending {
  background: #ffe2e0;
  color: #b12323;
}

.kitchen-plan-card .status-pill.approved {
  background: #def4e9;
  color: #11633f;
}

.kitchen-plan-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 14px;
}

.kitchen-plan-meta,
.kitchen-task-add {
  align-items: end;
  background: #fbf7f0;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  padding: 12px;
}

.kitchen-plan-meta label,
.kitchen-task-add label,
.kitchen-task-form label {
  min-width: 0;
}

.kitchen-plan-meta input,
.kitchen-plan-meta select,
.kitchen-task-add input,
.kitchen-task-add select,
.kitchen-task-form input,
.kitchen-task-form select {
  width: 100%;
}

.kitchen-plan-actions {
  align-items: stretch;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kitchen-plan-actions form,
.kitchen-plan-actions button {
  min-width: 0;
}

.kitchen-plan-actions button {
  min-height: 38px;
}

.kitchen-task-group {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  scroll-margin-top: 84px;
}

.kitchen-task-group > summary {
  background: #211c17;
  color: #fff;
  padding: 10px 12px;
}

.kitchen-task-group > summary strong {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.kitchen-task-group > summary span {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.kitchen-task-list {
  background: #fffdfa;
  padding: 10px;
}

.kitchen-task-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 36px minmax(0, 1fr) 92px;
  padding: 8px;
}

.kitchen-task-card.dragging {
  opacity: 0.55;
}

.kitchen-task-card .drag-handle {
  align-items: center;
  background: #f4eee4;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--accent-dark);
  cursor: grab;
  display: flex;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  min-height: 42px;
}

.kitchen-task-form {
  align-items: end;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(96px, 0.75fr) minmax(110px, 0.8fr) minmax(180px, 1.4fr) minmax(86px, 0.65fr) minmax(110px, 0.8fr) minmax(82px, 0.55fr) minmax(92px, 0.7fr) minmax(130px, 1fr) auto;
}

.kitchen-task-actions {
  align-self: end;
  display: grid;
  gap: 7px;
  min-width: 0;
}

.kitchen-task-actions .primary-btn,
.kitchen-task-delete .delete-btn {
  min-height: 38px;
  padding-left: 12px;
  padding-right: 12px;
  width: 100%;
}

.kitchen-task-delete {
  margin: 0;
}

@media (max-width: 1100px) {
  .kitchen-plan-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) and (pointer: coarse) {
  .kitchen-plan-main {
    order: -1;
  }

  .kitchen-plan-card > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .kitchen-plan-main > .kitchen-plan-top-filter {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-plan-top-filter .primary-btn,
  .kitchen-plan-top-filter .ghost-btn,
  .kitchen-plan-actions button,
  .kitchen-task-actions .primary-btn,
  .kitchen-task-delete .delete-btn {
    min-height: 44px;
  }

  .kitchen-task-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .kitchen-task-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kitchen-task-form .task-title-field,
  .kitchen-task-form .task-note-field {
    grid-column: span 2;
  }

  .kitchen-task-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-task-delete,
  .kitchen-task-delete .delete-btn {
    width: 100%;
  }
}

@media (max-width: 900px) {
  .kitchen-plan-layout,
  .kitchen-plan-meta,
  .kitchen-task-add,
  .kitchen-plan-main > .kitchen-plan-top-filter {
    grid-template-columns: 1fr;
  }

  .kitchen-plan-main {
    order: -1;
  }

  .kitchen-plan-card > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .kitchen-task-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .kitchen-task-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-task-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-task-form .task-title-field,
  .kitchen-task-form .task-note-field,
  .kitchen-task-delete,
  .kitchen-task-delete .delete-btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .admin-page-head {
    align-items: stretch;
    gap: 10px;
  }

  .admin-page-head .today-card {
    width: 100%;
  }

  .expense-layout {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .expense-layout > .list-panel {
    order: -1;
  }

  .expense-layout > .form-panel,
  .expense-layout > .list-panel,
  .kitchen-plan-side,
  .kitchen-plan-main {
    padding: 12px;
  }

  .expense-layout .list-header,
  .kitchen-plan-main .list-header,
  .kitchen-plan-side .list-header {
    align-items: stretch;
    gap: 8px;
  }

  .expense-layout .list-header .ghost-btn,
  .kitchen-plan-main .list-header .ghost-btn,
  .kitchen-plan-side .list-header .ghost-btn {
    width: 100%;
  }

  .expense-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .expense-filters label:first-child,
  .expense-filters .primary-btn {
    grid-column: 1 / -1;
  }

  .expense-filters .primary-btn,
  .expense-layout .form-panel .primary-btn {
    min-height: 46px;
  }

  .staff-total-card {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
  }

  .staff-total-card strong {
    font-size: 21px;
  }

  .expense-row-summary {
    align-items: stretch;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 11px;
  }

  .expense-row-summary .staff-row-person {
    min-width: 0;
  }

  .expense-row-summary .staff-row-person strong,
  .expense-row-summary .staff-row-person small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .expense-row-summary .staff-row-type {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .expense-row-summary .staff-row-amount {
    align-items: center;
    background: #eef5f3;
    border-radius: 8px;
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding: 9px 10px;
    text-align: left;
  }

  .expense-row-summary .staff-row-toggle {
    grid-column: 1 / -1;
    justify-self: stretch;
    text-align: center;
  }

  .staff-item {
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .staff-item > form,
  .staff-item .delete-btn {
    width: 100%;
  }

  .expense-grid {
    grid-template-columns: 1fr;
  }

  .pagination-panel {
    align-items: stretch;
    display: grid;
    gap: 8px;
    text-align: center;
  }

  .pagination-panel a,
  .pagination-panel span {
    justify-content: center;
  }

  .kitchen-plan-layout {
    gap: 12px;
  }

  .kitchen-plan-card > summary {
    gap: 8px;
    padding: 12px;
  }

  .kitchen-plan-card > summary > div {
    width: 100%;
  }

  .kitchen-plan-card > summary strong {
    white-space: normal;
  }

  .kitchen-plan-card > summary small {
    white-space: normal;
  }

  .kitchen-plan-card .status-pill,
  .kitchen-plan-card > summary em {
    align-self: flex-start;
  }

  .kitchen-plan-body {
    gap: 10px;
    padding: 10px;
  }

  .kitchen-plan-meta,
  .kitchen-task-add {
    gap: 8px;
    padding: 10px;
  }

  .kitchen-plan-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-plan-actions form:first-child {
    grid-column: 1 / -1;
  }

  .kitchen-plan-actions form,
  .kitchen-plan-actions button {
    width: 100%;
  }

  .kitchen-plan-actions button,
  .kitchen-task-actions button {
    min-height: 44px;
  }

  .kitchen-task-list {
    padding: 8px;
  }

  .kitchen-task-card {
    gap: 9px;
    padding: 9px;
  }

  .kitchen-task-card .drag-handle {
    min-height: 34px;
  }

  .kitchen-task-form {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kitchen-task-form .task-title-field,
  .kitchen-task-form .task-note-field {
    grid-column: 1 / -1;
  }

  .kitchen-task-form input,
  .kitchen-task-form select,
  .kitchen-task-add input,
  .kitchen-task-add select,
  .kitchen-plan-meta input,
  .kitchen-plan-meta select {
    min-height: 42px;
  }

  .kitchen-task-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .expense-filters,
  .kitchen-plan-main > .kitchen-plan-top-filter,
  .kitchen-task-form,
  .kitchen-task-actions,
  .kitchen-plan-actions {
    grid-template-columns: 1fr;
  }

  .expense-filters label,
  .expense-filters .primary-btn,
  .kitchen-plan-actions form:first-child,
  .kitchen-task-form .task-title-field,
  .kitchen-task-form .task-note-field {
    grid-column: auto;
  }

  .kitchen-task-actions {
    position: static;
  }
}

.ai-page-head p {
  margin: 6px 0 0;
  color: var(--muted, #6f6a62);
  max-width: 720px;
}

.ai-info-panel {
  align-items: flex-start;
  background: #fff8e7;
  border-color: #ead8a8;
  color: #4c4025;
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.ai-info-panel strong {
  color: #2b2418;
  white-space: nowrap;
}

.ai-info-panel code {
  background: rgba(43, 36, 24, .08);
  border-radius: 6px;
  padding: 2px 6px;
}

.ai-assistant-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  margin-bottom: 16px;
}

.ai-question-panel,
.ai-answer-panel,
.ai-settings-panel,
.ai-data-card {
  border: 1px solid rgba(31, 43, 36, .1);
  box-shadow: 0 14px 34px rgba(31, 43, 36, .06);
}

.ai-question-form,
.ai-settings-form {
  display: grid;
  gap: 14px;
}

.ai-question-form textarea,
.ai-settings-form textarea {
  min-height: 140px;
  resize: vertical;
}

.ai-settings-form textarea {
  min-height: 110px;
}

.ai-suggestion-list {
  border-top: 1px solid rgba(31, 43, 36, .08);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
}

.ai-suggestion-list button {
  background: #f3f6f2;
  border: 1px solid rgba(31, 43, 36, .1);
  border-radius: 999px;
  color: #23332b;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 8px 12px;
}

.ai-suggestion-list button:hover {
  background: #e5f2ec;
  border-color: rgba(28, 119, 91, .25);
}

.ai-source-pill {
  align-items: center;
  background: #16765c;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  justify-content: center;
  letter-spacing: .04em;
  padding: 7px 12px;
  text-transform: uppercase;
}

.ai-source-pill.local {
  background: #2f2a23;
}

.ai-answer-body {
  background: #fbfaf7;
  border: 1px solid rgba(31, 43, 36, .08);
  border-radius: 10px;
  color: #26241f;
  line-height: 1.6;
  margin-top: 12px;
  padding: 16px;
  white-space: pre-wrap;
}

.ai-metric-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 16px;
}

.ai-metric-card {
  background: #fff;
  border: 1px solid rgba(31, 43, 36, .09);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(31, 43, 36, .055);
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
}

.ai-metric-card span,
.ai-metric-card small {
  color: #746e63;
  font-weight: 700;
}

.ai-metric-card strong {
  color: #1f2b24;
  font-size: clamp(1.15rem, 1.8vw, 1.65rem);
  line-height: 1.1;
  word-break: break-word;
}

.ai-metric-card.danger {
  border-color: rgba(176, 50, 50, .22);
}

.ai-metric-card.danger strong {
  color: #a32e2e;
}

.ai-data-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-data-card h2 {
  margin: 0 0 12px;
}

.ai-data-list {
  display: grid;
  gap: 8px;
}

.ai-data-list > div {
  align-items: center;
  background: #fbfaf7;
  border: 1px solid rgba(31, 43, 36, .07);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 10px 12px;
}

.ai-data-list strong {
  min-width: 0;
}

.ai-data-list span {
  color: #6f6a62;
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.ai-settings-note {
  background: #eef7f2;
  border: 1px solid rgba(28, 119, 91, .16);
  border-radius: 10px;
  color: #244438;
  display: grid;
  gap: 4px;
  padding: 12px;
}

@media (max-width: 1100px) {
  .ai-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ai-assistant-grid,
  .ai-data-grid {
    grid-template-columns: 1fr;
  }

  .ai-answer-panel {
    order: -1;
  }
}

@media (max-width: 620px) {
  .ai-info-panel {
    display: grid;
  }

  .ai-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ai-data-list > div {
    align-items: flex-start;
    display: grid;
  }

  .ai-data-list span {
    text-align: left;
    white-space: normal;
  }
}

.ai-page-head {
  align-items: flex-start;
}

.ai-page-head .ghost-btn {
  align-self: center;
}

.ai-info-panel,
.ai-question-panel,
.ai-answer-panel,
.ai-settings-panel,
.ai-data-card {
  padding: 18px;
}

.ai-question-panel,
.ai-answer-panel,
.ai-settings-panel,
.ai-data-card,
.ai-metric-card {
  overflow: hidden;
}

.ai-assistant-grid {
  align-items: start;
}

.ai-question-form label,
.ai-settings-form label {
  color: #3d382f;
  display: grid;
  font-weight: 800;
  gap: 7px;
  min-width: 0;
}

.ai-question-form input,
.ai-question-form textarea,
.ai-settings-form input,
.ai-settings-form textarea {
  background: #fff;
  border: 1px solid rgba(36, 29, 25, .14);
  border-radius: 8px;
  box-sizing: border-box;
  color: #2a2722;
  font: inherit;
  min-width: 0;
  padding: 11px 12px;
  width: 100%;
}

.ai-question-form input:focus,
.ai-question-form textarea:focus,
.ai-settings-form input:focus,
.ai-settings-form textarea:focus {
  border-color: rgba(31, 111, 95, .45);
  box-shadow: 0 0 0 3px rgba(31, 111, 95, .1);
  outline: 0;
}

.ai-question-form .primary-btn,
.ai-settings-form .primary-btn {
  justify-self: start;
  min-width: 180px;
}

.ai-answer-panel .list-header {
  align-items: center;
  margin-bottom: 12px;
}

.ai-answer-panel h2,
.ai-data-card h2 {
  color: #211d18;
  font-size: 20px;
  line-height: 1.15;
  margin: 0;
}

.ai-answer-panel .empty-state {
  margin-top: 12px;
}

.ai-metric-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ai-metric-card {
  border-left: 4px solid rgba(31, 111, 95, .45);
  min-height: 112px;
}

.ai-metric-card.danger {
  border-left-color: rgba(176, 50, 50, .7);
}

.ai-data-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.ai-settings-panel {
  max-width: 920px;
}

.ai-settings-note {
  line-height: 1.45;
}

@media (max-width: 760px) {
  .ai-page-head .ghost-btn,
  .ai-question-form .primary-btn,
  .ai-settings-form .primary-btn {
    width: 100%;
  }

  .ai-info-panel,
  .ai-question-panel,
  .ai-answer-panel,
  .ai-settings-panel,
  .ai-data-card {
    padding: 14px;
  }

  .ai-question-form .split,
  .ai-settings-form .split {
    grid-template-columns: 1fr;
  }
}
