:root,
html[data-tema="claro"] {
  color-scheme: light;
  --bg: #eef5f7;
  --ink: #14323a;
  --muted: #4d6b73;
  --line: #c5d6db;
  --paper: #f7fcfd;
  --accent: #0891b2;
  --accent-2: #0e7490;
  --warn: #8a4b12;
  --danger: #8f2d2d;
  --ok: #0891b2;
  --soft: #e0f7fa;
  --soft-2: #cffafe;
  --th: #e0f7fa;
  --row-done: #e6f6f8;
  --sidebar: #155e75;
  --sidebar-ink: #e8fbff;
  --sidebar-muted: #9eeaf4;
  --sidebar-active: #0891b2;
  --chart-track: #d7eef2;
  --radius: 10px;
  --radius-lg: 16px;
}

html[data-tema="escuro"] {
  color-scheme: dark;
  --bg: #0f1c22;
  --ink: #e8f4f7;
  --muted: #8aa8b0;
  --line: #2a4550;
  --paper: #152830;
  --accent: #22d3ee;
  --accent-2: #67e8f9;
  --warn: #fbbf24;
  --danger: #fca5a5;
  --ok: #22d3ee;
  --soft: #1a3a44;
  --soft-2: #214853;
  --th: #1a3a44;
  --row-done: #17343c;
  --sidebar: #0e4a5c;
  --sidebar-ink: #e8fbff;
  --sidebar-muted: #9eeaf4;
  --sidebar-active: #0891b2;
  --chart-track: #1f3d47;
}

* { box-sizing: border-box; }

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 "Segoe UI", system-ui, sans-serif;
}

body.app {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
  align-items: stretch;
}

body.login-only {
  grid-template-columns: 1fr;
}

body.login-only .sidebar,
body.login-only .app-main {
  display: none !important;
}

#page-login {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  overflow: hidden;
}

.login-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(8, 145, 178, 0.2), transparent 58%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(21, 94, 117, 0.16), transparent 52%),
    var(--bg);
  pointer-events: none;
}

html[data-tema="escuro"] .login-bg {
  background:
    radial-gradient(ellipse 90% 70% at 0% 0%, rgba(34, 211, 238, 0.1), transparent 58%),
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(8, 145, 178, 0.1), transparent 52%),
    var(--bg);
}

.login-theme {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.login-theme button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.login-theme button .nav-icon {
  width: 16px;
  height: 16px;
}

.login-theme button.ativo {
  background: var(--accent);
  border-color: var(--accent);
  color: #e8fbff;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  min-height: 540px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(20, 50, 58, 0.12);
}

.login-shell > .login-card {
  grid-column: 2;
  grid-row: 1;
}

.login-visual {
  grid-column: 1;
  grid-row: 1;
  background: linear-gradient(165deg, #0e7490 0%, #155e75 52%, #0f3f4d 100%);
  color: #e8fbff;
  padding: 40px 36px 36px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.login-visual::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -50px;
  border: 18px solid rgba(255, 255, 255, 0.06);
  border-radius: 40px;
  transform: rotate(24deg);
  pointer-events: none;
}

.login-visual .logo {
  width: 168px;
  height: auto;
  aspect-ratio: auto;
  margin: 0 0 auto;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.login-visual .brand {
  color: #9eeaf4;
  text-align: left;
  margin: 28px 0 8px;
  position: relative;
}

.login-visual-name {
  margin: 0 0 8px;
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.04em;
  position: relative;
}

.login-visual-tag {
  margin: 0;
  max-width: 26ch;
  color: rgba(232, 251, 255, 0.74);
  font-size: 14px;
  line-height: 1.45;
  position: relative;
}

.login-card {
  width: auto;
  background: transparent;
  border: 0;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  border-radius: 0;
}

.login-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 650;
}

.login-card h1 {
  margin: 0 0 6px;
  text-align: left;
  font-size: 30px;
  font-weight: 650;
  letter-spacing: -0.04em;
}

.login-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.login-field {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.login-input {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.login-input svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-input input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  box-shadow: none;
  font-size: 14px;
}

.login-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.16);
}

.login-eye {
  width: 32px;
  height: 32px;
  padding: 0;
  flex: 0 0 32px;
  background: transparent;
  color: var(--muted);
  border-radius: 8px;
}

.login-eye:hover {
  background: var(--soft);
  color: var(--ink);
}

.login-submit {
  height: 48px;
  width: 100%;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 650;
  border-radius: 12px;
}

.login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
}

