/* solve error / bug in Tabler that produces gap left of header.navbar 
"Combined" mode caused throug html margin-left of 15px when scrollbar 
is displayed */
@media (min-width: 992px) {
  :root {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* reset highlight colors for dark theme */
html[data-bs-theme="dark"] ::selection {
  background: #9fdcff;
  color: #0f172a;
}

html[data-bs-theme="dark"] ::-moz-selection {
  background: #9fdcff;
  color: #0f172a;
}

body {
  background: var(--tl-page-bg);
}

.page {
  min-height: 100vh;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.tl-auth-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(0, 144, 50, 0.12), transparent 32%),
    linear-gradient(180deg, #f7faf8 0%, #eef4f0 100%);
}

html[data-bs-theme="dark"] .tl-auth-page {
  background:
    radial-gradient(circle at top, rgba(0, 144, 50, 0.16), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #162032 100%);
}

.tl-auth-card {
  border: 1px solid rgba(24, 36, 51, 0.08);
  box-shadow: 0 24px 70px rgba(24, 36, 51, 0.12);
}

.tl-auth-logo {
  width: min(220px, 70%);
  width: 280px;
  max-width: 90%;
  height: auto;
}

.navbar-brand a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.navbar .navbar-brand {
  font-weight: 700;
}

:root {
  --tblr-primary: #B10613;
  --tblr-primary-rgb: 0, 144, 50;
  --tl-header-bg: #ffffff;
  --tl-page-bg: #f6f8fb;
}

html[data-bs-theme="dark"] {
  --tblr-primary: #B10613;
  --tblr-primary-rgb: 0, 144, 50;
  --tl-header-bg: #182433;
  --tl-page-bg: #0f172a;
}

.tl-brand-mark {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--tblr-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
}

.tl-brand-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.page-wrapper {
  background: var(--tl-page-bg);
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.tl-header {
  background: var(--tl-header-bg);
  border-bottom: 1px solid var(--tblr-border-color);
}

.tl-header .navbar-brand {
  min-height: 3rem;
}

.tl-header #navbar-menu {
  flex-basis: 100%;
  width: 100%;
  border-top: 1px solid var(--tblr-border-color);
}

.tl-header #navbar-menu .navbar-nav {
  gap: 0.25rem;
}

.tl-header #navbar-menu .nav-link {
  border-radius: 0.5rem;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.tl-header #navbar-menu .nav-link.active,
.tl-header #navbar-menu .show > .nav-link {
  font-weight: 600;
}

.tl-header .dropdown-menu {
  margin-top: 0.35rem;
  min-width: 12rem;
}

.tl-topbar-icon-btn,
.tl-topbar-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.tl-topbar-icon-btn {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.tl-topbar-icon-btn:hover,
.tl-topbar-icon-link:hover {
  background: rgba(0, 0, 0, 0.04);
}

html[data-bs-theme="dark"] .tl-topbar-icon-btn:hover,
html[data-bs-theme="dark"] .tl-topbar-icon-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.tl-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.tl-notification-dot {
  position: absolute;
  top: 0;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d63939;
  border: 2px solid var(--tl-header-bg);
  box-sizing: border-box;
}

.tl-notification-dropdown {
  min-width: 22rem;
}

.page-body {
  flex: 1 0 auto;
  padding-bottom: 1.5rem;
}

.page-footer {
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--tblr-border-color);
  background: transparent;
}

.page-footer .list-inline-item,
.page-footer .link-secondary {
  font-size: 0.875rem;
}

.icon-theme-light {
  display: none;
}

html[data-bs-theme="dark"] .icon-theme-dark {
  display: none;
}

html[data-bs-theme="dark"] .icon-theme-light {
  display: inline-block;
}

html[data-bs-theme="dark"] body {
  color: #e5e7eb;
}

html[data-bs-theme="dark"] .card {
  color: #e5e7eb;
}

html[data-bs-theme="dark"] .text-secondary {
  color: #94a3b8 !important;
}

@media (min-width: 768px) {
  .tl-header > .container-xl {
    align-items: center;
    min-height: 3rem;
  }

  .tl-header #navbar-menu {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
  }

  .tl-header #navbar-menu .navbar-nav {
    margin-left: 0;
  }

  .tl-header #navbar-menu .nav-link {
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
  }
}

