.bp-action-slider { min-width: 0; }
.bp-tools-customize { display: block; margin: 0 auto; padding: 5px 10px; background: transparent; border: 0; color: #426d5e; font: inherit; font-size: 12px; cursor: pointer; }
.bp-tool-preference { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid #dfebe5; }
.bp-tool-preference strong { flex: 1; font-size: 14px; }
.bp-tool-preference label { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.bp-tool-preference input { width: 18px; height: 18px; }
.bp-action-dialog form > footer { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; }
.bp-action-dialog.bp-health-dialog { width: min(880px, calc(100vw - 32px)); }
.bp-health-dialog[open] { display: flex; flex-direction: column; overflow: hidden; }
.bp-health-dialog > header, .bp-health-dialog > footer { flex-shrink: 0; }
.bp-health-dialog > .bp-action-dialog-body { min-height: 0; overflow-y: auto; }
.bp-health-note { font-size: 12px; line-height: 1.5; color: #567267; padding: 12px; background: #f3f8f5; border-radius: 9px; }
.bp-health-note summary { cursor: pointer; font-weight: 700; }
.bp-inventory-edit-form { display: grid; gap: 14px; }
.bp-inventory-edit-form label { display: grid; gap: 6px; min-width: 0; font-size: 13px; font-weight: 700; }
.bp-inventory-edit-form input, .bp-inventory-edit-form textarea { min-width: 0; width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #c5dbd1; border-radius: 8px; font: inherit; }
.bp-inventory-edit-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.bp-inventory-edit-items small { color: #597469; font-weight: 400; }
.bp-health-search { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; font-weight: 700; }
.bp-health-search input { padding: 10px; border: 1px solid #c5dbd1; border-radius: 8px; min-width: 0; }
.bp-health-product { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 16px 0; border-bottom: 1px solid #deebe5; }
.bp-health-product h3 { margin: 0 0 8px; font-size: 16px; }
.bp-health-product p { margin: 0 0 6px; }
.bp-health-product small { color: #597469; }
.bp-health-product > div:last-child { display: grid; gap: 8px; }
.bp-health-product mark { background: #fff0bf; color: #6b4b03; padding: 5px 8px; border-radius: 6px; font-size: 12px; }
.bp-health-product button, .bp-health-detail button { padding: 8px 12px; border: 1px solid #c5dbd1; border-radius: 8px; color: #12513c; background: #f4faf6; cursor: pointer; }
.bp-health-product-report { border: 1px solid #d7e5dd; border-radius: 10px; margin: 10px 0; }
.bp-health-product-report { position: relative; }
.bp-health-product-report.has-product-action > summary { padding-right: 68px; min-height: 60px; box-sizing: border-box; }
.bp-health-report-open { position: absolute; top: 12px; right: 12px; }
.bp-health-product-report > summary > span:nth-child(2) { font-size: 13px; color: #186044; }
.bp-performance { min-width: 0; margin-top: 14px; }
.bp-performance-views { display: flex; gap: 6px; margin-bottom: 12px; }
.bp-performance-views svg { width: 17px; height: 17px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bp-health-detail .bp-performance-views button { display: inline-flex; align-items: center; gap: 6px; }
.bp-performance button[aria-pressed=true] { background: #e7f4ed; border-color: #128263; color: #0b6049; }
.bp-performance-track { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.bp-performance-track::-webkit-scrollbar { display: none; }
.bp-performance-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.bp-performance-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; justify-content: space-between; margin-bottom: 12px; }
.bp-performance-controls > div { display: flex; gap: 5px; }
.bp-performance-controls label { display: grid; gap: 5px; color: #597469; font-size: 12px; }
.bp-performance-controls select { padding: 8px; border: 1px solid #c5dbd1; border-radius: 8px; background: white; color: #12513c; max-width: 100%; }
.bp-performance .bp-analytics-chart { min-width: 0; padding: 10px 0; border: 0; box-shadow: none; }
.bp-performance .bp-analytics-chart h3 { font-size: 15px; }
.bp-performance .bp-analytics-chart-legend { font-size: 12px; }
.bp-performance .bp-analytics-plot-layout { grid-template-columns: 52px minmax(0, 1fr); gap: 5px; }
.bp-performance .bp-analytics-y-axis { font-size: 10px; }
.bp-performance .bp-analytics-date-axis { font-size: 9px; }
.bp-performance-note { font-size: 11px; color: #597469; line-height: 1.5; }
.bp-health-product-report summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px; cursor: pointer; }
.bp-health-product-report summary small { display: block; margin-top: 6px; color: #5a7567; font-size: 12px; }
.bp-health-product-report summary > span:last-child { font-size: 13px; color: #186044; }
.bp-health-detail { padding: 0 16px 16px; font-size: 13px; }
.bp-health-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bp-health-detail dt { color: #5a7567; font-size: 12px; }
.bp-health-detail dd { margin: 5px 0; font-weight: 700; }
.bp-health-daily { overflow: auto; max-height: 260px; }
.bp-health-daily table { width: 100%; border-collapse: collapse; text-align: left; }
.bp-health-daily th, .bp-health-daily td { padding: 8px 5px; border-bottom: 1px solid #deebe5; }
.bp-health-daily caption { text-align: left; padding: 8px 0; font-weight: 700; }
[data-health-name][hidden] { display: none; }
.bp-stock-views { display: flex; gap: 6px; padding: 12px 24px 0; flex-shrink: 0; }
.bp-stock-views button { flex: 1; min-width: 0; padding: 10px 8px; border: 1px solid #c5dbd1; border-radius: 8px; background: #fff; color: #356052; font: inherit; font-size: 13px; cursor: pointer; }
.bp-stock-views button[aria-pressed=true] { background: #e9f5ee; border-color: #17856b; color: #0b644b; font-weight: 700; }
.bp-stock-summary { display: grid; gap: 8px; font-size: 13px; }
.bp-stock-summary details { color: #597469; font-size: 12px; }
.bp-stock-summary summary { cursor: pointer; }
.bp-stock-summary p { margin: 8px 0; line-height: 1.5; }
.bp-stock-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.bp-stock-table th, .bp-stock-table td { padding: 12px 8px; border-bottom: 1px solid #deebe5; }
.bp-stock-table thead th { font-size: 12px; color: #597469; white-space: nowrap; }
.bp-stock-table tbody th { min-width: 0; font-weight: 400; overflow-wrap: anywhere; }
.bp-stock-table tbody th strong { display: block; }
.bp-stock-table tbody th small { display: block; color: #597469; margin-top: 5px; }
.bp-stock-table mark { display: inline-block; background: #fff0bf; color: #6b4b03; padding: 3px 6px; border-radius: 5px; font-size: 11px; margin-top: 5px; }
.bp-stock-table td { font-variant-numeric: tabular-nums; }
.bp-stock-table .bp-stock-onhand { font-weight: 800; font-size: 18px; color: #0b644b; }
.bp-stock-table button { padding: 8px; border: 1px solid #c5dbd1; border-radius: 8px; color: #12513c; background: #f4faf6; cursor: pointer; white-space: nowrap; }
@media (max-width: 600px) {
  .bp-stock-views { padding: 12px 16px 0; gap: 4px; }
  .bp-stock-views button { padding: 10px 5px; font-size: 12px; }
  .bp-stock-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .bp-stock-table, .bp-stock-table tbody { display: block; }
  .bp-stock-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 0; gap: 10px 8px; border-bottom: 1px solid #deebe5; }
  .bp-stock-table tbody th { grid-column: 1 / -1; }
  .bp-stock-table th, .bp-stock-table td { padding: 0; border: 0; }
  .bp-stock-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #597469; font-size: 11px; font-weight: 400; }
  .bp-stock-table .bp-stock-action { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .bp-health-product, .bp-health-product-report summary { flex-direction: column; }
  .bp-tool-preference { gap: 9px; }
}
/* Quiet page controls keep the cards in focus. The hit area stays generous. */
.bp-action-slider-dots { display: flex; justify-content: center; align-items: center; gap: 0; margin-top: 5px; }
.bp-action-slider-dots button { display: inline-flex; align-items: center; justify-content: center; width: 28px; min-width: 28px; height: 28px; min-height: 28px; padding: 0; border: 0; border-radius: 14px; background: transparent; box-shadow: none; cursor: pointer; }
.bp-action-slider-dots button span { width: 8px; height: 8px; border-radius: 999px; background: #0b6c50; opacity: .24; transition: opacity 180ms ease, width 180ms ease; }
.bp-action-slider-dots button[aria-pressed=true] span { width: 22px; opacity: 1; }
.bp-action-slider-dots button:hover span, .bp-action-slider-dots button:focus-visible span { opacity: .7; }
.bp-action-slider-dots button[aria-pressed=true]:hover span { opacity: 1; }
.bp-action-slider-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .bp-action-slider-dots button span { transition: none; } }
.bp-action-slider-track { display: flex; align-items: flex-start; transition: height 280ms ease; overflow-y: hidden; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.bp-action-slider-track::-webkit-scrollbar { display: none; }
.bp-action-slide { display: grid; flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.bp-action-slide > .bp-analytics-categories { display: grid; }
.bp-action-slider .bp-action-card-grid, .bp-action-slider .bp-analytics-preview-grid { grid-auto-rows: 1fr; }
.bp-action-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bp-action-card { display: grid; grid-template-rows: auto 1fr; align-content: start; justify-content: stretch; justify-items: stretch; gap: 12px; min-width: 0; min-height: 148px; padding: 16px; text-align: left; background: #fff; color: #0a4034; border: 1px solid #c8ddd4; border-radius: 12px; cursor: pointer; font: inherit; }
.bp-action-card:hover { border-color: #138567; background: #f7fbf8; }
.bp-action-card.needs-attention { background: linear-gradient(115deg, #fffdf4, #fff 80%); border-color: #dccf9f; }
.bp-action-card-title { display: flex; align-items: center; gap: 8px; width: 100%; font-size: 13px; font-weight: 700; line-height: 1.35; }
.bp-action-card-title svg { width: 20px; height: 20px; flex: 0 0 20px; color: #07846a; }
.bp-action-card-title b { margin-left: auto; color: #548676; font-size: 18px; font-weight: 400; }
.bp-action-card > strong { font-size: 23px; letter-spacing: -.4px; line-height: 1.2; overflow-wrap: anywhere; }
.bp-action-card > small { color: #597469; font-size: 11px; font-weight: 400; line-height: 1.4; }
.bp-action-card-title > span:not(.bp-tool-attention) { flex: 1; min-width: 0; }
.bp-action-card .bp-tool-attention { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: #f6e4b1; color: #684809; font-size: 11px; font-weight: 800; }
.bp-tool-preview { display: flex; flex-direction: column; align-self: stretch; justify-content: flex-start; gap: 7px; min-width: 0; padding: 10px; border: 1px solid #e2ece6; border-radius: 7px; background: #f7faf8; overflow: hidden; }
.bp-tool-preview-label { display: flex; justify-content: space-between; gap: 8px; color: #637b71; font-size: 10px; font-weight: 500; line-height: 1.4; }
.bp-tool-preview-row { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; font-weight: 500; line-height: 1.5; min-width: 0; border-top: 1px solid #e2ece6; padding-top: 5px; }
.bp-tool-preview-row > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-tool-preview-row b { flex-shrink: 0; font-size: 11px; font-weight: 600; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-tool-ghost-row { display: flex; justify-content: space-between; align-items: center; height: 17px; border-top: 1px solid #e7eee9; }
.bp-tool-ghost-row i { width: 44%; height: 4px; border-radius: 3px; background: #dfe9e3; }
.bp-tool-ghost-row i:last-child { width: 18%; }
.bp-tool-document { display: flex; flex-direction: column; gap: 6px; width: 60%; padding: 8px 10px; border: 1px solid #dbe6df; border-radius: 4px; background: white; }
.bp-tool-document i { display: block; height: 3px; background: #dfe9e3; border-radius: 2px; }
.bp-tool-document i:last-child { width: 55%; }
.bp-tool-chart-preview { display: block; width: 100%; height: 44px; fill: none; stroke: #79a391; stroke-width: 1.4; }
.bp-tool-chart-preview path { vector-effect: non-scaling-stroke; }
.bp-tool-chart-preview .bp-tool-chart-grid { stroke: #dce8e0; stroke-width: 1; }
.bp-tool-preview-caption { align-self: flex-end; color: #637b71; font-size: 9px; font-weight: 400; line-height: 1; }
.bp-tool-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 190px; }
.bp-tool-calendar i { height: 15px; border-radius: 3px; background: #e2ece6; }
@media (max-width: 700px) {
  .bp-action-slider .bp-analytics-categories-heading > span { display: none; }
  .bp-tool-preview { padding: 8px; }
  .bp-tool-preview-label { font-size: 9px; gap: 5px; }
  .bp-tool-preview-row { font-size: 10px; }
  .bp-tool-preview-row b { font-size: 10px; }
}
.bp-action-slider button:focus-visible, .bp-action-dialog button:focus-visible { outline: 3px solid #17856b; outline-offset: -3px; }
.bp-action-dialog { width: min(720px, calc(100vw - 32px)); max-height: 85dvh; padding: 0; border: 1px solid #c5dbd1; border-radius: 18px; color: #103c30; background: white; box-shadow: 0 24px 80px #092c3140; }
.bp-action-dialog::backdrop { background: #08282180; }
.bp-action-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px; border-bottom: 1px solid #deebe5; background: #f4f9f6; }
.bp-action-dialog header small { color: #167258; font-weight: 800; font-size: 11px; letter-spacing: .06em; }
.bp-action-dialog h2 { margin: 6px 0; font-size: 24px; }
.bp-action-dialog header p { margin: 0; font-size: 13px; color: #597469; }
.bp-action-dialog header button { flex-shrink: 0; width: 36px; height: 36px; background: white; border: 1px solid #c5dbd1; border-radius: 9px; color: #155a45; font-size: 24px; cursor: pointer; }
.bp-action-dialog-body { padding: 16px 24px; }
.bp-action-event-row, .wi-overview-invoices button { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 18px; background: white; border: 1px solid #d4e3dc; border-radius: 10px; padding: 16px; margin: 8px 0; text-align: left; color: #114734; cursor: pointer; font: inherit; }
.bp-action-event-row:hover, .wi-overview-invoices button:hover { background: #f2f8f4; }
.bp-action-event-row > span, .wi-overview-invoices button > span { min-width: 0; overflow-wrap: anywhere; }
.bp-action-event-row small, .wi-overview-invoices small { display: block; margin-top: 5px; font-size: 12px; color: #62786f; }
.bp-action-event-row > span:last-child { font-size: 12px; flex-shrink: 0; }
.bp-action-dialog > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 24px; border-top: 1px solid #deebe5; }
.bp-action-dialog footer button { padding: 11px 16px; border: 1px solid #bcd6c9; border-radius: 8px; font-weight: 700; color: #0d634a; background: #f5faf7; cursor: pointer; }
.bp-action-dialog footer .bp-primary-action { background: #0b6c50; color: white; }
.wi-overview-dialog { max-width: 740px; }
body:has(.wi-overview-dialog[open]) { overflow: hidden; }
.wi-overview-summary { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.wi-overview-summary span { flex: 1; padding: 14px; background: #eff7f2; border-radius: 10px; font-size: 12px; color: #597469; }
.wi-overview-summary strong { display: block; font-size: 23px; color: #104832; margin-bottom: 4px; }
.wi-overview-invoices button > span:last-child { text-align: right; }
@media (max-width: 700px) {

  .bp-action-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-action-card { padding: 13px; gap: 8px; }
  .bp-action-card-title { font-size: 12px; gap: 6px; }
  .bp-action-card-title svg { display: none; }
  .bp-action-card > strong { font-size: 21px; }
  .bp-action-dialog > header, .bp-action-dialog-body, .bp-action-dialog > footer { padding: 16px; }
  .bp-action-event-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .bp-action-dialog > footer { flex-wrap: wrap; }
}
/* Compact controls share the visual language of the Orders toolbar. */
.bp-health-dialog .bp-health-action { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; gap: 5px; width: auto; min-width: 44px; min-height: 44px; padding: 10px; border: 1px solid #bcd6c9; border-radius: 8px; background: #f5faf7; color: #0d634a; box-shadow: 0 2px 0 #dce9e2; font: inherit; cursor: pointer; }
.bp-health-dialog .bp-health-action svg { width: 20px; height: 20px; flex: 0 0 20px; pointer-events: none; }
.bp-health-dialog .bp-health-action.is-icon-only { width: 44px; height: 44px; }
.bp-health-dialog .bp-health-action.has-caption { flex-direction: column; min-width: 84px; min-height: 58px; padding: 8px 12px; }
.bp-health-dialog .bp-health-action span { font-size: 11px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.bp-health-dialog .bp-health-action.bp-primary-action { background: #0b6c50; border-color: #0b6c50; color: #fff; box-shadow: 0 2px 0 #074e3a; }
.bp-health-dialog .bp-health-action:hover { background: #e8f4ed; border-color: #138567; }
.bp-health-dialog .bp-health-action.bp-primary-action:hover { background: #095b43; }
.bp-health-dialog .bp-health-entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; justify-self: start; }
.bp-health-dialog > footer { align-items: center; gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.bp-stock-table .bp-stock-action { width: 44px; text-align: right; }
@media (max-width: 600px) {
  .bp-stock-table tbody tr { position: relative; }
  .bp-stock-table tbody th { padding-right: 52px; min-height: 44px; }
  .bp-stock-table .bp-stock-action { position: absolute; top: 12px; right: 0; }
}

@media (prefers-reduced-motion: reduce) { .bp-action-slider-track { transition: none; } }
