/* 19 Feedback (Comentarios): the kit sheet, from the Settings sheet (#view-settings -> #view-bd, st- -> fb-) */
/* Settings (18): the Operations sheet's scoped rules for #view-bd; the rv- panel, menu and error rules it shares are global and already loaded. */
#view-bd { padding: 0 0 var(--v3-end-space); color: var(--al-text); width: 100%; min-width: 0; max-width: 100%; }
#view-bd * { box-sizing: border-box; }
#view-bd a { color: var(--al-action); text-decoration: none; cursor: pointer; }
#view-bd a:hover { text-decoration: underline; }
#view-bd .rv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: var(--al-gap-card); }
#view-bd .rv-head .al-title { margin: 0; }
#view-bd .rv-head-r { display: flex; align-items: center; gap: 16px; min-width: 0; }
#view-bd .rv-meta span { white-space: nowrap; }
#view-bd .rv-meta { text-align: right; font-size: var(--al-fs-label); color: var(--al-text-2); line-height: 1.5; font-variant-numeric: tabular-nums; max-width: 560px; }
#view-bd .alf-tabs { display: flex; gap: 26px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; width: 0; min-width: 100%; margin-bottom: var(--al-gap-card); border-bottom: 1px solid var(--al-divider); }
#view-bd .alf-tab { height: 40px; padding: 0; flex: none; border-radius: 0; background: none; color: var(--al-text-2); font-weight: 500; }
#view-bd .alf-tab[aria-selected="true"] { background: none; box-shadow: inset 0 -2px 0 var(--al-brass); color: var(--al-action); font-weight: 700; }
#view-bd .rv-count { margin-left: 6px; font-size: var(--al-fs-label); font-weight: 500; color: var(--al-text-2); font-variant-numeric: tabular-nums; }
#view-bd .alf-tab[aria-selected="true"] .rv-count { color: var(--al-action); }
#view-bd .al-region { background: var(--al-card); border: 1px solid var(--al-divider); border-radius: var(--al-r-card); box-shadow: var(--al-shadow-card); min-width: 0; margin-bottom: var(--al-gap-card); }
#view-bd .al-region-hd { display: flex; align-items: baseline; gap: 12px; padding: var(--al-pad-card) var(--al-pad-card) var(--al-gap-title); border: 0; }
#view-bd .al-region-hd .al-label { font-size: var(--al-fs-card); font-weight: 700; color: var(--al-text); }
#view-bd .al-region-hd .al-meta { margin-left: auto; font-size: var(--al-fs-label); color: var(--al-text-2); font-variant-numeric: tabular-nums; }
#view-bd .al-region-body { padding: 0 var(--al-pad-card) var(--al-pad-card); }
#view-bd .rv-pad { padding: var(--al-pad-card); }
#view-bd .al-flow { display: flex; flex-direction: column; }
#view-bd .al-flow-row { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 0; margin: 0; border: 0; background: none; box-shadow: none; }
#view-bd .al-flow-row::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--al-divider); }
#view-bd .al-flow-row:last-child::after { display: none; }
#view-bd .al-flow.is-compact .al-flow-row { min-height: 44px; padding: 8px 0; }
#view-bd .al-flow-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
#view-bd .al-flow-title { font-size: var(--al-fs-ui); font-weight: 500; color: var(--al-text); line-height: 1.4; overflow-wrap: anywhere; }
#view-bd .al-flow-meta { font-size: var(--al-fs-label); font-weight: 400; color: var(--al-text-2); line-height: 1.4; overflow-wrap: anywhere; }
#view-bd .al-flow-aside { font-size: var(--al-fs-label); color: var(--al-text-2); white-space: nowrap; text-align: right; flex: none; font-variant-numeric: tabular-nums; }
#view-bd [role="button"].al-flow-row { cursor: pointer; border-radius: var(--al-r-control); padding-left: 12px; padding-right: 12px; margin: 0 -12px; }
#view-bd [role="button"].al-flow-row:hover, #view-bd .al-flow-row[aria-selected="true"] { background: var(--al-selected); }
#view-bd .al-flow-row[aria-selected="true"] .al-flow-title { color: var(--al-action); font-weight: 600; }
#view-bd [role="button"]:focus-visible, #view-bd .rv-link:focus-visible { outline: none; box-shadow: var(--al-focus); }
#view-bd .al-absent { font-size: var(--al-fs-ui); color: var(--al-text-2); margin: 0; }
#view-bd .al-secondary { font-size: var(--al-fs-label); color: var(--al-text-2); margin: 8px 0 0; }
#view-bd .rv-chev { flex: none; width: 16px; text-align: center; color: var(--al-text-2); transition: transform var(--al-t-hover, .15s); }
#view-bd .rv-chev.is-open { transform: rotate(90deg); }
#view-bd .rv-sub { padding: 0 0 8px 16px; }
#view-bd .rv-link { border: 0; background: none; padding: 0; margin: 0; font: 500 var(--al-fs-ui)/1.4 var(--al-font-ui); color: var(--al-action); cursor: pointer; white-space: nowrap; }
#view-bd .rv-link:hover { text-decoration: underline; }
#view-bd .rv-dots { flex: none; width: 32px; height: 32px; border: 0; background: none; border-radius: var(--al-r-control); color: var(--al-text-2); cursor: pointer; font-size: 18px; line-height: 1; }
#view-bd .rv-dots:hover { background: var(--al-selected); }
#view-bd .rv-fig { flex: none; font-size: var(--al-fs-ui); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; min-width: 64px; }
#view-bd .rv-num { font-size: var(--al-fs-ui); font-variant-numeric: tabular-nums; color: var(--al-text-2); margin-left: 12px; flex: none; }
#view-bd .rv-lenses { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 16px; }
#view-bd .alf-filter .rv-n { margin-left: 6px; font-variant-numeric: tabular-nums; color: var(--al-text-2); }
#view-bd .alf-filter[aria-pressed="true"] .rv-n { color: var(--al-action); }
#view-bd .rv-tools { display: flex; align-items: center; gap: 12px; padding: var(--al-pad-card) var(--al-pad-card) 8px; }
#view-bd .rv-search { width: 320px; max-width: 100%; height: var(--al-control-h); padding: 0 12px; border: 0; border-radius: var(--al-r-control); background: var(--al-field); box-shadow: inset 0 0 0 1px var(--al-line-control); font: 400 15px/1 var(--al-font-ui); color: var(--al-text); }
#view-bd .rv-search:hover { box-shadow: inset 0 0 0 1px var(--al-action); }
#view-bd .rv-search:focus { outline: none; box-shadow: var(--al-focus); }
#view-bd .rv-search::placeholder { color: var(--al-text-2); }
#view-bd .rv-table-wrap { padding: 0 var(--al-pad-card); overflow-x: auto; }
#view-bd .rv-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
#view-bd .rv-table thead, #view-bd .rv-table thead tr { background: none; }
#view-bd .rv-table th { text-align: left; height: 44px; padding: 0 12px; font-size: var(--al-fs-label); font-weight: 600; color: var(--al-text-2); background: none; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--al-divider); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#view-bd .rv-table td { height: 52px; padding: 0 12px; font-size: var(--al-fs-ui); border-bottom: 1px solid var(--al-divider); vertical-align: middle; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
#view-bd .rv-table tr:last-child td { border-bottom: 0; }
#view-bd .rv-table th:first-child, #view-bd .rv-table td:first-child { padding-left: 0; }
#view-bd .rv-table th:last-child, #view-bd .rv-table td:last-child { padding-right: 0; }
#view-bd .rv-table .r { text-align: right; }
#view-bd .rv-table tbody tr { cursor: pointer; }
#view-bd .rv-table tbody tr:hover td, #view-bd .rv-table tbody tr[aria-selected="true"] td { background: var(--al-selected); }
#view-bd .rv-table tbody tr[aria-selected="true"] td:first-child { color: var(--al-action); font-weight: 600; }
#view-bd .rv-table tbody tr:focus-visible { outline: none; box-shadow: inset var(--al-focus); }
#view-bd .rv-nm { font-weight: 500; }
#view-bd .rv-amb { margin-left: 8px; font-size: var(--al-fs-label); font-weight: 400; color: var(--al-text-2); }
#view-bd .rv-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px var(--al-pad-card) var(--al-pad-card); font-size: var(--al-fs-label); color: var(--al-text-2); }
#view-bd .rv-pager .rv-range { margin-right: 8px; font-variant-numeric: tabular-nums; }
#view-bd .alf-button--icon.alf-button--compact { width: 32px; padding: 0; }
#view-bd .rv-flag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--al-r-chip); background: var(--al-attention-wash); color: var(--al-attention); font-size: var(--al-fs-label); font-weight: 600; }
#view-bd .rv-band, .rv-panel .rv-band { background: none; color: var(--al-attention); padding: 0; font-size: var(--al-fs-ui); font-weight: 600; }
#view-bd .cv-error, .rv-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--al-critical-wash); color: var(--al-critical); border-radius: var(--al-r-control); padding: 12px 16px; font-size: var(--al-fs-ui); }


