/* ================================================== */
/* 🎨 LAYOUT & CONTAINER                            */
/* ================================================== */
#wrapper {
  height: 100%;
}

#content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

#content {
  flex: 1 0 auto;
}

footer.sticky-footer {
  flex-shrink: 0;
}

/* ================================================== */
/* 🖼️ MEDIATHEK GRID                                  */
/* ================================================== */
#mediathekGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}
.mediathek-col {
  flex: 0 0 19%;
  max-width: 19%;
  box-sizing: border-box;
}
.mediathek-col img {
  width: 100%;
  max-width: 250px;
  height: auto;
  max-height: 250px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  background: #f8f9fa;
}
@media (max-width: 1200px) {
  .mediathek-col {
    flex-basis: 24%;
    max-width: 24%;
  }
}
@media (max-width: 900px) {
  .mediathek-col {
    flex-basis: 32%;
    max-width: 32%;
  }
}
@media (max-width: 600px) {
  .mediathek-col {
    flex-basis: 48%;
    max-width: 48%;
  }
}
.accordion-button img.rounded-circle {
  border: 1.5px solid #dee2e6;
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(80, 80, 80, 0.09);
}

/* ================================================== */
/* 🧠 TOOLTIP DESIGN                                  */
/* ================================================== */
.tooltip .tooltip-inner {
  background-color: #0d6efd !important;
  color: #fff !important;
  border-radius: 0.375rem;
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 0.3rem 0.8rem rgba(0, 0, 0, 0.15);
}
.tooltip.bs-tooltip-top .tooltip-arrow::before {
  border-top-color: #0d6efd !important;
}
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
  border-bottom-color: #0d6efd !important;
}
.tooltip.bs-tooltip-start .tooltip-arrow::before {
  border-left-color: #0d6efd !important;
}
.tooltip.bs-tooltip-end .tooltip-arrow::before {
  border-right-color: #0d6efd !important;
}

/* ================================================== */
/* 🔐 PASSWORTSTÄRKE-ANZEIGE                          */
/* ================================================== */
#passwort-checklist li {
  list-style: none;
  margin-bottom: 4px;
}
#passwort-checklist li.valid::before {
  content: "\2714 ";
  color: green;
  font-weight: bold;
}
#passwort-checklist li.invalid::before {
  content: "\2716 ";
  color: red;
  font-weight: bold;
}
.is-invalid {
  border-color: red !important;
}
.form-control.is-valid {
  border-color: green !important;
}

#password-strength-status {
  padding: 5px 10px;
  color: #fff;
  border-radius: 5px;
  margin-top: 6px;
  font-size: 0.875rem;
  font-weight: bold;
}
.weak-password {
  background-color: #dc3545;
}
.medium-password {
  background-color: #ffc107;
}
.strong-password {
  background-color: #28a745;
}

.weak-password::before,
.medium-password::before,
.strong-password::before {
  content: "";
  display: inline-block;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  background-repeat: no-repeat;
  background-size: contain;
  vertical-align: middle;
}
.weak-password::before {
  background-image: url("https://marktkasse.com/assets/img/schlecht.png");
}
.medium-password::before {
  background-image: url("https://marktkasse.com/assets/img/mittel.png");
}
.strong-password::before {
  background-image: url("https://marktkasse.com/assets/img/stark.png");
}

