/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 64px;
  margin-top: 12px;
}

.app-brand-logo.demo img {
  width: 42px;
  height: 42px;
}

#layout-menu > div.app-brand.demo {
  padding-left: 1.3rem;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
/*  text-transform: lowercase;*/
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.rtl-only {
  display: none !important;
  text-align: left !important;
  direction: ltr !important;
}

[dir='rtl'] .rtl-only {
  display: block !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}


/*
 * Green theme overrides merged from theme-green.css
 * Keep this section after the original demo.css rules.
 * This file should be loaded after core.css and theme-default.css.
 */

/*
 * theme-green.css
 * Quick override theme for SNEAT Bootstrap HTML Pro.
 * Load this file AFTER core.css and theme-default.css.
 *
 * Palette inspired by the uploaded green palm/oil-palm illustration:
 *   primary        #4f8f2f
 *   primary-hover  #3f7326
 *   primary-active #365f21
 *   primary-soft   #e6f4dc
 *   primary-subtle #d8ecc7
 *   accent         #f7b731
 */

:root,
[data-bs-theme="light"] {
  /* Brand */
  --bs-primary: #4f8f2f;
  --bs-primary-rgb: 79, 143, 47;
  --bs-primary-text-emphasis: #203913;
  --bs-primary-bg-subtle: #d8ecc7;
  --bs-primary-border-subtle: #b7d99e;

  /* Links */
  --bs-link-color: #4f8f2f;
  --bs-link-color-rgb: 79, 143, 47;
  --bs-link-hover-color: #3f7326;
  --bs-link-hover-color-rgb: 63, 115, 38;

  /* Optional warmer page feel */
  --bs-body-bg: #f7faf4;
  --bs-body-bg-rgb: 247, 250, 244;
  --bs-heading-color: #3f5f35;
  --bs-emphasis-color: #314b2a;
  --bs-emphasis-color-rgb: 49, 75, 42;
  --bs-border-color: #dce7d4;

  /* Focus ring */
  --bs-focus-ring-color: rgba(79, 143, 47, 0.35);

  /* Forms */
  --bs-form-valid-color: #4f8f2f;
  --bs-form-valid-border-color: #4f8f2f;
}

/* --------------------------------------------------------------------------
   Text, links, backgrounds
   -------------------------------------------------------------------------- */

.text-primary {
  color: #4f8f2f !important;
}

.text-body[href]:hover,
a:hover {
  color: #3f7326;
}

.bg-primary {
  background-color: #4f8f2f !important;
}

a.bg-primary:hover,
a.bg-primary:focus {
  background-color: #3f7326 !important;
}

.border-primary {
  border-color: #4f8f2f !important;
}

.bg-label-primary {
  background-color: #e6f4dc !important;
  color: #4f8f2f !important;
}

.border-label-primary {
  border: 3px solid #b7d99e !important;
}

.border-light-primary {
  border: 3px solid rgba(79, 143, 47, 0.08) !important;
}

.bg-label-hover-primary {
  background-color: #e6f4dc !important;
  color: #4f8f2f !important;
}

.bg-label-hover-primary:hover {
  background-color: #4f8f2f !important;
  color: #fff !important;
}

