/*
 * Layout adapted from Bootstrap's "Dashboard" example (dashboard.css, MIT licence,
 * https://getbootstrap.com/docs/5.0/examples/dashboard/), for Bootstrap 5.3.
 */

body {
  font-size: .875rem;
}

.num {
  font-variant-numeric: tabular-nums;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

/* On phones the menu opens as a panel under the navbar, only as tall as its links. */
@media (max-width: 767.98px) {
  .sidebar {
    top: 48px;
    bottom: auto;
    padding-top: 0;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);
  }

  .sidebar-sticky {
    height: auto;
    padding-bottom: .5rem;
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

/* Facturas table: each row opens its invoice. */
tr[data-href] {
  cursor: pointer;
}


/* Facturas table: the scrollbar copy above it. */
.table-scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  /* The same side borders as the table's wrapper, so both scroll the same distance. */
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
}

.table-scroll-top > div {
  height: 1px;
}
