/* White-Label Base CSS - Anpassbare Variablen */
:root {
  /* sMail Markenfarben als Standard */
  --brand-primary: #95bf3b; /* sMail Grün */
  --brand-secondary: #3c3c3e; /* sMail Dunkelgrau */
  --brand-accent: #7d7d7d; /* Grau */

  /* Erweiterte Farbpalette */
  --brand-light: #f7f7f7; /* sMail Hellgrau */
  --brand-dark: #3c3c3e;
  --brand-success: #95bf3b; /* Verwende sMail Grün für Erfolg */
  --brand-warning: #ffc107;
  --brand-danger: #cf021a;
  --brand-info: #17a2b8;

  /* Hintergrundfarben */
  --body-bg: #f5f5f5;
  --card-bg: #ffffff;
  --header-bg: #3c3c3e; /* sMail Header Farbe */

  /* Textfarben */
  --text-primary: #3c3c3e; /* sMail Textfarbe */
  --text-secondary: #7d7d7d;
  --text-muted: #7d7d7d;
  --text-light: #ccc;

  /* Schatten und Rahmen */
  --box-shadow-light: 0 2px 10px rgba(0, 0, 0, 0.05);
  --box-shadow-medium: 0 4px 6px rgba(0, 0, 0, 0.1);
  --border-color: #ccc; /* sMail Border Farbe */
  --border-light: #ebebeb;
  --border-radius: 8px;

  /* Typografie */
  --font-family: "Open Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.5; /* sMail Line Height */
}

/* Kundenspezifische Überschreibungen */
[data-theme="dpd"] {
  --brand-primary: #d40511; /* DPD Rot */
  --brand-secondary: #0063a3; /* DPD Blau */
  --brand-accent: #6c757d;
  --header-bg: #ffffff;
  --text-primary: #333;
}

[data-theme="customer1"] {
  --brand-primary: #1e3a8a; /* Kunde 1: Blau */
  --brand-secondary: #3b82f6;
  --brand-accent: #64748b;
}

[data-theme="customer2"] {
  --brand-primary: #059669; /* Kunde 2: Grün */
  --brand-secondary: #10b981;
  --brand-accent: #6b7280;
}

[data-theme="customer3"] {
  --brand-primary: #7c2d12; /* Kunde 3: Orange/Braun */
  --brand-secondary: #ea580c;
  --brand-accent: #78716c;
}

/* Basis-Styles mit Variablen */
body {
  font-family: var(--font-family);
  background-color: var(--body-bg);
  color: var(--text-primary);
  line-height: var(--line-height-base);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Header Styles */
.main-header {
  background-color: var(--header-bg);
  box-shadow: var(--box-shadow-medium);
  padding: 15px 0;
  position: relative;
  z-index: 100;
  color: #fff; /* Weißer Text im Header */
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  max-height: 50px;
}

.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .nav-item {
  margin-left: 20px;
}

.main-nav .nav-link {
  color: #fff; /* Weiße Navigation Links */
  text-decoration: none;
  font-weight: 700; /* Fetter Text wie bei sMail */
  font-size: 19px; /* sMail Schriftgröße */
  text-transform: uppercase; /* Großbuchstaben wie bei sMail */
  letter-spacing: 0.02em;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  padding: 20px 15px 19px;
}

.main-nav .nav-link i {
  margin-right: 5px;
}

.main-nav .nav-link:hover {
  color: var(--brand-primary); /* sMail Grün beim Hover */
}

/* Welcome Section */
.welcome-section {
  background-color: var(--brand-primary); /* sMail Grün */
  color: white;
  padding: 60px 30px; /* Mehr Padding wie bei sMail */
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  box-shadow: var(--box-shadow-medium);
  position: relative;
}

/* sMail-spezifischer Gradient-Effekt */
.welcome-section::after {
  content: " ";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding-right: 60px;
  background-image: linear-gradient(102deg, var(--brand-primary) 50%, transparent 50.2%);
  transform: translateX(100%);
}

.welcome-title {
  margin: 0 0 10px;
  font-size: 2rem;
  font-weight: 700;
}

.welcome-text {
  margin: 0;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Card Styles */
.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow-light);
  margin-bottom: 30px;
  overflow: visible !important;
}

