/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/HorizontalStackedBarChart/index.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.d3-stacked-horizontal-bar-chart {
    position: relative;
    padding: 0 40px 20px 15px;
}

@media (max-width: 768px) {
    .d3-stacked-horizontal-bar-chart {
        padding: 0 8px 16px 8px;
    }

    /* Y-axis labels render over colored bars on mobile — use white fill for legibility on saturated bars */
    .d3-stacked-horizontal-bar-chart .y-axis-label text {
        fill: #ffffff !important;
        font-family: 'Titillium Web', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        font-style: normal !important;
        font-weight: 600 !important;
    }
}

.d3-chart:hover {
    cursor: default;
}



.y-axis-label {
    /* titillium web */
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 500 !important;
    color: #495057 !important;
}

.x-axis-label {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 500 !important;
    color: #495057 !important;
}

.x-axis-label text,
.y-axis-label text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;

}


/*.tick line {
    display: none;
} */

.d3-stacked-horizontal-bar-chart line {
    stroke: #e9ecef;
    stroke-width: 1px;
}

.x-axis-label .tick line,
.y-axis-label .tick line {
    display: none;
}

/* Legend styles */
.legend {
    font-family: 'Titillium Web', sans-serif;
}

.legend-item text {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 150px; /* Limit text width to prevent overflow */
}

.legend-item {
    cursor: pointer;
    transition: all 0.2s ease;
}

.legend-item rect {
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 1px;
    transition: all 0.2s ease;
}

.legend-item text {
    font-weight: 500;
    user-select: none;
    transition: all 0.2s ease;
}

.legend-item:hover rect {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 2px;
    transform: scale(1.1);
}

.legend-item:hover text {
    font-weight: 600;
}

/* Disabled/inactive legend items */
.legend-item rect[opacity="0.3"] {
    filter: grayscale(70%);
}

.legend-item text[opacity="0.5"] {
    text-decoration: line-through;
    font-style: italic;
}

