/* Central Gestão — cabeçalho de TODAS as telas no padrão de Clientes (v117). Só aparência.
   Telas que já têm a barra clássica (cg-customer-standard) ou cabeçalho próprio padronizado ficam como estão. */
body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard):not(.cg-product-page-header) {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 12px !important; padding: 13px 16px !important;
  border: 1px solid #c8d6e4 !important; border-radius: 8px !important;
  background: linear-gradient(180deg, #f4f8fc, #e8f0f8) !important; box-shadow: none !important;
  box-sizing: border-box; min-width: 0;
}
body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard) :is(h1, h2, .page-title) {
  font-size: 18px !important; font-weight: 750 !important; color: #243c5c !important;
  margin: 0 !important; letter-spacing: 0 !important; line-height: 1.25 !important;
}
body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard) :is(p, .page-subtitle) {
  font-size: 12px !important; line-height: 1.3 !important; margin: 2px 0 0 !important; color: #61758b !important;
}
/* Botões do cabeçalho com o mesmo desenho dos botões da barra de Clientes. */
body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard):not(.cg-product-page-header) :is(button, a.btn, .btn):not(.cg-cust-action):not([role=tab]) {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  height: 36px; min-height: 36px; padding: 0 15px; border-radius: 5px; box-shadow: none;
  font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; text-decoration: none;
  background: linear-gradient(#fff, #e0ebf5); color: #314b68; border: 1px solid #bdccdc;
}
body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard):not(.cg-product-page-header) :is(button, a.btn, .btn):not(.cg-cust-action):not([role=tab]):hover {
  background: linear-gradient(#fff, #d4e3f1); border-color: #8fadc9;
}
/* O botão principal (Novo/+) mantém destaque, como o "+ Cadastrar" de Clientes. */
body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard):not(.cg-product-page-header) .btn-primary:not(.cg-cust-action) {
  color: #125a43; border-color: #a9d2bf; background: linear-gradient(#fbfffd, #dcefe5);
}
body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard) :is(button, .btn):disabled { opacity: .55; cursor: not-allowed; }
body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard) > div:last-child:not(:first-child) {
  display: flex; flex-wrap: wrap; gap: 5px; align-items: center;
}
@media (max-width: 680px) {
  body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard):not(.cg-product-page-header) { padding: 10px 11px !important; }
  body:not(.pos-fullscreen-active) #page-content .page-header:not(.cg-customer-standard) :is(button, a.btn, .btn):not(.cg-cust-action) { padding: 0 10px; font-size: 12px; }
}

/* Fluxo de Caixa: filtros num cartão, como o filtro de Clientes; rótulos acima dos campos. */
#page-content #cf-filter {
  padding: 12px 16px !important; margin: 0 0 12px !important; background: #fff;
  border: 1px solid #c8d6e4; border-radius: 8px; font-size: 13px; gap: 10px 14px !important;
}
#page-content #cf-filter > label:not(:has(input[type=checkbox])) {
  display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: 700; color: #304b68;
}
#page-content #cf-filter > label:has(input[type=checkbox]) { display: inline-flex; align-items: center; gap: 6px; height: 36px; font-size: 13px; color: #304b68; }
#page-content #cf-filter :is(input:not([type=checkbox]), select) { height: 36px; font-size: 13px; }
#page-content #cf-filter :is(button, .btn) { height: 36px; padding: 0 16px; font-size: 13px; }
#page-content #cf-filter ~ p, #page-content #cf-filter + * + p { font-size: 12px; color: #4b6079; margin: 0 0 10px; }

/* v124 — textos explicativos soltos dentro dos cartões no mesmo tamanho das listas. */
body:not(.pos-fullscreen-active) #page-content .card > .card-body > p:not([class]):not([style*="font-size"]) { font-size: 13px; line-height: 1.45; }
