/* ----------------------------------------------
   Global Styles & Google-Font (Poppins)
---------------------------------------------- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #f0f0f0, #dfeef4 60%, #f0f0f0);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  position: relative;
  color: #333;
}

.container {
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.08);
  width: 95%;
  max-width: 1500px;
  padding: 20px 30px;
  margin: 40px auto;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 10px;
}

.card-header {
  background: #008afc;
  color: #fff;
  padding: 6px 10px;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
}

.list-group {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list-group-item {
  padding: 6px 10px;
  border-bottom: 1px solid #eee;
}
.list-group-item:last-child {
  border-bottom: none;
}

.mb-3 {
  margin-bottom: 15px;
}

.limit-value.rate-warning {
  color: #e67e22;
  font-weight: 600;
}

.limit-value.rate-danger {
  color: #e21c21;
  font-weight: 600;
}

.filter-card .filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-card input,
.filter-card select {
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.filter-card button {
  padding: 6px 12px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}
header h1 {
  font-weight: 600;
  color: #008afc;
  margin-bottom: 10px;
}
header p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.dashboard-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.dashboard-main {
  flex: 1;
  min-width: 0;
}

.dashboard-side {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.status-card {
  padding: 12px;
}

.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.status-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #0f3c5d;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #999;
}

.status-metrics {
  display: grid;
  gap: 6px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.9rem;
  background: #f6f8fb;
  border-radius: 8px;
  padding: 6px 8px;
}

.status-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.status-btn {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background: #fff;
  cursor: pointer;
}

.status-btn.primary {
  background: #008afc;
  color: #fff;
  border-color: #008afc;
}

.status-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.status-error {
  display: none;
  margin-top: 8px;
  font-size: 12px;
  color: #b00020;
}

.status-empty {
  font-size: 12px;
  color: #6c757d;
  background: #f8f9fb;
  border-radius: 8px;
  padding: 6px 8px;
}

@media (max-width: 1100px) {
  .dashboard-row {
    flex-direction: column;
  }

  .dashboard-side {
    width: 100%;
  }

  .status-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Anleitung (Details) */
.instructions-details {
  margin: 10px auto;
  max-width: 600px;
  text-align: left;
}
.instructions-details summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
}
.instructions-details p {
  margin: 10px 0 0 15px;
}

/* Behebungstabellen */
.behebung-details {
  margin-bottom: 15px;
  padding: 14px 18px;
  border: 1px solid #e1e9f4;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,138,252,0.08), rgba(31,176,112,0.05));
  box-shadow: 0 10px 18px rgba(10,60,96,0.08);
}
.behebung-details summary {
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  outline: none;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f3c5d;
}
.behebung-details summary::-webkit-details-marker {
  display: none;
}
.behebung-details summary::before {
  content: '▸';
  font-size: 1.2rem;
  color: #008afc;
  transition: transform 0.2s ease;
}
.behebung-details[open] summary::before {
  transform: rotate(90deg);
}
.behebung-details summary .open-count {
  margin-left: auto;
}
.behebung-details summary.all-fixed,
.behebung-details summary.all-fixed::before {
  color: #1a7f37;
}
/* Badge fuer offene Eintraege neben der Behebungstabelle */
.open-count {
  background: #e21c21;
  color: #fff;
  border-radius: 12px;
  padding: 0 6px;
  margin-left: 6px;
  font-size: 1.1rem;
}
.open-count.zero-count {
  background: #1a7f37;
}

.manual-date-inputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 6px;
}

.manual-date-inputs label {
  font-size: 0.85rem;
  color: #0f3c5d;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.manual-date-inputs input[type="date"] {
  padding: 4px 6px;
  border: 1px solid #cfd6e4;
  border-radius: 6px;
}

.current-dates {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #54606d;
}

.col-launch-end {
  white-space: nowrap;
}

.preorder-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.preorder-item .item-title {
  font-size: 0.9rem;
  color: #0f3c5d;
}

.preorder-item .item-subtitle {
  font-size: 0.75rem;
  color: #54606d;
}

.variant-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 2px 8px;
  background: #eef6ff;
  border: 1px solid #a3c4ff;
  border-radius: 999px;
  font-size: 0.75rem;
  color: #0f3c5d;
  width: fit-content;
}

