/* --- Cores Customizadas --- */
:root {
    --cor-laranja-escura: #D9531E;
    --cor-cinza-escuro: #343a40;
    --cor-cinza-mapa: #e9ecef;
    --cor-texto-sidebar: #f1f1f1;
    --cor-texto-sidebar-hover: #ffffff;
    --cor-borda-separador: #495057;
}

/* --- Estilos Gerais --- */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /*overflow: hidden; /* Evita scroll na página inteira */
}

/* --- Navbar Customizada --- */
.navbar-custom {
    background-color: var(--cor-laranja-escura);
}
.navbar-custom .navbar-brand,
.navbar-custom .nav-link,
.navbar-custom .navbar-toggler-icon {
    color: white;
}
.navbar-custom .nav-link:hover {
    color: #e0e0e0;
}








/* --- Submenus (Dropdowns) Estilo Corporate --- */
.navbar-custom .dropdown-menu {
    background-color: #2C3E50; /* Azul Marinho (o mesmo dos gráficos) */
    border: none;
    border-top: 3px solid var(--cor-laranja-escura, #D9531E); /* Linha de destaque no topo */
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    padding: 0; /* Remove espaçamento extra */
    overflow: hidden;
}

/* Cor do texto dos links */
.navbar-custom .dropdown-item {
    color: #ecf0f1; /* Branco suave */
    padding: 12px 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

/* Efeito ao passar o rato (Hover) */
.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background-color: var(--cor-laranja-escura, #D9531E); /* Fica laranja */
    color: white;
    padding-left: 25px; /* Pequena animação de movimento para a direita */
}


/* --- Layout Principal --- */
#layoutPrincipal {
    display: flex;
    flex: 1;
    overflow: hidden; 
}

/* --- Sidebar --- */
#sidebar {
    width: 250px;
    background-color: var(--cor-cinza-escuro);
    color: var(--cor-texto-sidebar);
    transition: all 0.3s;
    position: fixed;
    top: 56px; 
    bottom: 0;
    left: 0;
    z-index: 1000;
    overflow-y: auto; /* Scroll apenas no sidebar */
}

/* --- Área de Conteúdo --- */
#conteudoPrincipal {
    flex: 1;
    margin-left: 250px;
    transition: margin-left 0.3s;
    margin-top: 56px;
    height: calc(100vh - 56px);
    overflow: hidden;
    padding: 0; 
    position: relative; 
}

/* O contentor do mapa */
#map {
    width: 100%;
    height: 100%;
    background-color: var(--cor-cinza-mapa);
    position: relative; /* OBRIGATÓRIO para o painel ficar dentro do mapa */
    z-index: 1;
}

/* Controlo de camadas do Leaflet */
.leaflet-control-layers-base { 
    background: #fff; 
    padding: 5px; 
    border-radius: 5px; 
}

/* Estilos dos itens da Sidebar */
.sidebar-item {
    padding: 1rem 1.5rem;
    color: var(--cor-texto-sidebar);
}
.sidebar-item .form-check-label {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    width: 100%;
}

/* --- Estilos de Colapso (Mobile) --- */
@media (max-width: 991.98px) {
    #sidebar { left: -250px; }
    #sidebar.aberto { left: 0; }
    #conteudoPrincipal { margin-left: 0; }
    .sidebar-overlay {
        position: absolute; 
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
        display: none;
    }
    #sidebar.aberto + #conteudoPrincipal .sidebar-overlay {
        display: block;
    }
}

/* --- Estilos da Legenda --- */
.info.legend {
    background-color: white;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid rgba(0,0,0,0.2);
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    font-family: sans-serif;
    font-size: 12px;
    line-height: 1.5;
    min-width: 150px;
    color: #333;
    
    /* Garante que aparece acima do mapa */
    position: relative;
    z-index: 9999;
}
/*
.info.legend.visible {
    display: block; 
}
*/
.info.legend h6 {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}
.info.legend div { clear: both; }
/*
.info.legend i {
    width: 18px;
    height: 18px;
    float: left;
    margin-right: 8px;
    opacity: 0.8;
    border: 1px solid #555;
    border-radius: 4px;
}
*/
.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}
.legend-icon img {
    max-width: 24px;
    height: auto;
}


