body {
  font-size: 0.875rem;
}

.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, 0.1);
}

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

@supports (position: -webkit-sticky) or (position: sticky) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}
.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}
.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}
.sidebar .nav-link.active {
  color: #007bff;
}
.sidebar .nav-link:hover .feather, .sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: 0.75rem;
  text-transform: uppercase;
}

/*
 * Content
 */
[role=main] {
  padding-top: 48px; /* Space for fixed navbar */
}

/*
 * Navbar
 */
.navbar-brand {
  text-align: left !important;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, 0.25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.25);
}

.navbar .form-control {
  padding: 0.75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
}
.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

@media (min-width: 576px) {
  .ml-sm-auto, .mx-sm-auto {
    margin-left: auto !important;
  }
}
/*
 * Credits, which the original doesn't have, in the style of the other Auric examples' footers. Pinned to the bottom
 * of the window, beside the sidebar, over the same columns as the page, so they're always visible.
 */
[role=main] {
  padding-bottom: 60px; /* Space for the pinned credits */
}

.credits {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 99; /* Behind the sidebar */
  height: 40px;
  line-height: 39px;
  border-top: 1px solid #dee2e6;
  background-color: #fff;
  font-size: 12px;
  text-align: center;
}
@media (min-width: 768px) {
  .credits {
    left: 25%;
  }
}
@media (min-width: 992px) {
  .credits {
    left: 16.666667%;
  }
}
.credits .auric-logo {
  height: 16px;
  margin-left: 6px;
  vertical-align: middle;
}

/*
 * Orders, in the colors of the Northwind Orders app of Microsoft's Power Apps sample
 */
.orders-list {
  max-height: calc(100vh - 48px - 90px - 60px);
  overflow-y: auto;
  border-right: 1px solid #dee2e6;
}
.orders-list .list-group-item {
  border-bottom: 1px solid rgb(0, 18, 107);
}
.orders-list .list-group-item.active {
  color: inherit;
  background-color: rgb(215, 223, 240);
  border-color: rgb(0, 18, 107);
}

.order-number {
  font-size: 1.25rem;
}

.order-status {
  font-size: 1rem;
}

.status-New {
  color: black;
}

.status-Shipped {
  color: purple;
}

.status-Invoiced {
  color: blue;
}

.status-Closed {
  color: green;
}

.orders-placeholder {
  padding-top: 1rem;
}

.order-pane ~ .orders-placeholder {
  display: none;
}

.order-form .field {
  margin-bottom: 1rem;
}
.order-form .field-name {
  color: rgb(0, 18, 107);
  font-size: 0.8rem;
}

.order-details thead th,
.order-details .order-totals th {
  color: #fff;
  background-color: rgb(56, 96, 178);
  border-color: rgb(56, 96, 178);
}

/*
 * Forms of records, and the lines of orders and purchase orders, which are edited in place
 */
.record-form .form-actions {
  margin: 1rem 0 2rem;
}
.record-form .picture-field {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.record-form .picture {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
}
.record-form .picture-none {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.75rem;
}
.record-form .checkbox-list {
  max-height: 12rem;
  overflow-y: auto;
}

.order-details td {
  vertical-align: middle;
}
.order-details select {
  min-width: 8rem;
}
.order-details .line-number input {
  min-width: 5rem;
}
.order-details .add-line td {
  border-top: 2px solid #dee2e6;
}

.order-toolbar {
  position: sticky;
  top: 48px;
  z-index: 10;
  padding: 0.5rem 0;
  background-color: #fff;
}
