/* Christmas Lights storage registry and legacy-bin relabel queue. */

.christmas-storage-contents {
  grid-column: 1 / -1;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d4e3df;
  border-radius: 8px;
  background: #f4faf7;
  color: #183e32;
  overflow-wrap: anywhere;
}

.christmas-storage-contents p {
  margin: 6px 0;
  font-size: 12px;
  line-height: 1.5;
}

.christmas-storage-contents ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.christmas-storage-contents li {
  display: grid;
  gap: 3px;
  font-size: 13px;
  white-space: pre-wrap;
}

.christmas-storage-relabel {
  display: grid;
  gap: 12px;
  width: min(760px, 100%);
  min-width: 0;
  margin-inline: auto;
  padding-bottom: max(22px, var(--safe-bottom, 0px));
}

.christmas-storage-relabel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line, #d7e1e4);
  padding-bottom: 12px;
}

.christmas-storage-relabel-head > div {
  min-width: 0;
}

.christmas-storage-relabel-head span,
.christmas-storage-relabel-head h3,
.christmas-storage-relabel-head p {
  margin: 0;
}

.christmas-storage-relabel-head > div > span {
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.christmas-storage-relabel-head h3 {
  margin-top: 2px;
  color: #10354b;
  font-size: clamp(20px, 4vw, 27px);
  line-height: 1.1;
}

.christmas-storage-relabel-head p {
  margin-top: 4px;
  color: #61717b;
  font-size: 13px;
  line-height: 1.4;
}

.christmas-storage-relabel-head .button {
  min-height: 44px;
  white-space: nowrap;
}

.christmas-storage-relabel-head-actions {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.christmas-storage-relabel-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #cbdade;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.christmas-storage-relabel-summary > span {
  display: grid;
  place-items: center;
  gap: 2px;
  min-width: 0;
  min-height: 68px;
  padding: 9px 6px;
  text-align: center;
}

.christmas-storage-relabel-summary > span + span {
  border-left: 1px solid #dce6e8;
}

.christmas-storage-relabel-summary strong {
  color: #10354b;
  font-size: 23px;
  line-height: 1;
}

.christmas-storage-relabel-summary small {
  color: #61717b;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

.christmas-storage-relabel-summary .needs-review strong {
  color: #a15c00;
}

.christmas-storage-relabel-summary.is-ready {
  border-color: #9ed7c7;
  background: #edf9f5;
}

.christmas-storage-relabel-review {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 1px solid #e5c679;
  border-radius: 8px;
  padding: 9px 10px;
  color: #684408;
  background: #fff8e6;
  text-align: left;
}

.christmas-storage-relabel-review > svg {
  width: 19px;
  height: 19px;
  margin-top: 2px;
}

.christmas-storage-relabel-review > div,
.christmas-storage-relabel-review > div > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.christmas-storage-relabel-review strong,
.christmas-storage-relabel-review em {
  font-size: 12px;
  font-style: normal;
}

.christmas-storage-relabel-review em {
  color: #7a6336;
  font-size: 11px;
}

.christmas-storage-relabel-review-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.christmas-storage-relabel-review-list li {
  border-top: 1px solid rgba(118, 80, 10, 0.18);
}

.christmas-storage-review-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(160px, 0.8fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 68px;
  border: 0;
  padding: 8px 4px;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.christmas-storage-review-row:hover,
.christmas-storage-review-row:focus-visible,
.christmas-storage-review-row.is-selected {
  border-radius: 6px;
  outline: 0;
  background: rgba(229, 198, 121, 0.24);
}

.christmas-storage-review-row > span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.christmas-storage-review-row > span:last-child {
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
}

.christmas-storage-review-row strong,
.christmas-storage-review-row em,
.christmas-storage-review-row small,
.christmas-storage-relabel-review-note {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.christmas-storage-review-row strong {
  color: #4f3509;
  font-size: 13px;
}

.christmas-storage-review-row em,
.christmas-storage-review-row small,
.christmas-storage-relabel-review-note {
  color: #7a6336;
  font-style: normal;
}

.christmas-storage-review-row > span:first-child small {
  font-weight: 900;
  text-transform: uppercase;
}

.christmas-storage-review-row svg {
  width: 16px;
  height: 16px;
}

.christmas-storage-relabel-review-note {
  margin-top: 7px;
}

.christmas-storage-review-detail {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin-top: 10px;
  border: 1px solid #d9ad43;
  border-radius: 8px;
  padding: 12px;
  color: #425466;
  background: #fff;
}

.christmas-storage-review-detail > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: start;
}

.christmas-storage-review-detail > header > div,
.christmas-storage-review-reason,
.christmas-storage-review-next {
  display: grid;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.christmas-storage-review-detail > header small {
  color: #a15c00;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.christmas-storage-review-detail > header strong {
  color: #10354b;
  font-size: 17px;
}

.christmas-storage-review-detail > header strong,
.christmas-storage-review-detail > header span,
.christmas-storage-review-reason span,
.christmas-storage-review-next p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.4;
}

.christmas-storage-review-detail > header button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  color: #52656f;
  background: #eef4f5;
  cursor: pointer;
}

.christmas-storage-review-detail > header svg {
  width: 18px;
  height: 18px;
}

.christmas-storage-review-reason,
.christmas-storage-review-next {
  border-radius: 7px;
  padding: 9px 10px;
  background: #f5f8f8;
}

.christmas-storage-review-next {
  background: #fff8e6;
}

.christmas-storage-review-detail form {
  display: grid;
  gap: 10px;
  border-top: 1px solid #e0e9eb;
  padding-top: 10px;
}

.christmas-crate-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.christmas-crate-search label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line, #d7e1e4);
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
}

.christmas-crate-search svg {
  width: 18px;
  height: 18px;
  color: #61717b;
}

.christmas-crate-search input {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}

.christmas-crate-paging {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  border-top: 1px solid var(--line, #d7e1e4);
  padding-top: 10px;
}

.christmas-crate-paging > span {
  color: #61717b;
  font-size: 12px;
  font-weight: 800;
}

.christmas-crate-paging > div {
  display: flex;
  gap: 8px;
}

.christmas-crate-paging .button {
  min-height: 46px;
}

.christmas-crate-label-batch-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.christmas-crate-label-batch-fields label {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #52656f;
  font-size: 12px;
  font-weight: 800;
}

.christmas-crate-label-batch-fields input,
.christmas-crate-label-batch-fields select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line, #cbdade);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  font: inherit;
}

.christmas-storage-relabel-active {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  border: 1px solid #91c9bc;
  border-top: 5px solid #0f766e;
  border-radius: 9px;
  padding: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 53, 75, 0.09);
}

