*, *::before, *::after {
  box-sizing: border-box;
}

html, body, body * {
  font-family: "Noto Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 16px;
  color: #222;
  font-style: normal;
  text-decoration: none;
  font-variation-settings:
    "slnt" 0;
}

body {
  margin: 0;
}

.main {
  margin: 0 20px 0 340px;
}

@media only all and (max-width: 1200px) {
  .main {
    margin: 0 20px 0 260px;
  }
}

.container {
  width: 100%;
  max-width: 1236px;
  min-height: calc(100% - 5em);
  position: relative;
  margin: 2.5em auto 2.5em;
}


h1, h2, h3 {
  font-weight: 600;
  color: #222;
}

h1 {
  font-size: 32px;
  margin: 0 0 1em;
}

h2 {
  font-size: 24px;
}

h3 {
  font-size: 20px;
}

.text-center {
  text-align: center;
}

.page-end {
  display: flex;
  width: 100%;
}

.login-wrapper {
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 0 80px;
  padding: 40px;
}

.landing-wrapper {
  margin-top: 100px;
}

/* Elements */

.btn-wrapper {
  display: flex;
}

.btn-wrapper--right {
  justify-content: end;
  margin-left: auto;
}

.btn {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  line-height: 1;
  border: none;
  border-radius: 4px;
  padding: .75em 1em;
  cursor: pointer;
}

.btn--primary {
  font-weight: 500;
  background-color: #007a62;
  color: #fff;
}

.btn--primary:hover {
  background-color: #004739;
}

.btn--secondary {
  font-weight: 500;
  background-color: #fff;
  color: #222;
  border: 1px solid #222;
}

.btn--secondary:hover {
  color: #007a62;
}

.btn-l {
  padding: 1em;
}

.btn--primary .icon {
  color: #fff;
}

.btn--secondary .icon {
  color: #222;
}

.btn--secondary:hover .icon {
  color: #007a62;
}

.link {
  color: #007a62;
}

.link:hover {
  color: #004739;
}

.search {
  width: 320px;
  line-height: 1;
  border: 1px solid #CCC;
  border-radius: 3px;
  padding: .5em 1em;
}

.report-filters {
  display: flex;
  gap: 20px;
}

.date-label {
  display: block;
}

.paragraph {
  margin-bottom: 1em;
}

/* Menu */

.side-menu {
  height: 100%;
  width: 320px;
  background-color: #f6f6f6;
  border-right: 1px solid #CCC;
  position: fixed;
  top: 0;
  left: 0;
  overflow-x: hidden;
  z-index: 1;
}

@media only all and (max-width: 1200px) {
  .side-menu {
    width: 240px;
  }
}

.logo {
  width: 100%;
}

.menu-link {
  display: block;
  background: #fff;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid #CCC;
  padding: 1em;
}

.menu-link:first-of-type {
  padding-bottom: 20px;
}

.menu-link:hover {
  background: #FAFAFA;
  color: #0B0B0B;
}

.logout-wrapper {
  width: 100%;
  position: absolute;
  bottom: 20px;
  left: 0;
}

.logout {
  display: block;
  text-align: center;
}

/* Table */
.table__header {
  margin: 10px 0;
}

.table-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.reports-table {
  margin-bottom: 40px;
}

.table__row {
  border-bottom: 1px solid #CCC;
}

.table__row--head {
  background-color: #dbf0ea;
  border-radius: 1em;
  font-weight: 600;
  border-bottom: none;
}

.table__row--head  .table__cell {
  padding: 1.5em 1em;
  margin: 0;
}

.table__row--head  .table__cell:first-of-type {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.table__row--head  .table__cell:last-of-type {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}

.table__row--reports {
  display: grid;
  grid-template-columns: 1fr 160px;
}

.table__cell {
  padding: 1.5em 1em;
}

/* Form */
.form {
  width: 100%;
  max-width: 720px;
  margin: 40px auto;
}

.form--login {
  max-width: 480px;
}

.form__field {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.form__field--login {
  flex-direction: column;
  gap: 16px;
}

.input-label {
  min-width: 200px;
  font-weight: 500;
}

.input-wrapper {
  width: 100%;
  position: relative;
}

.input {
  appearance: none;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 3px;
  outline: none;
  padding: 5px 7px;
}

.input:disabled {
  background: none;
  border: none;
}

.input:hover, input:focus {
  border-color: #222;
}

.input--error {
  border-color: red;
}

.select {
  padding: 7px;
}

.select__arrow {
  position: absolute;
  top: 0;
  right: 0;
  padding: 10px;
  pointer-events: none;
}

.checkbox {
  cursor: pointer;
}

.checkbox-label {
  padding-left: 16px;
  cursor: pointer;
}

.form-error {
  font-size: 12px;
  color: red;
  position: absolute;
  top: -20px;
  left: 0;
}

/* Accounts filter dropdown */

.filter-wrapper {
  position: relative;
}

.filter-button:focus ~ .filter-dropdown,
.filter-button:focus-within ~ .filter-dropdown,
.filter-dropdown:hover,
.filter-dropdown:focus,
.filter-dropdown:focus-within {
  display: block;
}

.filter-dropdown {
  display: none;
  width: 400px;
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px 20px 0;
  position: absolute;
  top: 42px;
  left: 0;
}

/* ajax  error and success responses */
.ajax-form-reponse .ajax-msg {
  width: 90%;
  margin: 10px auto;
  padding: 10px;
  border-radius: 3px;
  display: none;
}
.ajax-form-reponse .ajax-msg:before {
  content: attr(data-icon);
  font-family: FontAwesome;
  margin-right: 5px;
}
.info-msg {
  color: #059;
  background-color: #BEF;
}
.success-msg {
  color: #270;
  background-color: #DFF2BF;
}
.warning-msg {
  color: #9F6000;
  background-color: #FEEFB3;
}
.error-msg {
  color: #D8000C;
  background-color: #FFBABA;
}

/* show a loading animation with backdrop while waiting for content */
#please_wait_modal_gif {
  margin: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
}
.please_wait_modal_overlay {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}