.table-wrapper {
  background: #111;
  border-radius: 12px;
  border: 1px solid #222;
  margin-top: 1rem;
}
.table-responsive {
  overflow-x: auto;
  cursor: grab;
  user-select: none;
}

.table-responsive.grabbing {
  cursor: grabbing;
  user-select: none;
}

.table-responsive.grabbing * {
  cursor: grabbing !important;
}

.divider-ativos {
  width: 100%;
  height: 1px;
  background: #222;
  margin-bottom: 1rem;
}

.top-bar {
  margin-bottom: 24px;
}

.top-bar .btn-outline-top-bar {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 30px;
}

.top-bar .btn-outline-top-bar.preset-btn.active {
  background: #fff;
  color: #08090a;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-outline-help {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  padding: 4px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 30px;
}

.top-bar .btn-outline-top-bar.dropdown-toggle {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 600;
  color: #08090a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.info-banner {
  padding: 0.55rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 24px;
  border-radius: 8px;
  border: 1px solid #4bcd95;
  background: #092016;
  text-align: center;
  color: #4bcd95;
  font-family: "Inter";
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.info-banner .info-banner-text {
  flex: 1;
}

.info-banner .info-close-icon {
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #4bcd95;
  margin-left: 0.5rem;
}

.custom-table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  background-color: #08090a;
}

.custom-table.resultados {
  min-width: 1200px;
}

.custom-table .dropdown .menu-icon:after {
  display: none !important;
}

.custom-table thead th {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #222;
  white-space: nowrap;
  border-radius: 12px 0 0 0;
  background: linear-gradient(
    180deg,
    rgba(23, 25, 28, 0) -12.14%,
    rgba(23, 25, 28, 0.16) 21.19%,
    rgba(23, 25, 28, 0.97) 100%
  );
  color: #fff;
  font-feature-settings: "cv05" on, "cv06" on, "cv11" on;
  font-family: "Inter";
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
  border-left: 1px solid #252629;
  border-radius: 0;
  position: relative;
  transition: background 0.2s ease;
}

.custom-table thead th[draggable="true"] {
  cursor: grab;
}

.custom-table thead th[draggable="true"]:active {
  cursor: grabbing;
}

.custom-table thead th.dragging-header {
  opacity: 0.4;
  background: rgba(75, 205, 149, 0.15);
}

.custom-table thead th.drag-over-header {
  background: rgba(75, 205, 149, 0.2);
  border-left: 3px solid #4bcd95;
}

.custom-table thead th:first-child {
  border-radius: 12px 0 0 0;
}

.custom-table thead th:last-child {
  border-radius: 0 12px 0 0;
  border-right: 1px solid #252629;
}

.custom-table tbody td {
  border-bottom: 1px solid #252629;
  border-left: 1px solid #252629;
  padding: 0.75rem 1rem;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.custom-table .table tr {
  background: #121212;
  transition: all ease 350ms;
}

/* Cell hover effect */
.custom-table tbody td.cell-hovered,
.custom-table tbody td.first-cell-hovered {
  background: rgba(255, 255, 255, 0.08);
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.company-cell a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ddd;
  gap: 8px;
}

.company-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.company-cell .company-name {
  margin-bottom: 2px;
  overflow: hidden;
  color: #bfbfbf !important;
  font-feature-settings: "cv05" on, "cv06" on, "cv11" on;
  text-overflow: ellipsis;
  font-family: "Inter";
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 19px;
  text-transform: capitalize;
}

.company-name-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ticker-chip {
  color: #bfbfbf;
  padding: 0px 4px;
  font-size: 12px;
  width: fit-content;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 500;
}

.ticker-chip:hover {
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.badge {
  max-width: 130px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: "Inter";
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 19px;
  text-align: center;
  border-radius: 8px;
}

.table-details-header .badge {
  border-radius: 4px;
  background: #46484e;
  color: #bfbfbf;
  text-align: center;
  font-size: 11px;
  font-style: normal;
  font-weight: 400;
  line-height: 18px;
  padding: 2px 8px;
  width: fit-content;
}

/* This is needed to avoid flashes */
.sector-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(191, 191, 191, 0.8);
}

.badge-sector-default {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(191, 191, 191, 0.8);
}

.badge-sector-yellow {
  background: rgba(63, 51, 1, 0.64);
  color: rgba(228, 185, 0, 0.8);
}

.badge-sector-green {
  background: rgba(10, 48, 9, 0.64);
  color: #1fc16b;
}

.badge-sector-orange {
  background: rgba(75, 48, 12, 0.64);
  color: rgba(255, 92, 2, 0.8);
}

.badge-sector-gray {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  color: #bfbfbf;
}

.badge-sector-cyan {
  border-radius: 8px;
  background: rgba(4, 45, 41, 0.64);
  color: rgba(53, 227, 210, 0.8);
}

.badge-sector-lime-green {
  border-radius: 8px;
  background: rgba(36, 48, 9, 0.64);
  color: rgba(199, 251, 80, 0.8);
}

.badge-sector-purple {
  border-radius: 8px;
  background: rgba(57, 24, 107, 0.88);
  color: rgba(203, 198, 255, 0.8);
}

.badge-sector-blue {
  border-radius: 8px;
  background: #002129;
  color: rgba(11, 211, 255, 0.8);
}

.badge-sector-pink {
  border-radius: 8px;
  background: rgba(88, 39, 89, 0.64);
  color: #f85bf0;
}

/* Sector badge tooltip */
.sector-badge-container {
  position: relative;
  display: inline-block;
}

.sector-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background-color: #46484e;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  z-index: 1000;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  font-family: "Inter";
}

