/* Scoped to the public workload report; timetable and admin styles stay unchanged. */
.public-workload .workload-help,.public-workload .workload-summary{font-size:12px;line-height:1.7;color:#60778b;margin:0 0 16px}
.public-workload .workload-scroll{overflow:auto;border:1px solid #b0bec5;border-radius:0;background:white}
.public-workload .workload-matrix{width:100%;min-width:850px;border-collapse:separate;border-spacing:0;table-layout:fixed;font-size:13px;font-variant-numeric:tabular-nums}
.public-workload .workload-matrix th,.public-workload .workload-matrix td{height:36px;padding:5px 4px;border:0;border-right:1px solid #b0bec5;border-bottom:1px solid #b0bec5;text-align:center;line-height:1.5;font-weight:400}
.public-workload .workload-matrix tr>*:last-child{border-right:0}
.public-workload .workload-matrix thead th{background:#dfedf8;color:#29475c}
.public-workload .workload-matrix .count-order{width:44px;background:white;color:#53667a}
.public-workload .workload-matrix .count-name{width:210px;text-align:left;padding-left:10px;background:white;white-space:nowrap}
.public-workload .workload-matrix thead .count-name,.public-workload .workload-matrix thead .count-order{background:#dfedf8}
.public-workload .workload-matrix tbody td{background:#fff}
.public-workload .workload-matrix tbody td.has-periods{background:#d3f0d7;color:#1b6130}
.public-workload .workload-matrix .count-total{width:88px;background:#ffe0c5;color:#664027}
.public-workload .workload-matrix thead .count-total{background:#dfedf8;color:#29475c}
.public-workload .workload-matrix tfoot th,.public-workload .workload-matrix tfoot td{background:#e6effb;border-bottom:0}
.public-workload .workload-summary{margin-top:12px}
.public-workload .workload-name-button{padding:0;min-height:0;background:none;border:0;color:inherit;font:inherit;text-align:left;cursor:pointer}
.public-workload .workload-name-button:hover,.public-workload .workload-name-button:focus-visible{text-decoration:underline;color:#d92342}
@media screen{body[data-view="workload"] .result-line .legend{display:none}.public-workload .workload-matrix .count-name{position:sticky;left:0;z-index:1}.public-workload .workload-matrix thead{position:sticky;top:0;z-index:2}}
@media screen and (max-width:760px){.public-workload .workload-matrix .count-name{width:130px}.public-workload .workload-matrix{font-size:12px;min-width:780px}.public-workload .workload-help{font-size:11px}}
@media print{.public-workload .workload-scroll{overflow:visible}.public-workload .workload-matrix{min-width:0;font-size:10px}.public-workload .workload-matrix .count-name{width:150px}.public-workload .workload-matrix th,.public-workload .workload-matrix td{height:auto;padding:4px}.public-workload .workload-matrix .count-order{width:30px}.public-workload .workload-matrix .count-total{width:65px}.public-workload tr{break-inside:avoid}.public-workload thead{display:table-header-group}.public-workload tfoot{display:table-row-group}.public-workload .workload-help,.public-workload .workload-summary{font-size:10px}}
/* Published workload details: nonmodal card shared by hover, keyboard and touch. */
.public-workload .workload-matrix td.has-periods{padding:0}
.public-workload .workload-cell-button{display:block;width:100%;min-height:35px;padding:5px 4px;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;line-height:1.5;font-variant-numeric:tabular-nums}
.public-workload .workload-cell-button:hover,.public-workload .workload-cell-button[aria-expanded=true]{background:#c1e7d0;box-shadow:inset 0 0 0 2px #448aff}
.public-workload .workload-cell-button:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}
.workload-detail-card{position:fixed;z-index:1000;width:360px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:18px;display:flex;flex-direction:column;gap:14px;border:1px solid #c8d5e6;border-radius:12px;background:#fff;color:#304768;box-shadow:0 10px 32px #152a432b,0 2px 6px #152a4310;font:13px/1.6 "TH Sarabun New","Noto Sans Thai",Tahoma,sans-serif;text-align:left}
.workload-detail-card[hidden]{display:none!important}
.workload-detail-card::before{content:"";position:absolute;top:var(--arrow-y);width:12px;height:12px;background:#fff;transform:translateY(-50%) rotate(45deg)}
.workload-detail-card[data-side=right]::before{left:-7px;border-bottom:1px solid #c8d5e6;border-left:1px solid #c8d5e6}
.workload-detail-card[data-side=left]::before{right:-7px;border-top:1px solid #c8d5e6;border-right:1px solid #c8d5e6}
.workload-detail-card[data-side=none]::before{display:none}
.workload-detail-header{display:flex;align-items:flex-start;gap:10px;flex:none}
.workload-detail-header>svg{width:26px;height:26px;flex:0 0 26px;margin-top:4px}
.workload-detail-header svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.workload-detail-header>div{flex:1;min-width:0}
.workload-detail-identity{display:flex;align-items:center;flex-wrap:wrap;gap:5px 9px}
.workload-detail-identity strong{font-size:17px;font-weight:600;color:#172d4d;overflow-wrap:anywhere}
.workload-detail-grade{border-radius:20px;padding:2px 10px;background:#e8f0ff;color:#2463cd;font-size:12px;white-space:nowrap}
.workload-detail-header p{margin:2px 0 0;color:#7c8ca5;font-size:12px}
.workload-detail-header button{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:7px;margin:-7px -7px 0 0;border:0;border-radius:7px;background:transparent;color:#7e8da1}
.workload-detail-header button svg{width:20px;height:20px}
.workload-detail-header button:hover{background:#f0f4fa;color:#263d60}
.workload-detail-card :is(button,[tabindex]):focus-visible{outline:2px solid #448aff;outline-offset:2px}
.workload-detail-total{display:flex;align-items:center;gap:7px;flex:none;border-radius:8px;background:#eff5ff;padding:10px 12px;color:#234b82;font-size:12px}
.workload-detail-total>span:first-child{margin-right:auto;font-weight:500}
.workload-detail-total strong{font-size:28px;font-weight:600;line-height:1.3}
.workload-detail-total>span:last-child{white-space:nowrap}
.workload-detail-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid #e1eafa;border-radius:8px}
.workload-detail-scroll table{width:100%;border-collapse:separate;border-spacing:0;font:inherit;table-layout:fixed}
.workload-detail-scroll th,.workload-detail-scroll td{padding:6px 12px;border:0;border-bottom:1px solid #eaf0f8;text-align:left;overflow-wrap:anywhere}
.workload-detail-scroll th{position:sticky;top:0;background:#f0f5ff;color:#234b82;font-weight:600;z-index:1}
.workload-detail-scroll tr>*:last-child{width:77px;text-align:right}
.workload-detail-scroll tbody tr:nth-child(even){background:#f8faff}
.workload-detail-scroll tbody tr:last-child td{border-bottom:0}
.workload-detail-scroll td:last-child span{display:inline-block;min-width:32px;padding:0 6px;text-align:center;background:#e8f0ff;border-radius:6px;color:#2b507e;font-variant-numeric:tabular-nums}
@media(max-width:760px){.workload-detail-header button{flex-basis:44px;width:44px;height:44px}.workload-detail-card{padding:14px;gap:12px}.workload-detail-total{padding:9px;font-size:11px}.workload-detail-total strong{font-size:25px}}
@media print{.workload-detail-card{display:none!important}.public-workload .workload-cell-button{padding:4px;min-height:0;box-shadow:none!important;background:transparent!important;border:0;outline:0}}
