:root {
    --color-bg: #000000;            /* Hintergrund */
    --color-bg-elevated: #050505;
    --color-surface: #050505;
    --color-border: #1f2937;
    --color-primary: #bc9c22;       /* North Trade Gold */
    --color-primary-soft: rgba(188, 156, 34, 0.14);
    --color-primary-strong: #8f7116;
    --color-text: #e5e7eb;
    --color-text-muted: #9ca3af;
    --color-danger: #ef4444;
    --radius-lg: 18px;
    --radius-pill: 999px;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.8);
    --shadow-header: 0 14px 35px rgba(0, 0, 0, 0.95);
    --space: 1.2rem;
    --font-base: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
      "Segoe UI", sans-serif;
  }
  
  *,
  *::before,
  *::after {
    box-sizing: border-box;
  }
  
  html,
  body {
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: var(--font-base);
    background: radial-gradient(circle at top, #111827 0, #000 50%, #000 100%);
    color: var(--color-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
  }
  
  /* --- App Layout --- */
  
  .clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
  
  .app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  
  .app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.97),
        rgba(10, 10, 10, 0.95)
      ),
      radial-gradient(circle at top left, rgba(188, 156, 34, 0.22), transparent);
    border-bottom: 1px solid rgba(188, 156, 34, 0.35);
    box-shadow: var(--shadow-header);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
  }
  
  .brand-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
  }
  
  .brand {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
  }
  
  .brand-title {
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f9fafb;
  }
  
  .brand-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
  }
  
  .header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.35rem;
  }
  
  .user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: var(--radius-pill);
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.78rem;
    color: #e5e7eb;
  }
  
  .user-chip-role {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(188, 156, 34, 0.22);
    color: #facc15;
  }
  
  .app-main {
    flex: 1;
    padding: 1rem;
    max-width: 960px;
    width: 100%;
    margin: 0 auto 4.8rem auto; /* Platz für Bottom Nav */
  }
  
  /* --- Karten / Container --- */
  
  .card {
    background: radial-gradient(circle at top, #020617 0, #020617 45%, #000 100%);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.2rem 1.1rem;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(31, 41, 55, 0.95);
    position: relative;
    overflow: hidden;
  }
  
  .card + .card {
    margin-top: 1rem;
  }
  
  .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.9rem;
  }
  
  .card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #f9fafb;
  }
  
  .card-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-muted);
  }
  
  /* --- Typografie --- */
  
  h1,
  h2,
  h3 {
    margin: 0 0 0.75rem;
  }
  
  h1 {
    font-size: 1.1rem;
    font-weight: 600;
  }
  
  h2 {
    font-size: 1rem;
    font-weight: 600;
  }
  
  h3 {
    font-size: 0.95rem;
    font-weight: 600;
  }
  
  p {
    margin: 0.25rem 0;
    font-size: 0.85rem;
  }
  
  /* --- Buttons & Links --- */
  
  a {
    color: var(--color-primary);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-strong));
    color: #f9fafb;
    font-weight: 500;
    font-size: 0.85rem;
    box-shadow: 0 10px 30px rgba(188, 156, 34, 0.5);
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  }
  
  .btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.04);
    box-shadow: 0 14px 35px rgba(188, 156, 34, 0.7);
  }
  
  .btn-outline {
    background: transparent;
    border: 1px solid rgba(148, 163, 184, 0.6);
    box-shadow: none;
    color: #e5e7eb;
  }
  
  .btn-outline:hover {
    border-color: var(--color-primary);
  }
  
  .btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.45);
  }
  
  .btn-logout {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
  }
  
  /* --- Formulare --- */
  
  form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }
  
  label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.15rem;
  }
  
  input,
  select,
  textarea {
    width: 100%;
    border-radius: 0.7rem;
    border: 1px solid rgba(51, 65, 85, 0.95);
    padding: 0.55rem 0.7rem;
    font-size: 0.85rem;
    background: rgba(15, 23, 42, 0.96);
    color: var(--color-text);
    outline: none;
  }
  
  input:focus,
  select:focus,
  textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 1px rgba(188, 156, 34, 0.55);
  }
  
  textarea {
    resize: vertical;
    min-height: 70px;
  }
  
  /* Fehler / Hinweise */
  
  .alert {
    border-radius: 0.7rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .alert-error {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.45);
    color: #fecaca;
  }
  
  /* --- Tabellen (mobil scrollable) --- */
  
  .table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-top: 0.6rem;
  }
  
  table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    min-width: 580px;
  }
  
  th,
  td {
    padding: 0.45rem 0.5rem;
    border-bottom: 1px solid rgba(31, 41, 55, 0.95);
    text-align: left;
  }
  
  th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
  }
  
  tbody tr:hover {
    background: rgba(15, 23, 42, 0.92);
  }

  /* Zeilen, in denen jemand länger als 10 Stunden eingeloggt ist */
