:root {
  --sidebar-width: 260px;
  --sidebar-collapsed-width: 72px;
  --mobile-bottom-nav-height: 64px;
  --topbar-height: 56px;
}

html, body {
  height: 100%;
  margin: 0;
}
body {
  font-family: "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #111827; /* donkergrijs voor body tekst */
}

titlebar {
  font-size: 1.25rem;
  font-weight: 600;
}

.filterbar{
    position: sticky;
    top: 0px;
    height: 100px;

    display: flex;
    gap: 20px;

    align-items: center;    

    color: black;
    background: #f0f0f0;
    z-index: 1000;
    font-weight: 600;
}
.filter{
    display:flex;
    flex-direction:column;
}
.filterbar > .filter:first-child {
    margin-left: 20px;
}
.filterbar > .filter:last-child {
    margin-right: 20px;
}

.date-range {
    display: flex;           /* alles naast elkaar */
    gap: 8px;                /* ruimte tussen Van en Tot */
    align-items: center;      /* netjes uitlijnen */
}

.date-group {
    display: flex;
    flex-direction: column;  /* label boven input */
}

.title{
  font-size: 1.25rem;
  font-weight: 300;
}

.app-topbar {
  position: sticky;
  top: 0;
  height: var(--topbar-height);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  background: #eee;
  border-bottom: 0px solid rgba(0,0,0,0.0001);
}

.app-topbar-title {
  font-weight: 600;
}

/* Sidebar */
.app-sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--sidebar-width);
  background: #fff;
  border-right: 1px solid rgba(0,0,0,0.1);
  z-index: 1000;
}

.app-sidebar-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.app-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 6px 12px 6px;
}

.brand {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
}

.app-nav-link i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.app-nav-link:hover {
  background: rgba(0,0,0,0.05);
}

.app-nav-link.active {
  background: rgba(13,110,253,0.12);
  color: #0d6efd;
}

.app-nav-btn {
  cursor: pointer;
}

.app-submenu {
  margin-left: 6px;
  padding-left: 10px;
  border-left: 1px solid rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.app-submenu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 10px;
  color: #111;
  text-decoration: none;
}

.app-submenu-link i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

.app-submenu-link:hover {
  background: rgba(0,0,0,0.05);
}

/* Main */
.app-main {
  min-height: 100vh;
}

@media (min-width: 768px) {
  .app-main {
    margin-left: var(--sidebar-width);
  }

  body.sidebar-collapsed .app-sidebar {
    width: var(--sidebar-collapsed-width);
  }

  body.sidebar-collapsed .app-main {
    margin-left: var(--sidebar-collapsed-width);
  }

  body.sidebar-collapsed .label,
  body.sidebar-collapsed .brand,
  body.sidebar-collapsed .chevron {
    display: none;
  }

  body.sidebar-collapsed .app-sidebar-header {
    justify-content: center;
  }

  body.sidebar-collapsed .app-submenu {
    display: none;
  }
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mobile-bottom-nav-height);
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: #111;
  font-size: 12px;
  min-width: 72px;
}

.mobile-nav-link i {
  font-size: 1.35rem;
}

.mobile-nav-link.active {
  color: #0d6efd;
}

/* Content spacing on mobile */
@media (max-width: 767.98px) {
  .app-main {
    padding-top: 8px;
    padding-bottom: calc(var(--mobile-bottom-nav-height) + 12px);
  }
}
.hdr-action {
    width: 3px;
}