@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&display=swap');

html,
body {
    font-family: 'Exo 2', sans-serif !important;
}

.monitor.hidden {
    display: none;
}



.config-on {
    color: #4ade80;
    font-weight: 700;
}

.config-off {
    color: #ff4d6d;
    font-weight: 700;
}



.monitor-menu-label {
    display: inline-block;

    padding: 3px 7px;
    margin-left: 5px;

    border-radius: 4px;

    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;

    vertical-align: middle;
}

.monitor-menu-triggered {
    background: #ff5c5c;
}

.monitor-menu-waiting {
    background: #f5a623;
}







   * {
        box-sizing: border-box;
    }

    html, body {
        background: #0b0d10;
        color: #e8eaed;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 15px;
        line-height: 1.5;
        margin: 0;
        padding: 24px;
    }

body {
    max-width: none;
    margin: 0;
    margin-left: 220px;
}

    h2 {
        color: #ffffff;
        font-size: 28px;
        margin: 0;
    }

    h3 {
        color: #ffffff;
        font-size: 18px;
        margin: 28px 0 14px;
        letter-spacing: .2px;
    }

    strong {
        color: #ffffff;
    }

    hr {
        border: 0;
        border-top: 1px solid #252a30;
        margin: 22px 0;
    }

    small {
        color: #8d949c;
    }

.page-header {
    margin-bottom: 32px;
}

    .page-title {
        font-size: 26px;
        font-weight: 700;
        letter-spacing: .4px;
    }

    .page-subtitle {
        color: #8d949c;
        font-size: 13px;
        margin-top: 3px;
    }

.monitor {
    margin-bottom: 32px;
}

.monitor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 14px;
    padding: 18px 20px;

    background: #11151a;
    border: 1px solid #252a30;
    border-radius: 12px;
}

    .instrument-name {
        color: #ffffff;
        font-size: 22px;
        font-weight: 700;
        letter-spacing: .2px;
    }

    .instrument-meta {
        color: #8d949c;
        font-size: 13px;
        margin-top: 4px;
    }

    .price-highlight {
        text-align: right;
    }

    .price-label {
        color: #8d949c;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .7px;
    }

    .price-value {
        color: #ffffff;
        font-size: 24px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

    .stat {
        padding: 12px 14px;
        background: #171c22;
        border: 1px solid #252a30;
        border-radius: 8px;
    }

    .stat-label {
        color: #8d949c;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: .7px;
    }

    .stat-value {
        color: #ffffff;
        font-size: 20px;
        font-weight: 700;
        margin-top: 2px;
        font-variant-numeric: tabular-nums;
    }

.signal-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
    margin: 0;
}

    .waiting,
    .triggered {
        margin: 0;
        padding: 16px;
        border-radius: 9px;
    }

    .waiting {
        background: #15191e;
        border: 1px solid #30363d;
    }

    .triggered {
        background: #2b2614;
        border: 1px solid #66572b;
    }

    .signal-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        margin-bottom: 12px;
    }

    .badge {
        display: inline-block;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .5px;
    }

    .badge-waiting {
        color: #e8c66a;
        background: rgba(232,198,106,.10);
        border: 1px solid rgba(232,198,106,.25);
    }

    .badge-triggered {
        color: #f08a8a;
        background: rgba(240,138,138,.10);
        border: 1px solid rgba(240,138,138,.25);
    }

    .signal-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 7px 18px;
    }

    .signal-row {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        border-bottom: 1px solid rgba(255,255,255,.05);
        padding: 4px 0;
    }

    .signal-row span:first-child {
        color: #8d949c;
    }

    .signal-row span:last-child {
        color: #f2f2f2;
        text-align: right;
        font-variant-numeric: tabular-nums;
    }

    .entry-value {
        color: #ffffff !important;
        font-weight: 700;
    }

.summary {
    margin: 0;
    padding-top: 4px;
}

    .summary-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .summary-box {
        padding: 16px;
        background: #15191e;
        border: 1px solid #252a30;
        border-radius: 9px;
    }

    .summary-title {
        color: #ffffff;
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .7px;
        margin-bottom: 10px;
    }

    .config-line {
        color: #aeb4bb;
        padding: 2px 0;
    }


.no-signals {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    width: fit-content;

    padding: 10px 14px;

    background: #15191e;
    border: 1px solid #30363d;
    border-radius: 8px;

    color: #9aa1aa;
    font-size: 13px;
}