/* Active legend items on hover */
.legend-item:hover rect[opacity="1"] {
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Bar label styles */
.bar-label {
    pointer-events: none;
    user-select: none;
    font-family: 'Titillium Web', sans-serif !important;
    font-weight: 600 !important;
}

/* Enhanced hover effects for bars */
.d3-stacked-horizontal-bar-chart rect:hover {
    filter: brightness(1.1);
    transition: filter 0.2s ease;
}

/* Smooth transitions for all elements */
.d3-stacked-horizontal-bar-chart * {
    transition: all 0.2s ease;
}
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/Tooltip/index.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.d3-tooltip {
    z-index: 999999 !important;
    position: fixed;
    text-align: left;
    padding: 0.75rem;
    background: var(--tooltip-background, #fff);
    color: var(--tooltip-text, #333);
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.15);
    border-radius: 6px;
    border: 1px solid var(--tooltip-border, #e5e7eb);
    pointer-events: none;
    left: 0px;
    top: 0px;
    transition: opacity 0.2s;
    max-width: 16rem;
    min-width: 12rem;
    font-size: 0.875rem;
    line-height: 1.25;
    transform: none;
}

.d3-tooltip .tooltip-title {
    color: var(--tooltip-title-color, #373D3F);
    font-family: 'Titillium Web', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    padding: 0;
}

.d3-tooltip .tooltip-data {
    color: var(--tooltip-data-color, #373D3F);
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    padding: 0;
}

.d3-tooltip .tooltip-ring {
    color: var(--tooltip-ring-color, #6b7280);
    font-family: 'Titillium Web', sans-serif;
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: 14px;
    padding: 0;
    margin-bottom: 4px;
}

.d3-tooltip .tooltip-date {
    color: var(--tooltip-date-color, #6b7280);
    font-family: 'Roboto Mono', monospace;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 14px;
    padding: 0;
    margin-bottom: 4px;
}

.d3-tooltip p {
    margin: 0;
    margin-bottom: 2px;
}

.d3-tooltip p:last-child {
    margin-bottom: 0;
}

/* animate when showing or hiding the tooltip with fadein and fadeout animation */
.d3-fadein {
    opacity: 1;
    transition: opacity 0.2s;
}

.d3-fadeout {
    /* opacity: 0; */
    transition: opacity 0.2s;
}

/* Dark mode disabled
@media (prefers-color-scheme: dark) {
    .d3-tooltip {
        background: var(--tooltip-background, #374151);
        color: var(--tooltip-text, #f9fafb);
        border-color: var(--tooltip-border, #4b5563);
    }
    
    .d3-tooltip .tooltip-title {
        color: var(--tooltip-title-color, #f9fafb);
    }
    
    .d3-tooltip .tooltip-data {
        color: var(--tooltip-data-color, #e5e7eb);
    }
    
    .d3-tooltip .tooltip-date {
        color: var(--tooltip-date-color, #9ca3af);
    }
}
*/
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/SankeyChart/index.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.sankey-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.sankey {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* Sankey link styles */
.sankey path {
    transition: stroke-opacity 0.2s ease;
    cursor: pointer;
}

.sankey path:hover {
    stroke-opacity: 0.6 !important;
}

/* Sankey node styles */
.sankey rect {
    transition: filter 0.2s ease;
    cursor: pointer;
}

.sankey rect:hover {
    filter: brightness(1.1);
}

/* Node title rectangle styles */
.sankey-node-title-rect {
    transition: all 0.2s ease;
}

/* Text label styles */
.sankey text {
    font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 500;
    pointer-events: none;
}

/* No data text styles */
.no-data-text {
    font-family: 'Titillium Web', Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: #6b7280;
}

/* Chart overlay for mouse interactions */
.chart-overlay {
    cursor: default;
}

/* Responsive design */
@media (max-width: 768px) {
    .sankey text {
        font-size: 9px;
    }
    
    .no-data-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .sankey text {
        font-size: 8px;
    }
    
    .no-data-text {
        font-size: 11px;
    }
}

/* Dark mode disabled
@media (prefers-color-scheme: dark) {
    .no-data-text {
        fill: #9ca3af;
    }
    
    .sankey text {
        filter: contrast(1.2);
    }
    
    .sankey-node-title-rect {
        filter: brightness(0.9);
    }
}
*/

/* Smooth transitions for animations */
.sankey path,
.sankey rect,
.sankey text {
    transition: opacity 0.3s ease;
}

/* Enhanced hover effects - simplified to reduce flickering */
.sankey-container:hover .sankey path:not(:hover) {
    stroke-opacity: 0.2;
}

.sankey-container:hover .sankey rect:not(:hover) {
    opacity: 0.8;
} 
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Charts/TreeMap/index.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.d3-tree-map {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.d3-tree-map svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* TreeMap rectangle styles */
.treemap-rect {
    transition: all 0.2s ease;
    cursor: pointer;
}

.treemap-rect:hover {
    filter: brightness(1.1) !important;
    stroke-width: 2 !important;
}

/* Value label styles */
.treemap-value {
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 600;
    fill: white;
    pointer-events: none;
    text-anchor: left;
    dominant-baseline: left;
}

/* Text label styles */
.treemap-text {
    font-family: 'Titillium Web', sans-serif;
    font-size: 11px;
    font-weight: 500;
    fill: white;
    pointer-events: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.treemap-text tspan {
    font-family: 'Titillium Web', sans-serif;
    font-size: 14px;
    font-weight: 500;
    fill: white;
}

/* No data text styles */
.no-data-text {
    font-family: 'Titillium Web', sans-serif;
    font-size: 13px;
    font-weight: 600;
    fill: #6b7280;
}

/* Chart overlay for mouse interactions */
.chart-overlay {
    cursor: default;
}

/* Responsive design */
@media (max-width: 768px) {
    .treemap-value {
        font-size: 14px;
    }
    
    .treemap-text {
        font-size: 10px;
    }
    
    .treemap-text tspan {
        font-size: 10px;
    }
    
    .no-data-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .treemap-value {
        font-size: 12px;
    }
    
    .treemap-text {
        font-size: 9px;
    }
    
    .treemap-text tspan {
        font-size: 9px;
    }
    
    .no-data-text {
        font-size: 11px;
    }
}

/* Dark mode disabled
@media (prefers-color-scheme: dark) {
    .no-data-text {
        fill: #9ca3af;
    }
    
    .treemap-text {
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    }
}
*/

/* Additional hover effects for better UX */
.d3-tree-map .treemap-rect:hover {
    stroke: rgba(255, 255, 255, 0.8);
}

/* Smooth transitions for animations */
.d3-tree-map .treemap-rect,
.d3-tree-map .treemap-text {
    transition: opacity 0.3s ease;
} 
/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Accordion/Accordion.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.accordion-button-custom::after {
  display: none;
}

.accordion-button-custom:hover {
  text-decoration: none !important;
}

.accordion-item {
  margin-bottom: 0;
}

.accordion-body {
  padding: 12px 24px 12px 24px !important;
}

.accordion-icon {
  font-size: 1.2rem;
}

.accordion-empty-state {
  /* text-align: center; */
  /* font-size: .9rem; */
  font-weight: 400;
  color: #6c757d !important;
}
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/Switch/index.css ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.switch-container {
    border-radius: 50px;
    background-color: #ebeced;
    width: fit-content;
}

.non-active-switch {
    background-color: #ebeced !important;
}

.switch-button {
    border-radius: 50px;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    max-height: 40px;
}
/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/ChartTable/ChartTable.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.chart-table-container {
  position: relative;
  /* border: 1px solid #e5e7eb; */
  /* border-radius: 8px; */
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); 
  overflow: visible;
  border-radius: 0px 0px 40px 40px !important;
}

.chart-table-container .chart-content {
  position: relative;
  background: white;
  min-height: 400px; /* Ensure enough space for chart and axis */
  /* border-radius: 0px 0px 40px 40px !important; */
  border-radius: 0px 0px 0px 0px !important;
}

/* Export dropdown styling */
.chart-table-container .export-dropdown {
  position: relative;
}

.chart-table-container .dropdown-menu {
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  margin-top: 0.25rem;
}

.chart-table-container .dropdown-item {
  padding: 0.5rem 0.75rem;
  color: #374151;
  font-size: 0.875rem;
  transition: background-color 0.15s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.chart-table-container .dropdown-item:hover {
  background: #f3f4f6;
  color: #0066cc;
}

/* Button styling */
.chart-table-container .btn-outline-secondary {
  border-color: #d1d5db;
  color: #374151;
}

.chart-table-container .btn-outline-secondary:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
  color: #0066cc;
}

/* Switch styling in container */
.chart-table-container .btn-group-toggle .btn {
  font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .chart-table-container {
    padding: .2rem;
  }

  .chart-table-container .d-flex.justify-content-between {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .chart-table-container .d-flex.align-items-center {
    justify-content: flex-end;
  }

  /* Tools row: allow wrapping on mobile to prevent overcrowding */
  .chart-table-container .tools-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 0.5rem !important;
    padding: 0.75rem 1rem !important;
  }

  /* Left group: chart/table and relative/absolute switches */
  .chart-table-container .tools-row > div:first-child {
    flex: 0 1 auto;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
  }

  /* Right group: project/funding toggle and export */
  .chart-table-container .tools-row > div:last-child {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-start;
    align-items: center;
    margin-left: auto;
  }

  /* When groups wrap to separate rows, ensure consistent left alignment */
  @media (max-width: 600px) {
    .chart-table-container .tools-row > div:last-child {
      margin-left: 0;
      flex-basis: 100%;
      margin-top: 0.5rem;
    }
  }

  /* Switch stays inline, can shrink slightly */
  .chart-table-container .switch-container {
    display: inline-flex !important;
    width: auto !important;
    flex: 0 1 auto;
    min-width: 0;
    gap: 0.25rem !important;
  }

  /* Reduce switch button padding slightly on mobile for better fit */
  .chart-table-container .switch-button {
    padding: 0.4rem 0.6rem !important;
    font-size: 0.8rem !important;
  }

  /* Export dropdown stays inline on the right */
  .chart-table-container .export-dropdown {
    display: inline-flex !important;
    flex: 0 0 auto;
  }

  /* Increase tap target on mobile */
  .chart-table-container .export-button {
    width: 44px !important;
    height: 44px !important;
  }

  /* Turn dropdown into a bottom sheet on mobile */
  .chart-table-container .dropdown-menu {
    position: fixed !important;
    right: 1rem !important;
    left: 1rem !important;
    bottom: 1rem !important;
    top: auto !important;
    transform: none !important;
    min-width: unset !important;
    width: auto;
    z-index: 1050;
  }

  .chart-table-container .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* Dark mode disabled
@media (prefers-color-scheme: dark) {
  .chart-table-container {
    background: #1f2937;
    border-color: #374151;
  }

  .chart-table-container .chart-content {
    background: #1f2937;
  }

  .chart-table-container .dropdown-menu {
    background: #374151;
    border-color: #4b5563;
  }

  .chart-table-container .dropdown-item {
    color: #d1d5db;
  }

  .chart-table-container .dropdown-item:hover {
    background: #4b5563;
    color: #3b82f6;
  }

  .chart-table-container .btn-outline-secondary {
    background: #374151;
    border-color: #4b5563;
    color: #d1d5db;
  }

  .chart-table-container .btn-outline-secondary:hover {
    background: #4b5563;
    border-color: #6b7280;
    color: #3b82f6;
  }
}
*/

.export-button {
  border: none;
  background-color: var(--primary) !important;
  color: white !important;
  cursor: pointer;
  border-radius: 36px !important;
  width: 50px !important;
  height: 40px !important;
}

.tools-row {
  background-color: #F7F7F7;
}
/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!../../packages/ui/FilterSidebar/FilterSidebar.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Filter Sidebar Styles */
.filter-sidebar {
  margin-top: 15px;
  margin-bottom: 15px;
  position: sticky !important;
  top: 200px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  background: #ffffff;
  max-height: calc(100vh - 160px);
  border-radius: 0;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Header and footer stay visible; only middle scrolls */
.filter-sidebar-head {
  flex-shrink: 0;
}

.filter-sidebar-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
}

/* Inner wrapper so bottom padding is part of scrollable content and you can scroll to the end */
.filter-sidebar-scroll-inner {
  padding-bottom: 6rem;
}

.filter-sidebar-foot {
  flex-shrink: 0;
  border-top: 1px solid #f0f0f0;
  background: #ffffff;
}

.filterHeader {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.filterTitle {
  color: var(--primary);
  font-weight: 400;
  font-size: 1.125rem;
  margin: 0;
}

.applyButton {
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
  transition: all 0.2s ease;
}

.applyButton:hover {
  background: var(--primary);
  color: white;
}

/* Accordion Overrides for Filter Sidebar */
.filterAccordion {
  --bs-accordion-border-width: 0;
  --bs-accordion-border-radius: 0;
  --bs-accordion-inner-border-radius: 0;
  --bs-accordion-bg: transparent;
  --bs-accordion-border-color: transparent;
}

.filterAccordion .accordion-item {
  border: none;
  border-bottom: 1px solid #f0f0f0;
  background: transparent;
  margin-bottom: 0;
}

.filterAccordion .accordion-item:last-child {
  border-bottom: none;
}

.filterAccordion .accordion-header {
  margin-bottom: 0;
}

.filterAccordion .accordion-button {
  background: transparent !important;
  border: none !important;
  padding: 16px 0 12px 0;
  color: var(--primary) !important;
  font-weight: 400;
  font-size: 1rem;
  box-shadow: none !important;
  position: relative;
  border-radius: 0 !important;
}

.filterAccordion .accordion-button:not(.collapsed) {
  background: transparent !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.filterAccordion .accordion-button:focus {
  box-shadow: none !important;
  border: none !important;
  z-index: 2;
}

.filterAccordion .accordion-button:hover {
  background: transparent !important;
  color: #003d63 !important;
}

.filterAccordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23006699'%3e%3cpath fill-rule='evenodd' d='M8 1a.5.5 0 0 1 .5.5v6h6a.5.5 0 0 1 0 1h-6v6a.5.5 0 0 1-1 0v-6h-6a.5.5 0 0 1 0-1h6v-6A.5.5 0 0 1 8 1z'/%3e%3c/svg%3e");
  transform: none;
  transition: all 0.2s ease;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.filterAccordion .accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23006699'%3e%3cpath fill-rule='evenodd' d='M2 8a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11A.5.5 0 0 1 2 8z'/%3e%3c/svg%3e");
}

.filterAccordion .accordion-collapse {
  border: none !important;
  overflow: hidden;
}

.filterAccordion .accordion-collapse.collapse {
  transition: height 0.35s ease;
}

.filterAccordion .accordion-collapse.collapse:not(.show) {
  height: 0;
}

.filterAccordion .accordion-collapse.collapse.show {
  height: auto;
}

.filterAccordion .accordion-body {
  padding: 0 0 20px 0 !important;
  margin-top: -4px;
}

/* Filter Section Styles */
.filterSectionTitle {
  color: var(--primary);
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 8px;
}

.filterCheckboxGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filterCheckboxGroup .form-check {
  margin-bottom: 0;
  padding-left: 24px;
}

.filterCheckboxGroup .form-check-input {
  margin-left: -24px;
  margin-top: 2px;
}

.filterCheckboxGroup .form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.filterCheckboxGroup .form-check-input:indeterminate {
  background-color: var(--primary);
  border-color: var(--primary);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='white' d='M5 8a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5A.5.5 0 0 1 5 8z'/%3e%3c/svg%3e");
}

.filterCheckboxGroup .form-check-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25);
}

.filterCheckboxGroup .form-check-label {
  font-size: 0.875rem;
  color: #333;
  line-height: 1.4;
  cursor: pointer;
}

/* Nested/Hierarchical Options Styles */
.filterCheckboxGroup .filter-option-group {
  position: relative;
}

.filterCheckboxGroup .filter-option-group .form-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
}

.filterCheckboxGroup .filter-option-group .nested-options {
  border-left: 2px solid #e5e5e5;
  margin-left: 12px;
  padding-left: 16px;
  margin-top: 8px;
}

.filterCheckboxGroup .filter-option-group .nested-options .filter-option-group {
  margin-bottom: 8px;
}

.filterCheckboxGroup .filter-option-group .nested-options .filter-option-group:last-child {
  margin-bottom: 0;
}

/* Expand/Collapse Button Styles */
.filterCheckboxGroup .btn-link {
  text-decoration: none !important;
  color: var(--primary) !important;
  font-weight: 400;
  min-width: 24px;
  height: 24px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.filterCheckboxGroup .btn-link:hover {
  background-color: #f0f8ff !important;
  color: #003d63 !important;
}

.filterCheckboxGroup .btn-link:focus {
  box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.25) !important;
}

/* Responsive indentation */
@media (max-width: 576px) {
  .filterCheckboxGroup .filter-option-group .nested-options {
    margin-left: 8px;
    padding-left: 12px;
  }
}

/* Year Chart Filter Styles */
.yearChartFilter {
  padding: 8px 0;
}

.chartContainer {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 8px;
}

.chartBar {
  border-radius: 2px 2px 0 0;
  min-height: 4px;
}

.chartBar.selectable:hover {
  opacity: 0.8;
}

.chartBar.selected {
  background-color: var(--primary) !important;
}

.chartLabels {
  padding: 0 12px;
  font-size: 0.75rem;
  color: #666;
}

/* Year Slider Filter Styles */
.year-slider-filter .dual-range-container {
  position: relative;
  height: 24px;
  margin: 8px 0;
}

.year-slider-filter .range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: transparent;
  outline: none;
  position: absolute;
  margin: 0;
  pointer-events: all;
}

.year-slider-filter .range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.year-slider-filter .range-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--primary);
  cursor: pointer;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  -moz-appearance: none;
}

.year-slider-filter .range-slider::-webkit-slider-track {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: transparent;
  border-radius: 2px;
}

.year-slider-filter .range-slider::-moz-range-track {
  height: 4px;
  background: transparent;
  border-radius: 2px;
  border: none;
}

.year-slider-filter .range-slider:hover::-webkit-slider-thumb {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.year-slider-filter .range-slider:hover::-moz-range-thumb {
  transform: scale(1.1);
  transition: transform 0.2s ease;
}

.year-slider-filter .range-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3);
}

.year-slider-filter .range-slider:focus::-moz-range-thumb {
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.3);
}

/* Improved responsive bar chart */
.year-chart-filter .chart-container {
  width: 100%;
  overflow: hidden;
}

.year-chart-filter .chart-bar {
  transition: all 0.2s ease;
}

.year-chart-filter .chart-bar.selectable:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

/* Active Filters Display Styles */
.active-filters-display {
  border-top: 1px solid #f0f0f0;
  padding: 16px;
  margin-top: 8px;
  background-color: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.active-filters-header {
  margin-bottom: 12px;
}

.active-filters-title {
  color: var(--primary);
  font-weight: 500;
  font-size: 0.875rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.active-filters-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.active-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.active-filter-section-title {
  font-size: 0.75rem;
  color: #666;
  font-weight: 500;
  text-transform: capitalize;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #ffffff;
  border: 1px solid var(--primary);
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 16px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.active-filter-chip:hover {
  background-color: #f0f8ff;
  box-shadow: 0 2px 4px rgba(var(--primary-rgb), 0.15);
}

.active-filter-chip-label {
  line-height: 1.4;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-filter-chip-remove {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 5px;
  margin: 0;
  margin-left: 0px;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.active-filter-chip-remove svg {
  width: 100%;
  height: 100%;
}

.active-filter-chip-remove:hover {
  background-color: var(--primary);
  color: #ffffff;
  opacity: 1;
}

.active-filter-chip-remove:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  opacity: 1;
}

.active-filter-chip-remove:active {
  transform: scale(0.9);
}

/* Footer Styles */
.filterFooter {
  border-top: 1px solid #f0f0f0;
  padding-top: 12px;
  margin-top: 0;
  background-color: #ffffff;
  border-radius: 0 0 8px 8px;
}

.filterFooter .btn {
  font-size: 0.875rem;
  padding: 6px 12px;
  border-radius: 6px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .filter-sidebar {
    /* Remove sticky positioning on mobile to prevent scroll hijacking */
    position: relative !important;
    top: auto !important;
    margin-bottom: 24px;
    touch-action: pan-y;
    height: auto;
    max-height: none;
  }

  .filter-sidebar-scroll {
    overflow-y: visible;
    flex: none;
    min-height: auto;
  }
  
  .filterHeader {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 12px;
  }
  
  .applyButton {
    align-self: stretch;
    text-align: center;
  }

  .active-filters-display {
    padding: 12px;
  }

  .active-filter-chip-label {
    max-width: 150px;
  }
} 

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.2.1_@babel+core@7.28.0_react-dom@19.1.0_react@19.1.0__react@19.1.0_sass@1.89.2/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[10].use[3]!./app/platform-specific-components/Monitoraggio/Summary/index.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
.summary-container {
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    padding: 20px 40px 10px 40px !important;
    border-radius: 10px;
}

.summary-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.summary-indicator {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.summary-icon {
    width: 40px;
    height: 40px;
}

.summary-value {
    font-size: max(1rem, 1.5vw);
    font-weight: 600;
    line-height: 1;
}

.summary-label {
    font-size: 0.9rem;
    font-weight: 400;
    line-height: 1;
}

@media (max-width: 768px) {
    .summary-container {
        /* Account for fixed navbar on mobile - padding: top right bottom left */
        padding: 70px 15px 12px 15px !important;
    }

    .summary-row {
        margin: 0 !important;
        /* Reduce row gaps for 2-column layout */
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.5rem;
    }

    /* Override text-center on mobile for left alignment */
    .summary-row [class*="col-"] {
        text-align: left !important;
    }

    .summary-indicator {
        gap: 8px;
        /* Icon next to text content horizontally */
        justify-content: flex-start;
        align-items: center;
    }

    .summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
        flex: 1;
    }

    .summary-icon {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
    }

    .summary-value {
        font-size: 1.3rem;
        line-height: 1.1;
    }

    .summary-label {
        font-size: 0.75rem;
        text-align: left !important;
        line-height: 1.2;
        /* Allow text wrapping for long labels */
        word-wrap: break-word;
        hyphens: auto;
    }
}

@media (max-width: 480px) {
    .summary-container {
        /* Account for fixed navbar on small mobile - padding: top right bottom left */
        padding: 10px 12px 10px 12px !important;
    }

    .summary-row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .summary-indicator {
        gap: 6px;
        justify-content: flex-start;
        align-items: center;
    }

    .summary-item {
        align-items: flex-start;
    }

    .summary-icon {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .summary-value {
        font-size: 1.15rem;
    }

    .summary-label {
        font-size: 0.7rem;
        text-align: left !important;
    }
}