/* ================================================== */
/* 📦 LAGERVERWALTUNG: UI ELEMENTE                   */
/* ================================================== */
.category-box {
  border: 1px solid #d0d0d0d0;
  border-radius: 0.75rem;
  background-color: #ffffff;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}
.sub-category {
  margin-top: 1rem;
  padding: 1rem;
  padding-left: 1rem;
  border-left: 3px solid #2ab3f7ff;
  background-color: #dbf2fdff;
}
.draggable {
  cursor: grab;
  padding: 1.5rem;
  margin-right: 1rem;
}
.droppable-hover {
  background-color: #f1f9ff !important;
}
.edit-button {
  cursor: pointer;
  color: var(--bs-gray-600);
}
.list-group-item .d-flex.justify-content-between {
  width: 100%;
  flex-wrap: nowrap;
  align-items: center;
}

/* ================================================== */
/* 🗑️  KATEGORIE LÖSCH-ICONS                         */
/* ================================================== */
.delete-sub,
.delete-haupt {
  opacity: 0.5;
  transition: opacity 0.2s ease, color 0.2s ease;
  color: #6c757d;
  cursor: pointer;
}
.delete-sub:hover,
.delete-haupt:hover,
.delete-sub:focus,
.delete-haupt:focus {
  opacity: 1;
  color: #dc3545;
  outline: none;
}

/* ================================================== */
/* 📑 NAVIGATIONSTABS                                 */
/* ================================================== */
.nav-tabs .nav-link.active {
  background-color: rgba(13, 110, 253, 0.1);
  border-color: #0d6efd #0d6efd #fff;
  color: #0d6efd;
  font-weight: 600;
}
.nav-tabs .nav-link:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* Plus-Tab zum Hinzufügen */
.add-subcat-tab {
  opacity: 0.6;
  transition: all 0.2s ease-in-out;
}
.add-subcat-tab:hover,
.add-subcat-tab:focus {
  opacity: 1;
  background-color: rgba(13, 110, 253, 0.08);
  border-radius: 0.375rem;
  color: #0d6efd;
}
.add-subcat-tab i.fa-plus {
  color: #6c757d;
  opacity: 0.6;
  transition: color 0.2s ease-in-out;
}
.add-subcat-tab:hover i.fa-plus {
  color: #0d6efd;
  opacity: 1;
}
/* Produkt Variantenliste */
.varianten-row td {
  background: #f8f9fa;
}
.varianten-list-item {
  padding-left: 2rem;
}
/* ================================================== */
/* 🗂️ FLATLIST DESIGN                                */
.flatlist-card {
  box-shadow: 0 0.15rem 0.6rem rgba(0, 0, 0, 0.07);
  border-radius: 0.5rem;
  border: 1px solid #e3e6f0;
  background: #fff;
  margin-bottom: 1.5rem;
}
.table.flatlist-table th {
  background: #f6f7fa;
  border-bottom: 2px solid #e3e6f0;
  font-weight: 600;
  color: #495057;
}
.table.flatlist-table th {
  background: #ffffff;
  padding: 0.18rem 0.4rem;
  vertical-align: middle;
  font-size: 0.92rem;
  line-height: 1.1;
}
.table.table.flatlist-table td {
  background: #f6f7fa;
  padding: 0.18rem 0.4rem;
  vertical-align: middle;
  font-size: 0.92rem;
  line-height: 1.1;
}
.table.variant-table td {
  background: #ffffff;
  padding: 0.18rem 0.4rem;
  vertical-align: middle;
  font-size: 0.92rem;
  line-height: 1.1;
}
.flatlist-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid #ddd;
}
.flatlist-actions {
  white-space: nowrap;
}
.flatlist-actions .btn {
  padding: 0.15rem 0.4rem;
  font-size: 0.92rem;
  margin-right: 2px;
}
.table.flatlist-table > tbody > tr:not(.flatlist-varianten-row) {
  background: #f6f7fa !important; /* hellgrau für Hauptproduktzeilen */
}
.flatlist-varianten-row,
.table.variant-table td {
  background: #ffffff !important; /* weiß für Variantenzeilen */
}
.navbar-search {
  display: none;
}
/* assets/css/notifier.css */
.dot {
  display: inline-block;
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
}
.dot-success {
  background: #198754;
}
.dot-danger {
  background: #dc3545;
}
.dot-warning {
  background: #ffc107;
}
.dot-info {
  background: #0dcaf0;
}

/* ================================================== */
/* 🧾 BARCODE-DRUCKSEITE (lager-barcode.php)          */
/* ================================================== */
[data-page="lager-barcode"] body,
body[data-page="lager-barcode"] {
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
body[data-page="lager-barcode"] .toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #dcdddeff;
  border-bottom: 1px solid #cbd5e1;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
body[data-page="lager-barcode"] {
  --cols: 3;
}
body[data-page="lager-barcode"] .grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: 12px;
}
body[data-page="lager-barcode"] .label {
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 6px 10px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
body[data-page="lager-barcode"] .label:hover {
  border-color: #3b82f6;
}
body[data-page="lager-barcode"] .label.selected {
  border-style: solid;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15) inset;
}
body[data-page="lager-barcode"] .text {
  font-size: var(--label-text-size, 12px);
  text-align: center;
  color: #0f172a;
  font-weight: var(--label-text-weight, 400);
}
body[data-page="lager-barcode"] .section-heading {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 600;
  background: #e9ecec;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #475569;
  margin-top: 4px;
  border: 1px solid #9fa7b1;
  border-radius: 6px;
  padding: 4px 8px;
}
body[data-page="lager-barcode"] .controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
body[data-page="lager-barcode"] .controls .form-label {
  font-weight: 600;
  color: #334155;
}
@media print {
  body[data-page="lager-barcode"] .toolbar {
    display: none;
  }
  body[data-page="lager-barcode"] .label {
    border: 0;
    page-break-inside: avoid;
  }
  @page {
    size: A4;
    margin: 12mm;
  }
  body[data-page="lager-barcode"] #filterPanel {
    display: none !important;
  }
  body[data-page="lager-barcode"] .d-flex.gap-3 > .flex-grow-1 {
    flex: 1 1 auto !important;
    width: 100% !important;
  }
}
/* leichte Einrückung für Subkategorien in der Sidebar */
body[data-page="lager-barcode"] #filterPanel .ms-3 {
  border-left: 2px solid #d0d1d2ff;
  padding-left: 8px;
  margin-left: 10px !important;
}