.no-signals-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 20px;
    height: 20px;

    border-radius: 50%;

    background: rgba(120, 180, 130, .12);
    color: #8fc49a;

    font-size: 12px;
    font-weight: bold;
}


.theme-light .no-signals {
    background: #292e35;
    border-color: #454c55;
    color: #b8bec6;
}

.theme-light .no-signals-icon {
    background: rgba(140, 190, 150, .12);
    color: #9ac9a3;
}



/* ==========================================================
   ACCORDION STRUMENTI
========================================================== */

.monitor {
    margin-bottom: 14px;
}

.monitor-header {
    cursor: pointer;
    user-select: none;
    transition: border-color .15s ease, background .15s ease;
}

.monitor-header:hover {
    border-color: #4a515a;
}

.monitor-content {
    display: none;
    margin-top: 12px;
    flex-direction: column;
    gap: 15px;
}

.monitor.open .monitor-content {
    display: flex;
}



.monitor-header::after {
    content: "\25B6";
    font-size: 13px;
    color: #8d949c;
    margin-left: 15px;
    transition: transform .2s ease;
}

.monitor.open .monitor-header::after {
    transform: rotate(90deg);
}

.theme-light .monitor-header:hover {
    border-color: #626a74;
}

.monitor-preview {
    color: #8d949c;
    font-size: 12px;
    margin-bottom: 3px;
    text-align: right;
    letter-spacing: .2px;
}


.monitor-preview {
    color: #9aa1aa;
}

.monitor-preview .preview-waiting {
    color: #e8a83e;
    font-weight: 600;
}

.monitor-preview .preview-triggered {
    color: #f07a7a;
    font-weight: 600;
}

.monitor-preview .preview-separator {
    color: #6f767e;
    margin: 0 4px;
}

.monitor-preview .preview-empty {
    color: #737a82;
}

/* ----------------------------------------------------------------- RESPONSIVE DESIGN */


    @media (max-width: 800px) {
        html, body {
            padding: 12px;
        }

        .stats {
            grid-template-columns: repeat(2, 1fr);
        }

        .summary-grid {
            grid-template-columns: 1fr;
        }

        .monitor-header {
            flex-direction: column;
        }

        .price-highlight {
            text-align: left;
        }
    }

    @media (max-width: 520px) {
        .signal-list,
        .signal-grid {
            grid-template-columns: 1fr;
        }

        .stats {
            grid-template-columns: 1fr 1fr;
        }
    }
	
	
@media (max-width: 900px) {

    .signal-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}



/* ==========================================================
   TEMA CHIARO
========================================================== */


.theme-light .monitor-header {
    background: #292e35;
    border-color: #454c55;
}

.theme-light .instrument-name,
.theme-light .price-value,
.theme-light strong {
    color: #ffffff;
}

.theme-light .instrument-meta,
.theme-light .price-label {
    color: #b8bec6;
}


/* STATISTICHE */

.theme-light .stat {
    background: #343a42;
    border-color: #484f58;
}

.theme-light .stat-label {
    color: #b8bec6;
}

.theme-light .stat-value {
    color: #ffffff;
}


/* GAP WAITING */

.theme-light .waiting {
    background: #292e35;
    border-color: #454c55;
}

.theme-light .signal-row {
    border-bottom-color: rgba(255,255,255,.10);
}

.theme-light .signal-row span:first-child {
    color: #b8bec6;
}

.theme-light .signal-row span:last-child {
    color: #f5f5f5;
}

.theme-light .entry-value {
    color: #ffffff !important;
}


/* TRIGGERED */

.theme-light .triggered {
    background: #3a321c;
    border-color: #75632b;
}


/* RIEPILOGO / CONFIGURAZIONE */

.theme-light .summary-box {
    background: #292e35;
    border-color: #454c55;
}

.theme-light .summary-title {
    color: #ffffff;
}

.theme-light .config-line {
    color: #c5cad0;
}



.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100%;
    width: 200px;
    background: #151515;
    padding-top: 30px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.6);
    z-index: 1000;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    letter-spacing: 1px;
}

.sidebar a {
    display: block;
    padding: 12px 20px;
    color: #ddd;
    text-decoration: none;
    border-left: 3px solid transparent;
}

.sidebar a:hover {
    background: #242424;
    border-left: 3px solid #4caf50;
    color: white;
}

.sidebar a.active {
    background: #2a2a2a;
    border-left: 3px solid #4caf50;
    color: #ffffff;
    font-weight: 600;
}