.sector-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #46484e transparent transparent transparent;
}

.sector-badge-container:hover .sector-tooltip {
  visibility: visible;
  opacity: 1;
}

/* Ícones e dropdowns */
.info-icon svg {
  display: inline-block;
  margin-left: 0.25rem;
  font-size: 0.7rem;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  text-align: center;
  line-height: 14px;
  color: #aaa;
  cursor: help;
}
.menu-icon {
  font-size: 1rem;
  color: #aaa;
  cursor: pointer;
  margin-left: 0.25rem;
  background: none;
  border: none;
}
.dropdown-menu-dark {
  background: #1b1b1b;
  border-radius: 8px;
  font-size: 0.85rem;
  padding: 0.5rem 0;
}
.dropdown-menu-dark .dropdown-item {
  color: #ddd;
  display: flex;
  align-items: center;
}

.dropdown-menu-dark .dropdown-item svg {
  width: 15px;
}

.dropdown-menu-dark .dropdown-item:hover {
  background: #2a2a2a;
}

.custom-table .dropdown-toggle {
  margin: 0;
  margin-right: -12px;
}

.custom-table .dropdown-toggle svg {
  width: 15px;
  height: 15px;
}

#frequency-toggle {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #fff;
  padding: 4px 8px;
}

#financial-table thead th {
  border-left: 1px solid #252629;
  background: #08090a !important;
  padding: 16px !important;
  border-right: none;
  border-radius: 0;
}

#financial-table thead th:first-child {
  border-radius: 12px 0 0 0;
}

#financial-table thead th:last-child {
  border-radius: 0 12px 0 0;
  border-right: 1px solid #252629;
}

#ano-de.form-select,
#ano-ate.form-select {
  border-radius: 8px;
  border: none !important;
  background: rgba(255, 255, 255, 0.02) !important;
  color: #bfbfbf !important;
  font-size: 14px !important;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.14px;
  appearance: auto;
  -webkit-appearance: auto;
  -moz-appearance: auto;
  padding: 0.5rem;
  border-right: 12px solid rgba(255, 255, 255, 0.02) !important;
  outline: 1px solid rgba(255, 255, 255, 0.16);
}

.pagination-ativos-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  margin-bottom: 24px;
}

.pagination-ativos-wrapper .ativos-count-info {
  color: #bfbfbf;
  font-feature-settings: "cv05" on, "cv06" on, "cv11" on;
  font-family: "Inter";
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(255, 255, 255, 0.12);
  padding: 0px 4px;
}

.pagination-ativos-wrapper .wp-pagenavi {
  justify-content: end;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.pagination-ativos-wrapper .wp-pagenavi .current {
  background: #2a2a2a;
  color: #fff;
  border-color: #2a2a2a;
}

.footer-info-ativos {
  margin-top: 24px;
  font-size: 14px;
  font-weight: 400;
  color: #bfbfbf;
}

.footer-info-ativos a {
  color: #4bcd95;
  text-decoration: none;
}

.help-button {
  margin-top: 0;
}

.btn-light {
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #08090a;
  transition: all 0.3s ease;
}

/* Ver Ativo Button on Hover */
.company-cell-td {
  position: relative;
}

.company-cell {
  position: relative;
  width: 100%;
}

.company-info-link {
  flex: 1;
  min-width: 0;
}

.ver-ativo-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  z-index: 10;
  font-family: "Inter";
}

.ver-ativo-btn:hover {
  background: #3a3a3a;
  color: #fff;
}