.active-row-long {
  background-color: rgba(255, 165, 0, 0.18); /* leichtes Orange */
  border-left: 4px solid #ff9800;
}
  
  /* --- Bottom Navigation (mobil) --- */
  
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    backdrop-filter: blur(16px);
    background: radial-gradient(circle at top, rgba(0, 0, 0, 0.98), #020617);
    border-top: 1px solid rgba(188, 156, 34, 0.4);
    padding: 0.5rem 0.7rem 0.75rem;
    z-index: 40;
  }
  
  .bottom-nav-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    justify-content: space-around; /* zentrierte Buttons */
    align-items: center;
    gap: 0.6rem;
  }
  
  .bottom-nav a {
    flex: 1;
    text-decoration: none;
  }
  
  .bottom-nav-btn {
    width: 100%;
    border-radius: 999px;
    padding: 0.6rem 0.4rem;
    font-size: 0.82rem;           /* größer */
    text-align: center;           /* zentriert */
    border: 1px solid transparent;
    color: var(--color-text-muted);
    background: transparent;
  }
  
  .bottom-nav-btn span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  /* Optional: aktive Markierung – pro Seite per Klasse setzen, wenn du willst */
  .bottom-nav-btn-active {
    background: var(--color-primary-soft);
    color: #facc15;
    border-color: rgba(188, 156, 34, 0.7);
  }
  
  /* Desktop-Feinschliff */
  @media (min-width: 768px) {
    .app-main {
      padding-top: 1.5rem;
    }
  }
  
/* --- Dashboard Menü-Buttons --- */

.menu-card {
    margin-top: 1rem;
  }
  
  .menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.7rem;
    margin-top: 0.3rem;
  }
  
  .menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 0.9rem 0.7rem;
    border: 1px solid rgba(188, 156, 34, 0.35);
    background: radial-gradient(circle at top, rgba(188, 156, 34, 0.26), #020617);
    color: #f9fafb;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.75);
    text-decoration: none;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease,
      border-color 0.08s ease;
  }
  
  .menu-button span {
    display: block;
  }
  
  .menu-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    border-color: rgba(188, 156, 34, 0.8);
    text-decoration: none;
  }
  
  .menu-button-secondary {
    background: rgba(15, 23, 42, 0.96);
    border-color: rgba(75, 85, 99, 0.9);
    color: #e5e7eb;
  }
  
  .menu-button-secondary:hover {
    border-color: rgba(188, 156, 34, 0.7);
  }
  
  /* auf größeren Screens 3 Spalten */
  @media (min-width: 640px) {
    .menu-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  
  /* ---------- Admin Mitarbeiterseite ---------- */

.app {
  min-height: 100vh;
  background: #050505;
  color: #f7f7f7;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-header {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #050505;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.user-chip {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(188,156,34,0.12);
  border: 1px solid rgba(188,156,34,0.35);
  display: flex;
  flex-direction: column;
}

.user-chip-name {
  font-size: 0.78rem;
  font-weight: 600;
}

.user-chip-role {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.7);
}

.app-main {
  padding: 0.75rem;
  max-width: 1100px;
  margin: 0 auto 2rem auto;
}

/* Cards */

.card {
  background: rgba(10,10,10,0.95);
  border-radius: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 0.9rem 1rem;
  box-shadow: 0 18px 45px rgba(0,0,0,0.45);
}

.card-compact {
  padding: 0.75rem 1rem;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 700;
}

.card-subtitle {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.65);
  margin-top: 0.1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
  background: #bc9c22;
  color: #050505;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(188,156,34,0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn-outline {
  background: transparent;
  color: #f7f7f7;
  border: 1px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.06);
}