#view-bd .rv-panel .rv-panel-body { padding-bottom: 88px; }
#view-bd .rv-panel-foot { position: relative; flex: none; padding: 12px 24px 16px; border-top: 1px solid var(--al-divider); display: flex; flex-direction: column; gap: 10px; background: var(--al-raised); }
#view-bd .rv-panel-foot .rv-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#view-bd .rv-panel-foot .al-secondary { margin: 0; }
#view-bd .rv-panel-foot .rv-acts { gap: 4px; flex-wrap: nowrap; }
#view-bd .rv-panel-foot .rv-acts .alf-button { padding-inline: 10px; white-space: nowrap; }

#view-bd .rv-panel-hd { align-items: flex-start; padding-top: 14px; padding-bottom: 6px; min-height: 56px; }
#view-bd .rv-panel-foot::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 40px; background: linear-gradient(to bottom, transparent, var(--al-raised)); pointer-events: none; }

#view-bd .rv-error { margin: 8px 0; }

#view-bd { padding-bottom: 96px; }


/* 13 Invoicing: the MODO PARALELO line, the figures line, the one-row chips (SPEC B, C) */
#view-bd .iv-test-mail { margin: 6px 0 0; }
#view-bd #iv-modo-paralelo { margin-bottom: var(--al-gap-card); }
#view-bd #iv-modo-paralelo:empty { display: none; }
#view-bd .iv-figs { color: var(--al-text-2); font-size: var(--al-fs-ui); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
#view-bd .iv-figs .iv-a3-gen { margin-left: auto; }
#view-bd .iv-chips { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; padding: 4px var(--al-pad-card) 12px; overflow-x: auto; scrollbar-width: thin; }
#view-bd .iv-chips .alf-filter { flex: none; white-space: nowrap; height: 28px; display: inline-flex; align-items: center; }
#view-bd .rv-table th.al-r, #view-bd .rv-table td.al-r { text-align: right; }
#view-bd .rv-table .al-num { font-family: var(--al-font-ui); }
#view-bd .rv-table td a { color: var(--al-action); }
#view-bd .iv-total { margin-top: 10px; text-align: right; font-weight: 500; color: var(--al-text); }
#view-bd .rv-panel .rv-table td { height: 40px; }
#view-bd .ax-dots { flex: none; width: 32px; height: 32px; margin-left: auto; border: 0; background: none; border-radius: var(--al-r-control); color: var(--al-text-2); font-size: 18px; line-height: 1; cursor: pointer; }
#view-bd .ax-dots:hover, #view-bd .ax-dots:focus-visible { background: var(--al-selected); outline: none; }
#view-bd .rv-table td .ax-dots { margin-left: 0; }