.card-header {
  background-color: var(--brand-light);
  padding: 20px;
  border-bottom: 1px solid var(--border-color);
  overflow: visible !important;
  position: relative;
  z-index: 1;
}

.card-title {
  margin: 0 0 5px;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.card-description {
  margin: 0;
  color: var(--text-secondary);
}

.card-content {
  padding: 20px;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px 7px; /* sMail Button Padding */
  border: 2px solid currentcolor; /* sMail Border Style */
  border-radius: 3px; /* sMail Border Radius */
  font-size: 15px; /* sMail Schriftgröße */
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s; /* Schnellere Transition wie bei sMail */
  text-decoration: none;
}

.btn i {
  margin-right: 5px;
}

.btn-primary {
  background-color: var(--brand-primary);
  color: #fff;
  border-color: var(--brand-primary);
}

.btn-primary:hover {
  background-color: #a0c84c; /* sMail Hover Farbe */
  border-color: #a0c84c;
}

.btn-secondary {
  background-color: var(--brand-secondary);
  color: #fff;
  border-color: var(--brand-secondary);
}

.btn-secondary:hover {
  background-color: #505053; /* sMail Secondary Hover */
  border-color: #505053;
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--brand-primary);
  color: var(--brand-primary);
}

.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  color: white;
}

/* Status Badge Styles */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-active {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--brand-success);
}

.status-inactive {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--brand-danger);
}

/* Form Styles - sMail Design */
.form-group {
  margin-bottom: 20px;
  position: relative;
  overflow: visible !important;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 13px; /* sMail Label Größe */
  color: var(--text-primary);
}

.form-input {
  width: 100%;
  padding: 8px; /* sMail Input Padding */
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 15px; /* sMail Input Schriftgröße */
  font-weight: 600; /* sMail Input Font Weight */
  background-color: var(--brand-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 2px rgba(149, 191, 59, 0.2); /* sMail Focus Shadow */
  background-color: #fff;
}

/* Alert Styles */
.alert {
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
}

.alert-icon {
  margin-right: 10px;
  font-size: 1.25rem;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--brand-success);
  border-left: 4px solid var(--brand-success);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--brand-danger);
  border-left: 4px solid var(--brand-danger);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: var(--brand-warning);
  border-left: 4px solid var(--brand-warning);
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--brand-info);
  border-left: 4px solid var(--brand-info);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
  }

  .logo {
    margin-bottom: 15px;
  }

  .main-nav .nav-list {
    flex-direction: column;
  }

  .main-nav .nav-item {
    margin: 5px 0;
  }

  .welcome-title {
    font-size: 1.5rem;
  }

  .card-content {
    padding: 15px;
  }
}

/* Section Title Icons */
.section-title i {
  margin-right: 10px;
  color: var(--brand-primary) !important; /* sMail Grün statt Blau */
}

/* Action Icons */
.action-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--brand-primary), #a0c84c) !important; /* sMail Grün Gradient */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

