.medicationCountDialog{border:0;border-radius:18px;padding:26px;width:min(600px,calc(100vw - 32px));max-height:90vh;overflow:auto;color:#182f47;box-shadow:0 22px 80px #122b4650}.medicationCountDialog::backdrop{background:#142c497a}.medicationCountDialog header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.medicationCountDialog h2{font-size:22px;margin:5px 0 20px}.medicationCountDialog h3{font-size:var(--text-card-heading);margin:14px 0 8px}.medicationCountDialog p{line-height:1.55}.medicationCountDialog .field{display:grid;gap:7px;margin-top:16px}.medicationCountDialog input,.medicationCountDialog textarea{width:100%;box-sizing:border-box;border:1px solid #b9c7d6;border-radius:8px;padding:11px;font:inherit}.medicationCountDialog textarea{min-height:66px}.medicationCountDialog footer{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;flex-wrap:wrap}.medicationDialogClose{background:transparent;border:0;font-size:28px;cursor:pointer;padding:0 6px}.medicationCountResident{display:flex;gap:12px;flex-wrap:wrap;margin:0}.medicationCountResident span{color:#617489}.medicationCountFacts{display:grid;grid-template-columns:1fr 1fr;gap:16px;background:#eef5fa;border-radius:10px;padding:16px}.medicationCountFacts dt{font-size:var(--text-small);color:#53677d}.medicationCountFacts dd{margin:5px 0 0;font-size:20px;font-weight:700}.medicationCountNotice{background:#fff6e3;border-left:3px solid #c88a21;padding:12px}.medicationCountError{background:#fff0ef;color:#8c2820;border:1px solid #e7ada7;border-radius:9px;padding:14px;margin-top:18px}.medicationCountError p{margin:6px 0 0}.medicationAction{max-width:100%}.medicationAction>small{display:block;max-width:320px;margin-top:8px;color:#80532c}.medicationRecipientList{display:grid;gap:8px}.medicationRecipientList label{display:flex;gap:9px;align-items:center}.medicationRecipientList input{width:auto}@media(max-width:500px){.medicationCountFacts{grid-template-columns:1fr}.medicationCountDialog{padding:18px}}.prnDoseInputs{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.7fr);gap:12px;align-items:end}.prnDoseInputs select{width:100%;min-height:44px;border:1px solid #bcd6c9;border-radius:8px;padding:10px;background:white;color:inherit}.medicationLogPage{min-width:0;max-width:100%}.medicationLogHeader{padding:24px}.medicationLogHeader dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:20px 28px;margin:0}.medicationLogHeader dl>div{min-width:0}.medicationLogHistory{margin-top:20px;min-width:0;overflow:hidden}.medicationLogHistory>header{padding:22px 24px 16px}.medicationLogHistory h2{margin:0 0 8px}.medicationLogHistory header p{margin:6px 0 0;color:var(--muted);line-height:1.5}.medicationLogTableScroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.medicationLogTableScroll:focus-visible{outline:2px solid #216c50;outline-offset:-2px}.medicationLogTable{width:100%;min-width:900px;table-layout:fixed;border-collapse:collapse}.medicationLogTable td,.medicationLogTable th{padding:15px 16px;text-align:left;vertical-align:top;border-right:1px solid var(--line);border-bottom:1px solid var(--line);overflow-wrap:anywhere;line-height:1.5}.medicationLogTable th{background:#f0f7f3;color:#183f31;font-size:var(--text-small);font-weight:750;border-top:1px solid var(--line);text-transform:none;letter-spacing:normal}.medicationLogTable th:first-child{width:22%}.medicationLogTable th:nth-child(2),.medicationLogTable th:nth-child(3){width:12%}.medicationLogTable th:nth-child(4),.medicationLogTable th:nth-child(5){width:13%}.medicationLogTable th:last-child{width:28%}.medicationLogTable td:last-child,.medicationLogTable th:last-child{border-right:0}.medicationLogTable tbody tr:last-child td{border-bottom:0}.medicationLogTable tbody tr:nth-child(2n){background:#fbfdfc}.medicationLogStaff{font-weight:700}.medicationLogStaff small{display:block;margin-top:5px;color:var(--muted);font-weight:400}.medicationLogNotes p{margin:7px 0;white-space:pre-wrap}.medicationLogNoteText{white-space:pre-wrap}.medicationLogException{display:block;color:#8c2820;margin-bottom:6px}.medicationLogRecordDetails{margin-top:10px}.medicationLogRecordDetails summary{cursor:pointer;color:#216c50;font-size:var(--text-small)}.medicationLogRecordDetails dl{margin:8px 0;font-size:var(--text-small)}.medicationLogRecordDetails dl>div+div{margin-top:8px}.medicationLogRecordDetails dt{font-weight:700}.medicationLogRecordDetails dd{margin:2px 0 0}.medicationLogCorrectionButton{display:block;margin-top:10px}.medicationLogScrollHint{display:none}.medicationLogVisuallyHidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}@media screen and (max-width:1100px){.medicationLogHistory header .medicationLogScrollHint{display:block;font-size:var(--text-small)}}@media screen and (max-width:600px){.medicationLogHeader,.medicationLogHistory>header{padding:18px}.medicationLogTable td,.medicationLogTable th{padding:12px}}@media print{.medicationLogTableScroll{overflow:visible}.medicationLogTable{min-width:0;font-size:9pt}.medicationLogTable thead{display:table-header-group}.medicationLogTable td,.medicationLogTable th{padding:6px}.medicationLogTable tr{page-break-inside:avoid;break-inside:avoid}.medicationLogCorrectionButton,.medicationLogScrollHint{display:none!important}}