html,
body {
  /* width: 100vw; */
  /* height: 100vh; */
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  font-family: "Montserrat", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  /* margin: auto; */
  /* height: 100%; */
  /* width: 100%; */
  min-height: 90vh;
  background-color: whitesmoke;
}
form,
input,
select,
textarea {
  font-family: "Montserrat", sans-serif;
}
select {
  background-color: var(--primary-text, #f2f2f2);
  color: var(--primary, black);
}
form {
  background-color: white;
  margin: 20px auto;
  padding: 35px;
  border-radius: 8px;
  /* box-shadow: 0 0 10px rgba(128, 128, 128, 0.2); */
  max-width: 100%;
  min-width: 350px;
  position: relative;
}
form input,
form select {
  width: 100%;
  min-height: 41px;
  margin: 5px auto;
  font-size: 1.1rem;
  line-height: 1.1rem;
  text-align: center;
  /* text-indent: 4px; */
}
form select {
  padding-top: 7px;
}
form input[type="submit"] {
  width: 100%;
  margin-top: 10px;
  padding: 5px;
  border-radius: 5px;
  font-size: larger;
  cursor: pointer;
}
form input[type="submit"].btn {
  width: unset;
  margin-top: unset;
}
form > p {
  /* border: red solid 1px; */
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  text-align: center;
}
form > p > label {
  font-size: 1.2rem;
  /* border: red solid 1px; */
}
form input[type="checkbox"] {
  padding: 5px;
  height: 15px;
  width: 25px;
}
ul.errorlist {
  list-style: none;
  padding: 3px;
  margin: 0 auto;
}
form .errorlist li {
  background-color: rgb(238, 255, 0);
  color: #000;
  padding: 5px;
  border-radius: 5px;
  font-size: larger;
}
form textarea {
  width: 100%;
  min-height: 100px;
  margin: 5px auto;
  font-size: 1.2rem;
  padding: 5px;
}
.block-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  position: relative;
  /* max-width: 1000px;

  border: red 5px solid; */
}
ul.messages {
  display: flex;
  flex-direction: column;
  list-style: none;
  z-index: 10;
}
.messages li {
  padding: 3px;
  background-color: #f2f2f2;
  border-radius: 8px;
  margin-top: 5px;
  box-shadow: 1px 2px 6px 3px rgba(0, 0, 0, 0.288);
}
#flash-messages {
  position: fixed;
  top: 0;
  left: 0;
  width: fit-content;
}
#flash-messages li {
  border-radius: 3px;
  padding: 10px;
  min-width: 200px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.messages button {
  margin-left: 10px;
}
.messages .info {
  background-color: #f2f2f2;
}
.messages .danger {
  background-color: #ff002b;
  color: #fff;
}
.messages .success {
  background-color: #33b918;
  color: #fff;
}
.messages .warning {
  background-color: #ffd900;
  /* color: #fff; */
}

header {
  background-color: black;
  display: flex;
  flex-direction: row;
  /* justify-content: space-between; */
  /* align-items: flex-start; */
  margin: 0;
  width: 100vw;
  /* padding-right: 10px; */
}
header img.logo {
  justify-self: flex-start;
  object-fit: cover;
  padding: 10px;
}
nav {
  display: flex;
  flex-direction: column;
  /* justify-content: flex-end; */
  align-items: flex-end;
  width: 100%;
  height: 100%;
  padding: 0;
}
nav > div,
div.navitems {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 5px;
  padding-right: 5px;
}
nav > div.first,
div.navitems {
  /* width: fit-content; */
  flex: auto;
  position: relative;
  /* background-color: black; */

  /* align-items: stretch; */
  align-items: center;
  padding: 0;
  margin: 0;
}
div.navitems-slim {
  flex: none;
}
div.navitems-slim > .btn {
  font-size: 18px;
  height: 30px;
  padding: 0px 8px;
  line-height: 30px;
}
nav > div.first {
  width: 100%;
  justify-content: space-between;
}
nav > div.first > p.name {
  /* background-color: #f2f2f2;
  color: #000; */
  color: white;
  padding: 5px;
  /* border-radius: 3px; */
  align-self: center;
  font-size: 1.3rem;
  margin: 0 auto;
  /* border-bottom: #f2f2f2 solid 2px; */
}
/* nav > div.first >a.btn {align-self: center;} */
.btn,
input.btn,
nav a.btn,
.nav-btn,
header > h3 {
  padding: 5px 8px;
  margin: 2px auto;
  font-size: 25px;
  line-height: 25px;
  font-family: "Montserrat", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-transform: capitalize;
  text-decoration: none;
  text-align: center;
  border: 1px solid var(--primary, black);
  border-radius: 5px;
  background-color: var(--primary-text, white);
  color: var(--primary, black);
  transition: background-color 333ms, color 333ms, border-color 333ms;
}
/* nav > div.first > a.logout {
  flex: 0 0;
  align-self: top;
  padding: 0px 3px;
  height: 30px;
  border-radius: 0 0 0 10px;
  margin: 0 0;
} */
nav a.ns,
a.ns {
  border: none;
  background-color: unset;
  padding: 0 0;
  padding-bottom: 0;
  padding-top: 0;
}
a.nd {
  text-decoration: none;
}
a.icon {
  display: flex;
  justify-content: center;
  align-items: center;
}
.nav-btn.nb {
  border: none;
}

