/* ---------- painel gerencial avançado ---------- */
  .advanced-filter-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    align-items:end;
  }
  .advanced-filter-grid .filter-title,
  .advanced-filter-grid .filter-info{grid-column:1/-1;}
  .filter-search{grid-column:span 2;}
  .executive-grid{grid-template-columns:repeat(6,1fr);}
  .report-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;}
  .report-grid .panel{margin-bottom:20px;}
  .table-scroll{overflow-x:auto;}
  .rank-item,.action-item,.alert-item,.topic-item{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    padding:11px 0;border-bottom:1px solid var(--line);
  }
  .rank-item:last-child,.action-item:last-child,.alert-item:last-child,.topic-item:last-child{border-bottom:0;}
  .rank-main{min-width:0;}
  .rank-title{font-size:13.5px;font-weight:800;}
  .rank-meta{font-size:11.5px;color:var(--muted);margin-top:3px;}
  .rank-score{font-size:17px;font-weight:900;white-space:nowrap;}
  .rank-position{
    width:26px;height:26px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
    background:#f1eaff;color:var(--purple-dark);font-size:11px;font-weight:900;flex-shrink:0;
  }
  .rank-left{display:flex;align-items:center;gap:10px;min-width:0;}
  .metric-chip{display:inline-block;border-radius:999px;padding:3px 9px;font-size:10.5px;font-weight:800;background:#f1f1f1;color:#333;}
  .metric-chip.good{background:#e4f6eb;color:#197341;}
  .metric-chip.warn{background:#fff1d5;color:#946300;}
  .metric-chip.bad{background:#fde6e4;color:#a83228;}
  .heat-table{width:100%;border-collapse:collapse;font-size:12px;min-width:720px;}
  .heat-table th,.heat-table td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:center;}
  .heat-table th:first-child,.heat-table td:first-child{text-align:left;font-weight:700;}
  .heat-cell{border-radius:8px;font-weight:900;}
  .heat-good{background:#dff4e7;color:#17663a;}
  .heat-mid{background:#fff0c7;color:#7a5600;}
  .heat-bad{background:#fbe0de;color:#972a22;}
  .distribution-block{margin-bottom:16px;}
  .distribution-title{font-size:13px;font-weight:800;margin-bottom:7px;}
  .distribution-row{display:grid;grid-template-columns:48px 1fr 42px;gap:8px;align-items:center;margin:5px 0;font-size:11.5px;}
  .distribution-track{height:8px;background:#eee;border-radius:999px;overflow:hidden;}
  .distribution-fill{height:100%;background:linear-gradient(90deg,var(--purple),var(--orange));border-radius:999px;}
  .trend-card{padding:12px;border:1px solid var(--line);border-radius:12px;margin-bottom:9px;}
  .trend-top{display:flex;justify-content:space-between;gap:10px;font-size:13px;font-weight:800;}
  .trend-delta{font-weight:900;}
  .trend-up{color:#23945a;}
  .trend-down{color:#d34b42;}
  .trend-flat{color:var(--muted);}
  .contact-link{color:var(--purple);font-weight:800;text-decoration:none;}
  .topic-bar{width:120px;height:7px;background:#eee;border-radius:999px;overflow:hidden;flex-shrink:0;}
  .topic-fill{height:100%;background:linear-gradient(90deg,var(--purple),var(--orange));}
  .alert-item{align-items:flex-start;justify-content:flex-start;}
  .alert-icon{font-size:18px;line-height:1;}
  .empty-mini{color:var(--muted);font-size:13px;padding:12px 0;}
  body.dark-mode .rank-position{background:#3b2a59;color:#e5d5ff;}
  body.dark-mode .metric-chip{background:#30343d;color:#e8e8e8;}
  body.dark-mode .metric-chip.good{background:#183b2a;color:#8ce0ad;}
  body.dark-mode .metric-chip.warn{background:#443719;color:#ffd879;}
  body.dark-mode .metric-chip.bad{background:#482421;color:#ffaaa3;}
  body.dark-mode .heat-good{background:#193c2a;color:#8ee0ae;}
  body.dark-mode .heat-mid{background:#493b1b;color:#ffdd81;}
  body.dark-mode .heat-bad{background:#4b2422;color:#ffaaa4;}
  body.dark-mode .distribution-track,body.dark-mode .topic-bar{background:#30343d;}
  body.dark-mode .contact-link{color:#c9a8ff;}

  @media(max-width:980px){
    .executive-grid{grid-template-columns:repeat(3,1fr);}
    .advanced-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  }
  @media(max-width:760px){
    .report-grid{grid-template-columns:1fr;}
    .advanced-filter-grid{grid-template-columns:1fr 1fr;}
    .filter-search{grid-column:1/-1;}
  }
  @media(max-width:560px){
    .executive-grid{grid-template-columns:repeat(2,1fr);}
    .advanced-filter-grid{grid-template-columns:1fr;}
    .advanced-filter-grid .filter-title,
    .advanced-filter-grid .filter-info,
    .filter-search{grid-column:1;}
  }
