body {
  font-size: .875rem;
}

.feather {
  width: 24px;
  height: 24px;
  vertical-align: text-bottom;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 0;
  /* rtl:raw:
  right: 0;
  */
  bottom: 0;
  /* rtl:remove */
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

@media (max-width: 991.98px) {
  .sidebar {
    top: 0rem;
  }
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #727272;
}

.sidebar .nav-link.active {
  color: #2470dc;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.curr_formatting {
  font-family: monospace;
}

.item-row {
  margin-top: 15px;
  padding-top: 10px;
  padding-bottom: 10px;
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 2px 8px;
}

.item-row-header {
    border-bottom: 1px dashed white;
    margin-bottom: 1rem;
}

.item-row:hover {
  opacity: 0.8;
}

div#search_results {
  min-height: 40vh;
}

.admin-action {
  position: relative;
  text-align: center;
  background-color: #212529;
  padding: 18px 12px;
  border-radius: 24px;
  margin: 12px;
}

.admin-action > a {
  color: white;
  text-decoration: none;
}

.admin-action-icon {
  height: 48px;
  width: 48px;
  margin-bottom: 12px;
}

.disabed-link {
  pointer-events: none;
}

.carousel-control-next-icon, .carousel-control-prev-icon{
  filter: invert(1);
  scale: 2;
}

img#transport-bill{
  width: auto;
  max-width: 100%;
  max-height: 100vh;
}

.vanilla-calendar {
  border: 1px solid rgba(0,0,0,0.125);
  font-size: 2rem;
}

.vanilla-calendar-days {
  gap: 0.5rem;
}

.vanilla-calendar-year {
  font-size: 2rem;
}

.calendar-info small {
  color: white;
  font-size: 0.75rem;
  display: block;
}

.dispatch-invoice-card {
  border-end-end-radius: 0;
  border-end-start-radius: 0;
}

.dispatch-status-group > button, .view-details-btn {
  font-size:0.85rem;
  /* display: flex;
  justify-content: center;
  align-items: center; */
}

.dispatch-status-group > button > .feather, 
.view-details-btn > .feather,
.dispatch-invoice-card table .feather {
  height: 18px !important;
}

.dispatch-invoice-card .card-body {
  padding: 0;
}


.dispatch-status-group > button.btn-dark {
  color: grey;
}

/* .dispatch-status-group > button.btn-danger::before {
  position: absolute;
  bottom: 0;
  margin-bottom: -6px;
  left: 0;
  margin-left: -14px;
  z-index: 100;
  content: "\279F";
  font-size: 2rem;
}

.dispatch-status-group > button.btn-danger:first-child::before {
  content: "";
} */

.dispatch-status-group button {
  border-top-left-radius: 0;
  border-top-right-radius: 0;

  margin-right: 2px;
}

.dispatch-status-group button:last-child {
  margin-right: 0;
}

.dispatch-invoice-card table tbody tr:last-child td {
  border-bottom: none;
}

.view-details-btn {
  border-radius: 0;
}


.product-card-header { 
  display: flex;
  flex-direction: row;
  border-bottom: 1px solid black;
  align-items: center;
  margin-top: 0px;
  padding-bottom: 6px;
}

.product-card-header > div {
  flex: 0 0 auto;
}

.product-card-header > div:first-child {
  font-weight: bold;
  font-size: 1.35rem;
  width: 60%;
}

.product-card-header > div:last-child {
  text-align: right;
  color: darkgrey;
  font-size:0.8rem;
  width: 40%;
}

.product-card-body {
  padding: 0;
}

.product-card-body > div {
  flex: 1 1;
  padding: 14px 0px;
  /* border: 1px solid grey; */
  font-size: 1.1rem;
}

.product-card-body > div:not(:nth-child(2)) {
  border-left: 0px;
  border-right: 0px;
}

.product-card-body > div > img {
  max-width: 28%;
  height: auto;
}

.product-card-footer{
  padding-top: 4px;
  border-top: 1px solid grey;
  color: slategrey;
}

.product-card-footer > div:nth-child(2) {
  color: #212529;
}

.product-card-footer > div:nth-child(2)::before {
  white-space: pre;
  content:"\a📌 Remarks: ";
  font-weight: bold;
}

.product-card-footer.product-card-inventory-list > div:nth-child(2) {
  margin-top: 9px;
  font-size: 0.8rem;
  font-family: monospace;
  background-color: teal;
  border-radius:4px;
  text-align: center;
  color: white;
  font-weight:bold;
}

.product-card-footer.product-card-inventory-list > div:nth-child(2)::before {
  white-space: pre;
  /* content:"\a\276F "; */
  content:"";
}

.no-images-found {
  background-color: red !important;
  opacity: 0.4;
}

.item-row {
  border: 1px solid black;
  margin-bottom: 20px;
}

.product-card-unavailable {
  opacity: 0.8;
  background-color: #0dcaf0;
  filter: invert(100%);
}

.product-card-added {
  background-color: #e28be4;
  filter: invert(100%);
}

.product-card-neutral {
  background-color: #0dcaf0;
}

.product-card-browsing-neutral {
  background-color: rgb(155, 152, 152);
  color: black;
  filter: invert(100%);
}

.product-card-help-text {
  font-size: 0.6rem;
  opacity: 0.5;
  font-weight: bold;
  text-transform: uppercase;
}


.order-product-row {
  cursor:pointer;
  display: flex;
  flex-direction: column;
}

.order-product-row>div{
  flex: 1 1;
}

.product-card-subcard{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-item {
  text-align: center;
}
.page-link {
  font-size: 0.875em;
}

@media (min-width: 992px) {
  .order-product-row-responsive.order-product-row {
    padding-top: 0;
    padding-bottom: 0;
    flex-direction:row;
  }

  .order-product-row-responsive .product-card-header {
    order: 0;
    border-bottom: 0px;
    flex-direction: column;
    justify-content: center;
    flex-grow: 0.5 !important;
    border-right: 1px solid lightgrey;
  }

  .order-product-row-responsive .product-card-header > div {
    width: 100% !important;
  }

  .order-product-row-responsive .product-card-header > div:last-child {
    text-align: left;
  }

  .order-product-row-responsive .product-card-footer {
    order: 1;
    border-top: 0px;
    justify-content: center;
  }

  .order-product-row-responsive .product-card-body {
    order: 2;
  }
  .order-product-row-responsive .product-card-body > div > img {
    max-width: 20%;
  }
}