/* Identitas visual aplikasi: hijau dan putih. Ganti warna cukup di :root. */
:root {
  --brand: #15803d;
  --brand-dark: #166534;
  --brand-soft: #e8f5ec;
  --brand-focus: #86c99c;
  --brand-line: #c6e6d0;
  --brand-rgb: 21, 128, 61;
}

a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
.text-primary { color: var(--brand) !important; }
.bg-primary, .btn-primary, .badge-primary, .progress-bar,
.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.btn-primary, .btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle,
.badge-primary {
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus,
.btn-primary:not(:disabled):not(.disabled):active,
.show > .btn-primary.dropdown-toggle {
  background-color: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
}
.btn-outline-primary { color: var(--brand) !important; border-color: var(--brand) !important; }
.btn-outline-primary:hover, .btn-outline-primary:focus,
.btn-outline-primary:not(:disabled):not(.disabled):active {
  color: #fff !important;
  background-color: var(--brand) !important;
  border-color: var(--brand) !important;
}
.border-left-primary { border-left-color: var(--brand) !important; }
.form-control:focus, .custom-select:focus,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--brand-focus) !important;
  box-shadow: 0 0 0 .2rem rgba(var(--brand-rgb), .18) !important;
}
.page-item.active .page-link { background-color: var(--brand) !important; border-color: var(--brand) !important; }
.page-link { color: var(--brand); }
.card-header { border-bottom-color: var(--brand-line); }
.topbar { border-bottom: 3px solid var(--brand); }
.scroll-to-top { background: rgba(22, 101, 52, .75) !important; }
.bg-gradient-primary { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%) !important; }

/* Area berlatar hijau harus selalu memakai teks dan ikon terang. */
.sidebar-dark .sidebar-brand,
.sidebar-dark .sidebar-brand:hover {
  color: #fff !important;
}
.sidebar-dark .sidebar-heading {
  color: rgba(255, 255, 255, .72) !important;
}
.sidebar-dark .nav-item .nav-link {
  color: rgba(255, 255, 255, .82) !important;
}
.sidebar-dark .nav-item .nav-link i {
  color: rgba(255, 255, 255, .58) !important;
}
.sidebar-dark .nav-item .nav-link:hover,
.sidebar-dark .nav-item .nav-link:focus,
.sidebar-dark .nav-item.active .nav-link,
.sidebar-dark .nav-item .nav-link:hover i,
.sidebar-dark .nav-item .nav-link:focus i,
.sidebar-dark .nav-item.active .nav-link i {
  color: #fff !important;
}
.sidebar-dark .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, .16);
}

/* Teks semua tombol berwarna tetap kontras dengan latarnya. */
a.btn-primary, a.btn-success, a.btn-info,
a.btn-danger, a.btn-secondary, a.btn-dark {
  color: #fff !important;
}
a.btn-warning, a.btn-light { color: #3a3b45 !important; }
