/* Hauptstil für die Anwendung */
:root {
  --primary-color: #2e7d32;
  --primary-hover: #1b5e20;
  --secondary-color: #f9a825;
  --text-color: #333;
  --bg-light: #f5f5f5;
  --bg-card: #ffffff;
  --border-color: #e0e0e0;
  --error-color: #d32f2f;
  --success-color: #388e3c;
  --warning-color: #f57c00;
  --status-green: #4caf50;
  --status-orange: #ff9800;
  --status-red: #f44336;
  --status-blue: #2196F3; /* Blau für Überbestand */
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--text-color);
  background-color: var(--bg-light);
  line-height: 1.6;
}

/* Splashscreen */
.splashscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.splashscreen.hidden {
  opacity: 0;
}

.splash-content {
  text-align: center;
}

.splash-content img {
  max-width: 200px;
  margin-bottom: 20px;
}

.loader {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 5px solid var(--border-color);
  border-radius: 50%;
  border-top-color: var(--primary-color);
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Header */
.app-header {
  background-color: var(--bg-card);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.status-bar {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  height: 60px;
}

.logo-container {
  margin-right: 20px;
}

.search-container {
  position: relative;
  display: flex;
  align-items: center;
  flex-grow: 1;
  max-width: 300px;
  margin: 0 10px;
}

.search-container input {
  width: 100%;
  padding: 8px 12px 8px 35px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.search-icon {
  position: absolute;
  left: 10px;
  color: #757575;
  transition: opacity 0.2s ease;
}

#searchInput {
  border: none;
  background: transparent;
  width: 100%;
  padding: 5px;
  font-size: 16px;
  outline: none;
  padding-left: 35px; /* Konstanter Abstand für Konsistenz */
}

.standort-dropdown {
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background-color: var(--bg-card);
  margin-right: 15px;
  cursor: pointer;
}

.user-info {
  display: flex;
  align-items: center;
  margin-right: 15px;
  margin-left: auto;
  text-decoration: none;
  color: var(--text-color);
}

.role-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  margin-left: 10px;
}

.role-badge.admin {
  background-color: var(--primary-color);
  color: white;
}

.role-badge.user {
  background-color: var(--secondary-color);
  color: black;
}

.role-badge.moderator {
    background-color: #9c27b0; /* Lila für Moderatoren */
    color: white;
}

.logout-btn {
  color: var(--text-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logout-btn:hover {
  background-color: var(--bg-light);
}

/* Hauptinhalt */
main {
  padding: 20px;
  padding-bottom: 85px; /* Platz für die untere Navigation */
}

h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
  font-weight: 500;
}

/* Dashboard */
.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: 500;
}

/* Dashboard-Card-Value */
.dashboard-cards .card-value {
  font-size: 24px;
  font-weight: 500;
  color: var(--primary-color);
}

/* Tabellen */
.recent-transactions {
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.recent-transactions h3 {
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

thead th {
  padding: 10px;
  border-bottom: 2px solid var(--border-color);
  font-weight: 500;
}

tbody td {
  padding: 10px;
  border-bottom: 1px solid var(--border-color);
}

/* Artikel-Listen */
.section {
  display: none;
}

.section.active {
  display: block;
}

/* Filter und Sortierung */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
}

.filter-controls select, 
.sort-controls select {
  background-color: white;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  min-width: 120px;
}

.sort-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.sort-controls label {
  color: #757575;
  font-size: 14px;
}

#sort-direction {
  background: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

#sort-direction i {
  color: #757575;
}

.add-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: auto;
}

.add-btn:hover {
  background: var(--primary-hover);
}

/* Artikelkarten */
.artikel-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 20px;
  max-width: 1600px; /* Maximum von 5 Karten bei 1600px Breite */
  margin: 0 auto;
}

.artikel-card {
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transition: opacity 0.3s;
  height: 100%;
}

.artikel-card.hidden {
  display: none;
}

.artikel-card.filtered {
  opacity: 0.5;
}

.card-header {
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  background-color: #f9f9f9;
}

.card-title {
  font-weight: 500;
  font-size: 16px;
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
  line-height: 1.3;
  hyphens: auto;
}

.standort-badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  margin-left: 8px;
}

.standort-dankelsheim {
  background-color: #e3f2fd;
  color: #0d47a1;
}

.standort-freden {
  background-color: #e8f5e9;
  color: #1b5e20;
}

