/*
 * Hospitality staff UI — warm daylight + community accents (product plan §3).
 * Tenant hex colors override --tenant-* via inline :root in base.html when configured.
 */
:root {
  color-scheme: light;

  /* Warm surfaces (soft daylight, not clinical white) */
  --bg-base: #faf6f1;
  --bg-elevated: #fffdf9;
  --bg-peach-wash: #fff5eb;
  --bg-mint-wash: #f0faf7;

  --text: #2c2418;
  --text-muted: #6b5f52;

  /* Default tenant tokens — align with TenantSettings model defaults */
  --tenant-primary: #e85d4c;
  --tenant-secondary: #2dd4bf;
  --tenant-accent: #fbbf24;

  /* Extra “community” accents for tags / highlights (restrained use) */
  --pop-coral: #e85d4c;
  --pop-turquoise: #14b8a6;
  --pop-citrus: #e9a43b;
  --pop-magenta: #c026d3;

  --border-soft: rgba(44, 36, 24, 0.1);
  --border-softer: rgba(44, 36, 24, 0.06);

  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;

  --shadow-diffuse:
    0 20px 50px rgba(44, 36, 24, 0.07),
    0 8px 24px rgba(232, 93, 76, 0.05);
  --shadow-nav: 0 4px 24px rgba(44, 36, 24, 0.06);

  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --leading-body: 1.65;
  --leading-tight: 1.25;

  /* Touch / POS: minimum tap target (WCAG 2.5.5); coarse pointers get a little more */
  --staff-tap-target: 2.75rem;
  --staff-tap-gap: 0.65rem;
  /* 16px+ avoids iOS zooming focused inputs */
  --staff-input-font: 1rem;
}

@media (pointer: coarse) {
  :root {
    --staff-tap-target: 3rem;
    --staff-tap-gap: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: var(--leading-body);
  color: var(--text);
  -webkit-tap-highlight-color: rgba(45, 212, 191, 0.14);
}

body.staff-body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  touch-action: manipulation;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(255, 237, 213, 0.65) 0%, transparent 55%),
    radial-gradient(90% 60% at 100% 0%, rgba(204, 251, 241, 0.35) 0%, transparent 50%),
    linear-gradient(170deg, var(--bg-base) 0%, var(--bg-peach-wash) 42%, var(--bg-mint-wash) 100%);
}

/* ——— Nav (frosted warm bar, not dark bootstrap) ——— */
.staff-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
  padding:
    max(0.65rem, env(safe-area-inset-top, 0px))
    max(1rem, env(safe-area-inset-right, 0px))
    0.65rem
    max(1rem, env(safe-area-inset-left, 0px));
}

@media (min-width: 768px) {
  .staff-nav {
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.85rem;
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
  }
}

.staff-nav__brand {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-strong, #0f172a);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.2rem 0.45rem;
  border-radius: 0.75rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.staff-nav__brand:hover {
  color: var(--tenant-primary);
  background: rgba(15, 23, 42, 0.04);
}

.staff-nav__dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--tenant-primary);
  margin-right: 0.65rem;
  vertical-align: middle;
  box-shadow: 0 0 0 2px rgba(232, 93, 76, 0.2);
}

.staff-nav__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.25rem;
}

.staff-nav__links > li {
  display: flex;
  align-items: stretch;
}

.staff-nav__link {
  text-decoration: none;
  color: var(--text-muted, #64748b);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 0.75rem;
  transition:
    color 0.15s ease,
    background-color 0.15s ease,
    transform 0.1s ease;
}

.staff-nav__link:hover {
  color: var(--text-strong, #0f172a);
  background: rgba(15, 23, 42, 0.04);
}

.staff-nav__link--active {
  color: var(--tenant-primary);
  background: rgba(232, 93, 76, 0.08);
}

.staff-nav__link:focus-visible,
.staff-nav__brand:focus-visible {
  outline: 2px solid var(--tenant-secondary);
  outline-offset: 2px;
}

@media (pointer: coarse) {
  .staff-nav__link:active {
    background: rgba(15, 23, 42, 0.08);
    transform: scale(0.98);
  }
}

.staff-nav__meta {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.staff-nav__lock { margin: 0 0 0 auto; }
.staff-nav__lock .staff-btn { min-height: var(--staff-tap-target); white-space: nowrap; }

.staff-nav__outlet-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}

.staff-nav__field-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.staff-nav__outlet-form .staff-input {
  width: auto;
  min-width: min(12rem, 100%);
  max-width: 14rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.95rem;
  background: var(--bg-wash, #f8fafc);
}

.staff-nav__email {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted, #64748b);
  padding: 0.35rem 0;
}

.staff-body {
  overflow-x: hidden;
}

@media (max-width: 560px) {
  .staff-nav {
    gap: 0.45rem;
    padding-bottom: 0.5rem;
  }

  .staff-nav__brand { max-width: calc(100% - 10rem); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .staff-nav__lock { flex: 0 0 auto; }

  .staff-nav > nav {
    width: 100%;
    min-width: 0;
  }

  .staff-nav__links {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: none;
  }

  .staff-nav__links::-webkit-scrollbar,
  .staff-subnav-pills::-webkit-scrollbar {
    display: none;
  }

  .staff-nav__link {
    min-height: var(--staff-tap-target);
    padding: 0.25rem 0.65rem;
    white-space: nowrap;
  }

  .staff-nav__meta {
    width: 100%;
    margin-left: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .staff-nav__meta > a, .staff-nav__meta > form:not(.staff-nav__outlet-form) { min-width: 0; }
  .staff-nav__meta > a.staff-btn, .staff-nav__meta > form:not(.staff-nav__outlet-form) .staff-btn { width: 100%; }

  .staff-nav__outlet-form {
    display: block;
    min-width: 0;
  }

  .staff-nav__field-label {
    display: block;
    margin-bottom: 0.2rem;
  }

  .staff-nav__outlet-form .staff-input {
    width: 100%;
    min-width: 0;
    min-height: var(--staff-tap-target);
  }

  .staff-nav__email {
    display: none;
  }
}

/* ——— Layout ——— */
.staff-main {
  padding: 1.75rem max(1.25rem, env(safe-area-inset-left, 0px)) max(3rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px));
  max-width: 980px;
  margin: 0 auto;
}

.staff-main--wide {
  max-width: 1120px;
}

/* ——— Application shell: desktop sidebar + compact mobile header ——— */
.staff-app-shell { min-height: 100vh; }
.staff-app-shell__body { min-width: 0; overflow: visible; }
.staff-sidebar { display: none; }

@media (min-width: 1024px) {
  :root { --staff-sidebar-width: 17.5rem; }

  .staff-app-shell {
    display: grid;
    grid-template-columns: var(--staff-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
  }

  .staff-app-shell__body {
    grid-column: 2;
    min-height: 100vh;
  }

  .staff-app-shell__body > .staff-nav { display: none; }

  .staff-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1100;
    display: flex;
    width: var(--staff-sidebar-width);
    flex-direction: column;
    color: #d7dde8;
    background:
      radial-gradient(circle at 15% 0%, rgba(45, 212, 191, .12), transparent 28%),
      linear-gradient(180deg, #142033 0%, #111a2a 100%);
    border-right: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 12px 0 35px rgba(15, 23, 42, .12);
  }

  .staff-sidebar__brand-wrap { padding: 1.25rem 1rem 1rem; }

  .staff-sidebar__brand {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
    color: #fff;
    text-decoration: none;
  }

  .staff-sidebar__brand:hover { color: #fff; }

  .staff-sidebar__mark {
    display: grid;
    place-items: center;
    flex: 0 0 2.55rem;
    width: 2.55rem;
    height: 2.55rem;
    border-radius: .85rem;
    color: #fff;
    background: linear-gradient(135deg, var(--tenant-primary), color-mix(in srgb, var(--tenant-primary) 65%, var(--tenant-secondary)));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--tenant-primary) 24%, transparent);
    font-size: 1.05rem;
    font-weight: 800;
  }

  .staff-sidebar__brand > span:last-child { display: flex; min-width: 0; flex-direction: column; }
  .staff-sidebar__brand strong { overflow: hidden; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
  .staff-sidebar__brand small { color: #8f9bae; font-size: .69rem; letter-spacing: .03em; }

  .staff-sidebar__scope {
    display: grid;
    gap: .6rem;
    padding: .85rem 1rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }

  .staff-sidebar__scope label {
    display: block;
    margin-bottom: .25rem;
    color: #8f9bae;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .staff-sidebar__scope select {
    width: 100%;
    height: 2.35rem;
    padding: 0 2rem 0 .65rem;
    color: #eef2f8;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: .7rem;
    outline: 0;
    background: #1d2a3e;
    font: inherit;
    font-size: .8rem;
  }

  .staff-sidebar__scope select:focus { border-color: var(--tenant-secondary); box-shadow: 0 0 0 3px rgba(45, 212, 191, .12); }

  .staff-sidebar__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: .85rem .7rem 1.25rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .15) transparent;
  }

  .staff-sidebar .wb-nav-group { margin: 0 0 1rem; }
  .staff-sidebar .wb-nav-group__label {
    display: block;
    padding: .25rem .65rem .35rem;
    color: #7f8ba0;
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
  }
  .staff-sidebar .wb-nav-list { margin: 0; padding: 0; list-style: none; }
  .staff-sidebar .wb-nav-list li + li { margin-top: .12rem; }
  .staff-sidebar .wb-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 2.2rem;
    padding: .42rem .65rem .42rem 1.75rem;
    color: #b8c1d0;
    border-radius: .65rem;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 550;
    transition: color .15s ease, background .15s ease, transform .15s ease;
  }
  .staff-sidebar .wb-nav-link::before {
    position: absolute;
    left: .7rem;
    width: .48rem;
    height: .48rem;
    border: 1.5px solid currentColor;
    border-radius: .18rem;
    content: "";
    opacity: .55;
  }
  .staff-sidebar .wb-nav-link:hover { color: #fff; background: rgba(255, 255, 255, .065); transform: translateX(2px); }
  .staff-sidebar .wb-nav-link--active {
    color: #fff;
    background: linear-gradient(90deg, color-mix(in srgb, var(--tenant-primary) 26%, transparent), rgba(255, 255, 255, .045));
    box-shadow: inset 3px 0 var(--tenant-primary);
  }
  .staff-sidebar .wb-nav-link--active::before { border-color: var(--tenant-secondary); background: var(--tenant-secondary); opacity: 1; }

  .staff-sidebar__footer {
    padding: .85rem 1rem max(.9rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: rgba(8, 15, 27, .25);
  }
  .staff-sidebar__user { display: flex; align-items: center; gap: .6rem; min-width: 0; }
  .staff-sidebar__user > span { display: grid; place-items: center; flex: 0 0 1.9rem; height: 1.9rem; border-radius: 50%; color: #111827; background: #d7f7f1; font-size: .72rem; font-weight: 800; }
  .staff-sidebar__user div { display: flex; min-width: 0; flex-direction: column; }
  .staff-sidebar__user strong { overflow: hidden; color: #e9edf4; font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
  .staff-sidebar__user small { color: #7f8ba0; font-size: .65rem; }
  .staff-sidebar__footer-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin-top: .7rem; }
  .staff-sidebar__footer-actions form { margin: 0; }
  .staff-sidebar__footer-actions a,
  .staff-sidebar__footer-actions button { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; min-height: var(--staff-tap-target); padding: .35rem; color: #cbd5e1; border: 1px solid rgba(255, 255, 255, .14); border-radius: .65rem; background: rgba(255, 255, 255, .035); text-decoration: none; font: inherit; font-size: .74rem; cursor: pointer; }
  .staff-sidebar__footer-actions .staff-sidebar__lock { grid-column: 1 / -1; grid-row: 1; }
  .staff-sidebar__lock button { color: #fff; background: #126b69; border-color: #126b69; font-weight: 700; }
  .staff-sidebar__footer-actions a:hover,
  .staff-sidebar__footer-actions button:hover { color: #fff; background: rgba(255, 255, 255, .08); }

  .staff-main { width: 100%; max-width: 1080px; padding: 2rem 2.25rem 4rem; }
  .staff-main--wide { max-width: 1320px; }
  .staff-main--dashboard { max-width: 1280px; }

  .staff-body.staff-body--pos { display: block; height: auto; max-height: none; overflow: hidden; }
  .staff-body--pos .staff-app-shell,
  .staff-body--pos .staff-app-shell__body { height: 100vh; min-height: 0; }
  .staff-body--pos .staff-app-shell__body { display: flex; flex-direction: column; overflow: hidden; }
  .staff-body--pos main.staff-main.staff-main--pos { width: 100%; }
  main.staff-main.staff-main--wide.staff-main--pos { max-width: 1320px; }
}

/* Dashboard: intention chips (bar → kitchen → folio flow hints) */
.staff-intent-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.staff-intent-strip li {
  margin: 0;
}

.staff-intent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid var(--border-softer);
}

.staff-intent-pill__arrow {
  color: var(--tenant-secondary);
  opacity: 0.85;
}

.staff-intent-pill:hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 6px 20px rgba(44, 36, 24, 0.06);
  color: var(--text);
}

.staff-intent-strip__sep {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  opacity: 0.55;
  user-select: none;
}

.staff-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  text-align: left;
  width: 100%;
  min-height: 4.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-softer);
  background: var(--bg-elevated);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(44, 36, 24, 0.05);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;
  touch-action: manipulation;
}

a.staff-action-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 12px 36px rgba(44, 36, 24, 0.08);
}

.staff-action-card:active {
  transform: scale(0.99);
}

.staff-action-card__hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.35;
}

.staff-action-card--primary {
  border-color: rgba(232, 93, 76, 0.22);
  background: linear-gradient(145deg, #fffdf9 0%, rgba(255, 245, 235, 0.9) 100%);
}

.staff-workbench-section {
  margin-bottom: 1.75rem;
}

.staff-workbench-section h2 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.staff-workbench-section p.staff-muted {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
}

.staff-workbench-links {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.staff-workbench-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--tenant-secondary);
  text-decoration: none;
  padding: 0.45rem 0;
  border-radius: var(--radius-sm);
}

.staff-workbench-links a:hover {
  text-decoration: underline;
}

.staff-workbench-links .staff-muted {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.15rem;
  color: var(--text-muted);
}

.staff-subnav-pills a.staff-btn--ghost.staff-nav__link--active {
  border-color: var(--tenant-primary);
  color: var(--tenant-secondary);
}

.staff-context-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 253, 249, 0.72);
  border: 1px solid var(--border-softer);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 24px rgba(44, 36, 24, 0.04);
}

.staff-context-bar--pos {
  margin-bottom: 0.85rem;
  padding: 0.85rem 1.15rem;
  gap: 0.65rem;
  border-radius: 1rem;
  background: var(--bg-elevated, #fff);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}

.staff-context-bar__items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.staff-context-bar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}

.staff-context-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.04);
  color: var(--text-muted, #64748b);
  border: 1px solid transparent;
}

.staff-context-pill--primary {
  background: rgba(232, 93, 76, 0.1);
  border-color: rgba(232, 93, 76, 0.18);
}

@media (max-width: 720px) {
  .staff-context-bar {
    align-items: flex-start;
  }

  .staff-context-bar__actions {
    width: 100%;
  }

  .staff-context-bar__actions .staff-btn {
    flex: 1 1 12rem;
  }
}

.staff-container {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ——— Type ——— */
.staff-page-title {
  font-size: clamp(1.65rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: var(--leading-tight);
  margin: 0 0 0.35rem;
  color: var(--text);
}

.staff-page-title__accent {
  display: block;
  width: 3rem;
  height: 4px;
  margin-top: 0.65rem;
  border-radius: 4px;
  background: linear-gradient(
    90deg,
    var(--tenant-primary),
    var(--tenant-accent),
    var(--tenant-secondary)
  );
}

.staff-lead {
  color: var(--text-muted);
  margin: 0;
  max-width: 36rem;
}

.staff-section-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

/* ——— Cards ——— */
.staff-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-softer);
  box-shadow: var(--shadow-diffuse);
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
}

.staff-messages {
  margin-bottom: 1rem;
}

.staff-card--soft {
  box-shadow: 0 12px 36px rgba(44, 36, 24, 0.05);
}

.staff-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--text);
}

