/* bootstrap4 compat */
.badge-danger {
  background-color: #d9534f;
}

.badge-info {
  background-color: #5bc0de;
}

.badge-success {
  background-color: #5cb85c;
}

.badge-warning {
  color: #8a6d3b;
  background-color: #fcf8e3;
}

.input-with-clear {
  width: 100%;
  position: relative;
  flex-grow: 2;
}

.input-with-clear .input-clear {
  position: absolute;
  right: 6px;
  top: 6px;
  background: transparent;
  border: none;
}

.help-well ol li {
  line-height: 1.7em;
}

.help-well ul li {
  line-height: 1.7em;
}

/* top-nav */

.top-nav {
  display: flex;
  border-radius: 4px;
  background-color: #f8f8f8;
  border: 1px solid #e7e7e7;
  margin-bottom: 5px;
  padding: 0 5px;
}

.top-nav .nav-brand {
  padding: 10px;
  overflow-x: hidden;
}

.top-nav .nav-brand img {
  height: 30px;
}

.top-nav .nav-pad {
  flex: 1 1;
}

.top-nav .nav-menus {
  text-align: right;
}

.top-nav .nav-element {
  flex: 0 3;
  background: transparent;
}

.top-nav .nav-element.active {
  background-image: linear-gradient(to bottom, #dbdbdb 0, #e2e2e2 100%);
}

.top-nav .nav-element a {
  display: block;
  padding: 15px;
  color: #555;
}

.top-nav a {
  white-space: nowrap;
}

.top-nav .nav-element a div {
  overflow-x: clip;
  text-align: center;
}

.top-nav .nav-shortname {
  display: none;
}

.top-nav .nav-tinyname {
  display: none;
}

.top-nav .nav-menu-option {
  white-space: nowrap;
}

@media all and (max-width: 1113px) {

  .top-nav .nav-menu-option {
    max-width: 100px;
    overflow-x: hidden;
    display: inline-block;
  }
}

@media all and (max-width: 900px) {
  .top-nav .nav-element a {
    padding: 15px 10px;
  }

  .top-nav .nav-pad {
    flex: 0 1;
  }

  .top-nav .nav-element {
    flex: 1 1;
  }

}

@media all and (max-width: 720px) {
  legend {
    font-size: 18px;
  }
  .top-nav .nav-element a {
    padding: 15px 7px;
  }

  .top-nav .nav-brand {
    display: none;
  }

  .top-nav .nav-name {
    display: none
  }

  .top-nav .nav-shortname {
    display: block;
  }
}

@media all and (max-width: 580px) {
  .top-nav .nav-menu-option {
    max-width: 60px;
  }
}

@media all and (max-width: 500px) {
  .top-nav .nav-shortname {
    display: none
  }

  .top-nav .nav-tinyname {
    display: block;
  }

  .top-nav .nav-menu-option {
    max-width: 60px;
  }
}

@media all and (max-width: 390px) {
  .top-nav .nav-element a {
    padding: 15px 5px;
  }

}

/* subnav */

@media all and (max-width: 850px) and (min-width: 768px) {
  .nav-tabs li a {
    font-size: 13px;
    padding: 10px 9px;
  }
}

@media all and (max-width: 767px) {
  .nav-tabs li a {
    font-size: 12px;
    padding: 10px 5px;
  }
}

/* etc */

.status-INACTIVE {
  text-decoration-line: line-through;
}

.status-ARCHIVED {
  text-decoration-line: line-through;
  color: grey
}

.status-INACTIVE::after,
.status-ARCHIVED::after {
  display: inline-block;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  font: var(--fa-font-solid);
  font-size: 0.8em;
  content: "\202f\f070";
}

.labelled-setup small {
  color: #999;
}

.sales-setup-details {
}

.row input[type=datetime-local].form-control {
  width: 13.75em;
}

.modal-footer {
  min-height: 4em;
}

/* Work arounds: */
/* - twitter bootstrap bug in handling empty dd elements */
.dl-horizontal dd:after {
  content: ".";
  display: block;
  clear: both;
  visibility: hidden;
  line-height: 0;
  height: 0;
}

/* twitter bootstrap bug for tooltip in dl.dl-horizontal */
dl.dl-horizontal > dt > .tooltip {
  white-space: normal;
}

/* twitter bootstrap bug for tooltip in a label in a .col-sm-3 */
label .tooltip {
  width: 100%;
}

/* twitter bootstrap scrolls background not modal */
.modal {
  overflow-y: scroll;
}

@media all and (min-width: 768px) {
  .dl-wide dt {
    width: 230px;
  }

  .dl-wide dd {
    margin-left: 250px;
  }
}

/* So the up/down select is at the far right */
input[type="number"] {
  padding-right: 0;
}

.fade-to-right {
  --mask: linear-gradient(to right,
  rgba(0, 0, 0, 1) 0, rgba(0, 0, 0, 1) 95%,
  rgba(0, 0, 0, 0) 100%, rgba(0, 0, 0, 0) 0
  ) 100% 50% / 100% 100% repeat-x;
  mask: var(--mask);
}

.checkered {
  --color-1: #808080;
  --color-2: #a9a9a9;
  --size: 8px;
  background-image: conic-gradient(var(--color-1) 25%, var(--color-2) 25%, var(--color-2) 50%, var(--color-1) 50%, var(--color-1) 75%, var(--color-2) 75%);
  background-size: calc(var(--size) * 2) calc(var(--size) * 2);
}

.signature {
  font-family: "Comic Sans MS", cursive, sans-serif
}

.legendNav ul.nav {
  font-size: 14px;
}

.legendNav ul.nav > li > a {
  padding: 5px 10px;
}

#refreshReport button {
  margin-right: 5px;
}

