.table-sort {
  width: 0.75rem;
  display: inline-block;
}

/* questionable override but scoped within specific css file...? */
th[data-sort-method]:not([data-sort-method="none"]) {
  text-align: left !important;
}

.table-sort i {
  opacity: 0;
  display: inline-block;
}

th:hover .table-sort i {
  opacity: 1;
}

[aria-sort] .table-sort i {
  opacity: 1;
}

[aria-sort="ascending"] .table-sort i {
  transform: rotate(180deg);
}

.table-actions+.table {
  margin-top: 1.2rem;
}

.table .table-checkbox {
  min-width: 0;
  text-align: center;
}

.table .row-actions {
  min-width: 160px;
  text-align: center;
}

.table .row-actions menu {
  margin: 0;
}

.table .row-actions :not(.btn-group.newTheme) .btn,
.table .row-actions :not(.btn-group.newTheme) button {
  background-color: transparent;
  border: 0.1rem solid #2d2d2d;
  padding: 0.5rem;
  cursor: pointer;
  color: #2d2d2d;
  height: auto;
  line-height: 1;
}

.table .row-actions .btn+.btn {
  margin-left: 5px;
}

.table .row-actions i {
  color: inherit;
}

.form-select:not([multiple]):not([size]) {
  background: #fff url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg version='1.1' viewBox='0 0 404.31 202.15' xml:space='preserve' xmlns='http://www.w3.org/2000/svg' xmlns:cc='http://creativecommons.org/ns%23' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23'%3E%3Cmetadata%3E%3Crdf:RDF%3E%3Ccc:Work rdf:about=''%3E%3Cdc:format%3Eimage/svg+xml%3C/dc:format%3E%3Cdc:type rdf:resource='http://purl.org/dc/dcmitype/StillImage'/%3E%3C/cc:Work%3E%3C/rdf:RDF%3E%3C/metadata%3E%3Cg transform='translate(0,-101.08)'%3E%3Cpath d='m0 101.08h404.31l-202.16 202.15z'/%3E%3C/g%3E%3C/svg%3E%0A") no-repeat right 0.5rem center/0.75rem 1rem;
  padding-right: 1.3rem;
}

.form-select {
  appearance: none;
  border: 2px solid #111;
  border-radius: 0.1rem;
  color: #2d2d2d;
  font-size: 0.875rem;
  height: 2.5rem;
  line-height: 1.2rem;
  outline: none;
  padding: 0.5rem 0.5rem;
  vertical-align: middle;
  /* width: 100%; */
  background: #fff;
  -moz-appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

.form-group div {
  margin-right: 0.5rem;
}

.form-select:focus {
  box-shadow: 0 0 0 0.1rem rgba(43, 151, 212, 0.2);
  border-color: #2995D3;
}

.form-select::-ms-expand {
  display: none;
}

.form-select option {
  color: #111;
}

.form-horizontal .form-group {
  display: flex;
  flex-wrap: wrap;
}

.form-split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* margin-top: 25px; */
}

.form-split .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-right: 15px;
}

.form-split .form-group input:not(.selectr-input),
.form-split .form-group select {
  width: 100%;
  margin-bottom: 10px;
}

.form-input {
  appearance: none;
  background: #fff;
  background-image: none;
  border: 0.1rem solid #111;
  border-radius: 0.1rem;
  color: #242f54;
  display: inline-block;
  font-size: 0.875rem;
  height: 2.5rem;
  line-height: 1.2rem;
  max-width: 100%;
  outline: none;
  padding: 0.5rem 0.5rem;
  position: relative;
  transition: background .2s, border .2s, box-shadow .2s, color .2s;
  /* width: 100%; */
  box-sizing: border-box;
}

.form-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(43, 151, 212, 0.2);
  border-color: #2995D3;
}

.form-input::placeholder {
  color: #b5b5b5;
}

.form-label {
  display: block;
  line-height: 1.2rem;
  padding: 0.6rem 0;
}

.form-checkbox {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.5rem;
}

.modal-container .checkMark {
  margin: 2px !important;
}

.modal-container .checkMarkContainer input {
  position: relative !important;
}

#orderingGrid table {
  margin-top: 20px;
  width: 100%;
  /* margin-left: auto; */
  /* margin-right: auto; */
}

#orderingGrid table.codesTable {
  display: contents;
}

#orderingGrid table.codesTable select {
  margin-right: 40px;
}

#orderingGrid td input.bbQty {
  width: 40px;
  text-align: center;
  display: inline-block;
  border: 1px solid #2995D3;
  margin: 0 5px;
}

#orderingGrid th.altEditions {
  background-color: #c9c9c9;
}

#orderingGrid .copyIcon {
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid #000;
}

