:root {
  color-scheme: light;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef5f2;
  --surface-3: #f7efe3;
  --text: #16201f;
  --muted: #5d6b68;
  --line: #d9e4df;
  --primary: #0f766e;
  --primary-strong: #0a4f4a;
  --accent: #bf7a16;
  --danger: #a33a2b;
  --blue: #275b8f;
  --ok: #19764a;
  --shadow: 0 10px 28px rgba(19, 37, 34, 0.09);
  --radius: 5px;
  --container: 980px;
  --site-header-height: 46px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--site-header-height) + 6px);
}

body {
  min-width: 320px;
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.06), rgba(191, 122, 22, 0.04)),
    linear-gradient(180deg, #eef4f1 0%, #fafcfb 46%, #edf3f0 100%);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  padding-top: 0;
}

[id] {
  scroll-margin-top: calc(var(--site-header-height) + 6px);
}

[hidden] {
  display: none !important;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--text);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: clamp(320px, calc(100% - 22px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 252, 251, 0.94);
  border-bottom: 1px solid rgba(217, 228, 223, 0.86);
  backdrop-filter: blur(14px);
  transition: box-shadow 160ms ease, background 160ms ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 28px rgba(24, 32, 31, 0.08);
}

.header-inner {
  min-height: var(--site-header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0;
  flex: 0 0 auto;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.1;
  font-size: 0.86rem;
}

.brand small {
  color: var(--muted);
  font-size: 0.66rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 7px;
  color: #34433f;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.74rem;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: var(--surface-2);
  color: var(--primary-strong);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
}

.header-user {
  max-width: 140px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-user strong,
.header-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-user strong {
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.05;
}

.header-user small {
  color: var(--muted);
  font-size: 0.58rem;
  line-height: 1;
}

.logout-link {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--primary-strong);
  font-size: 0.7rem;
  font-weight: 900;
  text-decoration: none;
}

.menu-toggle {
  display: none;
  min-height: 30px;
  width: 34px;
  padding: 5px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius);
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 3px;
  background: var(--text);
}

.menu-toggle em {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 26px 0 22px;
  background:
    linear-gradient(90deg, rgba(10, 32, 29, 0.88) 0%, rgba(10, 32, 29, 0.68) 43%, rgba(10, 32, 29, 0.18) 100%),
    url("../img/fiscaliza-facil-hero.png") center right / cover no-repeat;
  color: #fff;
}

.hero-content {
  width: min(480px, 100%);
  padding-bottom: 0;
}

.eyebrow {
  margin: 0 0 7px;
  color: #bfe5dc;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.hero h1,
.page-hero h1 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
  font-size: clamp(2rem, 4.2vw, 3.1rem);
}

.hero-lead,
.page-lead {
  margin: 9px 0 0;
  font-size: 0.95rem;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.88);
}

.hero-actions,
.section-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.76rem;
  cursor: pointer;
}

.button:hover {
  background: var(--primary-strong);
}

.button.secondary {
  background: #fff;
  color: var(--text);
}

.button.secondary:hover {
  background: var(--surface-2);
}

.button.outline {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.button.dark {
  background: var(--text);
  color: #fff;
}

.text-link {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b8d4cd;
  border-radius: var(--radius);
  background: #f5fbf8;
  color: var(--primary-strong);
  padding: 3px 6px;
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.text-link:hover {
  background: #e4f2ef;
  border-color: #87b8ad;
}

.access-button {
  background: var(--primary-strong);
}

.section {
  padding: 28px 0;
}

.section.compact {
  padding: 24px 0;
}

.section.alt {
  background: var(--surface);
}

.section.warm {
  background: var(--surface-3);
}

.section.dark {
  background: #122522;
  color: #fff;
}

.section-header {
  max-width: 760px;
  margin-bottom: 14px;
}

.section-header.center {
  margin-inline: auto;
  text-align: center;
}

.section-header h2,
.page-section h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-header p,
.page-section p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.section.dark .section-header p,
.section.dark p {
  color: rgba(255, 255, 255, 0.76);
}

.stats-strip {
  transform: translateY(-18px);
  position: relative;
  z-index: 2;
}

.stats-grid {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}

.stat {
  padding: 15px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  line-height: 1;
  color: var(--primary-strong);
}

.stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.84rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.feature-card,
.module-card,
.role-card,
.decision-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px;
  box-shadow: 0 8px 26px rgba(19, 37, 34, 0.06);
}

.feature-card h3,
.module-card h3,
.role-card h3,
.decision-card h3 {
  margin: 0 0 5px;
  font-size: 0.84rem;
  line-height: 1.25;
}

.feature-card p,
.module-card p,
.role-card p,
.decision-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: #e4f2ef;
  color: var(--primary-strong);
  font-size: 0.68rem;
  font-weight: 800;
}

