:root {
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-sans-serif: var(--font-sans);
  --app-sidebar-width: 15rem;
  --app-topbar-height: 3.5rem;
  --app-gutter: 1.25rem;
  --app-radius: 0.75rem;
}

html.app-sidebar-collapsed {
  --app-sidebar-width: 4.25rem;
}

body.app-body {
  background: var(--app-bg);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

.app-body h1,
.app-body h2,
.app-body h3,
.app-body h4,
.app-body h5,
.app-body h6,
.app-body .btn,
.app-body .badge,
.app-body .navbar-brand {
  font-family: var(--font-sans);
}

.app-body h1,
.app-body h2,
.app-body h3,
.app-body h4 {
  letter-spacing: -0.015em;
}

.app-body .card {
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: 0 1px 2px rgb(16 24 40 / 4%), 0 1px 3px rgb(16 24 40 / 3%);
}

.app-body .btn {
  border-radius: 0.5rem;
  font-weight: 500;
}

.app-body .badge {
  border-radius: 0.375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.app-shell {
  min-height: 100dvh;
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  width: var(--app-sidebar-width);
  background: var(--app-sidebar-bg);
  border-right: 1px solid var(--app-sidebar-border);
  transition: width 0.18s ease, transform 0.2s ease;
}

.app-sidebar__brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.625rem;
  height: var(--app-topbar-height);
  padding: 0 1.125rem;
  overflow: hidden;
  border-bottom: 1px solid var(--app-sidebar-border);
  text-decoration: none;
}

.app-sidebar__logo {
  height: 1.75rem;
  width: auto;
}

.app-sidebar__mark {
  display: none;
  height: 1.75rem;
  width: auto;
}

.app-sidebar__product {
  padding: 0.75rem 0.625rem 0.25rem;
  color: var(--app-brand-from);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-sidebar__nav {
  flex: 1;
  min-height: 0;
  padding: 0.75rem 0.625rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.app-sidebar__label {
  padding: 1rem 0.625rem 0.375rem;
  color: var(--app-sidebar-muted);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-nav {
  display: grid;
  gap: 0.125rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.4375rem 0.625rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--app-sidebar-fg);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: start;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.12s, color 0.12s;
}

.app-nav-link:hover {
  background: var(--app-sidebar-hover);
  color: var(--app-sidebar-fg-strong);
}

.app-nav-link.is-active {
  background: var(--app-sidebar-active-bg);
  box-shadow: inset 3px 0 0 var(--app-sidebar-active-bar);
  color: var(--app-sidebar-active-fg);
  font-weight: 600;
}

.app-nav-link__icon {
  flex: none;
  width: 1.125rem;
  text-align: center;
}

.app-nav-link__text {
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__footer {
  flex: none;
  padding: 0.625rem;
  border-top: 1px solid var(--app-sidebar-border);
}

.app-sidebar__collapse .app-nav-link__icon {
  transition: transform 0.18s;
}

html.app-sidebar-collapsed .app-sidebar__collapse .app-nav-link__icon {
  transform: rotate(180deg);
}

.app-sidebar-backdrop {
  display: none;
}

.app-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100dvh;
}

.app-sidebar ~ .app-main {
  margin-inline-start: var(--app-sidebar-width);
  transition: margin 0.18s ease;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  flex: none;
  align-items: center;
  gap: 1rem;
  height: var(--app-topbar-height);
  padding: 0 var(--app-gutter);
  border-bottom: 1px solid var(--app-border);
  background: color-mix(in srgb, var(--app-bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
}

.app-topbar__menu {
  display: none;
  border: 0;
  background: none;
  color: var(--text-color-default);
  font-size: 1.125rem;
}

.app-topbar__context {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  overflow: hidden;
}

.app-topbar__actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0 auto;
}

.app-icon-button {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 0.5rem;
  background: none;
  color: var(--text-color-default);
  font-size: 1rem;
}

.app-icon-button:hover,
.app-icon-button[aria-expanded="true"] {
  background: var(--app-surface);
  box-shadow: 0 0 0 1px var(--app-border);
  color: var(--text-color-highlight);
}

.app-icon-button.dropdown-toggle::after {
  display: none;
}

.app-topbar__actions .notification-indicator {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border-radius: 0.5rem;
}

.app-topbar__actions .notification-indicator .text-xl {
  font-size: 1rem;
}

.app-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: 0.375rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-color-highlight);
  font-size: 0.875rem;
  font-weight: 500;
}

.app-user:hover,
.app-user[aria-expanded="true"] {
  background: var(--app-surface);
  box-shadow: 0 0 0 1px var(--app-border);
}

.app-user__caret {
  color: var(--text-color-muted);
  font-size: 0.625rem;
}

.app-avatar {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--app-brand-from), var(--app-brand-to));
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
}

