/* =====================================================================
   GR Water — Painel da API Protheus
   Shell (sidebar navy + topbar) e componentes, sobre os tokens da marca
   (grws-tokens.css, cópia fiel do CRM). Nenhuma dependência externa.
   Regra da marca: azul carrega magnitude/categoria, verde = bom,
   laranja = precisa de atenção. VERMELHO NÃO SE USA.
   ===================================================================== */

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: var(--grws-font-body);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--app-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--c3); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong, th { font-weight: 600; }
h1, h2, h3 { margin: 0; font-family: var(--grws-font-display); font-weight: 400; letter-spacing: .02em; }
code, .mono, .num {
  font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--c5); color: #04142f; }
:focus-visible { outline: 2px solid var(--c3); outline-offset: 2px; border-radius: 4px; }
/* Tamanho padrão de todo ícone (Icone.cs). SVG inline sem width/height estica até a largura do contêiner:
   sem esta regra, o ícone de um .aviso ocupava a tela inteira. Contextos maiores sobrescrevem abaixo. */
.ico { width: 15px; height: 15px; flex: none; }

/* --------------------------------------------------------------- shell */
.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 236px; min-width: 236px;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  z-index: 40;
}
.sidebar__logo { padding: 22px 20px 16px; display: block; }
.sidebar__logo img { width: 128px; height: auto; display: block; }
.sidebar__tag {
  margin-top: 9px; font-family: var(--grws-font-display);
  font-size: 9.5px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase;
  color: #8CCBFF; display: flex; align-items: center; gap: 8px;
}
.sidebar__tag::before { content: ""; width: 22px; height: 2px; background: var(--grws-grad-laranja); border-radius: 2px; }

.nav { flex: 1; padding: 6px 12px; overflow-y: auto; }
.nav__grupo { margin-bottom: 18px; }
.nav__label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255,255,255,.42); padding: 0 10px 7px;
}
.nav__item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px; margin-bottom: 2px; border-radius: 9px;
  color: rgba(255,255,255,.76); font-size: 13px; position: relative;
  transition: background .12s, color .12s;
}
.nav__item:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.nav__item.ativo {
  background: linear-gradient(90deg, rgba(250,152,26,.24), rgba(250,152,26,.05));
  color: #fff; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(250,152,26,.38);
}
.nav__item.ativo .ico { color: var(--grws-laranja); }
.nav__item .ico { width: 17px; height: 17px; flex: none; opacity: .9; }
.nav__badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 20px;
  background: rgba(255,255,255,.14); color: #fff;
}
.sidebar__rodape {
  padding: 12px 20px 16px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: 10.5px; color: rgba(255,255,255,.45); line-height: 1.6;
}

.principal { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 58px; flex: none;
  background: var(--panel); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  position: sticky; top: 0; z-index: 30;
}
.topbar__titulo { font-family: var(--grws-font-display); font-size: 15px; text-transform: uppercase; letter-spacing: .03em; }
.topbar__dir { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar__user { display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--ink-muted); }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--c3), var(--c1)); color: #fff;
  display: grid; place-items: center;
  font-family: var(--grws-font-display); font-size: 11.5px; font-weight: 700;
}
.conteudo { flex: 1; padding: 22px 26px 60px; }

