#history-dialog{width:min(620px,calc(100vw - 28px));max-height:calc(100dvh - 28px)}
#history-dialog .history-body{max-height:min(70dvh,670px);padding:18px 22px 24px}
.client-history-heading{margin:0 0 6px;color:#163b49;font-size:.95rem}
.client-history-heading.activity{margin-top:22px;padding-top:16px;border-top:1px solid #dce8e9}
.client-history-note{margin:0 0 14px;color:#637d88;line-height:1.5}
.client-history-empty{margin:10px 0 18px;padding:14px;border:1px dashed #cfdddd;border-radius:11px;background:#f7fbfa;color:#617c86}
.client-purchase-month{margin:11px 0;padding:15px 16px;border:1px solid #d7e8e5;border-radius:13px;background:#f8fcfb;box-shadow:0 3px 14px rgba(18,60,66,.04)}
.client-purchase-month-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;color:#163b49;font-size:.9rem}
.client-purchase-month-total{color:#0b7e75;white-space:nowrap;font-size:1rem}
.client-purchase-month-badge{display:inline-block;margin:8px 0 10px;padding:4px 9px;border-radius:999px;font-size:.71rem;font-weight:800}
.client-purchase-month-badge.current{background:#d7f4e9;color:#116d51}
.client-purchase-month-badge.previous{background:#e9eff2;color:#526b77}
.client-purchase-entry{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid #e4eeee;color:#58717c;font-size:.78rem}
.client-purchase-entry strong{color:#224956;white-space:nowrap}
@media(max-width:600px){#history-dialog .history-body{max-height:calc(100dvh - 102px);padding:16px}.client-purchase-month{padding:13px}.client-purchase-month-head{align-items:flex-start;flex-direction:column;gap:3px}.client-purchase-month-total{font-size:1.05rem}}
