@import url('../viewer-controls.css?v=8fbdfc774367');
@import url('../table-columns.css?v=621d572fd370');
@import url('../table-pin.css?v=05db5fe6d080');

/* Static preview: page scrolling and one native horizontal table with a pinned thead. */
.swimming-page { position:relative; }
.swimming-grid { position:relative; z-index:101; background:#fff; }
.swimming-table thead { position:relative; z-index:2; }
/* Cover fractional transform rasterization above the browser-pinned header. */
.swimming-table thead[data-scroll-pinned]::before { content:""; position:absolute; top:-1px; left:0; right:0; height:1px; background:var(--background-color,#fff); }
.swimming-sticky-head { position:sticky; top:0; z-index:2; overflow:hidden; margin:0; background:var(--background-color); }
.swimming-sticky-head .swimming-table { border-bottom:0; }
.swimming-grid[data-sticky-ready] > .swimming-scroll thead th { height:0; padding-block:0; border:0; line-height:0; overflow:hidden; clip-path:inset(50%); }
.swimming-grid:has(> .swimming-scroll[data-statistics-loading]) > .swimming-sticky-head { visibility:hidden; height:0; }

.swimming-scroll { overflow-x:auto; overflow-y:hidden; }
.swimming-scroll[data-statistics-loading] { height:0; }
.swimming-grid > .swimming-scroll { margin:0; }
.swimming-pace-scroll { overflow:hidden; }
.swimming-pace-table { border-bottom:0; }
.swimming-pace-table .swimming-pace-spacer > td { border:0; }
.swimming-scroll:focus-visible { outline:2px solid var(--text-color); outline-offset:-2px; }
.swimming-table { width:max-content; table-layout:auto; border-collapse:separate; border-spacing:0; font-size:var(--small-font-size); line-height:22px; font-variant-numeric:tabular-nums; }
.swimming-table :is(th,td) { box-sizing:border-box; min-width:0; margin:0; padding:3px 6px 3px 7px; vertical-align:middle; white-space:nowrap; text-align:right; font-weight:400; background:var(--background-color); color:var(--text-color); }
.swimming-table td:first-child,.swimming-table td:last-child { padding:3px 6px 3px 7px; }
.swimming-table tr { border:0; }
.swimming-table thead th { font-weight:600; border-bottom:1px solid var(--statistics-rule-color); border-right:0; }
.swimming-table .swimming-label { position:sticky; left:calc(-1 * var(--margin-grid)); z-index:1; width:auto; text-align:left; padding-left:7px; padding-right:8px; white-space:nowrap; border-right:1px solid var(--statistics-rule-color); }
.swimming-table thead .swimming-label { border-right:0; }
.swimming-table .swimming-year-end { border-right:1px solid var(--statistics-rule-color); }
.swimming-table.swimming-pace-table :is(th,td) { border-inline:0; }
.swimming-table tr > :last-child { border-right:0; }
.swimming-table .swimming-rule-after > :is(th,td) { border-bottom:1px solid var(--statistics-rule-color); }
.swimming-table .swimming-count { color:#8c8c8c; padding-left:7px; padding-right:6px; }
.swimming-table .swimming-highlight { background:#adf6ff; color:#151515; }
.swimming-table .swimming-highlight.swimming-count { color:#646464; }
.swimming-table .swimming-section :is(th,td) { padding-top:27px; padding-bottom:5px; }
.swimming-caption { position:absolute; width:1px; height:1px; padding:0; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media (max-width:800px) {
  .swimming-table { line-height:20px; }
  .swimming-table .swimming-label { padding-right:7px; }
}

/* Form view shares the summary table's typography, spacing and pinned header. */
.swimming-swims-table tbody :is(th,td) { border-bottom:1px solid var(--statistics-rule-color); }
.swimming-swims-table tbody :is(th,td) { vertical-align:top; }
.swimming-swims-table tbody tr:last-child > :is(th,td) { border-bottom:0; }
.swimming-swims-table tr > :is(:nth-child(9),:nth-child(11),:nth-child(13)) { text-align:left; }
.swimming-swims-table .activity-file { display:table-cell; overflow:visible; }
.swimming-swims-table .activity-file p.text { display:inline-block; font:inherit; line-height:inherit; padding:0; margin:0; text-box-trim:none; text-align:center; }
.swimming-swims-table .activity-file .activity-fit-link svg { vertical-align:calc(-.7em * 5 / 18); }
.swimming-swims-table .activity-file > p.text:first-child:not(:last-child) { margin-inline-end:var(--margin-grid-half); }
.swimming-swims-table .activity-fit-choices { display:inline-block; font:inherit; position:static; text-align:center; }
.swimming-swims-table .activity-file > p.text > a.activity-fit-link:not(.activity-edit-control),
.swimming-swims-table .activity-fit-choices > summary { position:static; }
.swimming-swims-table .activity-file > p.text > a.activity-fit-link:not(.activity-edit-control)::after,
.swimming-swims-table .activity-fit-choices > summary::after { content:""; position:absolute; inset:0; cursor:pointer; }
.swimming-swims-table .activity-file > p.text > a.activity-edit-control { position:relative; z-index:1; }
.swimming-status { font-size:var(--small-font-size); margin:12px 7px; }

.swimming-swims-table { --statistics-file-color:var(--text-color); }
.swimming-swims-table .swimming-comment { --text-color:var(--statistics-file-color); }
@media (hover:hover) {
  .swimming-swims-table tbody tr:hover:has(:is(.swimming-comment,.activity-file):hover) { --text-color:var(--statistics-file-color); }
  .swimming-swims-table tbody .swimming-comment:hover { --text-color:var(--hover-color); }
  .swimming-swims-table .activity-file:hover .activity-fit-link { color:var(--hover-color); }
}
.swimming-swims-table tr > :is(th,td):nth-child(n) { padding-inline:7px; border-inline:0; }
.swimming-swims-table thead th { line-height:var(--small-line-height); }
.swimming-swims-table .swimming-metric-state { color:#8c8c8c; }
.swimming-column-sizing { visibility:collapse; }
.swimming-column-sizing span { display:block; }
.swimming-comment-text { display:block; max-width:0; min-width:100%; overflow:hidden; white-space:nowrap; text-overflow:clip; cursor:pointer; }
.swimming-comment-text[aria-expanded="true"] { min-width:100%; white-space:pre-wrap; overflow-wrap:anywhere; }
.swimming-comment-text:focus-visible { outline:2px solid var(--text-color); outline-offset:-2px; }
.swimming-swims-table .activity-source-link { text-decoration:none; }
/* The frozen leftmost label trades right padding for left padding without resizing. */
.swimming-table tr > :is(th,td):first-child { padding-left:0; }
.swimming-table tr > .swimming-label:first-child { padding-left:var(--statistics-frozen-padding,0px); padding-right:calc(15px - var(--statistics-frozen-padding,0px)); }
@media(max-width:800px) { .swimming-table tr > .swimming-label:first-child { padding-right:calc(14px - var(--statistics-frozen-padding,0px)); } }

.swimming-table tr > :is(th,td):last-child { padding-right:0; }

/* The anchored editor uses shared filter controls and keeps the table grid fixed. */
.swimming-swims-table .swimming-count-distance { cursor:pointer; }
.swimming-swims-table .swimming-count-distance[aria-expanded="true"] { box-shadow:inset 0 0 0 2px #000; }
.swimming-count-editor { position:fixed; z-index:1200; box-sizing:border-box; width:max-content; overflow:auto; padding:0; background:#fff; font-family:CoFoSans,sans-serif; font-size:var(--small-font-size); }
.swimming-count-editor .statistics-filter { min-height:40px; font:inherit; text-align:right; }
.swimming-count-repeats[hidden] { display:none; }
.swimming-count-editor input.swimming-count-input { box-sizing:border-box; width:calc(var(--swimming-count-digits,1) * 1ch + var(--swimming-count-option-padding,18px) + 2px); min-width:0; height:40px; margin:0; padding:0 2px 0 var(--swimming-count-option-padding,18px); border:0; background:#000; color:#fff; caret-color:#fff; font:inherit; text-align:right; }
.swimming-count-distance-label { padding-right:var(--swimming-count-option-padding,18px); color:#fff; }
.swimming-count-input[aria-invalid="true"] { box-shadow:inset 0 0 0 2px var(--hover-color); }
.swimming-count-input:read-only { opacity:.6; }

/* Session-only edits and the shared viewer Undo control. */
.swimming-swims-table tbody tr > td.swimming-count-changed { background:#fff2a8; }
.swimming-count-undo { position:fixed; z-index:1000; right:22px; bottom:max(22px,calc(env(safe-area-inset-bottom) + 22px)); }
.swimming-count-undo[hidden] { display:none; }
@media (max-width:800px) {
 .swimming-count-undo { right:11px; bottom:max(13px,calc(env(safe-area-inset-bottom) + 13px)); }
 .swimming-count-undo-visible .swimming-controls { max-width:calc(100% - 85px); }
}
