/* Device Handover Notifier Frontend Styles */
div#dhn-device-grid { max-width: 800px; display: flex ; flex-wrap: wrap; }
.dhn-device-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  justify-content: center;
}

.dhn-device-card { border: 1px solid #ccc; padding: 10px;flex-grow:1; background: #efefef; border-radius: 10px; text-align: center; }
.dhn-device-card h3 { margin: 10px 0; font-size: 20px; line-height: normal; font-weight: bold; font-family: arial; text-align: center; }
.dhn-device-card img { display: block; margin: 10px auto; width: 35px; height: 35px; border-radius: 20px; padding: 10px; background: #fff; object-fit: fill; border: 1px solid #ccc; }
.dhn-device-card p { margin: 0 0 5px 0; font-size: 15px; }
.dhn-device-card strong { font-weight: normal; }
.dhn-device-card p:nth-of-type(2) { font-size: 11px; font-weight: bold; background: #fff; border-radius: 5px; padding: 5px; margin-top: 10px; }
.dhn-notification {
  background: #fffbe5;
  border: 1px solid #ffe066;
  padding: 16px;
  margin: 16px 0;
  border-radius: 6px;
  font-size: 1rem;
  position:fixed;
  bottom:0;
  z-index:999;
}

.dhn-select-device, .dhn-return-device, .dhn-request-device, .dhn-confirm-request, .dhn-decline-request, .dhn-copy-slug-url { background: #0073aa; color: #fff; border: none; border-radius: 4px; padding: 4px 15px; margin-top: 8px; font-size: 12px; font-family: tahoma; cursor: pointer; font-weight: normal; transition: background 0.2s; }
.dhn-return-device { background: #aa0000; }
.dhn-select-device:hover,
.dhn-return-device:hover,
.dhn-request-device:hover,
.dhn-confirm-request:hover,
.dhn-decline-request:hover,
.dhn-copy-slug-url:hover {
  background: #005177;
}

.dhn-loading {
  text-align: center;
  padding: 32px;
  font-size: 1.2em;
  color: #888;
}

.dhn-back-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #0073aa;
  font-weight: bold;
  margin-bottom: 24px;
}

.dhn-back-link svg {
  margin-right: 8px;
}

.dhn-popup-notification {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 260px;
  max-width: 90vw;
  background: #fff;
  color: #222;
  border-radius: 6px;
  box-shadow: 0 4px 24px #0002;
  padding: 16px 32px 16px 16px;
  font-size: 1rem;
  border-left: 6px solid #0073aa;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  animation: dhn-popup-fadein 0.3s;
}
.dhn-popup-success { border-left-color: #46b450; }
.dhn-popup-error { border-left-color: #d63638; }
.dhn-popup-info { border-left-color: #0073aa; }
.dhn-popup-close {
  margin-left: 16px;
  font-size: 1.2em;
  cursor: pointer;
  color: #888;
  font-weight: bold;
}
@keyframes dhn-popup-fadein {
  from { opacity: 0; top: 0; }
  to { opacity: 1; top: 32px; }
}