.login-links-sep {
  color: var(--muted);
  opacity: 0.7;
}

.login-link {
  border: 0;
  background: transparent;
  color: var(--accent-2, #0d6e7a);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-link:hover {
  color: var(--accent);
}

.login-recover .login-back {
  margin-top: 8px;
}

.login-opcional {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}

.login-hint {
  min-height: 20px;
  margin: 14px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.login-hint.error {
  color: var(--danger);
}

.login-hint.ok {
  color: var(--ok);
}

@media (max-width: 800px) {
  .login-shell {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-visual {
    padding: 28px 28px 24px;
    min-height: 220px;
  }

  .login-visual .logo {
    width: 120px;
    height: auto;
    margin-bottom: 20px;
  }

  .login-visual-name {
    font-size: 26px;
  }

  .login-card {
    padding: 28px 24px 32px;
  }
}

.top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.sessao {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.sessao .secondary {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.usr-table {
  min-width: 820px;
}

.usr-table input,
.usr-table select {
  height: 32px;
  width: 100%;
}

.usr-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.usr-lista {
  display: grid;
  gap: 10px;
  margin: 0 0 8px;
}

.usr-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
}

.usr-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sidebar);
  color: var(--sidebar-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.usr-card-meta {
  min-width: 0;
}

.usr-card-meta strong {
  display: block;
  font-size: 15px;
  font-weight: 650;
}

.usr-card-meta span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.usr-badge {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.usr-badge-adm {
  background: var(--soft);
  color: var(--accent-2);
}

.usr-badge-op {
  background: var(--soft-2);
  color: var(--muted);
}

.usr-badge-ok {
  background: rgba(21, 128, 61, 0.14);
  color: #15803d;
}

.usr-badge-off {
  background: rgba(185, 28, 28, 0.12);
  color: var(--danger);
}

html[data-tema="escuro"] .usr-badge-ok {
  color: #86efac;
}

.usr-lista-vazia {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.aud-login {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .usr-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .usr-badge {
    justify-self: start;
  }
}

.sidebar {
  background: var(--sidebar);
  color: var(--sidebar-ink);
  padding: 16px;
  min-height: 100vh;
  max-height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.logo {
  width: 100%;
  height: auto;
  max-height: 160px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.logo img {
  width: 100%;
  height: auto;
  max-height: 140px;
  object-fit: contain;
  display: block;
}

.logo-empty::after {
  content: "Logo 200×200";
  color: #9eeaf4;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sidebar-muted);
}

.brand-sub {
  margin: 6px 0 22px;
  font-size: 16px;
  font-weight: 650;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}

.sidebar a,
.sidebar summary {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sidebar-ink);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar a:hover,
.sidebar summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar a.active {
  background: var(--sidebar-active);
}

.sidebar details {
  margin-top: 4px;
}

.sidebar details a {
  margin-left: 0;
  padding-left: 28px;
  font-size: 13px;
}

.sidebar details a .nav-icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.sidebar summary {
  list-style: none;
  font-weight: 650;
}

.sidebar summary::-webkit-details-marker {
  display: none;
}

.sidebar-foot {
  flex: 0 0 auto;
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sidebar-user {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.sidebar-user-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.sidebar-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sidebar-active);
  color: #e8fbff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.sidebar-user-meta {
  min-width: 0;
}

.sidebar-user-meta strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-meta span {
  display: block;
  font-size: 11px;
  color: var(--sidebar-muted);
}

.sidebar-tenant {
  margin-top: 2px;
  font-size: 10px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sidebar-accent, #93c5fd) !important;
}

.sidebar-sair {
  height: 36px;
  width: 100%;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--sidebar-ink);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
  border-radius: 999px;
}

.sidebar-sair:hover {
  background: rgba(255, 255, 255, 0.18);
}

.tema-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.tema-toggle button {
  height: 32px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--sidebar-ink);
  border: 1px solid transparent;
  font-size: 12px;
}

.tema-toggle button .nav-icon {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
}

.tema-toggle button:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tema-toggle button.ativo {
  background: var(--sidebar-active);
}

.app-main {
  padding: 28px 32px 48px;
  min-width: 0;
}

.lead {
  max-width: 720px;
  color: var(--muted);
  margin: 8px 0 18px;
}

.eq-import {
  grid-template-columns: minmax(220px, 1.4fr) auto auto auto;
}

.cadastro-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin: 0;
}

.cadastro-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px 18px;
  margin: 8px 0 18px;
}

.cadastro-panel-title {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink);
}

.cadastro-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.file-drop {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  min-width: min(280px, 100%);
  padding: 8px 14px;
  border: 1px dashed var(--accent);
  background: var(--soft);
  border-radius: var(--radius);
  color: var(--accent-2);
  cursor: pointer;
}

.file-drop input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.file-drop.has-file {
  border-style: solid;
  background: var(--soft-2);
}

.file-drop svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.file-drop strong,
.file-drop small {
  display: block;
}

.file-drop strong {
  font-size: 13px;
  color: var(--ink);
}

.file-drop small {
  font-size: 11px;
  color: var(--muted);
}

.btn-ico {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-ico svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-refresh {
  background: #0e7490;
  border: 0;
  color: #e8fbff;
}

.btn-refresh:hover {
  background: #155e75;
}

.btn-download {
  background: #15803d;
  border: 0;
  color: #fff;
}

.btn-download:hover {
  background: #166534;
}

.cadastro-stats article {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-ico {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-ico svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cadastro-stats strong.stat-origem {
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.25;
  word-break: break-word;
}

.busca-wrap {
  position: relative;
}

.busca-wrap svg {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 16px;
  height: 16px;
  transform: translateY(-50%);
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}

.busca-wrap input {
  padding-left: 34px;
  width: 100%;
}

.file-label input[type="file"] {
  height: auto;
  padding: 7px 8px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
}

.button-link.btn-download {
  background: #15803d;
  border: 0;
  color: #fff;
}

.button-link.btn-download:hover {
  background: #166534;
}

.eq-busca {
  max-width: 420px;
  margin: 0;
}

.lista-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px 24px;
  margin: 0 0 12px;
}

.lista-hint {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.rel-intg {
  grid-template-columns: 1.5fr 1fr 1fr auto;
}

.rel-toolbar {
  display: flex;
  gap: 16px;
  align-items: end;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.rel-toolbar .eq-busca {
  margin: 0;
}

.rel-export {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}

.sit {
  font-size: 12px;
  font-weight: 650;
}

.sit-cta_e_pims { color: var(--ok); }
.sit-cta_sem_pims { color: var(--danger); }
.sit-pims_sem_cta { color: var(--warn); }

.rel-title {
  margin: 28px 0 12px;
  font-size: 16px;
  font-weight: 650;
}

.dash-periodo {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.dash-periodo strong {
  color: var(--ink);
  font-weight: 650;
}

.dash-periodo a {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 650;
}

.dash-periodo a:hover {
  text-decoration: underline;
}

.dash-periodo-card {
  margin: 0 0 10px;
  font-size: 12px;
}

.table-rel {
  min-width: 720px;
}

#relStats,
#deparaStats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#pendStats,
#intgStats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eq-stats strong {
  font-size: 16px;
}

#eqStats,
#fnStats,
#usrStats,
#audStats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#eqArquivoNome,
#eqQuando,
#fnArquivoNome,
#fnQuando {
  font-size: 15px;
  letter-spacing: 0;
}

#eqArquivoNome.stat-origem,
#fnArquivoNome.stat-origem {
  font-size: 14px;
}

.top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--muted);
}

h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  max-width: 340px;
  color: var(--muted);
}

.filters {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr auto;
  gap: 14px;
  align-items: end;
  margin: 22px 0 18px;
}

#relFiltros {
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr 1fr auto;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

label.file-drop {
  flex-direction: row;
  font-size: 13px;
}

input, select, button {
  font: inherit;
  color: var(--ink);
}

input[type="date"], input[type="text"], input[type="password"], input[type="email"], input[type="search"], input[type="time"], input[type="number"], select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
}

textarea {
  font: inherit;
  color: var(--ink);
  min-height: 84px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  resize: vertical;
}

.form-config .rel-title {
  margin: 12px 0 0;
}

.pims-login {
  margin-top: 0;
  padding-top: 0;
  grid-template-columns: 1fr 1fr 1fr auto 1.2fr;
  align-items: end;
}

.form-config {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  max-width: 760px;
  margin: 8px 0 24px;
}

.form-config .span-2,
.form-config .form-actions {
  grid-column: 1 / -1;
}

#formIntegracao {
  max-width: none;
}

