.reference-sheet{overflow-x:auto;margin-bottom:24px;background:#fff;color:#111;box-shadow:0 7px 30px rgba(20,45,35,.04)}
.reference-grid{border-collapse:collapse;table-layout:fixed;width:100%;min-width:1000px;font-family:'Segoe UI',Tahoma,sans-serif;font-size:13px;line-height:1.24;color:#111;background:#fff}
.reference-grid .ref-session-col{width:48px}.reference-grid .ref-duty-col{width:110px}
.reference-grid th,.reference-grid td{border:1.5px solid #151515;text-align:center;vertical-align:middle;padding:5px 7px;font-weight:400;overflow-wrap:normal;position:relative}
.reference-grid thead th{padding:3px 5px;line-height:1.1}.reference-grid thead .ref-hours{background:#dfddec;height:37px;font-size:15px;font-weight:700;padding:8px}.reference-grid .ref-date{font-size:12px;background:#fff}.reference-grid .ref-date.ref-highlight-date{background:#ffff79}.reference-grid .ref-day{font-size:15px;font-weight:700}.reference-grid .ref-session{font-size:15px;font-weight:700}.reference-grid .ref-duty{font-size:12px;line-height:1.2;padding:6px 7px}.reference-grid .ref-section th{font-size:16px;font-weight:700;padding:2px 5px;height:23px;border-top-width:3px;border-bottom-width:3px}.reference-grid .ref-outpatient th{background:#b0cc8b}.reference-grid .ref-inpatient th{background:#d97280}.reference-grid .ref-session-start>th,.reference-grid .ref-session-start>td{border-top-width:4px}.reference-grid .ref-closed{background:#aaa!important;padding:0}.reference-grid .ref-closed .reference-edit{min-height:40px}
.reference-grid td{height:39px}.reference-edit,.reference-cell-content{display:block;min-height:27px;align-content:center;color:inherit;text-decoration:none;padding:3px 0;font-size:13px}.reference-edit:hover{background:#e9f2e9;color:#111;box-shadow:0 0 0 4px #e9f2e9}.reference-person,.reference-bracket{display:inline}.reference-grid .ref-red{color:#a52327}.reference-grid .ref-underlined{text-decoration:underline;text-underline-offset:2px}.ref-duty-note{display:block;font-size:10px;font-style:italic;margin-top:4px;color:#555}.ref-unfilled{font-size:10px;color:#758278}.reference-closed-edit{position:absolute;inset:0;display:grid;place-items:center;color:transparent;font-size:10px}.reference-closed-edit:hover,.reference-closed-edit:focus-visible{color:#333;background:#b9b9b9}.reference-grid .ref-support>th{font-size:13px;font-weight:400}.reference-grid .ref-support>td{height:42px}.reference-grid .ref-packer>th,.reference-grid .ref-packer>td{background:#d8c0e7}.reference-grid .ref-packer>th{font-weight:700;font-size:11px}.reference-grid .ref-ward>th,.reference-grid .ref-ward>td{background:#bdd8ed}.reference-grid .ref-returns>th,.reference-grid .ref-returns>td{background:#fff2ce}.reference-grid .ref-topup>th{background:#fff4d5}.reference-grid .ref-topup>td{background:#e5dfed}.reference-grid .ref-topup .reference-edit,.reference-grid .ref-topup .reference-cell-content{min-height:0;padding:0;font-size:13px}.reference-grid .ref-topup>td{height:45px}.reference-grid .ref-kcl>td{background:#f5dfd2}.reference-grid .ref-kcl>th{background:#ffca57;font-weight:700;font-size:12px}.reference-grid .ref-leave>th{background:#e4efdc;font-size:12px}.reference-grid .ref-leave>td{background:#e3e0ea;height:43px}.reference-grid .ref-others>th,.reference-grid .ref-others>td{background:#e4e0ed}.reference-grid .ref-others>td{text-align:left;padding:10px 8px;height:99px}.reference-grid .ref-others>th{font-size:12px}.reference-grid .ref-footer>th,.reference-grid .ref-footer>td{height:42px;font-size:12px}.reference-grid .ref-footer .ref-footer-left{background:#f6e1d4}.reference-grid .ref-footer-label.ref-footer-left{font-weight:700}.reference-grid .ref-footer .ref-footer-right{background:#fff}.reference-grid .ref-footer>th:empty,.reference-grid .ref-footer>td:empty{background:#fff}.reference-grid .reference-person.highlighted{background:#fff4af;box-shadow:0 0 0 1px #c99c19}.reference-notes-editor{margin-top:24px}.reference-notes-editor[open]>form{margin-top:20px}.reference-notes-editor .field:first-of-type{grid-column:1/-1}.notation-note-red>small{color:#b14f65}
@media(max-width:800px){.reference-grid{min-width:1050px}.reference-sheet{margin-left:0;margin-right:0}.reference-grid .ref-session-col{width:45px}.reference-grid .ref-duty-col{width:110px}}
@page reference{size:A3 portrait;margin:8mm}
@media print{.print-page:has(.reference-sheet){page:reference}.reference-sheet{overflow:visible!important;box-shadow:none!important;margin:0}.reference-grid{min-width:0!important;font-size:10px!important;width:100%!important}.reference-grid th,.reference-grid td{padding:3px 5px!important;font-size:10px!important;border-width:1px!important;height:auto!important}.reference-grid thead .ref-hours{font-size:12px!important;padding:7px!important}.reference-grid .ref-section th{font-size:12px!important;font-weight:700}.reference-grid .ref-day,.reference-grid .ref-session{font-size:12px!important}.reference-grid .ref-session-col{width:35px}.reference-grid .ref-duty-col{width:85px}.reference-cell-content,.reference-edit{font-size:10px!important;min-height:24px!important;padding:2px!important}.reference-grid .ref-others>td{height:70px!important}.reference-grid .ref-footer>td,.reference-grid .ref-footer>th{height:30px!important}.reference-grid tr{break-inside:avoid}.reference-grid thead{display:table-header-group}.reference-closed-edit{display:none!important}}