/* Weitere Icon-Varianten */
.action-icon-secondary {
  background: linear-gradient(135deg, var(--brand-secondary), #505053) !important;
}

.action-icon-success {
  background: linear-gradient(135deg, var(--brand-success), #a0c84c) !important;
}

.action-icon-danger {
  background: linear-gradient(135deg, var(--brand-danger), #e74c3c) !important;
}

.action-icon-warning {
  background: linear-gradient(135deg, var(--brand-warning), #f39c12) !important;
}

.action-icon-info {
  background: linear-gradient(135deg, var(--brand-info), #3498db) !important;
}

/* Utility Classes - sMail Farben */
.bg-primary {
  background-color: var(--brand-primary) !important; /* sMail Grün */
}

.bg-secondary {
  background-color: var(--brand-secondary) !important; /* sMail Dunkelgrau */
}

.bg-success {
  background-color: var(--brand-success) !important;
}

.bg-danger {
  background-color: var(--brand-danger) !important;
}

.bg-warning {
  background-color: var(--brand-warning) !important;
}

.bg-info {
  background-color: var(--brand-info) !important;
}

.bg-light {
  background-color: var(--brand-light) !important;
}

.bg-dark {
  background-color: var(--brand-dark) !important;
}

/* Text Colors */
.text-primary {
  color: var(--brand-primary) !important;
}

.text-secondary {
  color: var(--brand-secondary) !important;
}

.text-success {
  color: var(--brand-success) !important;
}

.text-danger {
  color: var(--brand-danger) !important;
}

.text-warning {
  color: var(--brand-warning) !important;
}

.text-info {
  color: var(--brand-info) !important;
}

.text-light {
  color: var(--text-light) !important;
}

.text-dark {
  color: var(--brand-dark) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

/* Border Colors */
.border-primary {
  border-color: var(--brand-primary) !important;
}

.border-secondary {
  border-color: var(--brand-secondary) !important;
}

.border-success {
  border-color: var(--brand-success) !important;
}

.border-danger {
  border-color: var(--brand-danger) !important;
}

.border-warning {
  border-color: var(--brand-warning) !important;
}

.border-info {
  border-color: var(--brand-info) !important;
}

.border-light {
  border-color: var(--border-light) !important;
}

.border-dark {
  border-color: var(--brand-dark) !important;
}

/* Dashboard Hero - sMail Style */
.dashboard-hero {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #a0c84c 100%) !important; /* sMail Grün Gradient */
  color: white !important;
  padding: 60px 0;
  margin-bottom: 40px;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.dashboard-hero::after {
  content: " ";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding-right: 60px;
  background-image: linear-gradient(102deg, var(--brand-primary) 50%, transparent 50.2%);
  transform: translateX(100%);
}

/* Hero Variants */
.hero-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, #a0c84c 100%);
  color: white;
}

.hero-secondary {
  background: linear-gradient(135deg, var(--brand-secondary) 0%, #505053 100%);
  color: white;
}

/* Badge Styles */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

.badge-primary {
  color: #fff;
  background-color: var(--brand-primary);
}

.badge-secondary {
  color: #fff;
  background-color: var(--brand-secondary);
}

.badge-success {
  color: #fff;
  background-color: var(--brand-success);
}

.badge-danger {
  color: #fff;
  background-color: var(--brand-danger);
}

.badge-warning {
  color: #212529;
  background-color: var(--brand-warning);
}

.badge-info {
  color: #fff;
  background-color: var(--brand-info);
}

.badge-light {
  color: #212529;
  background-color: var(--brand-light);
}

.badge-dark {
  color: #fff;
  background-color: var(--brand-dark);
}

/* Progress Bars */
.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: #e9ecef;
  border-radius: 0.25rem;
}

.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--brand-primary);
  transition: width 0.6s ease;
}

.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

/* Links */
.link-primary {
  color: var(--brand-primary);
  text-decoration-color: var(--brand-primary);
}

.link-primary:hover,
.link-primary:focus {
  color: #a0c84c;
  text-decoration-color: #a0c84c;
}

.link-secondary {
  color: var(--brand-secondary);
  text-decoration-color: var(--brand-secondary);
}

.link-secondary:hover,
.link-secondary:focus {
  color: #505053;
  text-decoration-color: #505053;
}

/* Navbar Styles */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.navbar-brand {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-dark {
  background-color: var(--brand-secondary) !important;
}

.navbar-dark .navbar-brand {
  color: #fff;
}

.navbar-dark .navbar-brand:hover,
.navbar-dark .navbar-brand:focus {
  color: var(--brand-primary);
}

.navbar-light {
  background-color: var(--brand-light) !important;
}

.navbar-light .navbar-brand {
  color: var(--brand-secondary);
}

.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
  color: var(--brand-primary);
}

/* Dropdown Menus */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 200px; /* Vergrößert von 10rem */
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
  list-style: none;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
  max-height: 300px; /* Maximale Höhe hinzugefügt */
  overflow-y: auto; /* Scrollbar bei Bedarf */
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu-right {
  right: 0;
  left: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.5rem 1.5rem; /* Mehr Padding */
  clear: both;
  font-weight: 400;
  color: var(--text-primary);
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  font-size: 0.9rem; /* Etwas kleinere Schrift */
  line-height: 1.5;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--brand-primary);
  background-color: var(--brand-light);
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff;
  text-decoration: none;
  background-color: var(--brand-primary);
}

/* Pagination */
.pagination {
  display: flex;
  padding-left: 0;
  list-style: none;
  border-radius: 0.25rem;
}

.page-link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  margin-left: -1px;
  line-height: 1.25;
  color: var(--brand-primary);
  text-decoration: none;
  background-color: #fff;
  border: 1px solid #dee2e6;
}

.page-link:hover {
  z-index: 2;
  color: #a0c84c;
  text-decoration: none;
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Tabs */
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
  margin-bottom: -1px;
  background: none;
  border: 1px solid transparent;
  border-top-left-radius: 0.25rem;
  border-top-right-radius: 0.25rem;
}

.nav-tabs .nav-link:hover,
.nav-tabs .nav-link:focus {
  border-color: #e9ecef #e9ecef #dee2e6;
  isolation: isolate;
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-item.show .nav-link {
  color: var(--brand-primary);
  background-color: #fff;
  border-color: #dee2e6 #dee2e6 #fff;
}

/* Accordion */
.accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  color: var(--text-primary);
  text-align: left;
  background-color: #fff;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition:
    color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, border-radius 0.15s ease;
}

.accordion-button:not(.collapsed) {
  color: var(--brand-primary);
  background-color: rgba(149, 191, 59, 0.1);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.125);
}

.accordion-button:focus {
  z-index: 3;
  border-color: var(--brand-primary);
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(149, 191, 59, 0.25);
}

/* Modals */
.modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem;
  border-bottom: 1px solid #dee2e6;
  border-top-left-radius: calc(0.3rem - 1px);
  border-top-right-radius: calc(0.3rem - 1px);
}

