/* Weekly History owns its table styles. */
.history-workspace{max-width:1100px;margin:auto}
.history-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.history-heading h1{font-size:26px;margin:0}
.history-heading>span{font-size:14px;color:var(--gold)}
.history-layout{max-width:300px;margin-bottom:8px}
.history-layout button{min-height:42px;font-size:14px;padding:7px 12px}
.history-layout [data-history-layout=columns] svg{transform:rotate(90deg)}
.history-period{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--muted);font-size:14px;margin:4px 0 10px}
.history-period .icon-button{width:44px;min-height:44px;background:transparent;color:var(--gold);font-size:26px}
.history-table-scroll{overflow-x:auto;max-width:100%;border:1px solid var(--line);border-radius:9px;background:var(--surface)}
.history-table{width:100%;min-width:438px;table-layout:fixed;border-collapse:separate;border-spacing:0}
.history-table th,.history-table td{padding:0;text-align:center;border-bottom:1px solid var(--line);font-weight:400;vertical-align:middle}
.history-table th:first-child{position:sticky;inset-inline-start:0;width:116px;padding:7px 10px;background:var(--surface);text-align:start;font-size:13px;z-index:1;overflow-wrap:anywhere}
.history-table thead th{height:50px;background:var(--nav);color:var(--muted);font-size:12px;padding:6px 3px}
.history-table thead th:first-child{background:var(--nav)}
.history-table thead small{display:block;font-size:12px;color:var(--ink);margin-top:2px}
.history-table .history-group th{position:static;background:var(--nav);color:var(--gold);font-size:13px;padding:7px 10px;height:36px}
.history-group button{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:0;background:transparent;color:var(--gold);font-size:13px;text-align:start;min-height:30px}
.history-group button>span{text-decoration:underline;text-underline-offset:3px}
.history-group small{font-size:12px;color:var(--muted)}
.history-table .history-mark{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:0;width:100%;min-height:44px;border:0;border-radius:0;background:transparent;padding:4px 2px;color:var(--gold);font-size:19px;font-variant-numeric:tabular-nums}
.history-mark small{font-size:11px}
.history-table .history-mark.pages{font-size:14px;color:var(--ink)}
.history-table .history-mark.unknown,.history-table .history-mark.unrecorded,.history-table .history-mark.notPrayed{color:var(--muted)}
.history-table .history-mark.late{color:var(--orange)}
.history-table .history-mark.excused{color:var(--purple)}
.history-table .history-mark:hover{background:var(--raised)}
.history-table .history-mark:disabled{opacity:.4}
.history-table .history-today{background:var(--raised)!important}
.history-unavailable{opacity:.35}
.history-legend{display:flex;flex-wrap:wrap;gap:6px 14px;color:var(--muted);font-size:12px;margin:12px 0}
.history-legend b{font-size:16px;font-weight:400;color:var(--gold)}
.history-categories{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.history-categories button{min-height:40px;padding:7px 10px;font-size:13px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--muted)}
.history-categories [aria-pressed=true]{background:var(--raised);border-color:var(--gold);color:var(--gold)}
.history-columns{min-width:max(100%,calc(76px + var(--history-activities)*70px))}
.history-columns th:first-child{width:76px}
.history-columns thead th{overflow-wrap:anywhere}
@media(min-width:800px){.history-table th:first-child{width:170px}.history-table th:first-child,.history-table thead th{font-size:14px}.history-columns th:first-child{width:90px}}
