/* ═══════════════════════════════════════════════════════════════
   PAINEL DE CAMADAS ATIVAS — embutido na sidebar (Inspetor)
═══════════════════════════════════════════════════════════════ */
.active-layers-section {
    display: none;
    flex-direction: column;
    padding: 14px 14px 10px;
    border-top: 1px solid var(--line, var(--border));
    flex: 1 1 auto;
    overflow-y: auto;
  }
  
  .active-layers-section.open {
    display: flex;
  }
  
  .alp-section-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
  }
  
  /* reaproveita .alp-title / .alp-count / .alp-clear já existentes em panels.css */
  
  .alp-empty {
    display: none;
    padding: 24px 8px;
    text-align: center;
    font-size: 12px;
    color: var(--text-hint);
    line-height: 1.5;
  }
  
  .active-layers-section:has(#alpChips:empty) .alp-empty {
    display: block;
  }
  .active-layers-section:has(#alpChips:empty) .alp-chips {
    display: none;
  }
  
  /* chips ocupam 100% da largura da sidebar, empilhados em vez de wrap livre */
  .active-layers-section .alp-chips {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  
  .active-layers-section .alp-chip {
    max-width: none;
    width: 100%;
    justify-content: space-between;
  }

  .rail-btn-badge {
    position: absolute !important;
    top: 2px !important;
    right: 2px !important;
    min-width: 15px;
    height: 15px;
    border-radius: 999px;
    background: #F6D154;
    color: #4A3B00;
    font-size: 9px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    pointer-events: none;
    box-shadow: 0 0 0 2px #fff;
  }

  .active-layers-panel { display: none !important; }
