.staff-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem;
}

.staff-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.staff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 900px) {
  .staff-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .staff-grid--kitchen {
    grid-template-columns: repeat(3, 1fr);
  }
}

.staff-card {
  padding: 1rem;
  border-left: 3px solid rgba(212, 175, 55, 0.28);
  transition: border-color var(--motion-base) ease, transform var(--motion-base) ease;
}

.staff-card__title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.order-no {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: var(--turquoise);
}

.staff-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.staff-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.staff-item__actions .btn {
  min-height: 40px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pill--pending {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
}

.status-pill--ready {
  background: rgba(0, 200, 83, 0.2);
  color: #00c853;
}

.status-pill--cancelled {
  background: rgba(255, 120, 90, 0.22);
  color: #ffb38a;
}

.staff-item--cancelled {
  opacity: 0.72;
}

.staff-item--cancelled > span:first-child {
  text-decoration: line-through;
}

.staff-card--cancelled {
  border-left: 4px solid rgba(255, 120, 90, 0.55);
}

.login-box {
  max-width: 400px;
  margin: 4rem auto;
  padding: 2rem;
}

.login-box h1 {
  margin-top: 0;
  text-align: center;
}

.login-box .field-input {
  margin-bottom: 1rem;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.table-modal-actions {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.table-row--manage {
  cursor: default;
  grid-template-columns: 1fr auto auto;
}

.table-row__manage-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 7rem;
}

.table-row__status {
  font-size: 0.85rem;
  opacity: 0.75;
  text-transform: capitalize;
}

.split-payment-person {
  margin: 0.35rem 0 0.5rem;
  padding: 0.45rem 0.6rem;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
}

.split-payment-person__title {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.payment-request-detail {
  margin: 0.5rem 0;
}

.inventory-order-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.inventory-order-row {
  display: grid;
  grid-template-columns: auto 1fr 5.5rem;
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-order-row__name {
  font-weight: 600;
}

.inventory-order-row__supplier,
.admin-supplier-line {
  font-size: 0.85rem;
  color: #9ec9e8;
}

.inventory-order-row__qty {
  width: 100%;
  min-width: 0;
}

.inventory-order-row--readonly {
  grid-template-columns: 1fr;
}

.request-banner {
  background: rgba(255, 107, 107, 0.15);
  border: 1px solid #ff6b6b;
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.inventory-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.inventory-row--low {
  color: #ff8a8a;
}

.inv-name {
  flex: 1;
}

.inv-stock {
  font-weight: 800;
  min-width: 40px;
  text-align: right;
}

.feed-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  opacity: 0.75;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.feed-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ec9e8;
  flex-shrink: 0;
}

.feed-status--live {
  opacity: 1;
  background: rgba(0, 200, 83, 0.14);
  border: 1px solid rgba(0, 200, 83, 0.35);
}

.feed-status--live::before {
  background: #00c853;
  box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5);
  animation: livePulse 2s infinite;
}

.feed-status--offline {
  background: rgba(255, 107, 107, 0.14);
  border: 1px solid rgba(255, 107, 107, 0.4);
  color: #ffb3b3;
}

.feed-status--offline::before {
  background: #ff6b6b;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(0, 200, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

.section-title {
  font-size: 1.1rem;
  margin: 1.5rem 0 0.75rem;
  opacity: 0.9;
}

.muted {
  opacity: 0.65;
  padding: 0.75rem 0;
}

.request-banner.payment {
  background: rgba(0, 183, 255, 0.14);
  border-color: var(--turquoise);
  color: var(--turquoise);
}

.staff-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.staff-item .customer-comment-critical {
  flex: 1 1 100%;
}

.staff-card--clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.request-banner.payment .bill-total {
  text-align: left;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  font-size: 0.95rem;
}

.staff-card--clickable:hover {
  border-color: rgba(64, 224, 208, 0.45);
  transform: translateY(-1px);
}

.staff-item--inline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.staff-item--inline .staff-item__body {
  flex: 1;
  min-width: 0;
}

.staff-item--inline .btn-ready-inline {
  flex-shrink: 0;
  align-self: center;
  white-space: nowrap;
}

.waiter-alert-host {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0 0.75rem 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

.waiter-alert-banner {
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--turquoise);
  background: rgba(0, 183, 255, 0.18);
  color: var(--turquoise);
  font-weight: 600;
  cursor: pointer;
}

.waiter-alert-banner:hover {
  background: rgba(0, 183, 255, 0.28);
}

.hub-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem;
}

.hub-layout.hub-layout--tp {
  display: block;
  align-items: stretch;
  justify-content: flex-start;
}

.hub-page {
  width: 100%;
  max-width: 520px;
  padding: 1.75rem;
}

.hub-page__title {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.hub-page__subtitle {
  margin: 0 0 1.5rem;
}

.hub-section {
  margin-bottom: 1.5rem;
}

.hub-section:last-child {
  margin-bottom: 0;
}

.hub-section__title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.hub-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.hub-section__actions--grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.hub-section__actions a.btn {
  text-decoration: none;
}
