@font-face {
  font-family: "capriola";
  src: url("fonts/capriola.ttf") format("truetype");
  font-style: normal;
  font-weight: normal;
}

@font-face {
  font-family: "nunito-sans";
  src: url("fonts/NunitoSans_10pt-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "nunito-sans";
  src: url("fonts/NunitoSans_10pt-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
}

body {
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 16px;
  min-width: 288px;
  font-family: "nunito-sans", Arial;
  background-size: cover;
  color: #000000;
}

body.form {
  background-color: #fefaf6;
  color: #2d0000;
}

div.header {
  z-index: 100;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0;
  padding: 40px 30px;
  height: 20px;
  background: url("../img/logo.png") no-repeat left center;
  background-origin: content-box;
  background-color: #fcfcfc;
  background-size: auto 30px;
  color: #000000;
  border-bottom: 1px solid #e8e8e8;
  text-align: right;
}

div.header a {
  padding: 25px;
  line-height: 20px;
  text-decoration: none;
  color: #000000;
  outline: none;
  border: 0;
}

div.footer {
  margin-top: 24px;
  text-align: center;
}

div.footer a {
  padding: 25px;
  line-height: 20px;
  text-decoration: none;
  color: #000000;
  width: 100%;
  outline: none;
  border: 0;
}

h1 {
  font-size: 40px;
  margin: 16px 0;
  font-family: "capriola";
}

h1.top {
  margin-top: 120px;
}

h2 {
  font-size: 28px;
  margin: 8px 0;
  font-family: "capriola";
  color: #33cccc;
}

h3,
#fm_box h3 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 16px;
}

#fm_box.form {
  max-width: 500px;
  margin: 0 auto;
}

#fm_box.center {
  max-width: 350px;
  margin: 0 auto;
  text-align: center;
}

#fm_box.center form > p.left {
  text-align: left;
}

div.header a:link,
div.header a:active,
div.header a:hover,
div.header a:focus {
  color: #ffa500;
}

#fm_box a:link,
a:active,
a:visited,
a:hover,
a:focus,
button,
button:active,
button:focus {
  outline: none;
  border: 0;
}

#fm_box b {
  font-weight: 700;
}

#fm_box p.center {
  padding: 0;
  text-align: center;
}

#fm_box button,
a.button,
#fm_popup button,
a.button {
  display: inline-block;
  padding: 0.8em 1.336em;
  border-radius: 0.4rem;
  background-color: #33cccc;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

#fm_box button:hover,
a.button:hover,
nav div > a:hover,
button.get {
  background-color: #5bd5d4;
}

#fm_box button:active,
a.button:active,
nav div > a:active {
  border-width: 1px;
  border-style: solid;
}

#fm_box label {
  display: block;
  cursor: pointer;
  line-height: 16px;
}

#fm_box #email {
  display: none;
}

#fm_box input[type="text"],
#fm_box input[type="number"],
#fm_box input[type="email"],
#fm_box input[type="password"],
#fm_box select,
#fm_box input:disabled,
#fm_box textarea,
#fm_popup input[type="text"],
#fm_popup input[type="number"],
#fm_popup select,
#fm_popup textarea {
  display: block;
  margin: 8px 0 0 0;
  padding: 10px;
  border: 1px solid #ccc;
  width: calc(100% - 22px);
  max-width: 320px;
  font-family: "nunito-sans";
  font-weight: 400;
  font-size: 16px;
  cursor: pointer;
  outline: 0;
  transition: border 0.5s ease-out;
}

#fm_box input[type="text"]:focus,
#fm_box input[type="number"]:focus,
#fm_box input[type="password"]:focus,
#fm_box select:focus,
#fm_box textarea:focus,
#fm_popup input[type="text"]:focus,
#fm_popup input[type="number"]:focus,
#fm_popup select:focus,
#fm_popup textarea:focus {
  border: 1px solid #33cccc;
}

#fm_box input[type="text"]:first-child {
  margin-top: 6px;
}

#fm_box input::placeholder {
  color: #8b8b8b;
}

#fm_box input[type="checkbox"],
#fm_popup input[type="checkbox"] {
  display: none;
}

#fm_box input[type="checkbox"] + span,
#fm_popup input[type="checkbox"] + span {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  text-align: center;
  transition: all 0.5s ease-out;
}

#fm_box p > label input[type="checkbox"] + span,
#fm_popup p > label input[type="checkbox"] + span {
  position: absolute;
}

#fm_box input[type="checkbox"] + span + span,
#fm_popup input[type="checkbox"] + span + span {
  display: inline-block;
  margin: 2px 0 0 30px;
  width: calc(100% - 30px);
  line-height: 20px;
}

#fm_box th input[type="checkbox"] + span,
#fm_box td input[type="checkbox"] + span {
  margin-right: 0;
}

#fm_box th:first-child,
#fm_box td:first-child {
  width: 25px;
}

