.bat26-wrap {
  --btf-bg: #f4f7fb;
  --btf-card: #ffffff;
  --btf-ink: #172033;
  --btf-muted: #5d687c;
  --btf-primary: #164ea6;
  --btf-primary-2: #0e3f8e;
  --btf-success: #15803d;
  --btf-success-2: #0f6b32;
  --btf-danger: #b42318;
  --btf-warning: #b45309;
  --btf-border: #d9e2ef;
  --btf-soft: #eef4fc;
  --btf-shadow: 0 22px 64px rgba(16, 35, 70, .12);
  color: var(--btf-ink);
  font-family: inherit;
  max-width: 1180px;
  margin: 26px auto;
  padding: 0 14px 24px;
  box-sizing: border-box;
}

.bat26-wrap *,
.bat26-wrap *::before,
.bat26-wrap *::after {
  box-sizing: border-box;
}

.bat26-hero {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px;
  background: linear-gradient(135deg, #0f3f8b, #1b67ca);
  color: #fff;
  border-radius: 28px;
  box-shadow: var(--btf-shadow);
  margin-bottom: 18px;
}

.bat26-admin-hero {
  background: linear-gradient(135deg, #143d7a, #1375ba);
}

.bat26-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.24);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.bat26-hero h2 {
  color: #fff;
  margin: 12px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  letter-spacing: -.03em;
}

.bat26-hero p {
  max-width: 800px;
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255,255,255,.92);
}

.bat26-alert {
  min-width: min(330px, 100%);
  max-width: 390px;
  border-radius: 22px;
  padding: 18px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(6px);
}

.bat26-alert strong {
  display: block;
  color: #fff;
  font-size: 15px;
  margin-bottom: 6px;
}

.bat26-alert p {
  font-size: 14px;
  line-height: 1.48;
}

.bat26-card {
  background: var(--btf-card);
  border: 1px solid var(--btf-border);
  border-radius: 28px;
  box-shadow: var(--btf-shadow);
  padding: 24px;
}

.bat26-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.bat26-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid var(--btf-border);
  min-height: 64px;
}

.bat26-step span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #dfeafb;
  color: var(--btf-primary);
  font-weight: 800;
  flex: 0 0 34px;
}

.bat26-step em {
  font-style: normal;
  font-weight: 700;
  color: var(--btf-muted);
  font-size: 13px;
}

.bat26-step.is-active {
  border-color: #9dc1f5;
  background: #edf5ff;
}

.bat26-step.is-active span {
  background: var(--btf-primary);
  color: #fff;
}

.bat26-step.is-active em {
  color: var(--btf-primary);
}

.bat26-step.is-done {
  background: #edf9f1;
  border-color: #b6e1c4;
}

.bat26-step.is-done span {
  background: var(--btf-success);
  color: #fff;
}

.bat26-step.is-done em {
  color: var(--btf-success);
}

.bat26-panel,
.bat26-admin-panel {
  display: none;
}

.bat26-panel.is-active,
.bat26-admin-panel.is-active {
  display: block;
}

.bat26-panel h3,
.bat26-admin-panel h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -.02em;
}

.bat26-muted {
  color: var(--btf-muted);
  line-height: 1.55;
}

.bat26-select,
.bat26-form input,
.bat26-form select,
.bat26-config-form input,
.bat26-config-form select,
.bat26-admin-filters input,
.bat26-admin-filters select,
.admin-filters input,
.admin-filters select {
  width: 100%;
  height: 52px;
  padding: 0 15px;
  border: 1px solid #ccd7e7;
  border-radius: 16px;
  font: inherit;
  color: var(--btf-ink);
  background: #fff;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(10, 33, 70, .04);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.bat26-select:focus,
.bat26-form input:focus,
.bat26-form select:focus,
.bat26-config-form input:focus,
.bat26-config-form select:focus,
.admin-filters input:focus,
.admin-filters select:focus {
  border-color: #6ca6f7;
  box-shadow: 0 0 0 4px rgba(25, 109, 220, .12);
}

.bat26-form select:disabled {
  background: #f4f7fb;
  color: #41516a;
  font-weight: 700;
}

.bat26-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.bat26-actions.split {
  justify-content: space-between;
}

.bat26-actions.inner {
  margin-top: 0;
}

.bat26-btn {
  appearance: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none !important;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .18s ease;
  box-shadow: 0 12px 28px rgba(16, 35, 70, .12);
}

.bat26-btn:hover {
  transform: translateY(-1px);
}

.bat26-btn:disabled {
  opacity: .68;
  cursor: wait;
  transform: none;
}

.bat26-btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--btf-primary), #2a7be9);
}

