/* assets/css/style.css – zentrales Design */

body {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.95rem;
  background-color: #f9f9f9;
}

h2, h4 {
  font-weight: 600;
}

.table-sm td, .table-sm th {
  padding: 0.4rem;
  vertical-align: middle;
}

.badge {
  font-size: 0.85em;
  padding: 0.4em 0.6em;
}

/* Gantt-Farben */
.gantt-red .bar { fill: #dc3545; }
.gantt-green .bar { fill: #28a745; }
.gantt-yellow .bar { fill: #ffc107; }
.gantt-blue .bar { fill: #007bff; }

/* Buttons */
.btn {
  font-weight: 500;
}

/* Nur Hauptaktions-Buttons bekommen eine Mindestbreite */
.btn-primary:not(.btn-sm),
.btn-success:not(.btn-sm):not(.btn-group .btn),
.btn-danger:not(.btn-sm):not(.btn-group .btn) {
  min-width: 120px;
}

/* Button-Groups und kleine Buttons bleiben flexibel */
.btn-group .btn,
.btn-sm {
  min-width: auto;
}

/* Formularlayout */
form .form-control {
  font-size: 0.9rem;
}

form label {
  font-weight: 500;
}

/* Kennzeichen (License Plate) Styling */

.license-plate {
  white-space: nowrap;
  display: inline-block;
  background-color: white;
  color: black;
  border: 2px solid black;
  border-radius: 4px;
  padding: 2px 6px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
/*

.license-plate {
  display: inline-block;
  padding: 6px 12px;
  background: white;
  border: 2px solid black;
  border-radius: 6px;
  font-family: 'Arial Black', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 1px;
  color: black;
  box-shadow: inset 0 0 3px #999;
  position: relative;
  min-width: 150px;
  text-align: center;
}

.license-plate::before {
  content: "D";
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  font-size: 0.8rem;
  background: #003399;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-weight: bold;
}

.license-plate span {
  margin-left: 10px;
}
 */

/* Responsive Tabellen */
.table-responsive {
  overflow-x: auto;
}

@media (max-width: 768px) {
  .table td, .table th {
    white-space: nowrap;
  }
  .btn {
    font-size: 0.85rem;
    padding: 0.3rem 0.7rem;
  }
}

/* Compact fixed application navigation. No content-area styles are changed. */
.app-shell-root {
  --app-header-base-height: 3rem;
  --app-header-height: var(--app-header-base-height);
  scroll-padding-top: calc(var(--app-header-height) + .75rem);
}
body.app-shell { padding-top: var(--app-header-height); }
.app-shell :where(main [id],main input,main select,main textarea,main button,main a,main [tabindex]) {
  scroll-margin-top: .5rem;
}
.app-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1030;
  min-height: var(--app-header-base-height);
  padding: 0;
  box-shadow: 0 1px 5px #18354d26;
}
.app-header > .container {
  position: relative;
  min-height: var(--app-header-base-height);
  min-width: 0;
  flex-wrap: nowrap;
  gap: .5rem;
}
.app-header .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  max-width: calc(100% - 3.5rem);
  margin-right: .5rem;
  padding: .3rem 0;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.25;
}
.app-header .app-brand-text { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-header .navbar-brand > i,.app-header .navbar-brand > svg { flex-shrink:0; }
.app-header .nav-link {
  padding: .35rem .4rem;
  font-size: .85rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.app-header .navbar-collapse,.app-header .navbar-nav,.app-header .nav-item { min-width:0; }
.app-header .navbar-nav.me-auto { flex:1 1 auto; flex-wrap:wrap; }
.app-header .app-user-nav { flex:0 1 auto; }
.app-header .app-profile-toggle { display:flex; align-items:center; gap:.35rem; min-width:0; }
.app-header .app-user-name { min-width:0; max-width:9rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-header .app-profile-toggle > i,.app-header .app-profile-toggle > svg,.app-header .app-profile-toggle::after { flex-shrink:0; }
.app-header .dropdown-menu { z-index:1031; max-width:min(22rem,calc(100vw - 1.5rem)); }
.app-header .dropdown-item { white-space:normal; overflow-wrap:anywhere; }
.app-header .navbar-toggler { flex-shrink:0; padding:.2rem .45rem; font-size:1rem; line-height:1.2; }
.app-header .navbar-toggler-icon { width:1.35em; height:1.35em; }
.app-header :where(.navbar-brand,.nav-link,.navbar-toggler):focus-visible { outline:2px solid #fff; outline-offset:2px; border-radius:3px; }
.app-shell .flash-messages {
  position: fixed;
  top: calc(var(--app-header-height) + .5rem);
  right: .75rem;
  z-index: 1025;
  max-width: min(400px,calc(100vw - 1.5rem));
  max-height: calc(100vh - var(--app-header-height) - 1rem);
  max-height: calc(100dvh - var(--app-header-height) - 1rem);
  overflow-y: auto;
}
@media (max-width:991.98px) {
  .app-header > .container { justify-content:space-between; }
  .app-header .app-header-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--app-header-height) - .5rem);
    max-height: calc(100dvh - var(--app-header-height) - .5rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: .35rem .75rem;
    background: var(--bs-primary,#0d6efd);
    box-shadow: 0 5px 8px #18354d26;
  }
  .app-header .app-header-menu.collapsing { overflow:hidden; }
  .app-header .navbar-nav.me-auto { flex-wrap:nowrap; }
  .app-header .nav-link { padding:.45rem .3rem; }
  .app-header .app-user-name { max-width:calc(100vw - 7rem); }
  .app-header .dropdown-menu { position:static; max-width:100%; margin:.2rem 0 .35rem; }
}
