@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

@font-face {
  font-family: "Fontuna";
  src: local("Fontuna"), local("Fontuna Regular"),
    url("../fonts/Fontuna-Regular.woff2") format("woff2"),
    url("../fonts/Fontuna-Regular.woff") format("woff"),
    url("../fonts/Fontuna-Regular.ttf") format("truetype");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fontuna";
  src: local("Fontuna Bold"),
    url("../fonts/Fontuna-Bold.woff2") format("woff2"),
    url("../fonts/Fontuna-Bold.woff") format("woff"),
    url("../fonts/Fontuna-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-primary: #1a5e20;
  --green-accent: #00a651;
  --green-deep: #0f3d16;
  --grey-text: #6d6e71;
  --grey-muted: #9a9b9e;
  --grey-border: #d8d9db;
  --bg: #f5f5f5;
  --bg-elevated: #ffffff;
  --shadow: 0 12px 40px rgba(26, 94, 32, 0.08);
  --shadow-hover: 0 18px 48px rgba(26, 94, 32, 0.14);
  --radius: 18px;
  --font-display: "Fontuna", "Josefin Sans", sans-serif;
  --font-body: "Josefin Sans", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--grey-text);
  background-color: var(--bg);
  background-image:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='104' viewBox='0 0 120 104'%3E%3Cg fill='none' stroke='%23c9cbcb' stroke-opacity='0.35' stroke-width='1'%3E%3Cpath d='M0 52 L30 0 L90 0 L120 52 L90 104 L30 104 Z'/%3E%3Cpath d='M30 0 L60 52 L30 104 M90 0 L60 52 L90 104 M0 52 H120'/%3E%3C/g%3E%3C/svg%3E");
  background-size: auto, 120px 104px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.25rem 3rem;
}

body.is-hub {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.is-hub .page {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  padding: 1.5rem 1.25rem 1.15rem;
}

body.is-hub .hub {
  flex: 1 1 auto;
  min-height: 0;
  width: min(1280px, 100%);
  justify-content: center;
  gap: 1.35rem;
}

body.is-hub .access {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

body.is-hub .access-card--module {
  max-height: min(340px, 52vh);
}

body.is-hub .page-footer {
  padding-top: 1rem;
}

body.is-hub .topbar,
body.is-module-topbar .topbar {
  background-color: #cfcfcf;
  background-image: url("../img/hub-topbar-bg.png");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  backdrop-filter: none;
}

body.is-hub .topbar__brand,
body.is-module-topbar .topbar__brand {
  gap: 0.75rem;
  color: transparent;
}

body.is-hub .topbar__brand img,
body.is-module-topbar .topbar__brand img {
  border-radius: 0;
}

body.is-hub .topbar__brand img.topbar__symbol,
body.is-module-topbar .topbar__brand img.topbar__symbol {
  width: 40px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

body.is-hub .topbar__brand img.topbar__wordmark,
body.is-module-topbar .topbar__brand img.topbar__wordmark {
  width: auto;
  height: 30px;
  max-width: min(280px, 48vw);
  object-fit: contain;
  flex: 0 1 auto;
}

body.is-hub .topbar__nav a,
body.is-module-topbar .topbar__nav a {
  color: var(--green-deep);
}

body.is-hub .topbar__nav a:hover,
body.is-hub .topbar__nav a:focus-visible,
body.is-module-topbar .topbar__nav a:hover,
body.is-module-topbar .topbar__nav a:focus-visible {
  color: var(--green-primary);
}

body.is-hub .topbar__user,
body.is-module-topbar .topbar__user {
  color: #4a4a4a;
}

.hub {
  width: min(960px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.25rem;
  animation: fade-rise 0.7s ease-out both;
}

.hub__title {
  margin: 0;
  text-align: center;
  line-height: 0;
}

.hub__title-img {
  display: block;
  width: min(760px, 94vw);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  image-rendering: auto;
}

.hub__subtitle {
  margin: -0.75rem 0 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--grey-muted);
  letter-spacing: 0.04em;
}

.brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand__logo {
  width: min(280px, 72vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 24px rgba(26, 94, 32, 0.12));
  animation: soft-float 5s ease-in-out infinite;
}

.brand__support {
  margin: 0;
  max-width: 28rem;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--grey-text);
}

.access {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.access-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 1.5rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(26, 94, 32, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  animation: fade-rise 0.75s ease-out both;
}

.access-card:nth-child(2) {
  animation-delay: 0.12s;
}

.access-card:hover,
.access-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(0, 166, 81, 0.45);
  outline: none;
}

.access-card__logo {
  width: min(220px, 100%);
  height: auto;
  display: block;
  object-fit: contain;
}

.access-card--module {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  background-color: #e7e7e7;
  background-image: none;
}

.access-card__cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  pointer-events: none;
  background: transparent;
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}

.access-card--configuracoes .access-card__cover,
.access-card--ecomizze .access-card__cover,
.access-card--contabizze .access-card__cover {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.access-card__brand {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 0;
}

.access-card__gear {
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  line-height: 1;
  color: var(--green-primary);
}

.access-card__brand-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-primary);
  text-align: center;
}

