#belair-bin-collection-root {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147480400;
  overflow: auto;
  background: #f2f6f3;
  color: #253d34;
}

#belair-bin-collection-root.active {
  display: block;
}

.bin-count-shell {
  min-height: 100%;
  box-sizing: border-box;
  padding: 28px 34px 70px;
}

.bin-count-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto 20px;
}

.bin-count-head h1 {
  margin: 4px 0 5px;
  font-size: 2rem;
  color: #173f34;
}

.bin-count-head p,
.bin-count-section-head p,
.bin-count-history-tools p {
  margin: 0;
  color: #64766d;
  line-height: 1.5;
}

.bin-count-kicker,
.bin-count-home-kicker {
  display: block;
  color: #2a7358;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bin-count-head-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bin-count-btn {
  border: 1px solid #c7d5cd;
  border-radius: 10px;
  background: #fff;
  color: #315548;
  padding: 9px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bin-count-btn:hover,
.bin-count-btn.active {
  border-color: #257253;
  background: #e6f3eb;
  color: #165d42;
}

.bin-count-btn.primary {
  border-color: #1f684d;
  background: #1f684d;
  color: #fff;
}

.bin-count-btn.primary:hover {
  background: #17523d;
}

.bin-count-btn.large {
  min-height: 48px;
  padding: 12px 18px;
}

.bin-count-btn.small {
  padding: 7px 10px;
  font-size: .83rem;
}

.bin-count-alert {
  max-width: 1240px;
  margin: 0 auto 15px;
  border: 1px solid #a8cfb7;
  border-radius: 12px;
  background: #eaf7ef;
  color: #1e6549;
  padding: 12px 14px;
  font-weight: 750;
}

.bin-count-alert.error {
  border-color: #e1aaa3;
  background: #fff0ed;
  color: #96352e;
}

.bin-count-hero {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid #cad8d0;
  border-left: 6px solid #d18a35;
  border-radius: 17px;
  background: #fff;
  padding: 20px 22px;
  box-shadow: 0 7px 24px rgba(23,63,52,.06);
}

.bin-count-hero.confirmed {
  border-left-color: #267758;
  background: #f7fcf8;
}

.bin-count-hero h2 {
  margin: 4px 0 5px;
  color: #173f34;
}

.bin-count-hero p {
  margin: 0;
  color: #62736b;
}

.bin-count-status {
  display: inline-flex;
  border-radius: 999px;
  background: #ffead2;
  color: #8a4d0d;
  padding: 7px 11px;
  font-size: .78rem;
  font-weight: 900;
}

.bin-count-status.confirmed {
  background: #dff3e7;
  color: #176246;
}

.bin-count-summary {
  max-width: 1240px;
  margin: 15px auto 25px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 12px;
}

.bin-count-summary article {
  border: 1px solid #d6dfda;
  border-radius: 15px;
  background: #fff;
  padding: 16px;
}

.bin-count-summary article.total {
  border-top: 4px solid #276f54;
}

.bin-count-summary span {
  display: block;
  color: #687971;
  font-size: .82rem;
  font-weight: 800;
}

.bin-count-summary strong {
  display: block;
  margin-top: 5px;
  color: #173f34;
  font-size: 2rem;
}

.bin-count-summary small {
  color: #718078;
  font-size: .84rem;
}

.bin-count-selection {
  max-width: 1240px;
  margin: 0 auto;
}

.bin-count-section-head,
.bin-count-history-tools {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 13px;
}

.bin-count-section-head h3,
.bin-count-history-tools h2 {
  margin: 0 0 4px;
  color: #21483b;
}

.bin-count-last-save {
  max-width: 330px;
  color: #6d7c75;
  font-size: .76rem;
  text-align: right;
}

.bin-count-last-save strong {
  color: #315548;
}

.bin-count-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.bin-count-control {
  display: grid;
  grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center;
  gap: 14px;
  border: 2px solid #d3ddd7;
  border-radius: 16px;
  background: #fff;
  padding: 17px;
  cursor: pointer;
  transition: .15s ease;
}

.bin-count-control:hover {
  border-color: #9fbdab;
}

.bin-count-control.general {
  border-left: 6px solid #5c6a64;
}

.bin-count-control.binary.selected {
  border-color: #2c775a;
  background: #edf8f1;
}

.bin-count-control-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #eef3f0;
  font-size: 1.25rem;
}

