/*
 * Define os estilos da lista de achados/vulnerabilidades.
 */

.findings-list {
    width: 100%;
}

.findings-header-info {
    font-size: 1em;
    color: #212121;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eeeeee;
}

.findings-header-info strong {
    color: #212121;
}

.findings-product-name {
    font-size: 1rem;
    font-weight: 400;
    color: #212121;
    margin: 1rem 0 0 0;
}

.findings-branch-name {
    font-size: 1rem;
    font-weight: 400;
    color: #212121;
    margin: 0.25rem 0 0 0;
}

.findings-header-info {
    margin-top: 2rem;
}

.finding-item {
    background-color: #fff;
    border: 1px solid #eeeeee;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.finding-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1rem 1rem;
    height: 40px;
    color: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.finding-severity {
    font-weight: bold;
    font-size: 0.9em;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    white-space: nowrap;
}

.finding-message {
    font-weight: 600;
    font-size: 1.1em;
}

.finding-header.critical {
    background-color: rgba(239, 83, 80, 0.8);
}

.finding-header.high {
    background-color: rgba(255, 112, 67, 0.8);
}

.finding-header.medium {
    background-color: rgba(255, 167, 38, 0.8);
    color: white;
}

.finding-header.low {
    background-color: rgba(66, 165, 245, 0.8);
    color: white;
}

.finding-header.unknown {
    background-color: rgba(92, 107, 192, 0.8);
    color: white;
}

.finding-header.note,
.finding-header.info {
    background-color: rgba(66, 165, 245, 0.8);
}

.finding-body {
    padding: 1.5rem;
    background-color: #fafafa;
}

.finding-location {
    font-size: 1em;
    color: #212121;
    margin-bottom: 1rem;
}

.finding-path {
    font-family: monospace;
    background-color: #eeeeee;
    color: #212121;
    padding: 3px 6px;
    border-radius: 3px;
    word-break: break-all;
}

.finding-metadata {
    margin-bottom: 1rem;
}

.finding-metadata strong {
    color: #212121;
}

.finding-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tag {
    font-size: 0.85em;
    padding: 4px 10px;
    border-radius: 15px;
    background-color: #eeeeee;
    color: #212121;
    font-weight: 500;
}

.cwe-tag {
    background-color: #e3f2fd;
    color: #0d47a1;
}

.owasp-tag {
    background-color: #ffebee;
    color: #b71c1c;
}

.impact-tag {
    background-color: #eceff1;
}

.finding-fix {
    margin-top: 1rem;
}

.finding-fix strong {
    color: #212121;
}

.finding-fix pre {
    background-color: #eeeeee;
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #e0e0e0;
}

.finding-fix code {
    font-family: "Courier New", Courier, monospace;
}

.finding-item-empty {
    padding: 2rem;
    text-align: center;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.finding-description-container {
    margin-top: 10px;
}

.finding-description-text {
    margin-top: 5px;
    font-size: 0.95em;
    line-height: 1.5;
    color: #212121;
}
