html {
  font-size: 14px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 0.5rem;
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: #0f6553;
  color: #ffffff;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
}


@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html,
body {
  height: 100%;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

a {
  text-decoration: none;
  color: blue;
}

#navbar {
  background-color: #ffffff;
  border-bottom: 1px solid rgba(15, 101, 83, 0.15);
}

.navbar {
  padding: 0.75rem 1.5rem;
}

.navbar-brand img {
  box-shadow: 0 6px 18px rgba(15, 101, 83, 0.12);
}

.navbar-nav {
  gap: 0.35rem;
}

.nav-link {
  color: #1abc9c;
  border-radius: 999px;
  min-width: fit-content;
  padding: 0.4rem 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

#navbar .nav-link {
  font-size: 0.9rem;
  padding: 0.3rem 0.75rem;
  text-align: center;
}

.nav-link:hover {
  color: white;
  background-color: #1abc9c;
}

.nav-link.active {
  color: white;
  background-color: #1abc9c;
}

.nav-button {
  background: none;
  border: 0;
  width: 100%;
}

.nav-button:focus-visible {
  outline: 2px solid #1abc9c;
  outline-offset: 2px;
}

#navbar .nav-link.active,
#navbar .nav-link.active:hover,
#navbar .nav-link.active:focus {
  color: white;
}

.navbar-toggler {
  border: #1abc9c solid 2px;
  border-radius: 12px;
  padding: 0.35rem 0.55rem;
}

.navbar-toggler-icon {
  filter: saturate(0.9);
}

#logo {
  border-radius: 14px;
}

#current-page {
  color: #0f6553;
  letter-spacing: 0.02em;
}

@media (max-width: 991.98px) {
  .navbar {
    padding: 0.65rem 1rem;
  }

  .navbar-nav {
    margin-top: 0.75rem;
  }

  #navbar .nav-link {
    border-radius: 14px;
  }
}

@media (min-width: 992px) {
  #navbar .navbar-nav {
    gap: 0.35rem;
    justify-content: center;
  }

  #navbar .navbar-nav .nav-item {
    display: flex;
    justify-content: center;
  }

  #navbar .navbar-nav .nav-link {
    max-width: 11rem;
    width: 100%;
  }

  #navbar .navbar-nav .logout-item {
    justify-content: center;
  }
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: 100px;
  overflow-x: hidden;
}

main {
  flex: 1 0 auto;
}

.page-main {
  padding-top: 1.5rem;
  padding-bottom: 80px;
}

.splitter {
  background-color: #1abc9c;
  min-height: fit-content;
}

footer {
  background-color: #0f6553;
  min-height: fit-content;
  margin-top: auto;
}

footer .nav-link {
  color: white;
  background-color: #0f6553;
}

footer .nav-link:hover {
  color: #1abc9c;
  background-color: white;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 0.9rem;
}

