@import url("/login.css");
@import url("/modal.css");
@import url("/shipments.css");
@import url("/print.css");

@font-face {
  font-family: Portrait;
  src: url(fonts/PortraitText-Regular-Web.woff);
}

* {
  font-variant-numeric: lining-nums;
  /* high-level property          */
  -moz-font-feature-settings: "lnum";
  /* low-level (old Firefox)      */
  -webkit-font-feature-settings: "lnum";
  /* low-level (old Webkit)       */
  font-feature-settings: "lnum" on;
  /* low-level (all new browsers) */
}

@font-face {
  font-family: Theinhardt;
  src: url(fonts/Theinhardt-Regular.woff);
}

:root {
  --white: #fcfbfa;
  --gold1: #a59c82;
  --gold2: #bdb398;
  --gold3: #d4ccb3;
  --gold4: #e9e3d2;
  --blue1: #202131;
  --blue2: #2b2c3c;
  --blue3: #363745;
  --blue4: #414250;
  --blue5: #4d4d5a;
  --gray1: #d2d3d6;
  --gray2: #e4e4e6;
  --gray3: #eeeeee;
  --red1: #eb3239;
  --red2: #ff535a;
  --red3: #fd6a70;
  --mainfont: Portrait;
  --sans-font: Theinhardt;
  --sidebar-width: 208px;
  --logo-height: 80px;
  --logout-width: 97px;
}

body {
  margin: 0;
  background-color: var(--white);
  color: var(--blue1);
  font-family: var(--mainfont);
  font-size: 20px;
  line-height: 30px;
}

.content {
  padding: 10px 20px;
  margin-left: var(--sidebar-width);
  margin-right: var(--logout-width);
  margin-top: var(--logo-height);
}

a {
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1 {
  line-height: 115%;
  text-align: center;
  margin-block-end: 0.25em;
}

h2 {
  font-size: 125%;
}

button {
  align-items: center;
  background-color: var(--gold1);
  border: none;
  border-radius: 5px;
  box-sizing: border-box;
  color: var(--white);
  cursor: pointer;
  min-height: 40px;
  padding: 10px 15px 8px 15px;
  margin: 4px 10px;
  font-family: var(--sans-font);
  font-size: 90%;
}

button:disabled {
  background-color: var(--gray1);
  pointer-events: none;
}

.boxed {
  border: 1px solid var(--gold4);
  margin: 1em;
  padding: 0 1em 0.5em;
}

.flex-container {
  display: flex;
  justify-content: space-between;
}

.subtitle {
  text-align: center;
}

.status {
  font-family: var(--sans-font);
  font-size: 80%;
  color: var(--white);
  border-radius: 5px;
  padding: 5px 10px;
  text-align: center;
  width: fit-content;
  height: fit-content;
}

.status-tag {
  margin: 0.25em auto 1em auto;
}

.pending {
  background-color: var(--red1);
}

.prepared {
  background-color: cornflowerblue;
}

.cancelled,
.abandoned {
  background-color: var(--gray1);
}

.confirmed {
  background-color: orange;
}

.sent {
  background-color: var(--blue2);
}

.delivered {
  background-color: green;
}

#user-info {
  width: 37vw;
}

#books {
  width: 33vw;
}

.item::after {
  content: ", ";
  font-weight: normal;
}

.item:last-of-type::after {
  content: ".";
}

.books-row {
  display: flex;
}

.book-title {
  display: inline-block;
  width: 15em;
}

.book-units {
  display: inline-block;
  width: 3em;
  text-align: right;
}

.pending-info,
.address-validation {
  background-color: var(--red3);
  color: var(--white);
  font-family: var(--sans-font);
  font-size: 90%;
  padding: 1em;
  border-radius: 4px;
  width: 100%;
}

.address-validation,
.package-size {
  margin-top: 1em;
  padding: 0.5em 1em;
  width: unset;
}

.package-size {
  background-color: var(--gold1);
  color: var(--white);
  font-family: var(--sans-font);
  font-size: 90%;
}

.buttons {
  display: flex;
  margin: 1em;
}

select,
option {
  font-family: var(--sans-font);
  align-items: center;
  background-color: var(--white);
  color: var(--blue3);
  border-radius: 5px;
  border: solid 1px var(--gold2);
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  height: 40px;
  position: relative;
  width: 200px;
  padding: 10px 15px 8px 15px;
  margin: 0 10px;
}

select:hover {
  border: solid 1px var(--gold1);
  z-index: 1;
}

.sidebar {
  border-right: 1px solid var(--gold4);
  width: var(--sidebar-width);
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
}