.christmas-storage-old-bin {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  min-height: 92px;
  border-radius: 8px;
  color: #fff;
  background: #10354b;
}

.christmas-storage-old-bin span {
  color: #b9d3dc;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.christmas-storage-old-bin strong {
  max-width: 100%;
  overflow: hidden;
  padding-inline: 5px;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1;
  text-overflow: ellipsis;
}

.christmas-storage-relabel-identity {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
}

.christmas-storage-relabel-identity strong,
.christmas-storage-relabel-identity span,
.christmas-storage-relabel-identity small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.christmas-storage-relabel-identity strong {
  color: #10354b;
  font-size: 18px;
}

.christmas-storage-relabel-identity span {
  color: #425466;
  font-size: 13px;
  line-height: 1.35;
}

.christmas-storage-relabel-identity small {
  color: #71828b;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.christmas-storage-relabel-active form {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
  border-top: 1px solid #e0e9eb;
  padding-top: 12px;
}

.christmas-storage-new-tag {
  display: grid;
  gap: 5px;
}

.christmas-storage-new-tag > span {
  color: #52656f;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.christmas-storage-new-tag input,
.christmas-storage-new-tag select {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  border: 2px solid #9fbfc5;
  border-radius: 8px;
  padding: 8px 12px;
  color: #10354b;
  background: #fff;
  font: inherit;
  font-size: 24px;
  font-weight: 950;
  text-transform: uppercase;
}

.christmas-storage-new-tag input:focus,
.christmas-storage-new-tag select:focus {
  border-color: #0f766e;
  outline: 3px solid rgba(15, 118, 110, 0.15);
}

.christmas-storage-relabel-confirm {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  border: 1px solid #e5c679;
  border-radius: 8px;
  padding: 11px;
  color: #563f13;
  background: #fff9e8;
  font-size: 13px;
  line-height: 1.35;
}

.christmas-storage-relabel-confirm input {
  width: 20px;
  height: 20px;
  margin: 0;
}

.christmas-storage-relabel-confirm strong {
  color: #10354b;
  font-weight: 950;
}

.christmas-storage-relabel-active .form-status,
.christmas-storage-review-detail .form-status {
  min-height: 18px;
  margin: 0;
  color: #a21d35;
  font-size: 12px;
  font-weight: 800;
}

.christmas-storage-relabel-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 8px;
}

