/* ╔══════════════════════════════════════════════════════╗
 * ║ topGradientBar.css — Barra superior em degradê       ║
 * ║ CONSART ERP — Fixa abaixo do menu, full width        ║
 * ╚══════════════════════════════════════════════════════╝ */


/* =========================================================
   ⬤ BARRA EXTERNA — FULL WIDTH + COLAGEM ZERO PIXEL
   ========================================================= */
.c-page-bar {
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--c-primary-soft-start, #e0f2ff),
    var(--c-primary-soft-mid,   #dde9ff),
    var(--c-primary-soft-end,   #f5f7ff)
  );
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  position: relative;
  z-index: 10;

  /* 🔥 fix: cola EXACTAMENTE no header */
  margin-top: -2px !important;
  text-align: left !important; /* nada centraliza texto aqui */
}

/* Quando o header estiver dentro de container estreito */
.c-page-bar.c-page-bar--full-bleed {
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
}

/* =========================================================
   ⬤ CONTEÚDO INTERNO (SEM CENTRALIZAR)
   ========================================================= */
.c-page-bar__inner {
  width: 100%;
  max-width: none;          /* 👈 remove limite que centralizava */
  margin: 0;                /* 👈 sem margin auto */

  padding: 10px 32px 12px;  /* respiro lateral */

  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start !important;   /* 👈🔥 obrigatoriamente à ESQUERDA */
  gap: 16px;

  box-sizing: border-box;
  text-align: left !important;
}

/* =========================================================
   ⬤ PILL (modelo da imagem)
   ========================================================= */
.c-page-bar__pill {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;   /* texto começa à esquerda */

  padding: 8px 26px;
  border-radius: 999px;

  background: linear-gradient(135deg, #e4efff, #f2f6fc);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);

  text-align: left;
  margin-left: 0 !important;     /* garante 0 de deslocamento */
}

.c-page-bar__pill-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4b5563;
}

/* Subtítulo logo abaixo do pill */
.c-page-bar__subtitle {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
}

/* =========================================================
   ⬤ ÁREA DIREITA (tag / badge opcional)
   ========================================================= */
.c-page-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c-page-bar__tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.75rem;
  font-weight: 500;
  color: #1e293b;
}

/* =========================================================
   ⬤ RESPONSIVO
   ========================================================= */
@media (max-width: 768px) {
  .c-page-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .c-page-bar__right {
    align-self: flex-start;
  }
}

/* =========================================================
   ⬤ COLAGEM UNIVERSAL AO MENU SUPERIOR
   ========================================================= */
.app-header,
header,
.topbar,
.menu-superior {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.app-header + .c-page-bar,
header + .c-page-bar,
.topbar + .c-page-bar,
.menu-superior + .c-page-bar {
  margin-top: -2px !important;  /* 🔥 FIX UNIVERSAL */
}
