#belair-linen-rejects-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147480400;
  overflow: auto;
  background: #f2f6f3;
  color: #243c33;
}

#belair-linen-rejects-root.active {
  display: block;
}

.linen-reject-shell {
  width: min(1200px,100%);
  box-sizing: border-box;
  min-height: 100%;
  margin: 0 auto;
  padding: 28px 30px 70px;
}

.linen-reject-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.linen-reject-head h1 {
  margin: 4px 0 5px;
  color: #183e33;
  font-size: 2rem;
}

.linen-reject-head p,
.linen-reject-section-head p {
  margin: 0;
  color: #66776f;
  line-height: 1.5;
}

.linen-reject-kicker {
  display: block;
  color: #277157;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.linen-reject-head-actions,
.linen-reject-register-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.linen-reject-btn {
  border: 1px solid #c8d7cf;
  border-radius: 10px;
  background: #fff;
  color: #315649;
  padding: 9px 12px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.linen-reject-btn:hover,
.linen-reject-btn.active {
  border-color: #267154;
  background: #e8f4ed;
  color: #145d40;
}

.linen-reject-btn.primary {
  border-color: #1e684c;
  background: #1e684c;
  color: #fff;
}

.linen-reject-btn.primary:hover {
  background: #155139;
}

.linen-reject-btn.large {
  min-height: 50px;
  padding: 13px 18px;
}

.linen-reject-btn.small {
  padding: 7px 10px;
  font-size: .78rem;
}

.linen-reject-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.linen-reject-alert {
  border: 1px solid #acd0ba;
  border-radius: 12px;
  background: #ebf8ef;
  color: #1c6548;
  padding: 12px 14px;
  margin-bottom: 15px;
  font-weight: 800;
}

.linen-reject-alert.error {
  border-color: #e2aaa5;
  background: #fff0ee;
  color: #96352e;
}

.linen-reject-entry,
.linen-reject-register,
.linen-reject-notifications {
  border: 1px solid #d5dfda;
  border-radius: 17px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 8px 28px rgba(26,63,49,.06);
}

.linen-reject-notifications {
  border-left: 6px solid #d48728;
  margin-bottom: 16px;
  background: #fffbf4;
}

.linen-reject-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.linen-reject-section-head h2 {
  margin: 4px 0 5px;
  color: #20483b;
}

.linen-reject-live-total {
  min-width: 120px;
  border: 1px solid #acd0bb;
  border-radius: 13px;
  background: #edf8f1;
  padding: 11px 14px;
  text-align: center;
}

.linen-reject-live-total span {
  display: block;
  color: #65786f;
  font-size: .74rem;
  font-weight: 800;
}

.linen-reject-live-total strong {
  display: block;
  color: #175f43;
  font-size: 1.8rem;
}

.linen-reject-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.linen-reject-input-card {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) 90px;
  align-items: center;
  gap: 12px;
  border: 2px solid #d6dfda;
  border-radius: 14px;
  background: #fbfcfb;
  padding: 13px;
}

.linen-reject-input-card:focus-within {
  border-color: #328061;
  background: #f3faf6;
  box-shadow: 0 0 0 3px rgba(50,128,97,.1);
}

.linen-reject-item-number {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #e4eee8;
  color: #2b604e;
  font-weight: 900;
}

.linen-reject-item-copy strong,
.linen-reject-item-copy small {
  display: block;
}

.linen-reject-item-copy strong {
  color: #294b3f;
}

.linen-reject-item-copy small {
  margin-top: 2px;
  color: #73817a;
  font-size: .74rem;
}

.linen-reject-input-card input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 2px solid #9fb5aa;
  border-radius: 10px;
  background: #fff;
  color: #173f33;
  padding: 7px 9px;
  text-align: center;
  font: inherit;
  font-size: 1.17rem;
  font-weight: 900;
}

.linen-reject-notes {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
  color: #39564b;
  font-weight: 800;
}

.linen-reject-notes textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cbd8d1;
  border-radius: 11px;
  padding: 11px;
  font: inherit;
}

.linen-reject-save-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #b8d3c4;
  border-radius: 14px;
  background: #edf6f1;
  padding: 16px;
  margin-top: 15px;
}

.linen-reject-save-bar span,
.linen-reject-save-bar strong {
  display: block;
}

.linen-reject-save-bar span {
  color: #6b7b73;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.linen-reject-save-bar strong {
  margin-top: 3px;
  color: #2c5244;
}

.linen-reject-count,
.linen-reject-total-badge {
  display: inline-flex;
  border-radius: 999px;
  background: #e1f1e7;
  color: #206448;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 900;
}

.linen-reject-notification-list {
  display: grid;
  gap: 9px;
}