.ep-table {
  min-width: 1100px;
}

.ep-table input,
.ep-table select {
  height: 32px;
  width: 100%;
}

.ep-table .ep-path {
  min-width: 240px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.ep-table .ep-ping {
  width: 16px;
  height: 16px;
  margin: 0 auto;
  display: block;
}

.ponto-table {
  min-width: 760px;
}

.ponto-table input,
.ponto-table select {
  height: 32px;
  width: 100%;
}

.catalogo-sistemas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 14px;
}

.catalogo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  min-width: 0;
}

.catalogo-card h3 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 650;
}

.catalogo-card p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
}

.catalogo-card table {
  min-width: 0;
  font-size: 12px;
}

.catalogo-card th,
.catalogo-card td {
  padding: 5px 8px;
  vertical-align: middle;
}

.catalogo-id {
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

@media (max-width: 900px) {
  .catalogo-sistemas {
    grid-template-columns: 1fr;
  }
}

.ponto-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.sched-table {
  min-width: 1180px;
}

.sched-table select,
.sched-table input[type="time"],
.sched-table input[type="number"] {
  height: 32px;
  width: 100%;
}

.sched-quando {
  min-width: 210px;
}

.sched-quando-campos {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sched-quando-campos .sc-hora {
  width: 110px;
  flex: 0 0 110px;
}

.sched-quando-campos .sc-intervalo {
  width: 90px;
  flex: 0 0 90px;
}

.sched-quando-campos .sc-dia {
  min-width: 110px;
}

.sched-ativo {
  text-align: center;
  width: 70px;
}

.sched-ativo input {
  width: 16px;
  height: 16px;
  margin: 0 auto;
  display: block;
}

.sched-ultima {
  min-width: 180px;
  font-size: 12px;
  color: var(--muted, #64748b);
}

.sched-ultima strong {
  display: block;
  color: inherit;
  font-weight: 600;
}

.sched-status {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.sched-status.ok {
  background: #dcfce7;
  color: #166534;
}

.sched-status.erro {
  background: #fee2e2;
  color: #991b1b;
}

.sched-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sched-acoes .primary,
.sched-acoes .secondary {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.ep-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.ep-acoes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ep-acoes .primary,
.ep-acoes .secondary {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.sobre {
  margin: 8px 0 0;
  max-width: 720px;
}

.sobre div {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.sobre dt {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.sobre dd {
  margin: 0;
  font-size: 15px;
}

#intStatus {
  font-size: 18px;
}

.check {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  height: 38px;
  color: var(--ink);
  font-size: 13px;
}

.check input { accent-color: var(--accent); }

.form-config .check {
  height: auto;
  min-height: 38px;
}

button {
  height: 38px;
  padding: 0 16px;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary {
  background: var(--accent);
  color: #e8fbff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary:hover { background: var(--accent-2); }

button.is-loading,
.primary.is-loading:disabled {
  opacity: 1;
}

.btn-spin {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex: 0 0 auto;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding: 24px;
}

.app-loading[hidden] {
  display: none;
}

.app-loading p {
  margin: 0;
  max-width: 360px;
  color: var(--muted);
  font-weight: 500;
}

body.is-busy {
  cursor: wait;
}

body.is-busy .app-main {
  pointer-events: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  color: var(--muted);
  font-size: 14px;
}

.loading-overlay[hidden] {
  display: none;
}

.loading-overlay p {
  margin: 0;
}

.secondary {
  background: var(--soft);
  border: 1px solid var(--accent);
  color: var(--accent-2);
  border-radius: var(--radius);
}

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

.rel-export [data-export="pdf"] {
  background: #be123c;
  border: 0;
  color: #fff;
}

.rel-export [data-export="pdf"]:hover {
  background: #9f1239;
}

.rel-export [data-export="xlsx"] {
  background: #15803d;
  border: 0;
  color: #fff;
}

.rel-export [data-export="xlsx"]:hover {
  background: #166534;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.stats article {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: var(--radius-lg);
}

.stats strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.stats article.stat-diesel strong {
  color: #0f766e;
}

.stats article.stat-gasolina strong {
  color: #d97706;
}

.stats span {
  color: var(--muted);
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.actions .check {
  height: auto;
}

tr.ok td { color: var(--ok); }
tr.erro td { color: var(--danger); }

.hint, .status {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.status.error { color: var(--danger); }
.status.ok { color: var(--ok); }

#page-depara-eq .table-wrap-depara-eq {
  overflow: visible;
  max-height: none;
}

#page-depara-eq .table-wrap-depara-eq table {
  min-width: 0;
}

#page-depara-eq .depara-eq-toolbar {
  align-items: end;
  gap: 12px 16px;
}

#page-depara-eq .depara-eq-edit {
  background: var(--paper);
}

#page-depara-eq .depara-eq-edit td {
  padding-top: 10px;
  padding-bottom: 12px;
  vertical-align: middle;
}

#page-depara-eq .depara-eq-edit-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

#page-depara-eq .depara-eq-edit select {
  min-width: 240px;
  max-width: 100%;
}

#page-depara-eq .depara-eq-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 12px;
}

#page-depara-eq .sit-pendente {
  color: var(--warn);
}

.table-wrap {
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  position: relative;
  min-height: 160px;
}

#abastTableWrap {
  overflow: hidden;
}

#abastTableWrap table {
  min-width: 0;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 10px 0 4px;
}

.pager-info {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.pager-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pager-btn {
  min-width: 36px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  font-size: 13px;
}

.pager-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-2);
}

