/* Partes próprias do site do ERP, por cima de site.css (herdado do site do YPOS). */

/* Logótipo da app no cabeçalho, em vez do ícone */
.brand-mark { background: none; overflow: hidden; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-text strong b { color: var(--brand); font-weight: 800; }
.brand-mini img { width: 16px; height: 16px; border-radius: 4px; }

/* Hero: o texto por cima e o navegador por baixo, a toda a largura */
.hero { grid-template-columns: 1fr; gap: 36px; }
.hero-copy { display: grid; grid-template-columns: 1.5fr 1fr; gap: 12px 48px; align-items: end; }
.hero-copy > .eyebrow,
.hero-copy > h1 { grid-column: 1; }
.hero-copy > h1 { margin-bottom: 0; }
.hero-side { grid-column: 2; grid-row: 1 / span 2; }
.hero-meta { margin-top: 18px; }
.hero-actions { grid-column: 1 / -1; margin-top: 8px; }
.hero-shot { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }

/* ---------- Módulos ---------- */
.mods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mod {
  --mc: var(--brand);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1.5px solid var(--rule);
  border-top: 4px solid var(--mc);
  border-radius: 6px 6px var(--radius) var(--radius);
  background: var(--paper);
}

.mod-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.mod-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: var(--mc);
  background: color-mix(in srgb, var(--mc) 14%, transparent);
  flex-shrink: 0;
}
.mod h3 { font-size: 17px; font-weight: 700; line-height: 1.2; }
.mod-price { font-size: 13px; color: var(--ink-3); }
.mod-price b { color: var(--ink); font-weight: 700; }
.mod-tagline { font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; }
.mod ul { list-style: none; margin-bottom: 18px; }
.mod li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.mod li + li { margin-top: 6px; }
.mod li::before {
  content: "\F012C"; /* mdi-check */
  font-family: "Material Design Icons";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 17px;
  line-height: 1.2;
  color: var(--mc);
}
.mod-links { display: flex; gap: 16px; flex-wrap: wrap; margin-top: auto; font-size: 14px; font-weight: 600; }
.mod-links a { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; color: var(--brand-ink); }
.mod-links a:hover { text-decoration: underline; }
.mod-links .mdi { font-size: 18px; }

.mod-base {
  grid-column: span 2;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  border-top-color: var(--ink-3);
  background: var(--sheet);
}
.mod-base .mod-head { margin: 0; }
.mod-base p { flex: 1 1 320px; font-size: 14.5px; color: var(--ink-2); }
.mod-base .mod-links { margin: 0; }

/* ---------- Preços por módulo ---------- */
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.presets > span { font-size: 13px; color: var(--ink-3); align-self: center; margin-right: 4px; }
.presets button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--rule);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color 0.15s, color 0.15s;
}
.presets button:hover { border-color: var(--brand); color: var(--brand-ink); }
.presets .mdi { font-size: 17px; color: var(--brand); }

.pricing {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
}

.price-list { display: flex; flex-direction: column; gap: 10px; }

.price-row {
  --mc: var(--brand);
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.price-row:hover { border-color: var(--mc); }
.price-row.on {
  border-color: var(--mc);
  background: var(--sheet);
  box-shadow: 4px 4px 0 -1px var(--mc);
}
.price-row:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.price-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }

.pr-check {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid var(--ink-3);
  display: grid;
  place-items: center;
  color: transparent;
  font-size: 18px;
  background: var(--sheet);
  transition: background 0.15s, color 0.15s;
}
.price-row.on .pr-check { background: var(--mc); border-color: var(--mc); color: #fff; }

.pr-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pr-main .mod-icon { width: 38px; height: 38px; font-size: 21px; border-radius: 10px; }
.pr-main strong { display: block; font-size: 15.5px; font-weight: 700; }
.pr-main small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.35; }
.pr-price { text-align: right; white-space: nowrap; }
.pr-price b { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.pr-price span { display: block; font-size: 11.5px; color: var(--ink-3); }

.quote {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: 22px;
  border: 1.5px solid var(--rule-strong);
  border-radius: var(--radius);
  background: var(--sheet);
  box-shadow: 6px 6px 0 -1px var(--brand);
}

.quote h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 14px; }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  background: var(--paper);
  margin-bottom: 16px;
}
.seg button { min-height: 34px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); line-height: 1.2; padding: 4px; }
.seg button[aria-pressed="true"] { background: var(--sheet); color: var(--brand-ink); font-weight: 600; box-shadow: 0 0 0 1.5px var(--rule); }
.seg small { color: var(--accent-ink); font-weight: 700; }

.users { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; font-size: 14px; font-weight: 600; }
.users small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--rule); border-radius: 10px; flex-shrink: 0; }
.stepper button { width: 34px; height: 34px; font-size: 18px; color: var(--ink-2); display: grid; place-items: center; }
.stepper button:hover { color: var(--brand-ink); }
.stepper output { min-width: 32px; text-align: center; font-weight: 700; }

.q-lines { list-style: none; font-size: 14px; border-top: 1px dashed var(--rule); padding-top: 12px; }
.q-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; color: var(--ink-2); }
.q-lines li b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.q-lines .q-off b { color: var(--ok); }
.q-lines .q-empty { color: var(--ink-3); font-style: italic; }

.q-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin: 14px 0 6px; padding-top: 14px; border-top: 1.5px solid var(--rule-strong); }
.q-total span { font-size: 13px; color: var(--ink-3); }
.q-total b { font-size: 32px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.q-total b small { font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.q-note { font-size: 12.5px; color: var(--ink-3); margin-bottom: 16px; min-height: 1.4em; }
.quote .btn { width: 100%; }
.quote .btn + .btn { margin-top: 8px; }

.included { margin-top: 28px; padding: 18px 20px; border: 1.5px dashed var(--rule); border-radius: var(--radius); }
.included h3 { font-size: 15px; font-weight: 700; margin-bottom: 10px; }
.included ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 18px; }
.included li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-2); }
.included li::before { content: "\F012C"; font-family: "Material Design Icons"; position: absolute; left: 0; font-size: 17px; line-height: 1.2; color: var(--brand); }

.bundles { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.bundles span { padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; }

/* Tabela "que perfis cabem em cada módulo" */
.compare td.t { white-space: normal; }

@media (max-width: 1000px) {
  .mods { grid-template-columns: repeat(2, 1fr); }
  .mod-base { grid-column: 1 / -1; }
  .pricing { grid-template-columns: 1fr; }
  .quote { position: static; }
  .included ul { grid-template-columns: repeat(2, 1fr); }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-side { grid-column: 1; grid-row: auto; }
}

@media (max-width: 720px) {
  .mods { grid-template-columns: 1fr; }
  .included ul { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: auto 1fr; }
  .pr-price { grid-column: 2; text-align: left; }
  .pr-price span { display: inline; margin-left: 4px; }
  .screen-tabs { flex-wrap: wrap; justify-content: center; }
}

.btn-disabled { opacity: 0.45; pointer-events: none; }