.strikethrough {
  text-decoration: line-through;
  text-decoration-color: #777;
}

.navbar-expand .navbar-collapse.collapse {
  display: block !important;
}

.navbar-expand .navbar-nav > li, .navbar-nav {
  float: left !important;
}

.navbar-expand .navbar-nav.navbar-right:last-child {
  margin-right: 10px !important;
}

.navbar-expand .navbar-right {
  float: right !important;
}

#header-message {
  position: fixed;
  z-index: 3;
  font-size: 14px;
  right: 10px;
  top: 10px;
  pointer-events: none;
  opacity: 0.6;
  padding: 0.2em 1em 0.3em;
}

/* http://getbootstrap.com/examples/sticky-footer/sticky-footer.css */
html,
body {
  height: 100%;
  /* The html and body elements cannot have any padding or margin. */
}

/* Wrapper for page content to push down footer */
#wrap {
  min-height: 100%;
  height: auto;
  /* Negative indent footer by its height */
  margin: 0 auto -60px;
  /* Pad bottom by footer height - padding: 0 0 60px; */
  padding: 5px 5px 70px 5px;
}

/* Set the fixed height of the footer here. #footer would break channel editing */
div#footer {
  border-top: 1px solid #E5E5E5;
  text-align: center;
  padding-top: 20px;
  height: 60px;
}

.closepopup {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 1
}

.subnav {
  margin-bottom: 15px;
}

.locale-switch img {
  border: 1px solid #eeeeee;
}

.locale-switch .dropdown-menu {
  min-width: 0;
}

.locale-switch .dropdown-menu a {
  padding: 6px 12px;
}

/* Handle 'required' class on form fields */
form .required label.control-label {
  font-weight: bold;
}

form .required label.control-label:after {
  color: #e32;
  content: '*';
  display: inline;
  font-weight: bold;
  font-size: 1.5em;
  line-height: 0.1em;
}

.main img {
  max-width: 100%;
}

.legend-tabs {
  margin-top: -11px;
  float: right
}

td.setStatus, td.setGate {
  color: #428bca;
  cursor: pointer;
}

td.setStatus:hover, td.setGate:hover {
  text-decoration: underline;
}

td.link {
  color: #428bca;
  cursor: pointer;
}

td.link:hover {
  text-decoration: underline;
}

ul.compact {
  padding-left: 1em;
  margin-bottom: 0;
}

.description {
  font-size: 1.1em;
  line-height: 1.4em;
  padding-bottom: 5px;
}

.toggle-group:hover {
  filter: brightness(120%);
  transition: transform .2s;
}

.freetext {
  font-size: 1.1em;
  line-height: 1.4em;
}

.freetext img {
  max-width: 100%;
}

/* Login page */
#login-logo {
  margin-bottom: 5px;
  max-width: 100%;
}

.login.action-area {
  max-width: 400px;
  margin: 30px auto;
  padding: 40px 80px 20px 80px;
}

@media all and (max-width: 400px) {
  .login.action-area {
    padding: 40px 40px 20px 40px;
  }
}

/* ... */

tr.statusINACTIVE td {
  opacity: 0.5;
  color: #d08080;
}

tr.statusARCHIVED td {
  opacity: 0.5;
  color: #804040;
}

.table tr.last-selected td {
  background-color: #d9edf7;
}

.table tr.last-selected th {
  background-color: #d9edf7;
}

dl.last-selected {
  background-color: #d9edf7;
}

.offsale-in-past {
  color: red;
  text-decoration: line-through;
}

.onsale-in-future {
  color: red;
}

.action-area {
  background-color: #f8f8f8;
  border: 1px solid #eeeeee;
  padding: 8px 12px 8px 12px;
  margin: 8px 0 12px 0;
  -webkit-border-radius: 8px;
  border-radius: 8px;
}

.action-area table {
  margin-bottom: 0;
}

.togglePriceGroup {
  margin-top: 5px;
}

.inline-radio label {
  font-weight: normal;
  margin: 0.6em 2em 0 0;
}

.inline-radio input {
  margin-right: 0.2em;
}

td.numeric,
th.numeric,
table.dataTable thead th.numeric,
table.dataTable tfoot th.numeric {
  text-align: right;
}

.unsettled-order,
.unsettled-order > td {
  background-color: #f0c0f0;
}

.instalment-plan-order,
.instalment-plan-order > td {
  background-color: #7AF3F3;
}

.incomplete-order > td {
  text-decoration: line-through;
  color: #666;
  background-color: #ffffcc;
}

.provisional-order > td {
  color: #802200;
  background-color: lightsalmon;
  font-style: italic;
}

.alert.provisional-order-alert {
  color: #802200;
  background-color: lightsalmon;
}

.info-barcode {
  margin-left: 8px;
}

.datamatrix_outer {
  display: table;
  background: white;
  width: 140px;
  height: 140px;
  padding: 10px;
}

.datamatrix_middle {
  display: table-cell;
  vertical-align: middle;
}

.datamatrix_container {
  margin: 0 auto;
  display: block;
  position: relative;
}

pre.inline {
  background: none;
  padding: 0;
  display: inline;
}

.unused-credit {
  font-weight: bold;
}

.dropdown-menu > li a.upload-button {
  text-decoration: none;
  color: #262626;
  padding: 3px 20px;
  display: block;
  white-space: nowrap;
}

.dropdown-menu > li a:hover.upload-button {
  background-color: #e8e8e8;
}

.commas:not(:last-child)::after {
  content: ', ';
}

.section-group-image {
  height: 4em;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: hidden;
}

.video-container iframe, .video-container object, .video-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

img.ficon {
  height: 0.8em;
  vertical-align: baseline;
}
