/* Pelican Loyalty v2.14.2: faster staff bookings and scan history. */

.staff-panel[data-staff-panel="scans"] .card-header {
  flex-wrap: wrap;
}

.staff-today-toggle {
  margin-left: auto;
  white-space: nowrap;
}

.staff-today-toggle.active {
  background: var(--ink);
  color: #fff;
}

.staff-today-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.staff-today-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.staff-today-head > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}

.staff-today-head strong,
.staff-today-head span {
  display: block;
}

.staff-today-head strong {
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.05;
}

.staff-today-head > div:first-child span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.soft-badge {
  background: var(--soft);
  color: var(--ink);
}

.today-scan-list {
  gap: 10px;
}

.today-scan-item {
  scroll-margin-top: 24px;
}

.today-scan-time {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
}

.staff-custom-drinks-form {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.staff-custom-drinks-form label {
  display: grid;
  gap: 5px;
}

.staff-custom-drinks-form label > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .04em;
  white-space: nowrap;
}

.staff-custom-drinks-form input {
  width: 104px;
  min-height: 40px;
  padding: 8px 11px;
  border-radius: 999px;
  text-align: center;
  font-weight: 850;
}

.staff-custom-drinks-form .btn {
  min-height: 40px;
  white-space: nowrap;
}

.legacy-recent-scans {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
}

.legacy-recent-head strong,
.legacy-recent-head span {
  display: block;
}

.legacy-recent-head strong {
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.05;
}

.legacy-recent-head span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.legacy-recent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.legacy-recent-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.legacy-recent-card:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.legacy-recent-card.selected {
  border-color: var(--ink);
  box-shadow: 0 0 0 2px var(--ink) inset;
}

.legacy-recent-card span,
.legacy-recent-card b,
.legacy-recent-card small {
  display: block;
  min-width: 0;
}

.legacy-recent-card b {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legacy-recent-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .05em;
}

.legacy-recent-card em {
  flex: 0 0 auto;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.legacy-recent-empty {
  margin-top: 12px;
  font-size: 13px;
}

@media (max-width: 920px) {
  .staff-today-toggle {
    order: 2;
    width: 100%;
    margin-top: 10px;
  }

  .staff-today-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .staff-today-head > div:last-child {
    width: 100%;
    justify-content: space-between;
  }

  .staff-custom-drinks-form {
    width: 100%;
    margin: 4px 0 0;
    padding: 10px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .staff-custom-drinks-form label {
    flex: 1 1 auto;
  }

  .staff-custom-drinks-form input {
    width: 100%;
  }
}

@media (max-width: 620px) {
  .legacy-recent-grid {
    grid-template-columns: 1fr;
  }
}
