/* Report canvas visuals */
.visual {
  position: absolute; background: #fff; border-radius: 4px; border: 1px solid #E6E6E6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07); display: flex; flex-direction: column; padding: 6px 10px 6px;
  transition: opacity 0.15s;
}
.visual.no-chrome { background: transparent; border: 0; box-shadow: none; padding: 0; }
.visual.spot-dim { opacity: 0.2; }
.vtitle { font-size: 14px; font-weight: 600; color: #252423; height: 20px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 120px; flex: none; }
.vt-slicer .vtitle { font-size: 12px; height: 16px; line-height: 16px; padding-right: 0; }
.vt-slicer { padding: 5px 8px; }
.vbody { flex: 1; min-height: 0; position: relative; }
.vheader { position: absolute; top: 3px; right: 4px; display: none; gap: 0; background: #fff; z-index: 5; border-radius: 2px; }
.visual:hover .vheader { display: flex; }
.vh-btn { width: 24px; height: 22px; border: 0; background: none; color: #605E5C; display: flex; align-items: center; justify-content: center; border-radius: 2px; }
.vh-btn:hover { background: #F3F2F1; color: #252423; }
.vh-btn.active { background: #E1DFDD; color: #252423; }
.vh-btn.disabled { color: #C8C6C4; cursor: default; }
.vh-btn.disabled:hover { background: none; }

.report-title { font-size: 22px; font-weight: 600; color: #252423; line-height: 28px; margin-top: 4px; }
.report-sub { font-size: 12px; color: #605E5C; }

.pbi-select { height: 26px; border: 1px solid #C8C6C4; background: #fff; font-size: 12px; color: #252423; border-radius: 2px; padding: 0 4px; }
.pbi-input { height: 26px; border: 1px solid #C8C6C4; font-size: 12px; padding: 0 6px; border-radius: 2px; color: #252423; }
.rel-row { display: flex; gap: 4px; margin-top: 2px; }
.rel-row .pbi-select:first-child { width: 58px; }
.rel-n { width: 46px; }
.rel-row .pbi-select:last-child { flex: 1; }
.rel-range { font-size: 10.5px; color: #605E5C; margin-top: 2px; }
.tile-row { display: flex; gap: 4px; margin-top: 3px; }
.tile { flex: 1; height: 28px; border: 1px solid #C8C6C4; background: #fff; font-size: 12px; border-radius: 2px; color: #252423; }
.tile:hover { background: #F3F2F1; }
.tile.on { background: #3257A8; border-color: #3257A8; color: #fff; }
.dropdown-box { width: 100%; height: 28px; margin-top: 3px; border: 1px solid #C8C6C4; background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-size: 12px; border-radius: 2px; }

.vt-card { padding: 8px 12px 6px; }
.kpi-label { font-size: 12px; color: #605E5C; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-value { font-size: 26px; font-weight: 600; color: #252423; line-height: 32px; letter-spacing: -0.3px; }
.kpi-delta { font-size: 11px; color: #605E5C; white-space: nowrap; }
.kpi-delta.good { color: #107C10; }
.kpi-delta.bad { color: #A4262C; }
.kpi-vs { color: #605E5C; }
.spark { width: 100%; height: 24px; display: block; margin-top: 3px; }

.seg-buttons { display: flex; gap: 0; justify-content: flex-end; }
.seg { height: 22px; border: 1px solid #C8C6C4; background: #fff; font-size: 11px; padding: 0 7px; color: #252423; white-space: nowrap; }
.seg + .seg { border-left: 0; }
.seg.on { background: #252423; border-color: #252423; color: #fff; }

.pbi-table { width: 100%; border-collapse: collapse; font-size: 12px; color: #252423; }
.pbi-table th { text-align: left; font-weight: 600; padding: 5px 6px; border-bottom: 1px solid #C8C6C4; white-space: nowrap; background: #fff; position: sticky; top: 0; }
.pbi-table td { padding: 5px 6px; border-bottom: 1px solid #F3F2F1; white-space: nowrap; }
.pbi-table .num { text-align: right; }
.pbi-table tbody tr:hover td { background: #F3F2F1; }
.pbi-table tbody tr[data-k] { cursor: pointer; }
.pbi-table tr.dim td { opacity: 0.4; }
.pbi-table tr.total td { font-weight: 600; border-top: 1px solid #252423; border-bottom: 0; }
.vt-table .vbody, .table-scroll { overflow: auto; }
.focus-table { padding: 6px 10px; }

.matrix-caption { font-size: 10.5px; color: #605E5C; margin: 0 0 3px; }
.matrix-scroll { position: absolute; top: 16px; left: 0; right: 0; bottom: 0; overflow: auto; }
.pbi-matrix { font-size: 10.5px; table-layout: fixed; }
.pbi-matrix th { padding: 3px 4px; }
.pbi-matrix th.corner { width: 104px; }
.pbi-matrix th:nth-child(2) { width: 58px; }
.pbi-matrix td { padding: 0 3px; height: 18px; line-height: 18px; border-bottom: 1px solid #fff; }
.pbi-matrix td.cf { border-left: 1px solid #fff; }
.pbi-matrix tbody tr:hover td.cf { filter: brightness(0.95); }

.focus-back { position: absolute; left: 8px; top: 8px; height: 26px; border: 0; background: none; display: flex; align-items: center; gap: 6px; font-size: 13px; color: #252423; padding: 0 8px; border-radius: 2px; z-index: 3; }
.focus-back:hover { background: #F3F2F1; }
.page-footer { position: absolute; left: 10px; right: 10px; bottom: 5px; display: flex; justify-content: space-between; font-size: 10px; color: #8A8886; pointer-events: none; }

/* Filled map */
.tilemap { display: block; font-family: "Segoe UI", "Segoe UI Web", wf_segoe-ui_normal, Tahoma, Arial, sans-serif; }
.tile-st { cursor: pointer; }
.tile-st rect { transition: opacity 0.12s; }
.tile-st:hover rect { stroke: #252423; stroke-width: 1.5; }
.tile-st.dim { opacity: 0.35; }
.tile-st.sel rect { stroke: #252423; stroke-width: 2; }
.tile-st text { pointer-events: none; }

/* Key influencers */
.vt-ki { padding: 4px 12px 8px; }
.ki-tabs { display: flex; gap: 18px; border-bottom: 1px solid #E1DFDD; height: 30px; padding-right: 110px; }
.ki-tab { border: 0; background: none; font-size: 13px; color: #605E5C; padding: 0 2px; border-bottom: 2px solid transparent; height: 30px; }
.ki-tab.on { color: #252423; font-weight: 600; border-bottom-color: #252423; }
.ki-q { font-size: 15px; margin: 10px 0 8px; color: #252423; }
.ki-dd { border: 1px solid #C8C6C4; background: #fff; font-size: 14px; padding: 2px 8px; border-radius: 2px; color: #252423; }
.chev { color: #605E5C; font-size: 12px; margin-left: 4px; position: relative; top: -3px; }
.ki-body { display: grid; grid-template-columns: 46% 54%; height: calc(100% - 82px); }
.ki-left { border-right: 1px solid #E1DFDD; overflow: auto; padding-right: 6px; }
.ki-left-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: #605E5C; padding: 0 4px 6px; border-bottom: 1px solid #E1DFDD; }
.ki-lh-r { text-align: right; max-width: 150px; }
.ki-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 4px 5px 8px; border-bottom: 1px solid #F3F2F1; cursor: pointer; min-height: 50px; border-left: 3px solid transparent; }
.ki-row:hover { background: #F8F8F8; }
.ki-row.sel { background: #EDEBE9; border-left-color: #3257A8; }
.ki-cond { font-size: 12.5px; color: #252423; }
.ki-bubble { flex: none; border-radius: 50%; background: #3257A8; color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.ki-right { padding-left: 14px; display: flex; flex-direction: column; min-width: 0; }
.ki-right-head { font-size: 13px; color: #252423; line-height: 1.35; }
.ki-chart { flex: 1; min-height: 160px; }
.ki-note { font-size: 11px; color: #605E5C; line-height: 1.35; }
.ki-empty { font-size: 13px; color: #605E5C; padding: 24px 8px; line-height: 1.5; }
.seg-wrap { height: calc(100% - 82px); display: flex; flex-direction: column; }
.seg-axis { font-size: 11px; color: #605E5C; }
.seg-plot { flex: 1; position: relative; border-bottom: 1px solid #E1DFDD; margin-top: 4px; }
.seg-tick { position: absolute; left: 0; right: 0; border-top: 1px solid #EDEBE9; }
.seg-tick span { position: absolute; left: 0; top: -7px; font-size: 10px; color: #605E5C; background: #fff; padding-right: 4px; }
.seg-avg { position: absolute; left: 34px; right: 0; border-top: 1.5px dotted #605E5C; }
.seg-avg span { position: absolute; right: 0; top: -15px; font-size: 10px; color: #605E5C; }
.seg-bubble { position: absolute; border-radius: 50%; border: 0; background: #3257A8; color: #fff; font-size: 12px; font-weight: 600; opacity: 0.92; }
.seg-bubble:hover { background: #24427F; }
.seg-cap { position: absolute; transform: translateX(-50%); font-size: 11px; color: #605E5C; white-space: nowrap; }
.seg-hint { font-size: 11px; color: #605E5C; padding-top: 6px; }
.seg-detail { height: calc(100% - 82px); }
.seg-back { border: 0; background: none; color: #3257A8; font-size: 12px; padding: 0; margin-bottom: 10px; }
.seg-d-grid { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: start; }
.seg-d-bubble { width: 120px; height: 120px; border-radius: 50%; background: #3257A8; color: #fff; font-size: 22px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.seg-d-title { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.seg-d-line { font-size: 13px; margin-bottom: 6px; line-height: 1.4; }
.seg-d-sub { font-size: 12px; font-weight: 600; margin-top: 10px; }
.seg-detail ul { margin: 4px 0 10px; padding-left: 18px; font-size: 13px; }
.seg-bar { position: relative; height: 14px; background: #EDEBE9; margin-top: 10px; }
.seg-bar span { position: absolute; left: 0; top: 0; bottom: 0; background: #3257A8; }
.seg-bar i { position: absolute; top: -4px; bottom: -4px; border-left: 2px dotted #252423; }
.seg-bar-l { display: flex; justify-content: space-between; font-size: 11px; color: #605E5C; margin-top: 4px; }

/* What-if */
.whatif { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-top: 6px; }
.wi-num { width: 64px; }
.wi-range { width: 100%; accent-color: #252423; }
.wi-scale { grid-column: 2; display: flex; justify-content: space-between; font-size: 10px; color: #605E5C; margin-top: -2px; }

/* Q&A */
.vt-qna { padding: 10px 14px; }
.qa-grid { display: grid; grid-template-columns: 400px 1fr; gap: 20px; height: 100%; }
.qa-left { display: flex; flex-direction: column; min-width: 0; }
.qa-box { display: flex; align-items: center; gap: 8px; border: 1px solid #8A8886; border-radius: 4px; padding: 0 10px; height: 38px; }
.qa-input { border: 0; outline: 0; flex: 1; font-size: 15px; color: #252423; background: none; }
.qa-echo { font-size: 12px; color: #605E5C; min-height: 18px; margin: 6px 2px 8px; }
.qa-term { color: #252423; border-bottom: 2px solid #3257A8; }
.qa-unknown { border-bottom: 2px dotted #A4262C; }
.qa-try { font-size: 12px; color: #605E5C; margin-bottom: 6px; }
.qa-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.qa-chip { border: 1px solid #C8C6C4; background: #fff; border-radius: 14px; padding: 4px 11px; font-size: 12px; color: #252423; }
.qa-chip:hover { background: #F3F2F1; border-color: #8A8886; }
.qa-right { display: flex; flex-direction: column; min-width: 0; border-left: 1px solid #E1DFDD; padding-left: 16px; }
.qa-restate { font-size: 12px; color: #605E5C; height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 90px; }
.qa-restate b { color: #252423; font-weight: 600; }
.qa-warn { color: #A4262C; margin-left: 10px; }
.qa-chart { flex: 1; min-height: 0; }
