.ops-medication-supply {
  --oms-ink: #264c41;
  --oms-muted: #5e746b;
  --oms-line: #d9e4de;
  --oms-card-width: 220px;
  --oms-gutter: 16px;
  container: medication-supply / inline-size;
  min-width: 0;
  margin-top: 16px;
  border: 1px solid var(--oms-line);
  border-radius: 14px;
  background: #fff;
  color: var(--oms-ink);
  font-size: 14px;
  line-height: 1.5;
  isolation: isolate;
}
.ops-medication-supply *, .ops-medication-supply *::before, .ops-medication-supply *::after { box-sizing: border-box; }
.ops-medication-supply [hidden] { display: none !important; }
.ops-medication-supply h2, .ops-medication-supply h3, .ops-medication-supply h4, .ops-medication-supply p { margin: 0; }
.ops-medication-supply button, .ops-medication-supply a { cursor: pointer; }
.ops-medication-supply button:disabled { cursor: wait; opacity: .55; }
.ops-medication-supply button:focus-visible, .ops-medication-supply a:focus-visible { outline: 2px solid #36836a; outline-offset: 3px; }
.oms-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.oms-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 22px 18px; }
.oms-header h2 { font-size: 19px; font-weight: 650; letter-spacing: -.35px; }
.oms-header p { color: var(--oms-muted); font-size: 12px; margin-top: 3px; }
.oms-header-actions, .oms-actions { display: flex; justify-content: flex-end; align-items: center; gap: 8px; }
.ops-medication-supply .oms-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; border: 1px solid #cbdcd1; border-radius: 8px; padding: 7px 12px; background: #fff; color: #315e4d; font: inherit; font-size: 12px; font-weight: 550; text-decoration: none; white-space: nowrap; }
.ops-medication-supply .oms-button:hover:not(:disabled) { background: #eff5f0; border-color: #91b49f; }
.ops-medication-supply .oms-motion { border-color: transparent; font-weight: 400; color: var(--oms-muted); }
.oms-content { padding: 0 22px; }
.oms-loading { display: flex; align-items: center; justify-content: center; min-height: 180px; gap: 10px; color: var(--oms-muted); }
.oms-spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid #d7e8dd; border-top-color: #458367; border-radius: 50%; animation: oms-spin .8s linear infinite; }
.oms-spinner-icon { animation: oms-spin .8s linear infinite; }
.oms-load-error { margin: 0 22px 16px; background: #fff5e6; color: #795324; border-radius: 9px; padding: 13px 15px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; }
.oms-empty { padding: 20px 0 32px; }
.oms-empty h3 { font-size: 15px; font-weight: 600; }
.oms-empty p { color: var(--oms-muted); margin-top: 6px; }
.oms-empty .oms-actions { margin-top: 15px; }
.oms-timeline-scroll { overflow-x: auto; max-width: 100%; overscroll-behavior-x: contain; scroll-padding-inline-start: calc(var(--oms-card-width) + var(--oms-gutter)); padding-bottom: 12px; scrollbar-width: auto; }
.oms-timeline-scroll:focus-visible { outline: 2px solid #36836a; outline-offset: 3px; }
.oms-axis, .oms-row { display: grid; grid-template-columns: var(--oms-card-width) minmax(var(--oms-track-width), 1fr); gap: var(--oms-gutter); width: max-content; min-width: 100%; }
.oms-axis { margin-bottom: 12px; }
.oms-axis-label, .oms-date-band { background: #eaf1ec; border-radius: 10px; min-height: 61px; }
.oms-axis-label { background: #f0f5f0; position: sticky; left: 0; z-index: 3; display: flex; flex-direction: column; justify-content: center; padding: 10px 16px; font-size: 12px; font-weight: 600; }
.oms-axis-label small { color: var(--oms-muted); font-size: 11px; font-weight: 400; }
.oms-date-band { display: grid; grid-template-columns: var(--oms-columns); width: 100%; }
.oms-date-column { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; text-align: center; font-size: 11px; }
.oms-date-column small { display: block; color: #7a8c82; font-size: 9px; }
.oms-date-today { box-shadow: inset 0 -2px #467a60; }
.oms-today-label { background: #467a60; color: #fff; border-radius: 4px; font-size: 9px; font-weight: 500; padding: 1px 5px; }
.oms-rows { display: grid; gap: 12px; }
.oms-tone-known { --oms-band: #f2f7f1; --oms-accent: #3e7757; --oms-liquid: #4ba581; --oms-liquid-light: #94c9ad; }
.oms-tone-warning { --oms-band: #fcf7e8; --oms-accent: #8a661d; --oms-liquid: #d6a334; --oms-liquid-light: #f3d984; }
.oms-tone-unknown { --oms-band: #f1f5f9; --oms-accent: #597687; --oms-liquid: #7d9cae; --oms-liquid-light: #b2c6d3; }
.oms-tone-attention { --oms-band: #fbefed; --oms-accent: #a4443c; --oms-liquid: #bd6558; --oms-liquid-light: #e7ab9c; }
.oms-row { align-items: stretch; min-height: 184px; }
.oms-medication, .oms-lane { border-radius: 12px; background: var(--oms-band); min-width: 0; }
.oms-lane { position: relative; z-index: 0; }
.oms-medication { position: sticky; left: 0; z-index: 2; padding: 17px 16px 10px; display: flex; flex-direction: column; justify-content: center; }
.oms-axis-label::after, .oms-medication::after { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: var(--oms-gutter); background: #fff; pointer-events: none; }
.oms-medication h3 { font-size: 14px; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.oms-strength { color: var(--oms-muted); font-size: 11px; display: block; margin-top: 3px !important; }
.oms-vial-amount { display: flex; align-items: center; gap: 18px; margin-top: 10px; margin-bottom: 3px; }
.oms-summary-note { display: block; margin-top: 5px; font-size: 10px; color: var(--oms-muted); }
.oms-timeline-title { color: var(--oms-muted); font-size: 11px; }
.oms-vial { display: block; width: 72px; height: 126px; margin: 0; position: relative; flex: 0 0 auto; }
.oms-vial-picture { display: block; width: 100%; height: 100%; }
.oms-vial-wave { transform-box: fill-box; transform-origin: center; animation: oms-wave 3.5s ease-in-out infinite; }
.oms-amount { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
.oms-amount > strong { color: var(--oms-accent); font-size: 29px; line-height: 1.15; font-weight: 650; letter-spacing: -.8px; }
.oms-amount > strong.oms-amount-unknown { font-size: 21px; letter-spacing: -.4px; }
.oms-amount > span { color: #728373; font-size: 10px; line-height: 1.4; }
.oms-amount-volume > small { font-size: 13px; font-weight: 400; letter-spacing: 0; }
.oms-amount .oms-remaining { display: flex; align-items: center; gap: 7px; margin-top: 5px; }
.oms-meter { display: block; width: 52px; height: 4px; overflow: hidden; border-radius: 3px; background: #dde9dc; }
.oms-meter > i { display: block; height: 100%; background: var(--oms-liquid); }
.oms-remaining > b { color: var(--oms-accent); font-size: 10px; font-weight: 550; }
.oms-amount > small { color: #76897e; font-size: 10px; line-height: 1.5; }
.oms-lane { padding: 10px 0 8px; display: flex; flex-direction: column; }
.oms-lane-header { position: sticky; left: calc(var(--oms-card-width) + var(--oms-gutter)); width: min(650px, calc(100cqw - var(--oms-card-width) - var(--oms-gutter) - 44px)); min-height: 24px; padding: 0 4px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; z-index: 3; }
.oms-lane-actions { display: flex; align-items: center; justify-content: flex-end; margin-left: auto; }
.oms-status { color: var(--oms-accent); background: #ffffffbf; border-radius: 5px; padding: 3px 7px; font-size: 10px; font-weight: 500; line-height: 1.5; display: inline-block; }
.ops-medication-supply .oms-text-button { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 24px; padding: 3px 5px; font-size: 10px; color: #49735b; background: none; border: 0; border-radius: 4px; white-space: nowrap; }
.ops-medication-supply .oms-text-button:hover { background: #ffffffbf; text-decoration: underline; text-underline-offset: 3px; }
.ops-medication-supply .oms-details-button { min-height: 28px; padding: 3px 8px; border: 1px solid #cbdcd1; background: #ffffffbf; }
.oms-event-track { position: relative; display: grid; grid-template-columns: var(--oms-columns); width: 100%; min-height: 116px; }
.oms-event-track::before { content: ""; position: absolute; top: 63px; left: 0; right: 0; border-top: 1px solid #d2dfd2; }
.oms-track-unknown::before { border-top-style: dashed; }
.oms-use-band { position: absolute; top: 56px; height: 15px; background: #dcecdf; border-radius: 9px; }
.oms-tone-attention .oms-use-band { background: #efdfbd; }
.oms-use-band-planned { border: 1px dashed #a7c7ae; }
.oms-events-on-date { position: relative; min-width: 0; }
.oms-mobile-event-date { display: none; }
.oms-event-group { position: relative; height: 116px; }
.ops-medication-supply .oms-event { position: absolute; top: 51px; left: 50%; transform: translateX(-50%); width: 118px; min-height: 65px; padding: 0; display: flex; flex-direction: column; align-items: center; border: 0; background: none; color: #638c6a; text-align: center; line-height: 1.4; z-index: 2; }
.oms-event-dot { display: grid; place-items: center; width: 24px; height: 24px; flex-shrink: 0; border: 1px solid #abcbb5; border-radius: 50%; background: #fff; font-size: 9px; font-weight: 600; box-shadow: 0 0 0 4px #fff6; }
.oms-event-dot svg { width: 13px; height: 13px; }
.oms-event::after { content: ""; position: absolute; top: 24px; left: 50%; width: 1px; height: 12px; background: #abcbb5; }
.oms-event > strong { display: block; margin-top: 14px; font-size: 9px; font-weight: 400; line-height: 1.4; overflow-wrap: anywhere; }
.oms-event > small { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px 4px; font-size: 8px; color: #829882; }
.oms-event:hover .oms-event-dot { background: #eaf1e3; box-shadow: 0 0 0 4px #eaf1e3; }
.oms-event-corrected .oms-event-dot { border-color: #a2b88b; box-shadow: 0 0 0 4px #eaf1e3; }
.oms-event-prescription .oms-event-dot { border: 0; background: #e5efe3; box-shadow: none; }
.oms-event-prescription::after { display: none; }
.oms-event-prescription > strong { margin-top: 5px; }
.ops-medication-supply .oms-event-delivery, .ops-medication-supply .oms-event-review { top: 3px; display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 5px; align-items: center; width: max-content; max-width: 120px; min-height: 34px; padding: 5px 8px; border-radius: 7px; background: #eef4f8; color: #65899c; text-align: left; }
.oms-event-delivery .oms-event-dot, .oms-event-review .oms-event-dot { grid-row: 1 / 3; width: 14px; height: 18px; border: 0; background: none; box-shadow: none; }
.oms-event-delivery > strong, .oms-event-review > strong { margin: 0; font-size: 10px; }
.oms-event-delivery > small, .oms-event-review > small { justify-content: flex-start; color: #7e98a6; }
.oms-event-delivery::after, .oms-event-review::after { top: 100%; height: 19px; background: #d1dce0; }
.ops-medication-supply .oms-event-review { background: #f7eaca; color: #9f7b3b; }
.oms-event-review > small { color: #a58b60; }
.oms-event-review::after { background: #dfcfaf; }
.oms-event-delivery:hover, .oms-event-review:hover { filter: brightness(.975); }
.oms-event-plan-label, .oms-event-scope { font-size: 8px; }
.ops-medication-supply .oms-event-planned .oms-event-dot { border-style: dashed; }
.oms-today-line { pointer-events: none; position: absolute; top: -34px; bottom: -8px; left: 50%; border-left: 1px dashed #769984; opacity: .7; }
.oms-prescription { margin: 10px 0 14px; display: grid; gap: 6px; }
.oms-prescription > div { display: grid; gap: 1px; }
.oms-prescription dt { color: var(--oms-muted); font-size: 10px; }
.oms-prescription dd { margin: 0; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.oms-no-dated-events { position: absolute; top: 49px; left: 0; right: 0; font-size: 12px; color: var(--oms-muted); text-align: center; }
.oms-lane > .oms-basis, .oms-lane > .oms-issue, .oms-lane > .oms-care-review { margin-left: 16px; margin-right: 16px; max-width: 650px; }
.ops-medication-supply .oms-basis { font-size: 10px; color: #667c6e; margin-top: 5px; line-height: 1.6; }
.ops-medication-supply .oms-issue { font-size: 11px; color: var(--oms-accent); margin-top: 4px; line-height: 1.5; }
.oms-care-review { border-top: 1px solid #d4dfd6; margin-top: 10px; padding-top: 9px; font-size: 11px; color: var(--oms-ink); }
.oms-care-review > strong { font-weight: 600; }
.ops-medication-supply .oms-care-review-button { border: 0; padding: 3px 0; background: transparent; color: inherit; font: inherit; font-weight: 600; }
.oms-care-review-button:hover { text-decoration: underline; }
.ops-medication-supply .oms-care-review > p { margin-top: 3px; color: var(--oms-muted); line-height: 1.5; }
.oms-care-review-expanded { margin-bottom: 22px; font-size: 12px; }
.oms-care-review-expanded .oms-facts { margin: 12px 0 0; }
.oms-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 16px 0 18px; color: #748479; font-size: 10px; }
.ops-medication-supply .oms-dialog { margin: auto; width: min(570px, calc(100vw - 28px)); max-height: min(760px, calc(100dvh - 44px)); padding: 0; border: 1px solid #d3dfd7; border-radius: 16px; color: var(--oms-ink); background: #fff; box-shadow: 0 24px 90px #173b2833; }
.oms-dialog::backdrop { background: #233a3066; }
.oms-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 24px 16px; }
.oms-dialog-header h3 { font-size: 19px; line-height: 1.35; font-weight: 650; overflow-wrap: anywhere; }
.oms-dialog-header p { font-size: 11px; color: var(--oms-muted); margin-bottom: 4px; }
.ops-medication-supply .oms-close { flex-shrink: 0; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 6px; padding: 0; background: none; color: #567767; }
.oms-close:hover { background: #f0f5f0; }
.oms-dialog-body { padding: 0 24px; }
.oms-detail-summary { background: var(--oms-band); border-radius: 11px; padding: 18px 20px; display: flex; align-items: center; gap: 28px; }
.oms-detail-summary .oms-vial { width: 108px; height: 189px; }
.oms-detail-summary .oms-amount { margin-top: 7px; }
.ops-medication-supply .oms-detail-basis { font-size: 12px; color: var(--oms-muted); margin-top: 12px; }
.oms-detail-issues { background: #fff5e7; border-radius: 8px; margin-top: 16px; padding: 12px 15px; color: #78572d; }
.oms-detail-issues h4 { font-size: 12px; font-weight: 650; }
.oms-detail-issues ul { margin: 6px 0 0; padding-left: 17px; list-style: disc; font-size: 12px; }
.oms-detail-issues li + li { margin-top: 5px; }
.oms-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0; }
.oms-facts dt { font-size: 11px; color: var(--oms-muted); }
.oms-facts dd { margin: 4px 0 0; font-size: 12px; }
.oms-facts small { display: block; margin-top: 4px; color: var(--oms-muted); font-size: 10px; }
.oms-evidence-title { font-size: 13px; font-weight: 650; }
.oms-evidence-list { list-style: none; margin: 12px 0 0; padding: 0; }
.oms-evidence-list li { padding: 12px 0; border-bottom: 1px solid #e9eee9; border-radius: 4px; }
.oms-evidence-list li:focus { background: #eff5ef; outline: 2px solid #92b39e; outline-offset: 6px; }
.oms-evidence-list li > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oms-evidence-list strong { font-size: 13px; font-weight: 600; }
.oms-evidence-list p { font-size: 12px; margin-top: 3px; color: #536d5d; }
.oms-evidence-list small { display: block; font-size: 10px; margin-top: 4px; color: #76887a; }
.oms-corrected { display: inline-block; font-size: 9px; font-weight: 500; color: #547143; background: #e7efdf; padding: 1px 5px; border-radius: 4px; }
.oms-planned { display: inline-block; font-size: 9px; font-weight: 500; color: #6b6953; background: #f1efdf; padding: 1px 5px; border-radius: 4px; }
.oms-dialog-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 20px 24px; }
.oms-dialog-footer .oms-button { min-height: 42px; }
.oms-empty-timeline { padding: 14px 0; color: var(--oms-muted); font-size: 12px; }
.ops-medication-supply[data-motion-paused="true"] .oms-vial-wave { animation-play-state: paused; }
@keyframes oms-wave { 0%, 100% { transform: scaleY(.8); } 50% { transform: scaleY(1.15); } }
@keyframes oms-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .oms-vial-wave, .oms-spinner, .oms-spinner-icon { animation: none; }
  .oms-motion { display: none !important; }
}
@container medication-supply (max-width: 860px) {
  .oms-timeline-scroll { --oms-card-width: 210px; }
  .oms-medication { padding-left: 12px; padding-right: 12px; }
  .oms-vial-amount { gap: 16px; }
  .oms-amount > strong { font-size: 26px; }
}
@container medication-supply (max-width: 720px) {
  .oms-timeline-scroll { --oms-card-width: 174px; }
  .oms-lane-header { width: min(650px, calc(100cqw - var(--oms-card-width) - var(--oms-gutter) - 24px)); }
  .oms-header { gap: 12px; flex-wrap: wrap; padding: 18px 12px 12px; }
  .oms-header > div:first-child { flex: 1 1 220px; }
  .oms-header h2 { font-size: 18px; }
  .oms-header-actions { margin-left: auto; }
  .oms-content { padding: 0 12px; }
  .oms-load-error { margin-left: 12px; margin-right: 12px; }
  .oms-axis-label { font-size: 10px; padding: 14px 10px; }
  .oms-axis-label small { font-size: 9px; }
  .oms-medication { padding: 12px 10px 9px; }
  .oms-medication h3 { font-size: 12px; }
  .oms-vial-amount { gap: 12px; }
  .oms-medication .oms-vial { width: 58px; height: 102px; }
  .oms-medication .oms-amount > strong { font-size: 23px; }
  .oms-medication .oms-amount > strong.oms-amount-unknown { font-size: 17px; }
  .oms-medication .oms-amount-volume > small { font-size: 11px; }
  .oms-meter { width: 43px; }
  .oms-amount > span, .oms-amount > small { font-size: 9px; }
}
@media (max-width: 450px) {
  .oms-dialog-header { padding: 18px 18px 14px; }
  .oms-dialog-body { padding: 0 18px; }
  .oms-dialog-footer { padding: 18px; }
  .oms-facts { grid-template-columns: 1fr; gap: 12px; }
  .oms-detail-summary { padding: 16px; gap: 18px; }
  .oms-detail-summary .oms-vial { width: 84px; height: 147px; }
}
@media (max-width: 640px) {
  .oms-timeline-scroll { overflow: visible; padding-bottom: 0; }
  .oms-axis, .oms-row { width: 100%; min-width: 0; display: block; }
  .oms-axis-label, .oms-medication { position: relative; left: auto; }
  .oms-axis-label::after, .oms-medication::after { display: none; }
  .oms-date-band { display: none; }
  .oms-axis-label { padding: 12px 14px; }
  .oms-rows { gap: 24px; }
  .oms-row { min-height: 0; }
  .oms-medication { padding: 14px 16px; }
  .oms-medication h3 { font-size: 14px; }
  .oms-vial-amount { gap: 18px; }
  .oms-medication .oms-vial { width: 72px; height: 126px; }
  .oms-medication .oms-amount > strong { font-size: 27px; }
  .oms-lane { margin-top: 16px; padding: 14px; }
  .oms-lane-header { position: static; width: auto; margin-bottom: 18px; padding: 0; }
  .oms-event-track { display: flex; flex-direction: column; gap: 20px; min-height: 0; }
  .oms-event-track::before { top: 0; bottom: 0; left: 12px; right: auto; border-top: 0; border-left: 1px solid #d2dfd2; }
  .oms-track-unknown::before { border-left-style: dashed; }
  .oms-use-band { display: none; }
  .oms-events-on-date { padding-left: 40px; min-height: 28px; }
  .oms-events-empty:not(.oms-events-today) { display: none; }
  .oms-mobile-event-date { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin-bottom: 8px; background: var(--oms-band); color: var(--oms-muted); font-size: 11px; }
  .oms-events-today .oms-mobile-event-date { color: #315e4d; font-weight: 650; }
  .oms-today-line { top: 9px; bottom: auto; left: 0; right: 0; border-left: 0; border-top: 1px dashed #769984; }
  .oms-event-group { height: auto; }
  .ops-medication-supply .oms-event { position: relative; top: auto; left: auto; transform: none; display: flex; flex-direction: column; align-items: flex-start; width: 100%; max-width: none; min-height: 44px; padding: 8px 10px; gap: 3px; border-radius: 7px; background: #ffffff9c; text-align: left; }
  .oms-event::after { display: none; }
  .ops-medication-supply .oms-event .oms-event-dot { position: absolute; top: 10px; left: -40px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid #abcbb5; background: #fff; box-shadow: 0 0 0 4px var(--oms-band); }
  .ops-medication-supply .oms-event > strong { margin: 0; font-size: 12px; }
  .ops-medication-supply .oms-event > small { justify-content: flex-start; font-size: 10px; }
  .ops-medication-supply .oms-event-delivery { background: #eef4f8; }
  .ops-medication-supply .oms-event-review { background: #f7eaca; }
  .ops-medication-supply .oms-event-planned .oms-event-dot { border-style: dashed; }
}