/* Estilos para o formulário de importação */
.import-container {
    padding-top: 40px; 
    padding-bottom: 40px; 
    overflow-y: auto; 
    height: calc(100vh - 56px);
}
.card-header-custom {
    background-color: var(--cor-laranja-escura);
    color: white;
    font-weight: 600;
}
.btn-laranja {
    background-color: var(--cor-laranja-escura);
    border-color: var(--cor-laranja-escura);
    color: white;
    font-weight: 500;
}
.btn-laranja:hover {
    background-color: #b9481a;
    border-color: #b9481a;
    color: white;
}

#modal-loader {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Estilo profissional para os itens da lista de conectores */
.connector-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eee;
}

.connector-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.power-badge {
    background: #f8f9fa;
    padding: 8px 15px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.price-tag {
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 600;
}
/* --- LEGENDA EXPANSÍVEL (Estilo Leaflet) --- */
.custom-legend-control {
    background: white;
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    cursor: pointer;
    overflow: hidden;
    transition: width 0.3s, height 0.3s;
    
    /* Margem padrão para PC */
    margin-bottom: 0px; 
}

/* AJUSTE PARA TELEMÓVEL: Empurrar para cima */
@media (max-width: 768px) {
    .custom-legend-control {
        /* Aumenta a margem inferior para fugir às barras do browser */
        margin-bottom: 50px !important; 
        margin-right: 10px !important; /* Afasta um pouco da direita também */
    }
}

/* O Botão (Ícone) quando fechado */
.legend-toggle-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #333;
    background-color: #fff;
}
.legend-toggle-btn:hover {
    background-color: #f4f4f4;
}

/* O Conteúdo da Legenda (Escondido por defeito) */
.legend-content {
   display: none;
    padding: 10px;
    min-width: 200px; /* Largura mínima quando aberto */
    font-size: 0.9rem;
    line-height: 1.5;
    background: white;
}

/* ESTADO EXPANDIDO (Classe que o JS adiciona) */
.custom-legend-control.expanded .legend-toggle-btn {
    display: none; /* Esconde o botão */
}
.custom-legend-control.expanded .legend-content {
    display: block; /* Mostra o conteúdo */
}



/* ==========================================================================
   PAINEL DE FILTROS ATIVOS (BARRA FLUTUANTE INFERIOR)
   ========================================================================== */

/* Painel Flutuante no Fundo */
/* Painel Flutuante no Fundo */
#active-filters-panel {
    position: absolute;
    bottom: 30px;          /* Distância do fundo */
    left: 50%;             /* Centro da tela */
    transform: translateX(-50%); /* Ajuste para ficar perfeitamente centrado */
    
    z-index: 9999 !important; /* CRÍTICO: Valor alto para ficar acima do Leaflet */
    
    background-color: rgba(248, 249, 250, 0.95); /* Cinza claro profissional */
    backdrop-filter: blur(5px); /* Efeito vidro */
    
    padding: 10px 20px;
    border-radius: 50px; /* Cápsula redonda */
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); /* Sombra forte para destacar do mapa */
    border: 1px solid rgba(0,0,0,0.1);
    
    display: none; /* Começa escondido, o JS ativa-o */
    
    max-width: 90%;
    white-space: nowrap;
    overflow-x: auto; /* Scroll se houver muitas tags */
}

/* Esconder barra de scroll */
#active-filters-panel::-webkit-scrollbar { display: none; }

/* Estilo das Tags (Pastilhas) */
.af-tag {
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    color: #495057;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0 5px;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.af-tag strong {
    color: #D9531E; /* A sua cor laranja */
    margin-right: 5px;
}

/* Rótulo "Filtros Ativos:" */
.af-label {
    font-size: 0.7rem;          /* Letra pequena */
    font-weight: 800;           /* Negrito forte */
    text-transform: uppercase;  /* Tudo em maiúsculas */
    color: #adb5bd;             /* Cinzento claro para não distrair */
    margin-right: 12px;         /* Espaço até à primeira tag */
    letter-spacing: 1px;        /* Espaçamento entre letras */
    white-space: nowrap;
}

/* ==========================================================================
   6. AJUSTES DO BOOTSTRAP-SELECT E MODAL
   ========================================================================== */