body {
    margin: 0;
    padding: 24px;
    margin-left: 220px;
}

.container {
    margin-left: 0;
    padding: 0;
}


/* ==========================================================
   GAP SCANNER
========================================================== */

.container {
    width: 100%;
}

.container h1 {
    color: #ffffff;
    font-size: 28px;
    margin: 0 0 20px 0;
}

#filterSymbol,
#filterStatus,
#filterPeriod {
    background: #171c22;
    color: #e8eaed;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 6px 10px;
}

label {
    color: #d8dce1;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    color: #e8eaed;
}

th {
    background: #171c22;
    color: #9aa1aa;
    border-bottom: 1px solid #30363d;
    padding: 10px 8px;
    text-align: left;
    font-size: 12px;
    text-transform: uppercase;
}

td {
    padding: 9px 8px;
    border-bottom: 1px solid #252a30;
    color: #e8eaed;
}

tbody tr:hover {
    background: #15191e;
}


/* ==========================================================
   GAP SCANNER - ETÀ GAP APERTI
========================================================== */

.open-gap-today {
    background: rgba(0, 200, 130, 0.24) !important;
    color: #d0ffe5;
    font-weight: 600;
}

.open-gap-yesterday {
    background: rgba(230, 205, 20, 0.24) !important;
    color: #fff7b0;
    font-weight: 600;
}

.open-gap-old {
    background: rgba(255, 135, 20, 0.24) !important;
    color: #ffd9ad;
    font-weight: 600;
}


/* ==========================================================
   KAIRO - STRATEGY READER
   Specific styles only. Shared layout/menu/table basics
   remain in the common stylesheet above.
========================================================== */

.strategy-reader-page {
    --strategy-panel: #15181c;
    --strategy-border: #30353d;
    --strategy-text: #e7eaf0;
    --strategy-muted: #8f98a7;
    --strategy-green: #65e49a;
    --strategy-yellow: #e9c15d;
    --strategy-red: #ef727c;
}

.strategy-reader-page,
.strategy-reader-page * {
    box-sizing: border-box;
}

.strategy-reader-page .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.strategy-reader-page h1 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 30px;
}

.strategy-reader-page .subtitle {
    color: var(--strategy-muted);
    margin-bottom: 28px;
}

.strategy-reader-page .toolbar {
    display: flex;
    gap: 14px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.strategy-reader-page .toolbar label {
    display: block;
    color: var(--strategy-muted);
    font-size: 13px;
    margin-bottom: 7px;
}

.strategy-reader-page .toolbar select {
    min-width: 220px;
    padding: 11px 13px;
    border: 1px solid var(--strategy-border);
    border-radius: 7px;
    background: var(--strategy-panel);
    color: var(--strategy-text);
    font-size: 15px;
}

.strategy-reader-page .info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.strategy-reader-page .info .badge {
    padding: 9px 13px;
    border: 1px solid var(--strategy-border);
    border-radius: 7px;
    background: var(--strategy-panel);
    color: var(--strategy-muted);
}

.strategy-reader-page .info .badge strong {
    color: var(--strategy-text);
}

.strategy-reader-page .error {
    padding: 16px;
    border: 1px solid #71383d;
    border-radius: 8px;
    background: #241417;
    color: #ff9da5;
}

.strategy-reader-page .best-section {
    margin: 28px 0 30px;
}

.strategy-reader-page .best-section h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 22px;
}

.strategy-reader-page .best-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    width: 100%;
    min-width: 0;
}

.strategy-reader-page .best-card {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 16px 18px;
    background: var(--strategy-panel);
    border: 1px solid var(--strategy-border);
    border-radius: 8px;
}

.strategy-reader-page .best-card-title {
    margin-bottom: 12px;
    color: var(--strategy-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.strategy-reader-page .best-main {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.strategy-reader-page .best-direction {
    font-size: 18px;
    font-weight: 700;
}

.strategy-reader-page .best-entry {
    font-size: 17px;
    font-weight: 700;
}

.strategy-reader-page .best-entry span {
    color: var(--strategy-muted);
    font-size: 12px;
    font-weight: 400;
}

.strategy-reader-page .best-metrics {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 10px;
}

.strategy-reader-page .best-metric {
    min-width: 0;
    border-top: 1px solid #292e35;
    padding-top: 8px;
}

.strategy-reader-page .best-metric-label {
    margin-bottom: 3px;
    color: var(--strategy-muted);
    font-size: 10px;
    text-transform: uppercase;
}

.strategy-reader-page .best-metric-value {
    font-size: 14px;
    font-weight: 700;
}

.strategy-reader-page .best-empty {
    color: var(--strategy-muted);
    font-size: 13px;
}

.strategy-reader-page .table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--strategy-border);
    border-radius: 8px;
    background: var(--strategy-panel);
}

.strategy-reader-page .table-wrap table {
    width: 100%;
    min-width: 1500px;
    border-collapse: collapse;
}

.strategy-reader-page .table-wrap th,
.strategy-reader-page .table-wrap td {
    padding: 11px 10px;
    border-bottom: 1px solid #292e35;
    white-space: nowrap;
    text-align: right;
    font-size: 13px;
}

.strategy-reader-page .table-wrap th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #1a1e24;
    color: #9fa8b7;
    font-weight: 600;
}