.btn-primary {
  background: #bc9c22;
  color: #050505;
}

.btn-logout {
  font-size: 0.78rem;
}

.btn-small {
  font-size: 0.75rem;
  padding: 0.35rem 0.7rem;
}

.btn-xs {
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
}

.btn-danger {
  background: #b3261e;
  color: #fff;
}

/* Formular Layout */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.form-group label {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.2rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(15,15,15,0.95);
  color: #f7f7f7;
  font-size: 0.8rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #bc9c22;
  box-shadow: 0 0 0 1px rgba(188,156,34,0.5);
}

.form-actions {
  margin-top: 0.4rem;
}

/* Ab ~700px zwei Spalten für das Formular */

@media (min-width: 700px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
  }
}

/* Tabelle */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 0.4rem;
}

.nt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  min-width: 680px;
}

.nt-table thead {
  background: rgba(255,255,255,0.04);
}

.nt-table th,
.nt-table td {
  padding: 0.45rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
}

.nt-table th {
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.7);
}

.nt-table tr:hover td {
  background: rgba(255,255,255,0.02);
}

.table-main-text {
  font-size: 0.8rem;
  font-weight: 600;
}

.table-sub-text {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.55);
}

/* Tags & Badges */

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid transparent;
}

.tag-user {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
}

.tag-admin {
  border-color: rgba(188,156,34,0.8);
  background: rgba(188,156,34,0.15);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
}

.badge-active {
  background: rgba(35, 134, 54, 0.25);
  color: #71f28a;
}

.badge-inactive {
  background: rgba(179, 38, 30, 0.25);
  color: #ffb4a9;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.row-vacation {
  background: rgba(179, 38, 30, 0.18);
}

/* Button-Zeile im Kalender (ICS-Buttons) */
.calendar-button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* Gleiche Höhe für beide Buttons */
.calendar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px !important;
  padding: 0 14px !important;
  font-size: 0.85rem;
  line-height: 1;
}

/* Erfolgsmeldung beim Kopieren der URL */
.copy-success-msg {
  display: none;
  color: #71f28a;
  font-size: 0.8rem;
}

/* ---------- Monatskalender im Admin-Dashboard ---------- */

.calendar-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.25rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.calendar-month-title,
.calendar-month {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Punkte für Status */
.calendar-day-dots {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.calendar-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

/* Farben: blau Urlaub, rot Krankheit, lila Event, grün Verfügbarkeit */
.calendar-dot-vacation {
  background: #2196f3; /* blau */
}

.calendar-dot-sick {
  background: #e53935; /* rot */
}

.calendar-dot-event {
  background: #a855f7; /* lila */
}

.calendar-dot-availability {
  background: #4caf50; /* grün */
}

/* Punkt für "Heute" in der Legende */
.calendar-dot-today {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 2px solid #bc9c22;
  background: transparent;
}

/* Legende unter/über dem Kalender */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
}

.calendar-legend span,
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

/* NEUE Farben */
.legend-dot-event {
  background: #a855f7; /* lila – Event */
}

.legend-dot-vacation {
  background: #2196f3; /* blau – Urlaub */
}

.legend-dot-sick {
  background: #e53935; /* rot – Krankheit */
}

.legend-dot-today {
  background: #bc9c22; /* gold – Heute */
}

.legend-dot-availability {
  background: #22c55e; /* grün – Verfügbarkeit */
}

/* Marker-Punkte in den Zellen */
.marker {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

.marker-event {
  background: #a855f7; /* lila */
}

.marker-vacation {
  background: #2196f3; /* blau */
}

.marker-sick {
  background: #e53935; /* rot */
}

/* NEU: Marker für Verfügbarkeiten */
.marker-availability {
  background: #22c55e; /* grün */
}

.calendar-grid-wrapper {
  margin-top: 0.25rem;
}

/* Wochentage-Zeile */
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.4rem;
}

.calendar-weekdays > div {
  padding: 0.15rem 0;
}

/* Tageszellen-Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

/* Basis für jede Zelle */
.calendar-cell {
  border-radius: 0.75rem;
  background: #050608;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 3.1rem;
  padding: 0.3rem 0.35rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* leere Zellen (vor dem 1. usw.) */
.calendar-cell.empty {
  background: transparent;
  border: none;
}

/* Button, der als „Kachel“ aussehen soll */
.day-cell {
  width: 100%;
  text-align: left;
  color: #fff;
  cursor: default;
  background: transparent;
  border: none;
  padding: 0;
}

.day-cell:hover {
  background: rgba(255, 255, 255, 0.03);
}

.day-cell.has-data {
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(188, 156, 34, 0.35);
}

/* heutiger Tag */
.day-cell.today {
  outline: 2px solid #bc9c22;
  outline-offset: -2px;
}

.day-number {
  font-size: 0.8rem;
  font-weight: 500;
}

.day-markers {
  display: flex;
  gap: 0.2rem;
  margin-top: auto;
}

/* Marker-Punkte in den Zellen */
.marker {
  width: 6px;
  height: 6px;
  border-radius: 999px;
}

/* Farben aus der Legende: lila Event, blau Urlaub, grün Verfügbarkeit, rot krank */
.marker-event {
  background: #a855f7; /* lila */
}

.marker-vacation {
  background: #2196f3; /* blau */
}

.marker-availability {
  background: #22c55e; /* grün */
}

.marker-sick {
  background: #e53935; /* rot */
}

@media (max-width: 768px) {
  .calendar-cell {
    min-height: 2.6rem;
    padding: 0.25rem 0.3rem;
  }
}

/* ---------- Modal für Kalendertag-Details (Dashboard) ---------- */
/* Wir beziehen uns explizit auf das Dashboard-Modal mit der ID dayDetailModal,
   damit andere Modals (falls später welche dazukommen) nicht beeinflusst werden. */

#dayDetailModal.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

#dayDetailModal.modal.hidden {
  display: none;
}

#dayDetailModal .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

#dayDetailModal .modal-panel {
  position: relative;
  background: #050608;
  border-radius: 1rem;
  padding: 0.9rem 1.1rem;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

#dayDetailModal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

#dayDetailModal .modal-title {
  font-size: 0.95rem;
  font-weight: 600;
}

