/* Reports saved with the templates used before November 2026, dressed in the
   current report's look. Scoped to .cf-legacy so nothing else on the page changes. */
.cf-legacy {
    --c-bg: #f3f6f9;
    --c-card: #ffffff;
    --c-text: #1d2733;
    --c-muted: #627080;
    --c-line: #e3e8ee;
    --c-soft: #f6f8fa;
    --c-brand: #1082b4;
    --c-navy: #0f2a43;
    --c-malicious: #d63848;
    --c-malicious-bg: #fdecee;
    --c-malicious-line: #f6c7cc;
    --c-suspicious: #d9822b;
    --c-suspicious-bg: #fdf3e7;
    --c-suspicious-line: #f3d6b5;
    --c-clean: #2a9d5c;
    --c-clean-bg: #e8f6ee;
    --c-heading: #0f2a43;
    background: var(--c-bg);
    color: var(--c-text);
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    padding: 24px 16px 32px;
    text-align: left;
}
@media screen and (prefers-color-scheme: dark) {
    .cf-legacy {
        color-scheme: dark;
        --c-bg: #0e151d;
        --c-card: #16202b;
        --c-text: #e2e8ee;
        --c-muted: #93a2b1;
        --c-line: #283442;
        --c-soft: #1c2733;
        --c-brand: #3ba7d9;
        --c-navy: #1f4566;
        --c-malicious: #ff6f7c;
        --c-malicious-bg: #3b1d23;
        --c-malicious-line: #6b2d36;
        --c-suspicious: #f2a65e;
        --c-suspicious-bg: #3a2a18;
        --c-suspicious-line: #66472a;
        --c-clean: #52c985;
        --c-clean-bg: #163428;
        --c-heading: #e8eef4;
    }
}
.cf-legacy *, .cf-legacy *::before, .cf-legacy *::after { box-sizing: border-box; }
.cf-legacy h2 { margin: 0; }
.cf-legacy a { color: var(--c-brand); text-decoration: none; }

/* header */
.cf-legacy .header {
    max-width: 1120px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.cf-legacy .header-left-content {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1 1 480px;
    margin: 0;
}
.cf-legacy .header-svg-wrapper { flex: 0 0 auto; display: flex; }
.cf-legacy .header-svg-wrapper img { width: auto; max-width: 130px; height: 56px; display: block; }
.cf-legacy .header-analysis-name {
    border-left: 1px solid var(--c-line);
    padding-left: 16px;
    font-size: 20px;
    font-weight: 600;
    color: var(--c-heading);
    overflow-wrap: anywhere;
    min-width: 0;
}
.cf-legacy .header-analysis-name::before {
    content: "Malware analysis report";
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--c-muted);
}
.cf-legacy .header-button-container { display: flex; gap: 8px; flex-wrap: wrap; }
/* the " | " separators and the emoji icons, which the database turned into "?" */
.cf-legacy .header-button-container > span,
.cf-legacy .header-button-icon { display: none; }
/* AI Comments needs the analysis, which the API no longer holds for these reports */
.cf-legacy .header-button[onclick*="openAIChat"] { display: none; }
.cf-legacy .header-button {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid var(--c-line);
    border-radius: 8px;
    background: var(--c-card);
    color: var(--c-text);
    font-size: 13px;
}
.cf-legacy .header-button:hover { border-color: var(--c-brand); color: var(--c-brand); }

/* sections become cards */
.cf-legacy .centered-content { max-width: 1120px; margin: 0 auto; }
.cf-legacy .section,
.cf-legacy .static-results-section,
.cf-legacy .file-type-report-section {
    background: var(--c-card);
    border: 1px solid var(--c-line);
    border-radius: 12px;
    padding: 22px 24px;
    margin: 0 0 16px;
    min-width: 0;
    /* a deep process tree scrolls inside its card instead of widening the page */
    overflow-x: auto;
}
.cf-legacy .section > h2,
.cf-legacy .static-results-section > h2,
.cf-legacy .file-type-report-section > h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--c-heading);
    margin: 0 0 14px;
}

/* key / value tables */
.cf-legacy table { border-collapse: collapse; width: 100%; }
.cf-legacy table.file-information td {
    padding: 8px 0;
    border-bottom: 1px solid var(--c-line);
    vertical-align: top;
    overflow-wrap: anywhere;
}
.cf-legacy table.file-information tr:last-child td { border-bottom: 0; }
.cf-legacy table.file-information td:first-child {
    width: 200px;
    padding-right: 16px;
    color: var(--c-muted);
}
.cf-legacy table.file-information td:last-child { font-weight: 500; }

