/**
 * Custom Product Table Styles
 */
.custom-product-table th {
  color: #ffc222;
  background-color: #000;
  border-style: none !important;
}
.design-hub-wrapper {
  padding-bottom: 0;
  padding-top: 0;
}

.custom-product-table-wrapper {
  padding-bottom: 0;
  transition: 0.3s ease;
  position: relative;
  padding: 0;
}
.container-fluid .row > * {
  padding: 0;
}
.table-content-wrapper {
  margin-bottom: 30px;
}

.design-hub-title {
  margin-bottom: 0;
  background: url("../images/comparefpgas_banner_v3.jpg") center/cover no-repeat #000;
  height: 320px;
  display: flex;
  align-items: center;
}

.design-hub-title h1 {
  font-weight: 700;
}

@media screen and (max-width: 767.98px) {
  .design-hub-title {
    height: auto;
    padding: 40px 0;
  }
}

/* Column Header Content */
.th-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.th-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Multi-Select Filter Wrapper */
.multi-select-filter-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}

.sticky-col-device .multi-select-filter-wrapper {
  z-index: 9999;
}

/* Filter Trigger Button */
.multi-select-trigger {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #333;
  border-radius: 4px;
  background: white;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  user-select: none;
}

.multi-select-trigger:hover {
  border-color: #ffc222;
  background: #f9f9f9;
}

.multi-select-trigger .filter-label {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.multi-select-trigger .filter-arrow {
  font-size: 10px;
  color: #666;
  transition: transform 0.3s;
}

.multi-select-dropdown.active + .multi-select-trigger .filter-arrow {
  transform: rotate(180deg);
}

/* Multi-Select Dropdown */
.multi-select-dropdown {
  position: fixed;
  z-index: 999999 !important;
  min-width: 320px;
  max-width: 420px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  max-height: 400px;
  color: #000;
}

.multi-select-dropdown .filter-options-container {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background: white;
  border: none;
  border-radius: 0;
  box-shadow: none;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  color: #000;
}

.multi-select-dropdown.active {
  display: flex;
}

/* Filter Search Box */
.filter-search-box {
  padding: 10px;
  border-bottom: 1px solid #eee;
  background: white;
}

.filter-search-input {
  width: 100%;
  padding: 6px 10px !important;
  border: 1px solid #ddd;
  border-radius: 4px !important;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}

.filter-search-input:focus {
  border-color: #ffc222;
  box-shadow: 0 0 0 2px rgba(255, 194, 34, 0.1);
}

/* Filter Options Container */
.filter-options-container {
  overflow-y: auto;
  max-height: 250px;
  padding: 5px 0;
}

.filter-option {
  padding: 8px 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.filter-option:hover {
  background: #f5f5f5;
}

/* Disabled filter options - options that would yield no results */
.filter-option.disabled-option {
  opacity: 0.5;
  cursor: not-allowed;
  background: #f9f9f9;
}

.filter-option.disabled-option:hover {
  background: #f9f9f9;
}

.filter-option.disabled-option label {
  cursor: not-allowed;
  color: #999;
}

.filter-option.disabled-option .filter-checkbox {
  cursor: not-allowed;
}

.filter-option.select-all-option {
  border-bottom: 1px solid #eee;
  font-weight: 500;
  background: #fafafa;
}

.filter-option.select-all-option:hover {
  background: #f0f0f0;
}

.filter-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
  font-size: 13px;
  user-select: none;
  color: #000;
}

.filter-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* Custom Checkbox Styling */
.filter-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: 2px solid #999;
  border-radius: 3px;
  outline: none;
  transition: all 0.2s;
  position: relative;
  background: white;
}

.filter-checkbox:checked {
  background: #ffc222;
  border-color: #ffc222;
}

.filter-checkbox:checked::after {
  content: "\2713";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 12px;
  font-weight: bold;
}

.filter-checkbox:hover {
  border-color: #ffc222;
}

/* Filter Actions */
.filter-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.filter-clear-btn,
.filter-apply-btn {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 500;
}

.filter-clear-btn {
  background: white;
  color: #000;
}

.filter-clear-btn:hover {
  background: #f5f5f5;
  border-color: #999;
  color: #000;
}

