body {
  background: #fafafa
}

/* set the primary colour of the app right here: */
.bgcolor {
  background-color: #d42716;
  box-shadow: 1px -1px 2px #000000;
}

.color {
  color: #d42716;
}

.color-border {
  border: 4px solid #d42716;
  color: #6B727A;
}

.fakenav {
  height: 64px;
  width: 100%;
}

html,
body {
  margin: 0px;
  padding: 0px;
}

.lds-ripple {
  width: 64px;
  height: 64px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}

.lds-ripple div {
  position: absolute;
  opacity: 1;
  border-radius: 50%;
  animation: lds-ripple 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.lds-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes lds-ripple {
  0% {
    top: 28px;
    left: 28px;
    width: 0;
    height: 0;
    opacity: 1;
  }

  100% {
    top: -1px;
    left: -1px;
    width: 58px;
    height: 58px;
    opacity: 0;
  }
}
/**
* Tun off number input increment, decrement arrows
*/
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.card-container {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-content: stretch;
  align-items: stretch;
  width: 100%;
  cursor: default;
}

.actions-container,
.warnings-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-content: stretch;
  align-items: flex-start;
}

.action-item,
.warning-item, .error-item {
  order: 0;
  flex: 0 1 auto;
  align-self: auto;
  min-width: 20px;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-content: stretch;
  align-items: center;
  width: 100%;
  height: 100%;
}

.action-info {
  background-color: #4596ec;
  color: white;
  border-bottom-left-radius: 3px;
}

.warning-item {
  color: #ff991f;
}

.error-item {
  color: #d42716;
}

.action-cancel {
  background-color: #eb7570;
}

.action-more {
  background-color: #ffffff;
}

.title {
  font-weight: bold;
}

.b-sch-event {
  align-items: stretch !important;
  padding: 5px 7px 3px 7px !important;
  min-height: 69px !important;
  margin: 0 !important;
}

.b-sch-event-content {
  width: 100%;
  margin: 0 !important;
}

.b-sch-event-wrap {
  padding-left: 2px !important;
  padding-right: 2px !important;
}

.action-item > .material-icons,
.warning-item > .material-icons {
  font-size: 15px;
}

.justify-row {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -webkit-justify-content: space-between;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-align-content: space-between;
  -ms-flex-line-pack: justify;
  align-content: space-between;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.justified-item {
  -webkit-order: 0;
  -ms-flex-order: 0;
  order: 0;
  -webkit-flex: 0 1 auto;
  -ms-flex: 0 1 auto;
  flex: 0 1 auto;
  -webkit-align-self: auto;
  -ms-flex-item-align: auto;
  align-self: auto;
}

.boco-sent {
  color: #88d87a;
}
.boco-unsent {
  color: #ff991f;
}

.padding-right-small {
  padding-right: 10px;
}

.padding-left-small {
  padding-left: 10px;
}

.grid-icon {
  font-size: 16px;
}

table tr th.mat-header-cell {
  font-size: 15px;
  font-weight: 300;
}

mat-paginator#chains-paginator .mat-paginator-outer-container .mat-paginator-container {
  min-height: 30px;
}

.scheduler-grid-truck-name {
  font-size: 14px;
}

.scheduler-grid-driver-name {
  font-size: 10px;
}

bry-scheduler > * {
  max-height: 435px !important;
  height: auto;
  position: fixed;
  top: 0;
}

/* [Start] Resolve issue of timepicker opened in a popup
* https://github.com/Agranom/ngx-material-timepicker/issues/244
*/
.timepicker-overlay {
  z-index: 10000000 !important;
}

.timepicker-backdrop-overlay {
  z-index: 10000000 !important;
}
/* [End] Resolve issue of timepicker opened in a popup */

.order-status-cancelled {
  background-color: yellow;
  color: black;
  border-radius: 45px;
  padding: 0 4px;
}

.chain-order-reference-scheduled {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px;
  max-width: min-content;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chain-order-reference {
  font-weight: 600;
  font-size: 12px;
  margin-bottom: 2px;
}

.chain-text-info {
  font-size: 11px;
}

.text-ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* #region scheduler event-tooltip */

.event-tooltip.container {
  display: grid;
  column-gap: 10px;
}

.event-tooltip.container .item {
  max-width: 250px;
  font-size: 12px;
  width: min-content;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-tooltip.container .item.header {
  grid-column: 1;
  font-weight: bold;
}

.event-tooltip.container .item.label {
  grid-column: 2;
}

.event-tooltip.container .item.image {
  grid-column: 2;
  margin-top: 4px;
  width: 16px;
  height: 16px;
}

.event-tooltip.container .item.cancelled,
.event-tooltip.container .item.error,
.event-tooltip.container .item.warning {
  border-radius: 45px;
  padding-left: 4px;
  padding-right: 4px;
}

.event-tooltip.container .item.cancelled {
  background-color: yellow;
}

.event-tooltip.container .item.error {
  background-color: red;
}

.event-tooltip.container .item.warning {
  background-color: orange;
}

/* #endregion scheduler event-tooltip */

.action-item-icon .material-icons {
  font-size: 15px;
  justify-content: center;
  cursor: pointer;
}

.action-item-icon-margin {
  margin-left: 5px;
}

.b-sch-event.b-sch-event-selected,
.b-sch-event.b-sch-event-selected * {
  font-weight: 300 !important;
  color: inherit !important;
}

.b-sch-event.b-sch-event-selected,
.b-sch-event.b-sch-event-selected * .chain-order-reference-scheduled {
  font-weight: 600 !important;
}

.b-sch-event.b-sch-event-selected,
.b-sch-event.b-sch-event-selected .warnings-container .warning-item {
  color: #ff991f !important;
}

.b-sch-event.b-sch-event-selected,
.b-sch-event.b-sch-event-selected .warnings-container .error-item {
  color: #d42716 !important;
}

.b-sch-event:not(.b-milestone).b-sch-event-selected,
.b-sch-event:not(.b-milestone).b-sch-event-selected * {
  color: inherit !important;
}

.simply-row {
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-flex-wrap: nowrap;
  -ms-flex-wrap: nowrap;
  flex-wrap: nowrap;
  -ms-flex-pack: justify;
  -ms-flex-line-pack: justify;
  -webkit-align-items: stretch;
  -ms-flex-align: stretch;
  align-items: stretch;
}

.b-sch-event.b-sch-event-selected,
.b-sch-event.b-sch-event-selected .boco-sent {
  color: #88d87a !important;
}

.b-sch-event.b-sch-event-selected,
.b-sch-event.b-sch-event-selected .boco-unsent {
  color: #ff991f !important;
}

.b-grid-header-text-content {
  color: black;
}

.xl-dialog {
  width: 850px !important;
}

.hide-element {
  display: none;
}

.b-grid-body-container {
  height: 370px !important;
}

.temporary-highlight {
  animation: blinking 1s infinite;
}

@keyframes blinking {
  0% {
    background-color: #008080;
  }
  100% {
    background-color: #fff;
  }
}

.mat-button-focus-overlay {
  background-color: transparent !important;
}

.card-container .highlight-product-name {
  background: orange;
  border-radius: 45px;
  padding: 0 4px;
}
