/* The packing queue shares the existing theme, auth and order editor. */
.page {
  max-width: 1120px;
  padding-top: 42px;
}
.hero {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  min-height: auto;
}
.hero:before,
.hero:after {
  display: none;
}
.hero .eyebrow {
  color: var(--muted);
}
.hero h1 {
  font-size: clamp(29px, 4vw, 40px);
  letter-spacing: -1.4px;
  margin-top: 8px;
}
.hero p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
}
.hero .secondary-button {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--control-text);
}
.stats {
  gap: 0;
  margin: 25px 0 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.stat {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  min-height: 0;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  padding: 16px 20px;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-value {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 23px;
  margin: 0;
}
.stat-label {
  align-self: end;
  font-size: 9px;
  letter-spacing: 0.55px;
}
.stat-foot {
  font-size: 10px;
  margin: 0;
}
.toolbar {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  margin: 26px 0 20px;
  flex-direction: column-reverse;
  align-items: stretch;
  gap: 17px;
}
.search {
  width: 100%;
  min-height: 48px;
  font-size: 14px;
  border-radius: 12px;
}
.filters {
  gap: 8px;
}
.filter-button {
  background: transparent;
  border-color: transparent;
  font-size: 12px;
  min-height: 40px;
  padding: 0 16px;
}
.filter-button.active {
  background: var(--panel);
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 2px 6px #23162706;
}
.table-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}
.table-summary {
  background: transparent;
  border: 0;
  padding: 0 2px 14px;
  min-height: 30px;
  font-size: 11px;
}
.table-summary strong {
  font-size: 12px;
}
.customer-queue {
  display: grid;
  gap: 14px;
}
.customer-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 3px 14px #21162a03;
}
.customer-toggle {
  width: 100%;
  min-height: 102px;
  display: grid;
  grid-template-columns: 48px minmax(140px, 1fr) minmax(150px, 0.8fr) auto 20px;
  align-items: center;
  gap: 17px;
  text-align: left;
  padding: 22px 26px;
  border: 0;
  background: transparent;
  color: var(--ink);
}
.customer-toggle:hover {
  background: var(--hover);
}
.customer-initials {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: var(--accent-text);
  background: var(--accent-soft);
  font-size: 15px;
  font-weight: 750;
}
.customer-identity strong {
  font-size: 17px;
  font-weight: 750;
  display: block;
}
.customer-identity > span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.customer-location {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.destination-badge {
  display: block;
  color: var(--accent-text);
  font-size: 11px;
  font-weight: 650;
}
.customer-oldest {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}
.customer-oldest span {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
.chevron {
  font-size: 24px;
  color: var(--muted);
  transition: transform 0.15s;
}
[aria-expanded="true"] .chevron {
  transform: rotate(180deg);
}
.customer-content {
  padding: 0 26px 22px;
}
.customer-content[hidden] {
  display: none;
}
.destination + .destination {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 28px;
}
.ship-address {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px 20px;
}
.section-kicker {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
  color: var(--muted);
  margin-bottom: 9px;
}
.ship-address strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}
.ship-address address {
  font-size: 13px;
  font-style: normal;
  line-height: 1.6;
  color: var(--control-text);
  white-space: normal;
  overflow-wrap: anywhere;
  user-select: text;
}
.copy-address {
  white-space: nowrap;
  font-size: 12px;
  min-height: 40px;
}
.destination-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0 0;
}
.packing-order {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.packing-choice {
  align-self: start;
  padding-top: 18px;
}
.packing-choice input {
  width: 19px;
  height: 19px;
  margin: 0;
  accent-color: var(--coral);
  cursor: pointer;
}
.packing-items {
  min-width: 0;
}
.packing-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 5px;
}
.packing-item + .packing-item {
  margin-top: 12px;
}
.reward-photo {
  width: 60px;
  height: 66px;
  flex: 0 0 60px;
  object-fit: contain;
  border-radius: 9px;
  background: #f7f6f6;
}
.reward-placeholder {
  display: grid;
  place-items: center;
  font-size: 13px;
  color: #79707c;
  font-weight: 700;
}
.reward-photo[hidden] {
  display: none;
}
.packing-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.packing-item span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
}
.order-meta {
  font-size: 10px;
  color: var(--muted);
  margin: 3px 0 0 76px;
  line-height: 1.6;
}
.order-tools {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  gap: 10px;
}
.order-tools .row-button {
  font-size: 11px;
  min-height: 36px;
}
.parcel-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px 20px;
  align-items: end;
  padding-top: 20px;
}
.selection-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 650;
}
.selection-copy span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.text-button {
  background: transparent;
  border: 0;
  color: var(--accent-text);
  min-height: 36px;
  font-weight: 650;
  font-size: 12px;
}
.parcel-tracking-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 650;
}
.parcel-tracking {
  display: block;
  margin-top: 7px;
  min-height: 46px;
  font-size: 13px;
}
.review-parcel {
  min-height: 46px;
  padding: 0 22px;
  background: #ff4778;
  color: #251321;
  font-size: 12px;
}
.parcel-inline-error {
  grid-column: 1 / -1;
  color: var(--danger);
  font-size: 12px;
  margin: 0;
}
.parcel-inline-error:empty {
  display: none;
}
.pagination {
  margin-top: 18px;
  border: 0;
  background: transparent;
  padding: 10px 0;
}
#parcel-dialog h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 8px 0;
}
#parcel-summary {
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
#parcel-summary ul {
  padding-left: 20px;
}
#parcel-summary li {
  margin: 8px 0;
}
#parcel-summary .ship-address {
  margin: 18px 0;
}
#parcel-submit {
  background: #ff4778;
  color: #251321;
}
@media (max-width: 700px) {
  .page {
    padding-top: 24px;
  }
  .hero {
    align-items: start;
    gap: 18px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 13px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 13px;
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .stat-value {
    font-size: 20px;
  }
  .customer-toggle {
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    gap: 10px;
    padding: 18px 16px;
  }
  .customer-initials {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }
  .customer-identity strong {
    font-size: 15px;
  }
  .customer-location {
    grid-column: 2;
    font-size: 11px;
  }
  .customer-oldest {
    display: none;
  }
  .chevron {
    grid-column: 3;
    grid-row: 1;
  }
  .customer-content {
    padding: 0 14px 16px;
  }
  .ship-address {
    padding: 15px;
    gap: 12px;
    align-items: start;
    flex-wrap: wrap;
  }
  .copy-address {
    min-height: 40px;
  }
  .packing-order {
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
  }
  .packing-item {
    gap: 10px;
  }
  .packing-item strong {
    font-size: 12px;
  }
  .reward-photo {
    width: 44px;
    height: 52px;
    flex-basis: 44px;
  }
  .order-meta {
    margin-left: 0;
  }
  .order-tools {
    grid-column: 2;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .parcel-controls {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .parcel-tracking-label,
  .review-parcel {
    grid-column: 1 / -1;
  }
  .selection-copy strong {
    font-size: 12px;
  }
  .selection-copy span {
    font-size: 11px;
  }
  .table-summary {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .chevron {
    transition: none;
  }
}
/* Match the approved wide, calm packing workspace without hiding existing tools. */
body {
  background: var(--canvas);
}
.page {
  max-width: 1450px;
  padding-top: 28px;
}
.hero .eyebrow {
  display: none;
}
.hero h1 {
  margin-top: 0;
}
.fulfillment-totals {
  margin: 14px 0;
  color: var(--muted);
  font-size: 11px;
}
.fulfillment-totals summary {
  cursor: pointer;
  width: fit-content;
  padding: 4px 0;
}
.fulfillment-totals .stats {
  margin-top: 10px;
}
.toolbar {
  flex-direction: row;
  align-items: center;
  gap: 24px;
  margin: 16px 0;
}
.search {
  width: min(390px, 40%);
}
.customer-toggle {
  min-height: 82px;
  padding: 18px 26px;
}
.packing-order {
  padding: 12px 0;
}
.parcel-controls {
  grid-template-columns: minmax(240px, 1fr) auto minmax(240px, 1fr) auto;
  align-items: center;
  background: var(--raised);
  border-radius: 12px;
  padding: 16px 18px;
  margin-top: 16px;
}
.parcel-tracking-label {
  font-size: 10px;
}
.parcel-tracking {
  margin-top: 5px;
}
.review-parcel {
  background: #c92f60;
  color: #fff;
  box-shadow: none;
}
#parcel-submit {
  background: #c92f60;
  color: #fff;
}
@media (max-width: 1050px) {
  .toolbar {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
  }
  .search {
    width: 100%;
  }
  .parcel-controls {
    grid-template-columns: 1fr auto;
  }
}
@media (max-width: 700px) {
  .hero-actions {
    margin-top: 8px;
  }
  .customer-toggle {
    padding: 16px;
  }
  .parcel-controls {
    padding: 13px;
  }
  .parcel-tracking-label,
  .review-parcel {
    grid-column: 1 / -1;
  }
}
.icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
}
.icon-pin {
  --icon: url("./icons/map-pin.svg");
  color: var(--control-text);
  width: 24px;
  height: 24px;
  flex-basis: 24px;
  align-self: start;
  margin-top: 12px;
}
.icon-copy {
  --icon: url("./icons/copy.svg");
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 8px;
}
.icon-chevron {
  --icon: url("./icons/chevron-down.svg");
}
.address-content {
  flex: 1;
}
.customer-identity strong {
  font-size: 18px;
}
.customer-identity > span,
.customer-location {
  font-size: 13px;
}
.customer-oldest,
.customer-oldest span {
  font-size: 12px;
}
.ship-address strong {
  font-size: 16px;
}
.ship-address address {
  font-size: 15px;
}
.packing-item strong {
  font-size: 16px;
}
.packing-item span {
  font-size: 13px;
}
.ship-address {
  min-height: 124px;
}
@media (max-width: 700px) {
  .customer-identity strong {
    font-size: 16px;
  }
  .customer-identity > span,
  .customer-location {
    font-size: 12px;
  }
  .packing-item strong {
    font-size: 13px;
  }
  .packing-item span {
    font-size: 11px;
    line-height: 1.6;
  }
  .ship-address address {
    font-size: 14px;
  }
}
@media (max-width: 700px) {
  .topbar { position: relative; }
  .ship-address { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; }
  .ship-address .copy-address { grid-column: 2; justify-self: start; }
  .address-content { min-width: 0; }
}