.filter-apply-btn {
  background: #ffc222;
  color: #000;
  border-color: #ffc222;
}

.filter-apply-btn:hover {
  background: #e6ad1f;
  border-color: #e6ad1f;
  color: #000;
}

/* Scrollbar Styling for Filter Options */
.filter-options-container::-webkit-scrollbar {
  width: 8px;
}

.filter-options-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.filter-options-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.filter-options-container::-webkit-scrollbar-thumb:hover {
  background: #999;
}

/* Variant display styles */
.variant-count {
  display: inline-block;
  background: #007bff;
  color: white;
  border-radius: 50px;
  padding: 2px 10px;
  font-size: 12px;
  margin-left: 5px;
  font-weight: bold;
}

.variant-badge {
  background: #007bff;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  margin-top: 8px;
  text-align: center;
}

.variant-value {
  margin-bottom: 8px;
  border-left: 3px solid #007bff;
  padding-left: 8px;
}

.variant-value:last-child {
  margin-bottom: 0;
}

.package-label {
  font-weight: 600;
  color: #007bff;
  margin-right: 4px;
}

.comparison-column .variant-value .value-spec,
.comparison-column .variant-value span {
  display: block;
  margin-top: 2px;
}

/* Table */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: -41px;
  margin-bottom: 20px;
  position: relative;
}

.table-responsive::-webkit-scrollbar {
  height: 8px;
}

.table-responsive::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.table-responsive::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
  background: #999;
}

.custom-product-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: white;
  border-width: 0 !important;
  border-style: none !important;
  margin-top: -1px;
}

.custom-product-table thead {
  background: #000;
}

.custom-product-table th {
  padding: 12px 10px;
  text-align: left;
  font-weight: 500;
  border: none !important;
  line-height: 1.4;
  white-space: normal;
  color: #ffc222;
  background: #000 !important;
  vertical-align: top;
}
.quiz-result-display {
  display: none;
}
/* Specific column width */
.custom-product-table th[data-column="product_image"],
.custom-product-table td[data-column="product_image"] {
  display: none;
}
.custom-product-table th[data-column="family"],
.custom-product-table th[data-column="device"],
.custom-product-table th[data-column="systemlogiccellsk"],
.custom-product-table th[data-column="distributedrambitskb"],
.custom-product-table th[data-column="internalflash"],
.custom-product-table th[data-column="onchiposcillator"] {
  min-width: 180px;
}

.custom-product-table th[data-column="imagevideoconnectivity1"],
.custom-product-table th[data-column="package_dimensions_size_pitch"] {
  min-width: 300px;
}
.custom-product-table th[data-column="luts"],
.custom-product-table th[data-column="gpll"] {
  min-width: 100px;
}
.custom-product-table th[data-column="dsp"],
.custom-product-table th[data-column="quickstartup2"] {
  min-width: 230px;
}
#custom-product-table-container th[data-column="securityfeatures"],
#custom-product-table-container td[data-column="securityfeatures"] {
  display: none;
}

.custom-product-table th[data-column="embeddedmemoryebrbitskb"],
.custom-product-table th[data-column="largememorylrambitskb"],
.custom-product-table th[data-column="quickstartup4"],
.custom-product-table th[data-column="totaliowidehighperformance"],
.custom-product-table th[data-column="serialcommunication"],
.custom-product-table th[data-column="ethernet1"],
.custom-product-table th[data-column="serdes1"],
.custom-product-table th[data-column="adcblocksdedicatedpins"],
.custom-product-table th[data-column="devicepackagesizepitch3"],
.custom-product-table th[data-column="devicepower2"] {
  min-width: 200px;
}
.custom-product-table th[data-column="pcipcie1"],
.custom-product-table th[data-column="externalmemory1"],
.custom-product-table th[data-column="securityfeatures"],
.custom-product-table th[data-column="reliabilitymanagement"],
.custom-product-table th[data-column="environmentalgrade"] {
  min-width: 330px;
}
.custom-product-table th[data-column="serdeschannels"] {
  min-width: 150px;
}
.custom-product-table th[data-column="imagevideoconnectivity3"],
.custom-product-table th[data-column="ethernet3"],
.custom-product-table th[data-column="pcipcie3"],
.custom-product-table th[data-column="serdes3"],
.custom-product-table th[data-column="cryptographicfunctions"],
.custom-product-table th[data-column="devicepower4"],
.custom-product-table th[data-column="externalmemory3"] {
  min-width: 330px;
}
.custom-product-table th[data-column="reliabilitymanagement"] {
  min-width: 450px;
}
.custom-product-table th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.custom-product-table th .th-header {
  cursor: pointer;
}

