/* Bootstrap */
html {
  position: relative;
  min-height: 100%;
}

body {
  /* Margin bottom by footer height */
  margin-bottom: 80px;
}

.navbar {
  margin-bottom: 0px;
  border: none;
}

/* Appbar */
.appheader {
  padding-top: 40px;
  padding-bottom: 40px;
  text-align: left;
  font-size: 24px;
  background-color: rgb(43, 146, 80);
  color: rgb(182, 222, 196);
}

.appheader h1 {
  color: white;
}

/* Main content */

.main {
  padding-top: 20px;
}

.main .page-header {
  margin-top: 0;
}

/* Footer */

footer {
  color: #aaa;
  position: absolute;
  bottom: 0;
  /* Set the fixed height of the footer here */
  height: 80px;
  width: 100%;
  padding: 0 15px;
}

footer .footer-body {
  margin: 20px 0;
}

td input[type="number"] {
  width: 50px;
}

/* Distribution */
.quantity-active {
  background-color: #fcf8e3;
}

.product-unknown {
  background-color: #f2dede;
}

table.distribution {
  border-spacing: 0;
  border-collapse: separate;
}

table.distribution th, table.distribution td {
  /* Apply both top and bottom borders to the <th> */
  /* For cells, apply the border to one of each side only (right but not left, bottom but not top) */
  border-top: 1px solid #ddd;
  border-right: 1px solid #ddd;
}

table.distribution th:first-child,
table.distribution td:first-child {
  /* Apply a left border on the first <td> or <th> in a row */
  border-left: 1px solid #ddd;
}

.distribution-header {
  background-color: #f7f7f7;
}

.distribution-header-sticky-1 td, .distribution-header-sticky-1 th {
  position: sticky;
  top: 0px;
  background-color: #f7f7f7;
}

.distribution-header-sticky-2 td, .distribution-header-sticky-2 th {
  position: sticky;
  top: 37px;
  background-color: #f7f7f7;
  border-bottom: 1px solid #ddd;
}

@media print {
  /* Override BS content: " (" attr(href) ")"; */
  a[href]:after {
    content: none;
  }

  h1 {
    font-size: 24px;
  }

  input {
    border-style: none;
    display: inline-block;
  }

  .table>tbody>tr>td{
    padding: 4px;
  }

  table.distribution {
    border-spacing: 2px;
    border-collapse: collapse;
  }

  table.distribution th,  table.distribution td {
    /* Apply both top and bottom borders to the <th> */
    border: 1px solid #ddd;
  }

  .distribution-header-sticky-1 td, .distribution-header-sticky-1 th {
    position: static;
  }

  .distribution-header-sticky-2 td, .distribution-header-sticky-2 th {
    position: static;
    top: 0px;
  }
}