.card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Verbesserte Bilddarstellung */
.card-image-container {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.card-image {
  max-width: 100%;
  max-height: 150px;
  object-fit: contain;
  border-radius: 4px;
}

.card-info {
  flex-grow: 1;
  width: 100%;
}

.card-row {
  margin-bottom: 8px;
  display: flex;
}

.card-label {
  width: 85px;
  min-width: 85px;
  color: #757575;
}

.card-row .card-value {
  flex-grow: 1;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Spezifische Statusstylen */
.artikel-card .card-value .status-count {
  font-size: 16px;
  font-weight: 500;
}

.artikel-card .card-value.notes-value {
  font-size: 14px;
  font-weight: normal;
  color: #555;
  max-height: 60px;
  overflow-y: auto;
}

.status-indicator {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 5px;
}

.status-green {
  background-color: var(--status-green);
}

.status-orange {
  background-color: var(--status-orange);
}

.status-red {
  background-color: var(--status-red);
}

.status-blue {
  background-color:  var(--status-blue)
}


.card-footer {
  padding: 12px 15px;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background-color: #fafafa;
}

.card-action {
  padding: 10px 12px;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.card-action:hover {
  background: rgba(46, 125, 50, 0.1);
}

/* Bottom Navigation */
.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: var(--bg-card);
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;
  padding: 0 10px;
  z-index: 90;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px;
  flex: 1;
  background: transparent;
  border: none;
  color: #757575;
  cursor: pointer;
}

.bottom-nav-item.active {
  color: var(--primary-color);
}

.bottom-nav-item i {
  font-size: 20px;
  margin-bottom: 2px;
}

.bottom-nav-item span {
  font-size: 10px;
}

.bottom-nav-add-wrapper {
  position: relative;
  width: 70px;
  height: 70px;
  margin-top: -30px;
}

.add-button {
  position: absolute;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  top: 0;
  left: 5px;
  z-index: 100;
}

.add-button i {
  font-size: 30px;
}

.add-button:hover {
  background: var(--primary-hover);
}

/* Modal */
.app-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-light);
  z-index: 200;
  display: none;
  flex-direction: column;
}

.app-modal.visible {
  display: flex;
}

.modal-header {
  background: var(--primary-color);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
}

.modal-header h2 {
  flex-grow: 1;
  color: white;
  margin: 0;
}

.icon-button {
  background: transparent;
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.close-modal {
  margin-right: 10px;
}

.save-modal {
  margin-left: 10px;
}

.modal-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 20px;
}

/* Formular */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
}

.form-group textarea {
  height: 100px;
  resize: vertical;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0;
}

.form-row .form-group {
  flex: 1;
}

/* Verbesserte Image-Upload-UI */
.image-upload-container {
  margin-top: 10px;
}

.image-preview {
  width: 100%;
  height: 180px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  cursor: pointer;
}

.image-preview.has-image {
  border: none;
  background-color: transparent;
}

.image-preview.has-image img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

.upload-icon {
  font-size: 48px;
  color: #aaa;
  margin-bottom: 10px;
}

.image-preview span {
  color: #888;
  font-size: 14px;
}

.hidden-input {
  display: none;
}

.btn-remove-image {
  display: none;
  width: 100%;
  padding: 8px 0;
  background-color: #fff;
  color: var(--error-color);
  border: 1px solid var(--error-color);
  border-radius: 4px;
  text-align: center;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 5px;
}

.btn-remove-image.visible {
  display: block;
}

.btn-remove-image:hover {
  background-color: #ffebee;
}

/* Artikel-Historie */
.article-history {
  margin-top: 20px;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
  display: none;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
}

.history-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.history-icon {
  margin-right: 10px;
}

.history-icon i {
  font-size: 18px;
}

.history-item.in .history-icon i {
  color: var(--success-color);
}

.history-item.out .history-icon i {
  color: var(--warning-color);
}

