/* Extends admin styles — load admin.css first in index.html */

#view-login.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(900px 500px at 10% -20%, rgba(45, 90, 39, 0.16), transparent 60%),
    radial-gradient(700px 400px at 100% 20%, rgba(80, 100, 74, 0.12), transparent 60%),
    #f8faf9;
}

#view-login .staff-login-shell {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1rem;
}

#view-login .staff-login-side {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #eef5ec;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#view-login .staff-login-side__eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #2f5a2a;
}

#view-login .staff-login-side h1 {
  margin: 0;
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
  line-height: 1.15;
  color: #163312;
}

#view-login .staff-login-side__copy {
  margin: 0.9rem 0 0;
  color: #3f4b39;
  max-width: 36ch;
  line-height: 1.55;
}

#view-login .login-card {
  margin: 0;
  width: 100%;
  max-width: none;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1);
  padding: 1.8rem;
}

#view-login .login-card h2 {
  margin: 0.4rem 0 0.3rem;
  font-size: 1.55rem;
  line-height: 1.2;
}

#view-login .orderkaro-logo--login {
  max-width: min(240px, 80%);
}

#view-login #form-login {
  gap: 0.95rem;
}

#view-login #form-login label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #334155;
}

#view-login #form-login input {
  border-radius: 0.85rem;
  min-height: 2.95rem;
  border-color: #d8e0d2;
  background: #f5f8f2;
}

#view-login #form-login input:focus {
  border-color: #3b6934;
  box-shadow: 0 0 0 4px rgba(59, 105, 52, 0.12);
}

#view-login #form-login .btn--primary {
  margin-top: 0.4rem;
  min-height: 3rem;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(90deg, #23501e 0%, #3b6934 100%);
  border: 0;
}

@media (max-width: 860px) {
  #view-login .staff-login-shell {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  #view-login .staff-login-side {
    padding: 1.35rem 1.2rem;
  }
}

/** Fixed so it stays visible while the orders table is scrolled. */
.staff-order-toast {
  position: fixed;
  top: 1rem;
  right: 1rem;
  left: auto;
  transform: none;
  z-index: 10050;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.4rem 0.4rem 0.4rem 0.75rem;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(6, 95, 70, 0.15);
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  pointer-events: auto;
}

.staff-order-toast--success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #6ee7b7;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(6, 95, 70, 0.15);
}

.staff-order-toast--warn {
  background: #fffbeb;
  color: #92400e;
  border-color: #fcd34d;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(146, 64, 14, 0.16);
}

.staff-order-toast--error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(153, 27, 27, 0.16);
}

/** Sticky live-queue alerts — high-attention gradients (distinct from subtle success/info toasts). */
.staff-order-toast--live-ops {
  font-weight: 700;
  border-width: 2px;
  padding: 0.55rem 0.55rem 0.55rem 0.85rem;
  animation: staff-order-toast-live-ops-pulse 2.8s ease-in-out infinite;
}

@keyframes staff-order-toast-live-ops-pulse {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.035);
  }
}

@media (prefers-reduced-motion: reduce) {
  .staff-order-toast--live-ops {
    animation: none;
  }
}

.staff-order-toast--live-ops-queue {
  background: linear-gradient(145deg, #fffbeb 0%, #fed7aa 42%, #fff7ed 100%);
  color: #78350f;
  border-color: #ea580c;
  box-shadow:
    0 14px 42px rgba(124, 45, 18, 0.22),
    0 0 0 2px rgba(234, 88, 12, 0.35);
}

.staff-order-toast--live-ops-attention {
  background: linear-gradient(145deg, #fff7ed 0%, #fdba74 38%, #ffedd5 100%);
  color: #7c2d12;
  border-color: #f97316;
  box-shadow:
    0 14px 42px rgba(124, 45, 18, 0.28),
    0 0 0 2px rgba(249, 115, 22, 0.4);
}

.staff-order-toast--live-ops-critical {
  background: linear-gradient(145deg, #fef2f2 0%, #fecaca 40%, #fff1f2 100%);
  color: #7f1d1d;
  border-color: #ef4444;
  box-shadow:
    0 14px 44px rgba(127, 29, 29, 0.3),
    0 0 0 2px rgba(239, 68, 68, 0.45);
}

.staff-order-toast--live-ops .staff-order-toast__close {
  color: inherit;
  opacity: 0.88;
}

.staff-order-toast--live-ops .staff-order-toast__close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.staff-order-toast__msg {
  flex: 1;
  text-align: left;
  padding: 0.05rem 0;
  white-space: pre-line;
  line-height: 1.35;
}

.staff-order-toast__close {
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #047857;
  cursor: pointer;
  transition: background 0.15s ease;
}

.staff-order-toast__close:hover {
  background: rgba(6, 95, 70, 0.12);
}

.staff-order-toast__close .material-symbols-outlined {
  font-size: 1rem;
  line-height: 1;
}

.staff-order-toast--hidden {
  display: none !important;
}

/** One-tap unlock for browser autoplay (especially after full refresh with session restore). */
.staff-sound-unlock-bar {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 10040;
  max-width: min(32rem, calc(100vw - 1.5rem));
  width: calc(100% - 1.5rem);
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font: inherit;
  box-shadow:
    0 10px 36px rgba(113, 63, 18, 0.28),
    0 0 0 2px rgba(245, 158, 11, 0.5);
  background: linear-gradient(145deg, #fef3c7 0%, #fde68a 45%, #fffbeb 100%);
  color: #78350f;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.staff-sound-unlock-bar:hover {
  transform: translateX(-50%) translateY(-1px);
  box-shadow:
    0 14px 40px rgba(113, 63, 18, 0.32),
    0 0 0 2px rgba(217, 119, 6, 0.55);
}

.staff-sound-unlock-bar:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 2px;
}

.staff-sound-unlock-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
}

.staff-sound-unlock-bar__icon.material-symbols-outlined {
  font-size: 1.55rem;
  flex-shrink: 0;
}

.staff-sound-unlock-bar__copy {
  flex: 1;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
}

.staff-sound-unlock-bar__cta {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(180, 83, 9, 0.2);
  color: #78350f;
  padding: 0.38rem 0.55rem;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .staff-sound-unlock-bar {
    transition: none;
  }

  .staff-sound-unlock-bar:hover {
    transform: translateX(-50%);
  }
}

#app-flash.flash {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: auto;
  max-width: 100%;
  margin-bottom: 0.7rem;
  padding: 0.32rem 0.5rem 0.32rem 0.6rem;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.2;
}

#app-flash .flash__msg {
  display: inline-block;
}

#app-flash .flash__close {
  border: 0;
  background: transparent;
  color: currentColor;
  cursor: pointer;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

#app-flash .flash__close:hover {
  background: rgba(15, 23, 42, 0.08);
}

.staff-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
}

.staff-confirm-modal--hidden {
  display: none;
}

.staff-confirm-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.5);
}

.staff-confirm-modal__card {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(420px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 12px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.24);
  padding: 1rem;
}

.staff-confirm-modal__title {
  margin: 0;
  font-size: 1rem;
}

.staff-confirm-modal__message {
  margin: 0.55rem 0 0;
  color: var(--muted, #64748b);
}

.staff-confirm-modal__actions {
  margin-top: 0.95rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.staff-settlement-modal__card {
  width: min(460px, calc(100vw - 2rem));
}

.staff-settlement-modal__bill {
  margin-top: 0.8rem;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #f8fafc;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.staff-settlement-modal__bill span {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
}

.staff-settlement-modal__bill strong {
  font-size: 1rem;
  color: #0f172a;
}

.staff-settlement-modal__part {
  margin-top: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.87rem;
  color: #0f172a;
  font-weight: 600;
}

.staff-settlement-modal__group {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.48rem;
}

.staff-settlement-modal__group[hidden] {
  display: none !important;
}

.staff-settlement-modal__group label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-settlement-modal__group input,
.staff-settlement-modal__group select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  height: 38px;
  padding: 0 0.7rem;
  font: inherit;
  background: #fff;
}

.staff-settlement-modal__group input::placeholder {
  color: #94a3b8;
}

.staff-settlement-modal__discount-row {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0.55rem;
}

.staff-settlement-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.staff-settlement-modal__field label {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-settlement-modal__field input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  height: 36px;
  padding: 0 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  box-sizing: border-box;
}

.staff-settlement-modal__field input::placeholder {
  color: #94a3b8;
}

.staff-settlement-modal__field input:focus {
  outline: none;
  border-color: rgba(45, 90, 39, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.staff-settlement-modal__bill--net {
  margin-top: 0.4rem;
  background: #f0fdf4;
  border-color: rgba(22, 163, 74, 0.35);
}

.staff-settlement-modal__bill--net span {
  color: #166534;
}

.staff-settlement-modal__bill--net strong {
  color: #14532d;
}

.staff-settlement-modal__error {
  margin: 0.6rem 0 0;
  color: #b42318;
  font-size: 0.8rem;
  font-weight: 600;
}

.staff-invoice-drawer {
  position: fixed;
  inset: 0;
  z-index: 10048;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease;
}

.staff-invoice-drawer--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.staff-invoice-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.42);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.staff-invoice-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(920px, 97vw);
  height: 100%;
  background: #ffffff;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
  border-radius: 24px 0 0 24px;
  overflow: hidden;
}

.staff-invoice-drawer--open .staff-invoice-drawer__backdrop {
  opacity: 1;
}

.staff-invoice-drawer--open .staff-invoice-drawer__panel {
  transform: translateX(0);
}

.staff-invoice-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
  background: #ffffff;
}

.staff-invoice-drawer__header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #154212;
}

.staff-invoice-drawer__body {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.8rem 0.9rem 0.9rem;
  background: #f7faf5;
}

.staff-invoice-restaurant-name {
  margin: 0 0 0.8rem;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #154212;
}

.staff-invoice-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border-radius: 14px;
  padding: 1rem;
  background: #f3f3f3;
}

.staff-invoice-meta--manual {
  margin-top: 0.45rem;
  border: 1px solid #dfe6dc;
  background: #eef3ea;
  padding: 0.75rem 0.85rem;
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(260px, 1fr) minmax(220px, 280px);
  align-items: center;
}

.staff-invoice-meta__block p {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
}

.staff-invoice-meta__block h4 {
  margin: 0.2rem 0 0;
  font-size: 1.35rem;
  color: #154212;
}

.staff-invoice-meta__value-row {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-top: 0.2rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.staff-invoice-meta__block--right {
  text-align: right;
}

.staff-invoice-meta__block--search {
  min-width: 0;
}

.staff-invoice-meta__search {
  max-width: none;
}

.staff-invoice-meta__search input {
  min-height: 2.65rem;
  font-size: 0.86rem;
}

.staff-invoice-meta__value-row--right {
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.staff-invoice-meta__block h5 {
  margin: 0;
  font-size: 1rem;
}

.staff-invoice-meta__block small {
  color: #64748b;
  font-size: 0.72rem;
  margin: 0;
}

.staff-invoice-search {
  margin-top: 0.75rem;
  position: relative;
}

.staff-invoice-search .material-symbols-outlined {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1rem;
}

.staff-invoice-search input,
.staff-invoice-search select {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.8rem 0.7rem 2.2rem;
  font: inherit;
}

.staff-invoice-search--picker {
  margin-top: 0.55rem;
}

.staff-invoice-toolbar {
  margin-top: 0.55rem;
}

.staff-invoice-search__select {
  appearance: none;
  min-height: 2.65rem;
  border-radius: 999px;
  border: 0;
  background: #e8ebe7;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 148, 0.12);
  padding: 0.45rem 2.8rem 0.45rem 2.15rem !important;
  color: #2f3b2f;
  font-size: 0.86rem;
}

.staff-invoice-search__select:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(63, 110, 58, 0.3),
    0 0 0 2px rgba(63, 110, 58, 0.12);
}

.staff-invoice-add-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.staff-invoice-inline-actions {
  margin-top: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.staff-invoice-inline-actions .btn {
  width: 100%;
}

.manual-order-entry--invoice-edit .manual-order-entry__workbench {
  margin-top: 0.45rem;
  grid-template-columns: 118px minmax(0, 0.9fr) 430px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
}

.manual-order-entry--invoice-edit {
  flex: 1 1 auto;
  min-height: 0;
}

.manual-order-entry--invoice-edit .manual-order-entry__categories,
.manual-order-entry--invoice-edit .manual-order-entry__items {
  height: 100%;
  min-height: 0;
}

.manual-order-entry--invoice-edit .manual-order-entry__catalog,
.manual-order-entry--invoice-edit .staff-invoice-summary-panel {
  min-height: 0;
  height: 100%;
}

.manual-order-entry--invoice-edit .manual-order-entry__search {
  max-width: none;
}

.staff-invoice-categories {
  background: #fbfdfb;
}

.staff-invoice-items {
  padding-right: 0.12rem;
}

.staff-invoice-lines {
  margin-top: 0;
  display: grid;
  gap: 0.42rem;
  flex: 1 1 auto;
  min-height: 220px;
  align-content: start;
}

.staff-invoice-summary-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  color: #5f665e;
  font-size: 0.95rem;
  line-height: 1.45;
}

.staff-invoice-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.staff-invoice-line__main {
  min-width: 0;
}

.staff-invoice-line__title {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  min-width: 0;
}

.staff-invoice-line__title strong {
  font-size: 0.9rem;
  line-height: 1.35;
  color: #154212;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.staff-invoice-line__main small {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.74rem;
  color: #64748b;
}

.staff-invoice-line__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.staff-invoice-qty {
  flex-shrink: 0;
}

.staff-invoice-qty button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.staff-invoice-qty span {
  min-width: 1.2rem;
  text-align: center;
  font-weight: 700;
}

.staff-invoice-line__remove {
  border: 0;
  border-radius: 999px;
  background: #fff1f2;
  color: #b91c1c;
  padding: 0.24rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.staff-invoice-total {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
  display: grid;
  gap: 0.3rem;
}

.staff-invoice-total__line {
  font-size: 0.78rem;
  color: #5b655a;
}

.staff-invoice-total__line[hidden],
.staff-invoice-total__gst-split[hidden] {
  display: none !important;
}

.staff-invoice-total__line--grand {
  margin-top: 0.15rem;
}

.staff-invoice-drawer__body input[type="text"],
.staff-invoice-drawer__body input[type="number"] {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.staff-invoice-drawer__footer {
  position: sticky;
  bottom: 0;
  align-items: stretch;
  gap: 0.36rem;
  padding: 0.5rem 0.55rem 0.55rem;
  background: #ffffff;
  border-top: 1px solid #dfe6dc;
}

.staff-invoice-drawer__footer-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.35rem;
}

.staff-invoice-drawer__footer-total span {
  display: block;
  font-weight: 600;
  color: #43503e;
}

#staff-invoice-grand-total-footer {
  font-size: 1.15rem;
  font-weight: 800;
  color: #154212;
}

.staff-invoice-drawer__footer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}

.staff-invoice-drawer__footer-actions .btn {
  width: 100%;
  min-height: 2.35rem;
  border-radius: 10px;
}

.staff-invoice-summary-panel {
  min-height: 0;
  background: #ffffff;
}

.staff-invoice-summary-footer {
  border-top: 1px solid #dfe6dc;
  background: #fff;
  margin-top: 0.4rem;
}

.staff-invoice-special-note {
  display: grid;
  gap: 0.22rem;
  margin-bottom: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8e0;
  border-radius: 12px;
  background: #fbfdfb;
}

.staff-invoice-special-note span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
  font-weight: 800;
  color: #4d584b;
}

.staff-invoice-special-note p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #43503e;
}

.staff-invoice-summary-footer__actions {
  display: grid;
  gap: 0.36rem;
}

.staff-invoice-summary-footer__actions .btn {
  width: 100%;
  min-height: 2.45rem;
  border-radius: 10px;
}

.staff-active-orders__action-pill--invoice-edit {
  background: linear-gradient(135deg, #ecfdf3 0%, #dcfce7 100%);
  border-color: #86efac;
  color: #166534;
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.12);
}

.staff-active-orders__action-pill--invoice-edit:hover {
  background: linear-gradient(135deg, #dff8ea 0%, #cbf4d8 100%);
  border-color: #4ade80;
}

.staff-active-orders__action-pill--invoice-edit .material-symbols-outlined {
  font-size: 1rem;
}

@media (max-width: 760px) {
  .staff-invoice-meta--manual {
    grid-template-columns: 1fr;
  }

  .staff-invoice-meta__block--right {
    text-align: left;
  }

  .staff-invoice-meta__value-row--right {
    justify-content: flex-start;
  }

  .staff-invoice-line {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .staff-invoice-line__actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .staff-invoice-drawer__footer {
    align-items: stretch;
  }

  .staff-invoice-search__select {
    font-size: 0.82rem;
  }

  .manual-order-entry--invoice-edit .manual-order-entry__workbench {
    grid-template-columns: 1fr;
    min-height: auto;
    height: auto;
    max-height: none;
  }

  .manual-order-entry--invoice-edit .manual-order-entry__categories,
  .manual-order-entry--invoice-edit .manual-order-entry__items {
    height: auto;
    max-height: 220px;
  }

  .staff-invoice-summary-empty {
    min-height: 120px;
  }

  .staff-invoice-lines {
    min-height: 120px;
  }
}

.staff-order-drawer {
  position: fixed;
  inset: 0;
  z-index: 10040;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease;
}

.staff-order-drawer--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.staff-order-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.42);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.staff-order-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.staff-order-drawer--open .staff-order-drawer__backdrop {
  opacity: 1;
}

.staff-order-drawer--open .staff-order-drawer__panel {
  transform: translateX(0);
}

.staff-order-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.staff-order-drawer__header h3 {
  margin: 0;
  font-size: 1rem;
}

.staff-order-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1rem 1.15rem;
  background: #f8faf9;
}

