:root {
  --rf-red: #E3000F;
  --rf-navy: #002B5C;
  --rf-light: #F8F9FA;
  --rf-surface: #FFFFFF;
  --rf-border: #E5E7EB;
  --rf-text: #1E1E2D;
  --rf-muted: #6C727F;
  --active-card-bg: var(--rf-surface);
  --active-card-border: rgba(0, 0, 0, 0.05);
  --active-card-soft: rgba(0, 43, 92, 0.05);
  --active-card-strong: rgba(0, 43, 92, 0.1);
  --active-card-muted: var(--rf-muted);
  --active-chip-bg: rgba(0, 43, 92, 0.08);
  --active-chip-text: var(--rf-navy);
  --onboarding-success: #1ba784;
  --onboarding-progress: #ffb347;
  --onboarding-pending: #5b7083;
  --onboarding-fail: #e63946;
}

html[data-bs-theme="dark"] {
  --rf-light: #0f1114;
  --rf-surface: #181a1f;
  --rf-border: #2d313a;
  --rf-text: #f5f7fa;
  --rf-muted: #aab0bd;
  --active-card-border: rgba(255, 255, 255, 0.12);
  --active-card-soft: rgba(255, 255, 255, 0.05);
  --active-card-strong: rgba(255, 255, 255, 0.08);
  --active-card-muted: rgba(255, 255, 255, 0.75);
  --active-chip-bg: rgba(255, 255, 255, 0.15);
  --active-chip-text: #fff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
  background: var(--rf-light);
  color: var(--rf-text);
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
}

a {
  color: inherit;
}

.navbar {
  padding: 0.75rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rf-surface);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

html[data-bs-theme="dark"] .navbar {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.navbar .container-fluid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
}

.navbar-brand img {
  display: block;
  height: auto;
}

.theme-toggle {
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.05rem;
  color: var(--rf-navy);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover {
  background: rgba(0, 43, 92, 0.08);
}

.theme-toggle i {
  pointer-events: none;
}

.navbar-controls.no-nav .navbar-toggler {
  display: none;
}

html[data-bs-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

html[data-bs-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

.navbar-center {
  width: 100%;
  display: flex;
  justify-content: center;
  position: relative;
  justify-self: center;
}

.navbar-links {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (min-width: 1025px) {
  .navbar-links.collapse:not(.show) {
    display: flex !important;
  }
}

.navbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.mobile-user-meta,
.mobile-user-actions,
.mobile-avatar {
  display: none;
}

.mobile-user-actions form {
  width: 100%;
}

.mobile-user-actions .btn {
  width: 100%;
  justify-content: center;
  gap: 0.4rem;
}

.navbar-shift-mobile {
  display: none;
  width: 100%;
}

.navbar-shift-mobile .shift-indicator-wrapper {
  width: 100%;
}

.navbar-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  color: var(--rf-text);
  text-decoration: none;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.navbar-bell:hover,
.navbar-bell:focus-visible {
  border-color: var(--rf-navy);
  color: var(--rf-navy);
}

.navbar-bell i {
  pointer-events: none;
}

.navbar-bell-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

html[data-bs-theme="dark"] .navbar-bell {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

html[data-bs-theme="dark"] .navbar-bell:hover,
html[data-bs-theme="dark"] .navbar-bell:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}

.navbar-admin {
  display: flex;
  align-items: center;
}

.admin-dropdown {
  position: relative;
}

.admin-toggle {
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  color: var(--rf-muted);
}

.admin-toggle.active,
.admin-toggle:focus-visible {
  color: var(--rf-navy);
  border-color: var(--rf-navy);
}

.admin-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  padding: 0.75rem;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 14px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 90;
}

html[data-bs-theme="dark"] .admin-toggle.active,
html[data-bs-theme="dark"] .admin-toggle:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

html[data-bs-theme="dark"] .admin-menu {
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.admin-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.admin-menu-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.25rem;
  text-decoration: none;
  color: var(--rf-text);
}

.admin-menu-link i {
  color: var(--rf-muted);
}

.admin-menu-section {
  margin: 0.35rem 0 0.15rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rf-muted);
  font-weight: 700;
}

html[data-bs-theme="dark"] .admin-menu-link {
  color: var(--rf-text);
}

html[data-bs-theme="dark"] .admin-menu-link i {
  color: rgba(255, 255, 255, 0.65);
}

html[data-bs-theme="dark"] .admin-menu-section {
  color: rgba(255, 255, 255, 0.65);
}

.admin-menu-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--rf-border);
  margin: 0.35rem 0;
}

.admin-menu {
  max-height: 70vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.navbar-nav {
  list-style: none;
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  padding-left: 0;
  margin: 0;
}

.nav-link {
  display: inline-block;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--rf-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-link.nav-pill {
  border: 1px solid var(--rf-border);
  background: transparent;
  cursor: pointer;
}

.nav-link.nav-pill:hover,
.nav-link.nav-pill:focus-visible {
  background: rgba(0, 43, 92, 0.08);
  color: var(--rf-navy);
}

.nav-link.nav-pill.active {
  background: rgba(227, 0, 15, 0.08);
  border-color: rgba(227, 0, 15, 0.35);
  color: #e3000f;
}

html[data-bs-theme="dark"] .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.nav-link:hover {
  color: var(--rf-text);
  background: var(--rf-border);
}

html[data-bs-theme="dark"] .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.nav-link.active {
  color: #fff !important;
  background: var(--rf-navy) !important;
}

html[data-bs-theme="dark"] .nav-link.active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.nav-link i {
  font-size: 1rem;
  opacity: 0.75;
}

.shift-indicator-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.shift-flash {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.shift-flash.success {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
}

.shift-flash.error {
  background: rgba(227, 0, 15, 0.15);
  color: #e3000f;
}

.shift-indicator {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  min-width: 240px;
}

html[data-bs-theme="dark"] .shift-indicator {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.shift-indicator-main {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 180px;
}

.shift-indicator-title {
  margin: 0;
  font-weight: 600;
  color: var(--rf-text);
}

.shift-indicator-title i {
  margin-right: 0.35rem;
  color: currentColor;
  opacity: 0.85;
}

.shift-indicator-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--rf-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.shift-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.shift-indicator-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.shift-indicator-actions form {
  display: inline-flex;
}

.shift-indicator-actions .btn {
  white-space: nowrap;
}

/* Hide toggle button and compact meta in desktop */
.shift-indicator-toggle {
  display: none;
}

.shift-indicator-meta-compact {
  display: none;
}

.navbar-toggler {
  display: none;
}

.navbar-user {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  margin-left: 0;
}

.avatar-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.avatar-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rf-navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.avatar-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.user-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  color: var(--rf-muted);
  line-height: 1.2;
}

.user-meta strong {
  color: var(--rf-text);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.user-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-user-meta {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 1rem;
  color: var(--rf-muted);
}

.mobile-avatar {
  display: none;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.mobile-avatar .avatar-initials,
.mobile-avatar .avatar-img {
  width: 74px;
  height: 74px;
  font-size: 1.4rem;
  border: 3px solid var(--rf-border);
}

.mobile-user-meta strong {
  color: var(--rf-text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-user-meta span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

html[data-bs-theme="dark"] .mobile-user-meta {
  color: rgba(255, 255, 255, 0.75);
}

.avatar-menu {
  position: absolute;
  top: 72px;
  right: 1rem;
  width: 220px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.15);
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
}

html[data-bs-theme="dark"] .avatar-menu {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.45);
}

.avatar-menu.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.avatar-menu-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.avatar-menu-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0;
  color: var(--rf-text);
  text-decoration: none;
  font-weight: 600;
}

.avatar-menu-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  color: var(--rf-navy);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.avatar-menu-link button {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.avatar-menu-link i,
.avatar-menu-title i {
  font-size: 1rem;
}

.avatar-menu-logout {
  width: 100%;
}

.container {
  max-width: 1200px;
  padding: 2rem 1.5rem 3rem;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem 1rem 2rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem 0.75rem 1.5rem;
  }
}

 .hero {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.06);
  display: grid;
  gap: 1rem;
}

html[data-bs-theme="dark"] .hero {
  background: var(--rf-surface);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.55);
}

.hero-compact {
  text-align: left;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .hero-compact {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.hero h1 {
  margin: 0;
  font-size: 2rem;
  color: var(--rf-navy);
  line-height: 1.2;
}

html[data-bs-theme="dark"] .hero h1 {
  color: #fff;
}

.hero h1 i {
  margin-right: 0.4rem;
  color: var(--rf-red);
}

.hero p {
  margin: 0;
  color: var(--rf-muted);
  line-height: 1.6;
}

html[data-bs-theme="dark"] .hero p {
  color: rgba(255, 255, 255, 0.75);
}

.hero-welcome {
  text-align: left;
  gap: 0.5rem;
}

.hero-welcome h1 {
  font-size: 1.1rem;
  font-weight: 500;
  color: #6c757d;
}

html[data-bs-theme="dark"] .hero-welcome h1 {
  color: rgba(255, 255, 255, 0.55);
}

.hero-eyebrow {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--rf-muted);
  font-weight: 600;
}

.hero-subtext {
  font-size: 1rem;
  max-width: 520px;
}

.landing-hero h1 {
  font-size: 2.4rem;
}

.landing-hero p {
  font-size: 1.05rem;
}

/* Responsive Hero Styles */
@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
    border-radius: 14px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .landing-hero h1 {
    font-size: 2rem;
  }

  .hero-subtext {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .hero-compact {
    padding: 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .landing-hero h1 {
    font-size: 1.75rem;
  }

  .hero-eyebrow {
    font-size: 0.75rem;
  }

  .hero-subtext {
    font-size: 0.9rem;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: var(--rf-red);
  color: #fff;
}

.btn-primary:hover {
  background: #c50000;
}

.btn-outline {
  border: 1px solid var(--rf-navy);
  color: var(--rf-navy);
  background: transparent;
}

.btn-outline:hover {
  background: var(--rf-navy);
  color: #fff;
}

html[data-bs-theme="dark"] .btn-outline {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

html[data-bs-theme="dark"] .btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
}

/* Button Icon Styles */
.btn i {
  font-size: 1em;
  opacity: 0.9;
}

/* Responsive Button Styles */
@media (max-width: 768px) {
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    margin-top: 1.5rem;
  }
}

.stat-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  position: relative;
}

html[data-bs-theme="dark"] .stat-card {
  background: var(--rf-surface);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.5);
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--rf-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--rf-navy);
}

html[data-bs-theme="dark"] .stat-icon {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.stat-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  stroke: currentColor;
}

.stat-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--rf-muted);
  letter-spacing: 0.04em;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 0.4rem;
}

.stat-trend {
  font-size: 0.9rem;
  color: var(--rf-navy);
  margin-top: 0.2rem;
}

.grid-two {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

 .app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.app-grid.ios-grid {
  justify-items: center;
  gap: 1rem;
}

@media (max-width: 1024px) {
  .app-grid.ios-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.875rem;
  }
}

@media (max-width: 768px) {
  .app-grid.ios-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .app-grid.ios-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.625rem;
  }
}

.dashboard-section {
  margin-bottom: 2rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.3);
}

html[data-bs-theme="dark"] .dashboard-section {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
}

.dashboard-section:last-child {
  margin-bottom: 1rem;
}

.dashboard-section-title {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: #6c757d;
  letter-spacing: 0;
  text-transform: none;
}

html[data-bs-theme="dark"] .dashboard-section-title {
  color: rgba(255, 255, 255, 0.55);
}

.app-icon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}

.app-icon-wrapper:hover {
  opacity: 0.9;
}

.app-icon-wrapper:active {
  opacity: 0.7;
}

.app-icon-shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.app-icon-card {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}

.app-icon-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 18px rgba(220, 53, 69, 0.36);
}

html[data-bs-theme="dark"] .app-icon-badge {
  box-shadow: 0 8px 16px rgba(220, 53, 69, 0.5);
}

.app-icon-wrapper:hover .app-icon-card {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
}

.app-icon-card i {
  font-size: 1.85rem;
  color: #fff;
}

/* Responsive App Icons */
@media (max-width: 768px) {
  .app-icon-card {
    width: 68px;
    height: 68px;
    border-radius: 19px;
  }

  .app-icon-card i {
    font-size: 1.65rem;
  }
}

@media (max-width: 480px) {
  .app-icon-card {
    width: 60px;
    height: 60px;
    border-radius: 17px;
  }

  .app-icon-card i {
    font-size: 1.4rem;
  }

  .app-icon-wrapper {
    gap: 0.35rem;
  }
}