.modal-title {
  margin-bottom: 0;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Toasts */
.toast {
  width: 350px;
  max-width: 100%;
  font-size: 0.875rem;
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
  border-radius: 0.25rem;
}

.toast-header {
  display: flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  color: var(--text-secondary);
  background-color: rgba(255, 255, 255, 0.85);
  background-clip: padding-box;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  border-top-left-radius: calc(0.25rem - 1px);
  border-top-right-radius: calc(0.25rem - 1px);
}

/* Spinners */
.spinner-border {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  vertical-align: -0.125em;
  border: 0.25em solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spinner-border 0.75s linear infinite;
}

.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.125em;
}

@keyframes spinner-border {
  to {
    transform: rotate(360deg);
  }
}

.text-primary .spinner-border {
  color: var(--brand-primary);
}

/* List Groups */
.list-group-item {
  position: relative;
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text-primary);
  text-decoration: none;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.125);
}

.list-group-item:hover,
.list-group-item:focus {
  z-index: 1;
  color: var(--brand-primary);
  text-decoration: none;
  background-color: var(--brand-light);
}

.list-group-item.active {
  z-index: 2;
  color: #fff;
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  padding: 0 0;
  margin-bottom: 1rem;
  list-style: none;
}

.breadcrumb-item + .breadcrumb-item {
  padding-left: 0.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
  float: left;
  padding-right: 0.5rem;
  color: var(--text-secondary);
  content: var(--bs-breadcrumb-divider, "/");
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Close Button */
.btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em 0.25em;
  color: #000;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='m.235.867 4.596-4.596a.5.5 0 1 1 .708.708L1.943 1.575l4.596 4.596a.5.5 0 0 1-.708.708L1.235 2.283.639 2.879a.5.5 0 0 1-.708-.708L4.527.575.235.867z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.5;
}

