/* Tabelle classifiche RTC */
.fusion-layout-column .rtc-table,
.rtc-table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin-top: 20px !important;
}

.fusion-layout-column .rtc-table thead th,
.rtc-table thead th {
    background-color: #bd1823 !important;
    color: #ffffff !important;
    padding: 10px !important;
    text-align: left !important;
}

.fusion-layout-column .rtc-table tbody tr:nth-child(even),
.rtc-table tbody tr:nth-child(even) {
    background-color: #f2f2f2 !important;
}

.fusion-layout-column .rtc-table tbody tr:nth-child(odd),
.rtc-table tbody tr:nth-child(odd) {
    background-color: #ffffff !important;
}

.fusion-layout-column .rtc-table,
.fusion-layout-column .rtc-table th,
.fusion-layout-column .rtc-table td,
.rtc-table,
.rtc-table th,
.rtc-table td {
    border: 1px solid #ccc !important;
    text-align: left !important;
    padding: 8px !important;
}

.rtc-actions-cell {
    white-space: nowrap !important;
}

a.rtc-action-button,
.fusion-layout-column a.rtc-action-button,
.rtc-table a.rtc-action-button,
.rtc-detail-back a.rtc-action-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    border: 1px solid #bd1823 !important;
    background: #bd1823 !important;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    text-transform: uppercase !important;
    box-shadow: none !important;
}

a.rtc-action-button:hover,
a.rtc-action-button:focus,
.fusion-layout-column a.rtc-action-button:hover,
.fusion-layout-column a.rtc-action-button:focus,
.rtc-table a.rtc-action-button:hover,
.rtc-table a.rtc-action-button:focus,
.rtc-detail-back a.rtc-action-button:hover,
.rtc-detail-back a.rtc-action-button:focus {
    background: #97131c !important;
    border-color: #97131c !important;
    color: #ffffff !important;
    text-decoration: none !important;
}

.rtc-detail-back {
    margin: 16px 0 !important;
}

.rtc-detail-card {
    margin: 20px 0 !important;
    border: 1px solid #e1e1e1 !important;
    border-radius: 10px !important;
    padding: 22px !important;
    background: #ffffff !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05) !important;
}

.rtc-detail-hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    border-left: 6px solid #bd1823 !important;
    padding-left: 16px !important;
    margin-bottom: 18px !important;
}

.rtc-detail-title {
    margin: 0 !important;
    color: #bd1823 !important;
    text-transform: uppercase !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
}

.rtc-detail-subtitle {
    margin: 6px 0 0 !important;
    color: #555 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
}

.rtc-detail-hero-metrics {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

.rtc-hero-kpi {
    min-width: 115px !important;
    border: 1px solid #bd1823 !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    text-align: center !important;
    background: #fff5f6 !important;
}

.rtc-hero-kpi strong {
    display: block !important;
    color: #bd1823 !important;
    font-size: 22px !important;
    line-height: 1.1 !important;
}

.rtc-hero-kpi span {
    display: block !important;
    color: #555 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin-top: 4px !important;
}

.rtc-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 12px !important;
    margin: 16px 0 !important;
}

.rtc-kpi-grid > div {
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    background: #fafafa !important;
    padding: 12px !important;
}

.rtc-kpi-grid strong {
    color: #bd1823 !important;
}

.rtc-detail-section {
    margin: 24px 0 !important;
}

.rtc-detail-section h4 {
    margin: 0 0 8px !important;
    color: #bd1823 !important;
    text-transform: uppercase !important;
    font-weight: 800 !important;
}

.rtc-detail-description {
    margin: 8px 0 12px !important;
    color: #555 !important;
}

.rtc-detail-table {
    margin-top: 12px !important;
}

.rtc-responsive-table-wrap {
    width: 100% !important;
    overflow-x: auto !important;
}

.rtc-wide-table {
    min-width: 1100px !important;
}

@media (max-width: 768px) {
    .rtc-detail-hero {
        flex-direction: column !important;
        align-items: flex-start !important;
    }

    .rtc-detail-hero-metrics {
        justify-content: flex-start !important;
    }

    .rtc-detail-title {
        font-size: 22px !important;
    }
}


.rtc-hero-kpi.rtc-kpi-brevetto-nessuno {
    background: #bd1823 !important;
    border-color: #bd1823 !important;
}

.rtc-hero-kpi.rtc-kpi-brevetto-bronzo {
    background: #cd7f32 !important;
    border-color: #cd7f32 !important;
}

.rtc-hero-kpi.rtc-kpi-brevetto-argento {
    background: #c0c0c0 !important;
    border-color: #c0c0c0 !important;
}

.rtc-hero-kpi.rtc-kpi-brevetto-oro {
    background: #cda434 !important;
    border-color: #cda434 !important;
}

.rtc-hero-kpi.rtc-kpi-brevetto-nessuno strong,
.rtc-hero-kpi.rtc-kpi-brevetto-nessuno span,
.rtc-hero-kpi.rtc-kpi-brevetto-bronzo strong,
.rtc-hero-kpi.rtc-kpi-brevetto-bronzo span,
.rtc-hero-kpi.rtc-kpi-brevetto-oro strong,
.rtc-hero-kpi.rtc-kpi-brevetto-oro span {
    color: #ffffff !important;
}

.rtc-hero-kpi.rtc-kpi-brevetto-argento strong,
.rtc-hero-kpi.rtc-kpi-brevetto-argento span {
    color: #333333 !important;
}


/* Brevetto KPI colors: applied also when athlete detail is opened from team detail. */
.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-nessuno,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-nessuno {
    background: #bd1823 !important;
    border-color: #bd1823 !important;
}

.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-bronzo,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-bronzo {
    background: #cd7f32 !important;
    border-color: #cd7f32 !important;
}

.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-argento,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-argento {
    background: #c0c0c0 !important;
    border-color: #c0c0c0 !important;
}

.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-oro,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-oro {
    background: #cda434 !important;
    border-color: #cda434 !important;
}

.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-nessuno strong,
.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-nessuno span,
.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-bronzo strong,
.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-bronzo span,
.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-oro strong,
.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-oro span,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-nessuno strong,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-nessuno span,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-bronzo strong,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-bronzo span,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-oro strong,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-oro span {
    color: #ffffff !important;
}

.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-argento strong,
.rtc-athlete-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-argento span,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-argento strong,
.rtc-detail-card .rtc-hero-kpi.rtc-kpi-brevetto-argento span {
    color: #333333 !important;
}