.christmas-storage-relabel-actions .button {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  white-space: normal;
}

.christmas-storage-relabel-readonly {
  display: flex;
  grid-column: 1 / -1;
  gap: 8px;
  align-items: center;
  margin: 0;
  border-top: 1px solid #e0e9eb;
  padding-top: 12px;
  color: #6b4b0a;
  font-size: 13px;
}

.christmas-storage-relabel-upcoming {
  display: grid;
  min-width: 0;
  border: 1px solid #d3e0e3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.christmas-storage-relabel-upcoming > header {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 11px;
  background: #edf4f5;
}

.christmas-storage-relabel-upcoming > header > div {
  display: flex;
  gap: 7px;
  align-items: baseline;
  min-width: 0;
}

.christmas-storage-relabel-upcoming h4,
.christmas-storage-relabel-upcoming header span,
.christmas-storage-relabel-upcoming header small {
  margin: 0;
}

.christmas-storage-relabel-upcoming h4 {
  color: #10354b;
  font-size: 14px;
}

.christmas-storage-relabel-upcoming header span,
.christmas-storage-relabel-upcoming header small {
  color: #61717b;
  font-size: 11px;
  font-weight: 800;
}

.christmas-storage-relabel-upcoming-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 18px;
  gap: 9px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  border: 0;
  border-top: 1px solid #e2eaec;
  padding: 7px 10px;
  color: #10354b;
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.christmas-storage-relabel-upcoming-row:hover,
.christmas-storage-relabel-upcoming-row:focus-visible {
  background: #f2f9f8;
}

.christmas-storage-relabel-upcoming-row > span:first-child {
  display: grid;
  place-items: center;
  align-content: center;
  width: 48px;
  height: 42px;
  border-radius: 6px;
  color: #fff;
  background: #284e61;
}

.christmas-storage-relabel-upcoming-row > span:first-child small {
  color: #bdd0d8;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.christmas-storage-relabel-upcoming-row > span:first-child strong {
  font-size: 17px;
  line-height: 1.15;
}

.christmas-storage-relabel-upcoming-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.christmas-storage-relabel-upcoming-row > span:nth-child(2) strong,
.christmas-storage-relabel-upcoming-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.christmas-storage-relabel-upcoming-row > span:nth-child(2) strong {
  font-size: 13px;
}

.christmas-storage-relabel-upcoming-row em {
  color: #61717b;
  font-size: 11px;
  font-style: normal;
}

.christmas-storage-relabel-upcoming-row.is-skipped {
  opacity: 0.64;
}

.christmas-storage-relabel-upcoming-row > small {
  color: #8a5a08;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.christmas-storage-relabel-paging {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.christmas-storage-relabel-paging .button {
  min-height: 46px;
}

.christmas-storage-relabel-refresh {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-self: center;
  min-height: 44px;
  border: 0;
  padding: 6px 10px;
  color: #0f766e;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.christmas-storage-relabel-refresh svg {
  width: 15px;
  height: 15px;
}

