/* ---------------------------------------------------
  DOCUMENT INDEX
    - MAIN
    - SIDEBAR - deprecated
    - CONTENT
    - topNavMenu.php
    - login.php
    - mainMenu.php
    - BOOTSTRAP TWEAKS
    - DATATABLES TWEAKS
    - TABLES
    - commoditySequenceTracker.php
    - MEDIAQUERIES
----------------------------------------------------- */

/* ---------------------------------------------------
    MAIN
----------------------------------------------------- */

@import "https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700";

@font-face {
  font-family: fontAwesome;
  src: url(../js/libs/font-awesome/font/fontawesome-webfont.ttf);
}

:root {
  --darkColor: hsl(0, 100%, 28%);
  --darkColorHover: hsl(0, 100%, 34%);
  --darkGray: #899499;
  --lightGray: #ebebeb;
  --elements-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: #ebebeb;
  margin: 0;
  transition: all 250ms;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
}

p {
  font-family: "Poppins", sans-serif;
  font-size: 1em;
  font-weight: 300;
  line-height: 1.7em;
  color: #999;
}

:-webkit-autofill,
:-webkit-autofill:hover,
:-webkit-autofill:focus {
  border: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--darkGray) !important;
  -webkit-text-fill-color: black !important;
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  font-family: "Poppins", sans-serif !important;
}

input:autofill {
  border: none !important;
  background-color: transparent !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--darkGray) !important;
  color: black !important;
  font-family: "Poppins", sans-serif !important;
}

a,
a:hover,
a:focus {
  color: inherit;
  text-decoration: none;
  transition: all 300ms;
}

textarea:focus,
input:focus {
  outline: none;
}

.navbar {
  padding: 15px 10px;
  background: #fff;
  border: none;
  border-radius: 0;
  margin-bottom: 40px;
  box-shadow: var(--elements-shadow);
}

.navbar-btn {
  box-shadow: none;
  outline: none !important;
  border: none;
}

.line {
  width: 100%;
  height: 1px;
  border-bottom: 1px dashed #ddd;
  margin: 40px 0;
}

main {
  display: block;
  /* margin-top: 100px; */
  padding: 110px 0.5em 60px;
}

.bottonClearance {
  padding-bottom: 110px !important;
}

.center {
  margin: auto;
  text-align: center;
}

footer {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  display: block;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  border-top: 2px solid var(--darkColor);
  padding: 0.6em 1em;
  width: 100%;
}

/* ---------------------------------------------------
    SIDEBAR
----------------------------------------------------- */

#wrapper {
  display: flex;
  align-items: stretch;
}

#sidebar {
  min-width: 260px;
  max-width: 260px;
  background: #999;
  color: #fff;
  top: 60px;
  left: 0;
  bottom: 0;
  display: block;
  position: fixed;
  transition: all 0.3s;
  min-height: 100% !important;
  max-height: 100% !important;
}

#sidebar.active {
  margin-left: -250px;
}

#sidebar .sidebar-header {
  padding: 20px;
  background: #999;
}

#sidebar ul.components {
  padding: 20px 0;
  border-bottom: 1px solid #47748b;
}

#sidebar ul p {
  color: #fff;
  padding: 10px;
}

#sidebar ul li a {
  padding: 10px;
  font-size: 1.1em;
  display: block;
}

#sidebar ul li a:hover {
  color: #737373;
  background: #fff;
}

#sidebar ul li.active > a,
a[aria-expanded="true"] {
  color: #fff;
  background: #999;
}

a[data-toggle="collapse"] {
  position: relative;
}

.dropdown-toggle::after {
  display: block;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

ul ul a {
  font-size: 0.9em !important;
  padding-left: 30px !important;
  background: #737373;
}

ul.CTAs {
  padding: 20px;
}

ul.CTAs a {
  text-align: center;
  font-size: 0.9em !important;
  display: block;
  border-radius: 5px;
  margin-bottom: 5px;
}

a.download {
  background: #fff;
  color: #999;
}

a.article,
a.article:hover {
  background: #737373 !important;
  color: #fff !important;
}

/* ---------------------------------------------------
    CONTENT
----------------------------------------------------- */

#content {
  padding: 20px;
  height: auto;
  margin: 1em;
  transition: all 0.3s;
}

/* ---------------------------------------------------
    topNavMenu.php
----------------------------------------------------- */

header {
  min-width: 830px;
  z-index: 99;
  padding-bottom: 0.5em;
  margin: 0;
  width: 100%;
}

