/*
 * 01-foundation.css
 * Tokens, reset, appbar, guide, importação e indicadores.
 * Projeto: Ahgora — Batidas Ímpares v1.8.0
 */

:root {
  --bg: #f3f6fb;
  --surface: #fff;
  --surface-2: #f8faff;
  --line: #dfe6f1;
  --line-2: #edf1f7;
  --ink: #172033;
  --muted: #667085;
  --muted-2: #98a2b3;
  --brand: #174ea6;
  --brand-2: #1e63d6;
  --brand-soft: #eaf2ff;
  --cyan: #0e7490;
  --cyan-soft: #e7f8fc;
  --red: #b42318;
  --red-soft: #fff0ef;
  --amber: #b54708;
  --amber-soft: #fff7e8;
  --green: #067647;
  --green-soft: #eafaf2;
  --violet: #5b43b5;
  --shadow: 0 12px 34px rgba(31, 50, 81, 0.08);
  --shadow-sm: 0 4px 14px rgba(31, 50, 81, 0.06);
  --radius: 15px;
  --radius-sm: 10px;
  --topbar: 72px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: linear-gradient(
    180deg,
    #eef4ff 0,
    #f5f7fb 160px,
    #f3f6fb 100%
  );
  color: var(--ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
svg {
  display: block;
}
.appbar {
  min-height: var(--topbar);
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(214, 223, 236, 0.95);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.brand-mark {
  width: 41px;
  height: 41px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--brand-2), #0b3b83);
  box-shadow: 0 8px 20px rgba(23, 78, 166, 0.24);
  flex: 0 0 auto;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand h1 {
  font-size: 17px;
  line-height: 1.15;
  margin: 0;
  white-space: nowrap;
}
.brand p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 44vw;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #344054;
  border-radius: 9px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-weight: 750;
  transition: 0.16s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.02);
}
.btn:hover {
  transform: translateY(-1px);
  border-color: #b9c6d9;
  box-shadow: var(--shadow-sm);
}
.btn.primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: #fff;
  border-color: transparent;
}
.btn.soft {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: #cfe0ff;
}
.btn.danger {
  color: var(--red);
  background: var(--red-soft);
  border-color: #ffd3cf;
}
.btn.icon-only {
  width: 39px;
  padding: 0;
}
.btn svg,
.icon svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page {
  width: 100%;
  max-width: none;
  padding: 14px 15px 30px;
}
.guide {
  background: linear-gradient(135deg, #fff 0, #f7faff 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.guide-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line-2);
}
.guide-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-title .icon-box {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
}
.guide-title strong {
  display: block;
  font-size: 14px;
}
.guide-title span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.guide-toggle {
  border: 0;
  background: transparent;
  color: var(--brand);
  font-weight: 800;
  padding: 7px 8px;
  border-radius: 8px;
}
.guide-toggle:hover {
  background: var(--brand-soft);
}
.guide-body {
  padding: 13px 15px 14px;
}
.guide-body.collapsed {
  display: none;
}
.route {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.route-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d9e3f2;
  background: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 800;
  color: #344054;
}
.route-arrow {
  color: #98a2b3;
  font-weight: 900;
}
.steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 8px;
}
.step {
  position: relative;
  min-height: 108px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  padding: 10px 10px 9px;
}
.step-number {
  position: absolute;
  right: 8px;
  top: 7px;
  width: 21px;
  height: 21px;
  border-radius: 7px;
  background: #eef3fb;
  color: #526276;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}
.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f0f4fb;
  color: #45566d;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.step-icon svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-icon.dot-icon svg circle.fill {
  fill: currentColor;
  stroke: none;
}
.step strong {
  display: block;
  font-size: 11px;
  line-height: 1.35;
  padding-right: 18px;
}
.step p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.42;
}
.step em {
  font-style: normal;
  color: var(--brand);
  font-weight: 850;
}
.guide-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #eef6ff;
  border: 1px solid #d7e8ff;
  color: #36506f;
  font-size: 11px;
}
.guide-note strong {
  color: var(--brand);
}
.guide-link {
  white-space: nowrap;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  padding: 7px 10px;
  text-decoration: none;
  font-weight: 800;
}
.data-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 9px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
}
.file-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid var(--line);
  background: #fff;
  color: #475467;
  max-width: 420px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.privacy-note {
  color: var(--muted);
  font-size: 10px;
}
.drop-zone {
  display: none;
  margin-top: 10px;
  border: 1.5px dashed #9db6dc;
  border-radius: var(--radius);
  background: rgba(234, 242, 255, 0.64);
  padding: 17px;
  text-align: center;
  transition: 0.2s ease;
}
.drop-zone.show {
  display: block;
}
.drop-zone.drag {
  background: #dfeaff;
  border-color: var(--brand-2);
  transform: scale(0.997);
}
.drop-zone h3 {
  margin: 6px 0 3px;
  font-size: 14px;
}
.drop-zone p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.drop-zone .formats {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 9px;
  flex-wrap: wrap;
}
.format {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px 7px;
  font-weight: 800;
  font-size: 10px;
  color: #475467;
}
#fileInput {
  display: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(135px, 1fr));
  gap: 9px;
  margin-top: 10px;
}
.stat {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 11px;
  box-shadow: var(--shadow-sm);
  min-height: 82px;
  text-align: left;
  transition: 0.16s ease;
}
.stat:hover {
  transform: translateY(-1px);
  border-color: var(--accent, #9ab4db);
}
.stat.active {
  box-shadow:
    0 0 0 2px var(--accent, var(--brand)),
    var(--shadow-sm);
  border-color: transparent;
}
.stat::after {
  content: "";
  position: absolute;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  right: -22px;
  top: -22px;
  background: var(--accent-soft, var(--brand-soft));
}
.stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--accent, var(--brand));
  background: var(--accent-soft, var(--brand-soft));
  z-index: 1;
}
.stat-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stat-value {
  font-size: 23px;
  line-height: 1;
  margin-top: 6px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.stat-foot {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat-filter-hint {
  position: absolute;
  right: 9px;
  bottom: 7px;
  color: var(--accent, var(--brand));
  font-size: 9px;
  font-weight: 850;
}

/* === v1.8.0 guia vetorial inspirado na navegação do TOTVS === */
.totvs-route {
  align-items: stretch;
}
.route-app {
  min-height: 38px;
  padding: 6px 10px 6px 7px;
  border-color: transparent;
  box-shadow: 0 3px 8px rgba(22, 31, 52, 0.08);
}
.route-mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.route-mini-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.route-pontoweb {
  background: #1099d5;
  color: #fff;
}
.route-analytics {
  background: #2c2b35;
  color: #fff;
}
.route-paineis {
  background: #444350;
  color: #fff;
}
.route-batidas {
  background: #fff;
  color: #474452;
  border-color: #e1e3e8;
}
.route-batidas .route-mini-icon {
  color: #2c2d35;
}
.fingerprint-mini svg {
  width: 20px;
  height: 20px;
}
.totvs-steps {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  align-items: stretch;
}
.totvs-step {
  min-height: 250px;
  padding: 11px;
  display: flex;
  flex-direction: column;
}
.totvs-step > strong {
  margin-top: 10px;
}
.totvs-preview {
  width: 100%;
  min-height: 96px;
  border-radius: 9px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e1e4eb;
  box-shadow: 0 4px 10px rgba(24, 31, 50, 0.08);
}
.totvs-preview svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.preview-brand {
  background: #2f2e38;
  color: #fff;
}
.totvs-brand-lockup {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #e9e9ee;
}
.totvs-brand-lockup svg {
  width: 25px;
  height: 21px;
  stroke: none;
  fill: #fff;
}
.totvs-brand-lockup b {
  color: #fff;
  letter-spacing: -0.04em;
}
.preview-pontoweb {
  background: #109bd6;
  color: #fff;
}
.preview-pontoweb::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: #109bd6;
  transform: translateX(-50%) rotate(45deg);
}
.preview-pontoweb svg,
.preview-analytics svg,
.preview-paineis svg {
  width: 30px;
  height: 27px;
}
.preview-pontoweb span,
.preview-analytics span,
.preview-paineis span {
  font-size: 11px;
  font-weight: 700;
}
.preview-analytics {
  background: #2c2b35;
  color: #eaeaf0;
}
.preview-analytics svg {
  color: #d6dcf4;
}
.preview-paineis {
  min-height: 74px;
  flex-direction: row;
  justify-content: flex-start;
  padding: 0 18px;
  background: #44434f;
  color: #fff;
}
.preview-paineis svg {
  width: 25px;
  height: 25px;
  color: #d9ddff;
}
.preview-batidas {
  min-height: 132px;
  background: #fbfbfc;
  color: #44414c;
  padding: 12px 14px;
}
.preview-batidas svg {
  width: 48px;
  height: 48px;
  color: #2f3036;
}
.preview-batidas strong {
  font-size: 12px;
  color: #55505d;
}
.preview-batidas small {
  text-align: center;
  max-width: 150px;
  color: #77717e;
  font-size: 8.5px;
  line-height: 1.35;
}
.preview-download {
  min-height: 104px;
  background: #fff;
  padding: 18px 8px 8px;
  justify-content: flex-start;
}
.download-more {
  position: absolute;
  right: 8px;
  top: 4px;
  color: #9aa1ad;
  letter-spacing: 1px;
  font-weight: 900;
}
.download-action {
  width: calc(100% - 8px);
  min-height: 48px;
  border: 1px solid #d8dce5;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #26364e;
  font-size: 9.5px;
  font-weight: 850;
  box-shadow: 0 2px 5px rgba(31, 50, 81, 0.04);
}
.download-action svg {
  width: 16px;
  height: 16px;
}
.preview-formats {
  min-height: 144px;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 12px;
  background: #fff;
  color: #2f3140;
}
.formats-title {
  font-size: 10px;
  font-weight: 900;
}
.formats-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fafafa;
  border-radius: 6px;
  overflow: hidden;
}
.formats-tabs span {
  padding: 6px 3px;
  text-align: center;
  font-size: 8px;
  border: 1px solid transparent;
}
.formats-tabs span.active {
  border: 2px solid #4b45a9;
  border-radius: 6px;
  background: #fff;
  font-weight: 900;
}
.formats-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8px;
}
.formats-check i {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  background: #5149a9;
  color: #fff;
  font-style: normal;
  font-size: 9px;
}
.formats-button {
  align-self: flex-end;
  margin-top: auto;
  padding: 7px 11px;
  border-radius: 6px;
  background: #5149a9;
  color: #fff;
  font-size: 8px;
  font-weight: 850;
}
.totvs-step p {
  line-height: 1.55;
}
@media (max-width: 720px) {
  .totvs-step {
    min-height: 0;
  }
}

.preview-pontoweb {
  clip-path: polygon(0 0, 100% 0, 100% 88%, 56% 88%, 50% 100%, 44% 88%, 0 88%);
  border: 0;
  padding-bottom: 10px;
}
.preview-pontoweb::after {
  display: none;
}
