html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Fix för dropdown-menyer i menyplanering - använd position fixed för att undvika tabellbegränsningar */
.menu-item .dropdown-menu,
.menu-item-dropdown {
  position: fixed !important;
  z-index: 99999 !important;
  min-width: 140px;
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  background-color: white !important;
  border-radius: 0.375rem;
  margin: 0 !important;
  transform: none !important;
  inset: auto !important;
}

.menu-item .dropdown-menu.show,
.menu-item-dropdown.show {
  display: block !important;
  position: fixed !important;
  transform: none !important;
}

/* Säkerställ att table-responsive inte hindrar dropdown */
.table-responsive {
  overflow: visible !important;
}

.menu-table {
  position: relative;
}

.menu-day-cell {
  position: relative;
  overflow: visible !important;
  min-height: 200px;
}

.menu-table tbody tr td {
  overflow: visible !important;
  vertical-align: top !important;
}

/* För att säkerställera att dropdown inte klipps av */
.card-body {
  overflow: visible !important;
}

.menu-item {
  position: relative;
  z-index: 1;
}

/* Höj z-index för menu-item som har öppen dropdown */
.menu-item:has(.dropdown-menu.show) {
  z-index: 10000 !important;
}

.menu-item .dropdown {
  position: relative;
}

.menu-item .dropdown-menu.show {
  display: block !important;
}