body {
    background-color: #ccc; /* Graublauer Hintergrund */
    font-size: 0.9rem; /* Kleinere Schrift */
}

/* Ergaenzung von Boostrap 5 */
.form-control[readonly] {
    background-color: #e9ecef !important; /* Grauton ähnlich wie disabled */
    opacity: 1;
}

.navbar {
    padding: 0.3rem; /* Noch schmalere Menüleiste */
}
.top-bar {
    background-color: #007bcf; /* Blaue Leiste */
    color: white;
    padding: 5px 15px;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar input {
    width: 200px;
    padding: 2px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
}
.dropdown-menu .dropdown-submenu {
    position: relative;
}
.searchbar input {
    padding: 2px;
    font-size: 0.9rem;
    border: none;
    border-radius: 4px;
}
.dropdown-menu .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    display: none;
    position: absolute;
}
.dropdown-menu .dropdown-submenu:hover > .dropdown-menu {
    display: block;
}
.center-image {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60vh;
}
.center-image img {
    max-width: 100%;
    height: auto;
}
.backgroundimage {
    height: 500px;
    background-image: url('./img/avpfand.webp'); /* Hintergrundbild */
    background-size: 50%; /* Deckt das gesamte div, ohne das Seitenverhältnis zu verzerren */
    background-position: center; /* Zentriert das Bild */
    background-repeat: no-repeat; /* Verhindert Wiederholungen */
}
.table-container {
    max-height: 70vH;
    width: 100%;
    overflow-y: auto;
    position: relative;
}
.kundentable thead {
    position: sticky;
    top: -1px;
    background: #343a40;
    color: white;
    z-index: 2;
}
.kundentable tbody {
}

.no-spinner::-webkit-inner-spin-button,
.no-spinner::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.no-spinner {
  -moz-appearance: textfield;
}

.btn-xs {
    padding: 0.1rem 0.2rem;
    font-size: 0.55rem;
}

.modal.fade .modal-dialog {
    transform: translateY(-100%);
    transition: transform 0.3s ease-out;
}
.modal.show .modal-dialog {
    transform: translateY(0);
}

.notizmodal {
    background-color: #e3f2fd;
}

.formarea, .formarea > td, .formarea > td {
    background-color: #ccc !important;
}

.smallfont {
    font-size: 0.875rem;
}

.verysmall {
    font-size: 0.55rem;
}

.form-label, .form-control, .form-select {
    font-size: 0.75rem; /* Noch kleinere Schriftgröße */
}

/* Camera controls  */
.cammodal-body {
    position: relative;
    width: 1000px;
    height: 850px;
}
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
}
.overlay-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    border: 1px solid black;
    background-color: transparent;
}
.xcontainer {
    position: absolute !important;
    top: 0;
    left: 50px;;
    width: 800px;
    height: 860px;
}
.camerabuttons {
    position: absolute;
    top: 800px;
    margin-top: 10px;
    margin-left: 10px;
    text-align: center;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
}

.btn-circle {
  width: 30px;
  height: 30px;
  text-align: center;
  padding: 6px 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.0;
  border-radius: 15px;
}


/* Image collector classes */

.doc-thumbnail {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.doc-thumbnail .doc-thumb-label {
  font-size: 0.7rem;
  text-align: center;
  margin-bottom: 0.25rem;
  color: #6c757d; /* Bootstrap's text-muted */
}

.doc-thumbnail .doc-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  overflow: hidden;
  flex-shrink: 1;
}

.doc-thumbnail .doc-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.doc-thumbnail .doc-thumb-delete {
  position: absolute;
  bottom: 0.25rem;
  right: 0.25rem;
  font-size: 16px;
  color: #dc3545; /* Bootstrap's text-danger */
  background-color: #fff;
  border-radius: 50%;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
}

.doc-btn-thumb {
  height: 32px;
  width: auto;
  cursor: pointer;
}

.modal-2001 {
  z-index: 2001 !important;
}

.hidden-important {
  display: none !important;
}