/* Ajuste para o botão do dropdown parecer um input normal */
.bootstrap-select .dropdown-toggle {
    border: 1px solid #ced4da;
    background-color: #fff;
}

/* Garante que a lista de opções fica ACIMA do footer do modal e não é cortada */
.bootstrap-select .dropdown-menu {
    z-index: 1060; 
    max-height: 300px !important;
}

/* Ajuste do Modal para garantir que não corta os dropdowns */
.modal-body {
    overflow-y: visible !important; /* Permite que o dropdown saia da caixa se necessário */
    padding-bottom: 100px; /* Espaço extra no fundo para abrir o select confortavelmente */
}



/* ==========================================================================
   7. ESTILOS DO MODAL DE PESQUISA AVANÇADA
   ========================================================================== */

/* Aumentar a altura e estilo dos Inputs Normais (Distrito, Concelho, Morada) */
.input-prof {
    height: 50px; /* Aumenta a altura conforme pediu */
    border-radius: 6px;
    border: 1px solid #ced4da;
    background-color: #fff;
    font-size: 1rem;
    padding-left: 15px;
    transition: all 0.2s;
}

.input-prof:focus {
    border-color: var(--cor-laranja-escura);
    box-shadow: 0 0 0 0.25rem rgba(217, 83, 30, 0.15);
}

/* Ajustes no plugin Bootstrap-Select para igualar a altura */
.bootstrap-select .dropdown-toggle {
    height: 50px !important; /* Força a mesma altura dos outros inputs */
    background-color: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 6px !important;
    display: flex;
    align-items: center;
}

.bootstrap-select .dropdown-toggle:focus {
    outline: none !important;
    border-color: var(--cor-laranja-escura) !important;
}

.bootstrap-select .filter-option-inner-inner {
    font-size: 1rem; /* Texto legível */
    padding-top: 4px; /* Pequeno ajuste vertical */
}

/* Melhorar a lista dropdown */
.dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border: none;
    padding: 10px;
}

.dropdown-menu li a {
    padding: 8px 15px;
    border-radius: 4px;
}

/* Fundo do modal mais profissional */
.modal-content {
    border-radius: 12px;
    overflow: hidden; /* Para os cantos arredondados funcionarem */
}

/* Títulos das secções */
.modal-body h6 {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 5px;
    display: inline-block;
}
.map-stats-glass {
    position: absolute;
    bottom: 20px;            /* Distância do fundo */
    left: 15px;              /* AGORA À ESQUERDA */
    z-index: 1050;           /* Acima do mapa */
    width: 280px;
    max-height: 45vh;        /* Altura máxima para não tapar o centro */
    background: rgba(244, 246, 248, 0.8); /* Mais opaco para leitura fácil */
    backdrop-filter: blur(12px);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.4);
    
    overflow-y: auto; 
    pointer-events: auto;    /* Crucial para aceitar o scroll */

    transition: max-height 0.3s ease, padding-bottom 0.3s ease;
    overflow: hidden; /* Importante para a animação funcionar */
}

/* ESTADO MINIMIZADO */
.map-stats-glass.minimized {
    max-height: 55px !important; /* Altura apenas do cabeçalho */
    padding-bottom: 0 !important;
    overflow: hidden;
}

/* Opcional: Efeito hover no cabeçalho para indicar que é clicável */
.stats-header:hover {
    opacity: 0.8;
}
/* Estilo para a barra de scroll do painel */
.map-stats-glass::-webkit-scrollbar { width: 5px; }
.map-stats-glass::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }



.map-stats-glass::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 10px;
}



.map-stats-glass::-webkit-scrollbar-thumb:hover {
    background: var(--cor-laranja-escura);
}

#map-stats-panel {
    display: none; /* Garante que começa escondido */
}


.stats-sub-title {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #888;
    margin-top: 10px;
    margin-bottom: 5px;
}

.mini-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    padding: 2px 0;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.mini-item span { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.mini-item strong { color: var(--cor-laranja-escura); }

.stats-scroll-area {
    max-height: 120px;
    overflow-y: auto;
    padding-right: 5px;
    margin-bottom: 8px;
}

/* Scrollbar fina para o painel */
.stats-scroll-area::-webkit-scrollbar { width: 3px; }
.stats-scroll-area::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }



