/* MINUM Relatórios — the approved design (design-reference/MINUM Relatorios
   v2.dc.html), transcribed from the prototype's inline styles. Tokens are the
   MINUM BI design system; do not invent new ones.

   Brand    #00463A deep green · #009279 green · #00D2AE turquoise · #A4E0CE mint
            #F2F4FA blue-grey · #5889FB blue · #FDF083 yellow
   Function #c0392b red · #e07b1a orange · #16a34a green · #5C7268 secondary text
            #e6eeeb borders · #12302a body text
   Status   good #e6f6ec/#1b7a47 · caution #fdf3d7/#8a6d00 · bad #fdecea/#8a1f1f
            low #eaf5f1/#0d5c47 · none #f0f0f0/#77767b */

:root {
  --mr-deep: #00463A;
  --mr-green: #009279;
  --mr-turq: #00D2AE;
  --mr-mint: #A4E0CE;
  --mr-bg: #F2F4FA;
  --mr-blue: #5889FB;
  --mr-text: #12302a;
  --mr-muted: #5C7268;
  --mr-border: #e6eeeb;
  --mr-low-bg: #eaf5f1;
  --mr-low-fg: #0d5c47;
}

body.mr {
  margin: 0;
  background: var(--mr-bg);
  color: var(--mr-text);
  font-family: "Segoe UI", system-ui, Calibri, sans-serif;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
.mr *, .mr *::before, .mr *::after { box-sizing: border-box; }
:where(.mr) a { color: var(--mr-blue); text-decoration: none; }
:where(.mr) a:hover { color: var(--mr-deep); text-decoration: underline; }
.mr button, .mr input, .mr select { font-family: inherit; font-variant-numeric: tabular-nums; }
.mr ::selection { background: var(--mr-mint); }
@media (max-width: 1180px) { .mr [data-hide-narrow] { display: none !important; } }

.mr-shell { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- top bar ---------- */
.mr-top { position: sticky; top: 0; z-index: 30; background: var(--mr-deep); color: #fff; }
.mr-top-inner { display: flex; align-items: center; gap: 24px; height: 56px; padding: 0 24px; }
.mr-brand { display: flex; align-items: baseline; gap: 10px; flex: none; color: #fff !important; text-decoration: none !important; }
.mr-brand-name { font-size: 17px; font-weight: 800; letter-spacing: .16em; color: #fff; }
.mr-brand-product { font-size: 14px; color: var(--mr-mint); }
.mr-nav { display: flex; align-self: stretch; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mr-nav::-webkit-scrollbar { display: none; }
.mr-nav a { min-width: 118px; display: flex; align-items: center; justify-content: center; padding: 0 14px;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent; color: var(--mr-mint);
  font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none !important; }
.mr-nav a:hover { color: #fff; }
.mr-nav a:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--mr-turq); }
.mr-nav a.is-active { color: #fff; border-bottom-color: var(--mr-turq); }

.mr-user { margin-left: auto; position: relative; flex: none; }
.mr-user-btn { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border: 0; border-radius: 24px;
  background: transparent; color: #fff; cursor: pointer; }
.mr-user-btn:hover, .mr-user.is-open .mr-user-btn { background: rgba(255,255,255,.08); }
.mr-user-btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--mr-turq); }
.mr-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--mr-green); color: #fff; font-size: 13px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.mr-user-id { line-height: 1.25; white-space: nowrap; text-align: left; }
.mr-user-id b { display: block; font-size: 13.5px; font-weight: 600; }
.mr-user-id span { display: block; font-size: 12px; color: var(--mr-mint); }
.mr-lang-code { font-size: 11px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.12); color: var(--mr-mint); }
.mr-user-menu { position: absolute; top: 50px; right: 0; width: 300px; background: #fff; color: var(--mr-text);
  border: 1px solid var(--mr-border); border-radius: 12px; box-shadow: 0 14px 36px rgba(0,70,58,.2); padding: 8px; z-index: 40; }
.mr-user-menu-head { padding: 10px 12px 12px; border-bottom: 1px solid var(--mr-border); }
.mr-user-menu-head b { display: block; font-size: 14px; font-weight: 700; }
.mr-user-menu-head span { display: block; font-size: 12.5px; color: var(--mr-muted); }
.mr-user-menu-block { padding: 12px; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid var(--mr-border); }
.mr-user-menu-note { font-size: 12px; color: var(--mr-muted); line-height: 1.4; }
.mr-user-links { padding: 8px 4px 4px; display: flex; flex-direction: column; gap: 2px; }
.mr-user-link { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px; border: 0;
  border-radius: 8px; background: transparent; text-align: left; cursor: pointer; width: 100%; text-decoration: none !important; }
.mr-user-link:hover { background: var(--mr-bg); }
.mr-user-link b { font-size: 14px; font-weight: 600; color: var(--mr-text); }
.mr-user-link span { font-size: 12px; color: var(--mr-muted); }

/* ---------- uppercase field label ---------- */
.mr-label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mr-muted); white-space: nowrap; }

/* ---------- segmented control (language, toggles, density) ---------- */
.mr-seg { display: inline-flex; padding: 3px; background: var(--mr-bg); border-radius: 9px; gap: 2px; }
.mr-seg > * { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--mr-muted);
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center;
  justify-content: center; text-decoration: none !important; }
.mr-seg > *:hover { color: var(--mr-deep); }
.mr-seg > .is-on { background: #fff; color: var(--mr-deep); box-shadow: 0 1px 2px rgba(0,70,58,.16); }
.mr-seg.is-wide { display: flex; }
.mr-seg.is-wide > * { flex: 1; height: 30px; }
.mr-seg form { display: contents; }

/* ---------- sidebar: the modules of the active section (level 2) ---------- */
.mr-body { flex: 1; display: flex; min-width: 0; }
.mr-side { position: sticky; top: 56px; align-self: flex-start; flex: none; width: 236px; height: calc(100vh - 56px);
  background: #fff; border-right: 1px solid var(--mr-border); display: flex; flex-direction: column; z-index: 22; }
.mr-side-head { padding: 16px 12px 8px; min-height: 44px; }
.mr-side-head .mr-label { padding: 0 8px; }
.mr-side-nav { flex: 1; overflow: hidden auto; padding: 0 10px; display: flex; flex-direction: column; gap: 2px; }
.mr-side-item { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px;
  border-radius: 9px; background: transparent; color: var(--mr-text) !important; font-size: 14px; font-weight: 600;
  text-align: left; text-decoration: none !important; }
.mr-side-item:hover { background: var(--mr-bg); }
.mr-side-item:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--mr-turq); }
.mr-side-item.is-active { background: var(--mr-mint); color: var(--mr-deep) !important; font-weight: 700; }
.mr-side-item.is-later { color: #77767b !important; cursor: not-allowed; }
.mr-side-item.is-later:hover { background: transparent; }
.mr-side-icon { flex: none; }
.mr-side-name { flex: 1; min-width: 0; line-height: 1.25; overflow-wrap: break-word; }
.mr-side-badge { flex: none; min-width: 22px; padding: 1px 7px; border-radius: 9px; background: #c0392b; color: #fff;
  font-size: 11.5px; font-weight: 700; text-align: center; }
.mr-side-later { flex: none; padding: 1px 6px; border-radius: 5px; background: #f0f0f0; color: #77767b; font-size: 11px;
  font-weight: 600; white-space: nowrap; }
.mr-side-dot { display: none; position: absolute; top: 7px; left: 25px; width: 9px; height: 9px; border-radius: 50%;
  background: #c0392b; border: 2px solid #fff; }
/* Sticky to the viewport bottom: the staging banner above the top bar would
   otherwise push the toggle below the fold until the page scrolls. */
.mr-side-foot { position: sticky; bottom: 0; padding: 10px; border-top: 1px solid var(--mr-border); background: #fff; }
.mr-side-toggle { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border: 0;
  border-radius: 9px; background: none; color: var(--mr-muted); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mr-side-toggle:hover { background: var(--mr-bg); color: var(--mr-deep); }
.mr-side-toggle:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--mr-turq); }
.mr-side-toggle > span { display: inline-flex; }
.mr-side-when-closed { display: none !important; }
/* Collapsed to icons: names, counts and "em breve" hide; a count becomes a
   red dot on the icon. Narrow screens always show the icons only. */
.mr-side.is-collapsed { width: 64px; }
.mr-side.is-collapsed .mr-side-text { display: none !important; }
.mr-side.is-collapsed .mr-side-dot { display: block; }
.mr-side.is-collapsed .mr-side-when-open { display: none !important; }
.mr-side.is-collapsed .mr-side-when-closed { display: inline-flex !important; }
@media (max-width: 900px) {
  .mr-side { width: 64px; }
  .mr-side .mr-side-text, .mr-side-foot { display: none !important; }
  .mr-side .mr-side-dot { display: block; }
}

/* ---------- breadcrumb: section › module › view ---------- */
.mr-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px 6px; font-size: 14px; color: var(--mr-muted); }
.mr-crumb { color: var(--mr-muted) !important; font-weight: 400; text-decoration: none !important; }
a.mr-crumb:hover { color: var(--mr-deep) !important; }
.mr-crumb.is-current { color: var(--mr-deep) !important; font-weight: 600; }
.mr-crumb-sep { color: var(--mr-mint); }
.mr-question { font-size: 13px; color: var(--mr-muted); margin-top: 2px; }
.mr-readonly-note { margin-left: 8px; font-size: 12.5px; padding: 3px 8px; border-radius: 6px; background: var(--mr-low-bg); color: var(--mr-low-fg); }

/* ---------- page tabs: the views of a module (level 3) ---------- */
.mr-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mr-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 9px;
  border: 1px solid var(--mr-border); background: #fff; color: var(--mr-text) !important; font-size: 14px; font-weight: 600;
  white-space: nowrap; text-decoration: none !important; }