.bat26-btn.primary:hover {
  background: linear-gradient(135deg, var(--btf-primary-2), #226ed6);
}

.bat26-btn.success {
  color: #fff;
  background: linear-gradient(135deg, var(--btf-success), #24a148);
}

.bat26-btn.success:hover {
  background: linear-gradient(135deg, var(--btf-success-2), #1f8d40);
}

.bat26-btn.danger {
  color: #fff;
  background: linear-gradient(135deg, var(--btf-danger), #d92d20);
}

.bat26-btn.danger:hover {
  background: linear-gradient(135deg, #97180f, #c52218);
}

.bat26-btn.ghost {
  color: var(--btf-primary);
  background: #eef5ff;
  border: 1px solid #cfe0f7;
  box-shadow: none;
}

.bat26-btn.mini {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
  border-radius: 12px;
}

.bat26-grid {
  display: grid;
  gap: 14px;
}

.bat26-grid.form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 12px;
}

.bat26-grid.info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 16px 0 22px;
}

.bat26-grid.info-grid > div,
.bat26-review-card,
.bat26-success-box,
.bat26-hash-box {
  border: 1px solid var(--btf-border);
  border-radius: 20px;
  background: #fbfdff;
}

.bat26-grid.info-grid > div {
  padding: 15px 16px;
  min-height: 76px;
}

.bat26-grid.info-grid small,
.bat26-hash-box small {
  display: block;
  color: var(--btf-muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
}

.bat26-grid.info-grid strong {
  display: block;
  font-size: 15px;
  line-height: 1.45;
  word-break: break-word;
}

.bat26-grid .full,
.bat26-grid.info-grid .full,
.bat26-grid.form-grid .full {
  grid-column: 1 / -1;
}

.bat26-section-title {
  margin-top: 12px;
  color: var(--btf-primary);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-weight: 900;
}

.bat26-form label,
.bat26-config-form label,
.admin-filters label {
  display: grid;
  gap: 8px;
  align-content: start;
}

.bat26-form label > span,
.bat26-config-form label > span,
.admin-filters label > span {
  font-size: 13px;
  font-weight: 800;
  color: #31415a;
}

.bat26-check {
  display: flex !important;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid #d7e3f3;
  background: #f7fbff;
  cursor: pointer;
}

.bat26-check input {
  margin-top: 3px;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--btf-primary);
}

.bat26-check span {
  line-height: 1.55;
  color: var(--btf-ink);
}

.bat26-summary {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.bat26-review-card {
  padding: 18px;
}

.bat26-review-card h4 {
  margin: 0 0 8px;
  color: var(--btf-primary);
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.bat26-review-card p {
  margin: 5px 0;
  line-height: 1.5;
}

.bat26-review-emphasis {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--btf-danger);
  background: #fff1f0;
}

.bat26-signature-wrap {
  margin-top: 16px;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid #c8d6ea;
  background: #f4f8fd;
}

#bat26-signature-canvas {
  display: block;
  width: 100%;
  height: 280px;
  border-radius: 18px;
  background: #fff;
  touch-action: none;
  cursor: crosshair;
  border: 1px dashed #9fb5d3;
}

.bat26-status {
  min-height: 18px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-weight: 700;
  line-height: 1.45;
  display: none;
}

.bat26-status:not(:empty) {
  display: block;
}

.bat26-status.ok {
  color: #0f5132;
  background: #edf9f1;
  border: 1px solid #bce5c9;
}

.bat26-status.error {
  color: #842029;
  background: #fff2f2;
  border: 1px solid #f2b8bd;
}

.bat26-status.wait {
  color: #694600;
  background: #fff8e8;
  border: 1px solid #f1d594;
}

.bat26-success-box {
  padding: 22px;
  background: linear-gradient(180deg, #f3fbf6, #fff);
  border-color: #bde4ca;
}

.bat26-success-box strong {
  display: block;
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--btf-success);
}

.bat26-success-box p {
  margin: 0 0 16px;
  color: var(--btf-muted);
  line-height: 1.55;
}

.bat26-hash-box {
  margin-top: 16px;
  padding: 18px;
  overflow: hidden;
}

.bat26-hash-box code,
.bat26-hash-mini {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  word-break: break-all;
  font-size: 12px;
  line-height: 1.5;
}

.bat26-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.bat26-tab {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #d2def0;
  background: #f5f9ff;
  color: var(--btf-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.bat26-tab.is-active {
  color: #fff;
  background: var(--btf-primary);
  border-color: var(--btf-primary);
}

.admin-filters {
  grid-template-columns: 1.35fr 1fr 1fr .72fr;
  margin-top: 4px;
}

.bat26-admin-results {
  margin-top: 20px;
}

.bat26-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--btf-border);
  border-radius: 22px;
}

.bat26-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
  background: #fff;
}

.bat26-table th,
.bat26-table td {
  text-align: left;
  vertical-align: top;
  padding: 15px 16px;
  border-bottom: 1px solid #e5edf7;
  font-size: 14px;
}

.bat26-table th {
  background: #f4f8fe;
  color: #31415a;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bat26-table tr:last-child td {
  border-bottom: 0;
}

.bat26-mini {
  margin-top: 4px;
  color: var(--btf-muted);
  font-size: 12px;
  line-height: 1.42;
}

.bat26-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.bat26-badge.ok {
  background: #eaf8ef;
  color: var(--btf-success);
}

.bat26-badge.wait {
  background: #fff5e8;
  color: var(--btf-warning);
}

.bat26-table a {
  color: var(--btf-primary);
  font-weight: 800;
}

.bat26-loading,
.bat26-admin-denied {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--btf-border);
  background: #fbfdff;
  color: var(--btf-muted);
}

.bat26-config-form {
  margin-top: 18px;
}

.bat26-config-form input[type="file"] {
  height: auto;
  min-height: 52px;
  padding-top: 13px;
  padding-bottom: 13px;
}

@media (max-width: 980px) {
  .bat26-hero {
    display: grid;
  }
  .bat26-alert {
    min-width: 0;
    max-width: none;
  }
  .bat26-stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .admin-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .bat26-wrap {
    padding: 0 10px 18px;
    margin-top: 14px;
  }
  .bat26-card,
  .bat26-hero {
    padding: 18px;
    border-radius: 22px;
  }
  .bat26-stepper,
  .bat26-grid.form-grid,
  .bat26-grid.info-grid,
  .admin-filters {
    grid-template-columns: 1fr;
  }
  .bat26-actions.split {
    align-items: stretch;
    flex-direction: column;
  }
  .bat26-actions.inner {
    width: 100%;
    flex-direction: column;
  }
  .bat26-actions .bat26-btn,
  .bat26-actions.inner .bat26-btn {
    width: 100%;
  }
  #bat26-signature-canvas {
    height: 230px;
  }
}

