/* Fiscal workspace. Styles stay inside the nf-easy components. */
.nf-easy-shell {
  --nf-easy-ink: #1e362a;
  --nf-easy-muted: #607367;
  --nf-easy-line: #dbe6dc;
  --nf-easy-green: #1d674c;
  --nf-easy-soft: #eef5e8;
  color: var(--nf-easy-ink);
  font-size: 16px;
  line-height: 1.55;
}

.nf-easy-shell [hidden] { display: none !important; }
.nf-easy-shell button,
.nf-easy-shell input,
.nf-easy-shell select,
.nf-easy-shell textarea { font: inherit; }
.nf-easy-shell button:disabled { cursor: default; opacity: .58; transform: none; }
.nf-easy-shell :is(button, input, select, textarea, summary, a):focus-visible {
  outline: 3px solid #87ad66;
  outline-offset: 4px;
}
.nf-easy-shell .primary-button,
.nf-easy-shell .secondary-button,
.nf-easy-shell .quiet-button {
  min-height: 50px;
  padding: 12px 19px;
  font-size: 15px;
  border-radius: 12px;
}
.nf-easy-shell .text-link { min-height: 44px; font-size: 14px; }
.nf-easy-shell .field { min-width: 0; gap: 9px; }
.nf-easy-shell .field > :is(span, label) { font-size: 15px; font-weight: 600; color: #45604e; }
.nf-easy-shell .field :is(input, select, textarea),
.nf-easy-search {
  width: 100%;
  min-width: 0;
  min-height: 56px;
  height: auto;
  padding: 14px 16px;
  border: 1px solid #cfdbd0;
  border-radius: 11px;
  color: #203a2a;
  background: #fff;
  font-size: 16px;
  line-height: 1.45;
}
.nf-easy-shell .field textarea { min-height: 108px; resize: vertical; }
.nf-easy-shell .field input[readonly] { background: #f3f6ef; color: #4c654f; }
.nf-easy-shell input[type=checkbox],
.nf-easy-shell input[type=radio] { width: 22px; height: 22px; accent-color: #1d674c; flex-shrink: 0; }
.nf-easy-shell :is(.form-hint, .cell-note) { font-size: 14px; line-height: 1.6; color: #607367; }
.nf-easy-shell .admin-error { font-size: 15px; line-height: 1.55; }
.nf-easy-shell svg { width: 24px; height: 24px; flex-shrink: 0; }

.nf-easy-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
}
.nf-easy-header h1 {
  margin: 5px 0 8px;
  font: 700 clamp(30px, 3vw, 42px)/1.15 Manrope, Arial, sans-serif;
  letter-spacing: -1.4px;
  color: #1e362a;
}
.nf-easy-header p { margin: 0; max-width: 660px; color: #607367; font-size: 16px; }
.nf-easy-header .eyebrow { font-size: 11px; line-height: 1.5; letter-spacing: 1.6px; }
.nf-easy-main-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 28px;
  margin-bottom: 22px;
  border: 1px solid #cedec7;
  border-radius: 20px;
  background: linear-gradient(125deg, #edf5e5, #f7faef);
}
.nf-easy-main-action h2 { margin: 0 0 7px; font-size: 26px; line-height: 1.25; color: #23452e; }
.nf-easy-main-action p { margin: 0; max-width: 640px; font-size: 16px; color: #546a57; }
.nf-easy-main-action .primary-button { min-height: 58px; flex-shrink: 0; font-size: 17px; padding: 16px 25px; }

.nf-easy-tools,
.nf-easy-detail {
  margin: 16px 0 23px;
  border: 1px solid #dbe6dc;
  border-radius: 14px;
  background: #fff;
}
.nf-easy-tools > summary,
.nf-easy-detail > summary {
  min-height: 56px;
  padding: 16px 20px;
  color: #35563f;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.nf-easy-tools[open] > summary,
.nf-easy-detail[open] > summary { border-bottom: 1px solid #e4ebe1; }
.nf-easy-tools > :not(summary),
.nf-easy-detail > :not(summary) { margin: 16px 20px; }
.nf-easy-tools .fiscal-actions { gap: 10px; }
.nf-easy-detail pre { max-width: 100%; overflow: auto; font-size: 13px; line-height: 1.6; }
.nf-easy-detail :is(p, ul, ol) { color: #546a57; font-size: 14px; }

.nf-easy-company-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 18px; }
.nf-easy-company,
.nf-easy-company-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  min-height: 128px;
  width: 100%;
  padding: 20px;
  border: 1px solid #d5e1d2;
  border-radius: 15px;
  background: #fff;
  color: #264432;
  text-align: left;
  line-height: 1.45;
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.nf-easy-company > div,
.nf-easy-company-card > div { min-width: 0; flex: 1; }
.nf-easy-company-card > span:not(.fiscal-emission-company-code) { min-width: 0; flex: 1; }
.nf-easy-company-card > .fiscal-emission-company-code { width: 42px; height: 42px; border-radius: 12px; font-size: 14px; }
.nf-easy-company-card > i { display: grid; place-items: center; margin-left: auto; min-width: 25px; font-style: normal; }
.nf-easy-company :is(b, strong),
.nf-easy-company-card :is(b, strong) { display: block; font-size: 16px; font-weight: 700; overflow-wrap: anywhere; }
.nf-easy-company :is(small, p),
.nf-easy-company-card :is(small, p) { display: block; margin: 7px 0 0; font-size: 13px; color: #607367; overflow-wrap: anywhere; }
.nf-easy-company svg,
.nf-easy-company-card svg { width: 25px; height: 25px; color: #4c7755; }
.nf-easy-company:is(.is-selected, [aria-pressed=true]),
.nf-easy-company-card:is(.is-selected, [aria-pressed=true]) { background: #eef6e8; border: 2px solid #2d7551; padding: 19px; box-shadow: 0 0 0 3px #edf5e8; }
.nf-easy-company:is(.is-selected, [aria-pressed=true]) :is(b, strong),
.nf-easy-company-card:is(.is-selected, [aria-pressed=true]) :is(b, strong) { color: #205e3e; }

.nf-easy-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  counter-reset: nf-easy-stage;
  gap: 14px;
  margin: 24px 0 28px;
  padding: 0;
}
.nf-easy-progress:has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nf-easy-progress li {
  counter-increment: nf-easy-stage;
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 17px;
  border-radius: 13px;
  background: #f0f3ed;
  color: #6d7b6a;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.nf-easy-progress li::before {
  content: counter(nf-easy-stage, decimal-leading-zero);
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  height: 34px;
  border: 1px solid #d5dfcf;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}
.nf-easy-progress li.is-current { color: #205b3e; background: #e9f3df; box-shadow: inset 0 0 0 1px #baccaf; }
.nf-easy-progress li.is-current::before { border-color: #1d674c; background: #1d674c; color: #fff; }
.nf-easy-progress li:is(.is-done, .is-complete) { color: #33634a; background: #edf5e9; }
.nf-easy-progress li:is(.is-done, .is-complete)::before { content: '✓'; border-color: #c0d5b8; background: #dceccc; color: #28623e; font-size: 18px; }
.nf-easy-progress li:has(> span)::before { display: none; }
.nf-easy-progress li > span:first-child { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 1px solid #d5dfcf; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 700; }
.nf-easy-progress li.is-current > span:first-child { border-color: #1d674c; background: #1d674c; color: #fff; }
.nf-easy-progress li:is(.is-done, .is-complete) > span:first-child { border-color: #c0d5b8; background: #dceccc; color: #28623e; }
.nf-easy-progress li > span:first-child svg { width: 19px; height: 19px; }
.nf-easy-progress li small { display: block; margin-top: 3px; color: #607367; font-size: 12px; font-weight: 400; }

.nf-easy-card,
.nf-easy-step {
  margin-bottom: 22px;
  padding: 28px;
  border: 1px solid #dbe6dc;
  border-radius: 19px;
  background: #fff;
  box-shadow: 0 6px 24px #294c2e05;
}
.nf-easy-card > h2,
.nf-easy-section > h2,
.nf-easy-step h2 { margin: 0 0 12px; color: #243f2c; font-size: 24px; line-height: 1.3; letter-spacing: -.4px; }
.nf-easy-card > p,
.nf-easy-section > p { margin: 0 0 18px; color: #607367; font-size: 15px; }
.nf-easy-form { display: grid; gap: 22px; }
.nf-easy-section + .nf-easy-section { margin-top: 27px; padding-top: 25px; border-top: 1px solid #e3eadf; }
.nf-easy-step-header { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.nf-easy-step-header > span:first-child { flex-shrink: 0; display: grid; place-items: center; width: 42px; height: 42px; background: #eef5e8; color: #2d6543; border-radius: 12px; font-size: 17px; font-weight: 700; }
.nf-easy-step-header h2 { margin: 0 0 7px; }
.nf-easy-step-header p { margin: 0; font-size: 15px; color: #607367; }
.nf-easy-step-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.nf-easy-step-fields > :is(p, .form-hint, .nf-easy-note) { grid-column: 1 / -1; margin: 0; }
.nf-easy-options { display: flex; flex-wrap: wrap; gap: 10px; margin: 15px 0 22px; }
.nf-easy-options > button,
.nf-easy-options > label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 19px;
  border: 1px solid #d8e1d1;
  border-radius: 12px;
  background: #fff;
  color: #536b56;
  font-size: 16px;
  cursor: pointer;
}
.nf-easy-options > :is(.is-selected, .is-current, [aria-pressed=true]),
.nf-easy-options > label:has(input:checked) { border-color: #62915f; background: #ecf4e3; color: #285b39; box-shadow: inset 0 0 0 1px #62915f; }
.nf-easy-order-list { display: grid; gap: 11px; margin-top: 16px; }
.nf-easy-order {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 19px 20px;
  border: 1px solid #dbe5d5;
  border-radius: 13px;
  background: #fff;
  text-align: left;
  color: #274532;
  line-height: 1.5;
}
.nf-easy-order > :is(span, div):not(:last-child) { flex: 1; min-width: 0; }
.nf-easy-order b { display: block; font-size: 17px; overflow-wrap: anywhere; }
.nf-easy-order small { display: block; margin-top: 4px; font-size: 14px; color: #607367; overflow-wrap: anywhere; }
.nf-easy-order strong { margin-left: auto; font-size: 19px; white-space: nowrap; }
.nf-easy-order:is(.is-selected, [aria-pressed=true]) { border: 2px solid #36764e; padding: 18px 19px; background: #f0f7e9; }
.nf-easy-selected { padding: 18px 20px; margin-top: 16px; border-radius: 13px; background: #f0f6e8; border: 1px solid #d4e4c8; color: #33563c; }
.nf-easy-selected :is(b, strong) { font-size: 17px; }
.nf-easy-selected :is(p, small) { display: block; margin: 6px 0 0; color: #536d57; font-size: 14px; overflow-wrap: anywhere; }

.nf-easy-context { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 25px; padding: 17px 20px; margin-bottom: 20px; border: 1px solid #dbe5d5; border-radius: 13px; background: #f2f6ed; }
.nf-easy-context :is(b, strong) { color: #33553e; font-size: 16px; }
.nf-easy-context :is(small, span) { color: #5f735f; font-size: 14px; }
.nf-easy-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 21px 23px; margin: 18px 0; border-radius: 14px; border: 1px solid #dce6d5; background: #f6f8f1; }
.nf-easy-summary :is(p, small, dt) { display: block; margin: 0 0 6px; color: #607367; font-size: 14px; }
.nf-easy-summary :is(b, strong, dd) { display: block; margin: 0; color: #294d33; font-size: 21px; line-height: 1.35; overflow-wrap: anywhere; }
.nf-easy-summary > :last-child :is(b, strong, dd) { color: #1d674c; }
.nf-easy-footer { display: flex; align-items: center; justify-content: space-between; gap: 17px; padding-top: 22px; margin-top: 24px; border-top: 1px solid #e1e9dc; }
.nf-easy-footer > div { min-width: 0; }
.nf-easy-footer .primary-button { min-height: 58px; font-size: 17px; padding: 15px 25px; }
.nf-easy-footer :is(b, strong) { display: block; font-size: 22px; color: #2d5238; }
.nf-easy-footer small { color: #607367; font-size: 13px; }
.nf-easy-next { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; margin-top: 23px; padding-top: 21px; border-top: 1px solid #e1e9dc; }
.nf-easy-next > p { flex: 1; min-width: 180px; margin: 0; color: #607367; font-size: 14px; }
.nf-easy-next .primary-button { min-height: 56px; font-size: 16px; padding: 14px 23px; }
.nf-easy-primary-step { border-color: #a9c495; box-shadow: 0 6px 24px #315c2d09; }
.nf-easy-note,
.nf-easy-status { display: block; padding: 17px 20px; margin: 17px 0; border: 1px solid #d5e1cb; border-radius: 13px; background: #f0f6e9; color: #436449; font-size: 15px; line-height: 1.6; }
.nf-easy-note :is(p, ul),
.nf-easy-status :is(p, ul) { margin: 7px 0 0; }
.nf-easy-note ul,
.nf-easy-status ul { padding-left: 23px; }
.nf-easy-note li,
.nf-easy-status li { margin: 6px 0; }
.nf-easy-status.is-success { border-color: #c2ddbc; background: #edf7e7; color: #275b35; }
.nf-easy-status.is-warning { border-color: #e8d9ab; background: #fff9e9; color: #725820; }
.nf-easy-status h2 { color: inherit; font-size: 23px; margin: 0 0 8px; }
.nf-easy-empty { padding: 38px 22px; text-align: center; background: #f7f9f3; border: 1px dashed #ccd9c4; border-radius: 15px; color: #607367; font-size: 15px; }
.nf-easy-empty b { display: block; color: #3d5b43; font-size: 19px; margin-bottom: 8px; }
.nf-easy-empty p { margin: 0; }
.nf-easy-help { color: #607367; font-size: 14px; line-height: 1.7; }
.nf-easy-help a { color: #246841; text-decoration: underline; text-underline-offset: 3px; }
.nf-easy-items { width: 100%; border-collapse: collapse; font-size: 15px; }
.nf-easy-items th { padding: 13px 15px; text-align: left; font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: .1px; color: #65785f; border-bottom: 1px solid #dce6d5; background: #f6f8f2; }
.nf-easy-items td { padding: 16px 15px; font-size: 15px; white-space: normal; color: #304b35; border-bottom: 1px solid #e8eee2; vertical-align: middle; }
.nf-easy-items td :is(small, .cell-note) { display: block; margin-top: 4px; font-size: 13px; color: #6a7b62; }
.nf-easy-items td :is(input, select) { min-height: 48px; min-width: 85px; padding: 10px; border: 1px solid #d2dfcb; border-radius: 9px; background: #fff; color: #2b4931; font-size: 16px; }
.nf-easy-items :is(th, td):last-child { text-align: right; }
.nf-easy-items tr:last-child td { border-bottom: 0; }

@media (hover: hover) {
  .nf-easy-company:hover,
  .nf-easy-company-card:hover,
  .nf-easy-order:hover { border-color: #91b083; background: #f7faf2; }
  .nf-easy-options > button:hover { border-color: #8faa7e; background: #f5f8ef; }
}

@media (max-width: 1100px) {
  .nf-easy-company-list { grid-template-columns: 1fr; gap: 10px; }
  .nf-easy-company,
  .nf-easy-company-card { min-height: 98px; }
  .nf-easy-progress { gap: 9px; }
  .nf-easy-progress li { padding: 12px; gap: 9px; font-size: 14px; }
  .nf-easy-card,
  .nf-easy-step { padding: 24px; }
}

@media (max-width: 760px) {
  .nf-easy-header { flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .nf-easy-header h1 { font-size: 34px; }
  .nf-easy-header p { font-size: 16px; }
  .nf-easy-header .fiscal-actions { width: 100%; }
  .nf-easy-header .fiscal-actions > :is(button, a) { flex: 1; }
  .nf-easy-main-action { flex-direction: column; align-items: stretch; gap: 20px; padding: 24px; border-radius: 17px; }
  .nf-easy-main-action .primary-button { width: 100%; }
  .nf-easy-main-action h2 { font-size: 25px; }
  .nf-easy-card,
  .nf-easy-step { padding: 22px 19px; border-radius: 15px; }
  .nf-easy-card > h2,
  .nf-easy-step h2 { font-size: 23px; }
  .nf-easy-progress { margin: 20px 0; gap: 6px; }
  .nf-easy-progress li { flex-direction: column; text-align: center; justify-content: flex-start; padding: 12px 6px; gap: 7px; font-size: 13px; }
  .nf-easy-progress li::before { flex: 0 0 32px; width: 32px; height: 32px; }
  .nf-easy-progress li > span:first-child { flex: 0 0 32px; width: 32px; height: 32px; }
  .nf-easy-progress li small { font-size: 11px; }
  .nf-easy-step-header { gap: 11px; }
  .nf-easy-step-fields { grid-template-columns: 1fr; gap: 21px; }
  .nf-easy-options { gap: 8px; }
  .nf-easy-options > :is(button, label) { flex: 1 1 135px; padding: 13px 10px; }
  .nf-easy-order { gap: 11px; flex-wrap: wrap; padding: 17px; }
  .nf-easy-order:is(.is-selected, [aria-pressed=true]) { padding: 16px; }
  .nf-easy-order > :is(span, div):not(:last-child) { flex-basis: 72%; }
  .nf-easy-order strong { font-size: 19px; }
  .nf-easy-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 18px; gap: 19px 13px; }
  .nf-easy-summary > :last-child { grid-column: 1 / -1; padding-top: 13px; border-top: 1px solid #dfe8d7; }
  .nf-easy-summary > :last-child :is(b, strong, dd) { font-size: 28px; }
  .nf-easy-footer {
    position: sticky;
    z-index: 3;
    bottom: calc(76px + env(safe-area-inset-bottom, 0px));
    flex-wrap: wrap;
    padding: 14px;
    margin: 22px -7px 0;
    border: 1px solid #cbdcc2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 7px 27px #36523118;
    gap: 12px;
  }
  .nf-easy-footer > .primary-button { width: 100%; min-height: 58px; order: 2; }
  .nf-easy-footer .quiet-button { min-height: 44px; padding: 7px; }
  .nf-easy-footer > div { margin-left: auto; text-align: right; }
  .nf-easy-next { flex-direction: column; align-items: stretch; }
  .nf-easy-next > p { min-width: 0; }
  .nf-easy-next > :is(button, a) { width: 100%; }
  .nf-easy-context { gap: 8px 17px; padding: 16px; }
  .nf-easy-tools > summary,
  .nf-easy-detail > summary { padding: 16px; }
  .nf-easy-tools > :not(summary),
  .nf-easy-detail > :not(summary) { margin: 16px; }
  .nf-easy-tools .fiscal-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .nf-easy-note,
  .nf-easy-status { padding: 16px; }
  .nf-easy-items th { padding: 11px 10px; }
  .nf-easy-items td { padding: 15px 10px; min-width: 85px; }
  .nf-easy-items td:first-child { min-width: 190px; }
  .nf-easy-items td :is(input, select) { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .nf-easy-company,
  .nf-easy-company-card,
  .nf-easy-order { transition: none; }
}
