/* =========================================================================
   Staff fulfilment — tablet first, desktop friendly.
   Operational density: large targets, one obvious action per card, nothing
   decorative. Deliberately not the customer POS.
   ========================================================================= */

.staff {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--shelf);
}

/* ------------------------------------------------------------ staff login */
.staff-login {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s5);
  background: var(--ink);
}
.staff-login__card {
  width: min(420px, 100%);
  padding: var(--s6);
  background: var(--surface);
  border-radius: var(--r-lg);
}
.staff-login__brand {
  font-variation-settings: "wdth" 112, "wght" 800;
  font-size: var(--text-xl);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.staff-login__sub {
  margin: 2px 0 var(--s5);
  color: var(--ink-60);
  font-size: var(--text-md);
}

/* -------------------------------------------------------------- staff bar */
.staff-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s3);
  min-height: 64px;
  padding: var(--s3) var(--s4);
  background: var(--bottle);
  color: #fff;
}
.staff-bar__title {
  font-variation-settings: "wdth" 108, "wght" 800;
  font-size: var(--text-lg);
  letter-spacing: 0.02em;
  line-height: 1.15;
}
.staff-bar__where {
  display: block;
  margin-top: 3px;
  font-size: var(--text-xs);
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0;
}
.staff-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  min-height: 40px;
  padding: 0 var(--s3);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--r-md);
  background: transparent;
  color: #fff;
  font-size: var(--text-md);
  font-weight: 600;
}
.staff-bar__btn:hover {
  background: rgba(255, 255, 255, 0.14);
}
.staff-bar__btn--solid {
  background: var(--ticket);
  border-color: var(--ticket);
  color: var(--ink);
}
.staff-bar__btn--solid:hover {
  background: var(--ticket-deep);
}
/* On a phone the bar keeps the icon and drops the label. */
@media (max-width: 560px) {
  .staff-bar__label {
    display: none;
  }
  .staff-bar__title {
    font-size: var(--text-md);
    white-space: nowrap;
  }
}

.staff-bar__user {
  display: none;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
}
@media (min-width: 760px) {
  .staff-bar__user {
    display: block;
  }
}

/* ------------------------------------------------------------ staff tools */
.staff-tools {
  display: flex;
  align-items: center;
  gap: var(--s3);
  flex-wrap: wrap;
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.staff-tools__search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 380px;
}
.staff-tools__search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-40);
  pointer-events: none;
}
.staff-tools__search input {
  width: 100%;
  min-height: 40px;
  padding: 0 var(--s3) 0 36px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}

/* ----------------------------------------------------------- queue board */
.board {
  flex: 1;
  padding: var(--s4);
}
.board__cols {
  display: grid;
  gap: var(--s4);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .board__cols {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.board__tabs {
  margin-bottom: var(--s4);
}
@media (min-width: 900px) {
  .board__tabs {
    display: none;
  }
}
.board__col {
  background: var(--surface-sunk);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 899px) {
  .board__col {
    display: none;
  }
  .board__col.is-visible {
    display: block;
  }
}
.board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.board__name {
  font-variation-settings: "wdth" 108, "wght" 800;
  font-size: var(--text-2xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.board__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
}
.board__col--new .board__n {
  background: var(--ticket);
  color: var(--ink);
}
.board__list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  padding: var(--s3);
  min-height: 120px;
  max-height: calc(100dvh - 260px);
  overflow-y: auto;
}

/* -------------------------------------------------------------- job card */
.job {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--rule-strong);
  border-radius: var(--r-md);
  padding: var(--s3);
}
.job--new {
  border-left-color: var(--ticket);
}
.job--preparing {
  border-left-color: var(--info);
}
.job--ready {
  border-left-color: var(--bottle);
}
.job--done {
  border-left-color: var(--rule-strong);
  opacity: 0.86;
}
.job__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
}
.job__no {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
}
.job__age {
  font-size: var(--text-xs);
  color: var(--ink-60);
  white-space: nowrap;
}
.job__age--late {
  color: var(--alert);
  font-weight: 700;
}
.job__meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s2);
  margin-top: 2px;
  font-size: var(--text-sm);
  color: var(--ink-60);
}
.job__who {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job__total {
  font-variation-settings: "wdth" 106, "wght" 800;
  font-size: var(--text-lg);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.job__items {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  margin: var(--s3) 0;
  padding: var(--s3);
  background: var(--surface-sunk);
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
  line-height: 1.4;
}
.job__items li {
  display: flex;
  gap: var(--s2);
}
.job__items b {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--ink-60);
}
/* Name and size are separate lines — run together they wrap mid-measure
   ("Mill Street Session Ale 4" / "× 500 ml cans"). */
.job__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.job__item-size {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-60);
}
.job__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.job__actions {
  display: flex;
  gap: var(--s2);
}
.job__actions .btn {
  flex: 1;
  min-width: 0;
  padding-inline: var(--s2);
  overflow: hidden;
}

/* --------------------------------------------------------- order detail */
.staff-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: var(--s5) var(--s4) var(--s16);
}
.staff-detail__grid {
  display: grid;
  gap: var(--s4);
}
@media (min-width: 760px) {
  .staff-detail__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
}
.pick-list {
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pick-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) var(--s4);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.pick-row:last-child {
  border-bottom: 0;
}
.pick-row__qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
}
.pick-row__name {
  font-weight: 650;
  line-height: 1.3;
}
.pick-row__meta {
  margin-top: var(--s1);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  line-height: 1.35;
  color: var(--ink-60);
}

/* verify collection */
.verify-code {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
  background: var(--surface-sunk);
  border-radius: var(--r-md);
  margin-bottom: var(--s4);
}
.verify-code__value {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.code-input {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--s4);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-md);
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