/* ------------------------------------------------------- cabeçalho de página */
.pagina__topo { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pagina__titulo { font-size: 21px; text-transform: uppercase; color: var(--ink); }
.pagina__titulo b { font-weight: 600; }
.pagina__sub { font-size: 12px; color: var(--ink-subtle); margin-top: 3px; }
.pagina__acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* --------------------------------------------------------- seletor de período */
.periodos { display: inline-flex; background: var(--panel-inset); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.periodos a {
  padding: 5px 11px; border-radius: 7px; font-size: 11.5px; font-weight: 600;
  color: var(--ink-muted); text-decoration: none; white-space: nowrap;
}
.periodos a:hover { color: var(--ink); text-decoration: none; }
.periodos a.ativo { background: var(--panel); color: var(--c3); box-shadow: var(--shadow-card); }

/* ----------------------------------------------------------------- KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(178px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 15px 17px; box-shadow: var(--shadow-card);
  display: flex; flex-direction: column; gap: 5px; min-height: 104px;
}
.kpi__label {
  font-size: 9.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-subtle);
}
.kpi__val {
  font-family: var(--grws-font-display); font-weight: 600; font-size: 28px; line-height: 1.1;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.kpi__val small { font-size: 14px; font-weight: 400; color: var(--ink-subtle); margin-left: 3px; }
.kpi__pe { font-size: 11px; color: var(--ink-subtle); margin-top: auto; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.kpi--hero {
  background: linear-gradient(140deg, #0B3FA0 0%, #061E63 100%);
  border-color: transparent; color: #fff;
}
.kpi--hero .kpi__label { color: rgba(255,255,255,.72); }
.kpi--hero .kpi__val { color: #fff; }
.kpi--hero .kpi__val small { color: rgba(255,255,255,.66); }
.kpi--hero .kpi__pe { color: rgba(255,255,255,.72); }
.kpi--atencao { border-left: 3px solid var(--warn); }
.kpi--bom { border-left: 3px solid var(--pos); }

.delta { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.delta--sobe { color: var(--pos); background: var(--pos-bg); }
.delta--desce { color: var(--warn-strong); background: var(--warn-bg); }
.delta--neutro { color: var(--ink-subtle); background: var(--track); }
.kpi--hero .delta { background: rgba(255,255,255,.16); color: #fff; }

/* --------------------------------------------------------------- painéis */
.grade { display: grid; gap: 16px; margin-bottom: 16px; }
.grade--2 { grid-template-columns: 1fr 1fr; }
.grade--2-1 { grid-template-columns: 2fr 1fr; }
.grade--1-2 { grid-template-columns: 1fr 2fr; }
.grade--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1180px) { .grade--2, .grade--2-1, .grade--1-2, .grade--3 { grid-template-columns: 1fr; } }

.painel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.painel__cab {
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.painel__tit { font-family: var(--grws-font-display); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); }
.painel__sub { font-size: 11px; color: var(--ink-subtle); }
.painel__cab .dir { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.painel__corpo { padding: 16px 18px; }
.painel__corpo--limpo { padding: 0; }

/* ---------------------------------------------------------------- tabela */
.tabela-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  padding: 9px 14px; text-align: left; white-space: nowrap;
  font-family: var(--grws-font-display); font-size: 10px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; color: var(--ink-subtle);
  background: var(--panel-inset); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}
.tbl td { padding: 9px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr:hover { background: var(--panel-inset); }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num, .tbl .dir { text-align: right; }
.tbl .principal-cel { font-weight: 600; color: var(--ink); }
.tbl .sub-cel { font-size: 10.5px; color: var(--ink-subtle); }
.tbl tr.inativo { opacity: .5; }
.tbl tr.clicavel { cursor: pointer; }
.vazio { text-align: center; color: var(--ink-subtle); padding: 34px 16px; font-size: 12.5px; }

/* ---------------------------------------------------------------- pílulas */
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 20px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.pill--ok { background: var(--pos-bg); color: var(--pos); }
.pill--aviso { background: var(--warn-bg); color: var(--warn-strong); }
.pill--info { background: var(--grws-tint-azul); color: var(--c2); }
.pill--neutro { background: var(--track); color: var(--ink-muted); }
.pill--forte { background: var(--c1); color: #fff; }
html.dark .pill--info { background: rgba(63,146,244,.16); }
html.dark .pill--neutro { background: rgba(255,255,255,.08); }

.tag-metodo {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 5px; background: var(--grws-tint-azul); color: var(--c2);
}
html.dark .tag-metodo { background: rgba(63,146,244,.16); }

/* ---------------------------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px;
  border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  font-family: var(--grws-font-display); font-size: 11px; font-weight: 600;
  letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
  transition: filter .12s, background .12s;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primario { background: var(--c3); color: #fff; }
.btn--cta { background: var(--grws-grad-laranja); color: #fff; box-shadow: 0 4px 14px rgba(250,104,0,.22); }
.btn--secundario { background: var(--panel); color: var(--ink); border-color: var(--line-strong); }
.btn--secundario:hover { background: var(--panel-inset); }
.btn--fantasma { background: transparent; color: var(--ink-muted); border-color: transparent; }
.btn--fantasma:hover { background: var(--panel-inset); color: var(--ink); }
.btn--sm { height: 28px; padding: 0 10px; font-size: 10px; }
.btn--icone { width: 32px; height: 32px; padding: 0; justify-content: center; border-radius: 8px; }
.btn--icone .ico { width: 18px; height: 18px; }

/* --------------------------------------------------------------- formulário */
.campo { display: flex; flex-direction: column; gap: 4px; }
.campo > label { font-size: 11px; font-weight: 600; color: var(--ink-muted); }
.campo .ajuda { font-size: 10.5px; color: var(--ink-subtle); }
.inp, select.inp, textarea.inp {
  height: 34px; padding: 0 11px; width: 100%;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--panel); color: var(--ink);
  font-family: var(--grws-font-body); font-size: 12.5px;
}
textarea.inp { height: auto; padding: 8px 11px; resize: vertical; }
.inp:focus { border-color: var(--c3); box-shadow: 0 0 0 3px var(--crm-primary-soft); outline: none; }
.filtros {
  display: flex; gap: 9px; flex-wrap: wrap; align-items: flex-end;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 13px 16px; margin-bottom: 15px; box-shadow: var(--shadow-card);
}
.filtros .campo { min-width: 130px; }
.filtros .campo--largo { min-width: 230px; flex: 1; }

.aviso {
  border-radius: 10px; padding: 11px 14px; font-size: 12px; margin-bottom: 15px;
  display: flex; gap: 10px; align-items: flex-start; line-height: 1.55;
}
.aviso--info { background: var(--grws-tint-azul); color: var(--c1); }
.aviso--atencao { background: var(--warn-bg); color: var(--warn-strong); }
.aviso--ok { background: var(--pos-bg); color: var(--pos); }
html.dark .aviso--info { background: rgba(63,146,244,.14); color: var(--c6); }
.aviso > .ico { width: 17px; height: 17px; margin-top: 1px; }

/* ---------------------------------------------------------------- gráficos */
.gfx { position: relative; width: 100%; }
.gfx svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gfx .eixo { stroke: var(--line); stroke-width: 1; }
.gfx .grade-l { stroke: var(--line-soft); stroke-width: 1; stroke-dasharray: 3 4; }
.gfx .rotulo { fill: var(--ink-subtle); font-size: 10px; font-family: var(--grws-font-body); }
.gfx .linha { fill: none; stroke: var(--c3); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.gfx .linha--secundaria { stroke: var(--warn); stroke-dasharray: 4 3; }
.gfx .area { fill: url(#gradAzul); }
.gfx .barra { fill: var(--c3); }
.gfx .barra--erro { fill: var(--warn); }
.gfx .marcador { fill: var(--c3); stroke: var(--panel); stroke-width: 2; }
.gfx .faixa-hover { fill: transparent; }
.gfx .faixa-hover:hover { fill: var(--c3); fill-opacity: .07; }

.gfx-dica {
  position: absolute; pointer-events: none; z-index: 5; min-width: 120px;
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: 9px;
  box-shadow: var(--shadow-pop); padding: 9px 11px; font-size: 11.5px;
  opacity: 0; transition: opacity .1s;
}
.gfx-dica.visivel { opacity: 1; }
.gfx-dica__tit { font-weight: 700; margin-bottom: 5px; color: var(--ink); }
.gfx-dica__l { display: flex; justify-content: space-between; gap: 14px; color: var(--ink-muted); }
.gfx-dica__l b { color: var(--ink); font-variant-numeric: tabular-nums; }
.gfx-dica__sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }

.legenda { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--ink-muted); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

/* ---------------------------------------------- lista de barras (ranking) */
.barras { display: flex; flex-direction: column; gap: 11px; }
.barra-item { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; align-items: baseline; }
.barra-item__nome { font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.barra-item__val { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }
.barra-item__trilho { grid-column: 1 / -1; height: 6px; border-radius: 4px; background: var(--track); overflow: hidden; }
.barra-item__fill { height: 100%; border-radius: 4px; background: var(--c3); transition: width .3s; }
.barra-item__fill--aviso { background: var(--warn); }
.barra-item__meta { grid-column: 1 / -1; font-size: 10.5px; color: var(--ink-subtle); }

/* --------------------------------------------------------------- heatmap */
.heat { display: grid; grid-template-columns: 34px repeat(24, 1fr); gap: 2px; font-size: 9px; }
.heat__h { color: var(--ink-subtle); text-align: center; font-size: 8.5px; }
.heat__d { color: var(--ink-subtle); display: flex; align-items: center; }
.heat__c { aspect-ratio: 1; border-radius: 3px; background: var(--track); min-height: 15px; }
.heat__c[data-n="1"] { background: var(--c6); }
.heat__c[data-n="2"] { background: var(--c5); }
.heat__c[data-n="3"] { background: var(--c4); }
.heat__c[data-n="4"] { background: var(--c3); }
.heat__c[data-n="5"] { background: var(--c1); }

/* ------------------------------------------------------------- histograma */
.hist { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.hist__i { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 5px; height: 100%; }
.hist__b { width: 100%; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--c4), var(--c3)); min-height: 3px; }
.hist__i--lento .hist__b { background: linear-gradient(180deg, #FAA823, #FA6800); }
.hist__v { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hist__l { font-size: 9.5px; color: var(--ink-subtle); text-align: center; }

/* ----------------------------------------------------------------- donut */
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; flex: none; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 15; }
.donut-centro { text-align: center; }
.donut-centro__v { font-family: var(--grws-font-display); font-size: 21px; font-weight: 600; }
.donut-centro__l { font-size: 10px; color: var(--ink-subtle); text-transform: uppercase; letter-spacing: .1em; }
.donut-leg { flex: 1; min-width: 150px; display: flex; flex-direction: column; gap: 6px; }
.donut-leg__i { display: flex; align-items: center; gap: 8px; font-size: 11.5px; }
.donut-leg__sw { width: 9px; height: 9px; border-radius: 2px; flex: none; }
.donut-leg__n { color: var(--ink-muted); flex: 1; }
.donut-leg__v { font-weight: 600; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- paginação */
.paginacao { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line-soft); flex-wrap: wrap; }
.paginacao__info { font-size: 11.5px; color: var(--ink-subtle); }
.paginacao__nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.paginacao__pag { font-size: 11.5px; color: var(--ink-muted); padding: 0 6px; font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- lista chave/valor */
.dl { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 7px 18px; font-size: 12.5px; }
.dl dt { color: var(--ink-subtle); font-size: 11px; }
.dl dd { margin: 0; color: var(--ink); word-break: break-word; }
.bloco-codigo {
  background: var(--panel-inset); border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.5px;
  white-space: pre-wrap; word-break: break-word; max-height: 340px; overflow: auto; color: var(--ink-muted);
}

/* ---------------------------------------------------------------- login */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #041E63; }
.login__marca {
  background: linear-gradient(160deg, #082F97 0%, #041E63 62%, #031D61 100%);
  color: #fff; padding: 46px 54px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login__glow {
  position: absolute; top: -180px; right: -140px; width: 540px; height: 540px; border-radius: 50%;
  background: radial-gradient(circle, rgba(17,160,211,.26), transparent 65%); pointer-events: none;
}
.login__simbolo { position: absolute; bottom: -70px; left: -60px; width: 400px; opacity: .06; pointer-events: none; }
/* Só o conteúdo sobe acima dos decorativos. Um `> *` aqui anularia o absolute do glow e do símbolo (mesma
   especificidade, regra posterior vence) e os dois entrariam no fluxo, esticando a tela para ~1700px. */
.login__logo, .login__frase, .login__rodape { position: relative; z-index: 1; }
.login__logo img { width: 190px; }
.login__eyebrow {
  margin-top: 10px; font-family: var(--grws-font-display); font-size: 10.5px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: #8CCBFF;
  display: flex; align-items: center; gap: 9px;
}
.login__eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--grws-grad-laranja); }
.login__frase h1 { font-family: var(--grws-font-display); font-size: 33px; font-weight: 400; text-transform: uppercase; line-height: 1.2; }
.login__frase h1 b { font-weight: 800; }
.login__frase p { color: rgba(255,255,255,.7); font-size: 13px; max-width: 42ch; margin-top: 12px; line-height: 1.65; }
.login__rodape { font-size: 11px; color: rgba(255,255,255,.45); }
.login__acesso { background: var(--panel); display: grid; place-items: center; padding: 44px 38px; }
.login__card { width: 100%; max-width: 348px; }
.login__card h2 { font-family: var(--grws-font-display); font-size: 29px; font-weight: 400; text-transform: uppercase; color: var(--ink); }
.login__card h2 b { font-weight: 800; }
.login__card .sub { color: var(--ink-subtle); font-size: 12.5px; margin: 7px 0 24px; line-height: 1.6; }
.login__card .campo { margin-bottom: 14px; }
.login__card .inp { height: 44px; border-radius: 10px; font-size: 13px; }
.login__btn {
  width: 100%; height: 48px; margin-top: 6px; border: none; border-radius: 11px; cursor: pointer;
  background: linear-gradient(120deg, #0E4FB0, #116CD3); color: #fff;
  font-family: var(--grws-font-display); font-size: 12px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 8px 22px rgba(17,108,211,.26);
}
.login__btn:hover { filter: brightness(1.08); }
.login__erro {
  background: var(--warn-bg); color: var(--warn-strong); border-radius: 10px;
  padding: 10px 13px; font-size: 12px; margin-bottom: 16px; line-height: 1.5;
}
.login__nota { margin-top: 22px; font-size: 11px; color: var(--ink-subtle); line-height: 1.6; }
@media (max-width: 920px) {
  .login { grid-template-columns: 1fr; }
  .login__marca { padding: 32px 26px; gap: 24px; }
  .login__frase h1 { font-size: 26px; }
}

/* --------------------------------------------------------------- utilitários */
.mut { color: var(--ink-subtle); }
.mut-2 { color: var(--ink-muted); }
.peq { font-size: 11px; }
.dir { text-align: right; }
.nowrap { white-space: nowrap; }
.trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 34ch; display: inline-block; vertical-align: bottom; }
.linha-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.espaco { margin-left: auto; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-2 { margin-bottom: 16px; }

/* ------------------------------------------------------------- responsivo */
@media (max-width: 980px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; min-width: 0; height: auto; position: static; flex-direction: column; }
  .nav { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px; }
  .nav__grupo { margin: 0; display: flex; gap: 6px; }
  .nav__label { display: none; }
  .nav__item { white-space: nowrap; }
  .sidebar__rodape { display: none; }
  .conteudo { padding: 16px 14px 44px; }
  .topbar { padding: 0 14px; }
}
@media print {
  .sidebar, .topbar, .pagina__acoes, .paginacao__nav { display: none; }
  body { background: #fff; }
  .painel { box-shadow: none; break-inside: avoid; }
}
