 .iot-page { display: grid; gap: 18px; }
.iot-page .section-head { margin-bottom: 0; }
#iotRequests { max-width: 860px; width: 100%; }
#iotForm { display: grid; gap: 14px; }
#iotForm h2, #iotRequests h2 { margin: 0 0 8px; }
#iotForm label { margin: 0; }
#iotCode, #iotPrevious { font-variant-numeric: tabular-nums; }
.iot-codes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 0 0 8px; }
.iot-codes > div { padding: 14px; border: 1px solid #dae7f7; background: #f3f8ff; border-radius: 12px; }
.iot-codes dt { font-size: .85rem; color: #344b69; }
.iot-codes dd { margin: 5px 0 0; font-size: 1.35rem; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.iot-origin { display: grid; gap: 9px; margin: 0; padding: 12px; border: 1px solid #dce6f1; border-radius: 12px; }
.iot-origin legend { padding: 0 5px; font-weight: 650; }
.iot-origin label { display: flex; align-items: center; gap: 8px; }
.iot-origin input { width: 17px; height: 17px; margin: 0; accent-color: #1786ff; }
.iot-request { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 4px; background: #fff; color: inherit; text-align: left; border: 0; border-bottom: 1px solid #e8edf5; }
button.iot-request:hover { background: #f5f9ff; }
.iot-request-main { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 12px; min-width: 0; }
.iot-request-main time { font-size: .83rem; color: #47566e; }
.iot-status { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.iot-pending { color: #3c4552; background: #eceff2; }
.iot-activating { color: #88400b; background: #ffead5; }
.iot-activated { color: #145638; background: #daf4e7; }
@media(max-width: 480px) {
  .iot-codes { grid-template-columns: 1fr; }
  .employee-nav button { min-width: 0; flex: 1; }
}
.iot-status.iot-cancelled{background:#fff0f1;color:#c4323a}.iot-request:has(.iot-cancelled-message){flex-wrap:wrap}.iot-cancelled-message{flex:1 0 100%;margin:2px 0 0;padding:10px 12px;border:1px solid #ffd2d6;border-radius:11px;background:#fff7f8;color:#9f2631;font-size:13px;line-height:1.45}

.iot-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 8px 12px; margin-bottom: 8px; }
.iot-filters label { flex: 1 1 180px; margin: 0; }
.iot-photo { display: grid; gap: 8px; }
.iot-photo button { justify-self: start; }
#iotPhoto[hidden], #iotPhotoStatus:empty { display: none; }
#iotPhotoStatus { margin: 0; }
.iot-cancelled-message strong { display: block; }
.iot-cancelled-message span { white-space: pre-wrap; overflow-wrap: anywhere; }
.iot-copy-field { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.iot-copy-field > span { min-width: 0; }
.iot-copy-field .iot-copy { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; background: transparent; color: #536579; border-radius: 7px; font-size: 15px; font-weight: 500; }
.iot-copy-field .iot-copy:hover, .iot-copy-field .iot-copy:focus-visible { background: #e7eff8; color: #233d5b; }

#iotRows.iot-scroll { overflow-y: auto; scrollbar-gutter: stable; scrollbar-color: #809bc1 #edf3fb; }
