/* ======================
   GLOBAL HEADER BASE STYLES
   ====================== */

.page-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-header .section-header-texts {
  display: flex;
  flex-direction: column;
}

.section-header .section-header-texts .section-title,
.section-title {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 150%;
  color: #121212;
  margin: 0;
}

.section-header .section-header-texts .section-description {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 150%;
  color: #7d8398;
  margin-bottom: 0;
}

.view-all-btn {
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 150%;
  color: var(--sg-color-success-500);
  text-decoration: none;
}

.view-all-btn:hover {
  text-decoration: none;
}

.fund-card {
  display: flex;
  gap: 16px;
}

.fund-card-center {
  align-items: center;
}

.fund-card-start {
  align-items: flex-start;
}

.fund-card .fund-logo {
  border-radius: 50%;
  object-fit: cover;
}

.fund-card .fund-logo.fund-logo-24px {
  width: 24px;
  height: 24px;
}

.fund-card .fund-logo.fund-logo-36px {
  width: 36px;
  height: 36px;
}

.fund-card .fund-details {
  display: flex;
  flex-direction: column;
}

.fund-card .fund-details .fund-code {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 21px;
  color: #000000;
}

.fund-card .fund-details .fund-name {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 21px;
  color: #7d8398;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scrollable-cards {
  display: flex;
  overflow-x: auto;
  width: 100%;
  box-sizing: border-box;
  gap: 32px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.hover-with-opacity:hover {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
}

/* ======================
   MODAL BASE STYLES
   ====================== */
.common-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.common-modal.show {
  opacity: 1;
  visibility: visible;
}

.common-modal__dialog {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  max-width: 90vw;
  max-height: 90vh;
  width: 100%;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.common-modal.show .common-modal__dialog {
  transform: scale(1);
}

.common-modal__content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.common-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
  border-bottom: none;
}

.common-modal__title {
  font-size: 20px;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
  line-height: 1.4;
}

.common-modal__subtitle {
  font-size: 14px;
  color: #6b7280;
  margin: 4px 0 0 0;
  line-height: 1.4;
}

.common-modal__close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  margin-left: 16px;
  flex-shrink: 0;
}

.common-modal__close:hover {
  background-color: #f3f4f6;
}

.common-modal__body {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ======================
   SEARCH INPUT STYLES
   ====================== */

.common-search-container {
  position: relative;
  padding: 16px 24px;
  border-bottom: 1px solid #e5e7eb;
}

.common-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.common-search-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  background-color: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.common-search-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.common-search-input::placeholder {
  color: #9ca3af;
}

.common-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 16px;
  pointer-events: none;
}

.common-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  color: #6b7280;
  transition: background-color 0.2s ease;
  display: none;
}

.common-search-clear:hover {
  background-color: #f3f4f6;
}

.common-search-clear.show {
  display: block;
}

/* ======================
   TABLE HEADER STYLES
   ====================== */

.common-table-header {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  background-color: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.common-table-header__label {
  flex: 1;
  font-weight: 600;
}

.common-table-header__sortable {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
  user-select: none;
}

.common-table-header__sortable:hover {
  background-color: #f3f4f6;
}

.common-table-header__sortable.active {
  background-color: #e5e7eb;
}

.common-table-header__sort-icon {
  display: flex;
  align-items: center;
  transition: transform 0.2s ease;
}

.common-table-header__sort-icon.active {
  transform: rotate(180deg);
}

/* ======================
   TABLE CONTENT STYLES
   ====================== */

.common-table-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.common-table-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.common-table-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.common-table-item:hover {
  background-color: #f9fafb;
}

.common-table-item:last-child {
  border-bottom: none;
}

.common-table-item__info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.common-table-item__logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.common-table-item__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.common-table-item__logo-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.common-table-item__details {
  flex: 1;
  min-width: 0;
}

.common-table-item__code {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
  line-height: 1.4;
}

.common-table-item__name {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.common-table-item__metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}

.common-table-item__metric {
  text-align: right;
  min-width: 80px;
}

.common-table-item__metric-label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 2px;
  line-height: 1.4;
}