.custom-product-table th:hover {
  background: #1a1a1a;
}

.sort-icon {
  display: inline-block;
  margin-left: auto;
  padding-left: 8px;
  opacity: 1;
  font-size: 14px;
  color: #a9a9a9;
  font-weight: 400;
  flex-shrink: 0;
}

.custom-product-table th.sorted-asc,
.custom-product-table th.sorted-desc {
  background: #000;
  color: #ffc222;
}

.custom-product-table th.sorted-asc .sort-icon,
.custom-product-table th.sorted-desc .sort-icon {
  opacity: 1;
  font-weight: bold;
  color: #ffc222;
}

.custom-product-table td {
  padding: 12px 15px;
  border: 1px solid #8ac8ea;
  border-bottom: 1px solid #dee2e6 !important;
}

.custom-product-table tbody tr:hover {
  background: #f8f9fa;
}

.custom-product-table tbody tr.selected {
  background: #e7f3ff;
}

.checkbox-column {
  width: 40px;
  text-align: center;
}

.no-data {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
  font-style: italic;
}

/* Pagination */
.table-pagination {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.page-btn {
  padding: 8px 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
  background: #f5f5f5;
  border-color: #0073aa;
}

.page-btn.active {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-ellipsis {
  padding: 8px 12px;
}

.page-info {
  margin-left: 15px;
  color: #6c757d;
  font-size: 14px;
}

/* Product Comparison Section */
.product-comparison-section {
  background: #1e9dd8;
  color: white;
  padding: 15px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  display: none;
  margin-top: 10px;
}

.product-comparison-section.active {
  display: block !important;
  position: fixed !important;
  bottom: 0 !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 99 !important;
  margin: 0 !important;
}

.product-comparison-section.active.bar-stuck {
  top: var(--table-comparison-bar-top, 100px) !important;
  bottom: auto !important;
}

.comparison-container {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.comparison-info {
  flex-shrink: 0;
  text-align: center;
}

.comparison-counter {
  font-size: 14px;
  font-weight: 500;
}

.selected-products-display {
  display: flex;
  justify-content: center;
  flex: 1;
  min-width: 200px;
}

.selected-products-list {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.placeholder-text {
  font-size: 14px;
  opacity: 0.8;
}

.selected-product-item {
  background: rgba(255, 255, 255, 0.2);
  padding: 10px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 15px;
  font-weight: 500;
}

.selected-product-item .product-name {
  font-weight: 500;
  flex: 1;
  color: white;
}

.selected-product-item .remove-product,
.selected-product-item .remove-product-group {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  font-weight: 300;
}

.selected-product-item .remove-product:hover,
.selected-product-item .remove-product-group:hover {
  opacity: 0.7;
}

.comparison-actions {
  flex-shrink: 0;
}
.comparison-actions button:focus {
  color: #ffc107 !important;
}
.compare-products {
  background: white;
  color: #000 !important;
  border: none;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.compare-products:hover:not(:disabled) {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.compare-products:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.compare-products i {
  margin-right: 8px;
}

/* Mobile-only message - hidden on desktop */
.mobile-only-message {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  /* Hide the product table and comparison section on mobile */
  #custom-product-table-container,
  .product-comparison-section {
    display: none !important;
  }

  /* Show mobile message (override inline style) */
  .mobile-only-message {
    display: flex !important;
    padding: 40px 24px;
    text-align: center;
    height: 400px;
    align-items: center;
  }

  .mobile-only-message p {
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin: 0;
  }

  .custom-product-table {
    font-size: 14px;
  }

  .custom-product-table th,
  .custom-product-table td {
    padding: 8px 10px;
  }

  .page-info {
    margin-left: 0;
    margin-top: 10px;
    width: 100%;
    text-align: center;
  }

  /* Comparison section responsive */
  .comparison-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .comparison-info,
  .selected-products-display,
  .comparison-actions {
    width: 100%;
  }

  .compare-products {
    width: 100%;
  }
}

/* Sticky Table Header - two-table approach:
   .sticky-header-wrapper sticks vertically to viewport and scrolls horizontally
   in sync with .table-responsive (scrollbar hidden). .thead-invisible inside
   .table-responsive is visibility:hidden to preserve column-width reference only. */
.sticky-header-wrapper {
  position: sticky;
  top: var(--table-thead-top, 50px);
  z-index: 100;
  overflow-x: auto;
  overflow-y: hidden;
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  scrollbar-width: none; /* Firefox */
}
.sticky-header-wrapper::-webkit-scrollbar {
  display: none; /* Chrome / Safari */
}
.sticky-header-wrapper .sticky-header-table {
  table-layout: fixed;
  margin-bottom: 0;
  border-collapse: separate;
  border-spacing: 0;
}
.thead-invisible {
  visibility: hidden;
}

/* Footnote Legends */
.table-footnote-legends {
  display: none;
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #0073aa;
}

.table-footnote-legends h3 {
  margin: 0 0 15px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.footnote-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footnote-list li {
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  border-bottom: 1px solid #e0e0e0;
}

.footnote-list li:last-child {
  border-bottom: none;
}

.footnote-list li strong {
  color: #0073aa;
  font-weight: 600;
}

/* Tooltip Styles - Using Bootstrap Tooltips */
.header-tooltip-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.header-info-icon {
  color: #17a2b8;
  cursor: help;
  position: relative;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.header-info-icon svg {
  width: 16px;
  height: 16px;
  fill: #17a2b8;
}

/* Bootstrap Tooltip Override - Black background, white text */
.tooltip.lattice-tooltip .tooltip-inner {
  background-color: #1a1a1a;
  color: #ffffff;
}

.tooltip.lattice-tooltip .tooltip-arrow::before,
.tooltip.lattice-tooltip .arrow::before {
  border-top-color: #1a1a1a;
  border-bottom-color: #1a1a1a;
}

.tooltip.lattice-tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.lattice-tooltip.bs-tooltip-top .arrow::before {
  border-top-color: #1a1a1a;
}

.tooltip.lattice-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.lattice-tooltip.bs-tooltip-bottom .arrow::before {
  border-bottom-color: #1a1a1a;
}

.tooltip.lattice-tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.lattice-tooltip.bs-tooltip-left .arrow::before {
  border-left-color: #1a1a1a;
}

.tooltip.lattice-tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.lattice-tooltip.bs-tooltip-right .arrow::before {
  border-right-color: #1a1a1a;
}

@media (max-width: 768px) {
  .table-footnote-legends {
    margin-top: 20px;
    padding: 15px;
  }

  .table-footnote-legends h3 {
    font-size: 14px;
    margin-bottom: 10px;
  }

  .footnote-list li {
    font-size: 14px;
    padding: 6px 0;
  }
}

/* Horizontal Scroll Arrows (hidden - replaced by table-controls-bar navigation) */
.table-scroll-arrow {
  display: none !important;
}

.table-scroll-arrow.fixed-mode {
  position: fixed;
}

.table-scroll-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  opacity: 1;
}

.table-scroll-arrow.left {
  left: 10px;
}

.table-scroll-arrow.right {
  right: 10px;
}

.table-scroll-arrow.hidden {
  display: none;
}

.table-scroll-arrow svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .table-scroll-arrow {
    height: 40px;
    width: 40px;
    opacity: 0.6;
  }

  .table-scroll-arrow svg {
    width: 20px;
    height: 20px;
  }

  .table-scroll-arrow.left {
    left: 5px;
  }

  .table-scroll-arrow.right {
    right: 5px;
  }
}

/* Partial Match Notice */
.partial-match-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 1px solid #ffc107;
  border-left: 4px solid #ffc107;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.15);
  justify-self: center;
}

.partial-match-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.partial-match-content {
  flex: 1;
}

.partial-match-content strong {
  display: block;
  color: #856404;
  font-size: 16px;
}

.partial-match-content p {
  color: #6c5700;
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
  display: none;
}

@media (max-width: 768px) {
  .partial-match-notice {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  .partial-match-content strong {
    font-size: 14px;
  }

  .partial-match-content p {
    font-size: 13px;
  }
}

/* Table Actions Bar - Clear All Filters (hidden - moved to table-controls-bar) */
.table-actions-bar {
  display: none;
}

.clear-all-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: not-allowed;
  transition: all 0.3s ease;
}

.clear-all-filters-btn.active {
  background: #fff;
  color: #333;
  border-color: #0073aa;
  cursor: pointer;
}

.clear-all-filters-btn.active:hover {
  background: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

.clear-all-filters-btn .clear-icon {
  font-size: 12px;
  font-weight: bold;
}

.clear-all-filters-btn:disabled {
  opacity: 0.6;
}

.filter-status {
  font-size: 13px;
  color: #666;
  font-style: italic;
}

@media (max-width: 768px) {
  .table-actions-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .clear-all-filters-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Table Controls Bar - Above Table Header */
.table-controls-bar {
  display: flex !important;
  align-items: center;
  gap: 15px;
  margin-bottom: 0;
  background: #000;
  padding: 12px 55px;
  min-height: 50px;
  position: sticky;
  top: var(--table-controls-top, 0px);
  z-index: 200;
}

.table-controls-bar .clear-all-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1e9dd8;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  opacity: 1;
}
.table-controls-bar .clear-all-filters-btn:hover {
  background: #1789c2 !important;
}
.table-controls-bar .clear-all-filters-btn.active {
  opacity: 1;
  cursor: pointer;
}

.table-controls-bar .clear-all-filters-btn.active:hover {
  background: #1789c2 !important;
}

/* Active Build Profile Indicator - sits between controls bar and table header */
.active-build-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  padding: 8px 55px;
  background: #000;
  margin: 0;
  white-space: nowrap;
  position: sticky;
  top: var(--table-active-indicator-top, 50px);
  z-index: 200;
}

.active-build-indicator svg {
  flex-shrink: 0;
  color: #1e9dd8;
  background-color: #fff;
  border-radius: 100%;
}

.table-nav-arrows {
  display: flex;
  align-items: center;
  gap: 5px;
}

.table-nav-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #1789c2;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s;
}

.table-nav-arrow:hover {
  color: #ffc222;
}

.table-nav-arrow svg {
  width: 20px;
  height: 20px;
  margin: 0 -5px;
}

/* Sticky Columns for Horizontal Scrolling */
.custom-product-table .sticky-col {
  position: sticky;
  background: inherit;
  z-index: 5;
}

.custom-product-table thead .sticky-col {
  z-index: 15;
  background: #000 !important;
}

.custom-product-table tbody .sticky-col {
  background: #fff;
}

.custom-product-table tbody tr:hover .sticky-col {
  background: #f8f9fa;
}

.custom-product-table tbody tr.selected .sticky-col {
  background: #e7f3ff;
}

/* Sticky column positions - checkbox is first (left: 0) */
.custom-product-table .sticky-col-0 {
  left: 0;
}

/* Family column - positioned after checkbox (40px width) */
.custom-product-table .sticky-col-family {
  left: 45px;
}

/* Family name hyperlink */
.custom-product-table .family-link {
  color: #1e9dd8;
  text-decoration: none;
  font-weight: 500;
}

.custom-product-table .family-link:hover {
  color: #1580b5;
  text-decoration: underline;
}

/* Device column - positioned after checkbox (40px) + family (150px) */
.custom-product-table .sticky-col-device {
  left: 225px;
}

/* Use pseudo-element for single continuous border on device column */
.custom-product-table tbody .sticky-col-device {
  position: sticky;
}

.custom-product-table tbody .sticky-col-device::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 2px;
  background: #8ac8ea;
  pointer-events: none;
}

@media (max-width: 768px) {
  .table-controls-bar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .table-controls-bar .clear-all-filters-btn {
    font-size: 12px;
    padding: 6px 12px;
  }

  /* Adjust sticky column positions for mobile */
  .custom-product-table .sticky-col-family {
    left: 35px;
  }

  .custom-product-table .sticky-col-device {
    left: 135px;
  }
}

/* Ensure site header avatar dropdown appears above page content */
#masthead,
.site-header,
.ast-header-wrap {
  z-index: 999 !important;
}
