.stumed-pr-wrap {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

.stumed-pr-intro {
    color: #666;
    font-size: 14px;
    margin-bottom: 18px;
}

/* --- Input / bottoni (riuso stile del form pubblico questionario) --- */
.stumed-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}
.stumed-btn-submit,
.stumed-btn-secondary {
    display: inline-block;
    background: #1a4a6e;
    color: #fff !important;
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}
.stumed-btn-secondary {
    background: #7f8c8d;
}
.stumed-btn-small {
    padding: 7px 16px;
    font-size: 13px;
}
.stumed-btn-submit:hover,
.stumed-btn-secondary:hover {
    opacity: .9;
}

/* --- Filtro data --- */
.stumed-pr-filter-bar {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    background: #f7f8fa;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 16px 0;
}
.stumed-pr-filter-bar label {
    display: flex;
    flex-direction: column;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    gap: 4px;
}
.stumed-pr-filter-bar input[type="date"] {
    padding: 6px 8px;
    border: 1px solid #d5d5d5;
    border-radius: 6px;
}
.stumed-pr-filter-active {
    color: #555;
    font-size: 13px;
    margin-top: -6px;
}

/* --- Statistiche --- */
.stumed-pr-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.stumed-pr-stat-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.stumed-pr-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a4a6e;
}
.stumed-pr-stat-label {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

/* --- Grafici a barre --- */
.stumed-pr-charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.stumed-pr-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 16px;
}
.stumed-pr-card h4,
.stumed-pr-card h5 {
    margin-top: 0;
}
.stumed-pr-card h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.stumed-pr-section-title {
    margin-top: 26px;
}

.stumed-pr-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 9px;
}
.stumed-pr-bar-label {
    width: 130px;
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}
.stumed-pr-bar-track {
    flex: 1;
    background: #eee;
    border-radius: 99px;
    height: 10px;
    overflow: hidden;
}
.stumed-pr-bar-fill {
    height: 100%;
    border-radius: 99px;
}
.stumed-pr-bar-blue {
    background: linear-gradient(90deg, #1a4a6e, #2980b9);
}
.stumed-pr-bar-purple {
    background: linear-gradient(90deg, #8e44ad, #c39bd3);
}
.stumed-pr-bar-green {
    background: linear-gradient(90deg, #1e8449, #58d68d);
}
.stumed-pr-bar-orange {
    background: linear-gradient(90deg, #b9770e, #f5b041);
}
.stumed-pr-bar-count {
    width: 28px;
    text-align: right;
    font-size: 12px;
    color: #777;
}

.stumed-pr-badge {
    background: #e2e2e2;
    color: #444;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
}

.stumed-pr-table {
    width: 100%;
    border-collapse: collapse;
}
.stumed-pr-table td {
    padding: 8px 4px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: top;
}
.stumed-pr-data-col {
    white-space: nowrap;
    color: #888;
    font-size: 12px;
    text-align: right;
    width: 140px;
}
.stumed-pr-empty {
    color: #888;
    font-style: italic;
    padding: 8px 0;
}