.common-table-item__metric-value {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.common-table-item__metric-value--positive {
  color: #059669;
}

.common-table-item__metric-value--negative {
  color: #dc2626;
}

.common-table-item__metric-value--neutral {
  color: #374151;
}

/* ======================
   LOADING STATES
   ====================== */

.common-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: #6b7280;
}

.common-loading__spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid #3b82f6;
  border-radius: 50%;
  animation: common-spin 1s linear infinite;
  margin-bottom: 16px;
}

@keyframes common-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.common-loading__text {
  font-size: 14px;
  color: #6b7280;
}

.common-loading-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  color: #6b7280;
}

.common-loading-more__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid #3b82f6;
  border-radius: 50%;
  animation: common-spin 1s linear infinite;
  margin-right: 8px;
}

.common-loading-more__text {
  font-size: 13px;
  color: #6b7280;
}

/* ======================
   ERROR STATES
   ====================== */

.common-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: #6b7280;
  text-align: center;
}

.common-error__icon {
  font-size: 24px;
  color: #dc2626;
  margin-bottom: 16px;
}

.common-error__text {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 8px;
}

.common-error__retry {
  font-size: 13px;
  color: #3b82f6;
  cursor: pointer;
  text-decoration: underline;
}

.common-error__retry:hover {
  color: #2563eb;
}

/* ======================
   EMPTY STATES
   ====================== */

.common-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: #6b7280;
  text-align: center;
}

.common-empty__icon {
  font-size: 24px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.common-empty__text {
  font-size: 14px;
  color: #6b7280;
}

/* ======================
   RESPONSIVE STYLES
   ====================== */

@media (max-width: 768px) {
  .common-modal__dialog {
    max-width: 95vw;
    max-height: 95vh;
    margin: 16px;
  }

  .common-modal__header {
    padding: 20px 20px 0;
  }

  .common-modal__title {
    font-size: 18px;
  }

  .common-search-container {
    padding: 12px 20px;
  }

  .common-table-header {
    padding: 12px 20px;
  }

  .common-table-item {
    padding: 12px 20px;
  }

  .common-table-item__metrics {
    gap: 16px;
  }

  .common-table-item__metric {
    min-width: 60px;
  }
}

@media (max-width: 480px) {
  .common-modal__dialog {
    margin: 8px;
  }

  .common-modal__header {
    padding: 16px 16px 0;
  }

  .common-search-container {
    padding: 8px 16px;
  }

  .common-table-header {
    padding: 8px 16px;
  }

  .common-table-item {
    padding: 8px 16px;
  }

  .common-table-item__logo {
    width: 32px;
    height: 32px;
  }

  .common-table-item__metrics {
    gap: 12px;
  }

  .common-table-item__metric {
    min-width: 50px;
  }
}

/* ======================
   GLOBAL SEARCH MODAL STYLES (FundComparison Search Modal)
   ====================== */

.global-search-input-container {
  position: relative;
  margin-bottom: 28px;
}

@media (min-width: 768px) {
  .global-search-input-container {
    margin-bottom: 40px;
  }
}

.global-search-input {
  border: 1px solid var(--sg-color-success-500);
  border-radius: 24px;
  padding: 12px 60px 12px 50px;
  background: #ffffff;
  transition: all 0.3s ease;
  width: 100%;
  outline: none;
  font-size: 16px;
  line-height: 24px;
}

@media (min-width: 768px) {
  .global-search-input {
    padding: 16px 60px 16px 48px;
  }
}

.global-search-input:focus {
  border-color: #16a34a;
  background: #ffffff;
}

.global-search-input-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7280;
  font-size: 18px;
}

.global-search-input-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--sg-color-success-500);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: all 0.1s ease;
}

.global-search-input-clear:hover {
  background: #16a34a;
}

