body {
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: scroll;
  height: 100%;
  background: #222;

  font-family: "NeueHaasGrotesk", Arial, sans-serif;
}
html {
  height: 100%;
  min-height: 100%;
}

.main--wrapper {
}
.bg-dark {
  background-color: #333 !important;
}

main {
  display: flex;
  flex-wrap: nowrap;
}

.divider {
  flex-shrink: 0;
  width: 1.5em;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.1);
  border: solid rgba(0, 0, 0, 0.15);
  border-width: 1px 0;
  box-shadow: inset 0 0.5em 1.5em rgba(0, 0, 0, 0.1),
    inset 0 0.125em 0.5em rgba(0, 0, 0, 0.15);
}

#filterbar input[type="radio"] {
  visibility: hidden;
}

#filterbar input[type="radio"]:checked {
  background-color: #16c79a;
  border: none;
}

#filterbar .btn.btn-success {
  background-color: #ddd;
  color: #333;
  border: none;
  width: 115px;
}

#filterbar .btn.btn-success:hover {
  background-color: #16c79a;
  color: #fff;
}

#filterbar .btn-success:not(:disabled):not(.disabled).active,
#filterbar .btn-success:not(:disabled):not(.disabled):active {
  background-color: #16c79a;
  color: #fff;
}

.btn:focus {
  box-shadow: none;
}

.loading-wrap {
  visibility: hidden;
  display: none;
}

.loading {
  visibility: hidden;
  display: none;
}

#loading {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border: 5px solid #f3f3f3;
  border-top: 6px solid #194f90;
  border-radius: 100%;
  margin: 0;
  visibility: hidden;
  animation: spin 1s infinite linear;
}
#loading.display {
  position: absolute;
  visibility: visible;
  bottom: 10px;
  right: 10px;
  margin: 5px;
}

/*
    remove btn css
*/

.btn-delete {
  background: white;
  border: 1px solid red;
  font-size: 16px;
  color: red;
  margin-left: 475px;
  padding: 6px 12px;
  cursor: pointer;
}
.btn:focus {
  outline: none;
}
.btn .mdi {
  margin-right: 8px;
}

.btn-delete:hover {
  color: white;
  background-color: red;
  border: 1px solid white;
  box-shadow: 0 0 0 4px #ffcccc;
}

#primaryTicketSearch {
  width: 100px;
}

#errorMessage {
  background: #d20d28 !important;
  padding: 10px !important;
  border-radius: 15px !important;
  position: relative;
  display: inline-block !important;
  box-shadow: 5px 5px 3px #aaaaaa;
  margin-bottom: 25px;
}

#primaryTicketSubmit {
  margin-right: 10px;
  color: #194f90;
  border-color: #194f90;
}
#primaryTicketSubmit:hover {
  background-color: rgba(25, 79, 144, 0.1);
}

/*
    order specific input box formatting
*/
.order {
  display: flex;
  position: relative;
}
.ticket_form .input-box .order .orderinput {
  width: 80%;
  margin-right: 1em;
}
.ticket_form .input-box .order .geninput {
  width: 20%;
}
.ticket_form .ordersbox .order .genlabel {
  left: 80%;
}
.ticket_form .ordersbox .order input:focus ~ .genlabel,
.ticket_form .ordersbox .order input:valid ~ .genlabel,
.ticket_form .ordersbox .order input[readonly="true"] ~ .genlabel {
  left: 80%;
}

.ticket_form .ordersbox .order input:focus ~ .saleslabel,
.ticket_form .ordersbox .order input:valid ~ .saleslabel,
.ticket_form .ordersbox .order input[readonly="true"] ~ .saleslabel {
  top: -20px;
  left: 0px;
  color: #194f90;
  font-size: 12px;
}

.productDropdown {
  position: relative;
  display: inline-block;
}

.productDropdown .dropdown-content {
  background-color: #f9f9f9;
  max-width: 50em;
  max-height: 30em;
  padding: 12px;

  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: scroll;
}

.ticket_form .input-box .product input:valid ~ label {
  display: inline-block;
  position: inherit;
  width: fit-content;
}

.productDropdown .dropdown-content input[type="checkbox"] {
  margin-right: 8px;
}

.productDropdown .dropdown-content label:hover {
  background-color: #f1f1f1;
}

.productDropdown .dropdown-content input[type="checkbox"]:checked + label {
  font-weight: bold;
}