/* ——— Forms ——— */
.staff-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.staff-input,
input.staff-input,
select.staff-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  min-height: var(--staff-tap-target);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: var(--staff-input-font);
  line-height: 1.35;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(44, 36, 24, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.staff-input {
  width: 100%;
  max-width: 100%;
  min-height: 6rem;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-size: var(--staff-input-font);
  line-height: var(--leading-body);
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  box-shadow: inset 0 1px 2px rgba(44, 36, 24, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}

.staff-input:focus {
  outline: none;
  border-color: var(--tenant-secondary);
  box-shadow:
    inset 0 1px 2px rgba(44, 36, 24, 0.04),
    0 0 0 3px rgba(45, 212, 191, 0.22);
}

.staff-input:focus-visible,
textarea.staff-input:focus-visible {
  outline: 2px solid var(--tenant-secondary);
  outline-offset: 2px;
}

textarea.staff-input:focus {
  outline: none;
  border-color: var(--tenant-secondary);
  box-shadow:
    inset 0 1px 2px rgba(44, 36, 24, 0.04),
    0 0 0 3px rgba(45, 212, 191, 0.22);
}

select.staff-input {
  cursor: pointer;
}

.staff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: var(--staff-tap-target);
  padding: 0.55rem 1.2rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

a.staff-btn {
  text-decoration: none;
  box-sizing: border-box;
}

.staff-btn:active {
  transform: scale(0.98);
}

.staff-btn--primary {
  background: var(--tenant-primary);
  color: #fff;
  box-shadow: 0 4px 16px rgba(232, 93, 76, 0.35);
}

.staff-btn--primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 20px rgba(232, 93, 76, 0.4);
}

.staff-btn:focus-visible {
  outline: 2px solid var(--tenant-secondary);
  outline-offset: 2px;
}

.staff-btn--ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--text);
  border: 1px solid var(--border-soft);
}

.staff-btn--ghost:hover {
  background: #fff;
  border-color: var(--tenant-secondary);
  color: var(--tenant-secondary);
}

/* Bootstrap coexistence: align .btn look/feel with staff buttons */
.staff-main .btn {
  border-radius: var(--radius-sm);
  min-height: var(--staff-tap-target);
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.staff-main .btn-sm {
  min-height: 2.5rem;
  padding: 0.42rem 0.9rem;
  font-size: 0.875rem;
}

.staff-main .btn-primary {
  border-color: var(--tenant-primary);
  background-color: var(--tenant-primary);
  box-shadow: 0 4px 16px rgba(232, 93, 76, 0.28);
}

.staff-main .btn-outline-secondary,
.staff-main .btn-secondary {
  border-color: var(--border-soft);
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
}

.staff-main .btn-outline-secondary:hover,
.staff-main .btn-secondary:hover {
  border-color: var(--tenant-secondary);
  color: var(--tenant-secondary);
  background: #fff;
}

.staff-main .btn:focus-visible {
  outline: 2px solid var(--tenant-secondary);
  outline-offset: 2px;
}

.staff-btn--sm {
  min-height: 2.5rem;
  padding: 0.45rem 0.95rem;
  font-size: 0.875rem;
}

@media (pointer: coarse) {
  .staff-btn--sm {
    min-height: var(--staff-tap-target);
    font-size: 0.92rem;
  }
}

/* ——— Tags (community colors) ——— */
.staff-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  margin-right: 0.35rem;
}

.staff-tag--coral {
  background: rgba(232, 93, 76, 0.15);
  color: #9f2919;
}
.staff-tag--teal {
  background: rgba(20, 184, 166, 0.18);
  color: #0f766e;
}
.staff-tag--citrus {
  background: rgba(233, 164, 59, 0.22);
  color: #92400e;
}
.staff-tag--magenta {
  background: rgba(192, 38, 211, 0.12);
  color: #86198f;
}

/* ——— Alerts ——— */
.staff-alert {
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border-softer);
}

.staff-alert--success {
  background: rgba(20, 184, 166, 0.12);
  color: #0f5132;
  border-color: rgba(20, 184, 166, 0.25);
}

.staff-alert--danger {
  background: rgba(232, 93, 76, 0.1);
  color: #7f1d1d;
  border-color: rgba(232, 93, 76, 0.2);
}

.staff-alert--warning {
  background: rgba(251, 191, 36, 0.15);
  color: #78350f;
}

.staff-alert--info {
  background: rgba(45, 212, 191, 0.1);
  color: #134e4a;
}

.staff-alert--secondary {
  background: rgba(44, 36, 24, 0.06);
  color: var(--text-muted);
}

/* ——— Documentary photography (empty states, login) ——— */
.staff-photo-hero {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-peach-wash);
  box-shadow: var(--shadow-diffuse);
}

.staff-photo-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-photo-thumb {
  margin: 0 0 1rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  max-height: 200px;
  box-shadow: 0 8px 28px rgba(44, 36, 24, 0.08);
}

.staff-photo-thumb img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  display: block;
}

/* Neutral sign-in screen: no industry-specific photography or tenant assumptions. */
.staff-login-screen {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background:
    radial-gradient(ellipse at 50% 0, rgba(45, 212, 191, .10), transparent 48%),
    linear-gradient(145deg, #f4f8f6, #faf6f1 72%);
}

.staff-login-screen .staff-login-card {
  width: min(100%, 27rem);
  padding: clamp(1.5rem, 5vw, 2.35rem);
  border: 1px solid rgba(44, 70, 64, .11);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 24px 70px rgba(32, 58, 51, .11), 0 3px 12px rgba(32, 58, 51, .035);
}

.staff-login-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 2.1rem; }
.staff-login-brand__mark { display: grid; place-items: center; width: 2.65rem; height: 2.65rem; border: 1px solid #b8dbd1; border-radius: .82rem; color: #155e54; background: #e8f5f0; font-size: 1.05rem; font-weight: 850; }
.staff-login-brand strong, .staff-login-brand small { display: block; }
.staff-login-brand strong { color: #253b40; font-size: .82rem; font-weight: 780; }
.staff-login-brand small { margin-top: .1rem; color: #82918f; font-size: .56rem; font-weight: 750; letter-spacing: .12em; }
.staff-login-intro { margin-bottom: 1.45rem; }
.staff-login-intro > p { margin: 0 0 .32rem; color: #167c72; font-size: .68rem; font-weight: 780; letter-spacing: .09em; text-transform: uppercase; }
.staff-login-screen .staff-login-card h1 { margin: 0; color: #20363c; font-size: 1.9rem; font-weight: 800; letter-spacing: -.05em; }
.staff-login-intro > span { display: block; margin-top: .4rem; color: #708086; font-size: .82rem; }
.staff-login-screen .staff-login-card .staff-label { color: #40565b; font-size: .73rem; font-weight: 700; }
.staff-login-screen .staff-login-card .staff-input { min-height: 3rem; border-radius: .62rem; background: #fcfdfd; }
.staff-login-screen .staff-login-card .staff-btn--primary { min-height: 3rem; margin-top: .2rem; border-radius: .62rem; font-weight: 760; }
.staff-login-screen .staff-terminal__login-link { margin: 1.2rem 0 0; text-align: center; font-size: .8rem; }
.staff-login-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: 1.1rem 0 0; padding-top: .9rem; border-top: 1px solid #edf0ef; color: #85918f; font-size: .66rem; }
.staff-login-secure span { color: #38a47f; font-size: .55rem; }

/* Dashboard empty state: workspace chooser */
.staff-empty-split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 768px) {
  .staff-empty-split {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

}

/* ——— Login page (centered card fallback) ——— */
.staff-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
}

.staff-login-card {
  width: 100%;
  max-width: 420px;
  padding: 2rem 2rem 1.75rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-softer);
  box-shadow: var(--shadow-diffuse);
}

.staff-login-card h1 {
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
}

.staff-login-card .staff-lead {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.staff-login-card .staff-btn--primary {
  width: 100%;
  margin-top: 0.25rem;
}

.staff-login-foot {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.staff-login-foot a {
  color: var(--tenant-secondary);
  font-weight: 500;
}

/* ——— Utilities ——— */
.staff-muted {
  color: var(--text-muted);
}

.staff-empty-state {
  text-align: center;
  padding: 1.2rem 1.25rem;
}

.staff-empty-state__title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.staff-empty-state__copy {
  margin: 0;
  color: var(--text-muted);
}

.staff-empty-state__actions {
  margin-top: 0.8rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.staff-form-errors {
  margin-bottom: 0.9rem;
  border-left: 4px solid rgba(232, 93, 76, 0.7);
}

.staff-form-errors ul {
  margin: 0;
  padding-left: 1rem;
}

.staff-form-errors li {
  margin: 0.2rem 0;
}

.staff-divider {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-soft) 15%,
    var(--border-soft) 85%,
    transparent
  );
  margin: 2rem 0;
}

.staff-grid-2 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

@media (pointer: coarse) {
  .staff-grid-2 {
    gap: 1.15rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Dashboard quick links & workspace subnav: large tap targets, responsive columns */
.staff-quick-links,
.staff-subnav-pills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: var(--staff-tap-gap);
  margin-bottom: 1.25rem;
  align-items: stretch;
}

@media (max-width: 560px) {
  .staff-quick-links {
    grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  }

  .staff-subnav-pills {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.25rem;
    scrollbar-width: none;
  }

  .staff-subnav-pills .staff-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 7.5rem;
  }
}

.staff-quick-links .staff-btn,
.staff-subnav-pills .staff-btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

@media (max-width: 560px) {
  .staff-subnav-pills .staff-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 7.5rem;
  }
}

/* Filters and mixed controls: comfortable spacing for touch + mouse */
.staff-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--staff-tap-gap);
  margin-bottom: 1.25rem;
}

.staff-toolbar--center {
  align-items: center;
}

.staff-toolbar--start {
  align-items: flex-start;
}

.staff-toolbar--tight {
  margin-bottom: 0.75rem;
}

.staff-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-softer);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-diffuse);
}

.staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.staff-table th,
.staff-table td {
  padding: 0.68rem 0.85rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--border-softer);
}

.staff-table th {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(44, 36, 24, 0.03);
}

.staff-table tbody tr:last-child td {
  border-bottom: none;
}

.staff-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.015);
}

.staff-pos-order-card:hover {
  border-color: var(--tenant-secondary);
  box-shadow: var(--shadow-diffuse);
}

.staff-pos-order-card__title {
  font-weight: 700;
  font-size: 1.05rem;
}

.staff-pos-order-card__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
}

.staff-pos-order-card__status {
  justify-self: end;
}

.staff-pos-order-card__pricing {
  text-align: right;
}

.staff-pos-order-card__total {
  font-weight: 600;
}

.staff-pos-order-card__due {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.staff-pos-order-card__chevron {
  color: var(--text-muted);
  opacity: 0.6;
}

@media (max-width: 600px) {
  .staff-pos-order-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main status"
      "main pricing"
      "main chevron";
    padding: 0.75rem 1rem;
  }
  .staff-pos-order-card__main { grid-area: main; }
  .staff-pos-order-card__status { grid-area: status; }
  .staff-pos-order-card__pricing { grid-area: pricing; }
  .staff-pos-order-card__chevron { grid-area: chevron; }
}

.staff-table a {
  font-weight: 600;
  color: var(--tenant-secondary);
  text-decoration: none;
  padding: 0.2rem 0;
  min-height: 2.25rem;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
}

.staff-table a:hover {
  text-decoration: underline;
}