.top-nav-menu {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 0;
  width: 100%;
}

#header-main-menu {
  display: block;
  position: fixed;
  top: 0;
  width: 100vw;
  z-index: 999;
  font-size: 0.9em;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: white;
  padding: 10px 1em;
  border-top: 1px solid lightgray;
}

#vantec-logo {
  height: 2.5em;
}

.logo-container h4 {
  font-weight: 800;
  color: black;
  /* text-transform: uppercase; */
}

.logo-container i {
  margin-left: 5px;
  font-size: 1.8em;
}

#logout-container {
  display: flex;
  align-items: center;
  cursor: pointer;
  background-color: white;
  padding: 5px;
  border-radius: 4px;
  transition: 250ms;
}

#logout-container:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

#logout-container span {
  font-weight: 500;
  color: var(--darkColor);
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--darkColor);
  color: white;
  padding: 5px 1em;
  min-height: 40px;
}

nav a {
  margin-right: 0.4em;
  opacity: 0.75;
  border-bottom: 0 solid white;
  transition: 250ms;
  font-size: 0.95em;
}

nav a:hover {
  opacity: 1;
  border-width: 1px;
}

#nav-hr {
  height: 2px;
  margin: 0;
  background-color: var(--darkColor);
}

#search-container {
  position: relative;
  margin: 0;
  padding: 0;
}

#search {
  margin-right: 5px;
  border-style: none;
  border-radius: 4px;
  font-size: 1em;
  padding: 5px 10px;
  background-color: rgba(255, 255, 255, 0.8);
  text-align: left;
}

#search-icon {
  position: absolute;
  color: black;
  right: 0.75em;
  top: 0.6em;
}

/* ---------------------------------------------------
    login.php
----------------------------------------------------- */

#login-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 100vw;
}

#login-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  background-color: white;
  width: 45vw;
  min-width: 400px;
  max-width: 400px;
  height: 60vh;
  max-height: 450px;
  min-height: 400px;
  box-shadow: var(--elements-shadow);
  opacity: 0.9;
  padding: 0.5em;
}

#login-container h1 {
  font-size: 1.3em;
}

#login-container form input[type="text"],
#login-container form input[type="password"] {
  text-align: center;
  background-color: transparent;
  border: none;
}

#login-container img {
  width: 120px;
  margin: 0.5em 0;
}

#login-container form {
  width: 75%;
  margin-top: 3em;
}

.form-group {
  position: relative;
}

#login-container input[type="text"],
#login-container input[type="password"] {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--darkGray) !important;
  font-size: 0.95em;
}

.form-control {
  font-family: "Poppins", sans-serif;
}

.form-group i {
  position: absolute;
  left: 0.75em;
  top: 0.75em;
}

#login-container .btn {
  width: 100%;
  margin-top: 3em;
  font-size: 0.9em;
}

#login-wrapper footer {
  position: fixed;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  height: 2em;
  width: 100vw;
  background-color: black;
  z-index: 99;
}

#login-wrapper footer p {
  font-size: 0.8em;
  margin: 0;
  color: white;
}

#login-alert {
  position: relative;
  padding: 0.25rem 1.25rem;
  margin: 0.5rem 0 0;
  border: 1px solid transparent;
  border-radius: 4px;
  color: var(--darkColor);
  background-color: #f8d7da;
  border-color: #f5c6cb;
  font-weight: 600;
  font-size: 0.9em;
}

/* ---------------------------------------------------
    mainMenu.php
----------------------------------------------------- */
#hero {
  background-image: radial-gradient(
      15em at 27% 50%,
      rgba(0, 0, 0, 0.3),
      rgba(0, 0, 0, 1)
    ),
    url(../images/bentley-hero.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: var(--elements-shadow);
  display: flex;
  justify-content: right;
  align-items: center;
  padding: 2em;
  width: 100%;
  max-height: 220px;
  grid-column: 1 / span 3;
  border-radius: 4px;
  opacity: 0.9;
  transition: all 1s;
}

#hero:hover {
  background-image: radial-gradient(
      25em at 27% 50%,
      rgba(0, 0, 0, 0),
      rgba(0, 0, 0, 1)
    ),
    url(../images/bentley-hero.jpg);
}

#hero-text {
  width: 66%;
  text-align: center;
}

#hero-text h1 {
  margin: 0.5em 1em;
  font-size: 1.8em;
  color: white;
}

