.overdue { color: var(--bs-danger); font-weight: 600; }
.timeline-voided { text-decoration: line-through; color: var(--bs-secondary-color); }
.row-actions form { display: inline-block; }
.bar { background: var(--bs-primary); height: 1.25rem; min-width: 2px; }
.bar-track { background: var(--bs-secondary-bg); }
.board { display: flex; gap: 0.75rem; align-items: flex-start; overflow-x: auto; padding-bottom: 0.5rem; }
.board-column { flex: 0 0 15rem; background: var(--bs-tertiary-bg); border-radius: 6px; padding: 0.5rem; }
.board-column h2 { display: flex; justify-content: space-between; font-size: 0.875rem; margin: 0.25rem 0.25rem 0.5rem; }
.board-card { display: block; background: var(--bs-body-bg); border: 1px solid var(--bs-border-color); border-radius: 6px; padding: 0.5rem; margin-bottom: 0.5rem; text-decoration: none; color: inherit; }
.board-card:hover { border-color: var(--bs-primary); }
.board-card-finished { opacity: 0.6; }

/* App shell: header, menu on the left, page on the right */
:root { --app-header-height: 56px; --app-sidebar-width: 264px; }
body { background: var(--bs-tertiary-bg); }

.app-header {
  position: sticky; top: 0; z-index: 1020;
  display: flex; align-items: center; gap: 1rem;
  height: var(--app-header-height); padding: 0 1.25rem;
  background: var(--bs-primary); color: #fff;
}
.app-brand { color: #fff; font-size: 1.375rem; font-weight: 700; letter-spacing: 0.02em; text-decoration: none; }
.app-brand:hover { color: #fff; }
.app-user-menu { padding: 0.35rem 0.6rem; border-radius: 6px; color: #fff; font-weight: 600; text-decoration: none; }
.app-user-menu:hover, .app-user-menu[aria-expanded="true"] { background: rgba(255, 255, 255, 0.14); color: #fff; }

.app-sidebar-toggle {
  display: none; align-items: center; justify-content: center;
  width: 36px; height: 36px; margin-left: -0.5rem;
  border: 0; border-radius: 6px; background: transparent; color: #fff;
}
.app-sidebar-toggle:hover { background: rgba(255, 255, 255, 0.14); }
.app-sidebar-toggle svg { width: 24px; height: 24px; fill: currentColor; }

.app-shell { display: flex; align-items: stretch; min-height: calc(100vh - var(--app-header-height)); }
.app-sidebar {
  flex: 0 0 var(--app-sidebar-width); width: var(--app-sidebar-width);
  background: var(--bs-body-bg); border-right: 1px solid var(--bs-border-color);
}
/* The menu stays in view while a long page scrolls */
.app-sidebar-inner {
  position: sticky; top: var(--app-header-height);
  max-height: calc(100vh - var(--app-header-height));
  overflow-y: auto; padding: 1rem 0.75rem 1.5rem;
}
.app-main { flex: 1 1 auto; min-width: 0; padding: 1.75rem 2rem 3rem; }

@media (max-width: 991.98px) {
  .app-sidebar-toggle { display: inline-flex; }
  .app-sidebar {
    position: fixed; top: var(--app-header-height); bottom: 0; left: 0; z-index: 1010;
    transform: translateX(-100%); transition: transform 0.15s ease-out;
  }
  body.sidebar-open .app-sidebar { transform: none; box-shadow: 0 0 24px rgba(0, 0, 0, 0.18); }
  .app-sidebar-inner { position: static; max-height: 100%; }
  .app-main { padding: 1.25rem 1rem 2.5rem; }
}

/* The menu */
.app-nav ul { margin: 0; padding: 0; list-style: none; }
.app-nav > ul > li + li { margin-top: 0.25rem; }
.app-nav-link, .app-nav-group > summary {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 34px; padding: 0.3rem 0.6rem; border-radius: 6px;
  color: var(--bs-body-color); font-size: 0.875rem; line-height: 1.25;
  text-decoration: none; cursor: pointer; transition: background 0.1s ease-in-out;
}
.app-nav-link:hover, .app-nav-group > summary:hover { background: var(--bs-tertiary-bg); color: var(--bs-body-color); }
.app-nav-link:focus-visible, .app-nav-group > summary:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: -2px; }
.app-nav-link.active { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 600; }
.app-nav svg { flex: none; width: 20px; height: 20px; fill: var(--bs-primary); }

/* Collapsible sections, with what's inside nested on a guide line */
.app-nav-group > summary { list-style: none; font-weight: 600; user-select: none; }
.app-nav-group > summary::-webkit-details-marker { display: none; }
.app-nav-group > summary::after {
  content: ""; width: 0.45rem; height: 0.45rem; margin: -0.15rem 0.2rem 0 auto;
  border-right: 2px solid var(--bs-secondary-color); border-bottom: 2px solid var(--bs-secondary-color);
  transform: rotate(45deg); transition: transform 0.15s ease-out;
}
.app-nav-group:not([open]) > summary::after { transform: rotate(-45deg); }
.app-nav-group > ul { margin: 0.125rem 0 0.25rem 1.2rem; padding-left: 0.5rem; border-left: 1px solid var(--bs-border-color); }
