/* Daily medication prescriptions: the same clinical white and teal surfaces. */
.medication-page{color:#3b595e;padding-top:3px;--md-line:#e1e9eb;--md-green:#005243}
.medication-page [hidden]{display:none!important}
.medication-page svg{width:17px;height:17px;flex:none}
.view-switcher:has(.md-profile){display:flex;justify-content:space-between;align-items:center;gap:12px;overflow:visible}
.md-profile{margin-left:auto;flex:none}
.md-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 3px 13px}
.md-toolbar h2{margin:0;font-size:19px;font-weight:600;letter-spacing:-.45px}
.md-filters{display:flex;align-items:center;gap:9px;min-width:0}
.md-filters .an-date-button{height:39px}
.md-filters .tl-avatar-stack{padding:3px 7px 3px 12px}
.md-filters .tl-team-label{display:inline-flex;font-size:11px}
.md-filters .tl-avatar{width:29px;height:29px;font-size:10px}
.md-filters .tl-team-popover{z-index:80}
.md-search{position:relative;width:270px;flex:none}
.md-combobox{display:flex;align-items:center;gap:7px;min-height:39px;padding:5px 9px 5px 13px;background:#fff;border:1px solid #dfe5e7;border-radius:24px;box-shadow:0 5px 16px #263b4108;color:#5d827e}
.md-combobox:focus-within{border-color:#76a89e;box-shadow:0 0 0 3px #76a89e16}
.md-combobox>svg{width:15px;height:15px}
.md-combobox input{width:100%;min-width:0;background:none;border:0;outline:0;font-family:inherit;font-size:11px;color:#3b595e;padding:0;height:25px}
.md-combobox input::placeholder{color:#789096}
.md-combobox button{display:grid;place-items:center;width:22px;height:22px;border:0;border-radius:50%;background:transparent;padding:3px;color:#698784;flex:none}
.md-combobox button:hover{background:#eaf2ee}
.md-combobox [data-med-toggle] svg{width:12px;height:12px;transform:rotate(-90deg)}
.md-options{position:absolute;z-index:85;top:calc(100% + 7px);right:0;width:350px;max-width:calc(100vw - 32px);max-height:330px;overflow:auto;background:white;border:1px solid #dce7e7;box-shadow:0 14px 35px #1d49321f;border-radius:16px;padding:6px;scrollbar-width:thin}
.md-options button{display:flex;align-items:center;width:100%;text-align:left;gap:9px;padding:10px;border:0;border-radius:9px;background:white;color:#446367;font-size:11px;line-height:1.45}
.md-options button>span{flex:1}
.md-options button>svg{width:15px;height:15px;color:#668f86}
.md-options button[aria-selected=true]{background:#eff5f2;color:#005243}
.md-options button:hover,.md-options button.is-focused{background:#deece7;color:#005243}
.md-options p{font-size:11px;color:#819395;padding:10px;margin:0}
.md-layout{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:11px}
.md-layout.has-prescription{grid-template-columns:minmax(0,1fr) 320px}
.md-timeline,.md-sidebar{border:1px solid #dce5e8;border-radius:18px;background:#fff;box-shadow:0 6px 20px #23483d05;min-width:0}
.md-chart-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:49px;padding:10px 15px;border-bottom:1px solid var(--md-line)}
.md-count{display:flex;align-items:center;gap:5px;font-size:11px;color:#788e90;white-space:nowrap}
.md-count svg{width:16px;height:16px;margin-right:2px;color:#4f8b7d}
.md-count strong{font-weight:600;color:#446b65}
.md-legend{display:flex;align-items:center;gap:15px;flex-wrap:wrap;font-size:10px;color:#728a8e}
.md-legend>span{display:flex;align-items:center;gap:6px;white-space:nowrap}
.md-legend i{width:15px;height:15px;border-radius:4px;border:1px solid #95bcb0;display:block}
.md-legend .regular{background:#add1c1}
.md-legend .prn{background:repeating-linear-gradient(45deg,#f4dfaa 0 3px,#fcf6e5 3px 6px);border-color:#e9d29d}
.md-legend .empty{background:#fff;border-color:#dce7e7}
.md-table-scroll{overflow:auto;scrollbar-width:thin;scrollbar-color:#b6ceca #f5f8f8;max-height:calc(100dvh - 340px);min-height:190px}
.md-table{border-collapse:separate;border-spacing:0;width:100%;min-width:calc(340px + var(--md-days)*56px);table-layout:fixed;font-size:12px}
.md-name-column{width:340px}
.md-table th,.md-table td{padding:0;border:0;box-sizing:border-box;text-align:left;text-transform:none;letter-spacing:normal}
.md-table thead th{position:sticky;top:0;z-index:5;height:55px;background:#f7fafb;border-bottom:1px solid #e0e9ea;border-right:1px solid #e6ecee;font-weight:500;text-align:center;font-size:11px;color:#4b6e72}
.md-table thead th:first-child{left:0;z-index:7;text-align:left;padding:0 16px;font-size:12px;color:#446467}
.md-table thead th>span{display:block}
.md-table thead small{display:flex;align-items:center;justify-content:center;gap:4px;margin-top:3px;font-size:9px;font-weight:400;color:#8d9fa2}
.md-table thead small i{font-style:normal;border-radius:5px;background:#e2f0e8;padding:1px 4px;color:#458674;font-size:8px}
.md-table tbody th{position:sticky;left:0;z-index:4;background:#fff;border-bottom:1px solid #edf2f3;border-right:1px solid #e5ecee;padding:2px 11px;vertical-align:middle;height:32px}
.md-table tbody th>.md-drug-icon{display:inline-flex;vertical-align:middle;width:18px;margin-right:7px;color:#5b8e82}
.md-table tbody th .md-medication-name{display:inline-block;vertical-align:middle;width:calc(100% - 27px);font-size:11px;font-weight:600;line-height:1.25;color:#3f6362;white-space:nowrap}
.md-table tbody td{position:relative;height:32px;padding:5px 0;border-right:1px solid #e8eff0;border-bottom:1px solid #edf2f3;vertical-align:middle;background:#fff}
.md-table tbody tr:nth-child(even) th,.md-table tbody tr:nth-child(even) td{background:#f9fbfb}
.md-table tbody tr:hover th{background:#f0f6f3}
.md-table th.is-day-selected,.md-table tbody td.is-day-selected{background:#eef6f2!important}
.md-table tbody .is-med-selected th{background:#eef6f2}
.md-dose{display:block;position:relative;width:100%;height:20px;border:1px solid transparent;border-radius:0;margin:0;background:#b0d2c4;cursor:pointer;color:#346d5d;transition:background .12s,box-shadow .12s}
.md-dose.regular{background:#b0d2c4}
.md-dose.prn{background:repeating-linear-gradient(45deg,#f1ddac 0 5px,#fbf5e3 5px 9px);color:#9b7e40}
.md-dose.mixed{background:repeating-linear-gradient(45deg,#b0d2c4 0 5px,#f5e6c3 5px 9px)}
.md-dose.unknown{background:#e5ecee;color:#72868b}
.md-dose.is-start{border-radius:7px 0 0 7px;margin-left:4px;width:calc(100% - 4px)}
.md-dose.is-end{border-radius:0 7px 7px 0;width:calc(100% - 4px)}
.md-dose.is-start.is-end{border-radius:7px;width:calc(100% - 8px)}
.md-dose:hover{box-shadow:inset 0 0 0 2px #00524377}
.md-dose.is-selected{background:#005243;color:#fff;box-shadow:inset 0 0 0 2px #fff,0 0 0 1px #005243;border-radius:7px;z-index:2}
.md-dose.prn.is-selected{background:repeating-linear-gradient(45deg,#005243 0 5px,#246e5e 5px 9px)}
.md-dose b{display:grid;place-items:center;position:absolute;top:2px;right:5px;min-width:15px;height:15px;background:#ffffffbb;color:#397563;font-size:9px;border-radius:6px;font-weight:600}
.md-cell-tooltip{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);white-space:nowrap;opacity:0;visibility:hidden;background:#1c4940;color:#fff;padding:6px 8px;border-radius:7px;font-size:10px;pointer-events:none;z-index:12}
.md-dose:hover .md-cell-tooltip,.md-dose:focus-visible .md-cell-tooltip{opacity:1;visibility:visible}
.md-table td:last-child .md-cell-tooltip{left:auto;right:0;transform:none}
.md-no-dose{display:block;height:20px;border-radius:5px;margin:0 4px;background:#f7fafa}
.md-empty{display:flex;flex-direction:column;align-items:center;gap:9px;padding:30px 15px;color:#80979a;text-align:center}
.md-empty>svg{width:29px;height:29px;color:#89aaa0}.md-empty strong{font-size:14px;font-weight:500}.md-empty span{font-size:11px}.md-empty button{margin-top:4px}
.md-navigator{display:flex;align-items:center;gap:14px;padding:13px 14px 7px;border-top:1px solid #e2e9eb;border-radius:0 0 18px 18px;background:#fcfdfd}
.md-zoom{display:flex;gap:6px;align-self:flex-start;margin-top:5px}
.md-zoom button{display:grid;place-items:center;width:31px;height:31px;background:white;border:1px solid #dce8e6;border-radius:50%;color:#437568;padding:7px}
.md-zoom button:hover:not(:disabled){background:#e8f2ed;border-color:#afcbc0}.md-zoom button:disabled{opacity:.35;cursor:default}
.md-zoom svg{width:15px;height:15px}
.medication-page .md-nav{width:100%;height:58px;display:block;flex:1;min-width:0;overflow:visible;touch-action:none}
.md-nav-track{fill:#f1f6f5}.md-nav-mark{fill:#b8d7cc}.md-nav text{fill:#839994;font-size:9px}
.md-brush .selection{fill:#bee1d0;fill-opacity:.28;stroke:#6b9f90;stroke-width:1.5;rx:7}
.md-brush .handle{fill:#fff;stroke:#9bc1b3;stroke-width:1.3}
.md-brush .selection:focus,.md-brush .handle:focus{outline:none;stroke:#005243;stroke-width:2}
.medication-page button:focus-visible,.md-table-scroll:focus-visible{outline:2px solid #458b7a;outline-offset:2px}
.md-sidebar{overflow:hidden;position:sticky;top:12px}
.md-sidebar>header{display:flex;align-items:center;justify-content:space-between;gap:7px;padding:11px 12px;background:#f4f7f8;border-bottom:1px solid #e1e9eb}
.md-sidebar>header>span{display:flex;align-items:center;gap:7px;color:#496d6d}
.md-sidebar>header strong{font-size:12px;font-weight:600}
.md-sidebar>header svg{width:15px;height:15px}
.md-sidebar>header button{width:24px;height:24px;display:grid;place-items:center;border:0;border-radius:50%;background:none;color:#89a09f;padding:4px}
.md-sidebar>header button:hover{background:#e3efeb;color:#005243}
.md-sidebar-body{padding:13px;overflow:auto;max-height:calc(100dvh - 263px);scrollbar-width:thin;scrollbar-color:#b9cec9 transparent}
.md-detail-divider{display:flex;align-items:center;gap:8px;margin:16px -13px 12px;padding:10px 13px;background:#f5f8f7;border-top:1px solid #e6eeea;border-bottom:1px solid #e6eeea;color:#4f7770;font-size:11px;font-weight:600}
.md-detail-divider svg{width:15px;height:15px}
.md-detail-sidebar .md-medication-title{margin-bottom:14px}
.md-detail-sidebar .md-medication-title h3{font-size:16px;line-height:1.35}
.md-prescriber{display:flex;align-items:center;gap:9px;padding-bottom:12px}
.md-prescriber>span{display:grid;place-items:center;width:32px;height:32px;flex:none;border-radius:11px;background:#e8f1ef;color:#497d6c;font-size:11px;font-weight:500}
.md-prescriber strong{display:block;font-size:12px;font-weight:600;color:#426866;line-height:1.4}.md-prescriber small{display:block;font-size:10px;color:#899d9d;margin-top:1px}
.md-rx-meta{margin:0;border-top:1px solid #edf2f2;padding:10px 0 12px;display:grid;gap:9px}
.md-rx-meta dt,.md-drug-facts dt{font-size:10px;color:#8b9c9e;line-height:1.4;margin-bottom:3px}
.md-rx-meta dd{margin:0;font-size:11px;color:#536e71;line-height:1.5}.md-rx-meta dd span{color:#859795}
.md-list-title{display:flex;align-items:center;gap:6px;font-size:10px;font-weight:500;color:#6e8986;margin:0 -13px;padding:10px 12px;background:#f6f9f8;border-top:1px solid #e8eeee}
.md-list-title b{font-size:9px;font-weight:500;background:#e5efeb;border-radius:6px;padding:1px 5px}
.md-rx-items{margin:0 -7px;padding-top:6px;display:grid;gap:4px}
.md-rx-items button{display:flex;align-items:center;justify-content:space-between;gap:5px;width:100%;padding:9px 7px;border:1px solid transparent;border-radius:10px;background:#fff;text-align:left;color:#527470}
.md-rx-items button:hover{background:#f3f8f5}.md-rx-items button.is-selected{background:#eaf4ee;border-color:#cfe2d8;color:#075b49}
.md-rx-items strong{font-size:11px;font-weight:600;display:block;line-height:1.35}.md-rx-items small{font-size:9px;line-height:1.4;display:block;margin-top:3px;color:#819a94}
.md-rx-items em{font-size:8px;font-style:normal;color:#9b854d;display:block;margin-top:4px}.md-rx-items svg{width:12px;height:12px;opacity:.65}
.md-rx-choice{display:block;margin-bottom:14px}.md-rx-choice>span{display:block;font-size:10px;color:#638a80;margin-bottom:6px}
.md-rx-choice select{width:100%;border:1px solid #dbe8e3;background:#f6faf8;border-radius:9px;color:#466c62;padding:8px 5px;font-family:inherit;font-size:10px}
.md-kind{display:inline-flex;padding:4px 8px;border-radius:7px;background:#e6f2eb;color:#52816f;font-size:9px;margin-bottom:12px}
.md-kind.prn{background:#faf1db;color:#9a8045}
.md-medication-title h3{font-size:20px;line-height:1.2;margin:0;color:#325953;font-weight:600;letter-spacing:-.5px;overflow-wrap:anywhere}
.md-medication-title p{font-size:11px;line-height:1.5;color:#819995;margin:6px 0 16px}
.md-drug-facts{margin:0;display:grid;grid-template-columns:1fr 1fr;background:#f7faf9;border:1px solid #e1ebe7;border-radius:13px;overflow:hidden}
.md-drug-facts>div{padding:11px 10px;min-width:0;border-bottom:1px solid #e5eeea}.md-drug-facts>div:first-child{border-right:1px solid #e5eeea}.md-drug-facts>div:last-child{border-bottom:0}
.md-drug-facts dd{margin:0;font-size:12px;line-height:1.5;color:#41665e;font-weight:500;overflow-wrap:anywhere}.md-drug-facts .is-wide{grid-column:1/-1}
.md-drug-facts .md-condition{background:#fdf9ef}.md-drug-facts .md-condition dd{color:#8d7844}
.md-notes h4{font-size:11px;color:#668b81;font-weight:500;margin-bottom:6px}.md-notes p{font-size:11px;color:#7b938d;line-height:1.6}
@media(max-width:1250px){.md-search{width:220px}.md-filters{gap:6px}.md-toolbar h2{font-size:17px}.md-layout.has-prescription{grid-template-columns:minmax(0,1fr) 290px}.md-chart-head{align-items:flex-start}.md-legend{gap:7px;font-size:9px}.md-name-column{width:340px}.md-table{min-width:calc(340px + var(--md-days)*50px)}}
@media(max-width:1050px){.md-toolbar{flex-wrap:wrap}.md-filters{margin-left:auto}.md-sidebar-body{padding:10px;max-height:calc(100dvh - 280px)}.md-detail-divider{margin-inline:-10px;padding-inline:10px}.md-table-scroll{max-height:520px}.md-chart-head{flex-direction:column;gap:8px}}
@media(max-width:850px){.md-layout.has-prescription{grid-template-columns:1fr}.md-sidebar{position:static}.md-sidebar-body{max-height:500px}.md-filters{flex-wrap:wrap;width:100%;margin:0}.md-search{flex:1;min-width:200px}.md-toolbar{gap:9px}.view-switcher:has(.md-profile){flex-wrap:wrap}.md-legend{font-size:10px}.md-chart-head{flex-direction:row;align-items:center}.md-table-scroll{max-height:500px}}
@media(max-width:520px){.md-sidebar-body{max-height:none}.md-filters .an-date-button{font-size:10px}.md-filters .tl-avatar{width:24px;height:24px;font-size:9px}.md-name-column{width:340px}.md-table{min-width:calc(340px + var(--md-days)*56px)}.md-legend{gap:8px;font-size:8px}.md-chart-head{padding:9px;align-items:flex-start;flex-direction:column}.md-zoom{gap:3px}.md-zoom button{width:27px;height:27px}.md-navigator{gap:8px;padding-inline:10px}.md-options{left:0;right:auto;width:100%}.md-filters .an-date-popover{position:fixed;top:180px;left:10px;right:10px;width:auto}.md-filters .tl-team-popover{position:fixed;top:180px;left:10px;right:10px;width:auto}}
