/* Eigenstaendige Styles - Tailwind kommt via CDN. */

/* Tab-Bar */
.tab-btn {
  background: transparent;
  color: rgba(207, 216, 227, 0.85);
  border: 1px solid transparent;
  border-bottom: none;
  position: relative;
  top: 1px;
  cursor: pointer;
  font-weight: 500;
}
.tab-btn.active {
  background: #f5f7fa;        /* arc-50 */
  color: #1f2837;             /* arc-900 */
  border-color: rgba(255,255,255,0.15);
}
.tab-btn:hover:not(.active) {
  color: white;
}

html { scroll-behavior: smooth; }

body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }

table { border-collapse: collapse; }
thead { position: sticky; top: 0; z-index: 1; }

/* Modal - Animation */
#detail-modal:not(.hidden) > div:last-child {
  animation: slidein .15s ease-out;
}
@keyframes slidein {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Custom Scrollbar in Sidebar-Listen */
aside [class*="overflow-y"] {
  scrollbar-width: thin;
  scrollbar-color: #cfd8e3 transparent;
}
aside [class*="overflow-y"]::-webkit-scrollbar { width: 6px; }
aside [class*="overflow-y"]::-webkit-scrollbar-thumb { background: #cfd8e3; border-radius: 3px; }

/* Status-Raster (Living-Forest-Stil): feste Slot-Positionen,
   leere Slots mit gestricheltem Rahmen erkennbar.
   Reihenfolge: Verkauf | Lebenszyklus | ML PL | Markt | KD LF */
.sg-grid {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  line-height: 1;
}
.sg-slot {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  font-size: 12px;
}
.sg-slot.empty {
  border-style: dashed;
  border-color: #b8c1cd;            /* etwas dunkler fuer besseren Kontrast (auch im Dark-Mode) */
  background: transparent;
}
.sg-slot.sg-text {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.sg-slot.sg-num {
  width: 38px;
  gap: 1px;
  font-size: 11px;
}
.sg-slot.sg-num small {
  font-size: 10px;
  font-weight: 600;
}
.sg-gap { width: 8px; display: inline-block; }

/* Mini-Header in der Status-Spalten-Ueberschrift,
   genau ausgerichtet ueber den 7 Status-Slots im Tabellen-Body.
   Emoji-Symbole werden etwas dezent dargestellt (Opacity), damit
   sie als Header und nicht als Daten gelesen werden. */
.sg-slot.sg-head {
  border: none;
  background: transparent;
  height: 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #6b7785;       /* arc-500 */
  padding: 0 2px;
  opacity: 0.7;
  filter: grayscale(0.3);
}
.sg-slot.sg-head:hover {
  opacity: 1;
  filter: none;
}