.productDropdown .dropdown-content.show {
  display: flex;
  flex-direction: column;
  overflow-x: auto;
  overflow-y: scroll;
}

.ticket_form .input-box .product .dropdown-content input {
  color: forestgreen;
  width: auto;
}

.option {
  display: inherit;
  align-items: baseline;
}

/*
    Date filter formatting
*/
#datepicker-start,
#datepickerProduct-start {
  width: 40%;
}

#datepicker-end,
#datepickerProduct-end {
  width: 40%;
}

.ticket_form .input-box label ~ .enddatelabel,
.ticket_form .input-box label ~ .enddatelabelProduct {
  left: 42%;
}

.ticket_form .input-box input:focus ~ .enddatelabel,
.ticket_form .input-box input:valid ~ .enddatelabel,
.ticket_form .input-box input:focus ~ .enddatelabelProduct,
.ticket_form .input-box input:valid ~ .enddatelabelProduct {
  left: 42%;
}

/*
    input formatting
*/
.ticket_form .input-box {
  position: relative;
}
.ticket_form .input-box input,
.ticket_form .input-box textarea {
  width: 100%;
  padding: 15px 0px 0px 0px;
  font-size: 16px;
  color: #aaa;
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid #aaa;
  outline: none;
  background: transparent;
}

select {
  width: 100%;
  padding: 15px 0px 0px 0px;
  font-size: 16px;
  color: #aaa;
  margin-bottom: 30px;
  border: none;
  border-bottom: 1px solid #aaa;
  outline: none;
  background: white;
}

.ticket_form .input-box label {
  position: absolute;
  top: 0;
  left: 0;
  padding: 15px 0;
  font-size: 16px;
  color: #aaa;
  pointer-events: none;
  transition: 0.5s;
}

.ticket_form .input-box input:focus ~ label,
.ticket_form .input-box input:valid ~ label,
.ticket_form .input-box input[readonly="true"] ~ label {
  top: -20px;
  left: 0px;
  color: #194f90;
  font-size: 12px;
}
.ticket_form .input-box textarea:focus ~ label,
.ticket_form .input-box textarea:valid ~ label {
  top: -20px;
  left: 0px;
  color: #194f90;
  font-size: 12px;
}
.ticket_form .input-box select:focus ~ label,
.ticket_form .input-box select:valid ~ label {
  top: -20px;
  left: 0px;
  color: #194f90;
  font-size: 12px;
}

/*
    Button css
*/
.nefco-button,
#createTicketBtn {
  min-width: 10em;
  max-width: 15em;
  display: inline;
  background: none;
  color: white;
  border-color: #ff7700;
  vertical-align: middle;
  position: relative;
  z-index: 1;
  -webkit-backface-visibility: hidden;
  -moz-osx-font-smoothing: grayscale;
}
.button--edit {
  min-width: 50px;
  background: white;
  color: #ff7700;
  border-color: #ff7700;
  vertical-align: middle;
  position: relative;
  border-radius: 5px;
}
.button--test {
  overflow: hidden;
  padding: 0;
  -webkit-transition: border-color 0.3s, background-color 0.3s;
  transition: border-color 0.3s, background-color 0.3s;
  -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  border-radius: 15px;
}
.button--test::after {
  content: attr(data-text);
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  color: black;
  -webkit-transform: translate3d(0, 25%, 0);
  transform: translate3d(0, 25%, 0);
}
.button--test > span {
  display: block;
}
.button--test::after,
.button--test > span {
  padding: 5px 6px;
  -webkit-transition: -webkit-transform 0.3s, opacity 0.3s;
  transition: transform 0.3s, opacity 0.3s;
  -webkit-transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
  transition-timing-function: cubic-bezier(0.2, 1, 0.3, 1);
}
.button--test:hover {
  border: 2px solid #ff7700;
  background-color: #ff7700;
  color: rgb(255, 255, 255);
}
.button--test:hover::after {
  opacity: 1;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
}
.button--test:hover > span {
  opacity: 0;
  -webkit-transform: translate3d(0, -25%, 0);
  transform: translate3d(0, -25%, 0);
}

/*
    Table css
*/

