/* Geräteunterlagen: freigegebene responsive Referenz. */
.device-documents .dd-list {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #f4f6fa;
}
.device-documents .dd-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 70px;
  text-align: left;
  padding: 13px;
  border: 1px solid #dde5f0;
  border-radius: 13px;
  background: #fbfcfe;
  color: var(--text);
  box-shadow: 0 1px 3px #121e340d;
  font: inherit;
  cursor: pointer;
}
.dd-row .dd-copy {
  display: grid;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
.dd-copy strong {
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}
.dd-copy small {
  color: var(--text-soft);
  font-size: 0.78rem;
}
.dd-row svg {
  flex: none;
}
.dd-row .dd-file-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 44px;
  border-radius: 11px;
  background: #eaf1ff;
  color: #2563eb;
  flex: none;
}
.device-documents .dd-empty {
  padding: 18px 8px;
  color: var(--text-soft);
  margin: 0;
}
.dd-archive {
  margin-top: 8px;
}
.device-documents button {
  min-height: 44px;
  min-width: 44px;
}
.device-documents .section-heading {
  flex-wrap: wrap;
}
.dd-dialog {
  padding: 0;
  width: min(540px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-md);
}
.dd-dialog::backdrop {
  background: #17203366;
  backdrop-filter: blur(3px);
}
.dd-dialog header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
}
.dd-dialog h2 {
  font-size: 1.15rem;
  margin: 0;
}
.dd-dialog .dd-body {
  padding: 20px;
  display: grid;
  gap: 18px;
}
.dd-dialog footer {
  padding: 16px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.dd-dialog button,
.dd-dialog input,
.dd-dialog select {
  min-height: 44px;
}
.dd-dialog .field {
  display: grid;
  gap: 7px;
  margin: 0;
}
.dd-dialog input,
.dd-dialog select {
  max-width: 100%;
  width: 100%;
  padding: 12px;
  border: 1px solid #cad3e0;
  border-radius: 10px;
  background: white;
  color: var(--text);
  font: inherit;
}
.dd-dialog small {
  color: var(--text-soft);
}
.dd-dialog .dd-file-pick {
  border: 1px dashed #a7b6ca;
  padding: 16px;
  border-radius: 13px;
  display: grid;
  gap: 12px;
}
.dd-dialog p {
  margin: 0;
  overflow-wrap: anywhere;
}
.dd-dialog .dd-error {
  color: #a42623;
}
.dd-dialog .dd-meta {
  display: grid;
  gap: 10px;
  margin: 0;
}
.dd-meta div {
  display: grid;
  gap: 4px;
}
.dd-meta dt {
  font-size: 0.8rem;
  color: var(--text-soft);
}
.dd-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.dd-note {
  font-size: 0.83rem;
  color: var(--text-soft);
}
.dd-dialog .dd-filename {
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}
.dd-success {
  border-radius: 12px;
  padding: 12px;
  background: #e8f7ef;
  color: #0f7345;
  margin: 0 0 12px;
}
.dd-dialog button:focus-visible,
.dd-dialog input:focus-visible,
.dd-dialog select:focus-visible,
.device-documents :focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
@media (max-width: 599px) {
  .dd-dialog[open] {
    margin: auto auto 12px;
  }
  .dd-dialog header,
  .dd-dialog .dd-body {
    padding: 18px;
  }
  .dd-dialog footer {
    padding: 14px 18px;
  }
  .dd-dialog footer button {
    flex: 1;
  }
  .dd-dialog .dd-body {
    max-height: calc(100dvh - 185px);
    overflow: auto;
  }
}

.dd-dialog .field > label {
  font-weight: 700;
}
