﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}
html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
body header nav.navbar a.navbar-brand img {
  width: 150px;
}
body header nav.navbar a.nav-link.active {
  color: #FFF !important;
  background-color: #175E96;
  border-radius: 5px 5px 0px 0px;
  position: relative;
}
body header nav.navbar a.nav-link.active:after {
  content: "";
  width: 100%;
  display: block;
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 10px;
  background-color: #175E96;
  border: 0px;
  margin: auto;
}
body header nav.navbar .dropdown-item {
  border-radius: 0px !important;
}
body header nav.navbar .dropdown-item:after {
  display: none !important;
}
body div main {
  height: calc(100vh - 140px);
  overflow: scroll;
  overflow-x: auto;
}
body div main div.new-supplier, body div main div .new-product {
  display: none;
  padding: 10px;
  background-color: #FFFFEE;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
body div main div.new-supplier div.row, body div main div .new-product div.row {
  position: relative;
}
body div main div.new-supplier div.row div, body div main div .new-product div.row div {
  position: relative;
  margin: auto;
}
body div main div.edit-modal {
  display: none;
  padding: 10px;
  background-color: #FFFFEE;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: absolute;
  right: 2px;
  top: 0;
  margin-top: 61px;
  width: 400px;
  /*display: block;*/
  height: 100vh;
  /*div.row {
      position: relative;

      div {
          position: relative;
          margin: auto;
      }
  }*/
}
body div main div.edit-modal.order-products {
  width: 600px;
}
body div main div.edit-modal.order-products div.order-products-rows table {
  width: 100%;
}
body div main div.edit-modal.order-products div.order-products-rows table tr td {
  padding: 5px 3px;
}
body div main div.edit-modal.order-products div.order-products-rows table tr td input[type=number] {
  width: 80px;
}
body div main div.row.dashboard div div.updates-list {
  text-align: left;
}
body div main div.row.dashboard div div.updates-list ul li:first-child {
  color: #ff3838;
}
body div main div.row.dashboard div div.updates-list ul li span {
  display: inline-block;
  width: 120px;
  background-color: #ebebeb;
  margin-right: 10px;
  padding-left: 5px;
}
body div main div.row.dashboard div div.kpi div.placeholder {
  display: block;
  background-color: #ebebeb;
  border-radius: 10px;
  height: 10px;
  margin: 10px 0px;
  width: 100%;
}
body div main div.response-msg {
  padding: 10px;
  margin-bottom: 20px;
  text-align: center;
  background-color: #4fff5f;
}
body div main div.preview-orders table {
  width: 100%;
}
body div main div.preview-orders table thead {
  font-weight: bold;
}
body div main div.preview-orders table tbody td {
  position: relative;
}
body div main div.preview-orders table tbody td input {
  width: 100%;
}
body div main div.preview-orders table tbody td span.loading {
  margin-right: 10px;
  position: absolute;
  right: 0;
  display: none;
}
body div main div.purchase-orders > div:first-child {
  height: calc(100vh - 250px);
  overflow-y: auto;
}
body div main div .kpi {
  border: 1px solid #175E96;
  padding: 20px;
  position: relative;
  min-height: 245px;
}
body div main div .kpi h2 {
  font-size: 1.25rem;
}
body div main div .kpi.inventory ul li {
  text-align: right;
}
body div main div .kpi.inventory ul li span {
  float: left;
}
body div main div .kpi.orders-stats ul li {
  text-align: center;
  height: 250px;
  position: relative;
  max-width: 50px;
  width: 100%;
}
body div main div .kpi.orders-stats ul li div {
  border-top: 1px solid #175E96;
  display: block;
  max-width: 50px;
  background-color: #175E96;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 50px;
  max-height: 150px;
}
body div main div .kpi.orders-stats ul li div span {
  top: -20px;
}
body div main div .kpi.orders-stats ul li span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}
body div main div .kpi.orders-stats table {
  width: 100%;
}
body div main div section form div {
  margin-bottom: 20px;
}
body div main table {
  width: 100%;
}
body div main table#products-table {
  margin-top: 30px;
}
body div main table#products-table thead tr td:first-child input, body div main table#products-table thead tr td:last-child input {
  display: none;
}
body div main table#products-table tbody tr td i.warning {
  margin-left: 5px;
  color: #ff6a00;
}
body div main table#orders-list-table td span.loading {
  margin-right: 10px;
  position: absolute;
  right: 0;
  display: none;
}
body div main table#orders-list-table td:first-child {
  width: 225px;
}
body div main table#orders-list-table td:first-child button.save-order {
  border-color: #7d937d;
  background-color: #CFC;
}
body div main table#orders-list-table td:first-child button.cancel-edit-order {
  border-color: #a4a77e;
  background-color: #f7ff98;
}
body div main table#orders-list-table input, body div main table#orders-list-table select {
  border: none;
}
body div main table#orders-list-table input.edit-mode, body div main table#orders-list-table select.edit-mode {
  border: 2px solid #ffb288;
}
body div main table#orders-list-table input:focus, body div main table#orders-list-table select:focus {
  box-shadow: none;
}
body div main table#orders-list-table input[readonly], body div main table#orders-list-table select[readonly] {
  background-color: transparent;
}
body div main table#orders-list-table input[type=number], body div main table#orders-list-table select[type=number] {
  width: 100px;
}
body div main table thead tr th {
  cursor: pointer;
}
body div main table tbody tr {
  cursor: pointer;
}
body div main table tbody tr:hover {
  background-color: #ebebeb;
}
body div main table tbody tr.highlight {
  background-color: #ffb288;
}
body div main table tbody tr input {
  cursor: pointer;
}
body div main .pagination li:hover {
  cursor: pointer;
}
body ul.ui-autocomplete {
  background-color: #FFF;
  list-style-type: none;
  padding: 0px;
  border: 1px solid #000;
  width: fit-content;
}
body ul.ui-autocomplete li {
  cursor: pointer;
  padding: 5px 0px;
}
body ul.ui-autocomplete li:hover {
  background-color: #ebebeb;
}

/* COMMON */
a {
  color: #175E96;
  text-decoration: none;
}

.btn {
  border: 2px solid #175E96;
  border-radius: 0px;
  font-weight: bold;
}

.form-control {
  border-radius: 0px;
}
.form-control:focus {
  box-shadow: 0 0 0 0.05rem rgba(13, 110, 253, 0.05);
}

.bold {
  font-weight: bold;
}

.center {
  text-align: center;
}

h1 {
  font-size: 1.5rem;
}
h1:after {
  content: "";
  position: absolute;
  width: 100%;
  border: 1px solid black;
  left: 0;
  bottom: 0;
}

.absolute-right {
  position: absolute;
  right: 0;
  display: block;
  width: auto;
}

.uppercase {
  text-transform: uppercase;
}

.right-align {
  text-align: right;
}

.left-align {
  text-align: left;
}

.pull-right {
  float: right;
}

input[type=checkbox] {
  width: 20px;
  height: 20px;
}

.hidden {
  display: none;
}

div.error {
  color: #ff3838;
}

input .error {
  box-shadow: 0px 0px 2px red inset;
}
