:root {
  --bs-body-bg: #f7f2ea;
  --bs-body-color: #2d2a26;
  --bs-border-color: #d8cfc2;
  --bs-primary: #1f7a5a;
  --bs-secondary: #5d625f;
  --bs-info: #0a6aa1;
  --bs-success: #2c9b6f;
  --bs-warning: #b1760f;
  --bs-danger: #af3f3f;
  --bs-radius: 12px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  line-height: 1.4;
}

a {
  color: var(--bs-info);
  text-decoration: none;
}

a:hover,
a:focus {
  text-decoration: underline;
}

.container,
.container-fluid {
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -8px;
}

.row > * {
  padding: 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  background: #fff;
  color: #222;
}

.btn:hover,
.btn:focus {
  text-decoration: none;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.3rem 0.6rem;
}

.btn-outline-secondary {
  color: var(--bs-secondary);
  border-color: #9ea39f;
  background: #fdfcf9;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  background: #eaefe9;
}

.btn-primary {
  background: var(--bs-primary);
  border-color: var(--bs-primary);
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  filter: brightness(0.95);
}

.btn-close {
  border: 0;
  background: transparent;
  padding: 0.1rem 0.4rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: #dbe9e2;
  color: #183d31;
}

.alert {
  position: relative;
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  margin: 0 0 0.75rem;
  border: 1px solid transparent;
}

.alert-info {
  background: #e9f3fa;
  border-color: #cde4f3;
  color: #20485f;
}

.alert-success {
  background: #e7f5ed;
  border-color: #cae9d9;
  color: #23553f;
}

.progress {
  position: relative;
  width: 100%;
  height: 12px;
  background: #e9e1d7;
  border-radius: 999px;
  overflow: hidden;
}

.progress .bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #4d956f, #2c9b6f);
}

.progress-danger .bar {
  background: linear-gradient(90deg, #ca5858, #a82f2f);
}

.progress-warning .bar {
  background: linear-gradient(90deg, #e2b04e, #c58f2f);
}

.progress-info .bar {
  background: linear-gradient(90deg, #4ea6d6, #2e84b2);
}

.progress-success .bar {
  background: linear-gradient(90deg, #43a36f, #2b8356);
}

.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  margin: 0;
  padding: 0.4rem 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--bs-border-color);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
  z-index: 1050;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: block;
  padding: 0.35rem 0.75rem;
  color: #2c2f2b;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus {
  background: #eef5ef;
}

.dropdown-menu.show {
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 0.25rem;
}

.nav-tabs {
  border-bottom: 1px solid var(--bs-border-color);
  margin-bottom: 0.65rem;
}

.nav-tabs > li,
.nav-tabs > .nav-item {
  margin-bottom: -1px;
}

.nav-tabs a,
.nav-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.5rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 10px 10px 0 0;
  color: #4c4f4b;
  text-decoration: none;
}

.nav-tabs a.active,
.nav-tabs .nav-link.active {
  color: #1e3f32;
  background: #fff;
  border-color: var(--bs-border-color);
  border-bottom-color: #fff;
}

.tab-content > .tab-pane {
  display: none;
}

.tab-content > .tab-pane.active,
.tab-content > .tab-pane.show {
  display: block;
}

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

.table th,
.table td {
  padding: 0.35rem 0.45rem;
  border-top: 1px solid #ebe5dd;
  vertical-align: top;
}

.table-condensed th,
.table-condensed td {
  padding: 0.25rem 0.35rem;
}

.offcanvas {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(300px, 88vw);
  background: #fff;
  box-shadow: -16px 0 36px rgba(0, 0, 0, 0.25);
  transform: translateX(100%);
  transition: transform 0.2s ease-out;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.offcanvas.offcanvas-end {
  right: 0;
}

.offcanvas.show {
  transform: translateX(0);
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid #e8dfd2;
  padding: 0.75rem 0.9rem;
}

.offcanvas-title {
  margin: 0;
  font-size: 1rem;
}

.offcanvas-body {
  padding: 0.75rem 0.9rem 1rem;
  overflow: auto;
}

.pgf-bs5-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1090;
}

.d-none {
  display: none !important;
}

.d-block {
  display: block !important;
}

@media (min-width: 768px) {
  .container,
  .container-fluid {
    padding: 0 16px;
  }
}