#orderingGrid .addToTier {
  position: relative;
  margin-left: 0.5rem;
  border: 1px solid #000;
}

#orderingGrid .fa-trash {
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid #000;
}

#orderingGrid i.invisible {
  opacity: 0;
}

#orderingGrid .productBinding {
  color: grey;
}

#orderingGrid .productTitle {
  font-style: italic;
}

#orderingGrid td {
  text-align: left;
  font-size: 1rem;
  padding: 0.5rem;
}

#orderingGrid td.orderTrack {
  width: 1rem;
}

#orderingGrid .form-select {
  font-size: 1rem;
  height: 2rem;
  padding: 0 1.2rem 0 0.5rem;
  border: 1px solid #cacaca;
}

#orderingGrid .form-select+.copyIcon {
  margin-left: 5px;
}

#orderingGrid .form-input {
  font-size: 1rem;
  height: 2rem;
  padding: 0 0.5rem;
}

#orderingGrid th {
  font-size: 1rem;
  background-color: #ececec;
  text-align: left;
  padding: 0.5rem;
  font-weight: 600;
}

#orderingGrid tr.tierA {
  background-color: #e8f4fa;
}

#orderingGrid tr.tierB {
  padding-top: 1rem;
  background-color: #fbfbfb;
}

#orderingGrid tr td.tierRow {
  vertical-align: top;
}

#orderingGrid div table tr:not(.productInfo) td:first-child {
  width: 100px;
}

#addToBasketModal .totals td {
  background-color: #ececec;
}

#addToBasketModal td.right,
#addToBasketModal th.right {
  text-align: right;
}

#addToBasketModal td.center,
#addToBasketModal th.center {
  text-align: center;
}

#addToBasketModal .productInfo {
  background-color: #fbfbfb;
}

/* #addToBasketModal .modal-container .modal-footer {
    text-align: center;
} */

#addToBasketModal .modal-container .modal-header .btn {
  top: 0;
}

#addToBasketModal .modal-container .modal-header {
  padding: 0;
  z-index: 99;
}

.orderingGridTable th.basket,
.orderingGridTable th.altEditions,
.orderingGridTable th.ordered {
  min-width: 25px;
}

.orderingGridTable th.unitPrice,
.orderingGridTable th.servicing {
  min-width: 85px;
}

.orderingGridTable th.qty {
  min-width: 120px;
}

.orderingGridTable th.branchTotals {
  min-width: 125px;
}

.orderingGridTable th.edi {
  min-width: 135px;
}

.orderingGridTable .tierRow.branchTierName {
  min-width: 100px;
}

menu {
  padding-left: 0;
}

/* 
.btn-group {
  display: inline-flex;
  flex-wrap: wrap;
} */

.btn-group .btn {
  flex: 1 0 auto;
  margin-right: 0.5rem;
}

.row-actions .btn {
  margin-right: 0;
}

table.basketTable tr th:first-child {
  width: auto;
}

table.basketTable input[type="checkbox"] {
  width: auto;
}

table.basketTable th[data-sort-method="number"],
table.basketTable td.format-number {
  text-align: right;
}

.modal button {
  display: inline-block;
}

.modal {
  align-items: center;
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  opacity: 0;
  overflow: hidden;
  padding: 1.2rem;
  position: fixed;
  right: 0;
  top: 0;
  border: 0 none;
  width: auto;
  background-color: transparent;
}

.modal:target,
.modal.active {
  display: flex;
  opacity: 1;
  z-index: 400;
  height: 100%;
}

/* .modal:target .modal-overlay, .modal.active .modal-overlay {
  background: rgba(17, 17, 17, 0.75);
  bottom: 0;
  cursor: default;
  display: block;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
} */

.modal:target .modal-container,
.modal.active .modal-container {
  animation: slide-down .2s ease 1;
  z-index: 1;
}

.modal.modal-sm .modal-container {
  max-width: 320px;
  padding: 0 0.5rem;
}

.modal.modal-lg .modal-overlay {
  background: #fff;
}

.modal.modal-lg .modal-container {
  box-shadow: none;
  max-width: 960px;
}

/* .modal-container {
  box-shadow: 0 0.2rem 0.5rem rgba(28, 37, 66, 0.3);
  background: #fff;
  border-radius: 0.1rem;
  display: flex;
  flex-direction: column;
  max-height: 75vh;
  max-width: 1200px;
  padding: 0.75rem;
  width: 100%;
} */

.modal-container .modal-body p.left {
  text-align: left;
}

@media(max-width:1200px) {
  .modal-container {
    max-width: 800px !important;
  }
}

.modal-container.modal-fullheight {
  max-height: 100vh;
}

/* .modal-container.center > div {
  text-align: center;
} */

.modal-container .modal-header {
  position: relative;
  color: #1c2542;
  padding: 0.875rem;
}