.app-icon-card.theme-rose { background: linear-gradient(145deg, #ff5f6d, #ffc371); }
.app-icon-card.theme-violet { background: linear-gradient(145deg, #6a11cb, #2575fc); }
.app-icon-card.theme-gold { background: linear-gradient(145deg, #f7971e, #ffd200); }
.app-icon-card.theme-mint { background: linear-gradient(145deg, #00c9ff, #92fe9d); }
.app-icon-card.theme-slate { background: linear-gradient(145deg, #485563, #29323c); }
.app-icon-card.theme-orange { background: linear-gradient(145deg, #ff9966, #ff5e62); }
.app-icon-card.theme-blue { background: linear-gradient(145deg, #1a2a6c, #1a82c4); }
.app-icon-card.theme-teal { background: linear-gradient(145deg, #134e5e, #71b280); }
.app-icon-card.theme-purple { background: linear-gradient(145deg, #7f00ff, #e100ff); }
.app-icon-card.theme-pink { background: linear-gradient(145deg, #ff758c, #ff7eb3); }
.app-icon-card.theme-steel { background: linear-gradient(145deg, #868f96, #596164); }
.app-icon-card.theme-coral { background: linear-gradient(145deg, #f953c6, #b91d73); }
.app-icon-card.theme-plum { background: linear-gradient(145deg, #5f0a87, #a4508b); }
.app-icon-title {
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--rf-text);
  text-align: center;
  line-height: 1.25;
  max-width: 100%;
  word-wrap: break-word;
}

html[data-bs-theme="dark"] .app-icon-title {
  color: rgba(255, 255, 255, 0.85);
}

.app-status-icon {
  color: #ffb347;
  font-size: 0.8rem;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .app-icon-title {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .app-icon-title {
    font-size: 0.7rem;
  }

  .app-status-icon {
    font-size: 0.7rem;
  }
}

.app-section-title {
  margin-top: 2.5rem;
  font-size: 1.05rem;
  color: var(--rf-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-bs-theme="dark"] .app-section-title {
  color: rgba(255, 255, 255, 0.55);
}

.profile-card {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.08);
}

html[data-bs-theme="dark"] .profile-card {
  background: var(--rf-surface);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .profile-card {
    padding: 1.5rem;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .profile-card {
    padding: 1.25rem;
    border-radius: 12px;
  }
}

.profile-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--rf-border);
  margin-bottom: 1.5rem;
}

.profile-header-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--rf-navy) 0%, #003d7a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.15);
}

html[data-bs-theme="dark"] .profile-header-icon {
  background: linear-gradient(135deg, #1e4d8b 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

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

.profile-header h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--rf-navy);
  letter-spacing: -0.02em;
}

html[data-bs-theme="dark"] .profile-header h1 {
  color: #fff;
}

.profile-header p {
  color: var(--rf-muted);
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.profile-status {
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 0 0 1.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  border: 1px solid;
}

.profile-status i {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.profile-status p {
  margin: 0;
}

.profile-status.success {
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
  border-color: rgba(25, 135, 84, 0.25);
}

html[data-bs-theme="dark"] .profile-status.success {
  background: rgba(91, 229, 132, 0.15);
  color: #5be584;
  border-color: rgba(91, 229, 132, 0.3);
}

.profile-status.error {
  background: rgba(227, 0, 15, 0.08);
  color: #E3000F;
  border-color: rgba(227, 0, 15, 0.25);
}

html[data-bs-theme="dark"] .profile-status.error {
  background: rgba(227, 0, 15, 0.15);
  color: #ff4d4d;
  border-color: rgba(227, 0, 15, 0.3);
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  border: 2px solid var(--rf-border);
  background: var(--rf-surface);
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--rf-muted);
  display: inline-flex;
  align-items: center;
  flex-direction: column;
  gap: 0.35rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 120px;
  flex: 1;
}

@media (max-width: 768px) {
  .profile-tabs {
    gap: 0.5rem;
  }

  .tab-btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    min-width: 100px;
  }

  .tab-btn i {
    font-size: 1.35rem;
  }

  .tab-btn span {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .profile-tabs {
    flex-direction: column;
    gap: 0.65rem;
  }

  .tab-btn {
    flex-direction: row;
    justify-content: flex-start;
    min-width: unset;
    padding: 0.75rem 1rem;
  }

  .tab-btn i {
    font-size: 1.25rem;
  }

  .tab-btn span {
    font-size: 0.875rem;
  }
}

.tab-btn:hover:not(.active) {
  border-color: var(--rf-navy);
  background: rgba(0, 43, 92, 0.03);
}

html[data-bs-theme="dark"] .tab-btn:hover:not(.active) {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
}

.tab-btn i {
  font-size: 1.5rem;
}

.tab-btn.active {
  background: var(--rf-navy);
  color: #fff;
  border-color: var(--rf-navy);
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.25);
}

html[data-bs-theme="dark"] .tab-btn.active {
  background: linear-gradient(135deg, #1e4d8b 0%, #2563eb 100%);
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.profile-panels {
  position: relative;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.profile-section {
  background: var(--rf-light);
  border: 1px solid var(--rf-border);
  border-radius: 16px;
  padding: 1.5rem;
}

html[data-bs-theme="dark"] .profile-section {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rf-border);
}

.section-header i {
  font-size: 1.25rem;
  color: var(--rf-navy);
}

html[data-bs-theme="dark"] .section-header i {
  color: #86B7FF;
}

.section-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--rf-navy);
}

html[data-bs-theme="dark"] .section-header h2 {
  color: #fff;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
}

@media (max-width: 768px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .profile-grid {
    gap: 0.875rem;
  }
}

.profile-form label {
  display: flex;
  flex-direction: column;
  font-weight: 600;
  gap: 0.4rem;
  color: var(--rf-text);
}

.readonly-field {
  padding: 1rem 1.25rem;
  border: 1px solid var(--rf-border);
  border-radius: 10px;
  background: var(--rf-surface);
}

html[data-bs-theme="dark"] .readonly-field {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.readonly-field span {
  font-size: 0.8rem;
  color: var(--rf-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.readonly-value {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.readonly-value i {
  color: var(--rf-navy);
  font-size: 1.1rem;
}

html[data-bs-theme="dark"] .readonly-value i {
  color: #86B7FF;
}

.readonly-value strong {
  font-size: 1rem;
  color: var(--rf-text);
  font-weight: 600;
}

.profile-form input,
.profile-form select {
  border: 1px solid var(--rf-border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  font-size: 0.95rem;
}

.profile-form .input-icon {
  position: relative;
}

.profile-form .input-icon i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rf-muted);
  pointer-events: none;
}

.profile-form .input-icon input {
  padding-left: 2.5rem;
}

.select-wrapper {
  position: relative;
}

.select-wrapper i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rf-muted);
  pointer-events: none;
}

.select-wrapper select {
  padding-left: 2.5rem;
  width: 100%;
}

.password-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
}

.password-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 43, 92, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--rf-navy);
  font-size: 0.85rem;
  color: var(--rf-muted);
  line-height: 1.5;
}

html[data-bs-theme="dark"] .password-hint {
  background: rgba(37, 99, 235, 0.08);
  border-left-color: #2563eb;
}

.password-hint i {
  color: var(--rf-navy);
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

html[data-bs-theme="dark"] .password-hint i {
  color: #86B7FF;
}

.profile-actions {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rf-border);
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.profile-actions .btn {
  border: none;
  border-radius: 12px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  transition: all 0.2s ease;
}

.profile-actions .btn-primary {
  background: var(--rf-navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.25);
}

.profile-actions .btn-primary:hover {
  background: #003d7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 43, 92, 0.35);
}

html[data-bs-theme="dark"] .profile-actions .btn-primary {
  background: linear-gradient(135deg, #1e4d8b 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

html[data-bs-theme="dark"] .profile-actions .btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.profile-actions .btn-primary i {
  font-size: 1.1rem;
}

.profile-form .field-error {
  color: var(--rf-red);
  font-size: 0.85rem;
  margin: 0;
}

.avatar-section {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 640px) {
  .avatar-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.avatar-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.avatar-preview-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rf-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.avatar-preview-wrap {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rf-light);
  border: 3px solid var(--rf-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

html[data-bs-theme="dark"] .avatar-preview-wrap {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.03);
}

.avatar-preview img,
.avatar-preview-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-upload-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.avatar-upload-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--rf-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin-bottom: 0.5rem;
}

html[data-bs-theme="dark"] .avatar-upload-label {
  color: #86B7FF;
}

.avatar-upload-label i {
  font-size: 1.15rem;
}

.file-input-wrapper {
  position: relative;
}

.file-input-hidden {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.file-input-display {
  border: 2px dashed var(--rf-border);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--rf-surface);
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-input-display:hover {
  border-color: var(--rf-navy);
  background: rgba(0, 43, 92, 0.02);
}

html[data-bs-theme="dark"] .file-input-display {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.15);
}

html[data-bs-theme="dark"] .file-input-display:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.file-input-display i {
  font-size: 1.5rem;
  color: var(--rf-muted);
  flex-shrink: 0;
}

.file-placeholder {
  flex: 1;
  color: var(--rf-muted);
  font-size: 0.9rem;
}

.btn-browse {
  background: var(--rf-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.btn-browse:hover {
  background: #003d7a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 43, 92, 0.25);
}

html[data-bs-theme="dark"] .btn-browse {
  background: linear-gradient(135deg, #1e4d8b 0%, #2563eb 100%);
}

html[data-bs-theme="dark"] .btn-browse:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
}

.avatar-upload-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  background: rgba(0, 43, 92, 0.04);
  border-radius: 8px;
  border-left: 3px solid var(--rf-navy);
}

html[data-bs-theme="dark"] .avatar-upload-hint {
  background: rgba(37, 99, 235, 0.08);
  border-left-color: #2563eb;
}

.avatar-upload-hint i {
  color: var(--rf-navy);
  font-size: 1rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

html[data-bs-theme="dark"] .avatar-upload-hint i {
  color: #86B7FF;
}

.avatar-upload-hint span {
  font-size: 0.85rem;
  color: var(--rf-muted);
  line-height: 1.5;
}
}
.profile-meta {
  margin-top: 2rem;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.profile-meta h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--rf-navy);
}

.profile-meta dl {
  display: grid;
  grid-template-columns: minmax(140px, 180px) 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.profile-meta dt {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  color: var(--rf-muted);
}

.profile-meta dd {
  margin: 0;
  font-weight: 600;
  color: var(--rf-text);
  word-break: break-word;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.card h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: var(--rf-navy);
}

@media (max-width: 768px) {
  .card {
    padding: 1.25rem;
    border-radius: 14px;
  }

  .card h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1rem;
    border-radius: 12px;
  }

  .card h2 {
    font-size: 1rem;
  }
}

.card h2 i {
  margin-right: 0.4rem;
  color: var(--rf-navy);
}

.list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
}

.list-item span:last-child {
  color: var(--rf-muted);
  font-weight: 500;
}

.shift-preview {
  border-radius: 16px;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rf-border);
  background: var(--rf-light);
}

.shift-preview-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shift-preview-title {
  font-weight: 600;
  margin: 0;
  color: var(--rf-navy);
}

.shift-preview-meta {
  font-size: 0.9rem;
  margin: 0;
}

html[data-bs-theme="dark"] .shift-preview {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
}

.shift-layout > [class*="col-"] {
  display: flex;
}

.shift-layout .shift-panel {
  width: 100%;
}

@media (max-width: 991px) {
  .shift-layout > [class*="col-"] {
    display: block;
  }
  .shift-panel,
  .shift-panel-summary {
    padding: 1.25rem;
  }
  .shift-panel {
    gap: 1rem;
  }
}

.shift-panel {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.filter-dropdown {
  position: relative;
  width: 100%;
}

.filter-dropdown.is-disabled {
  pointer-events: none;
  opacity: 0.6;
}

.filter-dropdown-toggle {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--rf-border);
  background: var(--rf-light);
  padding: 0.65rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  font-weight: 500;
}

.filter-dropdown-toggle .js-filter-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.filter-dropdown-toggle i {
  color: var(--rf-muted);
}

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  width: 100%;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.15);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.filter-dropdown.is-open .filter-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--rf-border);
}

.filter-dropdown-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--rf-border);
  border-radius: 12px;
  padding: 0.35rem 0.75rem;
  background: var(--rf-light);
  margin: 0.5rem 0;
}

.filter-dropdown-search i {
  color: var(--rf-muted);
}

.filter-dropdown-list {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.55rem 0.25rem;
  border-bottom: 1px solid var(--rf-border);
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-option:hover,
.filter-option:focus {
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.filter-option-title {
  display: block;
  font-weight: 600;
}

.filter-option-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--rf-muted);
}

.filter-empty,
.filter-empty-message {
  margin: 0.5rem 0 0;
}

.shift-panel .form-select,
.shift-panel .form-control {
  border-radius: 14px;
  border: 1px solid var(--rf-border);
  background: var(--rf-light);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  padding: 0.65rem 0.95rem;
  height: 52px;
  box-shadow: none;
}

.shift-panel .form-select:focus,
.shift-panel .form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.shift-panel .form-select:disabled,
.shift-panel .form-control:disabled {
  opacity: 0.7;
  background: rgba(148, 163, 184, 0.15);
}

 .shift-panel-summary {
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
 }

.shift-panel-header {
  margin-bottom: 0.5rem;
}

.shift-panel-eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--rf-muted);
  margin-bottom: 0.35rem;
}

.shift-panel-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.shift-panel-subtitle {
  margin: 0;
  font-size: 0.95rem;
  color: var(--rf-muted);
}

.summary-divider {
  width: 100%;
  height: 1px;
  background: var(--rf-border);
  margin: 1.25rem 0;
}

.crew-preview {
  border-radius: 16px;
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  padding: 1.25rem 1.5rem;
}

.crew-preview-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: var(--rf-muted);
}

.crew-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.crew-preview-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rf-border);
}

.crew-preview-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.crew-member {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.crew-slot-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rf-muted);
  margin-bottom: 0.2rem;
}

.crew-avatar {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background-color: var(--rf-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rf-navy);
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.crew-avatar.has-image {
  color: transparent;
}

html[data-bs-theme="dark"] .shift-panel,
html[data-bs-theme="dark"] .crew-preview {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

html[data-bs-theme="dark"] .filter-dropdown-toggle,
html[data-bs-theme="dark"] .filter-dropdown-search {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html[data-bs-theme="dark"] .filter-dropdown-menu {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

html[data-bs-theme="dark"] .filter-option {
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

html[data-bs-theme="dark"] .filter-option-meta {
  color: rgba(255, 255, 255, 0.6);
}

html[data-bs-theme="dark"] .filter-option-avatar,
html[data-bs-theme="dark"] .filter-btn-avatar,
html[data-bs-theme="dark"] .crew-avatar {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.08);
}

.filter-btn-avatar,
.filter-option-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background-color: var(--rf-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--rf-navy);
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.filter-option-avatar.has-image,
.crew-avatar.has-image,
.filter-btn-avatar.has-image {
  color: transparent;
  border-color: rgba(0, 0, 0, 0.08);
}

html[data-bs-theme="dark"] .filter-option-avatar.has-image,
html[data-bs-theme="dark"] .crew-avatar.has-image,
html[data-bs-theme="dark"] .filter-btn-avatar.has-image {
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-option-body {
  display: flex;
  flex-direction: column;
}

.shift-panel-active {
  background: var(--active-card-bg);
  color: var(--rf-text);
  border-radius: 24px;
  border: 1px solid var(--active-card-border);
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.08);
}

html[data-bs-theme="dark"] .shift-panel-active {
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.65);
}

.shift-panel-active .shift-panel-eyebrow,
.shift-panel-active .shift-panel-title,
.shift-panel-active .shift-panel-subtitle {
  color: var(--active-card-muted);
}

.shift-panel-active .card-body {
  padding: 2rem;
}

.shift-panel-active .btn-outline-danger {
  color: var(--rf-red);
  border-color: var(--rf-red);
}

.shift-panel-active .btn-outline-danger:hover {
  background: var(--rf-red);
  color: #fff;
}

.active-alert {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--active-card-soft);
  border: 1px solid var(--active-card-border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.active-shift-headline {
  margin-bottom: 1.5rem;
}

.active-shift-headline h2 {
  margin: 0.35rem 0 0.15rem;
  color: var(--rf-text);
}

.active-shift-headline p {
  margin: 0;
  color: var(--active-card-muted);
  font-size: 1rem;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

html[data-bs-theme="dark"] .active-chip {
  background: linear-gradient(135deg, #20c997 0%, #5be584 100%);
  box-shadow: 0 4px 12px rgba(32, 201, 151, 0.4);
}

.active-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.active-meta-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 20px;
  background: var(--active-card-soft);
  border: 1px solid var(--active-card-border);
}

.active-meta-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--active-card-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--active-chip-text);
}

.active-meta-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: var(--active-card-muted);
}

.active-meta-value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rf-text);
}

.active-team {
  margin-bottom: 1.5rem;
}

.active-team-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.active-team-head h3 {
  margin: 0;
  color: var(--rf-text);
}

.active-team-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: var(--active-card-muted);
}

.active-crew-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.active-crew-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: var(--active-card-soft);
  border: 1px solid var(--active-card-border);
}

.active-crew-avatar {
  position: relative;
  flex-shrink: 0;
}

.active-crew-avatar .crew-avatar {
  border-width: 3px;
}

.active-crew-body {
  flex: 1;
}

.crew-avatar-lg {
  width: 56px;
  height: 56px;
  font-size: 1.1rem;
}

.crew-avatar-empty {
  background: var(--active-card-strong);
  color: var(--active-card-muted);
}

.crew-avatar-empty i {
  color: inherit;
}

.active-crew-role {
  margin: 0;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--active-card-muted);
}

.active-crew-name {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--rf-text);
}

.active-crew-name.is-empty {
  color: var(--active-card-muted);
}

.active-crew-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
  font-weight: 600;
  font-size: 0.8rem;
}

html[data-bs-theme="dark"] .active-crew-chip {
  background: rgba(25, 135, 84, 0.25);
  color: #5be584;
}

.active-crew-chip.is-empty {
  background: var(--active-card-soft);
  color: var(--active-card-muted);
}

.active-crew-chip.is-empty i {
  color: inherit;
}

.active-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.active-actions .btn {
  min-width: 180px;
}

.info-chip {
  background: var(--active-card-soft);
  border: 1px solid var(--active-card-border);
  border-radius: 16px;
  padding: 0.75rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.info-chip-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--active-card-strong);
  color: var(--active-chip-text);
}

.info-chip-label {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--active-card-muted);
}

.info-chip-value {
  margin: 0;
  font-weight: 600;
  color: var(--rf-text);
}

html[data-bs-theme="dark"] .shift-panel-summary {
  background: rgba(255, 255, 255, 0.05);
}

html[data-bs-theme="dark"] .filterable-select .form-control-sm {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html[data-bs-theme="dark"] .shift-panel .form-select,
html[data-bs-theme="dark"] .shift-panel .form-control {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

html[data-bs-theme="dark"] .shift-panel .form-select:disabled,
html[data-bs-theme="dark"] .shift-panel .form-control:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

html[data-bs-theme="dark"] .shift-panel-summary {
  background: rgba(255, 255, 255, 0.05);
}

@media (max-width: 1024px) {
  .navbar .container-fluid {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    width: 100%;
    flex-wrap: nowrap;
  }

  .theme-toggle {
    width: 38px;
    height: 38px;
  }

  .navbar-right {
    margin-left: auto;
    gap: 0.5rem;
  }

  .navbar-controls {
    order: 2;
    gap: 0.5rem;
  }

  .navbar-toggler {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border: 1px solid var(--rf-border);
    border-radius: 10px;
    background: var(--rf-surface);
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  html[data-bs-theme="dark"] .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.12);
  }

  .navbar-toggler-icon {
    width: 18px;
    height: 2px;
    background: var(--rf-text);
    position: relative;
  }

  html[data-bs-theme="dark"] .navbar-toggler-icon,
  html[data-bs-theme="dark"] .navbar-toggler-icon::before,
  html[data-bs-theme="dark"] .navbar-toggler-icon::after {
    background: #fff;
  }

  .navbar-toggler-icon::before,
  .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    left: 0;
  }

  .navbar-toggler-icon::before {
    top: -6px;
  }

  .navbar-toggler-icon::after {
    top: 6px;
  }

  .navbar-user {
    display: none;
  }

  .navbar-admin {
    order: 1;
    width: auto;
  }

  .navbar-user .user-meta {
    display: none;
  }

  .navbar-center {
    flex: 0 0 auto;
    width: 0;
    height: 0;
    overflow: visible;
    position: static;
  }

  .navbar-links {
    position: fixed;
    top: 70px;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    z-index: 130;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
  }

  html[data-bs-theme="dark"] .navbar-links {
    background: rgba(17, 18, 22, 0.95);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  }

  .navbar-links.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar-right .shift-indicator-wrapper {
    display: none;
  }

  .navbar-shift-mobile .shift-indicator {
    width: 100%;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
    padding: 0.6rem 0.85rem;
    position: relative;
  }

  .navbar-shift-mobile .shift-indicator.is-idle {
    flex-wrap: nowrap;
    align-items: center;
  }

  .navbar-shift-mobile .shift-indicator-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--rf-muted);
    padding: 0.5rem;
    margin-right: 0.25rem;
    margin-left: -0.25rem;
    cursor: pointer;
    transition: opacity 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    z-index: 10;
  }

  .navbar-shift-mobile .shift-indicator-toggle:hover,
  .navbar-shift-mobile .shift-indicator-toggle:active {
    color: var(--rf-text);
  }

  .navbar-shift-mobile .shift-indicator-toggle i {
    font-size: 1rem;
    transition: transform 0.2s ease;
  }

  .navbar-shift-mobile .shift-indicator.is-expanded .shift-indicator-toggle i {
    transform: rotate(180deg);
  }

  .navbar-shift-mobile .shift-indicator-main {
    flex: 1;
    min-width: 0;
    gap: 0.35rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .navbar-shift-mobile .shift-indicator-title {
    font-size: 0.95rem;
    margin-bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
  }

  /* Compact meta - shown by default (collapsed state) */
  .navbar-shift-mobile .shift-indicator-meta-compact {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  /* Full meta - hidden by default, shown when expanded */
  .navbar-shift-mobile .shift-indicator-meta {
    display: none;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  .navbar-shift-mobile .shift-indicator.is-expanded .shift-indicator-meta-compact {
    display: none;
  }

  .navbar-shift-mobile .shift-indicator.is-expanded .shift-indicator-meta {
    display: flex;
  }

  .navbar-shift-mobile .shift-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
  }

  .navbar-shift-mobile .shift-meta-item i {
    font-size: 0.75rem;
    opacity: 0.7;
  }

  .navbar-shift-mobile .shift-indicator-actions {
    flex-shrink: 0;
    width: auto;
    align-self: center;
  }

  .navbar-shift-mobile .shift-indicator.is-idle .shift-indicator-actions .btn,
  .navbar-shift-mobile .shift-indicator.is-idle .shift-indicator-actions form {
    width: auto;
  }

  .navbar-shift-mobile .shift-indicator.is-idle .shift-indicator-actions .btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.85rem;
  }

  /* Mobile: Button nur als Icon */
  .navbar-shift-mobile .shift-indicator:not(.is-idle) .shift-indicator-actions {
    width: auto;
    justify-content: center;
  }

  .navbar-shift-mobile .shift-indicator:not(.is-idle) .shift-indicator-actions .btn,
  .navbar-shift-mobile .shift-indicator:not(.is-idle) .shift-indicator-actions form {
    width: auto;
  }

  .navbar-shift-mobile .shift-indicator:not(.is-idle) .shift-indicator-actions .btn {
    justify-content: center;
    padding: 0.5rem;
    font-size: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    border-radius: 50%;
  }

  .navbar-shift-mobile .shift-indicator:not(.is-idle) .shift-indicator-actions .btn span {
    display: none;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 0.25rem;
  }

  .admin-dropdown {
    width: auto;
    margin: 0;
  }

  .admin-toggle span {
    display: none;
  }

  .admin-menu {
    position: fixed;
    top: 70px;
    right: 1rem;
    width: min(320px, calc(100vw - 2rem));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  }

  .nav-link {
    width: 100%;
  }

  .mobile-avatar,
  .mobile-user-meta,
  .mobile-user-actions {
    display: flex;
  }

  .mobile-user-meta {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.3rem;
  }

  .mobile-user-actions {
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
  }

  .avatar-menu {
    right: 0.5rem;
    top: 64px;
    width: min(320px, calc(100vw - 2rem));
  }

  .navbar-shift-mobile {
    display: block;
    margin: 0;
    padding: 0.5rem 1rem 1rem;
  }
}
/* Admin */
.admin-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 18px;
  padding: 2rem;
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.08);
}

html[data-bs-theme="dark"] .admin-card {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.admin-card-head h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--rf-navy);
}