.mr-tab:hover { border-color: var(--mr-mint); }
.mr-tab.is-on { border-color: var(--mr-deep); background: var(--mr-deep); color: #fff !important; }
.mr-tabs-note { margin-left: 8px; font-size: 13px; color: var(--mr-muted); }

/* ---------- main ---------- */
.mr-main { flex: 1; padding: 22px 24px 48px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mr-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; }
.mr-kicker { font-size: 14px; color: var(--mr-muted); }
.mr-title { margin: 2px 0 0; font-size: 21px; font-weight: 700; color: var(--mr-deep); line-height: 1.25; }
.mr-asof { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--mr-muted); white-space: nowrap; }
.mr-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; }
.mr-dot.is-stale { background: #e07b1a; }
.mr-stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.mr-flash { padding: 10px 14px; border-radius: 9px; font-size: 13.5px; }
.mr-flash.is-good { background: #e6f6ec; color: #1b7a47; }
.mr-flash.is-bad { background: #fdecea; color: #8a1f1f; }
.mr-flash.is-caution { background: #fdf3d7; color: #8a6d00; }

/* ---------- filter bar ---------- */
.mr-filterbar { position: sticky; top: 64px; z-index: 20; background: #fff; border: 1px solid var(--mr-border); border-radius: 12px;
  padding: 12px 16px; box-shadow: 0 1px 2px rgba(0,70,58,.05); }
.mr-filterbar-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; }
.mr-field { position: relative; display: flex; flex-direction: column; gap: 4px; z-index: 21; }
.mr-field.is-open { z-index: 41; }
.mr-scope { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 9px; background: var(--mr-bg);
  color: var(--mr-text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.mr-scope.is-team { background: var(--mr-deep); color: #fff; }
.mr-vrule { width: 1px; align-self: stretch; background: var(--mr-border); }
.mr-select { display: flex; align-items: center; height: 34px; border-radius: 9px; border: 1px solid var(--mr-border); background: #fff; }
.mr-select > button, .mr-select > span.mr-select-value { min-width: 132px; height: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 8px; padding: 0 10px 0 12px; border: 0; background: none; color: var(--mr-text);
  font-size: 14px; font-weight: 400; cursor: pointer; white-space: nowrap; border-radius: 9px; }
.mr-select > button:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mr-turq); }
.mr-select.is-active { background: var(--mr-mint); border-color: var(--mr-mint); }
.mr-select.is-active > button { color: var(--mr-deep); font-weight: 600; }
.mr-select.is-readonly { background: var(--mr-bg); }
.mr-select.is-readonly > span.mr-select-value { color: var(--mr-muted); cursor: not-allowed; justify-content: flex-start; }
.mr-select.is-inapplicable { border: 1px dashed #77767b; }
.mr-select.is-inapplicable > button { color: #77767b; text-decoration: line-through; }
.mr-select-clear { width: 28px; height: 100%; display: flex; align-items: center; justify-content: center; border-left: 1px solid rgba(0,70,58,.15);
  color: var(--mr-deep) !important; border-radius: 0 9px 9px 0; text-decoration: none !important; }
.mr-select-clear:hover { background: rgba(0,70,58,.08); }
.mr-field-note { font-size: 11.5px; color: var(--mr-muted); white-space: nowrap; }
.mr-menu { position: absolute; top: 62px; left: 0; min-width: 300px; max-width: min(680px, calc(100vw - 48px)); max-height: 420px; overflow: auto; background: #fff;
  border: 1px solid var(--mr-border); border-radius: 10px; box-shadow: 0 10px 28px rgba(0,70,58,.16); padding: 6px; z-index: 40; }
.mr-menu[hidden] { display: none; }
.mr-menu.is-right { left: auto; right: 0; }
.mr-menu-search { padding: 4px 4px 6px; display: flex; flex-direction: column; gap: 4px; }
.mr-input { height: 34px; padding: 0 10px; border: 1px solid var(--mr-border); border-radius: 8px; font-size: 13.5px; color: var(--mr-text); outline: none; background: #fff; }
.mr-input:focus { border-color: var(--mr-turq); box-shadow: 0 0 0 3px rgba(0,210,174,.25); }
.mr-menu-note { font-size: 11.5px; color: var(--mr-muted); padding: 0 2px; }
.mr-menu-head { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mr-muted); }
.mr-option { display: flex; width: 100%; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; text-align: left;
  font-size: 14px; color: var(--mr-text) !important; text-decoration: none !important; }
.mr-option:hover { background: var(--mr-bg); }
.mr-option.is-on { background: var(--mr-low-bg); font-weight: 600; }
.mr-option-check { width: 14px; color: var(--mr-green); font-weight: 700; flex: none; }
.mr-option-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-option-meta { font-size: 12.5px; color: var(--mr-muted); white-space: nowrap; }
/* multi-select menus: check boxes, Aplicar in a sticky foot */
label.mr-option { cursor: pointer; font-weight: 400; }
label.mr-option:has(input:checked) { background: var(--mr-low-bg); font-weight: 600; }
.mr-option-box { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--mr-green); cursor: pointer; }
.mr-menu-foot { position: sticky; bottom: -6px; display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 6px -6px -6px;
  padding: 8px 10px; background: #fff; border-top: 1px solid var(--mr-border); }
.mr-menu-count { margin-right: auto; font-size: 12.5px; color: var(--mr-muted); }
.mr-menu-foot .mr-btn, .mr-menu-foot .mr-btn.is-secondary { height: 30px; padding: 0 14px; font-size: 13px; }
.mr-menu-foot .mr-btn:disabled { opacity: .45; cursor: not-allowed; }
/* the month picker */
.mr-menu.is-months { min-width: min(500px, calc(100vw - 48px)); max-height: 560px; }
.mr-mp { display: flex; flex-direction: column; gap: 4px; }
.mr-mp-shortcuts { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 6px 8px; }
.mr-mp-shortcut { height: 28px; padding: 0 10px; border-radius: 14px; border: 1px solid var(--mr-border); background: #fff; font-size: 12.5px;
  color: var(--mr-text); cursor: pointer; }
.mr-mp-shortcut:hover { border-color: var(--mr-green); }
.mr-mp-shortcut.is-on { background: var(--mr-mint); border-color: var(--mr-mint); color: var(--mr-deep); font-weight: 600; }
.mr-mp-year { display: grid; grid-template-columns: 78px 1fr; gap: 8px; align-items: start; padding: 6px; border-top: 1px solid var(--mr-border); }
.mr-mp-yearbox { display: flex; align-items: center; gap: 8px; height: 28px; cursor: pointer; font-size: 13.5px; }
.mr-mp-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.mr-mp-month { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 4px; white-space: nowrap; border-radius: 7px; cursor: pointer; font-size: 13px; }
.mr-mp-month:hover { background: var(--mr-bg); }
.mr-mp-month:has(input:checked) { background: var(--mr-low-bg); font-weight: 600; }
.mr-mp-month input { width: 13px; height: 13px; }
.mr-rb-period { border: 1px solid var(--mr-border); border-radius: 10px; padding: 6px; background: #fff; max-height: 360px; overflow: auto; }
.mr-rb-period .mr-menu-foot { margin: 6px -6px -6px; }
.mr-xf-label { color: var(--mr-low-fg); }
.mr-xf-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.mr-xf-chip { height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; border-radius: 9px; border: 2px solid var(--mr-turq);
  background: #fff; color: var(--mr-deep); font-size: 14px; font-weight: 600; white-space: nowrap; }
.mr-xf-chip a { width: 24px; height: 24px; border-radius: 6px; color: var(--mr-deep) !important; display: flex; align-items: center; justify-content: center; }
.mr-xf-chip a:hover { background: var(--mr-low-bg); }
.mr-clear-all { margin-left: auto; align-self: center; margin-top: 16px; height: 34px; padding: 0 12px; border-radius: 9px; color: var(--mr-green) !important;
  font-size: 14px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; text-decoration: none !important; }
.mr-clear-all:hover { background: var(--mr-bg); }
.mr-summary { margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--mr-border); display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 6px; font-size: 13px; color: var(--mr-muted); }
.mr-summary-item { display: inline-flex; align-items: center; gap: 6px; }
.mr-summary-chip { padding: 1px 0; border-radius: 5px; color: var(--mr-text); font-weight: 600; }
.mr-summary-chip.is-on { padding: 1px 7px; background: var(--mr-mint); color: var(--mr-deep); }
.mr-summary-chip.is-scope { padding: 1px 7px; background: var(--mr-deep); color: #fff; }
.mr-summary-chip.is-xf { padding: 1px 7px; border: 1.5px solid var(--mr-turq); color: var(--mr-deep); background: #fff; }
.mr-summary-hint { margin-left: auto; font-size: 12px; color: var(--mr-muted); }

/* ---------- KPI cards ---------- */
.mr-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .mr-grid-2 { grid-template-columns: minmax(0, 1fr); } }
.mr-card { background: #fff; border: 1px solid var(--mr-border); border-radius: 12px; padding: 22px; display: flex; flex-direction: column;
  gap: 10px; min-width: 0; }
.mr-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.mr-card-name { font-size: 15px; font-weight: 700; color: var(--mr-deep); line-height: 1.3; cursor: help; }
.mr-card-sub { font-size: 12.5px; color: var(--mr-muted); margin-top: 2px; }
.mr-chip { flex: none; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mr-chip.is-good { background: #e6f6ec; color: #1b7a47; }
.mr-chip.is-caution { background: #fdf3d7; color: #8a6d00; }
.mr-chip.is-bad { background: #fdecea; color: #8a1f1f; }
.mr-chip.is-low { background: var(--mr-low-bg); color: var(--mr-low-fg); }
.mr-chip.is-none { background: #f0f0f0; color: #77767b; }
.mr-card-value { display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; }
.mr-card-value b { font-size: 30px; font-weight: 700; line-height: 1.1; color: var(--mr-deep); }
.mr-card-value b.is-nodata { color: #77767b; }
.mr-card-value span { font-size: 13px; color: var(--mr-muted); }
.mr-caption { font-size: 12.5px; color: var(--mr-muted); line-height: 1.4; }
.mr-note { font-size: 12px; color: #77767b; line-height: 1.4; }
.mr-xi { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mr-muted); }
.mr-xi-tag { padding: 0 5px; border-radius: 4px; background: var(--mr-bg); color: var(--mr-muted); font-size: 11px; }
.mr-xi-tag.is-on { background: var(--mr-low-bg); color: var(--mr-low-fg); }

/* daily columns */
.mr-cols { display: flex; flex-direction: column; gap: 4px; }
.mr-cols-bars { display: flex; align-items: flex-end; gap: 6px; height: 84px; padding-top: 16px; }
.mr-cols-bar { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.mr-cols-bar > div { position: relative; width: 100%; border-radius: 3px 3px 0 0; background: var(--mr-mint); }
.mr-cols-bar > div.is-weekend { background: var(--mr-border); }
.mr-cols-bar > div.is-last { background: var(--mr-green); }
.mr-cols-bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px; font-size: 11px;
  color: var(--mr-muted); white-space: nowrap; }
.mr-cols-labels { display: flex; gap: 6px; border-top: 1px solid var(--mr-border); padding-top: 4px; }
.mr-cols-labels span { flex: 1; text-align: center; font-size: 11.5px; color: var(--mr-muted); min-width: 0; }

/* donut + legend */
.mr-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mr-donut { position: relative; width: 132px; height: 132px; flex: none; border-radius: 50%; background: var(--mr-bg); }
.mr-donut-hole { position: absolute; inset: 26px; border-radius: 50%; background: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 4px; }
.mr-donut-hole b { font-size: 17px; font-weight: 700; color: var(--mr-deep); line-height: 1.1; }
.mr-donut-hole span { font-size: 11px; color: var(--mr-muted); }
.mr-legend { flex: 1 1 170px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mr-legend-row { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto 42px; align-items: center; gap: 8px; font-size: 13px;
  padding: 4px 6px; margin: 0 -6px; border-radius: 7px; cursor: pointer; color: var(--mr-text) !important; text-decoration: none !important; }
.mr-legend-row:hover { background: var(--mr-bg); }
.mr-legend-row.is-sel { background: var(--mr-low-bg); font-weight: 700; }
.mr-legend-row.is-dim { opacity: .4; }
.mr-legend-swatch { width: 10px; height: 10px; border-radius: 3px; }
.mr-legend-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-legend-val { color: var(--mr-muted); white-space: nowrap; font-weight: 400; }
.mr-legend-pct { text-align: right; font-weight: 600; }

/* ---------- table cards ---------- */
.mr-tcard { margin-top: 20px; background: #fff; border: 1px solid var(--mr-border); border-radius: 12px; padding: 22px; display: flex;
  flex-direction: column; gap: 14px; min-width: 0; }
.mr-tcard-head { display: flex; align-items: flex-end; gap: 12px 18px; flex-wrap: wrap; }
.mr-tcard-title { flex: 1 1 300px; min-width: 0; }
.mr-tcard-title b { display: block; font-size: 15px; font-weight: 700; color: var(--mr-deep); }
.mr-tcard-title span { display: block; font-size: 12.5px; color: var(--mr-muted); margin-top: 2px; line-height: 1.45; }
.mr-control { display: flex; flex-direction: column; gap: 4px; position: relative; }
.mr-btn-out { height: 34px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--mr-border);
  background: #fff; color: var(--mr-deep) !important; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.mr-btn-out:hover { background: var(--mr-bg); border-color: var(--mr-mint); }
.mr-btn-out:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mr-turq); }
.mr-btn-out.is-plain { color: var(--mr-text) !important; }
.mr-colmenu { position: absolute; top: 62px; right: 0; width: 250px; max-height: 360px; overflow: auto; background: #fff; border: 1px solid var(--mr-border);
  border-radius: 10px; box-shadow: 0 10px 28px rgba(0,70,58,.16); padding: 6px; z-index: 40; }
.mr-colmenu[hidden] { display: none; }
.mr-colmenu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 7px; background: transparent;
  text-align: left; font-size: 13.5px; color: var(--mr-text); cursor: pointer; }
.mr-colmenu button:hover { background: var(--mr-bg); }
.mr-box { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid var(--mr-green); background: var(--mr-green); color: #fff; font-size: 11px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.mr-box.is-off { background: #fff; color: transparent; }
.mr-bulk { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 10px 8px 16px; border-radius: 9px; background: var(--mr-deep);
  color: #fff; font-size: 14px; }
.mr-bulk[hidden] { display: none; }
.mr-bulk b { font-weight: 600; }
.mr-bulk a, .mr-bulk button { height: 30px; padding: 0 12px; border: 1px solid var(--mr-mint); border-radius: 8px; background: none; color: #fff !important;
  font-size: 13px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; text-decoration: none !important; }
.mr-bulk button.is-clear { margin-left: auto; border: 0; color: var(--mr-mint) !important; padding: 0 10px; }
.mr-table-scroll { overflow: auto; max-height: 560px; border: 1px solid var(--mr-border); border-radius: 10px; overscroll-behavior-x: contain; }
.mr-table { min-width: 100%; width: max-content; }
.mr-thead { position: sticky; top: 0; z-index: 2; display: flex; background: #fff; border-bottom: 1px solid var(--mr-border); }
.mr-tr { display: flex; border-bottom: 1px solid var(--mr-border); background: #fff; }
.mr-tr.is-checked { background: var(--mr-low-bg); }
.mr-th, .mr-td { padding: 10px 12px; display: flex; align-items: center; gap: 8px; white-space: nowrap; overflow: hidden; }
.mr-table.is-compact .mr-th, .mr-table.is-compact .mr-td { padding-top: 6px; padding-bottom: 6px; }
.mr-th { font-size: 13px; font-weight: 600; color: var(--mr-muted); cursor: pointer; user-select: none; background: #fff; gap: 4px; }
.mr-th-mark { color: var(--mr-green); }
.mr-td { font-size: 14px; color: var(--mr-text); }
.mr-table.is-compact .mr-td { font-size: 13px; }
.mr-th.is-right, .mr-td.is-right { justify-content: flex-end; }
.mr-th.is-sticky, .mr-td.is-sticky { position: sticky; left: 40px; z-index: 1; border-right: 1px solid var(--mr-border); background: inherit; }
.mr-th.is-sticky { background: #fff; z-index: 3; }
.mr-tr .mr-td.is-sticky { background: inherit; }
.mr-td.is-strong { font-weight: 600; }
.mr-td.is-alarm { color: #8a1f1f; font-weight: 700; }
.mr-td > span.mr-cell-text { overflow: hidden; text-overflow: ellipsis; }
.mr-check { position: sticky; left: 0; z-index: 1; flex: 0 0 40px; background: inherit; display: flex; align-items: center; justify-content: center; }
.mr-thead .mr-check { background: #fff; z-index: 4; }
.mr-check input { accent-color: var(--mr-green); width: 16px; height: 16px; margin: 0; }
.mr-th.is-hidden, .mr-td.is-hidden { display: none; }
.mr-table-empty { padding: 28px 16px; font-size: 14px; color: var(--mr-muted); }
.mr-tfoot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--mr-muted); }

/* ---------- lead row (Desempenho): lead card + supporting grid ---------- */
.mr-lead-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.mr-lead { flex: 5 1 440px; min-width: 0; background: #fff; border: 1px solid var(--mr-border); border-radius: 12px; padding: 22px;
  display: flex; flex-direction: column; gap: 14px; }
.mr-lead .mr-chip.is-lead { padding: 4px 9px; font-size: 12.5px; }
.mr-lead-value { display: flex; align-items: baseline; gap: 8px 14px; flex-wrap: wrap; }
.mr-lead-value b { font-size: 52px; font-weight: 700; line-height: 1; color: var(--mr-deep); letter-spacing: -.01em; }
.mr-lead-value b.is-nodata { color: #77767b; }
.mr-lead-value span { font-size: 15px; color: var(--mr-muted); }
.mr-facts { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.mr-facts div { font-size: 13px; color: var(--mr-muted); }
.mr-facts b { font-size: 15px; font-weight: 700; color: var(--mr-text); }
.mr-lead-cols { margin-top: auto; display: flex; flex-direction: column; gap: 4px; }
.mr-lead-bars { display: flex; align-items: flex-end; gap: 8px; height: 104px; padding-top: 18px; }
.mr-lead-bars .mr-cols-bar > div { background: var(--mr-mint); border-radius: 4px 4px 0 0; }
.mr-lead-bars .mr-cols-bar > div.is-on { background: var(--mr-green); }
.mr-lead-bars .mr-cols-bar span { font-size: 11.5px; padding-bottom: 3px; }
.mr-lead-labels { display: flex; gap: 8px; border-top: 1px solid var(--mr-border); padding-top: 4px; }
.mr-lead-labels span { flex: 1; text-align: center; font-size: 12px; color: var(--mr-muted); min-width: 0; }
.mr-lead-cols.is-dense .mr-lead-bars, .mr-lead-cols.is-dense .mr-lead-labels { gap: 2px; }
.mr-lead-cols.is-dense .mr-cols-bar span { display: none; }
.mr-lead-cols.is-dense .mr-lead-labels span { overflow: visible; white-space: nowrap; text-align: left; font-size: 11px; visibility: hidden; }
.mr-lead-cols.is-dense .mr-lead-labels span.is-tick { visibility: visible; }
.mr-stats { flex: 7 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; align-content: start; }

/* ---------- "por quê?" ---------- */
.mr-why { display: flex; flex-direction: column; gap: 8px; }
.mr-why.is-foot { margin-top: auto; }
.mr-why summary { list-style: none; align-self: flex-start; cursor: pointer; font-size: 13px; color: var(--mr-blue); }
.mr-why summary::-webkit-details-marker { display: none; }
.mr-why summary:hover { text-decoration: underline; }
.mr-why summary:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--mr-turq); border-radius: 4px; }
.mr-why .mr-why-close, .mr-why[open] .mr-why-open { display: none; }
.mr-why[open] .mr-why-close { display: inline; }
.mr-why-panel { background: var(--mr-bg); border-radius: 9px; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.mr-why.is-lead .mr-why-panel { padding: 12px 14px; gap: 7px; }
.mr-why-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.mr-why.is-lead .mr-why-row { font-size: 13px; }
.mr-why-row span { color: var(--mr-muted); }
.mr-why-row b { font-weight: 600; text-align: right; white-space: nowrap; }
.mr-why-note { font-size: 12px; color: var(--mr-muted); border-top: 1px solid var(--mr-border); padding-top: 7px; line-height: 1.4; }

/* ---------- horizontal bars ---------- */
.mr-hbars { display: flex; flex-direction: column; gap: 2px; }
.mr-hbar { display: grid; align-items: center; gap: 4px 8px; font-size: 13px; padding: 4px 6px; margin: 0 -6px; border-radius: 7px;
  color: var(--mr-text) !important; text-decoration: none !important; cursor: pointer; }
.mr-hbars.is-inline .mr-hbar { grid-template-columns: minmax(0, 60px) minmax(0, 1fr) 58px; grid-template-areas: "l b v"; }
.mr-hbars.is-stacked .mr-hbar { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l v" "b b"; }
.mr-hbar:hover { background: var(--mr-bg); }
.mr-hbar.is-sel { background: var(--mr-low-bg); font-weight: 700; }
.mr-hbar.is-dim { opacity: .35; }
.mr-hbar.is-empty .mr-hbar-value { color: #77767b; font-weight: 400; }
.mr-hbar-label { grid-area: l; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-hbar-track { grid-area: b; position: relative; height: 9px; background: var(--mr-bg); border-radius: 5px; }
.mr-hbar-fill { display: block; height: 100%; background: var(--mr-green); border-radius: 5px; }
.mr-hbar-fill.is-warn { background: #e07b1a; }
.mr-hbar-mark { position: absolute; top: -3px; width: 2px; height: 15px; background: var(--mr-text); }
.mr-hbar-value { grid-area: v; text-align: right; font-weight: 600; white-space: nowrap; }

/* ---------- class distribution ---------- */
.mr-dist { display: flex; flex-direction: column; gap: 4px; }
.mr-dist-bars { display: flex; align-items: flex-end; gap: 8px; height: 78px; padding-top: 18px; }
.mr-dist-bars > div { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.mr-dist-bars > div > div { position: relative; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; }
.mr-dist-bars .is-good { background: var(--mr-green); }
.mr-dist-bars .is-low { background: var(--mr-mint); }
.mr-dist-bars .is-bad { background: #c0392b; }
.mr-dist-bars span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px; font-size: 12px; font-weight: 600; }
.mr-dist-labels { display: flex; gap: 8px; border-top: 1px solid var(--mr-border); padding-top: 4px; }
.mr-dist-labels span { flex: 1; text-align: center; font-size: 12px; color: var(--mr-muted); }

.mr-companion { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 9px;
  background: var(--mr-bg); font-size: 13px; color: var(--mr-muted); cursor: help; }
.mr-companion b { font-size: 15px; color: var(--mr-text); white-space: nowrap; }

/* ---------- heat-map scorecard ---------- */
.mr-heat { --cell-w: 106px; }
.mr-heat .mr-colmenu.is-wide { width: 300px; }
.mr-colmenu-group { font-size: 11.5px; color: var(--mr-muted); }
.mr-colby { margin-top: 8px; display: inline-flex !important; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; border-radius: 7px;
  background: var(--mr-mint); color: var(--mr-deep) !important; font-size: 13px !important; font-weight: 600; }
.mr-colby a { color: var(--mr-deep) !important; display: flex; padding: 2px; }
.mr-heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 12.5px; color: var(--mr-muted); }
.mr-heat-legend > div { display: flex; align-items: center; gap: 6px; }
.mr-heat-legend i { width: 26px; height: 16px; border-radius: 4px; display: inline-block; }
.mr-heat-scale { display: flex; align-items: center; gap: 6px; }
.mr-pol-down { color: var(--mr-blue); font-weight: 600; }
.mr-heat-legend .is-b0 { background: #fff; border: 1px solid var(--mr-border); }
.mr-heat-scroll { position: relative; overflow: auto; max-height: 640px; border: 1px solid var(--mr-border); border-radius: 10px; overscroll-behavior-x: contain; }
.mr-heat-scroll.is-tall { max-height: none; }
/* Explicit width: the name column plus one cell width per visible KPI (--cols,
   kept by the heat controller). Long KPI names wrap inside their column
   instead of widening the grid; with few KPIs, min-width lets cells fill. */
.mr-heat-grid { min-width: 100%; width: calc(var(--name-w) + var(--cell-w) * var(--cols, 1)); }
.mr-heat-head { position: sticky; top: 0; z-index: 3; background: #fff; }
.mr-heat-line { display: flex; border-bottom: 1px solid var(--mr-border); }
.mr-heat-line.is-avg { border-bottom: 2px solid var(--mr-border); background: var(--mr-bg); }
.mr-heat-name { position: sticky; left: 0; z-index: 2; flex: 0 0 var(--name-w); width: var(--name-w); min-width: var(--name-w); max-width: var(--name-w);
  overflow: hidden; background: #fff; border-right: 1px solid var(--mr-border); padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.mr-heat-name.is-head { align-items: flex-end; padding: 8px 12px; }
.mr-heat-name.is-avg { background: var(--mr-bg); padding: 6px 12px; font-size: 12.5px; color: var(--mr-muted); font-weight: 600; }
.mr-heat-sort { font-size: 13px; font-weight: 600; color: var(--mr-muted) !important; text-decoration: none !important; white-space: nowrap; }
.mr-heat-sort.is-right { margin-left: auto; }
.mr-heat-sort span { color: var(--mr-green); }
.mr-heat-band { min-width: 0; padding: 6px 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mr-muted);
  border-left: 1px solid var(--mr-border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-heat-band.is-first { border-left: 0; }
.mr-heat-th { flex: 1 0 var(--cell-w); min-width: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 3px; padding: 8px 10px 8px 4px;
  background: #fff; text-align: right; min-height: 76px; text-decoration: none !important; }
.mr-heat-th:hover { background: var(--mr-bg); }
.mr-heat-th:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--mr-turq); }
.mr-heat-th.is-sorted { background: var(--mr-bg); }
.mr-heat-th-name { font-size: 12.5px; font-weight: 600; color: var(--mr-muted); line-height: 1.25; hyphens: manual; overflow-wrap: break-word; max-width: 100%; }
.mr-heat-pol { font-size: 11.5px; color: var(--mr-muted); white-space: nowrap; }
.mr-heat-pol.is-down { color: var(--mr-blue); }
.mr-heat-pol b { color: var(--mr-green); }
.mr-heat-tag { max-width: 100%; font-size: 10.5px; line-height: 1.35; padding: 1px 5px; border-radius: 4px; background: #f0f0f0; color: #8a6d00; text-align: right; }
.mr-heat-row { display: flex; border-bottom: 1px solid var(--mr-border); cursor: pointer; }
.mr-heat-row:hover .mr-heat-name { background: var(--mr-bg); }
.mr-heat-row.is-sel .mr-heat-name { background: var(--mr-mint); }
.mr-heat-row.is-dim { opacity: .4; }
.mr-heat-rank { width: 22px; flex: none; font-size: 12.5px; color: var(--mr-muted); text-align: right; }
.mr-heat-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mr-heat-link { font-size: 14px; font-weight: 600; color: var(--mr-text) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none !important; }
.mr-heat-who span { font-size: 12px; color: var(--mr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-heat-tag-row { flex: none; padding: 2px 7px; border-radius: 6px; background: #f0f0f0; color: #77767b; font-size: 12px; font-weight: 600; }
.mr-heat-badge { flex: none; padding: 1px 6px; border-radius: 5px; font-size: 11.5px; font-weight: 600; background: #fdf3d7; color: #8a6d00; white-space: nowrap; }
.mr-heat-badge.is-strong { background: #fdecea; color: #8a1f1f; }
.mr-heat-cls { flex: none; min-width: 26px; height: 22px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px;
  font-size: 13px; font-weight: 700; white-space: nowrap; }
.mr-heat-cls.is-good { background: #e6f6ec; color: #1b7a47; }
.mr-heat-cls.is-low { background: var(--mr-low-bg); color: var(--mr-low-fg); }
.mr-heat-cls.is-bad { background: #fdecea; color: #8a1f1f; }
.mr-heat-cls.is-none { background: #f0f0f0; color: #77767b; }
.mr-heat-why { flex: none; font-size: 12px; color: var(--mr-blue); white-space: nowrap; }
.mr-heat-cell { flex: 1 0 var(--cell-w); overflow: hidden; text-overflow: ellipsis; padding: 10px 10px; font-size: 14px; display: flex; align-items: center;
  justify-content: flex-end; white-space: nowrap; background: #fff; color: var(--mr-text); }
.mr-heat-cell.is-avg { padding: 6px 10px; font-size: 12.5px; color: var(--mr-muted); background: transparent; }
.mr-heat-cell.is-band-start, .mr-heat-th.is-band-start { border-left: 1px solid var(--mr-border); }
.mr-heat-grid.is-compact .mr-heat-cell:not(.is-avg), .mr-heat-grid.is-compact .mr-heat-row .mr-heat-name { padding-top: 6px; padding-bottom: 6px; }
.mr-heat-grid.is-compact .mr-heat-cell { font-size: 13px; }
.mr-heat-grid.is-compact { --cell-w: 92px; }
.mr-heat .is-b2 { background: #e6f6ec; color: #1b7a47; font-weight: 700; }
.mr-heat .is-b1 { background: #f3fbf6; color: #1b7a47; font-weight: 500; }
.mr-heat .is-b0 { background: #fff; color: var(--mr-text); }
.mr-heat .is-bm1 { background: #fef6f5; color: #8a1f1f; font-weight: 500; }
.mr-heat .is-bm2 { background: #fdecea; color: #8a1f1f; font-weight: 700; }
.mr-heat .is-thin { background: repeating-linear-gradient(135deg, #f0f0f0 0 3px, #ffffff 3px 7px); color: #77767b; }
.mr-heat-legend i.is-thin { border: 1px solid var(--mr-border); }
.mr-heat .is-nodata { background: #f0f0f0; color: #77767b; }
.mr-heat .is-zero { background: #fff; color: #77767b; }
.mr-heat-row.is-zero .mr-heat-link { color: var(--mr-muted) !important; font-weight: 600; }
.mr-heat-divider { display: flex; background: #f0f0f0; border-bottom: 1px solid var(--mr-border); }
.mr-heat-divider span { position: sticky; left: 0; padding: 8px 12px; font-size: 12.5px; color: #77767b; white-space: nowrap; }
.mr-heat .is-hidden { display: none !important; }

/* tables: link rows, folds, share bars, cross-tab tones */
.mr-tr.is-link { cursor: pointer; }
.mr-tr.is-link:hover { background: var(--mr-bg); }
.mr-tr.is-sel { background: var(--mr-low-bg); }
.mr-tr.is-dim { opacity: .4; }
.mr-tr.is-child { background: var(--mr-bg); }
.mr-tr.is-child .mr-td { color: var(--mr-muted); }
.mr-tr.is-child .mr-td.is-sticky { padding-left: 40px; }
.mr-tr[hidden] { display: none; }
.mr-fold { width: 20px; height: 20px; flex: none; border: 0; border-radius: 5px; background: transparent; color: var(--mr-deep); cursor: pointer; padding: 0; }
.mr-fold:hover { background: var(--mr-low-bg); }
.mr-td.has-bar { gap: 8px; }
.mr-td.has-bar .mr-cell-text { width: 44px; flex: none; }
.mr-cell-bar { flex: 1; height: 7px; border-radius: 4px; background: var(--mr-bg); overflow: hidden; }
.mr-cell-bar i { display: block; height: 100%; background: var(--mr-green); border-radius: 4px; }
.mr-td.is-x-2 { background: var(--mr-green); color: #fff; font-weight: 700; }
.mr-td.is-x-1 { background: var(--mr-mint); color: var(--mr-deep); }
.mr-td.is-x-0 { background: var(--mr-low-bg); color: var(--mr-deep); }
.mr-td.is-x-none { color: #77767b; }

/* ---------- seller drawer ---------- */
/* Over the page and its header (top: 0, above the sticky bar), so nothing —
   environment banner included — can cover the seller's name. */
.mr-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 470px; max-width: 94vw; background: #fff; border-left: 1px solid var(--mr-border);
  box-shadow: -14px 0 36px rgba(0,70,58,.14); z-index: 35; display: flex; flex-direction: column; }
.mr-drawer-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--mr-border); display: flex; align-items: flex-start; gap: 12px; }
.mr-drawer-name { font-size: 21px; font-weight: 700; color: var(--mr-deep); line-height: 1.25; }
.mr-drawer-close { width: 34px; height: 34px; border-radius: 9px; background: var(--mr-bg); color: var(--mr-deep) !important; display: flex;
  align-items: center; justify-content: center; flex: none; }
.mr-drawer-close:hover { background: var(--mr-border); }
.mr-drawer-body { flex: 1; overflow: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 22px; }
.mr-drawer-section { display: flex; flex-direction: column; gap: 10px; }
.mr-drawer-class { display: flex; align-items: center; gap: 12px; }
.mr-drawer-chip { flex: none; white-space: nowrap; padding: 6px 12px; border-radius: 8px; font-size: 16px; font-weight: 700; }
.mr-drawer-chip.is-good { background: #e6f6ec; color: #1b7a47; }
.mr-drawer-chip.is-low { background: var(--mr-low-bg); color: var(--mr-low-fg); }
.mr-drawer-chip.is-bad { background: #fdecea; color: #8a1f1f; }
.mr-drawer-chip.is-none { background: #f0f0f0; color: #77767b; }
.mr-signals { border: 1px solid var(--mr-border); border-radius: 10px; overflow: hidden; }
.mr-signals-head, .mr-signals-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px 76px 44px 56px; gap: 8px; align-items: center; padding: 7px 12px; }
.mr-signals-head { background: var(--mr-bg); font-size: 12px; font-weight: 600; color: var(--mr-muted); }
.mr-signals-head span:not(:first-child), .mr-signals-row > *:not(:first-child) { text-align: right; justify-self: end; }
.mr-signals-row { border-top: 1px solid var(--mr-border); font-size: 13px; }
.mr-signals-row b { font-weight: 600; }
.mr-signals-row > span:nth-child(3), .mr-signals-row > span:nth-child(4) { color: var(--mr-muted); }
.mr-signals-row .mr-chip { padding: 1px 5px; font-size: 11.5px; font-weight: 700; }
.mr-signals-row.is-total { background: var(--mr-bg); font-weight: 600; }
.mr-drawer-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mr-drawer-title b { font-size: 15px; font-weight: 700; color: var(--mr-deep); }
.mr-drawer-title span { font-size: 12px; color: var(--mr-muted); }
.mr-drawer-facts { display: flex; gap: 10px; flex-wrap: wrap; }
.mr-drawer-facts > div { flex: 1 1 120px; padding: 10px 12px; border-radius: 9px; background: var(--mr-bg); display: flex; flex-direction: column; }
.mr-drawer-facts b { font-size: 18px; font-weight: 700; color: var(--mr-deep); }
.mr-drawer-facts b.is-alarm { color: #8a1f1f; }
.mr-drawer-facts span { font-size: 12px; color: var(--mr-muted); line-height: 1.35; }
.mr-drawer-rule { display: grid; grid-template-columns: minmax(0, 1fr) 40px 44px; gap: 10px; align-items: center; padding: 6px 0;
  border-top: 1px solid var(--mr-border); font-size: 12.5px; }
.mr-drawer-rule span { line-height: 1.35; }
.mr-drawer-rule em { font-style: normal; color: var(--mr-muted); text-align: right; }
.mr-drawer-rule b { text-align: right; }
.mr-strip-legend { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--mr-muted); }
.mr-strip-legend span { display: flex; align-items: center; gap: 4px; }
.mr-strip-legend i { width: 2px; height: 12px; display: inline-block; }
.mr-strip-legend i.is-scope, .mr-strip-track i.is-scope { background: var(--mr-text); }
.mr-strip-legend i.is-state, .mr-strip-track i.is-state { background: var(--mr-blue); }
.mr-strip { display: grid; grid-template-columns: minmax(0, 1fr) 92px 110px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--mr-border); }
.mr-strip-name { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-strip-vs { font-size: 11.5px; color: var(--mr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-strip-value { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.mr-strip-value b { font-size: 14px; font-weight: 700; }
.mr-strip-value .mr-chip { padding: 0 5px; font-size: 11.5px; font-weight: 400; }
.mr-strip-track { position: relative; height: 20px; }
.mr-strip-track::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--mr-border); border-radius: 1px; }
.mr-strip-track i { position: absolute; top: 3px; width: 2px; height: 14px; }
.mr-strip-track i.mr-strip-dot { top: 4px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid #fff; }
.mr-strip-dot.is-good { background: #1b7a47; box-shadow: 0 0 0 1px #1b7a47; }
.mr-strip-dot.is-bad { background: #8a1f1f; box-shadow: 0 0 0 1px #8a1f1f; }
.mr-strip-dot.is-neutral { background: var(--mr-deep); box-shadow: 0 0 0 1px var(--mr-deep); }
.mr-strip-dot.is-none { background: #77767b; box-shadow: 0 0 0 1px #77767b; }
.mr-drawer-foot { padding: 14px 22px; border-top: 1px solid var(--mr-border); display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- export footer ---------- */
.mr-export { margin-top: 20px; background: #fff; border: 1px solid var(--mr-border); border-radius: 12px; padding: 16px 22px; display: flex;
  align-items: center; gap: 14px 18px; flex-wrap: wrap; }
.mr-export-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--mr-low-bg); color: var(--mr-low-fg); display: flex; align-items: center;
  justify-content: center; flex: none; }
.mr-export-text { flex: 1 1 360px; min-width: 0; }
.mr-export-text b { display: block; font-size: 15px; font-weight: 700; color: var(--mr-deep); }
.mr-export-text span { display: block; font-size: 12.5px; color: var(--mr-muted); margin-top: 2px; line-height: 1.45; }
.mr-btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 9px; border: 0; background: var(--mr-green);
  color: #fff !important; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none !important; }
.mr-btn:hover { background: var(--mr-deep); }
.mr-btn:active { transform: translateY(1px); }
.mr-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--mr-turq); }
.mr-btn.is-secondary { padding: 10px 20px; border: 1px solid var(--mr-green); background: #fff; color: var(--mr-deep) !important; }
.mr-btn.is-secondary:hover { background: var(--mr-low-bg); }

/* ---------- empty / placeholder ---------- */
.mr-empty { padding: 28px 22px; background: #fff; border: 1px solid var(--mr-border); border-radius: 12px; font-size: 14px; color: var(--mr-muted); line-height: 1.5; }

/* ---------- print (PDF) ---------- */
@media print {
  .mr-top, .mr-side, #environment-banner, .mr-export, .mr-control, .mr-bulk, .mr-check, .mr-menu, .mr-clear-all, .mr-select-clear { display: none !important; }
  body.mr { background: #fff; }
  /* Charts are drawn with background colours (bars, donuts, heat cells),
     which browsers leave out of a printout unless told to keep them. */
  body.mr, body.mr * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mr-filterbar { position: static; box-shadow: none; }
  .mr-main { padding: 0; }
  .mr-card, .mr-tcard { break-inside: avoid; }
  .mr-table-scroll { max-height: none; overflow: visible; }
  .mr-th.is-sticky, .mr-td.is-sticky { position: static; }
  .mr-drawer, .mr-why summary { display: none !important; }
  .mr-heat-scroll { max-height: none; overflow: visible; }
  .mr-heat-head, .mr-heat-name { position: static; }
}

/* ---------- Stage 3: fixed scope / book notes ---------- */
.mr-scope-note { font-size: 12.5px; line-height: 1.4; padding: 8px 12px; border-radius: 8px; background: var(--mr-bg); color: var(--mr-text); }
.mr-scope-note.is-active { background: #fdf3d7; color: #8a6d00; }

/* ---------- Stage 3: share / ratio leads ---------- */
.mr-lead-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mr-hbars.is-lead .mr-hbar { grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 96px; grid-template-areas: "l b v"; }

/* ---------- Stage 3: head/tail mix, score bands, stacked composition ---------- */
.mr-card.is-wide { grid-column: 1 / -1; }
.mr-ht-split { display: flex; height: 20px; border-radius: 6px; overflow: hidden; font-size: 11.5px; font-weight: 600; }
.mr-ht-split > div { display: flex; align-items: center; padding: 0 8px; white-space: nowrap; overflow: hidden; }
.mr-ht-split > div:first-child { background: var(--mr-green); color: #fff; }
.mr-ht-split > div:last-child { flex: 1; background: var(--mr-mint); color: var(--mr-deep); justify-content: flex-end; }
.mr-ht-head, .mr-ht-tail { display: grid; gap: 2px 24px; }
.mr-ht-tail { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.mr-ht-row { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr) 52px 40px; align-items: center; gap: 8px; font-size: 13px;
  padding: 3px 6px; margin: 0 -6px; border-radius: 7px; color: var(--mr-text) !important; text-decoration: none !important; position: relative; }
.mr-ht-tail .mr-ht-row { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 46px 36px; font-size: 12.5px; }
.mr-ht-tail .mr-hbar-fill { background: var(--mr-blue); }
.mr-ht-row:hover { background: var(--mr-bg); }
.mr-ht-row.is-sel { background: var(--mr-low-bg); font-weight: 700; }
.mr-ht-row.is-dim { opacity: .4; }
.mr-ht-row .mr-heat-badge { position: absolute; right: 100px; top: 2px; }
.mr-ht-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-ht-value { text-align: right; font-weight: 600; }
.mr-ht-count { text-align: right; color: var(--mr-muted); font-size: 12px; }
.mr-ht-tailhead { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--mr-muted); }
.mr-ht-tailhead::after { content: ""; flex: 1; height: 1px; background: var(--mr-border); order: 1; }
.mr-ht-tailhead b { order: 2; padding: 1px 6px; border-radius: 5px; background: var(--mr-low-bg); color: var(--mr-low-fg); text-transform: none;
  letter-spacing: 0; font-size: 11.5px; }
.mr-hbars.is-bands .mr-hbar { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 48px; grid-template-areas: "l b v"; cursor: default; }
.mr-companion.is-caution { background: #fdf3d7; }
.mr-companion small { font-size: 12px; font-weight: 400; color: var(--mr-muted); }
.mr-stackbar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; gap: 2px; background: var(--mr-bg); }
.mr-stackbar span { min-width: 3px; }
.mr-ht-row .mr-hbar-track { grid-area: auto; }
.mr-heat-label { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.mr-heat-th.is-wide, .mr-heat-cell.is-wide { flex: 2 0 calc(var(--cell-w) * 2); }

/* ---------- Stage 4: Relatórios — the report builder (transcribed from the approved design) ---------- */
.mr-rb-saved { background: #fff; border: 1px solid var(--mr-border); border-radius: 12px; padding: 14px 18px; display: flex; align-items: center;
  gap: 10px 12px; flex-wrap: wrap; }
.mr-rb-layout { display: flex; align-items: stretch; border: 1px solid var(--mr-border); border-radius: 9px; background: #fff; }
.mr-rb-layout:hover { border-color: var(--mr-green); }
.mr-rb-layout.is-on { background: var(--mr-mint); border-color: var(--mr-mint); }
.mr-rb-layout-link { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 7px 12px; color: var(--mr-text) !important;
  text-decoration: none !important; }
.mr-rb-layout.is-on .mr-rb-layout-link { color: var(--mr-deep) !important; }
.mr-rb-layout-link b { font-size: 14px; font-weight: 600; }
.mr-rb-layout-link b em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #8a6d00; background: #fdf3d7; padding: 1px 6px; border-radius: 6px; }
.mr-rb-layout-link span { font-size: 12px; color: var(--mr-muted); }
.mr-rb-layout-del { height: 100%; padding: 0 10px; border: 0; border-left: 1px solid var(--mr-border); background: none; color: #c0392b; font-size: 16px;
  cursor: pointer; border-radius: 0 9px 9px 0; }
.mr-rb-layout-del:hover { background: #fdecea; }
.mr-rb-new { padding: 9px 14px; border-radius: 9px; color: var(--mr-green) !important; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.mr-rb-new:hover { background: var(--mr-bg); }

.mr-rb { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.mr-rb-col, .mr-rb-out { background: #fff; border: 1px solid var(--mr-border); border-radius: 12px; display: flex; flex-direction: column; min-width: 0; }
.mr-rb-col.is-picker { flex: 0 1 330px; min-width: 260px; padding: 18px; gap: 12px; }
.mr-rb-col.is-arrange { flex: 0 1 310px; min-width: 260px; padding: 18px; gap: 16px; }
.mr-rb-out { flex: 1 1 520px; padding: 22px; gap: 16px; }
.mr-rb-step { font-size: 15px; font-weight: 700; color: var(--mr-deep); }
.mr-rb-col .mr-input { height: 38px; padding: 0 12px; border: 1px solid var(--mr-border); border-radius: 9px; font-size: 14px; color: var(--mr-text);
  background: #fff; outline: none; width: 100%; font-family: inherit; }
.mr-rb-col .mr-input:focus { border-color: var(--mr-turq); box-shadow: 0 0 0 3px rgba(0,210,174,.25); }
.mr-rb-list { display: flex; flex-direction: column; gap: 14px; max-height: 640px; overflow: auto; margin: 0 -6px; padding: 0 6px; }
.mr-rb-group { display: flex; flex-direction: column; gap: 2px; }
.mr-rb-kpi { display: flex; align-items: flex-start; gap: 10px; padding: 8px 6px; border-radius: 8px; text-decoration: none !important;
  color: var(--mr-text) !important; }
.mr-rb-kpi:hover { background: var(--mr-bg); }
.mr-rb-kpi.is-on { background: var(--mr-low-bg); }
.mr-rb-box { margin-top: 2px; width: 16px; height: 16px; flex: none; border-radius: 4px; border: 1.5px solid var(--mr-muted); background: #fff; color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mr-rb-kpi.is-on .mr-rb-box { border-color: var(--mr-green); background: var(--mr-green); }
.mr-rb-kpi-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mr-rb-kpi-text b { font-size: 14px; font-weight: 400; }
.mr-rb-kpi.is-on .mr-rb-kpi-text b { font-weight: 600; }
.mr-rb-kpi-text span { font-size: 12px; color: var(--mr-muted); }
.mr-rb-kpi-text em { font-size: 12px; font-style: normal; color: #8a6d00; }
.mr-rb-empty { padding: 14px; border: 1px dashed var(--mr-border); border-radius: 9px; font-size: 13px; color: var(--mr-muted); }
.mr-rb-empty.is-big { padding: 40px 18px; text-align: center; }

.mr-rb-picked { display: flex; flex-direction: column; gap: 6px; }
.mr-rb-pick { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border: 1px solid var(--mr-border); border-radius: 9px; }
.mr-rb-n { width: 20px; height: 20px; flex: none; border-radius: 50%; background: var(--mr-low-bg); color: var(--mr-low-fg); font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; }
.mr-rb-pick-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mr-rb-pick-text b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.mr-rb-pick-text span { font-size: 12px; color: var(--mr-muted); }
.mr-rb-icon { width: 26px; height: 26px; flex: none; border-radius: 6px; background: var(--mr-bg); color: var(--mr-deep) !important; display: flex;
  align-items: center; justify-content: center; text-decoration: none !important; font-size: 14px; }
.mr-rb-icon.is-off { opacity: .3; }
.mr-rb-icon.is-remove { background: none; color: #c0392b !important; font-size: 16px; }
.mr-rb-icon.is-remove:hover { background: #fdecea; }

.mr-rb-block { display: flex; flex-direction: column; gap: 6px; }
.mr-rb-block.is-save { border-top: 1px solid var(--mr-border); padding-top: 14px; }
.mr-rb-radio { display: flex; align-items: flex-start; gap: 10px; padding: 6px 4px; text-decoration: none !important; color: var(--mr-text) !important; }
.mr-rb-dot { margin-top: 2px; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--mr-muted); display: flex;
  align-items: center; justify-content: center; }
.mr-rb-dot i { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.mr-rb-radio.is-on .mr-rb-dot { border-color: var(--mr-green); }
.mr-rb-radio.is-on .mr-rb-dot i { background: var(--mr-green); }
.mr-rb-radio.is-off { cursor: not-allowed; color: #77767b !important; }
.mr-rb-radio.is-off .mr-rb-dot { border-color: var(--mr-border); }
.mr-rb-radio-text { flex: 1; display: flex; flex-direction: column; font-size: 14px; }
.mr-rb-radio-text em { font-size: 12px; font-style: normal; color: #77767b; }
.mr-rb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mr-rb-chip { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--mr-border); background: #fff; color: var(--mr-text) !important;
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none !important; }
.mr-rb-chip.is-on { background: var(--mr-mint); border-color: var(--mr-mint); color: var(--mr-deep) !important; }
.mr-rb-chip.is-off { opacity: .45; cursor: not-allowed; }
.mr-rb-save { display: flex; gap: 8px; }
.mr-rb-save .mr-input { height: 40px; flex: 1; min-width: 0; }
.mr-rb-save .mr-btn-out { height: 40px; padding: 0 16px; border-color: var(--mr-green); font-size: 14px; }
.mr-rb-save .mr-btn-out:hover { background: var(--mr-low-bg); }
.mr-rb-save .mr-btn-out:disabled, .mr-rb-save .mr-input:disabled { opacity: .45; cursor: not-allowed; }
.mr-rb-share { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--mr-muted); }
.mr-rb-share > span { flex: none; }
.mr-rb-share select.mr-input { height: 34px; flex: 1; min-width: 0; width: 100%; }

.mr-rb-out-head { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mr-rb-pack { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 9px; background: var(--mr-low-bg);
  color: var(--mr-low-fg); font-size: 13.5px; }
.mr-rb-pack > span { flex: 1 1 260px; }
.mr-rb-pack .mr-btn { padding: 9px 16px; font-size: 14px; }
.mr-rb-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.mr-rb-chart { border: 1px solid var(--mr-border); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0;
  break-inside: avoid; }
.mr-rb-chart-name { font-size: 14px; font-weight: 700; }
.mr-rb-rule { color: var(--mr-blue); }
.mr-rb-cols { display: flex; flex-direction: column; gap: 4px; }
.mr-rb-cols-bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 16px; }
.mr-rb-cols-bars > div { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.mr-rb-col-bar { position: relative; width: 100%; background: var(--mr-green); border-radius: 3px 3px 0 0; }
.mr-rb-col-bar.is-partial { background: var(--mr-mint); }
.mr-rb-col-bar span { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 2px; font-size: 11px; color: var(--mr-muted);
  white-space: nowrap; }
.mr-rb-cols-labels, .mr-rb-line-labels { display: flex; gap: 6px; border-top: 1px solid var(--mr-border); padding-top: 4px; }
.mr-rb-cols-labels span, .mr-rb-line-labels span { flex: 1; text-align: center; font-size: 11.5px; color: var(--mr-muted); min-width: 0; white-space: nowrap;
  overflow: hidden; }
.mr-rb-line-labels { justify-content: space-between; }
.mr-rb-line { display: flex; flex-direction: column; gap: 4px; }
.mr-rb-line-plot { position: relative; aspect-ratio: 300 / 110; }
.mr-rb-line-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mr-rb-dot-pt { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; border: 2px solid var(--mr-green); }
.mr-rb-dot-label { position: absolute; transform: translate(-50%, -150%); font-size: 11px; color: var(--mr-muted); white-space: nowrap; }
.mr-rb-bars { display: flex; flex-direction: column; gap: 6px; }
.mr-rb-bar { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr) minmax(76px, auto); align-items: center; gap: 8px; font-size: 12.5px; }
.mr-rb-bar > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-rb-bar-track { height: 9px; background: var(--mr-bg); border-radius: 5px; overflow: hidden; }
.mr-rb-bar-track i { display: block; height: 100%; background: var(--mr-green); border-radius: 5px; }
.mr-rb-bar b { text-align: right; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.mr-rb-bar b.is-empty { color: #77767b; font-weight: 400; }
.mr-rb-stack { display: flex; flex-direction: column; gap: 7px; }
.mr-rb-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.mr-rb-legend span { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--mr-muted); max-width: 100%; min-width: 0; }
.mr-rb-legend span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.mr-rb-legend i { width: 9px; height: 9px; flex: none; border-radius: 2px; }
.mr-rb-stack-row { display: grid; grid-template-columns: minmax(0, 120px) minmax(0, 1fr); align-items: center; gap: 8px; font-size: 12.5px; }
.mr-rb-stack-row > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mr-rb-stack-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--mr-bg); }
.mr-rb-stack-bar.is-empty { background: #f0f0f0; }
.mr-rb-stack-bar i { border-right: 1px solid #fff; }
.mr-rb-stack-bar em { font-size: 11px; font-style: normal; color: #77767b; padding: 0 6px; line-height: 12px; white-space: nowrap; }
.mr-rb-out .mr-tcard { margin-top: 0; padding: 16px; border-radius: 10px; }
.mr-rb-out .mr-th { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
