.attendance-page{min-width:0}.attendance-heading{display:flex;justify-content:space-between;align-items:end;gap:18px;flex-wrap:wrap}.attendance-actions,.attendance-views{display:flex;align-items:center;gap:8px}.attendance-views{padding:3px;background:#fff;border:1px solid var(--line);border-radius:8px}.attendance-view,.attendance-export,.attendance-filters button{border:1px solid var(--line);background:#fff;color:var(--ink2);border-radius:6px;padding:9px 13px;font-size:12px;font-weight:650}.attendance-view{border:0}.attendance-view.active{background:var(--side);color:#fff}.attendance-filters{display:flex;align-items:end;gap:13px;flex-wrap:wrap;margin:21px 0 16px}.attendance-filters label{display:grid;gap:6px;min-width:180px;color:var(--muted);font-size:11px;font-weight:700}.attendance-filters select,.attendance-filters input{height:37px;min-width:180px;padding:0 11px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:12px}.attendance-search{flex:1}.attendance-search input{width:100%}.attendance-card{background:#fff;border:1px solid var(--line);border-radius:9px;overflow:hidden}.attendance-matrix-scroll{overflow-x:auto;max-width:100%;scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;cursor:grab}.attendance-matrix{border-collapse:separate;border-spacing:0;width:max-content;min-width:100%;table-layout:fixed;font-size:11px}.attendance-matrix th,.attendance-matrix td{border-right:1px solid #e9edf1;border-bottom:1px solid #e9edf1;padding:7px 10px;background:#fff}.attendance-matrix tr>*:last-child{border-right:0}.attendance-matrix thead th{position:sticky;top:0;z-index:3;height:76px;vertical-align:middle;background:#fff}.attendance-matrix tbody th,.attendance-matrix tbody td{height:61px}.attendance-matrix tbody tr:hover th,.attendance-matrix tbody tr:hover td{background:#fbfcfd}.attendance-matrix .attendance-person-column{position:sticky;left:0;z-index:2;width:190px;min-width:190px;max-width:190px;text-align:left}.attendance-matrix thead .attendance-person-column{z-index:5}.attendance-matrix .attendance-game-column{width:145px;min-width:145px;max-width:145px;text-align:center}.attendance-person{display:flex;align-items:center;gap:9px;min-width:0}.attendance-person-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attendance-person-name small{display:block;color:var(--muted);font-size:9px}.attendance-avatar{display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#e9eef1;color:#354753;font-weight:800;font-size:10px}.attendance-game-head{display:flex;align-items:center;justify-content:center}.attendance-matrix-logo{height:54px;max-width:72px;object-fit:contain;cursor:help}.attendance-game-mark{display:grid;place-items:center;width:54px;height:54px;border-radius:8px;background:#edf2f5;color:#5f7180;font-size:13px;font-weight:800;cursor:help}.attendance-response,.attendance-confirm,.attendance-pending{display:block;width:100%;max-width:132px;margin:2px auto;padding:4px 5px;border-radius:5px;font-weight:700;font-size:10px;line-height:1.35;text-align:center}.attendance-response-committed{background:#e5f6e8;color:#236b3d}.attendance-response-declined{background:#fcebed;color:#a83d4e}.attendance-response-open,.attendance-pending{background:#f1f3f5;color:#7d8b98}.attendance-confirm{border:1px solid transparent;cursor:pointer}.attendance-confirm:hover{border-color:#a1b0bd}.attendance-present{background:#dcf3e4;color:#17643a}.attendance-unexcused{background:#fde6e7;color:#b52d40}.attendance-late{background:#fff0d5;color:#99651b}.attendance-absent{background:#fcebed;color:#a83d4e}.attendance-open{background:#edf1f4;color:#647586}.attendance-footer{display:flex;justify-content:space-between;gap:12px;padding:13px 16px;color:var(--muted);font-size:11px}.attendance-footer>span:first-child{font-weight:700;color:var(--ink2)}.attendance-hint{font-size:11px;color:var(--muted);margin:15px 1px}.attendance-popover{position:fixed;z-index:90;width:182px;background:#fff;border:1px solid var(--line);box-shadow:0 15px 40px #15213030;border-radius:8px;padding:7px}.attendance-popover-title{padding:7px 9px;font-size:10px;font-weight:750;color:var(--muted)}.attendance-popover button{display:block;width:100%;padding:8px 9px;border:0;border-radius:5px;background:#fff;text-align:left;color:var(--ink2);font-size:11px}.attendance-popover button:hover,.attendance-popover button:focus-visible{background:#f2f6f8}.attendance-cards>div{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:15px}.attendance-day-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:16px}.attendance-day-head{display:flex;align-items:center;justify-content:center;min-height:70px;padding-bottom:12px;border-bottom:1px solid var(--line)}.attendance-card-logo{width:60px;height:58px;object-fit:contain;cursor:help}.attendance-day-person{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #edf0f2}.attendance-day-person:last-child{border-bottom:0}.attendance-day-person strong{display:block}.attendance-day-person>div:last-child{width:132px;flex:none}.attendance-empty{text-align:center;padding:28px!important;color:var(--muted)}@media(max-width:700px){.attendance-heading{align-items:start}.attendance-actions{width:100%;justify-content:space-between}.attendance-filters label{flex:1;min-width:135px}.attendance-filters select,.attendance-filters input{min-width:0;width:100%}.attendance-matrix .attendance-person-column{width:150px;min-width:150px;max-width:150px}.attendance-matrix .attendance-game-column{width:132px;min-width:132px;max-width:132px}.attendance-footer{flex-wrap:wrap}}
.attendance-logo-tooltip{position:fixed;z-index:110;max-width:min(280px,calc(100vw - 16px));padding:9px 12px;border-radius:7px;background:#192a36;color:#fff;font-size:11px;font-weight:650;line-height:1.5;white-space:pre-line;text-align:center;box-shadow:0 9px 24px #12202b40;pointer-events:none}

.attendance-matrix-scroll::-webkit-scrollbar{display:none;width:0;height:0}.attendance-matrix-scroll.is-dragging,.attendance-matrix-scroll.is-dragging *{cursor:grabbing!important;user-select:none}.attendance-scroll-controls{margin-left:0}@media(max-width:700px){.attendance-actions{flex-wrap:wrap}}
.attendance-matrix thead th.attendance-recent{background:#f1f7e9;box-shadow:inset 0 3px 0 #c9dfaa}.attendance-matrix tbody td.attendance-recent{background:#f5f9f0}.attendance-matrix tbody tr:hover td.attendance-recent{background:#edf5e5}
span.attendance-confirm{cursor:default}span.attendance-confirm:hover{border-color:transparent}
.attendance-person-link{color:inherit;text-decoration:none;border-radius:4px}.attendance-person-link:hover,.attendance-person-link:focus-visible{color:#22653d;text-decoration:underline}.attendance-person-link:focus-visible,.attendance-back:focus-visible{outline:2px solid #88ad42;outline-offset:3px}
.attendance-user-page{max-width:1120px}.attendance-back{display:inline-flex;margin:0 0 19px;color:#52636c;font-size:12px;font-weight:700;text-decoration:none}.attendance-back:hover{text-decoration:underline}.attendance-user-heading{align-items:end}.attendance-user-season{display:grid;gap:6px;min-width:190px;color:var(--muted);font-size:11px;font-weight:700}.attendance-user-season select{height:37px;padding:0 11px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);font-size:12px}.attendance-user-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:22px 0 27px}.attendance-user-stat{display:flex;flex-direction:column;min-height:112px;padding:17px 19px;background:#fff;border:1px solid var(--line);border-radius:9px}.attendance-user-stat span{color:#58656e;font-size:12px;font-weight:700}.attendance-user-stat strong{margin:7px 0 4px;color:#1c292f;font-size:30px;line-height:1.1}.attendance-user-stat small{color:#87929a;font-size:11px}.attendance-user-section-heading{display:flex;align-items:end;justify-content:space-between;gap:15px;margin-bottom:13px}.attendance-user-section-heading h2{margin:0 0 4px;font-size:18px}.attendance-user-section-heading p{margin:0;color:var(--muted);font-size:12px}.attendance-user-section-heading>span{color:var(--muted);font-size:12px;white-space:nowrap}.attendance-user-table-scroll{overflow-x:auto;background:#fff;border:1px solid var(--line);border-radius:9px}.attendance-user-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}.attendance-user-table th{padding:13px 17px;background:#f7f9fa;color:#64717a;font-size:11px}.attendance-user-table td{padding:14px 17px;border-top:1px solid #e9edf1;vertical-align:middle}.attendance-user-table td:first-child{white-space:nowrap}.attendance-user-table td small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.attendance-user-badge,.attendance-user-future{display:inline-block;padding:5px 8px;border-radius:5px;font-size:11px;font-weight:700;white-space:nowrap}.attendance-user-future{background:#f1f3f5;color:#7d8b98}@media(max-width:850px){.attendance-user-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:750px){.attendance-user-season{width:100%}.attendance-user-table{min-width:600px}}@media(max-width:420px){.attendance-user-stats{gap:9px}.attendance-user-stat{padding:13px;min-height:105px}.attendance-user-stat strong{font-size:25px}}

.attendance-user-charts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0 0 27px}
.attendance-user-chart-card{min-width:0;min-height:300px;padding:19px 22px;background:#fff;border:1px solid var(--line);border-radius:9px}
.attendance-user-chart-card h2{margin:0 0 4px;font-size:16px;color:var(--ink)}
.attendance-user-chart-card>p{margin:0;color:var(--muted);font-size:11px}
.attendance-user-bar-frame{height:220px;margin-top:15px}
.attendance-user-position-frame{height:220px;margin-top:15px}
.attendance-user-doughnut-frame{position:relative;width:220px;height:220px;margin:15px auto 0}
.attendance-user-doughnut-frame>span{position:absolute;inset:0;display:grid;place-items:center;font-size:26px;font-weight:800;color:var(--ink);pointer-events:none}
.attendance-user-bar-frame canvas,.attendance-user-doughnut-frame canvas,.attendance-user-position-frame canvas{width:100%!important;height:100%!important}
.attendance-user-chart-empty{display:grid;place-items:center;min-height:220px;text-align:center}
@media(max-width:1100px){.attendance-user-charts{grid-template-columns:repeat(2,minmax(0,1fr))}.attendance-user-charts>.attendance-user-chart-card:last-child{grid-column:1/-1}}
@media(max-width:850px){.attendance-user-charts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.attendance-user-charts>.attendance-user-chart-card:last-child{grid-column:1/-1}.attendance-user-chart-card{min-height:260px;padding:13px 11px}.attendance-user-chart-card h2{font-size:13px;hyphens:auto;overflow-wrap:anywhere}.attendance-user-chart-card>p{font-size:10px}.attendance-user-bar-frame{height:160px;margin-top:12px}.attendance-user-doughnut-frame{width:min(100%,160px);height:auto;aspect-ratio:1;margin-top:12px}.attendance-user-doughnut-frame>span{font-size:20px}.attendance-user-chart-empty{min-height:160px}.attendance-user-charts>.attendance-user-chart-card:last-child{min-height:300px}}

.attendance-present {--status-color:var(--attendance-present)}
.attendance-late {--status-color:var(--attendance-late)}
.attendance-absent {--status-color:var(--attendance-absent)}
.attendance-declined {--status-color:var(--attendance-declined)}
.attendance-unexcused {--status-color:var(--attendance-unexcused)}
.attendance-open {--status-color:var(--attendance-open)}
.attendance-present,.attendance-late,.attendance-absent,.attendance-declined,.attendance-unexcused,.attendance-open,.attendance-response-declined {
 background:color-mix(in srgb,var(--status-color,var(--attendance-declined)) 18%,white);
 color:color-mix(in srgb,var(--status-color,var(--attendance-declined)) 40%,#172128);
}

.attendance-matrix .attendance-rate-column{position:sticky;left:190px;z-index:2;width:70px;min-width:70px;max-width:70px;padding:5px 4px;text-align:center;background:#fff}
.attendance-matrix thead .attendance-rate-column{z-index:5;font-size:10px;color:var(--muted)}
.attendance-rate{display:grid;place-items:center;position:relative;width:43px;height:43px;margin:auto;border-radius:50%;background:conic-gradient(var(--attendance-rate-color,#e7ebee) var(--attendance-rate),#e7ebee 0);color:var(--ink);font-size:10px;font-weight:800;white-space:nowrap}
.attendance-rate-low{--attendance-rate-color:var(--attendance-rate-low)}
.attendance-rate-medium{--attendance-rate-color:var(--attendance-rate-medium)}
.attendance-rate-good{--attendance-rate-color:var(--attendance-rate-good)}
.attendance-rate-high{--attendance-rate-color:var(--attendance-rate-high)}
.attendance-rate::before{content:"";position:absolute;inset:5px;border-radius:50%;background:#fff}
.attendance-rate>span{position:relative;z-index:1}
.attendance-matrix tbody tr:hover .attendance-rate-column{background:#fbfcfd}
@media(max-width:700px){.attendance-matrix .attendance-rate-column{left:150px;width:62px;min-width:62px;max-width:62px}}

/* The logo toggles a single game column between labels and compact status icons. */
.attendance-matrix thead th{height:60px}
.attendance-matrix tbody th,.attendance-matrix tbody td{height:53px}
.attendance-matrix .attendance-game-column{width:116px;min-width:116px;max-width:116px}
.attendance-matrix .attendance-game-column.attendance-compact{width:58px;min-width:58px;max-width:58px;padding-left:4px;padding-right:4px}
.attendance-logo-toggle{display:grid;place-items:center;width:48px;height:44px;margin:auto;padding:2px;border:0;border-radius:6px;background:transparent;cursor:pointer}
.attendance-logo-toggle:hover{background:#eef3f0}
.attendance-logo-toggle:focus-visible{outline:2px solid #88ad42;outline-offset:2px}
.attendance-matrix-logo{display:block;max-width:44px;height:38px;object-fit:contain;cursor:pointer}
.attendance-logo-toggle .attendance-game-mark{width:38px;height:38px;font-size:11px;cursor:pointer}
.attendance-game-column.attendance-compact .attendance-response,.attendance-game-column.attendance-compact .attendance-confirm,.attendance-game-column.attendance-compact .attendance-pending{display:grid;place-items:center;width:27px;height:22px;min-height:22px;margin:2px auto;padding:2px}
.attendance-game-column.attendance-compact .attendance-response svg,.attendance-game-column.attendance-compact .attendance-confirm svg,.attendance-game-column.attendance-compact .attendance-pending svg{width:15px;height:15px;stroke-width:2.3}
.attendance-game-column .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.attendance-matrix .attendance-game-column{width:110px;min-width:110px;max-width:110px}.attendance-matrix .attendance-game-column.attendance-compact{width:58px;min-width:58px;max-width:58px}}
.attendance-matrix{--attendance-person-width:160px}
.attendance-matrix .attendance-person-column{width:var(--attendance-person-width);min-width:var(--attendance-person-width);max-width:var(--attendance-person-width);padding-left:8px;padding-right:8px}
.attendance-matrix .attendance-rate-column{left:var(--attendance-person-width)}
@media(max-width:700px){.attendance-matrix{--attendance-person-width:140px}}
.attendance-card>.attendance-empty{margin:0}.attendance-footer[hidden],.attendance-scroll-controls[hidden]{display:none}.attendance-export:disabled{opacity:.5;cursor:not-allowed}
.attendance-actions{flex-wrap:wrap}.attendance-actions #attendanceCompactAll[hidden]{display:none}
.attendance-user-opponent-logo{display:block;width:52px;height:42px;object-fit:contain}.attendance-user-opponent-fallback{display:grid;place-items:center;width:42px;height:42px;border-radius:8px;background:#edf2f5;color:#5f7180;font-size:12px;font-weight:800}
.attendance-user-heading-short,.attendance-user-chip-icon{display:none}
@media(max-width:750px){.attendance-user-heading{flex-direction:column;align-items:stretch;gap:14px}.attendance-user-heading>div{min-width:0}.attendance-user-heading .subtitle{white-space:nowrap}.attendance-user-season{width:100%}.attendance-user-season select{width:100%}}
@media(max-width:750px){.attendance-user-table-scroll{overflow-x:visible}.attendance-user-table{width:100%;min-width:0;table-layout:fixed}.attendance-user-table th,.attendance-user-table td{box-sizing:border-box;padding:9px 5px}.attendance-user-table th{font-size:10px}.attendance-user-table th:nth-child(1){width:27%}.attendance-user-table th:nth-child(2){width:18%}.attendance-user-table th:nth-child(3),.attendance-user-table th:nth-child(4){width:27.5%}.attendance-user-table td:first-child{white-space:normal}.attendance-user-table td:first-child strong{white-space:nowrap;font-size:10px}.attendance-user-table td small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attendance-user-table td:nth-child(2){text-align:center}.attendance-user-opponent-logo{width:100%;max-width:42px;height:36px;margin:auto}.attendance-user-opponent-fallback{width:36px;height:36px;margin:auto}.attendance-user-heading-full{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.attendance-user-chip-text{display:none}.attendance-user-heading-short{display:inline}.attendance-user-table .attendance-user-badge,.attendance-user-table .attendance-user-future{display:grid;place-items:center;width:30px;height:26px;margin:auto;padding:0}.attendance-user-chip-icon{display:block;width:16px;height:16px}}
