@import "tailwindcss";

:root {
  --ink: #1f2a27;
  --muted: #71807b;
  --line: #e8ebe7;
  --paper: #f4f6f3;
  --white: #ffffff;
  --green: #174d40;
  --green-2: #246756;
  --coral: #d66f53;
  --gold: #d9a342;
  --shadow: 0 16px 42px rgba(31, 46, 41, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-geist-sans), "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--brand-accent, #d66f53) 38%, transparent);
  outline-offset: 2px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.restaurant-demo {
  min-height: 100vh;
}

.restaurant-demo.font-classic .guest-page,
.restaurant-demo.font-classic .language-screen,
.restaurant-demo.font-classic .brand-preview {
  font-family: Georgia, "Times New Roman", serif;
}

.restaurant-demo.font-soft .guest-page,
.restaurant-demo.font-soft .language-screen,
.restaurant-demo.font-soft .brand-preview {
  font-family: "Trebuchet MS", var(--font-geist-sans), sans-serif;
}

.prototype-label {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.02em;
}

.prototype-dot,
.live-dot {
  background: #5cd6a9;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(92, 214, 169, 0.14);
  display: inline-block;
  height: 7px;
  width: 7px;
}

.surface-switcher {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  display: flex;
  padding: 3px;
}

.surface-switcher button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  min-height: 30px;
  padding: 0 13px;
}

.surface-switcher button.active {
  background: #fff;
  color: #173f35;
}

.count-pill {
  align-items: center;
  background: var(--coral);
  border-radius: 20px;
  color: #fff;
  display: inline-flex;
  font-size: 9px;
  height: 17px;
  justify-content: center;
  margin-left: 4px;
  min-width: 17px;
}

.eyebrow {
  color: var(--green-2);
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.primary-button,
.secondary-button {
  align-items: center;
  border-radius: 10px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 9px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.primary-button {
  background: var(--green);
  border: 1px solid var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23, 77, 64, 0.17);
}

.primary-button:hover {
  background: #103f34;
}

.secondary-button {
  background: #fff;
  border: 1px solid #dfe5e1;
  color: #33413d;
}

.secondary-button:hover {
  border-color: #bfcac5;
  background: #fbfcfb;
}

a.secondary-button {
  text-decoration: none;
}

.primary-button.wide,
.secondary-button.wide {
  width: 100%;
}

.button-group {
  display: flex;
  gap: 9px;
}

.global-toast {
  align-items: center;
  animation: toast-in 0.25s ease-out;
  background: #173f35;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(17, 40, 34, 0.28);
  color: #fff;
  display: flex;
  font-size: 12px;
  font-weight: 650;
  gap: 9px;
  left: 50%;
  max-width: calc(100vw - 32px);
  padding: 13px 17px;
  position: fixed;
  /* Anchored below the header: the guest cart bar and the call-waiter dock own
     the bottom of the screen, and a toast over them reads as a button label. */
  top: calc(env(safe-area-inset-top, 0px) + 84px);
  transform: translateX(-50%);
  z-index: 200;
}

.global-toast span {
  align-items: center;
  background: #5cd6a9;
  border-radius: 50%;
  color: #173f35;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  width: 20px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, -12px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Login */

.login-screen {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 100vh;
}

.login-story {
  background:
    radial-gradient(circle at 75% 22%, rgba(221, 169, 79, 0.18), transparent 27%),
    radial-gradient(circle at 14% 84%, rgba(215, 122, 91, 0.17), transparent 30%),
    #174d40;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(48px, 8vw, 120px);
  position: relative;
}

.login-story::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
  height: 540px;
  position: absolute;
  right: -320px;
  top: -180px;
  width: 540px;
}

.platform-mark {
  align-items: center;
  background: var(--green);
  border-radius: 12px 12px 12px 3px;
  color: #fff;
  display: inline-flex;
  font-family: Georgia, serif;
  font-size: 20px;
  font-style: italic;
  height: 42px;
  justify-content: center;
  margin-bottom: 26px;
  width: 42px;
}

.platform-mark.light {
  background: #fff;
  color: var(--green);
}

.light-text {
  color: #dbb96e;
}

.login-story h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  margin: 10px 0 22px;
}

.login-lead {
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
  line-height: 1.65;
  max-width: 490px;
}

.login-proof {
  display: grid;
  gap: 18px;
  margin-top: 55px;
  max-width: 470px;
}

.login-proof > span {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #dbb96e;
  display: flex;
  font-size: 9px;
  height: 34px;
  justify-content: center;
  position: absolute;
  width: 34px;
}

.login-proof p {
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.5;
  margin: 0 0 0 50px;
}

.login-proof strong {
  color: #fff;
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.login-form-wrap {
  align-items: center;
  background: #f8faf7;
  display: flex;
  justify-content: center;
  padding: 40px;
}

.login-card {
  max-width: 410px;
  width: 100%;
}

.login-card h2 {
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0 0 9px;
}

.login-card > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 30px;
}

.login-card > label,
.form-grid label,
.style-options label {
  color: #37433f;
  display: grid;
  font-size: 11px;
  font-weight: 700;
  gap: 8px;
  margin-bottom: 17px;
}

.login-card input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.style-options select {
  background: #fff;
  border: 1px solid #dfe5e1;
  border-radius: 10px;
  min-height: 46px;
  padding: 0 13px;
}

.form-grid textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.form-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 2px 0 20px;
}

.checkbox-label {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  gap: 8px;
}

.text-button {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 11px;
  font-weight: 750;
}

.demo-note {
  align-items: center;
  background: #edf5f0;
  border-radius: 10px;
  color: #53645e;
  display: flex;
  font-size: 10px;
  gap: 9px;
  line-height: 1.4;
  margin-top: 18px;
  padding: 11px 13px;
}

.demo-note span {
  background: var(--green);
  border-radius: 20px;
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  text-transform: uppercase;
}

.demo-note a {
  color: var(--green);
  font-weight: 800;
}

.auth-error {
  background: #fff0ef;
  border: 1px solid #f0c7c3;
  border-radius: 10px;
  color: #9a3028;
  font-size: 12px;
  margin: 0 0 16px;
  padding: 11px 13px;
}

/* Admin shell */

.admin-shell {
  background: #f3f5f2;
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: #153e35;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 22px 16px 16px;
  position: sticky;
  top: 0;
}

.admin-logo {
  align-items: center;
  display: flex;
  gap: 10px;
  padding: 0 8px 24px;
}

.admin-logo > span,
.mobile-brand > span {
  align-items: center;
  background: #fff;
  border-radius: 10px 10px 10px 3px;
  color: var(--green);
  display: flex;
  font-family: Georgia, serif;
  font-style: italic;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.admin-logo strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 16px;
}

.admin-logo small {
  color: rgba(255, 255, 255, 0.46);
  display: block;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.15em;
  margin-top: 2px;
  text-transform: uppercase;
}

.restaurant-switch-label {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
  margin: 0 9px 7px;
  text-transform: uppercase;
}

.restaurant-switch {
  align-items: center;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  display: flex;
  gap: 10px;
  margin-bottom: 21px;
  padding: 10px;
}