.strategy-reader-page .table-wrap th:first-child,
.strategy-reader-page .table-wrap td:first-child,
.strategy-reader-page .table-wrap th:nth-child(2),
.strategy-reader-page .table-wrap td:nth-child(2) {
    text-align: left;
}

.strategy-reader-page .table-wrap tr:hover td {
    background: #1a1e23;
}

.strategy-reader-page .rank {
    color: var(--strategy-muted);
}

.strategy-reader-page .positive {
    color: var(--strategy-green);
}

.strategy-reader-page .neutral {
    color: var(--strategy-yellow);
}

.strategy-reader-page .negative {
    color: var(--strategy-red);
}

.strategy-reader-page .direction {
    font-weight: 700;
}

.strategy-reader-page .direction.up {
    color: #ff8d94;
}

.strategy-reader-page .direction.down {
    color: #70dca2;
}

.strategy-reader-page .note {
    margin-top: 12px;
    color: var(--strategy-muted);
    font-size: 12px;
}

@media (max-width: 1000px) {
    .strategy-reader-page .best-grid {
        grid-template-columns: 1fr;
    }

    .strategy-reader-page .best-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .strategy-reader-page {
        margin-left: 0;
        padding: 12px;
    }

    .strategy-reader-page .container {
        margin-left: 0;
    }
}



.strategy-reader-page .direction-gap {
    color: #e7eaf0;
    font-weight: 700;
}

.strategy-reader-page .direction-arrow {
    color: #8f98a7;
    font-weight: 400;
}

.strategy-reader-page .direction-action {
    font-weight: 700;
}

.strategy-reader-page .direction-action.short {
    color: #ef727c;
}

.strategy-reader-page .direction-action.long {
    color: #65e49a;
}

.strategy-reader-page .config-match {
    margin: 4px 0 14px;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
}

.strategy-reader-page .config-match.match {
    color: #65e49a;
    background: rgba(101, 228, 154, .08);
    border: 1px solid rgba(101, 228, 154, .22);
}

.strategy-reader-page .config-match.no-match {
    color: #e9c15d;
    background: rgba(233, 193, 93, .08);
    border: 1px solid rgba(233, 193, 93, .22);
}



/* ==========================================================
   KAIRO - STOP READER
========================================================== */

.stop-reader-page {
    --stop-panel: #15181c;
    --stop-border: #30353d;
    --stop-muted: #8f98a7;
    --stop-green: #65e49a;
    --stop-yellow: #e9c15d;
    --stop-red: #ef727c;
}

.stop-reader-page .container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.stop-reader-toolbar {
    margin: 25px 0 20px;
}

