html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* The page itself never scrolls: header and footer keep their place and only the
   content area between them (.content-scroll) gets a scrollbar. */
html {
  height: 100%;
}

body {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.content-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

/* Pages that host a single element sized to fill the visible content area (the report
   embed) instead of flowing text; percentage heights need this chain, and the content
   runs edge to edge without the usual gutters. */
.fill-height,
.fill-height main {
  height: 100%;
}

.fill-height {
  padding: 0;
}

/* The Power BI embed iframe keeps the browser's default inset border, and as an
   inline element it would sit on the text baseline, leaving a gap below it. */
#embed-container iframe {
  border: 0;
  display: block;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
/* Access point tiles: a fixed 16:9 image area keeps the grid aligned whether a report
   has a thumbnail or shows the placeholder. */
.report-tile-thumb {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.report-tile-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bs-tertiary-bg);
  color: var(--bs-secondary-color);
}

.report-tile {
  transition: box-shadow 0.15s ease-in-out;
}

.report-tile:hover {
  box-shadow: var(--bs-box-shadow-sm);
}

/* Admin sidebar: grouped navigation that follows the viewport on long pages. */
.admin-nav {
  position: sticky;
  top: 1rem;
}

@media (max-width: 767.98px) {
  .admin-nav {
    position: static;
  }
}

.admin-nav .admin-nav-header {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bs-secondary-color);
  margin: 0.75rem 0 0.25rem 0.25rem;
}

.admin-nav .list-group-item {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

/* Inline SVG icons in the navbar sit on the text baseline; nudge them down so they
   center against the link text. */
.navbar .nav-icon {
  vertical-align: -0.175em;
}

/* Report menu: second-level dropdown groups open to the side on hover; Bootstrap has no
   nested dropdowns of its own. */
.dropdown-menu .dropdown-submenu {
  position: relative;
}

.dropdown-menu .dropdown-submenu > .dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  margin-top: -0.25rem;
}

.dropdown-menu .dropdown-submenu:hover > .dropdown-menu,
.dropdown-menu .dropdown-submenu:focus-within > .dropdown-menu {
  display: block;
}

.dropdown-menu .dropdown-submenu > .dropdown-toggle {
  cursor: pointer;
}

/* In the collapsed (burger) navbar there is no hover; show submenus inline instead. */
@media (max-width: 575.98px) {
  .dropdown-menu .dropdown-submenu > .dropdown-menu {
    display: block;
    position: static;
    margin-left: 1rem;
    border: 0;
    padding-top: 0;
  }
}