.tag.success {
  background: #e4f5ed;
  color: var(--ok);
}

.tag.warning {
  background: #fff3d8;
  color: #9b6514;
}

.tag.danger {
  background: #fde9e5;
  color: var(--danger);
}

.tag.neutral {
  background: #edf1f5;
  color: #4c5963;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 28px;
  align-items: center;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 9px;
}

.panel h2,
.panel h3 {
  margin-top: 0;
}

.check-list,
.plain-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.check-list li,
.plain-list li {
  position: relative;
  padding-left: 22px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--primary);
  box-shadow: inset 0 0 0 4px #cfe8e2;
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  counter-reset: flow;
}

.flow-step {
  position: relative;
  padding: 16px;
  min-height: 160px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
}

.flow-step::before {
  counter-increment: flow;
  content: counter(flow, decimal-leading-zero);
  display: block;
  color: #91d8cd;
  font-weight: 900;
  margin-bottom: 12px;
  font-size: 0.86rem;
}

.flow-step h3 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.flow-step p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
}

.page-hero {
  padding: 28px 0 20px;
  background: #122522;
  color: #fff;
}

.page-hero .page-lead {
  color: rgba(255, 255, 255, 0.82);
}

.page-section {
  padding: 28px 0;
}

.page-section.alt {
  background: var(--surface);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.info-table th,
.info-table td {
  padding: 6px 7px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.info-table th {
  background: #eef5f2;
  color: #203330;
  font-size: 0.78rem;
}

.info-table tr:last-child td {
  border-bottom: 0;
}

.compact-table th,
.compact-table td {
  font-size: 0.72rem;
}

.compact-table small {
  color: var(--muted);
  font-size: 0.66rem;
}

.info-table .tag {
  margin-bottom: 0;
}

.evidence-preview {
  margin: 8px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #f8faf9;
}

.evidence-preview img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}

.timeline-item strong {
  color: var(--primary-strong);
}

.timeline-item h3 {
  margin: 0 0 6px;
}

.timeline-item p {
  margin: 0;
}

.timeline-item small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
}

.annex-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.annex-item {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
}

.annex-item strong,
.annex-item small {
  display: block;
}

.annex-item strong {
  font-size: 0.82rem;
}

.annex-item small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.field {
  display: grid;
  gap: 3px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 800;
  font-size: 0.72rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 7px;
  background: #fff;
  color: var(--text);
  font-size: 0.78rem;
}