.stop-reader-toolbar label {
    display: block;
    margin-bottom: 8px;
    color: var(--stop-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.stop-reader-toolbar select {
    min-width: 220px;
    padding: 10px 12px;
    background: #171a1f;
    color: #e7eaf0;
    border: 1px solid var(--stop-border);
    border-radius: 6px;
    font-size: 14px;
}

.stop-best-section {
    margin-top: 30px;
}

.stop-best-section h2,
.stop-table-section h2 {
    margin-bottom: 18px;
}

.stop-best-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.stop-best-card {
    min-width: 0;
    padding: 18px;
    background: var(--stop-panel);
    border: 1px solid var(--stop-border);
    border-radius: 7px;
}

.stop-best-title {
    margin-bottom: 14px;
    color: #8f9caf;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.stop-match,
.stop-no-match {
    margin-bottom: 14px;
    padding: 9px 11px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
}

.stop-match {
    color: var(--stop-green);
    background: rgba(101, 228, 154, 0.08);
    border: 1px solid rgba(101, 228, 154, 0.25);
}

.stop-no-match {
    color: var(--stop-yellow);
    background: rgba(233, 193, 93, 0.08);
    border: 1px solid rgba(233, 193, 93, 0.25);
}

.stop-best-main {
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.stop-best-main strong {
    color: #f0f2f6;
    font-size: 20px;
}

.stop-best-main span {
    color: #8993a3;
    font-size: 11px;
}

.stop-best-stats {
    display: grid;
    grid-template-columns: repeat(7, minmax(70px, 1fr));
    gap: 10px;
}

.stop-best-stats > div {
    padding-top: 8px;
    border-top: 1px solid #30353d;
}

.stop-best-stats span {
    display: block;
    margin-bottom: 5px;
    color: #7f8998;
    font-size: 9px;
    text-transform: uppercase;
}

.stop-best-stats strong {
    color: #e7eaf0;
    font-size: 13px;
}

.stop-best-stats .positive {
    color: var(--stop-green);
}

.stop-table-section {
    margin-top: 30px;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--stop-border);
    border-radius: 7px;
}

.stop-table-section table {
    width: max-content;
    min-width: 100%;
    margin: 0;
}

.stop-table-section th,
.stop-table-section td {
    white-space: nowrap;
}

.stop-table-section th {
    font-size: 10px;
}

.stop-table-section td {
    font-size: 12px;
}

.stop-best-row {
    background: rgba(101, 228, 154, 0.055);
}

.stop-best-row td {
    border-top: 1px solid rgba(101, 228, 154, 0.18);
    border-bottom: 1px solid rgba(101, 228, 154, 0.18);
}

.direction-cell {
    font-weight: 700;
}

.gap-label {
    color: #e7eaf0;
}

.arrow {
    color: #7f8998;
    margin: 0 4px;
}

.short-label {
    color: var(--stop-red);
}

.long-label {
    color: var(--stop-green);
}

@media (max-width: 1100px) {

    .stop-best-grid {
        grid-template-columns: 1fr;
    }

    .stop-best-stats {
        grid-template-columns: repeat(4, minmax(80px, 1fr));
    }

}

@media (max-width: 700px) {

    .stop-best-stats {
        grid-template-columns: repeat(2, minmax(100px, 1fr));
    }

    .stop-reader-toolbar select {
        width: 100%;
        max-width: 300px;
    }

}




.stop-best-inputs {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(280px, 2fr);
    gap: 12px;
    margin-bottom: 18px;
}

.stop-best-inputs > div {
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: rgba(255,255,255,0.02);
}

.stop-best-inputs span,
.stop-best-result span {
    display: block;
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.stop-best-inputs strong {
    font-size: 15px;
    color: var(--text-primary);
}

.stop-best-result {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 18px;
}

.stop-best-result span {
    margin: 0;
}

.stop-best-result strong {
    font-size: 25px;
    color: var(--positive-color);
}

.stop-best-result small {
    color: var(--text-muted);
    font-size: 13px;
}


.stop-reader-method {
    margin: 14px 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.stop-best-selection-note {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}


/* ==========================================================
   KAIRO - RANKING V2
   Aggiungere questo blocco alla fine del CSS generale.
========================================================== */

.ranking-container {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    color: #e7eaf0;
}

.ranking-header {
    margin: 0 0 22px;
}

.ranking-title {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.ranking-subtitle {
    margin-top: 5px;
    color: #8f98a7;
    font-size: 13px;
}

.ranking-info {
    margin: 0 0 24px;
    padding: 14px 16px;
    background: #15181c;
    border: 1px solid #30353d;
    border-radius: 8px;
    color: #b8c0cc;
    font-size: 13px;
    line-height: 1.65;
}

.ranking-info strong {
    color: #ffffff;
}

.ranking-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 26px;
}

.ranking-card {
    min-width: 0;
    padding: 15px 17px;
    background: #15181c;
    border: 1px solid #30353d;
    border-radius: 8px;
}

.ranking-card-label {
    margin-bottom: 4px;
    color: #8f98a7;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ranking-card-value {
    color: #ffffff;
    font-size: 20px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.section-title {
    margin: 30px 0 14px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
}

/* ---------- TABELLA RANKING ---------- */

.ranking-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid #30353d;
    border-radius: 8px;
    background: #15181c;
}

.ranking-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    margin: 0;
}

.ranking-table th,
.ranking-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #292e35;
    white-space: nowrap;
    font-size: 12px;
    text-align: right;
}

.ranking-table th {
    background: #1a1e24;
    color: #9fa8b7;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ranking-table th:first-child,
.ranking-table td:first-child,
.ranking-table th:nth-child(2),
.ranking-table td:nth-child(2),
.ranking-table th:last-child,
.ranking-table td:last-child {
    text-align: left;
}

.ranking-table td {
    color: #e7eaf0;
}

.ranking-table tbody tr:hover td {
    background: #1a1e23;
}

.rank-number {
    color: #7f8998;
    font-variant-numeric: tabular-nums;
}

.instrument-cell {
    color: #ffffff;
    font-weight: 700;
}

.score {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.grade {
    font-weight: 700;
}

.metric-good {
    color: #65e49a !important;
}

.robustness {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
}

.robustness::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 7px currentColor;
}

.robustness.robust,
.robustness.positive,
.robustness.good {
    color: #65e49a;
}

.robustness.warning,
.robustness.medium {
    color: #e9c15d;
}

.robustness.weak,
.robustness.negative {
    color: #ef727c;
}

/* ---------- BOX OPERATIVO ---------- */

.ranking-v2-operational-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.ranking-v2-instrument-card {
    min-width: 0;
    padding: 17px;
    background: #15181c;
    border: 1px solid #30353d;
    border-radius: 8px;
}

.ranking-v2-instrument-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.ranking-v2-rank-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: #20252c;
    border: 1px solid #3a414b;
    color: #e9c15d;
    font-size: 12px;
    font-weight: 700;
}

.ranking-v2-direction {
    margin-top: 10px;
    padding: 12px 13px;
    background: #11151a;
    border: 1px solid #292e35;
    border-radius: 7px;
}

.ranking-v2-direction + .ranking-v2-direction {
    margin-top: 10px;
}

.ranking-v2-direction-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    color: #8f98a7;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ranking-v2-short {
    color: #ef727c;
    font-weight: 700;
}

.ranking-v2-long {
    color: #65e49a;
    font-weight: 700;
}

.ranking-v2-enabled {
    color: #65e49a;
    font-size: 10px;
    font-weight: 700;
}

.ranking-v2-disabled {
    color: #777f8c;
    font-size: 10px;
    font-weight: 700;
}

.ranking-v2-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.ranking-v2-metrics > div {
    min-width: 0;
    padding-top: 7px;
    border-top: 1px solid #292e35;
}

.ranking-v2-metrics span {
    display: block;
    margin-bottom: 3px;
    color: #7f8998;
    font-size: 9px;
    text-transform: uppercase;
}

.ranking-v2-metrics strong {
    color: #e7eaf0;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.ranking-v2-active {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(101, 228, 154, .08);
    border: 1px solid rgba(101, 228, 154, .22);
    color: #65e49a;
    font-size: 11px;
    font-weight: 700;
}

.ranking-v2-status {
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.45;
}

.ranking-v2-status-ok {
    color: #65e49a;
    background: rgba(101, 228, 154, .08);
    border: 1px solid rgba(101, 228, 154, .22);
}

.ranking-v2-status-warning {
    color: #e9c15d;
    background: rgba(233, 193, 93, .08);
    border: 1px solid rgba(233, 193, 93, .22);
}

.ranking-v2-stop-note {
    margin-top: 9px;
    color: #8f98a7;
    font-size: 11px;
    line-height: 1.45;
}

.ranking-v2-empty {
    padding: 14px;
    color: #8f98a7;
    background: #11151a;
    border: 1px solid #292e35;
    border-radius: 7px;
    font-size: 12px;
}

.method-note {
    margin: 12px 0;
    color: #8f98a7;
    font-size: 12px;
    line-height: 1.55;
}

/* ---------- STORICO ---------- */

.ranking-v2-history-table {
    min-width: 1050px;
}

.ranking-v2-history-table td,
.ranking-v2-history-table th {
    font-variant-numeric: tabular-nums;
}

.ranking-v2-delta-up {
    color: #65e49a;
    font-weight: 700;
}

.ranking-v2-delta-down {
    color: #ef727c;
    font-weight: 700;
}

.ranking-v2-delta-flat {
    color: #8f98a7;
    font-weight: 700;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
    .ranking-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-v2-operational-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 800px) {
    .ranking-container {
        margin-left: 0;
    }

    .ranking-cards {
        grid-template-columns: 1fr;
    }

    .ranking-v2-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ranking-info {
        font-size: 12px;
    }
}
