[hidden] { display: none !important; }
/* The standalone page uses the available width, excluding the scrollbar. */
body > .cd-menu, body > .cd-footer-modern { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
.pe-page { width: 100%; min-width: 0; }
.pe-hero { width: 100%; background-color: #00182e; background-size: cover; }
button, input, select { font: inherit; }
button:disabled { cursor: wait; opacity: .55; }
button:focus-visible, a:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid #03a7e3; outline-offset: 4px; }
.pe-skip { position: absolute; top: -100px; left: 20px; z-index: 10000; padding: 12px; background: white; color: #25129d; }
.pe-skip:focus { top: 12px; }
.pe-hero h1 { max-width: 700px; font-size: clamp(32px, 4.5vw, 56px); line-height: 1.12; }
.pe-hero p { max-width: 680px; }
.pe-hero .pe-step { text-decoration: none; min-height: 44px; padding: 12px 18px; font-size: 12px; }
.pe-hero a.pe-step:hover, .pe-hero a.pe-step:focus-visible { color: #fff; background: #ffffff20; border-color: #7be3ff; }
#consulta-ibscbs, #consulta-ibge, #consulta-tributos { scroll-margin-top: 24px; }
.pe-tools { padding: 0 0 68px; }
.pe-tools__grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: stretch; }
.pe-tool { min-width: 0; padding: 28px; border: 1px solid #dce3ed; border-radius: 18px; background: #fff; box-shadow: 0 12px 40px #00182e09; }
.pe-tool h2 { color: #25129d; font-size: 24px; line-height: 1.3; margin: 10px 0 12px; }
.pe-tool__intro { color: #667085; font-size: 13px; line-height: 1.7; min-height: 44px; }
.pe-tool__fields { display: grid; gap: 16px; margin: 20px 0 12px; }
.pe-tool__fields label { display: flex; flex-direction: column; gap: 8px; color: #14233b; font-weight: 700; font-size: 12px; }
.pe-tool__fields input, .pe-tool__fields select { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid #cfd7e5; border-radius: 9px; color: #14233b; background: white; font: inherit; font-weight: 400; font-size: 14px; }
.pe-tool__fields input:focus, .pe-tool__fields select:focus { outline: 2px solid #03a7e3; outline-offset: 2px; }
.pe-tool__fields input[aria-invalid="true"] { border-color: #b95252; }
.pe-tool__fields select:disabled { color: #8791a0; background: #f5f7fb; }
.pe-select { position: relative; min-width: 0; font-weight: 400; }
.pe-select__trigger { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 48px; padding: 12px 18px 12px 14px; border: 1px solid #cfd7e5; border-radius: 9px; background: #fff; color: #14233b; font: inherit; font-size: 14px; text-align: left; }
.pe-select__trigger svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: #25129d; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.pe-select__trigger[aria-expanded="true"] { border-color: #25129d; box-shadow: 0 0 0 3px #25129d12; }
.pe-select__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.pe-select__trigger:disabled { color: #8791a0; background: #f5f7fb; opacity: 1; cursor: default; }
.pe-select__trigger:disabled svg { stroke: #9aa4b2; }
.pe-select__value { min-width: 0; overflow-wrap: anywhere; }
.pe-select__popup { position: absolute; z-index: 100; top: calc(100% + 7px); left: 0; right: 0; padding: 10px; border: 1px solid #d9d2f4; border-radius: 12px; background: #fff; box-shadow: 0 14px 35px #00182e24; }
.pe-tool__fields .pe-select__popup input { min-height: 40px; margin-bottom: 8px; padding: 9px 12px; border-color: #dcd6f5; background: #faf9ff; font-size: 13px; }
.pe-select__options { max-height: 230px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #b5a9e8 #f5f3fc; }
.pe-select__option { padding: 10px 12px; margin: 2px 0; border-radius: 7px; color: #14233b; font-size: 13px; font-weight: 400; line-height: 1.5; cursor: pointer; }
.pe-select__option:hover, .pe-select__option--active { color: #25129d; background: #f0edff; }
.pe-select__option[aria-selected="true"] { color: #25129d; background: #eae5ff; font-weight: 700; }
.pe-select__empty { padding: 12px; color: #667085; font-size: 12px; font-weight: 400; }
.pe-tool__basis { margin: 20px 0 0; color: #667085; font-size: 11px; line-height: 1.7; }
.pe-tool__result { margin-top: 20px; padding: 18px; border: 1px solid #ded8ff; border-radius: 12px; background: #f5f2ff; }
.pe-tool__result-name { display: block; font-size: 12px; line-height: 1.6; margin-bottom: 12px; color: #526176; }
.pe-tool__code { position: relative; padding-right: 40px; }
.pe-tool__code > span { display: block; font-size: 11px; color: #667085; }
.pe-tool__code > strong { display: block; margin-top: 6px; color: #25129d; font-size: 28px; letter-spacing: .02em; }
.pe-tool__code .pe-copy { right: 0; top: 8px; }
.pe-tax-result { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 20px; }
.pe-tax-cell { position: relative; min-width: 0; padding: 14px 10px 45px; border: 1px solid #dce3ed; border-radius: 10px; background: #f8faff; }
.pe-tax-cell > span { display: block; color: #667085; font-size: 10px; font-weight: 700; line-height: 1.6; }
.pe-tax-cell > strong { display: block; margin-top: 10px; color: #25129d; font-size: clamp(16px,1.6vw,23px); overflow-wrap: anywhere; }
.pe-tax-cell .pe-copy { top: auto; bottom: 7px; right: 6px; }
@media (max-width: 820px) { .pe-tools__grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .pe-tool { padding: 22px 16px; } .pe-tool h2 { font-size: 22px; } .pe-tool__intro { min-height: 0; } }
.pe-source-scope { color: #526176; font-size: 12px; line-height: 1.7; }
.pe-search-card .pe-source-scope { margin-top: 16px; }
.pe-status { margin-top: 16px; font-size: 13px; color: #526176; }
.pe-suggestion__code small { display: block; font-weight: 400; font-size: 10px; margin-top: 5px; }
.pe-suggestion { grid-template-columns: 120px 110px minmax(0, 1fr) 20px; }
.pe-suggestion__code, .pe-suggestion__item { min-width: 0; color: #25129d; font-size: 12px; font-weight: 800; line-height: 1.5; }
.pe-suggestion__label { display: block; margin-bottom: 3px; color: #667085; font-size: 10px; font-weight: 700; }
.pe-suggestion__total { display: inline-flex; width: fit-content; margin-top: 8px; padding: 4px 8px; border: 1px solid #dcd6ff; border-radius: 6px; background: #f0edff; color: #25129d; font-size: 10px; font-weight: 700; line-height: 1.4; }
.pe-services, .pe-scenario-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.pe-service, .pe-scenario { display: flex; flex-direction: column; gap: 9px; align-items: flex-start; padding: 20px; background: #fbfcff; border: 1px solid #dce3ed; border-radius: 12px; text-align: left; color: #14233b; min-width: 0; line-height: 1.6; }
.pe-service:hover, .pe-scenario:hover { border-color: #25129d; background: #f4f2ff; }
.pe-service strong, .pe-scenario strong { font-size: 16px; color: #25129d; }
.pe-service span, .pe-scenario span { font-size: 13px; }
.pe-service small, .pe-scenario small { color: #526176; font-size: 11px; }
.pe-badge { display: inline-block; width: fit-content; padding: 4px 8px; border-radius: 5px; background: #fff2d2; color: #6c4711; font-size: 10px !important; font-weight: 700; }
.pe-badge--reviewed { color: #215344; background: #e6f5ef; }
.pe-results h3 { margin-top: 28px; font-size: 20px; color: #25129d; }
.pe-results h4 { color: #25129d; font-size: 18px; }
.pe-results details { margin-top: 20px; padding: 15px; border: 1px solid #dce3ed; border-radius: 10px; }
.pe-results summary { cursor: pointer; color: #25129d; font-size: 13px; font-weight: 700; line-height: 1.6; }
.pe-operation { border-top: 1px solid #dce3ed; padding-top: 28px; margin-top: 28px; }
.pe-operation h3 { margin-top: 8px; line-height: 1.5; }
.pe-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.pe-filters label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 700; }
.pe-filters select { width: 100%; min-height: 44px; padding: 10px; border: 1px solid #b9c4d3; border-radius: 8px; color: #14233b; background: white; }
.pe-scenario[aria-pressed="true"] { border: 2px solid #25129d; background: #f0edff; padding: 19px; }
.pe-scenario__action { margin-top: auto; padding-top: 10px; color: #25129d; font-weight: 700; }
.pe-scenario-detail { border-top: 1px solid #dce3ed; margin-top: 24px; padding-top: 10px; }
.pe-notice { font-size: 12px; color: #665017; }
.pe-trace p { color: #526176; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.pe-scenario-detail > .pe-button { margin-top: 20px; }
.pe-copy { width: 32px; height: 32px; top: 12px; right: 10px; color: #68758a; background: transparent; border: 1px solid transparent; border-radius: 8px; transition: color .15s, background .15s, border-color .15s; }
.pe-copy svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pe-copy:hover { color: #25129d; background: #efecff; border-color: #ddd6fc; }
.pe-copy:active { background: #e4deff; }
.pe-recent-card { min-height: 238px; }
.pe-recent-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pe-recent-card__meta { margin-top: auto; padding-top: 16px; }
.pe-recent-card__meta b, .pe-recent-card__meta em { max-width: 100%; overflow-wrap: anywhere; }
.pe-recent-card__meta .pe-recent-card__local { flex-basis: 100%; }
.pe-service-results { display: grid; gap: 16px; }
.pe-service-result { min-width: 0; padding: 18px; border: 1px solid #dce3ed; border-radius: 12px; background: #f8faff; }
.pe-service-result__description { display: grid; grid-template-columns: minmax(160px, 1fr) 3fr; gap: 12px; }
.pe-service-result__locations { display: grid; gap: 12px; margin-top: 12px; }
.pe-service-result__pair { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(0, 2fr); gap: 12px; }
.pe-service-result .pe-button { margin-top: 14px; }
.pe-wizard__progress { display: flex; justify-content: space-between; color: #667085; font-size: 12px; font-weight: 700; }
.pe-wizard__track { height: 6px; margin: 12px 0 24px; border-radius: 99px; overflow: hidden; background: #ebe8f8; }
.pe-wizard__track > span { display: block; height: 100%; background: linear-gradient(90deg, #25129d, #03a7e3); border-radius: inherit; transition: width .25s ease; }
.pe-wizard__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pe-wizard__tabs button { display: flex; align-items: center; gap: 8px; padding: 12px; border: 1px solid #dce3ed; border-radius: 10px; background: #fff; color: #667085; font-size: 12px; font-weight: 700; }
.pe-wizard__tabs button span { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #eef1f6; }
.pe-wizard__tabs button[aria-selected="true"] { color: #25129d; background: #f0edff; border-color: #c8bcff; }
.pe-wizard__tabs button[aria-selected="true"] span { color: white; background: #25129d; }
.pe-wizard__tabs button[data-done="true"] span { color: #fff; background: #19805b; }
.pe-wizard__tabs button[data-done="true"] { color: #176149; background: #e8f6ef; border-color: #b9dfce; }
.pe-wizard__tabs button:disabled { cursor: default; opacity: .5; }
.pe-wizard__context { margin-top: 28px; margin-bottom: 24px; padding: 22px 24px; border: 1px solid #d8d2ef; border-radius: 12px; background: #f5f3fc; box-shadow: 0 4px 14px rgba(37,18,157,.04); }
.pe-wizard__context h2 { font-size: 18px; line-height: 1.5; margin-top: 6px; }
.pe-wizard__context-row, .pe-wizard__completion-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pe-wizard__context-row h2 { flex: 1; min-width: 0; margin-bottom: 6px; }
.pe-wizard__context-row .pe-result-meta { flex-shrink: 0; margin: 6px 0; justify-content: flex-end; }
.pe-wizard__context-row { align-items: flex-start; }
.pe-wizard__activity { flex: 1; min-width: 0; }
.pe-wizard__cnae { flex-shrink: 0; text-align: right; }
.pe-wizard__context .pe-kicker { color: #525b6a; }
.pe-wizard__context-row h2 { margin-top: 12px; }
.pe-wizard__cnae .pe-result-meta { margin-top: 12px; }
.pe-wizard__context .pe-chip { padding: 11px 15px; font-size: 15px; line-height: 1.5; border-radius: 9px; }
.pe-wizard .pe-wizard__title { margin: 24px 0 8px; color: #25129d; font-size: clamp(20px, 3vw, 26px); line-height: 1.4; }
.pe-wizard__subtitle { margin: 0 0 20px; color: #667085; font-size: 13px; line-height: 1.7; }
.pe-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pe-choice { position: relative; display: flex; align-items: center; gap: 12px; border: 1px solid #dce3ed; border-radius: 12px; padding: 20px; background: #fbfcff; cursor: pointer; line-height: 1.7; }
.pe-choice:hover { border-color: #aaa0de; }
.pe-choice:has(input:checked) { border: 2px solid #25129d; padding: 19px; background: #f4f1ff; box-shadow: 0 0 0 3px #25129d0a; }
.pe-choice:focus-within { outline: 3px solid #03a7e344; outline-offset: 2px; }
.pe-choice input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: #25129d; }
.pe-choice strong { display: block; font-size: 13px; font-weight: 700; color: #14233b; }
.pe-choice__heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.pe-choice__suggested { display: inline-flex; padding: 3px 9px; border: 1px solid #c5e6d9; border-radius: 6px; color: #21634d; background: #e8f6ef; font-size: 10px; line-height: 1.5; font-weight: 700; white-space: nowrap; }
.pe-choice small { display: block; margin-top: 7px; color: #667085; font-size: 11px; }
.pe-wizard__navigation { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; border-top: 1px solid #e7ebf2; padding-top: 20px; }
.pe-wizard__navigation .pe-button { margin: 0; min-width: 120px; }
.pe-wizard__navigation .pe-button:disabled { cursor: default; }
#pe-qualification { margin-top: 24px; border-top: 1px solid #e7ebf2; padding-top: 10px; }
#pe-qualification h4 { margin-bottom: 8px; font-size: 18px; }
.pe-final-codes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 24px 0 16px; }
.pe-final-codes .pe-result-item__value { font-size: clamp(18px, 2.4vw, 26px); font-weight: 800; color: #25129d; }
.pe-final-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pe-wizard__success { padding-top: 26px; }
.pe-wizard__success > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #e6f6ef; color: #197254; font-size: 24px; flex-shrink: 0; }
.pe-wizard__success .pe-wizard__title { margin: 0; font-size: 22px; }
.pe-wizard__success p { margin: 12px 0 0; color: #667085; font-size: 16px; line-height: 1.6; }
.pe-final-service-code { margin-top: 0; flex-shrink: 0; }
.pe-final-service-code .pe-chip { display: inline-flex; padding: 9px 12px; font-size: 13px; line-height: 1.5; }
@media (max-width: 700px) {
  .pe-wizard__context-row, .pe-wizard__completion-row { flex-wrap: wrap; gap: 8px; }
  .pe-wizard__context-row h2 { flex-basis: 100%; }
  .pe-wizard__context-row { flex-wrap: nowrap; gap: 12px; }
  .pe-wizard__cnae .pe-kicker { font-size: 9px; letter-spacing: .05em; }
  .pe-wizard__cnae .pe-chip { padding: 8px 10px; font-size: 12px; }
  .pe-wizard__context-row .pe-result-meta, .pe-final-service-code { margin-left: auto; }
  .pe-choice-grid, .pe-final-summary { grid-template-columns: 1fr; }
  .pe-wizard__tabs { gap: 5px; }
  .pe-wizard__tabs button { flex-direction: column; padding: 10px 3px; gap: 5px; font-size: 10px; }
  .pe-choice { padding: 16px; }
  .pe-choice:has(input:checked) { padding: 15px; }
  .pe-final-codes { grid-template-columns: 1fr; }
  .pe-service-result { padding: 12px; }
  .pe-service-result__description, .pe-service-result__pair { grid-template-columns: 1fr; }
  .pe-shell { width: calc(100% - 28px); }
  .pe-search-card, .pe-results { padding: 20px 16px; }
  .pe-services, .pe-scenario-options, .pe-filters, .pe-result-list { grid-template-columns: 1fr; }
  .pe-suggestion { grid-template-columns: 1fr 1fr 20px; gap: 12px; }
  .pe-suggestion__code { grid-column: 1; grid-row: 1; }
  .pe-suggestion__item { grid-column: 2; grid-row: 1; }
  .pe-suggestion__text { grid-column: 1 / 3; grid-row: 2; }
  .pe-suggestion__arrow { grid-column: 3; grid-row: 1 / 3; }
  .pe-suggestion__code br { display: none; }
  .pe-suggestion__code small { display: inline; margin-left: 5px; }
  .pe-service, .pe-scenario { padding: 16px; }
  .pe-scenario[aria-pressed="true"] { padding: 15px; }
  .pe-button { height: auto; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (max-width: 700px) {
  .pe-wizard__context-row { flex-direction: column; align-items: flex-start; gap: 20px; }
  .pe-wizard__context { padding: 18px 16px; margin-bottom: 20px; }
  .pe-wizard__cnae { order: -1; text-align: left; }
  .pe-wizard__context-row .pe-result-meta { margin-left: 0; justify-content: flex-start; }
  .pe-wizard__cnae .pe-kicker { font-size: 10px; }
  .pe-wizard__context-row h2 { margin-top: 8px; font-size: 16px; line-height: 1.5; }
  .pe-wizard__completion-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pe-final-service-code { order: -1; margin-left: 0; }
  .pe-wizard__success .pe-wizard__title { font-size: 18px; line-height: 1.5; text-align: left; }
  .pe-final-codes .pe-result-item__value { font-size: 20px; }
}