.bg-gradient-primary {
  background-image: linear-gradient(45deg, #4f8f2f, #9ccf75) !important;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn-primary {
  color: #fff;
  background-color: #4f8f2f;
  border-color: #4f8f2f;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(79, 143, 47, 0.4);
}

.btn-primary:hover {
  color: #fff !important;
  background-color: #3f7326 !important;
  border-color: #3f7326 !important;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(79, 143, 47, 0.4) !important;
}

.btn-check:focus + .btn-primary,
.btn-primary:focus,
.btn-primary.focus {
  color: #fff;
  background-color: #3f7326;
  border-color: #3f7326;
  box-shadow: none;
}

.btn-check:checked + .btn-primary,
.btn-check:active + .btn-primary,
.btn-primary:active,
.btn-primary.active,
.btn-primary.show.dropdown-toggle,
.show > .btn-primary.dropdown-toggle {
  color: #fff !important;
  background-color: #365f21 !important;
  border-color: #365f21 !important;
}

.btn-primary.disabled,
.btn-primary:disabled {
  color: #fff !important;
  background-color: #4f8f2f !important;
  border-color: #4f8f2f !important;
  box-shadow: none !important;
}

.btn-label-primary {
  color: #4f8f2f;
  border-color: transparent;
  background: #e6f4dc;
}

.btn-label-primary:hover,
.btn-label-primary:focus,
.btn-label-primary.focus {
  color: #fff !important;
  background: #3f7326 !important;
  border-color: transparent !important;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(79, 143, 47, 0.4) !important;
}

.btn-label-primary:active,
.btn-label-primary.active,
.btn-label-primary.show.dropdown-toggle,
.show > .btn-label-primary.dropdown-toggle {
  color: #fff !important;
  background-color: #365f21 !important;
  border-color: transparent !important;
}

.btn-label-primary.disabled,
.btn-label-primary:disabled {
  color: #4f8f2f !important;
  background-color: #e6f4dc !important;
  border-color: transparent !important;
}

.btn-outline-primary {
  color: #4f8f2f;
  border-color: #4f8f2f;
  background: transparent;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff !important;
  background-color: #3f7326 !important;
  border-color: #3f7326 !important;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(79, 143, 47, 0.4) !important;
}

.btn-check:checked + .btn-outline-primary,
.btn-check:active + .btn-outline-primary,
.btn-outline-primary:active,
.btn-outline-primary.active,
.btn-outline-primary.dropdown-toggle.show {
  color: #fff !important;
  background-color: #365f21 !important;
  border-color: #365f21 !important;
}

.btn-outline-primary.disabled,
.btn-outline-primary:disabled {
  color: #4f8f2f !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.btn-outline-primary .badge {
  background: #4f8f2f;
  border-color: #4f8f2f;
  color: #fff;
}

.btn-outline-primary:hover .badge,
.btn-outline-primary:focus:hover .badge,
.btn-outline-primary:active .badge,
.btn-outline-primary.active .badge,
.show > .btn-outline-primary.dropdown-toggle .badge {
  background: #fff;
  border-color: #fff;
  color: #4f8f2f;
}

/* --------------------------------------------------------------------------
   Navigation, menu, dropdowns
   -------------------------------------------------------------------------- */

.nav .nav-link:hover,
.nav .nav-link:focus {
  color: #3f7326;
}

.nav-pills .nav-link.active,
.nav-pills .nav-link.active:hover,
.nav-pills .nav-link.active:focus {
  background-color: #4f8f2f;
  color: #fff;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(79, 143, 47, 0.4);
}

.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus {
  color: #4f8f2f;
}

.dropdown-item:not(.disabled).active,
.dropdown-item:not(.disabled):active,
.dropdown-menu > li:not(.disabled) > a:not(.dropdown-item):active,
.dropdown-menu > li.active:not(.disabled) > a:not(.dropdown-item) {
  background-color: rgba(79, 143, 47, 0.08);
  color: #4f8f2f !important;
}

.dt-button-collection .dropdown-item:not(.disabled):active {
  background-color: rgba(79, 143, 47, 0.08);
}

.bg-menu-theme .menu-inner .menu-sub > .menu-item.active .menu-icon {
  color: #4f8f2f;
}

.bg-menu-theme .menu-inner > .menu-item.active > .menu-link {
  color: #4f8f2f;
  background-color: rgba(79, 143, 47, 0.16) !important;
}

.bg-menu-theme .menu-inner > .menu-item.active:before {
  background: #4f8f2f;
}

.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle):before {
  background-color: #4f8f2f !important;
  border: 3px solid #e6f4dc !important;
}

.app-brand .layout-menu-toggle {
  background-color: #4f8f2f;
}

.menu.bg-primary .menu-item.active > .menu-link:not(.menu-toggle),
.menu.bg-primary.menu-horizontal .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle) {
  background-color: #3f7326 !important;
}

/* --------------------------------------------------------------------------
   Pagination, progress, list groups, tables
   -------------------------------------------------------------------------- */