.company-cell-td:hover .ver-ativo-btn {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.company-cell-td:hover .company-name {
  max-width: 10ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Custom Info Modal Styles */
.custom-info-modal {
  background: #ffffff;
  border-radius: 20px;
  border: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  padding: 0;
  max-width: 480px;
  width: 100%;
}

.custom-info-modal .modal-header {
  border: none;
  padding: 24px 24px 0 24px;
  position: relative;
}

.custom-info-modal .btn-close-custom {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.custom-info-modal .btn-close-custom i {
  width: 18px;
  height: 18px;
  color: #000000;
}

.custom-info-modal .modal-body {
  padding: 24px;
  padding-top: 8px;
}

.custom-info-modal .info-icon-container {
  margin: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.custom-info-modal .btn-close-custom {
  background: none;
  border: none;
  color: #000000;
}

.custom-info-modal .info-icon-circle {
  width: 48px;
  height: 48px;
  background: #80d8b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.custom-info-modal .info-icon-circle i {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.custom-info-modal .modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.custom-info-modal .modal-description {
  font-size: 16px;
  font-weight: 400;
  color: #000000;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.custom-info-modal .btn-metric-info {
  width: 100%;
  background: #000000;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.custom-info-modal .btn-metric-info:hover {
  background: #333333;
  transform: translateY(-1px);
}

.custom-info-modal .btn-metric-info:active {
  transform: translateY(0);
}

/* Custom Column Selector Styles */
.custom-column-selector {
  background: #252629;
  border: 1px solid #3a3a3a;
  border-radius: 10px;
  padding: 0 14px;
  min-width: 420px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-top: 8px;
}

.column-selector-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 5px;
  border-bottom: 1px solid #3a3a3a;
}

.column-selector-title {
  font-size: 11px;
  font-weight: 600;
  color: #b8b8b8;
  margin: 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toggle-all-link {
  color: #4bcd95;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.toggle-all-link:hover {
  color: #4bcd95;
  text-decoration: none;
}

.column-selector-search {
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid #3a3a3a;
}

.search-input {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #404040;
  border-radius: 6px;
  padding: 12px 40px 12px 16px;
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input:focus {
  border-color: #4bcd95;
}

.search-input::placeholder {
  color: #888888;
}

.search-icon {
  position: absolute;
  right: 36px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #888888;
  pointer-events: none;
}

.column-selector-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 0 5px;
}

.column-section {
  border-bottom: 1px solid #3a3a3a;
}

.column-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0 14px 0;
}

.section-title {
  font-size: 12px;
  font-weight: 700;
  color: #b8b8b8;
  margin: 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-section-link {
  color: #4bcd95;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.2s ease;
  cursor: pointer;
}

.toggle-section-link:hover {
  color: #00b894;
  text-decoration: none;
}

.section-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 0;
  padding: 16px 0 24px 0;
}

.option-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  position: relative;
}

.option-item:hover {
  background: #353535;
}

.column-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.checkmark {
  width: 20px;
  height: 20px;
  background: transparent;
  border: 2px solid #4a4a4a;
  border-radius: 4px;
  margin-right: 14px;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.column-checkbox:checked + .checkmark {
  background: #4bcd95;
  border-color: #4bcd95;
  color: #000000;
}

.checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #000000;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.column-checkbox:checked + .checkmark::after {
  display: block;
}

.option-text {
  color: #f0f0f0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
}

.column-selector-footer {
  padding: 20px 0;
  border-top: 1px solid #3a3a3a;
  display: flex;
  justify-content: end;
}

.btn-apply-columns {
  background: #fff;
  color: #000000;
  border: none;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-apply-columns:hover {
  background: #4bcd95;
  transform: translateY(-1px);
}

.btn-apply-columns:active {
  transform: translateY(0);
}

/* Custom scrollbar for dropdown content */
.column-selector-content::-webkit-scrollbar {
  width: 6px;
}

.column-selector-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.column-selector-content::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 3px;
}

.column-selector-content::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Order By Dropdown Styles */
.btn-icon-action {
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #ddd;
}

.btn-icon-action:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-icon-action.dropdown-toggle::after {
  display: none;
}

.order-by-dropdown {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 0 16px;
  min-width: 280px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-top: 8px;
}

.order-by-header {
  padding: 16px 5px;
  border-bottom: 1px solid #3a3a3a;
}

.order-by-title {
  font-size: 11px;
  font-weight: 600;
  color: #b8b8b8;
  margin: 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.order-by-search {
  position: relative;
  padding: 18px 0;
  border-bottom: 1px solid #3a3a3a;
}

.order-by-content {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px 0;
}

.order-by-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  color: #f0f0f0;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.order-by-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
}

.order-by-item.active {
  background: rgba(75, 205, 149, 0.1);
  color: #4bcd95;
}

.order-by-item.active:hover {
  background: rgba(75, 205, 149, 0.15);
}

.order-by-item i {
  width: 16px;
  height: 16px;
  color: #888888;
  flex-shrink: 0;
}

.order-by-item.active i {
  color: #4bcd95;
}

.order-by-item span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

/* Custom scrollbar for order by content */
.order-by-content::-webkit-scrollbar {
  width: 6px;
}

.order-by-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.order-by-content::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 3px;
}

.order-by-content::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Search Dropdown Styles */
.search-dropdown {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 16px;
  min-width: 360px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-top: 8px;
}

.search-dropdown-form {
  width: 100%;
}

.search-dropdown-body {
  width: 100%;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #252525;
  border: 2px solid #3a3a3a;
  border-radius: 8px;
  padding: 4px;
  transition: border-color 0.3s ease;
  gap: 4px;
}

.search-input-wrapper:focus-within {
  border-color: #4bcd95;
}

.search-dropdown-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 14px;
  color: #f0f0f0;
  font-size: 15px;
  outline: none;
  font-family: "Inter", sans-serif;
}