.global-search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.global-search-results-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.global-search-results-return {
  font-weight: 500;
  font-size: 13px;
  line-height: 26px;
  font-weight: 500;
  color: var(--sg-color-success-500);
  padding: 0;
  white-space: nowrap;
  transition: all 0.2s;
}

.global-search-results-return.sortable {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.global-search-results-return.sortable:hover {
  opacity: 0.7;
}

.global-search-results-return.sortable #sortIcon {
  display: inline-block;
  transition: transform 0.2s ease;
  vertical-align: middle;
  margin-left: 3px;
}

.global-search-results-return.sortable:hover #sortIcon {
  color: var(--sg-color-success-500);
}

.global-search-results-return.sortable #sortIcon svg {
  width: 12px;
  height: 8px;
}

.global-search-section {
  margin-bottom: 24px;
}

.global-search-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.global-search-section-title {
  font-size: 14px;
  line-height: 26px;
  color: #000000;
}

.global-search-section-statistic {
  font-size: 14px;
  line-height: 26px;
  color: #000000;
}

.global-search-item {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: all 0.1s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.global-search-item:not(.global-search-item--selected):hover {
  background-color: #f8f9fa;
  margin: 0 -6px 2px;
  border-radius: 8px;
}

.global-search-item:not(.global-search-item--selected):last-child {
  border-bottom: none;
}

.global-search-item--selected {
  background-color: #f0fdf4;
  border: 1px solid var(--sg-color-success-500);
  border-radius: 8px;
  margin: 0 -6px 2px;
  position: relative;
}

.global-search-item--selected.global-search-item--negative {
  background-color: #fef2f2;
  border-color: #ef4444;
}

.global-search-item--selected.global-search-item--negative::after {
  background: #ef4444;
}

.global-search-item[data-section="search"].global-search-item--selected {
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Fon Görseli ve Fallback Icon Container */
.global-search-item-image-container {
  width: 36px;
  height: 36px;
  position: relative;
  flex-shrink: 0;
}

/* Fon Görseli */
.global-search-fund-image {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Fallback Icon */
.global-search-item-icon-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* Eski icon stilleri - artık kullanılmıyor ama silinmeyecek (fallback için) */
.global-search-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: white;
  flex-shrink: 0;
}

.global-search-item-content {
  flex: 1;
}

.global-search-item-title {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: -0.5px;
  color: #000000;
}

.global-search-item-subtitle {
  font-size: 13px;
  line-height: 19px;
  letter-spacing: -0.5px;
  color: #898989;
}

.global-search-item-return {
  font-weight: 600;
  font-size: 14px;
}

.global-search-item-return--positive {
  color: var(--sg-color-success-500);
}

.global-search-item-return--negative {
  color: #ef4444;
}

.global-search-no-results {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.global-search-no-results p {
  font-size: 14px;
  line-height: 19px;
  color: #6b7280;
}

.global-search-item-icon--recent {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.global-search-item-icon--popular {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.global-search-item-icon--search-result {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.global-search-loading-placeholder {
  padding: 20px;
  text-align: center;
  color: #6b7280;
}

.global-search-loading-placeholder .spinner-border {
  color: var(--sg-color-primary-500) !important;
}

.global-search-loading-placeholder .spinner-border-sm {
  color: var(--sg-color-primary-500) !important;
}

/* ======================
   GLOBAL LOADING STYLES
   ====================== */

.global-loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: #6b7280;
}

.global-loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e5e7eb;
  border-top: 3px solid var(--sg-color-primary-500);
  border-radius: 50%;
  animation: global-spin 1s linear infinite;
  margin-bottom: 16px;
}

.global-loading-text {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

.global-loading-more-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  color: #6b7280;
}

.global-loading-more-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e5e7eb;
  border-top: 2px solid var(--sg-color-primary-500);
  border-radius: 50%;
  animation: global-spin 1s linear infinite;
  margin-right: 8px;
}

.global-loading-more-text {
  font-size: 13px;
  color: #6b7280;
}

@keyframes global-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ======================
   GLOBAL MODAL HEIGHT & SCROLL STYLES
   ====================== */

.global-search-modal .modal-dialog {
  max-width: 680px;
  height: auto;
  max-height: 90vh;
}

.global-search-modal .modal-content {
  max-width: 680px;
  padding: 24px;
  border-radius: 12px;
  border: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  height: auto;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .global-search-modal .modal-content {
    padding: 24px;
  }
}

.global-search-modal .modal-body {
  padding: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.global-modal-table-container {
  max-height: 600px;
  overflow-y: auto;
}

.global-modal-table-container::-webkit-scrollbar {
  display: none;
}

.global-search-results {
  flex: 1;
  display: flex;
  flex-direction: column;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.global-search-results .global-search-results-list {
  list-style: none;
  margin: 0;
  padding: 0 8px;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.global-search-results .global-search-results-list::-webkit-scrollbar {
  display: none;
}

.global-search-results::-webkit-scrollbar {
  display: none;
}

/* Table responsive scrollbar gizleme */
.global-search-results .table-responsive {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.global-search-results .table-responsive::-webkit-scrollbar {
  display: none;
}

/* Tüm global search modal içindeki scrollable elementler için */
.global-search-modal .table-responsive {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.global-search-modal .table-responsive::-webkit-scrollbar {
  display: none;
}

.global-search-trigger {
  cursor: pointer;
  background-color: #ffffff;
  border: 1px solid rgba(14, 15, 12, 0.12);
  border-radius: 8px;
  padding: 10px 20px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  font-size: 13px;
  line-height: 150%;
}

.global-search-trigger:hover {
  border-color: #d1d5db;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.global-search-trigger:active {
  transform: translateY(0);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12);
}

.global-search-loading-state {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #6c757d;
  font-size: 14px;
}

.global-search-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #6c757d;
  font-size: 14px;
  border-top: 1px solid #f1f3f4;
}

.global-search-load-more .spinner-border-sm {
  margin-right: 8px;
}

/* ======================
   GLOBAL MODAL HEADER STYLES
   ====================== */

.global-search-modal .modal-header {
  border: none;
  padding: 0;
}

.global-search-modal .modal-header h5 {
  font-size: 18px;
  line-height: 26px;
}

.global-search-modal .modal-header small {
  font-size: 15px;
  line-height: 150%;
  color: var(--sg-color-secondary-400);
}

.global-search-modal .modal-header img[src*="modal-close-btn.svg"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.global-search-modal .modal-header img[src*="modal-close-btn.svg"]:hover {
  opacity: 0.7;
}

/* ======================
   GLOBAL FUND ROW STYLES
   ====================== */

.global-fund-image {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 16px;
}

.global-fund-code {
  font-weight: 500;
  font-size: 14px;
  line-height: 20.05px;
  color: var(--sg-color-neutral-1050);
}

.global-fund-name {
  font-size: 14px;
  line-height: 20.05px;
  color: var(--sg-color-secondary-400);
}

.global-return-text {
  font-weight: 400;
  font-size: 14px;
  line-height: 19px;
  color: var(--sg-color-neutral-1050);
}

.global-fund-divider {
  border-bottom: 1px solid rgba(85, 86, 90, 0.12);
}

/* ======================
   GLOBAL RETURN VALUE STYLES
   ====================== */

.monthly-return-title {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 150%;
  text-align: right;
}

.monthly-return-title.monthly-return-title-success {
  color: var(--sg-color-success-500);
}

.monthly-return-title.monthly-return-title-neutral {
  color: #7d8398;
}

.global-return {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 19px;
}

.global-return-positive {
  color: var(--sg-color-success-500);
  font-weight: 500;
}

.global-return-negative {
  color: var(--sg-color-danger-500);
  font-weight: 500;
}

.global-return-neutral {
  color: var(--sg-color-secondary-400);
  font-weight: 400;
}

/* ======================
   GLOBAL SEARCH ITEM METRIC VALUE STYLES
   ====================== */

.global-search-item-metric-value--positive {
  color: var(--sg-color-success-500);
  font-weight: 500;
}

.global-search-item-metric-value--negative {
  color: var(--sg-color-danger-500);
  font-weight: 500;
}

.global-search-item-metric-value--neutral {
  color: var(--sg-color-secondary-400);
  font-weight: 400;
}

/* ======================
   GLOBAL TABLE HEADER STYLES
   ====================== */

.global-fund-table thead {
  background: none;
  border: none;
}

.global-fund-table thead th {
  border: none;
  background: none;
  font-size: 13px;
  line-height: 26px;
  font-weight: 500;
  color: var(--sg-color-success-500);
  padding: 0;
  white-space: nowrap;
}

.global-fund-table.has-neutral-header thead th {
  color: #000000;
}

.global-fund-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

.global-fund-table thead th.sortable:hover {
  opacity: 0.7;
  background-color: transparent !important;
}

.global-fund-table thead th.sortable #fundsSortIcon,
.global-fund-table thead th.sortable #fundsReturnSortIcon,
.global-fund-table thead th.sortable #trendSortIcon {
  display: inline-block;
  transition: transform 0.2s ease;
  vertical-align: middle;
  margin-left: 3px;
  color: var(--sg-color-success-500);
}

.global-fund-table.has-neutral-header thead th.sortable #fundsSortIcon,
.global-fund-table.has-neutral-header thead th.sortable #fundsReturnSortIcon,
.global-fund-table.has-neutral-header thead th.sortable #trendSortIcon {
  color: #000000;
}

.global-fund-table tr:hover {
  background: transparent !important;
}

.global-fund-table tbody td {
  padding: 0;
  border-bottom: 1px solid rgba(85, 86, 90, 0.12);
}

.global-fund-table tbody tr:last-child td {
  border-bottom: none;
}

.global-fund-table tbody td:first-child {
  padding-left: 0;
}

.global-fund-table tbody td:last-child {
  padding-right: 0;
  vertical-align: middle;
}

.global-fund-table tbody td:last-child .global-return-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.global-fund-table tbody td:nth-child(2) {
  vertical-align: middle;
}

.global-fund-table tbody td:nth-child(2) .badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

/* ======================
   TABLE HEADER FIXED REMOVAL
   ====================== */

.global-fund-table thead {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

.global-fund-table thead th {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
}

/* ======================
   TABLE ROW HOVER EFFECT
   ====================== */

.global-fund-table tbody tr:hover {
  background-color: #f8f9fa !important;
  transition: background-color 0.2s ease;
}

.global-fund-table tbody tr:hover td {
  background-color: #f8f9fa !important;
}

/* Ensure hover works with table-responsive */
.table-responsive .global-fund-table tbody tr:hover {
  background-color: #f8f9fa !important;
}

.table-responsive .global-fund-table tbody tr:hover td {
  background-color: #f8f9fa !important;
}

/* ======================
   GLOBAL PRICE STYLES
   ====================== */

.global-price-text {
  font-size: 14px;
  line-height: 21px;
  color: black;
  border: none;
  background: none;
  font-weight: 400;
}

/* ======================
   BADGE PRICE STYLES
   ====================== */

.badge.bg-light.text-dark.border {
  font-size: 12px !important;
  line-height: 19px !important;
  color: black !important;
  border: none !important;
  background: none !important;
}

/* ======================
   FUND COMPARISON DATA TABLE STYLES
   ====================== */

.fund-comparison__data-table-container {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.fund-comparison__data-table-loading {
    text-align: center;
    padding: 40px 20px;
}

.fund-comparison__data-table-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--sg-color-success-500);
    border-radius: 50%;
    animation: fund-comparison-spinner-rotation 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes fund-comparison-spinner-rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.fund-comparison__data-table-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.fund-comparison__data-table-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.fund-comparison__data-table-empty p {
    font-size: 16px;
    margin: 0;
}

.fund-comparison__data-table-content {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 500px;
}

.fund-comparison__data-table-table {
    border: 1px solid rgba(85, 86, 90, 0.12);
    border-radius: 8px;
    border-collapse: collapse;
    overflow: hidden;
    width: 100% !important;
    table-layout: fixed;
    margin: 0;
    padding: 0;
}

.fund-comparison__data-table-table thead th {
    background-color: #f8f9fa !important;
    padding: 18px 24px !important;
    border-bottom: 1px solid rgba(85, 86, 90, 0.12) !important;
    text-align: left;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    font-size: 14px;
    line-height: 21px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.fund-comparison__data-table-table tbody td {
    padding: 18px 24px !important;
    vertical-align: middle;
    border-bottom: none;
    border-top: none;
    border-bottom: 1px solid rgba(85, 86, 90, 0.12) !important;
    font-size: 14px;
    line-height: 21px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.fund-comparison__data-table-item-name {
    width: 60%;
    min-width: 300px;
    max-width: 400px;
    font-weight: 500;
    color: #212529;
    text-align: left;
}

.fund-comparison__data-table-item-name .fund-comparison__data-table-item-name-holder .fund-comparison__data-table-item-image {
    display: flex;
    align-items: center;
    gap: 16px;
}

.fund-comparison__data-table-item-name .fund-comparison__data-table-item-name-holder .fund-comparison__data-table-item-image {
    width: 32px;
    height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fund-comparison__data-table-item-name-holder {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.fund-comparison__data-table-item-name .fund-comparison__data-table-item-name-holder .fund-comparison__data-table-item-info {
    display: flex;
    flex-direction: column;
    font-size: 13px;
    line-height: 21px;
}

.fund-comparison__data-table-item-name .fund-comparison__data-table-item-name-holder .fund-comparison__data-table-item-info .fund-comparison__data-table-item-code {
    color: #7D8398;
    font-size: 13px;
    line-height: 19px;
    font-weight: 400;
}

.fund-comparison__data-table-item-name .fund-comparison__data-table-item-name-holder .fund-comparison__data-table-item-info .fund-comparison__data-table-item-name-text {
    color: #212529;
    font-weight: 600;
    font-size: 14px;
    line-height: 21px;
}

.fund-comparison__data-table-fund-code {
    font-weight: 700;
    font-size: 14px;
    line-height: 21px;
    color: #121212;
}

.fund-comparison__data-table-ratio {
    text-align: center;
    width: 20%;
    min-width: 120px;
    max-width: 150px;
    color: #7D8398;
    font-size: 14px;
    font-weight: 500;
}

.fund-comparison__data-table-ratio-value {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    line-height: 21px;
}

.fund-comparison__data-table-ratio-value.return-positive {
    color: var(--sg-color-success-500) !important;
    font-weight: 600;
}

.fund-comparison__data-table-ratio-value.return-negative {
    color: var(--sg-color-danger-500) !important;
    font-weight: 600;
}

.fund-comparison__data-table-ratio-header {
    text-align: center;
}

.fund-comparison__data-table-header--item {
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 21px !important;
    color: #121212 !important;
}

.fund-comparison__data-table-header--ratio {
    text-align: center !important;
}

.fund-comparison__data-table-fund-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    text-align: center;
}

/* Custom Sort Arrows */
.custom-sort-arrows {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    margin-left: 8px;
    vertical-align: middle;
}

.custom-sort-arrows .arrow-up,
.custom-sort-arrows .arrow-down {
    font-size: 10px;
    color: #ccc;
    transition: color 0.2s ease;
    cursor: pointer;
    line-height: 1;
}

.custom-sort-arrows .arrow-up.active,
.custom-sort-arrows .arrow-down.active {
    color: #333 !important;
}

.fund-comparison__data-table-table thead th.sorting_asc .custom-sort-arrows .arrow-up {
    color: #333 !important;
}

.fund-comparison__data-table-table thead th.sorting_asc .custom-sort-arrows .arrow-down {
    color: #ccc !important;
}

.fund-comparison__data-table-table thead th.sorting_desc .custom-sort-arrows .arrow-up {
    color: #ccc !important;
}

.fund-comparison__data-table-table thead th.sorting_desc .custom-sort-arrows .arrow-down {
    color: #333 !important;
}

.fund-comparison__data-table-table thead th.sorting .custom-sort-arrows .arrow-up,
.fund-comparison__data-table-table thead th.sorting .custom-sort-arrows .arrow-down {
    color: #ccc;
}

.fund-comparison__data-table-table thead th.sorting:hover .custom-sort-arrows .arrow-up,
.fund-comparison__data-table-table thead th.sorting:hover .custom-sort-arrows .arrow-down {
    color: #666;
}

.fund-comparison__data-table-table thead th.sorting_asc:hover .custom-sort-arrows .arrow-up {
    color: #000 !important;
}

.fund-comparison__data-table-table thead th.sorting_asc:hover .custom-sort-arrows .arrow-down {
    color: #999 !important;
}

.fund-comparison__data-table-table thead th.sorting_desc:hover .custom-sort-arrows .arrow-up {
    color: #999 !important;
}

.fund-comparison__data-table-table thead th.sorting_desc:hover .custom-sort-arrows .arrow-down {
    color: #000 !important;
}

.fund-comparison__data-table-table thead th.sorting,
.fund-comparison__data-table-table thead th.sorting_asc,
.fund-comparison__data-table-table thead th.sorting_desc {
    cursor: pointer;
}

/* Hide Default DataTables Sort Icons */
.fund-comparison__data-table-table thead th.sorting:before,
.fund-comparison__data-table-table thead th.sorting:after,
.fund-comparison__data-table-table thead th.sorting_asc:before,
.fund-comparison__data-table-table thead th.sorting_asc:after,
.fund-comparison__data-table-table thead th.sorting_desc:before,
.fund-comparison__data-table-table thead th.sorting_desc:after {
    display: none !important;
}

/* DataTables sıralama ikonları için özel stiller */
.dataTables_wrapper .dataTables_sorting,
.dataTables_wrapper .dataTables_sorting_asc,
.dataTables_wrapper .dataTables_sorting_desc {
    background-image: none !important;
    position: relative;
}

.dataTables_wrapper .dataTables_sorting:after,
.dataTables_wrapper .dataTables_sorting_asc:after,
.dataTables_wrapper .dataTables_sorting_desc:after {
    content: '\f0dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #ccc;
}

.dataTables_wrapper .dataTables_sorting_asc:after {
    content: '\f0de';
    color: #333;
}

.dataTables_wrapper .dataTables_sorting_desc:after {
    content: '\f0dd';
    color: #333;
}

/* DataTable Footer Fix */
table.dataTable.no-footer {
    border-bottom: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fund-comparison__data-table-container {
        padding: 15px;
    }

    .fund-comparison__data-table-table thead th,
    .fund-comparison__data-table-table tbody td {
        padding: 8px 6px;
        font-size: 14px;
    }

    .fund-comparison__data-table-item-name {
        min-width: 120px;
    }

    .fund-comparison__data-table-ratio {
        min-width: 70px;
    }
}



.select2-container--default .select2-selection--single {
  height: 52px !important;
  border: 1px solid #CDCFDB !important;
  border-radius: 4px !important;
  background-color: #FFFFFF !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 52px !important;
  padding-left: 14px !important;
  padding-right: 44px !important;
  color: #111827 !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 16px !important;
  letter-spacing: 0.025em !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #9CA3AF !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 16px !important;
  letter-spacing: 0.025em !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  display: none !important;
}

.select2-container--focus .select2-selection--single {
  border-color: #11BF2B !important;
  box-shadow: 0 0 0 3px rgba(17, 191, 43, 0.12) !important;
}

.select2-container--default.select2-container--open .select2-selection--single {
  border-color: #11BF2B !important;
  box-shadow: 0 0 0 3px rgba(17, 191, 43, 0.12) !important;
}

/* Select2 Dropdown Modern Styling */
.select2-dropdown {
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  background: #ffffff !important;
  margin-top: 4px !important;
  overflow: hidden !important;
}

.select2-container--default .select2-dropdown {
  border: none !important;
}

.select2-container .select2-results__option {
  padding: 8px 16px !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 14px !important;
  color: #111827 !important;
  border: none !important;
  cursor: pointer !important;
  position: relative !important;
  margin: 4px 8px !important;
  line-height: 1.4 !important;
  border-radius: 6px !important;
  letter-spacing: 0.025em !important;
}

.select2-container .select2-results__option:first-child {
  margin-top: 8px !important;
}

.select2-container .select2-results__option:last-child {
  margin-bottom: 8px !important;
}

.select2-container .select2-results__option--highlighted[aria-selected] {
  background-color: #f3f4f6 !important;
  color: #111827 !important;
  border-radius: 6px !important;
}

.select2-container .select2-results__option--selected {
  color: #111827 !important;
  font-weight: 500 !important;
}

.select2-container .select2-results__option[aria-selected="true"] {
  color: #111827 !important;
  font-weight: 500 !important;
}

.select2-container .select2-results__option:hover {
  background-color: #e5e7eb !important;
  color: #111827 !important;
}

.select2-container .select2-results > .select2-results__options {
  max-height: 240px !important;
  overflow-y: auto !important;
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
  padding: 0 !important;
}

.select2-container .select2-results > .select2-results__options::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
}

/* Select2 Search Box Styling (if enabled) */
.select2-container .select2-search--dropdown .select2-search__field {
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 14px !important;
  outline: none !important;
}

.select2-container .select2-search--dropdown .select2-search__field:focus {
  border-color: #11BF2B !important;
  box-shadow: 0 0 0 3px rgba(17, 191, 43, 0.12) !important;
}

/* Select2 No Results Styling */
.select2-container .select2-results__option--disabled {
  color: #6b7280 !important;
  font-style: italic !important;
  padding: 12px 16px !important;
}

/* Tooltip z-index sorunu çözümü - Global */
.tooltip {
  z-index: 99999 !important;
}

.tooltip-inner {
  z-index: 99999 !important;
}

.bs-tooltip-auto[x-placement^="right"],
.bs-tooltip-right {
  z-index: 99999 !important;
}

.bs-tooltip-auto[x-placement^="left"],
.bs-tooltip-left {
  z-index: 99999 !important;
}

.bs-tooltip-auto[x-placement^="top"],
.bs-tooltip-top {
  z-index: 99999 !important;
}

.bs-tooltip-auto[x-placement^="bottom"],
.bs-tooltip-bottom {
  z-index: 99999 !important;
}

/* Popper.js tooltip'leri için */
[data-popper-placement] {
  z-index: 99999 !important;
}

/* Sol menü tooltip'leri için ek güvenlik */
.main-sidebar-sticky.collapsed .menu-item::after,
.main-sidebar-sticky.collapsed .search-trigger::after,
.main-sidebar-sticky.collapsed .basket-compact::after,
.main-sidebar-sticky.collapsed .user-profile::after {
  z-index: 100000 !important;
}

.main-sidebar-sticky.collapsed .menu-item::before,
.main-sidebar-sticky.collapsed .search-trigger::before,
.main-sidebar-sticky.collapsed .basket-compact::before,
.main-sidebar-sticky.collapsed .user-profile::before {
  z-index: 100001 !important;
}

body > .tooltip {
  position: fixed !important;
  z-index: 99999 !important;
}

.tooltip .tooltip-arrow,
.tooltip .arrow {
  z-index: 99999 !important;
}
