:root {
  --helios-forest: #174c38;
  --helios-green: #197249;
  --helios-green-hover: #135c3b;
  --helios-mint: #edf7f0;
  --helios-surface: #fff;
  --helios-canvas: #f5f8f5;
  --helios-line: #d6e4da;
  --helios-ink: #183529;
  --bs-primary: var(--helios-green);
  --bs-primary-rgb: 25, 114, 73;
  --bs-link-color: var(--helios-green);
  --bs-link-color-rgb: 25, 114, 73;
  --bs-link-hover-color: var(--helios-green-hover);
  --bs-link-hover-color-rgb: 19, 92, 59;
}

body:not(.auth-body) {
  background: var(--helios-canvas);
}

body .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--helios-green);
  --bs-btn-border-color: var(--helios-green);
  --bs-btn-hover-bg: var(--helios-green-hover);
  --bs-btn-hover-border-color: var(--helios-green-hover);
  --bs-btn-active-bg: var(--helios-green-hover);
  --bs-btn-active-border-color: var(--helios-green-hover);
  --bs-btn-disabled-bg: var(--helios-green);
  --bs-btn-disabled-border-color: var(--helios-green);
  background: var(--helios-green);
  border-color: var(--helios-green);
  box-shadow: none;
  color: #fff;
}

body .btn-primary:is(:hover, :active, :focus-visible) {
  background: var(--helios-green-hover);
  border-color: var(--helios-green-hover);
  color: #fff;
}

body .btn-outline-primary {
  --bs-btn-color: var(--helios-green);
  --bs-btn-border-color: var(--helios-green);
  --bs-btn-hover-bg: var(--helios-green);
  --bs-btn-hover-border-color: var(--helios-green);
  --bs-btn-active-bg: var(--helios-green-hover);
  --bs-btn-active-border-color: var(--helios-green-hover);
  --bs-btn-disabled-color: var(--helios-green);
  --bs-btn-disabled-border-color: var(--helios-green);
}

.saas-sidebar .btn-dark {
  background: var(--helios-forest);
}

.saas-sidebar .btn-dark:hover {
  background: var(--helios-green);
}

.form-check-input:checked {
  background-color: var(--helios-green);
  border-color: var(--helios-green);
}

.pagination {
  --bs-pagination-active-bg: var(--helios-green);
  --bs-pagination-active-border-color: var(--helios-green);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgb(25 114 73 / 18%);
}

.alert-primary, .alert-info {
  --bs-alert-color: var(--helios-forest);
  --bs-alert-bg: var(--helios-mint);
  --bs-alert-border-color: var(--helios-line);
  --bs-alert-link-color: var(--helios-green-hover);
}

.form-label, .form-check-label, .table th {
  font-weight: 500;
}

.select2-container--default :is(.select2-selection--single, .select2-selection--multiple) {
  background: var(--helios-surface);
  border: 1px solid var(--helios-line);
  border-radius: .625rem;
  color: var(--helios-ink);
  min-height: 2.625rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--helios-ink);
  line-height: 2.5rem;
  padding-inline: .75rem 2rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 2.5rem;
  right: .55rem;
}

.select2-container--default.select2-container--disabled .select2-selection {
  background: var(--helios-canvas);
}

.select2-container--default.select2-container--focus .select2-selection,
.select2-container--default .select2-selection:focus-visible {
  border-color: var(--helios-green);
  outline: 2px solid var(--helios-green);
  outline-offset: 2px;
}

.select2-container--default :is(.select2-dropdown, .select2-search--dropdown .select2-search__field) {
  border-color: var(--helios-line);
}

.select2-container--default .select2-results__option[aria-selected="true"],
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background: var(--helios-mint);
  color: var(--helios-forest);
  border-color: var(--helios-line);
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: var(--helios-green);
  color: #fff;
}

.select2-container--default .helios-branch-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .375rem;
  padding: .375rem .5rem;
}

.select2-container--default.select2-container--focus .helios-branch-selection {
  outline: none;
}

.helios-branch-selection .select2-selection__rendered {
  display: contents !important;
}

.select2-container--default .helios-branch-selection .select2-selection__choice {
  display: inline-flex;
  align-items: center;
  white-space: normal;
  margin: 0;
  padding: 0;
  border-radius: .5rem;
}

.select2-container--default .helios-branch-selection .select2-selection__choice__remove {
  position: static;
  align-self: stretch;
  width: 1.65rem;
  flex: 0 0 1.65rem;
  color: var(--helios-forest);
  font-size: 1rem;
}

.helios-branch-selection .select2-selection__choice__display {
  padding: .25rem .45rem;
  line-height: 1.3;
}

.helios-branch-selection .select2-search--inline {
  display: flex;
  flex: 1 1 10rem;
}

.helios-branch-selection .select2-search--inline .select2-search__field {
  width: 100% !important;
  height: 1.55rem;
  margin: 0;
  padding-inline: .25rem;
  color: var(--helios-ink);
  font: inherit;
  box-shadow: none !important;
  outline: none !important;
}

.select2-container--default .helios-branch-options .select2-results__options {
  padding: .25rem;
  max-height: 11rem;
}

.helios-branch-options .select2-results__option--selectable {
  display: flex;
  align-items: center;
  gap: .625rem;
  padding: .45rem .625rem;
  border-radius: .375rem;
}

.helios-branch-options .select2-results__option--selectable::before {
  content: "";
  display: grid;
  place-items: center;
  flex: 0 0 1.15rem;
  height: 1.15rem;
  border: 1px solid currentColor;
  border-radius: .25rem;
}

.helios-branch-options .select2-results__option--selected::before {
  content: "\2713";
  background: var(--helios-forest);
  color: #fff;
  line-height: 1;
}

.select2-container--default .helios-branch-options .select2-results__option--selected {
  background: var(--helios-mint);
  color: var(--helios-forest);
}

.select2-container--default .helios-branch-options .select2-results__option--highlighted {
  background: var(--helios-green);
  color: #fff;
}

.swal2-popup.helios-swal-dialog .swal2-confirm {
  background: var(--helios-green) !important;
  box-shadow: none !important;
}

.swal2-popup.helios-swal-dialog .swal2-confirm:hover {
  background: var(--helios-green-hover) !important;
}