.access-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  background: var(--green-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

.access-card--sub {
  text-align: center;
  min-height: 180px;
}

.hub--submodules {
  flex: 1 1 auto;
  width: min(1200px, 100%);
  justify-content: center;
  align-items: center;
}

.action-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  width: 100%;
  margin: 20px 0;
}

.action-card {
  border: 1px solid rgba(26, 94, 32, 0.12);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #f4f4f4;
  background-image: url("../img/card-bg.png");
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 260px;
  max-width: calc(100% - 8px);
  flex: 0 0 260px;
  min-height: 220px;
  box-shadow: 0 12px 40px rgba(26, 94, 32, 0.08);
}

.action-card:hover,
.action-card:focus-visible {
  border-color: var(--green-primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  outline: none;
}

.action-card h3 {
  color: var(--green-primary);
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.action-card .icon {
  font-size: 36px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.action-card p {
  margin: 0;
  color: var(--grey-text);
  font-size: 11px;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
}

.access-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green-primary);
  letter-spacing: 0.03em;
}

.access-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--grey-text);
}

.table__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-end;
}

.access-card:hover .access-card__cta,
.access-card:focus-visible .access-card__cta {
  background: var(--green-accent);
}

.placeholder {
  width: min(560px, 100%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(26, 94, 32, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fade-rise 0.65s ease-out both;
}

.placeholder__logo {
  width: min(240px, 80%);
  height: auto;
}

.placeholder__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-primary);
}

.placeholder__tagline {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.placeholder__note {
  margin: 0.25rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--grey-text);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--green-primary);
  transition: color 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
  color: var(--green-accent);
  outline: none;
}

.page-footer {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(26, 94, 32, 0.1);
  backdrop-filter: blur(8px);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-primary);
}

.topbar__brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.topbar__nav a {
  color: var(--green-primary);
  transition: color 0.2s ease;
}

.topbar__nav a:hover,
.topbar__nav a:focus-visible {
  color: var(--green-accent);
  outline: none;
}

.topbar__user {
  color: var(--grey-muted);
  font-weight: 500;
}

.module-subnav {
  position: relative;
  z-index: 9;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.65rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(8px);
}

.module-subnav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.module-subnav__links a {
  text-decoration: none;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.module-subnav__links a:hover,
.module-subnav__links a:focus-visible {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.08);
  outline: none;
}

.module-subnav__links a.is-active {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.07);
  border-color: rgba(15, 23, 42, 0.12);
}

.company-switch {
  display: inline-flex;
  align-items: center;
}

.company-switch label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--grey-muted);
}

.company-switch select {
  min-height: 2rem;
  padding: 0.2rem 0.5rem;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  font: inherit;
  color: var(--grey-text);
  background: #fff;
}

body.is-login {
  background-color: #f4f4f4;
  background-image: url("../img/card-bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

body.is-login .page {
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1.5rem 1.25rem 1.25rem;
}

.auth-panel {
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 2rem 1.5rem 1.75rem;
  background-color: #f4f4f4;
  background-image: url("../img/card-bg.png");
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(26, 94, 32, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: fade-rise 0.65s ease-out both;
}

.auth-panel__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
}

.auth-panel__symbol {
  width: min(92px, 28%);
  height: auto;
}

.auth-panel__wordmark {
  width: min(280px, 86%);
  height: auto;
}

.auth-panel__logo {
  width: min(180px, 55%);
  height: auto;
}

.auth-panel__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-primary);
  text-align: center;
}

.auth-panel__subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--grey-muted);
}

