.cdp-chart-section,.cdp-table-section { width:100%; min-width:0; }
.cdp-chart-section [hidden],.cdp-table-section[hidden] { display:none!important; }
.cdp-chart-tabs { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; margin:12px 0; }
.cdp-chart-tabs[hidden] { display:none!important; }
.cdp-chart-tab { min-height:34px; margin:0; padding:6px 12px; border:1px solid #dce2ea; border-radius:6px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
.cdp-chart-tab.active { background:#eef3fa; border-color:#8b9db7; }
.cdp-chart-tab:focus-visible { outline:2px solid #2878c8; outline-offset:2px; }
.cdp-chart-pane { width:100%; min-width:0; }
.cdp-chart-pane[hidden] { display:none!important; }
.cdp-chart-pane .indic_table { display:block!important; width:100%; height:480px; }
#cdp-pane-tree #treemap { height:700px; }
#cdp-pane-pie #chartpie { height:550px; }
.cdp-table-section { display:block!important; margin-top:28px; }
.cdp-table-title { margin:0 0 12px; font-size:20px; font-weight:400; }
.cdp-table-section #indt_cont { min-width:0; }
.cindicator_detail .prods_block { display:block; }
.cindicator_detail .ind_head { opacity:1; }
@media(max-width:460px) { #cdp-pane-pie #chartpie { height:360px; } }

.cindicator_detail [hidden] { display:none!important; }
.cdp-chart-section .graph_hd_block { min-height:24px; }
/* Shared chart toolbar: selected scope, chart kinds, then download. */
.cdp-chart-toolbar { display:grid; grid-template-columns:minmax(140px,1fr) auto minmax(90px,1fr); align-items:center; gap:8px; margin:2px 0 4px; }
.cdp-chart-toolbar .cdp-chart-tabs { margin:0; gap:6px; }
.cdp-chart-toolbar .cdp-chart-tab { min-height:30px; padding:4px 10px; font-size:13px; }
.cdp-selection-title { min-width:0; font-size:14px; font-weight:500; line-height:20px; }
.cdp-chart-actions { display:flex; justify-content:flex-end; }
#cdp-chart-download { position:static!important; display:inline-flex; min-height:30px; margin:0; padding:4px 10px; border:0; border-radius:6px; background:#f7f7f7; color:inherit; font:inherit; font-size:12px; cursor:pointer; }
#cdp-chart-download[hidden] { display:none!important; }
.cdp-chart-pane .indic_table { margin-top:0!important; padding-top:0!important; }
.cdp-table-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.cdp-table-section > .cdp-selection-title { margin-bottom:8px; }
.cdp-table-actions .download-wrapper { position:relative; display:flex; justify-content:flex-end; margin:0; }
.cdp-table-actions #downloadExcelAllYears { position:static!important; margin:0; }
.cdp-mobile-chart-control { display:none; }
@media(max-width:760px) {
  .cdp-mobile-chart-control { display:flex; justify-content:flex-end; margin:8px 0; }
  .cdp-mobile-chart-control label { display:flex; align-items:center; gap:7px; margin:0; font-size:13px; cursor:pointer; }
  #cdp-show-chart { position:static; opacity:1; width:32px; height:18px; margin:0; appearance:auto; accent-color:#5277ad; }
  .cdp-chart-toolbar { grid-template-columns:minmax(0,1fr) auto; }
  .cdp-chart-toolbar .cdp-chart-tabs { grid-row:2; grid-column:1/-1; }
}
/* Mobile chart switch keeps the table visible while charts are off. */
@media(max-width:760px) {
  #cdp-show-chart { display:inline-block!important; position:relative; appearance:none; min-width:32px; width:32px; height:18px; border:0; border-radius:12px; background:#cbd4df; cursor:pointer; }
  #cdp-show-chart::before { content:""; position:absolute; left:2px; top:2px; width:14px; height:14px; border-radius:50%; background:#fff; transition:transform .15s; }
  #cdp-show-chart:checked { background:#5277ad; }
  #cdp-show-chart:checked::before { transform:translateX(14px); }
  #cdp-show-chart:focus-visible { outline:2px solid #5277ad; outline-offset:3px; }
}
.cdp-chart-section .graph_hd_block { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:2px; padding-bottom:0; }
.cdp-chart-section .graftitle,.cdp-table-heading .graftitle { margin:0; }
.cdp-table-heading { margin-bottom:4px; }
.cdp-chart-section .get_ind_name,.cdp-table-heading .get_ind_name { min-width:0; flex:1 1 auto; overflow-wrap:anywhere; }
.cdp-chart-actions,.cdp-table-actions { flex:0 0 auto; }
.cdp-table-actions .download-menu { left:auto; right:0; top:100%; }
.cdp-empty-chart { padding:16px 0; color:#7c8796; }

/* Table export menu floats above both tables. */
.cdp-table-section,.cdp-table-heading,.cdp-table-actions { overflow:visible!important; }
.cdp-table-heading { position:relative; z-index:20; }
.cdp-table-actions .download-wrapper { overflow:visible!important; }
.cdp-table-actions .download-menu { position:absolute!important; top:calc(100% + 6px)!important; right:0!important; left:auto!important; bottom:auto!important; width:max-content; min-width:210px; max-width:calc(100vw - 32px); height:auto!important; max-height:70vh; overflow:auto!important; z-index:1000!important; background:#fff; border:1px solid #dce2ea; border-radius:6px; padding:5px; box-shadow:0 4px 14px #0002; }
.cdp-table-actions .download-item { display:block; height:auto!important; min-height:32px; padding:8px 12px; line-height:1.4!important; white-space:normal; cursor:pointer; }
.cdp-table-actions .download-item:hover { background:#f7f7f7; }

/* Compact mobile charts; keep desktop chart heights. */
@media (max-width:760px) {
  #cdp-pane-column #indtable {
    height:240px!important;
    min-height:0!important;
    max-height:none!important;
  }
  #cdp-pane-tree #treemap {
    height:350px!important;
    min-height:0!important;
    max-height:none!important;
  }
}

/* Tables now follow the chart, so no empty tab-panel height is needed. */
.cindicator_detail .indic_table_wrap {
  height:auto!important;
  min-height:0!important;
  padding-bottom:0!important;
  margin-bottom:0!important;
}
#itw-table.cdp-table-section,
#itw-table #indt_cont {
  height:auto!important;
  min-height:0!important;
  padding-bottom:0!important;
  margin-bottom:0!important;
}
#itw-table #indt_cont > .ind_years_table { margin-bottom:12px!important; }
#itw-table #indt_cont > .ind_tree_prods { margin-bottom:0!important; padding-bottom:0!important; }
.cindicator_detail .indic_table_wrap + .indicator-about {
  margin-top:10px!important;
  padding-top:0!important;
}

/* Blur both datasets; one clear message is anchored over the visible chart. */
.cdp-chart-section,.cdp-table-section { position:relative; }
.cdp-chart-section.cdp-access-locked .cdp-chart-pane,
.cdp-table-section.cdp-access-locked #indt_cont {
  filter:blur(5px); opacity:.65; pointer-events:none; user-select:none;
}
.cdp-access-locked .cdp-chart-actions,.cdp-access-locked .cdp-table-actions { pointer-events:none; opacity:.45; }
.cdp-access-message-owner { min-height:280px; }
.cdp-access-message { position:absolute; inset:0; z-index:30; display:flex; align-items:center; justify-content:center; padding:12px; pointer-events:none; }
.cdp-access-message > .pd_block { position:static!important; inset:auto!important; transform:none!important; margin:0!important; display:block!important; width:100%!important; max-width:574px!important; height:auto!important; padding:24px 30px; box-sizing:border-box; background:#fff; box-shadow:0 4px 18px #0003; pointer-events:auto; filter:none!important; opacity:1!important; }
@media(max-width:760px){.cdp-access-message > .pd_block{padding:18px;max-width:100%!important;}.cdp-access-message > .pd_block p{font-size:13px;line-height:1.4;}}