.staff-order-drawer__cover {
  position: relative;
  margin: -1rem -1rem 0.9rem;
  height: 124px;
  overflow: hidden;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.staff-order-drawer__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-order-drawer__cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(248, 250, 249, 0.95) 0%, rgba(248, 250, 249, 0.2) 55%, rgba(0, 0, 0, 0.08) 100%);
}

.staff-order-drawer__hero {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: linear-gradient(150deg, #eff6ec 0%, #f9fcf8 100%);
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.9rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-order-drawer__hero h4 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.staff-order-drawer__hero p {
  margin: 0.3rem 0 0;
  color: var(--muted, #64748b);
  font-size: 0.8rem;
}

.staff-order-drawer__status-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.3rem 0.55rem;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: #e2e8f0;
  color: #334155;
}

.staff-order-drawer__status-chip--new,
.staff-order-drawer__status-chip--order_placed,
.staff-order-drawer__status-chip--accepted,
.staff-order-drawer__status-chip--preparing,
.staff-order-drawer__status-chip--ready {
  background: #dcfce7;
  color: #166534;
}

.staff-order-drawer__status-chip--served {
  background: #dbeafe;
  color: #1e40af;
}

.staff-order-drawer__status-chip--paid,
.staff-order-drawer__status-chip--completed {
  background: #e0e7ff;
  color: #3730a3;
}

.staff-order-drawer__status-chip--cancelled {
  background: #fee2e2;
  color: #b91c1c;
}

.staff-order-drawer__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.staff-order-drawer__groups {
  display: grid;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.staff-order-drawer__group {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: #f8fafc;
  padding: 0.7rem;
}

.staff-order-drawer__group h5 {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-order-drawer__group .staff-order-drawer__meta {
  margin-bottom: 0;
}

.staff-order-drawer__meta div {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fff;
}

.staff-order-drawer__meta span {
  display: block;
  color: var(--muted, #64748b);
  font-size: 11px;
  margin-bottom: 0.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-order-drawer__meta strong {
  font-size: 0.95rem;
}

.staff-order-drawer__meta strong a {
  color: inherit;
  text-decoration: none;
}

.staff-order-drawer__bill-requested {
  grid-column: 1 / -1;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  background: #fffbeb;
}

.staff-order-drawer__bill-requested span {
  color: #92400e;
}

.staff-order-drawer__bill-requested strong {
  color: #78350f;
}

.staff-order-delay {
  margin-bottom: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
  background: #f8fafc;
}

.staff-order-delay h4 {
  margin: 0;
  font-size: 0.9rem;
}

.staff-order-delay p {
  margin: 0.2rem 0 0;
  color: #64748b;
  font-size: 12px;
}

.staff-order-delay__controls {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: minmax(0, 88px) 1fr;
  gap: 0.45rem;
}

.staff-order-delay__controls input {
  min-height: 2.25rem;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  text-align: center;
  font-weight: 700;
}

.staff-order-drawer__section h4 {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.staff-order-drawer__items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.staff-order-drawer__item {
  padding: 0.68rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.42);
}

.staff-order-drawer__item-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}

.staff-order-drawer__item-name-row {
  display: inline-flex;
  gap: 0.35rem;
  align-items: baseline;
}

.staff-order-drawer__item-qty {
  font-weight: 700;
  color: #0f766e;
}

.staff-diet-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  margin-right: 4px;
  vertical-align: baseline;
}

.staff-order-drawer__item-meta {
  color: var(--muted, #64748b);
  font-size: 12px;
  margin-top: 0.2rem;
}

.staff-order-drawer__settlement-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.staff-order-drawer__settlement-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: #f8fafc;
}

.staff-order-drawer__settlement-list li span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
}

.staff-order-drawer__settlement-list li strong {
  font-size: 0.88rem;
  color: #0f172a;
}

.staff-order-drawer__settlement-discount span,
.staff-order-drawer__settlement-discount strong {
  color: #b45309 !important;
}

.staff-order-drawer__settlement-discount {
  background: #fffbeb !important;
  border-color: rgba(217, 119, 6, 0.3) !important;
}

.staff-order-drawer__settlement-net {
  background: #f0fdf4 !important;
  border-color: rgba(22, 163, 74, 0.3) !important;
}

.staff-order-drawer__settlement-net span {
  color: #166534 !important;
}

.staff-order-drawer__settlement-net strong {
  color: #14532d !important;
  font-size: 0.95rem !important;
}

.staff-order-drawer__settlement-comment {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: #475569;
  font-style: italic;
  padding: 0.35rem 0.55rem;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid rgba(148, 163, 184, 0.5);
}

.staff-order-drawer__settlement-meta {
  margin: 0.5rem 0 0;
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.staff-order-drawer__footer {
  margin-top: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0.85rem;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  background: #fff;
  font-size: 0.95rem;
}

.staff-order-drawer__footer span {
  display: block;
  font-weight: 700;
}

.staff-order-drawer__footer small {
  color: var(--muted, #64748b);
  font-size: 11px;
}

.staff-order-drawer__footer strong {
  font-size: 1.25rem;
  letter-spacing: 0.01em;
}

.staff-order-drawer__actions {
  margin-top: 0.75rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.staff-order-drawer__actions .btn {
  border-radius: 999px;
  min-width: 0;
}

.staff-order-drawer__actions--top {
  margin-top: 0.55rem;
  margin-bottom: 0.45rem;
  justify-content: stretch;
}

.staff-order-drawer__actions--top .btn {
  flex: 1 1 0;
  padding: 0.52rem 0.45rem;
  font-size: 0.88rem;
  line-height: 1.1;
  white-space: nowrap;
}

.staff-menu-form-drawer {
  position: fixed;
  inset: 0;
  z-index: 10045;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.22s ease;
}

.staff-menu-form-drawer--hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.staff-menu-form-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.42);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.staff-menu-form-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(440px, 92vw);
  height: 100%;
  background: #fff;
  box-shadow: -16px 0 40px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.staff-menu-form-drawer--open .staff-menu-form-drawer__backdrop {
  opacity: 1;
}

.staff-menu-form-drawer--open .staff-menu-form-drawer__panel {
  transform: translateX(0);
}

.staff-menu-form-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.26);
}

.staff-menu-form-drawer__header h3 {
  margin: 0;
  font-size: 1rem;
}

.staff-menu-form-drawer__body {
  flex: 1;
  overflow: auto;
  padding: 0.8rem 0.9rem 0.9rem;
  gap: 0.5rem;
  align-content: start;
}

.staff-menu-form-drawer__body label {
  margin-bottom: 0.2rem;
}

.staff-menu-form-drawer__body textarea {
  min-height: 62px;
}

.layout--staff input[type="file"],
.staff-menu-form-drawer input[type="file"] {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.layout--staff input[type="file"]::file-selector-button,
.staff-menu-form-drawer input[type="file"]::file-selector-button {
  margin-right: 0.55rem;
  padding: 0.3rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.staff-drawer-check {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
}

.staff-drawer-check input[type="checkbox"] {
  margin: 0;
}

.staff-drawer-check span {
  color: var(--text);
  font-size: 0.9375rem;
}

.staff-kot-form-page {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: min(72vh, calc(100vh - 10rem));
}

.staff-kot-form-page__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.65rem 0 1rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border, #e2e8f0);
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--surface, #f8fafc);
}

.staff-kot-form-page__back {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: #fff;
  border: 1px solid var(--border, #e2e8f0);
  color: var(--text, #0f172a);
}

.staff-kot-form-page__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-kot-form-page__body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.staff-kot-form-page__name-panel label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.staff-kot-form-page__name-panel input {
  width: 100%;
  max-width: 420px;
}

.staff-kot-form-page__items-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.staff-kot-form-page__items-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.staff-kot-form-page__items-head h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.staff-kot-form-page__items-head p {
  margin: 0;
  font-size: 0.875rem;
}

.staff-kot-form-page__count {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary, #3d6b41);
  white-space: nowrap;
}

.staff-kot-form-page__search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  background: #fff;
}

.staff-kot-form-page__search input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 0.9375rem;
}

.staff-kot-form-page__search input:focus {
  outline: none;
  box-shadow: none;
}

.staff-kot-form-page__search .material-symbols-outlined {
  color: var(--muted, #64748b);
  font-size: 1.25rem;
}

.staff-kot-form-page__no-results {
  margin: 0;
}

.staff-kot-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.65rem;
}

.staff-kot-item-card {
  appearance: none;
  border: 2px solid var(--border, #e2e8f0);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.65rem;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  min-height: 96px;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.staff-kot-item-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.staff-kot-item-card.is-selected {
  border-color: var(--primary, #3d6b41);
  background: rgba(61, 107, 65, 0.06);
  box-shadow: 0 0 0 1px rgba(61, 107, 65, 0.15);
}

.staff-kot-item-card__check {
  font-size: 1.25rem;
  line-height: 1;
  color: #cbd5e1;
}

.staff-kot-item-card.is-selected .staff-kot-item-card__check {
  color: var(--primary, #3d6b41);
}

.staff-kot-item-card__name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text, #0f172a);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.staff-kot-item-card__meta {
  font-size: 0.75rem;
  color: var(--muted, #64748b);
}

.staff-kot-item-card__other {
  font-size: 0.7rem;
  color: #b45309;
  font-weight: 600;
}

.staff-kot-item-card.is-filter-hidden {
  display: none !important;
}

.staff-kot-form-page__no-results.is-filter-hidden {
  display: none !important;
}

@media (max-width: 640px) {
  .staff-kot-form-page__bar {
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
  }

  .staff-kot-form-page__back {
    grid-column: 1;
    grid-row: 1;
  }

  .staff-kot-form-page__title {
    grid-column: 1 / -1;
    grid-row: 2;
    white-space: normal;
  }

  .staff-kot-form-page__bar .btn--primary {
    grid-column: 2;
    grid-row: 1;
  }

  .staff-kot-items-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.staff-menu-form-drawer__body .btn {
  justify-self: start;
  align-self: start;
  padding: 0.42rem 0.9rem;
  min-width: 124px;
}

.staff-menu-form-drawer--manual-order #staff-menu-form-drawer-form.form-grid {
  max-width: none;
  display: block;
}

.staff-menu-form-drawer--manual-order #staff-menu-form-drawer-form textarea {
  min-height: 2.7rem;
}

.staff-menu-form-drawer--manual-order .staff-menu-form-drawer__panel {
  width: min(920px, 98vw);
  border-radius: 24px 0 0 24px;
  background: #ffffff;
  overflow: hidden;
}

.staff-menu-form-drawer--manual-order .staff-menu-form-drawer__header {
  padding: 1rem 1.1rem 0.8rem;
}

.staff-menu-form-drawer--manual-order .staff-menu-form-drawer__header h3 {
  font-size: 1.55rem;
  color: #154212;
}

.staff-menu-form-drawer--manual-order .staff-menu-form-drawer__body {
  padding: 0 1.1rem 0.85rem;
  overflow-x: hidden;
}

.manual-order-entry {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 100%;
  min-height: 0;
  min-width: 0;
  padding-bottom: 0;
  font-size: 0.92rem;
}

.manual-order-entry__section-head {
  margin: 0 0 0.45rem;
}

.manual-order-entry__section-head h4 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: #203c1d;
}

.manual-order-entry__section-head p {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #6b7280;
}

.manual-order-entry__service-pills {
  display: inline-flex;
  gap: 0.35rem;
  margin: 0;
  background: #eef2ec;
  border-radius: 999px;
  padding: 0.18rem;
}

.manual-order-entry__service-pill {
  border: 0;
  background: transparent;
  color: #4b5a45;
  padding: 0.34rem 0.74rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}

.manual-order-entry__service-pill.is-active {
  background: #2d5a27;
  color: #fff;
}

.staff-menu-form-drawer--manual-order label[for="manual-order-type"],
.staff-menu-form-drawer--manual-order .manual-order-entry__service-select {
  display: none;
}

.staff-menu-form-drawer--manual-order .manual-order-entry__service-hidden-field {
  display: none;
}

.manual-order-entry__section-head--compact {
  margin-top: 0.55rem;
  margin-bottom: 0.38rem;
}

.manual-order-entry__topbar {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding-top: 0.25rem;
  margin-bottom: 0.28rem;
}

.manual-order-entry__guest-btn {
  border: 0;
  background: transparent;
  color: #2f5a2a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.manual-order-entry__picked-chip {
  display: inline-flex;
  margin-left: 0.4rem;
  vertical-align: middle;
  border-radius: 999px;
  background: #eaf3e7;
  color: #1f4a1a;
  padding: 0.16rem 0.48rem;
  font-size: 0.68rem;
  font-weight: 800;
}

.manual-order-entry__top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.38rem 0.48rem;
}

.manual-order-entry__top-grid > div {
  min-width: 0;
}

.manual-order-entry__top-grid--labels {
  margin-top: 0.12rem;
  margin-bottom: 0.12rem;
}

.manual-order-entry__top-grid--labels label {
  margin-bottom: 0;
}

.manual-order-entry__top-grid label,
.manual-order-entry__address-wrap label {
  display: block;
  margin: 0 0 0.22rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #4b5a45;
}

.manual-order-entry__top-grid input,
.manual-order-entry__top-grid select,
.manual-order-entry__address-wrap input {
  width: 100%;
  min-height: 2.28rem;
  border: 1px solid #d9e1d4;
  border-radius: 10px;
  background: #f8faf7;
  padding: 0.42rem 0.58rem;
  box-sizing: border-box;
  font: inherit;
}

.manual-order-entry__table-hidden-select {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
  pointer-events: none;
}

.manual-order-entry__address-wrap {
  margin-top: 0.5rem;
}

.manual-order-entry__quick-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}

.manual-order-entry__quick-note {
  border: 1px solid #d7dfd3;
  border-radius: 999px;
  background: #fff;
  color: #465441;
  padding: 0.2rem 0.58rem;
  font-size: 0.7rem;
  font-weight: 700;
}

.manual-order-entry__toolbar {
  margin-top: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: stretch;
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 0;
  background: transparent;
}

.manual-order-entry__search {
  flex: 1 1 auto;
  margin-top: 0;
  position: relative;
  max-width: 300px;
}

.manual-order-entry__category {
  flex: 0 0 260px;
  min-width: 220px;
}

.manual-order-entry__category select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #d9e1d4;
  border-radius: 12px;
  background: #f8faf7;
  padding: 0.55rem 0.7rem;
  box-sizing: border-box;
  font: inherit;
}

.manual-order-entry__results-meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #5b6470;
  min-height: 1.15em;
}

.manual-order-entry__workbench {
  margin-top: 0.3rem;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 290px;
  gap: 0.45rem;
  flex: 0 1 auto;
  min-height: 420px;
  height: 520px;
  max-height: 520px;
  align-items: start;
}

.manual-order-entry__categories {
  border: 1px solid #e2e8e0;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 0.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-x: hidden;
  overflow-y: auto;
  height: 520px;
}

.manual-order-entry__cat-btn {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #4b5a45;
  text-align: left;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.5rem 0.5rem;
}

.manual-order-entry__cat-btn.is-active {
  background: #154212;
  color: #fff;
}

.manual-order-entry__catalog {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.manual-order-entry__summary-panel {
  border: 1px solid #e2e8e0;
  border-radius: 12px;
  background: #fafcf9;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.manual-order-entry__summary-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid #e2e8e0;
  background: #f4f8f2;
  border-radius: 12px 12px 0 0;
}

.manual-order-entry__summary-head h5 {
  margin: 0;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4b5a45;
}

.manual-order-entry__summary-count {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #2d5a27;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
}

.manual-order-entry__results-meta--empty {
  color: #9a6238;
}

.manual-order-entry__search .material-symbols-outlined {
  position: absolute;
  left: 0.72rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8b938a;
  font-size: 0.95rem;
}

.manual-order-entry__search input {
  width: 100%;
  min-height: 2.2rem;
  border: 0;
  border-radius: 999px;
  background: #e8ebe7;
  padding: 0.38rem 0.85rem 0.38rem 2rem;
  font-size: 0.78rem;
  color: #4f5b4f;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 148, 0.12);
}

.manual-order-entry__search input::placeholder {
  color: #97a099;
  opacity: 1;
}

.manual-order-entry__search input:focus {
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(63, 110, 58, 0.3),
    0 0 0 2px rgba(63, 110, 58, 0.12);
}

.manual-order-entry__items {
  margin-top: 0.16rem;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 0 1 auto;
  min-height: 0;
  height: 520px;
  padding-right: 0.25rem;
}

.manual-order-entry__address-wrap--notes {
  border-top: 1px solid #e2e8e0;
  padding-top: 0.45rem;
  margin-top: 0.45rem;
  display: grid;
  gap: 0.25rem;
}

.manual-order-entry__bottom-row {
  margin-top: 0.45rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 0.45rem;
  align-items: end;
}

.manual-order-entry__bottom-row .manual-order-entry__address-wrap--notes {
  margin-top: 0;
}

.manual-order-entry__address-wrap--notes > label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.66rem;
}

.manual-order-item-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  background: rgba(243, 243, 243, 0.75);
  border-radius: 10px;
  padding: 0.34rem 0.42rem;
}