.form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form--panel {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(26, 94, 32, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form__heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-deep);
}

.form__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-text);
}

.form__field[hidden] {
  display: none !important;
}

.form__field input,
.form__field select {
  width: 100%;
  min-height: 2.6rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  color: #333;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form__field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-weight: 500;
  color: #333;
  resize: vertical;
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--green-accent);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.form__row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.form__row input {
  flex: 1;
}

.form__hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey-muted);
}

.form__hint--ok {
  color: var(--green-primary);
}

.form__hint--error {
  color: #9b1c1c;
}

.logo-preview {
  display: block;
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  border: 1px solid var(--grey-border);
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.form__checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
}

.form__module {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form__module-children {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-left: 1.7rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--grey-border);
}

.form__module-children[hidden] {
  display: none;
}

.form__check {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-text);
}

.form__fieldset {
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid var(--grey-border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.form__fieldset.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.form__fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.7rem;
  padding: 0.55rem 1.25rem;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn--primary {
  background: var(--green-primary);
  color: #fff;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--green-accent);
  outline: none;
}

.btn--ghost {
  background: transparent;
  color: var(--green-primary);
  border: 1px solid rgba(26, 94, 32, 0.25);
  text-decoration: none;
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--green-accent);
  color: var(--green-accent);
  outline: none;
}

.btn--danger {
  background: #9b1c1c;
  color: #fff;
}

.btn--danger:hover,
.btn--danger:focus-visible {
  background: #b42318;
  outline: none;
}

.btn--small {
  min-height: 2.1rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
}

.alert {
  width: 100%;
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.alert--error {
  background: #fdecea;
  color: #9b1c1c;
}

.alert--success {
  background: #e8f7ee;
  color: var(--green-deep);
}

.flash-stack {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.page--account {
  align-items: stretch;
}

.account {
  width: min(720px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  animation: fade-rise 0.65s ease-out both;
}

.account--wide {
  width: min(1600px, calc(100vw - 2.5rem));
  max-width: none;
}

.account--wide .user-list {
  overflow-x: visible;
}

.account--wide .form--panel {
  width: min(720px, 100%);
}

.account--wide .form--panel.form--wide {
  width: 100%;
  max-width: none;
}

body.is-empresa-form {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.is-empresa-form .topbar {
  flex: 0 0 auto;
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
}

body.is-empresa-form .page-footer {
  display: none;
}

.account--form {
  gap: 0.4rem;
  width: min(1600px, calc(100vw - 2.5rem));
  flex: 1 1 auto;
  min-height: 0;
}

.account--form .account__title {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  margin: 0;
}

.account--form .hub__subtitle {
  margin: 0;
  font-size: 0.85rem;
}

.account--form .back-link {
  margin-top: 0.15rem;
  font-size: 0.85rem;
}

.page--empresa-form {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  padding: 0.55rem 1.25rem 0.5rem;
  justify-content: flex-start;
}

.form.form--company {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 0.5rem 0.85rem;
  align-items: start;
  padding: 0.65rem 0.9rem;
}

.form--company .form__heading,
.form--company .form__actions {
  grid-column: 1 / -1;
  margin: 0;
}

.form--company .form__heading {
  font-size: 0.95rem;
}

.form--company .form__actions {
  padding-top: 0;
  gap: 0.5rem;
}

.form--company .form__fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.3rem 0.65rem;
  padding: 0.5rem 0.7rem;
}

.form--company .form__fieldset--dados {
  grid-column: 1;
}

.form--company .form__fieldset--midia {
  grid-column: 2;
  grid-template-columns: 1fr;
}

.form--company .form__fieldset legend {
  font-size: 0.72rem;
}

.form--company .form__field--span2 {
  grid-column: 1 / -1;
}

.form--company .form__field {
  gap: 0.12rem;
  font-size: 0.75rem;
}

.form--company .form__field input,
.form--company .form__field select {
  min-height: 2rem;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
}

.form .form__checks {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 1.5rem !important;
  width: auto !important;
}

.form .form__checks .form__check {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.35rem !important;
  width: auto !important;
  margin: 0 !important;
}

.form .form__checks .form__check span {
  width: auto !important;
}

.form .form__checks input[type="checkbox"] {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  max-width: 14px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 14px !important;
  accent-color: #1a5e20;
}

.form--company .form__hint {
  font-size: 0.68rem;
  line-height: 1.2;
}

.form--company .logo-preview {
  max-width: 80px;
  max-height: 36px;
  margin-bottom: 0.15rem;
  padding: 0.15rem;
}

.form--company .btn {
  min-height: 2rem;
  padding: 0.28rem 0.9rem;
}

@media (max-width: 960px) {
  body.is-empresa-form {
    overflow: auto;
  }

  .page--empresa-form {
    overflow: auto;
  }

  .form--company {
    grid-template-columns: 1fr;
  }

  .form--company .form__fieldset--dados,
  .form--company .form__fieldset--midia {
    grid-column: 1;
  }
}

.list-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.table--cadastro {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.table--cadastro th,
.table--cadastro td {
  white-space: nowrap;
  vertical-align: middle;
}

.table--cadastro .table__actions {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  white-space: nowrap;
}

.table--empresas {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.table--empresas th,
.table--empresas td {
  white-space: nowrap;
}

.table--empresas th:nth-child(2),
.table--empresas td:nth-child(2) {
  min-width: 12rem;
}

.table--empresas th:nth-child(3),
.table--empresas td:nth-child(3) {
  min-width: 12rem;
}

.table--empresas .table__actions {
  flex-wrap: nowrap;
}

.account__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--green-primary);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tabs__item {
  padding: 0.55rem 1rem;
  border: 1px solid var(--grey-border);
  border-radius: 999px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--grey-text);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.tabs__item:hover,
.tabs__item:focus-visible {
  border-color: var(--green-accent);
  color: var(--green-primary);
  outline: none;
}

.tabs__item.is-active {
  background: var(--green-primary);
  border-color: var(--green-primary);
  color: #fff;
}

.user-list {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(26, 94, 32, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 0.7rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--grey-border);
}

.table th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--grey-muted);
}

.placeholder-note {
  margin: 0;
  line-height: 1.55;
  color: var(--grey-text);
}

.acervo-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.85rem 1rem;
}

.acervo-filters .form__field {
  min-width: 11rem;
}

.acervo-table-wrap {
  overflow-x: auto;
}

.table--acervo {
  font-size: 0.8rem;
}

.table--acervo th,
.table--acervo td {
  padding: 0.45rem 0.4rem;
  white-space: nowrap;
}

.acervo-chave {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  letter-spacing: 0;
}

.acervo-pager {
  display: flex;
  gap: 1rem;
  margin: 0;
}

@keyframes fade-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.guias-period {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.guias-period label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 12px;
  color: var(--grey-text);
}

.guias-period select {
  min-width: 100px;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font: inherit;
}

.guias-meses {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.25rem;
}

.guias-meses__item {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 12px;
  color: var(--grey-text);
  text-decoration: none;
  background: #f3f3f3;
}

.guias-meses__item:hover,
.guias-meses__item:focus-visible {
  color: var(--green-deep);
  background: #e7efe8;
}

.guias-meses__item.is-active {
  background: #dfe6e0;
  color: var(--green-deep);
  font-weight: 600;
}

.table--guias {
  width: 100%;
  table-layout: auto;
  min-width: 0;
}

.table--guias th,
.table--guias td {
  white-space: nowrap;
  vertical-align: middle;
}

.table--guias th:nth-child(1),
.table--guias td:nth-child(1) {
  width: 28%;
}

.td-guia {
  min-width: 0;
}

.guia-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #e8e8e8;
  font-size: 11px;
  color: #333;
}

.guia-tag--anexado {
  background: #dcefe0;
  color: var(--green-deep);
}

.guia-tag--pendente {
  background: #f3ead8;
  color: #6a5420;
}

.guia-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.guia-label-input {
  width: 88px;
  padding: 0.2rem 0.35rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  font-size: 11px;
}

.guia-clear {
  border: 0;
  background: transparent;
  color: #999;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0 2px;
}

.guia-check-list {
  display: grid;
  gap: 0.5rem;
}

.guia-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 13px;
}

.guia-check small {
  color: var(--grey-muted);
}

@media (max-width: 720px) {
  .page {
    padding: 1.75rem 1rem 2.25rem;
  }

  .hub {
    gap: 1.75rem;
  }

  .access {
    grid-template-columns: 1fr;
  }

  .brand__logo {
    width: min(220px, 78vw);
  }
}