.bat26-hero-badge {
  min-width: min(300px, 100%);
  max-width: 360px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(6px);
}

.bat26-hero-badge strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.2;
}

.bat26-hero-badge span {
  color: rgba(255,255,255,.94);
  font-size: 14px;
  line-height: 1.45;
}

.bat26-wrap > .bat26-alert {
  max-width: none;
  min-width: 0;
  display: block;
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: 20px;
  color: #81281f;
  background: #fff3f2;
  border: 1px solid #f0c3be;
  box-shadow: 0 12px 30px rgba(128, 31, 21, .06);
}

.bat26-wrap > .bat26-alert strong {
  display: inline;
  margin: 0 6px 0 0;
  color: #81281f;
  font-size: 15px;
}

.bat26-wrap > .bat26-alert span {
  color: #81281f;
  line-height: 1.5;
}


.bat26-hidden-accept {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
}

.bat26-term-accept-card {
  margin-top: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid #cfe0f7;
  background: linear-gradient(180deg, #f5f9ff, #ffffff);
}

.bat26-term-accept-card > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--btf-primary);
  font-size: 16px;
}

.bat26-term-accept-card > p {
  margin: 0 0 12px;
  color: var(--btf-muted);
  line-height: 1.55;
}

.bat26-term-accept-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid #f1d594;
  background: #fff8e8;
  color: #694600;
  font-weight: 800;
  line-height: 1.45;
}