.manual-order-item-card--portions {
  align-items: start;
}

.manual-order-item-card--portions .manual-order-item-card__qty-controls {
  align-self: center;
}

.manual-order-item-card__portion {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.manual-order-item-card__portion-btn {
  border: 1px solid #d8ded2;
  background: #fff;
  color: #5b6470;
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}

.manual-order-item-card__portion-btn.is-active {
  color: #fff;
  background: #2d5a27;
  border-color: #2d5a27;
}

.manual-order-item-card__thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  overflow: hidden;
  background: #dfe4dc;
  display: grid;
  place-items: center;
  color: #5b6470;
}

.manual-order-item-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manual-order-item-card__title {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.28;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.manual-order-item-card__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem;
  margin: 0.1rem 0 0;
  font-size: 0.7rem;
  color: #72796e;
}

.manual-order-item-card__meta > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.manual-order-item-card__price {
  flex-shrink: 0;
  font-weight: 700;
  color: #154212;
  font-size: 0.8rem;
}

.manual-order-item-card__add {
  width: auto;
  min-width: 2.2rem;
  height: 2.2rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  border: 0;
  background: #2d5a27;
  color: #fff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  line-height: 1;
}

.manual-order-item-card__add--has-qty {
  min-width: 2.65rem;
}

.manual-order-item-card__add-count {
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: -0.05rem;
}

.manual-order-item-card__add .material-symbols-outlined {
  font-size: 1.08rem;
}

.manual-order-item-card__qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  border-radius: 999px;
  background: #f0f2ef;
  padding: 0.16rem;
}

.manual-order-item-card__step {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #5c655a;
  font-weight: 800;
}

.manual-order-item-card__step--add {
  background: #154212;
  color: #fff;
}

.manual-order-item-card__count {
  min-width: 1.1rem;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
  color: #2f3b2f;
}

.manual-order-entry__summary {
  margin-top: 0;
  padding: 0.42rem 0.52rem;
  overflow: auto;
  min-height: 0;
}

.manual-order-entry__pricing {
  margin-top: 0.45rem;
  border-top: 1px solid #dfe6dc;
  padding-top: 0.45rem;
  display: grid;
  gap: 0.22rem;
}

.manual-order-entry__pricing--footer {
  margin-top: 0;
  margin-bottom: 0.3rem;
}

.manual-order-entry__pricing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.74rem;
  color: #5b655a;
}

.manual-order-entry__pricing-row strong {
  color: #3b443a;
  font-size: 0.74rem;
  font-weight: 700;
}

.manual-order-entry__pricing-row--grand {
  margin-top: 0.22rem;
  padding-top: 0.35rem;
  border-top: 1px solid #dfe6dc;
  align-items: flex-end;
}

.manual-order-entry__pricing-row--grand > div {
  display: grid;
  gap: 0.06rem;
}

.manual-order-entry__pricing-row--grand span {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 0.66rem;
  color: #4d584b;
}

.manual-order-entry__pricing-row--grand small {
  font-size: 0.62rem;
  color: #8a9389;
}

.manual-order-entry__pricing-row--grand strong {
  color: #1f6a2c;
  font-size: 1.05rem;
  font-weight: 800;
}

.manual-order-entry__picked {
  display: grid;
  gap: 0.45rem;
}

.manual-order-entry__picked-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8faf8;
  border: 1px solid #e2e8e0;
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
}

.manual-order-entry__picked-row strong {
  display: block;
  font-size: 0.86rem;
}

.manual-order-entry__picked-row small {
  color: #72796e;
}

.manual-order-entry__qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.manual-order-entry__qty button {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  border: 0;
  background: #e8e8e8;
  font-weight: 700;
}

.manual-order-entry__totals {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.35rem;
}

.manual-order-entry__totals span {
  display: block;
  font-weight: 600;
}

.manual-order-entry__clear-btn {
  border: 0;
  background: transparent;
  color: #2d5a27;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.manual-order-entry__totals small {
  color: #72796e;
}

.manual-order-entry__totals strong {
  font-size: 1.15rem;
  color: #154212;
}

.manual-order-entry__totals-breakup {
  display: grid;
  gap: 0.3rem;
  border: 1px solid #e2e8e0;
  border-radius: 12px;
  background: #fbfdfb;
  padding: 0.55rem 0.65rem;
}

.manual-order-entry__totals-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: #43503e;
}

.manual-order-entry__totals-row strong {
  color: #154212;
  font-size: 0.86rem;
}

.manual-order-entry__totals-row--grand {
  margin-top: 0.1rem;
  padding-top: 0.35rem;
  border-top: 1px solid #dce4d8;
  font-weight: 700;
}

.manual-order-entry__totals-row--grand strong {
  font-size: 0.98rem;
}

.manual-order-entry__footer {
  margin-top: 0;
  padding: 0.5rem 0.55rem 0.55rem;
  border-top: 1px solid #dfe6dc;
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
  background: #fff;
  border-radius: 10px;
}

.manual-order-entry__footer .btn--primary {
  width: 100%;
  min-height: 2.35rem;
  border-radius: 10px;
  text-transform: none;
  font-weight: 800;
}

.manual-order-entry__footer .btn--ghost {
  width: 100%;
  min-height: 2.35rem;
  border-radius: 10px;
  border: 1px solid #d7ddd5;
  background: #f2f4f1;
  color: #556255;
  font-weight: 700;
}

.manual-order-entry__footer .btn--ghost:hover {
  background: #f4f8f2;
}

@media (max-width: 640px) {
  .manual-order-entry__top-grid {
    grid-template-columns: 1fr;
  }
  .manual-order-entry__workbench {
    grid-template-columns: 1fr;
  }
  .manual-order-entry__categories {
    max-height: 180px;
  }
  .manual-order-entry__summary-panel {
    max-height: none;
  }
  .manual-order-entry__bottom-row {
    grid-template-columns: 1fr;
  }
}

.staff-menu-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-item-image-preview {
  margin-top: 0.5rem;
  width: 100%;
  max-width: 240px;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 10px;
  padding: 0.35rem;
  position: relative;
  background: #fff;
}

.staff-item-image-preview--hidden {
  display: none;
}

.staff-item-image-preview img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.staff-item-image-preview__remove {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.staff-item-stock-btn--available {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.staff-item-stock-btn--out {
  background: #fef9c3;
  border-color: #fde68a;
  color: #854d0e;
}

.staff-menu-item-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  display: block;
}

/* Menu + category editorial uplift */
.staff-menu-editorial {
  display: grid;
  gap: 1rem;
}

.staff-menu-editorial__hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.8rem 1rem;
}

.staff-menu-editorial__hero h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #154212;
}

.staff-menu-editorial__hero p {
  margin: 0.3rem 0 0;
  color: #5f6b79;
  font-size: 0.92rem;
  font-weight: 500;
}

.staff-menu-editorial__hero-actions {
  display: inline-flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.staff-menu-editorial__hero-actions .btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.staff-menu-editorial__hero-actions .btn .material-symbols-outlined {
  font-size: 1rem;
}

.staff-menu-editorial__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.staff-menu-stat-card {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
}

.staff-menu-stat-card p {
  margin: 0;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-menu-stat-card strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.45rem;
  font-weight: 800;
  color: #154212;
}

.staff-menu-panel {
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.staff-menu-panel .staff-menu-header-row h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #154212;
}

.staff-menu-header-row__actions {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.staff-menu-header-row__actions .btn {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.staff-menu-header-row__actions .material-symbols-outlined {
  font-size: 1rem;
}

.staff-menu-toolbar {
  margin-top: 0.65rem;
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.staff-menu-toolbar__search {
  position: relative;
  flex: 1 1 260px;
  max-width: 420px;
}

.staff-menu-toolbar__search .material-symbols-outlined {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  font-size: 1rem;
}

.staff-menu-toolbar__search input {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  background: #fff;
  padding: 0.45rem 0.85rem 0.45rem 2.35rem;
}

.staff-menu-toolbar__field {
  min-width: 180px;
}

.staff-menu-toolbar__field label {
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-menu-toolbar__field select {
  min-height: 2.45rem;
  border-radius: 12px;
  border: 1px solid #dbe3ea;
  background: #fff;
}

.staff-menu-table-wrap {
  margin-top: 0.9rem;
  height: 460px;
  min-height: 460px;
  max-height: 460px;
  overflow: auto;
  border-radius: 12px;
  border: 1px solid #edf2f7;
}

.staff-menu-table thead th {
  font-size: 0.67rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #8a97a5;
  position: sticky;
  top: 0;
  background: #f7fafc;
  z-index: 2;
}

.staff-menu-table tbody td {
  border-bottom: 1px solid #f0f4f8;
  vertical-align: middle;
}

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

.staff-menu-table tbody tr:hover td {
  background: #f8fbfd;
}

.staff-menu-table tbody strong {
  color: #0f172a;
}

.staff-menu-table__img-fallback {
  color: #94a3b8;
  font-size: 1.1rem;
}

.staff-menu-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

.staff-menu-status-pill.is-available {
  background: #d9fbe6;
  border-color: #bbf7d0;
  color: #166534;
}

.staff-menu-status-pill.is-unavailable {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b91c1c;
}

.staff-menu-table__actions-head {
  text-align: right;
}

.staff-menu-table__actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.staff-menu-icon-btn {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #eef2f6;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.staff-menu-icon-btn:hover {
  background: #e2e8f0;
  color: #154212;
}

.staff-menu-icon-btn .material-symbols-outlined {
  font-size: 1rem;
}

.staff-menu-icon-btn--danger:hover {
  background: #fee2e2;
  color: #b91c1c;
}

.staff-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.staff-toggle-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.staff-toggle-switch span {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.staff-toggle-switch span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.staff-toggle-switch input:checked + span {
  background: #154212;
}

.staff-toggle-switch input:checked + span::after {
  transform: translateX(18px);
}

.staff-menu-link-btn {
  border: 0;
  background: transparent;
  color: #154212;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 0;
}

.staff-menu-link-btn:hover {
  color: #0f3410;
}

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

@media (max-width: 720px) {
  .staff-menu-table-wrap {
    height: 360px;
    min-height: 360px;
    max-height: 360px;
  }
}

.staff-orders-tab {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.live-orders-panel {
  border-left: 4px solid var(--accent, #14b8a6);
}

/** Live orders + Today reports (admin / manager) */
.staff-live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1rem;
  align-items: start;
}

@media (max-width: 960px) {
  .staff-live-layout {
    grid-template-columns: 1fr;
  }
}

.staff-live-layout--single {
  grid-template-columns: 1fr;
}

.staff-live-layout__main {
  min-width: 0;
}

.staff-live-reports__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.staff-live-reports__toolbar-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.staff-live-reports__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding: 0.35rem;
}

.staff-live-reports__refresh svg {
  display: block;
}

.staff-live-reports__refresh:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/** Metrics + Top items as separate panel cards */
.staff-reports-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 0.75rem;
}

.staff-reports-panel__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
}

.staff-reports-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  margin: 0;
}

.staff-reports-metrics dt {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted, #64748b);
}

.staff-reports-metrics dd {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.staff-reports-hint {
  margin: 0.65rem 0 0;
  font-size: 12px;
}

.staff-reports-empty {
  margin: 0;
  font-size: 13px;
}

.staff-reports-top {
  list-style: none;
  margin: 0;
  padding: 0;
}

.staff-reports-top__item {
  margin-bottom: 0.75rem;
}

.staff-reports-top__item:last-child {
  margin-bottom: 0;
}

.staff-reports-top__name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.staff-reports-top__bar {
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.staff-reports-top__bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--accent, #14b8a6);
  min-width: 2px;
}

.staff-reports-top__meta {
  font-size: 12px;
  color: var(--muted, #64748b);
  font-variant-numeric: tabular-nums;
}

.layout--staff {
  grid-template-columns: 1fr;
}

/** Admin shell uses max-width: 1100px on `.main` — staff dashboard uses full width. */
.layout--staff .main {
  max-width: none;
  width: 100%;
}

.staff-role {
  font-size: 12px;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: var(--accent-soft, #ccfbf1);
  color: #0f766e;
}

.staff-qr-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.55rem;
}

.staff-qr-copy-icon-btn {
  position: relative;
}

.staff-qr-copy-icon-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.staff-qr-copy-icon-btn:hover::after,
.staff-qr-copy-icon-btn:focus-visible::after {
  opacity: 1;
}

.staff-qr-card {
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 12px;
  padding: 0.6rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.staff-qr-card h3 {
  margin: 0;
  font-size: 1rem;
}

.staff-qr-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.staff-qr-select-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
}

.staff-qr-card__code {
  font-size: 12px;
  line-height: 1.35;
  word-break: break-all;
}

.staff-qr-card p {
  margin: 0;
}

.staff-qr-copy-icon-btn {
  min-width: 2rem;
  min-height: 2rem;
  padding: 0.35rem;
}

.staff-qr-copy-icon-btn svg {
  display: block;
}

@media (max-width: 1180px) {
  .staff-qr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

@media (max-width: 520px) {
  .staff-qr-grid {
    grid-template-columns: 1fr;
  }
}

.staff-qr-card__qr {
  width: 100%;
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.staff-qr-card__qr img,
.staff-qr-card__qr canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.staff-overview {
  max-width: 1100px;
  margin: 0 auto;
}

.staff-overview--editorial {
  max-width: 1200px;
}

.staff-overview__header h2 {
  margin: 0;
  font-size: 2rem;
  color: #154212;
  letter-spacing: -0.02em;
}

.staff-overview__header p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-weight: 500;
}

.staff-overview__header--editorial p {
  font-size: 1rem;
}

.staff-overview__grid {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1rem;
}

.staff-overview__grid--editorial {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.1rem;
}

.staff-overview-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(194, 201, 187, 0.55);
  padding: 1.05rem;
}

.staff-overview-card--editorial {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.staff-overview-card--identity {
  gap: 0.75rem;
}

.staff-overview-card__title {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.3rem;
}

.staff-overview-card__title h3 {
  margin: 0;
  font-size: 1.03rem;
}

.staff-overview-card__accent {
  width: 6px;
  height: 22px;
  border-radius: 999px;
  background: #154212;
}

.staff-overview-field label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 700;
}

.staff-overview-field input {
  background: #f3f3f3;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 2.7rem;
}

.staff-overview-field select {
  width: 100%;
  background: #f3f3f3;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 2.7rem;
  padding-inline: 0.75rem;
}

.staff-overview-field select {
  background: #f3f3f3;
  border: 1px solid transparent;
  border-radius: 10px;
  min-height: 2.7rem;
  width: 100%;
  padding-inline: 0.75rem;
}

.staff-overview-field input:focus {
  border-color: #154212;
  box-shadow: 0 0 0 3px rgba(21, 66, 18, 0.12);
}

.staff-overview-field select:focus {
  border-color: #154212;
  box-shadow: 0 0 0 3px rgba(21, 66, 18, 0.12);
}

.staff-overview-field select:focus {
  border-color: #154212;
  box-shadow: 0 0 0 3px rgba(21, 66, 18, 0.12);
}

.staff-overview-logo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: center;
  background: #f3f3f3;
  border-radius: 12px;
  padding: 0.7rem;
}

.staff-overview-logo__thumb {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.staff-overview-logo__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-overview-logo__actions {
  display: grid;
  gap: 0.55rem;
}

.staff-overview-note {
  margin-top: 0.25rem;
  font-size: 12px;
  color: #64748b;
}

.staff-overview-actions {
  margin-top: 0.25rem;
}

.staff-overview-actions .btn--primary {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #154212 0%, #2d5a27 100%);
  min-height: 2.8rem;
  padding-inline: 1.2rem;
}

.staff-overview-global-actions {
  margin-top: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(194, 201, 187, 0.55);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.staff-overview-global-actions .btn--primary {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #154212 0%, #2d5a27 100%);
  min-height: 2.8rem;
  padding-inline: 1.2rem;
  white-space: nowrap;
  min-width: 250px;
}

.staff-overview-global-actions .subtle {
  margin: 0;
  color: #64748b;
  font-size: 0.86rem;
}

.staff-overview-toggle-wrap {
  margin-top: 0.2rem;
  padding: 0.8rem;
  border-radius: 12px;
  background: #f3f3f3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-overview-toggle-wrap strong {
  display: block;
  margin: 0;
}

.staff-overview-toggle-wrap p {
  margin: 0.18rem 0 0;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.staff-overview-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.staff-overview-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Only the track (first span after checkbox) — not label text spans. */
.staff-overview-switch input + span {
  flex-shrink: 0;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #cbd5e1;
  position: relative;
  transition: background-color 0.2s ease;
}

.staff-overview-switch input + span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease;
}

.staff-overview-switch input:checked + span {
  background: #154212;
}

.staff-overview-switch input:checked + span::after {
  transform: translateX(18px);
}

.staff-overview-switch__label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #162017;
}

/* Promotions panel: reset global .staff-overview-field label (uppercase) */
.staff-menu-promotion-panel label {
  text-transform: none;
  letter-spacing: normal;
}

.staff-mp-section-title {
  font-size: 1rem;
  font-weight: 800;
  color: #162017;
  margin: 0 0 0.65rem;
}

.staff-mp-banner-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
  max-width: 420px;
  padding: 4px 0 14px;
  border-bottom: 1px solid rgba(194, 201, 187, 0.55);
}

.staff-mp-banner-line__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #293329;
}

.staff-mp-banner-line__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.staff-mp-banner-line__side {
  font-size: 0.8rem;
  font-weight: 800;
  color: #94a3b8;
  min-width: 1.4rem;
  text-align: center;
}

.staff-mp-banner-line.is-off .staff-mp-banner-line__side--off {
  color: #334155;
}

.staff-mp-banner-line.is-on .staff-mp-banner-line__side--on {
  color: #176022;
}

/* True switch: invisible checkbox overlays track (never shows native checkbox) */
.staff-mp-toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.staff-mp-toggle-switch input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background: transparent;
}

.staff-mp-toggle-switch__track {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 999px;
  background: #94a3b8;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.12);
  transition: background 0.2s ease;
}

.staff-mp-toggle-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
  transition: transform 0.2s ease;
}

.staff-mp-toggle-switch input:checked + .staff-mp-toggle-switch__track {
  background: #176022;
}

.staff-mp-toggle-switch input:checked + .staff-mp-toggle-switch__track::after {
  transform: translateX(22px);
}

.staff-mp-toggle-switch input:disabled {
  cursor: not-allowed;
}

.staff-mp-toggle-switch:has(input:disabled) {
  cursor: not-allowed;
  opacity: 0.65;
}

.staff-mp-toggle-switch input:focus-visible + .staff-mp-toggle-switch__track {
  outline: 2px solid rgba(23, 96, 34, 0.45);
  outline-offset: 3px;
}

.staff-menu-promotion-panel .staff-mp-duration-field {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  max-width: 420px;
}

.staff-mp-duration-select {
  width: 100%;
  max-width: 320px;
  min-height: 2.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(194, 201, 187, 0.85);
  background: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  color: #162017;
  cursor: pointer;
}

.staff-mp-duration-select:focus {
  outline: 2px solid rgba(23, 96, 34, 0.35);
  outline-offset: 1px;
}

.staff-mp-duration-select:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.staff-mp-field-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #3f4b39;
}

