/* 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;
}

.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;
}

.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
}

/* Right hand pill nav inside <legend> */
.legendNav {
  position: relative;
}

.legendNav legend {
  white-space: nowrap;
  overflow: hidden;
}

.legendNav ul.nav {
  background: white;
  position: absolute;
  top: -1px;
  right: 0;
  font-size: 14px;
}

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

#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;
}

#login-logo {
  margin-bottom: 5px;
}

#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
}

.navbar {
  margin-bottom: 5px;
}

.navbar img.navbar-brand {
  padding: 10px;
}

.subnav {
  margin-bottom: 15px;
}

.nav-right .btn-group {
  display: block;
}

.nav-right .btn-group .btn {
  float: right;
  padding: 2px 4px 2px 6px;
}

.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.action-area {
  max-width: 600px;
  margin: 30px auto;
  padding-top: 20px;
}

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;
}

@media all and (max-width: 950px) and (min-width: 851px) {
  .navbar-collapse li a {
    padding-left: 9px;
    padding-right: 9px;
  }
}

@media all and (max-width: 850px) and (min-width: 768px) {
  .navbar-collapse li a {
    font-size: 13px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .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;
  }
}

.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;
}