.modal-container .modal-header h3 {
  margin-bottom: 0;
  font-size: 2rem;
  color: #2995D3;
}

.modal-container .modal-header .btn {
  position: absolute;
  right: 0.875rem;
  top: 0.875rem;
  padding: 1.2rem;
}

.modal-container .modal-header .btn:before {
  position: relative;
  top: -6px;
  left: -6px;
}

.modal-container .modal-body {
  padding: 0.875rem;
  position: relative;
  font-size: 1.2rem;
}

#addToBasketModal .modal-container .modal-body {
  overflow-y: auto;
}

#addToBasketModal .modal-container {
  max-height: 90vh;
  min-width: 560px;
  max-width: none !important;
}

#addToBasketModal .modal-container .modal-header h3 {
  margin-top: 0;
}

.modal-container .modal-body p:last-child {
  margin-bottom: 0;
}

.modal-container .modal-body form {
  padding: 0;
}

.modal-container .modal-footer {
  padding: 0.875rem;
  text-align: right;
}

.modal-container .modal-footer menu {
  padding: 0;
  margin: 0;
}

.modal-container .modal-footer .btn {
  padding: 0.75rem 2rem;
  height: auto;
  font-size: 1rem;
}

.modal-container .form-group {
  margin-bottom: 1.2rem;
}

.modal-container .form-label {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  text-align: left;
}

.modal-container .btn+.btn {
  margin-left: 1.2rem;
}

button.btn {
  margin: auto;
}

.btn {
  margin: auto;
  padding: 7px 10px;
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
}

#saveSearchModal_form {
  width: 360px;
}

#saveSearchModal_form .form-split .form-input {
  width: 100%;
  font-size: 14px;
}

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px 1px 1px 1px);
  /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  /* added line */
}

.orderTrackIndicator {
  background: #e8f4fa;
  padding: 4px;
  border-radius: 2px;
}

.orderTrackIndicator.alternativeEditions {
  background: #cdbaeb;
}

.saveSearch {
  cursor: pointer;
}

.saveSearch:hover {
  color: #2995D3;
}

#addBasket.libs .modal-container,
.modal.edit.libs .modal-container {
  max-width: none;
  width: 85%;
}

#addBasket.libs .modal-container .form-split>div,
.modal.edit .modal-container .form-split>div,
.modal.wide .modal-container .form-split>div {
  text-align: left;
}

.modal.wide .modal-container {
  max-width: none;
  width: 85%;
  overflow-x: auto;
}

.modal.wide .modal-container .modal-body {
  overflow: inherit;
}

.modal.wide .modal-container.center>div 
/* .modal-header */
/* .modal-body */
/* .modal-fooer */ {
  text-align: center;
}

.modal.wide .modal-container .modal-header h3 {
  margin: 0;
}

.modal.wide .modal-container .form-label {
  font-size: 0.9rem;
}

.halfItemTable {
  display: grid;
  grid-template: repeat(6, 1fr) / repeat(3, 1fr);
  grid-auto-flow: column;
}

.modal-container .modal-body p.customerDetailsPreview {
  margin: 0.4em 0;
  font-size: 0.6em;
}

.form-footer {
  display: flex;
  margin-top: 30px;
}

.form-footer label {
  margin-right: 10px;
}

.form-footer textarea.form-input {
  width: 100%;
  height: 80px;
}


.budgetConsequences .negative {
  color: red;
}

table.budgetConsequences thead tr>th {
  background-color: #2995D3 !important;
  color: #fefefe;
}

table.budgetConsequences tfoot tr>td {
  background-color: #2995D3 !important;
  color: #fefefe;
}

.col-10 {
  width: 83.33333333%;
}

.col-9 {
  width: 75%;
}

.col-8 {
  width: 66.66666667%;
}

.col-7 {
  width: 58.33333333%;
}

.col-6 {
  width: 50%;
}

.col-5 {
  width: 41.66666667%;
}

.col-4 {
  width: 33.33333333%;
}

.col-3 {
  width: 25%;
}

.col-2 {
  width: 16.66666667%;
}

.col-1 {
  width: 8.33333333%;
}

#basketTotalDetails table tr td:last-child:not(.format-number) {
  text-align: left;
}

#basketTotalDetails table {
  padding-bottom: 10px;
}

#budgetConsequencesModal .selectFilter {
  width: 220px;
  position: fixed;
}

#budgetConsequencesModal table.budgetConsequences {
  padding-top: 50px;
}

.form-input-hint {
  color: #2d2d2d;
  font-size: 0.75rem;
  margin: 0.2rem 0;
  display: none;
  left: 0;
  top: 100%;
}

.has-error .form-input-hint,
.is-error~.form-input-hint {
  color: #e80000;
  display: inline-block;
}