#fm_box input[type="checkbox"] + span i,
#fm_popup input[type="checkbox"] + span i {
  margin: 2px 0 0 1px;
  color: #33cccc;
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

#fm_box input:checked + span,
#fm_popup input:checked + span {
  border: 1px solid #666;
}

#fm_box input:checked + span i,
#fm_popup input:checked + span i {
  opacity: 1;
}

#fm_box input[type="checkbox"].err:not(:checked) + span {
  border: 1px solid #fa0505;
  background-color: #fecdcd;
}

#fm_box select {
  padding-right: 25px;
  width: 250px;
  color: #b2b2b2;
  background: #fafafa url("../img/caret-down.svg") no-repeat 93% 50%;
  background-color: #fff;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

#fm_box select:-moz-focusring {
  color: transparent;
  text-shadow: 0 0 0 #000;
}

#fm_box select::-ms-expand {
  display: none;
}

#fm_box select.filled,
#fm_box select {
  color: #4c4c4c;
}

#fm_box input.err:placeholder-shown,
#fm_box select.err,
#fm_box textarea.err:placeholder-shown,
#fm_box input.dif {
  border: 1px solid #fa0505;
}

#fm_box input.err:placeholder-shown + p.err,
#fm_box select.err + p.err,
#fm_box textarea.err:placeholder-shown + p.err,
#fm_box input.err:not(:placeholder-shown) + p.err,
#fm_box select:not(.err) + p.err,
#fm_box textarea.err:not(:placeholder-shown) + p.err {
  position: absolute;
  margin: 0 16px;
  padding: 0 10px;
  border: 1px solid #fa0505;
  border-radius: 0 0 4px 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
  background-color: #fa0505;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.5s ease-out;
}

#fm_box input.err:not(:placeholder-shown) + p.err,
#fm_box select:not(.err) + p.err,
#fm_box textarea.err:not(:placeholder-shown) + p.err {
  opacity: 0;
}

#fm_box textarea.err:placeholder-shown + p.err {
  margin-top: -7px;
  line-height: 28px;
  height: 25px;
}

#fm_box select option {
  font-weight: 400;
  color: #4c4c4c;
  font-family: "nunito-sans", Arial;
}

#fm_box textarea {
  height: 120px;
  overflow: auto;
  resize: none;
}

#fm_box .none {
  display: none !important;
}

#fm_box .center {
  text-align: center;
}

#fm_box div.nav {
  position: relative;
  left: 0;
  right: 0;
  margin: 0 0 8px 0;
  padding: 0 0 8px 0;
  text-align: center;
  white-space: nowrap;
}

#fm_box div.nav ul {
  display: inline-block;
  margin: 0 !important;
  padding: 0 18px;
  border-radius: 21px;
  width: auto;
  height: 31px;
  background: #efefef;
}

#fm_box div.nav li {
  display: inline-block;
  margin: 0 5px;
  padding: 0;
}

#fm_box div.nav li > a {
  padding-bottom: 1px;
  font-size: 20px;
  line-height: 30px;
  text-decoration: none;
  color: #33cccc;
}

#fm_box div.nav li > a.borderBottom {
  border-bottom: 2px solid #888888;
}

#fm_box table,
#fm_popup table {
  table-layout: auto;
  left: 0;
  right: 0;
  margin: 32px auto;
  padding: 0;
  border: 0;
  width: auto;
  border-collapse: collapse;
  border-spacing: 0;
  word-break: break-word;
}

#fm_box table th,
#fm_popup table th {
  color: #33cccc;
  font-weight: 700;
  background: #f9f9f9;
  box-shadow: inset 0px 4px 3px -2px rgba(0, 0, 0, 0.04);
}

#fm_box table th,
#fm_box table td,
#fm_popup table th,
#fm_popup table td {
  margin: 0;
  padding: 8px;
  max-width: 200px;
  text-align: center;
  border: 1px solid #e6e6e6;
  vertical-align: middle;
}

#fm_box table tr.grey td {
  color: #808080;
}

#fm_box table tr:nth-child(even) td,
#fm_popup table tr:nth-child(even) td {
  background: rgba(0, 0, 0, 0.01);
}

#fm_popup table tr.fm_radioSelected td {
  background-color: #f2f3f4;
}

/*#fm_box div.tableBox{
	width: 100%;
	overflow-x: auto;
}
#fm_box div.tableBox > table{
	margin-bottom: 0 !important;
}*/
#fm_box table td,
#fm_popup table td {
  padding: 4px;
}

#fm_box table td a,
#fm_popup table td a {
  color: #ffa500;
}

#fm_box table td a:hover,
#fm_popup table td a:hover {
  color: #ffa500 !important;
  text-decoration: underline;
}

#fm_box table th button,
#fm_box table td button,
#fm_popup table th button,
#fm_popup table td button {
  margin: 0;
}