/* IN2: one status chip per row (neutral by default, success for paid, attention for vencida) */
#view-bd .alf-status { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--al-r-chip); background: var(--al-selected); color: var(--al-text-2); font-size: var(--al-fs-label); font-weight: 600; white-space: nowrap; vertical-align: middle; }
#view-bd .alf-status--success { background: var(--al-success-wash); color: var(--al-success); }
#view-bd .alf-status--attention { background: var(--al-attention-wash); color: var(--al-attention); }
#view-bd .rv-table td .alf-status { height: 22px; padding: 0 8px; margin: 0; }
#view-bd .rv-panel-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#view-bd .iv-doc-test { margin-bottom: 8px; }

/* IN5: four labelled figures */
#view-bd .iv-stats { display: flex; flex-wrap: wrap; gap: 8px 40px; }
#view-bd .iv-stat-v { font-size: 22px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--al-text); }
#view-bd .iv-stat-l { font-size: var(--al-fs-label); color: var(--al-text-2); margin-top: 2px; }
#view-bd .iv-stat.is-attention .iv-stat-v { color: var(--al-attention); }

/* IN3: hairline label/value rows in the panel */
#view-bd .iv-rows { display: flex; flex-direction: column; }
#view-bd .iv-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--al-divider); }
#view-bd .iv-row:last-child { border-bottom: 0; }
#view-bd .iv-row-l { flex: none; font-size: var(--al-fs-label); color: var(--al-text-2); }
#view-bd .iv-row-v { text-align: right; font-size: var(--al-fs-ui); color: var(--al-text); overflow-wrap: anywhere; min-width: 0; }
#view-bd .rv-panel .rv-sec { margin-bottom: 14px; }