.modal {
        z-index: 99999 !important;
    }
    .modal-backdrop {
        z-index: 99998 !important;
    }
    

    /*Datatables CRUDES*/


      /* Estrutura Base */
       
      #layout-galp { height: 100vh; overflow: hidden; margin: 0; background-color: #f8f9fa; font-family: 'Segoe UI', system-ui, sans-serif; }
        #layout-galp{ padding-top: 60px; }
       
       
      
/* ================================================= */
        /* CSS ESPECÍFICO PARA ESTA PÁGINA (Scoped via ID) */
        /* ================================================= */
        
        /* Aplica apenas se o body tiver o ID layout-galp */
        #layout-galp {
            height: 100vh;
            overflow: hidden; /* Impede scroll na página principal */
            margin: 0;
            background-color: #f8f9fa;
            font-family: 'Segoe UI', system-ui, sans-serif;
            padding-top: 60px;
            display: flex;         /* Necessário para o layout flexbox funcionar */
            flex-direction: column;
        }

        #layout-galp main { 
            flex: 1; 
            display: flex; 
            flex-direction: column; 
            padding: 25px; 
            overflow: hidden; 
        }

   
   

        /* Card Principal Estilo "Dashboard" */
        .card-dashboard {
            border: none;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            background: white;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        /* Cabeçalho Limpo (Opção 1: Galp Tint Suave) */
        .card-header-clean {
            background-color: #fff5f0; /* Fundo Laranja muito suave */
            border-bottom: 1px solid #ffe5d0;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-radius: 8px 8px 0 0;
        }
        .page-title { font-size: 1.1rem; font-weight: 700; color: #333; margin: 0; }
        .page-title i { color: #EA5B0C; margin-right: 8px; }

        /* --- ESTILOS COMPACTOS DA TABELA --- */
        .dataTables_wrapper { height: 100%; display: flex; flex-direction: column; padding: 10px 20px 10px 20px; }
        .dataTables_scroll { flex: 1; overflow: hidden; border: 1px solid #dee2e6; }
        
        /* Cabeçalho da Tabela */
        .dataTables_scrollHeadInner table thead th {
            background-color: #343a40 !important;
            color: #fff !important;
            font-weight: 600;
            font-size: 0.75rem; 
            text-transform: uppercase;
            padding: 8px 10px !important;
            border-bottom: none;
            white-space: nowrap;
        }
        
        /* Corpo da Tabela */
        table.dataTable tbody td { 
            vertical-align: middle; 
            font-size: 0.8rem !important; 
            padding: 4px 8px !important; 
            line-height: 1.2;
        }
        
        /* Badges Compactos */
        .badge-compact {
            font-size: 0.7rem;
            padding: 2px 6px !important;
            font-weight: 500;
        }
        .badge-status-ativo { background-color: #d1e7dd; color: #0f5132; border: 1px solid #badbcc; }
        .badge-status-inativo { background-color: #f8d7da; color: #842029; border: 1px solid #f5c2c7; }
        
        /* Botões de Ação Compactos */
        .btn-action-sm {
            padding: 1px 5px;
            font-size: 0.75rem;
            line-height: 1.2;
        }

        /* Botões de Exportação Personalizados (Sem fundo cinza) */
        .dt-buttons .btn {
            background-color: #ffffff !important;
            border: 1px solid #dee2e6 !important;
            color: #666 !important;
            font-size: 0.8rem;
            padding: 4px 10px;
            box-shadow: none;
        }
        .dt-buttons .btn:hover {
            background-color: #f8f9fa !important;
            color: #EA5B0C !important;
            border-color: #EA5B0C !important;
        }
        
        .btn-galp { background-color: #EA5B0C; color: white; border: none; font-weight: 500; font-size: 0.85rem; }
        .btn-galp:hover { background-color: #cd4e0a; color: white; }

        /* Modal Compacto */
        .modal-body { padding: 20px; background-color: #fafafa; }
        .form-label { font-size: 0.75rem; font-weight: 700; margin-bottom: 2px; }
        .form-control, .form-select { font-size: 0.85rem; padding: 5px 10px; }
        .nav-tabs .nav-link { font-size: 0.85rem; padding: 8px 12px; }


        /* Botão da Página Ativa (Fundo Escuro igual ao Título) */
.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: #343a40 !important;
    border-color: #343a40 !important;
    color: #ffffff !important;
    box-shadow: none;
}

/* Texto dos outros botões (Cinza Escuro) */
.dataTables_wrapper .pagination .page-link {
    color: #343a40 !important; 
}

/* Efeito ao passar o rato (Hover) */
.dataTables_wrapper .pagination .page-link:hover {
    background-color: #e9ecef !important;
    color: #000 !important;
}

/* Corrigir o foco (remove o anel azul padrão do Bootstrap) */
.dataTables_wrapper .pagination .page-link:focus {
    box-shadow: 0 0 0 0.25rem rgba(52, 58, 64, 0.25) !important;
}

/* Estilização do Footer */
.footer-custom {
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    

    /* Garante que o footer não flutue se houver pouco conteúdo */
    width: 100%;
}

.tracking-wider {
    letter-spacing: 0.05em; /* Dá um ar mais moderno ao nome LeadFlux */
    color: #f5f1f1
}

/* Estilo do Preloader Fullscreen */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999; /* Máxima prioridade */
    transition: opacity 0.5s ease;
}

.loader-content {
    text-align: center;
}

.spinner-lead {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #EA5B0C; /* Laranja Galp */
    border-radius: 50%;
    animation: spin-preloader 1s linear infinite;
    margin: 0 auto 15px;
}

.loader-content p {
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

@keyframes spin-preloader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Classe para esconder com suavidade */
.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.8) !important;
    opacity: 1; /* Garante que a transparência não a esconda */
    margin: 0.5rem 0;
}

/* Animação para o marcador de destaque */
.gps_ring {
    border: 3px solid #ea5b0c; /* Cor Laranja Galp/LeadFlux */
    -webkit-border-radius: 30px;
    height: 30px;
    width: 30px;
    position: absolute;
    left: -5px;
    top: -5px;
    -webkit-animation: pulsate 1s ease-out;
    -webkit-animation-iteration-count: infinite; 
    opacity: 0.0;
    border-radius: 30px;
}

@keyframes pulsate {
    0% {-webkit-transform: scale(0.1, 0.1); opacity: 0.0;}
    50% {opacity: 1.0;}
    100% {-webkit-transform: scale(1.2, 1.2); opacity: 0.0;}
}


/* Timeline Vertical Simples */
.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    padding-bottom: 0.5rem;
    border-left: 2px solid #e9ecef;
}
.timeline-item:last-child {
    border-left: 2px solid transparent;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0; /* Ajustar conforme altura do texto */
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #adb5bd; /* Cor padrão */
    border: 2px solid #fff;
}
.timeline-item.active::before {
    background-color: #198754; /* Verde para concluídos */
    width: 10px;
    height: 10px;
    left: -6px;
}
.label-icon { width: 20px; text-align: center; display: inline-block; color: #6c757d; }

/*FILTROS DA TABELA DAS LEADS */

    /* O contentor principal serve de âncora */
    #accordionFiltros {
        position: relative;
        z-index: 1000; /* Garante que o botão fica acima de elementos da tabela */
    }

    /* O conteúdo que abre (collapse) */
    #collapseFiltros {
        position: absolute; /* Tira do fluxo normal para não empurrar nada */
        top: 100%; /* Começa logo abaixo do botão */
        left: 0;
        width: 100%; /* Ocupa a largura total */
        z-index: 1050; /* Z-index superior ao da tabela e headers fixos */
       box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }
    
    /* Garante que o fundo não é transparente para não se ver a tabela por trás */
    #collapseFiltros .accordion-body {
       background-color: #e9ecef; 
        border: 1px solid #ced4da;
        border-top: none;
    }

      
                            /* Estado Normal (Inativo): Fundo Branco */
                            #filtrosTab .nav-link {
                                background-color: white;
                                color: #495057; /* Cinza escuro */
                                transition: all 0.2s;
                            }
                            /* Estado Ativo (Selecionado): Força o Azul do teu template */
                            #filtrosTab .nav-link.active {
                                background-color: var(--bs-primary) !important;
                                color: white !important;
                            }
                        
/*FIM FILTROS DA TABELA DAS LEADS */