.staff-mp-custom-dates {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(194, 201, 187, 0.8);
  background: #fafaf8;
  max-width: 560px;
}

.staff-mp-custom-dates[hidden] {
  display: none !important;
}

.staff-mp-custom-dates__grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 520px) {
  .staff-mp-custom-dates__grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.staff-mp-datetime-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.staff-mp-datetime-field__label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #3f4b39;
}

.staff-mp-datetime {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #fff;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 600;
  color-scheme: light;
  box-sizing: border-box;
}

.staff-mp-datetime:hover:not(:disabled):not(:read-only) {
  border-color: rgba(23, 96, 34, 0.4);
}

.staff-mp-datetime:focus {
  outline: none;
  border-color: #176022;
  box-shadow: 0 0 0 3px rgba(23, 96, 34, 0.1);
}

.staff-mp-datetime:read-only {
  opacity: 0.75;
  cursor: default;
}

.staff-mp-images-row {
  margin-top: 16px;
  max-width: 560px;
}

.staff-mp-images-row__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #3f4b39;
  margin-bottom: 6px;
}

.staff-mp-thumbs {
  min-height: 1.5rem;
}

.staff-mp-file-wrap {
  margin-top: 8px;
}

.staff-mp-file {
  font-size: 0.85rem;
  max-width: 100%;
}

.staff-mp-status-line {
  margin: 12px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.staff-overview-info {
  margin: 0.8rem 0 0;
  padding: 0.7rem;
  border-radius: 10px;
  background: rgba(208, 230, 198, 0.4);
  border: 1px solid rgba(194, 201, 187, 0.4);
  color: #3f4b39;
  font-size: 12px;
  line-height: 1.45;
}

.staff-overview-settings-group {
  margin-top: 0.85rem;
  padding: 0.9rem;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.staff-overview-settings-group--hours {
  background: #f3f3f3;
}

.staff-overview-settings-group--eta {
  background: #eef4ec;
  border-color: #d8e5d2;
}

.staff-overview-settings-group header {
  margin-bottom: 0.65rem;
}

.staff-overview-settings-group h4 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  color: #0f172a;
}

.staff-overview-settings-group p {
  margin: 0.15rem 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.staff-overview-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.staff-overview-settings-inline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
}

.staff-overview-settings-inline span {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

.staff-overview-banner {
  margin-top: 0.85rem;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 120px;
}

.staff-overview-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-overview-banner div {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.65rem 0.75rem;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

@media (max-width: 980px) {
  .staff-overview__grid {
    grid-template-columns: 1fr;
  }

  .staff-overview-settings-grid {
    grid-template-columns: 1fr;
  }

  .staff-overview-global-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

.app-header {
  display: none;
}

#main-title {
  display: none;
}

#view-app {
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.45;
}

/* Safari parity: normalize native form rendering to match Chrome. */
/* Keep radio/checkbox/file native rendering (radios disappear if appearance:none). */
#view-app input:not([type="checkbox"]):not([type="file"]):not([type="radio"]),
#view-app select,
#view-app textarea {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  background-clip: padding-box;
}

#view-app select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 12px 8px;
  padding-right: 2rem;
}

#view-app input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

#view-app input[type="radio"] {
  -webkit-appearance: auto;
  appearance: auto;
  box-shadow: none;
}

#view-app h1,
#view-app h2,
#view-app h3,
#view-app .staff-side-tab span:last-child,
#view-app .staff-side-preview,
#view-app .staff-overview-card__title h3,
#view-app .staff-overview-toggle-wrap strong {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

.layout--staff {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.layout--staff .main {
  width: 100%;
  max-width: none;
  padding: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#tab-host {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#view-app:not(.hidden) {
  min-height: 100vh;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.staff-shell {
  --staff-sidebar-width: 16rem;
  --staff-sidebar-collapsed-width: 5.4rem;
  display: grid;
  grid-template-columns: var(--staff-sidebar-width) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
  height: 100%;
  background: #f9f9f9;
  transition: grid-template-columns 0.22s ease;
}

.staff-shell.is-sidebar-collapsed {
  grid-template-columns: var(--staff-sidebar-collapsed-width) minmax(0, 1fr);
}

.staff-sidebar {
  background: #f3f3f3;
  border-right: 1px solid #e2e2e2;
  border-radius: 0;
  margin: 0;
  padding: 1.5rem 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  transition: padding 0.22s ease;
}

.staff-sidebar__brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.35rem 0 0.6rem;
}

.staff-sidebar__brand-main {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.staff-sidebar__brand-icon {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 0.85rem;
  background: #2d5a27;
  color: #fff;
  display: inline-grid;
  place-items: center;
}

.staff-sidebar__toggle {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: #e7ece4;
  color: #365d31;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.staff-sidebar__toggle:hover {
  background: #dde6d8;
}

.staff-sidebar__toggle .material-symbols-outlined {
  font-size: 1.15rem;
}

.staff-sidebar__brand-icon .material-symbols-outlined {
  font-size: 1.2rem;
  font-variation-settings: "FILL" 1;
}

.staff-sidebar__brand-copy h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #154212;
}

.staff-sidebar__brand p {
  margin: 0.1rem 0 0;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.staff-sidebar__nav {
  margin-top: 1.4rem;
  display: grid;
  gap: 0.2rem;
  overflow: auto;
  min-height: 0;
}

.staff-side-tab {
  width: 100%;
  border: 0;
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px 0 0 999px;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease, padding 0.22s ease;
}

.staff-side-tab:hover {
  color: #154212;
  background: #ececec;
}

.staff-side-tab.is-active {
  background: #ffffff;
  color: #154212;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.staff-side-tab .material-symbols-outlined {
  font-size: 1.2rem;
}

.staff-side-tab__label,
.staff-side-preview__label,
.staff-side-logout__label {
  white-space: nowrap;
}

.staff-side-tab__count {
  margin-left: auto;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9f3e6;
  color: #154212;
  font-size: 0.72rem;
  font-weight: 800;
  flex-shrink: 0;
}

.staff-sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 0.55rem;
}

.staff-side-preview {
  width: 100%;
  border: 0;
  background: #e8f2e4;
  color: #154212;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: padding 0.22s ease;
}

.staff-side-preview:hover {
  filter: brightness(0.98);
}

.staff-side-logout {
  width: 100%;
  border: 0;
  background: transparent;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem;
  padding: 0.65rem 0.75rem;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, padding 0.22s ease;
}

.staff-side-logout .material-symbols-outlined {
  font-size: 22px;
}

.staff-side-logout:hover {
  background: rgba(226, 232, 240, 0.6);
}

.staff-shell.is-sidebar-collapsed .staff-sidebar {
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  overflow: visible;
}

.staff-shell.is-sidebar-collapsed .staff-sidebar__brand {
  grid-template-columns: 1fr;
  justify-items: center;
  padding-left: 0;
  padding-right: 0;
}

.staff-shell.is-sidebar-collapsed .staff-sidebar__brand-main {
  justify-content: center;
}

.staff-shell.is-sidebar-collapsed .staff-sidebar__toggle {
  margin-top: 0.1rem;
}

.staff-shell.is-sidebar-collapsed .staff-sidebar__brand-copy,
.staff-shell.is-sidebar-collapsed .staff-side-tab__label,
.staff-shell.is-sidebar-collapsed .staff-side-preview__label,
.staff-shell.is-sidebar-collapsed .staff-side-logout__label {
  display: none;
}

.staff-shell.is-sidebar-collapsed .staff-side-tab {
  justify-content: center;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
  border-radius: 1rem;
}

.staff-shell.is-sidebar-collapsed .staff-sidebar__nav,
.staff-shell.is-sidebar-collapsed .staff-sidebar__footer {
  overflow: visible;
}

.staff-shell.is-sidebar-collapsed .staff-side-preview,
.staff-shell.is-sidebar-collapsed .staff-side-logout {
  justify-content: center;
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}

.staff-shell.is-sidebar-collapsed .staff-side-tab::after,
.staff-shell.is-sidebar-collapsed .staff-side-preview::after,
.staff-shell.is-sidebar-collapsed .staff-side-logout::after {
  content: attr(data-nav-label);
  position: absolute;
  left: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  white-space: nowrap;
  padding: 0.35rem 0.55rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(198, 206, 192, 0.95);
  background: #ffffff;
  color: #1f2937;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  transition: opacity 0.14s ease, transform 0.14s ease;
}

.staff-shell.is-sidebar-collapsed .staff-side-tab:hover::after,
.staff-shell.is-sidebar-collapsed .staff-side-tab:focus-visible::after,
.staff-shell.is-sidebar-collapsed .staff-side-preview:hover::after,
.staff-shell.is-sidebar-collapsed .staff-side-preview:focus-visible::after,
.staff-shell.is-sidebar-collapsed .staff-side-logout:hover::after,
.staff-shell.is-sidebar-collapsed .staff-side-logout:focus-visible::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.staff-shell.is-sidebar-collapsed .staff-new-order-dot--nav {
  position: absolute;
  top: 0.5rem;
  right: 0.45rem;
  margin-left: 0;
}

.staff-shell__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.staff-shell__content #main-panel {
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.6rem 1.5rem 1.1rem;
}

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

.staff-dashboard__active-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: linear-gradient(135deg, #f0fdf4 0%, #fff 55%);
  border: 1px solid #cce8c4;
  margin-bottom: 0.9rem;
}

.staff-dashboard__active-cta-text h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #154212;
}

.staff-dashboard__active-cta-text p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #475569;
  max-width: 42rem;
}

.staff-active-orders-page {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}

.staff-active-orders-page__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}

.staff-active-orders-page__header-main {
  flex: 1 1 14rem;
  min-width: 0;
}

/* Table label stacks above select; refresh aligns to the select row (bottom), not the vertical center of label+select */
.staff-active-orders-page__header-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  flex-shrink: 0;
}

.staff-active-orders-page__header h2 {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  color: #154212;
}

.staff-active-orders-page__header p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.staff-active-orders-page__toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  min-width: 0;
}

.staff-active-orders-page__filter-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
  line-height: 1.2;
}

.staff-active-orders-page__filter-select {
  min-width: 9.5rem;
  min-height: 2.25rem;
  box-sizing: border-box;
}

.staff-live-empty--filter {
  text-align: center;
  padding: 2rem 1rem;
}

.staff-live-empty--filter-icon {
  font-size: 2.5rem;
  color: #94a3b8;
  display: block;
  margin: 0 auto 0.5rem;
}

.staff-live-empty--filter h4 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: #334155;
}

.staff-active-orders-page__refresh {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  min-height: 2.25rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
  box-sizing: border-box;
}

.staff-active-orders-page__panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 22px;
}

.staff-active-orders-page--editorial .staff-active-orders-page__panel {
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.staff-active-orders-page__panel .orders-table-scroll {
  flex: 1;
  min-height: 0;
}

/* Active orders — editorial layout (reference: management suite mock) */
.staff-active-orders-page--editorial {
  position: relative;
  padding-bottom: 4rem;
}

.staff-active-tables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.staff-active-table-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #fff;
  padding: 0.85rem;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
  cursor: pointer;
}

/* Tables grid: default = no tint; green = accepted / in progress; red = bill, cancel, or waiter. */
.staff-active-table-card--tone-in-service {
  background: linear-gradient(
    165deg,
    #ecfdf5 0%,
    #d1fae5 50%,
    #bbf7d0 100%
  );
  border-color: rgba(16, 185, 129, 0.38);
}

.staff-active-table-card--tone-alert {
  background: linear-gradient(
    165deg,
    #fef2f2 0%,
    #fecaca 45%,
    #fca5a5 100%
  );
  border-color: rgba(220, 38, 38, 0.45);
}

.staff-active-table-card--tone-new-order {
  background: linear-gradient(
    165deg,
    #fffbeb 0%,
    #fef3c7 50%,
    #fde68a 100%
  );
  border-color: rgba(217, 119, 6, 0.45);
}

.staff-active-table-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.staff-active-table-card__head h3 {
  margin: 0;
  font-size: 1rem;
}

.staff-active-table-card__count {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.staff-active-table-card__count--clear {
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.45);
  font-weight: 600;
}

.staff-active-table-card__count--neutral {
  color: #475569;
  background: #f1f5f9;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.staff-active-table-card__count--service {
  color: #14532d;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.staff-active-table-card__count--alert {
  color: #7f1d1d;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(220, 38, 38, 0.45);
}

.staff-active-table-card__count--new {
  color: #78350f;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.5);
}

.staff-active-table-card__latest {
  margin: 0.5rem 0 0.7rem;
  color: #64748b;
  font-size: 0.8rem;
}