#hero-buttons button {
  border-radius: 4px;
  padding: 0.25em 1.5em;
  margin: 0 0.5em;
  color: black;
  background-color: white;
  border: none;
  opacity: 0.6;
  font-weight: 500;
  transition: all 300ms;
  font-size: 0.9em;
}

#hero-buttons button:hover {
  opacity: 1;
}

#main-menu-wrapper {
  margin: 4.5em 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

main .list-group {
  list-style: none;
}

main #grid-container {
  margin: auto;
  width: 80%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5em;
}

.menus {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: white;
  padding: 0 0 1em;
  box-shadow: var(--elements-shadow);
  border-radius: 4px;
  min-width: 230px;
  min-height: 420px;
  max-height: 50vh;
  opacity: 0.9;
}

.menus span {
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
  width: 100%;
  text-align: center;
  padding: 0.3em;
  color: white;
  font-size: 0.9em;
  background-color: var(--darkColor);
}

.menus ul {
  text-align: center;
  margin-top: 0.5em;
  font-size: 1em;
}

.menus ul a {
  background-color: rgba(0, 0, 0, 0);
  color: rgba(0, 0, 0, 0.75);
  padding: 0;
  margin: 0.15em;
  border-radius: 4px;
  font-size: 0.9em;
  transition: all 250ms;
}

.menus ul a:hover {
  background-color: rgba(0, 0, 0, 0.1);
  font-weight: 600;
  color: black;
  padding: 0.1em 1.5em;
  font-size: 1em;
}

#menButton1,
#menButton2,
#menButton3 {
  font-weight: 600;
  margin-bottom: 0.25em;
}

#main-menu-wrapper footer {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0;
  height: 2em;
  width: 100vw;
  background-color: black;
  opacity: 0.9;
}

#main-menu-wrapper footer p {
  font-size: 0.8em;
  margin: 0;
  color: white;
}

/* ---------------------------------------------------
    BOOTSTRAP TWEAKS
----------------------------------------------------- */
.dropdown-menu > li > a {
  display: block;
  border: none;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 1.428571429;
  color: #333333;
  white-space: nowrap;
}

.dropdown-menu > li > a:hover {
  background-color: var(--darkColor);
  color: white;
}

.navbar {
  margin-bottom: 0;
}

.caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 2px;
  vertical-align: middle;
  border-top: 4px solid #ffffff;
  border-right: 4px solid transparent;
  border-bottom: 0 dotted;
  border-left: 4px solid transparent;
  content: "";
}

.btn {
  font-size: 0.9em;
}

.btn-warning {
  color: rgba(255, 255, 255, 0.8);
  background-color: var(--darkGray);
  border-color: var(--darkGray);
}

.btn-warning:hover,
.btn-warning:focus,
.btn-warning:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
  color: #ffffff;
  background-color: var(--darkColor);
  border-color: var(--darkColor);
}

.btn-warning:active,
.btn-warning.active,
.open .dropdown-toggle.btn-warning {
  background-image: none;
}

.btn-warning.disabled,
.btn-warning[disabled],
fieldset[disabled] .btn-warning,
.btn-warning.disabled:hover,
.btn-warning[disabled]:hover,
fieldset[disabled] .btn-warning:hover,
.btn-warning.disabled:focus,
.btn-warning[disabled]:focus,
fieldset[disabled] .btn-warning:focus,
.btn-warning.disabled:active,
.btn-warning[disabled]:active,
fieldset[disabled] .btn-warning:active,
.btn-warning.disabled.active,
.btn-warning[disabled].active,
fieldset[disabled] .btn-warning.active {
  background-color: var(--darkGray);
  border-color: var(--darkGray);
}

.table thead > tr > th,
.table tbody > tr > th,
.table tfoot > tr > th,
.table thead > tr > td,
.table tbody > tr > td,
.table tfoot > tr > td {
  padding: 6px;
  line-height: 1.428571429;
  vertical-align: middle;
  border-top: 1px solid #dddddd;
}

/* ---------------------------------------------------
    DATATABLES TWEAKS
----------------------------------------------------- */

.dataTables_wrapper .dataTables_length {
  float: left;
}

#rBody {
  border-bottom: 1px solid #111;
  padding-left: 0;
}

.dataTables_length select {
  border: 1px solid lightgray;
  border-radius: 4px;
  padding: 0.1em;
  background-color: rgba(255, 255, 255, 0.8);
  outline: none;
}