.app-avatar--sm {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.6875rem;
}

.app-crumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.app-crumbs__link {
  color: var(--text-color-muted);
  font-size: 0.875rem;
  text-decoration: none;
}

.app-crumbs__link:hover {
  color: var(--color-primary);
}

.app-crumbs__sep {
  color: var(--text-color-subtle);
}

.app-crumbs__current {
  margin: 0;
  overflow: hidden;
  color: var(--text-color-emphasis);
  font-size: 1rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-crumbs__badge {
  flex: none;
}

.app-content {
  flex: 1;
  min-width: 0;
  padding: var(--app-gutter);
}

.app-messages {
  margin-bottom: 1rem;
}

.app-messages .alert:last-child {
  margin-bottom: 0;
}


.app-content a:not(.btn, .dropdown-item, .nav-link) {
  color: var(--app-link);
}

.app-content__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: var(--app-gutter);
}

.app-content__title {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
}

.app-content__subtitle {
  margin: 0.25rem 0 0;
  color: var(--text-color-muted);
  font-size: 0.9375rem;
}

@media (min-width: 1024px) {
  .app-content--fit {
    display: flex;
    flex: none;
    flex-direction: column;
    height: calc(100dvh - var(--app-topbar-height));
    overflow: hidden;
  }

  .app-content--fit > .app-fill {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
  }

  html.app-sidebar-collapsed .app-sidebar__brand {
    justify-content: center;
    padding: 0;
  }

  html.app-sidebar-collapsed .app-sidebar__logo,
  html.app-sidebar-collapsed .app-sidebar__product,
  html.app-sidebar-collapsed .app-nav-link__text,
  html.app-sidebar-collapsed .app-sidebar__label {
    display: none;
  }

  html.app-sidebar-collapsed .app-sidebar__mark {
    display: block;
  }

  html.app-sidebar-collapsed .app-nav-link {
    justify-content: center;
    padding-inline: 0;
  }
}

@media (max-width: 1023.98px) {
  .app-sidebar {
    width: 16rem;
    transform: translateX(-100%);
  }

  html.app-sidebar-open .app-sidebar {
    transform: none;
    box-shadow: 0 0 40px rgb(0 0 0 / 30%);
  }

  html.app-sidebar-open .app-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    display: block;
    background: rgb(11 23 39 / 45%);
  }

  .app-sidebar ~ .app-main {
    margin-inline-start: 0;
  }

  .app-sidebar__collapse {
    display: none;
  }

  .app-topbar__menu {
    display: inline-block;
  }

  .app-user__name {
    display: none;
  }
}

@media (max-width: 639.98px) {
  .app-topbar {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }

  .app-crumbs__link,
  .app-crumbs__sep {
    display: none;
  }

  .app-content {
    padding: 0.75rem;
  }
}

.app-content tr.empty-form,
.app-content .d-none {
  display: none;
}

.app-content .card-body:has(table) {
  overflow-x: auto;
}

.app-content .card-body td input:not([type="checkbox"]),
.app-content .card-body td select,
.app-content .card-body td textarea {
  min-width: 7.5rem;
}

.report-tile {
  display: block;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.report-tile:hover {
  box-shadow: 0 0 0 2px var(--hb-primary, #f26522) inset;
}
.report-tile__value {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.report-tile__label {
  font-size: .8125rem;
  color: var(--hb-secondary-color, #6b7280);
}
.report-bars {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  align-items: end;
  height: 160px;
}
.report-bars__bar {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  text-decoration: none;
}
.report-bars__fill {
  background: var(--hb-primary, #f26522);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.report-bars__bar:hover .report-bars__fill {
  opacity: .8;
}
.report-bars__axis {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  font-size: .6875rem;
  color: var(--hb-secondary-color, #6b7280);
  text-align: center;
  margin-top: 4px;
}
.report-rank__track {
  height: 6px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--hb-primary, #f26522) 15%, transparent);
}
.report-rank__fill {
  height: 6px;
  border-radius: 3px;
  background: var(--hb-primary, #f26522);
}
.report-num {
  font-variant-numeric: tabular-nums;
}