.btn-close:hover {
  color: #000;
  text-decoration: none;
  opacity: 0.75;
}

.btn-close:focus {
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(149, 191, 59, 0.25);
  opacity: 1;
}

/* Timeline-Styling - Exakt wie im Original, aber mit sMail-Farben */
.timeline {
  position: relative;
  padding-left: 30px;
  margin-bottom: 20px;
}

.timeline:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
}

.timeline-marker {
  position: absolute;
  left: -30px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6c757d;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e9ecef;
}

.timeline-marker-current {
  background: var(--brand-primary); /* sMail Grün statt #28a745 */
}

.timeline-content {
  padding-bottom: 10px;
  border-bottom: 1px solid #e9ecef;
}

.timeline-title {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.timeline-date {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 5px;
}

.timeline-location,
.timeline-info {
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.timeline-additional-code {
  margin-bottom: 2px;
}

/* Horizontale Timeline mit Pfeilen */
.status-timeline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0;
  position: relative;
  padding: 0 20px;
}

.status-timeline::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #e9ecef;
  z-index: 1;
}

.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  min-width: 120px;
}

.status-point {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #e9ecef;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px #e9ecef;
  margin-bottom: 10px;
  position: relative;
  z-index: 3;
}

.status-point-active {
  background-color: rgba(149, 191, 59, 0.3); /* sMail Grün mit Transparenz statt #b3e0ff */
  box-shadow: 0 0 0 2px var(--brand-primary); /* sMail Grün statt #0063a3 */
}

.status-label {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  color: #333;
  max-width: 120px;
  word-wrap: break-word;
}

.status-arrow {
  position: absolute;
  top: 50%;
  right: -15px;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.2rem;
  z-index: 2;
}

.status-details {
  margin-top: 10px;
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
}

.status-date {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .status-timeline {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 30px;
  }

  .status-timeline::before {
    top: 0;
    bottom: 0;
    left: 15px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .status-step {
    flex-direction: row;
    width: 100%;
    margin-bottom: 20px;
    align-items: flex-start;
  }

  .status-point {
    margin-right: 15px;
    margin-bottom: 0;
  }

  .status-label {
    text-align: left;
    max-width: none;
  }

  .status-arrow {
    display: none;
  }
}

/* Status Badge Styles - Angepasst an sMail-Farben */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-created {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.status-picked_up {
  background-color: #fff8e1;
  color: #ff8f00;
}

.status-in_transit {
  background-color: rgba(149, 191, 59, 0.1); /* sMail Grün mit Transparenz statt #e8f5e9 */
  color: var(--brand-primary); /* sMail Grün statt #2e7d32 */
}

.status-out_for_delivery {
  background-color: #fff3e0;
  color: #e65100;
}

.status-delivered {
  background-color: rgba(149, 191, 59, 0.2); /* sMail Grün mit Transparenz statt #e8f5e9 */
  color: var(--brand-primary); /* sMail Grün statt #2e7d32 */
}

.status-exception {
  background-color: #ffebee;
  color: #c62828;
}

.status-self_delivery {
  background-color: #e0f7fa;
  color: #006064;
}

.status-active {
  background-color: rgba(149, 191, 59, 0.2); /* sMail Grün mit Transparenz statt #e8f5e9 */
  color: var(--brand-primary); /* sMail Grün statt #2e7d32 */
}

.status-inactive {
  background-color: #ffebee;
  color: #c62828;
}

/* Dropdown-Menü Fixes - Angepasst an sMail-Farben */
#customer-suggestions-container {
  position: relative;
  margin-top: -1px;
  z-index: 9999 !important; /* Sehr hoher z-index */
}

#customer-suggestions {
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000 !important; /* Noch höherer z-index */
  background-color: #fff;
  border: 1px solid var(--brand-primary); /* sMail Grün statt #007bff */
  border-radius: .25rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175); /* Stärkerer Schatten */
  left: 0;
  right: 0;
}

