/* menuchef-admin/estilo/caixa.css — a aba Caixa e anuais (R-RAPIDO). Cores só dos papéis do base.css (que já trocam no
   escuro); posição e altura das colunas por CSSOM (--z, --b, --h), como as barras. */
.cx-seguro { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.cx-cresce { font-size: var(--t-h2); font-weight: 700; }
.cx-grafico { display: grid; gap: 8px; min-width: 0; margin-top: 8px; }
.cx-corpo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: stretch; }
.cx-eixo { display: flex; flex-direction: column; justify-content: space-between; font-size: 0.75rem; color: var(--texto-2);
  text-align: right; white-space: nowrap; }
.cx-area { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 180px;
  border-bottom: 1px solid var(--linha); min-width: 0; }
.cx-zero { position: absolute; left: 0; right: 0; bottom: calc(var(--z, 0) * 1%); border-top: 1px solid var(--texto-2); z-index: 1; }
.cx-grupo { position: relative; display: grid; min-width: 0; }
.cx-barras { position: relative; display: flex; gap: 2px; height: 100%; }
.cx-coluna { position: relative; flex: 1 1 0; min-width: 0; align-self: auto; margin-top: auto; }
.cx-area:not(.cx-pilha) .cx-coluna { position: absolute; bottom: calc(var(--b, 0) * 1%); height: calc(var(--h, 0) * 1%); min-height: 0; }
.cx-area:not(.cx-pilha) .cx-barras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.cx-area:not(.cx-pilha) .cx-barras > .cx-coluna:nth-child(1) { left: 0; width: calc((100% - 4px) / 3); }
.cx-area:not(.cx-pilha) .cx-barras > .cx-coluna:nth-child(2) { left: calc((100% - 4px) / 3 + 2px); width: calc((100% - 4px) / 3); }
.cx-area:not(.cx-pilha) .cx-barras > .cx-coluna:nth-child(3) { left: calc((100% - 4px) / 3 * 2 + 4px); width: calc((100% - 4px) / 3); }
.cx-coluna:hover, .cx-parte:hover { outline: 2px solid var(--contorno); outline-offset: 1px; z-index: 2; }
.cx-pilha .cx-grupo { grid-template-rows: auto 1fr; align-items: end; }
.cx-empilhada { flex-direction: column-reverse; height: calc(var(--h, 0) * 1%); gap: 2px; align-self: end; }
.cx-parte { display: block; height: calc(var(--h, 0) * 1%); min-height: 3px; border-radius: 2px; }
.cx-parte.cx-desligada { background-image: repeating-linear-gradient(45deg, transparent 0 3px, color-mix(in srgb, var(--superficie) 55%, transparent) 3px 6px); }
.cx-total { text-align: center; font-size: var(--t-detalhe); }
.cx-rotulos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-left: var(--cx-eixo, 0);
  font-size: 0.75rem; color: var(--texto-2); text-align: center; }
.cx-rotulos > span { overflow-wrap: anywhere; }
[data-bloco="repasse"] .tabela .selo { white-space: nowrap; }
@media (max-width: 600px) {
  .cx-area, .cx-rotulos { gap: 2px; }
  .cx-rotulos { font-size: 0.625rem; }
  .cx-area { height: 150px; }
  .cx-eixo { font-size: 0.625rem; }
}