.staff-active-table-card__state {
  margin: 0.45rem 0 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.16rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.staff-active-table-card__state--accepted {
  background: rgba(255, 255, 255, 0.9);
  color: #14532d;
  border: 1px solid rgba(16, 185, 129, 0.45);
}

.staff-active-table-card__state--alert {
  background: rgba(127, 29, 29, 0.12);
  color: #991b1b;
  border: 1px solid rgba(185, 28, 28, 0.4);
}

.staff-active-table-card__state--placed {
  background: #dcfce7;
  color: #166534;
}

.staff-active-table-card__state--progress {
  background: #fef3c7;
  color: #92400e;
}

.staff-active-table-card__state--neutral {
  background: #f1f5f9;
  color: #475569;
}

.staff-active-table-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.staff-active-table-card:focus-visible {
  outline: 2px solid #2f6f3e;
  outline-offset: 2px;
}

.staff-active-table-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.staff-active-table-stats article {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.75rem;
}

.staff-active-table-stats span {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.2rem;
}

.staff-active-table-stats strong {
  font-size: 1rem;
  color: #0f172a;
}

.staff-active-table-section-title {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: #0f172a;
  padding: 4px;
}

.staff-active-tables-detail .staff-active-orders-hero,
.staff-active-tables-detail .staff-active-table-stats,
.staff-active-tables-detail .staff-active-orders-table-shell {
  margin-bottom: 0.6rem;
}

.staff-active-tables-detail .staff-active-orders-table-shell {
  min-height: auto;
  flex: 0 0 auto;
}

/* Keep visible breathing room between stacked cards/boxes on table detail view. */
.staff-active-tables-detail .staff-active-orders-table-shell + .staff-active-orders-table-shell {
  margin-top: 0.7rem;
}

/* Tables detail header — breadcrumb avoids giant `.staff-active-orders-hero__title` display font. */
.staff-active-tables-detail__breadcrumb-title {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #0f172a;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  min-width: 0;
}

.staff-active-tables-breadcrumb {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem;
  vertical-align: middle;
}

.staff-active-tables-detail__breadcrumb-current {
  font-weight: 800;
  color: #154212;
  white-space: nowrap;
}

.staff-active-table-breadcrumb {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: #475569;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: inherit;
  cursor: pointer;
  border-radius: 6px;
  text-decoration: none;
}

.staff-active-table-breadcrumb:hover {
  color: #154212;
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.staff-active-table-breadcrumb:focus-visible {
  outline: 2px solid #2f6f3e;
  outline-offset: 2px;
}

.staff-active-table-breadcrumb__sep {
  margin: 0;
  padding: 0;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  color: #94a3b8;
  vertical-align: baseline;
  user-select: none;
}

.staff-active-tables-detail .staff-active-orders-hero__title-row {
  align-items: center;
}

.staff-active-tables-detail .staff-active-orders-hero__refresh {
  align-self: center;
  margin-top: 0;
}

.staff-active-table-current-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 4px;
}

.staff-active-table-current-actions__order {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
  margin-right: 0.25rem;
}

.staff-active-orders__action-pill--kot {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.staff-active-orders__action-pill--invoice {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.staff-active-table-current-meta {
  margin-top: 0.55rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.65rem;
  padding: 4px;
}

.staff-active-table-current-meta div {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.42rem 0.5rem;
}

.staff-active-table-current-meta span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.staff-active-table-current-meta strong {
  font-size: 0.8rem;
  color: #0f172a;
}

.staff-active-table-current-items {
  margin-top: 0.55rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  padding-top: 0.5rem;
  padding-bottom: 0.25rem;
  margin-bottom: 0.35rem;
}

/* Tables grid + table detail actions: all action buttons keep tinted backgrounds. */
.staff-active-tables-grid .btn.btn--small,
.staff-active-tables-detail .btn.btn--small,
.staff-active-tables-detail .staff-active-orders__action-pill {
  border: 1px solid rgba(21, 66, 18, 0.18);
  background: #edf7ea;
  color: #154212;
  box-shadow: 0 6px 18px rgba(21, 66, 18, 0.08);
}

.staff-active-tables-grid .btn.btn--small:hover,
.staff-active-tables-detail .btn.btn--small:hover,
.staff-active-tables-detail .staff-active-orders__action-pill:hover {
  background: #e3f2de;
  border-color: rgba(21, 66, 18, 0.28);
  box-shadow: 0 10px 24px rgba(21, 66, 18, 0.12);
}

.staff-active-tables-detail .staff-active-orders__action-pill--kot,
.staff-active-tables-grid [data-active-table-print-kot] {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.staff-active-tables-detail .staff-active-orders__action-pill--invoice,
.staff-active-tables-grid [data-active-table-print-invoice] {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.staff-active-table-current-items h4 {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  color: #334155;
  padding: 4px;
}

.staff-active-table-current-items__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  padding: 0.24rem 7px;
}

.staff-active-table-current-items__row strong {
  font-weight: 700;
}

.staff-active-table-history-pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem 0.7rem;
  border-top: 1px solid #f1f5f9;
}

.staff-active-table-history-pagination span {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 600;
}

.staff-active-table-order-cards {
  display: grid;
  gap: 0.75rem;
}

.staff-active-table-order-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
}

.staff-active-table-order-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
}

.staff-active-table-order-card__head h4 {
  margin: 0;
  font-size: 0.95rem;
}

.staff-active-table-order-card__meta {
  margin-top: 0.65rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.staff-active-table-order-card__meta div {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  padding: 0.42rem 0.5rem;
  background: #f8fafc;
}

.staff-active-table-order-card__meta span {
  display: block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
}

.staff-active-table-order-card__meta strong {
  font-size: 0.8rem;
  color: #0f172a;
}

.staff-active-table-order-card__note {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: #334155;
}

.staff-active-table-order-card__actions {
  margin-top: 0.65rem;
}

.staff-active-orders-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1.2rem;
  margin-bottom: 1rem;
}

.staff-active-orders-hero__top {
  flex: 1 1 100%;
  min-width: 0;
}

.staff-active-orders-hero__filters-row {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
}

.staff-active-orders-hero__left {
  display: contents;
}

.staff-active-orders-hero__title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
}

.staff-active-orders-hero__utility {
  margin-left: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.staff-active-orders-hero__title {
  margin: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: clamp(1.85rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #154212;
}

/* New order indicator (red dot) — nav + Active orders hero */
.staff-new-order-dot {
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #ef4444;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  vertical-align: middle;
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.staff-new-order-dot--show {
  opacity: 1;
  transform: scale(1);
  animation: staff-new-order-dot-pulse 1.35s ease-in-out infinite;
}

@keyframes staff-new-order-dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 0 0 7px rgba(239, 68, 68, 0);
  }
}

.staff-new-order-dot--hero {
  flex-shrink: 0;
}

.staff-new-order-dot--nav {
  margin-left: auto;
  flex-shrink: 0;
}

.staff-active-orders-hero__refresh {
  border: 0;
  background: transparent;
  color: #154212;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.staff-active-orders-hero__refresh:hover {
  background: rgba(21, 66, 18, 0.08);
}

.staff-active-orders-hero__refresh:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.staff-active-orders-hero__refresh .material-symbols-outlined {
  font-size: 1.35rem;
}

.staff-active-orders-hero__sub {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #42493e;
  line-height: 1.4;
}

.staff-active-orders-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: stretch;
}

#staff-active-orders-summary-wrap {
  display: flex;
  align-items: stretch;
  margin-left: auto;
}

.staff-active-orders-summary__card {
  min-width: 7.8rem;
  padding: 0.55rem 0.72rem;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(251, 252, 249, 0.98), rgba(244, 247, 241, 0.96));
  border: 1px solid rgba(205, 212, 198, 0.9);
  box-shadow: 0 8px 24px rgba(21, 66, 18, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 0.12rem;
}

.staff-active-orders-summary__card span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-active-orders-summary__card strong {
  font-size: 1rem;
  font-weight: 800;
  color: #154212;
  line-height: 1.1;
}

.staff-active-orders-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0;
  width: fit-content;
  flex-shrink: 0;
}