.profile-change {
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.profile-current {
  color: #54606d;
}

.no-suggestions-note {
  color: #8a6d3b;
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.85rem;
  margin-top: 6px;
}

.profile-target {
  color: #008afc;
}

.profile-arrow-icon {
  color: #1a7f37;
  font-weight: 700;
}

.fallback-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fallback-option {
  border: 1px dashed #cfd6e4;
  border-radius: 10px;
  padding: 8px;
  background: #f9fbff;
}

.fallback-option-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fallback-option-actions form button {
  width: 100%;
}

.cleanup-action-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fallback-hint {
  font-size: 0.75rem;
  color: #54606d;
  margin-top: 4px;
}

.warning-text {
  color: #e67e22;
  font-weight: 600;
  margin-top: 4px;
}

/* Abschnittstitel */
h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  font-weight: 600;
  color: #008afc;
}
h3 {
  font-weight: 500;
  margin-bottom: 10px;
}

hr {
  margin: 30px 0;
  border: none;
  border-top: 2px solid #eaeaea;
}

/* Upload-Sektion */
.upload-section {
  margin-bottom: 20px;
}

/* Drag & Drop */
.drag-drop-zone {
  border: 3px dashed #1fb070;
  padding: 30px;
  text-align: center;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-bottom: 20px;
}
.drag-drop-zone p {
  color: #777;
  font-weight: 500;
}
.drag-drop-zone.drag-over {
  background: #e0ffe0;
  border-color: #1fb070;
}

/* Produkt-Form */
.products-section {
  margin-bottom: 30px;
}
.toggle-all-btn {
  margin-bottom: 10px;
}

/* Produkt-Block */
.product-block {
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 10px;
  margin: 20px 0;
  padding: 20px;
  position: relative;
}
.use-product-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  margin-top: 5px;
}
label {
  display: block;
  margin-top: 12px;
  font-weight: 500;
}

/* Inputs */
input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  margin: 5px 0 15px 0;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border-color 0.3s;
}
input[type="text"]:focus,
textarea:focus {
  border-color: #008afc;
}
textarea {
  resize: vertical;
}

/* Drei Uploadboxen */
.dropzone-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.upload-box {
  flex: 1;
  color: #fff;
  padding: 10px;
  margin: 10px 0;
  border-radius: 10px;
  transition: transform 0.3s, background-color 0.3s;
  display: flex;
  flex-direction: column;
}
.upload-box h4 {
  margin-top: 0;
  font-weight: 500;
  margin-bottom: 10px;
}
.upload-box:hover {
  transform: translateY(-3px);
}
.box-transparent {
  background: #e21c21;
}
.box-resize {
  background: #555;
}
.box-videos {
  background: #008afc;
}
/* Neue Video Links Box */
.box-video-links {
  background: #ff9800;
}
.sortable-list {
  border: 2px dashed rgba(255,255,255,0.7);
  border-radius: 10px;
  min-height: 60px;
  padding: 10px;
  background: rgba(255,255,255,0.2);
  width: 100%;
}
.preview-img {
  max-width: 80px;
  display: block;
  margin-bottom: 5px;
}
.sortable-item {
  background: #fff;
  color: #333;
  padding: 5px 10px;
  margin: 5px 0;
  border-radius: 5px;
  cursor: move;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Download Icon */
.download-icon {
  margin-left: 8px;
  text-decoration: none;
  font-size: 1.2em;
  color: #fff;
  background: rgba(0,0,0,0.3);
  padding: 2px 5px;
  border-radius: 4px;
  transition: background-color 0.3s;
}
.download-icon:hover {
  background-color: rgba(0,0,0,0.6);
}

/* Buttons */
button {
  background: #008afc;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background-color 0.3s, transform 0.3s;
  display: inline-block;
}
button:hover {
  background-color: #1fb070;
  transform: translateY(-2px);
}

/* Reset Form Button (zusätzlich) */
#reset-form-btn {
  background: #e21c21;
}
#reset-form-btn:hover {
  background-color: #c00;
}

/* Meldungen */
#zip-messages,
#prod-messages {
  color: #e21c21;
  margin: 10px 0;
  font-weight: 500;
}

/* Overlay */
#wait-overlay {
  display: none;
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%; 
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  transition: 0.3s;
}
#wait-overlay.active {
  display: flex;
}
#progress-container {
  width: 300px;
  text-align: center;
}
#progress-bar {
  width: 100%;
  height: 30px;
  background: #ccc;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  margin-top: 10px;
}
#progress-fill {
  background: #1fb070;
  width: 0%;
  height: 100%;
  position: absolute;
  top: 0; 
  left: 0;
  transition: width 0.3s;
}

/* Dark Mode Toggle Panel (links) */
#side-panel {
  position: fixed;
  top: 20px;
  left: 20px;
  background: #fff;
  border: 2px solid #008afc;
  border-radius: 10px;
  padding: 10px 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  z-index: 999;
}
#side-panel .toggle-label {
  font-weight: 600;
  color: #008afc;
  cursor: pointer;
}