.btn.btn-outline {
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
  color: var(--rf-navy);
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

html[data-bs-theme="dark"] .btn.btn-outline {
  color: var(--rf-text);
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 12px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid var(--rf-border);
  text-align: left;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .admin-table th,
  .admin-table td {
    padding: 0.75rem 0.65rem;
    font-size: 0.875rem;
  }

  .admin-table {
    min-width: 700px;
  }
}

@media (max-width: 480px) {
  .admin-table th,
  .admin-table td {
    padding: 0.65rem 0.5rem;
    font-size: 0.825rem;
  }

  .admin-table {
    min-width: 600px;
  }

  .table-responsive {
    margin: 0 -0.75rem;
    padding: 0 0.75rem;
  }
}

html[data-bs-theme="dark"] .admin-table th,
html[data-bs-theme="dark"] .admin-table td {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.admin-table th {
  font-weight: 600;
  color: var(--rf-muted);
  text-transform: uppercase;
  font-size: 0.8rem;
}

html[data-bs-theme="dark"] .admin-table th {
  color: rgba(255, 255, 255, 0.6);
}

html[data-bs-theme="dark"] .admin-table td {
  color: var(--rf-text);
}

html[data-bs-theme="dark"] .admin-table tr {
  background: var(--rf-surface);
}

.admin-table .badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(25, 135, 84, 0.15);
  color: #198754;
}

.badge-muted {
  background: rgba(108, 117, 125, 0.15);
  color: #6c757d;
}

.badge-info {
  background: rgba(13, 110, 253, 0.15);
  color: #0d6efd;
}

.badge-warning {
  background: rgba(255, 193, 7, 0.18);
  color: #c28107;
}

.badge-critical {
  background: rgba(220, 53, 69, 0.18);
  color: #dc3545;
}

.day-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.day-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--rf-border);
  border-radius: 999px;
  font-size: 0.85rem;
}

.day-checkbox input {
  accent-color: var(--rf-navy);
}

.badge-day {
  background: rgba(0, 43, 92, 0.12);
  color: var(--rf-navy);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.empty-row {
  text-align: center;
  color: var(--rf-muted);
}

.log-details summary {
  cursor: pointer;
  color: var(--rf-navy);
  font-weight: 600;
}

.log-details pre {
  background: #f5f5f7;
  border-radius: 10px;
  padding: 0.75rem;
  overflow-x: auto;
  max-height: 220px;
  margin-top: 0.25rem;
}

.log-table-controls label {
  font-weight: 600;
  font-size: 0.9rem;
}

.log-pagination {
  text-align: right;
}

.log-pagination .pagination {
  justify-content: flex-end;
}

.log-filter-row input {
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
}

/* ========================================
   Shift Signup - Compact Modern Design
   ======================================== */

.shift-signup-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 15px 28px rgba(0, 0, 0, 0.08);
}

html[data-bs-theme="dark"] .shift-signup-card {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
}

@media (max-width: 768px) {
  .shift-signup-card {
    padding: 1.5rem;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .shift-signup-card {
    padding: 1.25rem;
    border-radius: 14px;
  }
}

.shift-signup-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--rf-border);
  margin-bottom: 1.5rem;
}

.shift-signup-header-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--rf-navy) 0%, #003d7a 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.15);
}

html[data-bs-theme="dark"] .shift-signup-header-icon {
  background: linear-gradient(135deg, #1e4d8b 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.shift-signup-header-content h1 {
  margin: 0 0 0.5rem 0;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--rf-navy);
  letter-spacing: -0.02em;
}

html[data-bs-theme="dark"] .shift-signup-header-content h1 {
  color: #fff;
}

.shift-signup-header-content p {
  margin: 0;
  color: var(--rf-muted);
  font-size: 0.95rem;
}

.shift-signup-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.shift-signup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .shift-signup-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .shift-signup-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .shift-signup-grid {
    gap: 0.875rem;
  }
}

.signup-field {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.signup-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rf-text);
}

.signup-label i {
  color: var(--rf-navy);
  font-size: 1rem;
}

html[data-bs-theme="dark"] .signup-label i {
  color: #86B7FF;
}

.signup-input {
  width: 100%;
  height: 48px;
  border: 2px solid var(--rf-border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--rf-surface);
  color: var(--rf-text);
  transition: all 0.2s ease;
}

.signup-input:focus {
  outline: none;
  border-color: var(--rf-navy);
  box-shadow: 0 0 0 3px rgba(0, 43, 92, 0.1);
}

html[data-bs-theme="dark"] .signup-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.signup-crew-display {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 48px;
  padding: 0.85rem 1rem;
  background: var(--rf-light);
  border: 2px solid var(--rf-border);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rf-text);
}

html[data-bs-theme="dark"] .signup-crew-display {
  background: rgba(255, 255, 255, 0.03);
}

.signup-add-crew {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.25rem;
  background: rgba(0, 43, 92, 0.05);
  border: 2px dashed var(--rf-navy);
  border-radius: 12px;
  color: var(--rf-navy);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  justify-self: start;
}

.signup-add-crew:hover {
  background: rgba(0, 43, 92, 0.1);
  transform: translateY(-1px);
}

html[data-bs-theme="dark"] .signup-add-crew {
  background: rgba(37, 99, 235, 0.08);
  border-color: #2563eb;
  color: #86B7FF;
}

html[data-bs-theme="dark"] .signup-add-crew:hover {
  background: rgba(37, 99, 235, 0.15);
}

.signup-add-crew i {
  font-size: 1.15rem;
}

.signup-field-optional {
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.shift-signup-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rf-border);
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .shift-signup-actions {
    flex-direction: column;
    gap: 0.65rem;
  }

  .shift-signup-actions .btn-primary,
  .shift-signup-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }
}

.shift-signup-actions .btn-primary {
  background: var(--rf-navy);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 4px 12px rgba(0, 43, 92, 0.25);
  transition: all 0.2s ease;
}

.shift-signup-actions .btn-primary:hover:not(:disabled) {
  background: #003d7a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 43, 92, 0.35);
}

html[data-bs-theme="dark"] .shift-signup-actions .btn-primary {
  background: linear-gradient(135deg, #1e4d8b 0%, #2563eb 100%);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

html[data-bs-theme="dark"] .shift-signup-actions .btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

.shift-signup-actions .btn-outline {
  background: transparent;
  color: var(--rf-muted);
  border: 2px solid var(--rf-border);
  border-radius: 12px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.shift-signup-actions .btn-outline:hover {
  border-color: var(--rf-navy);
  color: var(--rf-navy);
  background: rgba(0, 43, 92, 0.03);
}

html[data-bs-theme="dark"] .shift-signup-actions .btn-outline:hover {
  border-color: #2563eb;
  color: #86B7FF;
  background: rgba(37, 99, 235, 0.08);
}

/* Filter Dropdown Enhancements */
.signup-field .filter-dropdown-toggle {
  width: 100%;
  height: 48px;
  border: 2px solid var(--rf-border);
  border-radius: 12px;
  background: var(--rf-surface);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--rf-text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.signup-field .filter-dropdown-toggle:hover:not(:disabled) {
  border-color: var(--rf-navy);
  background: rgba(0, 43, 92, 0.02);
}

html[data-bs-theme="dark"] .signup-field .filter-dropdown-toggle:hover:not(:disabled) {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.05);
}

.signup-field .filter-dropdown-toggle i:first-child {
  color: var(--rf-navy);
  font-size: 1.1rem;
}

html[data-bs-theme="dark"] .signup-field .filter-dropdown-toggle i:first-child {
  color: #86B7FF;
}

.signup-field .filter-dropdown-toggle .js-filter-label {
  flex: 1;
  text-align: left;
}

.signup-field .filter-dropdown-toggle i:last-child {
  color: var(--rf-muted);
  font-size: 0.9rem;
  margin-left: auto;
}

/* Location Toggle */
.filter-dropdown-toolbar {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 0.75rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rf-border);
}

.location-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rf-muted);
  cursor: pointer;
  user-select: none;
}

.location-toggle-input {
  width: 2.5rem;
  height: 1.25rem;
  background: var(--rf-border);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  appearance: none;
  transition: background 0.2s ease;
}

.location-toggle-input::before {
  content: '';
  position: absolute;
  width: 1rem;
  height: 1rem;
  background: #fff;
  border-radius: 50%;
  top: 0.125rem;
  left: 0.125rem;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.location-toggle-input:checked {
  background: var(--rf-navy);
}

html[data-bs-theme="dark"] .location-toggle-input:checked {
  background: #2563eb;
}

.location-toggle-input:checked::before {
  transform: translateX(1.25rem);
}

.location-toggle-text {
  color: var(--rf-text);
}

.location-toggle-disabled {
  font-size: 0.85rem;
  color: var(--rf-muted);
  font-weight: 600;
}

/* Filter Dropdown Search */
.filter-dropdown-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--rf-border);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  background: var(--rf-light);
  margin-bottom: 0.65rem;
}

