.fi-sidebar-nav-groups {
  row-gap: 0 !important;
}

.custom-icon:hover {
  color: white !important;
}



.fi-topbar-company-name {
  margin-right: 1rem;
}

.fi-topbar-company-name span {
  display: block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  font-weight: 700;
  color: rgb(22, 163, 74);
}

.fi-topbar nav {
  padding-right: 1rem !important;
}

@media screen and (min-width: 1140px) {
  .fi-topbar nav {
    padding-right: 1rem !important;
  }

  .fi-global-search .fi-input-wrp {
    min-width: 220px;
  }
}

.fi-sidebar-nav {
  background-color: rgb(34, 197, 94) !important;
  border-top-right-radius: 70px !important;
  direction: rtl !important;
}

.fi-sidebar-nav-groups {
  direction: ltr !important;
}

.fi-sidebar-nav::-webkit-scrollbar-track {
  background-color: rgb(34, 197, 94) !important;
}

.fi-sidebar-nav::-webkit-scrollbar {
  width: 8px;
}

.fi-sidebar-nav::-webkit-scrollbar-thumb {
  background-color: #caf3c5;
  border-radius: 4px;
}

.fi-sidebar-nav .fi-sidebar-item-label {
  color: white !important;
}

.fi-sidebar-nav .fi-sidebar-item-active > a.fi-sidebar-item-button,
.fi-sidebar-nav .fi-sidebar-item-active > a.fi-sidebar-item-button:hover {
  background-color: #046735 !important;
}

.fi-sidebar-nav .fi-sidebar-item-icon {
  color: white !important;
}

.fi-sidebar-nav .fi-sidebar-group-label {
  color: white !important;
}

.fi-sidebar-nav .fi-sidebar-group-icon {
  color: white !important;
}

.fi-sidebar-nav a.fi-sidebar-item-button:hover {
  background-color: #046735 !important;
}

.fi-sidebar-nav .fi-sidebar-group-collapse-button {
  color: white !important;
}

.fi-sidebar-nav .fi-dropdown .fi-dropdown-trigger svg {
  color: white !important;
}

.fi-sidebar-nav .fi-dropdown .fi-dropdown-trigger button:hover {
  background-color: #046735 !important;
}

/*.fi-dropdown.fi-user-menu button:hover {
  background-color: white !important;
}*/

/* Import font */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap');

/* Base card styles */
.custom-stat-card {
  font-family: 'Instrument Sans', sans-serif;
  height: 150px;
}

/* Header section */
.stat-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  /*padding: 16px 12px 0;*/
  gap: 8px;
  width: 100%;
  /*height: 38px;*/
}

.stat-icon {
  width: 20px;
  height: 20px;
  color: #737373;
}

.stat-icon svg {
  width: 100%;
  height: 100;
}

/* Value section */
.stat-value {
  padding: 0 16px;
  width: 100%;
  font-style: normal;
  font-weight: 700;
  font-size: 52px;
  line-height: 64px;
  color: #262626;
}

/* Description section */
.stat-description {
  position: absolute;
  left: -8px;
  bottom: 16px;
  width: fit-content;
  height: 34px;
  display: flex;
  justify-content: start;
  align-items: center;
  padding: 8px;
  gap: 4px;
  background: var(--trend-bg);
  border: 0.5px solid var(--trend-border);
  border-radius: 6px 6px 6px 0px;
}

.description-text {
  font-style: normal;
  font-weight: 500;
  color: var(--trend-color);
}

.description-icon {
  width: 16px;
  height: 16px;
  color: var(--trend-color);
}

.description-icon svg {
  width: 100%;
  height: 100%;
}

/* Trend indicator triangle */
.trend-indicator {
  position: absolute;
  left: -1px;
  bottom: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-top: 8px solid var(--trend-border);
}

@media (max-width: 640px) {
  .fi-header {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
  }
  .fi-header-actions {
    align-self: center !important;
    margin-top: 0 !important;
  }
}

/* Custom styling for sub-navigation items inside green sidebar */
.fi-sidebar-nav .fi-sidebar-sub-group-items {
  padding-left: 0.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex !important;
  flex-direction: column;
}

.fi-sidebar-nav .fi-sidebar-sub-group-items.expanded {
  max-height: 350px;
}

.fi-sidebar-nav .fi-sidebar-sub-group-items .fi-sidebar-item-grouped-border div {
  background-color: rgba(255, 255, 255, 0.3) !important;
}

.fi-sidebar-nav .fi-sidebar-sub-group-items .fi-sidebar-item-grouped-border .rounded-full {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.fi-sidebar-nav .fi-sidebar-sub-group-items .fi-active .fi-sidebar-item-grouped-border .rounded-full,
.fi-sidebar-nav .fi-sidebar-sub-group-items .fi-sidebar-item-active .fi-sidebar-item-grouped-border .rounded-full {
  background-color: white !important;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
}

/* Chevron icon for collapsible parent items in sidebar */
.fi-sidebar-item:has(.fi-sidebar-sub-group-items) > a::after {
  content: '';
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='2' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

/* Rotate the chevron when the submenu is active/expanded */
.fi-sidebar-item:has(.fi-sidebar-sub-group-items) > a[aria-expanded="true"]::after,
.fi-sidebar-item-active:has(.fi-sidebar-sub-group-items) > a::after {
  transform: rotate(180deg);
}

/* Prevent dark green background on parent collapsible items when selected/active */
.fi-sidebar-nav .fi-sidebar-item-active:has(.fi-sidebar-sub-group-items) > a.fi-sidebar-item-button {
  background-color: transparent !important;
}