.bin-count-control-copy {
  min-width: 0;
}

.bin-count-control-copy strong,
.bin-count-control-copy small {
  display: block;
}

.bin-count-control-copy strong {
  color: #21483b;
  font-size: 1.04rem;
}

.bin-count-control-copy small {
  margin-top: 3px;
  color: #6d7b74;
  line-height: 1.4;
}

.bin-count-number-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: #5f7068;
  font-weight: 800;
}

.bin-count-number-wrap select {
  width: 86px;
  min-height: 47px;
  border: 2px solid #8da99a;
  border-radius: 11px;
  background: #fff;
  color: #173f34;
  padding: 7px 12px;
  font: inherit;
  font-size: 1.18rem;
  font-weight: 900;
}

.bin-count-control.binary input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.bin-count-checkbox {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid #9dafA5;
  border-radius: 10px;
  background: #fff;
  color: transparent;
  font-size: 1.15rem;
  font-weight: 950;
}

.bin-count-control.binary input:checked +
.bin-count-checkbox {
  border-color: #247153;
  background: #247153;
  color: #fff;
}

.bin-count-binary-value {
  display: inline-flex;
  border-radius: 999px;
  background: #eef2f0;
  color: #52675d;
  padding: 7px 11px;
  font-size: .83rem;
  font-weight: 900;
}

.bin-count-control.binary.selected
.bin-count-binary-value {
  background: #d9eee1;
  color: #1e674b;
}

.bin-count-control select:disabled,
.bin-count-control input:disabled {
  cursor: not-allowed;
}

.bin-count-finish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 1px solid #bed6c7;
  border-radius: 16px;
  background: #eaf4ee;
  padding: 19px 20px;
  margin-top: 16px;
}

.bin-count-finish h3 {
  margin: 0 0 4px;
  color: #21483b;
}

.bin-count-finish p {
  margin: 0;
  color: #61736a;
}

.bin-count-readonly {
  display: inline-flex;
  border-radius: 999px;
  background: #e2e9e5;
  color: #53675d;
  padding: 8px 12px;
  font-weight: 900;
}

.bin-count-history-list {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.bin-count-history-tools {
  max-width: 1240px;
  margin: 0 auto 13px;
}

.bin-count-history-tools > div:last-child {
  display: flex;
  gap: 8px;
}

.bin-count-history-row {
  display: grid;
  grid-template-columns: minmax(250px,2fr) repeat(4,minmax(105px,1fr)) auto;
  align-items: center;
  gap: 13px;
  border: 1px solid #d7e0db;
  border-left: 5px solid #d18a35;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}

.bin-count-history-row.confirmed {
  border-left-color: #267758;
}

.bin-count-history-row span,
.bin-count-detail-summary span {
  display: block;
  color: #75847d;
  font-size: .71rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.bin-count-history-row strong,
.bin-count-detail-summary strong {
  display: block;
  margin-top: 3px;
  color: #28483c;
}

.bin-count-history-row small {
  display: block;
  margin-top: 3px;
  color: #7a8982;
}

.bin-count-empty {
  border: 1px dashed #b6c8be;
  border-radius: 16px;
  background: #fff;
  padding: 34px;
  text-align: center;
  color: #66786f;
}

.bin-count-modal-layer {
  position: fixed;
  inset: 0;
  z-index: 2147480700;
  display: grid;
  place-items: center;
  background: rgba(16,41,31,.66);
  padding: 18px;
}

.bin-count-modal {
  width: min(800px,100%);
  max-height: 92vh;
  overflow: auto;
  border-radius: 18px;
  background: #f9fbfa;
  padding: 22px;
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
}

.bin-count-modal > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #dce3df;
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.bin-count-modal h2 {
  margin: 4px 0 0;
}

.bin-count-modal > footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  border-top: 1px solid #dce3df;
  padding-top: 14px;
  margin-top: 16px;
}

.bin-count-detail-summary {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
}

.bin-count-detail-summary article {
  border: 1px solid #dae3de;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.bin-count-record-stamps {
  border: 1px solid #dce4df;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  margin: 13px 0;
}

.bin-count-record-stamps p {
  margin: 5px 0;
}

.bin-count-event-log {
  border-top: 1px solid #dce3df;
  padding-top: 13px;
}

.bin-count-event-log article {
  display: flex;
  gap: 10px;
  margin: 11px 0;
}

.bin-count-event-log article > span {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #2e795b;
  margin-top: 6px;
}

.bin-count-event-log strong,
.bin-count-event-log small {
  display: block;
}

.bin-count-event-log small {
  color: #728179;
  margin-top: 2px;
}

.bin-count-event-log p {
  margin: 4px 0 0;
  color: #53675d;
}

.bin-count-prompt-body p {
  font-size: 1.02rem;
  line-height: 1.55;
}

.bin-count-loading {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  font-weight: 800;
}

.bin-count-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid #cbd8d2;
  border-top-color: #276c52;
  border-radius: 50%;
  animation: bincountspin .8s linear infinite;
}

@keyframes bincountspin {
  to {
    transform: rotate(360deg);
  }
}

.bin-count-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2147480800;
  max-width: 420px;
  border-radius: 11px;
  background: #1c6048;
  color: #fff;
  padding: 13px 16px;
  box-shadow: 0 12px 35px rgba(0,0,0,.25);
  font-weight: 800;
}