.christmas-storage-relabel-loading,
.christmas-storage-relabel-load-error,
.christmas-storage-relabel-blocked,
.christmas-storage-relabel-complete {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  min-height: 250px;
  border: 1px solid #d3e0e3;
  border-radius: 9px;
  padding: 24px;
  color: #61717b;
  background: #fff;
  text-align: center;
}

.christmas-storage-relabel-loading p,
.christmas-storage-relabel-load-error p,
.christmas-storage-relabel-blocked p,
.christmas-storage-relabel-complete p {
  max-width: 460px;
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
}

.christmas-storage-relabel-load-error > svg,
.christmas-storage-relabel-blocked > svg,
.christmas-storage-relabel-complete > svg {
  width: 38px;
  height: 38px;
  color: #0f766e;
}

.christmas-storage-relabel-load-error > svg {
  color: #a15c00;
}

.christmas-storage-relabel-load-error strong,
.christmas-storage-relabel-blocked strong,
.christmas-storage-relabel-complete strong {
  color: #10354b;
  font-size: 18px;
}

.christmas-storage-relabel-complete {
  border-color: #9ed7c7;
  background: #effaf6;
}

.christmas-storage-relabel-complete .button,
.christmas-storage-relabel-load-error .button {
  min-height: 48px;
  margin-top: 5px;
}

@media (max-width: 620px) {
  .christmas-storage-relabel {
    gap: 10px;
    width: 100%;
  }

  .christmas-storage-relabel-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .christmas-storage-relabel-head p {
    display: none;
  }

  .christmas-storage-relabel-head .button {
    width: 44px;
    min-width: 44px;
    padding: 0;
  }

  .christmas-storage-relabel-head .button span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .christmas-storage-relabel-head-actions {
    gap: 5px;
  }

  .christmas-storage-relabel-summary > span {
    min-height: 62px;
    padding-inline: 4px;
  }

  .christmas-storage-relabel-summary strong {
    font-size: 21px;
  }

  .christmas-storage-review-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .christmas-storage-relabel-active {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 10px;
    padding: 11px;
  }

  .christmas-storage-old-bin {
    min-height: 84px;
  }

  .christmas-storage-relabel-identity strong {
    font-size: 16px;
  }

  .christmas-storage-relabel-actions {
    grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
  }

  .christmas-storage-relabel-upcoming-row {
    grid-template-columns: 52px minmax(0, 1fr) 16px;
    padding-inline: 8px;
  }

  .christmas-storage-relabel-loading,
  .christmas-storage-relabel-load-error,
  .christmas-storage-relabel-blocked,
  .christmas-storage-relabel-complete {
    min-height: 220px;
    padding: 18px;
  }

  .christmas-crate-label-batch-fields {
    grid-template-columns: 1fr;
  }

  .christmas-crate-sheet-head {
    grid-template-columns: 58px minmax(0, 1fr) 44px;
    min-width: 0;
  }

  .christmas-crate-sheet.is-inline .christmas-crate-sheet-head {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .christmas-crate-sheet-head > div,
  .christmas-crate-assignment,
  .christmas-crate-assignment > span,
  .christmas-crate-last-move,
  .christmas-crate-last-move > span,
  .christmas-crate-sheet form,
  .christmas-crate-sheet form > label {
    min-width: 0;
  }

  .christmas-crate-last-move > span {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .christmas-crate-sheet-head p,
  .christmas-crate-sheet-head h2,
  .christmas-crate-assignment strong,
  .christmas-crate-assignment em,
  .christmas-crate-last-move strong,
  .christmas-crate-last-move em,
  .christmas-crate-sheet form label > span {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .christmas-crate-sheet input,
  .christmas-crate-sheet select {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 390px) {
  .christmas-storage-relabel-actions {
    grid-template-columns: 1fr;
  }

  .christmas-storage-relabel-actions .button.primary {
    grid-row: 1;
  }

  .christmas-crate-search,
  .christmas-crate-paging {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .christmas-crate-paging {
    display: grid;
  }

  .christmas-crate-paging > div,
  .christmas-crate-paging .button {
    width: 100%;
  }
}
