/* Grade responsiva dos itens durante o registro de entrada e saída. */
.modal-body:has(.quantity) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.modal-body:has(.quantity) > h3,
.modal-body:has(.quantity) > p,
.modal-body:has(.quantity) > #qty-alert {
  grid-column: 1 / -1;
  margin-top: 0;
  margin-bottom: 0;
}

.modal-body:has(.quantity) .quantity {
  min-width: 0;
  min-height: 175px;
  margin: 0;
  padding: 18px 14px;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.modal-body:has(.quantity) .quantity span {
  align-items: center;
  gap: 6px;
}

.modal-body:has(.quantity) .quantity input {
  width: min(100%, 130px);
  min-height: 48px;
  font-size: 17px;
}

@media (max-width: 1000px) {
  .modal-body:has(.quantity) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 650px) {
  .modal-body:has(.quantity) {
    grid-template-columns: 1fr;
  }

  .modal-body:has(.quantity) .quantity {
    min-height: 145px;
  }
}

.bound-device {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  margin-bottom: 18px;
  border: 1px solid #bfe4cf;
  border-radius: 10px;
  background: #eefaf3;
}

.bound-device .device-ok {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 50%;
  background: #07864b;
  color: #fff;
  font-weight: 900;
}
.bound-device.device-not-activated{border-color:#efb2b2;background:#fff1f1}.bound-device.device-not-activated .device-ok{color:#fff;background:#c9363e}.bound-device.device-not-activated small,.bound-device.device-not-activated strong,.bound-device.device-not-activated span{color:#8f2028}.shift-card #start:disabled{cursor:not-allowed;opacity:.55}
.activate-this-device{display:block;margin:-2px 0 18px;padding:12px;border:1px solid #d88186;border-radius:8px;color:#9b2029;background:#fff6f6;text-align:center;text-decoration:none;font-weight:800}

.bound-device div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bound-device small,
.bound-device span {
  color: #527064;
  font-size: 11px;
}

.demo-access {
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f7f9;
  color: #687c8d;
  font-size: 12px;
}

.login-error {
  min-height: 18px;
  margin: 0 0 10px;
  color: #c53636;
  font-size: 12px;
  font-weight: 800;
}

.people-list,.items-list{display:flex;flex-direction:column;gap:9px}
.person-choice,.item-choice{width:100%;min-height:86px;margin:0;padding:14px 16px;flex-direction:row;text-align:left}
.person-choice span,.item-choice span{align-items:flex-start}
.person-choice input[type="checkbox"]{order:2;flex:0 0 24px;width:24px;height:24px;margin-left:auto;accent-color:#1463ff}
.modal-body:has(.quantity){display:block}
.modal-body:has(.quantity)>h3{margin-bottom:8px}
.modal-body:has(.quantity)>p{margin-bottom:14px}
.modal-body:has(.quantity) .item-choice{min-height:86px;margin:0;flex-direction:row;justify-content:space-between;text-align:left}
.modal-body:has(.quantity) .item-choice span{align-items:flex-start;text-align:left}
.modal-body:has(.quantity) .item-choice input{flex:0 0 120px;width:120px;margin-left:18px}
@media(max-width:520px){.modal-body:has(.quantity) .item-choice input{flex-basis:82px;width:82px;margin-left:10px}}
.issue-modal{width:min(760px,100%)}
.issue-quantities{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.issue-review{flex-direction:row;align-items:flex-start;line-height:1.45}
.issue-review input{flex:0 0 18px;width:18px;height:18px;margin-top:1px;accent-color:#1463ff}
@media(max-width:550px){.issue-quantities{grid-template-columns:1fr}}