.staff-active-orders-filter-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(180deg, rgba(251, 252, 249, 0.98), rgba(244, 247, 241, 0.96));
  border: 1px solid rgba(205, 212, 198, 0.9);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(21, 66, 18, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staff-active-orders-filter-group--status,
.staff-active-orders-filter-group--service {
  width: fit-content;
  max-width: 100%;
}

.staff-active-orders-filter-group--status {
  gap: 0.5rem;
}

.staff-active-orders-filter-group__label {
  display: inline-flex;
  align-items: center;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f776a;
  white-space: nowrap;
  flex-shrink: 0;
}

.staff-active-orders-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.staff-active-orders-chips--service {
  flex-wrap: nowrap;
}

.staff-active-orders-chip {
  border: 1px solid transparent;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 700;
  min-height: 1.9rem;
  padding: 0.3rem 0.7rem;
  border-radius: 10px;
  background: #edf2ea;
  color: #4b5347;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.staff-active-orders-chip:hover {
  background: #e7eee4;
  border-color: rgba(190, 198, 184, 0.92);
  transform: translateY(-1px);
}

.staff-active-orders-chip.is-active {
  background: linear-gradient(180deg, #1d5a1a, #154212);
  border-color: rgba(21, 66, 18, 0.88);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 66, 18, 0.2);
}

.staff-active-orders-hero__right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.staff-active-orders-table-pill {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 8rem;
  background: transparent;
}

.staff-active-orders-table-pill__icon {
  font-size: 1rem;
  color: #64748b;
  pointer-events: none;
  flex-shrink: 0;
}

.staff-active-orders-table-pill__select {
  flex: 1;
  min-height: 1.8rem;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: #33402e;
  padding: 0 0.2rem;
  cursor: pointer;
}

.staff-active-orders-search-input {
  -webkit-appearance: none;
  appearance: none;
  height: 1.8rem;
  min-height: 0;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1;
  font-weight: 600;
  color: #33402e;
  padding: 0;
  width: 7.5rem;
  outline: none;
  box-shadow: none;
  display: block;
}

.staff-active-orders-search-input::placeholder {
  color: #aab5a4;
  font-weight: 500;
  font-size: 0.76rem;
}

.staff-active-orders-filter-group--table {
  min-width: 0;
  width: fit-content;
}

.staff-active-orders-filter-group--search {
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
}

.staff-active-orders-manual-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #154212;
  color: #fff;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.55rem 0.9rem;
  border-radius: 0.75rem;
  box-shadow: 0 6px 20px rgba(21, 66, 18, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease;
  white-space: nowrap;
  align-self: flex-start;
  margin-left: auto;
}

.staff-active-orders-manual-btn:hover {
  filter: brightness(1.05);
}

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

.staff-active-orders-manual-btn .material-symbols-outlined {
  font-size: 1.15rem;
}

.staff-active-orders-table-shell {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 30rem;
}

.staff-active-orders-table-shell--empty {
  min-height: 18rem;
}

.orders-table-scroll--active-editorial {
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.staff-active-orders-table--editorial {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

.staff-active-orders-table--editorial thead tr {
  background: #fff;
}

.staff-active-orders-table--editorial thead th {
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #94a3b8;
  padding: 1rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.staff-active-orders-table--editorial tbody td {
  padding: 1.05rem 1.25rem;
  vertical-align: middle;
  background: transparent;
  border: none;
  border-bottom: 1px solid #f8fafc;
  border-radius: 0;
}

.staff-active-orders-table--editorial tbody tr:hover td {
  background: rgba(248, 250, 252, 0.85);
}

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

.staff-active-orders-table--editorial tbody td:first-child,
.staff-active-orders-table--editorial tbody td:last-child {
  border-left: none !important;
  border-right: none !important;
  border-radius: 0 !important;
}

.staff-active-orders-table--editorial .staff-active-orders__guest:not(.staff-active-orders__guest--empty) {
  font-weight: 700;
  color: #0f172a;
}

.staff-active-orders__time {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
}

.staff-active-orders__time-line {
  display: block;
}

.staff-active-orders__timer {
  margin-top: 0.18rem;
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  width: fit-content;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  background: #eef3ec;
  color: #154212;
  font-size: 0.69rem;
  font-weight: 800;
  line-height: 1;
}

.staff-active-orders__timer .material-symbols-outlined {
  font-size: 0.84rem;
}

.staff-active-orders__action-pill {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease;
}

.staff-active-orders__action-pill:hover {
  background: #f8fafc;
}

.staff-active-orders__actions--wrap {
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}

.staff-active-orders-table--editorial .staff-active-orders__icon-btn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: #f1f5f9;
  border: 0;
  color: #64748b;
}

.staff-active-orders-table--editorial .staff-active-orders__icon-btn:hover {
  background: #e2e8f0;
}

.staff-active-orders-table-footer {
  padding: 0.85rem 1.25rem;
  background: #fff;
  border-top: 1px solid #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-active-orders-table-footer__hint {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
}

.staff-live-empty--chip {
  padding: 2.5rem 1.25rem;
}

.staff-active-orders-fab {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10055;
  width: 3.75rem;
  height: 3.75rem;
  border-radius: 999px;
  border: 0;
  background: #154212;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 32px rgba(21, 66, 18, 0.35);
  transition: transform 0.15s ease;
}

.staff-active-orders-fab:hover {
  transform: scale(1.04);
}

.staff-active-orders-fab:active {
  transform: scale(0.96);
}

.staff-active-orders-fab .material-symbols-outlined {
  font-size: 1.75rem;
}

body.staff-order-drawer-open .staff-active-orders-fab {
  opacity: 0;
  pointer-events: none;
}

.staff-active-orders-fab__tooltip {
  position: absolute;
  right: calc(100% + 0.65rem);
  top: 50%;
  transform: translateY(-50%);
  background: #154212;
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.staff-active-orders-fab:hover .staff-active-orders-fab__tooltip {
  opacity: 1;
}

@media (max-width: 720px) {
  .staff-active-orders-filters {
    flex-wrap: wrap;
  }

  .staff-active-orders-filter-group {
    width: fit-content;
  }

  .staff-active-orders-fab__tooltip {
    display: none;
  }

  .staff-active-orders-hero__right {
    width: 100%;
    min-width: 0;
  }

  #staff-active-orders-summary-wrap {
    width: 100%;
    margin-left: 0;
  }

  .staff-active-orders-hero__filters-row {
    flex-direction: column;
    width: 100%;
  }

  .staff-active-orders-table-pill {
    flex: 1;
    min-width: 0;
  }

  .staff-active-orders-manual-btn {
    width: 100%;
    justify-content: center;
  }
}

.staff-dashboard__header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  color: #154212;
}

.staff-dashboard__header p {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #64748b;
}

.staff-dashboard__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 2rem;
}

.staff-dashboard__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.staff-dashboard__aside {
  display: grid;
  align-content: start;
  gap: 2rem;
}

.staff-dashboard__date-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.staff-dashboard__date-bar-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.staff-dashboard__date-input {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(205, 212, 198, 0.9);
  border-radius: 10px;
  background: #fff;
  padding: 0.35rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(21, 66, 18, 0.06);
  cursor: pointer;
  outline: none;
  min-height: 2.1rem;
  box-sizing: border-box;
  width: auto;
  flex: 0 0 auto;
}

.staff-dashboard__date-input:focus {
  border-color: rgba(45, 90, 39, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.staff-dashboard__date-range-field {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.staff-dashboard__date-range-field span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.staff-dashboard__date-summary {
  display: inline-flex;
  align-items: center;
  min-height: 2.1rem;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  background: #eef3ec;
  color: #154212;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.staff-dashboard__date-limit {
  font-size: 0.76rem;
  font-weight: 600;
  color: #64748b;
  flex: 0 0 auto;
}

.staff-dashboard__date-reset {
  border: none;
  background: none;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2d5a27;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.staff-dashboard__date-reset:hover {
  background: rgba(45, 90, 39, 0.08);
}

.staff-dashboard__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.staff-dash-stat {
  background: #fff;
  border: 0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 1.5rem;
}

.staff-dash-stat p {
  margin: 0;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.staff-dash-stat strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.staff-dash-stat span {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.74rem;
  color: #334155;
  font-weight: 700;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.staff-dashboard__live {
  border-radius: 24px;
}

.staff-dashboard__live-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.staff-dashboard__live-head h3 {
  margin: 0;
  font-size: 1.1rem;
}

.staff-dashboard__live-head p {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.staff-active-orders-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.staff-active-orders-head__intro h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.staff-active-orders-head__intro p {
  margin: 0.2rem 0 0;
  font-size: 0.84rem;
  color: #64748b;
}

.staff-active-orders-table:not(.staff-active-orders-table--editorial) {
  border-collapse: separate;
  border-spacing: 0 0.55rem;
}

.staff-active-orders-table:not(.staff-active-orders-table--editorial) thead th {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
}

.staff-active-orders-table:not(.staff-active-orders-table--editorial) tbody td {
  background: #f8fafc;
  border-top: 1px solid #f1f5f9;
  border-bottom: 1px solid #f1f5f9;
}

.staff-active-orders-table:not(.staff-active-orders-table--editorial) tbody td:first-child {
  border-left: 1px solid #f1f5f9;
  border-radius: 14px 0 0 14px;
}

.staff-active-orders-table:not(.staff-active-orders-table--editorial) tbody td:last-child {
  border-right: 1px solid #f1f5f9;
  border-radius: 0 14px 14px 0;
}

.staff-active-orders__id {
  font-weight: 800;
  color: #0f172a;
}

.staff-active-orders__table {
  width: 2rem;
  height: 2rem;
  display: inline-grid;
  place-items: center;
  border-radius: 0.6rem;
  background: #edf6e9;
  color: #154212;
  font-weight: 700;
}

.staff-active-orders__guest {
  max-width: 8.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-active-orders__guest--empty {
  color: #94a3b8;
  font-weight: 500;
}

.staff-active-orders__status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.staff-active-orders__status-cell {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.35rem;
}

.staff-bill-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 0.35rem;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

.staff-active-orders__status--new,
.staff-active-orders__status--placed,
.staff-active-orders__status--order_placed {
  background: #e8f6e4;
  color: #1d5d18;
  border-color: #cce8c4;
}

.staff-active-orders__status--accepted,
.staff-active-orders__status--preparing,
.staff-active-orders__status--ready {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.staff-active-orders__status--served {
  background: #dbeafe;
  color: #1e40af;
  border-color: #bfdbfe;
}

.staff-active-orders__status--paid,
.staff-active-orders__status--completed {
  background: #dcfce7;
  color: #166534;
  border-color: #bbf7d0;
}

.staff-active-orders__status--cancelled {
  background: #fee2e2;
  color: #b91c1c;
  border-color: #fecaca;
}

.staff-active-orders__actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.staff-kitchen-note-cell {
  max-width: 260px;
  font-size: 0.78rem;
  color: #475569;
  white-space: normal;
}

.staff-kitchen-note-cell__wrap {
  display: grid;
  gap: 0.2rem;
}

.staff-kitchen-note-text {
  line-height: 1.35;
  color: #334155;
  word-break: break-word;
}

.staff-kitchen-note-toggle {
  border: 0;
  background: transparent;
  color: #154212;
  font-weight: 700;
  font-size: 0.72rem;
  text-align: left;
  padding: 0;
  cursor: pointer;
}

.staff-order-drawer__item-note {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #0f766e;
  line-height: 1.35;
  word-break: break-word;
}

.staff-active-orders__action-btn {
  border-radius: 999px;
}

.staff-active-orders__icon-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #e2e8f0;
  border-color: transparent;
  color: #334155;
  padding: 0;
}

.staff-active-orders__icon-btn .material-symbols-outlined {
  font-size: 1rem;
}

.orders-panel-top__filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.orders-filter-inline {
  display: grid;
  gap: 0.35rem;
  min-width: 150px;
}

.orders-filter-inline--search {
  min-width: 260px;
  flex: 1 1 260px;
}

.orders-filter-inline__label,
.orders-custom-wrap label {
  font-size: 0.74rem;
  font-weight: 700;
  color: #64748b;
}

.orders-filter-inline__select,
.orders-custom-wrap input[type="date"] {
  height: 2.45rem;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #fff;
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.9rem;
  color: #0f172a;
}

.orders-filter-inline__select:focus,
.orders-custom-wrap input[type="date"]:focus {
  outline: none;
  border-color: rgba(45, 90, 39, 0.48);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.14);
}

.orders-panel-top__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.orders-custom-wrap {
  width: 100%;
}

.staff-live-empty {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}

.staff-live-empty__art {
  position: relative;
  margin-bottom: 1rem;
}

.staff-live-empty__blur {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
}

.staff-live-empty__blur--one {
  width: 52px;
  height: 52px;
  background: rgba(208, 230, 198, 0.65);
  top: -10px;
  left: -10px;
}

.staff-live-empty__blur--two {
  width: 64px;
  height: 64px;
  background: rgba(21, 66, 18, 0.18);
  right: -16px;
  bottom: -12px;
}

.staff-live-empty__icon-shell {
  width: 126px;
  height: 126px;
  border-radius: 28px;
  background: #f3f3f3;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.staff-live-empty__icon-bg {
  font-size: 52px;
  color: #154212;
  opacity: 0.2;
}

.staff-live-empty__icon-fg {
  position: absolute;
  font-size: 44px;
  color: #154212;
}

.staff-live-empty h4 {
  margin: 0;
  font-size: 1.1rem;
}

.staff-live-empty p {
  margin: 0.5rem 0 0;
  color: #64748b;
  max-width: 340px;
  line-height: 1.45;
  font-size: 0.9rem;
}

.staff-live-empty__refresh {
  margin-top: 1.1rem;
  border-radius: 999px;
  padding-inline: 1.35rem;
}

.staff-kitchen-performance {
  margin-top: 0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 2rem;
}

.staff-kitchen-performance__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.staff-kitchen-performance__head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.staff-kitchen-performance__head p {
  margin: 0.22rem 0 0;
  font-size: 0.95rem;
  color: #64748b;
}

.staff-dashboard__period-select {
  border: 0;
  border-radius: 10px;
  background: #f3f3f3;
  min-height: 2.3rem;
  width: auto;
  min-width: 13rem;
  flex: 0 0 auto;
  padding: 0.35rem 2rem 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.staff-kitchen-performance__chart {
  height: 250px;
  display: grid;
  gap: 0.35rem;
  align-items: end;
}

.staff-kitchen-performance__chart--24h {
  grid-template-columns: repeat(24, minmax(0, 1fr));
}

.staff-kitchen-performance__chart--7d {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.staff-kitchen-performance__col {
  display: grid;
  gap: 0.45rem;
  position: relative;
  cursor: default;
}

.staff-kitchen-performance__bar-wrap {
  height: 220px;
  border-radius: 8px;
  background: #ecf3ea;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.staff-kitchen-performance__bar {
  width: 100%;
  border-radius: 8px 8px 0 0;
  background: rgba(21, 66, 18, 0.3);
}

.staff-kitchen-performance__col::before,
.staff-kitchen-performance__col::after {
  position: absolute;
  left: 50%;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 6px);
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 3;
}

.staff-kitchen-performance__col::before {
  content: attr(data-tooltip);
  bottom: calc(100% + 10px);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.94);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.staff-kitchen-performance__col::after {
  content: "";
  bottom: calc(100% + 4px);
  border-width: 6px 6px 0 6px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.94) transparent transparent transparent;
}

.staff-kitchen-performance__col:hover::before,
.staff-kitchen-performance__col:hover::after,
.staff-kitchen-performance__col:focus-visible::before,
.staff-kitchen-performance__col:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.staff-kitchen-performance__col:focus-visible {
  outline: none;
}

.staff-kitchen-performance__col:focus-visible .staff-kitchen-performance__bar-wrap {
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.18);
}

.staff-kitchen-performance__axis {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  color: #94a3b8;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.staff-kitchen-performance__axis--7d {
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  justify-content: space-between;
}

.staff-dash-sales {
  background: linear-gradient(150deg, #154212 0%, #2d5a27 100%);
  color: #fff;
  border-radius: 24px;
  padding: 1.1rem;
  margin-bottom: 0;
}

.staff-dash-sales > p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.8;
}

.staff-dash-sales > strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.85rem;
  line-height: 1.1;
}

.staff-dash-sales > span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  opacity: 0.75;
}

.staff-dash-sales__meta {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.staff-dash-sales__meta label {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  text-transform: none;
}

.staff-dash-sales__meta b {
  display: block;
  font-size: 0.95rem;
}

.staff-dash-top {
  border-radius: 12px;
  margin-top: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 2rem;
  position: relative;
}

.staff-dash-top h3 {
  margin: 0 0 1.8rem;
  font-size: 1.25rem;
  font-weight: 800;
}

.staff-dash-top__view-all {
  position: absolute;
  right: 2rem;
  top: 2rem;
  z-index: 2;
  border: 0;
  background: transparent;
  color: #154212;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.staff-dash-top__view-all:hover {
  color: #0f3410;
}

.staff-dash-top__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.staff-dash-top-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 0.8rem;
}

.staff-dash-top-item__thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #f3f3f3;
  display: grid;
  place-items: center;
  color: #475569;
  overflow: hidden;
}

.staff-dash-top-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.staff-dash-top-item__thumb .material-symbols-outlined {
  font-size: 20px;
  opacity: 0.5;
}

.staff-dash-top-item__content strong {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
}

.staff-dash-top-item__content small {
  display: block;
  margin-bottom: 0.1rem;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 700;
}

.staff-dash-top-item__content span {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
}

.staff-dash-top-item__value {
  font-weight: 700;
  font-size: 0.96rem;
  color: #111827;
}

.staff-dash-kitchen-status {
  background: linear-gradient(150deg, #154212 0%, #2d5a27 100%);
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  margin-top: 0;
  box-shadow: 0 10px 24px rgba(21, 66, 18, 0.25);
}

.staff-dash-kitchen-status h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.staff-dash-kitchen-status__rows {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.55rem;
}

.staff-dash-kitchen-status__rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  padding-bottom: 0.45rem;
}

.staff-dash-kitchen-status__rows div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.staff-dash-kitchen-status__rows span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}

.staff-dash-kitchen-status__rows strong {
  font-size: 1.3rem;
}

.staff-dash-kitchen-status__btn {
  margin-top: 0.85rem;
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.staff-dash-tables {
  margin-top: 0;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  padding: 2rem;
}

.staff-dash-tables__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.staff-dash-tables__head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.staff-dash-tables__head span {
  font-size: 0.75rem;
  font-weight: 700;
  color: #154212;
  background: #edf6e9;
  border: 1px solid #d0e6c6;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.staff-dash-tables__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.staff-dash-table-tile {
  min-height: 84px;
  border-radius: 10px;
  background: #d0e6c6;
  color: #154212;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0.4rem;
}

.staff-dash-table-tile span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.staff-dash-table-tile strong {
  display: block;
  margin-top: 0.1rem;
  font-size: 1rem;
  font-weight: 800;
}

.staff-dash-tables__meta {
  margin: 0.9rem 0 0;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.staff-dash-leaderboard {
  margin-top: 0;
  background: rgba(208, 230, 198, 0.25);
  border: 1px solid rgba(208, 230, 198, 0.7);
  border-radius: 12px;
  padding: 1.2rem;
}

.staff-dash-leaderboard h4 {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
}

.staff-dash-leaderboard__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.staff-dash-leaderboard__avatar {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #154212;
}

.staff-dash-leaderboard__row p {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-dash-leaderboard__row small {
  color: #64748b;
  font-size: 0.68rem;
}

.staff-shell__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin: 0;
  flex-shrink: 0;
  min-height: 5.2rem;
  padding: 0.95rem 1.5rem;
  border-bottom: 1px solid #ececec;
  background: rgba(249, 249, 249, 0.96);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.staff-shell__topbar-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.staff-shell__topbar h1 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}

.staff-shell__search {
  position: relative;
  width: min(24rem, 40vw);
}

.staff-shell__search .material-symbols-outlined {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: #64748b;
}

.staff-shell__search input {
  width: 100%;
  min-height: 2.35rem;
  border: 0;
  border-radius: 999px;
  background: #eeeeee;
  color: #334155;
  padding: 0.5rem 0.85rem 0.5rem 2.15rem;
}

[data-staff-searchable].staff-global-search-hidden {
  display: none !important;
}

.staff-shell__topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.staff-topbar-chip {
  border: 0;
  background: #f0f7ee;
  color: #154212;
  border-radius: 999px;
  min-height: 2.2rem;
  padding: 0.35rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-topbar-chip .material-symbols-outlined {
  font-size: 1rem;
}

.staff-topbar-email {
  font-size: 0.74rem;
  color: #64748b;
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-topbar-avatar {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: #2d5a27;
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}

.staff-support-modal {
  position: fixed;
  inset: 0;
  z-index: 10070;
}

.staff-support-modal--hidden {
  display: none;
}

.staff-support-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(2, 6, 23, 0.5);
}

.staff-support-modal__card {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
  padding: 1.25rem;
}

.staff-support-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-support-modal__head h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #154212;
  font-weight: 800;
}

.staff-support-modal__copy {
  margin: 0.65rem 0 0.9rem;
  color: #64748b;
  font-size: 0.88rem;
  line-height: 1.45;
}

.staff-support-modal__row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.75rem;
  border-radius: 12px;
  background: #f8faf8;
  border: 1px solid #e2e8e0;
  margin-bottom: 0.55rem;
}

.staff-support-modal__row .material-symbols-outlined {
  color: #154212;
  font-size: 1.1rem;
}

.staff-support-modal__row p {
  margin: 0;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: #64748b;
}

.staff-support-modal__row a {
  color: #154212;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
}

@media (max-width: 980px) {
  .staff-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
  }

  .staff-sidebar {
    margin: 0;
    height: auto;
    max-height: min(42vh, 320px);
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid #e2e2e2;
    padding: 0.9rem 0.65rem 0.7rem;
  }

  .staff-shell.is-sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .staff-sidebar__toggle {
    display: none;
  }

  .staff-shell.is-sidebar-collapsed .staff-sidebar__brand {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .staff-shell.is-sidebar-collapsed .staff-sidebar__brand-main {
    justify-content: flex-start;
  }

  .staff-shell.is-sidebar-collapsed .staff-sidebar__brand-copy {
    display: block;
  }

  .staff-shell.is-sidebar-collapsed .staff-side-tab__label,
  .staff-shell.is-sidebar-collapsed .staff-side-preview__label,
  .staff-shell.is-sidebar-collapsed .staff-side-logout__label {
    display: inline;
  }

  .staff-shell.is-sidebar-collapsed .staff-side-tab {
    justify-content: flex-start;
    padding-left: 0.95rem;
    padding-right: 0.95rem;
    border-radius: 999px 0 0 999px;
  }

  .staff-shell.is-sidebar-collapsed .staff-side-preview {
    justify-content: center;
  }

  .staff-shell.is-sidebar-collapsed .staff-side-logout {
    justify-content: flex-start;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .staff-shell.is-sidebar-collapsed .staff-new-order-dot--nav {
    position: static;
    margin-left: auto;
  }

  .staff-sidebar__nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .staff-shell__content {
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .staff-shell__content #main-panel {
    padding: 1rem 0.7rem 1rem;
  }

  .staff-shell__topbar {
    min-height: 0;
    padding: 0.65rem 0.7rem;
    flex-wrap: wrap;
  }

  .staff-shell__topbar-main {
    width: 100%;
    flex-wrap: wrap;
  }

  .staff-shell__search {
    width: 100%;
  }

  .staff-waiter-calls-metrics {
    grid-template-columns: 1fr;
  }

  .staff-waiter-calls-list {
    grid-template-columns: 1fr;
  }

  .staff-waiter-call-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .staff-waiter-call-card__actions {
    justify-content: flex-start;
  }

  .staff-topbar-email {
    display: none;
  }

  .staff-dashboard__grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .staff-dashboard__stats {
    grid-template-columns: 1fr;
  }
}

/* Merchant settings: screenshot parity tuning */
.staff-overview--editorial {
  max-width: 1240px;
}

.staff-overview--editorial .staff-overview__header {
  margin-bottom: 0.3rem;
}

.staff-overview--editorial .staff-overview__header h2 {
  font-size: 2.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #154212;
}

.staff-overview--editorial .staff-overview__header p {
  margin-top: 0.35rem;
  color: #5e6976;
  font-size: 1.02rem;
  font-weight: 600;
}

.staff-overview--editorial .staff-overview__grid {
  margin-top: 1rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.88fr);
  gap: 1.1rem;
}

.staff-overview--editorial .staff-overview-card {
  background: #f5f5f5;
  border: 1px solid #dadada;
  border-radius: 16px;
  padding: 1rem;
  box-shadow: none;
}

.staff-overview--editorial .staff-overview-card__title {
  margin-bottom: 0.45rem;
}

.staff-overview--editorial .staff-overview-card__title h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #111827;
}

.staff-overview--editorial .staff-overview-card__accent {
  width: 5px;
  height: 20px;
}

.staff-overview--editorial .staff-overview-field label {
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  margin-bottom: 0.34rem;
}

.staff-overview--editorial .staff-overview-field input,
.staff-overview--editorial .staff-overview-field select {
  min-height: 2.6rem;
  border-radius: 10px;
  background: #ececec;
  border-color: transparent;
  font-size: 1.03rem;
  font-weight: 600;
  color: #111827;
}

.staff-overview--editorial .staff-overview-logo {
  background: #ececec;
  border-radius: 12px;
}

.staff-overview--editorial .staff-overview-logo__thumb {
  width: 78px;
  height: 78px;
  border-width: 2px;
  box-shadow: none;
}

.staff-overview--editorial .staff-overview-toggle-wrap {
  margin-top: 0.45rem;
  background: #ececec;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
}

.staff-overview--editorial .staff-overview-toggle-wrap strong {
  font-size: 1rem;
  font-weight: 700;
}

.staff-overview--editorial .staff-overview-toggle-wrap p {
  margin-top: 0.1rem;
  font-size: 0.9rem;
}

.staff-overview--editorial .staff-overview-switch input + span {
  width: 44px;
  height: 26px;
  background: #c8ced7;
}

.staff-overview--editorial .staff-overview-switch input + span::after {
  width: 20px;
  height: 20px;
}

.staff-overview--editorial .staff-overview-switch input:checked + span {
  background: #1f6a2c;
}

.staff-overview--editorial .staff-overview-switch input:checked + span::after {
  transform: translateX(18px);
}

.staff-overview--editorial .staff-overview-settings-group {
  margin-top: 0.65rem;
  background: #ececec;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
}

.staff-overview--editorial .staff-overview-settings-group--eta {
  background: #ebf1e8;
}

.staff-overview--editorial .staff-overview-settings-group h4 {
  font-size: 1.3rem;
  line-height: 1.15;
}

.staff-overview--editorial .staff-overview-settings-group p {
  font-size: 0.86rem;
  font-weight: 500;
}

.staff-overview--editorial .staff-overview-info {
  margin-top: 0.6rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #edf3e8;
  color: #404f3f;
}

.staff-overview--editorial .staff-overview-banner {
  height: 110px;
  margin-top: 0.55rem;
}

.staff-overview--editorial .staff-overview-global-actions {
  margin-top: 0.72rem;
  border-radius: 14px;
  border-color: #dadada;
  background: #f8f8f8;
  min-height: 72px;
}

.staff-overview--editorial .staff-overview-global-actions .btn--primary {
  min-width: 285px;
  min-height: 2.7rem;
  background: #1f6a2c;
  box-shadow: none;
}

.staff-overview--editorial .staff-overview-global-actions .subtle {
  font-size: 0.92rem;
  color: #6b7280;
}

@media (max-width: 1120px) {
  .staff-overview--editorial .staff-overview__grid {
    grid-template-columns: 1fr;
  }
}

/* Exact-match override pass for merchant settings */
#view-app .staff-overview--editorial {
  max-width: 1260px !important;
}

#view-app .staff-overview--editorial .staff-overview__header {
  margin-bottom: 0.2rem !important;
}

#view-app .staff-overview--editorial .staff-overview__header h2 {
  font-size: 3rem !important;
  line-height: 1.04 !important;
  letter-spacing: -0.025em !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

#view-app .staff-overview--editorial .staff-overview__header p {
  margin-top: 0.45rem !important;
  color: #627081 !important;
  font-size: 1.02rem !important;
  font-weight: 600 !important;
}

