/* Bills tab. Uses the board's colours and buttons from styles.css. */
#bills .bl-bar { display: flex; gap: 6px; align-items: center; margin: 4px 0 8px; }
#bills .bl-bar input[type=date] { flex: 1; min-width: 0; margin: 0; }
#bills .bl-bar select { width: auto; margin: 0; }
#bills .bl-bar .ghost { font-size: 1.4rem; line-height: 1; padding: 6px 10px; }
#bills #blQ { width: 100%; margin: 0 0 8px; }
#bills .bl-sum { margin: 4px 2px; font-variant-numeric: tabular-nums; }
#bills .bl-list { padding: 2px 12px; }
#bills .bl-row { display: flex; width: 100%; gap: 10px; justify-content: space-between; align-items: center; text-align: left;
  background: transparent; color: inherit; border: 0; border-top: 1px dashed var(--line); border-radius: 0; padding: 10px 0; }
#bills .bl-item { display: flex; align-items: center; gap: 6px; border-top: 1px dashed var(--line); }
#bills .bl-item:first-child { border-top: 0; }
#bills .bl-item .bl-row { flex: 1; min-width: 0; border-top: 0; }
#bills .bl-wa { flex: none; width: 46px; height: 46px; padding: 0; border-radius: 50%; display: grid; place-items: center; background: #1faa53; color: #fff; border: 0; }
#bills .bl-wa.sent { background: transparent; color: #1faa53; border: 1px solid currentColor; }
#bills .bl-sent, dialog .bl-sent { color: var(--ok); }
dialog .bl-nums { display: flex; flex-direction: column; gap: 8px; }
dialog .bl-nums button { text-align: left; }
dialog .bl-roles { gap: 6px; margin-top: 10px; flex-wrap: wrap; }
#bills .bl-who { min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
#bills .bl-amt { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; white-space: nowrap; font-variant-numeric: tabular-nums; }
dialog.bl-view { width: min(900px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0 auto; border-radius: 0; padding: 0; overflow: hidden; }
dialog.bl-view[open] { display: flex; flex-direction: column; }
dialog.bl-view .bl-top { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
dialog.bl-view .bl-opt { display: flex; gap: 8px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); }
dialog.bl-view .bl-opt input { width: auto; margin: 0; }
dialog.bl-view .bl-pages { flex: 1; overflow: auto; background: #6b7280; padding: 8px; }
dialog.bl-view .bl-pages canvas { display: block; width: 100%; height: auto; margin: 0 auto 8px; background: #fff; }
dialog.bl-view .bl-pages p { color: #fff; }
#bills .bl-bar .ghost { min-width: 44px; min-height: 44px; }
dialog.bl-view .bl-top button { min-height: 44px; }