.search-dropdown-input::placeholder {
  color: #888888;
  font-size: 15px;
}

.search-dropdown-btn {
  background: transparent;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888888;
}

.search-dropdown-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #4bcd95;
}

.search-dropdown-btn:active {
  transform: scale(0.95);
}

.search-dropdown-hint {
  color: #888888;
  font-size: 12px;
  margin-top: 12px;
  margin-bottom: 0;
  text-align: left;
  padding-left: 4px;
}

.clear-search-dropdown-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #f44336;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  transition: all 0.2s ease;
  width: fit-content;
}

.clear-search-dropdown-link:hover {
  background: rgba(244, 67, 54, 0.1);
  color: #f44336;
  text-decoration: none;
}

.clear-search-dropdown-link i {
  width: 14px;
  height: 14px;
}

/* Reorder Dropdown Styles */
.reorder-dropdown {
  background: #1f1f1f;
  border: 1px solid #3a3a3a;
  border-radius: 12px;
  padding: 0 16px;
  min-width: 320px;
  max-width: 380px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  margin-top: 8px;
}

.reorder-header {
  padding: 16px 5px;
  border-bottom: 1px solid #3a3a3a;
}

.reorder-title {
  font-size: 11px;
  font-weight: 600;
  color: #b8b8b8;
  margin: 0;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.reorder-content {
  max-height: 450px;
  overflow-y: auto;
  padding: 12px 0;
}

.reorder-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  margin-bottom: 4px;
  border-radius: 6px;
  background: transparent;
  transition: all 0.2s ease;
  cursor: grab;
  user-select: none;
}

.reorder-item:active {
  cursor: grabbing;
}

.reorder-item[draggable="false"] {
  cursor: default;
  opacity: 0.6;
}

.reorder-item:hover:not([draggable="false"]) {
  background: rgba(255, 255, 255, 0.05);
}

.reorder-item.dragging {
  opacity: 0.5;
  background: rgba(75, 205, 149, 0.1);
}

.reorder-item.drag-over {
  background: rgba(75, 205, 149, 0.15);
  border-top: 2px solid #4bcd95;
}

.drag-handle {
  width: 20px;
  height: 20px;
  color: #888888;
  flex-shrink: 0;
  cursor: grab;
}

.drag-handle-disabled {
  width: 20px;
  height: 20px;
  color: #555555;
  flex-shrink: 0;
  cursor: not-allowed;
}

.reorder-item:active .drag-handle {
  cursor: grabbing;
}

.reorder-item span {
  flex: 1;
  color: #f0f0f0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

.reorder-item[draggable="false"] span {
  color: #888888;
}

.reorder-footer {
  padding: 16px 0;
  border-top: 1px solid #3a3a3a;
  display: flex;
  justify-content: space-between;
  gap: 5px;
}

.btn-reset-order {
  background: transparent;
  color: #888888;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-reset-order:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
  border-color: #4a4a4a;
}

.btn-apply-order {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
}

.btn-apply-order:hover {
  background: #3eb981;
  transform: translateY(-1px);
}

.btn-apply-order:active {
  transform: translateY(0);
}

/* Custom scrollbar for reorder content */
.reorder-content::-webkit-scrollbar {
  width: 6px;
}

.reorder-content::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.reorder-content::-webkit-scrollbar-thumb {
  background: #404040;
  border-radius: 3px;
}

.reorder-content::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* Table Header Drag and Drop Styles */
.header-content-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.header-label {
  display: inline;
}

.drag-handle-header {
  display: none;
  align-items: center;
  justify-content: center;
  color: #888888;
  cursor: grab;
  margin-right: 4px;
}

.drag-handle-header i {
  width: 8px;
  height: 8px;
}

.table-header-draggable[draggable="true"]:hover .drag-handle-header {
  display: flex;
}

.table-header-draggable[draggable="true"]:active .drag-handle-header {
  cursor: grabbing;
  color: #4bcd95;
}

.table-header-draggable[draggable="false"] {
  cursor: default !important;
}
