body {
  margin: 0;
  padding: 0;
  background: rgb(240, 245, 255);
  zoom: 0.8;
}

body > header {
  padding: 5px 10px;
  background: rgb(15, 80, 125);
  color: rgb(240, 240, 255);
  border-bottom: solid 1px rgb(94, 159, 204);
}

body > section {
  min-height: calc(100vh - 47px - 50px);
}

body > footer {
  padding: 25px;
  background: rgb(15, 80, 125);
  /*background: rgb(0, 0, 36);*/
  color: white;
}

button {
  border: none;
  border-radius: 2px;
  margin: 0px 3px;
  color: rgb(245, 245, 255);
  border: solid 1px rgb(75, 140, 185);
  background-image: linear-gradient(to right, #5E9FCC 0%, #0E4F7C 51%, #5E9FCC 100%);
  background-size: 200% auto;
  transition: 0.5s;
}
button:hover {
  cursor: pointer;
  background-position: top center;
}


table {
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 0.9em;
  font-family: sans-serif;
  min-width: 400px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

table tr th {
  background-color: rgb(15, 80, 125);
  color: #ffffff;
  text-align: left;
}
table th, table td {
  color: rgb(60, 60, 100);
  padding: 12px 15px;
}

table tr {
  border-bottom: 1px solid #dddddd;
}
table tr:nth-of-type(even) {
  background-color: #f0f0ff;
}
table tr:last-of-type {
  border-bottom: 2px solid rgb(15, 80, 125);
}

select {
  background-color: white;
  border: solid 1px rgb(150, 150, 150);
  padding: 2px;
}

dialog {
  animation: fade-out 0.7s ease-out;
}

dialog[open] {
  animation: fade-in 0.7s ease-out;
}

dialog[open]::backdrop {
  animation: backdrop-fade-in 0.7s ease-out forwards;
}

/* Animation keyframes */

@keyframes fade-in {
  0% {
    opacity: 0;
    transform: scaleY(0);
    display: none;
  }

  100% {
    opacity: 1;
    transform: scaleY(1);
    display: block;
  }
}

@keyframes fade-out {
  0% {
    opacity: 1;
    transform: scaleY(1);
    display: block;
  }

  100% {
    opacity: 0;
    transform: scaleY(0);
    display: none;
  }
}

@keyframes backdrop-fade-in {
  0% {
    background-color: rgb(0 0 0 / 0%);
  }

  100% {
    background-color: rgb(0 0 0 / 25%);
  }
}

/* -------------------------------------------------------------------------- */

section.content > div {
  padding: 15px 35px;
}

.pending {
  z-index: 1000000;
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  /*margin-left: -25px;*/
  background: rgba(0, 0, 0, 0.6);
  /*border-radius: 0 0 10px 10px;*/
}
.loader {
  width: 4.8px;
  height: 4.8px;
  display: block;
  margin: 20px auto;
  position: relative;
  /*border-radius: 4px;*/
  color: #FFF;
  background: currentColor;
  box-sizing: border-box;
  animation: animloader 0.3s 0.3s linear infinite alternate;
  top: calc(50% - 30px);
  text-align: center;
}
.loader::after,
.loader::before {
  content: '';  
  box-sizing: border-box;
  width: 4.8px;
  height: 4.8px;
  /*border-radius: 4px;*/
  background: currentColor;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 15px;
  animation: animloader 0.3s 0.45s linear infinite alternate;
}
.loader::after {
    top: -15px;
    animation-delay: 0s;
}

@keyframes animloader {
    0% { width: 4.8px }
    100% { width: 48px}
}

/* -------------------------------------------------------------------------- */

.error {
  background: salmon;
  color: rgb(50, 50, 50);
}
.error:hover {
  cursor: pointer;
}

.auth {
  float: right;
}
.auth .authenticated,
.auth .unauthenticated {
  position: relative;
}
.auth .authenticated a {
  color: rgb(170, 180, 255);
}
.auth .unauthenticated input {
  border: none;
  border-radius: 2px;
  margin: 0 2px;
}
.auth .error {
  position: absolute;
  left: 0;
  top: 28px;
  width: 100%;
  padding: 3px;
}
.auth .pending {
  margin: -5px 0 -5px 0;
}


.search {
  position: relative;
}
.search > form input {
  margin: 0 5px;
}
.search > form select {
  background: rgb(15, 80, 125);
  color: white;
}
.search > form select,
.search > form button {
  padding: 3px 15px;
}
.search table {
  width: 100%;
}
.search button.close {
  background: rgb(160, 160, 200);
  color: rgb(245, 245, 255);
  height: 30px;
  width: 30px;
  border-radius: 55px;
  content: "X";
  font-weight: bold;
  border-width: 2px;

  position: absolute;
  top: 20px;
  left: 20px;
}
.search button.close:hover {
  background: rgb(140, 140, 180);
  color: rgb(225, 225, 235);
}

table.results tr:hover {
  cursor: pointer;
  background-color: #fffff0;
}

table.results td:last-child {
  padding: 0;
}
table.results td:last-child > button {
  padding: 12px;
}

table.licenses tr.history {
  background-color: rgb(240, 240, 250);
}
table.licenses tr.history td:first-child {
  padding: 0 15px;
  background-color: rgb(150, 190, 230);
}
table.licenses tr.history td {
  padding: 3px;
  font-size: 0.8em;
  color: rgb(60, 60, 100);
}
table.licenses tr {
  border: none;
  border-top: 1px solid #ddd;
  background-color: rgb(150, 190, 230);
}
table.licenses tr.history {
  border: none;
}

.search .transferResults {
  height: 80px;
  overflow: auto;
  margin: 5px 0;
  border: dotted 1px;
  color: rgb(20,20,60);
  font-size: 0.8em;
}
.search .transferResults > div {
  padding: 3px;
}
.search .transferResults > div:hover {
  cursor: pointer;
  background: #fffff0;
}
.search .transferResults div.selected {
  background: #f0f0ff;
}
.search dialog {
  position: fixed;
  width: 500px;
  padding: 30px;
}
.search dialog .pending {
  left: 0;
}
.search dialog > div > div {
  padding-left: 20px;
  padding: 2px 0 2px 25px;
}
.search dialog h4 {
  margin: 10px 0;
}
.search .error {
  text-align: left;
}

.user form {
  width: 300px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 50px;
  background: white;
  padding: 20px;
  border: solid 1px rgb(15, 80, 125);
  border-radius: 3px;
  overflow: hidden;
}
.user form > * {
  display: block;
  margin: 5px 0;
}
.user form > input {
  width: 100%;
  padding: 0;
}
.user form > button {
  float: right;
  margin-top: 25px;
  margin-right:-3px;
}


.batch .csv {
  height: 200px;
  margin: 15px 0;
  background-color: rgb(210, 210, 220);
  border:solid 1px black;
}
.batch .csv.over {
  background-color: rgb(240, 240, 250);
}
.batch .csv.drop {
  background-color: rgb(235, 255, 245);
}
/*.batch .csv.drop p {
  display: none;
}*/
.batch .csv * {
  pointer-events: none;
}
.batch .csv > p {
  margin-top: 35px;
  text-align: center;
}
.batch .results {
  width: 100%;
}
.batch .results tr.error {
  background: salmon;
  color: rgb(50, 50, 50);
}
.batch .error:hover {
  cursor: pointer;
}
.batch .results tr.processing {
  background: rgb(210, 210, 230);
}
.batch .results tr.success {
  background: rgb(216, 255, 216);
}