.form-control[readonly] {
  background-color: #e9ecef;
  opacity: 1;
}

/* Ändern Sie die Klasse .selected-customer-info von grün zu sMail-Grün */
.selected-customer-info {
  background-color: rgba(149, 191, 59, 0.1); /* sMail Grün mit Transparenz statt #e3f2fd */
  border-color: var(--brand-primary); /* sMail Grün statt #b3e0ff */
  color: var(--brand-primary); /* sMail Grün statt #0d47a1 */
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  margin-bottom: 15px;
  font-weight: bold;
  text-align: center;
}

/* Stellen Sie sicher, dass das Dropdown-Menü nicht abgeschnitten wird */
.card-body {
  overflow: visible !important;
  position: relative; /* Hinzugefügt, um den z-index-Kontext zu erstellen */
}

/* Stellen Sie sicher, dass alle übergeordneten Container das Dropdown nicht abschneiden */
.container,
.row,
.col-md-6,
.col-md-12,
.card,
.card-body,
.form-group {
  overflow: visible !important;
}

/* Template-Vorschläge Styling */
#template-suggestions-container {
  position: relative;
  margin-top: -1px;
  z-index: 9999 !important;
}

#template-suggestions {
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000 !important;
  background-color: #fff;
  border: 1px solid var(--brand-primary); /* sMail Grün statt #007bff */
  border-radius: .25rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  left: 0;
  right: 0;
}

#template-suggestions .list-group-item {
  padding: 8px 12px;
  font-size: 0.9rem;
}

#template-suggestions .list-group-item:hover {
  background-color: rgba(149, 191, 59, 0.1); /* sMail Grün mit Transparenz statt #f8f9fa */
}

/* Verbesserte Styles für die Template-Suche */
#template-suggestions-container {
  position: relative;
  z-index: 9999 !important;
  margin-bottom: 15px;
}

#template-suggestions {
  position: absolute;
  width: 100%;
  max-height: 300px;
  overflow-y: auto;
  z-index: 10000 !important;
  background-color: #fff;
  border: 1px solid var(--brand-primary); /* sMail Grün statt #007bff */
  border-radius: .25rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
  left: 0;
  right: 0;
}

#template-suggestions .list-group-item {
  padding: 8px 12px;
  font-size: 0.9rem;
  cursor: pointer;
}

#template-suggestions .list-group-item:hover {
  background-color: rgba(149, 191, 59, 0.1); /* sMail Grün mit Transparenz statt #f8f9fa */
}

/* Stellen Sie sicher, dass alle Container das Dropdown nicht abschneiden */
.container,
.row,
.col-md-12,
.card,
.card-body,
.card-header {
  overflow: visible !important;
}

/* Stellen Sie sicher, dass das Suchfeld anklickbar ist */
#template_search {
  position: relative;
  z-index: 1001 !important;
}

/* Stellen Sie sicher, dass der Such-Button anklickbar ist */
#search-templates-btn {
  position: relative;
  z-index: 1001 !important;
}

/* Fügen Sie diese CSS-Regeln am Ende der Datei hinzu, um sicherzustellen, dass das Template-Suchfeld korrekt angezeigt wird und anklickbar ist */

/* Verbesserte Styles für die Template-Suche */
.card-header.d-flex {
  position: relative;
  z-index: 1;
  overflow: visible !important;
}

.form-inline {
  position: relative;
  z-index: 2;
}

.input-group-sm {
  position: relative;
  z-index: 3;
}

