*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box;
  /* 1 */
  border-width: 0;
  /* 2 */
  border-style: solid;
  /* 2 */
  border-color: #e5e7eb;
  /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5;
  /* 1 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
  -moz-tab-size: 4;
  /* 3 */
  -o-tab-size: 4;
     tab-size: 4;
  /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  /* 4 */
  font-feature-settings: normal;
  /* 5 */
  font-variation-settings: normal;
  /* 6 */
  -webkit-tap-highlight-color: transparent;
  /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0;
  /* 1 */
  line-height: inherit;
  /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0;
  /* 1 */
  color: inherit;
  /* 2 */
  border-top-width: 1px;
  /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  /* 1 */
  font-feature-settings: normal;
  /* 2 */
  font-variation-settings: normal;
  /* 3 */
  font-size: 1em;
  /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0;
  /* 1 */
  border-color: inherit;
  /* 2 */
  border-collapse: collapse;
  /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  /* 1 */
  font-feature-settings: inherit;
  /* 1 */
  font-variation-settings: inherit;
  /* 1 */
  font-size: 100%;
  /* 1 */
  font-weight: inherit;
  /* 1 */
  line-height: inherit;
  /* 1 */
  letter-spacing: inherit;
  /* 1 */
  color: inherit;
  /* 1 */
  margin: 0;
  /* 2 */
  padding: 0;
  /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button;
  /* 1 */
  background-color: transparent;
  /* 2 */
  background-image: none;
  /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield;
  /* 1 */
  outline-offset: -2px;
  /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button;
  /* 1 */
  font: inherit;
  /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1;
  /* 1 */
  color: #9ca3af;
  /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  /* 1 */
  vertical-align: middle;
  /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.\!container {
  width: 100% !important;
}

.container {
  width: 100%;
}

@media (min-width: 640px) {
  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}

@media (min-width: 1536px) {
  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}

.visible {
  visibility: visible;
}

.collapse {
  visibility: collapse;
}

.static {
  position: static;
}

.fixed {
  position: fixed;
}

.absolute {
  position: absolute;
}

.relative {
  position: relative;
}

.sticky {
  position: sticky;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-0 {
  margin-bottom: 0px;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-1 {
  margin-top: 0.25rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-3 {
  margin-top: 0.75rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.table {
  display: table;
}

.grid {
  display: grid;
}

.contents {
  display: contents;
}

.hidden {
  display: none;
}

.h-7 {
  height: 1.75rem;
}

.h-full {
  height: 100%;
}

.w-full {
  width: 100%;
}

.flex-shrink {
  flex-shrink: 1;
}

.grow {
  flex-grow: 1;
}

.border-collapse {
  border-collapse: collapse;
}

.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.resize {
  resize: both;
}

.flex-wrap {
  flex-wrap: wrap;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.gap-16 {
  gap: 4rem;
}

.rounded {
  border-radius: 0.25rem;
}

.border {
  border-width: 1px;
}

.border-t {
  border-top-width: 1px;
}

.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}

.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 252 231 / var(--tw-bg-opacity, 1));
}

.bg-slate-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(226 232 240 / var(--tw-bg-opacity, 1));
}

.bg-slate-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}

.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.pb-4 {
  padding-bottom: 1rem;
}

.pt-4 {
  padding-top: 1rem;
}

.pt-6 {
  padding-top: 1.5rem;
}

.text-center {
  text-align: center;
}

.align-middle {
  vertical-align: middle;
}

.font-sans {
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-\[11px\] {
  font-size: 11px;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold {
  font-weight: 700;
}

.font-extrabold {
  font-weight: 800;
}

.font-medium {
  font-weight: 500;
}

.font-semibold {
  font-weight: 600;
}

.uppercase {
  text-transform: uppercase;
}

.capitalize {
  text-transform: capitalize;
}

.italic {
  font-style: italic;
}

.leading-5 {
  line-height: 1.25rem;
}

.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}

.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(21 128 61 / var(--tw-text-opacity, 1));
}

.text-slate-500 {
  --tw-text-opacity: 1;
  color: rgb(100 116 139 / var(--tw-text-opacity, 1));
}

.text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}

.underline {
  text-decoration-line: underline;
}

.outline {
  outline-style: solid;
}