html[data-bs-theme="dark"] .filter-dropdown-search {
  background: rgba(255, 255, 255, 0.03);
}

.filter-dropdown-search i {
  color: var(--rf-muted);
  font-size: 0.9rem;
}

.filter-dropdown-search .js-filter-search {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--rf-text);
  font-size: 0.9rem;
  padding: 0;
}

.filter-dropdown-search .js-filter-search::placeholder {
  color: var(--rf-muted);
}

/* Filter Options */
.filter-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.filter-option:hover {
  background: rgba(0, 43, 92, 0.05);
}

html[data-bs-theme="dark"] .filter-option:hover {
  background: rgba(37, 99, 235, 0.08);
}

.filter-option-body {
  flex: 1;
  min-width: 0;
}

.filter-option-title {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rf-text);
  margin-bottom: 0.15rem;
}

.filter-option-meta {
  display: block;
  font-size: 0.8rem;
  color: var(--rf-muted);
}

.filter-option-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rf-navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
}

html[data-bs-theme="dark"] .filter-option-avatar {
  background: #2563eb;
}

.filter-option-avatar.has-image {
  background-size: cover;
  background-position: center;
}

.filter-empty-message {
  text-align: center;
  color: var(--rf-muted);
  font-size: 0.85rem;
  padding: 1rem;
  margin: 0;
}

/* ========================================
   Profile - Mobile Optimizations
   ======================================== */

@media (max-width: 768px) {
  .profile-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .profile-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
  }

  .profile-header-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .profile-header h1 {
    font-size: 1.5rem;
  }

  .profile-header p {
    font-size: 0.9rem;
  }

  /* Tabs kompakter auf Mobile */
  .profile-tabs {
    gap: 0.5rem;
    justify-content: center;
  }

  .tab-btn {
    min-width: auto;
    flex: 1;
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }

  .tab-btn i {
    font-size: 1.25rem;
  }

  .tab-btn span {
    font-size: 0.8rem;
  }

  /* Profile Sections */
  .profile-section {
    padding: 1.25rem;
    border-radius: 12px;
  }

  .section-header {
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
  }

  .section-header h2 {
    font-size: 1rem;
  }

  .section-header i {
    font-size: 1.1rem;
  }

  /* Form Grid auf Mobile einspaltig */
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .password-grid {
    grid-template-columns: 1fr;
  }

  /* Readonly Fields kompakter */
  .readonly-field {
    padding: 0.85rem 1rem;
  }

  .readonly-field span {
    font-size: 0.75rem;
  }

  .readonly-value strong {
    font-size: 0.95rem;
  }

  /* Input Fields */
  .profile-form input,
  .profile-form select {
    padding: 0.65rem 0.85rem;
    font-size: 0.9rem;
  }

  .profile-form .input-icon input {
    padding-left: 2.25rem;
  }

  .select-wrapper select {
    padding-left: 2.25rem;
  }

  /* Password Hint */
  .password-hint {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }

  /* Avatar Section */
  .avatar-section {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .avatar-preview-wrap {
    width: 112px;
    height: 112px;
  }

  .avatar-upload-hint {
    padding: 0.75rem 0.85rem;
    font-size: 0.8rem;
  }

  /* File Input */
  .file-input-display {
    padding: 1rem;
    flex-wrap: wrap;
  }

  .btn-browse {
    width: 100%;
    justify-content: center;
    margin-top: 0.5rem;
  }

  /* Actions */
  .profile-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .profile-actions .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .profile-actions .btn-primary {
    width: 100%;
    justify-content: center;
  }

  /* Status Messages */
  .profile-status {
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
  }

  .profile-status i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .profile-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .profile-header {
    gap: 0.85rem;
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }

  .profile-header-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-radius: 12px;
  }

  .profile-header h1 {
    font-size: 1.35rem;
  }

  .profile-header p {
    font-size: 0.85rem;
  }

  /* Tabs sehr kompakt */
  .profile-tabs {
    gap: 0.4rem;
    margin-bottom: 1.25rem;
  }

  .tab-btn {
    padding: 0.6rem 0.65rem;
    gap: 0.25rem;
    border-radius: 10px;
  }

  .tab-btn i {
    font-size: 1.15rem;
  }

  .tab-btn span {
    font-size: 0.75rem;
  }

  /* Sections */
  .profile-section {
    padding: 1rem;
    gap: 0.85rem;
  }

  .tab-panel.active {
    gap: 1.25rem;
  }

  .section-header {
    margin-bottom: 0.85rem;
    padding-bottom: 0.6rem;
  }

  .section-header h2 {
    font-size: 0.95rem;
  }

  /* Grid */
  .profile-grid {
    gap: 0.75rem;
  }

  /* Fields */
  .readonly-field {
    padding: 0.75rem 0.85rem;
  }

  .profile-form input,
  .profile-form select {
    padding: 0.6rem 0.75rem;
    font-size: 0.875rem;
  }

  /* Avatar */
  .avatar-preview-wrap {
    width: 96px;
    height: 96px;
  }

  .avatar-preview-label {
    font-size: 0.8rem;
  }

  .avatar-upload-label {
    font-size: 0.9rem;
  }

  .avatar-upload-hint {
    padding: 0.65rem 0.75rem;
  }

  .avatar-upload-hint span {
    font-size: 0.8rem;
  }

  /* Actions */
  .profile-actions .btn {
    padding: 0.7rem 1.25rem;
    font-size: 0.875rem;
    gap: 0.5rem;
  }

  .profile-actions .btn i {
    font-size: 1rem;
  }
}

/* ========================================
   Shift Signup - Mobile Optimizations
   ======================================== */

@media (max-width: 768px) {
  .shift-signup-card {
    padding: 1.25rem;
    border-radius: 16px;
  }

  .shift-signup-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
  }

  .shift-signup-header-icon {
    width: 56px;
    height: 56px;
    font-size: 1.75rem;
  }

  .shift-signup-header-content h1 {
    font-size: 1.5rem;
  }

  .shift-signup-header-content p {
    font-size: 0.9rem;
  }

  /* Grid einspaltig */
  .shift-signup-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Fields kompakter */
  .signup-field {
    gap: 0.5rem;
  }

  .signup-label {
    font-size: 0.85rem;
  }

  .signup-label i {
    font-size: 0.95rem;
  }

  .signup-input {
    height: 44px;
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  .signup-crew-display {
    height: 44px;
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
  }

  /* Dropdowns */
  .signup-field .filter-dropdown-toggle {
    height: 44px;
    padding: 0.75rem 0.85rem;
    gap: 0.65rem;
    font-size: 0.9rem;
  }

  .filter-dropdown-menu {
    padding: 0.85rem;
  }

  /* Add Crew Button */
  .signup-add-crew {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    justify-self: stretch;
  }

  /* Actions */
  .shift-signup-actions {
    flex-direction: column-reverse;
    padding-top: 1.25rem;
  }

  .shift-signup-actions .btn-primary,
  .shift-signup-actions .btn-outline {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .shift-signup-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .shift-signup-header {
    gap: 0.85rem;
    padding-bottom: 1rem;
  }

  .shift-signup-header-icon {
    width: 48px;
    height: 48px;
    font-size: 1.5rem;
    border-radius: 12px;
  }

  .shift-signup-header-content h1 {
    font-size: 1.35rem;
  }

  .shift-signup-header-content p {
    font-size: 0.85rem;
  }

  .shift-signup-grid {
    gap: 0.85rem;
  }

  .signup-label {
    font-size: 0.8rem;
  }

  .signup-input,
  .signup-crew-display {
    height: 42px;
    padding: 0.7rem 0.75rem;
    font-size: 0.875rem;
  }

  .signup-field .filter-dropdown-toggle {
    height: 42px;
    padding: 0.7rem 0.75rem;
    font-size: 0.875rem;
  }

  .signup-add-crew {
    padding: 0.7rem 0.85rem;
    font-size: 0.875rem;
  }

  .shift-signup-actions .btn-primary,
  .shift-signup-actions .btn-outline {
    padding: 0.7rem 1.25rem;
    font-size: 0.875rem;
  }

  /* Dropdown Menu kompakter */
  .filter-dropdown-menu {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .filter-dropdown-search {
    padding: 0.45rem 0.75rem;
    margin-bottom: 0.5rem;
  }

  .filter-dropdown-search .js-filter-search {
    font-size: 0.875rem;
  }

  .filter-option {
    padding: 0.6rem 0.4rem;
  }

  .filter-option-title {
    font-size: 0.875rem;
  }

  .filter-option-meta {
    font-size: 0.75rem;
  }

  .filter-option-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  /* Location Toggle */
  .location-toggle-label {
    font-size: 0.8rem;
  }

  .location-toggle-input {
    width: 2.25rem;
    height: 1.15rem;
  }

  .location-toggle-input::before {
    width: 0.9rem;
    height: 0.9rem;
  }

  .location-toggle-input:checked::before {
    transform: translateX(1.1rem);
  }
}

/* =========================================
   VEHICLE CHECK STYLES - Compact & Mobile
   ========================================= */

/* Vehicle Check Group Styles */
.vehicle-check-group {
  margin-bottom: 1.5rem;
}

.vehicle-check-group__header {
  padding: 0;
  background: var(--active-card-soft);
  border-radius: 8px;
  border-left: 3px solid var(--rf-navy);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.vehicle-check-group__toggle {
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  text-align: left;
  padding: 0.75rem 1rem;
  border-radius: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.vehicle-check-group__toggle:focus-visible {
  outline: 2px solid rgba(8, 93, 166, 0.35);
  outline-offset: 2px;
}

.vehicle-check-group__details {
  flex: 1;
  min-width: 0;
}

.vehicle-check-group__header h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--rf-navy);
  margin: 0;
}

html[data-bs-theme="dark"] .vehicle-check-group__header h3 {
  color: var(--rf-light);
}

.vehicle-check-group__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.vehicle-check-group__chevron {
  transition: transform 0.2s ease;
  font-size: 0.9rem;
  color: inherit;
}

.vehicle-check-group__toggle.collapsed .vehicle-check-group__chevron {
  transform: rotate(-90deg);
}

.vehicle-check-group__collapse {
  margin-top: 0.5rem;
}

.vehicle-check-group__header.status-success {
  background: var(--bs-success-bg-subtle, #d1e7dd);
  border-left-color: var(--bs-success-border-subtle, #a3cfbb);
}

.vehicle-check-group__header.status-warning {
  background: var(--bs-warning-bg-subtle, #fff3cd);
  border-left-color: var(--bs-warning-border-subtle, #ffe69c);
}

.vehicle-check-group__header.status-danger {
  background: var(--bs-danger-bg-subtle, #f8d7da);
  border-left-color: var(--bs-danger-border-subtle, #f1aeb5);
}

.vehicle-check-group__header.status-info {
  background: var(--bs-info-bg-subtle, #cff4fc);
  border-left-color: var(--bs-info-border-subtle, #9eeaf9);
}

.vehicle-check-group__header.status-neutral {
  background: var(--active-card-soft);
  border-left-color: var(--rf-navy);
}

/* Vehicle Check List */
.vehicle-check-list {
  border: none;
  border-radius: 8px;
  overflow: hidden;
}

.vehicle-check-item {
  padding: 0.75rem 1rem;
  border: 1px solid var(--rf-border);
  border-bottom: none;
  background: var(--rf-surface);
  transition: all 0.2s ease;
}

.vehicle-check-item:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.vehicle-check-item:last-child {
  border-bottom: 1px solid var(--rf-border);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.vehicle-check-item:hover {
  background: var(--active-card-soft);
}

.vehicle-check-item.has-note {
  border-left: 3px solid #ffc107;
}

.vehicle-check-item__label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vehicle-check-item__label strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rf-text);
}

.vehicle-check-item__label .text-muted {
  font-size: 0.8rem;
  line-height: 1.3;
}

.vehicle-check-item__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.vehicle-check-item__actions .js-check-toggle {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.vehicle-check-item__actions .js-check-toggle i {
  font-size: 0.9rem;
}

.vehicle-check-item__actions .js-check-toggle.btn-success {
  background: #198754;
  border-color: #198754;
  color: white;
}

.vehicle-check-item__actions .js-check-toggle.btn-success:hover {
  background: #157347;
  border-color: #146c43;
}

.vehicle-check-item__note {
  margin-top: 0.5rem;
}

.vehicle-check-item__note .form-control {
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid var(--rf-border);
  background: var(--rf-light);
}

.vehicle-check-item__note .form-control:focus {
  border-color: var(--rf-navy);
  box-shadow: 0 0 0 0.2rem rgba(0, 43, 92, 0.1);
}

.vehicle-check-item__status {
  margin-top: 0.5rem;
}

.vehicle-check-item__status .badge {
  font-size: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-weight: 500;
  border-radius: 6px;
}

/* Compact Summary Cards */
.vehicle-check-summary {
  display: grid;
  gap: 0.5rem;
}

.vehicle-check-summary-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.vehicle-check-summary-item i {
  color: var(--rf-muted);
  width: 16px;
  text-align: center;
}

/* Review Table - Compact Mobile View */
.vehicle-check-review-grid {
  display: none;
}

@media (max-width: 768px) {
  .admin-table.vehicle-check-review-table {
    display: none;
  }

  .vehicle-check-review-grid {
    display: grid;
    gap: 0.75rem;
  }

  .vehicle-check-review-card {
    background: var(--rf-surface);
    border: 1px solid var(--rf-border);
    border-radius: 10px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .vehicle-check-review-card:hover {
    border-color: var(--rf-navy);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  .vehicle-check-review-card.has-flagged {
    border-left: 4px solid #dc3545;
    background: rgba(220, 53, 69, 0.03);
  }

  .vehicle-check-review-card.has-pending {
    border-left: 4px solid #ffc107;
    background: rgba(255, 193, 7, 0.03);
  }

  .vehicle-check-review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
  }

  .vehicle-check-review-card-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--rf-text);
  }

  .vehicle-check-review-card-date {
    font-size: 0.8rem;
    color: var(--rf-muted);
  }

  .vehicle-check-review-card-body {
    display: grid;
    gap: 0.5rem;
  }

  .vehicle-check-review-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
  }

  .vehicle-check-review-card-label {
    color: var(--rf-muted);
    font-weight: 500;
  }

  .vehicle-check-review-card-value {
    color: var(--rf-text);
    font-weight: 600;
  }

  .vehicle-check-review-card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--rf-border);
  }

  .vehicle-check-review-card-stat {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
  }

  .vehicle-check-review-card-stat i {
    font-size: 0.9rem;
  }

  .vehicle-check-review-card-stat.stat-flagged {
    color: #dc3545;
  }

  .vehicle-check-review-card-stat.stat-pending {
    color: #ffc107;
  }
}

/* Modal Styles for Detail View */
.vehicle-check-detail-modal .modal-body {
  max-height: 70vh;
  overflow-y: auto;
}

.vehicle-check-detail-item {
  padding: 0.75rem;
  border-bottom: 1px solid var(--rf-border);
}

.vehicle-check-detail-item:last-child {
  border-bottom: none;
}

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

.vehicle-check-detail-item-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--rf-text);
}

.vehicle-check-detail-item-note {
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--active-card-soft);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--rf-text);
}

/* Compact Badges */
.badge.badge-compact {
  font-size: 0.7rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

/* Selection Form Compact */
.vehicle-check-selection {
  background: var(--rf-surface);
  border-radius: 10px;
  padding: 1rem;
}

.vehicle-check-selection .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rf-text);
  margin-bottom: 0.4rem;
}

.vehicle-check-selection .form-control,
.vehicle-check-selection .form-select {
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
}

.vehicle-check-selection .btn {
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}

/* Stats Display */
.vehicle-check-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.vehicle-check-stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.vehicle-check-stat-item i {
  font-size: 1rem;
  color: var(--rf-muted);
}

.vehicle-check-stat-label {
  color: var(--rf-muted);
  font-weight: 500;
}

.vehicle-check-stat-value {
  color: var(--rf-text);
  font-weight: 700;
}

/* Icons in Select Options */
select.form-select option {
  padding: 0.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .vehicle-check-group__header {
    padding: 0.6rem 0.75rem;
  }

  .vehicle-check-item {
    padding: 0.65rem 0.75rem;
    flex-direction: column;
    align-items: stretch !important;
  }

  .vehicle-check-item__label strong {
    font-size: 0.85rem;
  }

  .vehicle-check-item__actions {
    order: 2;
    margin-top: 0.5rem;
    justify-content: space-between;
  }

  .vehicle-check-item__note {
    order: 3;
  }

  .vehicle-check-item__status {
    order: 4;
  }

  .vehicle-check-selection {
    padding: 0.85rem;
  }

  .vehicle-check-stats {
    gap: 1rem;
  }

  .admin-card {
    padding: 1rem !important;
  }

  .admin-card header h2 {
    font-size: 1.1rem;
  }
}

/* =========================================
   VEHICLE CHECK WATCH - Wachleitung
   ========================================= */

/* Watch Table Styles */
.vehicle-check-watch-table {
  font-size: 0.9rem;
}

.vehicle-check-watch-table .watch-cell-name {
  min-width: 200px;
}

.vehicle-check-watch-table .watch-form {
  min-width: 280px;
}

.vehicle-check-watch-table .watch-form textarea {
  resize: vertical;
  min-height: 60px;
}

/* Watch Mobile Cards */
.vehicle-check-watch-grid {
  display: grid;
  gap: 1rem;
}

.vehicle-check-watch-card {
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 12px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.vehicle-check-watch-card.has-flagged {
  border-left: 4px solid #dc3545;
  background: rgba(220, 53, 69, 0.03);
}

.vehicle-check-watch-card.has-pending {
  border-left: 4px solid #ffc107;
  background: rgba(255, 193, 7, 0.03);
}

.vehicle-check-watch-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rf-border);
}