.table-wrapper,
.product-wrapper {
  margin: 0 1em 0.5em 0;
  box-shadow: 0px 35px 50px rgba(0, 0, 0, 0.2);
  width: calc(100% - 1em);
  border-radius: 25px;
  max-height: fit-content;
  overflow-x: hidden;
}
.fixed-table-header {
  width: auto;
}
.data-table,
.product-table {
  border: none;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  max-height: calc(100% - 50px);
  white-space: nowrap;
  background-color: white;
}
.data-table thead th,
.product-table thead th {
  color: #ffffff;
  background: #194f90;
}
.data-table tr:nth-child(even),
.product-table tr:nth-child(even) {
  background: #f0f0f0;
}
.data-table td,
.data-table th,
.product-table td,
.product-table th {
  text-align: center;
  padding: 8px;
}
.data-table td,
.product-table td {
  border-right: 1px solid #f8f8f8;
  font-size: 12px;
}
tbody,
td,
tfoot,
th,
thead,
tr {
  border-style: none;
}

.fixed-table-pagination {
  color: #194f90;
  background: white;
  padding: 5px 50px;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

.fixed-table-pagination .btn {
  background: #f8f8f8;
  color: #000;
}
.pagination > li > a {
  background: #f8f8f8;
  color: #000;
}
.fixed-table-toolbar {
  padding: 5px 50px;
  background: white;
  color: #194f90;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}
#toolbar {
  position: relative;
  top: 0.5em;
}
.form-control {
  color: #194f90;
  border-color: #333;
  box-shadow: 0 1px 3px rgb(0 0 0 / 50%);
}

/*
    Logo CSS
*/
#logo {
  border-radius: 5px;
  /*
    box-shadow: 4px 7px 10px rgba(0, 0, 0, 0.4);
    */
  max-width: 11.5em;
  margin: 0 0.5em 0.5em 1em;
  background-image: url("https://i.ibb.co/5nQQJpK/NEFCO-LOGO-TAGLINE-removebg-preview.png");
  background-position: left;
  background-size: contain;
  background-repeat: no-repeat;
}

/*
    Title css
*/
.title--nav {
  color: white;
  padding: 0.5em 0;
  border-radius: 5px;
  max-height: 50%;
  height: 100%;
  text-align: center;
}
.title--nav > span {
  padding-left: 1em;
}

#title {
  padding-right: 0;
  padding-left: 0;

  height: 7em;
}
#title h1 {
  position: absolute;
  left: 50%;
  color: #c9d0d4;
  font-family: "NeueHassGrotesk", Arial, sans-serif;
  font-size: 46px;
  font-weight: 100;
  line-height: 50px;
  letter-spacing: 1px;
  padding: 31px 0 10px;
  border-bottom: double #555;
}
/*
    Main area css
*/

.graph {
  display: block;
  border-radius: 18px;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.5);
  margin-bottom: 20px;
  padding-bottom: 10px;
  min-height: fit-content;
  min-width: fit-content;
  width: calc(100% - 5em);
  transition: all ease-in 0.2s;
  transform: scale(1);
  text-align: center;
  border-color: #333;
  background: #333;
  color: white;
}
.graph > span {
  position: relative;
  top: 50%;
  text-align: center;
}
.main-view {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: 10em 10em;
  grid-template-areas:
    "consolidated warehouse"
    "deliveries sales";
}
.ticket-view {
  display: grid;
  grid-template-columns: auto;
  grid-template-rows: auto;
}
.consolidated-graph {
  grid-area: consolidated;
}
.warehouse-graph {
  grid-area: warehouse;
}

.deliveries-graph {
  grid-area: deliveries;
}

.sales-graph {
  grid-area: sales;
}
/*
    Category Nav CSS
*/
.category-nav {
  max-width: 12.5em;
  max-height: 100%;
  padding: 2em 1em;
  margin-right: 1em;
  margin-left: 1em;
  margin-bottom: 0.5em;
  border-radius: 25px;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.5);
  border-color: #333;
}

.pill {
  display: inline;
  position: relative;
  max-width: 15em;
  width: 10em;
  padding: 0.5em 1em;
  margin: 0.25em;
  border-radius: 1em;
  background: none;
  color: rgb(255, 255, 255);
  border-color: #ff7700;
  vertical-align: middle;
  transition: background 0.3s ease-in-out;
  z-index: 1;
  -webkit-backface-visibility: hidden;
}
.pill:not(.pill--selected):hover {
  background-color: rgba(255, 119, 0, 0.473);
  cursor: pointer;
}
.pill--selected {
  background-color: #ff7700;
  color: rgb(255, 255, 255);
}
.loading-cursor {
  cursor: wait;
}
/*
    KEYFRAME ANIMATIONS

*/
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
