nav {
  margin-bottom: 0.5em;
}

select {
  padding: 0.2em;
}

button.disabled {
  opacity: 0.5;
}

div#env-banner > div {
  color: white;
  padding: 3px;
  text-align: center;
  background-color: hsl(35, 90%, 70%);
}

img.table-btn {
  height: 16px;
  cursor: pointer;
  margin: 2px;
}

img.table-btn:hover {
  transform: scale(1.1);
}

img.table-btn-disabled {
  height: 16px;
  margin: 2px;
  opacity: 0.5;
}

@media not print {
  div#main {
    padding: 20px;
    padding-bottom: 10px;
  }
}

@media print {
  .no-print {
    display: none;
  }
}

div.field {
  margin: 10px 0;
}

#icon-copyright {
  margin-left: 20px;
  font-size: 10px;
  color: grey;
  margin-bottom: 10px;
}

div#form-login {
  width: 400px;
}

@media (max-width: 700px) {
  div#form-invoice div#notes-parent {
    width: 100%;
  }
}

@media (min-width: 701px) {
  div#form-invoice div#notes-parent {
    float: right;
    width: 30em;
  }
}

div.def-left {
  padding-left: 0;
}

div.def-right {
  padding-right: 0;
}

@media (max-width: 767px) {
  div.def-left {
    border-bottom: 1px solid #444;
    padding-bottom: 1em;
  }

  div.def-right {
    padding-top: 1em;
  }
}

@media (min-width: 768px) {
  div.def-left {
    border-right: 1px solid #444;
  }
}

thead.floating {
  transform: scaleX(0);
  position: fixed;
  top: 0;
  margin-left: -1px;
  z-index: 1;
}

table:last-child {
  margin-bottom: 5px;
}

table.invoice-totals {
  margin: 0.5em 0;
}

table.invoice-totals td {
  padding: 0.35em 0;
}

table.invoice-totals td.value {
  text-align: right;
  padding-left: 0.7em;
}

div.invoice-detail {
  font-size: 85%;
}

table#tbl-rep-sales td.invoice-details {
  /* Avoid excessive wrapping */
  min-width: 12em;
}

table#tbl-rep-sales > thead > tr > th,
table#tbl-rep-sales > tbody > tr.row-dark > td:not(.invoice-details) {
  background-color: #f9f9f9;
}

table#tbl-rep-sales tr.corrected td.invoice-details {
  background-color: #fffce0;
}

table#sales-totals {
  margin: 0.5em auto;
}

table#sales-totals td {
  padding: 0.3em 0.5em;
}

table#bank-details {
  margin: 0.1cm 0;
}

table#bank-details th {
  font-weight: normal;
  text-decoration: underline;
  text-align: right;
}

table#bank-details td, table#bank-details th {
  padding: 0.05cm 0.2cm;
}

table#invoice-print-totals td {
  text-align: right;
}

table#invoice-print-footer {
  width: 100%;
}

table#invoice-print-footer td {
  -webkit-print-color-adjust: exact;
  color: #808080;
  vertical-align: top;
}

table.data-editor {
  width: auto; /* Disable 100% width from Bootstrap */
  margin-bottom: 0;
}

table.attr-header {
  margin-bottom: 1em;
}

table.value-group-header {
  margin-bottom: 0.2em;
}

table.attr-header td {
  padding: 0.2em 0.4em 0.2em 0;
}

table.value-group-header td {
  padding: 0.2em 0.4em;
}

table.attr-header td {
  vertical-align: top;
}

td.note-column {
  max-width: 12em;
}

div.attr-option:before {
  content: '\2022';
  margin-right: 0.2em;
}

pre.stack {
  font-size: 0.8em;
  margin: 0;
  margin-bottom: 0.5em;
}

select.filter option.inactive, .filter-option.inactive {
  color: silver;
}

.upload-image-container {
  display: inline-block;
  border-radius: 5px;
  padding: 5px;
  line-height: 0;
  background-color: hsl(40, 15%, 90%);
  border: 1px solid hsl(40, 15%, 65%);
}

/* Bootstrap overrides */

.table-striped > thead > tr > th,
.table-striped > tbody > tr:nth-child(even) > td {
  background-color: #f9f9f9;
}

.table-striped > tbody > tr:nth-child(odd) > td {
  background-color: initial;
}

.table-striped > tbody > tr.deactivated:nth-child(even) > td {
  background-color: #707070;
}

.table-striped > tbody > tr.deactivated:nth-child(odd) > td {
  background-color: #909090;
}

.modal-dialog {
  transform: none !important;
  white-space: normal;
}
.modal-dialog.modal-xl {
  width: 1000px;
}
.modal-header {
  padding: 10px 15px;
}

.modal-body {
  padding: 10px 20px;
}

.modal-footer {
  margin-top: 0;
  padding: 15px;
}

.modal-dialog.narrow,
.modal-dialog.edit-user,
.modal-dialog.edit-material,
.modal-dialog.edit-material-report,
.modal-dialog.edit-production-report,
.modal-dialog.cut-material-amount {
  width: 500px;
}

