.business-history{position:fixed;inset:0 0 0 auto;margin:0;width:min(760px,96vw);height:100dvh;max-height:100dvh;max-width:96vw;border:0;border-left:1px solid #dbe2eb;padding:0;background:#f7f9fc;color:#243247;box-shadow:-12px 0 36px #15233b25}.business-history[open]{display:flex;flex-direction:column}.business-history::backdrop{background:#17283c55}.business-history header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;background:white;border-bottom:1px solid #dbe2eb}.business-history h2{margin:0;font-size:21px}.history-rows{overflow:auto;flex:1;padding:20px}.history-event{padding:18px;background:white;border:1px solid #dbe2eb;border-radius:12px;margin-bottom:14px}.history-event h3{font-size:16px;margin:0 0 8px}.history-event p{font-size:13px;color:#58677d;margin:6px 0}.history-event table{width:100%;border-collapse:collapse;table-layout:fixed;margin-top:14px;font-size:13px}.history-event td,.history-event th{padding:10px 8px;border-bottom:1px solid #e6ebf2;text-align:left;vertical-align:top;overflow-wrap:anywhere;white-space:pre-wrap}.history-event thead th{background:#f2f5fa}.history-event tbody th{font-weight:500}.business-history footer{padding:12px 20px}.history-entity{overflow-wrap:anywhere}#businessHistoryOpen[hidden]{display:none!important}
.history-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 20px;background:#fff;border-bottom:1px solid #dbe2eb;font-size:13px}.history-toolbar label{display:flex;align-items:center;gap:6px}.history-toolbar input{width:auto;margin:0}.history-toolbar button{margin-left:auto}.history-attention,.history-status{display:inline-block;border-radius:20px;padding:4px 9px;font-size:12px;font-weight:600;background:#fff0e5;color:#9b430e}.history-status.is-accepted{background:#e9f5ee;color:#246b43}.history-price{border-top:1px solid #e6ebf2;margin-top:14px;padding-top:14px;font-size:14px}.history-price-values{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:16px}.history-old{color:#6b7280;text-decoration:line-through}.history-delta{font-variant-numeric:tabular-nums}.history-review{border-top:1px solid #e6ebf2;margin-top:16px;padding-top:14px}.history-comment{white-space:pre-wrap;overflow-wrap:anywhere;color:#243247!important}.history-event details{margin-top:12px;font-size:13px}.history-event summary{cursor:pointer;color:#334b68}.history-review-form label{display:block;margin-top:12px;font-size:13px}.history-review-form select,.history-review-form textarea{display:block;box-sizing:border-box;width:100%;padding:9px;border:1px solid #cbd5e1;border-radius:7px;background:white;color:#243247;font:inherit;margin:5px 0 10px}.history-review-form textarea{resize:vertical}.history-decisions>div{border-left:2px solid #dbe2eb;padding:8px 12px;margin:8px 0}.history-review-form [data-review-error]{color:#a52d2d}.history-all-changes{color:#58677d}@media(max-width:520px){.history-toolbar,.history-rows{padding:12px}.history-event{padding:14px}.history-toolbar button{margin-left:0}}
/* Compact reading controls; keep the existing right-hand panel and palette. */
.business-history .history-toolbar{display:block;font-size:14px}
.business-history .history-search{display:block;margin-bottom:10px}
.business-history .history-search>span{display:block;margin-bottom:5px;font-weight:600}
.business-history .history-search input{box-sizing:border-box;width:100%;min-height:40px;border:1px solid #cbd5e1;border-radius:8px;padding:9px 12px;color:#243247;background:#fff;font:inherit}
.business-history .history-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin-bottom:10px}
.business-history .history-filters label{display:flex;flex-direction:column;align-items:stretch;gap:5px}
.business-history .history-filters select,#archiveYear{font:inherit;color:#243247;background:#fff;border:1px solid #cbd5e1;border-radius:7px;min-height:38px;padding:7px 10px}
#archiveYear{font:400 14px Inter,Segoe UI,Arial,sans-serif}
.business-history .history-filters button{margin:0 0 0 auto;min-height:38px;font-size:14px}
.business-history .history-search-help{display:inline-block;margin:0 0 0 10px;color:#58677d;font-size:13px;vertical-align:middle}
.business-history .history-search-help summary{cursor:pointer}
.business-history .history-search-help p{max-width:620px;line-height:1.5;margin:8px 0 0}
.business-history .history-rows{padding:12px 20px;min-height:0;font-size:14px}
.business-history .history-year{margin:8px 0 10px;color:#58677d;font-size:14px;font-weight:700}
.business-history .history-event{padding:0;margin:0 0 9px;border-radius:9px;font-size:14px}
.business-history .history-event-summary{display:block;position:relative;list-style:none;padding:13px 14px 13px 34px;color:#243247;cursor:pointer}
.business-history .history-event-summary::-webkit-details-marker{display:none}
.business-history .history-event-summary::before{content:'›';position:absolute;left:13px;top:12px;font-size:20px;line-height:22px;color:#60788d}
.business-history .history-event[open]>.history-event-summary::before{transform:rotate(90deg)}
.business-history .history-event-summary:hover{background:#f2f7fc;border-radius:9px}
.business-history .history-event-summary:focus-visible,.business-history input:focus-visible,.business-history select:focus-visible{outline:2px solid #147be0;outline-offset:2px}
.business-history .history-event-heading{display:flex;align-items:start;justify-content:space-between;gap:10px;line-height:1.4}
.business-history .history-event-heading strong{font-size:14px;overflow-wrap:anywhere}
.business-history .history-event-heading .history-status{flex-shrink:0;font-size:12px;white-space:normal}
.business-history .history-status.is-recorded{color:#58677d;background:#eef2f6}
.business-history .history-event-invoice{display:block;margin-top:5px;overflow-wrap:anywhere;font-size:14px}
.business-history .history-event-meta{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:6px;font-size:13px;color:#58677d}
.business-history .history-event-meta span{overflow-wrap:anywhere;min-width:0}
.business-history .history-event-meta time{white-space:nowrap;font-variant-numeric:tabular-nums}
.business-history .history-event-body{padding:0 16px 16px;border-top:1px solid #e6ebf2}
.business-history .history-event-body h3{margin-top:14px}
.business-history .history-event-body p,.business-history .history-event-body table,.business-history .history-event-body details{font-size:14px;line-height:1.45}
.business-history .history-event-body table{margin-top:10px}
.business-history .history-load-error{margin:0;padding:0 20px;color:#a52d2d;font-size:14px}
.business-history .history-load-error:not(:empty){padding-top:10px;padding-bottom:10px}
.business-history footer{display:flex;align-items:center;justify-content:space-between;gap:10px;background:white;border-top:1px solid #dbe2eb;font-size:13px;flex-shrink:0}
.business-history footer button{font-size:14px}
.business-history footer [data-page-label]{margin:auto;text-align:center;color:#58677d}
.business-history [hidden]{display:none!important}
@media(max-width:520px){.business-history .history-rows{padding:10px}.business-history .history-event-heading{flex-wrap:wrap;gap:5px}.business-history .history-search-help{display:block;margin:8px 0 0}.business-history .history-filters button{margin:0}.business-history footer{padding:10px}.business-history .history-event-body{padding:0 10px 12px}}

/* Invoice summaries and independent, lazy all-time timelines. */
.business-history .history-views{display:flex;gap:8px;margin-bottom:12px}
.business-history .history-views button{margin:0;min-height:36px;font-size:14px}
.business-history .history-views [aria-pressed=true]{color:#1266a5;border-color:#88b5d8;background:#eaf4fc}
.business-history .history-invoice{margin:0 0 10px;border:1px solid #dbe2eb;border-radius:10px;background:white}
.business-history .history-invoice-summary{position:relative;display:block;list-style:none;padding:14px 14px 14px 34px;cursor:pointer;color:#243247}
.business-history .history-invoice-summary::-webkit-details-marker{display:none}
.business-history .history-invoice-summary::before{content:'›';position:absolute;left:13px;top:12px;font-size:21px;color:#60788d}
.business-history .history-invoice[open]>.history-invoice-summary::before{transform:rotate(90deg)}
.business-history .history-invoice-summary>strong{display:block;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.business-history .history-invoice-summary:hover{background:#f2f7fc;border-radius:10px}
.business-history .history-invoice-summary:focus-visible{outline:2px solid #147be0;outline-offset:2px}
.business-history .history-invoice-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;margin-top:8px;font-size:13px;line-height:1.4;color:#58677d}
.business-history .history-invoice.needs-attention,.business-history .history-event.needs-attention{border-color:#d9a06f;border-left:3px solid #c8843e}
.business-history .history-attention.is-recorded{color:#58677d;background:#eef2f6}
.business-history .history-timeline{padding:0 12px 12px;border-top:1px solid #e6ebf2;background:#f8fafc;border-radius:0 0 10px 10px}
.business-history .history-timeline-help{font-size:13px;line-height:1.5;color:#58677d;margin:10px 0}
.business-history .history-timeline-tools{display:flex;align-items:end;flex-wrap:wrap;gap:8px;margin:12px 0}
.business-history .history-timeline-tools label{display:flex;flex-direction:column;gap:5px;font-size:13px;flex:1;min-width:170px}
.business-history .history-timeline-tools input,.business-history .history-timeline-tools select{width:100%;box-sizing:border-box;min-height:36px;padding:7px 9px;font:14px Arial,sans-serif;border:1px solid #cbd5e1;border-radius:7px;color:#243247;background:white}
.business-history .history-timeline-tools button{min-height:36px;font-size:14px}
.business-history .history-timeline-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px;color:#58677d;margin-top:10px}
.business-history .history-timeline-pages button{font-size:14px}
.business-history .history-brief{display:block;font-size:13px;line-height:1.45;color:#58677d;margin-top:7px;overflow-wrap:anywhere}
.business-history .history-match{display:inline-block;margin-top:7px;font-size:12px;color:#215b88;background:#eaf4fc;border-radius:5px;padding:3px 6px}
.business-history [data-inner-error]{color:#a52d2d;font-size:14px}
.business-history .history-source-times p{font-size:13px;color:#58677d}
@media(max-width:520px){.business-history .history-timeline{padding:0 8px 10px}.business-history .history-timeline-tools label{min-width:150px}}