.vehicle-check-watch-card-title {
  font-weight: 600;
  font-size: 1rem;
  color: var(--rf-text);
}

.vehicle-check-watch-card-body {
  display: grid;
  gap: 0.5rem;
}

.vehicle-check-watch-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.vehicle-check-watch-card-label {
  color: var(--rf-muted);
  font-weight: 500;
}

.vehicle-check-watch-card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rf-border);
}

.vehicle-check-watch-card .watch-form {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rf-border);
}

.vehicle-check-watch-card .watch-form textarea {
  font-size: 0.85rem;
  resize: vertical;
}

/* Watch Table Row Hover */
.watch-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.watch-row:hover {
  background-color: var(--active-card-soft) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .vehicle-check-watch-grid {
    gap: 0.75rem;
  }

  .vehicle-check-watch-card {
    padding: 0.85rem;
  }

  .vehicle-check-watch-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* =========================================
   VEHICLE CHECK UX IMPROVEMENTS
   ========================================= */

/* Sticky Quick-Stats Header */
.vehicle-check-quick-stats {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--rf-surface);
  border-bottom: 2px solid var(--rf-border);
  padding: 0.75rem 1rem;
  margin: -1rem -1rem 1rem -1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.vehicle-check-quick-stats__info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rf-text);
}

.vehicle-check-quick-stats__info i {
  color: var(--rf-navy);
}

.vehicle-check-quick-stats__stats {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.vehicle-check-quick-stat {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--active-card-soft);
}

.vehicle-check-quick-stat--danger {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
}

.vehicle-check-quick-stat--warning {
  color: #ffc107;
  background: rgba(255, 193, 7, 0.1);
}

.vehicle-check-quick-stat i {
  font-size: 0.9rem;
}

/* Progress Bars in Group Headers */
.vehicle-check-group__progress {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 0.5rem;
}

.vehicle-check-group__progress-bar {
  height: 100%;
  display: flex;
  transition: width 0.3s ease;
}

.vehicle-check-group__progress-segment {
  height: 100%;
  transition: width 0.3s ease;
}

.vehicle-check-group__progress-segment--success {
  background: #198754;
}

.vehicle-check-group__progress-segment--warning {
  background: #ffc107;
}

.vehicle-check-group__progress-segment--danger {
  background: #dc3545;
}

.vehicle-check-group__progress-text {
  font-size: 0.75rem;
  color: var(--rf-muted);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Collapsible Note Fields */
.vehicle-check-item__note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--rf-border);
  background: transparent;
  border-radius: 6px;
  font-size: 0.8rem;
  color: var(--rf-muted);
  transition: all 0.2s ease;
  cursor: pointer;
}

.vehicle-check-item__note-toggle:hover {
  border-color: var(--rf-navy);
  color: var(--rf-navy);
  background: var(--active-card-soft);
}

.vehicle-check-item__note-toggle.has-note {
  background: rgba(255, 193, 7, 0.1);
  border-color: #ffc107;
  color: #ffc107;
}

.vehicle-check-item__note-toggle .badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.35rem;
  margin-left: 0.25rem;
}

.vehicle-check-item__note-collapse {
  margin-top: 0.5rem;
}

/* Floating Save Button (Mobile) */
.vehicle-check-save-floating {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--rf-navy);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.vehicle-check-save-floating:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.vehicle-check-save-floating:active {
  transform: translateY(0);
}

.vehicle-check-save-floating.has-changes {
  animation: pulse-save 2s ease-in-out infinite;
}

.vehicle-check-save-floating .badge-dot {
  width: 8px;
  height: 8px;
  background: #dc3545;
  border-radius: 50%;
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-save {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@media (max-width: 768px) {
  .vehicle-check-save-floating {
    display: flex;
  }

  .vehicle-check-form > .d-flex:last-child {
    display: none !important;
  }
}

/* Toast Notifications */
.toast-container-vehicle-check {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 1050;
}

.toast-vehicle-check {
  min-width: 280px;
  background: var(--rf-surface);
  border: 1px solid var(--rf-border);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s ease;
}

.toast-vehicle-check.toast-success {
  border-left: 4px solid #198754;
}

.toast-vehicle-check.toast-error {
  border-left: 4px solid #dc3545;
}

.toast-vehicle-check.toast-info {
  border-left: 4px solid #0dcaf0;
}

.toast-vehicle-check__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.toast-vehicle-check__icon.text-success {
  color: #198754;
}

.toast-vehicle-check__icon.text-danger {
  color: #dc3545;
}

.toast-vehicle-check__icon.text-info {
  color: #0dcaf0;
}

.toast-vehicle-check__body {
  flex: 1;
  font-size: 0.9rem;
  color: var(--rf-text);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Enhanced Touch Targets */
.vehicle-check-item__actions .js-check-toggle {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}

.vehicle-damage-mark {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
}

.vehicle-damage-mark__dot {
  width: 16px;
  height: 16px;
  background: #dc3545;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: all 0.2s ease;
}

.vehicle-damage-mark:hover .vehicle-damage-mark__dot {
  transform: scale(1.2);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
}

.vehicle-damage-mark.is-new .vehicle-damage-mark__dot {
  animation: pulse-damage 1s ease-in-out 3;
}

@keyframes pulse-damage {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.3); }
}

/* Compact Crew Assignment (Mobile) */
@media (max-width: 768px) {
  .vehicle-check-crew {
    padding: 0.85rem !important;
  }

  .vehicle-check-crew__compact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--active-card-soft);
    border-radius: 8px;
  }

  .vehicle-check-crew__compact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .vehicle-check-crew__compact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--rf-navy);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
  }

  .vehicle-check-crew__compact-label {
    font-weight: 600;
    color: var(--rf-text);
    flex: 1;
  }
}

/* Tooltip Enhancements */
[data-bs-toggle="tooltip"] {
  cursor: help;
}

.vehicle-check-group__toggle {
  position: relative;
}

.vehicle-check-group__toggle::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.35rem 0.65rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 0.75rem;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  margin-bottom: 0.5rem;
}

.vehicle-check-group__toggle:hover::after {
  opacity: 0;
}

/* Loading State */
.vehicle-check-form.is-saving {
  opacity: 0.6;
  pointer-events: none;
}

.vehicle-check-save-floating.is-saving {
  pointer-events: none;
}

.vehicle-check-save-floating.is-saving i {
  animation: spin 1s linear infinite;
}

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

/* Mobile Header Optimizations */
@media (max-width: 768px) {
  .vehicle-check-quick-stats {
    margin: -1rem -1rem 1rem -1rem;
    padding: 0.65rem 0.85rem;
  }

  .vehicle-check-quick-stats__info {
    font-size: 0.8rem;
    flex: 1;
    min-width: 0;
  }

  .vehicle-check-quick-stats__stats {
    gap: 0.5rem;
  }

  .vehicle-check-quick-stat {
    font-size: 0.75rem;
    padding: 0.3rem 0.5rem;
  }
}

/* Blueprint Zoom Hint */
.vehicle-blueprint__stage {
  position: relative;
}

.vehicle-blueprint__stage.is-editable::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f066';
  opacity: 0.7;
  pointer-events: none;
  z-index: 10;
}

/* =========================================
   COLLAPSE TOGGLE ANIMATIONS
   ========================================= */

/* Chevron rotation on collapse toggle */
.btn[data-bs-toggle="collapse"] i.fa-chevron-down {
  transition: transform 0.3s ease;
}

.btn[data-bs-toggle="collapse"]:not(.collapsed) i.fa-chevron-down {
  transform: rotate(180deg);
}

/* Smooth collapse transitions */
.collapse {
  transition: height 0.35s ease;
}

/* =========================================
   NOTIFICATIONS
   ========================================= */

.notifications-layout .hero-notifications {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--rf-surface);
  border-radius: 24px;
  padding: 1.75rem;
  border: 1px solid var(--rf-border);
}

.notifications-layout .hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--rf-soft);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--rf-navy);
}

.notification-feed {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.notification-card {
  border: 1px solid var(--rf-border);
  border-radius: 20px;
  padding: 1.5rem;
  background: var(--rf-surface);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.notification-card.is-dismissed {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.notification-card.is-unread {
  border-color: rgba(106, 17, 203, 0.3);
  box-shadow: 0 20px 45px rgba(106, 17, 203, 0.12);
}

.notification-card.is-modal {
  border-left: 4px solid #dc3545;
}

.notification-card-head {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.notification-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.2rem 0.8rem;
  background: rgba(0, 0, 0, 0.05);
  color: var(--rf-text);
  text-transform: uppercase;
}

.notification-card.is-critical .notification-pill {
  background: rgba(220, 53, 69, 0.18);
  color: #dc3545;
}

.notification-card.is-warning .notification-pill {
  background: rgba(255, 193, 7, 0.18);
  color: #c28107;
}

.notification-card.is-info .notification-pill {
  background: rgba(13, 110, 253, 0.18);
  color: #0d6efd;
}

.notification-card-head h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--rf-muted);
}

.notification-targets {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.notification-targets .badge {
  font-size: 0.75rem;
  border-radius: 999px;
}

.notification-actions {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
}

.notification-card-body {
  margin-top: 1rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.35s ease;
  color: var(--rf-text);
  line-height: 1.5;
}

.notification-card.is-open .notification-card-body {
  max-height: 1000px;
  opacity: 1;
}

.notification-card-body p {
  margin: 0;
  white-space: pre-wrap;
}

.notification-empty {
  border: 1px dashed var(--rf-border);
  border-radius: 16px;
  background: var(--rf-soft);
  color: var(--rf-muted);
}

.notification-card .btn {
  white-space: nowrap;
}

.notification-card .js-notification-toggle i {
  transition: transform 0.2s ease;
}

.notification-card.is-open .js-notification-toggle i {
  transform: rotate(180deg);
}

.dashboard-notifications {
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
}

.notification-preview-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

.notification-preview-item {
  border-bottom: 1px solid var(--rf-border);
  padding-bottom: 0.8rem;
}

.notification-preview-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notification-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.notification-preview-title {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--rf-text);
}

.notification-preview-text {
  margin: 0;
  color: var(--rf-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .notifications-layout .hero-notifications {
    padding: 1.25rem;
  }

  .notification-card {
    padding: 1.1rem;
  }

  .notification-card-head {
    flex-direction: column;
  }

  .notification-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
/* =================================================================
   ONBOARDING - RESPONSIVE DESIGN
   Optimiert für Smartphone, Tablet und Desktop
   ================================================================= */

/* --- Layout Container --- */
.onboarding-layout {
    padding: 1rem;
}

@media (min-width: 768px) {
    .onboarding-layout {
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .onboarding-layout {
        padding: 2rem;
    }
}

/* --- Hero Section --- */
.hero-onboarding {
    padding: 1.25rem;
}

.onboarding-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .hero-onboarding {
        padding: 1.5rem;
    }

    .onboarding-stats {
        gap: 0.75rem;
    }
}

/* --- Onboarding Cards (User View) --- */
.onboarding-layout .onboarding-card {
    background-color: var(--bs-body-bg);
    border: 1px solid var(--bs-border-color);
    margin-bottom: 1rem;
}

.onboarding-card-head {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.onboarding-card-progress {
    width: 100%;
}

@media (min-width: 576px) {
    .onboarding-card-progress {
        min-width: 180px;
        max-width: 250px;
    }
}

@media (min-width: 768px) {
    .onboarding-card-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }

    .onboarding-card-progress {
        text-align: right;
<<<<<<< HEAD
        width: auto;
=======
        max-width: 220px;
>>>>>>> origin/main
    }
}

/* --- Checklist Items (User View) --- */
.onboarding-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.onboarding-checklist-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.onboarding-checklist-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.onboarding-checklist .check-icon {
<<<<<<< HEAD
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
=======
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
>>>>>>> origin/main
    border-radius: 50%;
    background: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

@media (min-width: 768px) {
    .onboarding-checklist {
        gap: 1rem;
    }

    .onboarding-checklist-item {
        gap: 1rem;
        padding-bottom: 1rem;
    }

    .onboarding-checklist .check-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.125rem;
    }
}

@media (max-width: 768px) {
    .onboarding-checklist .check-icon {
        width: 2rem;
        height: 2rem;
        min-width: 2rem;
        font-size: 1rem;
    }

    .onboarding-checklist-item {
        gap: 0.75rem;
    }
}

.onboarding-checklist-item.is-done .check-icon {
    background: rgba(25, 135, 84, 0.12);
    color: var(--bs-success);
}

.onboarding-checklist-body {
    flex: 1;
    min-width: 0;
}

.onboarding-checklist-meta {
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

@media (min-width: 768px) {
    .onboarding-checklist-meta {
        font-size: 0.875rem;
    }
}

/* --- Empty State --- */
.onboarding-empty {
    border: 1px dashed var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-tertiary-bg);
    padding: 2rem 1rem;
}

@media (min-width: 768px) {
    .onboarding-empty {
        border-radius: 1.5rem;
        padding: 3rem 2rem;
    }
}

/* --- Parts & Groups Structure (User View) --- */
.onboarding-part {
    margin-bottom: 1.25rem;
}

.onboarding-part:last-child {
    margin-bottom: 0;
}

@media (min-width: 768px) {
    .onboarding-part {
        margin-bottom: 1.5rem;
    }
}

.onboarding-group {
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    border-left: 2px solid var(--bs-border-color);
}

.onboarding-group:last-child {
    margin-bottom: 0;
}
/****** new ******/
.onboarding-part .accordion-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 0.75rem;
    background: var(--rf-surface);
}

.onboarding-part .accordion-button {
    font-weight: 600;
    background: transparent;
    padding: 0.85rem 1rem;
}

.onboarding-part .accordion-button:not(.collapsed) {
    background: rgba(0, 43, 92, 0.05);
    color: var(--rf-navy);
    box-shadow: none;
}

.onboarding-part .accordion-body {
    background: var(--rf-surface);
}

/* --- Enhanced visual styling for onboarding cards --- */
.status-chip,
.scope-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    border-radius: 999px;
    padding: 0.2rem 0.8rem;
    font-weight: 600;
    background: var(--active-card-soft);
    color: var(--active-chip-text);
}

.scope-chip {
    background: rgba(0, 43, 92, 0.08);
    color: var(--rf-navy);
}

.status-chip i {
    font-size: 0.95em;
}

.status-chip.status-success {
    background: rgba(27, 167, 132, 0.15);
    color: var(--onboarding-success);
}

.status-chip.status-progress {
    background: rgba(255, 179, 71, 0.2);
    color: var(--onboarding-progress);
}

.status-chip.status-pending {
    background: rgba(91, 112, 131, 0.1);
    color: var(--onboarding-pending);
}

.status-chip.status-failed {
    background: rgba(230, 57, 70, 0.1);
    color: var(--onboarding-fail);
}

.onboarding-card {
    border: 1px solid var(--active-card-border);
    background: linear-gradient(135deg, rgba(0, 43, 92, 0.04), rgba(0, 43, 92, 0.01));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.onboarding-card:hover {
    border-color: rgba(0, 43, 92, 0.2);
    transform: translateY(-2px);
}

.onboarding-card-failed {
    border-color: rgba(230, 57, 70, 0.35);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08), rgba(230, 57, 70, 0.02));
}