.pager-btn.is-atual {
  background: var(--accent);
  border-color: var(--accent);
  color: #e8fbff;
}

.pager-btn:disabled {
  opacity: 0.4;
}

.pager-gap {
  color: var(--muted);
  padding: 0 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

th, td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-2);
  background: var(--th);
  font-weight: 650;
  position: sticky;
  top: 0;
}

.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-weight: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.th-sort:hover,
.th-sort:focus-visible {
  color: var(--accent);
}

.th-sort-ind {
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
}

td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

th.ok-col, td.ok-col {
  text-align: center;
  width: 44px;
  padding-left: 8px;
  padding-right: 8px;
}

th.ok-col.intg-col,
td.ok-col.intg-col {
  width: auto;
  min-width: 5.5rem;
  white-space: nowrap;
}

td.ok-col input[type="checkbox"],
th.ok-col input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.mark-ok,
.mark-no,
.mark-done,
.mark-wait {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.mark-ok {
  color: #e8fbff;
  background: var(--ok);
}

.mark-no {
  color: #e8fbff;
  background: var(--warn);
}

.mark-done {
  color: #e8fbff;
  background: #1f4e79;
}

.mark-done.mark-auto {
  background: #0f766e;
}

.mark-wait {
  color: var(--muted);
  background: transparent;
  font-weight: 500;
}

.mark-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.badge-auto,
.badge-xml {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  padding: 3px 5px;
  border-radius: 4px;
}

.badge-auto {
  color: #0f766e;
  background: #ccfbf1;
}

.badge-xml {
  color: #1e3a5f;
  background: #dbeafe;
}

[data-tema="escuro"] .badge-auto {
  color: #99f6e4;
  background: #134e4a;
}

[data-tema="escuro"] .badge-xml {
  color: #bfdbfe;
  background: #1e3a5f;
}

td.intg-col {
  min-width: 4.5rem;
}

tr.row-done td {
  background: var(--row-done);
}

tr.row-ok td:first-child { color: inherit; }

tr.empty td {
  text-align: center;
  color: var(--muted);
  padding: 36px 12px;
}

.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 0;
}

