.p2-statistika { margin-top: 12px; padding: 16px; box-shadow: none; }
.p2-statistika h3 { font-size: 18px; }
#p2-statistika p { text-align: left; }
.p2-stat-intro { margin: 4px 0 16px; color: #475569; }
.p2-stat-controls { display: flex; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 16px; }
.p2-stat-controls label { display: flex; flex-direction: column; gap: 4px; color: #334155; font-weight: 600; }
.p2-stat-controls select { min-height: 44px; max-width: 100%; padding: 8px 32px 8px 10px; border: 1px solid #94a3b8; border-radius: 6px; color: #0f2a44; background: #fff; font: inherit; }
.p2-statistika select:focus-visible, .p2-statistika button:focus-visible, .p2-statistika summary:focus-visible, .p2-stat-scroll:focus-visible { outline: 3px solid #1f6fd0; outline-offset: 3px; }
.p2-stat-povzetek { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 16px; }
.p2-stat-povzetek span { flex: 1 1 230px; }
.p2-stat-povzetek b { display: block; color: #0f2a44; }
.p2-stat-opomba, .p2-stat-empty { padding: 12px; background: #f5f8fb; color: #334155; margin: 0 0 12px; }
.p2-stat-empty p { margin: 4px 0 0; max-width: 68ch; }
.p2-stat-scroll { max-width: 100%; overflow-x: auto; }
.p2-stat-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.p2-stat-table caption { text-align: left; padding-bottom: 8px; color: #475569; }
.p2-stat-table th, .p2-stat-table td { padding: 10px 8px; border-bottom: 1px solid #e2e8f0; text-align: right; vertical-align: middle; }
.p2-stat-table thead th { font-weight: 600; color: #475569; }
.p2-stat-table th:first-child { text-align: left; min-width: 132px; }
.p2-stat-table td { min-width: 106px; }
.p2-stat-table td:last-child { min-width: 114px; }
.p2-stat-table small { display: block; font-size: 11px; font-weight: 400; color: #475569; }
.p2-stat-table .p2-stat-best { color: #08624b; font-weight: 600; }
.p2-stat-table .p2-stat-mobile-bias { display: none; }
.p2-stat-zmes { background: #edf4fc; }
.p2-stat-bar { display: block; height: 4px; margin-top: 5px; background: #edf1f6; }
.p2-stat-bar i { display: block; height: 100%; background: #397bbb; }
.p2-stat-status { color: #475569; font-size: 12px; margin: 12px 0; }
.p2-stat-metoda { color: #475569; font-size: 12px; }
.p2-stat-metoda summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.p2-stat-metoda p { margin: 4px 0 8px; max-width: 80ch; }
.p2-stat-retry { min-height: 44px; padding: 8px 14px; background: #fff; border: 1px solid #94a3b8; border-radius: 6px; }
@media (max-width: 520px) {
    .p2-statistika { padding: 12px; }
    .p2-stat-controls { gap: 12px; }
    .p2-stat-controls label { flex: 1 1 200px; }
    .p2-stat-table .p2-stat-bias { display: none; }
    .p2-stat-table .p2-stat-mobile-bias { display: block; margin-top: 4px; }
    .p2-stat-table th:first-child, .p2-stat-table td, .p2-stat-table td:last-child { min-width: 0; }
    .p2-stat-table th, .p2-stat-table td { padding: 10px 4px; }
}