/* 14 Pending: lanes, groups, items, filters */
#view-bd .pn-chips { margin-bottom: 8px; }
#view-bd .pn-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 4px 24px 12px; }
#view-bd .pn-sel, #view-bd .pn-age { height: 36px; border-radius: var(--al-r-control); border: 1px solid var(--al-border); background: var(--al-surface); color: var(--al-text); font-size: var(--al-fs-ui); padding: 0 10px; }
#view-bd .pn-age { width: 150px; }
#view-bd .pn-kleos { margin-top: 4px; }
#view-bd .pn-gov { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 8px 24px 0; }
#view-bd .pn-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-bd .rv-panel .pn-items { display: flex; flex-direction: column; }
#view-bd .rv-panel .pn-item { padding: 10px 0; border-bottom: 1px solid var(--al-divider); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#view-bd .rv-panel .pn-item:last-child { border-bottom: 0; }
#view-bd .rv-panel .pn-item-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
#view-bd .rv-panel .pn-item-q { font-size: var(--al-fs-ui); color: var(--al-text); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#view-bd .rv-panel .pn-item-ctx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#view-bd .rv-panel .pn-item-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
#view-bd .rv-panel .signoff-rich-panel { font-size: var(--al-fs-ui); line-height: 1.5; }
#view-bd .pn-multi { display: flex; flex-direction: column; gap: 6px; }

/* PN3: the Firma first screen: totals and the rule on one line, filters, count and export on one row */
#view-bd .pn-fhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap; padding: 16px 24px 4px; }
#view-bd .pn-fhead .iv-stats { padding: 0; }
#view-bd .pn-rule { margin: 0; }
#view-bd .pn-filters { padding: 8px 24px 12px; gap: 8px; }
#view-bd .pn-filters .pn-sel { width: 144px; }
#view-bd .pn-filters .pn-age { width: 104px; }
#view-bd .rv-panel .pn-item-date { white-space: nowrap; }
#view-bd .pn-filters .pn-sel, #view-bd .pn-filters .pn-age { height: 32px; }
#view-bd .pn-count { margin-left: auto; white-space: nowrap; }

/* 15 People: roster avatar, panel lists */
#view-bd .bd-av { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--al-selected); color: var(--al-text-2); font-size: var(--al-fs-label); font-weight: 600; margin-right: 10px; flex: none; vertical-align: middle; }
#view-bd .bd-nm { display: inline-flex; align-items: center; max-width: 100%; }
#view-bd .bd-list { display: flex; flex-direction: column; }
#view-bd .bd-li { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--al-divider); }
#view-bd .bd-li:last-child { border-bottom: 0; }
#view-bd .bd-li-main { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
#view-bd .bd-li-t { font-size: var(--al-fs-ui); color: var(--al-text); overflow: hidden; text-overflow: ellipsis; }
#view-bd .bd-li-s { font-size: var(--al-fs-label); color: var(--al-text-2); }
#view-bd .bd-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
#view-bd .bd-bar { display: flex; justify-content: flex-end; padding-top: 12px; }
#view-bd .iv-linknote { margin: 0 0 8px; }
#view-bd .rv-panel .pn-chips { margin-bottom: 8px; }

#view-bd .rv-panel .iv-chips { flex-wrap: wrap; overflow: visible; margin: 0 0 8px; padding: 0; }
#view-bd .rv-panel #ph-pay th, #view-bd .rv-panel #ph-pay td { padding-left: 6px; padding-right: 6px; white-space: nowrap; }
#view-bd .rv-panel .rv-table-wrap { overflow-x: auto; }

#view-bd #ph-tablon, #view-bd #ph-buzon, #view-bd #ph-politicas { padding-bottom: 16px; }

/* HR2: long names end in an ellipsis (the full name is the cell's title) */
#view-bd .bd-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-bd .bd-nm .rv-nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
#view-bd .bd-nm { min-width: 0; }
/* HR3: the Tablon inside its own padding, the act on the heading line */
#view-bd .bd-tab-body { padding-top: 12px; padding-bottom: 20px; }
#view-bd .bd-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
#view-bd .bd-hd .rv-sec-t { margin: 0; }