.dash-head .rel-title {
  margin: 0;
}

.dash-head-acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dash-consumo-filtros {
  margin: 12px 0 4px;
  align-items: end;
}

.dash-consumo-filtros label {
  min-width: 0;
}

#dashConsumoStats[data-modo="real"] .dash-stat-media { display: none !important; }
#dashConsumoStats[data-modo="media"] .dash-stat-real { display: none !important; }

.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 8px;
}

.svc-resumo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 16px;
}

.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 14px;
  min-height: 132px;
  border-radius: var(--radius-lg);
}

.svc-hero {
  min-height: 148px;
  border-width: 2px;
}

.svc-hero.svc-ok { border-color: var(--ok); }
.svc-hero.svc-erro { border-color: var(--danger); }
.svc-hero.svc-pendente { border-color: var(--warn); }

.svc-hero h3 {
  font-size: 18px;
}

.svc-hero .svc-status {
  font-size: 22px;
}

.svc-sistema {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.svc h3 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 650;
}

.svc-status {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 650;
}

.svc-ok .svc-status { color: var(--ok); }
.svc-erro .svc-status { color: var(--danger); }
.svc-pendente .svc-status { color: var(--warn); }
.svc-wait .svc-status { color: var(--muted); }

.svc-msg,
.svc-ms {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.svc-ms { margin-top: 8px; }

.dash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0 24px;
}