table.dataTable thead th,
table.dataTable thead td {
  border-bottom: 2px solid var(--darkColor);
}

table.dataTable tfoot th,
table.dataTable tfoot td {
  border-top: 2px solid var(--darkColor);
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: none;
  border: none;
  color: white !important;
  background-color: var(--darkColor);
  border-radius: 4px;
}

.dataTables_filter input[type="search"] {
  border: 1px solid lightgray;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  text-align: center;
  font-size: 0.9em;
  min-width: 5em;
}

#example-filter {
  display: inline-flex !important;
  align-items: center;
}

/* ---------------------------------------------------
    TABLES
----------------------------------------------------- */

#table-container {
  display: block;
  align-items: center;
  margin: auto;
  max-width: 98%;
}

table {
  font-size: 0.9em;
}

th,
td {
  white-space: nowrap;
}

td {
  vertical-align: middle !important;
}

table input[type="text"] {
  border: 1px solid lightgray;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  text-align: center;
  font-size: 0.9em;
  min-width: 5em;
}

/* ---------------------------------------------------
    commoditySequenceTracker.php
----------------------------------------------------- */

.containerMinWidth {
  min-width: 1230px !important;
}

/* colgroup */
.no-context {
  background-color: white;
}

.windsford {
  background-color: aliceblue;
}

.crewe {
  background-color: #fff4f3;
}

.next-car-pof {
  background-color: #f7f7f7;
}

/* table tools */
#tableTools {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0.5em;
}

#tableTools button {
  align-self: flex-end;
}

/* table headers */

.windsford-header {
  background-color: #5072a7;
  color: white;
}

.crewe-header {
  background-color: var(--darkColor);
  color: white;
}

#titles-table-header {
  background-color: rgba(0, 0, 0, 0.06);
}

.next-car-pof-header {
  background-color: black;
  color: white;
}

/* Comments Editor */

.comment-edit-icon {
  font-size: 1.2em;
  margin-left: 0.2em;
  padding: 0.3em;
  color: var(--darkGray);
  transition: all 150ms;
  float: right;
}
.comment-edit-icon:hover {
  color: var(--darkColor);
}

#dialog-container {
  background-color: #ddd;
  margin: 20% auto;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 400px;
  border: none;
  border-radius: 4px;
  box-shadow: var(--elements-shadow);
}

#dialog-container select {
  width: 100%;
  margin: 0.25em 0;
  border: 1px solid lightgray;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  text-align: center;
  font-size: 0.9em;
}

#comment-container {
  background-color: #ddd;
  margin: 20% auto;
  padding: 1em;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 400px;
  border: none;
  border-radius: 4px;
  box-shadow: var(--elements-shadow);
}

#comment-container h5 {
  align-self: left;
}

#comment-container p {
  color: black;
}

#comment-container datalist {
  width: 100%;
  margin: 0.25em 0;
  border: 1px solid lightgray;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  text-align: center;
  font-size: 0.9em;
}

#comment-container input[type="text"] {
  border: 1px solid lightgray;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 5px;
  text-align: center;
  font-size: 0.9em;
  width: 100%;
  margin: 1em 0;
}

#buttons-container {
  display: flex;
  justify-content: center;
  width: 100%;
}

#buttons-container button {
  display: inline-block;
  width: 40%;
  margin: 0.5em;
}

/* Conditional Rows Coloring */
.stopSending {
  border: 2px solid hsl(0, 100%, 35%) !important;
  color: black;
  background-color: hsla(0, 100%, 35%, 0.1);
  font-weight: 800;
}

/* FontAwesome icons */
.icon::before {
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.stopSendingIcon::after {
  font-family: fontAwesome;
  font-weight: 900;
  color: var(--darkColorHover);
  content: "\f05e";
  margin-left: 6px;
  font-size: 1.2em;
}

/* Messages Toast */
#messages {
  display: none;
  float: right;
  /* position: fixed; */
  /* right: 2em; */
  /* bottom: 5em; */
  color: #468847;
  background-color: #dff0d8;
  border-color: #d6e9c6;
  font-weight: 600;
  padding: 0.25em 3em;
  border-radius: 4px;
  z-index: 99;
  transition: all 1s;
}

/* ---------------------------------------------------
    MEDIAQUERIES
----------------------------------------------------- */

/* @media (max-width: 768px) {
  #sidebar {
    margin-left: -250px;
  }
  #sidebar.active {
    margin-left: 0;
  }
  #sidebarCollapse span {
    display: none;
  }
} */
