/* =========================
   Grundlayout
========================= */

html,
body {
  height: 100%;
  overflow: hidden;
  user-select: none;
}

/* =========================
   Navbar
========================= */
/*
.app-navbar {
    background-color: rgb(218, 41, 28);
    min-height: 64px;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 40px;
    width: auto;
    display: block;
}
*/

.app-navbar {
    background-color: rgb(218, 41, 28);
    min-height: 64px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0.5rem 1rem;
}

/* Logo Wrapper */
.navbar-logo-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Bild */
.navbar-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* =========================
   Wrapper unter Navbar
========================= */

.app-wrapper {
  overflow: hidden;
}

.app-content {
  overflow: auto;
}

main.app-content {
  height: calc(100dvh - 60px); /* 60px = Höhe der Topbar */
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
  padding-bottom: 1rem;
}

/* =========================
   Sidebar
========================= */

.sidebar {
  flex-direction: column;
}

/* =========================
   Offcanvas Top
========================= */
.offcanvas.offcanvas-top {
    --bs-offcanvas-height: 100vh;
}

.offcanvas.offcanvas-top {
  height: 100vh;
  max-height: 100vh;
}

.offcanvas.offcanvas-top .offcanvas-body {
  overflow-y: auto;
}

/* =========================
   Allgemein
========================= */
.toast-center {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1080;
}

.spinner-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1055; /* über Modals-Backdrop */
  background-color: rgba(255, 255, 255, 0.75);
}