#view-app .staff-overview--editorial .staff-overview__grid {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.88fr) !important;
  gap: 1.2rem !important;
  margin-top: 0.95rem !important;
}

#view-app .staff-overview--editorial .staff-overview-card {
  background: #f4f4f4 !important;
  border: 1px solid #d9d9d9 !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  padding: 1rem !important;
}

#view-app .staff-overview--editorial .staff-overview-card__title {
  margin-bottom: 0.5rem !important;
}

#view-app .staff-overview--editorial .staff-overview-card__title h3 {
  font-size: 1.9rem !important;
  line-height: 1.15 !important;
  font-weight: 800 !important;
  margin: 0 !important;
}

#view-app .staff-overview--editorial .staff-overview-card__accent {
  width: 5px !important;
  height: 21px !important;
  border-radius: 999px !important;
}

#view-app .staff-overview--editorial .staff-overview-field label {
  font-size: 0.72rem !important;
  letter-spacing: 0.09em !important;
  font-weight: 800 !important;
  color: #6b7280 !important;
  margin: 0 0 0.34rem !important;
}

#view-app .staff-overview--editorial .staff-overview-field input,
#view-app .staff-overview--editorial .staff-overview-field select {
  min-height: 2.75rem !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: #ececec !important;
  color: #111827 !important;
  font-size: 1.04rem !important;
  font-weight: 600 !important;
}

#view-app .staff-overview--editorial .staff-overview-logo {
  border-radius: 12px !important;
  background: #ececec !important;
  padding: 0.75rem !important;
}

#view-app .staff-overview--editorial .staff-overview-logo__thumb {
  width: 80px !important;
  height: 80px !important;
  border-width: 2px !important;
  box-shadow: none !important;
}

#view-app .staff-overview--editorial .staff-overview-toggle-wrap {
  margin-top: 0.5rem !important;
  padding: 0.78rem 0.9rem !important;
  border-radius: 12px !important;
  background: #ececec !important;
}

#view-app .staff-overview--editorial .staff-overview-toggle-wrap strong {
  font-size: 1.03rem !important;
  font-weight: 700 !important;
}

#view-app .staff-overview--editorial .staff-overview-toggle-wrap p {
  margin-top: 0.1rem !important;
  font-size: 0.91rem !important;
}

#view-app .staff-overview--editorial .staff-overview-switch input + span {
  width: 46px !important;
  height: 28px !important;
  background: #c4ccd5 !important;
}

#view-app .staff-overview--editorial .staff-overview-switch input + span::after {
  width: 22px !important;
  height: 22px !important;
  top: 3px !important;
  left: 3px !important;
}

#view-app .staff-overview--editorial .staff-overview-switch input:checked + span {
  background: #176022 !important;
}

#view-app .staff-overview--editorial .staff-overview-switch input:checked + span::after {
  transform: translateX(18px) !important;
}

#view-app .staff-overview--editorial .staff-overview-settings-group {
  margin-top: 0.68rem !important;
  border-radius: 12px !important;
  border: 1px solid #e1e1e1 !important;
  background: #ececec !important;
  padding: 0.8rem 0.9rem !important;
}

#view-app .staff-overview--editorial .staff-overview-settings-group--eta {
  background: #ebf2e8 !important;
  border-color: #d9e2d5 !important;
}

#view-app .staff-overview--editorial .staff-overview-settings-group h4 {
  font-size: 1.35rem !important;
  line-height: 1.15 !important;
  margin: 0 !important;
  font-weight: 800 !important;
}

#view-app .staff-overview--editorial .staff-overview-settings-group p {
  margin-top: 0.18rem !important;
  color: #607080 !important;
  font-size: 0.88rem !important;
}

#view-app .staff-overview--editorial .staff-overview-settings-grid {
  gap: 0.6rem !important;
}

#view-app .staff-overview--editorial .staff-overview-settings-inline {
  gap: 0.5rem !important;
}

#view-app .staff-overview--editorial .staff-overview-info {
  margin-top: 0.62rem !important;
  border-radius: 10px !important;
  border: 1px solid #dce6d7 !important;
  background: #edf3e8 !important;
  color: #3f4b39 !important;
  padding: 0.6rem 0.72rem !important;
}

#view-app .staff-overview--editorial .staff-overview-banner {
  margin-top: 0.58rem !important;
  height: 108px !important;
  border-radius: 12px !important;
}

#view-app .staff-overview--editorial .staff-overview-global-actions {
  margin-top: 0.72rem !important;
  border-radius: 14px !important;
  border: 1px solid #d9d9d9 !important;
  background: #f8f8f8 !important;
  min-height: 74px !important;
  padding: 0.9rem 1rem !important;
}

#view-app .staff-overview--editorial .staff-overview-global-actions .btn--primary {
  min-width: 285px !important;
  min-height: 2.75rem !important;
  border-radius: 999px !important;
  background: #176022 !important;
  box-shadow: none !important;
}

#view-app .staff-overview--editorial .staff-overview-global-actions .subtle {
  color: #6b7280 !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
}

/* Exact screenshot-style merchant settings */
.staff-overview--exact {
  max-width: 1260px;
}

/* Merchant settings: 3-column grid (logo + invoice | contact | hours + UPI) */
.staff-overview-exact-identity--stacked {
  display: grid;
  gap: 0.65rem;
}

.staff-overview-settings-bundle__intro {
  margin: -0.2rem 0 0.75rem;
}

.staff-overview-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.15rem;
  align-items: start;
}

.staff-overview-settings-grid__col {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.7rem;
}

.staff-settings-col-head {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4b5563;
  margin: 0 0 0.15rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid #d1d5db;
}

.staff-overview-logo--settings-grid {
  grid-template-columns: 1fr;
  justify-items: start;
}

.staff-theme-color-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.staff-theme-color-row input[type="color"] {
  width: 3rem;
  height: 2.65rem;
  padding: 0.2rem;
  border-radius: 10px;
  border: 1px solid #d9dee5;
  background: #fff;
  cursor: pointer;
}

.staff-overview-field--flush {
  margin-bottom: 0;
}

.staff-overview-hours-block {
  width: 100%;
}

.staff-overview-exact-copy--tight {
  margin: 0 0 0.5rem;
}

@media (max-width: 1080px) {
  .staff-overview-settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .staff-overview-settings-grid__col--hours-upi {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .staff-overview-settings-grid {
    grid-template-columns: 1fr;
  }

  .staff-overview-settings-grid__col--hours-upi {
    grid-column: auto;
  }
}

.staff-overview__header--exact h2 {
  margin: 0;
  font-size: 2.55rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #154212;
  font-weight: 800;
}

.staff-overview__header--exact p {
  margin: 0.4rem 0 0;
  font-size: 0.94rem;
  color: #617084;
  font-weight: 600;
}

.staff-overview-exact-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.staff-overview-exact-left,
.staff-overview-exact-right {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.staff-overview-exact-card--ordering {
  grid-column: 1 / span 2;
  grid-row: 1;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 0.75rem;
  align-content: start;
  background: #f8fafc;
  border-color: #dbe3ee;
}

.staff-overview-exact-card--prep {
  grid-column: 3;
  grid-row: 1;
  padding: 1.05rem;
}

.staff-overview-exact-card--bundle {
  grid-column: 1 / -1;
  grid-row: 2;
}

.staff-overview-exact-save--full {
  grid-column: 1 / -1;
  grid-row: 3;
}

.staff-overview-exact-card {
  background: #f4f4f4;
  border: 1px solid #dddddd;
  border-radius: 16px;
  padding: 1rem;
}

.staff-overview-exact-card--green {
  background: #2d5a27;
  border-color: #2d5a27;
}

.staff-overview-exact-title {
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 1.62rem;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 0.45rem;
}

.staff-overview-exact-title--light {
  color: #fff;
}

.staff-overview-exact-copy {
  margin: -0.12rem 0 0.45rem;
  color: #607083;
  font-size: 0.82rem;
  font-weight: 500;
}

.staff-overview-exact-identity {
  display: grid;
  gap: 0.65rem;
}

.staff-overview-exact-identity-top {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.staff-overview-exact-identity-main {
  display: grid;
  gap: 0.65rem;
}

.staff-overview-exact-slug {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.4rem;
}

.staff-overview-exact-slug span {
  color: #6b7280;
  font-size: 0.95rem;
  font-weight: 600;
}

.staff-overview-exact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.staff-overview-exact-chip {
  border: 1px solid #d7ded2;
  border-radius: 999px;
  background: #fff;
  color: #2f5c29;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.34rem 0.78rem;
}

.staff-overview-exact-hours {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.staff-overview-exact-hours-box {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e7e7e7;
  padding: 0.65rem;
}

.staff-overview-exact-hours-box span {
  display: block;
  margin-bottom: 0.35rem;
  color: #6b7280;
  font-size: 0.64rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.staff-overview-exact-hours-box input {
  background: #f2f2f2;
  border: 1px solid transparent;
  border-radius: 10px;
}

.staff-overview--exact .staff-overview-field label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: #5b6678;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.staff-overview--exact .staff-overview-field input,
.staff-overview--exact .staff-overview-field select,
.staff-overview--exact .staff-overview-field textarea {
  background: #eceff1;
  border: 1px solid #d9dee5;
  border-radius: 12px;
  min-height: 2.65rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.staff-overview--exact .staff-overview-field textarea {
  min-height: 5.8rem;
  resize: vertical;
}

.staff-overview--exact .staff-overview-field input::placeholder,
.staff-overview--exact .staff-overview-field textarea::placeholder {
  color: #8a94a6;
  font-weight: 500;
}

.staff-overview--exact .staff-overview-field small.muted {
  display: block;
  margin-top: 0.12rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #64748b;
}

.staff-overview-section-help {
  margin: 0.2rem 0 0.15rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4b5563;
}

.staff-overview--exact .staff-overview-logo {
  background: #ececec;
  border-radius: 12px;
}

.staff-overview-logo--exact {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 128px;
}

.staff-overview--exact .staff-overview-logo__thumb {
  width: 82px;
  height: 82px;
  border-width: 2px;
  box-shadow: none;
}

.staff-overview-logo__thumb--exact {
  width: 96px !important;
  height: 96px !important;
}

.staff-overview-logo__actions--exact {
  grid-template-columns: 1fr;
}

.staff-overview-exact-card--ordering .staff-overview-exact-title {
  grid-column: 1 / -1;
  font-size: 1.26rem;
  margin-bottom: 0.4rem;
  color: #1f2937;
}

.staff-overview-ordering-group {
  margin: 0;
}

.staff-overview-ordering-group__title {
  color: #475569;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 800;
  margin: 0 0 0.2rem 0.12rem;
}

.staff-overview-exact-card--ordering .staff-overview-toggle-wrap {
  margin-top: 0.16rem;
  padding: 0.62rem 0.68rem;
  gap: 0.65rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.staff-overview-exact-card--ordering .staff-overview-toggle-wrap strong {
  font-size: 0.95rem;
  line-height: 1.1;
  color: #1f2937;
}

.staff-overview-exact-card--ordering .staff-overview-toggle-wrap p {
  margin-top: 0.12rem;
  font-size: 0.81rem;
  line-height: 1.26;
  color: #4b5563;
}

.staff-overview-exact-card--ordering,
.staff-overview-exact-card--prep {
  min-height: 335px;
}

.staff-overview-exact-card--prep .staff-prep-standard-head {
  margin-bottom: 0.55rem;
}

.staff-overview--exact .staff-overview-switch input + span {
  width: 46px;
  height: 28px;
}

.staff-overview--exact .staff-overview-switch input:checked + span {
  background: #176022;
}

.staff-overview--exact .staff-overview-settings-grid {
  gap: 0.6rem;
}

.staff-overview-exact-save {
  display: grid;
  gap: 0;
  position: relative;
  padding-top: 0.8rem;
}

.staff-overview-exact-save .btn--primary {
  border: 0;
  border-radius: 999px;
  min-height: 2.7rem;
  background: #176022;
  box-shadow: 0 10px 24px rgba(23, 96, 34, 0.22);
  font-size: 1rem;
}

.staff-overview-exact-toast {
  position: absolute;
  right: 0.55rem;
  top: -0.1rem;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 0.46rem 0.82rem;
  font-size: 0.78rem;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.25);
}

.staff-prep-standard-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.45rem;
}

.staff-prep-standard-head span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 800;
}

.staff-prep-standard-head p {
  margin: 0.12rem 0 0;
  color: #4b5563;
  font-size: 0.95rem;
  font-weight: 500;
}

.staff-prep-standard-head strong {
  color: #154212;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.staff-prep-slider {
  width: 100%;
  appearance: none;
  height: 4px;
  border-radius: 999px;
  background: #d7dbe0;
  outline: none;
  margin: 0.55rem 0 0.9rem;
}

.staff-prep-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid #fff;
  background: #176022;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  cursor: pointer;
}

.staff-prep-inclement {
  border-top: 1px solid #e0e4e8;
  padding-top: 0.85rem;
}

.staff-prep-inclement__title {
  color: #c62828;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.staff-prep-inclement__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.staff-prep-inclement__box {
  background: #ececec;
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
}

.staff-prep-inclement__box span {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-size: 0.64rem;
  color: #6b7280;
  font-weight: 800;
}

.staff-prep-inclement__box strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 2rem;
  line-height: 1.05;
  color: #1f2937;
  font-weight: 800;
}

@media (max-width: 1120px) {
  .staff-overview-exact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .staff-overview-exact-identity-top {
    grid-template-columns: 1fr;
  }

  .staff-overview-exact-card--bundle,
  .staff-overview-exact-card--ordering,
  .staff-overview-exact-card--prep,
  .staff-overview-exact-save--full {
    grid-column: auto;
  }

  .staff-overview-exact-card--ordering {
    grid-template-columns: 1fr;
  }

  .staff-overview-logo--exact {
    min-height: 108px;
  }

  .staff-overview-exact-toast {
    position: static;
    justify-self: end;
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 860px) {
  .staff-overview-exact-grid {
    grid-template-columns: 1fr;
  }
}

.staff-overview-exact-left,
.staff-overview-exact-right {
  display: contents;
}


.staff-order-drawer__meta-card--wide {
  grid-column: 1 / -1;
}

.staff-order-drawer__address {
  display: block;
  line-height: 1.45;
  white-space: normal;
}

.staff-order-history-page {
  padding-bottom: 2rem;
}

.staff-order-history-hero {
  margin-bottom: 0.85rem;
}

.staff-order-history-hero__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-wrap: wrap;
}

.staff-order-history-btn {
  border: 1px solid rgba(21, 66, 18, 0.16);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.75rem;
  white-space: nowrap;
}

.staff-order-history-btn--secondary {
  background: #fff;
  color: #154212;
  box-shadow: 0 6px 18px rgba(21, 66, 18, 0.08);
}

.staff-order-history-btn--secondary:hover {
  background: #f6faf4;
}

.staff-order-history-filters {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.6rem;
  margin-top: 0.55rem;
}

/* History filters: strip the card from the wrapper, field itself is the visual card */
.staff-order-history-filters .staff-active-orders-filter-group {
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  box-sizing: border-box;
}

/* Give text inputs more flex room than selects */
.staff-order-history-filters .staff-order-history-filter-group--search {
  flex: 1.4 1 0;
}

.staff-order-history-filters .staff-active-orders-filter-group__label {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
  padding-left: 0.1rem;
}

.staff-order-history-filter-group {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.staff-order-history-filter-group--search {
  min-width: 0;
}

.staff-order-history-filter-group--table {
  min-width: 0;
  width: 100%;
}

.staff-order-history-filter-group--table .staff-active-orders-table-pill {
  width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, rgba(251, 252, 249, 0.98), rgba(244, 247, 241, 0.96));
  border: 1px solid rgba(205, 212, 198, 0.9);
  border-radius: 14px;
  padding: 0 0.5rem 0 0.35rem;
  min-height: 2.5rem;
  box-shadow: 0 4px 12px rgba(21, 66, 18, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.staff-order-history-filter-group--table .staff-active-orders-table-pill__select {
  font-size: 0.82rem;
  font-weight: 600;
  min-height: 2.5rem;
  border: none;
  background: transparent;
  outline: none;
}

.staff-order-history-custom-range {
  display: none;
  align-items: flex-end;
  gap: 0.6rem;
  margin-top: 0.45rem;
}

.staff-order-history-custom-range.is-visible {
  display: flex;
}

.staff-order-history-custom-range__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 0 0 auto;
}

.staff-order-history-field--date {
  width: 10rem;
  cursor: pointer;
}

.staff-order-history-field {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid rgba(205, 212, 198, 0.9);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(251, 252, 249, 0.98), rgba(244, 247, 241, 0.96));
  padding: 0 0.8rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: #33402e;
  box-sizing: border-box;
  box-shadow: 0 4px 12px rgba(21, 66, 18, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.92);
  outline: none;
}

select.staff-order-history-field {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239aaa96' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  cursor: pointer;
}

input.staff-order-history-field {
  padding-right: 0.6rem;
}

.staff-order-history-field:focus {
  border-color: rgba(45, 90, 39, 0.5);
  box-shadow: 0 0 0 3px rgba(45, 90, 39, 0.1);
}

.staff-order-history-field::placeholder {
  font-size: 0.78rem;
  font-weight: 400;
  color: #9aaa96;
}

.staff-order-history-field:focus {
  outline: none;
}

.staff-order-history-export {
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(198, 206, 192, 0.75);
  border-radius: 14px;
  background: rgba(252, 253, 251, 0.98);
}

.staff-order-history-export--compact {
  margin-top: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-radius: 11px;
  width: fit-content;
  max-width: min(100%, 31.5rem);
  box-sizing: border-box;
}

.staff-order-history-export__summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-weight: 800;
  font-size: 0.88rem;
  color: #2d3a28;
  list-style: none;
}

.staff-order-history-export--compact .staff-order-history-export__summary {
  font-size: 0.76rem;
  font-weight: 700;
  gap: 0.3rem;
}

.staff-order-history-export__summary::-webkit-details-marker {
  display: none;
}

.staff-order-history-export__icon {
  font-size: 1.15rem;
  color: #2d5a27;
}

.staff-order-history-export--compact .staff-order-history-export__icon {
  font-size: 0.95rem;
}

.staff-order-history-export__body {
  margin-top: 0.65rem;
  display: grid;
  gap: 0.65rem;
}

.staff-order-history-export--compact .staff-order-history-export__body {
  margin-top: 0.4rem;
  gap: 0.4rem;
}

.staff-order-history-export__hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: #64748b;
}