/* Sticky Keyboard (rechts) */
#sticky-keyboard {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #fff;
  border: 2px solid #008afc;
  border-radius: 10px;
  padding: 10px 15px;
  box-shadow: 0 0 15px rgba(0,0,0,0.05);
  z-index: 999;
}
#sticky-keyboard h4 {
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 600;
  color: #008afc;
  font-size: 1rem;
}
.symbol-btn {
  background: #008afc;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 10px;
  margin: 5px 5px 0 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}
.symbol-btn:hover {
  background: #1fb070;
}

/* Dark Mode Styles */
.dark-mode {
  background: #1f1f1f;
  color: #ccc;
}
.dark-mode .container {
  background: #2b2b2b;
}
.dark-mode h1, 
.dark-mode h2, 
.dark-mode h3, 
.dark-mode h4 {
  color: #93c2ff;
}
.dark-mode .instructions-details summary {
  color: #93c2ff;
}
.dark-mode .instructions-details p {
  color: #ccc;
}
.dark-mode hr {
  border-top-color: #333;
}
.dark-mode input[type="text"],
.dark-mode textarea {
  background: #444;
  color: #fff;
  border-color: #666;
}
.dark-mode input[type="text"]:focus,
.dark-mode textarea:focus {
  border-color: #008afc;
}
.dark-mode .product-block {
  background: #3a3a3a;
  border-color: #555;
}
.dark-mode .upload-box {
  background: #5f5f5f !important;
  color: #eaeaea;
  border-color: #777;
}
.dark-mode .sortable-list {
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
}
.dark-mode .sortable-item {
  background: #4c4c4c;
  border-color: #666;
  color: #e0e0e0;
}
.dark-mode button {
  background: #0070c0;
}
.dark-mode button:hover {
  background: #0a995e;
}
.dark-mode #zip-messages,
.dark-mode #prod-messages {
  color: #ffa8a8;
}
.dark-mode #side-panel {
  background: #333;
  border-color: #0070c0;
  color: #fff;
}
.dark-mode #side-panel .toggle-label {
  color: #93c2ff;
}
.dark-mode #sticky-keyboard {
  background: #333;
  border-color: #0070c0;
  color: #fff;
}
.dark-mode #sticky-keyboard h4 {
  color: #93c2ff;
}
.dark-mode .symbol-btn {
  background: #0070c0;
  color: #fff;
}
.dark-mode .symbol-btn:hover {
  background: #1fb070;
}
.dark-mode #side-panel {
  background: #333;
  border-color: #0070c0;
  color: #fff;
}

/* Table Styling */
.table-card {
  background: linear-gradient(135deg, rgba(0,138,252,0.06), rgba(31,176,112,0.08));
  border-radius: 16px;
  padding: 18px 22px 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
  margin-top: 25px;
}

.table-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #0b4b75;
  margin: 10px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-duration {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b4b75;
  background: #e8f2ff;
  border-radius: 999px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}

.total-duration-banner {
  margin: 10px 0 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #e8f7ef;
  color: #0b4b75;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.table-title::before {
  content: '';
  width: 6px;
  height: 26px;
  border-radius: 4px;
  background: linear-gradient(180deg, #008afc, #1fb070);
  display: inline-block;
}

.bulk-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 4px 0 2px;
}

.bulk-actions button {
  background: #0b7ac9;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.bulk-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.bulk-summary {
  font-size: 0.9rem;
  color: #0f3c5d;
}

.bulk-progress {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.bulk-progress-bar {
  width: 220px;
  max-width: 100%;
  background: #e8edf5;
  border-radius: 999px;
  overflow: hidden;
  height: 12px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}

.bulk-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(120deg, #008afc, #1fb070);
  transition: width 0.2s ease;
}

.bulk-progress-text {
  font-size: 0.9rem;
  color: #0f3c5d;
  font-weight: 600;
}

.bulk-progress-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.85rem;
}

.bulk-progress-entry a {
  font-weight: 600;
  color: #0b4b75;
}

.bulk-progress-entry.running {
  color: #a65c00;
}

.bulk-progress-entry.success {
  color: #1a7f37;
}

.bulk-progress-entry.failure {
  color: #e21c21;
}

.bulk-select-col {
  width: 70px;
  text-align: center;
}

.bulk-checkbox input {
  width: 18px;
  height: 18px;
}

