﻿.swal2-confirm {
  color: black !important;
}

.lds-ellipsis {
  display: inline-block;
  position: relative;
  width: 5em;
  height: 5em;
}
.lds-ellipsis div {
  position: absolute;
  top: 2em;
  width: 0.8em;
  height: 0.8em;
  border-radius: 50%;
  background: #000;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis.white div {
  background: #fff;
}
.lds-ellipsis.small {
  font-size: 20%;
}
.lds-ellipsis div:nth-child(1) {
  left: 0.5em;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis div:nth-child(2) {
  left: 0.5em;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(3) {
  left: 2em;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis div:nth-child(4) {
  left: 3.5em;
  animation: lds-ellipsis3 0.6s infinite;
}

@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(1.5em, 0);
  }
}
.loading {
  width: 100%;
  height: 100%;
  grid-row: 1/span 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

table {
  width: 100%;
  height: 100%;
  border-spacing: 0;
}
table thead tr:last-child th {
  border-bottom: 1px solid;
}
table thead th {
  text-align: left;
  color: #888;
  text-transform: uppercase;
  font-size: 80%;
  font-weight: 500;
  padding: 0.25rem;
  height: 1px; /* Use minimum height as the table is likely stretched. */
}
table thead th.view-column {
  white-space: nowrap;
  width: 1px;
  min-width: 3rem;
}
table thead div {
  display: flex;
  flex-direction: column;
}
table thead input, table thead select {
  box-shadow: inset 0.1rem 0.1rem 0.5rem rgba(0, 0, 0, 0.1);
  border-color: #ccc;
  width: 100%;
  box-sizing: border-box;
  font-weight: inherit;
  color: #444;
}
table thead input::placeholder, table thead select::placeholder {
  opacity: 1;
  color: #ccc;
  font-weight: 300;
}
table thead input.select-all-checkbox, table thead select.select-all-checkbox {
  box-shadow: none;
  border-color: transparent;
  margin: 0;
}
table tbody {
  /*tr:not(.spacer):nth-child(2n)
  {
      background: rgba(#eee, 0.5);
  }*/
}
table tbody tr:not(.spacer) {
  height: 2.25rem;
}
table tbody tr:not(.spacer).selected {
  background: #d4d4d4;
}
table tbody.ui-sortable tr:not(.spacer) {
  cursor: move;
}
table tbody.ui-sortable tr:not(.spacer):hover {
  background: #ddd;
}
table tbody td {
  padding: 0.25rem;
}
table tbody td.action-column {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
}
table tbody td.action-column a {
  display: block;
  padding: 0.35rem 0.75rem 0 0.75rem;
}
table tbody td.select-column {
  text-align: center;
}
table tbody td.notes-column {
  max-width: 1em;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
table tbody td p {
  margin: 0;
}
table tbody td.photo img {
  width: 3rem;
  height: 3rem;
  border-radius: 100%;
}
table tbody td.photo p {
  width: 3rem;
  height: 3rem;
  border-radius: 100%;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
}
table tfoot {
  color: #888;
}
table tfoot .divider th {
  border-bottom: 1px solid;
}
table tfoot td {
  height: 1px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
table tfoot span.current {
  font-weight: bold;
}
table tfoot span.total {
  font-weight: bold;
}

th a {
  cursor: pointer;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
th a.sort-asc:after {
  display: inline-block;
  padding-left: 0.5rem;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f15d";
  content: "\f884";
  position: absolute;
}
th a.sort-desc:after {
  display: inline-block;
  padding-left: 0.5rem;
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f15e";
  content: "\f885";
  position: absolute;
}

.ms-parent {
  width: 100% !important;
}

.ms-drop input {
  box-shadow: none;
  padding: 0;
  border: none;
}

.ms-drop input[type=checkbox], .ms-drop input[type=radio] {
  width: auto;
}

.ms-choice {
  box-shadow: inset 0.1rem 0.1rem 0.5rem rgba(0, 0, 0, 0.1);
  border-color: #ccc;
  box-sizing: border-box;
}

.ms-choice:hover {
  background: none !important;
}

.ms-choice > span.placeholder {
  opacity: 1;
  color: #ccc !important;
  font-weight: 300;
}

.ms-drop.bottom {
  width: auto;
  max-width: 30em;
}

.switch {
  position: relative;
  display: inline-block;
  width: 3em;
  height: 1.5em;
}

.switch input {
  opacity: 0;
  width: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1em;
  width: 1em;
  left: 0.25em;
  bottom: 0.25em;
  background-color: white;
  -webkit-transition: 0.4s;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #222;
}

input:focus + .slider {
  box-shadow: 0 0 1px #222;
}

input:checked + .slider:before {
  -webkit-transform: translateX(1.5em);
  -ms-transform: translateX(1.5em);
  transform: translateX(1.5em);
}

/* Rounded sliders */
.slider.round {
  border-radius: 1.5em;
}

.slider.round:before {
  border-radius: 50%;
}

.toggle-switch label.on {
  padding-right: 0.5em;
}
.toggle-switch label.off {
  padding-left: 0.5em;
}
.toggle-switch.invert .slider {
  background-color: #222;
}
.toggle-switch.invert input:checked + .slider {
  background-color: #ccc;
}
.toggle-switch.invert input:focus + .slider {
  box-shadow: 0 0 1px #ccc;
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: "Bahnschrift", Helvetica, Arial, sans-serif;
  font-size: 16px;
  background-color: #5c5c5c;
  color: #fff;
  font-weight: 300;
}

input, button, textarea, select {
  font: inherit;
}
input:focus, button:focus, textarea:focus, select:focus {
  outline: 0.15rem solid #b7db65;
  outline-offset: 0;
}

input, textarea, select {
  border: 1px solid #5c5c5c;
  border-radius: 0.25rem;
  padding: 0.25rem;
}
input[readonly], textarea[readonly], select[readonly] {
  border-color: #888;
  background: #eee;
}

a {
  text-decoration: none;
  color: inherit;
}

button, .button {
  border: 0;
  color: black;
  padding: 0.5rem 1rem;
  background: #b7db65;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.25s ease;
}
button[disabled], .button[disabled] {
  opacity: 0.2;
  cursor: not-allowed;
}
button:hover, .button:hover {
  color: #fff;
  background: #576452;
}
button icon + span, button svg + span, .button icon + span, .button svg + span {
  margin-left: 0.5rem;
}
button span + svg, .button span + svg {
  margin-left: 0.5rem;
}

h1,
h2 {
  margin: 0;
  padding: 0;
  font-size: 100%;
}

#login {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: black;
}
#login .background {
  position: fixed;
  inset: 0;
  background-image: url("../img/login-background.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.3;
  z-index: 0;
  filter: saturate(0.2);
}
#login .card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.4);
  padding: 2rem;
  border-radius: 0.2rem;
  box-shadow: 1rem 1rem 3rem #000;
  z-index: 1;
  backdrop-filter: blur(0.2rem);
  gap: 0.5em;
}
#login .card div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
#login .card div.logo {
  align-items: center;
  justify-content: center;
  font-size: 200%;
  font-weight: bold;
  margin-bottom: 0.5em;
}
#login .card div.logo img {
  height: 120px;
}
#login .card div.logo svg {
  width: 5rem;
  margin-right: 0.25rem;
  fill: #5c5c5c;
  stroke: transparent;
}
#login .card div.logo span {
  color: #5c5c5c;
  text-shadow: -1px -1px 0 transparent, 1px -1px 0 transparent, -1px 1px 0 transparent, 1px 1px 0 transparent;
}
#login .card h1 {
  background: #3b4a83;
  color: #fff;
  margin: 1rem -1rem 0 -1rem;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
}
#login .card h2 {
  margin: 1rem;
  margin-bottom: 0.5rem;
  text-align: center;
}
#login .card .field {
  display: grid;
  grid-template-columns: 2rem 1fr 2rem;
  align-items: center;
}
#login .card .field label {
  text-align: center;
}
#login .card input {
  padding: 0.5rem;
}
#login .card .forgot-password {
  text-align: right;
  margin-top: 1em;
}
#login .card button, #login .card .button {
  background: #b7db65;
  color: black;
  border: 0;
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
  box-shadow: inset 1rem 1rem 2rem rgba(255, 255, 255, 0.2); /* Soft glow to make buttons look buttony */
}
#login .card button:hover, #login .card .button:hover {
  background: #5c5c5c;
  color: #fff;
}
#login .card button:hover icon, #login .card button:hover svg, #login .card .button:hover icon, #login .card .button:hover svg {
  animation: sign-in-icon 0.3s alternate ease infinite;
}

@keyframes sign-in-icon {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(0.5rem);
  }
}
@media only screen and (max-width: 768px) {
  .card {
    width: 80%;
  }
  .logo {
    height: 8em;
  }
  .logo img {
    height: 60%;
  }
}