.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.grayscale {
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.backdrop-filter {
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}

.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

:root {
  /* Paleta de Cores - Manguezal (Modernizada SaaS) */
  --primary-color: #059669;
  /* Emerald 600 - Verde mais vibrante e moderno */
  --secondary-color: #2563eb;
  /* Blue 600 - Azul Royal moderno */
  --accent-color: #10b981;
  /* Emerald 500 - Detalhes vivos */
  --bg-color: #f3f4f6;
  /* Gray 100 - Fundo muito suave */
  --text-color: #1f2937;
  /* Gray 800 - Texto com contraste suave */
  --card-bg: #ffffff;
  /* Espaçamento e Bordas */
  --border-radius: 12px;
  --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: -moz-fit-content;
  min-width: fit-content;
  /* Garante que o body expanda com o conteúdo */
}

/* Header Styles - Refatorado para alinhamento e proporção */

header {
  background-color: var(--primary-color);
  color: white;
  /* padding removido para evitar duplo espaçamento - controlado pelo container */
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  /* Sombra mais difusa */
  height: 90px;
  /* Levemente maior para respiro */
  display: flex;
  /* Permite alinhamento interno direto, se necessário */
  align-items: center;
  justify-content: center;
  z-index: 100;
  position: relative;
  width: 100%;
  min-width: 100%;
  /* Garante que o fundo cubra a viewport e scroll horizontal */
  box-sizing: border-box;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* Centralização vertical forçada */
  width: 100%;
  max-width: none;
  /* Remove limite */
  margin: 0;
  /* Sem centralização com largura fixa */
  height: 100%;
  gap: 40px;
  /* Garante espaçamento mínimo entre título e menu */
  padding: 0 4rem;
  /* Padding mantido no container interno */
}

.brand-wrapper {
  display: flex;
  align-items: center;
  /* Centralização vertical forçada */
  gap: 20px;
  /* Ajustado para melhor proporção */
}

.header-logo {
  height: 55px;
  /* Ajuste sutil para harmonia */
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.header-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: white;
  line-height: 1;
  /* Line-height neutro para evitar deslocamento */
  white-space: nowrap;
  letter-spacing: -0.01em;
  margin: 0;
  /* Removido margin-top para alinhamento perfeito */
}

.main-nav {
  display: flex;
  align-items: center;
  /* Centralização vertical forçada */
  gap: 32px;
  margin: 0;
  padding: 0;
  margin-top: 5px;
  /* Ajuste fino para alinhar baseline do menu com o título */
}

.mobile-nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

/* Upload Minimalista */

.upload-area {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.upload-area:hover {
  border-color: var(--primary-color);
  background-color: #f0fdf4;
}

.upload-area input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-icon {
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.upload-text {
  color: #64748b;
  font-weight: 500;
}

.upload-subtext {
  color: #94a3b8;
  font-size: 0.85rem;
}

.nav-link {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  /* Garante mesma altura do botão logout */
  white-space: nowrap;
}

.nav-link:hover {
  color: white;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.nav-link.logout {
  color: #fed7d7;
  /* Vermelho claro suave */
  margin-left: 20px;
  border: 1px solid rgba(255,255,255,0.2);
}

.nav-link.logout:hover {
  background-color: #c53030;
  border-color: #c53030;
  color: white;
}

header h1 {
  margin: 0;
  font-size: 1.5rem;
}

main {
  flex: 1;
  padding: 0;
  /* Remove padding padrão do main, controlado pelo container interno */
  width: 100%;
}

/* Footer */

footer {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem 0;
  color: #64748b;
  background: transparent;
}

footer p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
}

.dashboard-container {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem) 2.5rem;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.admin-page-shell,
.container.fade-in,
.main-content {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 2rem clamp(1rem, 3vw, 2rem) 2.5rem;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}

.page-title,
.header-flex h1,
.header-flex h2,
.page-header h1,
.page-header h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  color: #1f2937;
}

.page-subtitle,
.page-header .subtitle,
.header-flex .subtitle {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

.header-actions {
  display: flex;
  gap: 12px;
  /* Espaçamento ajustado para 12px */
  align-items: center;
}

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 1.5rem;
  /* Padding padrão equilibrado */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  border: 1px solid #edf2f7;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
}

/* Botões Estilizados */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
  /* Padding horizontal ajustado */
  font-size: 0.9rem;
  font-weight: 600;
  /* Mais peso */
  text-decoration: none;
  border-radius: 8px;
  /* Combinar com inputs */
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
  height: 42px;
  /* Altura padronizada com filtros */
  box-sizing: border-box;
  letter-spacing: 0.025em;
}

/* Utilitários de Alinhamento e Cores de Botão (Mantendo compatibilidade) */

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: #047857;
  /* Emerald 700 */
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: white;
  color: var(--text-color);
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  color: #111827;
}

.btn-outline-primary {
  background-color: transparent;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  box-shadow: none;
}

.btn-outline-primary:hover {
  background-color: #ecfdf5;
  /* Verde muito claro */
  color: #047857;
  border-color: #047857;
}