.history-details {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.history-amount {
  font-weight: 500;
}

.history-item.in .history-amount {
  color: var(--success-color);
}

.history-item.out .history-amount {
  color: var(--warning-color);
}

.history-info {
  font-size: 0.9em;
  color: #757575;
}

.history-user {
  margin-left: 8px;
}

.no-history {
  text-align: center;
  color: #757575;
  font-style: italic;
  padding: 10px 0;
}

/* Bestandsänderungsmodal */
.adjust-modal {
  background: white;
  margin-top: 15px;
  border-top: 1px solid #e0e0e0;
  padding-top: 15px;
}

.adjust-modal h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.button-row {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 15px;
}

.btn-primary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

.btn-secondary:hover {
  background: rgba(46, 125, 50, 0.1);
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 150;
  display: none;
}

.overlay.visible {
  display: block;
}

/* Ordneransicht mit externen Links */
.folder-tree {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.folder-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.folder {
  margin-bottom: 12px;
}

.folder-header {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  cursor: pointer;
  border-radius: 4px;
  background-color: #f5f5f5;
  transition: background-color 0.2s, transform 0.1s;
  text-decoration: none;
  color: var(--text-color);
}

.folder-header:hover {
  background-color: #e8f5e9;
  transform: translateY(-2px);
}

.folder-icon {
  color: var(--primary-color);
  margin-right: 10px;
  font-size: 24px;
}

.external-icon {
  margin-left: auto;
  font-size: 18px;
  color: #757575;
}

.subfolder-list {
  list-style: none;
  padding-left: 30px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.subfolder-list.expanded {
  max-height: 500px;
}

/* Info-Bereich */
.info-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .info-content {
    grid-template-columns: 1fr 1fr;
  }
}

.info-content .card {
  padding: 20px;
}

.info-content h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.info-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.info-content a:hover {
  text-decoration: underline;
}

/* Status-Legende */
.status-legend {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}

.status-legend li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.status-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 10px;
}

.status-dot.red {
  background-color: var(--status-red);
}

.status-dot.orange {
  background-color: var(--status-orange);
}

.status-dot.green {
  background-color: var(--status-green);
}

.status-dot.blue {
  background-color: var(--status-blue);
}

/* Verbesserter Changelog */
.changelog {
  max-height: 400px;
  overflow-y: auto;
  padding-right: 10px;
}

.changelog h4 {
  margin: 15px 0 8px 0;
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
}

.changelog h4:first-child {
  margin-top: 0;
}

.changelog ul {
  margin: 0 0 15px 0;
  padding-left: 20px;
}

.changelog li {
  margin-bottom: 3px;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  grid-column: 1 / -1;
}

.empty-icon {
  font-size: 64px;
  color: #bdbdbd;
  margin-bottom: 15px;
}

/* Loading-Spinner */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  border-top: 4px solid var(--primary-color);
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

/* Mobile-Anpassungen */
@media (max-width: 767px) {
  .filter-controls {
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-controls select, 
  .sort-controls select {
    width: 100%;
  }
  
  .sort-controls {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }
  
  .sort-controls label {
    flex-grow: 0;
  }
  
  /* Formular-Layout für mobile Geräte */
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .form-row .form-group {
    width: 100%;
    margin-right: 0;
  }
  
  /* Karten-Layout optimieren */
  .card-content {
    flex-direction: column;
  }
  
  .card-image-container {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  .card-image {
    max-width: 100%;
    height: auto;
    max-height: 150px;
    margin-right: 0;
  }
  
  .card-info {
    width: 100%;
  }
  
  /* Verbesserte Touch-Ziele */
  .card-action, 
  .icon-button,
  .btn-primary,
  .btn-secondary {
    padding: 10px 12px;
    min-height: 44px;
  }
  
  /* Bessere Formularelemente für Touch */
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 12px 10px;
    font-size: 16px; /* verhindert Zoom auf iOS */
  }
  
  /* Verwendung der vollständigen Breite */
  main {
    padding: 10px;
  }
  
  .artikel-cards {
    padding: 0;
    gap: 10px;
  }
  
  /* Anpassung der Abstände */
  .card-header, 
  .card-content, 
  .card-footer {
    padding: 10px;
  }
  
  .artikel-card {
    margin-bottom: 15px;
  }
  
  .card-footer {
    padding: 12px;
    display: flex;
    gap: 10px;
  }
  
  .card-footer button {
    flex: 1;
    padding: 10px 0;
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .button-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .folder-header {
    padding: 15px;
  }
  
  .status-bar {
    padding: 10px;
  }
  
  .search-container {
    margin-right: 5px;
  }
  
  .logo-container {
    margin-right: 10px;
  }
  
  /* Tabellenkopf ausblenden und Zeilen als Karten darstellen */
  #recent-transactions-table thead {
    display: none;
  }
  
  #recent-transactions-table tbody tr {
    display: block;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  #recent-transactions-table tbody td {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border: none;
  }
  
  #recent-transactions-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    margin-right: 5px;
  }
  
  /* Dezenter Hinweistext in hellgrau für optionale Felder im Formular */
.optional-hint {
    color: grey;
    font-size: 0.95em;
    font-weight: normal;
}

  /* Positive/Negative Werte hervorheben */
  td.positive-amount {
    color: var(--success-color);
  }
  
  td.negative-amount {
    color: var(--error-color);
  }
}

