.vpo { margin: 1.5em 0; }
.vpo-controls { display: flex; flex-wrap: wrap; gap: .75em 1.25em; align-items: flex-end; margin-bottom: .75em; }
.vpo-controls label { display: flex; flex-direction: column; gap: .25em; font-weight: 600; }
.vpo-select { min-width: 16em; max-width: 100%; }
.vpo-search { min-width: 12em; }
.vpo-export { display: flex; gap: .5em; margin-left: auto; }
.vpo-btn { cursor: pointer; padding: .5em 1em; border: 1px solid currentColor; border-radius: 4px; background: transparent; font: inherit; }
.vpo-refresh:disabled { cursor: progress; }
.vpo-btn:disabled { opacity: .45; cursor: not-allowed; }
.vpo-status { margin: .25em 0 .75em; font-style: italic; }
.vpo-table-wrap { overflow-x: auto; }
.vpo-table { width: 100%; border-collapse: collapse; }
.vpo-table th, .vpo-table td { padding: .45em .7em; border-bottom: 1px solid rgba(0,0,0,.12); text-align: left; vertical-align: top; }
.vpo-table thead th { position: sticky; top: 0; background: #f5f5f5; border-bottom: 2px solid rgba(0,0,0,.25); padding: 0; }
.vpo-table thead th button { all: unset; box-sizing: border-box; display: flex; width: 100%; gap: .4em; align-items: center; padding: .55em .7em; font-weight: 700; cursor: pointer; white-space: nowrap; }
.vpo-table thead th button:focus-visible { outline: 2px solid #2271b1; outline-offset: -2px; }
.vpo-arrow { font-size: .8em; opacity: .6; }
.vpo-table th[aria-sort="ascending"] .vpo-arrow, .vpo-table th[aria-sort="descending"] .vpo-arrow { opacity: 1; }
.vpo-table tbody tr:nth-child(even) { background: rgba(0,0,0,.03); }
.vpo-num { text-align: right; font-variant-numeric: tabular-nums; }
/* Summary tables */
.vpo-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: 1em 1.5em; margin: 0 0 1.5em; align-items: start; }
.vpo-summary:empty { display: none; }
.vpo-sum { width: 100%; border-collapse: collapse; }
.vpo-sum caption { text-align: left; font-weight: 700; padding: 0 0 .35em; caption-side: top; }
.vpo-sum th, .vpo-sum td { padding: .35em .6em; border-bottom: 1px solid rgba(0,0,0,.12); text-align: left; }
.vpo-sum thead th { background: #f5f5f5; border-bottom: 2px solid rgba(0,0,0,.25); }
.vpo-sum tfoot th, .vpo-sum tfoot td { font-weight: 700; border-top: 2px solid rgba(0,0,0,.25); border-bottom: 0; }
.vpo-sum .vpo-num, .vpo-sum th.vpo-num { text-align: right; }
@media (max-width: 600px) { .vpo-export { margin-left: 0; } }
@media print { .vpo-controls { display: none; } .vpo-summary { break-inside: avoid; } .vpo-table thead th { position: static; } }