#template_search {
  position: relative;
  z-index: 1001 !important;
}

#search-templates-btn {
  position: relative;
  z-index: 1001 !important;
}

/* Stellen Sie sicher, dass der Card-Header das Suchfeld nicht überdeckt */
.card-header {
  overflow: visible !important;
}

/* Erhöhen Sie den z-index für das Template-Suchfeld */
.card-header .form-inline .input-group {
  position: relative;
  z-index: 1050 !important;
}

/* Stellen Sie sicher, dass das Dropdown über allem anderen liegt */
#template-suggestions {
  z-index: 1060 !important;
}

/* Füge am Ende der Datei diese Styles hinzu, um das Suchfeld hervorzuheben */

/* Hervorgehobenes Suchfeld für Empfänger-Vorlagen */
#template_search {
  border: 2px solid var(--brand-primary); /* sMail Grün statt #0063a3 */
  box-shadow: 0 0 5px rgba(149, 191, 59, 0.2); /* sMail Grün mit Transparenz statt rgba(0, 99, 163, 0.2) */
}

#template_search:focus {
  border-color: var(--brand-primary); /* sMail Grün statt #0063a3 */
  box-shadow: 0 0 8px rgba(149, 191, 59, 0.4); /* sMail Grün mit Transparenz statt rgba(0, 99, 163, 0.4) */
}

#search-templates-btn {
  background-color: var(--brand-primary); /* sMail Grün statt #0063a3 */
  border-color: var(--brand-primary); /* sMail Grün statt #0063a3 */
}

#search-templates-btn:hover {
  background-color: #a0c84c; /* Helleres sMail Grün statt #004e80 */
  border-color: #a0c84c; /* Helleres sMail Grün statt #004e80 */
}

/* Verbesserte Darstellung der Vorlagen-Ergebnisse */
#template-results .list-group-item {
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}

#template-results .list-group-item:hover {
  background-color: rgba(149, 191, 59, 0.1); /* sMail Grün mit Transparenz statt #f0f7ff */
  border-left: 4px solid var(--brand-primary); /* sMail Grün statt #0063a3 */
  transform: translateX(5px);
}

#template-results h6 {
  color: var(--brand-primary); /* sMail Grün statt #0063a3 */
  font-weight: 600;
}

/* Füge am Ende der Datei die Drag & Drop Styles hinzu */

/* Drag & Drop Styles für Bulk Shipment */
.drag-drop-area {
  border: 2px dashed #ccc;
  border-radius: 8px;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 20px;
  margin-bottom: 20px;
}

.drag-drop-hover {
  border-color: var(--brand-primary); /* sMail Grün statt #0063a3 */
  background-color: rgba(149, 191, 59, 0.05); /* sMail Grün mit Transparenz statt rgba(0, 99, 163, 0.05) */
}

.selected-file {
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 15px;
}

.selected-file-name {
  font-weight: 500;
}

.file-preview {
  padding: 10px;
}

/* Verbesserte Fortschrittsanzeige */
.progress {
  height: 10px;
  border-radius: 5px;
  margin-top: 15px;
  margin-bottom: 15px;
  overflow: hidden;
}

.progress-bar-animated {
  animation: progress-bar-stripes 1s linear infinite;
}

.progress-bar-striped {
  background-image: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.15) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    transparent 75%,
    transparent
  );
  background-size: 1rem 1rem;
}

/* Verbesserte Ergebnisdarstellung */
.result-summary-card {
  transition: all 0.3s ease;
  border-radius: 8px;
  margin-bottom: 20px;
}

.result-summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Verbesserte Badge-Styles */
.badge-success {
  background-color: var(--brand-primary); /* sMail Grün statt #28a745 */
  color: white;
}

.badge-danger {
  background-color: var(--brand-danger); /* sMail Rot statt #dc3545 */
  color: white;
}

.badge {
  padding: 0.5em 0.75em;
  font-weight: 500;
  border-radius: 4px;
}
