@use '@/styles/breakpoints' as *;

.root {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.metrics {
    margin-bottom: 0;
}

.sectionTitle {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary, rgba(0, 0, 0, 0.88));
}

.coverageTags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.expandBlock {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 4px 0 8px;
}

.expandLabel {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary, rgba(0, 0, 0, 0.45));
    margin-bottom: 4px;
}

.gapList {
    margin: 0;
}

.gapItem {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
}

.drawerMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.viewToggle {
    margin-bottom: 12px;
}

.matrizLista {
    background: transparent;
}

.matrizListaLabel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 8px;
}

.matrizListaTitle {
    font-size: 14px;
    line-height: 1.35;
}

.treeList {
    margin: 0;
    padding-left: 18px;
}

.detailLink {
    padding-inline: 0;
    min-height: 44px;
    align-self: flex-start;
}

.edgeCards {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.edgeCard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--border-light, #f0f0f0);
    border-radius: 8px;
    background: var(--surface, #fff);
}

.edgeTitle {
    font-size: 13px;
    line-height: 1.4;
    word-break: break-word;
}

.edgeActions {
    margin-top: 4px;
}

.impactSelect {
    width: 100%;
    min-width: 0;
}

.tipologicoLista {
    margin-top: 12px;
    background: transparent;
}

@include max-mobile {
    .root {
        gap: 12px;
    }

    .gapItem {
        flex-direction: column;
        align-items: stretch;
    }
}

@include max-mobile-sm {
    .root {
        gap: 12px;
    }
}