.onboarding-card-progress .progress-info {
    text-align: left;
}

.onboarding-progress {
    height: 8px;
    background: rgba(0, 43, 92, 0.08);
    border-radius: 999px;
    overflow: hidden;
}

.onboarding-progress .progress-bar,
.progress-gradient .progress-bar {
    background-image: none;
    background-color: var(--progress-color, #198754);
}

.progress-gradient .progress-bar {
    border-radius: 999px;
}

.onboarding-card-failed .onboarding-progress .progress-bar {
    background-color: rgba(230, 57, 70, 0.5);
}

.onboarding-failed-summary {
    border-radius: 1rem;
    border: 1px dashed rgba(230, 57, 70, 0.4);
    background: rgba(230, 57, 70, 0.04);
    padding: 1.25rem;
}

.onboarding-failed-summary p {
    line-height: 1.4;
}

.hero-compact .hero-content {
    padding-right: 0;
}

.hero-compact .hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-compact .hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: rgba(0, 43, 92, 0.05);
    font-weight: 600;
}

@media (max-width: 576px) {
    .hero-compact .hero-meta {
        width: 100%;
    }
    .status-chip,
    .scope-chip {
        font-size: 0.75rem;
    }
}

<<<<<<< HEAD
@media (min-width: 768px) {
    .onboarding-group {
        padding-left: 1rem;
    }
}

/* --- ADMIN SECTION --- */
.onboarding-admin {
    padding: 1rem;
}

@media (min-width: 768px) {
    .onboarding-admin {
        padding: 1.5rem;
    }
}

@media (min-width: 1200px) {
    .onboarding-admin {
        padding: 2rem;
    }
}

/* Admin Hero */
.hero-admin {
    padding: 1.25rem;
}

@media (min-width: 768px) {
    .hero-admin {
        padding: 1.5rem;
    }
}

/* Admin Cards */
.admin-card {
    overflow-x: auto;
}

.admin-card .table-responsive {
    margin: -0.5rem;
    padding: 0.5rem;
}

@media (max-width: 767px) {
    .admin-table {
        font-size: 0.875rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem 0.375rem;
        white-space: nowrap;
    }

    .admin-table .btn-group {
        flex-wrap: nowrap;
    }

    .admin-table .btn-sm {
        padding: 0.25rem 0.375rem;
        font-size: 0.75rem;
    }
}

/* Assignment Detail Items */
.assignment-structure {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.structure-part,
.structure-group {
    border: 1px solid var(--bs-border-color);
    border-radius: 1rem;
    background: var(--bs-body-bg);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.04);
}

.structure-group {
    border-radius: 0.85rem;
    margin-top: 0.75rem;
}

.structure-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0.85rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.structure-toggle:hover {
    background: rgba(0, 43, 92, 0.04);
}

.structure-toggle:not(.collapsed) {
    background: rgba(0, 43, 92, 0.08);
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}

.structure-collapse {
    padding: 0 1rem 1rem;
}

.structure-title {
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.structure-description {
    font-size: 0.85rem;
    color: var(--bs-muted-color, var(--bs-secondary-color));
}

.structure-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    min-width: 110px;
    background: rgba(0, 0, 0, 0.05);
}

.structure-badge strong {
    font-size: 0.95rem;
    letter-spacing: normal;
}

.structure-badge small {
    font-size: 0.7rem;
}

.structure-badge.is-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.structure-badge.is-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #d57a00;
}

.structure-badge.is-success {
    background: rgba(25, 135, 84, 0.18);
    color: #198754;
}

.structure-badge.is-neutral {
    background: rgba(108, 117, 125, 0.18);
    color: #6c757d;
}

.assignment-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.assignment-structure .assignment-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    background: var(--bs-body-bg);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.assignment-structure .assignment-item:hover {
    border-color: rgba(0, 43, 92, 0.15);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
}

.assignment-structure .assignment-item.is-done {
    border-color: rgba(25, 135, 84, 0.35);
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.08), rgba(25, 135, 84, 0.015));
}

.assignment-item-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .assignment-item-head {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
}

.assignment-item-title {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.assignment-item-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(0, 43, 92, 0.08);
    color: var(--rf-navy, var(--bs-body-color));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.assignment-item-icon.is-done {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.assignment-item-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
}

.assignment-item-body {
    margin-top: 0.5rem;
}

.assignment-structure-user .assignment-item-actions {
    justify-content: flex-start;
}

.assignment-structure-user .assignment-item-body {
    margin-top: 0.75rem;
}

.assignment-structure .assignment-item .form-check-input {
    min-width: 2.5rem;
    min-height: 1.35rem;
    cursor: pointer;
}

.assignment-structure .assignment-item .form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.25);
}

.assignment-item-body .js-item-remark {
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.assignment-item-body p {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .assignment-structure .assignment-item {
        padding: 0.75rem;
    }

    .assignment-item-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.onboarding-admin [data-detail-roles] .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}

/* --- Structure Tree (Admin Template View) --- */
=======
/* Hero Meta & Pills */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--rf-soft, var(--bs-secondary-bg));
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--rf-navy, var(--bs-body-color));
    white-space: nowrap;
}

html[data-bs-theme="dark"] .hero-pill {
    background: var(--bs-secondary-bg);
    color: var(--bs-body-color);
}

@media (max-width: 576px) {
    .hero-pill {
        padding: 0.4rem 0.75rem;
        font-size: 0.8125rem;
    }
}

/* Utility Classes */
.h4-md {
    font-size: inherit;
}

@media (min-width: 768px) {
    .h4-md {
        font-size: calc(1.275rem + 0.3vw);
    }
}

>>>>>>> origin/main
.structure-tree {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .structure-tree {
        gap: 1.5rem;
    }
}

.structure-part {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.75rem;
    padding: 0.75rem;
}

@media (min-width: 768px) {
    .structure-part {
        border-radius: 1rem;
        padding: 1rem;
    }
}

.structure-part-head,
.structure-group-head {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .structure-part-head,
    .structure-group-head {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
    }
}

.structure-part-head > div:first-child,
.structure-group-head > div:first-child {
    flex: 1;
    min-width: 0;
}

.structure-part-head .btn-group,
.structure-group-head .btn-group {
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .structure-part-head .btn-group,
    .structure-group-head .btn-group {
        width: 100%;
        justify-content: flex-start;
    }
}

.structure-groups {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .structure-groups {
        margin-top: 1rem;
        gap: 1rem;
    }
}

.structure-group {
    border: 1px dashed var(--bs-border-color);
    border-radius: 0.625rem;
    padding: 0.625rem;
}

@media (min-width: 768px) {
    .structure-group {
        border-radius: 0.75rem;
        padding: 0.75rem;
    }
}

.structure-items {
    list-style: none;
    padding-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .structure-items {
        margin-top: 0.75rem;
        gap: 0.75rem;
    }
}

.structure-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.625rem;
    padding: 0.625rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 576px) {
    .structure-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-radius: 0.75rem;
        padding: 0.75rem;
    }
}

.structure-item > div:first-child {
    flex: 1;
    min-width: 0;
}

.structure-item .btn-group {
    flex-shrink: 0;
}

@media (max-width: 575px) {
    .structure-item .btn-group {
        width: 100%;
        justify-content: flex-start;
    }
}

/* --- Modal Improvements for Mobile --- */
@media (max-width: 767px) {
    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-xl {
        max-width: 100%;
        margin: 0;
    }

    .modal-xl .modal-content {
        min-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        padding: 1rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .modal-footer {
        padding: 1rem;
        flex-direction: column;
    }

    .modal-footer .btn-group {
        width: 100%;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

/* Touch-Friendly Buttons */
@media (hover: none) and (pointer: coarse) {
    .btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    .btn-sm {
        min-height: 38px;
        padding: 0.375rem 0.75rem;
    }

    .form-check-input {
        min-width: 1.5rem;
        min-height: 1.5rem;
    }

    .form-select,
    .form-control {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Improved Progress Bars */
.progress {
    height: 0.625rem;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .progress {
        height: 0.75rem;
    }
}

.progress-bar {
    transition: width 0.4s ease;
}

/* Better Badge Wrapping */
.badge {
    display: inline-block;
    white-space: normal;
    word-break: break-word;
}

/* Filter Section Responsive */
@media (max-width: 767px) {
    .admin-card header > .d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .admin-card header .flex-grow-1,
    .admin-card header > div {
        width: 100%;
    }
}

/* Status Pills Responsive */
.hero-pill {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .hero-pill {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
}

/* Shift Reports */
.shift-report-root {
    background: var(--rf-surface);
    max-width: 1100px;
    margin: 0 auto;
}

/* Header Icon */
.shift-report-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

.shift-report-icon i {
    font-size: 28px;
    color: #fff;
}

.shift-report-header {
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(13, 110, 253, 0.1);
}

.badge-status {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.save-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.save-indicator[data-state="saving"] {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.save-indicator[data-state="error"] {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.save-indicator.is-locked {
    background: rgba(255, 193, 7, 0.15);
    color: #a96a00;
}

.shift-report-tabs {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.shift-report-tabs .nav-link {
    border-radius: 12px;
    padding: 0.65rem 1.25rem;
    background: #f8f9fa;
    color: var(--rf-text);
    border: 2px solid transparent;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shift-report-tabs .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-color: rgba(13, 110, 253, 0.3);
}

.shift-report-tabs .nav-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-color: #0a58ca;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
    transform: translateY(-2px);
}

.shift-report-tabs .nav-link .badge {
    background-color: rgba(13, 110, 253, 0.18);
    color: #0d6efd;
    border-radius: 999px;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: color 0.2s ease;
}

.shift-report-tabs .nav-link.active .badge {
    background-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

html[data-bs-theme="dark"] .shift-report-tabs .nav-link {
    background: rgba(255, 255, 255, 0.05);
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

html[data-bs-theme="dark"] .shift-report-tabs .nav-link:hover {
    border-color: rgba(13, 110, 253, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.65);
}

html[data-bs-theme="dark"] .shift-report-tabs .nav-link.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-color: #0a58ca;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.65);
}

html[data-bs-theme="dark"] .shift-report-tabs .nav-link .badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

html[data-bs-theme="dark"] .shift-report-tabs .nav-link.active .badge {
    background-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.shift-report-table th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    padding: 1rem 0.75rem;
    background: #f8f9fa;
}

.shift-report-table td {
    vertical-align: top;
    font-size: 0.9rem;
    padding: 1rem 0.75rem;
}

.shift-report-table {
    border-radius: 8px;
    overflow: hidden;
    table-layout: fixed;
}

.shift-report-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Feste Spaltenbreiten für Dispo-Ansicht */
.shift-report-root[data-mode="dispatch"] .shift-report-table th:nth-child(1),
.shift-report-root[data-mode="dispatch"] .shift-report-table td:nth-child(1) {
    width: 22%;
}

.shift-report-root[data-mode="dispatch"] .shift-report-table th:nth-child(2),
.shift-report-root[data-mode="dispatch"] .shift-report-table td:nth-child(2) {
    width: 15%;
}

.shift-report-root[data-mode="dispatch"] .shift-report-table th:nth-child(3),
.shift-report-root[data-mode="dispatch"] .shift-report-table td:nth-child(3) {
    width: 38%;
}

.shift-report-root[data-mode="dispatch"] .shift-report-table th:nth-child(4),
.shift-report-root[data-mode="dispatch"] .shift-report-table td:nth-child(4) {
    width: 18%;
}

.shift-report-root[data-mode="dispatch"] .shift-report-table th:nth-child(5),
.shift-report-root[data-mode="dispatch"] .shift-report-table td:nth-child(5) {
    width: 7%;
}

/* Feste Spaltenbreiten für Planungs-Ansicht */
.shift-report-root[data-mode="planning"] .shift-report-table th:nth-child(1),
.shift-report-root[data-mode="planning"] .shift-report-table td:nth-child(1) {
    width: 20%;
}

.shift-report-root[data-mode="planning"] .shift-report-table th:nth-child(2),
.shift-report-root[data-mode="planning"] .shift-report-table td:nth-child(2) {
    width: 13%;
}

.shift-report-root[data-mode="planning"] .shift-report-table th:nth-child(3),
.shift-report-root[data-mode="planning"] .shift-report-table td:nth-child(3) {
    width: 20%;
}

.shift-report-root[data-mode="planning"] .shift-report-table th:nth-child(4),
.shift-report-root[data-mode="planning"] .shift-report-table td:nth-child(4) {
    width: 18%;
}

.shift-report-root[data-mode="planning"] .shift-report-table th:nth-child(5),
.shift-report-root[data-mode="planning"] .shift-report-table td:nth-child(5) {
    width: 22%;
}

.shift-report-root[data-mode="planning"] .shift-report-table th:nth-child(6),
.shift-report-root[data-mode="planning"] .shift-report-table td:nth-child(6) {
    width: 7%;
}

.shift-report-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.03);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shift-report-table .form-control-sm,
.shift-report-table .form-select-sm {
    font-size: 0.85rem;
}

.shift-report-table textarea.form-control {
    resize: vertical;
    min-height: 60px;
    max-width: 100%;
    width: 100%;
}

.shift-report-table .form-control,
.shift-report-table .form-select {
    max-width: 100%;
}

.vehicle-cell {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.vehicle-type-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12) 0%, rgba(13, 110, 253, 0.08) 100%);
    border: 1px solid rgba(13, 110, 253, 0.25);
    border-radius: 0.375rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0a58ca;
    width: fit-content;
    margin-bottom: 0.25rem;
}

.vehicle-type-badge.vehicle-type-rtw {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.14) 0%, rgba(220, 53, 69, 0.08) 100%);
    border-color: rgba(220, 53, 69, 0.32);
    color: #b02a37;
}

.vehicle-type-badge.vehicle-type-ktw {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.14) 0%, rgba(13, 110, 253, 0.08) 100%);
    border-color: rgba(13, 110, 253, 0.3);
    color: #0a58ca;
}

.vehicle-type-badge.vehicle-type-nef {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.16) 0%, rgba(111, 66, 193, 0.08) 100%);
    border-color: rgba(111, 66, 193, 0.32);
    color: #5f3dc4;
}

.vehicle-type-badge.vehicle-type-naw,
.vehicle-type-badge.vehicle-type-itw,
.vehicle-type-badge.vehicle-type-intensiv {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.18) 0%, rgba(255, 193, 7, 0.1) 100%);
    border-color: rgba(255, 193, 7, 0.45);
    color: #a96a00;
}