header > h3 {
  max-width: 400px;
  text-transform: lowercase;
  font-weight: lighter;
  border: white inset 1px;
}
.btns .nav-btn,
.btns a.nav-btn,
.btns button.nav-btn {
  text-align: center;
  height: 42px;
  font-size: 25px;
  line-height: 37px;
  padding: 3px 10px;
  margin: auto;
  margin-right: 10px;
  width: fit-content;
  max-width: 100%;
}
.btns a.btn,
.btns button.btn,
.btns input.btn {
  /* margin: 0 auto; */
  /* margin-right: 10px; */
  box-shadow: 1px 1px 5px 0px rgba(0, 0, 0, 0.15);
  height: 40px;
  /* font-size: 1.3rem; */
  /* line-height: 1.3rem; */
  /* height: 42px;
  font-size: 25px;
  line-height: 37px; */
  /* padding: 3px 8px; */
  padding: 8px 8px;
  margin: 5px;
  border-radius: 8px;
}
.btns .primary {
  background-color: var(--primary, rgb(2, 2, 141));
  color: var(--primary-text, white);
  /* #005f96; */
  border-color: transparent;
}
.btns .secondary {
  background-color: grey;
  /* #ffa500; */
  border-color: transparent;
  color: white;
}
.btns .confirm {
  background-color: rgb(91, 158, 46);
  /* #005f96; */
  border-color: transparent;
  color: white;
}
.btns .danger {
  background-color: rgb(214, 0, 0);
  border-radius: 5px;
  /* #ff0000; */
  border-color: transparent;
  color: white;
}
div.btns {
  display: flex;
  flex-direction: row;
  justify-content: space-evenly;
  align-items: center;
  margin: 10px auto;
  padding: 10px;
  width: fit-content;
}
div.fc {
  width: fit-content;
}
div.btns > .btn {
  margin: unset;
  margin-right: 8px;
  height: 41px;
}
div.btns > .btn.create {
  padding: 15px;
  font-size: 1.4rem;
  height: 55px;
  border-width: 2px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* border-color: transparent; */
  /* background-color: var(--primary-text, white); */
  /* color: var(--primary, black); */
}
nav > div > .btn {
  border-radius: 3px;
}
a.btn:hover,
button.btn:hover,
.nav-btn:hover,
a.btn:active,
button.btn:active,
.nav-btn:active {
  border-color: var(--primary-text, white);
  background-color: var(--primary, black);
  color: var(--primary-text, white);
}
.btns .btn.cir,
.btn.cir {
  border-radius: 50%;
  height: 25px;
  width: 25px;
  font-size: 25px;
  line-height: 20px;
  padding: 0 0;
  align-self: center;
}
.btns .btn.right,
.btn.right {
  border-radius: 0 100px 100px 0;
  margin-left: 0;
  height: 100%;
  border-color: transparent;
  height: 41px;
  /* border-left-color: var(--primary, black); */
}
.btns .btn.left,
.btn.left {
  border-radius: 100px 0 0 100px;
  margin-right: 0;
  border-color: transparent;
  height: 41px;
  /* border-right-color: var(--primary, black); */
}
.nav-btn:hover > svg {
  fill: var(--primary-text, #ffffff);
}

.btns.dategroup {
  align-items: flex-start;
  /* border: #000 3px solid; */
}
.datepicker {
  /* border: #000 2px dotted; */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  margin: 0px;
  height: 100%;
}
.datepicker > input {
  height: 41px;
  width: 245px;
  font-size: 25px;
  border-radius: 0px;
  margin: 0;
  border-color: var(--primary, black);
  border-top: none;
  border-bottom: none;
}
.datepicker > .row {
  justify-items: center;
  margin-top: 5px;
  /* border: darkcyan 2px dotted; */
}
#date-selecter-btn,
#datepicker-today,
#period-selecter {
  height: 35px;
  width: 75px;
  line-height: 25px;
  padding: 0px 5px;

  text-transform: capitalize;
  font-size: 1.2rem;

  border-radius: 5px 0 0 5px;
  border: var(--primary, black) 1px solid;
  margin: 0;
}
.datepicker #period-selecter {
  width: 100px;
  border-radius: 0;
}
#date-selecter-btn {
  width: 60px;
  border-radius: 0 5px 5px 0;
}
#datepicker-today:disabled,
.btn:disabled,
.btn:disabled:hover,
a.btn.disabled,
.nav-btn:disabled,
a.btn.disabled:hover,
.nav-btn:disabled:hover {
  border-color: transparent;
  background-color: var(--primary, black);
  color: var(--primary-text, white);
}

