.sidebar {
  width: 250px;
  height: calc(100vh - 56px);
  position: fixed;
  z-index: 1000;
  transition: all 0.3s ease;
}
.ui-workarea {
  padding-top: 0.1px;
}

.list-group-item {
  border: none !important;
}

/* Mobile behavior - sidebar off by default */
@media (max-width: 991.98px) {
  .sidebar {
    left: 0 !important;
    z-index: 1051;
    transform: translateX(-310px);
  }

  .sidebar.active {
    transform: translateX(0); /* Show over content when active */
    /* box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3); */
  }

  .main-content {
    margin-left: 0 !important;
  }
}

.profile-dropdown {
  width: 300px;
  right: 3px !important;
  top: 5px !important;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.active-module {
  background-color: var(--bs-light);
}
/* 
.main-content {
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
}

.main-content * {
    max-width: 100%;
    overflow-wrap: break-word;
} */

.mobile-nav-tab:active,
.mobile-nav-tab:hover {
  /* background-color: rgba(102, 126, 234, 0.1); */
  border-radius: 12px;
}

.ui-wrapper {
  display: flex;
}

.ui-main {
  /* background-color: #fafbfe; */
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  transition: all 0.35s ease-in-out;
  width: 100%;
  margin-bottom: 70px;
}

.minibar {
  display: flex;
  transition: all 0.25s ease-in-out;
  z-index: 1001;
}

.minibar {
  flex-direction: row;

  height: 62px;
  max-height: 62px;
  min-height: 62px;

  width: 100vw;
  max-width: 100vw;
  min-width: 100vw;

  overflow: hidden;
  position: fixed;
  bottom: 0;
}

.minibar-nav {
  display: flex;
  justify-content: space-between;
  height: 100%;
  width: 100%;
}

.minibar-nav > div,
.minibar-nav > ul {
  align-items: center;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.minibar-header {
  display: none !important;
}

/* Mobile Styles */
.module-tab-mobile {
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
  justify-content: center;
  transition: all 0.2s;
  /* border-right: 1px solid #e6e3e3; */
}

.module-tab-mobile .module-tab-icon-wrapper {
  display: contents;
}

.module-tab-mobile .module-tab-icon {
  font-size: 1.25rem;
}

.module-tab-mobile .module-tab-label {
  font-size: 0.65rem;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* Mobile Featured Tab */
.module-tab-mobile.module-tab-featured {
  position: relative;
}

.module-tab-mobile .module-tab-icon-featured {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-top: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.module-tab-mobile .module-tab-icon-featured .module-tab-icon {
  color: white;
  font-size: 1.5rem;
}

.module-tab-mobile .module-tab-label-featured {
  font-weight: 600;
  color: #667eea;
}

/* Dropdown Button Styles */
.module-dropdown-btn-desktop,
.module-dropdown-btn-vertical,
.module-dropdown-btn-mobile {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.85rem 0.25rem;
}

.module-dropdown-btn-mobile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Custom Scrollbar Styling */
*::-webkit-scrollbar {
    height: 5px;
    width: 5px;
}

/* Track */
*::-webkit-scrollbar-track {
    background: rgba(var(--bs-light-rgb), 0.67);
}

/* Handle */
*::-webkit-scrollbar-thumb {
    background: rgba(var(--bs-dark-rgb), 0.67);
}

/* Handle on hover */
*::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--bs-secondary-rgb), 0.8);
}

.sidebar-toggle:not(.btn-light):hover {
    background-color: var(--bs-light);
}

.dropdown-menu {
  --bs-dropdown-link-hover-bg: var(--bs-secondary-bg-subtle) !important;
}

.global-search {
  background-color: rgba(var(--bs-body-bg-rgb), 0.82);
  border: 1px solid rgba(var(--bs-primary-rgb), 0.16);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(var(--bs-dark-rgb), 0.08);
  height: 44px;
  min-width: 280px;
  max-width: 720px;
  width: 100%;
  overflow: visible;
}

.global-search:focus-within {
  background-color: var(--bs-body-bg);
  border-color: rgba(var(--bs-primary-rgb), 0.35);
  box-shadow: 0 2px 6px rgba(var(--bs-dark-rgb), 0.14);
}

.global-search-icon,
.global-search-filter,
.global-search-action {
  align-items: center;
  border: 0;
  color: var(--bs-primary);
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  font-size: 1rem;
  gap: 0;
  justify-content: center;
  line-height: 1;
  text-decoration: none;
}

.global-search-icon,
.global-search-filter {
  border-radius: 6px;
  height: 40px;
  margin: 2px;
  padding: 0;
  width: 40px;
}

.global-search-icon:hover,
.global-search-filter:hover,
.global-search-action:hover {
  background-color: transparent;
  color: var(--bs-primary);
}

.global-search-icon:focus,
.global-search-icon:active,
.global-search-filter:focus,
.global-search-filter:active,
.global-search-action:focus,
.global-search-action:active {
  background-color: transparent;
  border-color: transparent;
  box-shadow: none;
  color: var(--bs-primary);
}

.global-search-input {
  background: transparent;
  border: 0;
  box-shadow: none !important;
  color: var(--bs-primary);
  flex: 1 1 auto;
  font-size: 1rem;
  height: 100%;
  min-width: 0;
  padding: 0 0.25rem;
}

.global-search-input::placeholder {
  color: var(--bs-primary);
  opacity: 0.75;
}

.global-search-input:focus {
  background: transparent;
  color: var(--bs-primary);
}

.global-search-input::-webkit-search-cancel-button {
  margin-right: 0.25rem;
}

.global-search-action {
  border-radius: 6px;
  height: 56px;
  padding: 0;
  width: 80px;
  transform: translateY(-1px);
}

.global-search-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.1;
  margin-top: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-module-tabs {
  flex: 0 1 auto;
  max-width: calc(100% - 176px);
  min-width: 0;
}

.global-search-module-tabs > [data-view-mode="desktop"] {
  flex: 0 0 auto;
}

.global-search-header-actions {
  flex: 0 0 auto;
  gap: 0;
  padding-inline: 0.25rem;
}

.global-search-header-shell {
  isolation: isolate;
}

.global-search-header-panel {
  align-items: center;
  background-color: var(--bs-primary-bg-subtle);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 0 0.75rem;
  position: absolute;
  z-index: 20;
}

.global-search-header-panel[hidden] {
  display: none !important;
}

.global-search-header {
  max-width: min(760px, 100%);
  width: 100%;
}

@media (max-width: 991.98px) {
  .header-left {
    flex: 0 1 auto;
    min-width: 0;
  }

  .header-right {
    flex: 0 0 auto;
  }

  .global-search-mobile-shell {
    isolation: isolate;
    min-width: 84px;
    padding-inline: 0.15rem;
  }

  .global-search-mobile-actions {
    flex: 0 0 auto;
  }

  .global-search-mobile-shell .global-search-action {
    height: 48px;
    width: 42px;
  }

  .global-search-mobile-shell .global-search-label {
    font-size: 0.62rem;
  }

  .global-search-mobile-panel {
    align-items: center;
    background-color: var(--bs-primary-bg-subtle);
    display: flex;
    inset: 0;
    justify-content: flex-end;
    padding-inline: 0.15rem;
    position: absolute;
    z-index: 20;
  }

  .global-search-mobile-panel[hidden] {
    display: none !important;
  }

  .global-search-mobile {
    height: 40px;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .global-search-mobile .global-search-icon,
  .global-search-mobile .global-search-filter {
    height: 36px;
    width: 34px;
  }

  .global-search-mobile .global-search-input {
    font-size: 0.875rem;
    padding-inline: 0.1rem;
  }
}

code {
  overflow-wrap: anywhere;
}

.breadcrumbs {
    /* top: 56px; */
    z-index: 10;
    margin-left: -11px;
    margin-right: -11px;
}

ol.breadcrumb {
    margin-bottom: 0;
}

.copy-icon {
    cursor: pointer;
    transition: color 0.2s ease;
}

.inbox-left-panel .dataTable {
    table-layout: fixed !important;
    width: 100% !important;
}

.inbox-left-panel .dataTable col {
    width: auto !important;
}

.inbox-left-panel .dataTable td {
    max-width: 0;
    overflow: hidden;
}

/* Checkbox column styling */
/* Hide sorting icons on checkbox column */
.checkbox-column .dt-column-order {
    display: none !important;
}

.checkbox-column {
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    text-align: center !important;
    vertical-align: middle !important;
    cursor: default !important;
}

.inbox-list-table .checkbox-column {
    padding: 8px !important;
}

/* Prevent checkbox column from being too wide */
.dataTable thead .checkbox-column,
.dataTable tbody .checkbox-column {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
}