/* 16 Operations */
#view-bd .bd-door { display: block; margin-top: 4px; font-size: var(--al-fs-label); color: var(--al-text-2); text-decoration: none; }
#view-bd .bd-door:hover { color: var(--al-text); text-decoration: underline; }
#view-bd .bd-band-2 { display: block; color: var(--al-text-2); }
#view-bd .bd-wrap { white-space: pre-wrap; overflow-wrap: anywhere; }
#view-bd .bd-foot-note { margin: 0; padding: 0 4px; }
#view-bd .bd-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0 4px; }
#view-bd .bd-hd .rv-sec-t { margin: 0; }
#view-bd .bd-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#view-bd .bd-exp.is-expired { color: var(--al-attention); font-weight: 600; }
dialog.bd-two { width: 720px; max-width: calc(100vw - 48px); max-height: calc(100vh - 32px); }
dialog.bd-two[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.bd-two > div[style] { grid-template-columns: 1fr 1fr; align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 6px 6px 4px; margin: -4px -6px -6px -4px; }
dialog.bd-two > div[style] > .alf-field:first-child, dialog.bd-two > div[style] > .alf-field:has(textarea), dialog.bd-two > div[style] > [data-err] { grid-column: 1 / -1; }
dialog.bd-two > .depth-dialog-header, dialog.bd-two > .alf-dialog-body, dialog.bd-two > .depth-dialog-actions { flex: none; }
#view-bd .bd-door { display: inline-block; margin-top: 12px; font-size: var(--al-fs-ui); }
#view-bd .bd-band-2 { display: block; margin-top: 4px; font-weight: 600; }
#view-bd .bd-sub { display: block; margin: 2px 0 0; font-size: var(--al-fs-label); }
#view-bd .bd-subhead { margin: 20px 0 6px; font-size: var(--al-fs-ui); font-weight: 600; color: var(--al-text); }
#view-bd .bd-rule .iv-row-l { display: flex; flex-direction: column; }
#view-bd .bd-rule .iv-row-v { display: flex; align-items: center; gap: 12px; }
dialog.bd-two { width: 720px; max-width: calc(100vw - 48px); max-height: calc(100vh - 32px); }
dialog.bd-two[open] { display: flex; flex-direction: column; overflow: hidden; }
dialog.bd-two > div[style] { grid-template-columns: 1fr 1fr; align-content: start; flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 6px 6px 4px; margin: -4px -6px -6px -4px; }
dialog.bd-two > div[style] > .alf-field:first-child, dialog.bd-two > div[style] > .alf-field:has(textarea), dialog.bd-two > div[style] > [data-err] { grid-column: 1 / -1; }
dialog.bd-two > .depth-dialog-header, dialog.bd-two > .alf-dialog-body, dialog.bd-two > .depth-dialog-actions { flex: none; }
#view-bd .bd-padded { padding: var(--al-pad-card); }
#view-bd .bd-padded .rv-table-wrap, #view-bd .bd-padded .rv-pad { padding-left: 0; padding-right: 0; }
#view-bd .bd-padded .rv-tools { padding-left: 0; padding-right: 0; }
#view-bd .bd-padded .rv-sec:first-child { margin-top: 0; }
#view-bd .bd-padded .rv-sec + .rv-sec, #view-bd .bd-padded .rv-band + .rv-sec { margin-top: 28px; }


/* G-DIGITS (CD, 5 Oct 2026): headline figures in proportional digits */
#view-bd .iv-stat, #view-bd .iv-stat-v { font-variant-numeric: lining-nums proportional-nums; }

/* 20 BD: the search with its results, the timeline in the record panel, the follow-up rows */
#view-bd .bd-find { position: relative; max-width: 420px; }
#view-bd .bd-find-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; margin-top: 4px; background: var(--al-card, #fff); border: 1px solid var(--al-divider); border-radius: var(--al-r-control); box-shadow: var(--al-shadow-card, 0 6px 20px rgba(0,0,0,.12)); max-height: 320px; overflow-y: auto; }
#view-bd .bd-find-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; font: inherit; color: var(--al-text); cursor: pointer; }
#view-bd .bd-find-item:hover, #view-bd .bd-find-item:focus-visible { background: var(--al-selected); outline: none; }
#view-bd .bd-find-kind { color: var(--al-text-2); font-size: var(--al-fs-label); white-space: nowrap; }
#view-bd .bd-tl { display: flex; flex-direction: column; }
#view-bd .bd-tl-item { display: grid; grid-template-columns: 76px 1fr; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid var(--al-divider); }
#view-bd .bd-tl-item:last-child { border-bottom: 0; }
#view-bd .bd-tl-when { color: var(--al-text-2); font-size: var(--al-fs-label); padding-top: 2px; }
#view-bd .bd-tl-kind { font-weight: 600; font-size: var(--al-fs-ui); }
#view-bd .bd-tl-text { color: var(--al-text); overflow-wrap: anywhere; white-space: pre-wrap; margin: 2px 0 0; }
#view-bd .bd-tl-by { color: var(--al-text-2); font-size: var(--al-fs-label); margin-top: 2px; }
#view-bd .bd-over { color: var(--al-attention); font-weight: 600; }
#view-bd .bd-group-t { margin: 16px 0 4px; font-size: var(--al-fs-ui); font-weight: 600; color: var(--al-text); }
#view-bd .bd-group-t:first-child { margin-top: 0; }
#view-bd .bd-pad { padding: 0 24px 16px; }

/* BD2: three acts in the panel foot wrap rather than cut */
#view-bd .rv-panel-foot .rv-acts { flex-wrap: wrap; row-gap: 8px; }
dialog .bd-find-list { max-height: 220px; overflow-y: auto; margin: 4px 0 0; border: 1px solid var(--al-divider); border-radius: var(--al-r-control); background: var(--al-card, #fff); }
dialog .bd-find-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 8px 12px; border: 0; background: none; text-align: left; font: inherit; color: var(--al-text); cursor: pointer; }
dialog .bd-find-item:hover, dialog .bd-find-item:focus-visible { background: var(--al-selected); outline: none; }
dialog .bd-find-kind { color: var(--al-text-2); font-size: var(--al-fs-label); white-space: nowrap; }
dialog #bd-m-new, dialog #bd-m-old { display: flex; flex-direction: column; gap: 16px; }
body > .rv-menu { z-index: 80; }

/* GB BD (CD, 8 Oct 2026): BD8 the quoted mail is clamped to three lines; BD11/14/19 24px above the panel headings; BD18 the panel foot is one row */
#view-bd .bd-clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#view-bd .bd-more { margin-top: 4px; }
#view-bd .rv-panel .rv-sec { margin-top: 24px; }
#view-bd .rv-panel .rv-sec:first-child { margin-top: 0; }
#view-bd .rv-panel-foot .rv-acts.bd-acts-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; }
#view-bd .rv-panel-foot .rv-acts.bd-acts-row .alf-button { padding-inline: 6px; }
#view-bd .rv-panel-foot .rv-acts.bd-acts-row .alf-button--primary { padding-inline: 12px; }
#view-bd .rv-panel-foot .rv-acts.bd-acts-row .ax-dots { flex: none; width: 28px; margin-left: auto; }

/* recipe 07 (step 4), CD audit 17 Oct: BD on the parts. Rhythm is RULES section 10: 40 between page sections, 24 inside a card and between cards in a row. */
#view-bd .rv-head { margin-bottom: var(--v3-s-5); }
#view-bd .alf-tabs { margin-bottom: var(--v3-s-7); }
#view-bd .bd-top { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--v3-s-7); }
#view-bd .bd-opp-head { flex-direction: row; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; }
#view-bd .bd-card { margin-bottom: var(--v3-s-7); }
#view-bd .bd-hero .pt-b1 { padding: 0; }
#view-bd .bd-quiet { margin: 4px 0 0; font-size: var(--v3-fs-meta); color: var(--v3-text-2); }
#view-bd .bd-meta { margin: 0; font-size: var(--v3-fs-meta); color: var(--v3-text-2); }
#view-bd .bd-over { color: var(--v3-attention); font-weight: 600; }
#view-bd .bd-chips-row { display: flex; justify-content: flex-end; }
#view-bd .bd-desk { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--v3-s-5); align-items: start; }
#view-bd .bd-desk-main, #view-bd .bd-desk-side { min-width: 0; display: flex; flex-direction: column; gap: var(--v3-s-7); }
#view-bd .bd-desk-main > .bd-card, #view-bd .bd-desk-side > .bd-card, #view-bd .bd-desk-side > div > .bd-card { margin-bottom: 0; }
#view-bd .pt-card-hd .alf-filters { margin-left: auto; }
#view-bd .bd-grp { margin: 12px 0 4px; }
#view-bd .bd-line { margin: 12px 0 0; font-size: var(--v3-fs-meta); color: var(--v3-text-2); }
#view-bd .bd-line:first-child { margin-top: 0; }
#view-bd .bd-line .pt-link { text-align: left; }
#view-bd .pt-card-body > .pt-empty { padding: var(--v3-s-5) 0; }
#view-bd .pt-empty-text { font-size: var(--v3-fs-read); font-weight: 400; color: var(--v3-ink); }
#view-bd [data-open]:not(tr), #view-bd .pt-table tbody tr[data-id], #view-bd .pt-rank[role="button"] { cursor: pointer; }
#view-bd .bd-skel { display: flex; flex-direction: column; gap: var(--v3-s-3); }
#view-bd .bd-skel .bd-card { margin: var(--v3-s-4) 0 0; }

/* the board: open lanes of 300, the deal is the only card; sideways scroll with a 24px fade while there is more */
#view-bd .bd-board { display: flex; align-items: flex-start; gap: var(--v3-s-5); overflow-x: auto; padding-bottom: var(--v3-s-2); scrollbar-width: thin; }
#view-bd .bd-board.is-more { -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent); mask-image: linear-gradient(to right, black calc(100% - 24px), transparent); }
#view-bd .bd-col { flex: 0 0 300px; width: 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 0 0 var(--v3-s-2); background: none; border: 0; border-radius: var(--v3-radius-card); }
#view-bd .bd-col.is-over { background: var(--v3-chip); box-shadow: 0 0 0 8px var(--v3-chip); }
#view-bd .bd-col-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-bottom: var(--v3-s-2); border-bottom: 1px solid var(--v3-line); }
#view-bd .bd-col-fee { font-size: var(--v3-fs-meta); color: var(--v3-text-2); }
#view-bd .bd-col-empty { margin: 0; font-size: var(--v3-fs-meta); color: var(--v3-text-2); }
#view-bd .bd-opp { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: var(--v3-radius-card); box-shadow: var(--v3-shadow-card); padding: 12px 14px; font: inherit; color: var(--v3-ink); cursor: grab; min-height: 40px; transition: transform var(--v3-t-hover) var(--v3-ease), box-shadow var(--v3-t-hover) var(--v3-ease); }
#view-bd .bd-opp:hover { transform: translateY(-2px); box-shadow: var(--v3-shadow-raised); }
#view-bd .bd-opp:focus-visible { outline: none; box-shadow: var(--v3-focus); }
#view-bd .bd-opp.is-drag { opacity: .55; box-shadow: var(--v3-shadow-raised); cursor: grabbing; }
#view-bd .bd-opp > b { font-size: var(--v3-fs-body); font-weight: 700; overflow-wrap: anywhere; }
#view-bd .bd-opp-rec { font-size: var(--v3-fs-meta); color: var(--v3-text-2); overflow-wrap: anywhere; }
#view-bd .bd-opp-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#view-bd .bd-opp-next { display: flex; align-items: center; gap: var(--v3-s-2); font-size: var(--v3-fs-meta); color: var(--v3-ink); }
#view-bd .bd-opp-step { min-width: 0; overflow-wrap: anywhere; }
#view-bd .bd-opp-date { padding: 0; flex: none; }
#view-bd .bd-opp-date .pt-date-box { width: 36px; height: 38px; }
#view-bd .bd-opp-case { font-size: var(--v3-fs-label); color: var(--v3-navy); font-weight: 600; }
#view-bd .bd-mini { display: flex; flex-direction: column; gap: var(--v3-s-3); }
#view-bd .bd-mini-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
#view-bd .bd-mini-deal { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 40px; padding: 0 var(--v3-s-2); border-radius: var(--v3-radius-button); cursor: pointer; font-size: var(--v3-fs-body); }
#view-bd .bd-mini-deal:hover { background: var(--v3-chip); }
#view-bd .bd-mini-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-bd .bd-week { background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: var(--v3-radius-card); box-shadow: var(--v3-shadow-card); padding: 12px 16px; }
#view-bd .bd-week > summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; }
#view-bd .bd-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--v3-s-5); margin-bottom: var(--v3-s-7); }
#view-bd .bd-two > .bd-card { margin-bottom: 0; }
#view-bd .bd-rowbar { display: flex; align-items: center; gap: 10px; }
#view-bd .bd-rowbar-track { flex: 1; min-width: 40px; height: 12px; }
#view-bd .bd-rowbar-track > i { display: block; height: 12px; border-radius: 2px; background: var(--v3-series-1); }
#view-bd .bd-rowbar > b { flex: none; min-width: 28px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
#view-bd .bd-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
@media (max-width: 1200px) { #view-bd .bd-two { grid-template-columns: 1fr; } }

/* the record timeline: a 32px round mark per kind in its own series (recognition, never status) */
#view-bd .bd-tl-item { display: grid; grid-template-columns: 32px 1fr; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--v3-line); }
#view-bd .bd-tl-ic { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--v3-series-1); color: var(--v3-page); }
#view-bd .bd-tl-ic.s2 { background: var(--v3-series-2); color: var(--v3-navy); }
#view-bd .bd-tl-ic.s3 { background: var(--v3-series-3); } #view-bd .bd-tl-ic.s4 { background: var(--v3-series-4); } #view-bd .bd-tl-ic.s5 { background: var(--v3-series-5); }
#view-bd .bd-tl-ic .pt-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#view-bd .bd-tl-when { margin-left: 8px; font-weight: 400; color: var(--v3-text-2); font-size: var(--v3-fs-meta); }

/* BD round 3 (CD, 17 Oct): the call-now band is the hero; the deals are five compact columns; the board has a deal menu, a hint and a raised drag image */
#view-bd .bd-callnow { display: flex; flex-direction: column; align-items: stretch; gap: var(--v3-s-3); margin: 0; padding: var(--v3-s-5); background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: var(--v3-radius-card); box-shadow: inset 3px 0 0 var(--v3-brass), var(--v3-shadow-raised); }
#view-bd .bd-calls { display: flex; flex-direction: column; }
#view-bd .bd-call { display: flex; align-items: center; gap: var(--v3-s-3); min-height: var(--v3-row); padding: 6px 0; border-bottom: 1px solid var(--v3-line); cursor: pointer; }
#view-bd .bd-call:last-child { border-bottom: 0; }
#view-bd .bd-call:focus-visible { outline: none; box-shadow: var(--v3-focus); border-radius: var(--v3-radius-button); }
#view-bd .bd-call-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#view-bd .bd-call-main > b { font-size: var(--v3-fs-body); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#view-bd .bd-call-meta { display: flex; gap: 4px; min-width: 0; font-size: var(--v3-fs-meta); color: var(--v3-text-2); white-space: nowrap; }
#view-bd .bd-call-subj { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#view-bd .bd-callfoot { padding-top: var(--v3-s-2); font-size: var(--v3-fs-meta); color: var(--v3-text-2); }
#view-bd .bd-callfoot b { color: var(--v3-ink); font-weight: 700; }
#view-bd .bd-stale-all { margin-top: var(--v3-s-5); }
#view-bd .bd-desk { margin-bottom: var(--v3-s-7); }
#view-bd .bd-desk-main > .bd-callnow + .bd-stale-all { margin-top: var(--v3-s-5); }
#view-bd .bd-doors { margin-bottom: var(--v3-s-7); }
#view-bd .bd-doors .bd-line:first-child { margin-top: 0; }
#view-bd #bd-mini-board { margin-bottom: var(--v3-s-7); }
#view-bd #bd-mini-board > .bd-card { margin-bottom: 0; }
#view-bd .bd-mini { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--v3-s-5); }
#view-bd .bd-mini-stage { display: flex; flex-direction: column; gap: var(--v3-s-1); min-width: 0; }
#view-bd .bd-mini-hd { padding-bottom: var(--v3-s-2); border-bottom: 1px solid var(--v3-line); margin-bottom: var(--v3-s-1); }
#view-bd .bd-board-hint { display: flex; justify-content: flex-end; margin-bottom: var(--v3-s-2); }
#view-bd .bd-opp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
#view-bd .bd-opp-more { flex: none; width: 32px; height: 32px; margin: -6px -8px -6px 0; border: 0; border-radius: var(--v3-radius-button); background: transparent; color: var(--v3-text-2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
#view-bd .bd-opp-more:hover, #view-bd .bd-opp-more:focus-visible { background: var(--v3-chip); outline: none; }
#view-bd .bd-opp-more .pt-icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
#view-bd .pt-wrow-acts .alf-button--quiet:hover { background: var(--v3-chip); }
#view-bd .bd-figs { display: flex; flex-wrap: wrap; gap: var(--v3-s-5) var(--v3-s-7); align-items: flex-start; }
#view-bd .bd-fig-col { display: flex; flex-direction: column; gap: var(--v3-s-2); min-width: 220px; }
#view-bd .bd-fig-col .pt-b3 { padding: 0; }
.bd-drag-ghost { position: fixed; top: -1000px; left: -1000px; display: flex; flex-direction: column; gap: 6px; box-sizing: border-box; padding: 12px 14px; background: var(--v3-card); border: 1px solid var(--v3-line); border-radius: var(--v3-radius-card); box-shadow: var(--v3-shadow-raised); font: 500 var(--v3-fs-body) var(--v3-font); color: var(--v3-ink); }
.bd-drag-ghost .bd-opp-more { display: none; }