.table {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  vertical-align: middle;
  justify-content: center;
  overflow-x: auto;
  max-width: fit-content;
  margin: auto;
  white-space: nowrap;
}
tr {
  overflow-x: auto;
  min-width: fit-content;
  border-bottom: 1px solid #000;
  line-height: 40px;
  transition: background-color 333ms;
}
th {
  border-bottom: 2px solid black;
  line-height: 30px;
  padding: 5px;
}
td {
  text-align: center;
  padding: 5px;
}
tr:hover,
tr:active {
  background-color: rgba(155, 155, 155, 0.5);
}
thead > tr:hover {
  background-color: transparent;
}
.pageheader {
  text-align: center;
}
.nav-btn.full,
span.full,
.full {
  width: 100%;
  height: 100%;
  display: block;
  font-size: larger;
  margin: 0 auto;
}
.pagination {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin: auto;
}
.obscure > span {
  background-color: rgb(185, 185, 185);
  color: rgb(185, 185, 185);
  user-select: none;
  cursor: pointer;
}
.center {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: auto;
}
.col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.row {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin: auto;
}
.sa {
  justify-content: space-between;
  align-items: stretch;
}
.sa > p {
  margin: 0;
  min-width: 100px;
  /* flex: 1; */
}
.img-container {
  width: fit-content;
  margin: auto;
}
.img-container > img {
  object-fit: scale-down;
}
/* desktop */
#menuicon {
  display: none;
}
/* tablet */
@media screen and (max-width: 900px) {
  /* header img.logo {
    height: 75px;
    width: 75px;
  } */
  form {
    margin: 5px auto;
    padding: 15px 8px;
    padding-bottom: 20px;
  }
}
/* mobile */
@media screen and (max-width: 500px) {
  nav > div {
    flex-wrap: wrap;

    /* width: fit-content;
      flex: auto;
      position: relative;
      display: flex;
      flex-direction: row;
      justify-content: flex-end;
      flex-wrap: wrap;
      padding: 0;
      margin: 0px; */
  }
  .block-content {
    padding: 0px 5px;
  }
  form {
    margin: 0 auto;
    padding: 5px;
    padding-bottom: 20px;
    border-radius: 0px;
    width: 100%;
    max-width: 98vw;
    min-width: unset;
    overflow-x: scroll;
  }
  .btns > a.btn,
  .btns > button.btn,
  .btns > input.btn {
    font-size: 18px;
    height: 30px;
    padding: 0px 8px;
    line-height: 30px;
    /* xxx */
  }

  header img.logo {
    padding: 2px;
    height: 35px;
  }
  #menuicon {
    font-size: 25px;
    color: var(--primary-text, white);
    display: block;
    padding: 8px;
  }
  div.navitems {
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    visibility: hidden;
    height: 0;
    opacity: 0;
    /* background-color: var(--primary-text, white); */
    transition: height 0.2s, opacity 0.5s;
  }
  div#navmenus-container.show {
    visibility: visible;
    height: 100px;
    opacity: 1;
    /* background-color: inherit; */
  }
  div.navitems > .btn {
    /* border: red 1px solid; */
    align-self: center;
    flex: 1 0 auto;
  }
  /* nav > div.first {
    flex-wrap: nowrap;
  } */
  .knk nav > div.first {
    /* TODO fix knk dash */
    flex-wrap: wrap;
  }
  nav > div.first > p.name {
    font-size: 0.9rem;
  }
  /* nav > div.first > a.logout {
    flex: 0 0;
    align-self: top;
    padding: 0px 3px;
    height: 30px;
    border-radius: 0 0 0 10px;
    margin: 0 0;
  } */
}