.staff-order-history-export--compact .staff-order-history-export__hint {
  font-size: 0.68rem;
  line-height: 1.35;
}

.staff-order-history-export__custom-head {
  margin-bottom: 0.15rem;
}

.staff-order-history-export__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.55rem 0.65rem;
}

.staff-order-history-export__row-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.65rem;
  flex: 1 1 12rem;
  min-width: 0;
}

.staff-order-history-export__toolbar-btn-slot--dock {
  display: flex;
  align-items: flex-end;
  flex-shrink: 0;
}

.staff-order-history-export__toolbar-btn-slot--dock:not(:has(button)) {
  display: none;
}

.staff-order-history-export__toolbar-btn-slot--dock:has(button) {
  margin-left: auto;
}

.staff-order-history-export__field {
  flex: 1 1 11rem;
  min-width: 0;
  max-width: 16rem;
}

.staff-order-history-export__row-fields > .staff-order-history-export__field {
  flex: 1 1 10rem;
}

.staff-order-history-export__field--format {
  flex: 1 1 12rem;
  min-width: 9.5rem;
  max-width: none;
}

.staff-order-history-export__radios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
  margin-top: 0.12rem;
  padding-right: 0.15rem;
}

.staff-order-history-export__radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #33402e;
  cursor: pointer;
  user-select: none;
}

.staff-order-history-export__radio input {
  width: 1rem;
  min-width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: #2d5a27;
  cursor: pointer;
}

.staff-order-history-export__radio span {
  line-height: 1;
}

.staff-order-history-export--compact .staff-order-history-export__select,
.staff-order-history-export--compact .staff-order-history-export__custom-wrap .staff-order-history-field {
  min-height: 2.15rem;
  padding: 0 0.55rem;
  font-size: 0.8rem;
  border-radius: 10px;
}

.staff-order-history-export--compact .staff-active-orders-filter-group__label,
.staff-order-history-export--compact .staff-order-history-custom-label {
  font-size: 0.62rem;
  margin-bottom: 0.18rem;
}

.staff-order-history-export__btn-inline {
  flex: 0 0 auto;
  width: 2.15rem;
  min-width: 2.15rem;
  max-width: 2.15rem;
  min-height: 2.15rem;
  padding: 0;
  justify-content: center;
  font-size: 0.78rem;
}

.staff-order-history-export__download-btn.staff-order-history-btn.staff-order-history-btn--secondary {
  background: linear-gradient(180deg, #1f7a2e 0%, #176022 100%);
  border: 1px solid #0f4a18;
  color: #fff;
  box-shadow: 0 2px 8px rgba(23, 96, 34, 0.35);
}

.staff-order-history-export__download-btn.staff-order-history-btn.staff-order-history-btn--secondary:hover {
  filter: brightness(1.06);
}

.staff-order-history-export__download-btn.staff-order-history-btn.staff-order-history-btn--secondary:focus-visible {
  outline: 2px solid rgba(45, 90, 39, 0.55);
  outline-offset: 2px;
}

.staff-order-history-export__download-btn.staff-order-history-btn.staff-order-history-btn--secondary .material-symbols-outlined {
  color: #fff;
}

.staff-order-history-export__btn-inline .material-symbols-outlined {
  font-size: 1.1rem;
  margin: 0;
}

.staff-order-history-export__custom-wrap {
  margin-top: 0.35rem;
}

.staff-order-history-export__custom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.6rem;
}

.staff-order-history-export__date-cell {
  flex: 0 1 9rem;
  min-width: 6.75rem;
  max-width: 10.25rem;
  width: 9rem;
}

.staff-order-history-export__custom-btn-slot {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  min-height: 2.15rem;
}

.staff-order-history-export__date-input.staff-order-history-field {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.staff-order-history-export__btn {
  justify-self: start;
}

.staff-order-history-footer {
  border-top: 1px solid #f1f5f9;
}

.staff-order-history-footer .orders-pagination {
  margin-left: auto;
}

@media (max-width: 960px) {
  .staff-order-history-hero__actions {
    width: 100%;
    margin-left: 0;
  }

  .staff-order-history-filters {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .staff-order-history-filters .staff-active-orders-filter-group {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .staff-order-history-custom-range {
    flex-wrap: wrap;
  }

  .staff-order-history-field--date {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .staff-order-history-filter-group,
  .staff-order-history-filter-group--search,
  .staff-order-history-filter-group--table {
    width: 100%;
    min-width: 0;
  }

  .staff-order-history-hero__actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .staff-order-history-btn,
  .staff-active-orders-manual-btn {
    width: 100%;
    justify-content: center;
  }

  .staff-order-history-btn.staff-order-history-export__btn-inline {
    width: 2.15rem;
    min-width: 2.15rem;
    max-width: 2.15rem;
  }

  .staff-order-history-export__row-fields {
    flex: 1 1 100%;
    width: 100%;
  }

  .staff-order-history-export__field {
    flex: 1 1 100%;
    max-width: none;
  }

  .staff-order-history-export--compact {
    max-width: 100%;
  }

  .staff-order-history-export__toolbar-btn-slot--dock:has(button) {
    margin-left: auto;
    align-self: flex-end;
  }

  .staff-order-history-export__btn-inline {
    align-self: flex-end;
  }

  .staff-order-history-export__date-cell {
    flex: 1 1 calc(50% - 1.75rem);
    max-width: none;
    min-width: min(100%, 7.5rem);
  }

  .staff-order-history-export__custom-row {
    align-items: flex-end;
  }

  .staff-order-history-export__custom-btn-slot {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }
}


/* Staff button system — keep button language consistent across views */
.layout--staff .btn,
.staff-menu-form-drawer .btn,
.staff-order-drawer .btn,
.staff-invoice-drawer .btn,
.staff-confirm-modal .btn,
#view-login #form-login .btn,
.staff-overview-exact-save .btn,
.staff-overview-global-actions .btn,
.staff-overview-actions .btn {
  min-height: 2.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: 0.82rem;
  border: 1px solid rgba(21, 66, 18, 0.14);
  background: #fff;
  color: #154212;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-shadow: 0 6px 18px rgba(21, 66, 18, 0.08);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, filter 0.12s ease;
}

.layout--staff .btn:hover,
.staff-menu-form-drawer .btn:hover,
.staff-order-drawer .btn:hover,
.staff-invoice-drawer .btn:hover,
.staff-confirm-modal .btn:hover,
#view-login #form-login .btn:hover,
.staff-overview-exact-save .btn:hover,
.staff-overview-global-actions .btn:hover,
.staff-overview-actions .btn:hover {
  background: #f6faf4;
  box-shadow: 0 10px 24px rgba(21, 66, 18, 0.12);
}

.layout--staff .btn:active,
.staff-menu-form-drawer .btn:active,
.staff-order-drawer .btn:active,
.staff-invoice-drawer .btn:active,
.staff-confirm-modal .btn:active,
#view-login #form-login .btn:active,
.staff-overview-exact-save .btn:active,
.staff-overview-global-actions .btn:active,
.staff-overview-actions .btn:active {
  transform: translateY(1px);
}

.layout--staff .btn .material-symbols-outlined,
.staff-menu-form-drawer .btn .material-symbols-outlined,
.staff-order-drawer .btn .material-symbols-outlined,
.staff-invoice-drawer .btn .material-symbols-outlined,
.staff-confirm-modal .btn .material-symbols-outlined,
#view-login #form-login .btn .material-symbols-outlined,
.staff-overview-exact-save .btn .material-symbols-outlined,
.staff-overview-global-actions .btn .material-symbols-outlined,
.staff-overview-actions .btn .material-symbols-outlined {
  font-size: 1rem;
}

.layout--staff .btn--primary,
.staff-menu-form-drawer .btn--primary,
.staff-order-drawer .btn--primary,
.staff-invoice-drawer .btn--primary,
.staff-confirm-modal .btn--primary,
#view-login #form-login .btn--primary,
.staff-overview-exact-save .btn--primary,
.staff-overview-global-actions .btn--primary,
.staff-overview-actions .btn--primary {
  border-color: rgba(21, 66, 18, 0.88);
  background: linear-gradient(135deg, #154212 0%, #2d5a27 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 66, 18, 0.22);
}

.layout--staff .btn--primary:hover,
.staff-menu-form-drawer .btn--primary:hover,
.staff-order-drawer .btn--primary:hover,
.staff-invoice-drawer .btn--primary:hover,
.staff-confirm-modal .btn--primary:hover,
#view-login #form-login .btn--primary:hover,
.staff-overview-exact-save .btn--primary:hover,
.staff-overview-global-actions .btn--primary:hover,
.staff-overview-actions .btn--primary:hover {
  background: linear-gradient(135deg, #1b4c17 0%, #356630 100%);
}

.layout--staff .btn--small,
.staff-menu-form-drawer .btn--small,
.staff-order-drawer .btn--small,
.staff-invoice-drawer .btn--small,
.staff-confirm-modal .btn--small,
.staff-overview-exact-save .btn--small,
.staff-overview-global-actions .btn--small,
.staff-overview-actions .btn--small {
  min-height: 2.35rem;
  padding: 0.45rem 0.82rem;
  font-size: 0.78rem;
}

.layout--staff input[type="file"]::file-selector-button,
.staff-menu-form-drawer input[type="file"]::file-selector-button {
  min-height: 2.35rem;
  padding: 0.45rem 0.82rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(21, 66, 18, 0.14);
  background: #fff;
  color: #154212;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(21, 66, 18, 0.08);
}

.staff-active-orders-manual-btn,
.staff-order-history-btn,
.staff-active-orders__action-pill {
  min-height: 2.5rem;
  padding: 0.5rem 0.92rem;
  border-radius: 0.78rem;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, filter 0.12s ease;
}

.staff-active-orders-manual-btn {
  border: 1px solid rgba(21, 66, 18, 0.88);
  background: linear-gradient(135deg, #154212 0%, #2d5a27 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(21, 66, 18, 0.22);
}

.staff-active-orders-manual-btn:hover {
  background: linear-gradient(135deg, #1b4c17 0%, #356630 100%);
}

.staff-order-history-btn,
.staff-active-orders__action-pill {
  border: 1px solid rgba(21, 66, 18, 0.14);
  background: #fff;
  color: #154212;
  box-shadow: 0 6px 18px rgba(21, 66, 18, 0.08);
}

.staff-order-history-btn:hover,
.staff-active-orders__action-pill:hover {
  background: #f6faf4;
  box-shadow: 0 10px 24px rgba(21, 66, 18, 0.12);
}

.staff-active-orders__icon-btn,
.staff-active-orders-table--editorial .staff-active-orders__icon-btn,
.staff-invoice-line__remove,
.manual-order-entry__qty button,
.staff-invoice-qty button {
  box-shadow: none;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.staff-active-orders__icon-btn,
.staff-active-orders-table--editorial .staff-active-orders__icon-btn {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.78rem;
  border: 1px solid rgba(21, 66, 18, 0.12);
  background: #f4f8f2;
  color: #446041;
}

.staff-active-orders__icon-btn:hover,
.staff-active-orders-table--editorial .staff-active-orders__icon-btn:hover {
  background: #e9f1e5;
  border-color: rgba(21, 66, 18, 0.22);
}

.staff-waiter-inline {
  min-width: 13rem;
  max-width: 18rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.staff-waiter-inline__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.staff-waiter-inline__title {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5a6652;
}

.staff-waiter-inline__count {
  min-width: 1.4rem;
  height: 1.4rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #e9f3e6;
  color: #154212;
  font-size: 0.72rem;
  font-weight: 800;
}

.staff-waiter-inline__list {
  max-height: 4.8rem;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding-right: 0.2rem;
}

.staff-waiter-inline__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  line-height: 1.2;
}

.staff-waiter-inline__meta {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.staff-waiter-inline__item strong {
  color: #183b17;
  font-size: 0.82rem;
}

.staff-waiter-inline__item span {
  color: #64748b;
  font-size: 0.72rem;
}

.staff-waiter-inline__item .btn {
  margin-left: auto;
  padding: 0.32rem 0.58rem;
  min-height: 0;
  box-shadow: none;
}

.staff-waiter-calls-page {
  display: grid;
  gap: 1rem;
}

.staff-waiter-calls-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.staff-waiter-calls-metric {
  border: 1px solid #e5ece1;
  border-radius: 16px;
  background: #fff;
  padding: 1rem 1.05rem;
  display: grid;
  gap: 0.28rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.staff-waiter-calls-metric span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-waiter-calls-metric strong {
  font-size: 1.4rem;
  font-weight: 800;
  color: #154212;
}

.staff-waiter-calls-metric small {
  color: #64748b;
  font-size: 0.8rem;
}

.staff-waiter-calls-panel {
  border-radius: 18px;
  padding: 1rem;
}

.staff-waiter-calls-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.staff-waiter-calls-panel__head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: #154212;
}

.staff-waiter-calls-panel__head span {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.42rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef3ec;
  color: #154212;
  font-size: 0.75rem;
  font-weight: 800;
}

.staff-waiter-calls-list {
  display: grid;
  grid-template-columns: minmax(0, 860px);
  justify-content: start;
  gap: 0.65rem;
}

.staff-waiter-call-card {
  border: 1px solid #e5ece1;
  border-radius: 16px;
  background: #fbfdfb;
  padding: 0.85rem 0.95rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.staff-waiter-call-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.staff-waiter-call-card__head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: #154212;
}

.staff-waiter-call-card__head p {
  margin: 0.18rem 0 0;
  color: #64748b;
  font-size: 0.76rem;
}

.staff-waiter-call-card__badge {
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #eef3ec;
  color: #154212;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.staff-waiter-call-card__meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.staff-waiter-call-card__meta span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.staff-waiter-call-card__meta strong {
  display: block;
  margin-top: 0.18rem;
  font-size: 0.82rem;
  color: #183b17;
}

.staff-waiter-call-card__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}