.footer-button {
  align-items: center;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  justify-content: center;
  letter-spacing: 0.01em;
  padding: 0.32rem 0.8rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.footer-button:hover {
  background-color: #ffffff;
  border-color: #ffffff;
  color: #0f6553;
}

.footer-button:focus-visible {
  outline: 2px solid #1abc9c;
  outline-offset: 2px;
}

.footer-button--ghost {
  border-style: dashed;
}

.footer-form {
  margin: 0;
}

.text-teal {
  color: #1abc9c;
}

.bg-teal {
  background-color: #1abc9c;
}

.btn-teal {
  background-color: #1abc9c;
  color: white;
}

.dashboard-body {
  padding-top: 0;
  background: linear-gradient(135deg, #f6faf8 0%, #ffffff 55%, #f1fbf7 100%);
}

.dashboard-layout {
  display: flex;
  min-height: 100vh;
  align-items: flex-start;
}

.dashboard-sidebar {
  background-color: #0f6553;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  height: 100vh;
  overflow-y: auto;
  padding: 1.75rem 1.5rem;
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  flex-shrink: 0;
  z-index: 100;
}

.dashboard-brand {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: center;
  position: relative;
}

.dashboard-logo img {
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
}

.dashboard-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.dashboard-toggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  color: #ffffff;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 44px;
}

.dashboard-toggle:focus-visible {
  outline: 2px solid #1abc9c;
  outline-offset: 2px;
}

.dashboard-toggle-icon {
  background: linear-gradient(#ffffff, #ffffff);
  border-radius: 999px;
  box-shadow: 0 8px 0 0 #ffffff, 0 -8px 0 0 #ffffff;
  display: block;
  height: 2px;
  width: 18px;
}

.dashboard-nav {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.dashboard-collapse {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.dashboard-link {
  background-color: rgba(255, 255, 255, 0.08);
  border: 0;
  box-shadow: none;
  border-radius: 14px;
  color: #ffffff;
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  width: 100%;
}

.dashboard-link:focus-visible {
  box-shadow: none;
  outline: 2px solid #1abc9c;
  outline-offset: 2px;
}

.dashboard-link:hover {
  background-color: #1abc9c;
  color: #ffffff;
  transform: translateX(3px);
}

.dashboard-link.is-active {
  background-color: #1abc9c;
  color: #ffffff;
}

.dashboard-logout {
  margin: 0;
  padding: 0;
}

.dashboard-link--ghost {
  background-color: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 0.9rem;
  text-align: left;
  width: 100%;
}

.dashboard-collapse.collapse:not(.show) {
  display: none;
}

.dashboard-collapse.collapse.show {
  display: flex;
}

.table-card-wrapper {
  overflow-x: visible;
}

@media (max-width: 767.98px) {
  .table-card.table-striped {
    --bs-table-striped-bg: #ffffff;
    --bs-table-striped-color: inherit;
  }

  .table-card {
    border: 0;
  }

  .table-card.table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-accent-bg: transparent;
    background-color: transparent;
  }

  .table-card.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: transparent;
    background-color: #ffffff;
  }

  .table-card.table-striped > tbody > tr > * {
    --bs-table-accent-bg: transparent;
  }

  .table-card thead {
    display: none;
  }

  .table-card tbody,
  .table-card tr,
  .table-card td {
    display: block;
    width: 100%;
  }

  .table-card tr {
    background: #ffffff;
    border: 1px solid rgba(15, 101, 83, 0.15);
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 101, 83, 0.08);
    margin-bottom: 0.9rem;
    padding: 0.75rem 0.9rem;
  }

  .table-card td {
    align-items: center;
    border: 0;
    background-color: #ffffff;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.35rem 0;
    text-align: left;
  }

  .table-card.table-striped tbody tr td,
  .table-card.table-striped tbody tr th {
    background-color: #ffffff !important;
  }

  .table-card td::before {
    color: #0f6553;
    content: attr(data-label);
    font-weight: 600;
    text-transform: none;
  }

  .table-card td.text-end {
    justify-content: flex-start;
  }

  .table-card td.text-end::before {
    margin-right: 0.5rem;
  }
}

.dashboard-main {
  flex: 1;
  min-width: 0;
  margin-left: 240px;
  padding: 1.5rem 2.75rem 3rem;
}

@media (max-width: 991.98px) {
  .dashboard-layout {
    flex-direction: column;
  }

  .dashboard-sidebar {
    position: relative;
    height: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.6rem;
    min-height: auto;
    padding: 1.25rem 1.1rem;
    width: 100%;
  }

  .dashboard-brand {
    display: grid;
    flex: 0 0 auto;
    align-items: center;
    grid-template-columns: auto 1fr auto;
    text-align: left;
  }

  .dashboard-toggle {
    margin-left: auto;
  }

  .dashboard-title {
    font-size: 1.35rem;
    text-align: center;
  }

  .dashboard-collapse {
    flex: 0 0 auto;
    width: 100%;
  }

  .dashboard-nav {
    flex: none;
  }


  .dashboard-main {
    margin-left: 0;
    padding: 1rem 1.1rem 2.5rem;
  }
}

.btn-teal:hover {
  background-color: #149178;
  color: white;
}

.btn-teal:active {
  background-color: #21e8c0;
  color: white;
}

.btn-white {
  background-color: white;
  color: #1abc9c;
}

.btn-white:hover {
  background-color: rgb(245, 245, 245);
  color: #1abc9c;
}

.border-teal {
  border-color: #1abc9c;
}

label:has(+ :required)::after {
  content: " *";
  color: red;
}

.icon-x::before {
  content: "\00D7";
  color: red;
  font-size: 2rem;
  font-weight: bold;
}

.icon-check::before {
  content: "\2713";
  color: rgb(0,200,0);
  font-size: 2rem;
  font-weight: bold;
}

.table thead .sort-link {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 0.35rem;
  font-weight: 600;
  cursor: pointer;
}

.table thead .sort-link .sort-indicator {
  display: inline-flex;
  justify-content: center;
  min-width: 1.1rem;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
}

.table thead .sort-link.sort-active {
  color: #1abc9c;
  font-weight: 700;
  border-bottom: 2px solid #1abc9c;
  padding-bottom: 0.1rem;
}

.table thead .sort-link.sort-active .sort-indicator {
  opacity: 1;
}

.table thead .sort-link.sort-inactive:hover {
  color: #0f6553;
}