.staff-table a:focus-visible {
  outline: 2px solid var(--tenant-secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

.staff-table__actions-head,
.staff-table__actions-cell {
  text-align: right;
  white-space: nowrap;
  min-width: 7.25rem;
}

.staff-table__actions-cell {
  position: sticky;
  right: 0;
  z-index: 2;
  background: var(--bg-elevated);
  box-shadow: -10px 0 14px -14px rgba(15, 23, 42, 0.5);
}

.staff-table__actions-head {
  position: sticky;
  right: 0;
  z-index: 3;
  background: rgba(44, 36, 24, 0.03);
}

.staff-table__action-link {
  justify-content: center;
  min-width: 4.75rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  text-decoration: none;
  font-size: 0.78rem;
}

.staff-table__action-link:hover {
  text-decoration: none;
  border-color: rgba(28, 77, 118, 0.5);
  background: rgba(28, 77, 118, 0.06);
}

.staff-pager {
  display: flex;
  flex-wrap: wrap;
  gap: var(--staff-tap-gap);
  align-items: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.staff-code {
  font-size: 0.88em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(44, 36, 24, 0.06);
  color: var(--text);
}

/* Bootstrap coexistence: soften default alerts when both loaded */
.staff-main .alert {
  border-radius: var(--radius-md);
  border: 1px solid var(--border-softer);
}

.staff-checklist-wrap > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}

.staff-checklist-wrap > ul > li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  font-size: 0.95rem;
}

.staff-checklist-wrap > ul > li label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  line-height: 1.35;
}

.staff-checklist-wrap input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--tenant-secondary);
  cursor: pointer;
}

@media (pointer: coarse) {
  .staff-checklist-wrap input[type="checkbox"] {
    width: 1.35rem;
    height: 1.35rem;
    margin-top: 0.1rem;
  }

  .staff-checklist-wrap > ul > li label {
    min-height: var(--staff-tap-target);
    align-items: center;
  }
}

/* ——— POS orders: summary icons ——— */
.summary-icon {
  font-size: 2rem;
  color: var(--bs-secondary-text-emphasis);
}

/* ——— Dashboard: POS-style tiles + motion ——— */
.staff-main--dashboard {
  max-width: 1180px;
}

@keyframes staff-rise-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes staff-fade-slide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.staff-dash-hero {
  margin: 0 0 1.5rem;
  animation: staff-fade-slide 0.5s ease backwards;
}

.staff-dash-hero__title {
  font-size: clamp(1.5rem, 3.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: 0;
  color: var(--text);
}

.staff-dash-hero__meta {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Hero “stat header” panel — borrowed from common SaaS / Tailwind-style dashboards */
.staff-dash-hero__panel {
  position: relative;
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 250, 245, 0.92) 100%);
  border: 1px solid rgba(44, 36, 24, 0.08);
  box-shadow:
    0 18px 48px rgba(44, 36, 24, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: hidden;
}

.staff-dash-hero__panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: linear-gradient(180deg, var(--tenant-primary), var(--tenant-secondary));
}

.staff-dash-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tenant-primary);
  opacity: 0.9;
}

.staff-dash-hero__tagline {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-muted);
  max-width: 36rem;
}

/* Reusable page hero (same panel as dashboard) — wrap list/form headers */
.staff-page-hero {
  margin: 0 0 1.25rem;
  animation: staff-fade-slide 0.45s ease backwards;
}

.staff-page-hero__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.staff-page-hero__copy {
  flex: 1 1 16rem;
  min-width: 0;
}

.staff-page-hero__actions {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.staff-page-hero .staff-dash-hero__panel .staff-page-title__accent {
  display: none !important;
}

.staff-page-hero .staff-dash-hero__tagline {
  margin-top: 0.5rem;
}

.staff-page-hero .staff-dash-hero__meta + .staff-dash-hero__tagline {
  margin-top: 0.35rem;
}

.staff-page-hero__filter-card {
  background: var(--bg-elevated);
  padding: 1rem 1.15rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 28px rgba(44, 36, 24, 0.05);
}

.staff-property-pulse {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid var(--border-softer);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-diffuse);
}

.staff-operations-pulse {
  margin: 1.25rem 0;
  padding: 1.25rem;
  border: 1px solid var(--staff-border);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--staff-shadow-sm);
}

.staff-operations-pulse__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.staff-operations-pulse__title {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 750;
}

.staff-operations-pulse__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
}

.staff-operations-metric {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  min-width: 0;
  padding: .9rem;
  color: var(--staff-ink);
  text-decoration: none;
  border: 1px solid var(--staff-border);
  border-radius: 1rem;
  background: #fff;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.staff-operations-metric:hover {
  color: var(--staff-ink);
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--staff-accent) 35%, var(--staff-border));
  box-shadow: var(--staff-shadow-sm);
}

.staff-operations-metric__value {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: .8rem;
  background: #eef4ff;
  font-size: 1.25rem;
  font-weight: 800;
}

.staff-operations-metric--prep .staff-operations-metric__value { background: #fff1df; }
.staff-operations-metric--stock .staff-operations-metric__value { background: #e7f8f2; }
.staff-operations-metric--events .staff-operations-metric__value { background: #f2ebff; }

.staff-operations-metric__copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.staff-operations-metric__copy strong,
.staff-operations-metric__copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-operations-metric__copy small { color: var(--staff-muted); }

@media (max-width: 980px) {
  .staff-operations-pulse__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 575.98px) {
  .staff-operations-pulse { padding: 1rem; }
  .staff-operations-pulse__head { align-items: start; flex-direction: column; gap: .25rem; }
  .staff-operations-pulse__grid { grid-template-columns: 1fr; }
}

.staff-property-pulse__head,
.staff-property-pulse__lower {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.staff-property-pulse__head {
  align-items: flex-start;
  margin-bottom: 1rem;
}

.staff-property-pulse__title {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  color: var(--text-strong);
}

.staff-property-pulse__kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}

.staff-property-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem;
  border-radius: 0.9rem;
  color: var(--text);
  text-decoration: none;
  background: var(--bg-wash);
  border: 1px solid var(--border-softer);
}

.staff-property-kpi:hover {
  color: var(--text-strong);
  border-color: color-mix(in srgb, var(--tenant-primary) 35%, var(--border-softer));
}

.staff-property-kpi strong {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-strong);
}

.staff-property-kpi span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.staff-property-kpi--ready { background: rgba(45, 212, 191, 0.1); }
.staff-property-kpi--attention { background: rgba(245, 158, 11, 0.1); }
.staff-property-kpi--arrival { background: rgba(59, 130, 246, 0.08); }
.staff-property-kpi--inhouse { background: color-mix(in srgb, var(--tenant-primary) 9%, white); }

.staff-property-pulse__lower > * {
  flex: 1 1 0;
  min-width: 0;
}

.staff-property-pulse__subhead {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.staff-property-arrivals {
  list-style: none;
  margin: 0;
  padding: 0;
}

.staff-property-arrivals li + li { border-top: 1px solid var(--border-softer); }
.staff-property-arrivals a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  color: var(--text);
  text-decoration: none;
}

.staff-property-arrivals a > span:first-child { display: flex; flex-direction: column; }
.staff-property-arrivals small { color: var(--text-muted); }

.staff-room-health {
  padding: 0.85rem;
  border-radius: 0.9rem;
  background: var(--bg-wash);
}

.staff-room-health__bar {
  height: 0.65rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
}

.staff-room-health__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--tenant-secondary);
}

.staff-room-health p { margin: 0.65rem 0 0; color: var(--text-muted); font-size: 0.88rem; }

@media (max-width: 760px) {
  .staff-property-pulse__head,
  .staff-property-pulse__lower { flex-direction: column; }
  .staff-property-pulse__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 420px) {
  .staff-property-pulse { padding: 1rem; }
  .staff-property-pulse__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.staff-dash-insight {
  margin: 0 0 1.35rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: linear-gradient(180deg, rgba(254, 243, 199, 0.35), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  animation: staff-fade-slide 0.5s ease 0.06s backwards;
}

.staff-dash-insight--stock {
  border-color: rgba(217, 119, 6, 0.25);
}

.staff-dash-insight__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}

.staff-dash-insight__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong, #0f172a);
}

.staff-dash-insight__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.staff-dash-insight__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 0.75rem;
  align-items: baseline;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.staff-dash-insight__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.staff-dash-insight__name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  grid-column: 1 / -1;
}

@media (min-width: 520px) {
  .staff-dash-insight__name {
    grid-column: auto;
  }

  .staff-dash-insight__row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  }
}

.staff-dash-insight__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.staff-dash-insight__qty {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

.staff-dash-insight__qty strong {
  color: #b45309;
}

.staff-dash-sales {
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(45, 212, 191, 0.22);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.1), rgba(255, 255, 255, 0.98));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  animation: staff-fade-slide 0.52s ease 0.04s backwards;
}

.staff-dash-sales__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 1rem;
}

.staff-dash-sales__title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-strong, #0f172a);
}

.staff-dash-sales__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.staff-dash-sales__kpi {
  padding: 0.65rem 0.85rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.staff-dash-sales__kpi--muted {
  opacity: 0.95;
}

.staff-dash-sales__kpi-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.staff-dash-sales__kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.55rem;
  font-size: 0.85rem;
  color: var(--tenant-secondary, #14b8a6);
  background: rgba(45, 212, 191, 0.12);
  flex-shrink: 0;
}

.staff-dash-sales__kpi--muted .staff-dash-sales__kpi-icon {
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.06);
}

.staff-dash-sales__kpi-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0;
}

.staff-dash-sales__kpi-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  line-height: 1.1;
}

.staff-dash-sales__kpi-sub {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.staff-dash-sales__subhead {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.staff-dash-sales__top {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.staff-dash-sales__top-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
  font-size: 0.88rem;
}

.staff-dash-sales__top-name {
  font-weight: 700;
  color: var(--text);
  min-width: 0;
}

.staff-dash-sales__top-qty {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.staff-dash-sales__top-rev {
  font-weight: 600;
  color: var(--tenant-secondary, #2dd4bf);
  text-align: right;
}

@media (max-width: 480px) {
  .staff-dash-sales__top-row {
    grid-template-columns: 1fr;
    gap: 0.15rem;
  }

  .staff-dash-sales__top-rev {
    text-align: left;
  }
}

.staff-flow-ribbon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1.35rem;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: staff-fade-slide 0.55s ease 0.05s backwards;
}

.staff-flow-ribbon li {
  margin: 0;
}

.staff-flow-ribbon__sep {
  color: var(--border-soft);
  font-weight: 400;
  letter-spacing: 0;
}

.staff-setup-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1rem;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 93, 76, 0.22);
  background: linear-gradient(135deg, rgba(255, 253, 249, 0.95) 0%, rgba(255, 245, 235, 0.88) 100%);
  box-shadow: 0 10px 32px rgba(44, 36, 24, 0.06);
  animation: staff-fade-slide 0.5s ease 0.08s backwards;
}

.staff-setup-banner__text {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.staff-setup-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.staff-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.85rem;
}

@media (min-width: 600px) {
  .staff-tile-grid {
    grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
    gap: 1rem;
  }
}

.staff-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid #dce5e4;
  border-radius: 0.85rem;
  padding: 1rem 1.15rem 1.15rem;
  min-height: 7.5rem;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16, 42, 47, .035);
  transition: box-shadow .16s ease, border-color .16s ease;
}

.staff-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--tile-accent, var(--tenant-primary));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.staff-tile::after { content: none; }

.staff-tile:hover {
  box-shadow: 0 7px 22px rgba(16, 42, 47, .09);
  border-color: #8bbeb7;
}

.staff-tile:active {
  background: #eef6f3;
}

.staff-tile:focus-visible {
  outline: 2px solid var(--tenant-secondary);
  outline-offset: 3px;
}

.staff-tile--primary {
  background: #fff;
}

.staff-tile--emphasis {
  border-color: #a6cbc1;
  background: #f1f8f5;
}

.staff-tile--dense {
  min-height: 6rem;
  padding: 0.85rem 1rem 0.85rem;
}

.staff-tile--dense::after {
  width: 1.85rem;
  height: 1.85rem;
  top: 0.85rem;
  left: 0.85rem;
}

.staff-tile--dense .staff-tile__glyph {
  top: 1.05rem;
  left: 1.1rem;
  font-size: 0.95rem;
}

.staff-tile--dense .staff-tile__label {
  font-size: 0.95rem;
  margin-top: 1.85rem;
}

.staff-main--dashboard .staff-tile-grid { margin-bottom: 1.5rem; }
.staff-workspace-preview {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: .8rem;
  min-height: 16rem;
  padding: 2rem;
  border-radius: .85rem;
  background: #eaf3f0;
  border: 1px solid #d1e2dc;
  color: #24534f;
}
.staff-workspace-preview__mark { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: .85rem; background: #fff; font-size: 1.6rem; }
.staff-workspace-preview__line { width: 80%; height: .6rem; border-radius: 1rem; background: #c2dbd2; }
.staff-workspace-preview__line--short { width: 55%; }
.staff-workspace-preview__caption { margin-top: .5rem; font-weight: 750; }

.staff-tile__glyph {
  position: absolute;
  top: 1.25rem;
  left: 1.35rem;
  font-size: 1.25rem;
  font-weight: 900;
  color: #126b69;
  z-index: 1;
  pointer-events: none;
}

.staff-tile__arrow {
  position: absolute;
  top: 1.25rem;
  right: 1.15rem;
  color: #5d7778;
  font-size: .9rem;
}

.staff-tile__label {
  position: relative;
  z-index: 1;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  margin: 2.75rem 0 0;
}

.staff-tile__hint {
  position: relative;
  z-index: 1;
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  display: none;
}

@media (min-width: 900px) {
  .staff-tile__hint {
    display: block;
  }
}

.staff-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
  animation: staff-fade-slide 0.55s ease 0.12s backwards;
}

.staff-chip-row .staff-btn {
  border-radius: 999px;
  font-size: 0.875rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

.staff-role-strip {
  margin: 0 0 1.35rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 249, 0.85);
  border: 1px solid var(--border-softer);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  animation: staff-fade-slide 0.5s ease 0.1s backwards;
}

.staff-role-strip strong {
  color: var(--text);
  font-weight: 700;
}

.staff-section-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1.75rem 0 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: staff-fade-slide 0.45s ease backwards;
}

