:root {
  --app-header-height: 64px;
  --app-logo-height: 42px;
}

/* Topbar */

.navbar.fixed-top {
  min-height: var(--app-header-height);
  padding-top: 0;
  padding-bottom: 0;
}

.navbar.fixed-top.bg-danger,
footer.fixed-bottom.bg-danger {
  background-color: #D6001C !important;
}

[data-bs-theme="dark"] .navbar.fixed-top.bg-danger,
[data-bs-theme="dark"] footer.fixed-bottom.bg-danger {
  background-color: #888888 !important;
}

.navbar.fixed-top > .container-fluid {
  min-height: var(--app-header-height);
}

.navbar-brand {
  padding-top: 0;
  padding-bottom: 0;
}

.navbar-brand img {
  height: var(--app-logo-height);
  width: auto;
}

/* Hauptinhalt */

.hauptinhalt-scroll {
  height: calc(100dvh - var(--app-header-height) - 64px - 66px);
}

/* Fallback für ältere Browser */
@supports not (height: 100dvh) {
  .hauptinhalt-scroll {
    height: calc(100vh - var(--app-header-height) - 64px - 66px);
  }
}

html,
body {
  overflow: hidden;
}

section > .card,
aside .position-sticky > .card {
  max-height: calc(100dvh - var(--app-header-height) - 64px);
}

.hauptinhalt-scroll .card {
  height: auto;
  max-height: none;
}

.card-body {
  min-height: 0;
}



.onlyuser,
.charge,
.fachcharge,
.kdo,
.fahrmeister,
.fahrzeugausbilder,
.zeugmeisterei,
.atemschutz {
  display: none;
}

.vertical-header {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
  text-align: center;
  line-height: 1;
  margin: 0 auto;
  min-height: 110px;
}

/* Tabelle */

.toolbar {
  margin-bottom: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.toolbar input {
  padding: 8px;
  min-width: 240px;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  vertical-align: middle;
}

.status-dot.green {
  background-color: #16a34a;
}

.status-dot.red {
  background-color: #D6001C;
}

#funkgeraete-tabelle,
#fahrberechtigung-tabelle {
  font-size: 0.85rem;
  /* kleiner als Bootstrap default */
}

#funkgeraete-tabelle .tabulator,
#kontakte-tabelle .tabulator,
#berechtigungstabelle .tabulator,
#fachgebietstabelle .tabulator,
#tauschuniform-tabelle .tabulator {
  width: 100%;
}

#funkgeraete-tabelle .tabulator-col-title,
#funkgeraete-tabelle .tabulator-cell {
  white-space: normal;
  overflow-wrap: anywhere;
}

#fahrberechtigung-tabelle .tabulator-cell,
#fahrberechtigung-tabelle .tabulator-col {
  padding: 4px 6px;
}

#fahrzeug-tabelle .tabulator-cell,
#fahrzeug-tabelle .tabulator-col-title,
#fahrberechtigung-tabelle .tabulator-col-title,
.no-wrap-cell {
  white-space: nowrap;
}

.table-scroll-wrap {
  width: 100%;
}

/* footer */

.dropup button {
  transform: translateY(-15px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