.page-item.active .page-link,
.page-item.active .page-link:hover,
.page-item.active .page-link:focus,
.pagination li.active > a:not(.page-link),
.pagination li.active > a:not(.page-link):hover,
.pagination li.active > a:not(.page-link):focus {
  border-color: #4f8f2f;
  background-color: #4f8f2f;
  color: #fff;
  box-shadow: 0 0.125rem 0.25rem rgba(79, 143, 47, 0.4);
}

.progress-bar {
  background-color: #4f8f2f;
  color: #fff;
  box-shadow: 0 2px 4px 0 rgba(79, 143, 47, 0.4);
}

.list-group-item-primary {
  border-color: #4f8f2f;
  background-color: #d8ecc7;
  color: #4f8f2f !important;
}

a.list-group-item-primary:hover,
a.list-group-item-primary:focus,
button.list-group-item-primary:hover,
button.list-group-item-primary:focus {
  border-color: #4f8f2f;
  background-color: #cfe6ba;
  color: #4f8f2f;
}

a.list-group-item-primary.active,
button.list-group-item-primary.active,
.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
  border-color: #4f8f2f !important;
  background-color: #4f8f2f !important;
  color: #fff !important;
}

.list-group.list-group-timeline .list-group-timeline-primary:before {
  border-color: #4f8f2f;
  background-color: #4f8f2f;
}

.table-primary {
  --bs-table-bg: #d8ecc7;
  --bs-table-striped-bg: #d2e5c2;
  --bs-table-striped-color: #314b2a;
  --bs-table-active-bg: #c8deb6;
  --bs-table-active-color: #314b2a;
  --bs-table-hover-bg: #cfe6ba;
  --bs-table-hover-color: #314b2a;
  color: #314b2a;
  border-color: #c8deb6;
}

/* --------------------------------------------------------------------------
   Alerts, badges, toasts
   -------------------------------------------------------------------------- */

.alert-primary {
  background-color: #e6f4dc;
  border-color: #cfe6ba;
  color: #4f8f2f;
}

.alert-primary .alert-link,
.alert-primary hr {
  color: #4f8f2f;
}

.alert-primary hr {
  background-color: #4f8f2f !important;
}

.badge.bg-primary,
.badge.bg-label-primary {
  background-color: #e6f4dc !important;
  color: #4f8f2f !important;
}

.badge.bg-primary {
  background-color: #4f8f2f !important;
  color: #fff !important;
}