.bat26-term-accept-status.is-ok {
  border-color: #bce5c9;
  background: #edf9f1;
  color: #0f5132;
}

body.bat26-modal-open {
  overflow: hidden;
}

.bat26-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.bat26-modal.is-open {
  display: flex;
}

.bat26-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 18, 34, .72);
  backdrop-filter: blur(3px);
}

.bat26-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(1020px, 100%);
  max-height: min(94vh, 1020px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: 30px;
  background: #fff;
  border: 1px solid #d6e1f1;
  box-shadow: 0 34px 96px rgba(0, 0, 0, .34);
}

.bat26-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--btf-primary);
  font: inherit;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.bat26-modal-header {
  padding-right: 54px;
}

.bat26-modal-header h3 {
  margin: 10px 0 6px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.15;
  color: var(--btf-ink);
}

.bat26-modal-header p {
  margin: 0;
  color: var(--btf-muted);
  line-height: 1.55;
}

.bat26-kicker.modal-kicker {
  color: #fff;
  background: var(--btf-primary);
  border-color: var(--btf-primary);
}

.bat26-term-scroll {
  min-height: 260px;
  max-height: min(52vh, 560px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #d7e3f3;
  border-radius: 22px;
  background: #fbfdff;
  outline: none;
  scroll-behavior: smooth;
}

.bat26-term-scroll:focus {
  border-color: #6ca6f7;
  box-shadow: 0 0 0 4px rgba(25, 109, 220, .12);
}

.bat26-term-document {
  color: var(--btf-ink);
}

.bat26-term-doc-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dbe5f3;
  text-align: center;
}

.bat26-term-doc-header h4 {
  margin: 0 0 6px;
  color: var(--btf-primary);
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.bat26-term-doc-header p {
  margin: 0;
  color: var(--btf-muted);
  text-align: center !important;
}

.bat26-term-document h5 {
  margin: 20px 0 8px;
  padding-top: 12px;
  border-top: 1px solid #e6edf7;
  color: var(--btf-primary);
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.bat26-term-document p {
  margin: 0 0 12px;
  line-height: 1.68;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.bat26-term-scroll-hint {
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid #f1d594;
  background: #fff8e8;
  color: #694600;
  font-weight: 800;
  line-height: 1.45;
}

.bat26-term-scroll-hint.is-ok {
  border-color: #bce5c9;
  background: #edf9f1;
  color: #0f5132;
}

.bat26-check.modal-check {
  margin-top: 0;
}

.bat26-check.modal-check.is-disabled {
  opacity: .7;
}

.bat26-actions.modal-actions {
  margin-top: 0;
}


@media (max-width: 720px) {
  .bat26-modal {
    padding: 10px;
  }

  .bat26-modal-dialog {
    max-height: 96vh;
    padding: 16px;
    border-radius: 24px;
    gap: 12px;
  }

  .bat26-modal-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 24px;
  }

  .bat26-modal-header {
    padding-right: 44px;
  }

  .bat26-term-scroll {
    min-height: 220px;
    max-height: 46vh;
    padding: 16px;
  }
}


/* Ajuste v1.0.4: modal mais estável em celulares e sem exigência de rolagem integral */
.bat26-modal {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.bat26-modal-dialog {
  height: min(94dvh, 980px);
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
}

.bat26-term-scroll {
  flex: 1 1 auto;
  min-height: 180px;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}

.bat26-term-accept-card .bat26-term-accept-status {
  margin-top: 12px;
}

@media (max-width: 720px) {
  .bat26-modal {
    align-items: flex-start;
    padding: 8px;
  }

  .bat26-modal-dialog {
    width: 100%;
    height: calc(100vh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
    gap: 10px;
    border-radius: 20px;
  }

  .bat26-modal-header h3 {
    font-size: 21px;
  }

  .bat26-modal-header p {
    font-size: 14px;
  }

  .bat26-term-scroll {
    min-height: 150px;
    padding: 14px;
    border-radius: 18px;
  }

  .bat26-term-document p {
    text-align: left;
    line-height: 1.58;
  }

  .bat26-actions.modal-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bat26-actions.modal-actions .bat26-btn {
    width: 100%;
  }
}