.modal-dialog.edit-product-definition {
  width: auto;
  max-width: 1200px;
}

.modal-dialog.add-inventory-amount {
  width: 400px;
  margin-top: 150px;
}

.modal-dialog.add-material-amount {
  width: 450px;
  margin-top: 150px;
}

.modal-dialog.edit-amount {
  width: 350px;
  margin-top: 150px;
}

.modal-dialog.transform {
  width: 400px;
}

.modal-dialog.choose-item {
  width: auto;
  max-width: 1000px;
}

.modal-body .row-inventory {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.modal-body .col-left {
  font-weight: bold;
}

.btn-group-vertical .btn {
  padding: 0.3em 0.7em;
}

.btn-group .btn {
  padding: 0.15em 0.5em;
}

.text-bold {
  font-weight: bold;
}

.text-red {
  color: #c00;
}

.text-red-bold {
  color: #c00;
  font-weight: bold;
}

select.input-wide,
input.input-wide {
  width: 20em;
}

input.input-narrow {
  width: 4em;
}

.row-form {
  margin: 0.5em 0;
}

.row-form-label {
  font-weight: bold;
  padding-left: 0;
}

.button-container, .expense-category-node, .filter-intro {
  margin-bottom: 0.5em;
}

div.grid-selection {
  display: inline-block;
}

.grid-selection-option, a.add-link {
  cursor: pointer;
}

.grid-selection-year {
  width: 250px;
  height: 196px;
  margin-right: 1em;
  overflow-y: scroll;
}

.grid-selection-month {
  width: 220px;
}

.tree-list-group {
  width: 750px;
  box-shadow: -2px 5px 10px;
}

div.expense-category-filter-form {
  padding-left: 1em;
}

div.filter-dropdown {
  margin-bottom: 0.25em;
}

select.filter-narrow {
  width: 16em;
}

div.progress-bar-container {
  width: 200px;
  height: 20px;
  margin: 2px;
  padding: 1px;
  border-style: solid;
  border-width: 1px;
  border-color: #444444;
  border-radius: 5px;
}

div.progress-bar {
  height: 100%;
  margin: 0;
  padding: 0;
  background-color: #0077aa;
  border-radius: 5px;
}

div.invoice-filters {
  margin-top: 7px;
  margin-bottom: 10px;
}

span.span-filter {
  padding: 5px;
  margin: 5px;
  border-style: solid;
  border-width: 1px;
  border-color: #444444;
  background-color: #eeeeee;
}

.padded {
  padding: 5px;
}

.value-label-remove {
  cursor: pointer;
  margin-left: 3px;
  font-size: 1.4em;
  font-weight: bold;
  vertical-align: middle;
  color: rgb(144, 64, 64);
}

div.dropdown {
  position: absolute;
  background-color: white;
  border: 1px solid #ccc;
  box-shadow: 0 0.3em 0.6em rgba(0, 0, 0, 0.2);
  z-index: 100;
}

div.dropdown > div.dropdown-element {
  color: black;
  padding: 0.15em 0.3em;
  cursor: pointer;
}

div.dropdown > div.dropdown-element.active {
  background-color: rgb(48, 108, 192);
  color: white;
}

div.dropdown > div.ellipsis {
  font-size: 80%;
  color: #808080;
  background-color: #f8f8f8;
  padding: 0.15em 0.8em;
  border-bottom: 1px solid #ddd;
  border-top: 1px solid #ddd;
}

.customers-search {
  padding: 5px;
  width: 40%;
}

.customer-contact-view {
  white-space: pre-wrap;
  cursor: pointer;
}

.customer-contact-view > div:hover {
  border-style: solid;
  border-radius: 3px;
  border-width: 1px;
  border-color: #808080;
  padding: 2px;
}

textarea.textarea {
  width: 100%;
  height: 12em;
}

ul.search-results {
  box-shadow: -2px 5px 10px;
  padding: 0;
}

ul.search-results li {
  padding-left: 5px;
  list-style-type: none;
  border-style: solid;
  border-width: 1px;
  border-color:hsl(40, 15%, 65%);
}

#invoice-search-results {
  width: 12em;
}

hr.solid {
  border-top: 1px solid #e5e5e5;
}

.additional-table {
  display: grid;
  width: max-content;
  margin-top: 15px;
}

.additional-table__title {
  font-weight: bold;
  padding: 0 0 5px 5px;
}
.additional-table__row {
  display: grid;
  grid-template-columns: 200px 100px;
  align-items: center;
  border-bottom: 1px solid #dddddd;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
  padding: 5px;
  /* margin-bottom: 10px; */
}
.additional-table__row:nth-child(2) {
  border-top: 1px solid #ddd;
}
.additional-table__row > div {
  padding-left: 5px;
}
.additional-table__row input {
  width: 100%;
}

.new-material {
  display: flex;
  gap: 10px
}

.new-material__column {
  display: flex; 
  flex-direction: column; 
}

.new-material__column-title {
  margin: 0;
}