/* Noch kleinere Bildschirme */
@media (max-width: 374px) {
  .card-footer {
    flex-direction: column;
    gap: 8px;
  }
  
  .card-action {
    width: 100%;
  }
  
  .modal-header h2 {
    font-size: 16px;
  }
  
  .user-info span:first-child {
    display: none;
  }
}
/* Kartenbasiertes Layout für das Aktivitätsprotokoll (Desktop & Mobile) */
.recent-transactions table {
    border-collapse: separate;
    border-spacing: 0 10px;
    width: 100%;
}

/* Kopfzeile subtiler gestalten */
.recent-transactions thead th {
    color: #757575;
    font-size: 14px;
    font-weight: 500;
    border-bottom: none;
    text-align: left;
    padding: 5px 15px;
}

/* Jede Zeile als Karte darstellen */
.recent-transactions tbody tr {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.recent-transactions tbody tr:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

/* Zellen-Styling */
.recent-transactions tbody td {
    padding: 12px 15px;
    border: none;
    border-top: 1px solid #f5f5f5;
    border-bottom: 1px solid #f5f5f5;
}

/* Erste und letzte Zelle abrunden */
.recent-transactions tbody td:first-child {
    border-left: 1px solid #f5f5f5;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.recent-transactions tbody td:last-child {
    border-right: 1px solid #f5f5f5;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Styling für positive und negative Werte */
.positive-amount {
    color: var(--success-color) !important;
    font-weight: 500;
}

.negative-amount {
    color: var(--error-color) !important;
    font-weight: 500;
}

/* Beibehalten des mobilen Kartendesigns */
@media (max-width: 767px) {
    .recent-transactions thead {
        display: none;
    }
    
    .recent-transactions tbody tr {
        display: block;
        margin-bottom: 10px;
    }
    
    .recent-transactions tbody td {
        display: flex;
        justify-content: space-between;
        border-radius: 0 !important;
        border: none;
    }
    
    .recent-transactions tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        margin-right: 5px;
    }
}
/* Icon für Bestandsänderungen */
.change-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 14px;
}

.change-icon.positive {
    background-color: rgba(56, 142, 60, 0.1);
    color: var(--success-color);
}

.change-icon.negative {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--error-color);
}

/* Mengen-Zelle mit Icon ausrichten */
td.change-cell {
    display: flex !important;
    align-items: center;
}

@media (max-width: 767px) {
    td.change-cell {
        display: flex !important;
        justify-content: space-between !important;
    }
    
    .change-value {
        display: flex;
        align-items: center;
    }
}
/* Verbesserte Darstellung der Bestandsänderungen */
.change-cell {
    display: flex !important;
    align-items: center !important;
}

.change-type {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-right: 8px;
}

.change-type.in {
    background-color: rgba(56, 142, 60, 0.1);
    color: var(--success-color);
}

.change-type.out {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--error-color);
}

.change-type.neutral {
    background-color: rgba(158, 158, 158, 0.1);
    color: #757575;
}

.change-value {
    font-weight: 500;
}

.positive-amount .change-value {
    color: var(--success-color);
}

.negative-amount .change-value {
    color: var(--error-color);
}

.neutral-amount .change-value {
    color: #757575;
}

@media (max-width: 767px) {
    .change-cell {
        justify-content: space-between !important;
    }
    
    .change-cell::before {
        content: attr(data-label);
        font-weight: 600;
    }
    
    .change-display {
        display: flex;
        align-items: center;
    }
}
.bug-report-info {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.bug-report-info h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.bug-report-info ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.bug-report-info li {
    margin-bottom: 5px;
}
/* Übermengen-Badge */
.overage-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: #f5f5f5;
  font-size: 12px;
  font-weight: 600;
  color: #ff6d00; /* Kräftiges Orange */
}

/* Icon für visuelle Verstärkung */
.overage-badge i {
  font-size: 14px;
  margin-right: 3px;
  color: #2196F3;
}

/* Hervorhebung der Bestandsanzeige bei Überbestand */
.stock-overage {
  background-color: rgba(255, 109, 0, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}