.dm { letter-spacing: 0; font-variant-numeric: tabular-nums; }
.dm [hidden] { display: none; }
.dm-summary { padding: .75rem 1.25rem 1.25rem; background: #fff; }
.dm-month { display: flex; justify-content: center; align-items: center; gap: .375rem; margin-bottom: 1.75rem; }
.dm-month > button { width: 2.75rem; height: 2.75rem; font-size: 1.375rem; color: var(--pm-text); }
.dm-month > button:disabled { color: #c9cfd5; cursor: default; }
.dm-month__picker { position: relative; min-width: 9rem; }
.dm-month label { display: flex; align-items: center; justify-content: center; gap: .375rem; font-size: 1.0625rem; font-weight: 650; }
.dm-month input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dm-month__picker:focus-within { outline: 2px solid var(--pm-green); outline-offset: .25rem; border-radius: .25rem; }
.dm-summary h2 { font-size: .875rem; font-weight: 500; }
.dm-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem; margin: .375rem 0 .5rem; color: #2563eb; }
.dm-total strong { font-size: 2.25rem; line-height: 1.3; font-weight: 750; overflow-wrap: anywhere; min-width: 0; }
.dm-total > span { font-size: 1rem; }
.dm-summary__meta { display: flex; flex-wrap: wrap; gap: .375rem 1rem; font-size: .75rem; color: var(--pm-sub); }
.dm-sync-notice { margin-top: .75rem; font-size: .75rem; line-height: 1.6; color: var(--pm-sub); word-break: keep-all; overflow-wrap: anywhere; }
.dm-wait { display: flex; align-items: center; justify-content: space-between; gap: .625rem; width: 100%; margin-top: 1.5rem; padding: 1rem 0 .125rem; border-top: 1px solid var(--pm-line); text-align: left; }
.dm-wait__label { display: flex; align-items: center; gap: .3125rem; font-size: .8125rem; color: var(--pm-sub); }
.dm-wait__amount { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: flex-end; gap: .1875rem; font-size: 1.125rem; font-weight: 650; color: var(--pm-text); }
.dm-wait__amount > span { font-size: .75rem; font-weight: 500; }
.dm-wait__amount > i { align-self: center; margin-left: .25rem; font-size: 1rem; color: var(--pm-sub); }
.dm-history { margin-top: .5rem; background: #fff; padding: 1.25rem 1.25rem .25rem; }
.dm-history__head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding-bottom: .75rem; }
.dm-history h2 { font-size: 1rem; font-weight: 650; }
.dm-history h2 > span { margin-left: .25rem; color: var(--pm-green-d); }
.dm-history select { min-height: 2.5rem; background: #fff; color: var(--pm-sub); border: 0; font: inherit; font-size: .75rem; padding: .25rem; }
.dm-list li + li { border-top: 1px solid var(--pm-line); }
.dm-entry { width: 100%; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr) 1rem; gap: .75rem; padding: 1.25rem 0; align-items: center; text-align: left; color: var(--pm-text); }
.dm-entry time { display: flex; flex-direction: column; gap: .125rem; font-size: .9375rem; font-weight: 600; }
.dm-entry time small { font-size: .6875rem; color: var(--pm-sub); font-weight: 400; }
.dm-entry__body { display: flex; flex-direction: column; align-items: flex-end; gap: .3125rem; min-width: 0; }
.dm-entry__body b { font-size: 1.1875rem; font-weight: 650; color: #2563eb; overflow-wrap: anywhere; text-align: right; }
.dm-entry__body small { font-size: .75rem; color: var(--pm-sub); }
.dm-entry > i { color: #9aa4b2; }
.dm-entry.is-negative .dm-entry__body b { color: #dc3545; }
.dm-empty { text-align: center; padding: 2.5rem .5rem 3rem; }
.dm-empty > i { font-size: 2rem; color: var(--pm-muted); }
.dm-empty h3 { font-size: .9375rem; margin: .75rem 0 .375rem; }
.dm-empty p { font-size: .8125rem; color: var(--pm-sub); }
.dm-sheet__body { padding: .5rem 1.25rem 1rem; }
.dm-sheet__body h2 { font-size: 1.1875rem; line-height: 1.6; margin: .5rem 0; }
.dm-sheet__body h3 { font-size: .9375rem; margin: 1.25rem 0 .375rem; }
.dm-sheet__body p { font-size: .875rem; line-height: 1.8; color: var(--pm-sub); word-break: keep-all; overflow-wrap: anywhere; }
.dm-sheet__body p + p { margin-top: .75rem; }
.dm-sheet__body .dm-wait-total { color: var(--pm-text); font-size: 1.75rem; font-weight: 700; margin: .75rem 0; }
.dm-wait-total span { font-size: 1rem; margin-left: .25rem; font-weight: 500; }
.dm-sheet hr { border: 0; border-top: 1px solid var(--pm-line); margin: 1.25rem 0; }
.dm-primary { width: 100%; min-height: 3.25rem; display: flex; justify-content: center; align-items: center; gap: .5rem; font-size: .9375rem; font-weight: 600; }
.dm-primary { margin-top: 1.5rem; border-radius: .5rem; background: var(--pm-green); color: #fff; }
.dm-primary[data-dm-close] { padding: .75rem; font-size: 1rem; }
.dm-primary[data-dm-close]:active { background: var(--pm-green-d); }
.dm-sheet__body .dm-receipt-date { margin: .75rem 0 .25rem; }
.dm-sheet__body .dm-receipt-total { font-size: 1.875rem; line-height: 1.4; font-weight: 700; color: #2563eb; }
.dm-breakdown { margin: 1.25rem 0 1rem; }
.dm-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--pm-line); font-size: .8125rem; }
.dm-breakdown dt { color: var(--pm-sub); }
.dm-breakdown dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.dm-sheet__body .dm-small { font-size: .75rem; }
.dm button:focus-visible, .dm a:focus-visible, .dm-sheet button:focus-visible, .dm-sheet a:focus-visible { outline: 2px solid var(--pm-green); outline-offset: 2px; }
@media (hover: hover) { .dm-entry:hover { background: #f8faf9; } }
@media (prefers-reduced-motion: reduce) { .dm-sheet .pm-sheet__panel, .dm-sheet .pm-sheet__dim { transition: none; } }