.bin-count-toast.error {
  background: #9e3731;
}

.bin-count-nav-link {
  cursor: pointer;
}

.bin-count-nav-icon {
  display: inline-grid;
  width: 24px;
  place-items: center;
}

.bin-count-top-button {
  display: none;
  border: 1px solid #cbd6d0;
  border-radius: 9px;
  background: #fff;
  color: #315548;
  padding: 7px 9px;
  font: inherit;
}

.bin-count-top-button span {
  margin-right: 5px;
}

#belair-bin-count-dashboard-card {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #c9d8d1;
  border-left: 6px solid #d18a35;
  border-radius: 15px;
  background: #fff9f4;
  color: #24473b;
  padding: 16px 18px;
  margin: 14px 0 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

#belair-bin-count-dashboard-card.confirmed {
  border-left-color: #23805b;
  background: #f4fcf7;
}

#belair-bin-count-dashboard-card strong,
#belair-bin-count-dashboard-card small {
  display: block;
}

#belair-bin-count-dashboard-card strong {
  margin: 3px 0;
  font-size: 1.05rem;
}

#belair-bin-count-dashboard-card small {
  color: #64766e;
}

.bin-count-home-arrow {
  white-space: nowrap;
  font-weight: 900;
}

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

  .bin-count-shell {
    padding: 20px 18px 45px;
  }

  .bin-count-head,
  .bin-count-section-head,
  .bin-count-history-tools,
  .bin-count-finish {
    align-items: flex-start;
    flex-direction: column;
  }

  .bin-count-head-actions {
    justify-content: flex-start;
  }

  .bin-count-summary {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .bin-count-last-save {
    max-width: none;
    text-align: left;
  }

  .bin-count-history-row {
    grid-template-columns: 1fr 1fr;
  }

  .bin-count-history-row > div:first-child,
  .bin-count-history-row button {
    grid-column: 1/-1;
  }

  .bin-count-top-button {
    display: inline-flex;
  }
}

@media (max-width:600px) {
  .bin-count-summary {
    grid-template-columns: 1fr 1fr;
  }

  .bin-count-summary strong {
    font-size: 1.65rem;
  }

  .bin-count-control {
    grid-template-columns: 42px minmax(0,1fr);
  }

  .bin-count-control-icon,
  .bin-count-checkbox {
    grid-row: 1/3;
  }

  .bin-count-number-wrap,
  .bin-count-binary-value {
    grid-column: 2;
    justify-self: start;
  }

  .bin-count-detail-summary {
    grid-template-columns: 1fr 1fr;
  }

  .bin-count-history-tools > div:last-child {
    flex-wrap: wrap;
  }

  .bin-count-home-arrow {
    display: none;
  }
}

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

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

  .bin-count-head-actions,
  .bin-count-history-tools button,
  .bin-count-btn {
    display: none !important;
  }

  .bin-count-shell {
    padding: 0;
  }

  .bin-count-history-row {
    break-inside: avoid;
  }
}