.btn-icon-outline {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  width: 36px;
  /* Botões de tabela menores */
  height: 36px;
  padding: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-outline:hover {
  background-color: #f3f4f6;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Filtros */

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  /* Aumentado gap */
  background-color: #f9fafb;
  /* Cinza bem claro e moderno */
  padding: 1.5rem 2rem;
  border-radius: 12px;
  /* Rounded-lg */
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  /* Sombra sutil */
  margin-bottom: 40px;
  /* Aumentado margin bottom */
  align-items: flex-end;
  border: 1px solid #edf2f7;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #718096;
  /* Cinza médio moderno */
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

/* Selects Customizados */

.filter-input, .form-control {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  /* Remove estilo padrão */
  background-color: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  /* Cantos arredondados */
  padding: 0.6rem 1rem;
  /* Padding base */
  font-size: 0.95rem;
  color: #4a5568;
  height: 42px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: all 0.2s;
  box-sizing: border-box;
  /* Garante tamanho correto */
}

/* Estilos específicos para Selects (Seta e Padding) */

select.filter-input, select.form-control {
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a0aec0'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

input.filter-input, input.form-control {
  cursor: text;
}

.filter-input:focus, .form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.filter-btn {
  height: 42px;
  padding: 0 1.5rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(46, 139, 87, 0.2);
  letter-spacing: 0.025em;
}

.filter-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(46, 139, 87, 0.25);
}

/* Cards de Impacto Redesenhados */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
  /* Mais respiro abaixo dos cards */
}

/* Tablet e Desktop: Forçar 3 colunas */

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Estilos de KPI cards */

.card-kpi {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centraliza verticalmente se sobrar espaço */
  height: auto;
  /* Altura adaptável ao conteúdo */
  min-height: 9.5rem;
  /* Garante consistência visual entre abas (Moeda vs Plante) */
  padding: 1rem 1rem 2.25rem 1rem;
  /* Padding inferior aumentado para acomodar referência absoluta */
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.kpi-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.25rem 0;
  /* Margem reduzida drasticamente */
  text-align: center;
  height: auto;
  /* Remove altura fixa */
  min-height: 0;
  display: block;
  /* Remove flex desnecessário */
  line-height: 1.2;
}

.kpi-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin-bottom: 0;
  /* Margem removida, controlado pelo gap/padding do pai se necessário */
  gap: 0.5rem;
  /* Respiro aumentado entre valor e unidade */
}

.kpi-value {
  font-size: 2.75rem;
  /* Mantém fonte grande legível */
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0;
  /* Remove margem inferior extra */
  color: var(--primary-color);
  line-height: 1;
  /* Altura de linha ajustada para evitar cortes */
}

.kpi-unit {
  font-size: 0.85rem;
  /* Tamanho equilibrado */
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 0;
}

.kpi-reference {
  position: absolute;
  bottom: 0.75rem;
  left: 0;
  width: 100%;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Ajustes de Opacidade para Filtro */

.dimmed {
  opacity: 0.4;
  filter: grayscale(100%);
}

/* Tabelas Modernas (Clean UI) */

.table-clean, table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 0;
}

th {
  text-align: left;
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  color: #64748b;
  /* Slate 500 */
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

td {
  padding: 1.25rem 1.5rem;
  /* Mais respiro */
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #334155;
  /* Slate 700 */
  font-size: 0.9rem;
  transition: background-color 0.2s ease;
}

/* Zebra Striping */

tbody tr:nth-child(even) td {
  background-color: #fafafa;
  /* Cinza muito sutil */
}

/* Hover Effect */

tbody tr:hover td {
  background-color: #f0fdf4 !important;
  /* Verde muito claro ao passar o mouse */
  color: var(--primary-color);
}

tr:last-child td {
  border-bottom: none;
}

/* Botões de Ação na Tabela */

.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  margin: 0 4px;
  cursor: pointer;
}

.btn-edit {
  color: #0ea5e9;
  /* Sky 500 */
  background-color: #f0f9ff;
  /* Sky 50 */
  border-color: #e0f2fe;
}