.restaurant-avatar {
  align-items: center;
  background: #d5a65b;
  border-radius: 9px;
  color: #173f35;
  display: flex;
  font-family: Georgia, serif;
  font-size: 11px;
  font-weight: 800;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.restaurant-switch label {
  min-width: 0;
  position: relative;
}

.restaurant-switch label > span,
.restaurant-switch small {
  display: block;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-switch label > span {
  font-size: 11px;
  font-weight: 750;
}

.restaurant-switch small {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  margin-top: 3px;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.restaurant-switch-control {
  min-width: 0;
  position: relative;
}

.restaurant-switch-trigger {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  gap: 8px;
  min-width: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

.restaurant-switch-name {
  display: block;
  min-width: 0;
}

.restaurant-switch-name > strong {
  display: block;
  font-size: 11px;
  font-weight: 750;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-switch-name > small {
  color: rgba(255, 255, 255, 0.48);
  display: block;
  font-size: 8px;
  margin-top: 3px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-switch-trigger .role-chip {
  flex-shrink: 0;
}

.restaurant-switch-trigger > i {
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
  font-size: 8px;
  font-style: normal;
  margin-left: auto;
}

.restaurant-switch-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  left: -10px;
  margin-top: 8px;
  padding: 8px;
  position: absolute;
  top: 100%;
  width: 280px;
  z-index: 30;
}

.restaurant-switch-search {
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 6px;
  min-height: 34px;
  padding: 0 10px;
  width: 100%;
}

.restaurant-switch-list {
  display: grid;
  gap: 3px;
  max-height: 45vh;
  overflow: auto;
}

.restaurant-switch-option {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 9px;
  padding: 7px 8px;
  text-align: left;
  width: 100%;
}

.restaurant-switch-option:hover,
.restaurant-switch-option.active {
  background: var(--paper);
}

.restaurant-switch-option .restaurant-avatar.small {
  flex-shrink: 0;
  font-size: 9px;
  height: 26px;
  width: 26px;
}

.restaurant-switch-option-main {
  display: grid;
  min-width: 0;
}

.restaurant-switch-option-main > strong {
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.restaurant-switch-option-main > small {
  color: var(--muted);
  font-size: 8px;
}

.restaurant-switch-option .role-chip {
  flex-shrink: 0;
  margin-left: auto;
}

.restaurant-switch-option > i {
  color: var(--green);
  flex-shrink: 0;
  font-style: normal;
}

.add-restaurant-button {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 700;
  margin: -13px 0 18px;
  min-height: 34px;
  width: 100%;
}

.add-restaurant-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.admin-nav {
  display: grid;
  gap: 4px;
}

.admin-nav button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.62);
  display: flex;
  font-size: 11px;
  font-weight: 650;
  gap: 11px;
  min-height: 41px;
  padding: 0 11px;
  text-align: left;
  width: 100%;
}

.admin-nav button:hover,
.admin-nav button.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.admin-nav button > span {
  align-items: center;
  display: inline-flex;
  font-size: 15px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.admin-nav button b {
  align-items: center;
  background: var(--coral);
  border-radius: 20px;
  display: flex;
  font-size: 8px;
  height: 18px;
  justify-content: center;
  margin-left: auto;
  min-width: 18px;
}

.admin-nav button i {
  background: rgba(92, 214, 169, 0.14);
  border-radius: 20px;
  color: #7ee7c0;
  font-size: 7px;
  font-style: normal;
  margin-left: auto;
  padding: 4px 7px;
  text-transform: uppercase;
}

.sidebar-promo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-top: auto;
  padding: 13px;
}

.sidebar-promo > span {
  color: #e2b765;
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.sidebar-promo strong {
  font-size: 10px;
}

.sidebar-promo p {
  color: rgba(255, 255, 255, 0.48);
  font-size: 8px;
  line-height: 1.45;
  margin: 4px 0 10px;
}

.sidebar-promo button {
  background: transparent;
  border: 0;
  color: #ddbb75;
  font-size: 8px;
  font-weight: 750;
  padding: 0;
}

.user-card {
  align-items: center;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 15px 6px 0;
  text-align: left;
  width: 100%;
}

.user-card > span {
  align-items: center;
  background: #e6c186;
  border-radius: 50%;
  color: #173f35;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 31px;
  justify-content: center;
  width: 31px;
}

.user-card p {
  margin: 0;
}

.user-card strong,
.user-card small {
  display: block;
}

.user-card strong {
  font-size: 9px;
}

.user-card small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 7px;
  margin-top: 2px;
}

.user-card i {
  color: rgba(255, 255, 255, 0.38);
  font-size: 8px;
  font-style: normal;
  margin-left: auto;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 62px;
  justify-content: flex-end;
  padding: 0 clamp(20px, 3.2vw, 48px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.mobile-brand {
  align-items: center;
  display: none;
  font-family: Georgia, serif;
  font-weight: 700;
  gap: 9px;
}

.mobile-brand > span {
  background: var(--green);
  color: #fff;
  height: 30px;
  width: 30px;
}

.topbar-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.icon-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 17px;
  height: 39px;
  position: relative;
  width: 39px;
}

.icon-button i {
  background: var(--coral);
  border: 2px solid #fff;
  border-radius: 50%;
  height: 7px;
  position: absolute;
  right: 7px;
  top: 7px;
  width: 7px;
}

.admin-content {
  margin: 0 auto;
  max-width: 1480px;
  padding: 32px clamp(20px, 3.2vw, 48px) 54px;
}

.page-heading {
  align-items: flex-end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 27px;
}

.page-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(27px, 3vw, 38px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0;
}

.page-heading > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 11px;
  margin: 8px 0 0;
}

.metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 19px;
}

.metric-grid article {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  gap: 12px;
  min-height: 112px;
  padding: 16px;
  position: relative;
}

.metric-icon {
  align-items: center;
  border-radius: 9px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 16px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.metric-icon.green { background: #e9f3ef; color: var(--green); }
.metric-icon.coral { background: #fff0eb; color: var(--coral); }
.metric-icon.gold { background: #fbf3de; color: #a87921; }
.metric-icon.blue { background: #eaf1f6; color: #477493; }

.metric-grid small {
  color: var(--muted);
  display: block;
  font-size: 9px;
  font-weight: 650;
  margin-bottom: 4px;
}

.metric-grid strong {
  font-size: 24px;
  letter-spacing: -0.04em;
}

.metric-grid p {
  color: #8a9692;
  font-size: 8px;
  margin: 5px 0 0;
}

.metric-grid p b {
  color: #4b5f58;
}

.metric-trend,
.metric-grid article > button {
  background: transparent;
  border: 0;
  bottom: 14px;
  color: var(--green-2);
  font-size: 8px;
  font-style: normal;
  font-weight: 750;
  padding: 0;
  position: absolute;
  right: 14px;
}

.metric-trend {
  background: #eaf5f1;
  border-radius: 20px;
  padding: 4px 7px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.overview-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.35fr 0.85fr;
}

.panel-heading {
  align-items: flex-start;
  border-bottom: 1px solid #edf0ed;
  display: flex;
  justify-content: space-between;
  padding: 17px 20px;
}

.panel-heading h2 {
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.panel-heading p {
  color: var(--muted);
  font-size: 8px;
  margin: 4px 0 0;
}

.panel-heading > button {
  background: transparent;
  border: 0;
  color: var(--green);
  font-size: 9px;
  font-weight: 750;
}

.request-list {
  display: grid;
}

.request-row {
  align-items: center;
  border-bottom: 1px solid #f0f2f0;
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 10px 20px;
}

.request-row:last-child { border-bottom: 0; }

.request-type {
  align-items: center;
  background: #eef5f2;
  border-radius: 9px;
  color: var(--green);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.request-type.call { background: #fff0eb; color: var(--coral); }

.request-main strong {
  display: block;
  font-size: 11px;
}

.request-main p {
  color: var(--muted);
  font-size: 8px;
  margin: 4px 0 0;
}

.age {
  background: #f2f4f2;
  border-radius: 20px;
  color: #77827e;
  font-size: 8px;
  margin-left: auto;
  padding: 5px 8px;
}

.age.urgent {
  background: #fff0eb;
  color: #bc523b;
  font-weight: 750;
}

.empty-small {
  color: var(--muted);
  font-size: 11px;
  padding: 34px;
  text-align: center;
}

.status-chip {
  background: #f3f5f3;
  border-radius: 20px;
  color: var(--muted);
  font-size: 8px;
  padding: 5px 9px;
}

.rhythm-total {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 18px 20px 5px;
}

.rhythm-total > strong {
  font-size: 32px;
  letter-spacing: -0.05em;
}

.rhythm-total span {
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.rhythm-total b { color: var(--green-2); }

.mini-chart {
  align-items: flex-end;
  border-bottom: 1px solid #e7ebe8;
  display: flex;
  gap: 6px;
  height: 105px;
  margin: 5px 20px 0;
  padding-top: 10px;
}

.mini-chart span {
  background: #cfe0da;
  border-radius: 3px 3px 0 0;
  flex: 1;
  min-height: 10px;
}

.mini-chart span.current { background: var(--green); }

.chart-labels {
  color: #909b97;
  display: flex;
  font-size: 7px;
  justify-content: space-between;
  padding: 7px 20px 15px;
}

.quick-actions {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 18px;
}

.quick-actions button {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  min-height: 72px;
  padding: 13px;
  text-align: left;
}

.quick-actions button > span {
  align-items: center;
  background: #edf4f1;
  border-radius: 9px;
  color: var(--green);
  display: flex;
  font-size: 16px;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.quick-actions p { margin: 0 0 0 11px; }
.quick-actions strong { display: block; font-size: 10px; }
.quick-actions small { color: var(--muted); display: block; font-size: 8px; margin-top: 3px; }
.quick-actions i { color: var(--green); font-style: normal; margin-left: auto; }

/* Menu admin */

.menu-toolbar {
  display: flex;
  gap: 9px;
  margin-bottom: 16px;
}

.search-box {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex: 1;
  max-width: 420px;
  min-height: 42px;
  padding: 0 12px;
}

.search-box span { color: #89958f; font-size: 18px; }
.search-box input { background: transparent; border: 0; font-size: 11px; min-width: 0; padding: 0 9px; width: 100%; }
.search-box input:focus { outline: 0; }

.category-tabs {
  border-bottom: 1px solid #dfe4e0;
  display: flex;
  gap: 22px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.category-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #77837f;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 650;
  padding: 0 0 11px;
}

.category-tabs button.active {
  border-color: var(--green);
  color: var(--green);
}

.category-tabs button span {
  background: #e9efec;
  border-radius: 20px;
  font-size: 7px;
  margin-left: 5px;
  padding: 3px 5px;
}

.menu-panel { overflow: hidden; }

.menu-table-head,
.menu-row {
  align-items: center;
  display: grid;
  grid-template-columns: minmax(290px, 2fr) minmax(105px, 0.8fr) 88px 100px 70px 95px;
}

.menu-table-head {
  background: #f8faf8;
  border-bottom: 1px solid var(--line);
  color: #8a9692;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.07em;
  min-height: 38px;
  padding: 0 16px;
  text-transform: uppercase;
}

.menu-row {
  border-bottom: 1px solid #edf0ed;
  min-height: 92px;
  padding: 12px 16px;
}

.menu-row.unavailable { background: #fbfcfb; }
.menu-row.unavailable .food-thumb,
.menu-row.unavailable .menu-item-info > div:not(.food-thumb) { opacity: 0.55; }

.menu-item-info {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.food-thumb {
  align-items: center;
  background: linear-gradient(135deg, #e9eee9, #dce4df);
  border-radius: 9px;
  color: var(--green);
  display: flex;
  flex: 0 0 auto;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  width: 62px;
}

.food-thumb.large {
  border-radius: var(--brand-radius, 18px);
  height: 170px;
  width: 100%;
}

.food-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.menu-item-info strong { display: block; font-size: 10px; }
.menu-item-info p { color: var(--muted); font-size: 8px; line-height: 1.35; margin: 4px 0; max-width: 310px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag-row { align-items: center; display: flex; flex-wrap: wrap; gap: 4px; }
.tag-row span { background: #eef4f1; border-radius: 20px; color: var(--green); font-size: 6px; font-weight: 750; padding: 3px 6px; }
.tag-row em { align-items: center; border: 1px solid #cfd7d3; border-radius: 50%; color: #74807b; display: flex; font-size: 6px; height: 13px; justify-content: center; width: 13px; }
.table-category { color: #5d6a65; font-size: 9px; }
.menu-row > span:not(.table-category) { color: #74807b; font-size: 9px; }
.table-price { font-size: 10px; }

.toggle {
  background: #cdd5d1;
  border: 0;
  border-radius: 20px;
  height: 22px;
  padding: 3px;
  transition: background 0.2s;
  width: 39px;
}

.toggle span {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  display: block;
  height: 16px;
  transition: transform 0.2s;
  width: 16px;
}

.toggle.on { background: var(--green); }
.toggle.on span { transform: translateX(17px); }

.row-actions { display: flex; gap: 3px; justify-content: flex-end; }
.row-actions button { background: transparent; border: 0; color: var(--green); font-size: 8px; font-weight: 700; padding: 6px; }
.row-actions button:last-child { color: #87918e; }

.table-footer {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 8px;
  justify-content: space-between;
  min-height: 45px;
  padding: 0 16px;
}

.table-footer span { align-items: center; display: flex; gap: 4px; }
.table-footer button,
.table-footer b { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; display: flex; font-size: 8px; height: 25px; justify-content: center; width: 25px; }
.table-footer b { background: var(--green); color: #fff; }

/* Modals and forms */

.modal-backdrop {
  align-items: center;
  background: rgba(18, 36, 31, 0.54);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 22px;
  position: fixed;
  z-index: 150;
}

.side-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 25px 90px rgba(18, 36, 31, 0.26);
  max-height: calc(100vh - 44px);
  max-width: 720px;
  overflow: auto;
  padding: 25px;
  width: 100%;
}

.modal-heading {
  align-items: flex-start;
  display: flex;
  justify-content: space-between;
  margin-bottom: 23px;
}

.modal-heading h2 {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  margin: 0;
}

.modal-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 10px;
  margin: 6px 0 0;
}

.modal-heading > button,
.sheet-close {
  align-items: center;
  background: #f1f4f2;
  border: 0;
  border-radius: 50%;
  display: flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.form-grid {
  display: grid;
  gap: 0 14px;
  grid-template-columns: 1fr 1fr;
}

.form-grid .full { grid-column: 1 / -1; }

.upload-zone {
  align-items: center;
  border: 1px dashed #bdc9c4;
  border-radius: 12px;
  cursor: pointer;
  display: flex !important;
  flex-direction: column;
  gap: 4px !important;
  justify-content: center;
  min-height: 105px;
  position: relative;
  text-align: center;
}

.upload-zone input { inset: 0; opacity: 0; position: absolute; }
.upload-zone > span { color: var(--green); font-size: 20px; }
.upload-zone strong { color: var(--green); font-size: 10px; }
.upload-zone small { color: var(--muted); font-size: 8px; font-weight: 400; }

.form-toggles {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 8px;
}

.form-toggles label {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 13px 15px;
}

.form-toggles label:last-child { border-bottom: 0; }
.form-toggles strong,
.form-toggles small { display: block; }
.form-toggles strong { font-size: 10px; }
.form-toggles small { color: var(--muted); font-size: 8px; margin-top: 3px; }

.form-toggles input,
.setting-row input {
  appearance: none;
  background: #cdd5d1;
  border-radius: 20px;
  cursor: pointer;
  flex: 0 0 auto;
  height: 23px;
  margin: 0;
  padding: 3px;
  position: relative;
  width: 41px;
}

.form-toggles input::after,
.setting-row input::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  content: "";
  display: block;
  height: 17px;
  transition: transform 0.2s;
  width: 17px;
}

.form-toggles input:checked,
.setting-row input:checked { background: var(--green); }
.form-toggles input:checked::after,
.setting-row input:checked::after { transform: translateX(18px); }

.item-form > footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin: 22px -25px -25px;
  padding: 17px 25px;
}

.compact-modal,
.confirm-modal,
.success-modal {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(18, 36, 31, 0.28);
  max-width: 460px;
  padding: 24px;
  width: 100%;
}

.restaurant-modal .form-grid {
  margin-top: 18px;
}

.restaurant-modal label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 9px;
  font-weight: 700;
  gap: 6px;
}

.restaurant-modal input,
.restaurant-modal select {
  border: 1px solid var(--line);
  border-radius: 9px;
  font: inherit;
  min-height: 42px;
  padding: 0 11px;
}

.restaurant-modal label small {
  font-size: 8px;
  font-weight: 500;
  line-height: 1.45;
}

.modal-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 20px;
}

.zone-choice {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}

.zone-choice button {
  align-items: center;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  font-size: 11px;
  font-weight: 750;
  gap: 5px;
  min-height: 105px;
}

.zone-choice button:hover { border-color: var(--green); }
.zone-choice span { color: var(--green); font-size: 24px; }
.zone-choice small { color: var(--muted); font-size: 8px; font-weight: 400; }

/* Tables */

.table-stats {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  gap: 0;
  margin-bottom: 18px;
  padding: 12px 18px;
}

.table-stats span {
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  padding: 0 22px;
}

.table-stats span:first-child { padding-left: 0; }
.table-stats span:last-child { border: 0; }
.table-stats b { color: var(--ink); font-size: 12px; margin-right: 3px; }

.tables-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 310px;
}

.small-search {
  align-items: center;
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: 14px;
  height: 34px;
  padding: 0 9px;
}

.small-search input { background: transparent; border: 0; font-size: 9px; width: 90px; }
.small-search input:focus { outline: 0; }

.tables-list { padding-bottom: 19px; }

.zone-label {
  align-items: center;
  color: #6f7d78;
  display: flex;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  margin: 17px 18px 9px;
  text-transform: uppercase;
}

.zone-label span {
  align-items: center;
  background: #eef1ef;
  border-radius: 50%;
  display: flex;
  font-size: 7px;
  height: 17px;
  justify-content: center;
  margin-left: 6px;
  width: 17px;
}

.table-card-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
  padding: 0 18px;
}

.table-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 9px;
  min-height: 66px;
  padding: 9px;
  text-align: left;
}

.table-card:hover,
.table-card.selected { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }

.table-number {
  align-items: center;
  background: #eef4f1;
  border-radius: 8px;
  color: var(--green);
  display: flex;
  font-family: Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.table-card > span:nth-child(2) { min-width: 0; }
.table-card strong { display: block; font-size: 9px; }
.table-card small { color: var(--muted); display: flex; font-size: 7px; gap: 4px; margin-top: 4px; white-space: nowrap; }
.table-card small i { background: #bbb; border-radius: 50%; height: 5px; margin-top: 2px; width: 5px; }
.table-card small i.active { background: #42b88a; }
.table-card > b { color: #8c9793; margin-left: auto; }

.qr-preview {
  padding-bottom: 17px;
  position: sticky;
  top: 126px;
}

.qr-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  font-size: 9px;
  font-weight: 750;
  justify-content: space-between;
  padding: 13px 15px;
}

.qr-header button { background: transparent; border: 0; color: var(--muted); }

.print-card {
  align-items: center;
  background: var(--brand-bg);
  border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, transparent);
  border-radius: var(--brand-radius);
  color: var(--brand-text);
  display: flex;
  flex-direction: column;
  margin: 17px auto;
  min-height: 390px;
  padding: 25px 22px 18px;
  text-align: center;
  width: 220px;
}

.mini-logo {
  align-items: center;
  background: var(--brand-primary);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-family: Georgia, serif;
  font-size: 10px;
  height: 32px;
  justify-content: center;
  margin-bottom: 8px;
  width: 32px;
}

.print-card h3 { font-family: Georgia, serif; font-size: 17px; font-weight: 600; margin: 0; }
.print-card p { font-size: 9px; line-height: 1.5; margin: 8px 0 12px; opacity: .7; }

.qr-image {
  background: #fff;
  border-radius: 10px;
  height: 142px;
  padding: 7px;
  width: 142px;
}

.qr-image img { height: 100%; image-rendering: pixelated; width: 100%; }
.print-card > small { font-size: 7px; font-weight: 800; letter-spacing: .14em; margin-top: 10px; opacity: .55; }
.print-card > strong { color: var(--brand-primary); font-family: Georgia, serif; font-size: 30px; margin-top: 1px; }
.print-card > em { background: color-mix(in srgb, var(--brand-primary) 10%, transparent); border-radius: 20px; color: var(--brand-primary); font-size: 7px; font-style: normal; font-weight: 750; padding: 4px 8px; }

.qr-actions { display: grid; gap: 7px; padding: 0 17px; }
.secure-note { align-items: flex-start; color: var(--muted); display: flex; font-size: 7px; gap: 6px; line-height: 1.45; margin: 11px 19px 0; }
.secure-note span { align-items: center; background: #e8f4ef; border-radius: 50%; color: var(--green); display: flex; flex: 0 0 auto; height: 14px; justify-content: center; width: 14px; }

/* Branding */

.branding-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.brand-controls { overflow: hidden; }

.brand-section {
  border-bottom: 1px solid var(--line);
  padding: 22px;
}

.brand-section:last-child { border-bottom: 0; }
.brand-section h2 { font-family: Georgia, serif; font-size: 16px; font-weight: 600; margin: 0; }
.brand-section > p { color: var(--muted); font-size: 9px; margin: 5px 0 16px; }

.logo-upload { align-items: center; display: flex; gap: 9px; }
.logo-upload > span { align-items: center; background: var(--brand-primary); border-radius: 12px; color: #fff; display: flex; font-family: Georgia, serif; font-size: 14px; height: 54px; justify-content: center; margin-right: 5px; width: 54px; }
.text-danger { background: transparent; border: 0; color: #bd5b45; font-size: 9px; font-weight: 700; }

.brand-name-row { align-items: end; display: grid; gap: 13px; grid-template-columns: 54px minmax(0, 1fr); }
.brand-name-row > span { align-items: center; background: var(--brand-primary); border-radius: 12px; color: #fff; display: flex; font-family: Georgia, serif; font-size: 14px; height: 54px; justify-content: center; width: 54px; }
.brand-name-row label { color: var(--muted); display: grid; font-size: 9px; font-weight: 700; gap: 6px; }
.brand-name-row input { border: 1px solid var(--line); border-radius: 9px; font-size: 10px; min-height: 40px; padding: 0 11px; }

.color-grid {
  display: grid;
  gap: 13px;
  grid-template-columns: 1fr 1fr;
}

.color-grid > label { color: #52615c; display: grid; font-size: 9px; font-weight: 700; gap: 6px; }
.color-input { align-items: center; border: 1px solid var(--line); border-radius: 9px; display: flex; height: 40px; overflow: hidden; padding: 5px; }
.color-input input[type="color"] { border: 0; border-radius: 6px; height: 28px; overflow: hidden; padding: 0; width: 33px; }
.color-input input:not([type="color"]) { border: 0; font-size: 9px; font-weight: 650; padding: 0 9px; width: 100%; }
.color-input input:focus { outline: 0; }

.contrast-ok {
  align-items: center;
  background: #edf6f1;
  border-radius: 9px;
  color: var(--green);
  display: flex;
  gap: 9px;
  margin-top: 13px;
  padding: 10px;
}

.contrast-ok > span { align-items: center; background: var(--green); border-radius: 50%; color: #fff; display: flex; height: 20px; justify-content: center; width: 20px; }
.contrast-ok p { font-size: 8px; line-height: 1.35; margin: 0; }
.contrast-ok strong { display: block; font-size: 9px; }

.style-options { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.style-options label { margin: 0; }
.style-options input[type="range"] { accent-color: var(--green); }
.style-options label:last-child { grid-template-columns: 1fr auto; }
.style-options label:last-child input { grid-column: 1 / -1; width: 100%; }
.style-options label:last-child span { color: var(--muted); font-size: 8px; grid-column: 2; grid-row: 1; }

.brand-preview {
  background: #e7ebe7;
  border-radius: 16px;
  padding: 16px 25px 22px;
  position: sticky;
  top: 126px;
}

.preview-label { align-items: center; display: flex; font-size: 9px; font-weight: 750; justify-content: space-between; margin-bottom: 13px; }
.preview-label em { color: var(--muted); font-size: 7px; font-style: normal; font-weight: 500; }

.phone-frame {
  background: #17201e;
  border-radius: 34px;
  box-shadow: 0 22px 40px rgba(28, 44, 38, .17);
  margin: 0 auto;
  max-width: 280px;
  padding: 8px;
  position: relative;
}

.phone-speaker { background: #17201e; border-radius: 0 0 12px 12px; height: 17px; left: 50%; position: absolute; top: 8px; transform: translateX(-50%); width: 83px; z-index: 2; }
.preview-app { background: var(--brand-bg); border-radius: 27px; color: var(--brand-text); min-height: 510px; overflow: hidden; padding-bottom: 12px; }
.preview-app header { align-items: center; background: color-mix(in srgb, var(--brand-bg) 95%, #fff); display: flex; gap: 7px; padding: 22px 12px 10px; }
.preview-app header > span { align-items: center; background: var(--brand-primary); border-radius: 50%; color: #fff; display: flex; font-size: 7px; height: 25px; justify-content: center; width: 25px; }
.preview-app header strong { display: block; font-size: 8px; }
.preview-app header small { display: block; font-size: 6px; opacity: .6; }
.preview-app header button { background: transparent; border: 0; margin-left: auto; }
.preview-hero { background: var(--brand-primary); color: #fff; padding: 17px 13px 15px; }
.preview-hero p { font-size: 6px; margin: 0 0 4px; opacity: .7; }
.preview-hero h3 { font-family: Georgia, serif; font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.preview-hero label { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; display: block; font-size: 6px; padding: 8px; }
.preview-pills { display: flex; gap: 6px; overflow: hidden; padding: 11px 11px 8px; }
.preview-pills > * { border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent); border-radius: 20px; flex: 0 0 auto; font-size: 6px; font-style: normal; font-weight: 500; padding: 5px 7px; }
.preview-pills b { background: var(--brand-primary); color: #fff; }
.preview-food-grid { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; padding: 0 11px; }
.preview-food-grid > div { background: #fff; border-radius: calc(var(--brand-radius) * .55); box-shadow: 0 5px 16px rgba(0,0,0,.05); overflow: hidden; padding: 6px; position: relative; }
.preview-food-grid .food-thumb.large { border-radius: calc(var(--brand-radius) * .4); height: 82px; }
.preview-food-grid strong { display: block; font-size: 7px; margin-top: 6px; }
.preview-food-grid p { font-size: 5px; margin: 2px 0 5px; opacity: .5; }
.preview-food-grid > div > span { color: var(--brand-primary); font-size: 6px; font-weight: 800; }
.preview-food-grid button { align-items: center; background: var(--brand-primary); border: 0; border-radius: 50%; bottom: 6px; color: #fff; display: flex; height: 19px; justify-content: center; position: absolute; right: 6px; width: 19px; }
.preview-cart { align-items: center; background: var(--brand-primary); border: 0; border-radius: 9px; color: #fff; display: flex; font-size: 7px; justify-content: space-between; margin: 11px; min-height: 33px; padding: 0 10px; width: calc(100% - 22px); }
.brand-preview > p { color: var(--muted); font-size: 7px; line-height: 1.5; margin: 13px auto 0; max-width: 260px; text-align: center; }

/* Settings */

.settings-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 180px minmax(0, 1fr);
}

.settings-nav { display: grid; gap: 3px; position: sticky; top: 126px; }
.settings-nav button { background: transparent; border: 0; border-radius: 8px; color: var(--muted); font-size: 9px; font-weight: 650; min-height: 36px; padding: 0 11px; text-align: left; }
.settings-nav button.active { background: #e3ece7; color: var(--green); }
.settings-sections { display: grid; gap: 15px; }
.settings-card { overflow: hidden; }
.settings-card > header { border-bottom: 1px solid var(--line); padding: 18px; }
.settings-card h2 { font-family: Georgia, serif; font-size: 16px; font-weight: 600; margin: 0; }
.settings-card header p { color: var(--muted); font-size: 9px; margin: 4px 0 0; }
.setting-row { align-items: center; border-bottom: 1px solid #edf0ed; display: flex; justify-content: space-between; min-height: 67px; padding: 13px 18px; }
.setting-row:last-child { border-bottom: 0; }
.setting-row.featured { background: #f4f8f6; }
.setting-row strong { display: flex; font-size: 10px; gap: 7px; }
.setting-row strong em { background: #fff0eb; border-radius: 20px; color: #b6543f; font-size: 6px; font-style: normal; padding: 3px 6px; }
.setting-row small { color: var(--muted); display: block; font-size: 8px; margin-top: 4px; }

.hours-row { align-items: center; border-bottom: 1px solid #edf0ed; display: grid; gap: 10px; grid-template-columns: 100px 85px 12px 85px 1fr; min-height: 57px; padding: 10px 18px; }
.hours-row:last-child { border-bottom: 0; }
.hours-row span { font-size: 9px; font-weight: 700; }
.hours-row input { border: 1px solid var(--line); border-radius: 8px; font-size: 9px; height: 34px; padding: 0 9px; }
.hours-row i { color: var(--muted); font-style: normal; }
.hours-row button { background: transparent; border: 0; color: var(--muted); justify-self: end; }

.team-list { display: grid; }
.team-member { align-items: center; border-bottom: 1px solid #edf0ed; display: grid; gap: 10px; grid-template-columns: 34px minmax(0, 1fr) auto auto auto auto; min-height: 62px; padding: 10px 18px; }
.team-member > span { align-items: center; background: #e3ece7; border-radius: 9px; color: var(--green); display: flex; font-size: 9px; font-weight: 800; height: 34px; justify-content: center; width: 34px; }
.team-member p { margin: 0; min-width: 0; }
.team-member strong, .team-member small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-member strong { font-size: 10px; }
.team-member small { color: var(--muted); font-size: 8px; margin-top: 3px; }
.team-member em { background: #f1f4f2; border-radius: 20px; color: var(--green); font-size: 7px; font-style: normal; font-weight: 750; padding: 5px 8px; }
.team-member i { color: #9aaaa4; font-size: 7px; font-style: normal; }
.team-member i.active { color: #34836d; }
.team-empty { color: var(--muted); font-size: 10px; padding: 22px 18px; }
.team-form { background: #fafbf9; border-top: 1px solid var(--line); padding: 18px; }
.team-form h3 { font-size: 12px; margin: 0 0 14px; }
.team-form .form-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.team-form label { color: var(--muted); display: flex; flex-direction: column; font-size: 8px; font-weight: 700; gap: 5px; }
.team-form input, .team-form select { background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 9px; min-height: 38px; padding: 0 10px; }
.team-form label small { font-size: 7px; font-weight: 500; line-height: 1.4; }
.team-form .primary-button { margin-top: 14px; }

.pos-key-reveal {
  background: #f4f8f6;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 16px 18px;
}

.pos-key-reveal > strong { font-size: 10px; }

.pos-key-reveal > code {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  font-size: 11px;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  word-break: break-all;
}

.pos-key-reveal-actions {
  display: flex;
  gap: 9px;
}

.pos-key-list {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}

.pos-key-list > .empty-small { padding: 6px 0; }

.pos-key-row {
  align-items: center;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  padding: 10px 12px;
}

.pos-key-row strong { display: block; font-size: 10px; }
.pos-key-row small { color: var(--muted); display: block; font-size: 8px; margin-top: 3px; }

.pos-key-add-row,
.pos-webhook-row {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding: 16px 18px;
}

.pos-key-add-row label,
.pos-webhook-row label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 8px;
  font-weight: 700;
  gap: 5px;
}

.pos-key-add-row input,
.pos-webhook-row input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
  min-height: 38px;
  padding: 0 10px;
}

.pos-webhook-secret {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
  padding: 14px 18px;
}

.pos-webhook-secret > code {
  background: #f4f8f6;
  border-radius: 6px;
  overflow-wrap: anywhere;
  padding: 2px 6px;
  word-break: break-all;
}

.danger-zone-row {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
}

.danger-zone-row > p {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
  margin: 0;
}

.danger-zone-row > label {
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 8px;
  font-weight: 700;
  gap: 5px;
  max-width: 320px;
}

.danger-zone-row > label > input {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 9px;
  min-height: 38px;
  padding: 0 10px;
}

.danger-zone-row > .danger-button {
  justify-self: start;
}

/* Guest flow */

.language-screen {
  background: var(--brand-bg);
  color: var(--brand-text);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.language-art {
  align-items: center;
  background: var(--brand-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  position: relative;
  text-align: center;
}

.language-orb { border: 1px solid rgba(255,255,255,.1); border-radius: 50%; position: absolute; }
.language-orb.one { height: 480px; right: -260px; top: -230px; width: 480px; }
.language-orb.two { bottom: -240px; height: 420px; left: -180px; width: 420px; }
.language-logo { align-items: center; background: #fff; border-radius: 50%; color: var(--brand-primary); display: flex; font-family: Georgia, serif; font-size: 18px; font-weight: 800; height: 66px; justify-content: center; margin-bottom: 24px; width: 66px; }
.language-art p { font-size: 12px; margin: 0; opacity: .67; }
.language-art h1 { font-family: Georgia, serif; font-size: clamp(36px, 5vw, 62px); font-weight: 500; letter-spacing: -.04em; margin: 6px 0 19px; }
.language-art > span { border: 1px solid rgba(255,255,255,.25); border-radius: 20px; font-size: 10px; font-weight: 750; padding: 7px 14px; }

.language-card {
  align-self: center;
  justify-self: center;
  max-width: 430px;
  padding: 45px;
  width: 100%;
}

.language-card h2 { font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.03em; margin: 0; }
.language-card > p:not(.eyebrow) { color: color-mix(in srgb, var(--brand-text) 55%, transparent); font-size: 10px; margin: 8px 0 25px; }
.language-list { display: grid; gap: 9px; }
.language-list button { align-items: center; background: color-mix(in srgb, var(--brand-bg) 93%, #fff); border: 1px solid color-mix(in srgb, var(--brand-primary) 15%, transparent); border-radius: calc(var(--brand-radius) * .65); display: flex; min-height: 66px; padding: 10px; text-align: left; }
.language-list button:hover { border-color: var(--brand-primary); transform: translateX(2px); }
.language-list button > span { align-items: center; background: color-mix(in srgb, var(--brand-primary) 10%, transparent); border-radius: 50%; color: var(--brand-primary); display: flex; font-size: 9px; font-weight: 800; height: 40px; justify-content: center; width: 40px; }
.language-list p { margin: 0 0 0 12px; }
.language-list strong { display: block; font-size: 11px; }
.language-list small { color: color-mix(in srgb, var(--brand-text) 52%, transparent); display: block; font-size: 8px; margin-top: 3px; }
.language-list b { color: var(--brand-primary); margin-left: auto; }
.language-footnote { color: color-mix(in srgb, var(--brand-text) 50%, transparent); display: block; font-size: 8px; margin-top: 18px; text-align: center; }

.guest-page {
  background: var(--brand-bg);
  color: var(--brand-text);
  min-height: 100vh;
}

.guest-header {
  align-items: center;
  background: color-mix(in srgb, var(--brand-bg) 95%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--brand-text) 8%, transparent);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1150px) / 2));
  position: sticky;
  top: 0;
  z-index: 35;
}

.guest-brand { align-items: center; display: flex; gap: 10px; }
.guest-brand > span { align-items: center; background: var(--brand-primary); border-radius: 50%; color: #fff; display: flex; font-family: Georgia, serif; font-size: 10px; font-weight: 800; height: 38px; justify-content: center; width: 38px; }
.guest-brand strong { display: block; font-family: Georgia, serif; font-size: 15px; }
.guest-brand small { display: block; font-size: 7px; margin-top: 3px; opacity: .5; }
.guest-header-actions { align-items: center; display: flex; gap: 10px; }
.guest-header-actions > button { background: transparent; border: 0; font-size: 9px; font-weight: 700; }
.guest-table { border-left: 1px solid color-mix(in srgb, var(--brand-text) 12%, transparent); font-size: 9px; padding-left: 12px; }
.guest-table b { background: var(--brand-primary); border-radius: 6px; color: #fff; margin-left: 4px; padding: 6px 8px; }

.guest-main { margin: 0 auto; max-width: 1150px; min-height: 800px; padding: 43px 24px 130px; }
.guest-intro { align-items: flex-end; display: flex; justify-content: space-between; }
.guest-intro p { color: var(--brand-primary); font-size: 11px; font-weight: 700; margin: 0 0 7px; }
.guest-intro h1 { font-family: Georgia, serif; font-size: clamp(35px, 5vw, 54px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 0 0 11px; }
.guest-intro div > span { font-size: 9px; opacity: .54; }

.call-waiter {
  align-items: center;
  background: color-mix(in srgb, var(--brand-accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-accent) 25%, transparent);
  border-radius: var(--brand-radius);
  display: grid;
  grid-template-columns: 40px auto;
  padding: 11px 15px 11px 10px;
  text-align: left;
}

.call-waiter > span { align-items: center; background: var(--brand-accent); border-radius: 50%; color: #fff; display: flex; grid-row: 1 / 3; height: 34px; justify-content: center; margin-right: 9px; width: 34px; }
.call-waiter strong { font-size: 9px; }
.call-waiter small { font-size: 7px; opacity: .55; }

.guest-pause { align-items: center; background: #fff1dd; border: 1px solid #edcf9c; border-radius: 12px; color: #795a25; display: flex; gap: 10px; margin-top: 23px; padding: 12px; }
.guest-pause > span { align-items: center; border: 1px solid currentColor; border-radius: 50%; display: flex; height: 22px; justify-content: center; width: 22px; }
.guest-pause p { font-size: 9px; line-height: 1.4; margin: 0; }
.guest-pause strong { display: block; }

.guest-search {
  align-items: center;
  background: color-mix(in srgb, var(--brand-bg) 75%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-text) 10%, transparent);
  border-radius: calc(var(--brand-radius) * .7);
  display: flex;
  margin-top: 30px;
  max-width: 560px;
  min-height: 49px;
  padding: 0 14px;
}

.guest-search > span { color: var(--brand-primary); font-size: 20px; }
.guest-search input { background: transparent; border: 0; font-size: 11px; padding: 0 10px; width: 100%; }
.guest-search input:focus { outline: 0; }

.guest-categories { display: flex; gap: 8px; margin: 25px 0 31px; overflow-x: auto; padding-bottom: 3px; }
.guest-categories button { background: color-mix(in srgb, var(--brand-bg) 70%, #fff); border: 1px solid color-mix(in srgb, var(--brand-text) 10%, transparent); border-radius: 30px; flex: 0 0 auto; font-size: 9px; font-weight: 700; min-height: 36px; padding: 0 15px; }
.guest-categories button.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }

.guest-section-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 17px; }
.guest-section-heading h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; letter-spacing: -.025em; margin: 0; }
.guest-section-heading > span { font-size: 8px; opacity: .5; }
.guest-food-grid { display: grid; gap: 16px; grid-template-columns: repeat(4, 1fr); }

.guest-food-card {
  background: color-mix(in srgb, var(--brand-bg) 55%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-text) 8%, transparent);
  border-radius: var(--brand-radius);
  box-shadow: 0 11px 34px color-mix(in srgb, var(--brand-primary) 8%, transparent);
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}

.guest-food-card:hover { box-shadow: 0 16px 40px color-mix(in srgb, var(--brand-primary) 13%, transparent); transform: translateY(-3px); }
.guest-food-card > .food-thumb { border-radius: 0; height: 180px; }
.guest-food-copy { padding: 15px; }
.guest-food-copy h3 { font-family: Georgia, serif; font-size: 17px; font-weight: 600; line-height: 1.15; margin: 9px 0 7px; }
.guest-food-copy > p { font-size: 8px; line-height: 1.5; margin: 0 0 8px; min-height: 36px; opacity: .58; }
.guest-food-copy > small { display: block; font-size: 7px; opacity: .5; }
.guest-food-copy > div:last-child { align-items: center; display: flex; justify-content: space-between; margin-top: 14px; }
.guest-food-copy > div:last-child strong { color: var(--brand-primary); font-size: 11px; }
.guest-food-copy > div:last-child button { align-items: center; background: var(--brand-primary); border: 0; border-radius: 50%; color: #fff; display: flex; font-size: 16px; height: 33px; justify-content: center; width: 33px; }
.guest-empty { border: 1px dashed color-mix(in srgb, var(--brand-text) 20%, transparent); border-radius: var(--brand-radius); font-size: 11px; opacity: .55; padding: 45px; text-align: center; }

.guest-cart-bar {
  align-items: center;
  background: var(--brand-primary);
  border: 0;
  border-radius: 15px;
  bottom: 22px;
  box-shadow: 0 18px 42px color-mix(in srgb, var(--brand-primary) 36%, transparent);
  color: #fff;
  display: flex;
  left: 50%;
  min-height: 64px;
  padding: 9px 15px;
  position: fixed;
  transform: translateX(-50%);
  width: min(520px, calc(100vw - 30px));
  z-index: 40;
}

.cart-count { align-items: center; background: rgba(255,255,255,.16); border-radius: 9px; display: flex; font-size: 11px; font-weight: 800; height: 40px; justify-content: center; margin-right: 11px; width: 40px; }
.guest-cart-bar > span:nth-child(2) { text-align: left; }
.guest-cart-bar small { display: block; font-size: 7px; opacity: .6; }
.guest-cart-bar strong { display: block; font-size: 10px; margin-top: 2px; }
.guest-cart-bar > b { font-size: 11px; margin-left: auto; }
.guest-cart-bar i { font-style: normal; margin-left: 8px; }

.guest-footer { align-items: center; border-top: 1px solid color-mix(in srgb, var(--brand-text) 9%, transparent); display: flex; justify-content: space-between; margin: 0 auto; max-width: 1150px; padding: 24px; }
.guest-footer .guest-brand > span { height: 28px; width: 28px; }
.guest-footer .guest-brand strong { font-size: 11px; }
.guest-footer p { font-size: 7px; opacity: .45; }

.sheet-backdrop { align-items: flex-end; padding: 0; }
.guest-sheet { background: var(--brand-bg); border-radius: var(--brand-radius) var(--brand-radius) 0 0; color: var(--brand-text); max-height: calc(100vh - 50px); overflow: auto; padding: 25px; width: min(560px, 100%); }
.product-sheet { overflow: visible; padding: 0; position: relative; }
.product-sheet > .food-thumb.large { border-radius: var(--brand-radius) var(--brand-radius) 0 0; height: 250px; }
.sheet-close { position: absolute; right: 14px; top: 14px; z-index: 2; }
.product-copy { padding: 24px; }
.product-copy h2 { font-family: Georgia, serif; font-size: 28px; font-weight: 500; margin: 10px 0 8px; }
.product-copy > p { font-size: 10px; line-height: 1.55; opacity: .6; }
.product-meta { align-items: center; border-bottom: 1px solid color-mix(in srgb, var(--brand-text) 10%, transparent); display: flex; justify-content: space-between; margin: 18px 0 12px; padding-bottom: 13px; }
.product-meta span { font-size: 9px; opacity: .55; }
.product-meta strong { color: var(--brand-primary); font-size: 15px; }
.product-copy > small { font-size: 8px; opacity: .55; }
.product-copy > label { display: grid; font-size: 9px; font-weight: 700; gap: 7px; margin-top: 17px; }
.product-copy textarea { background: color-mix(in srgb, var(--brand-bg) 78%, #fff); border: 1px solid color-mix(in srgb, var(--brand-text) 12%, transparent); border-radius: 10px; padding: 10px; resize: none; }
.product-add { display: flex; gap: 11px; margin-top: 18px; }
.product-add .primary-button { flex: 1; }
.quantity-control { align-items: center; background: color-mix(in srgb, var(--brand-primary) 8%, #fff); border: 1px solid color-mix(in srgb, var(--brand-primary) 14%, transparent); border-radius: 11px; display: flex; min-height: 44px; padding: 4px; }
.quantity-control button { background: transparent; border: 0; color: var(--brand-primary); font-size: 15px; height: 34px; width: 34px; }
.quantity-control b { font-size: 10px; min-width: 20px; text-align: center; }

.cart-sheet .modal-heading,
.waiter-sheet .modal-heading { border-bottom: 1px solid color-mix(in srgb, var(--brand-text) 10%, transparent); padding-bottom: 18px; }
.cart-lines { display: grid; gap: 13px; }
.cart-line { align-items: center; display: flex; gap: 11px; }
.cart-line .food-thumb { height: 55px; width: 60px; }
.cart-line > div:nth-child(2) { flex: 1; }
.cart-line strong { display: block; font-size: 10px; }
.cart-line p { font-size: 7px; margin: 4px 0; opacity: .5; }
.cart-line > div:nth-child(2) span { color: var(--brand-primary); font-size: 9px; font-weight: 750; }
.quantity-control.small { min-height: 34px; }
.quantity-control.small button { height: 26px; width: 25px; }
.cart-summary { border-bottom: 1px solid color-mix(in srgb, var(--brand-text) 10%, transparent); border-top: 1px solid color-mix(in srgb, var(--brand-text) 10%, transparent); display: grid; gap: 9px; margin: 20px 0; padding: 15px 0; }
.cart-summary > span,
.cart-summary > strong { display: flex; font-size: 9px; justify-content: space-between; }
.cart-summary > span { opacity: .6; }
.cart-summary > strong { font-family: Georgia, serif; font-size: 15px; padding-top: 4px; }
.pay-note { align-items: center; background: color-mix(in srgb, var(--brand-primary) 8%, #fff); border-radius: 10px; display: flex; gap: 9px; padding: 10px; }
.pay-note > span { align-items: center; border: 1px solid var(--brand-primary); border-radius: 50%; color: var(--brand-primary); display: flex; font-size: 8px; height: 20px; justify-content: center; width: 20px; }
.pay-note p { font-size: 7px; line-height: 1.35; margin: 0; opacity: .7; }
.pay-note strong { display: block; font-size: 8px; opacity: 1; }
.send-order { background: var(--brand-primary); border-color: var(--brand-primary); margin-top: 17px; }

.reason-list { display: grid; gap: 8px; }
.reason-list button { align-items: center; background: color-mix(in srgb, var(--brand-bg) 75%, #fff); border: 1px solid color-mix(in srgb, var(--brand-text) 10%, transparent); border-radius: 11px; display: flex; font-size: 10px; font-weight: 650; min-height: 50px; padding: 0 12px; text-align: left; }
.reason-list button.selected { border-color: var(--brand-primary); box-shadow: 0 0 0 1px var(--brand-primary); }
.reason-list button > span { align-items: center; background: color-mix(in srgb, var(--brand-primary) 10%, transparent); border-radius: 8px; color: var(--brand-primary); display: flex; height: 31px; justify-content: center; margin-right: 10px; width: 31px; }
.reason-list button b { align-items: center; background: var(--brand-primary); border-radius: 50%; color: #fff; display: none; height: 18px; justify-content: center; margin-left: auto; width: 18px; }
.reason-list button.selected b { display: flex; }
.payment-choice { background: color-mix(in srgb, var(--brand-primary) 6%, #fff); border-radius: 11px; display: grid; gap: 7px; grid-template-columns: 1fr 1fr; margin: 12px 0; padding: 10px; }
.payment-choice p { font-size: 8px; grid-column: 1 / -1; margin: 0 0 2px; opacity: .6; }
.payment-choice button { background: transparent; border: 1px solid color-mix(in srgb, var(--brand-text) 12%, transparent); border-radius: 8px; font-size: 9px; min-height: 34px; }
.payment-choice button.active { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; }
.waiter-sheet > .primary-button { background: var(--brand-primary); border-color: var(--brand-primary); margin-top: 14px; }

.success-modal { max-width: 390px; text-align: center; }
.success-modal > span { align-items: center; background: #e7f4ee; border-radius: 50%; color: var(--green); display: flex; font-size: 24px; height: 64px; justify-content: center; margin: 0 auto 17px; width: 64px; }
.success-modal h2 { font-family: Georgia, serif; font-size: 27px; font-weight: 500; margin: 0; }
.success-modal > p:not(.eyebrow) { color: var(--muted); font-size: 10px; line-height: 1.5; margin: 9px auto 17px; max-width: 250px; }
.prep-time { background: #f2f6f3; border-radius: 11px; display: grid; margin-bottom: 16px; padding: 12px; }
.prep-time b { color: var(--green); font-size: 16px; }
.prep-time small { color: var(--muted); font-size: 7px; margin-top: 3px; }

/* Staff queue */

.staff-page {
  --staff-surface: color-mix(in srgb, var(--brand-primary, #174d40) 84%, #10221c);
  --staff-ink: color-mix(in srgb, var(--brand-primary, #174d40) 88%, #12241f);
  --staff-gold: var(--brand-accent, #e5bd79);
  background: #eef1ee;
  min-height: 100vh;
}

.staff-header {
  align-items: center;
  background: var(--staff-surface);
  color: #fff;
  display: flex;
  height: 66px;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 58px);
}

.staff-brand { align-items: center; display: flex; gap: 10px; }
.staff-brand > span { align-items: center; background: #fff; border-radius: 9px 9px 9px 3px; color: var(--staff-ink); display: flex; font-family: Georgia, serif; font-style: italic; height: 34px; justify-content: center; width: 34px; }
.staff-brand strong { display: block; font-family: Georgia, serif; font-size: 14px; }
.staff-brand small { color: rgba(255,255,255,.48); display: block; font-size: 7px; margin-top: 2px; }
.staff-status { align-items: center; display: flex; gap: 8px; }
.staff-status > span { align-items: center; background: rgba(92,214,169,.1); border-radius: 20px; color: #80e4c0; display: flex; font-size: 8px; font-weight: 700; gap: 5px; padding: 7px 10px; }
.staff-status > span i { background: #62dbae; border-radius: 50%; height: 6px; width: 6px; }
.staff-status button { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: rgba(255,255,255,.6); font-size: 8px; min-height: 32px; padding: 0 10px; }
.staff-status button.active { color: #fff; }
.staff-status button:last-child { background: var(--staff-gold); border: 0; border-radius: 50%; color: var(--staff-surface); font-weight: 800; padding: 0; width: 32px; }

.staff-main { margin: 0 auto; max-width: 1420px; padding: 32px clamp(20px, 4vw, 58px) 80px; }
.staff-heading { align-items: flex-end; display: flex; justify-content: space-between; }
.staff-heading h1 { font-family: Georgia, serif; font-size: 36px; font-weight: 500; letter-spacing: -.035em; margin: 0 0 7px; }
.staff-heading > div > p:not(.eyebrow) { color: var(--muted); font-size: 10px; margin: 0; }
.open-bills-panel { background: linear-gradient(135deg, var(--staff-surface), color-mix(in srgb, var(--brand-primary, #174d40) 66%, #2f7362)); border-radius: 20px; box-shadow: 0 15px 34px rgba(23,63,53,.16); color: #fff; margin-top: 28px; padding: 22px; }
.open-bills-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 16px; }
.open-bills-heading .eyebrow { color: var(--staff-gold); margin-bottom: 4px; }
.open-bills-heading h2 { font-family: Georgia, serif; font-size: 23px; font-weight: 500; margin: 0; }
.open-bills-heading h2 span { align-items: center; background: rgba(255,255,255,.13); border-radius: 20px; display: inline-flex; font-family: Arial, sans-serif; font-size: 9px; height: 22px; justify-content: center; margin-left: 5px; min-width: 22px; vertical-align: 3px; }
.open-bills-heading > p { color: rgba(255,255,255,.55); font-size: 9px; margin: 0; }
.open-bills-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.open-bill-card { background: #fff; border: 1px solid rgba(255,255,255,.15); border-radius: 15px; color: var(--ink); padding: 15px; }
.open-bill-card > header { align-items: flex-start; display: flex; justify-content: space-between; }
.open-bill-card > header div { display: grid; gap: 1px; }
.open-bill-card > header small { color: var(--staff-ink); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.open-bill-card > header strong { font-family: Georgia, serif; font-size: 20px; font-weight: 600; }
.open-bill-card > header span { color: var(--muted); font-size: 8px; }
.open-bill-card > header em { background: #edf4f1; border-radius: 20px; color: var(--staff-ink); font-size: 7px; font-style: normal; font-weight: 700; padding: 6px 8px; }
.open-bill-total { align-items: flex-end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 14px; padding-bottom: 12px; }
.open-bill-total span { color: var(--muted); font-size: 8px; }
.open-bill-total strong { color: var(--staff-ink); font-family: Georgia, serif; font-size: 21px; }
.open-bill-meta { display: flex; gap: 14px; padding: 10px 0; }
.open-bill-meta span { color: var(--muted); font-size: 8px; }
.open-bill-meta b { color: var(--ink); }
.open-bill-card > button { align-items: center; background: var(--staff-ink); border: 0; border-radius: 9px; color: #fff; display: flex; font-size: 9px; font-weight: 800; gap: 6px; justify-content: center; min-height: 36px; width: 100%; }
.open-bill-card > button:hover { background: color-mix(in srgb, var(--staff-ink) 86%, #fff); }
.open-bill-card > button span { background: rgba(255,255,255,.15); border-radius: 50%; display: grid; height: 18px; place-items: center; width: 18px; }
.open-bills-empty { border: 1px dashed rgba(255,255,255,.25); border-radius: 12px; color: rgba(255,255,255,.65); font-size: 9px; padding: 18px; text-align: center; }
.visit-confirm > span { background: #e7f4ee !important; color: var(--staff-ink) !important; }
.clock { text-align: right; }
.clock strong { display: block; font-family: Georgia, serif; font-size: 26px; font-weight: 500; }
.clock span { color: var(--muted); display: block; font-size: 8px; margin-top: 2px; }

.staff-toolbar { align-items: center; border-bottom: 1px solid #d9dfdb; display: flex; justify-content: space-between; margin: 27px 0 20px; }
.staff-tabs { display: flex; gap: 20px; }
.staff-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 10px; font-weight: 700; min-height: 43px; padding: 0 2px; }
.staff-tabs button.active { border-color: var(--staff-ink); color: var(--staff-ink); }
.staff-tabs span { align-items: center; background: #dfe5e1; border-radius: 20px; display: inline-flex; font-size: 7px; height: 18px; justify-content: center; margin-left: 4px; min-width: 18px; }
.staff-tabs .active span { background: var(--staff-ink); color: #fff; }
.staff-filters { display: flex; gap: 5px; padding-bottom: 7px; }
.staff-filters button,
.staff-filters select { background: #fff; border: 1px solid #dce2de; border-radius: 8px; color: #63716c; font-size: 8px; min-height: 32px; padding: 0 10px; }
.staff-filters button.active { background: var(--staff-ink); border-color: var(--staff-ink); color: #fff; }

.ticket-grid { display: grid; gap: 10px; grid-template-columns: 1fr; }
.ticket-card { background: #fff; border: 1px solid #dfe4e1; border-radius: 14px; box-shadow: 0 8px 22px rgba(29, 48, 41, .045); overflow: hidden; }
.ticket-card.urgent { border-color: #e0a28e; box-shadow: 0 0 0 1px #e0a28e; }
.ticket-card.done { opacity: .75; }
.ticket-card > header { align-items: flex-start; border-bottom: 1px solid #edf0ed; display: flex; justify-content: space-between; padding: 15px; }
.ticket-label { align-items: center; display: flex; gap: 10px; }
.ticket-label > span { align-items: center; background: #e9f3ef; border-radius: 9px; color: var(--staff-ink); display: flex; font-size: 16px; height: 37px; justify-content: center; width: 37px; }
.ticket-card.call .ticket-label > span { background: #fff0eb; color: var(--coral); }
.ticket-label small { color: var(--staff-ink); display: block; font-size: 7px; font-weight: 800; letter-spacing: .09em; margin-bottom: 3px; text-transform: uppercase; }
.ticket-card.call .ticket-label small { color: var(--coral); }
.ticket-label strong { display: block; font-family: Georgia, serif; font-size: 17px; }
.ticket-age { text-align: right; }
.ticket-age span { background: #f0f3f1; border-radius: 20px; color: #6e7a76; display: block; font-size: 7px; font-weight: 700; padding: 5px 7px; }
.ticket-age span.urgent { background: #fff0eb; color: #bd563f; }
.ticket-age small { color: var(--muted); display: block; font-size: 7px; margin-top: 5px; }

.ticket-items { display: grid; gap: 11px; min-height: 150px; padding: 15px; }
.ticket-items > div { align-items: flex-start; display: flex; gap: 8px; }
.ticket-items > div > b { align-items: center; background: #edf3f0; border-radius: 6px; color: var(--staff-ink); display: flex; flex: 0 0 auto; font-size: 8px; height: 22px; justify-content: center; width: 25px; }
.ticket-items span { min-width: 0; }
.ticket-items strong { display: block; font-size: 9px; line-height: 1.4; }
.ticket-items small { color: var(--coral); display: block; font-size: 7px; margin-top: 3px; }
.ticket-items em { color: var(--muted); font-size: 8px; font-style: normal; margin-left: auto; white-space: nowrap; }

.call-reason { align-items: center; display: flex; min-height: 150px; padding: 22px; }
.call-reason > span { align-items: center; background: #fff0eb; border-radius: 50%; color: var(--coral); display: flex; font-size: 24px; height: 58px; justify-content: center; margin-right: 14px; width: 58px; }
.call-reason small { color: var(--muted); display: block; font-size: 7px; margin-bottom: 4px; }
.call-reason strong { display: block; font-family: Georgia, serif; font-size: 18px; }
.call-reason em { color: #7b6a63; display: block; font-size: 8px; font-style: normal; margin-top: 6px; }

.ticket-total { align-items: center; background: #f8faf8; border-top: 1px solid #edf0ed; display: flex; font-size: 9px; justify-content: space-between; padding: 11px 15px; }
.ticket-total strong { font-size: 12px; }
.ticket-card > footer { align-items: center; border-top: 1px solid #edf0ed; display: flex; gap: 8px; min-height: 58px; padding: 10px 12px; }
.ticket-actions > button:first-child { align-items: center; background: var(--staff-ink); border: 0; border-radius: 9px; color: #fff; display: flex; flex: 1; font-size: 8px; font-weight: 750; gap: 7px; justify-content: center; min-height: 37px; }
.ticket-card.call .ticket-actions > button:first-child { background: var(--coral); }
.more-button { background: #f3f5f3 !important; border: 1px solid #e2e6e3 !important; color: var(--muted) !important; flex: 0 0 38px !important; }
.done-label { color: var(--staff-ink); flex: 1; font-size: 8px; font-weight: 700; padding-left: 8px; }

.empty-queue { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 15px; display: flex; flex-direction: column; min-height: 320px; justify-content: center; text-align: center; }
.empty-queue > span { align-items: center; background: #e7f4ee; border-radius: 50%; color: var(--staff-ink); display: flex; font-size: 24px; height: 65px; justify-content: center; width: 65px; }
.empty-queue h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 500; margin: 16px 0 6px; }
.empty-queue p { color: var(--muted); font-size: 9px; }

.undo-bar { align-items: center; background: var(--staff-surface); border-radius: 11px; bottom: 21px; box-shadow: 0 18px 45px rgba(20,49,41,.25); color: #fff; display: flex; font-size: 9px; gap: 20px; left: 50%; padding: 12px 14px; position: fixed; transform: translateX(-50%); z-index: 70; }
.undo-bar button { background: transparent; border: 0; color: var(--staff-gold); font-size: 9px; font-weight: 800; text-transform: uppercase; }

.confirm-modal { max-width: 390px; text-align: center; }
.confirm-modal > span { align-items: center; background: #fff0eb; border-radius: 50%; color: var(--coral); display: flex; font-family: Georgia, serif; font-size: 26px; height: 58px; justify-content: center; margin: 0 auto 15px; width: 58px; }
.confirm-modal h2 { font-family: Georgia, serif; font-size: 25px; font-weight: 500; margin: 0; }
.confirm-modal > p:not(.eyebrow) { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 9px auto 20px; max-width: 280px; }
.confirm-modal > div { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }


/* Brand logo in the staff header */
.staff-brand > span img { border-radius: 7px; height: 100%; object-fit: contain; width: 100%; }

/* Consolidated bill lines on each open table card */
.open-bill-lines { border-bottom: 1px solid var(--line); display: grid; gap: 7px; padding: 11px 0; }
.open-bill-lines.empty { color: var(--muted); font-size: 8px; padding: 13px 0; text-align: center; }
.open-bill-lines > div { align-items: flex-start; display: flex; gap: 8px; }
.open-bill-lines > div > b { align-items: center; background: #edf3f0; border-radius: 6px; color: var(--staff-ink); display: flex; flex: 0 0 auto; font-size: 8px; height: 20px; justify-content: center; width: 23px; }
.open-bill-lines > div > span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.open-bill-lines > div > span > strong { font-size: 9px; font-weight: 700; }
.open-bill-lines > div > span > small { color: var(--muted); font-size: 7px; }
.open-bill-lines > div > span > i { background: color-mix(in srgb, var(--staff-gold) 26%, #fff); border-radius: 20px; color: #6d5320; font-size: 6px; font-style: normal; font-weight: 800; justify-self: start; letter-spacing: .06em; margin-top: 2px; padding: 2px 6px; text-transform: uppercase; }
.open-bill-lines > div > em { color: var(--ink); font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }
.open-bill-lines .staff-entered > b { background: color-mix(in srgb, var(--staff-gold) 22%, #fff); color: #6d5320; }
.open-bill-more { background: transparent; border: 0; color: var(--staff-ink); font-size: 8px; font-weight: 800; justify-self: start; padding: 2px 0; text-decoration: underline; }

.open-bill-actions { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; }
.open-bill-actions button { align-items: center; background: var(--staff-ink); border: 0; border-radius: 9px; color: #fff; display: flex; font-size: 9px; font-weight: 800; gap: 6px; justify-content: center; min-height: 36px; width: 100%; }
.open-bill-actions button:hover { background: color-mix(in srgb, var(--staff-ink) 86%, #fff); }
.open-bill-actions button span { background: rgba(255,255,255,.15); border-radius: 50%; display: grid; height: 18px; place-items: center; width: 18px; }
.open-bill-actions button.ghost { background: #fff; border: 1px solid var(--staff-ink); color: var(--staff-ink); }
.open-bill-actions button.ghost:hover { background: color-mix(in srgb, var(--staff-ink) 8%, #fff); }
.open-bill-actions button.ghost span { background: color-mix(in srgb, var(--staff-ink) 12%, #fff); }

/* Ticket entered by a waiter rather than sent by a guest */
.ticket-card.staff-entered .ticket-label > span { background: color-mix(in srgb, var(--staff-gold) 22%, #fff); color: #6d5320; }
.ticket-card.staff-entered .ticket-label small { color: #6d5320; }

/* Manual order entry */
.staff-order-modal { background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(18,36,31,.28); display: flex; flex-direction: column; max-height: 88vh; max-width: 880px; overflow: hidden; position: relative; width: 100%; }
.staff-order-modal > header { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 14px; justify-content: space-between; padding: 20px 22px 16px; }
.staff-order-modal > header h2 { font-family: Georgia, serif; font-size: 22px; font-weight: 500; margin: 0 0 5px; }
.staff-order-modal > header p:not(.eyebrow) { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 0; max-width: 430px; }
.staff-order-body { display: grid; gap: 0; grid-template-columns: 1fr 1fr; min-height: 0; overflow: hidden; }
.staff-order-picker { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; padding: 16px 18px; }
.staff-order-search { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .08em; text-transform: uppercase; }
.staff-order-search input,
.staff-order-custom input { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 10px; min-height: 38px; padding: 0 11px; width: 100%; }
.staff-order-results { display: grid; gap: 5px; margin: 11px 0; min-height: 0; overflow-y: auto; }
.staff-order-results button { align-items: center; background: #fff; border: 1px solid #e6ebe7; border-radius: 10px; display: flex; gap: 10px; justify-content: space-between; min-height: 44px; padding: 8px 11px; text-align: left; width: 100%; }
.staff-order-results button:hover { border-color: var(--staff-ink); }
.staff-order-results button.unavailable { opacity: .62; }
.staff-order-results button > span { display: grid; gap: 2px; min-width: 0; }
.staff-order-results button strong { font-size: 10px; font-weight: 700; }
.staff-order-results button small { color: var(--muted); font-size: 8px; }
.staff-order-results button em { color: var(--staff-ink); font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.staff-order-empty { color: var(--muted); font-size: 9px; margin: 12px 0; text-align: center; }
.staff-order-custom { border-top: 1px dashed #dce2de; padding-top: 12px; }
.staff-order-custom > div { display: grid; gap: 6px; grid-template-columns: 1fr 96px auto; margin-top: 7px; }
.staff-order-custom button { background: var(--staff-ink); border: 0; border-radius: 9px; color: #fff; font-size: 9px; font-weight: 800; min-height: 38px; padding: 0 14px; }

.staff-order-cart { display: flex; flex-direction: column; min-height: 0; padding: 16px 18px; }
.staff-order-lines { display: grid; gap: 7px; margin: 9px 0; min-height: 0; overflow-y: auto; }
.staff-order-lines > div { align-items: center; background: #f6f8f6; border-radius: 10px; display: flex; gap: 9px; padding: 8px 10px; }
.staff-order-lines > div > span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.staff-order-lines > div > span > strong { font-size: 9px; font-weight: 700; }
.staff-order-lines > div > span > small { color: var(--muted); font-size: 7px; }
.staff-order-lines > div > em { font-size: 10px; font-style: normal; font-weight: 800; white-space: nowrap; }
.staff-order-qty { align-items: center; display: flex; gap: 3px; }
.staff-order-qty button { background: #fff; border: 1px solid #dce2de; border-radius: 7px; font-size: 11px; font-weight: 800; height: 26px; line-height: 1; width: 26px; }
.staff-order-qty b { font-size: 9px; min-width: 18px; text-align: center; }
.staff-order-note { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .08em; margin-top: auto; text-transform: uppercase; }
.staff-order-note input { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 10px; min-height: 38px; padding: 0 11px; }
.staff-order-total { align-items: flex-end; border-top: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 12px; padding-top: 11px; }
.staff-order-total span { color: var(--muted); font-size: 8px; }
.staff-order-total strong { color: var(--staff-ink); font-family: Georgia, serif; font-size: 21px; }
.staff-order-actions { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 12px; }

.staff-order-variants { background: rgba(255,255,255,.97); border-radius: 18px; display: grid; inset: 0; padding: 26px; place-content: center; position: absolute; }
.staff-order-variants > div { display: grid; gap: 7px; margin: 12px 0; }
.staff-order-variants > div button { align-items: center; background: #fff; border: 1px solid #dce2de; border-radius: 10px; display: flex; gap: 14px; justify-content: space-between; min-height: 44px; min-width: 280px; padding: 8px 13px; }
.staff-order-variants > div button:hover { border-color: var(--staff-ink); }
.staff-order-variants > div button strong { font-size: 10px; }
.staff-order-variants > div button em { color: var(--staff-ink); font-size: 10px; font-style: normal; font-weight: 800; }

@media (max-width: 860px) {
  .staff-order-body { grid-template-columns: 1fr; overflow-y: auto; }
  .staff-order-picker { border-bottom: 1px solid var(--line); border-right: 0; }
  .open-bill-actions { grid-template-columns: 1fr; }
}

/* Queue as a list: each ticket is one wide row — identity | contents | action */
.ticket-card { align-items: stretch; display: grid; grid-template-columns: minmax(165px, 205px) minmax(0, 1fr) minmax(185px, 225px); }
.ticket-card > header { border-bottom: 0; border-right: 1px solid #edf0ed; flex-direction: column; align-items: stretch; gap: 8px; justify-content: center; }
.ticket-card > header .ticket-age { align-items: center; display: flex; gap: 6px; text-align: left; }
.ticket-card > header .ticket-age span { display: inline-block; }
.ticket-card > header .ticket-age small { margin-top: 0; }
.ticket-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.ticket-body .ticket-items { gap: 8px; min-height: 0; padding: 13px 15px; }
.ticket-body .call-reason { min-height: 0; padding: 13px 15px; }
.ticket-body .call-reason > span { font-size: 19px; height: 44px; margin-right: 11px; width: 44px; }
.ticket-body .call-reason strong { font-size: 15px; }
.ticket-body .ticket-items + .call-reason { border-top: 1px dashed #e8ece9; }
.ticket-card > footer { border-left: 1px solid #edf0ed; border-top: 0; flex-direction: column; align-items: stretch; gap: 7px; justify-content: center; padding: 12px; }
.ticket-card > footer .ticket-total { background: transparent; border-top: 0; padding: 0 2px; }
.ticket-actions { align-items: center; display: flex; gap: 7px; }

/* Collapsed table bills: one compact strip so the queue stays on screen */
.open-bills-tools { align-items: flex-end; display: flex; flex-direction: column; gap: 7px; }
.open-bills-tools > p { color: rgba(255,255,255,.55); font-size: 9px; margin: 0; }
.open-bills-tools > button { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 8px; color: #fff; font-size: 8px; font-weight: 800; letter-spacing: .05em; min-height: 30px; padding: 0 11px; text-transform: uppercase; white-space: nowrap; }
.open-bills-tools > button:hover { background: rgba(255,255,255,.2); }
.open-bills-panel.collapsed { padding: 16px 18px; }
.open-bills-panel.collapsed .open-bills-heading { margin-bottom: 0; }
.open-bills-strip { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 13px; }
.open-bills-strip button { align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 20px; color: #fff; display: flex; gap: 7px; min-height: 30px; padding: 0 11px; }
.open-bills-strip button:hover { background: rgba(255,255,255,.19); }
.open-bills-strip button > span { font-size: 8px; font-weight: 700; opacity: .78; }
.open-bills-strip button > b { font-size: 9px; font-weight: 800; }
.open-bills-strip button > i { align-items: center; background: var(--staff-gold); border-radius: 50%; color: #3a2a08; display: flex; font-size: 7px; font-style: normal; font-weight: 800; height: 16px; justify-content: center; width: 16px; }

@media (max-width: 980px) {
  .ticket-card { grid-template-columns: 1fr; }
  .ticket-card > header { align-items: flex-start; border-bottom: 1px solid #edf0ed; border-right: 0; flex-direction: row; justify-content: space-between; }
  .ticket-card > footer { border-left: 0; border-top: 1px solid #edf0ed; flex-direction: row; justify-content: space-between; }
  .ticket-card > footer .ticket-actions { flex: 1; }
  .open-bills-heading { align-items: stretch; flex-direction: column; gap: 10px; }
  .open-bills-tools { align-items: stretch; flex-direction: row; justify-content: space-between; }
}

/* Zone (rejoni) management */
.zone-modal { max-width: 560px; }
.zone-add { display: grid; gap: 8px; grid-template-columns: 1fr auto; margin: 16px 0 10px; }
.zone-add input { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 11px; min-height: 40px; padding: 0 12px; width: 100%; }
.zone-list { display: grid; gap: 7px; }
.zone-list > div { align-items: center; background: #f7f9f7; border-radius: 10px; display: flex; gap: 8px; padding: 9px 11px; }
.zone-list > div > span { display: grid; flex: 1; gap: 1px; min-width: 0; }
.zone-list > div > span > strong { font-size: 11px; }
.zone-list > div > span > small { color: var(--muted); font-size: 8px; }
.zone-list > div > input { background: #fff; border: 1px solid #dce2de; border-radius: 8px; flex: 1; font-size: 11px; min-height: 34px; padding: 0 10px; }
.zone-list button { font-size: 8px; min-height: 32px; padding: 0 10px; }
.zone-order { display: flex; gap: 3px; }
.zone-order button { background: #fff; border: 1px solid #dce2de; border-radius: 7px; color: var(--muted); font-size: 8px; min-height: 28px; padding: 0 7px; }
.zone-order button:disabled { opacity: .35; }
.danger-button { background: #fff; border: 1px solid #e6c4b9; border-radius: 8px; color: var(--coral); font-weight: 700; }
.danger-button:disabled { border-color: #e5e9e6; color: var(--muted); }

.table-waiter { background: #eef4f1; border-radius: 20px; color: var(--green); display: inline-block; font-size: 7px; font-style: normal; font-weight: 800; justify-self: start; letter-spacing: .04em; margin-top: 4px; padding: 3px 7px; text-transform: uppercase; }
.table-waiter.claimed { background: #fdf1dd; color: #7a5a15; }

/* Waiter phone app */
.waiter-page {
  --waiter-surface: color-mix(in srgb, var(--brand-primary, #174d40) 84%, #10221c);
  --waiter-ink: color-mix(in srgb, var(--brand-primary, #174d40) 88%, #12241f);
  --waiter-gold: var(--brand-accent, #e5bd79);
  background: #eef1ee;
  margin: 0 auto;
  max-width: 720px;
  min-height: 100vh;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.waiter-header { align-items: center; background: var(--waiter-surface); color: #fff; display: flex; justify-content: space-between; padding: max(12px, env(safe-area-inset-top)) 15px 12px; position: sticky; top: 0; z-index: 40; }
.waiter-header .staff-brand > span { height: 38px; width: 38px; }
.waiter-header .staff-brand strong { font-size: 13px; }
.waiter-header .staff-brand small { color: rgba(255,255,255,.55); font-size: 8px; }
.waiter-header > button { background: var(--waiter-gold); border: 0; border-radius: 50%; color: #2c2308; font-size: 10px; font-weight: 800; height: 38px; width: 38px; }

.waiter-summary { background: var(--waiter-surface); color: #fff; display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); padding: 0 12px 14px; }
.waiter-summary > div { display: grid; gap: 2px; text-align: center; }
.waiter-summary b { font-family: Georgia, serif; font-size: 17px; font-weight: 600; }
.waiter-summary span { color: rgba(255,255,255,.6); font-size: 8px; }

.waiter-main { display: grid; gap: 10px; padding: 14px 12px; }
.waiter-empty { background: #fff; border: 1px dashed #d5dcd7; border-radius: 14px; padding: 24px 18px; text-align: center; }
.waiter-empty h2 { font-family: Georgia, serif; font-size: 19px; font-weight: 500; margin: 0 0 6px; }
.waiter-empty p { color: var(--muted); font-size: 10px; margin: 0; }

.waiter-table { background: #fff; border: 1px solid #dfe4e1; border-radius: 14px; box-shadow: 0 6px 18px rgba(29,48,41,.05); overflow: hidden; }
.waiter-table.has-requests { border-color: var(--waiter-gold); box-shadow: 0 0 0 1px var(--waiter-gold); }
.waiter-table > header { align-items: center; border-bottom: 1px solid #edf0ed; display: flex; justify-content: space-between; padding: 13px 14px; }
.waiter-table > header strong { display: block; font-family: Georgia, serif; font-size: 19px; }
.waiter-table > header small { color: var(--muted); font-size: 8px; }
.waiter-table-total { color: var(--waiter-ink); font-family: Georgia, serif; font-size: 18px; font-weight: 600; }
.waiter-table-total em { color: var(--muted); font-family: inherit; font-size: 9px; font-style: normal; font-weight: 400; }

.waiter-requests { display: grid; gap: 6px; padding: 11px 14px; }
.waiter-requests > div { align-items: center; background: #f7faf8; border-radius: 10px; display: flex; gap: 9px; padding: 9px 10px; }
.waiter-requests > div.call { background: #fff4f0; }
.waiter-requests > div > span { align-items: center; background: #e9f3ef; border-radius: 8px; color: var(--waiter-ink); display: flex; flex: 0 0 auto; font-size: 13px; height: 32px; justify-content: center; width: 32px; }
.waiter-requests > div.call > span { background: #ffe6dd; color: var(--coral); }
.waiter-requests p { display: grid; flex: 1; gap: 2px; margin: 0; min-width: 0; }
.waiter-requests strong { font-size: 10px; }
.waiter-requests small { color: var(--muted); font-size: 8px; }
.waiter-requests > div > button { background: var(--waiter-ink); border: 0; border-radius: 9px; color: #fff; font-size: 13px; height: 36px; width: 44px; }

.waiter-items { border-top: 1px dashed #e8ece9; display: grid; gap: 5px; padding: 10px 14px; }
.waiter-items > div { align-items: center; display: flex; gap: 8px; }
.waiter-items > div > b { align-items: center; background: #edf3f0; border-radius: 6px; color: var(--waiter-ink); display: flex; flex: 0 0 auto; font-size: 8px; height: 20px; justify-content: center; width: 24px; }
.waiter-items > div > span { flex: 1; font-size: 9px; min-width: 0; }
.waiter-items > div > em { font-size: 9px; font-style: normal; font-weight: 700; white-space: nowrap; }
.waiter-items .staff-entered > b { background: color-mix(in srgb, var(--waiter-gold) 24%, #fff); color: #6d5320; }

.waiter-table-actions { align-items: center; border-top: 1px solid #edf0ed; display: flex; flex-wrap: wrap; gap: 7px; padding: 11px 14px; }
.waiter-table-actions button { border: 0; border-radius: 10px; flex: 1; font-size: 10px; font-weight: 800; min-height: 44px; }
.waiter-table-actions button:not(.ghost):not(.text-button) { background: var(--waiter-ink); color: #fff; }
.waiter-table-actions button.ghost { background: #fff; border: 1px solid var(--waiter-ink); color: var(--waiter-ink); }
.waiter-table-actions .text-button { background: transparent; color: var(--muted); flex: 0 0 100%; font-size: 9px; font-weight: 700; min-height: 32px; text-decoration: underline; }
.waiter-idle { color: var(--muted); flex: 1; font-size: 9px; margin: 0; }

.waiter-free { margin-top: 4px; }
.waiter-free-toggle { background: #fff; border: 1px dashed #cfd7d2; border-radius: 12px; color: var(--waiter-ink); font-size: 10px; font-weight: 800; min-height: 46px; width: 100%; }
.waiter-free-grid { display: grid; gap: 7px; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); margin-top: 8px; }
.waiter-free-grid button { background: #fff; border: 1px solid #dfe4e1; border-radius: 11px; display: grid; gap: 2px; min-height: 56px; padding: 9px; }
.waiter-free-grid button:hover { border-color: var(--waiter-ink); }
.waiter-free-grid strong { font-size: 11px; }
.waiter-free-grid small { color: var(--muted); font-size: 8px; }

/* Guest screen for a restaurant still on the trial plan */
.trial-guest { background: var(--brand-bg); color: var(--brand-text); min-height: 100vh; }
.trial-guest-main { display: grid; justify-items: center; margin: 0 auto; max-width: 460px; padding: 42px 22px 60px; text-align: center; }
.trial-guest-mark { align-items: center; background: var(--brand-primary); border-radius: 50%; color: #fff; display: flex; font-size: 34px; height: 88px; justify-content: center; width: 88px; }
.trial-guest-main h1 { font-family: Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin: 22px 0 8px; }
.trial-guest-main > p { color: color-mix(in srgb, var(--brand-text) 62%, transparent); font-size: 12px; line-height: 1.55; margin: 0 0 26px; }
.trial-guest-actions { display: grid; gap: 9px; width: 100%; }
.trial-guest-actions button { background: var(--brand-primary); border: 0; border-radius: calc(var(--brand-radius) * .55); color: #fff; font-size: 13px; font-weight: 700; min-height: 58px; width: 100%; }
.trial-guest-actions button:nth-child(n+2) { background: color-mix(in srgb, var(--brand-primary) 12%, #fff); color: var(--brand-primary); }
.trial-guest-actions button:disabled { opacity: .55; }
.trial-guest-main > small { color: color-mix(in srgb, var(--brand-text) 45%, transparent); display: block; font-size: 10px; margin-top: 24px; }

/* Platform owner: clients and their plans */
.platform-page { margin: 0 auto; max-width: 1000px; padding: 40px clamp(18px, 4vw, 40px) 70px; }
.platform-page > header h1 { font-family: Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: -.03em; margin: 6px 0 8px; }
.platform-page > header p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; max-width: 620px; }
.platform-loading { color: var(--muted); font-size: 11px; padding: 24px 0; }
.platform-stats { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); margin: 26px 0 18px; }
.platform-stats > div { background: #fff; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 3px; padding: 15px; }
.platform-stats b { font-family: Georgia, serif; font-size: 25px; font-weight: 600; }
.platform-stats span { color: var(--muted); font-size: 9px; }

.platform-list { display: grid; gap: 9px; }
.platform-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(230px, 280px); padding: 16px; }
.platform-row.trial { border-color: #e6cfa4; }
.platform-row-main { display: grid; gap: 3px; min-width: 0; }
.platform-row-main strong { font-family: Georgia, serif; font-size: 19px; font-weight: 600; }
.platform-row-main small { color: var(--muted); font-size: 9px; }
.platform-row-main em { color: var(--ink); font-size: 9px; font-style: normal; opacity: .7; }
.platform-row-main i { background: #f4f6f4; border-radius: 7px; color: var(--muted); font-size: 9px; font-style: normal; justify-self: start; margin-top: 5px; padding: 5px 8px; }
.platform-row-side { align-content: start; display: grid; gap: 7px; justify-items: stretch; }
.platform-row-side > small { color: var(--muted); font-size: 8px; }
.platform-row-side input { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 10px; min-height: 36px; padding: 0 10px; }
.platform-badge { border-radius: 20px; font-size: 8px; font-weight: 800; justify-self: start; letter-spacing: .07em; padding: 5px 10px; text-transform: uppercase; }
.platform-badge.trial { background: #fdf1dd; color: #7a5a15; }
.platform-badge.active { background: #e7f4ee; color: var(--green); }

@media (max-width: 760px) {
  .platform-stats { grid-template-columns: 1fr; }
  .platform-row { grid-template-columns: 1fr; }
}

/* Shared photo library: picker inside the item editor */
.library-pick-row { align-items: center; display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.library-pick-chosen { align-items: center; background: #f4f7f5; border-radius: 10px; display: flex; gap: 8px; padding: 6px 9px; }
.library-pick-chosen img { border-radius: 6px; height: 34px; object-fit: cover; width: 34px; }
.library-pick-chosen small { font-size: 9px; font-weight: 700; }
.library-pick-chosen button { background: transparent; border: 0; color: var(--coral); font-size: 8px; font-weight: 800; text-decoration: underline; }

.library-backdrop { z-index: 220; }
.library-modal { background: #fff; border-radius: 18px; box-shadow: 0 24px 70px rgba(18,36,31,.28); display: flex; flex-direction: column; max-height: 86vh; max-width: 760px; overflow: hidden; padding: 20px 22px 22px; width: 100%; }
.library-search { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .08em; margin: 14px 0 12px; text-transform: uppercase; }
.library-search input { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 11px; min-height: 40px; padding: 0 12px; }
.library-grid { display: grid; gap: 9px; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); min-height: 0; overflow-y: auto; padding-bottom: 4px; }
.library-grid > button,
.library-grid.manage > div { background: #fff; border: 1px solid #e2e7e3; border-radius: 12px; display: grid; gap: 4px; justify-items: center; padding: 10px; text-align: center; }
.library-grid > button:hover { border-color: var(--green); }
.library-grid > button:disabled { opacity: .55; }
.library-grid img { aspect-ratio: 1; border-radius: 9px; object-fit: cover; width: 100%; }
.library-grid strong { font-size: 10px; }
.library-grid small { color: var(--muted); font-size: 8px; }
.library-grid.manage .danger-button { font-size: 8px; margin-top: 4px; min-height: 30px; padding: 0 10px; width: 100%; }

/* Library management on the platform page */
.library-manager { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-top: 28px; padding: 20px; }
.library-manager > header h2 { font-family: Georgia, serif; font-size: 24px; font-weight: 500; margin: 0 0 6px; }
.library-manager > header p { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 0; max-width: 640px; }
.library-upload { align-items: end; display: grid; gap: 9px; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; margin: 18px 0 12px; }
.library-upload label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .07em; text-transform: uppercase; }
.library-upload input { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 10px; min-height: 40px; padding: 0 11px; width: 100%; }
.library-upload input[type="file"] { padding: 8px 11px; }
.library-upload button { min-height: 40px; white-space: nowrap; }

@media (max-width: 820px) {
  .library-upload { grid-template-columns: 1fr; }
}

/* Languages and translations */
.language-manager .button-group select { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 10px; min-height: 40px; padding: 0 11px; }
.language-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 12px; }
.language-tabs > button { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 11px; display: flex; gap: 9px; padding: 9px 12px; text-align: left; }
.language-tabs > button.active { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.language-tabs strong { display: block; font-size: 11px; }
.language-tabs small { color: var(--muted); display: block; font-size: 8px; margin-top: 1px; }
.language-tabs em { align-items: center; background: #f2f4f2; border-radius: 50%; color: var(--muted); cursor: pointer; display: flex; font-size: 11px; font-style: normal; height: 20px; justify-content: center; width: 20px; }
.language-tabs em:hover { background: #ffe9e2; color: var(--coral); }
.language-hint { background: #f6f8f6; border-radius: 10px; color: var(--muted); font-size: 10px; line-height: 1.55; margin: 0 0 14px; padding: 11px 13px; }
.language-group { margin-bottom: 10px; padding: 16px 18px; }
.language-group > header h2 { font-family: Georgia, serif; font-size: 18px; font-weight: 500; margin: 0 0 12px; }
.language-fields { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.language-fields label { display: grid; gap: 4px; }
.language-fields span { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.language-fields input { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 10px; min-height: 38px; padding: 0 11px; width: 100%; }
.language-fields input::placeholder { color: #a9b3ad; font-style: italic; }

/* Trial countdown and expiry notice in admin */
.plan-banner { align-items: flex-start; background: #fdf6e8; border: 1px solid #e8d6a8; border-radius: 13px; display: flex; gap: 11px; margin-bottom: 18px; padding: 13px 15px; }
.plan-banner.ending { background: #fdf0e2; border-color: #e6c39a; }
.plan-banner.expired { background: #fdeee9; border-color: #e6bdad; }
.plan-banner > span { align-items: center; background: #e8d6a8; border-radius: 50%; color: #6b511a; display: flex; flex: 0 0 auto; font-size: 13px; font-weight: 800; height: 30px; justify-content: center; width: 30px; }
.plan-banner.expired > span { background: #e6bdad; color: #8a3d24; }
.plan-banner p { color: #5f544a; font-size: 10px; line-height: 1.55; margin: 0; }
.plan-banner strong { display: block; color: var(--ink); font-size: 11px; margin-bottom: 2px; }
.platform-row.expired { border-color: #e6bdad; }
.platform-badge.expired { background: #fdeee9; color: #8a3d24; }

/* Waiter-access note in Nalozi i uloge */
.team-waiter-note { align-items: flex-start; background: #eef4f1; border-radius: 12px; display: flex; gap: 10px; margin: 4px 18px 0; padding: 12px 14px; }
.team-waiter-note > span { align-items: center; background: #d9e9e1; border-radius: 50%; color: var(--green); display: flex; flex: 0 0 auto; font-size: 13px; height: 26px; justify-content: center; width: 26px; }
.team-waiter-note p { color: #4d5f57; font-size: 9px; line-height: 1.5; margin: 0; }
.team-waiter-note strong { display: block; color: var(--ink); font-size: 10px; margin-bottom: 3px; }
.team-waiter-link { align-items: center; background: #f6f8f6; border: 1px dashed #cfd9d3; border-radius: 10px; display: flex; gap: 10px; justify-content: space-between; margin: 8px 18px 16px; padding: 9px 12px; }
.team-waiter-link > code { color: var(--green); font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-waiter-link > button { flex: 0 0 auto; font-size: 8px; font-weight: 800; }

/* Forgot / reset password screens */
.forgot-password-link { color: var(--green); display: block; font-size: 9px; font-weight: 700; margin: -8px 0 4px; text-align: right; }
.login-card > .demo-note + .forgot-password-link { margin-top: 10px; }
/* Responsive */

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .guest-food-grid { grid-template-columns: repeat(3, 1fr); }
  .open-bills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .menu-table-head,
  .menu-row { grid-template-columns: minmax(260px, 2fr) 110px 85px 70px 85px; }
  .menu-table-head > span:nth-child(3),
  .menu-row > span:nth-child(3) { display: none; }
  .table-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .admin-topbar { justify-content: space-between; }
  .mobile-brand { display: flex; }
  .overview-grid,
  .branding-layout { grid-template-columns: 1fr; }
  .brand-preview { position: static; }
  .brand-preview .phone-frame { max-width: 310px; }
  .tables-layout { grid-template-columns: 1fr; }
  .qr-preview { position: static; }
  .guest-food-grid { grid-template-columns: repeat(2, 1fr); }
  .login-screen { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .language-screen { grid-template-columns: 1fr; }
  .language-art { min-height: 42vh; }
  .language-card { padding: 35px 24px 55px; }
}

@media (max-width: 720px) {
  .surface-switcher { justify-content: center; width: 100%; }
  .surface-switcher button { flex: 1; padding: 0 5px; }
  .admin-shell,
  .guest-page,
  .staff-page,
  .language-screen { padding-top: 48px; }
  .admin-topbar,
  .guest-header { top: 48px; }
  .admin-topbar { height: 58px; padding: 0 13px; }
  .topbar-actions .secondary-button { display: none; }
  .admin-content { padding: 22px 14px 40px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading > button,
  .page-heading > .button-group { width: 100%; }
  .page-heading .button-group > * { flex: 1; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid article { min-height: 120px; }
  .overview-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .menu-toolbar { flex-wrap: wrap; }
  .search-box { flex-basis: 100%; max-width: none; }
  .menu-panel { background: transparent; border: 0; overflow: visible; }
  .menu-table-head { display: none; }
  .menu-rows { display: grid; gap: 10px; }
  .menu-row { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; grid-template-columns: 1fr auto; min-height: 0; padding: 12px; }
  .menu-item-info { grid-column: 1 / -1; }
  .menu-row .table-category,
  .menu-row > span,
  .menu-row > .table-price { display: none !important; }
  .menu-row > .toggle { margin: 12px 0 0 74px; }
  .menu-row .row-actions { margin-top: 7px; }
  .table-footer { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .side-modal { border-radius: 16px 16px 0 0; margin-top: auto; max-height: calc(100vh - 35px); padding: 20px; }
  .item-form > footer { margin: 20px -20px -20px; padding: 15px 20px; }
  .table-stats { align-items: stretch; padding: 10px; }
  .table-stats span { padding: 0 10px; text-align: center; }
  .table-stats b { display: block; }
  .table-card-grid { grid-template-columns: 1fr 1fr; padding: 0 12px; }
  .panel-heading { padding: 14px; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { display: flex; overflow-x: auto; position: static; }
  .settings-nav button { flex: 0 0 auto; }
  .team-form .form-grid { grid-template-columns: 1fr; }
  .team-member { grid-template-columns: 34px minmax(0, 1fr) auto auto auto; }
  .team-member > i { display: none; }
  .color-grid,
  .style-options { grid-template-columns: 1fr; }
  .guest-header { height: 63px; padding: 0 13px; }
  .guest-brand strong { font-size: 12px; }
  .guest-brand small { display: none; }
  .guest-main { padding: 28px 14px 115px; }
  .guest-intro { align-items: flex-start; }
  .guest-intro div > span { display: block; max-width: 190px; }
  .call-waiter { border-radius: 50%; display: flex; height: 48px; padding: 7px; width: 48px; }
  .call-waiter > span { height: 34px; margin: 0; width: 34px; }
  .call-waiter strong,
  .call-waiter small { display: none; }
  .guest-search { max-width: none; }
  .guest-categories { margin-bottom: 24px; }
  .guest-food-grid { gap: 11px; grid-template-columns: 1fr 1fr; }
  .guest-food-card > .food-thumb { height: 126px; }
  .guest-food-copy { padding: 11px; }
  .guest-food-copy h3 { font-size: 14px; }
  .guest-food-copy > p { display: -webkit-box; min-height: 33px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .guest-food-copy > small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .guest-footer { padding: 18px 14px; }
  .staff-header { height: 60px; padding: 0 13px; }
  .staff-status > span,
  .staff-status button:first-of-type { display: none; }
  .staff-main { padding: 23px 13px 80px; }
  .staff-heading .clock { display: none; }
  .staff-heading h1 { font-size: 29px; }
  .open-bills-panel { border-radius: 15px; margin-top: 19px; padding: 14px; }
  .open-bills-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .open-bills-grid { grid-template-columns: 1fr; }
  .open-bill-card { padding: 14px; }
  .open-bill-card > button { min-height: 44px; }
  .staff-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .staff-tabs { width: 100%; }
  .staff-tabs button { flex: 1; }
  .staff-filters { max-width: 100%; overflow-x: auto; padding-bottom: 10px; width: 100%; }
  .staff-filters > * { flex: 0 0 auto; }

  .undo-bar { bottom: 12px; max-width: calc(100% - 24px); white-space: nowrap; }
}

@media (max-width: 440px) {
  .metric-grid { grid-template-columns: 1fr; }
  .metric-grid article { min-height: 104px; }
  .guest-food-grid { grid-template-columns: 1fr; }
  .guest-food-card { display: grid; grid-template-columns: 120px 1fr; }
  .guest-food-card > .food-thumb { height: 100%; min-height: 170px; }
  .guest-food-copy h3 { margin-top: 7px; }
  .guest-food-copy > p { min-height: 30px; }
  .guest-section-heading h2 { font-size: 24px; }
  .language-art { min-height: 38vh; }
  .language-art h1 { font-size: 36px; }
  .table-card-grid { grid-template-columns: 1fr; }
  .hours-row { grid-template-columns: 1fr 70px 8px 70px; }
  .hours-row button { display: none; }
}

@media print {
  .admin-sidebar,
  .admin-topbar,
  .page-heading,
  .tables-list,
  .qr-header,
  .qr-actions,
  .secure-note { display: none !important; }
  .admin-shell,
  .admin-main,
  .admin-content,
  .tables-layout,
  .qr-preview { background: #fff; display: block; margin: 0; padding: 0; }
  .qr-preview { border: 0; }
  .print-card { margin: 20mm auto; }
}

/* Flexible menu, tables and branding */

.manage-categories {
  border-style: dashed !important;
}

.category-modal {
  max-width: 720px;
}

.category-editor-list {
  display: grid;
  gap: 9px;
  margin: 18px 0;
  max-height: 48vh;
  overflow: auto;
}

.category-editor-row {
  align-items: center;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 11px;
  display: grid;
  gap: 10px;
  grid-template-columns: auto minmax(150px, 1fr) auto auto auto;
  padding: 9px;
}

.category-reorder {
  display: grid;
  gap: 3px;
}

.category-reorder button {
  background: #fff;
  border: 1px solid #dfe5e1;
  border-radius: 6px;
  height: 18px;
  line-height: 1;
  width: 22px;
}

.category-reorder button:disabled {
  opacity: 0.35;
}

.danger-button {
  align-items: center;
  background: #fff;
  border: 1px solid #f0c9bd;
  border-radius: 10px;
  color: var(--coral);
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  gap: 9px;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
}

.danger-button:hover {
  background: #fff5f1;
}

.category-editor-row > input,
.category-add-row input {
  background: #fff;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 11px;
}

.category-active {
  align-items: center;
  display: flex;
  font-size: 9px;
  font-weight: 700;
  gap: 7px;
  margin: 0;
}

.category-active input,
.table-active-row input {
  accent-color: var(--green);
  height: 18px;
  width: 18px;
}

.category-add-row {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  padding-top: 16px;
}

.category-add-row label {
  display: grid;
  font-size: 9px;
  font-weight: 750;
  gap: 7px;
  margin: 0;
}

.variant-editor {
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-top: 15px;
  padding: 12px;
}

.variant-editor-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.variant-editor-heading strong,
.variant-editor-heading small { display: block; }
.variant-editor-heading strong { font-size: 10px; }
.variant-editor-heading small { color: var(--muted); font-size: 8px; margin-top: 3px; }

.variant-editor-row {
  align-items: end;
  display: grid;
  gap: 9px;
  grid-template-columns: minmax(130px, 1fr) minmax(100px, .7fr) auto;
  margin-top: 9px;
}

.variant-editor-row label {
  display: grid;
  font-size: 8px;
  font-weight: 700;
  gap: 5px;
  margin: 0;
}

.variant-editor-row input {
  background: #fff;
  border: 1px solid #dfe5e1;
  border-radius: 8px;
  min-height: 40px;
  padding: 0 10px;
}

.variant-remove {
  background: transparent;
  border: 0;
  color: #b34f3d;
  font-size: 8px;
  font-weight: 750;
  min-height: 40px;
  padding: 0 5px;
}

.flexible-item-form > .upload-zone {
  margin-top: 14px;
}

.variant-options {
  display: grid;
  gap: 7px;
  margin: 15px 0 5px;
}

.variant-options button {
  align-items: center;
  background: color-mix(in srgb, var(--brand-bg) 72%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-text) 13%, transparent);
  border-radius: 10px;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  min-height: 43px;
  padding: 0 12px;
}

.variant-options button.active {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 1px var(--brand-primary);
}

.variant-options strong { color: var(--brand-primary); }

.table-card.editable {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr auto;
  padding: 5px;
}

.table-card-main {
  align-items: center;
  background: transparent;
  border: 0;
  display: flex;
  gap: 9px;
  min-width: 0;
  padding: 4px;
  text-align: left;
}

.table-card-main > span:last-child {
  min-width: 0;
}

.table-card-main strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-edit-button {
  align-self: stretch;
  background: #f3f6f4;
  border: 0;
  border-radius: 7px;
  color: var(--green);
  font-size: 8px;
  font-weight: 750;
  padding: 0 9px;
}

.table-active-row {
  align-items: center;
  background: #f2f7f4;
  border-radius: 11px;
  display: flex;
  justify-content: space-between;
  margin: 15px 0 0;
  padding: 12px;
}

.table-active-row strong,
.table-active-row small {
  display: block;
}

.table-active-row strong { font-size: 10px; }
.table-active-row small { color: var(--muted); font-size: 8px; margin-top: 3px; }

.qr-print-sheet,
.single-print-sheet {
  display: none;
}

.brand-logo-row {
  align-items: center;
  background: #f7f9f7;
  border: 1px solid var(--line);
  border-radius: 13px;
  display: flex;
  gap: 14px;
  margin: 14px 0 16px;
  padding: 12px;
}

.brand-logo-preview {
  align-items: center;
  background: var(--brand-primary);
  border-radius: 14px;
  color: #fff;
  display: flex;
  flex: 0 0 72px;
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  height: 72px;
  justify-content: center;
  overflow: hidden;
}

.brand-logo-actions {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand-logo-actions label { margin: 0; }
.brand-logo-actions input { display: none; }
.text-button { background: transparent; border: 0; font-size: 9px; font-weight: 700; padding: 5px 2px; }
.text-button.danger { color: #b34f3d; }

.guest-brand > span,
.language-logo,
.mini-logo,
.brand-name-row > span {
  overflow: hidden;
}

.guest-brand > span img,
.language-logo img,
.mini-logo img,
.brand-logo-preview img,
.brand-name-row > span img {
  background: #fff;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.preview-app header > span img {
  background: #fff;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.preview-call {
  align-items: center;
  background: var(--brand-accent);
  border: 0;
  border-radius: 11px;
  bottom: 8px;
  color: #fff;
  display: flex;
  gap: 7px;
  left: 8px;
  min-height: 42px;
  padding: 6px 9px;
  position: absolute;
  right: 8px;
  text-align: left;
}

.preview-app { padding-bottom: 58px; position: relative; }
.preview-call > span { font-size: 16px; }
.preview-call b { font-size: 8px; }
.preview-call small { display: block; font-size: 6px; margin-top: 2px; opacity: .7; }

.guest-mobile-dock {
  display: none;
}

/* The cPanel build has no prototype toolbar. */
.guest-page {
  min-height: 100vh;
  padding-top: 0;
}

.guest-header {
  top: 0;
}

@media (max-width: 720px) {
  .guest-page { padding-top: 0; }
  .guest-header {
    height: 58px;
    padding: 0 11px;
    top: 0;
  }
  .guest-brand { gap: 8px; min-width: 0; }
  .guest-brand > span { flex: 0 0 34px; height: 34px; width: 34px; }
  .guest-brand strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .guest-header-actions { gap: 4px; }
  .guest-header-actions > button { min-height: 38px; padding: 0 8px; }
  .guest-table { padding-left: 7px; }
  .guest-table b { margin-left: 2px; padding: 6px; }
  .guest-main { min-height: 0; padding: 20px 12px 150px; }
  .guest-intro { display: block; }
  .guest-intro h1 { font-size: 32px; margin-bottom: 8px; }
  .guest-intro div > span { font-size: 10px; max-width: none; }
  .guest-intro > .call-waiter { display: none; }
  .guest-search { margin-top: 20px; min-height: 46px; }
  .guest-search input { font-size: 14px; }
  .guest-categories {
    gap: 7px;
    margin: 14px -12px 20px;
    padding: 3px 12px 6px;
    scrollbar-width: none;
  }
  .guest-categories::-webkit-scrollbar { display: none; }
  .guest-categories button { font-size: 11px; min-height: 38px; padding: 0 14px; }
  .guest-section-heading { margin-bottom: 12px; }
  .guest-section-heading .eyebrow { margin-bottom: 4px; }
  .guest-section-heading h2 { font-size: 24px; }
  .guest-food-grid { gap: 9px; grid-template-columns: 1fr; }
  .guest-food-card {
    display: grid;
    grid-template-columns: 102px minmax(0, 1fr);
    min-height: 118px;
  }
  .guest-food-card > .food-thumb {
    height: 100%;
    min-height: 118px;
  }
  .guest-food-copy { display: flex; flex-direction: column; padding: 10px 11px; }
  .guest-food-copy .tag-row { display: none; }
  .guest-food-copy h3 { font-size: 16px; line-height: 1.15; margin: 1px 0 5px; }
  .guest-food-copy > p {
    display: -webkit-box;
    font-size: 10px;
    line-height: 1.35;
    margin-bottom: 5px;
    min-height: 27px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .guest-food-copy > small { font-size: 9px; }
  .guest-food-copy > div:last-child { margin-top: auto; padding-top: 6px; }
  .guest-food-copy > div:last-child strong { font-size: 13px; }
  .guest-food-copy > div:last-child button { height: 36px; width: 36px; }
  .guest-cart-bar { display: none; }
  .guest-mobile-dock {
    align-items: stretch;
    background: color-mix(in srgb, var(--brand-bg) 94%, #fff);
    border-top: 1px solid color-mix(in srgb, var(--brand-text) 10%, transparent);
    bottom: 0;
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    left: 0;
    padding: 9px 10px max(9px, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 55;
  }
  .guest-mobile-dock.has-cart { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .mobile-waiter-action,
  .mobile-cart-action {
    align-items: center;
    border-radius: 13px;
    display: flex;
    min-height: 56px;
    padding: 7px 10px;
    text-align: left;
  }
  .mobile-waiter-action {
    background: color-mix(in srgb, var(--brand-accent) 13%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand-accent) 38%, transparent);
    color: var(--brand-text);
  }
  .mobile-waiter-action > span {
    align-items: center;
    background: var(--brand-accent);
    border-radius: 10px;
    color: #fff;
    display: flex;
    flex: 0 0 38px;
    font-size: 17px;
    height: 38px;
    justify-content: center;
    margin-right: 8px;
  }
  .mobile-waiter-action b,
  .mobile-cart-action b { min-width: 0; }
  .mobile-waiter-action strong,
  .mobile-waiter-action small,
  .mobile-cart-action strong,
  .mobile-cart-action small { display: block; }
  .mobile-waiter-action strong,
  .mobile-cart-action strong { font-size: 11px; line-height: 1.15; }
  .mobile-waiter-action small,
  .mobile-cart-action small { font-size: 8px; margin-top: 3px; opacity: .65; }
  .mobile-cart-action {
    background: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    color: #fff;
  }
  .mobile-cart-action > span {
    align-items: center;
    background: rgba(255,255,255,.16);
    border-radius: 9px;
    display: flex;
    flex: 0 0 36px;
    font-size: 11px;
    font-weight: 800;
    height: 38px;
    justify-content: center;
    margin-right: 8px;
  }
  .mobile-cart-action i { font-style: normal; margin-left: auto; }
  .guest-footer { display: none; }
  .category-editor-row { grid-template-columns: auto 1fr auto; }
  .category-editor-row > .secondary-button,
  .category-editor-row > .danger-button { grid-column: 1 / -1; }
  .category-add-row { grid-template-columns: 1fr; }
  .pos-key-add-row,
  .pos-webhook-row { grid-template-columns: 1fr; }
  .restaurant-switch-panel { left: -34px; width: min(280px, calc(100vw - 40px)); }
  .variant-editor-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .variant-editor-heading .secondary-button { width: 100%; }
  .variant-editor-row { grid-template-columns: 1fr 1fr; }
  .variant-editor-row .variant-remove { grid-column: 1 / -1; }
  .table-card-grid { grid-template-columns: 1fr; }
  .menu-row > .table-price {
    align-self: center;
    display: block !important;
    font-size: 13px;
    grid-column: 1;
    margin: 10px 0 0 74px;
  }
}

@media (max-width: 380px) {
  .guest-mobile-dock.has-cart { grid-template-columns: 1fr 1fr; }
  .mobile-waiter-action,
  .mobile-cart-action { padding: 6px; }
  .mobile-waiter-action > span,
  .mobile-cart-action > span { flex-basis: 32px; height: 34px; margin-right: 6px; }
  .mobile-waiter-action small { display: none; }
}

@media print {
  @page { size: A4 portrait; margin: 8mm; }
  .tables-manager > * { display: none !important; }
  .tables-manager.print-all .qr-print-sheet {
    display: grid !important;
    gap: 3mm;
    grid-template-columns: repeat(4, 1fr);
  }
  .tables-manager.print-single .single-print-sheet {
    align-items: center;
    display: flex !important;
    justify-content: center;
    min-height: 270mm;
  }
  .qr-print-sheet .print-card {
    break-inside: avoid;
    margin: 0;
    min-height: 49mm;
    padding: 2.5mm 2mm;
    width: 100%;
  }
  .qr-print-sheet .mini-logo { height: 7mm; margin-bottom: 1mm; width: 7mm; }
  .qr-print-sheet .print-card h3 { font-size: 8.5pt; }
  .qr-print-sheet .print-card p { font-size: 5.5pt; margin: 1mm 0; }
  .qr-print-sheet .qr-image { height: 23mm; padding: 1mm; width: 23mm; }
  .qr-print-sheet .print-card > small { font-size: 5pt; margin-top: 1mm; }
  .qr-print-sheet .print-card > strong { font-size: 14pt; }
  .qr-print-sheet .print-card > em { font-size: 5.5pt; margin-top: .5mm; }
  .single-print-sheet .print-card { margin: 0; }
}

/* Platform panel v2: subscription state by colour, plus contacts and people
   per client. Purple = trial, green = paid, yellow = 10 days out, orange = 5
   days out, red = lapsed or basic, black = locked. */
.platform-stats { grid-template-columns: repeat(3, 1fr); }
.platform-stats > div { border-left: 3px solid var(--line); }
.platform-stats > div.tone-trial { border-left-color: #8b5cf6; }
.platform-stats > div.tone-basic { border-left-color: #c2482b; }
.platform-stats > div.tone-ok { border-left-color: var(--green); }
.platform-stats > div.tone-urgent { border-left-color: #d97b2e; }
.platform-stats > div.tone-locked { border-left-color: #2b3230; }

.platform-toolbar { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin: 0 0 14px; }
.platform-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.platform-filters button { background: #fff; border: 1px solid var(--line); border-radius: 20px; color: #43514c; font-size: 9px; font-weight: 800; letter-spacing: .04em; min-height: 32px; padding: 0 13px; text-transform: uppercase; }
.platform-filters button.active { background: var(--green); border-color: var(--green); color: #fff; }
.platform-search { background: #fff; border: 1px solid #dce2de; border-radius: 9px; flex: 1 1 240px; font-size: 10px; max-width: 340px; min-height: 36px; padding: 0 12px; }

.platform-row { align-items: start; }
.platform-row.tone-trial { border-color: #d6c7ee; box-shadow: inset 3px 0 0 #8b5cf6; }
.platform-row.tone-ok { border-color: #c9e2d5; box-shadow: inset 3px 0 0 var(--green); }
.platform-row.tone-soon { border-color: #ecd9a2; box-shadow: inset 3px 0 0 #d8a72c; }
.platform-row.tone-urgent { border-color: #f0c39a; box-shadow: inset 3px 0 0 #d97b2e; }
.platform-row.tone-grace { border-color: #eeb3a2; box-shadow: inset 3px 0 0 #c2482b; }
.platform-row.tone-basic { border-color: #eeb3a2; box-shadow: inset 3px 0 0 #c2482b; }
.platform-row.tone-locked { background: #fbfbfa; border-color: #b9bfbc; box-shadow: inset 3px 0 0 #2b3230; }

.platform-row-title { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.platform-badge.tone-trial { background: #f2ecfd; color: #5b3fa0; }
.platform-badge.tone-ok { background: #e7f4ee; color: var(--green); }
.platform-badge.tone-soon { background: #fdf6e0; color: #7a5a15; }
.platform-badge.tone-urgent { background: #fdefe1; color: #8a5320; }
.platform-badge.tone-grace { background: #fdeae4; color: #8a2f1c; }
.platform-badge.tone-basic { background: #fdeae4; color: #8a2f1c; }
.platform-badge.tone-locked { background: #2b3230; color: #fff; }

.platform-status { color: #43514c; font-size: 9.5px; font-weight: 700; margin-top: 3px; }
.platform-note { background: #f4f6f4; border-radius: 7px; color: var(--muted); font-size: 9px; font-style: normal; justify-self: start; margin-top: 5px; padding: 5px 8px; }
.platform-empty { color: var(--muted); font-size: 9px; margin: 6px 0 0; }

.platform-contact { display: grid; gap: 8px 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 10px 0 0; }
.platform-contact dt { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.platform-contact dd { color: var(--ink); font-size: 10px; margin: 2px 0 0; overflow-wrap: anywhere; }

.platform-managers { display: grid; gap: 5px; list-style: none; margin: 11px 0 0; padding: 0; }
.platform-managers li { align-items: center; background: #f5f8f6; border-radius: 9px; display: flex; flex-wrap: wrap; gap: 8px; padding: 7px 10px; }
.platform-managers strong { font-size: 10px; }
.platform-managers span { color: var(--muted); font-size: 9px; }
.platform-managers i { background: #fdeae4; border-radius: 6px; color: #8a2f1c; font-size: 8px; font-style: normal; padding: 2px 6px; }

.platform-row-tabs { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.platform-row-tabs button, .platform-row-tabs a { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #43514c; font-size: 9px; font-weight: 800; min-height: 30px; padding: 7px 11px; text-decoration: none; }
.platform-row-tabs button.active { background: #eef4f1; border-color: #cadbd3; color: var(--green); }

.platform-people { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.platform-people table { border-collapse: collapse; font-size: 9.5px; width: 100%; }
.platform-people th { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; padding: 0 7px 6px 0; text-align: left; text-transform: uppercase; }
.platform-people td { border-top: 1px solid var(--line); overflow-wrap: anywhere; padding: 7px 7px 7px 0; vertical-align: middle; }
.platform-people tr.editing { background: #f7faf8; }
.platform-people input, .platform-people select { background: #fff; border: 1px solid #dce2de; border-radius: 7px; font-size: 9.5px; min-height: 32px; padding: 0 8px; width: 100%; }
.platform-people-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.platform-people-actions button { background: #fff; border: 1px solid var(--line); border-radius: 7px; color: #43514c; font-size: 8.5px; font-weight: 800; min-height: 30px; padding: 0 9px; white-space: nowrap; }
.platform-people-actions button.primary-button { background: var(--green); border-color: var(--green); color: #fff; font-size: 8.5px; min-height: 30px; }
.platform-people-actions button:disabled { opacity: .5; }
.platform-people-actions .danger-link { border-color: #f0cec4; color: var(--coral); }

.platform-add-person, .platform-details { display: grid; gap: 9px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-top: 12px; }
.platform-add-person > label, .platform-details > label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .06em; text-transform: uppercase; }
.platform-add-person input, .platform-add-person select, .platform-details input { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 10px; min-height: 36px; padding: 0 10px; width: 100%; }
.platform-details > label.wide { grid-column: 1 / -1; }
.platform-add-person > small { color: var(--muted); font-size: 9px; grid-column: 1 / -1; line-height: 1.5; }
.platform-add-actions { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.platform-add-actions button:not(.primary-button) { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #43514c; font-size: 9px; font-weight: 800; min-height: 36px; padding: 0 12px; }
.platform-ok { color: var(--green); font-size: 9.5px; font-weight: 700; margin: 8px 0 0; }

.platform-months { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 4px; letter-spacing: .06em; text-transform: uppercase; }
.platform-months input { text-align: center; }
.platform-row-side .danger-button { min-height: 36px; }

@media (max-width: 820px) {
  .platform-people { overflow-x: auto; }
  .platform-people table { min-width: 620px; }
}

/* Text field with a dropdown of values already used, which collapses to the
   matches as typing continues. */
.combobox { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .07em; text-transform: uppercase; }
.combobox-field { position: relative; }
.combobox-field input { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 10px; min-height: 40px; padding: 0 32px 0 11px; width: 100%; }
.combobox-toggle { background: transparent; border: 0; bottom: 0; color: var(--muted); font-size: 13px; line-height: 1; padding: 0 10px; position: absolute; right: 0; top: 0; }
.combobox-list { background: #fff; border: 1px solid #dce2de; border-radius: 10px; box-shadow: 0 14px 34px rgba(18, 36, 31, .14); left: 0; list-style: none; margin: 4px 0 0; max-height: 210px; overflow-y: auto; padding: 5px; position: absolute; right: 0; top: 100%; z-index: 60; }
.combobox-list button { background: transparent; border: 0; border-radius: 7px; color: var(--ink); display: block; font-size: 10px; font-weight: 600; letter-spacing: 0; padding: 8px 9px; text-align: left; text-transform: none; width: 100%; }
.combobox-list button.active, .combobox-list button:hover { background: #eef4f1; color: var(--green); }
.combobox > small { color: var(--muted); font-size: 8.5px; font-weight: 600; letter-spacing: 0; line-height: 1.45; text-transform: none; }
.library-search .combobox { margin: 14px 0 12px; }

/* Locked and lapsed-subscription variants of the admin banner. */
.plan-banner.trial { background: #f6f1fe; border-color: #d6c7ee; }
.plan-banner.trial > span { background: #ddd0f6; color: #5b3fa0; }
.plan-banner.urgent { background: #fdefe1; border-color: #f0c39a; }
.plan-banner.urgent > span { background: #f0c39a; color: #8a5320; }
.plan-banner.locked { background: #f1f2f1; border-color: #b9bfbc; }
.plan-banner.locked > span { background: #2b3230; color: #fff; }

/* v2.1: the operations screen is a queue and nothing else, so the toolbar sits
   directly under the header and the cards get the rest of the wall. */
.staff-page.queue-only .staff-main { padding-top: 14px; }
.staff-page.queue-only .staff-toolbar { margin-bottom: 14px; }

@media (min-width: 1200px) {
  .staff-page.queue-only .ticket-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

/* Manager page: every open bill and request, then three months of history. */
.bills-page { background: var(--paper, #f7f9f7); min-height: 100vh; }
.bills-main { margin: 0 auto; max-width: 1180px; padding: 22px clamp(14px, 3vw, 30px) 60px; }
.bills-heading { align-items: end; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; margin-bottom: 18px; }
.bills-heading h1 { font-family: Georgia, serif; font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin: 5px 0 6px; }
.bills-heading > div:first-child p:not(.eyebrow) { color: var(--muted); font-size: 11px; line-height: 1.5; margin: 0; max-width: 520px; }
.bills-totals { display: flex; flex-wrap: wrap; gap: 9px; }
.bills-totals > div { background: #fff; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 2px; min-width: 118px; padding: 12px 14px; }
.bills-totals b { font-family: Georgia, serif; font-size: 22px; font-weight: 600; }
.bills-totals span { color: var(--muted); font-size: 9px; }
.bills-link { align-self: center; border: 1px solid var(--line); border-radius: 8px; color: #43514c; font-size: 9px; font-weight: 800; padding: 8px 11px; text-decoration: none; }
.staff-status select { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 10px; min-height: 34px; padding: 0 8px; }

.bills-filters { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-bottom: 16px; }
.bills-selects { display: flex; flex-wrap: wrap; gap: 10px; }
.bills-selects label, .history-filters label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 4px; letter-spacing: .06em; text-transform: uppercase; }
.bills-selects select, .history-filters select, .history-filters input { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 10px; min-height: 36px; padding: 0 10px; }
.bills-section { margin-bottom: 26px; }
.bills-section > h2 { align-items: center; display: flex; font-family: Georgia, serif; font-size: 19px; font-weight: 600; gap: 8px; margin: 0 0 11px; }
.bills-section > h2 span { background: #eef4f1; border-radius: 20px; color: var(--green); font-family: system-ui, sans-serif; font-size: 9px; font-weight: 800; padding: 3px 9px; }
.bills-empty { color: var(--muted); font-size: 10px; margin: 0; }
.bills-card-wrap { display: grid; gap: 4px; }
.bills-card-meta { color: var(--muted); font-size: 8.5px; padding-left: 3px; }

/* History and export. */
.history-panel { display: grid; gap: 14px; }
.history-filters { align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 15px; }
.history-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.history-actions .primary-button, .history-actions .secondary-button { font-size: 10px; min-height: 36px; padding: 0 13px; }
.history-summary { display: flex; flex-wrap: wrap; gap: 9px; }
.history-summary > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 2px; min-width: 120px; padding: 11px 13px; }
.history-summary b { font-family: Georgia, serif; font-size: 20px; font-weight: 600; }
.history-summary span { color: var(--muted); font-size: 9px; }
.history-note { background: #fdf6e8; border-radius: 9px; color: #7a5a15; font-size: 9.5px; margin: 0; padding: 9px 11px; }
.history-table { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; }
.history-table table { border-collapse: collapse; font-size: 10px; min-width: 780px; width: 100%; }
.history-table th { background: #f7faf8; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; padding: 10px; position: sticky; text-align: left; text-transform: uppercase; top: 0; }
.history-table td { border-top: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
.history-table tr:hover td { background: #fbfdfc; }

/* Waiter app: sound, notifications and the end-of-shift release. */
.waiter-header-actions { align-items: center; display: flex; gap: 8px; }
.waiter-header-actions button { background: rgba(255, 255, 255, .12); border: 0; border-radius: 9px; color: #fff; font-size: 10px; font-weight: 800; min-height: 34px; padding: 0 11px; }
.waiter-header-actions button.active { background: rgba(255, 255, 255, .24); }
.waiter-release-all { background: #fff; border: 1px solid #f0cec4; border-radius: 12px; color: var(--coral); font-size: 11px; font-weight: 800; margin: 16px 0 0; min-height: 46px; width: 100%; }

/* Sound settings in the admin panel. */
.sound-volume { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(140px, 260px); padding: 14px 18px; }
.sound-volume span { display: grid; gap: 2px; }
.sound-volume strong { font-size: 11px; }
.sound-volume small { color: var(--muted); font-size: 9px; }
.sound-volume input { width: 100%; }
.sound-row { border-top: 1px solid var(--line); display: grid; gap: 8px; padding: 14px 18px; }
.sound-row-head { align-items: center; display: flex; gap: 10px; justify-content: space-between; }
.sound-row-head strong { font-size: 11px; }
.sound-row-head .secondary-button { font-size: 9px; min-height: 32px; padding: 0 11px; }
.sound-row select { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 10px; min-height: 38px; padding: 0 10px; width: 100%; }
.sound-upload { position: relative; }
.sound-upload input { inset: 0; opacity: 0; position: absolute; width: 100%; }
.sound-upload span { background: #f5f8f6; border: 1px dashed #cadbd3; border-radius: 9px; color: var(--green); display: block; font-size: 9.5px; font-weight: 800; padding: 10px; text-align: center; }
.sound-hint { color: var(--muted); font-size: 9.5px; line-height: 1.5; margin: 0; padding: 0 18px 16px; }
.sound-hint code { background: #f4f6f4; border-radius: 5px; font-size: 9px; padding: 1px 5px; }

@media (max-width: 720px) {
  .bills-heading { align-items: start; flex-direction: column; }
  .sound-volume { grid-template-columns: 1fr; }
}

/* Fonts uploaded into storage/fonts. --brand-font holds the family name, set on
   the wrapper, and the @font-face rules are emitted next to it.
   The descendant selector is deliberate: headings on the guest page set Georgia
   explicitly, and a restaurant that uploads its own font expects to see it on
   the headings above all. A glyph the font lacks still falls back on its own. */
.restaurant-demo.font-custom .guest-page,
.restaurant-demo.font-custom .guest-page *,
.restaurant-demo.font-custom .language-screen,
.restaurant-demo.font-custom .language-screen *,
.restaurant-demo.font-custom .brand-preview,
.restaurant-demo.font-custom .brand-preview * {
  font-family: var(--brand-font), system-ui, -apple-system, "Segoe UI", sans-serif;
}

.font-picker { display: grid; gap: 8px; }
.font-picker > label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .06em; text-transform: uppercase; }
.font-picker select { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 11px; min-height: 40px; padding: 0 10px; width: 100%; }
.font-sample { background: #f7faf8; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; margin: 0; padding: 11px 13px; }
.font-manage { border-top: 1px dashed var(--line); display: grid; gap: 8px; padding-top: 10px; }
.font-upload { position: relative; }
.font-upload input { inset: 0; opacity: 0; position: absolute; width: 100%; }
.font-upload span { background: #f5f8f6; border: 1px dashed #cadbd3; border-radius: 9px; color: var(--green); display: block; font-size: 9.5px; font-weight: 800; padding: 10px; text-align: center; }
.font-manage ul { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.font-manage li { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 8px; justify-content: space-between; padding: 7px 10px; }
.font-manage li span { font-size: 10px; font-weight: 700; }
.font-manage > small { color: var(--muted); font-size: 9px; line-height: 1.55; }
.font-manage code { background: #f4f6f4; border-radius: 5px; font-size: 8.5px; padding: 1px 5px; }

/* --- v2.3 contrast fixes -------------------------------------------------- */

/* The bills page reuses .staff-header, but the --staff-* variables were only
   declared on .staff-page. Without them the dark header lost its background and
   left white text on a light page. Declared for both surfaces now. */
.bills-page {
  --staff-surface: color-mix(in srgb, var(--brand-primary, #174d40) 84%, #10221c);
  --staff-ink: color-mix(in srgb, var(--brand-primary, #174d40) 88%, #12241f);
  --staff-gold: var(--brand-accent, #e5bd79);
}

/* A hard fallback as well, so a missing variable can never repeat the same
   invisible-header bug on any surface that borrows this header. */
.staff-header {
  background: var(--staff-surface, #143b32);
}

/* Controls sitting on that dark header: white field, dark text. Inheriting the
   header's white text made these unreadable. */
.staff-status select {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .3);
  color: var(--ink);
}
.staff-status select option { color: var(--ink); }

.staff-status .bills-link {
  border-color: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .82);
}
.staff-status .bills-link:hover { background: rgba(255, 255, 255, .1); }

.staff-status .queue-clock {
  color: rgba(255, 255, 255, .72);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* "Uključi zvuk" has to stand out on the dark header without going white on
   white: it pulses in the brand accent with dark text instead. */
.staff-status button.needs-click {
  animation: sound-nudge 2.4s ease-in-out infinite;
  background: var(--staff-gold, #e5bd79);
  border-color: transparent;
  color: #2a2213;
  font-weight: 800;
}
@keyframes sound-nudge {
  0%, 100% { opacity: .82; }
  50% { opacity: 1; }
}

/* The top of the bills page needs the same clearance as the queue screen. */
.bills-page { padding-bottom: 0; }
.bills-main { padding-top: 26px; }

/* --- v2.3: notification bell, restaurant info, chips, shift board --------- */

/* Notifications are one bell in the header. The old banner ate a table's worth
   of screen on a phone. */
.waiter-bell { position: relative; }
.waiter-bell > button {
  background: rgba(255, 255, 255, .12);
  border: 0;
  border-radius: 9px;
  color: #fff;
  font-size: 13px;
  min-height: 34px;
  padding: 0 11px;
}
.waiter-bell > button.active { background: rgba(120, 226, 180, .26); }
.waiter-bell > button.blocked { background: rgba(214, 111, 83, .28); }
.waiter-bell-menu {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 16px 38px rgba(18, 36, 31, .22);
  display: grid;
  gap: 2px;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 190px;
  z-index: 60;
}
.waiter-bell-menu button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  min-height: 34px;
  padding: 0 9px;
  text-align: left;
}
.waiter-bell-menu button:hover { background: #eef4f1; }

/* Restaurant details and the sales contact card in Podešavanja. */
.info-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); padding: 14px 18px 4px; }
.info-grid label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .06em; text-transform: uppercase; }
.info-grid label.wide { grid-column: 1 / -1; }
.info-grid input { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 11px; min-height: 38px; padding: 0 11px; width: 100%; }
.info-actions { align-items: center; display: flex; gap: 10px; padding: 12px 18px 16px; }
.info-actions .primary-button { min-height: 38px; }
.info-saved { color: var(--green); font-size: 9.5px; font-weight: 700; }

.sales-card { display: grid; gap: 9px; padding: 14px 18px 18px; }
.sales-card p { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 0; }
.sales-row { display: grid; gap: 6px; }
.sales-row a, .sales-row span { color: var(--ink); font-size: 11px; font-weight: 700; text-decoration: none; }
.sales-row a:hover { text-decoration: underline; }
.sales-row small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sales-empty { background: #f4f6f4; border-radius: 9px; color: var(--muted); font-size: 9.5px; padding: 10px 12px; }

/* Guest chip controls. */
.chip-rows { display: grid; gap: 10px; padding: 4px 18px 16px; }
.chip-row { align-items: end; display: grid; gap: 9px; grid-template-columns: minmax(0, 1fr) auto; }
.chip-row label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 5px; letter-spacing: .06em; text-transform: uppercase; }
.chip-row input[type="text"] { background: #fff; border: 1px solid #dce2de; border-radius: 9px; font-size: 11px; min-height: 38px; padding: 0 11px; }
.chip-row-toggle { align-items: center; display: flex; gap: 7px; white-space: nowrap; }
.chip-row-toggle span { color: var(--muted); font-size: 9px; font-weight: 700; }

/* Shift board. */
.shift-toolbar { align-items: end; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: 14px; padding: 15px; }
.shift-toolbar label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 4px; letter-spacing: .06em; text-transform: uppercase; }
.shift-toolbar input, .shift-toolbar select { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 10px; min-height: 36px; padding: 0 9px; }
.shift-toolbar .primary-button { min-height: 36px; }

.shift-list { display: grid; gap: 12px; }
.shift-card { background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.shift-card.applied { border-color: #c9e2d5; box-shadow: inset 3px 0 0 var(--green); }
.shift-card.past { opacity: .72; }
.shift-card > header { align-items: start; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.shift-card h3 { font-family: Georgia, serif; font-size: 18px; font-weight: 600; margin: 0; }
.shift-card h3 small { color: var(--muted); font-family: system-ui, sans-serif; font-size: 9px; font-weight: 700; margin-left: 7px; }
.shift-card > header > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.shift-card button { background: #fff; border: 1px solid var(--line); border-radius: 8px; color: #43514c; font-size: 9px; font-weight: 800; min-height: 32px; padding: 0 10px; }
.shift-card button.primary-button { background: var(--green); border-color: var(--green); color: #fff; }
.shift-card button.danger-link { border-color: #f0cec4; color: var(--coral); }
.shift-note { background: #f4f6f4; border-radius: 8px; color: var(--muted); font-size: 9px; margin: 9px 0 0; padding: 7px 10px; }
.shift-applied-note { color: var(--green); font-size: 9px; font-weight: 700; margin: 8px 0 0; }

.shift-board { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); margin-top: 12px; }
.shift-waiter { background: #f9fbfa; border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 8px; padding: 11px; }
.shift-waiter > header { align-items: center; display: flex; gap: 7px; justify-content: space-between; }
.shift-waiter strong { font-size: 11px; }
.shift-waiter em { color: var(--muted); font-size: 8px; font-style: normal; }
.shift-tables { display: flex; flex-wrap: wrap; gap: 5px; }
.shift-tables button { background: #fff; border: 1px solid #dce2de; border-radius: 7px; font-size: 9px; font-weight: 800; min-height: 28px; padding: 0 8px; }
.shift-tables button:hover { border-color: var(--coral); color: var(--coral); }
.shift-tables .empty { color: var(--muted); font-size: 9px; }
.shift-add { display: grid; gap: 6px; }
.shift-add select { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 9.5px; min-height: 32px; padding: 0 8px; width: 100%; }
.shift-empty { color: var(--muted); font-size: 10px; margin: 0; }

/* The waiter's own shifts, read-only on the phone. */
.waiter-shifts { background: #fff; border: 1px solid var(--line); border-radius: 13px; display: grid; gap: 8px; margin: 12px 14px 0; padding: 12px 14px; }
.waiter-shifts h2 { font-family: Georgia, serif; font-size: 15px; font-weight: 600; margin: 0; }
.waiter-shifts ul { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.waiter-shifts li { background: #f7faf8; border-radius: 9px; display: grid; gap: 2px; padding: 8px 10px; }
.waiter-shifts li.today { background: #eef4f1; box-shadow: inset 2px 0 0 var(--green); }
.waiter-shifts strong { font-size: 11px; }
.waiter-shifts small { color: var(--muted); font-size: 9px; }
.waiter-shifts .waiter-shifts-empty { color: var(--muted); font-size: 9.5px; margin: 0; }

/* --- The queue as lines, not cards --------------------------------------- */
/* A wall screen has to show the whole queue at once, so each request is one
   line and the line gets tighter as the screen gets wider. */
.queue-list { display: grid; gap: 6px; }

.queue-row {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid #cbd6d1;
  border-radius: 11px;
  overflow: hidden;
}
.queue-row.order { border-left-color: var(--green); }
.queue-row.call { border-left-color: var(--coral); }
.queue-row.urgent { border-left-color: #d97b2e; background: #fffaf4; }
.queue-row.done { opacity: .6; }
.queue-row.open { box-shadow: 0 8px 22px rgba(20, 49, 41, .1); }

.queue-line {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 26px 78px minmax(0, 1fr) auto auto auto auto;
  padding: 13px 14px;
}
.queue-icon {
  align-items: center;
  background: #eef4f1;
  border-radius: 7px;
  color: var(--green);
  display: flex;
  font-size: 12px;
  height: 26px;
  justify-content: center;
  width: 26px;
}
.queue-row.call .queue-icon { background: #fff0eb; color: var(--coral); }
.queue-table { font-family: Georgia, serif; font-size: 15px; font-weight: 600; }
.queue-what { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-zone { color: var(--muted); font-size: 10px; white-space: nowrap; }
.queue-total { font-size: 12px; font-weight: 800; white-space: nowrap; }
.queue-age { color: var(--muted); font-size: 10px; white-space: nowrap; }
.queue-actions { display: flex; gap: 6px; }
.queue-actions button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #43514c;
  font-size: 11px;
  font-weight: 800;
  min-height: 30px;
  padding: 0 10px;
}
.queue-done { border-color: #bfe0cf !important; color: var(--green) !important; }
.queue-done:hover { background: #eef4f1; }
.queue-more:hover { background: #f4f6f4; }

.queue-detail { border-top: 1px solid var(--line); display: grid; gap: 7px; padding: 11px 14px 13px 43px; }
.queue-detail ul { display: grid; gap: 5px; list-style: none; margin: 0; padding: 0; }
.queue-detail li { align-items: baseline; display: flex; gap: 9px; }
.queue-detail li b { background: #eef4f1; border-radius: 6px; color: var(--green); flex: 0 0 auto; font-size: 10px; min-width: 26px; padding: 3px 0; text-align: center; }
.queue-detail li span { flex: 1; font-size: 12px; }
.queue-detail li em { font-size: 12px; font-style: normal; font-weight: 700; }
.queue-detail p { color: var(--ink); font-size: 11px; margin: 0; }
.queue-detail p small { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .05em; margin-right: 5px; text-transform: uppercase; }

/* Wider screen, thinner line. */
@media (min-width: 1000px) {
  .queue-line { gap: 16px; padding: 10px 16px; }
  .queue-list { gap: 5px; }
}
@media (min-width: 1400px) {
  .queue-line { gap: 20px; padding: 8px 18px; }
  .queue-what { font-size: 14px; }
  .queue-list { gap: 4px; }
}

@media (max-width: 720px) {
  .queue-line { grid-template-columns: 24px 1fr auto; grid-template-areas: "icon table actions" "what what what" "zone age age"; gap: 6px 10px; }
  .queue-icon { grid-area: icon; }
  .queue-table { grid-area: table; }
  .queue-what { grid-area: what; white-space: normal; }
  .queue-zone { grid-area: zone; }
  .queue-age { grid-area: age; text-align: right; }
  .queue-total { display: none; }
  .queue-actions { grid-area: actions; }
  .queue-detail { padding-left: 14px; }
}

/* ---- Sidebar sales contact: same slot the hosting note used to hold. ---- */
.sidebar-sales a { color: #eadfbe; display: block; font-size: 9px; font-weight: 750; margin-top: 6px; overflow: hidden; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-sales a:hover { color: #fff; }
.sidebar-sales p { margin-bottom: 4px; }

/* ---- Shift calendar ---- */
.shift-cal-toolbar { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-bottom: 12px; padding: 10px 12px; }
.shift-cal-nav { align-items: center; display: flex; gap: 6px; }
.shift-cal-nav .secondary-button { min-height: 32px; min-width: 34px; padding: 0 10px; }
.shift-cal-range { font-size: 11px; margin-left: 6px; text-transform: capitalize; }
.shift-cal-views { background: #f1f4f2; border-radius: 10px; display: flex; gap: 2px; padding: 3px; }
.shift-cal-views button { background: transparent; border: 0; border-radius: 8px; color: #43514c; font-size: 9.5px; font-weight: 800; min-height: 28px; padding: 0 12px; }
.shift-cal-views button.active { background: #fff; box-shadow: 0 1px 3px rgba(20, 35, 30, 0.14); color: var(--green); }
.shift-cal-actions { display: flex; gap: 6px; }
.shift-cal-actions .primary-button, .shift-cal-actions .secondary-button { min-height: 34px; }

.shift-templates { background: #fff; border: 1px dashed #cfd9d3; border-radius: 14px; display: grid; gap: 10px; margin-bottom: 12px; padding: 13px 15px; }
.shift-templates > p { color: var(--muted); font-size: 10px; margin: 0; }
.shift-templates > p strong { color: var(--ink); }
.shift-template-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.shift-template-chip { align-items: center; background: #f1f4f2; border-radius: 20px; color: var(--ink); display: inline-flex; font-size: 9.5px; gap: 5px; padding: 6px 6px 6px 12px; }
.shift-template-chip strong { font-size: 9.5px; }
.shift-template-chip button { background: #fff; border: 1px solid var(--line); border-radius: 50%; color: var(--coral); font-size: 10px; height: 20px; line-height: 1; padding: 0; width: 20px; }
.shift-template-empty { color: var(--muted); font-size: 9.5px; }
.shift-template-form { align-items: end; display: grid; gap: 8px; grid-template-columns: minmax(140px, 1fr) auto auto auto; }
.shift-template-form label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 4px; letter-spacing: .06em; text-transform: uppercase; }
.shift-template-form input { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 10px; min-height: 34px; padding: 0 9px; }
.shift-template-form .primary-button { min-height: 34px; }

.shift-cal { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.shift-cal-head { border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); }
.shift-cal.single .shift-cal-head { grid-template-columns: 44px minmax(0, 1fr); }
.shift-cal-head > div { align-items: center; border-left: 1px solid #eef1ee; display: flex; gap: 4px; justify-content: space-between; min-width: 0; padding: 7px 8px; }
.shift-cal-head > div > button:first-child { background: transparent; border: 0; color: var(--ink); font-size: 9.5px; font-weight: 800; overflow: hidden; padding: 0; text-overflow: ellipsis; text-transform: capitalize; white-space: nowrap; }
.shift-cal-head > div.today { background: #eef6f1; }
.shift-cal-head > div.today > button:first-child { color: var(--green); }
.shift-cal-add { background: #f1f4f2; border: 0; border-radius: 6px; color: var(--green); flex: 0 0 auto; font-size: 11px; font-weight: 800; height: 22px; line-height: 1; padding: 0; width: 22px; }
.shift-cal-add:hover { background: var(--green); color: #fff; }
.shift-cal-body { display: grid; grid-template-columns: 44px repeat(7, minmax(0, 1fr)); }
.shift-cal.single .shift-cal-body { grid-template-columns: 44px minmax(0, 1fr); }
.shift-cal-times { position: relative; }
.shift-cal-times span { color: var(--muted); font-size: 7.5px; font-weight: 700; position: absolute; right: 6px; transform: translateY(-4px); }
.shift-cal-day { background-image: repeating-linear-gradient(to bottom, #f2f5f2 0, #f2f5f2 1px, transparent 1px, transparent 42px); border-left: 1px solid #eef1ee; position: relative; }
.shift-cal-day.today { background-color: #f7fbf8; }
.shift-block { border: 0; border-radius: 7px; box-shadow: 0 1px 3px rgba(18, 34, 28, 0.22); color: #fff; display: grid; gap: 1px; overflow: hidden; padding: 4px 6px; position: absolute; text-align: left; }
.shift-block strong { font-size: 8.5px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-block small { font-size: 7.5px; opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shift-block.ghost { background: #fff; border: 1.5px dashed #a9bcb2; box-shadow: none; color: var(--muted); }
.shift-block.ghost strong { color: var(--ink); }
.shift-block:hover { filter: brightness(1.06); }

.shift-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.shift-legend span { align-items: center; color: var(--ink); display: inline-flex; font-size: 9px; font-weight: 700; gap: 5px; }
.shift-legend i { border-radius: 50%; display: inline-block; height: 10px; width: 10px; }

.shift-agenda { display: grid; gap: 10px; }
.shift-agenda-day { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.shift-agenda-day.today { border-color: #c9e2d5; box-shadow: inset 3px 0 0 var(--green); }
.shift-agenda-day h3 { font-family: Georgia, serif; font-size: 14px; font-weight: 600; margin: 0 0 8px; text-transform: capitalize; }
.shift-agenda-row { align-items: center; background: #f9fbfa; border: 1px solid #edf0ed; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; padding: 8px 10px; text-align: left; width: 100%; }
.shift-agenda-row strong { font-size: 11px; }
.shift-agenda-row > span { color: var(--muted); font-size: 9.5px; font-weight: 700; }
.shift-agenda-row em { display: flex; flex-wrap: wrap; font-style: normal; gap: 4px; }
.shift-agenda-row em i { border-radius: 20px; color: #fff; font-size: 8px; font-style: normal; font-weight: 750; padding: 3px 8px; }
.shift-agenda-row em i.empty { background: #eef1ee; color: var(--muted); }
.shift-agenda-row b.applied { color: var(--green); font-size: 8.5px; margin-left: auto; }

.shift-modal { background: #fff; border-radius: 16px; max-height: min(86vh, 720px); max-width: 560px; overflow-y: auto; padding: 18px; width: calc(100vw - 32px); }
.shift-modal > header { align-items: start; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.shift-modal > header h2 { font-family: Georgia, serif; font-size: 20px; font-weight: 600; margin: 2px 0 0; }
.shift-modal > header > button { background: #f1f4f2; border: 0; border-radius: 50%; font-size: 14px; height: 30px; line-height: 1; width: 30px; }
.shift-modal-field { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 4px; letter-spacing: .06em; margin-bottom: 10px; text-transform: uppercase; }
.shift-modal-field select { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 10px; min-height: 36px; padding: 0 9px; }
.shift-modal-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }
.shift-modal-grid label { color: var(--muted); display: grid; font-size: 8px; font-weight: 800; gap: 4px; letter-spacing: .06em; text-transform: uppercase; }
.shift-modal-grid input { background: #fff; border: 1px solid #dce2de; border-radius: 8px; font-size: 10px; min-height: 36px; padding: 0 9px; }
.shift-modal > footer { display: flex; gap: 8px; justify-content: space-between; margin-top: 14px; }
.shift-detail .shift-board { grid-template-columns: 1fr; }
.shift-hours { align-items: end; display: flex; gap: 6px; }
.shift-hours label { color: var(--muted); display: grid; flex: 1; font-size: 7.5px; font-weight: 800; gap: 3px; letter-spacing: .05em; text-transform: uppercase; }
.shift-hours input { background: #fff; border: 1px solid #dce2de; border-radius: 7px; font-size: 10px; min-height: 30px; padding: 0 7px; }
.shift-hours .primary-button { flex: 0 0 auto; min-height: 30px; padding: 0 10px; }
.shift-hours .text-button { flex: 0 0 auto; font-size: 8px; }

@media (max-width: 860px) {
  .shift-cal { overflow-x: auto; }
  .shift-cal-head, .shift-cal-body { min-width: 720px; }
  .shift-template-form { grid-template-columns: 1fr 1fr; }
}

/* ---- Platform panel at scale: clickable stat tiles, sort, collapsed rows. ---- */
.platform-stats > button { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 13px; cursor: pointer; display: grid; gap: 3px; padding: 15px; text-align: left; }
.platform-stats > button.tone-trial { border-left-color: #8b5cf6; }
.platform-stats > button.tone-basic { border-left-color: #c2482b; }
.platform-stats > button.tone-ok { border-left-color: var(--green); }
.platform-stats > button.tone-urgent { border-left-color: #d97b2e; }
.platform-stats > button.tone-locked { border-left-color: #2b3230; }
.platform-stats > button.active { background: #f2f7f4; border-color: var(--green); }
.platform-stats > button:hover { border-color: #b9c8bf; }
.platform-sort { background: #fff; border: 1px solid #dce2de; border-radius: 9px; flex: 0 0 auto; font-size: 10px; min-height: 36px; padding: 0 10px; }
.platform-count { color: var(--muted); font-size: 9px; margin: 0 0 10px; }
.platform-row-summary { background: transparent; border: 0; cursor: pointer; display: grid; gap: 3px; padding: 0; text-align: left; width: 100%; }
.platform-row.collapsed { grid-template-columns: 1fr; padding: 12px 16px; }
.platform-row.collapsed .platform-row-main { gap: 2px; }
.platform-caret { color: var(--green); font-size: 8.5px; font-style: normal; font-weight: 800; letter-spacing: .05em; margin-top: 3px; text-transform: uppercase; }
.platform-more { background: #fff; border: 1px dashed #b9c8bf; border-radius: 12px; color: var(--green); font-size: 10px; font-weight: 800; min-height: 44px; }
.platform-more:hover { border-color: var(--green); }

/* ---- Waiter: tap a request to see everything on it and the table's bill. ---- */
.waiter-requests > div.openable { cursor: pointer; }
.waiter-requests > div.openable:hover { box-shadow: inset 0 0 0 1px #cfe0d7; }
.waiter-items-more { background: transparent; border: 0; color: var(--waiter-ink); font-size: 8.5px; font-weight: 800; justify-self: start; padding: 2px 0 0; text-align: left; }
.waiter-ticket-modal { background: #fff; border-radius: 18px 18px 0 0; margin-top: auto; max-height: 88vh; overflow-y: auto; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); width: 100%; }
@media (min-width: 640px) { .waiter-ticket-modal { border-radius: 18px; margin: auto; max-width: 480px; } }
.waiter-ticket-modal > header { align-items: start; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.waiter-ticket-modal > header h2 { font-family: Georgia, serif; font-size: 20px; font-weight: 600; margin: 2px 0; }
.waiter-ticket-modal > header small { color: var(--muted); font-size: 9px; }
.waiter-ticket-modal > header > button { background: #f1f4f2; border: 0; border-radius: 50%; flex: 0 0 auto; font-size: 14px; height: 30px; line-height: 1; width: 30px; }
.waiter-ticket-modal section { margin-bottom: 12px; }
.waiter-ticket-modal h3 { align-items: center; display: flex; font-size: 9px; font-weight: 800; gap: 6px; letter-spacing: .06em; margin: 0 0 7px; text-transform: uppercase; }
.waiter-ticket-modal h3 span { background: #eef3f0; border-radius: 12px; font-size: 8px; padding: 2px 7px; }
.waiter-ticket-items { display: grid; gap: 6px; list-style: none; margin: 0; padding: 0; }
.waiter-ticket-items li { align-items: center; background: #f7faf8; border-radius: 9px; display: flex; gap: 8px; padding: 8px 10px; }
.waiter-ticket-items.bill li { background: #fafbfa; }
.waiter-ticket-items li > b { align-items: center; background: #e9f3ef; border-radius: 6px; color: var(--waiter-ink); display: flex; flex: 0 0 auto; font-size: 8.5px; height: 22px; justify-content: center; width: 26px; }
.waiter-ticket-items li.staff-entered > b { background: color-mix(in srgb, var(--waiter-gold) 24%, #fff); color: #6d5320; }
.waiter-ticket-items li > span { flex: 1; font-size: 10px; min-width: 0; }
.waiter-ticket-items li > span small { color: var(--coral); display: block; font-size: 8px; margin-top: 2px; }
.waiter-ticket-items li > em { font-size: 9.5px; font-style: normal; font-weight: 700; white-space: nowrap; }
.waiter-ticket-total { color: var(--muted); font-size: 9.5px; margin: 8px 0 0; }
.waiter-ticket-total strong { color: var(--ink); font-size: 11px; }
.waiter-ticket-note { background: #fdf6e7; border-radius: 9px; color: #6d5320; font-size: 9.5px; margin: 0 0 12px; padding: 8px 10px; }
.waiter-ticket-call { background: #fff4f0; border-radius: 10px; margin-bottom: 12px; padding: 12px; }
.waiter-ticket-call p { font-size: 11px; margin: 0 0 4px; }
.waiter-ticket-modal > footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 6px; }
.waiter-ticket-modal > footer .primary-button { min-height: 42px; }

/* Fullscreen toggle on the request-queue wall screen. */
.staff-status .queue-fullscreen { font-size: 13px; line-height: 1; min-width: 36px; }