.vehicle-type-badge.vehicle-type-rtw,
.vehicle-type-badge.vehicle-type-ktw,
.vehicle-type-badge.vehicle-type-nef,
.vehicle-type-badge.vehicle-type-naw,
.vehicle-type-badge.vehicle-type-itw,
.vehicle-type-badge.vehicle-type-intensiv {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.03);
}

html[data-bs-theme="dark"] .vehicle-type-badge {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.2) 0%, rgba(13, 110, 253, 0.12) 100%);
    border-color: rgba(13, 110, 253, 0.4);
    color: #6ea8fe;
}

html[data-bs-theme="dark"] .vehicle-type-badge.vehicle-type-rtw {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.28) 0%, rgba(220, 53, 69, 0.16) 100%);
    border-color: rgba(220, 53, 69, 0.45);
    color: #ffb3bc;
}

html[data-bs-theme="dark"] .vehicle-type-badge.vehicle-type-ktw {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.28) 0%, rgba(13, 110, 253, 0.16) 100%);
    border-color: rgba(13, 110, 253, 0.5);
    color: #cfe2ff;
}

html[data-bs-theme="dark"] .vehicle-type-badge.vehicle-type-nef {
    background: linear-gradient(135deg, rgba(111, 66, 193, 0.3) 0%, rgba(111, 66, 193, 0.18) 100%);
    border-color: rgba(111, 66, 193, 0.5);
    color: #e9d8ff;
}

html[data-bs-theme="dark"] .vehicle-type-badge.vehicle-type-naw,
html[data-bs-theme="dark"] .vehicle-type-badge.vehicle-type-itw,
html[data-bs-theme="dark"] .vehicle-type-badge.vehicle-type-intensiv {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.22) 0%, rgba(255, 193, 7, 0.14) 100%);
    border-color: rgba(255, 193, 7, 0.55);
    color: #ffe69c;
}

.vehicle-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.vehicle-meta {
    line-height: 1.2;
}

.callsign-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(13, 110, 253, 0.1);
    color: #0a58ca;
    font-size: 0.75rem;
    width: fit-content;
}

html[data-bs-theme="dark"] .callsign-chip {
    background: rgba(13, 110, 253, 0.25);
    color: #cfe2ff;
}

.status-cell {
    min-width: 70px;
}

.state-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
}

.state-icon.is-planned {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.state-icon.is-cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

html[data-bs-theme="dark"] .state-icon.is-planned {
    background: rgba(25, 135, 84, 0.4);
    color: #d1f5e0;
}

html[data-bs-theme="dark"] .state-icon.is-cancelled {
    background: rgba(220, 53, 69, 0.4);
    color: #ffd5db;
}

/* Clickable State Icons */
.state-icon-clickable {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    padding: 0;
    font-size: 1rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.state-icon-clickable.is-readonly {
    cursor: default;
}

.state-icon-clickable.is-planned {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

.state-icon-clickable.is-cancelled {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
}

.state-icon-clickable:not(.is-readonly):hover {
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.state-icon-clickable.is-planned:not(.is-readonly):hover {
    background: rgba(25, 135, 84, 0.25);
    color: #146c43;
}

.state-icon-clickable.is-cancelled:not(.is-readonly):hover {
    background: rgba(220, 53, 69, 0.25);
    color: #b02a37;
}

.state-icon-clickable:not(.is-readonly):active {
    transform: scale(1.05);
}

html[data-bs-theme="dark"] .state-icon-clickable.is-planned {
    background: rgba(25, 135, 84, 0.3);
    color: #d1f5e0;
}

html[data-bs-theme="dark"] .state-icon-clickable.is-cancelled {
    background: rgba(220, 53, 69, 0.3);
    color: #ffd5db;
}

html[data-bs-theme="dark"] .state-icon-clickable.is-planned:not(.is-readonly):hover {
    background: rgba(25, 135, 84, 0.45);
    color: #e6faf1;
}

html[data-bs-theme="dark"] .state-icon-clickable.is-cancelled:not(.is-readonly):hover {
    background: rgba(220, 53, 69, 0.45);
    color: #ffe6e9;
}

.state-switch {
    width: 48px;
    height: 24px;
    border-radius: 999px;
    border: none;
    position: relative;
    padding: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    background: #adb5bd;
}

.state-switch .state-switch-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    top: 2px;
    left: 2px;
    transition: left 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.state-switch.is-planned {
    background: #198754;
}

.state-switch.is-planned .state-switch-handle {
    left: 26px;
}

.state-switch.is-cancelled {
    background: #dc3545;
}

.state-switch.is-readonly {
    opacity: 0.6;
    cursor: default;
}

html[data-bs-theme="dark"] .state-switch .state-switch-handle {
    background: rgba(255, 255, 255, 0.9);
}

.time-cell {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.time-grid > div {
    min-width: 0;
    width: 100%;
}

.time-grid .input-group {
    flex-wrap: nowrap;
}

.time-grid .input-group .form-control {
    min-width: 0;
    flex: 1 1 auto;
    width: 100%;
}

.time-grid .input-group .form-control[type="datetime-local"] {
    font-size: 0.8rem;
    padding: 0.375rem 0.5rem;
}

.time-grid .input-group .btn {
    min-width: 36px;
    flex-shrink: 0;
}

.btn-start {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.btn-stop {
    background: #dc3545;
    border-color: #dc3545;
    color: #fff;
}

.btn-start:disabled,
.btn-stop:disabled {
    opacity: 0.5;
}

.btn-clear {
    border: 1px solid rgba(108, 117, 125, 0.5);
    color: #6c757d;
}

html[data-bs-theme="dark"] .btn-clear {
    border-color: rgba(255, 255, 255, 0.25);
    color: #ced4da;
}

.plan-time strong {
    font-weight: 600;
}

.btn-clear:hover {
    border-color: #dc3545;
    color: #dc3545;
}

html[data-bs-theme="dark"] .time-grid .input-group .form-control {
    background: rgba(255, 255, 255, 0.05);
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.12);
}

html[data-bs-theme="dark"] .shift-report-table th {
    background: rgba(255, 255, 255, 0.06);
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.05);
}

html[data-bs-theme="dark"] .shift-report-table td {
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.05);
}

html[data-bs-theme="dark"] .shift-report-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .shift-report-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.22);
    box-shadow: none;
}

.form-label-sm {
    font-size: 0.75rem;
    color: var(--rf-muted);
}

.shift-row {
    transition: all 0.2s ease;
    border-left: 0;
}

.shift-row.state-cancelled {
    opacity: 0.85;
    background: transparent;
}

.shift-row td:first-child {
    position: relative;
}

html[data-bs-theme="dark"] .shift-row.state-cancelled {
    opacity: 0.95;
}

.shift-row.state-cancelled td:first-child {
    background-image: linear-gradient(180deg, #dc3545 0%, #a61d34 100%);
    background-size: 5px 100%;
    background-repeat: no-repeat;
    background-position: left top;
}

.shift-row.has-dispatch-update td:first-child {
    background-image: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    background-size: 6px 100%;
    background-repeat: no-repeat;
    background-position: left top;
}

.shift-row.has-planning-update td:first-child {
    background-image: linear-gradient(180deg, #d63384 0%, #a61e63 100%);
    background-size: 6px 100%;
    background-repeat: no-repeat;
    background-position: left top;
}

.shift-report-root[data-editable="0"] {
    border: 1px dashed rgba(255, 193, 7, 0.4);
}

.quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.btn-tag {
    border: 1px dashed var(--rf-border);
    background: transparent;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    color: var(--rf-muted);
}

.btn-tag:hover {
    border-color: var(--rf-navy);
    color: var(--rf-navy);
}

.shift-report-toolbar .btn {
    white-space: nowrap;
}

.shift-report-toolbar .card {
    background: #f8f9fa;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html[data-bs-theme="dark"] .shift-report-toolbar .card {
    background: rgba(33, 37, 41, 0.85);
    border-color: rgba(255, 255, 255, 0.1);
}

.shift-row.is-filtered {
    display: none !important;
}

.plan-override-callout {
    border-radius: 0.75rem;
    border: 1px solid rgba(214, 51, 132, 0.25);
    border-left: 5px solid #d63384;
    background: #fff;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 12px rgba(214, 51, 132, 0.08);
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

html[data-bs-theme="dark"] .plan-override-callout {
    background: rgba(0, 0, 0, 0.35);
    border-color: rgba(214, 51, 132, 0.4);
}

.plan-override-title {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: #d63384;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.plan-override-body {
    font-size: 0.85rem;
    color: var(--rf-text);
}

.plan-override-line + .plan-override-line {
    margin-top: 0.2rem;
}

.plan-override-label {
    display: inline-block;
    min-width: 70px;
    font-weight: 600;
    color: #a61e63;
}

/* Coordinator Deviations in Dispatch View */
.coordinator-deviations {
    border-radius: 0.5rem;
    border: 1px solid rgba(214, 51, 132, 0.25);
    border-left: 3px solid #d63384;
    background: rgba(214, 51, 132, 0.05);
    padding: 0.5rem 0.75rem;
}

.deviation-title {
    text-transform: uppercase;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: #d63384;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.deviation-line {
    font-size: 0.8rem;
    color: var(--rf-text);
    margin-bottom: 0.15rem;
}

.deviation-line:last-child {
    margin-bottom: 0;
}

.deviation-label {
    display: inline-block;
    min-width: 50px;
    font-weight: 600;
    color: #a61e63;
}

html[data-bs-theme="dark"] .coordinator-deviations {
    background: rgba(214, 51, 132, 0.15);
    border-color: rgba(214, 51, 132, 0.35);
}

/* Coordinator Hints (schlank) */
.coordinator-hints {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hint-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.6rem;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

.hint-state {
    background: rgba(214, 51, 132, 0.12);
    color: #d63384;
    border: 1px solid rgba(214, 51, 132, 0.25);
}

.hint-text {
    font-size: 0.8rem;
    color: var(--rf-text);
    padding: 0.35rem 0.5rem;
    background: rgba(214, 51, 132, 0.05);
    border-left: 2px solid #d63384;
    border-radius: 0.3rem;
}

html[data-bs-theme="dark"] .hint-state {
    background: rgba(214, 51, 132, 0.2);
    color: #f194c0;
    border-color: rgba(214, 51, 132, 0.4);
}

html[data-bs-theme="dark"] .hint-text {
    background: rgba(214, 51, 132, 0.1);
    color: #f8f9fa;
}

.plan-note-alert {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    padding: 0.5rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(13, 110, 253, 0.4);
    background: rgba(13, 110, 253, 0.08);
    font-size: 0.85rem;
}

html[data-bs-theme="dark"] .plan-note-alert {
    background: rgba(13, 110, 253, 0.18);
}

.plan-note-title {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    color: var(--rf-muted);
    font-weight: 600;
}

.dispatcher-summary {
    border: 1px dashed var(--rf-border);
    border-radius: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: rgba(13, 110, 253, 0.05);
}

html[data-bs-theme="dark"] .dispatcher-summary {
    background: rgba(13, 110, 253, 0.15);
}

.dispatcher-summary-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.dispatcher-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #0d6efd;
}

.dispatcher-note {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.08) 0%, rgba(13, 110, 253, 0.04) 100%);
    border-left: 3px solid #0d6efd;
    border-radius: 0.375rem;
    font-weight: 600;
    color: var(--rf-text);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.dispatcher-note i {
    color: #0d6efd;
    font-size: 1rem;
}

html[data-bs-theme="dark"] .dispatcher-note {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.15) 0%, rgba(13, 110, 253, 0.08) 100%);
    border-left-color: #3d8bfd;
    color: #f8f9fa;
}

html[data-bs-theme="dark"] .dispatcher-note i {
    color: #6ea8fe;
}

.dispatcher-start-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.dispatcher-variance-line {
    display: flex;
    align-items: center;
    padding-left: 1.25rem;
}

.dispatcher-variance {
    font-size: 0.75rem;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    display: inline-block;
}

.dispatcher-variance.is-positive {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
    border-color: rgba(25, 135, 84, 0.4);
}

.dispatcher-variance.is-negative {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    border-color: rgba(220, 53, 69, 0.4);
}

.dispatcher-variance.is-neutral {
    background: rgba(108, 114, 127, 0.15);
    color: var(--rf-muted);
    border-color: rgba(108, 114, 127, 0.4);
}

/* History Icon */
.history-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.25);
}

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

.shift-history {
    margin-top: 2rem;
}