table th:last-child,
table td:last-child,
table th:last-child,
table td:last-child {
  width: 36px;
}

#fm_box table button,
#fm_popup table button {
  padding: 9px;
}

#fm_box table th:last-child button,
table td:last-child button,
#fm_popup table th:last-child button,
table td:last-child button {
  margin: 0 !important;
  width: auto;
  line-height: 14px !important;
}

#fm_box table td > span,
#fm_box table td > i,
#fm_popup table td > span,
#fm_popup table td > i {
  cursor: help;
}

#fm_popup {
  border: 2px solid #e8e8e8;
  position: fixed;
  top: 2.5%;
  right: 0;
  left: 0;
  margin: 0 auto;
  padding: 30px;
  width: calc(100% - 120px);
  height: calc(100% - 120px);
  background-color: #fff;
  text-align: left;
  z-index: 100;
  overflow-x: hidden;
  overflow-y: auto;
}

#fm_popup h3 {
  margin-top: 0;
}

#fm_popup .popup {
  margin-top: -20px;
  padding-bottom: 30px;
}

#fm_popup .popup > .fa-times-circle {
  position: fixed;
  margin-top: -5px;
  margin-left: calc(100% - 140px);
  background-color: #fff;
  border-radius: 9px;
  font-size: 28px;
  cursor: pointer;
}

#fm_popup .popup form {
  width: 320px;
}

#fm_popup .popup form p {
  margin-left: 0;
  margin-right: 0;
}

#fm_popup .popup #delSubmit {
  position: relative;
  top: -16px;
  margin: 0;
  height: 0;
}

#fm_popup .popup button.del {
  right: auto;
  left: 0;
  margin-left: 0;
}

#fm_popup .popup button[type="button"].del {
  border: 2px solid #f39200;
  background: #fff;
  color: #f39200;
}

#fm_popup .popup label {
  font-weight: 400;
  cursor: pointer;
}

#fm_popup .popup button.right {
  float: right;
  margin-right: 0;
}

#fm_popup .popup table {
  width: 100%;
  table-layout: auto;
}

#fm_popup .popup table th,
#fm_popup .popup table td {
  width: auto;
}

#fm_popup .popup table th:first-child,
#fm_popup .popup table td:first-child {
  width: 30px;
}

#fm_box div.filter {
  margin: 0 auto;
  padding: 0;
  width: 250px;
}

#fm_box div.filter h3 {
  text-align: center;
}

#fm_box div.filter input {
  display: inline-block;
  margin: 0 !important;
}

#fm_box div.filter i {
  position: relative;
  font-size: 20px;
  color: #c9c9c9;
  cursor: pointer;
  top: -33px;
  left: 217px;
}

#fm_box p {
  margin: 16px 0;
}

#fm_box p + label {
  display: block;
  margin: -16px 0;
}

#fm_popup .popup div.requester {
  width: 32%;
  min-width: 150px;
  max-width: 280px;
  display: inline-block;
}

#fm_popup .popup div.status {
  padding: 16px 0;
  border-top: 2px solid lightgrey;
  position: fixed;
  bottom: 52px;
  background-color: #fff;
  width: calc(100% - 120px);
}

#fm_popup .popup div.status textarea {
  width: 60%;
  max-width: 500px;
  height: 80px;
}

#fm_popup .popup div.status div.buttons {
  float: right;
  width: 210px;
  padding-top: 55px;
}

#fm_popup .popup div.status input[type="checkbox"] + span {
  padding: 4px 0 0 0;
  height: 20px;
}

/* radio button */
#fm_box *:before,
#fm_box *:after {
  box-sizing: border-box;
}

#fm_box label.radio {
  display: grid;
  grid-template-columns: 1em auto;
  gap: 18px;
}

#fm_box label.radio input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  color: #000;
  width: 22px;
  max-width: none;
  height: 22px;
  border: 1px solid #000;
  border-radius: 50%;
  transform: translateY(5px);
  display: grid;
  place-content: center;
}

#fm_box input[type="radio"]::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: #27348b;
}

#fm_box input[type="radio"]:checked::before {
  transform: scale(1);
}

#fm_box input[type="radio"].err {
  border: 1px solid #fa0505;
  background-color: #fecdcd;
}

@media only screen and (max-device-width: 950px),
  only screen and (max-width: 950px) {
  div.header {
    padding: 20px;
    height: 22px;
    background-size: auto 25px;
  }

  div.header a {
    padding: 10px;
  }
  div.header a:not(:first-child) {
    display: none;
  }

  h1.top {
    margin-top: 80px;
  }
}

@media only screen and (max-device-width: 450px),
  only screen and (max-width: 450px) {
  div.header {
    padding: 16px;
    height: 21px;
    background-size: auto 20px;
  }

  div.header a {
    padding: 0;
  }
  div.header a:not(:first-child) {
    display: none;
  }

  h1.top {
    margin-top: 65px;
  }
}