.sidebar h2 {
  color: var(--gold1);
  font-size: 35px;
  line-height: 47px;
  margin: 40px 25px;
}

.sidebar ul {
  list-style-type: none;
  padding: 0;
}

.sidebar li {
  padding: 7px 25px;
  font-weight: bold;
}

a:hover {
  color: var(--gold1);
}

.logo {
  width: var(--logo-height);
  border-right: 1px solid var(--gold4);
}

.logo-container {
  height: var(--logo-height);
  border-bottom: 1px solid var(--gold4);
}

.logout {
  position: fixed;
  padding-top: 20px;
  top: 0px;
  right: 0px;
  height: var(--logo-height);
  width: var(--logout-width);
  font-size: 80%;
  font-family: var(--sans-font);
  color: var(--blue4);
}

input:not([type="radio"]) {
  font-family: var(--sans-font);
  border: solid 1px var(--gold2);
  border-radius: 5px;
  box-shadow: 0 1px 2px 0 rgba(19, 15, 15, 0.1);
  box-sizing: border-box;
  color: var(--blue1);
  height: 40px;
  padding: 10px 20px;
  width: -webkit-fill-available;
  margin: 4px 10px;
}

input[type="checkbox"] {
  box-shadow: none;
}

input::placeholder {
  color: var(--blue3);
  font-style: italic;
  outline: none;
}

input:disabled {
  background-color: var(--gray2);
  border-color: var(--gray2);
  pointer-events: none;
}

.table-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e9e3d2;
  min-height: 50px;
  padding: 3px 0;
}

.table-heading {
  font-family: var(--sans-font);
  color: var(--gold1);
  font-weight: bold;
}

.orders-list .table-row {
  justify-content: space-between;
}

.orders-list {
  margin: 2em 1em;
}

.orders-id,
.orders-date,
.inventory-date,
.inventory-units {
  width: 7.5vw;
}

.orders-user {
  width: 25vw;
  overflow: hidden;
}

.orders-country {
  width: 12.5vw;
}

.orders-status {
  padding-left: 10px;
  padding-right: 10px;
  width: 7vw !important;
}

.orders-check {
  width: 3vw !important;
}

.orders-check input {
  width: 30%;
}

.pagelinks {
  font-family: var(--sans-font);
  margin-left: 1em;
}

.pagelinks span,
.pagelinks a {
  padding: 0 0.2em;
}

.books-select {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

#book-title-select,
#inventory-event-description {
  width: 20vw;
}

#book-copies-select,
#inventory-event-units {
  width: 10vw;
}

.AddForm {
  display: flex;
}

a.inventory-title {
  width: 30vw;
  display: inline-block;
}

#inventory-button {
  margin-top: 1em;
}

.center {
  margin-top: 60px;
  text-align: center;
}

.deliver-confirmation {
  margin-top: 100px;
}

.labels-offset {
  display: inline;
}

.labels-offset input {
  width: 80px;
}

.labels-layout {
  width: 210px;
  height: 297px;
  border: 1px solid var(--gold1);
  font-family: var(--sans-font);
  font-size: 14px;
  text-align: center;
}

.labels-layout td {
  border: 1px solid var(--gold1);
  padding: 3px;
}

@media screen and (max-width: 600px) {
  :root {
    --logout-width: 60px;
    --sidebar-width: 0;
    --logo-height: 115px;
  }

  .sidebar {
    border-right: none;
    width: 100%;
    height: var(--logo-height);
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--gold4);
  }

  .sidebar ul {
    column-count: 2;
    font-size: 90%;
    line-height: 80%;
    padding: 15px 0;
    margin: 0;
  }

  .sidebar li {
    padding: 14px 10px;
  }

  .logo-container,
  .logo,
  .sidebar h2 {
    display: none;
  }

  .logout {
    padding-top: 21px;
    font-size: 70%;
  }

  .flex-container {
    flex-direction: column;
  }
}

.statusList::after{
  content: ", ";
}

.statusList:last-of-type::after{
  content: "";
}

.filter-checkbox {
	font-family: var(--sans-font);
	font-size: 90%;
	display: inline;
	margin: 0 1em;
}

.filter-checkbox input {
	width: unset;
	height: unset;
}

.mail-checkbox {
	font-family: var(--sans-font);
	font-size: 90%;
	margin: 0.5ex 0;
}

.mail-checkbox input {
	width: unset;
	height: unset;
}

.form-flex{
  display: flex; 
  justify-content: space-between; 
  align-items: center;
}

.track, .edit {
  font-family: var(--sans-font) !important;
  font-size: 90%;
  color: var(--gold1);
}

a.track:hover, a.edit:hover {
  color: var(--gold2);
}