/* "Ask about this chart": the shared AI panel in a side drawer (a bottom sheet on phones). */
.bc-widget-ask{position:fixed;z-index:60;top:72px;right:16px;bottom:16px;width:min(420px,calc(100vw - 32px));display:flex;flex-direction:column;background:#fff;border:1px solid #e4e7ec;border-radius:14px;box-shadow:0 18px 48px rgba(16,24,40,.18);overflow:hidden}
.bc-widget-ask-top{position:absolute;top:8px;right:8px;z-index:1}
.bc-widget-ask-close{width:32px;height:32px;border:0;border-radius:8px;background:transparent;color:#475467;font-size:20px;line-height:1;cursor:pointer}
.bc-widget-ask-close:hover{background:#f2f4f7}
.bc-widget-ask-close:focus-visible{outline:2px solid var(--brand,#007b77);outline-offset:1px}
.bc-widget-ask-panel{flex:1;min-height:0;display:flex;flex-direction:column}
.bc-widget-ask-panel .conform-ai-head{padding-right:48px}
.bc-widget-ask-label{display:block;margin-top:8px;padding-top:6px;border-top:1px solid rgba(16,24,40,.08);color:#667085;font-size:11px}
.bc-widget-ask-records{margin:0 0 10px;font-size:12px}
.bc-widget-ask-records-caption{margin:0 0 6px;font-weight:600;color:#171b26}
.bc-widget-ask-table{max-height:260px;overflow:auto;border:1px solid #e4e7ec;border-radius:8px}
.bc-widget-ask-table table{width:100%;min-width:0;margin:0;table-layout:auto;border-collapse:collapse}
/* Reset: the host page's own table styles (Home's, Site Hub's) must not reach the panel. */
.bc-widget-ask-table th,.bc-widget-ask-table td{height:auto;min-width:0;padding:6px 8px;text-align:left;vertical-align:top;border:0;border-bottom:1px solid #f0f2f5;font-size:12px;line-height:1.4;letter-spacing:normal;text-transform:none;white-space:normal}
.bc-widget-ask-nowrap{white-space:nowrap}
/* After the reset above, so a date or reference stays on one line (it is the cell's own rule). */
.bc-widget-ask-table th.bc-widget-ask-nowrap,.bc-widget-ask-table td.bc-widget-ask-nowrap{white-space:nowrap}
/* The description takes the room left and is cut short with an ellipsis (in full on hover and in "Show all"). */
.bc-widget-ask-table td.bc-widget-ask-description{width:100%;max-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bc-widget-ask-table-full td.bc-widget-ask-description{max-width:none;white-space:normal}
.bc-widget-ask-show-all{margin-top:6px;border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#344054;padding:6px 12px;font:inherit;font-size:12px;cursor:pointer}
/* "Show all": every column, full width, over the page. */
.bc-widget-ask-full{position:fixed;z-index:80;inset:24px;display:flex;flex-direction:column;background:#fff;border:1px solid #e4e7ec;border-radius:14px;box-shadow:0 24px 64px rgba(16,24,40,.28);overflow:hidden}
.bc-widget-ask-full-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #e4e7ec}
.bc-widget-ask-full-top h2{margin:0;font-size:15px}
.bc-widget-ask-table.bc-widget-ask-table-full{flex:1;max-height:none;margin:12px 16px 16px;font-size:12px}
.bc-widget-ask-table th{position:sticky;top:0;background:#f8fafb;color:#475467;font-weight:600;white-space:nowrap}
.bc-widget-ask-preview{margin:0 0 10px;font-size:12px}
.bc-widget-ask-actions{display:flex;gap:8px;margin-top:8px}
.bc-widget-ask-actions button,.bc-widget-ask-show-records{border:1px solid #d0d5dd;border-radius:8px;background:#fff;color:#344054;padding:7px 14px;font:inherit;font-size:12px;cursor:pointer}
.bc-widget-ask-apply{background:var(--brand,#007b77)!important;border-color:var(--brand,#007b77)!important;color:#fff!important}
.bc-widget-ask-actions button:disabled{opacity:.55;cursor:default}
.bc-widget-ask-done{color:#027a48;font-weight:600}
.bc-widget-ask-not-done{color:#b54708;font-weight:600}
.bc-widget-ask-possible{margin:4px 0 10px;padding-left:18px;font-size:12px;color:#344054}
/* A value that opens the records behind it. */
.bc-drill{cursor:pointer}
.bc-drill:hover{opacity:.82}
.bc-drill:focus-visible{outline:2px solid var(--brand,#007b77);outline-offset:1px}
/* A proposed change, until it is applied or discarded. */
.bc-widget.previewing{scroll-margin-top:84px;position:relative;outline:2px dashed var(--brand,#007b77);outline-offset:4px;border-radius:12px}
.bc-widget-preview-badge{position:absolute;top:-10px;left:12px;z-index:2;padding:2px 8px;border-radius:999px;background:var(--brand,#007b77);color:#fff;font-size:11px;font-weight:600}
/* In the page's own AI column it fills the column (the page's chat is underneath until it closes). */
.bc-widget-ask-dock{position:relative}
.bc-widget-ask.docked{position:absolute;inset:0;width:auto;border:0;border-radius:0;box-shadow:none}
/* The page makes room for the panel on a wide screen; on a phone it is a bottom sheet. */
@media (min-width:1024px){html.bc-widget-ask-open body{padding-right:452px;box-sizing:border-box}}
@media (max-width:640px){
  .bc-widget-ask{top:auto;left:0;right:0;bottom:0;width:auto;height:min(78vh,620px);border-radius:16px 16px 0 0}
  /* While a change is previewed the sheet lowers, so the widget shows above it. */
  .bc-widget-ask.peek{height:min(50vh,440px)}
  .bc-widget-ask.peek textarea{height:46px;min-height:46px}
  .bc-widget-ask-full{inset:8px}
}
/* "Show the next …": the rest of a long list, a page at a time, at its end. */
.bc-widget-ask-full-more{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:10px 8px 4px}
.bc-widget-ask-full-more .bc-widget-ask-show-all{margin-top:0}
.bc-widget-ask-full-status{margin:0;color:#b42318;font-size:12px}
.bc-widget-ask-full-status:empty{display:none}
