.weekly-history{max-width:1156px;margin:8px auto 20px;background:#fff;border:1px solid #dce5eb;border-radius:14px;padding:23px 28px;color:#27384b;box-sizing:border-box;font-size:14px;line-height:1.6}
.history-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px}
.weekly-history h2{font-size:19px;line-height:1.4;margin:0 0 3px;font-weight:700;letter-spacing:0}
.history-heading p,.history-context{margin:0;color:#64788a;font-size:12px}
.history-count{font-size:12px;color:#147f93;background:#edf6f7;padding:4px 10px;border-radius:6px;white-space:nowrap}
.history-controls{display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.history-field{display:flex;flex-direction:column;gap:5px;flex:1;min-width:240px;max-width:390px}
.history-field label{font-size:12px;font-weight:600;color:#53697b}
.history-field select{width:100%;min-height:43px;border:1px solid #b8cbd6;border-radius:7px;background:#fff;color:#203f57;padding:9px 32px 9px 12px;font:inherit;font-weight:600;cursor:pointer}
.history-controls a,.history-disabled{min-height:43px;padding:9px 14px;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce5eb;border-radius:7px;text-decoration:none;font-size:13px;color:#365870;background:#fff;white-space:nowrap}
.history-controls a:hover{border-color:#147f93;background:#edf6f7;color:#106c7d}
.history-controls .history-share{border-color:transparent;background:#f0f5f8;margin-left:auto;color:#147f93}
.history-disabled{color:#9aaab5;background:#f8fafb}
.history-context{margin-top:12px;line-height:1.8}
.history-context strong{color:#53697b;font-weight:600}
.history-compare{border-top:1px solid #e6edf1;margin-top:16px;padding-top:12px}
.history-compare summary{font-size:13px;font-weight:600;color:#147f93;cursor:pointer;width:fit-content;min-height:28px;line-height:28px}
.history-compare summary:hover{color:#0d5865}
.history-compare h3{font-size:14px;margin:20px 0 10px;color:#203f57}
.history-scroll{overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid #dce5eb;border-radius:8px;width:100%}
.history-table{border-collapse:collapse;width:100%;min-width:920px;font-size:12px;line-height:1.6;table-layout:auto}
.history-table th,.history-table td{padding:12px 13px;text-align:right;border-bottom:1px solid #e6edf1;white-space:nowrap;vertical-align:top}
.history-table th{color:#53697b;background:#f3f7f9;font-size:11px;font-weight:600}
.history-table th:first-child,.history-table td:first-child{text-align:left}
.history-table tr:last-child td{border-bottom:0}
.history-table tr[aria-current="true"] td{background:#edf6f7}
.history-table td strong{font-weight:600;font-variant-numeric:tabular-nums}
.history-table a{color:#147f93;text-decoration:none;font-weight:600}
.history-table a:hover{text-decoration:underline}
.history-table small{display:block;color:#6b7e8b;font-size:10px;font-weight:400;white-space:normal;min-width:120px;max-width:190px}
.history-note{font-size:11px;color:#718391;margin:10px 0 0;line-height:1.8}
.weekly-history :focus-visible{outline:3px solid #36a3b7;outline-offset:3px}
@media(max-width:1190px){.weekly-history{margin-left:18px;margin-right:18px}}
@media(max-width:600px){.weekly-history{padding:18px 16px;margin:6px 12px 14px}.history-heading{gap:8px}.history-field{max-width:none;min-width:100%}.history-controls{gap:8px}.history-controls a,.history-disabled{padding:9px 10px;font-size:12px}.history-controls .history-share{margin-left:auto}.history-count{padding:3px 7px;font-size:11px}.history-context{font-size:11px}.history-table{min-width:850px}}
@media print{.weekly-history{padding:12px;border-color:#ccc;margin:0 0 12px;box-shadow:none;break-inside:avoid}.history-controls,.history-compare,.history-count{display:none}.history-heading{margin-bottom:0}}