.field textarea {
  min-height: 68px;
  resize: vertical;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.check-option input {
  width: 14px;
  height: 14px;
}

.form-message {
  min-height: 24px;
  color: var(--ok);
  font-weight: 700;
}

.form-alert {
  margin: 8px 0 0;
  padding: 9px 10px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-alert.success {
  background: #e4f5ed;
  color: var(--ok);
  border: 1px solid #b9dfcd;
}

.form-alert.error {
  background: #fde9e5;
  color: var(--danger);
  border: 1px solid #e8b7af;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.notice {
  padding: 12px;
  border: 1px solid #e7c98e;
  border-left: 5px solid var(--accent);
  background: #fff8ec;
  border-radius: var(--radius);
  color: #4d3510;
}

.modal {
  width: min(680px, calc(100% - 24px));
  max-height: calc(100vh - 28px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
}

.modal::backdrop {
  background: rgba(13, 28, 26, 0.58);
}

.modal-content {
  max-height: calc(100vh - 30px);
  overflow: auto;
  background: #fff;
  padding: 9px;
}

.login-home {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(39, 91, 143, 0.05)),
    linear-gradient(180deg, #f7faf9 0%, #edf3f0 100%);
}

.login-home .site-header,
.login-home .site-footer {
  display: none;
}

.login-home main {
  min-height: 100vh;
}

.web-login-shell {
  width: clamp(320px, calc(100% - 18px), 420px);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 10px 0;
}

.web-login-card {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.login-brandline {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.login-brandline .brand-mark {
  width: 36px;
  height: 36px;
}

.web-login-card .eyebrow {
  margin: 0 0 3px;
}

.web-login-card h1,
.compact-form h1,
.dashboard-top h1 {
  margin: 0;
  line-height: 1.08;
}

.web-login-card h1 {
  font-size: 1.28rem;
}

.web-login-form {
  display: grid;
  gap: 8px;
}

.web-login-form .field span,
.dashboard-search span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.web-login-form .button {
  width: 100%;
  margin-top: 2px;
}

.login-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-top: 9px;
}

.login-meta-grid span {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
}

.login-demo {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.74rem;
}

.dashboard-shell {
  width: clamp(320px, calc(100% - 18px), 1040px);
  margin: 0 auto;
  padding: 6px 0 18px;
}

.dashboard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-bottom: 5px;
}

.dashboard-top h1 {
  font-size: 1.08rem;
}

.dashboard-user {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.74rem;
}

.dashboard-user .button {
  min-height: 26px;
}

.dashboard-search {
  display: grid;
  gap: 4px;
  margin-bottom: 5px;
}

.dashboard-search input,
.table-search input {
  width: 100%;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 7px;
  background: #fff;
  font-size: 0.78rem;
}

.table-search {
  min-width: min(100%, 240px);
  display: grid;
  gap: 4px;
}

.table-search span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-cards,
.dashboard-modules {
  display: grid;
  gap: 4px;
  margin-bottom: 5px;
}

.dashboard-cards {
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
}

.dashboard-modules {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  margin-bottom: 6px;
}

.dash-card,
.dash-module {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.dash-card {
  position: relative;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 1px;
  min-height: 42px;
  padding: 5px 6px;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  overflow: hidden;
}

.dash-card:hover {
  border-color: #9cc8bf;
  background: #f5fbf8;
}

.dash-card span,
.dash-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-card span {
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 900;
}

.dash-card small {
  font-size: 0.56rem;
}

.dash-card strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: var(--primary-strong);
  font-size: 0.94rem;
  line-height: 1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-stack {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.icon-action {
  width: 24px;
  min-height: 24px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.edit-action {
  background: #e8f1f7;
  color: var(--primary-strong);
}

.status-action {
  background: #fff4d9;
  color: #9a5b00;
}

.delete-action {
  background: #fde8e4;
  color: var(--danger);
}

.user-actions .table-action-form {
  margin: 0;
}

.inline-action-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 35;
  width: 156px;
  display: grid;
  gap: 2px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.inline-action-menu a {
  min-height: 24px;
  display: flex;
  align-items: center;
  padding: 3px 6px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.inline-action-menu a:hover {
  background: var(--surface-2);
}

.action-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 4px;
  margin: 6px 0;
}

.action-choice-grid .button {
  min-height: 28px;
  justify-content: flex-start;
}

.contract-action-panel {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.dash-module {
  min-height: 46px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  column-gap: 5px;
  padding: 5px;
  color: var(--text);
  text-decoration: none;
}

.dash-module:hover {
  border-color: #9cc8bf;
  background: #f5fbf8;
}

.module-icon {
  grid-row: span 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: #e4f2ef;
  color: var(--primary-strong);
  font-size: 0.62rem;
  font-weight: 900;
}

.dash-module strong {
  line-height: 1.05;
  font-size: 0.76rem;
}

.dash-module small {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.15;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.55fr);
  gap: 5px;
}

.dash-panel {
  padding: 7px;
  box-shadow: none;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.panel-head h2 {
  margin: 0;
  font-size: 0.86rem;
}

.dash-list {
  display: grid;
  gap: 4px;
  margin-top: 5px;
}

.dash-list article,
.dash-list a {
  min-width: 0;
  min-height: 30px;
  display: grid;
  grid-template-columns: minmax(72px, 104px) minmax(0, 1fr) minmax(48px, 64px);
  gap: 5px;
  align-items: center;
  padding: 5px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
  font-size: 0.68rem;
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
}

.dash-list a:hover {
  border-color: #9cc8bf;
  background: #f5fbf8;
}

.dash-list span {
  color: var(--muted);
}

.dash-list strong,
.dash-list span,
.dash-list em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-list em {
  color: var(--primary-strong);
  font-style: normal;
  font-weight: 800;
}

.dash-actions {
  margin-top: 5px;
}

.quick-form {
  display: grid;
  gap: 6px;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 5px;
}

.inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.inline-form select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 7px;
  background: #fff;
  font-size: 0.78rem;
}

.inline-form .button {
  min-height: 30px;
  padding: 5px 8px;
}

.table-action-form {
  display: inline-flex;
  margin: 3px 0 0;
}

.split-actions {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 6px;
}

.checklist-modal {
  width: min(980px, calc(100% - 18px));
}

.checklist-form .form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.checklist-table {
  min-width: 920px;
}

.checklist-table th,
.checklist-table td {
  padding: 6px;
}

.checklist-table input,
.checklist-table select {
  width: 100%;
  min-height: 28px;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 6px;
  font-size: 0.72rem;
}

.danger-form {
  margin-top: 8px;
  justify-content: flex-end;
}

.question-sequence {
  display: grid;
  gap: 3px;
  max-height: 150px;
  overflow: auto;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
}

.question-sequence small {
  color: var(--muted);
  font-size: 0.7rem;
}

.view-toolbar {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0;
}

.view-toolbar .is-active {
  background: var(--primary);
  color: #fff;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.calendar-day {
  min-height: 88px;
  display: grid;
  gap: 3px;
  align-content: start;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8faf9;
  color: var(--text);
  text-decoration: none;
}

.calendar-day:hover {
  border-color: #9cc8bf;
  background: #f5fbf8;
}

.calendar-day strong {
  color: var(--primary-strong);
  font-size: 0.84rem;
}

.calendar-day span,
.calendar-day small {
  color: var(--muted);
  font-size: 0.7rem;
}

.compact-page {
  padding: 16px 0 28px;
}

.contact-compact {
  max-width: 680px;
}

.compact-form {
  box-shadow: none;
}

.compact-form .form-grid {
  margin-top: 12px;
}

.site-footer {
  background: #0d1c1a;
  color: #fff;
  padding: 24px 0 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  gap: 18px;
}

.footer-brand .brand-mark {
  background: #d9eee9;
  color: var(--primary-strong);
}

.site-footer p,
.site-footer small,
.footer-bottom {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer h2 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.footer-links {
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: #a9e1d7;
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-bottom {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.site-footer p,
.site-footer small,
.footer-links a {
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(100% + 5px);
    display: none;
    padding: 6px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .site-nav a {
    white-space: normal;
  }

  .stats-grid,
  .card-grid,
  .card-grid.three,
  .card-grid.two,
  .flow,
  .calendar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split,
  .footer-grid,
  .dashboard-grid,
  .annex-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: clamp(320px, calc(100% - 14px), var(--container));
  }

  .header-inner {
    min-height: var(--site-header-height);
  }

  .brand small {
    display: none;
  }

  .hero {
    min-height: 390px;
    padding: 22px 0 20px;
    background:
      linear-gradient(180deg, rgba(10, 32, 29, 0.9) 0%, rgba(10, 32, 29, 0.72) 62%, rgba(10, 32, 29, 0.4) 100%),
      url("../img/fiscaliza-facil-hero.png") center right / cover no-repeat;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 2.1rem;
  }

  .section,
  .page-section {
    padding: 24px 0;
  }

  .form-grid,
  .site-nav.is-open {
    grid-template-columns: 1fr;
  }

  .dashboard-shell {
    width: clamp(320px, calc(100% - 12px), 1040px);
  }

  .dashboard-top {
    align-items: flex-start;
  }

  .dashboard-user {
    gap: 5px;
    font-size: 0.7rem;
  }

  .dash-module {
    min-height: 42px;
  }

  .dash-list article,
  .dash-list a {
    grid-template-columns: 1fr auto;
  }

  .dash-list article span,
  .dash-list a span {
    grid-column: 1 / -1;
  }

  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }

  .login-meta-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat:last-child {
    border-bottom: 0;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .section-actions {
    align-items: flex-start;
  }

  .button {
    width: auto;
  }
}

@media print {
  .site-header,
  .site-footer,
  .dash-actions,
  .button {
    display: none !important;
  }

  .dashboard-shell {
    width: 100%;
    padding: 0;
  }

  .annex-item {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .annex-item .evidence-preview img {
    width: auto;
    max-width: 100%;
    max-height: 50vh;
    object-fit: contain;
  }
}
