/* Anwendungseigene Ergänzungen zur Verwaltung.
   Farben, Schriftgrößen, Abstände und Radien ausschließlich aus den Tokens
   des AdaptPro Design-Systems. */

.vw-main--solo {
  margin-left: 0;
}

.vw-auth {
  max-width: 520px;
  margin: var(--ap-space-7) auto;
}

.vw-authcard {
  width: 100%;
}

.vw-narrow {
  max-width: 720px;
}

.vw-user {
  max-width: 200px;
  overflow: hidden;
  color: var(--ap-color-text-muted);
  font-size: var(--ap-fs-14);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vw-inline {
  display: inline;
}

.vw-nav-sep {
  margin-top: var(--ap-space-3);
  padding-top: var(--ap-space-3);
  border-top: 1px solid var(--ap-color-border);
}

.vw-switch {
  display: flex;
  flex-direction: column;
  gap: var(--ap-space-2);
  margin-top: var(--ap-space-5);
  padding: var(--ap-space-3);
  border: 1px solid var(--ap-color-border);
  border-radius: var(--ap-radius);
}

.vw-rule {
  margin: var(--ap-space-4) 0;
  border: 0;
  border-top: 1px solid var(--ap-color-border);
}

.vw-card-gap {
  margin-top: var(--ap-space-4);
}

.vw-card-pad {
  padding: var(--ap-space-4);
}

.vw-actions-right {
  justify-content: flex-end;
  margin-bottom: var(--ap-space-4);
}

.vw-actions-between {
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ap-space-3);
}

.vw-search {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--ap-space-2);
}

.vw-search .ap-input {
  min-width: 240px;
}

.vw-muted {
  color: var(--ap-color-text-muted);
  font-size: var(--ap-fs-12);
}

.vw-secret {
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--ap-fs-14);
  word-break: break-all;
}

.vw-details {
  margin-top: var(--ap-space-3);
}

.vw-details > summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
}

.vw-details > summary::-webkit-details-marker {
  display: none;
}

.vw-details-body {
  margin-top: var(--ap-space-4);
  padding: var(--ap-space-4);
  border: 1px solid var(--ap-color-border);
  border-radius: var(--ap-radius);
  background: var(--ap-color-surface);
}

.vw-table-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ap-space-2);
  margin: 0;
}

.vw-table-form .ap-input,
.vw-table-form .ap-select {
  width: auto;
  min-width: 80px;
  font-size: var(--ap-fs-14);
}

.vw-dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: var(--ap-space-2) var(--ap-space-4);
  margin: 0 0 var(--ap-space-4);
}

.vw-dl dt {
  color: var(--ap-color-text-muted);
  font-size: var(--ap-fs-12);
}

.vw-dl dd {
  margin: 0;
  font-size: var(--ap-fs-14);
  word-break: break-word;
}

.vw-dl code {
  word-break: break-all;
}

@media (max-width: 820px) {
  .vw-main--solo {
    margin-left: 0;
  }

  .vw-auth {
    margin: var(--ap-space-5) auto;
  }
}

@media (max-width: 600px) {
  .vw-user {
    display: none;
  }

  .vw-search .ap-input {
    min-width: 0;
    width: 100%;
  }

  .vw-dl {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .vw-dl dt {
    margin-top: var(--ap-space-2);
  }
}