/* verdict, classification and counts */
.cf-legacy .verdict,
.cf-legacy .classification {
    display: inline-block;
    padding: 2px 10px;
    margin: 0 4px 4px 0;
    border-radius: 20px;
    border: 1px solid var(--c-line);
    background: var(--c-soft);
    color: var(--c-heading);
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
}
.cf-legacy .verdict.malicious, .cf-legacy .classification.malicious {
    background: var(--c-malicious-bg); border-color: var(--c-malicious-line); color: var(--c-malicious);
}
.cf-legacy .verdict.suspicious, .cf-legacy .classification.suspicious {
    background: var(--c-suspicious-bg); border-color: var(--c-suspicious-line); color: var(--c-suspicious);
}
.cf-legacy .verdict.clean, .cf-legacy .verdict.not-suspicious, .cf-legacy .classification.clean {
    background: var(--c-clean-bg); border-color: transparent; color: var(--c-clean);
}
/* the "|" between families and classes */
.cf-legacy .classification + span:not([class]) { display: none; }
.cf-legacy .malicious-indicator,
.cf-legacy .suspicious-indicator,
.cf-legacy .clean-indicator {
    display: inline-block;
    min-width: 32px;
    padding: 2px 10px;
    margin-right: 6px;
    border-radius: 8px;
    text-align: center;
    font-weight: 700;
}
.cf-legacy .malicious-indicator { background: var(--c-malicious-bg); color: var(--c-malicious); }
.cf-legacy .suspicious-indicator { background: var(--c-suspicious-bg); color: var(--c-suspicious); }
.cf-legacy .clean-indicator { background: var(--c-clean-bg); color: var(--c-clean); }
.cf-legacy td > span.malicious { color: var(--c-malicious); font-weight: 600; }
.cf-legacy td > span.suspicious { color: var(--c-suspicious); font-weight: 600; }
.cf-legacy td > span.not-suspicious { color: var(--c-clean); font-weight: 600; }
.cf-legacy span[style*="#ec374a"] { color: var(--c-malicious) !important; font-family: Consolas, Menlo, monospace; font-size: 12.5px; }