#dayDetailModal .modal-close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

#dayDetailModal .modal-close:hover {
  opacity: 0.8;
}

#dayDetailModal .modal-body {
  max-height: 60vh;
  overflow-y: auto;
  font-size: 0.8rem;
}

#dayDetailModal .modal-body h4 {
  margin: 0.4rem 0 0.15rem;
  font-size: 0.82rem;
}

#dayDetailModal .modal-body ul {
  list-style: disc;
  margin: 0 0 0.25rem 1rem;
  padding: 0;
}

#dayDetailModal .modal-body li {
  margin-bottom: 0.15rem;
}

/* ---------- Tabellen-Feinschliff & Notifications ---------- */

.nt-table td,
.nt-table th {
  vertical-align: middle;
}

.notif-list {
  list-style: none;
  padding-left: 0;
  margin: 0.2rem 0 0;
}

.notif-item {
  margin-bottom: 0.3rem;
}

.notif-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-top: 0.35rem;
  background: #666;
}

.notif-dot-ticket {
  background: #bc9c22;
}

.notif-dot-vacation {
  background: #ff6b6b;
}

.notif-text {
  font-size: 0.8rem;
}

.notif-message {
  margin-bottom: 0.05rem;
}

.notif-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
}

/* === Dashboard Button Farb-Gruppen === */
/* Basis: schwarze Fläche + Gold (#bc9c22) als Brand-Akzent */

/* Mitarbeiter-bezogen: Gold/Brand */
.menu-button.menu-button-staff {
  background: linear-gradient(180deg, rgba(188,156,34,0.18), rgba(188,156,34,0.10));
  border: 1px solid rgba(188,156,34,0.55);
  box-shadow: 0 10px 24px rgba(188,156,34,0.10);
}
.menu-button.menu-button-staff:hover {
  border-color: rgba(188,156,34,0.85);
  box-shadow: 0 12px 28px rgba(188,156,34,0.18);
  transform: translateY(-1px);
}