.shift-history .card {
    border-radius: 1rem;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

html[data-bs-theme="dark"] .shift-report-root .card.border-0.bg-light,
html[data-bs-theme="dark"] .shift-report-root .card.shadow-sm.border-0.bg-light {
    background: rgba(33, 37, 41, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65) !important;
}

html[data-bs-theme="dark"] .card.shadow-sm.border-0.bg-light {
    background: rgba(33, 37, 41, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-bs-theme="dark"] .shift-filter-card {
    background: rgba(33, 37, 41, 0.9) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

html[data-bs-theme="dark"] .shift-history .card {
    background: rgba(33, 37, 41, 0.92);
}

html[data-bs-theme="dark"] .shift-history h2,
html[data-bs-theme="dark"] .shift-history h5 {
    color: #f8f9fa !important;
}

html[data-bs-theme="dark"] .history-icon {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

/* Dark mode Alert fixes */
html[data-bs-theme="dark"] .shift-report-root .alert {
    background: rgba(33, 37, 41, 0.8) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    color: #f8f9fa !important;
}

html[data-bs-theme="dark"] .shift-report-root .alert-success {
    background: rgba(25, 135, 84, 0.25) !important;
    border-color: rgba(25, 135, 84, 0.4) !important;
    color: #d1e7dd !important;
}

html[data-bs-theme="dark"] .shift-report-root .alert-danger {
    background: rgba(220, 53, 69, 0.25) !important;
    border-color: rgba(220, 53, 69, 0.4) !important;
    color: #f8d7da !important;
}

html[data-bs-theme="dark"] .shift-report-root .alert-warning {
    background: rgba(255, 193, 7, 0.25) !important;
    border-color: rgba(255, 193, 7, 0.4) !important;
    color: #fff3cd !important;
}

.shift-history-table {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.shift-history-table th {
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
}

.shift-history-table td {
    font-size: 0.85rem;
    vertical-align: middle;
}

html[data-bs-theme="dark"] .shift-history-table th {
    background: rgba(255, 255, 255, 0.08);
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-bs-theme="dark"] .shift-history-table td {
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.05);
}

/* History Mobile View - versteckt auf Desktop */
.history-mobile-view {
    display: none;
}

/* History Pagination */
.history-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem 0;
}

.history-page-info {
    font-size: 0.875rem;
    color: var(--rf-text);
    font-weight: 500;
}

.js-current-page {
    font-weight: 700;
    color: #0d6efd;
}

/* History Mobile Cards */
.history-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    margin-bottom: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

html[data-bs-theme="dark"] .history-card {
    background: rgba(33, 37, 41, 0.9);
    border-color: rgba(255, 255, 255, 0.12);
}

.history-card-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

html[data-bs-theme="dark"] .history-card-header {
    background: linear-gradient(135deg, rgba(52, 58, 64, 0.9) 0%, rgba(73, 80, 87, 0.9) 100%);
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

.history-card-time {
    font-size: 0.8rem;
    font-weight: 600;
    color: #495057;
}

html[data-bs-theme="dark"] .history-card-time {
    color: #adb5bd;
}

.history-card-user {
    font-size: 0.8rem;
    color: #0d6efd;
    font-weight: 500;
}

html[data-bs-theme="dark"] .history-card-user {
    color: #6ea8fe;
}

.history-card-body {
    padding: 0.75rem 1rem;
}

.history-card-row {
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.history-card-row:last-child {
    margin-bottom: 0;
}

.history-label {
    font-weight: 600;
    color: #6c757d;
    display: inline-block;
    min-width: 60px;
}

html[data-bs-theme="dark"] .history-label {
    color: #adb5bd;
}

.history-card-change {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem;
    background: rgba(13, 110, 253, 0.05);
    border-radius: 0.5rem;
    margin-top: 0.5rem;
}

html[data-bs-theme="dark"] .history-card-change {
    background: rgba(13, 110, 253, 0.15);
}

.history-old,
.history-new {
    font-size: 0.8rem;
}

.history-arrow {
    color: #28a745;
    font-size: 1.2rem;
    text-align: center;
}

/* Filter Icon Buttons */
.filter-btn-group {
    display: inline-flex;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-filter-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--rf-border);
    background: var(--rf-surface);
    color: var(--rf-muted);
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.btn-filter-icon:not(:last-child) {
    border-right: none;
}

.btn-filter-icon i {
    font-size: 1rem;
}

.btn-filter-icon .btn-filter-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-filter-icon:hover {
    background: rgba(0, 43, 92, 0.05);
    color: var(--rf-navy);
    z-index: 1;
}

.btn-filter-icon.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #fff;
    border-color: #0a58ca;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.btn-filter-icon.active:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #084298 100%);
    color: #fff;
}

html[data-bs-theme="dark"] .btn-filter-icon {
    border-color: rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

html[data-bs-theme="dark"] .btn-filter-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

html[data-bs-theme="dark"] .btn-filter-icon.active {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border-color: #0d6efd;
    color: #fff;
}

html[data-bs-theme="dark"] .btn-filter-icon.active:hover {
    background: linear-gradient(135deg, #0b5ed7 0%, #084298 100%);
}

.empty-state-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.shift-history-table tbody tr {
    transition: background-color 0.2s ease;
}

.shift-history-table tbody tr:hover {
    background-color: rgba(13, 110, 253, 0.03);
}

/* Empty State */
.empty-state-icon {
    animation: fadeInScale 0.5s ease-out;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Mobile Responsive Design */
@media (max-width: 991px) {
    /* Tablet Optimierungen */
    .shift-report-root[data-mode="dispatch"] .shift-report-table th:nth-child(3),
    .shift-report-root[data-mode="dispatch"] .shift-report-table td:nth-child(3) {
        width: 32%;
    }

    .shift-report-root[data-mode="dispatch"] .shift-report-table th:nth-child(4),
    .shift-report-root[data-mode="dispatch"] .shift-report-table td:nth-child(4) {
        width: 23%;
    }
}

@media (max-width: 767px) {
    /* Verstecke Table Elements, zeige Rows als Cards */
    .shift-report-table thead {
        display: none;
    }

    .shift-report-table,
    .shift-report-table tbody {
        display: block;
        width: 100%;
    }

    /* Mobile Card Layout */
    .shift-row {
        display: block !important;
        margin-bottom: 1rem;
        background: var(--rf-surface);
        border: 1px solid rgba(0, 0, 0, 0.08);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        overflow: hidden;
        width: 100%;
    }

    html[data-bs-theme="dark"] .shift-row {
        background: rgba(33, 37, 41, 0.9);
        border-color: rgba(255, 255, 255, 0.12);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    }

    .shift-row td {
        display: block;
        padding: 0 !important;
        border: none !important;
    }

    /* Mobile Card Header (ausklappbar) */
    .shift-row td:first-child {
        cursor: pointer;
        padding: 1rem !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        position: relative;
    }

    html[data-bs-theme="dark"] .shift-row td:first-child {
        background: linear-gradient(135deg, rgba(33, 37, 41, 0.95) 0%, rgba(52, 58, 64, 0.95) 100%);
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    /* Chevron Icon in der 2. Spalte */
    .shift-row td:nth-child(2)::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        transition: transform 0.3s ease;
        color: #0d6efd;
        font-size: 1.1rem;
    }

    .shift-row.mobile-expanded td:nth-child(2)::after {
        transform: translateY(-50%) rotate(180deg);
    }

    /* Vehicle Info in Header - Mobile optimiert */
    .vehicle-cell {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
        max-width: 100%;
    }

    .vehicle-type-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.45rem;
        margin-bottom: 0;
    }

    .vehicle-name {
        font-size: 1rem;
        font-weight: 700;
        color: #212529;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        hyphens: none;
        word-break: keep-all;
    }

    html[data-bs-theme="dark"] .vehicle-name {
        color: #f8f9fa;
    }

    .vehicle-meta {
        font-size: 0.8rem;
        margin-top: -0.15rem;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .callsign-chip {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin-top: 0.25rem;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Status Badge - Mobile Size */
    .state-icon-clickable {
        width: 24px;
        height: 24px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    /* Mobile Card Header - Erste und Zweite Spalte sichtbar */
    .shift-row td:first-child,
    .shift-row td:nth-child(2) {
        display: block !important;
        padding: 0.75rem 1rem !important;
    }

    .shift-row td:first-child {
        cursor: pointer;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: none;
        position: relative;
        padding-bottom: 0.5rem !important;
    }

    html[data-bs-theme="dark"] .shift-row td:first-child {
        background: linear-gradient(135deg, rgba(33, 37, 41, 0.95) 0%, rgba(52, 58, 64, 0.95) 100%);
    }

    /* Zweite Spalte (Schicht) auch im Header - klickbar */
    .shift-row td:nth-child(2) {
        cursor: pointer;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 1px solid rgba(0, 0, 0, 0.08);
        padding-top: 0.35rem !important;
        padding-bottom: 0.75rem !important;
        position: relative;
    }

    html[data-bs-theme="dark"] .shift-row td:nth-child(2) {
        background: linear-gradient(135deg, rgba(33, 37, 41, 0.95) 0%, rgba(52, 58, 64, 0.95) 100%);
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    /* Spalte 2 Inhalt (Schicht Name + Status Icon) */
    .shift-row td:nth-child(2) > div {
        font-size: 0.9rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding-right: 1.6rem; /* Platz für Chevron */
    }

    .shift-row td:nth-child(2) strong {
        font-size: 0.95rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .shift-row td:nth-child(2) .text-muted {
        font-size: 0.75rem;
    }

    /* Card Body (ausklappbarer Content) - ab Spalte 3 */
    .shift-row td:nth-child(n+3) {
        display: none;
        padding: 0.85rem 1rem !important;
        animation: slideDown 0.3s ease;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .shift-row.mobile-expanded td:nth-child(n+3) {
        display: block;
    }

    html[data-bs-theme="dark"] .shift-row td:nth-child(n+3) {
        border-bottom-color: rgba(255, 255, 255, 0.08);
    }

    .shift-row td:nth-child(3) {
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    html[data-bs-theme="dark"] .shift-row td:nth-child(3) {
        border-top-color: rgba(255, 255, 255, 0.12);
    }

    /* Inputs in expanded content should fill width */
    .shift-row td:nth-child(n+3) .form-control,
    .shift-row td:nth-child(n+3) .form-select,
    .shift-row td:nth-child(n+3) textarea {
        width: 100%;
        max-width: 100%;
    }

    /* Mobile Section Labels - ab Spalte 3 */
    .shift-row td:nth-child(n+3)::before {
        content: attr(data-label);
        display: block;
        font-weight: 700;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #6c757d;
        margin-bottom: 0.5rem;
        padding-bottom: 0.4rem;
        border-bottom: 2px solid rgba(13, 110, 253, 0.15);
    }

    html[data-bs-theme="dark"] .shift-row td:nth-child(n+3)::before {
        color: #adb5bd;
        border-bottom-color: rgba(13, 110, 253, 0.3);
    }

    /* Planning Mode Labels */
    .shift-report-root[data-mode="planning"] .shift-row td:nth-child(3)::before {
        content: 'Abweichung';
    }

    .shift-report-root[data-mode="planning"] .shift-row td:nth-child(4)::before {
        content: 'Hinweise';
    }

    .shift-report-root[data-mode="planning"] .shift-row td:nth-child(5)::before {
        content: 'Leitstelle';
    }

    /* Dispatch Mode Labels */
    .shift-report-root[data-mode="dispatch"] .shift-row td:nth-child(3)::before {
        content: 'Zeiten';
    }

    .shift-report-root[data-mode="dispatch"] .shift-row td:nth-child(4)::before {
        content: 'Hinweise';
    }

    /* Visual Indicators in Mobile Header */
    .shift-row.has-dispatch-update td:first-child,
    .shift-row.has-planning-update td:first-child {
        background-size: 4px 100%;
        background-repeat: no-repeat;
        background-position: left top;
    }

    .shift-row.has-dispatch-update td:first-child {
        background-image: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    }

    .shift-row.has-planning-update td:first-child {
        background-image: linear-gradient(180deg, #d63384 0%, #a61e63 100%);
    }

    .shift-row.state-cancelled td:first-child {
        opacity: 0.7;
        background: linear-gradient(135deg, #f8d7da 0%, #f1aeb5 100%);
    }

    html[data-bs-theme="dark"] .shift-row.state-cancelled td:first-child {
        background: linear-gradient(135deg, rgba(220, 53, 69, 0.2) 0%, rgba(220, 53, 69, 0.15) 100%);
    }

    /* Tabs responsive */
    .shift-report-tabs .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.5rem 1rem;
    }

    /* Toolbar responsive */
    .shift-report-toolbar .row {
        row-gap: 1rem;
    }

    /* Filter Card responsive */
    .shift-filter-card .row {
        row-gap: 0.75rem;
    }

    /* Time Grid Optimierung */
    .time-grid {
        gap: 0.5rem;
    }

    /* Coordinator Deviations */
    .coordinator-deviations {
        padding: 0.5rem;
        font-size: 0.85rem;
    }

    .deviation-title {
        font-size: 0.65rem;
    }

    /* Hints */
    .coordinator-hints {
        gap: 0.35rem;
    }

    .hint-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .hint-text {
        font-size: 0.75rem;
        padding: 0.3rem 0.45rem;
    }

    /* History responsive für Mobile */
    .history-desktop-view {
        display: none;
    }

    .history-mobile-view {
        display: block;
    }

    .shift-history .card {
        padding: 0.5rem;
    }

    .history-pagination {
        flex-direction: column;
        gap: 0.5rem;
    }

    .history-pagination .btn {
        width: 100%;
    }

    /* Filter Icon Buttons Mobile */
    .filter-btn-group {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .btn-filter-icon {
        min-width: 32px;
        height: 32px;
        padding: 0.25rem 0.4rem;
        font-size: 0.8rem;
    }

    .btn-filter-icon .btn-filter-text {
        font-size: 0.7rem;
    }

    /* Dispatcher Note Mobile */
    .dispatcher-note {
        padding: 0.5rem 0.65rem;
        font-size: 0.85rem;
    }

    .dispatcher-note i {
        font-size: 0.9rem;
    }

    /* Dispatcher Summary Mobile */
    .dispatcher-summary-body {
        font-size: 0.85rem;
    }

    .dispatcher-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Tablet Responsive für History */
@media (max-width: 991px) and (min-width: 768px) {
    .shift-history-table th,
    .shift-history-table td {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .shift-history-table th i,
    .shift-history-table td i {
        font-size: 0.7rem;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}
.shift-filter-card {
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

html[data-bs-theme="dark"] .shift-filter-card {
    background: rgba(33, 37, 41, 0.85);
    border-color: rgba(255, 255, 255, 0.08);
}

.shift-filter-card .form-label-sm {
    letter-spacing: 0.08em;
}

.shift-filter-card .input-group-text {
    border-radius: 0.5rem 0 0 0.5rem;
    border-color: rgba(0, 0, 0, 0.05);
}

html[data-bs-theme="dark"] .shift-filter-card .input-group-text {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #f8f9fa;
}

.shift-filter-card .form-control,
.shift-filter-card .form-select {
    border-radius: 0.5rem;
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-bs-theme="dark"] .shift-filter-card .form-control,
html[data-bs-theme="dark"] .shift-filter-card .form-select {
    background-color: rgba(0, 0, 0, 0.35);
    color: #f8f9fa;
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-toggle-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.4rem 0.75rem;
    border-radius: 0.85rem;
    background: rgba(13, 110, 253, 0.08);
}

.filter-toggle-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--rf-muted);
    margin: 0;
}

html[data-bs-theme="dark"] .filter-toggle-wrap {
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 991px) {
    .filter-toggle-wrap {
        flex-direction: column;
        align-items: flex-start;
    }
}

.shift-filter-empty {
    margin-top: 1rem;
    border-radius: 0.75rem;
    border: 1px dashed rgba(255, 193, 7, 0.5);
    background: rgba(255, 243, 205, 0.5);
    color: #8a6d00;
}

html[data-bs-theme="dark"] .shift-filter-empty {
    background: rgba(255, 193, 7, 0.12);
    color: #ffda6a;
    border-color: rgba(255, 193, 7, 0.6);
}

/* =========================================
   VEHICLE DAMAGE BLUEPRINTS
   ========================================= */

.vehicle-blueprint__stage {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--rf-border);
  background: var(--rf-surface);
}

.vehicle-blueprint__stage.is-editable {
  cursor: crosshair;
}

.vehicle-blueprint__img {
  display: block;
  width: 100%;
  height: auto;
}

.vehicle-blueprint__placeholder {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  color: var(--rf-muted);
  background: var(--active-card-soft);
}

.vehicle-blueprint__overlay {
  position: absolute;
  inset: 0;
}

.vehicle-damage-mark {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 0;
  padding: 0;
  background: transparent;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.vehicle-damage-mark__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dc3545;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

html[data-bs-theme="dark"] .vehicle-damage-mark__dot {
  border-color: rgba(0, 0, 0, 0.45);
}