.chart-wide {
  grid-column: 1 / -1;
}

.chart-wide .chart {
  min-height: 300px;
}

.chart-legend-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 8px;
}

#dashConsumoStats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.chart-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px 10px;
  min-width: 0;
  border-radius: var(--radius-lg);
}

.chart-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 650;
}

.chart-cap {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.chart {
  min-height: 220px;
}

.chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.chart-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 36px 8px;
  text-align: center;
}

#dashStats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.donut-wrap {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.chart-legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

.chart-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-size: 13px;
}

.chart-legend span {
  width: 10px;
  height: 10px;
  display: inline-block;
  flex: 0 0 10px;
}

@media (max-width: 1200px) {
  .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body.app { grid-template-columns: 1fr; }
  .sidebar { padding: 16px; min-height: 0; max-height: none; position: static; overflow: visible; }
  .app-main { padding: 18px; }
  .top { flex-direction: column; align-items: start; }
  .filters { grid-template-columns: 1fr 1fr; }
  .rel-intg { grid-template-columns: 1fr 1fr; }
  .eq-import { grid-template-columns: 1fr; }
  .form-config { grid-template-columns: 1fr; }
  .sobre div { grid-template-columns: 1fr; }
  .stats,
  #relStats,
  #deparaStats,
  #pendStats,
  #intgStats,
  #veiStats,
  #abastRelStats { grid-template-columns: 1fr; }
  .svc-grid,
  .svc-resumo,
  .dash-charts { grid-template-columns: 1fr; }
  #dashStats,
  #dashConsumoStats { grid-template-columns: 1fr; }
  .donut-wrap { grid-template-columns: 1fr; }
}