/* Admin-Funktionen: kühles Blau (passt zu Gold + Schwarz) */
.menu-button.menu-button-admin {
  background: linear-gradient(180deg, rgba(59,130,246,0.18), rgba(59,130,246,0.10));
  border: 1px solid rgba(59,130,246,0.55);
  box-shadow: 0 10px 24px rgba(59,130,246,0.10);
}
.menu-button.menu-button-admin:hover {
  border-color: rgba(59,130,246,0.85);
  box-shadow: 0 12px 28px rgba(59,130,246,0.18);
  transform: translateY(-1px);
}

/* Tickets: Rot/Orange Attention */
.menu-button.menu-button-ticket {
  background: linear-gradient(180deg, rgba(244,63,94,0.18), rgba(244,63,94,0.10));
  border: 1px solid rgba(244,63,94,0.55);
  box-shadow: 0 10px 24px rgba(244,63,94,0.10);
}
.menu-button.menu-button-ticket:hover {
  border-color: rgba(244,63,94,0.85);
  box-shadow: 0 12px 28px rgba(244,63,94,0.18);
  transform: translateY(-1px);
}

/* Optional: gleiche Textfarbe überall sicherstellen */
.menu-button.menu-button-staff span,
.menu-button.menu-button-admin span,
.menu-button.menu-button-ticket span {
  color: #ffffff;
}

.nt-table tr.row-warn td { background: rgba(255,165,0,0.18); }
.nt-table tr.row-danger td { background: rgba(255,0,0,0.18); }

.btn-danger {
  background: #b00020;
  border: 1px solid #b00020;
  color: #fff;
}
.btn-danger:hover {
  filter: brightness(1.05);
}

/* Dashboard – aktive Mitarbeiter > 10h */
.active-row-long {
  background: linear-gradient(
    90deg,
    rgba(255, 165, 0, 0.18),
    rgba(255, 165, 0, 0.08)
  );
}

.active-row-long td {
  color: #ffb347;
  font-weight: 600;
}

/* ============================
   Notifications (Admin Feed)
   ============================ */

.notif-header-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.notif-count{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(188,156,34,0.55);
  background: rgba(188,156,34,0.12);
  color:#ffdea2;
  font-weight:700;
  font-size:0.85rem;
}

.notif-actions{
  display:flex;
  gap:0.5rem;
  flex-wrap:wrap;
  align-items:center;
}

.notif-clear-form{
  margin:0;
}

.notif-body{
  margin-top:0.6rem;
}

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

.notif-item{
  border-bottom:1px solid rgba(255,255,255,0.07);
}

.notif-link{
  display:flex;
  gap:0.8rem;
  align-items:flex-start;
  text-decoration:none;
  color:inherit;
  padding:0.55rem 0;
}

.notif-left{
  padding-top:0.05rem;
}

.notif-content{
  flex:1;
  min-width:0;
}

.notif-message{
  font-size:0.9rem;
  line-height:1.25rem;
  word-break:break-word;
}

.notif-meta{
  margin-top:0.15rem;
  font-size:0.78rem;
  color:rgba(255,255,255,0.7);
}

.notif-right{
  display:flex;
  align-items:center;
  padding-top:0.1rem;
}

.notif-open{
  font-size:0.8rem;
  color:rgba(255,255,255,0.7);
  white-space:nowrap;
}

.notif-link:hover .notif-open{
  color:#ffffff;
}

/* Badges */
.notif-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0.18rem 0.55rem;
  border-radius:999px;
  font-size:0.78rem;
  font-weight:700;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}

.notif-badge-ticket{
  border-color: rgba(188,156,34,0.55);
  background: rgba(188,156,34,0.14);
  color:#ffdea2;
}

.notif-badge-absence{
  border-color: rgba(0,123,255,0.45);
  background: rgba(0,123,255,0.16);
  color:#9fd5ff;
}

.notif-badge-time{
  border-color: rgba(255,140,0,0.45);
  background: rgba(255,140,0,0.14);
  color:#ffd4a6;
}

.notif-badge-sick{
  border-color: rgba(255,64,64,0.45);
  background: rgba(255,64,64,0.14);
  color:#ffb3b3;
}

.notif-badge-system{
  border-color: rgba(170,170,170,0.35);
  background: rgba(170,170,170,0.10);
  color: rgba(255,255,255,0.85);
}

/* Empty State */
.notif-empty{
  padding:0.9rem 0.2rem;
  color:rgba(255,255,255,0.8);
}

.notif-empty-title{
  font-weight:800;
  margin-bottom:0.25rem;
}