.btn-edit:hover {
  background-color: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

.btn-delete {
  color: #ef4444;
  /* Red 500 */
  background-color: #fef2f2;
  /* Red 50 */
  border-color: #fee2e2;
}

.btn-delete:hover {
  background-color: #ef4444;
  color: white;
  border-color: #ef4444;
}

/* Tooltip simples para evidências */

.tooltip-container {
  display: inline-flex;
  position: relative;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  color: #856404;
}

@media (max-width: 768px) {
  .dashboard-container,
    .admin-page-shell,
    .container.fade-in,
    .main-content {
    padding: 1.5rem 1rem 2rem;
  }

  .header-flex,
    .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 991.98px) {
  header {
    height: auto;
    min-width: 0;
  }

  .header-container {
    padding: 1rem 1.25rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .brand-wrapper {
    width: 100%;
    min-width: 0;
  }

  .header-title {
    white-space: normal;
    line-height: 1.2;
  }

  .main-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0;
  }
}

@media (max-width: 767.98px) {
  html,
    body {
    overflow-x: hidden;
  }

  body {
    min-width: 0;
    width: 100%;
  }

  header {
    height: auto;
    min-width: 0;
    overflow: visible;
  }

  .header-container {
    position: relative;
    padding: 0.625rem 0.875rem;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: nowrap;
    min-width: 0;
  }

  .brand-wrapper {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    gap: 0.625rem;
    overflow: hidden;
    max-width: calc(100% - 50px);
  }

  .brand-wrapper > a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }

  .header-brand-link {
    min-width: 0;
    max-width: 100%;
  }

  .header-logo {
    height: 32px;
    flex: 0 0 auto;
  }

  .header-title {
    font-size: 0.78rem;
    font-weight: 600;
    max-width: 100%;
    white-space: normal;
    line-height: 1.1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
  }

  .header-title-full {
    display: none;
  }

  .header-title-short {
    display: inline !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    width: auto;
    margin-top: 0;
    padding: 0.5rem;
    border-radius: 14px;
    background: #047857;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 200;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 0.875rem;
  }

  .main-nav .nav-link.logout {
    margin-left: 0;
  }

  main {
    padding-top: 0.25rem;
  }

  .dashboard-container,
    .admin-page-shell,
    .container.fade-in,
    .main-content {
    padding: 1rem 0.75rem 1.75rem;
    min-width: 0;
  }

  .header-flex,
    .page-header {
    gap: 0.875rem;
    min-width: 0;
    margin-bottom: 1rem;
  }

  .header-flex > div,
    .page-header > div {
    min-width: 0;
    width: 100%;
  }

  .page-title,
    .header-flex h1,
    .header-flex h2,
    .page-header h1,
    .page-header h2 {
    max-width: 100%;
    font-size: 1.42rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .header-flex > .btn,
    .page-header > .btn,
    .header-actions,
    .page-header .header-actions {
    width: 100%;
  }

  .header-actions {
    flex-wrap: wrap;
  }

  .header-actions > .btn,
    .header-actions > a,
    .page-header .header-actions > .btn,
    .page-header .header-actions > a {
    width: 100%;
  }

  .filters-bar {
    padding: 0.875rem;
    gap: 0.875rem;
  }

  .filters-bar .filter-group {
    width: 100%;
  }

  .filters-bar .filter-group > div {
    width: 100%;
    flex-wrap: wrap;
  }

  .filters-bar .filter-input,
    .filters-bar .form-control,
    .filters-bar .btn {
    width: 100% !important;
    min-width: 0 !important;
  }

  .filters-bar .btn {
    justify-content: center;
  }

  .dashboard-page {
    overflow-x: hidden;
    min-width: 0;
  }

  .dashboard-page-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    align-items: stretch;
  }

  .dashboard-page-header > div:first-child {
    min-width: 0;
  }

  .dashboard-greeting {
    font-size: 0.95rem !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  #dashboard-title {
    font-size: 1.28rem !important;
    line-height: 1.15;
    margin: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .dashboard-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .dashboard-header-actions .btn,
    .dashboard-header-actions > a {
    height: 38px;
    min-width: 0;
    width: 100%;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.85rem;
    justify-content: center;
  }

  .dashboard-header-actions > a:last-child {
    grid-column: 1 / -1;
  }

  .dashboard-filters {
    padding: 0.875rem;
    gap: 0.875rem;
    margin-bottom: 1.25rem;
    align-items: stretch;
  }

  .dashboard-filters .filter-group {
    gap: 0.35rem;
    min-width: 0;
  }

  .dashboard-filters .filter-group label {
    margin-bottom: 0;
  }

  .dashboard-filters .dashboard-filter-pair {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 84px;
    width: 100%;
  }

  .dashboard-filters .filter-group > div[style*="display: flex"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 84px;
    gap: 0.5rem !important;
    width: 100%;
  }

  .dashboard-filters #multiselect-trigger,
    .dashboard-filters #multiselect-options,
    .dashboard-filters [style*="height: 38px"],
    .dashboard-filters [style*="min-width: 220px"] {
    width: 100% !important;
    min-width: 0 !important;
  }

  .dashboard-filters .filter-input,
    .dashboard-filters .form-control {
    height: 40px;
    font-size: 0.92rem;
  }

  .dashboard-filters [style*="min-width: 110px"],
    .dashboard-filters [style*="min-width: 90px"],
    .dashboard-filters [style*="min-width: 220px"] {
    min-width: 0 !important;
    width: 100% !important;
  }

  .dashboard-filters .filter-group[style*="margin-left: auto"] {
    margin-left: 0 !important;
  }

  .dashboard-filters .filter-group:last-child {
    width: 100%;
  }

  .dashboard-tabs {
    gap: 0.35rem !important;
    margin-bottom: 1.25rem !important;
    padding-bottom: 0.15rem;
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
  }

  .dashboard-tabs::-webkit-scrollbar {
    display: none;
  }

  .dashboard-tabs .tab-btn {
    flex: 0 0 auto;
    padding: 0.65rem 0.85rem !important;
    font-size: 0.92rem !important;
    white-space: nowrap;
  }

  .cards-grid {
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    grid-template-columns: 1fr !important;
  }

  .cards-grid > * {
    min-width: 0;
  }

  .card.card-kpi,
    .card-kpi {
    min-height: 0 !important;
    height: auto !important;
    padding: 0.625rem 0.7rem 0.75rem;
    border-radius: 10px;
  }

  .kpi-title {
    font-size: 0.68rem;
    margin-bottom: 0.15rem;
    line-height: 1.25;
  }

  .kpi-content {
    gap: 0.25rem;
  }

  .kpi-value {
    font-size: 1.55rem;
    line-height: 1;
  }

  .kpi-unit {
    font-size: 0.7rem;
  }

  .kpi-reference {
    position: static;
    width: auto;
    margin-top: 0.25rem;
    font-size: 0.64rem;
  }

  .reports-page .reports-filters-row {
    flex-wrap: wrap !important;
  }

  .reports-page .reports-filters-row > .filter-group {
    flex: 1 1 100% !important;
  }

  .reports-page .reports-actions-cell {
    min-width: 180px;
  }

  .users-page .users-form-grid {
    grid-template-columns: 1fr !important;
  }

  .users-page .users-submit-btn {
    width: 100%;
  }

  .users-page #sponsor_access_hint {
    position: static !important;
    width: auto !important;
    margin-top: 0.5rem;
  }

  .table-responsive,
    .notas-page .table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-responsive > table,
    .notas-page .data-table {
    min-width: 640px;
  }

  .notas-page .filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .notas-page .filter-row > .filter-group,
    .notas-page .filter-row > button {
    width: 100%;
  }

  .notas-page .filter-row > button {
    margin-left: 0 !important;
  }

  .notas-page .form-row-top {
    grid-template-columns: 1fr !important;
  }

  .notas-page .form-row-top .field {
    min-width: 0;
  }

  .notas-page .field.action {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  .notas-page .field.action .btn {
    width: 100%;
  }
}

/* Layout global do topo alinhado com o conteudo das paginas */
:root {
  --layout-max-width: 1280px;
  --layout-gutter: clamp(1rem, 3vw, 2rem);
}

.header-container {
  width: min(100%, var(--layout-max-width));
  margin: 0 auto;
  padding: 0 var(--layout-gutter);
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
}

.brand-wrapper {
  min-width: 0;
  flex: 1 1 auto;
}

.header-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
  flex: 1 1 auto;
  overflow: hidden;
}

.header-logo {
  height: 42px;
}

.header-title {
  display: block;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(0.88rem, 0.92vw, 1.08rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-title-full,
.header-title-short {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-title-short {
  display: none;
}

.main-nav {
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: clamp(0.2rem, 0.45vw, 0.45rem);
  min-width: 0;
  margin-top: 0;
}

.nav-link,
.nav-dropdown-trigger {
  font-size: 0.82rem;
  padding: 0.4rem 0.5rem;
}

.nav-link.logout {
  margin-left: 0.25rem;
}

.dashboard-container,
.admin-page-shell,
.container.fade-in,
.main-content {
  width: min(100%, var(--layout-max-width));
  padding-left: var(--layout-gutter);
  padding-right: var(--layout-gutter);
}

@media (max-width: 1200px) {
  .header-title {
    font-size: 0.9rem;
  }

  .header-title-full {
    display: none;
  }

  .header-title-short {
    display: block;
  }

  .nav-link,
  .nav-dropdown-trigger {
    font-size: 0.78rem;
    padding: 0.38rem 0.45rem;
  }
}

@media (max-width: 991.98px) {
  .main-nav {
    justify-content: flex-start;
  }
}
