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

html {
  overflow-x: hidden;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg,
canvas,
video {
  max-width: 100%;
}

.drive-mobile-nav-toggle,
.drive-mobile-nav-backdrop,
.mobile-menu-panel {
  display: none;
}

nav[aria-label="Hauptnavigation"] {
  position: relative;
  z-index: 1040;
}

nav > .nav-links {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin: 0;
  min-width: 0;
}

nav .dropdown-menu {
  margin: 0;
}

nav .dropdown-toggle {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

nav .dropdown-toggle::after {
  content: "";
  border-left: 0.25rem solid transparent;
  border-right: 0.25rem solid transparent;
  border-top: 0.3rem solid currentColor;
  display: inline-block;
  margin-left: 0.15rem;
}

.responsive-table-shell,
.table-responsive,
.admin-calendar-scroll,
.mobile-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.responsive-table-shell > table,
.table-responsive > table,
.admin-calendar-scroll > table,
.mobile-table-scroll > table {
  margin-bottom: 0;
}

@media (max-width: 1199.98px) {
  body.drive-nav-open {
    overflow: hidden;
  }

  .drive-mobile-nav-toggle {
    align-items: center;
    background: #ffd600;
    border: 1px solid rgba(15, 23, 42, 0.18);
    border-radius: 999px;
    bottom: 16px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.24);
    color: #202124;
    display: inline-flex;
    gap: 0.55rem;
    height: 54px;
    justify-content: center;
    left: auto;
    margin: 0 !important;
    min-height: 0;
    padding: 0;
    position: fixed !important;
    right: 16px;
    top: auto;
    width: 54px;
    pointer-events: auto;
    touch-action: manipulation;
    z-index: 2147483647;
  }

  .drive-mobile-nav-toggle-bars,
  .drive-mobile-nav-toggle-bars::before,
  .drive-mobile-nav-toggle-bars::after {
    background: currentColor;
    border-radius: 999px;
    content: "";
    display: block;
    height: 2px;
    width: 20px;
  }

  .drive-mobile-nav-toggle-bars {
    position: relative;
  }

  .drive-mobile-nav-toggle-bars::before,
  .drive-mobile-nav-toggle-bars::after {
    left: 0;
    position: absolute;
  }

  .drive-mobile-nav-toggle-bars::before {
    top: -6px;
  }

  .drive-mobile-nav-toggle-bars::after {
    top: 6px;
  }

  .drive-mobile-nav-toggle-label {
    display: none;
  }

  .drive-mobile-nav-backdrop {
    display: none !important;
  }

  .drive-mobile-nav-backdrop.is-visible {
    display: none !important;
  }

  body > nav:not(.mobile-menu-panel) {
    display: none !important;
  }

  .mobile-menu-panel {
    background: #171b22;
    color: #ffffff;
    display: block;
    height: 100dvh;
    inset: 0;
    margin: 0 !important;
    max-width: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 22px 14px 92px;
    pointer-events: auto;
    position: fixed !important;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    transition: transform 0.2s ease;
    width: 100vw;
    z-index: 2147483646;
  }

  .mobile-menu-panel[hidden] {
    display: none !important;
  }

  body.drive-nav-open .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-header {
    align-items: center;
    color: #ffd600;
    display: flex;
    font-size: 0.82rem;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0;
    margin: 0 0 14px;
    padding: 0 58px 10px 4px;
    text-transform: uppercase;
  }

  .mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
  }

  .mobile-menu-section,
  .mobile-menu-subsection {
    align-items: center;
    color: #ffd600;
    display: flex;
    gap: 0.58rem;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    margin: 0.7rem 0 0.18rem;
    min-height: 30px;
    padding: 0.35rem 0.65rem;
    text-transform: uppercase;
  }

  .mobile-menu-subsection {
    color: rgba(255, 214, 0, 0.88);
    font-size: 0.74rem;
    margin-top: 0.25rem;
  }

  .mobile-menu-link {
    align-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    color: #ffffff;
    display: flex;
    gap: 0.6rem;
    min-height: 46px;
    overflow-wrap: anywhere;
    padding: 0.7rem 0.78rem;
    text-decoration: none;
    touch-action: manipulation;
    width: 100%;
  }

  .mobile-menu-link:hover,
  .mobile-menu-link:focus,
  .mobile-menu-link.is-active {
    background: rgba(255, 214, 0, 0.16);
    border-color: rgba(255, 214, 0, 0.38);
    color: #ffffff;
    outline: none;
  }

  .mobile-menu-link i,
  .mobile-menu-section i,
  .mobile-menu-subsection i {
    color: rgba(255, 214, 0, 0.86);
    flex: 0 0 auto;
  }

  .mobile-menu-depth-1 {
    margin-left: 0.85rem;
    width: calc(100% - 0.85rem);
  }

  .mobile-menu-depth-2 {
    margin-left: 1.7rem;
    width: calc(100% - 1.7rem);
  }

  .mobile-menu-badge {
    align-items: center;
    background: #dc3545;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: center;
    margin-left: auto;
    min-width: 1.55rem;
    padding: 0.12rem 0.45rem;
  }

  main,
  .container,
  .container-fluid,
  .dashboard-container {
    max-width: 100%;
    min-width: 0;
  }

  main {
    margin-top: 0 !important;
    margin-left: auto;
    margin-right: auto;
    padding-left: 12px;
    padding-right: 12px;
    padding-top: 12px;
    width: 100%;
  }

  .dashboard-container {
    padding-top: 12px !important;
  }

  .with_sidebar,
  .grid-container,
  .flex-container,
  .two-column,
  .team-grid,
  .deadline-grid {
    grid-template-columns: 1fr !important;
    max-width: 100%;
  }

  form,
  fieldset,
  section,
  article,
  .card,
  .widget,
  .modal-content {
    max-width: 100%;
    min-width: 0;
  }

  input,
  select,
  textarea,
  button,
  .btn,
  .form-control,
  .form-select {
    max-width: 100%;
  }

  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea {
    width: 100%;
  }

  button,
  .btn {
    white-space: normal;
  }

  table:not(.no-mobile-scroll),
  .styled-table,
  .dashboard-table {
    display: block;
    max-width: 100%;
    min-width: max-content;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table:not(.no-mobile-scroll) thead,
  table:not(.no-mobile-scroll) tbody,
  table:not(.no-mobile-scroll) tr {
    width: max-content;
  }

  .responsive-table-shell table,
  .table-responsive table,
  .admin-calendar-scroll table,
  .mobile-table-scroll table {
    display: table;
    min-width: max-content;
  }

  .dashboard-table th,
  .dashboard-table td,
  table th,
  table td {
    white-space: nowrap;
  }

  .modal,
  .modal-overlay {
    align-items: flex-start !important;
    overflow-y: auto;
    padding: 12px;
  }

  .modal-content,
  .modal-dialog,
  .modal-overlay > div,
  #editModal > div,
  [id$="Modal"] > div {
    max-height: calc(100dvh - 24px);
    max-width: calc(100vw - 24px) !important;
    overflow-y: auto;
    width: calc(100vw - 24px) !important;
  }

  .month-navigation {
    align-items: stretch;
    display: grid;
    gap: 0.6rem;
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .drive-mobile-nav-toggle-label {
    display: none;
  }

  main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .card-body,
  .widget.card .card-body {
    padding: 14px;
  }
}
