/* COOEE presentation, requested by the owner. Workspace Pro verified on 2026-09-25.
   The native Hide Lovable badge preference is separate; no billing, permissions,
   analytics, auth, iframe or provider scripts are removed by this stylesheet. */
#lovable-badge {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Keep complete navigation labels readable at narrow desktop widths. */
[data-state="expanded"] > .cooee-sidebar [data-sidebar="menu-button"] {
  height: auto;
  min-height: 2.75rem;
  padding-block: 0.625rem;
}
[data-state="expanded"] > .cooee-sidebar [data-sidebar="menu-button"] > span:last-child {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* The journal save controls belong to document flow, not over editable fields. */
.cooee-workspace #resgates-da-viagem + .sticky.bottom-0 {
  position: static;
  background: hsl(var(--background));
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
}
.cooee-workspace :is(#momentos-da-viagem, #metas-da-viagem, #resgates-da-viagem) {
  scroll-margin-top: 6.5rem;
}
.cooee-workspace :is(input, textarea, select, button, a) {
  scroll-margin-top: 6.5rem;
  scroll-margin-bottom: 1.5rem;
}

@media (max-width: 767px) {
  [data-mobile="true"] [data-sidebar="menu-button"] {
    height: auto;
    min-height: 2.75rem;
    padding-block: 0.625rem;
  }
  [data-mobile="true"] [data-sidebar="menu-button"] > span:last-child {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    line-height: 1.4;
  }
}

/* Long source plan names remain usable without widening the cost workspace. */
section[aria-labelledby="mileage-cost-heading"] button {
  white-space: normal;
  overflow-wrap: anywhere;
  height: auto;
  min-height: 2.5rem;
  max-width: 100%;
  padding-block: 0.5rem;
}
section[aria-labelledby="mileage-cost-heading"] :is(input, select) {
  min-width: 0;
}
