* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

table thead {
position: sticky;
top: -30px;
background-color: #fff;
}


body {
  height: 100vh;
  overflow-y: hidden;
}

.loading {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(255,255,255,1);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#tables {
  height: 100%;
}

.cardBox {
  height: 90%;
}

.spinner-grow {
  width: 75px;
  height: 75px;
}

.loading p {
  text-transform: capitalize;
  font-size: 20px;
  font-weight: 900;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 30px;
  margin: 10px;
}

.searchBar {
  max-width: 60%;
}

#userImage {
  border-radius: 50%;
  width: 40px;
}

#offcanvasExample {
  background-color: blue;
  color: white;
}

.offcanvas-body {
  padding: 0;
}

.list-group-item {
  background-color: blue;
  color: #fff;
}

.list-group-item:hover,
.hovered {
  background-color: #fff;
  color: blue;
}

.list-group-item {
  display: flex;
  justify-content: space-between;
}

.cardBox {
  min-width: 100%;
  padding: 20px;
}

.cardBox .card {
  min-width: 100%;
  background: white;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

table {
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
  word-break: keep-all;
}

table tr {
  padding: 0.35em;
}

table th,
table td {
  padding: 0.625em;
  text-align: left;
  word-break: keep-all;
}

table th {
  font-size: 0.85em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  word-wrap: normal;
}

.icons span {
  padding: 0.45rem;
  font-size: 1.5rem;
}

.icons span:hover {
  cursor: pointer;
}

.fa-eye {
  color: blue;
}

.fa-edit {
  color: green;
}

.fa-trash-alt {
  color: red;
}

.card {
  width: 100%;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  text-align: center;
  -webkit-transition: 0.1s ease-in-out;
  transition: 0.1s ease-in-out;
  height: 100%;
}

.card:first-of-type {
  margin-right: 25px;
}

.banner {
  height: 100px;
  width: 100%;
  padding-top: 30px;
  background-color: #fafafa;
  background-size: cover;
  background-position: center;
}

.banner {
  background-image: url("../images/sky.jpg");
}

.avatar {
  height: 100px;
  width: 100px;
  margin: auto;
  background-color: #f1f1f1;
  border-radius: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
  font-weight: bold;
}

h3,
a,
i {
  font-family: "Roboto", sans-serif;
  font-weight: lighter;
  -webkit-transition: 0.1s ease-in-out;
  transition: 0.1s ease-in-out;
}

h3 {
  margin-top: 45px;
  margin-bottom: 5px;
  font-size: 18px;
  color: #212121;
}

a {
  display: block;
  padding: 5px 0px;
  font-size: 14px;
  color: #9e9e9e;
  text-decoration: none;
}

a:hover {
  background-color: #fafafa;
  color: inherit;
}

.first {
  margin-top: 45px;
}

.input-group {
  padding: 10px;
}

#editEmployeeForm > button,
button.btn:nth-child(3) {
  margin: 10px;
}

.noShow {
  display: none;
}

.nonDisplay {
  display: none;
}

.deleteEmployeeWarning,
#deleteSuccessMessage,
#successMessage,
.deleteDepartmentWarning {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  margin: 10px;
}

.deleteEmployee,
.deleteDepartment {
  padding: 15px;
}

#depatmentEmployees li,
#locationDepatments li {
  list-style: none;
  color: green;
}

#addEmployeeForm > button {
  margin: 15px;
}

#searchBarButt {
  background-color: #e9ecef;
}

#addDepartmentButtonMobile,
#addEmployeeButtonMobile,
#addLocationButtonMobile {
  display: none;
}

.prependWidth {
  width: 111px;
}

@media screen and (max-width: 760px) {
  table {
    border: 0;
  }
  table thead {
    border: none;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }
  table tr {
    display: block;
    margin-bottom: 0.625em;
  }
  table td {
    display: block;
    font-size: 0.8em;
    text-align: right;
  }
  table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }
  table td:last-child {
    border-bottom: 0;
  }

  .header {
    flex-direction: column;
  }

  .searchBar {
    min-width: 100%;
  }

  #addDepartmentButtonMobile,
  #addEmployeeButtonMobile {
    display: block;
  }
}