.staff-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(232, 93, 76, 0.35), rgba(45, 212, 191, 0.2), transparent);
  min-width: 2rem;
}

.staff-section-head:first-of-type {
  margin-top: 0.25rem;
}

.staff-workbench-block {
  margin-bottom: 1.5rem;
  animation: staff-fade-slide 0.5s ease backwards;
}

.staff-workbench-block__subtitle {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.staff-branches-card {
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.staff-branches-card__site {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0 0 0.35rem;
  color: var(--text);
}

.staff-branches-card ul {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.staff-branches-card ul:last-child {
  margin-bottom: 0;
}

.staff-switch-inline {
  max-width: 28rem;
}

.staff-admin-compact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .45rem 1rem;
  padding: 1rem 1.15rem;
}

.staff-admin-compact__actions { justify-content: flex-end; }

@media (max-width: 760px) {
  .staff-admin-compact { align-items: start; flex-direction: column; }
  .staff-admin-compact__actions { justify-content: flex-start; }
}

/* ——— Touch / POS: one-screen rhythm (kitchen, floor, busy nights) ——— */
.staff-body.staff-body--pos {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  --staff-tap-target: 3.25rem;
  --staff-input-font: 1.05rem;
}

.staff-body.staff-body--pos .staff-nav {
  flex-shrink: 0;
}

.staff-nav--pos {
  padding-top: max(0.65rem, env(safe-area-inset-top, 0px));
  padding-bottom: 0.65rem;
  gap: 0.65rem 1rem;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

.staff-nav--pos .staff-nav__brand {
  font-size: 1.1rem;
  min-height: 2.75rem;
}

.staff-nav--pos .staff-nav__link {
  min-height: 2.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
}

.staff-nav--pos .staff-nav__outlet-form .staff-input {
  min-height: 2.75rem;
  font-size: 0.95rem;
}

.staff-nav--pos .staff-btn--sm {
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem;
}

main.staff-main.staff-main--pos {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0.35rem max(0.65rem, env(safe-area-inset-right, 0px))
    max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.65rem, env(safe-area-inset-left, 0px));
  max-width: none;
}

/* Wide + POS: same max width and horizontal rhythm as reports / offline queue */
main.staff-main.staff-main--wide.staff-main--pos {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  box-sizing: border-box;
  padding: 1.75rem max(1.25rem, env(safe-area-inset-left, 0px)) max(3rem, env(safe-area-inset-bottom, 0px))
    max(1.25rem, env(safe-area-inset-right, 0px));
}

/* Full-bleed POS (KDS wall, dense order terminal) */
main.staff-main.staff-main--wide.staff-main--pos.staff-main--pos-bleed {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 0.35rem max(0.65rem, env(safe-area-inset-right, 0px))
    max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.65rem, env(safe-area-inset-left, 0px));
}

.staff-main--pos .staff-section-head {
  color: var(--text-muted, #64748b);
}

.staff-main--pos .staff-section-head::after {
  background: linear-gradient(90deg, rgba(232, 93, 76, 0.25), rgba(45, 212, 191, 0.15), transparent);
}

.staff-main--pos > .staff-messages {
  flex-shrink: 0;
}

.staff-main--pos > .staff-messages .staff-alert {
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.35rem;
}

/* Thin tenant accent on order detail (no extra title; pairs with context bar) */
.staff-pos-order-accent {
  flex-shrink: 0;
  height: 3px;
  width: 100%;
  margin-bottom: 0.25rem;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    var(--tenant-primary, #e85d4c) 0%,
    rgba(232, 93, 76, 0.35) 42%,
    rgba(45, 212, 191, 0.2) 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.staff-btn--touch {
  min-height: var(--staff-tap-target);
  padding: 0.6rem 1.15rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.staff-page-title--pos {
  font-size: clamp(1.2rem, 3.2vw, 1.45rem);
}

.staff-page-title--pos .staff-page-title__accent {
  margin-top: 0.4rem;
  height: 3px;
}

.staff-card--pos {
  padding: 1.15rem 1.25rem;
  border-radius: 1.15rem;
  background: var(--bg-elevated, #fff);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
}

.staff-card__title--pos {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  color: var(--text-strong, #0f172a);
}

.staff-card__title--pos-sm {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}

.staff-btn--touch {
  min-height: 3.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 0.75rem;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.staff-btn--touch:active {
  transform: translateY(1px) scale(0.98);
}

.staff-label--compact {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.staff-alert--pos {
  padding: 0.45rem 0.65rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.staff-context-bar--pos {
  margin-bottom: 0.35rem;
  padding: 0.45rem 0.6rem;
  gap: 0.35rem;
}

.staff-context-bar__actions--pos {
  gap: 0.25rem;
}

.staff-print-toolbar--pos {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.2rem;
  max-width: min(100%, 22rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.staff-print-toolbar--pos .staff-print-toolbar__lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.staff-print-toolbar--pos .staff-btn {
  flex-shrink: 0;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding: 0.35rem 0.45rem;
  font-weight: 700;
}

.staff-pos-totals-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.85rem;
  margin: 0 0 0.4rem;
  padding: 0.35rem 0.5rem;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--border-softer);
  border-radius: var(--radius-sm);
}

.staff-pos-totals-row__total {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.staff-pos-totals-row__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.staff-pos-order-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.45rem;
}

.staff-pos-order-main,
.staff-pos-order-side {
  min-height: 0;
}

.staff-pos-panel-scroll {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
}

.staff-pos-grow {
  flex: 1 1 auto;
  min-height: 0;
}

.staff-pos-order-main {
  flex: 1 1 42%;
}

.staff-pos-order-side {
  flex: 1 1 58%;
}

@media (min-width: 900px) and (min-height: 540px) {
  .staff-pos-order-layout {
    flex-direction: row;
    align-items: stretch;
    gap: 0.5rem;
  }

  .staff-pos-order-main {
    flex: 1 1 58%;
  }

  .staff-pos-order-side {
    flex: 1 1 42%;
    max-width: 26rem;
  }
}

.staff-table-wrap--pos {
  border-radius: 1.15rem;
  border: none;
  box-shadow: none;
}

.staff-table--pos {
  width: 100%;
}

.staff-table--pos th,
.staff-table--pos td {
  padding: 0.85rem 1rem;
  font-size: 1rem;
  vertical-align: middle;
}

.staff-table--pos th {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  background: var(--bg-wash, #f8fafc);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.staff-table--pos tbody tr {
  border-bottom: 1px solid rgba(15, 23, 42, 0.04);
  transition: background-color 0.15s ease;
}

.staff-table--pos tbody tr:last-child {
  border-bottom: none;
}

.staff-table--pos tbody tr:hover {
  background: rgba(15, 23, 42, 0.02);
}

.staff-table--pos-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.2rem 0.15rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.staff-pos-line-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.staff-input--pos-qty {
  max-width: 6rem;
  min-height: 3rem;
  font-size: 1.05rem;
  font-weight: 700;
  text-align: center;
}

.staff-input--pos-reason {
  max-width: 10rem;
  min-height: 3rem;
}

.staff-pos-side-hint {
  font-size: 0.85rem;
  margin: 0 0 0.65rem;
  line-height: 1.4;
}

.staff-body--pos .staff-card .staff-table--pos .staff-btn {
  min-height: 3rem;
  font-weight: 600;
}

.staff-body--pos .staff-card--pos .staff-input {
  min-height: 3.25rem;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 1.05rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.staff-body--pos .staff-card--pos .staff-input:focus {
  border-color: var(--tenant-secondary, #3b82f6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Orders list POS shell */
.staff-body--pos .staff-main--pos > .staff-pos-orders-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.staff-pos-orders-shell {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  gap: 0.75rem;
}

.staff-pos-orders-top {
  flex: 0 0 auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.staff-pos-orders-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.staff-pos-orders-ledger {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.35rem 0.35rem 0.5rem 0;
  margin-right: -0.15rem;
  scrollbar-gutter: stable;
}

.staff-pos-orders-history {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-margin-top: 0.75rem;
  padding: 0.85rem 1rem 0.65rem;
  border-radius: 1.15rem;
  background: var(--bg-elevated, #fff);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.staff-pos-orders-history__intro {
  flex-shrink: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.staff-pos-orders-history__title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.2rem;
  color: var(--text-strong, #0f172a);
}

.staff-pos-orders-history__subtitle {
  font-size: 0.88rem;
  max-width: 36rem;
  line-height: 1.45;
}

.staff-pos-orders-history__count {
  margin: 0;
  font-size: 0.875rem;
  white-space: nowrap;
}

.staff-pos-orders-history__count-strong {
  font-weight: 800;
  color: var(--text-strong, #0f172a);
}

.staff-pos-orders-history__controls {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
  position: sticky;
  top: 0;
  z-index: 2;
  padding-bottom: 0.5rem;
  background: linear-gradient(
    180deg,
    var(--bg-elevated, #fff) 70%,
    rgba(255, 255, 255, 0.92) 100%
  );
}

.staff-pos-orders-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.staff-pos-orders-seg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text-muted, #64748b);
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.staff-pos-orders-seg:hover {
  color: var(--text-strong, #0f172a);
  background: rgba(15, 23, 42, 0.08);
}

.staff-pos-orders-seg--active {
  color: #fff;
  background: var(--tenant-primary, #e85d4c);
  border-color: rgba(0, 0, 0, 0.06);
}

.staff-pos-orders-seg--active:hover {
  color: #fff;
  filter: brightness(1.03);
}

.staff-pos-orders-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}

.staff-pos-orders-search__field {
  flex: 1 1 12rem;
  position: relative;
  display: flex;
  align-items: center;
}

.staff-pos-orders-search__icon {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  font-size: 1rem;
  pointer-events: none;
}

.staff-pos-orders-search__input {
  width: 100%;
  padding-left: 2.5rem !important;
  min-height: 3.25rem;
  border-radius: 0.75rem;
}

.staff-pos-orders-search__btn {
  flex: 0 0 auto;
  min-height: 3.25rem;
  font-weight: 700;
  border-radius: 0.75rem;
}

.staff-pos-orders-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
}

.staff-toolbar--pos-head {
  margin-bottom: 0 !important;
  flex-shrink: 0;
}

.staff-pos-orders-hero {
  padding: 1rem 1.15rem;
  border-radius: 1.15rem;
  background: linear-gradient(165deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 250, 245, 0.92) 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 18px 48px rgba(44, 36, 24, 0.07),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  border-left: 4px solid var(--tenant-primary, #e85d4c);
}

.staff-pos-orders-hero__eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.45rem;
}

.staff-pos-orders-hero__lede {
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 32rem;
}

.staff-pos-orders-jump {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--tenant-primary, #e85d4c);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(232, 93, 76, 0.08);
  border: 1px solid rgba(232, 93, 76, 0.2);
  transition: background 0.15s ease, transform 0.12s ease;
}

.staff-pos-orders-jump:hover {
  background: rgba(232, 93, 76, 0.14);
  color: var(--tenant-primary, #e85d4c);
}

.staff-pos-orders-hero .staff-toolbar--pos-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.staff-pos-orders-hero__titles {
  min-width: 0;
  flex: 1 1 20rem;
}

.staff-pos-orders-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  align-items: center;
}

.orders-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted, #64748b);
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.orders-live-pill__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
  transition: opacity 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.orders-live-pill[data-live-status="live"] {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.35);
}

.orders-live-pill[data-live-status="live"] .orders-live-pill__dot {
  opacity: 1;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.orders-live-pill[data-live-status="connecting"] {
  background: rgba(234, 179, 8, 0.16);
  color: #a16207;
  border-color: rgba(234, 179, 8, 0.4);
}

.orders-live-pill[data-live-status="reconnecting"] {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.35);
}

.orders-live-pill[data-live-status="offline"] {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.2);
}

.staff-pos-orders-kicker {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--tenant-primary, #e85d4c);
}

.staff-pos-orders-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
  margin-bottom: 0;
}

.staff-pos-orders-summary__item {
  padding: 0.85rem 0.95rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(8px);
}

.staff-pos-orders-summary__label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.3rem;
}

.staff-pos-orders-summary__value {
  display: block;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--text-strong, #0f172a);
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  margin: 0;
}

.staff-pos-orders-hero__actions .staff-btn { min-height: var(--staff-tap-target); white-space: nowrap; }
.staff-pos-lanes-empty {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border: 1px dashed #c7d8d5;
  border-radius: .85rem;
  background: #f8fbfa;
}
.staff-pos-lanes-empty__icon { display: grid; place-items: center; flex: 0 0 2.6rem; height: 2.6rem; border-radius: .65rem; background: #e7f2ef; color: #126b69; font-size: 1.2rem; }
.staff-pos-lanes-empty h3 { margin: 0 0 .15rem; color: #19343a; font-size: 1rem; font-weight: 750; }
.staff-pos-lanes-empty p { margin: 0; color: #52646b; font-size: .88rem; }

.staff-pos-orders-alert {
  border-radius: 1rem;
}

.staff-pos-orders-lanes {
  flex: 0 0 auto;
  flex-shrink: 0;
  max-height: none;
  min-height: 0;
  overflow: visible;
}

.staff-pos-orders-lanes-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1rem 1.05rem !important;
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
}

/* One scroll region for all lane cards (avoids clipped nested lists + invisible scroll) */
.staff-pos-orders-lanes-scroll {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(52dvh, 28rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-right: 0.35rem;
  margin-right: -0.15rem;
  scrollbar-gutter: stable;
}

.staff-pos-orders-lanes-scroll:focus-visible {
  outline: 2px solid rgba(45, 212, 191, 0.55);
  outline-offset: 2px;
}

.staff-pos-orders-lanes__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.staff-pos-supermarket-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 1rem;
  background: var(--bg-peach-wash);
  border: 1px solid var(--border-soft);
  margin-bottom: 0.85rem;
}

.staff-pos-supermarket-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.staff-pos-supermarket-card__status {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.staff-pos-supermarket-card[data-shift-status="open"] {
  background: var(--bg-mint-wash);
}

.staff-grid-2--pos-lanes {
  gap: 0.85rem !important;
}

@media (min-width: 700px) {
  .staff-grid-2--pos-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.staff-pos-orders-lanes .staff-card--soft {
  padding: 0.9rem 1rem;
}

.staff-pos-orders-lanes a {
  display: inline-block;
  padding: 0;
  min-height: auto;
  line-height: 1.3;
  font-weight: 700;
}

.staff-pos-supermarket-card a.staff-btn { display: inline-flex; min-height: var(--staff-tap-target); padding: .5rem .85rem; align-items: center; white-space: nowrap; }

.staff-pos-lane-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.staff-pos-lane-card--held {
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.08), rgba(255, 255, 255, 0.98));
}

.staff-pos-lane-card--open {
  background: linear-gradient(180deg, rgba(45, 212, 191, 0.08), rgba(255, 255, 255, 0.98));
}

.staff-pos-lane-card--recent {
  background: linear-gradient(180deg, rgba(248, 113, 113, 0.07), rgba(255, 255, 255, 0.98));
}

.staff-pos-lane-card__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}

.staff-pos-lane-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.staff-pos-lane-card__row:first-child {
  border-top: 0;
  padding-top: 0;
}

.staff-pos-lane-card__row:last-child {
  padding-bottom: 0;
}

.staff-pos-lane-card > ul {
  margin-bottom: 0;
  max-height: none;
  overflow: visible;
}

.staff-toolbar--pos-filters {
  flex-shrink: 0;
  margin-bottom: 0 !important;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.staff-pos-orders-filter-field {
  min-width: 0;
}

.staff-pos-order-card {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem 1.25rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border-softer);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(44, 36, 24, 0.02);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.staff-pos-order-card:hover {
  border-color: rgba(45, 212, 191, 0.45);
  box-shadow: 0 12px 28px rgba(44, 36, 24, 0.06);
  transform: translateY(-1px);
}

.staff-pos-order-card__title {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text);
  letter-spacing: -0.01em;
  margin-bottom: 0.15rem;
}

.staff-pos-order-card__meta {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
}

.staff-pos-order-card__status {
  justify-self: end;
}

.staff-pos-order-card__pricing {
  text-align: right;
}

.staff-pos-order-card__total {
  font-weight: 600;
}

.staff-pos-order-card__due {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.staff-pos-order-card__chevron {
  color: var(--text-muted);
  opacity: 0.6;
}

@media (max-width: 600px) {
  .staff-pos-order-card {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "main status"
      "main pricing"
      "main chevron";
    padding: 0.75rem 1rem;
  }
  .staff-pos-order-card__main { grid-area: main; }
  .staff-pos-order-card__status { grid-area: status; }
  .staff-pos-order-card__pricing { grid-area: pricing; }
  .staff-pos-order-card__chevron { grid-area: chevron; }
}

.staff-pager--pos {
  flex-shrink: 0;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
}

.staff-pager--pos-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0 0.15rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.staff-pager__meta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  order: 0;
}

.staff-pager__spacer {
  min-width: 5rem;
  flex: 0 0 auto;
}

@media (max-width: 520px) {
  .staff-pager--pos-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .staff-pager--pos-footer .staff-btn {
    justify-content: center;
  }

  .staff-pager__meta {
    order: -1;
    text-align: center;
  }

  .staff-pager__spacer {
    display: none;
  }
}

@media (min-width: 900px) {
  .staff-pos-orders-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 699px) {
  .staff-pos-orders-hero {
    padding: 0.9rem;
  }

  .staff-pos-orders-hero__actions {
    width: 100%;
    justify-content: stretch;
  }

  .staff-pos-orders-hero__actions > * {
    flex: 1 1 calc(50% - 0.65rem);
  }

  .staff-pos-lane-card__row {
    align-items: flex-start;
    flex-direction: column;
  }
}

.staff-pos-order-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .staff-pos-order-layout {
    flex-direction: row;
    gap: 1.25rem;
  }
}

.staff-pos-order-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.05);
  /* allow .staff-pos-panel-scroll to provide vertical scrolling */
}

.staff-pos-order-side {
  flex: 0 0 24rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.25rem;
}

.staff-pos-totals-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, rgba(232, 93, 76, 0.08), rgba(255, 255, 255, 0.95));
  border-radius: 1.15rem;
  border: 1px solid rgba(232, 93, 76, 0.15);
  box-shadow: 0 8px 24px rgba(232, 93, 76, 0.06);
}

.staff-pos-totals-row__total {
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--tenant-primary);
  line-height: 1;
}

.staff-pos-totals-row__meta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* KDS */
.staff-pos-kds-page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.staff-kds-queue-region {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.staff-pos-kds-head {
  flex-shrink: 0;
  margin-bottom: 0.35rem;
}

.staff-pos-kds-head.staff-pos-orders-hero {
  margin-bottom: 0.5rem;
}

.staff-pos-kds-head--with-live {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.staff-pos-kds-head--with-live .staff-pos-kds-titles {
  min-width: 0;
  flex: 1 1 auto;
}

.staff-kds-live {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: var(--staff-tap-target, 2.75rem);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-muted, #64748b);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.staff-kds-live__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
  flex-shrink: 0;
}

.staff-kds-live[data-kds-live-status="live"] {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
  border-color: rgba(34, 197, 94, 0.35);
}

.staff-kds-live[data-kds-live-status="live"] .staff-kds-live__dot {
  opacity: 1;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.35);
}

.staff-kds-live[data-kds-live-status="connecting"] {
  background: rgba(234, 179, 8, 0.16);
  color: #a16207;
  border-color: rgba(234, 179, 8, 0.4);
}

.staff-kds-live[data-kds-live-status="reconnecting"] {
  background: rgba(249, 115, 22, 0.14);
  color: #c2410c;
  border-color: rgba(249, 115, 22, 0.35);
}

.staff-kds-live[data-kds-live-status="offline"] {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
  border-color: rgba(100, 116, 139, 0.2);
}

.staff-pos-kds-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.staff-pos-kds-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  touch-action: pan-y;
  padding-right: 0.15rem;
}

/* Small screens need document scrolling: viewport-locked POS panels can otherwise
   trap content below the fold when browser chrome or the mobile header changes height. */
@media (max-width: 1023px) {
  body.staff-body.staff-body--pos {
    display: block;
    height: auto;
    min-height: 100dvh;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .staff-body--pos .staff-app-shell,
  .staff-body--pos .staff-app-shell__body {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }

  .staff-body--pos main.staff-main.staff-main--pos {
    display: block;
    min-height: auto;
    overflow: visible;
  }

  .staff-body--pos .staff-pos-kds-page,
  .staff-body--pos .staff-kds-queue-region,
  .staff-body--pos .staff-pos-tables-shell {
    min-height: auto;
  }

  .staff-body--pos .staff-main--pos > .staff-pos-orders-shell,
  .staff-body--pos .staff-pos-orders-shell,
  .staff-body--pos .staff-pos-orders-top,
  .staff-body--pos .staff-pos-orders-history {
    flex: none;
    min-height: auto;
    overflow: visible;
  }

  .staff-body--pos .staff-pos-orders-lanes-shell {
    min-height: auto;
  }

  .staff-body--pos .staff-pos-kds-scroll,
  .staff-body--pos .staff-pos-panel-scroll,
  .staff-body--pos .staff-pos-orders-lanes-scroll,
  .staff-body--pos .staff-pos-orders-ledger {
    max-height: none;
    overflow: visible;
  }
}

.staff-pos-kds-grid {
  display: grid;
  gap: 1rem;
  padding-bottom: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .staff-pos-kds-grid {
    grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  }
}

.staff-pos-kds-card {
  padding: 1.15rem;
  background: var(--bg-elevated);
  border-radius: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.staff-pos-kds-card__link {
  color: var(--text-strong);
  transition: color 0.15s ease;
}

.staff-pos-kds-card__link:hover {
  color: var(--tenant-primary);
}

.staff-pos-kds-lines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.staff-pos-kds-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--bg-wash, #f8fafc);
  border-radius: 0.85rem;
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.staff-pos-kds-line--working {
  background: rgba(234, 179, 8, 0.05);
  border-color: rgba(234, 179, 8, 0.2);
}

.staff-pos-kds-line--ready {
  background: rgba(34, 197, 94, 0.05);
  border-color: rgba(34, 197, 94, 0.2);
}

.staff-pos-kds-line__main {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.staff-pos-kds-line__qty {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-strong);
  flex-shrink: 0;
}

.staff-pos-kds-line__name {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-strong);
  line-height: 1.3;
}

.staff-pos-kds-line__action {
  flex: 0 0 auto;
}

.staff-pos-kds-line__action .btn {
  min-width: 5.5rem;
}

/* Tables POS */
.staff-pos-tables-shell {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.staff-pos-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 0.75rem;
  padding-bottom: 1rem;
}

@media (min-width: 600px) {
  .staff-pos-tables-grid {
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: 1rem;
  }
}

.staff-pos-table-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.15rem;
  border-radius: .85rem;
  background: var(--bg-elevated, #fff);
  border: 1px solid #dce5e4;
  box-shadow: 0 2px 8px rgba(16, 42, 47, .035);
  text-decoration: none;
  color: var(--text-strong, #0f172a);
  min-height: 7.5rem;
  transition: box-shadow .16s ease, border-color .16s ease;
}

.staff-pos-table-card--editable:hover {
  box-shadow: 0 7px 22px rgba(16, 42, 47, .09);
  border-color: #8bbeb7;
}

.staff-pos-table-card--editable:active {
  background: #eef6f3;
}

.staff-pos-table-card--inactive {
  background: #f1f4f3;
  border-style: dashed;
}

.staff-pos-table-card__label {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.staff-pos-table-card__meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .2rem;
}

.staff-pos-table-card__status { margin-left: auto; padding: .15rem .5rem; border-radius: 99rem; background: #e2e9e7; color: #465f60; font-size: .75rem; font-weight: 700; }

.staff-pos-table-card__chevron {
  align-self: flex-end;
  color: var(--tenant-secondary, #3b82f6);
  opacity: 0.7;
}

.staff-pos-tables-empty { grid-column: 1 / -1; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: 1.4rem; border: 1px dashed #c7d8d5; border-radius: .85rem; background: #f8fbfa; }
.staff-pos-tables-empty > i { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: .65rem; background: #e7f2ef; color: #126b69; font-size: 1.2rem; }
.staff-pos-tables-empty > div { flex: 1 1 14rem; }
.staff-pos-tables-empty h3 { margin: 0 0 .2rem; color: #19343a; font-size: 1rem; font-weight: 750; }
.staff-pos-tables-empty p { margin: 0; color: #52646b; font-size: .88rem; }

.staff-pos-menu-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.staff-pos-menu-items {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 600px) {
  .staff-pos-menu-items {
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: 1rem;
  }
}

.staff-pos-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1.15rem;
  background: var(--bg-wash, #f8fafc);
  border-radius: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.staff-pos-menu-item__name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-strong, #0f172a);
}

.staff-pos-menu-item__price {
  color: var(--tenant-primary);
  font-size: 1.1rem;
}

.staff-metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.staff-metric-row > span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.85rem;
  background: var(--bg-wash, #f8fafc);
}

.staff-metric-row strong {
  color: var(--text-strong);
  font-size: 1.05rem;
}

.staff-metric-row small {
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .staff-metric-row {
    grid-template-columns: 1fr;
  }
}

/* Minimal spacing utility used in non-Bootstrap pages (e.g. login split form). */
.mb-3 {
  margin-bottom: 1rem;
}

@media (prefers-reduced-motion: reduce) {
  .staff-pos-panel-scroll,
  .staff-pos-orders-lanes,
  .staff-pos-orders-lanes-scroll,
  .staff-pos-kds-scroll {
    scroll-behavior: auto;
  }
}

/* Shared keyboard affordances and a calmer transaction workspace. */
.staff-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2000;
  transform: translateY(-200%);
  padding: 0.65rem 1rem;
  border-radius: 0.6rem;
  background: #142033;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}
.staff-skip-link:focus { transform: translateY(0); color: #fff; }
:where(.staff-sidebar a, .staff-sidebar button, .staff-sidebar select, .staff-main a, .staff-main button, .staff-main input, .staff-main select, .staff-main textarea):focus-visible {
  outline: 3px solid #0e7490;
  outline-offset: 2px;
}
.staff-sidebar .wb-nav-link--active { background: rgba(255, 255, 255, 0.1); }
.staff-dash-hero { animation: none; }
.staff-dash-hero__panel {
  background: var(--bg-elevated);
  box-shadow: 0 5px 22px rgba(15, 23, 42, 0.045);
}
.staff-dash-hero__panel::before { width: 3px; background: var(--tenant-primary); }
.staff-action-card--primary { background: var(--bg-elevated); }
.staff-pos-orders-hero {
  background: var(--bg-elevated);
  border-left-width: 3px;
  box-shadow: 0 5px 22px rgba(15, 23, 42, 0.045);
}
.staff-pos-orders-summary__item {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.1);
  border-radius: 0.8rem;
  backdrop-filter: none;
}
.staff-pos-orders-history {
  border-radius: 0.9rem;
  box-shadow: 0 5px 22px rgba(15, 23, 42, 0.045);
}
.staff-pos-orders-history__controls { background: var(--bg-elevated); }
.staff-pos-orders-seg { min-height: 2.75rem; }
.staff-pos-order-card {
  box-shadow: none;
  border-color: rgba(15, 23, 42, 0.1);
}
.staff-pos-order-card:hover, .staff-pos-order-card:focus-visible {
  border-color: #0e7490;
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.08);
  transform: none;
}
.staff-pos-order-card__total { font-variant-numeric: tabular-nums; font-size: 1.02rem; }
.staff-pos-order-card__due { white-space: nowrap; }
@media (max-width: 600px) {
  .staff-pos-orders-segments { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.25rem; }
  .staff-pos-orders-seg { flex: 0 0 auto; }
  .staff-pos-orders-hero__actions > form { display: block !important; }
  .staff-pos-orders-hero__actions > form .staff-btn, .staff-pos-orders-hero__actions > a.staff-btn { width: 100%; min-height: 2.75rem; }
  .staff-pos-order-card__meta { flex-wrap: wrap; gap: 0.15rem 0.5rem; }
  .staff-pos-order-card__due { white-space: normal; }
}

/* Front desk and retail forms share readable numeric columns and compact filters. */
.staff-filter-select { width: auto; min-width: 11rem; max-width: 100%; }
.staff-money { font-variant-numeric: tabular-nums; white-space: nowrap; }
.staff-stay-dates { font-variant-numeric: tabular-nums; white-space: nowrap; }
.staff-metric-row--folio { margin-bottom: 1rem; }
.staff-metric-row--folio > span {
  background: var(--bg-elevated);
  border-color: rgba(15, 23, 42, 0.1);
  padding: 1rem 1.1rem;
}
.staff-metric-row--folio strong { font-variant-numeric: tabular-nums; }
.staff-metric-row--folio > span:last-child { border-left: 3px solid var(--tenant-primary); }
.staff-print-toolbar--pos { flex-wrap: wrap; }
.staff-print-toolbar--pos .staff-order-print-link { white-space: nowrap; }
.staff-order-finish { display: inline-flex; }
.staff-order-finish .staff-btn { min-height: 2.75rem; white-space: nowrap; }
.staff-team-filters { display: grid; grid-template-columns: minmax(12rem, 1.7fr) repeat(3, minmax(9rem, 1fr)) auto; gap: .75rem; align-items: end; }
.staff-team-filters .staff-input { display: block; width: 100%; margin-top: .3rem; }
.staff-team-filters .staff-btn { min-height: 2.75rem; }
.staff-team-bulk { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: end; }
.staff-team-bulk > div { margin-right: auto; }
.staff-team-bulk .staff-input { display: block; min-width: 10rem; margin-top: .3rem; }
.staff-team-bulk .staff-btn { min-height: 2.75rem; }
.staff-team-state { display: inline-block; border-radius: 99rem; padding: .25rem .65rem; background: #edf0f2; color: #485b62; font-weight: 700; font-size: .8rem; white-space: nowrap; }
.staff-team-state--ready { background: #e5f2ee; color: #14644f; }
.staff-team-revoke { border: 0; background: none; cursor: pointer; margin-left: .55rem; padding: .25rem; color: #a33730; }
.staff-team-revoke:hover { text-decoration: underline; }

/* Modern staff shell: clear navigation, quieter canvas, sharper POS hierarchy. */
:root {
  --bg-base: #f4f6f7;
  --bg-elevated: #ffffff;
  --bg-peach-wash: #f4f6f7;
  --bg-mint-wash: #f4f6f7;
  --text: #18252c;
  --text-muted: #65757c;
  --border-soft: #e3e9ea;
  --border-softer: #edf1f2;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-diffuse: 0 10px 30px rgba(24, 37, 44, .055);
}

body.staff-body {
  background: #f4f6f7;
  color: #18252c;
}

.staff-app-shell { background: #f4f6f7; }

@media (min-width: 1024px) {
  :root { --staff-sidebar-width: 16.25rem; }

  .staff-sidebar {
    color: #53636a;
    background: #fff;
    border-right: 1px solid #e5eaeb;
    box-shadow: 5px 0 22px rgba(24, 37, 44, .025);
  }

  .staff-sidebar__brand-wrap { padding: 1.15rem .95rem .9rem; }
  .staff-sidebar__brand { gap: .65rem; color: #18252c; }
  .staff-sidebar__brand:hover { color: #18252c; }
  .staff-sidebar__mark {
    flex-basis: 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .72rem;
    color: #fff;
    background: var(--tenant-primary, #167c72);
    box-shadow: none;
  }
  .staff-sidebar__brand-copy { display: flex; min-width: 0; flex: 1; flex-direction: column; }
  .staff-sidebar__brand strong { color: #1c2b31; font-size: .88rem; font-weight: 750; }
  .staff-sidebar__brand small { margin-top: .1rem; color: #7a898f; font-size: .68rem; letter-spacing: 0; }
  .staff-sidebar__brand-caret { color: #91a0a5; font-size: .72rem; }

  .staff-sidebar__scope {
    gap: .5rem;
    margin: .15rem .8rem .75rem;
    padding: .75rem;
    border: 1px solid #e6ebec;
    border-radius: .8rem;
    background: #f8faf9;
  }
  .staff-sidebar__scope-eyebrow {
    color: #819095;
    font-size: .62rem;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
  .staff-sidebar__scope form {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 2.45rem;
    padding: 0 .55rem;
    border: 1px solid #e7eded;
    border-radius: .62rem;
    background: #fff;
  }
  .staff-sidebar__scope-icon { display: grid; flex: 0 0 1.3rem; color: var(--tenant-primary, #167c72); font-size: .9rem; }
  .staff-sidebar__scope select {
    width: 100%;
    min-width: 0;
    height: 2.3rem;
    padding: 0 1.3rem 0 .1rem;
    color: #26363c;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: transparent;
    appearance: none;
    font: inherit;
    font-size: .74rem;
    font-weight: 650;
  }
  .staff-sidebar__scope select:focus { box-shadow: none; }
  .staff-sidebar__scope-caret { position: absolute; right: .5rem; color: #8a999e; pointer-events: none; font-size: .7rem; }

  .staff-sidebar__primary-action { margin: 0 .8rem .75rem; }
  .staff-sidebar__primary-action button {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    min-height: 2.8rem;
    padding: .55rem .8rem;
    color: #fff;
    border: 0;
    border-radius: .7rem;
    background: var(--tenant-primary, #167c72);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--tenant-primary, #167c72) 20%, transparent);
    font: inherit;
    font-size: .82rem;
    font-weight: 750;
    cursor: pointer;
    transition: filter .15s ease, transform .15s ease;
  }
  .staff-sidebar__primary-action button:hover { filter: brightness(.94); transform: translateY(-1px); }
  .staff-sidebar__primary-action button i { font-size: .95rem; }

  .staff-sidebar__scroll {
    padding: .15rem .65rem 1rem;
    scrollbar-color: #d7e0e1 transparent;
  }
  .staff-sidebar .wb-nav-group { margin: 0 0 .9rem; }
  .staff-sidebar .wb-nav-group__label {
    padding: .25rem .55rem .32rem;
    color: #91a0a5;
    font-size: .61rem;
    letter-spacing: .1em;
  }
  .staff-sidebar .wb-nav-list li + li { margin-top: .08rem; }
  .staff-sidebar .wb-nav-link {
    gap: .65rem;
    min-height: 2.35rem;
    padding: .4rem .55rem;
    color: #5a6a70;
    border-radius: .58rem;
    font-size: .77rem;
    font-weight: 600;
  }
  .staff-sidebar .wb-nav-link > i {
    display: grid;
    place-items: center;
    flex: 0 0 1.45rem;
    width: 1.45rem;
    height: 1.45rem;
    color: #849297;
    border-radius: .42rem;
    font-size: .88rem;
  }
  .staff-sidebar .wb-nav-link > span { min-width: 0; }
  .staff-sidebar .wb-nav-link::before { display: none; }
  .staff-sidebar .wb-nav-link:hover {
    color: #1c3035;
    background: #f3f7f6;
    transform: none;
  }
  .staff-sidebar .wb-nav-link--active {
    color: #145e58;
    background: #eaf4f2;
    box-shadow: inset 2px 0 var(--tenant-primary, #167c72);
    font-weight: 750;
  }
  .staff-sidebar .wb-nav-link--active > i { color: var(--tenant-primary, #167c72); }

  .staff-sidebar__footer {
    padding: .75rem .8rem max(.8rem, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e9eeee;
    background: #fff;
  }
  .staff-sidebar__user { gap: .55rem; }
  .staff-sidebar__avatar,
  .staff-sidebar__user > span {
    display: grid;
    place-items: center;
    flex: 0 0 2rem;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    color: #155f58;
    background: #e4f1ef;
    font-size: .72rem;
    font-weight: 800;
  }
  .staff-sidebar__user strong { color: #26373c; font-size: .7rem; }
  .staff-sidebar__user small { color: #87959a; font-size: .64rem; }
  .staff-sidebar__footer-actions { gap: .35rem; margin-top: .65rem; }
  .staff-sidebar__footer-actions a,
  .staff-sidebar__footer-actions button {
    min-height: 2.25rem;
    padding: .3rem .45rem;
    color: #65757a;
    border-color: #e6ebec;
    border-radius: .55rem;
    background: #fff;
    font-size: .68rem;
  }
  .staff-sidebar__lock button { color: #145e58; border-color: #d8e9e6; background: #edf6f4; }
  .staff-sidebar__footer-actions a:hover,
  .staff-sidebar__footer-actions button:hover { color: #1c3035; background: #f5f8f8; }

  .staff-main { max-width: 1180px; padding: 1.8rem 2.15rem 3.5rem; }
  .staff-main--wide { max-width: 1480px; }
  .staff-main--dashboard { max-width: 1420px; }
  .staff-body--pos .staff-app-shell__body { overflow: auto; }
  .staff-body--pos main.staff-main.staff-main--pos { min-height: 100vh; overflow: auto; }
  main.staff-main.staff-main--wide.staff-main--pos { max-width: 1560px; }
}

.staff-dash-hero--modern { margin-bottom: 1.35rem; }
.staff-dash-hero--modern .staff-dash-hero__panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  padding: .35rem 0 1.15rem;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #e1e7e8;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.staff-dash-hero--modern .staff-dash-hero__panel::before { display: none; }
.staff-dash-hero--modern .staff-dash-hero__copy { min-width: 0; }
.staff-dash-hero--modern .staff-dash-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .55rem;
  color: #6e817f;
  font-size: .67rem;
  letter-spacing: .08em;
}
.staff-dash-hero--modern .staff-dash-hero__eyebrow i { color: var(--tenant-primary, #167c72); font-size: .85rem; }
.staff-dash-hero--modern .staff-dash-hero__title {
  color: #1d2b31;
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 760;
  letter-spacing: -.045em;
}
.staff-dash-hero--modern .staff-dash-hero__tagline { margin-top: .48rem; color: #6a7a80; font-size: .91rem; }
.staff-dash-date {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .7rem;
  color: #596b71;
  border: 1px solid #e1e8e9;
  border-radius: .6rem;
  background: #fff;
  font-size: .74rem;
  font-weight: 650;
  white-space: nowrap;
}
.staff-dash-date i { color: var(--tenant-primary, #167c72); }
.staff-section-head {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 1.55rem 0 .7rem;
  color: #25363c;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -.02em;
}
.staff-dash-hero--modern + .staff-card,
.staff-main--dashboard .staff-operations-pulse,
.staff-main--dashboard .staff-property-pulse,
.staff-main--dashboard .staff-dash-sales {
  border-color: #e4e9ea;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 5px 18px rgba(24, 37, 44, .035);
}
.staff-main--dashboard .staff-tile-grid { gap: .65rem; }
.staff-main--dashboard .staff-tile {
  min-height: 5rem;
  border-color: #e3e9ea;
  border-radius: .78rem;
  background: #fff;
  box-shadow: 0 3px 10px rgba(24, 37, 44, .025);
}
.staff-main--dashboard .staff-tile:hover { border-color: color-mix(in srgb, var(--tenant-primary, #167c72) 38%, #e3e9ea); box-shadow: 0 8px 20px rgba(24, 37, 44, .07); transform: translateY(-2px); }
.staff-main--dashboard .staff-tile--emphasis { border-color: color-mix(in srgb, var(--tenant-primary, #167c72) 28%, #e3e9ea); background: #f8fcfb; }
.staff-main--dashboard .staff-operations-metric,
.staff-main--dashboard .staff-property-kpi,
.staff-main--dashboard .staff-dash-sales__kpi {
  border-color: #e8edee;
  border-radius: .7rem;
  box-shadow: none;
}

.staff-pos-orders-hero,
.staff-pos-orders-history {
  border-color: #e3e9ea;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 4px 16px rgba(24, 37, 44, .035);
}
.staff-pos-orders-hero { padding: 1rem 1.1rem .9rem; }
.staff-pos-orders-kicker { color: #70837f; font-size: .65rem; font-weight: 750; letter-spacing: .1em; }
.staff-page-title--pos { color: #1d2b31; font-size: clamp(1.55rem, 2.4vw, 2rem); letter-spacing: -.04em; }
.staff-pos-orders-summary { gap: .5rem; margin-top: .8rem; }
.staff-pos-orders-summary__item { min-height: 3.55rem; padding: .48rem .7rem; background: #f8faf9; }
.staff-pos-orders-summary__label { color: #78888d; font-size: .64rem; font-weight: 650; }
.staff-pos-orders-summary__value { color: #25363c; font-size: 1.1rem; font-weight: 760; }
.staff-pos-orders-history { padding: 1rem 1.1rem; }
.staff-pos-orders-history__controls { gap: .6rem; }
.staff-pos-order-card { border-radius: .68rem; background: #fff; }
.staff-pos-order-card__title { color: #223238; font-weight: 750; }
.staff-pos-order-card__meta { color: #76868b; }
.staff-pos-order-accent { background: var(--tenant-primary, #167c72); }
.staff-pos-totals-row {
  gap: .65rem 1rem;
  margin-bottom: .85rem;
  padding: .75rem 1rem;
  border-color: #e2e9e9;
  border-radius: .8rem;
  background: #fff;
  box-shadow: none;
}
.staff-pos-totals-row__total { color: #1e3238; font-size: 1.35rem; }
.staff-pos-order-main,
.staff-pos-order-side { min-width: 0; }
.staff-pos-order-main { border-color: #e3e9ea; border-radius: .9rem; box-shadow: 0 4px 16px rgba(24, 37, 44, .035); }
.staff-pos-order-side > .staff-card--pos { border-color: #e3e9ea; border-radius: .82rem; box-shadow: 0 3px 12px rgba(24, 37, 44, .025); }
.staff-pos-order-side .staff-card__title--pos { color: #26383e; font-size: .95rem; }
.staff-pos-menu-head { display: flex; align-items: end; justify-content: space-between; gap: .65rem; margin-bottom: .7rem; }
.staff-pos-menu-eyebrow { display: block; margin-bottom: .2rem; color: #78908b; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.staff-pos-menu-hint { color: #849297; font-size: .67rem; white-space: nowrap; }
.staff-pos-menu-browser { margin: 0 0 .85rem; }
.staff-pos-menu-tools { display: flex; align-items: center; gap: .5rem; margin-bottom: .55rem; }
.staff-pos-menu-search { display: flex; align-items: center; flex: 1; min-width: 0; height: 2.45rem; gap: .45rem; padding: 0 .65rem; color: #8b999d; border: 1px solid #e3e9ea; border-radius: .6rem; background: #fbfcfc; }
.staff-pos-menu-search i { flex: 0 0 auto; font-size: .8rem; }
.staff-pos-menu-search input { width: 100%; min-width: 0; height: 100%; padding: 0; color: #26363c; border: 0; outline: 0; background: transparent; font: inherit; font-size: .76rem; }
.staff-pos-menu-search input::placeholder { color: #9aa6a9; }
.staff-pos-menu-count { color: #869397; font-size: .65rem; white-space: nowrap; }
.staff-pos-menu-categories { display: flex; gap: .35rem; overflow-x: auto; margin: 0 -.05rem .6rem; padding: .05rem .05rem .3rem; scrollbar-width: thin; }
.staff-pos-category-filter { flex: 0 0 auto; min-height: 1.9rem; padding: .28rem .62rem; color: #617278; border: 1px solid #e5eaeb; border-radius: 99rem; background: #fff; font: inherit; font-size: .66rem; font-weight: 650; cursor: pointer; }
.staff-pos-category-filter:hover { border-color: #bfd6d2; background: #f7fbfa; }
.staff-pos-category-filter.is-active { color: #145e58; border-color: #cde2de; background: #eaf4f2; }
.staff-pos-menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem; }
.staff-pos-menu-tile {
  position: relative;
  display: grid;
  grid-template-columns: 1.65rem minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: .05rem .5rem;
  min-width: 0;
  min-height: 3.45rem;
  padding: .48rem .5rem;
  text-align: left;
  color: #2a3b40;
  border: 1px solid #e6ebec;
  border-radius: .62rem;
  background: #fff;
  font: inherit;
  cursor: pointer;
  transition: border-color .14s ease, background .14s ease, transform .14s ease, box-shadow .14s ease;
}
.staff-pos-menu-tile:hover { border-color: #c5dcd8; background: #fbfefd; box-shadow: 0 4px 12px rgba(24, 75, 68, .06); transform: translateY(-1px); }
.staff-pos-menu-tile.is-selected { border-color: var(--tenant-primary, #167c72); background: #f0f8f6; box-shadow: inset 0 0 0 1px var(--tenant-primary, #167c72); }
.staff-pos-menu-tile__icon { display: grid; grid-row: 1 / span 2; place-items: center; width: 1.65rem; height: 1.65rem; color: var(--tenant-primary, #167c72); border-radius: .5rem; background: #edf5f3; font-size: .7rem; }
.staff-pos-menu-tile__name { overflow: hidden; color: #33454a; font-size: .7rem; font-weight: 700; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.staff-pos-menu-tile__price { color: #75858a; font-size: .62rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.staff-pos-menu-empty { margin: .4rem 0 0; padding: .7rem; text-align: center; color: #7b8a8f; border: 1px dashed #dbe4e5; border-radius: .6rem; font-size: .73rem; }
.staff-pos-add-item-form { display: grid; grid-template-columns: minmax(0, 1fr) 5.3rem auto; align-items: end; gap: .55rem; padding-top: .8rem; border-top: 1px solid #edf0f1; }
.staff-pos-add-item-form__selection { grid-column: 1 / -1; min-width: 0; }
.staff-pos-add-item-form__selection .staff-input { min-height: 2.5rem; font-size: .78rem; }
.staff-pos-add-item-form__quantity .staff-input { min-height: 2.5rem; padding: .45rem; font-size: .78rem; }
.staff-pos-add-item-form__quantity label { display: block; margin-bottom: .25rem; color: #65757a; font-size: .68rem; font-weight: 650; }
.staff-pos-add-item-form__submit .staff-btn { min-height: 2.5rem; padding: .45rem .7rem; font-size: .72rem; white-space: nowrap; }
.staff-pos-add-item-form__modifiers { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.staff-pos-add-item-form__modifiers:empty { display: none; }
.staff-pos-add-item-form__modifiers > div { margin: 0 !important; padding: .55rem; border: 1px solid #e7eded; border-radius: .58rem; background: #f9fbfb; }
.staff-pos-add-item-form__modifiers .staff-label { color: #51656a; }
.staff-pos-add-item-form__modifiers label { color: #63747a; cursor: pointer; }

@media (min-width: 900px) {
  .staff-pos-order-layout { gap: .85rem; }
  .staff-pos-order-main { flex: 1 1 62%; }
  .staff-pos-order-side { flex: 0 1 38%; max-width: 35rem; }
}

@media (max-width: 1023.98px) {
  .staff-nav {
    padding: .55rem .75rem;
    gap: .4rem .65rem;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 2px 12px rgba(24, 37, 44, .04);
  }
  .staff-nav__brand { min-height: 2.45rem; font-size: .93rem; }
  .staff-nav__links { gap: .15rem; }
  .staff-nav__link { min-height: 2.35rem; padding: .3rem .65rem; border-radius: .55rem; font-size: .78rem; }
  .staff-nav__link--active { color: #145e58; background: #eaf4f2; }
  .staff-nav__meta { gap: .4rem; }
  .staff-nav__field-label { font-size: .69rem; }
  .staff-nav__meta .staff-nav__email { display: none; }
  .staff-nav__outlet-form .staff-input { min-height: 2.55rem; border-radius: .6rem; background: #f8faf9; }
}

@media (max-width: 640px) {
  .staff-main { padding: 1rem .85rem 2rem; }
  .staff-dash-hero--modern .staff-dash-hero__panel { align-items: flex-start; padding-bottom: .9rem; }
  .staff-dash-hero--modern .staff-dash-hero__title { font-size: 1.65rem; }
  .staff-dash-hero--modern .staff-dash-hero__tagline { font-size: .82rem; }
  .staff-dash-date { padding: .4rem .52rem; font-size: .66rem; }
  .staff-main--dashboard .staff-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-pos-orders-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .staff-pos-orders-hero { padding: .8rem; }
  .staff-pos-orders-history { padding: .8rem; }
  .staff-pos-add-item-form { grid-template-columns: minmax(0, 1fr) 4.5rem; }
  .staff-pos-add-item-form__submit { grid-column: 1 / -1; }
  .staff-pos-add-item-form__submit .staff-btn { width: 100%; }
  .staff-pos-add-item-form__modifiers { grid-template-columns: 1fr; }
}
.staff-register-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 1.2rem; }
.staff-register-head .staff-card__title { margin: .5rem 0 .2rem; }
.staff-register-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; margin-bottom: 1.25rem; }
.staff-register-summary > div { border: 1px solid #dce5e4; border-radius: .7rem; background: #f8faf9; padding: .85rem 1rem; }
.staff-register-summary span { display: block; color: #53666b; font-size: .82rem; }
.staff-register-summary strong { display: block; margin-top: .4rem; font-size: 1.15rem; font-variant-numeric: tabular-nums; color: #19343a; white-space: nowrap; }
.staff-register-summary__total { background: #e7f2ef !important; border-color: #b4d9cd !important; }
.staff-register-variance { color: #9b3b31; }
.staff-field-error { display: block; margin-top: .35rem; color: #9b3b31; font-size: .88rem; font-weight: 650; }
.staff-register-form .staff-input { display: block; width: min(100%, 30rem); margin-top: .35rem; }
.staff-register-form .staff-btn { min-height: var(--staff-tap-target); }
@media (max-width: 900px) { .staff-register-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 500px) { .staff-register-summary { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .staff-team-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .staff-team-filters .staff-btn { justify-self: start; } }
@media (max-width: 600px) { .staff-team-filters { grid-template-columns: 1fr; } .staff-team-bulk { display: grid; grid-template-columns: 1fr; } .staff-team-bulk .staff-input { width: 100%; } }
@media (max-width: 600px) {
  .staff-filter-select { flex: 1 1 10rem; }
  .staff-stay-dates { white-space: normal; }
  .staff-metric-row--folio { grid-template-columns: 1fr; }
}

/* Shared terminal: calm, high contrast handoff with comfortable touch targets. */
.staff-terminal-body { min-height: 100vh; background: #f3f5f5; color: #172c34; }
.staff-terminal { width: min(100% - 2rem, 68rem); min-height: 100vh; margin: auto; display: flex; flex-direction: column; }
.staff-terminal__masthead { display: flex; align-items: center; gap: .7rem; padding: 2rem 0; font-weight: 700; letter-spacing: -.02em; }
.staff-terminal__mark { width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: .55rem; color: #fff; background: #126b69; font-size: .75rem; }
.staff-terminal__status { margin-left: auto; border: 1px solid #bbd2d0; background: #e7f0ef; color: #295b59; padding: .35rem .8rem; border-radius: 99rem; font-size: .8rem; letter-spacing: 0; }
.staff-terminal__panel { width: min(100%, 29rem); margin: auto; padding: 2.4rem; border: 1px solid #dce4e3; border-radius: 1.25rem; background: #fff; box-shadow: 0 22px 55px rgba(16, 42, 47, .08); }
.staff-terminal__eyebrow { color: #126b69; font-weight: 800; letter-spacing: .11em; font-size: .72rem; }
.staff-terminal__panel h1, .staff-pin-page h1 { margin: .65rem 0 0; color: #172c34; letter-spacing: -.045em; font-size: clamp(2rem, 5vw, 2.65rem); line-height: 1.1; }
.staff-terminal__intro { margin: .85rem 0 1.8rem; line-height: 1.55; color: #52646b; }
.staff-terminal__form, .staff-pin-page__form { display: grid; gap: 1.15rem; }
.staff-terminal__form .staff-input, .staff-pin-page__form .staff-input { display: block; width: 100%; min-height: 3.25rem; margin-top: .45rem; font-size: 1rem; }
.staff-terminal__submit { width: 100%; min-height: 3.3rem; margin-top: .35rem; font-weight: 750; }
.staff-terminal__alternative { display: inline-flex; gap: .45rem; align-items: center; margin-top: 1.5rem; font-weight: 700; color: #126b69; text-decoration: none; }
.staff-terminal__alternative:hover, .staff-pin-page__back:hover { text-decoration: underline; }
.staff-terminal__empty { background: #f3f7f7; padding: 1rem; border-radius: .65rem; color: #42575d; }
.staff-terminal__error { padding: .7rem .85rem; background: #fff2ef; border-radius: .55rem; color: #993a2f; font-size: .9rem; }
.staff-terminal__foot { text-align: center; color: #62747b; font-size: .88rem; margin: 2rem 0; }
.staff-terminal__login-link { margin: 1rem 0 0; }
.staff-terminal__login-link a, .staff-pin-page__back { color: #126b69; font-weight: 700; }
.staff-pin-page { max-width: 43rem; margin: 0 auto; }
.staff-pin-page__back { display: inline-block; text-decoration: none; margin: .3rem 0 1.4rem; }
.staff-pin-page__card { padding: clamp(1.4rem, 4vw, 2.5rem); }
.staff-pin-page__card p { margin: 1rem 0 1.7rem; line-height: 1.6; }
.staff-pin-page__form { max-width: 27rem; }
@media (max-width: 600px) {
  .staff-terminal { width: min(100% - 1.25rem, 32rem); }
  .staff-terminal__masthead { padding: 1.2rem 0; }
  .staff-terminal__panel { padding: 1.5rem; }
  .staff-terminal__foot { margin: 1.5rem 0; }
}

/* Dashboard task buttons share tile geometry and keyboard focus with links. */
.staff-tile-form { margin: 0; min-width: 0; }
.staff-tile-form > .staff-tile { width: 100%; height: 100%; text-align: left; font: inherit; cursor: pointer; }

/* Kitchen display: prioritize ticket status and one-tap handoff actions. */
.staff-pos-kds-page { gap: .8rem; }
.staff-pos-kds-head.staff-pos-orders-hero { margin-bottom: 0; padding: 1rem 1.15rem; }
.staff-pos-kds-head--with-live { align-items: center; }
.staff-pos-kds-head .staff-page-title--pos { font-size: clamp(1.55rem, 2.3vw, 2.1rem); }
.staff-pos-kds-meta { margin-top: .25rem; color: #73848a; font-size: .8rem; font-weight: 600; }
.staff-kds-live { min-height: 2.5rem; padding-inline: .8rem; box-shadow: 0 2px 8px rgba(24, 40, 44, .04); }
.staff-kds-live__dot { position: relative; }
.staff-kds-live[data-kds-live-status="live"] .staff-kds-live__dot { box-shadow: 0 0 0 3px rgba(34, 197, 94, .14); }
.staff-kds-summary {
  display: grid;
  grid-template-columns: minmax(12rem, 1.25fr) repeat(3, minmax(8rem, 1fr));
  gap: .65rem;
  padding: .7rem;
  border: 1px solid #e4eaea;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 4px 15px rgba(24, 37, 44, .035);
}
.staff-kds-summary__intro,
.staff-kds-summary__metric { display: flex; align-items: center; gap: .65rem; min-width: 0; padding: .45rem .65rem; }
.staff-kds-summary__intro { align-items: flex-start; flex-direction: column; justify-content: center; gap: .08rem; }
.staff-kds-summary__eyebrow { color: var(--tenant-primary, #167c72); font-size: .61rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.staff-kds-summary__intro strong { color: #22373d; font-size: .9rem; font-weight: 780; }
.staff-kds-summary__intro > span:last-child { color: #839197; font-size: .68rem; }
.staff-kds-summary__metric { justify-content: space-between; padding: .55rem .8rem; border: 1px solid #e8edee; border-radius: .68rem; background: #fafcfc; }
.staff-kds-summary__metric > span { color: #64767c; font-size: .73rem; font-weight: 650; }
.staff-kds-summary__metric strong { color: #33484e; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.staff-kds-summary__metric--pending { border-color: #dce8f2; background: #f5f9fc; }
.staff-kds-summary__metric--pending strong { color: #3575a8; }
.staff-kds-summary__metric--working { border-color: #f1e4c9; background: #fffbf2; }
.staff-kds-summary__metric--working strong { color: #a7731d; }
.staff-kds-summary__metric--ready { border-color: #d5ebe1; background: #f3faf6; }
.staff-kds-summary__metric--ready strong { color: #25805a; }
.staff-kds-queue-region { gap: .65rem; }
.staff-pos-kds-grid { gap: .8rem; padding-bottom: .8rem; }
.staff-pos-kds-card {
  padding: 0;
  overflow: hidden;
  border-color: #e0e8e8;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 5px 16px rgba(24, 37, 44, .045);
}
.staff-pos-kds-card__head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .9rem 1rem; border-bottom: 1px solid #e9eeee; background: #fbfcfc; }
.staff-pos-kds-card__eyebrow { display: block; margin-bottom: .1rem; color: #87969b; font-size: .58rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.staff-pos-kds-card__title { min-width: 0; margin: 0; font-size: 1rem; font-weight: 800; }
.staff-pos-kds-card__link { color: #263a40; text-decoration: none; }
.staff-pos-kds-card__link:hover { color: var(--tenant-primary, #167c72); text-decoration: underline; text-underline-offset: 3px; }
.staff-pos-kds-card__table { display: inline-flex; align-items: center; gap: .35rem; max-width: 48%; padding: .35rem .55rem; overflow: hidden; border: 1px solid #e5e9e9; border-radius: .55rem; color: #617278; background: #fff; font-size: .68rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.staff-pos-kds-lines { gap: .45rem; padding: .65rem; }
.staff-pos-kds-line { align-items: center; gap: .65rem; padding: .7rem; border-color: #e8eded; border-radius: .68rem; background: #fff; }
.staff-pos-kds-line--working { border-color: #f0dfb9; background: #fffbf2; }
.staff-pos-kds-line--ready { border-color: #cfe6da; background: #f2faf6; }
.staff-pos-kds-line__main { align-items: flex-start; gap: .6rem; }
.staff-pos-kds-line__qty { min-width: 2.2rem; padding-top: .04rem; color: #30494e; font-size: 1rem; text-align: center; }
.staff-pos-kds-line__name { color: #293d42; font-size: .9rem; font-weight: 720; }
.staff-pos-kds-line__details { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem; margin-top: .38rem; }
.staff-pos-kds-status,
.staff-pos-kds-line__station { display: inline-flex; align-items: center; gap: .25rem; min-height: 1.35rem; padding: .14rem .4rem; border: 1px solid #e5eaea; border-radius: 99px; color: #738288; background: #fff; font-size: .59rem; font-weight: 700; line-height: 1.2; }
.staff-pos-kds-status--pending { color: #397aaa; border-color: #d7e6f1; background: #f4f9fc; }
.staff-pos-kds-status--in_prep { color: #9a6a13; border-color: #eeddb8; background: #fff9eb; }
.staff-pos-kds-status--ready { color: #267650; border-color: #cde6d8; background: #f0f9f4; }
.staff-pos-kds-line__station { color: #66797d; }
.staff-pos-kds-line__action .btn { min-width: 5.5rem; }
.staff-kds-action { min-height: 2.55rem; padding: .45rem .7rem; border: 1px solid #cde3dc; border-radius: .6rem; color: #175e55; background: #edf7f3; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.staff-kds-action:hover { border-color: #a5d2c3; background: #e1f2eb; }
.staff-kds-action--ready { border-color: #23835c; color: #fff; background: #27825d; }
.staff-kds-action--ready:hover { border-color: #1d704f; color: #fff; background: #1f7452; }
.staff-kds-empty { display: grid; justify-items: center; gap: .35rem; padding: clamp(1.5rem, 4vw, 3rem) 1rem; border: 1px dashed #d7e1e1; border-radius: .9rem; background: #fbfdfc; text-align: center; }
.staff-kds-empty__icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; margin-bottom: .2rem; border-radius: .8rem; color: #27825d; background: #e7f4ed; font-size: 1.25rem; }
.staff-kds-empty h2 { margin: 0; color: #2a4045; font-size: 1rem; font-weight: 780; }
.staff-kds-empty p { margin: 0; color: #78898e; font-size: .78rem; }
@media (max-width: 800px) {
  .staff-kds-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .staff-kds-summary__intro { grid-column: 1 / -1; padding: .25rem .55rem .45rem; }
}
@media (max-width: 520px) {
  .staff-kds-summary { gap: .4rem; padding: .45rem; }
  .staff-kds-summary__metric { align-items: flex-start; flex-direction: column-reverse; gap: .1rem; padding: .5rem; }
  .staff-kds-summary__metric > span { font-size: .62rem; }
  .staff-pos-kds-line { align-items: flex-start; flex-direction: column; }
  .staff-pos-kds-line__action, .staff-pos-kds-line__action form, .staff-kds-action { width: 100%; }
  .staff-pos-kds-line__action .badge { display: inline-flex; }
}

/* Catalog: make price, item identity, and guest display settings easy to scan. */
.staff-main--menu-catalog { max-width: 104rem; }
.staff-menu-hero .staff-dash-hero__panel { padding: 1.4rem 1.55rem; }
.staff-menu-hero .staff-dash-hero__eyebrow { display: flex; align-items: center; gap: .45rem; }
.staff-menu-hero .staff-page-title { margin-top: .15rem !important; }
.staff-menu-hero__summary { display: inline-flex; align-items: center; gap: .65rem; min-width: 8.5rem; padding: .65rem .8rem; border: 1px solid #e2eaea; border-radius: .8rem; background: rgba(255, 255, 255, .8); }
.staff-menu-hero__summary-icon { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .7rem; color: var(--tenant-primary, #167c72); background: #e9f3f1; font-size: 1rem; }
.staff-menu-hero__summary strong, .staff-menu-hero__summary small { display: block; }
.staff-menu-hero__summary strong { color: #20373c; font-size: 1.05rem; font-weight: 800; line-height: 1.1; }
.staff-menu-hero__summary small { margin-top: .13rem; color: #78888d; font-size: .66rem; }
.staff-menu-tv-note { display: flex; align-items: center; gap: .8rem; margin: 0 0 1.1rem; padding: .85rem 1rem; border: 1px solid #dcebe6; border-radius: .82rem; background: #f5faf8; }
.staff-menu-tv-note__icon { display: grid; place-items: center; flex: 0 0 2.3rem; width: 2.3rem; height: 2.3rem; border-radius: .68rem; color: #167c72; background: #e3f1ec; font-size: 1rem; }
.staff-menu-tv-note > div { min-width: 0; flex: 1; }
.staff-menu-tv-note strong { display: block; color: #284440; font-size: .79rem; font-weight: 760; }
.staff-menu-tv-note p { margin: .12rem 0 0; color: #667a78; font-size: .72rem; }
.staff-menu-tv-note__hint { color: #849493; font-size: .65rem; white-space: nowrap; }
.staff-menu-catalog-heading { display: flex; align-items: end; justify-content: space-between; margin: 1.35rem 0 .75rem; }
.staff-menu-catalog-heading h2 { margin: 0; color: #263a40; font-size: 1rem; font-weight: 780; letter-spacing: -.015em; }
.staff-menu-catalog-heading p { margin: .15rem 0 0; color: #7a898e; font-size: .72rem; }
.staff-menu-categories { display: grid; gap: .85rem; }
.staff-menu-category { padding: .9rem; border: 1px solid #e1e8e8; border-radius: .95rem; background: #fff; box-shadow: 0 4px 15px rgba(24, 37, 44, .03); }
.staff-menu-category__head { display: flex; align-items: center; gap: .65rem; margin: 0 0 .75rem; padding: .05rem .1rem .75rem; border-bottom: 1px solid #edf0f0; }
.staff-menu-category__icon { display: grid; place-items: center; flex: 0 0 2.25rem; width: 2.25rem; height: 2.25rem; border: 1px solid #e4ecea; border-radius: .68rem; color: #21796e; background: #f0f7f5; }
.staff-menu-category__title-wrap { min-width: 0; flex: 1; }
.staff-menu-category__eyebrow { display: block; color: #849397; font-size: .56rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.staff-menu-category__head h3 { overflow: hidden; margin: .05rem 0 0; color: #253b40; font-size: .92rem; font-weight: 780; text-overflow: ellipsis; white-space: nowrap; }
.staff-menu-category__count { flex: 0 0 auto; padding: .27rem .52rem; border: 1px solid #e6ebeb; border-radius: 99px; color: #738287; background: #fafcfc; font-size: .64rem; font-weight: 700; }
.staff-menu-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 24rem), 1fr)); gap: .6rem; }
.staff-menu-item-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .65rem .8rem; min-width: 0; padding: .72rem; border: 1px solid #e8eded; border-radius: .76rem; background: #fcfdfd; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.staff-menu-item-card:hover { border-color: #d2e1dd; background: #fff; box-shadow: 0 5px 14px rgba(24, 37, 44, .04); }
.staff-menu-item-card__identity { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.staff-menu-item-card__image { flex: 0 0 3.1rem; width: 3.1rem; height: 3.1rem; border: 1px solid #e4eae9; border-radius: .66rem; object-fit: cover; }
.staff-menu-item-card__image--placeholder { display: grid; place-items: center; color: #428278; background: #eff6f4; font-size: 1.12rem; }
.staff-menu-item-card__copy { min-width: 0; }
.staff-menu-item-card__copy h4 { overflow: hidden; margin: 0; color: #293e43; font-size: .81rem; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.staff-menu-item-card__sku { display: inline-block; margin-top: .12rem; color: #8a979b; font-size: .6rem; }
.staff-menu-item-card__availability { display: flex; align-items: start; gap: .27rem; margin: .22rem 0 0; color: #75868a; font-size: .64rem; line-height: 1.35; }
.staff-menu-item-card__availability i { flex: 0 0 auto; margin-top: .05rem; color: #7a9690; }
.staff-menu-item-card__commercial { display: grid; justify-items: end; gap: .08rem; }
.staff-menu-item-card__commercial > span:first-child { color: #8a979b; font-size: .56rem; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.staff-menu-item-card__commercial > strong { color: #1d5e54; font-size: .88rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.staff-menu-featured { display: inline-flex; align-items: center; gap: .2rem; margin-top: .15rem; color: #94661a; font-size: .58rem; font-weight: 700; white-space: nowrap; }
.staff-menu-item-card__details { grid-column: 1 / -1; border-top: 1px solid #edf0f0; }
.staff-menu-item-card__details summary { display: flex; align-items: center; gap: .35rem; width: fit-content; padding: .5rem .1rem .05rem; color: #687a7e; font-size: .65rem; font-weight: 700; cursor: pointer; list-style: none; }
.staff-menu-item-card__details summary::-webkit-details-marker { display: none; }
.staff-menu-item-card__details summary::after { margin-left: .2rem; color: #98a5a7; content: "+"; font-size: .9rem; }
.staff-menu-item-card__details[open] summary::after { content: "−"; }
.staff-menu-display-form { display: grid; gap: .55rem; padding: .7rem .1rem .15rem; }
.staff-menu-display-form > label:not(.staff-menu-featured-toggle) { display: grid; gap: .25rem; color: #627479; font-size: .64rem; font-weight: 680; }
.staff-menu-display-form .staff-input { min-height: 2.35rem; font-size: .72rem; }
.staff-menu-featured-toggle { display: flex; align-items: center; gap: .45rem; color: #40565a; font-size: .68rem; font-weight: 650; }
.staff-menu-featured-toggle input { width: 1rem; height: 1rem; accent-color: var(--tenant-primary, #167c72); }
.staff-menu-display-form .staff-btn { justify-self: start; min-height: 2.35rem; }
.staff-menu-category__empty { grid-column: 1 / -1; padding: .75rem; color: #839095; font-size: .72rem; }
.staff-menu-empty { display: flex; align-items: center; gap: .8rem; padding: 1.1rem; border: 1px dashed #d8e2e1; border-radius: .88rem; background: #fbfdfc; }
.staff-menu-empty__icon { display: grid; place-items: center; flex: 0 0 2.5rem; width: 2.5rem; height: 2.5rem; border-radius: .75rem; color: #4c7772; background: #edf5f3; font-size: 1.1rem; }
.staff-menu-empty h2 { margin: 0; color: #30464b; font-size: .9rem; font-weight: 760; }
.staff-menu-empty p { margin: .15rem 0 0; color: #79898e; font-size: .72rem; }
@media (max-width: 700px) {
  .staff-menu-hero .staff-dash-hero__panel { padding: 1rem; }
  .staff-menu-hero__summary { min-width: auto; padding: .45rem .55rem; }
  .staff-menu-hero__summary-icon { width: 2rem; height: 2rem; }
  .staff-menu-hero__summary small { font-size: .58rem; }
  .staff-menu-tv-note { align-items: flex-start; }
  .staff-menu-tv-note__hint { display: none; }
  .staff-menu-category { padding: .65rem; }
}
