body {
  --lesaka-lime: #D4EB00;
  --lesaka-earth: #2F0D0B;
  font-size: .875rem;
  height: 100vh;
  max-width: 100vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: "Bree Light", "Bree Light Placeholder", "Bree Serif", sans-serif;
}

.sticky-footer {
  margin-top: auto;
  padding: 0 15px;
}

.feather {
  width: 16px;
  height: 16px;
  vertical-align: text-bottom;
}

.action-button{
  background-color: #D4EB00;
  color: #2F0D0B;
}

/*
 * Sidebar
 */
.sidebar {
  overflow: hidden;
  background-color: #D4EB00;
  transition: width 0.2s ease-in;
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.text-earth {
  color: #2F0D0B;
}

.page-content {
  overflow-x: hidden;
  overflow-y: scroll;
  transition: width 0.2s ease-in;
}

.sidebar.closed {
  width: 2rem;
}

.sidebar .feather.menu-icon {
  width: 1.4rem;
  height: 1.4rem;
  cursor: pointer;
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #333;
}

.sidebar .nav-link.active {
  color: rgb(46, 89, 59);
  background-color: rgba(212 235 0, 0.4);
  border-radius: 5px;
  margin-right: 16px;
}

.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Navbar
 */

.navbar {
  background-color: #D4EB00;
}

.navbar a, .navbar .nav-link:hover {
  color: #fff;
  text-decoration: none;
}

.navbar input::placeholder {
  color: #f8f9fa;
}

.navbar input, .navbar input:focus {
  color: #fff;
  background-color: #D4EB00;
}

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .navbar-toggler {
  top: .25rem;
  right: 1rem;
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

.btn-toggle {
  display: inline-flex;
  align-items: center;
  padding: .25rem .5rem;
  font-weight: 500;
  font-size: .875rem;
  color: #333;
  background-color: transparent;
  border: 0;
}
.btn-toggle:hover,
.btn-toggle:focus {
  color: #D4EB00;
  border-radius: 5px;
  margin-right: 16px;
}

.btn-toggle::before {
  width: 1.25em;
  line-height: 0;
  content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
  transition: transform .35s ease;
  transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
  color: rgba(0, 0, 0, .85);
}
.btn-toggle[aria-expanded="true"]::before {
  transform: rotate(90deg);
}

.btn-toggle-nav a {
  display: inline-flex;
  padding: .1875rem .5rem;
  margin-top: .125rem;
  margin-left: 1.25rem;
  text-decoration: none;
}
.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
  color: #D4EB00;
  background-color: rgba(149, 178, 184, 0.3);
  border-radius: 5px;
  margin-right: 16px;
  width: 80%;
}


.form-signin .checkbox {
  font-weight: 400;
  background-color: #f5f5f5;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  background-color: #f5f5f5;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  background-color: #f5f5f5;
}

.form-signin {
  align-items: center;
  padding-bottom: 40px;
  width: 100%;
  max-width: 500px;
  padding: 15px;
  margin: auto;
  background-color: #f5f5f5;
}


.form-signin .checkbox {
  font-weight: 400;
}

.form-signin .form-floating:focus-within {
  z-index: 2;
}

.form-signin input[type="email"] {
  margin-bottom: -1px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.form-signin input[type="password"] {
  margin-bottom: 10px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.myAlert-top {
  position: fixed;
  top: 83px;
  left: 47%;
  margin-left: -100px;
  padding: 10px 20px 10px;
  box-sizing: border-box;
}

.form-floating input,
.form-floating select {
  border: none;
  border-radius: 0;
  border-bottom: 2px solid #ced4da;
}

.form-floating input:focus,
.form-floating select:focus {
  border: none;
  border-bottom: 2px solid #D4EB00;
}

.form-floating input:focus + label,
.form-floating select:focus + label {
  color: #D4EB00;
}

.form-check-input:checked {
  border: #D4EB00;
  background-color: #D4EB00;
}

.table thead, .sortable th {
  color: #D4EB00;
  font-weight: bold;
  background-color: transparent;
}

.sortable th {
  position: sticky;
  top: -0.1rem; /* Don't forget this, required for the stickiness */
  background-color: #fff;
}

.htmx-indicator {
  display: none;
}

.htmx-indicator.htmx-request {
  display: block;
}

.page-link {
  cursor: pointer;
}

.page-item.active .page-link {
  border-color: #D4EB00;
  background-color: #D4EB00;
}

.spinner-border {
  color: #D4EB00;
}

input[type="date"] {
  -webkit-text-fill-color: #212529;
}

.dropdown-item.active,
.dropdown-item:focus {
  color: #fff;
  background-color: #D4EB00;
}

@media (min-height: 500px) {
  #table_container.transactions-table {
    height: 32vh;
  }

  #table_container.audit-table {
    height: 42vh;
  }

  #table_container.finance-table {
    height: 48vh;
  }
}

@media (min-height: 700px) {
  #table_container.transactions-table {
    height: 42vh;
  }

  #table_container.audit-table {
    height: 52vh;
  }

  #table_container.finance-table {
    height: 58vh;
  }
}

@media (min-height: 900px) {
  #table_container.transactions-table {
    height: 52vh;
  }

  #table_container.audit-table {
    height: 62vh;
  }

  #table_container.finance-table {
    height: 68vh;
  }
}

@media (min-height: 1100px) {
  #table_container.transactions-table {
    height: 62vh;
  }

  #table_container.audit-table {
    height: 72vh;
  }

  #table_container.finance-table {
    height: 78vh;
  }
}