.tl-plan-card {
  overflow: hidden;
}

.tl-plan-jump-btn {
  white-space: nowrap;
}

.tl-plan-section.with-border {
  border-top: 1px solid var(--tblr-border-color);
}

.tl-plan-section h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
}

.tl-plan-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
}

.tl-plan-table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.tl-plan-table th,
.tl-plan-table td {
  border-right: 1px solid var(--tblr-border-color);
  border-bottom: 1px solid var(--tblr-border-color);
  padding: 0;
}

.tl-plan-table thead th {
  background: var(--tblr-bg-surface);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tl-plan-months th {
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.tl-plan-day-head {
  width: 2rem;
  min-width: 2rem;
  text-align: center;
  padding: 0.45rem 0;
  font-size: 0.7rem;
  font-weight: 600;
}

.tl-plan-day-head.is-weekend {
  background: rgba(177, 6, 19, 0.06);
}

.tl-plan-day-head.is-today {
  background: rgba(177, 6, 19, 0.14);
  color: #7f0f16;
}

.tl-plan-sticky {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--tblr-bg-surface);
}

.tl-plan-placement-head,
.tl-plan-placement-cell {
  left: 0;
  min-width: 15rem;
  width: 15rem;
  padding: 0.75rem 0.9rem;
  text-align: left;
}

.tl-plan-lane-head,
.tl-plan-lane-cell {
  left: 15rem;
  min-width: 4.5rem;
  width: 4.5rem;
  padding: 0.75rem 0.75rem;
  text-align: center;
}

.tl-plan-placement-cell,
.tl-plan-lane-cell {
  font-size: 0.875rem;
  font-weight: 600;
  vertical-align: middle;
  background: var(--tblr-bg-surface);
}

.tl-plan-empty {
  width: 2rem;
  min-width: 2rem;
  height: 2.6rem;
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.04), rgba(148, 163, 184, 0.01));
}

.tl-plan-booking {
  min-width: 2rem;
  height: 2.6rem;
  padding: 0.25rem 0.4rem;
  vertical-align: middle;
  border-inline: 1px solid rgba(255, 255, 255, 0.12);
}

.tl-plan-booking-label {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 700;
}

.tl-plan-booking.status-angefragt {
  background: rgba(245, 158, 11, 0.2);
  color: #b45309;
}

.tl-plan-booking.status-geplant {
  background: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
}

.tl-plan-booking.status-bestaetigt {
  background: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.tl-plan-booking.status-bezahlt {
  background: rgba(107, 114, 128, 0.18);
  color: #374151;
}

html[data-bs-theme="dark"] .tl-plan-table thead th,
html[data-bs-theme="dark"] .tl-plan-sticky,
html[data-bs-theme="dark"] .tl-plan-placement-cell,
html[data-bs-theme="dark"] .tl-plan-lane-cell {
  background: #182433;
}

html[data-bs-theme="dark"] .tl-plan-day-head.is-weekend {
  background: rgba(177, 6, 19, 0.12);
}

html[data-bs-theme="dark"] .tl-plan-day-head.is-today {
  background: rgba(177, 6, 19, 0.2);
  color: #fecaca;
}

html[data-bs-theme="dark"] .tl-plan-empty {
  background:
    linear-gradient(180deg, rgba(148, 163, 184, 0.06), rgba(15, 23, 42, 0.02));
}

html[data-bs-theme="dark"] .tl-plan-booking.status-angefragt {
  background: rgba(245, 158, 11, 0.28);
  color: #fde68a;
}

html[data-bs-theme="dark"] .tl-plan-booking.status-geplant {
  background: rgba(59, 130, 246, 0.28);
  color: #bfdbfe;
}

html[data-bs-theme="dark"] .tl-plan-booking.status-bestaetigt {
  background: rgba(16, 185, 129, 0.28);
  color: #bbf7d0;
}

html[data-bs-theme="dark"] .tl-plan-booking.status-bezahlt {
  background: rgba(100, 116, 139, 0.3);
  color: #e2e8f0;
}

@media (max-width: 767.98px) {
  .tl-plan-placement-head,
  .tl-plan-placement-cell {
    min-width: 11rem;
    width: 11rem;
  }

  .tl-plan-lane-head,
  .tl-plan-lane-cell {
    left: 11rem;
    min-width: 4rem;
    width: 4rem;
  }
}