/* signatures */
.cf-legacy .signature-list { display: flex; flex-direction: column; gap: 10px; }
.cf-legacy .signature-table {
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-muted);
    border-radius: 8px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
}
.cf-legacy .signature-table:has(.severity-malicious) { border-left-color: var(--c-malicious); }
.cf-legacy .signature-table:has(.severity-suspicious) { border-left-color: var(--c-suspicious); }
.cf-legacy .signature-table:has(.severity-clean) { border-left-color: var(--c-clean); }
/* one line per signature, as in the current report: severity, description, toggle */
.cf-legacy .signature-table { display: block; }
.cf-legacy .signature-table > tbody {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    padding: 10px 14px;
}
.cf-legacy .signature-table > tbody > tr:not(.signature-details-wrapper) { display: contents; }
.cf-legacy .signature-table > tbody > tr.signature-details-wrapper { display: none; }
.cf-legacy .signature-table td { padding: 0; overflow-wrap: anywhere; }
.cf-legacy .signature-table-first-data { display: none; }
.cf-legacy .signature-table > tbody > tr:nth-child(1) > .signature-table-second-data {
    grid-column: 1;
    grid-row: 1;
    padding: 3px 10px;
    border-radius: 6px;
    background: var(--c-soft);
    color: var(--c-muted);
    font-size: 12px;
    font-weight: 700;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cf-legacy .signature-table .severity-malicious > .signature-table-second-data { background: var(--c-malicious-bg) !important; color: var(--c-malicious) !important; }
.cf-legacy .signature-table .severity-suspicious > .signature-table-second-data { background: var(--c-suspicious-bg) !important; color: var(--c-suspicious) !important; }
.cf-legacy .signature-table > tbody > tr:nth-child(2) > .signature-table-second-data {
    grid-column: 2;
    grid-row: 1;
    color: var(--c-heading);
}
.cf-legacy .signature-table-details-header > td {
    grid-column: 3;
    grid-row: 1;
    cursor: pointer;
    font-size: 0;
    color: var(--c-muted);
}
.cf-legacy .signature-table-details-header > td::after { content: "+"; font-size: 16px; padding: 0 4px; }
.cf-legacy .signature-table-details-header:hover > td { color: var(--c-brand); }
.cf-legacy .signature-details-wrapper { display: none; }
/* html.js shows the details by setting display: table-row on the row */
.cf-legacy .signature-table > tbody > tr.signature-details-wrapper[style*="table-row"] { display: block !important; grid-column: 1 / -1; grid-row: 2; margin-top: 10px; }
.cf-legacy .signature-details-wrapper > td { display: block; padding: 12px 14px; border-radius: 8px; background: var(--c-soft); }
.cf-legacy .signature-details { display: flex; flex-direction: column; gap: 12px; }
.cf-legacy .signature-details-json {
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 12.5px;
    overflow-wrap: anywhere;
}
.cf-legacy .json-object { padding-left: 16px; }
.cf-legacy .signature-details-separator { border-top: 1px solid var(--c-line); }
.cf-legacy .signature-details-information { color: var(--c-muted); }

/* process tree */
.cf-legacy .process-list { width: 100%; }
.cf-legacy .process-list .process-list { width: calc(100% - 12px); margin: 8px 0 0 12px; border-left: 2px solid var(--c-line); }
.cf-legacy .process-description-wrapper { min-width: 0; }
.cf-legacy .process-area > td { padding: 8px 0; vertical-align: top; }
.cf-legacy .process-line { width: 28px; }
.cf-legacy .expand-icon {
    margin: 0;
    width: 22px;
    height: 22px;
    line-height: 20px;
    text-align: center;
    border: 1px solid var(--c-line);
    border-radius: 6px;
    cursor: pointer;
    color: var(--c-muted);
    user-select: none;
}
.cf-legacy .process-description {
    font-family: Consolas, "SFMono-Regular", Menlo, monospace;
    font-size: 12.5px;
    overflow-wrap: anywhere;
}
.cf-legacy .process-pid {
    display: inline-block;
    margin-top: 6px;
    padding: 1px 8px;
    border-radius: 20px;
    background: var(--c-soft);
    border: 1px solid var(--c-line);
    color: var(--c-muted);
    font-size: 12px;
}

/* data tables */
.cf-legacy .custom-table { display: block; overflow-x: auto; }
.cf-legacy .custom-table thead, .cf-legacy .custom-table tbody { display: table; width: 100%; table-layout: auto; }
.cf-legacy .custom-table th {
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-muted);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}
.cf-legacy .custom-table td {
    padding: 8px 12px 8px 0;
    border-bottom: 1px solid var(--c-line);
    overflow-wrap: anywhere;
}
.cf-legacy .custom-table tbody tr:last-child td { border-bottom: 0; }
.cf-legacy .custom-table td:nth-child(2) { font-family: Consolas, "SFMono-Regular", Menlo, monospace; font-size: 12.5px; }
.cf-legacy .custom-table .no-data { color: var(--c-muted); font-style: italic; font-family: inherit; font-size: 14px; }
.cf-legacy .artifact-malicious td { color: var(--c-malicious); }

/* end of a report the database cut off */
.cf-legacy-cut {
    max-width: 1120px;
    margin: 0 auto 16px;
    padding: 12px 16px;
    border: 1px dashed var(--c-suspicious-line);
    border-radius: 8px;
    background: var(--c-suspicious-bg);
    color: var(--c-suspicious);
    font-size: 13px;
}

@media screen and (max-width: 600px) {
    .cf-legacy .header-left-content { flex-direction: column; align-items: flex-start; gap: 10px; }
    .cf-legacy .header-analysis-name { border-left: 0; padding-left: 0; font-size: 16px; }
    .cf-legacy .section, .cf-legacy .static-results-section, .cf-legacy .file-type-report-section { padding: 16px; }
    .cf-legacy table.file-information td:first-child { width: 110px; }
    .cf-legacy .signature-table > tbody { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
    .cf-legacy .signature-table > tbody > tr:nth-child(2) > .signature-table-second-data { grid-column: 1; grid-row: 2; }
    .cf-legacy .signature-table-details-header > td { grid-column: 2; }
    .cf-legacy .signature-table > tbody > tr.signature-details-wrapper[style*="table-row"] { grid-row: 3; }
}
@media print {
    .cf-legacy { background: #fff; padding: 0; }
    .cf-legacy .header-button-container { display: none; }
    .cf-legacy .signature-details-wrapper { display: table-row; }
}
