/* Named groups avoid the legacy position-based spanning rules. */
.nfc-manager-page .admin-cards .admin-device-compact dl {
  width: 100%;
  margin: 0;
  gap: 12px;
}
.nfc-manager-page .admin-cards .admin-device-compact dl > div {
  grid-column: auto !important;
  min-width: 0;
  padding: 12px 14px;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-summary {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(0, 1fr)) !important;
  margin: 14px 0;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-summary dd {
  font-size: 14px;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-records-grid,
.nfc-manager-page .admin-cards .admin-device-compact .device-ownership-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-wide-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-details:not([hidden]) {
  display: grid;
  gap: 12px;
  padding-top: 0;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-ownership {
  padding: 16px;
  border: 1px solid #e4d5c3;
  border-radius: 15px;
  background: #f5eee3;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-ownership-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-ownership h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-transfer-time {
  margin: 12px 0 0;
  text-align: center;
  color: #766b61;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-ownership-action {
  display: flex;
  justify-content: center;
  margin-top: 12px;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-ownership-action .secondary {
  min-height: 40px;
  padding: 8px 20px;
  font-size: 14px;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-note-section {
  margin-top: 4px;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-records {
  border: 1px solid #eadfce;
  border-radius: 13px;
  background: #fffdf8;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-records summary {
  padding: 12px 16px;
  cursor: pointer;
  text-align: center;
  color: #766b61;
  font-size: 14px;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-records[open] summary {
  color: var(--orange-dark);
  border-bottom: 1px solid #eadfce;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-records-grid {
  padding: 12px;
}
.nfc-manager-page .admin-cards .admin-device-compact .device-records-grid dd {
  white-space: pre-line;
}
@container nfc-admin-list (max-width: 1000px) {
  .nfc-manager-page .admin-cards .admin-device-compact .device-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@container nfc-admin-list (max-width: 760px) {
  .nfc-manager-page .admin-cards .admin-device-compact .device-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@container nfc-admin-list (max-width: 560px) {
  .nfc-manager-page .admin-cards .admin-device-compact .device-summary,
  .nfc-manager-page .admin-cards .admin-device-compact .device-meta-grid,
  .nfc-manager-page .admin-cards .admin-device-compact .device-records-grid,
  .nfc-manager-page .admin-cards .admin-device-compact .device-ownership-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .nfc-manager-page .admin-cards .admin-device-compact .device-ownership {
    padding: 12px;
  }
}
@supports not (container-type: inline-size) {
  @media(max-width: 1050px) {
    .nfc-manager-page .admin-cards .admin-device-compact .device-summary {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }
  @media(max-width: 820px) {
    .nfc-manager-page .admin-cards .admin-device-compact .device-meta-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
  }
  @media(max-width: 620px) {
    .nfc-manager-page .admin-cards .admin-device-compact .device-summary,
    .nfc-manager-page .admin-cards .admin-device-compact .device-meta-grid,
    .nfc-manager-page .admin-cards .admin-device-compact .device-records-grid,
    .nfc-manager-page .admin-cards .admin-device-compact .device-ownership-grid {
      grid-template-columns: minmax(0, 1fr) !important;
    }
  }
}