.linen-reject-notification-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #e5d1ae;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.linen-reject-notification-list strong,
.linen-reject-notification-list small {
  display: block;
}

.linen-reject-notification-list p {
  margin: 4px 0;
  color: #5c6f66;
}

.linen-reject-notification-list small {
  color: #7b8882;
}

.linen-reject-metrics {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 11px;
  margin-bottom: 14px;
}

.linen-reject-metrics article {
  border: 1px solid #d9e1dd;
  border-radius: 13px;
  background: #f8faf9;
  padding: 13px;
}

.linen-reject-metrics span {
  display: block;
  color: #718078;
  font-size: .74rem;
  font-weight: 800;
}

.linen-reject-metrics strong {
  display: block;
  margin-top: 4px;
  color: #234a3d;
  font-size: 1.35rem;
}

.linen-reject-history-list {
  display: grid;
  gap: 11px;
}

.linen-reject-history-card {
  border: 1px solid #d7e1db;
  border-left: 5px solid #31775b;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}

.linen-reject-history-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
}

.linen-reject-history-card h3 {
  margin: 3px 0;
  color: #294b3f;
  font-size: 1rem;
}

.linen-reject-history-card p {
  margin: 0;
  color: #6a7972;
  font-size: .8rem;
}

.linen-reject-item-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.linen-reject-item-list span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: #edf4f0;
  color: #3b584d;
  padding: 6px 9px;
  font-size: .78rem;
}

.linen-reject-item-list strong {
  color: #176044;
}

.linen-reject-history-notes {
  border-left: 3px solid #b9cbc1;
  margin-top: 11px;
  padding-left: 9px;
  color: #5b6d64;
  font-size: .8rem;
}

.linen-reject-empty {
  border: 1px dashed #b6c7be;
  border-radius: 14px;
  background: #fafcfb;
  padding: 30px;
  text-align: center;
  color: #697a72;
}

.linen-reject-loading {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #335548;
  font-weight: 850;
}

.linen-reject-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #cbd8d2;
  border-top-color: #257054;
  border-radius: 50%;
  animation: linen-reject-spin .8s linear infinite;
}

@keyframes linen-reject-spin {
  to {
    transform: rotate(360deg);
  }
}

.linen-reject-toast {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 2147480800;
  width: min(430px,calc(100vw - 36px));
  display: grid;
  grid-template-columns: 36px minmax(0,1fr);
  align-items: flex-start;
  gap: 9px;
  border: 0;
  border-radius: 13px;
  background: #1c5e47;
  color: #fff;
  padding: 13px;
  text-align: left;
  box-shadow: 0 16px 45px rgba(0,0,0,.28);
  cursor: pointer;
}

.linen-reject-toast > span:first-child {
  font-size: 1.35rem;
}

.linen-reject-toast strong,
.linen-reject-toast small {
  display: block;
}

.linen-reject-toast small {
  margin-top: 3px;
  color: #e7f2ec;
  line-height: 1.4;
}

@media (max-width:900px) {
  #belair-linen-rejects-root {
    bottom: calc(
      var(--belair-mobile-nav-height,76px) +
      env(safe-area-inset-bottom)
    );
  }

  .linen-reject-shell {
    padding: 20px 16px 45px;
  }

  .linen-reject-head,
  .linen-reject-section-head,
  .linen-reject-save-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .linen-reject-head-actions {
    justify-content: flex-start;
  }

  .linen-reject-grid {
    grid-template-columns: 1fr;
  }

  .linen-reject-save-bar .linen-reject-btn {
    width: 100%;
  }
}

@media (max-width:600px) {
  .linen-reject-entry,
  .linen-reject-register,
  .linen-reject-notifications {
    border-radius: 14px;
    padding: 14px;
  }

  .linen-reject-input-card {
    grid-template-columns: 34px minmax(0,1fr) 72px;
    padding: 11px;
  }

  .linen-reject-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .linen-reject-metrics article:last-child {
    grid-column: 1/-1;
  }

  .linen-reject-notification-list article {
    align-items: flex-start;
    flex-direction: column;
  }

  .linen-reject-notification-list .linen-reject-btn {
    width: 100%;
  }
}

@media print {
  body > *:not(#belair-linen-rejects-root) {
    display: none !important;
  }

  #belair-linen-rejects-root {
    display: block !important;
    position: static;
    background: #fff;
  }

  .linen-reject-head-actions,
  .linen-reject-register-actions,
  .linen-reject-notifications {
    display: none !important;
  }

  .linen-reject-shell {
    padding: 0;
  }

  .linen-reject-history-card {
    break-inside: avoid;
  }
}