.dropdown-notifications-item:not(.mark-as-read) .dropdown-notifications-read span {
  background-color: #4f8f2f;
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.form-control:focus,
.form-select:focus {
  border-color: #4f8f2f;
  box-shadow: 0 0.125rem 0.25rem rgba(79, 143, 47, 0.16);
}

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

.form-check-input:focus {
  border-color: #4f8f2f;
  box-shadow: 0 0.125rem 0.25rem rgba(79, 143, 47, 0.16);
}

.input-group:focus-within .form-control,
.input-group:focus-within .input-group-text {
  border-color: #4f8f2f;
}

/* --------------------------------------------------------------------------
   Tooltips, popovers, onboarding/carousel
   -------------------------------------------------------------------------- */

.tooltip-primary .tooltip-inner,
.tooltip-primary > .tooltip .tooltip-inner,
.ngb-tooltip-primary + ngb-tooltip-window .tooltip-inner {
  background: #4f8f2f;
  color: #fff;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(79, 143, 47, 0.4);
}

.tooltip-primary.bs-tooltip-auto[data-popper-placement="top"] .tooltip-arrow::before,
.tooltip-primary > .tooltip.bs-tooltip-auto[data-popper-placement="top"] .tooltip-arrow::before,
.ngb-tooltip-primary + ngb-tooltip-window.bs-tooltip-auto[data-popper-placement="top"] .tooltip-arrow::before {
  border-top-color: #4f8f2f;
}

.tooltip-primary.bs-tooltip-auto[data-popper-placement="right"] .tooltip-arrow::before,
.tooltip-primary > .tooltip.bs-tooltip-auto[data-popper-placement="right"] .tooltip-arrow::before,
.ngb-tooltip-primary + ngb-tooltip-window.bs-tooltip-auto[data-popper-placement="right"] .tooltip-arrow::before {
  border-right-color: #4f8f2f;
}

.tooltip-primary.bs-tooltip-auto[data-popper-placement="bottom"] .tooltip-arrow::before,
.tooltip-primary > .tooltip.bs-tooltip-auto[data-popper-placement="bottom"] .tooltip-arrow::before,
.ngb-tooltip-primary + ngb-tooltip-window.bs-tooltip-auto[data-popper-placement="bottom"] .tooltip-arrow::before {
  border-bottom-color: #4f8f2f;
}

.tooltip-primary.bs-tooltip-auto[data-popper-placement="left"] .tooltip-arrow::before,
.tooltip-primary > .tooltip.bs-tooltip-auto[data-popper-placement="left"] .tooltip-arrow::before,
.ngb-tooltip-primary + ngb-tooltip-window.bs-tooltip-auto[data-popper-placement="left"] .tooltip-arrow::before {
  border-left-color: #4f8f2f;
}

.popover.popover-primary,
.popover .popover-primary > .popover,
.popover .ngb-popover-primary + ngb-popover-window {
  border-color: transparent;
  background: #4f8f2f;
  box-shadow: 0 0.125rem 0.25rem 0 rgba(79, 143, 47, 0.4);
}

.popover.popover-primary .popover-header,
.popover .popover-primary > .popover .popover-header,
.popover .ngb-popover-primary + ngb-popover-window .popover-header {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #fff;
}

.popover.popover-primary .popover-body,
.popover .popover-primary > .popover .popover-body,
.popover .ngb-popover-primary + ngb-popover-window .popover-body {
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.popover.popover-primary.bs-popover-auto[data-popper-placement="top"] > .popover-arrow::after,
.popover .popover-primary > .popover.bs-popover-auto[data-popper-placement="top"] > .popover-arrow::after,
.popover .ngb-popover-primary + ngb-popover-window.bs-popover-auto[data-popper-placement="top"] > .popover-arrow::after {
  border-top-color: #4f8f2f !important;
}

.popover.popover-primary.bs-popover-auto[data-popper-placement="right"] > .popover-arrow::after,
.popover .popover-primary > .popover.bs-popover-auto[data-popper-placement="right"] > .popover-arrow::after,
.popover .ngb-popover-primary + ngb-popover-window.bs-popover-auto[data-popper-placement="right"] > .popover-arrow::after {
  border-right-color: #4f8f2f !important;
}

.popover.popover-primary.bs-popover-auto[data-popper-placement="bottom"] > .popover-arrow::after,
.popover .popover-primary > .popover.bs-popover-auto[data-popper-placement="bottom"] > .popover-arrow::after,
.popover .ngb-popover-primary + ngb-popover-window.bs-popover-auto[data-popper-placement="bottom"] > .popover-arrow::after {
  border-bottom-color: #4f8f2f !important;
}

.popover.popover-primary.bs-popover-auto[data-popper-placement="left"] > .popover-arrow::after,
.popover .popover-primary > .popover.bs-popover-auto[data-popper-placement="left"] > .popover-arrow::after,
.popover .ngb-popover-primary + ngb-popover-window.bs-popover-auto[data-popper-placement="left"] > .popover-arrow::after {
  border-left-color: #4f8f2f !important;
}

.modal-onboarding .carousel-indicators [data-bs-target],
.carousel-indicators [data-bs-target].active {
  background-color: #4f8f2f;
}

.carousel-control-prev,
.carousel-control-next,
.carousel-control-prev:hover,
.carousel-control-prev:focus,
.carousel-control-next:hover,
.carousel-control-next:focus {
  color: #4f8f2f;
}

/* --------------------------------------------------------------------------
   Warm accent helpers, useful for palm-oil/orange highlights
   -------------------------------------------------------------------------- */

.text-accent,
.text-palm-accent {
  color: #f2991f !important;
}

.bg-accent,
.bg-palm-accent {
  background-color: #f7b731 !important;
  color: #2f3b1f !important;
}

.bg-label-accent,
.bg-label-palm-accent {
  background-color: #fff2cc !important;
  color: #f2991f !important;
}

.border-accent,
.border-palm-accent {
  border-color: #f7b731 !important;
}