.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.07);
  margin-top: 10px;
  table-layout: fixed;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: linear-gradient(120deg, #008afc, #1fb070);
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.data-table th:first-child {
  border-top-left-radius: 14px;
}

.data-table th:last-child {
  border-top-right-radius: 14px;
}

.data-table td {
  border-bottom: 1px solid #f1f3f6;
  background-color: #fff;
  word-break: break-word;
}

.data-table tbody tr:nth-child(even) td {
  background-color: #f9fbfd;
}

.data-table tbody tr:hover td {
  background: #ebf5ff;
}

.data-table .icon-check,
.data-table .icon-cross {
  font-size: 1.1rem;
}

.actionable-table {
  border: 1px solid rgba(0,138,252,0.2);
}

.inventory-table td:nth-child(1) {
  font-weight: 600;
}

.inventory-table td:nth-child(4),
.inventory-table td:nth-child(8),
.inventory-table td:nth-child(9) {
  font-variant-numeric: tabular-nums;
}

.inventory-table th a {
  color: #fff;
  text-decoration: none;
}

.inventory-table th a:hover {
  text-decoration: underline;
}



.table-scroll {
  width: 100%;
  overflow-x: auto;
  padding-bottom: 8px;
}
.table-scroll table {
  min-width: 960px;
}
.table-scroll::-webkit-scrollbar {
  height: 8px;
}
.table-scroll::-webkit-scrollbar-track {
  background: #f0f4f8;
  border-radius: 10px;
}
.table-scroll::-webkit-scrollbar-thumb {
  background: #008afc;
  border-radius: 10px;
}

.icon-check {
  color: #1fb070;
  font-weight: bold;
}

.icon-cross {
  color: #e21c21;
  font-weight: bold;
}

.desc-icon {
  cursor: pointer;
  color: #008afc;
}

#desc-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
#desc-overlay .desc-content {
  background: #fff;
  padding: 20px;
  max-width: 800px;
  max-height: 80%;
  overflow: auto;
  border-radius: 8px;
}

/* Filter boxes for Einzelartikel */
.filter-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
}
.filter-box {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}

/* Toggle boxes under Einzelartikel */
.single-filter {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-top: 4px;
}

/* Lade-Overlay und Fortschrittsbalken */
#loading-progress {
  width: 80%;
  background: #ccc;
  border-radius: 10px;
  overflow: hidden;
}
#loading-bar {
  height: 20px;
  width: 0;
  background: #1fb070;
}

/* Spinner beim Speichern */
.spinner {
  width: 12px;
  height: 12px;
  border: 2px solid #ccc;
  border-top-color: #008afc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Vorgeschlagene Artikel */
.suggested-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suggested-items img {
  width: 50px;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}
.item-image {
  min-width: 120px;
}
.item-image img {
  width: 80px;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e4ecf5;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.suggested-item {
  text-align: center;
  font-size: 0.8rem;
}
.suggested-item img {
  width: 50px;
  height: auto;
  display: block;
  margin: 0 auto 2px;
}

.row-warning {
  background: #ffe5e5;
}
.row-fade-out {
  opacity: 0.2;
  transform: translateX(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.no-problem {
  color: #086a3e;
  font-weight: 500;
  margin: 5px 0;
}

.no-problem .emoji {
  margin-left: 4px;
}

.subtle-note {
  margin: 0 0 10px;
  color: #54606d;
  font-size: 0.9rem;
}

/* Gesamtanzahl Probleme (Banner oben) */
.global-issue-banner{
  padding: 12px 16px;
  margin: 12px 0 18px 0;
  border-radius: 10px;
  background: #ffe5e5;
  color: #8a0000;
  font-size: 18px;
  font-weight: 600;
}

.global-issue-banner.ok{
  background: #e6ffef;
  color: #0a7a3d;
}


.ad-eligibility-card {
  padding: 12px;
}

.ad-eligibility-body {
  display: grid;
  gap: 8px;
}

.ad-eligibility-note {
  margin: 0;
  font-size: 0.85rem;
  color: #375066;
}

.ad-eligibility-status {
  min-height: 18px;
  font-size: 0.85rem;
}

.ad-eligibility-status.running {
  color: #8a5a00;
}

.ad-eligibility-status.ok {
  color: #1a7f37;
}

.ad-eligibility-status.error {
  color: #b00020;
}

.ad-eligibility-results {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.ad-eligibility-item,
.ad-eligibility-empty {
  border: 1px solid #e3e7ef;
  border-radius: 8px;
  background: #f7f9fc;
  padding: 8px;
  font-size: 0.82rem;
}

.ad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ad-pill {
  font-size: 0.72rem;
  border-radius: 20px;
  padding: 2px 8px;
  font-weight: 700;
}

.ad-pill.ok {
  background: #e6f4ea;
  color: #1a7f37;
}

.ad-pill.bad {
  background: #fde8e8;
  color: #b00020;
}

.ad-summary,
.ad-action,
.ad-reason {
  margin-top: 4px;
  line-height: 1.3;
}

.auth-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.9rem;
}
.logout-form { margin: 0; }