.notif-empty-sub{
  color:rgba(255,255,255,0.7);
  font-size:0.9rem;
}

/* Mobile */
@media (max-width: 520px){
  .notif-link{
    gap:0.65rem;
  }
  .notif-open{
    display:none;
  }
}

/* Time Summary – Overlap Highlight + Hint */
.row-overlap td {
  background: rgba(220, 53, 69, 0.14) !important; /* rot, transparent */
  box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.35);
}

.hint-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.86);
}

.hint-box strong {
  color: rgba(255, 255, 255, 0.95);
}

/* Zeitauswertung: Overlaps */
.row-overlap {
  border-left: 4px solid #ff5a5a;
  background: rgba(255, 90, 90, 0.08);
}

.pill-small { padding: 6px 10px; font-size: 12px; }
.pill-neutral { border-color: rgba(255,255,255,.14); }
.pill-danger { border-color: rgba(255,90,90,.35); color: #ffb3b3; }

.hint{
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-size: 13px;
}

/* ----------------- Documents Page ----------------- */
.doc-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.doc-topbar-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
}

.doc-pill {
  display: inline-flex;
  align-items: center;
  padding: .35rem .6rem;
  border-radius: 999px;
  font-size: .85rem;
  border: 1px solid rgba(188,156,34,.45);
  color: rgba(255,255,255,.85);
}

.doc-upload-form .doc-upload-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .doc-upload-form .doc-upload-grid {
    grid-template-columns: 1fr;
  }
}

.doc-upload-actions {
  margin-top: .75rem;
  display: flex;
  justify-content: flex-start;
}

.doc-hint {
  margin-top: .35rem;
  font-size: .85rem;
  opacity: .8;
}

/* file inputs look "weird" by default in browsers – normalize */
.doc-upload-form input[type="file"] {
  width: 100%;
  max-width: 100%;
  padding: .6rem .75rem;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.9);
}

.doc-filter-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.doc-groups {
  display: grid;
  gap: 1rem;
}

.doc-group {
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.18);
}

.doc-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.doc-group-title {
  font-weight: 700;
}

.doc-group-count {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  background: rgba(255,255,255,.12);
}

.doc-list {
  display: grid;
}

.doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 1rem;
  border-top: 1px solid rgba(255,255,255,.06);
}

.doc-row:first-child {
  border-top: none;
}

.doc-main {
  min-width: 0;
}

.doc-title {
  font-weight: 700;
  word-break: break-word;
}

.doc-sub {
  margin-top: .25rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  opacity: .9;
}

.doc-meta {
  font-size: .85rem;
  opacity: .85;
}

.doc-tag {
  display: inline-flex;
  align-items: center;
  padding: .2rem .55rem;
  border-radius: 999px;
  font-size: .8rem;
  border: 1px solid rgba(255,255,255,.12);
}

.doc-tag-global { background: rgba(255,255,255,.08); }
.doc-tag-user   { background: rgba(188,156,34,.12); border-color: rgba(188,156,34,.35); }

.doc-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* if your "btn-danger" isn't defined yet */
.btn-danger {
  border: 1px solid rgba(255,80,80,.45);
  background: rgba(255,80,80,.10);
  color: rgba(255,255,255,.92);
}

.btn-danger:hover {
  background: rgba(255,80,80,.16);
}

/* ============================
   Vacation Pages (Badges + Layout)
   ============================ */

.badge-green{
  border: 1px solid rgba(35,134,54,0.40);
  background: rgba(35,134,54,0.22);
  color: #71f28a;
}

.badge-yellow{
  border: 1px solid rgba(255,193,7,0.35);
  background: rgba(255,193,7,0.18);
  color: #ffe29a;
}

.badge-red{
  border: 1px solid rgba(220,53,69,0.38);
  background: rgba(220,53,69,0.18);
  color: #ffb3b3;
}

.badge-warning{
  border: 1px solid rgba(188,156,34,0.55);
  background: rgba(188,156,34,0.14);
  color: #ffdea2;
}

.vac-summary-grid{
  margin-top: 0.6rem;
}

/* Availability: kleine UX-Polish */
.table-wrap { overflow-x: auto; }
.muted { opacity: 0.75; font-size: 0.95em; }