/* Modal de confirmação */
.ui-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.ui-dialog[hidden] {
  display: none !important;
}
.ui-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 28, 34, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.ui-dialog-panel {
  position: relative;
  width: min(420px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(14, 50, 58, 0.28);
  padding: 22px 22px 18px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px 16px;
  animation: uiDialogIn 0.18s ease-out;
}
@keyframes uiDialogIn {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.ui-dialog-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.16);
  overflow: hidden;
  padding: 6px;
}
.ui-dialog-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ui-dialog[data-tone="warn"] .ui-dialog-icon,
.ui-dialog[data-tone="danger"] .ui-dialog-icon,
.ui-dialog[data-tone="info"] .ui-dialog-icon {
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.16);
}
.ui-dialog-content {
  min-width: 0;
}
.ui-dialog-content h2 {
  margin: 2px 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
  color: var(--ink);
}
.ui-dialog-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}
.ui-dialog-body p {
  margin: 0 0 8px;
}
.ui-dialog-body p:last-child {
  margin-bottom: 0;
}
.ui-dialog-body ul {
  margin: 8px 0 0;
  padding-left: 1.15em;
}
.ui-dialog-body li {
  margin: 4px 0;
}
.ui-dialog-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ui-dialog-actions .primary,
.ui-dialog-actions .secondary {
  min-width: 108px;
}
@media (max-width: 480px) {
  .ui-dialog-panel {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .ui-dialog-actions {
    flex-direction: column-reverse;
  }
  .ui-dialog-actions .primary,
  .ui-dialog-actions .secondary {
    width: 100%;
  }
}

.sobre-card {
  margin: 18px 0 24px;
  padding: 18px 20px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel, var(--card, #fff));
  max-width: 720px;
}
.sobre-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.sobre-card-head h2 { margin: 0; font-size: 1.25rem; }
.sobre-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.sobre-logo {
  border-radius: 10px;
  object-fit: contain;
  background: #fff;
}
.sobre-desc {
  margin: 0 0 8px;
  line-height: 1.5;
  color: var(--muted);
}
.login-legal {
  margin: 14px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
.login-legal a { color: inherit; }
.lgpd-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}
.lgpd-modal[hidden] { display: none !important; }
.lgpd-modal-panel {
  width: min(560px, 100%);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: var(--panel, #fff);
  color: var(--ink, #0f172a);
  border-radius: 14px;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}
.lgpd-modal-panel h2 { margin: 0 0 8px; font-size: 1.25rem; }
.lgpd-lead { margin: 0 0 12px; color: var(--muted); line-height: 1.45; }
.lgpd-scroll {
  max-height: 240px;
  overflow: auto;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg, #f8fafc);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.lgpd-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  margin-bottom: 8px;
}
.lgpd-actions { display: flex; justify-content: flex-end; margin-top: 10px; }
.tour-overlay { position: fixed; inset: 0; z-index: 11000; }
.tour-overlay[hidden] { display: none !important; }
.tour-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}
.tour-spotlight {
  position: absolute;
  border-radius: 10px;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.5);
  outline: 2px solid #0891b2;
  pointer-events: none;
  transition: top 0.2s, left 0.2s, width 0.2s, height 0.2s;
  z-index: 1;
}
.tour-card {
  position: absolute;
  z-index: 2;
  width: min(420px, calc(100vw - 32px));
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--panel, #fff);
  color: var(--ink, #0f172a);
  border-radius: 14px;
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}
.tour-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tour-card h2 { margin: 0 0 8px; font-size: 1.15rem; }
.tour-card p { margin: 0; line-height: 1.45; color: var(--muted); font-size: 14px; }
.tour-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.tour-nav { display: flex; gap: 8px; }
body.tour-active .sidebar a.tour-alvo,
body.tour-active .sidebar details.tour-alvo > summary {
  position: relative;
  z-index: 11002;
  background: #ecfeff;
  color: #0f172a;
  border-radius: 8px;
  outline: 2px solid #22d3ee;
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.35);
}

body.tour-active .sidebar a.tour-alvo .nav-icon,
body.tour-active .sidebar details.tour-alvo > summary .nav-icon {
  color: #0f172a;
  stroke: currentColor;
}
