/* Central do assinante — header checkout herda cores do template */
.central-page { padding: 2rem 0 3rem; color: var(--ink, #122033); }
body.page-central .site-header-checkout .checkout-header-title strong { color: inherit; }
body.page-central .site-header-checkout .checkout-header-title span { opacity: .82; }
body.page-central.cabecalho-claro .site-header-checkout .checkout-header-title strong { color: var(--ink, #122033); }
body.page-central.cabecalho-claro .site-header-checkout .checkout-header-title span { color: var(--muted, #64748b); opacity: 1; }
.central-bol-datas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: .65rem .75rem;
  align-items: end;
  margin: 0 0 1rem;
  padding: .75rem .85rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-navy, #1e3a5f) 4%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, #e2e8f0);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  min-width: 0;
}
.central-bol-datas.has-contrato {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1fr) auto;
}
.central-bol-datas[hidden] { display: none !important; }
.central-bol-datas .central-field {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: .3rem;
  font-weight: 650;
  font-size: .82rem;
  color: var(--muted, #64748b);
  overflow: hidden;
}
.central-bol-datas .central-field > span:first-child { font-weight: 650; }
.central-bol-contrato-field[hidden] { display: none !important; }
.central-bol-datas select[data-bol-contrato] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 2.55rem;
  padding: .45rem .65rem;
  border-radius: 10px;
  border: 1px solid var(--line, #e2e8f0);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  background: #fff;
  color: var(--ink, #122033);
}
.central-bol-date-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  contain: inline-size;
}
.central-bol-datas input[type="date"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0 !important;
  min-height: 2.55rem;
  padding: .45rem .5rem;
  border-radius: 10px;
  border: 1px solid var(--line, #e2e8f0);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
  background: #fff;
  color: var(--ink, #122033);
  -webkit-appearance: none;
  appearance: none;
}
.central-bol-datas input[type="date"]::-webkit-datetime-edit {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
}
.central-bol-datas input[type="date"]::-webkit-calendar-picker-indicator {
  margin: 0 0 0 .15rem;
  padding: 0;
  flex-shrink: 0;
  opacity: .65;
}
.central-bol-datas-acoes {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  min-width: 0;
}
@media (max-width: 720px) {
  .central-bol-datas {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    padding: .65rem;
  }
  .central-bol-datas .central-field,
  .central-bol-date-wrap,
  .central-bol-datas input[type="date"],
  .central-bol-datas select[data-bol-contrato] {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .central-bol-datas-acoes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
  }
  .central-bol-datas-acoes .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    min-width: 0;
  }
}
/* Painel boletos: corta vazamento horizontal sem clipar a nav mobile */
.central-shell [data-panel="boletos"] {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.central-wrap { max-width: 480px; margin: 0 auto; }
.central-page:has(.central-shell) .central-wrap { max-width: 780px; }
.central-card, .central-shell {
  position: relative;
  /* clip só no eixo X: date inputs não vazam; Y fica livre p/ nav/picker */
  overflow-x: clip;
  overflow-y: visible;
  padding: 1.5rem 1.35rem 1.65rem;
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, #e2e8f0);
  border-radius: 20px;
  background:
    radial-gradient(120% 80% at 100% -10%, color-mix(in srgb, var(--brand-blue, #2563eb) 10%, transparent), transparent 55%),
    radial-gradient(90% 60% at -10% 0%, color-mix(in srgb, var(--brand-navy, #1e3a5f) 7%, transparent), transparent 50%),
    #fff;
  color: var(--ink, #122033);
  box-shadow:
    0 1px 0 color-mix(in srgb, #fff 70%, transparent) inset,
    0 14px 36px color-mix(in srgb, var(--brand-navy-deep, #0b1a33) 8%, transparent);
}
.central-shell-intro { min-width: 0; flex: 1; }
.central-shell-kicker {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand-blue, #2563eb);
}
.central-shell-sub { margin-top: .2rem !important; max-width: 36rem; }
/* Sair: herda .btn.btn-ghost do template (cores/raio do site). */
.central-logout {
  flex: none;
  min-height: 2.4rem;
  padding: .4rem .95rem;
  font-size: .875rem;
  font-weight: 650;
  gap: .4rem;
}
.central-logout .icon { width: 1.05rem; height: 1.05rem; }

/* Barra indeterminada só dentro do skeleton dos cards/listas. */
.central-skel-bar {
  position: relative;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, #e8eef5);
}
.central-skel-bar i {
  position: absolute; top: 0; left: 0;
  display: block; width: 38%; height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--brand-blue, #2563eb) 55%, #38bdf8),
    var(--brand-blue, #2563eb),
    color-mix(in srgb, var(--brand-blue, #2563eb) 55%, #38bdf8),
    transparent);
  animation: central-bar-run 1.05s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes central-bar-run {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

.central-skel {
  display: grid; gap: .75rem; padding: .35rem 0 .15rem;
}
.central-skel-bar { margin-bottom: .15rem; }
.central-skel b {
  display: block; height: 4.1rem; border-radius: 14px;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--brand-navy, #1e3a5f) 6%, #eef2f7) 0%,
    #f8fafc 48%,
    color-mix(in srgb, var(--brand-navy, #1e3a5f) 6%, #eef2f7) 100%);
  background-size: 220% 100%;
  animation: central-skel 1.2s ease-in-out infinite;
}
.central-skel b:nth-of-type(2) { height: 3.5rem; opacity: .88; animation-delay: .08s; }
.central-skel b:nth-of-type(3) { height: 3.8rem; opacity: .72; animation-delay: .16s; }
.central-skel b:nth-of-type(4) { height: 3.2rem; opacity: .6; animation-delay: .24s; }
@keyframes central-skel {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Boot: tiles/nav em shimmer leve; a barra superior mostra o progresso. */
.central-shell.is-booting .central-tile,
.central-shell.is-booting .central-nav a {
  pointer-events: none;
  cursor: default;
  border-color: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  background: linear-gradient(90deg, #e8eef5 0%, #f7fafc 42%, #e8eef5 88%) !important;
  background-size: 220% 100% !important;
  animation: central-skel 1.15s ease-in-out infinite;
}
.central-shell.is-booting .central-tile > *,
.central-shell.is-booting .central-nav a > * {
  visibility: hidden;
}
.central-shell.is-booting .central-tile {
  min-height: 6.1rem;
}
.central-shell.is-booting .central-nav a:nth-child(2) { animation-delay: .08s; }
.central-shell.is-booting .central-nav a:nth-child(3) { animation-delay: .16s; }
.central-shell.is-booting .central-nav a:nth-child(4) { animation-delay: .24s; }
.central-shell.is-booting .central-home-grid .central-tile:nth-child(2) { animation-delay: .1s; }
.central-shell.is-booting .central-home-grid .central-tile:nth-child(3) { animation-delay: .18s; }
.central-shell.is-booting .central-home-grid .central-tile:nth-child(4) { animation-delay: .26s; }
.central-shell.is-booting .central-home-grid .central-tile:nth-child(5) { animation-delay: .34s; }
.central-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .45rem;
  margin: .35rem 0 .5rem;
  padding: 1.6rem 1.1rem;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--brand-blue, #2563eb) 10%, transparent), transparent 60%),
    linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 9%, #e2e8f0);
}
.central-empty.is-ok {
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, #10b981 16%, transparent), transparent 60%),
    linear-gradient(180deg, #fff, #f6fdf9);
  border-color: color-mix(in srgb, #10b981 22%, #e2e8f0);
}
.central-empty-icon {
  display: grid;
  place-items: center;
  width: 3.1rem;
  height: 3.1rem;
  margin-bottom: .15rem;
  border-radius: 999px;
  color: var(--brand-blue, #2563eb);
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 12%, #fff);
}
.central-empty.is-ok .central-empty-icon {
  color: #059669;
  background: color-mix(in srgb, #10b981 16%, #fff);
}
.central-empty-icon .icon { width: 1.55rem; height: 1.55rem; }
.central-empty strong {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--ink, #122033);
}
.central-empty p {
  margin: 0;
  max-width: 22rem;
  font-size: .9rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
}
/* Aviso de restrição — mesmo padrão visual do empty state (ícone em círculo) */
.central-bol-restrita {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin: 0 0 1.1rem;
  padding: 1rem 1.15rem;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, #d97706 24%, #e2e8f0);
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, #f59e0b 12%, transparent), transparent 55%),
    linear-gradient(180deg, #fffbeb, #fff 72%);
}
.central-bol-restrita-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  color: #c2410c;
  background: color-mix(in srgb, #f59e0b 16%, #fff);
}
.central-bol-restrita-ico .icon {
  width: 1.45rem;
  height: 1.45rem;
}
.central-bol-restrita-copy { min-width: 0; flex: 1 1 auto; }
.central-bol-restrita-copy strong {
  display: block;
  font-size: .98rem;
  font-weight: 750;
  color: #9a3412;
  letter-spacing: -.015em;
  line-height: 1.3;
}
.central-bol-restrita-copy p {
  margin: .25rem 0 0;
  font-size: .86rem;
  line-height: 1.45;
  color: #78716c;
}
/* legado: anel / chips antigos */
.central-bol-deadline,
.central-bol-quick,
.central-bol-chip { display: none !important; }
.central-contrato-miss {
  margin: 0;
  padding: 1.35rem 1rem 1.2rem;
}
.central-contrato-miss .central-empty-icon {
  color: var(--brand-navy, #1e3a5f);
  background: color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, #fff);
}
.central-contrato-contato {
  margin: .85rem 0 0;
  width: 100%;
  max-width: 22rem;
}
.central-contrato-contato > p {
  margin: 0 0 .55rem;
  font-size: .88rem;
  color: var(--muted, #64748b);
}
.central-contato-tels {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem;
}
.central-contato-tel {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: .88rem; font-weight: 650;
  color: var(--brand-navy, #1e3a5f);
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-blue, #2563eb) 18%, #e2e8f0);
  text-decoration: none;
}
.central-contato-tel .icon { width: 1rem; height: 1rem; color: var(--brand-blue, #2563eb); }
.central-contato-tel:hover {
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 16%, #fff);
}
.btn.is-busy { opacity: .85; cursor: wait; }
.central-bol-grupo {
  margin: 0 0 1.25rem;
  padding: 0 0 .25rem;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, transparent);
}
.central-bol-grupo:last-child { border-bottom: 0; margin-bottom: 0; }
.central-bol-grupo-head {
  display: grid; gap: .15rem; margin: 0 0 .55rem;
}
.central-bol-grupo-head strong {
  font-size: .98rem; font-weight: 750; color: var(--ink, #122033);
}
.central-bol-grupo-head span {
  font-size: .8rem; color: var(--muted, #64748b);
}
.central-conexao-filtros {
  display: grid; gap: .75rem; margin: 0 0 1rem;
}
.central-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}
.central-shell-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.central-shell-head h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  letter-spacing: -.02em;
}
.central-head-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--brand-blue, #0b5cd5) 10%, #fff);
  color: var(--brand-blue, #0b5cd5);
}
.central-head-icon .icon { width: 20px; height: 20px; }
.central-head h1,
.central-head h2,
.central-shell-head h1 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 750;
  color: var(--ink, #122033);
  font-family: var(--font-display, inherit);
  line-height: 1.2;
}
.central-head .muted,
.central-shell-head .muted {
  margin: 0;
  color: var(--muted, #5a6a7e);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}
.central-form { display: grid; gap: 12px; }
.central-field {
  display: grid;
  gap: 6px;
  margin: 0;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--ink, #122033);
}
.central-form input[type="text"],
.central-form input[type="password"] {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  color: var(--ink, #122033);
  font: inherit;
  font-weight: 400;
  font-size: 15px;
}
.central-form input:focus {
  outline: 2px solid color-mix(in srgb, var(--brand-blue, #0b5cd5) 45%, transparent);
  outline-offset: 1px;
  border-color: var(--brand-blue, #0b5cd5);
}
.central-form .btn {
  width: 100%;
  justify-content: center;
  margin-top: 4px;
}
.central-form .btn .icon { width: 16px; height: 16px; margin-right: 6px; }
.central-form .hint { margin: -4px 0 0; }
.central-ajuda-extra {
  margin: 16px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line, #e2e8f0);
  text-align: center;
  color: var(--muted, #5a6a7e);
  font-size: 13px;
}
.central-alert {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .75rem .9rem;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: .92rem;
}
.central-alert[hidden] { display: none !important; }
.central-alert.is-error { background: #fef2f2; color: #991b1b; }
.central-alert.is-ok { background: #ecfdf5; color: #065f46; }
.central-page .hint { margin: 0; color: var(--muted, #5a6a7e); font-size: 13px; font-weight: 400; }
.central-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding: .35rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--brand-navy, #1e3a5f) 4.5%, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, transparent);
  overflow: visible;
}
.central-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .28rem; min-width: 0; min-height: 3.45rem;
  padding: .55rem .4rem; border-radius: 12px; text-decoration: none;
  color: var(--muted, #64748b); font-weight: 650; font-size: .78rem;
  line-height: 1.15; text-align: center;
  background: transparent;
  border: 1px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.central-nav a span {
  display: block; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.central-nav a .icon { width: 20px; height: 20px; flex: none; }
.central-nav a:hover {
  color: var(--brand-navy, #1e3a5f);
  background: color-mix(in srgb, #fff 80%, transparent);
}
.central-nav a[aria-current="page"] {
  background: #fff;
  color: var(--brand-navy, #1e3a5f);
  border-color: color-mix(in srgb, var(--brand-blue, #2563eb) 22%, transparent);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, transparent);
}
@media (min-width: 480px) {
  .central-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .central-nav {
    display: flex; flex-wrap: wrap; gap: .35rem;
    grid-template-columns: none;
  }
  .central-nav a {
    flex: 0 0 auto; flex-direction: row; min-height: 0;
    padding: .5rem .95rem; border-radius: 999px; font-size: .9rem;
    text-align: left;
  }
  .central-nav a span { white-space: nowrap; }
}
.central-home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
@media (min-width: 640px) {
  .central-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .central-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.central-tile {
  appearance: none; display: grid; gap: .35rem; text-align: left;
  padding: 1.1rem 1.05rem 1.15rem; border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, #e2e8f0);
  background:
    linear-gradient(165deg, #fff 0%, color-mix(in srgb, var(--brand-navy, #1e3a5f) 3.5%, #fff) 100%);
  color: inherit; text-decoration: none; cursor: pointer; font: inherit;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.central-tile:hover {
  border-color: color-mix(in srgb, var(--brand-blue, #2563eb) 38%, #e2e8f0);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, transparent);
  transform: translateY(-1px);
}
.central-tile:active { transform: scale(.985); }
.central-tile-icon {
  display: grid; place-items: center;
  width: 2.35rem; height: 2.35rem; margin-bottom: .15rem;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 12%, #fff);
  color: var(--brand-blue, #2563eb);
}
.central-tile-icon .icon { width: 1.2rem; height: 1.2rem; }
.central-tile strong { font-size: 1.02rem; font-weight: 750; letter-spacing: -.01em; }
.central-tile > span:not(.central-tile-icon) {
  font-size: .82rem; color: var(--muted, #64748b); line-height: 1.35;
}
.central-tile .icon { width: 22px; height: 22px; color: var(--brand-blue, #2563eb); }
.central-tile-desbloqueio:not(.is-loading):not([disabled]) .central-tile-icon {
  background: color-mix(in srgb, #059669 14%, #fff);
  color: #059669;
}
.central-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.central-toolbar h2, .central-panel > h2 { margin: 0 0 .75rem; font-size: 1.15rem; }
.central-tabs { display: flex; gap: .25rem; }
.central-tabs button {
  border: 0; background: transparent; padding: .4rem .75rem; border-radius: 999px;
  font: inherit; font-weight: 600; color: var(--muted, #64748b); cursor: pointer;
}
.central-tabs button[aria-current="true"] {
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 14%, transparent);
  color: var(--brand-navy, #1e3a5f);
}
.central-item {
  display: grid; gap: .5rem;
  padding: 1rem 0;
  border-bottom: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, transparent);
}
.central-item-top { display: flex; justify-content: space-between; gap: .75rem; align-items: baseline; }
.central-item-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.central-item-actions .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
}
.central-item-actions .btn .icon { width: 1.05rem; height: 1.05rem; flex: none; }
.central-badge {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 12%, transparent);
}
.central-badge.is-late { background: #fef2f2; color: #991b1b; }
.central-badge.is-ok { background: #ecfdf5; color: #065f46; }
.central-badge.is-warn { background: #fffbeb; color: #92400e; }
.central-status {
  display: flex; align-items: center; gap: .75rem;
  padding: 1.1rem 1.15rem; border-radius: 14px; margin-bottom: 1rem;
  background: color-mix(in srgb, var(--brand-navy, #1e3a5f) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, transparent);
}
.central-status.is-online { background: #ecfdf5; border-color: #a7f3d0; }
.central-status.is-restricted {
  background: #fffbeb;
  border-color: #fcd34d;
}
.central-status.is-offline { background: #f8fafc; }
.central-status strong { display: block; font-size: 1.05rem; }
.central-status .muted { margin: .2rem 0 0; }
.central-status-dot {
  flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: #94a3b8;
}
.central-status-dot.is-on { background: #1fbf6a; box-shadow: 0 0 0 5px rgba(31,191,106,.18); }
.central-status-dot.is-warn { background: #d97706; box-shadow: 0 0 0 5px rgba(217, 119, 6, .2); }
.central-dl {
  list-style: none; margin: 0 0 1rem; padding: 0;
  display: grid; gap: .55rem;
}
.central-dl-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .65rem; }
.central-dl li {
  display: grid; gap: .15rem;
  padding: .7rem .85rem; border-radius: 12px;
  background: color-mix(in srgb, var(--brand-navy, #1e3a5f) 4%, #fff);
}
.central-dl span { font-size: .78rem; color: var(--muted, #64748b); font-weight: 600; }
.central-dl strong { font-size: .95rem; font-weight: 650; word-break: break-word; }
.central-subhead { margin: 1.25rem 0 .65rem; font-size: 1rem; }
.central-hist-list { display: grid; gap: .55rem; }
.central-hist-card {
  padding: .85rem .95rem; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, transparent);
  background: #fff;
}
.central-hist-card.is-live { border-color: #a7f3d0; background: #f0fdf4; }
.central-hist-card-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; }
.central-hist-card .muted { margin: .25rem 0 0; font-size: .85rem; }
.central-hist-trafego {
  display: flex; gap: 1rem; margin: .45rem 0 0;
  font-size: .88rem; font-weight: 650; color: var(--ink, #122033);
}
.central-contrato .central-dl { margin: .5rem 0 .25rem; }
.central-inline-msg { margin: .35rem 0 0; font-size: .85rem; color: var(--muted, #64748b); }
.central-inline-msg.is-error { color: #991b1b; }
.central-inline-msg.is-ok { color: #065f46; }
.central-hist { width: 100%; border-collapse: collapse; font-size: .85rem; }
.central-hist th, .central-hist td { text-align: left; padding: .45rem .35rem; border-bottom: 1px solid #e2e8f0; }
.central-svc {
  margin-top: .7rem; display: grid; gap: .4rem; max-width: min(520px, 100%);
}
.central-svc[hidden], .central-svc-one[hidden], .central-svc-multi[hidden] { display: none !important; }
.central-svc-one { display: grid; gap: .15rem; }
.central-svc-nome {
  font-size: 1rem; font-weight: 750; color: var(--ink, #122033);
  line-height: 1.25; word-break: break-word;
}
.central-svc-meta {
  margin: 0; font-size: .82rem; color: var(--muted, #64748b); font-weight: 500;
  line-height: 1.35;
}
.central-svc-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
}
.central-svc-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--muted, #64748b);
}
.central-svc-count {
  font-size: .75rem; font-weight: 650; color: var(--brand-blue, #2563eb);
  white-space: nowrap;
}
.central-svc-hint { margin: .1rem 0 0; font-size: .78rem !important; }
.central-svc-picker { position: relative; width: 100%; }
.central-svc-trigger {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto;
  gap: .65rem; align-items: center; text-align: left;
  padding: .8rem .9rem; border-radius: 12px; font: inherit; cursor: pointer;
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 16%, #e2e8f0);
  background: linear-gradient(180deg, #fff, #f8fafc); color: var(--ink, #122033);
}
.central-svc-trigger:focus {
  outline: 2px solid color-mix(in srgb, var(--brand-blue, #2563eb) 45%, transparent);
  outline-offset: 1px; border-color: var(--brand-blue, #2563eb);
}
.central-svc-trigger-body { display: grid; gap: .12rem; min-width: 0; }
.central-svc-trigger-body strong {
  font-size: .95rem; font-weight: 750; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.central-svc-trigger-body span {
  font-size: .78rem; color: var(--muted, #64748b); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.central-svc-chevron {
  width: 8px; height: 8px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b;
  transform: rotate(45deg); margin-top: -4px; flex: none;
}
.central-svc-trigger[aria-expanded="true"] .central-svc-chevron { transform: rotate(-135deg); margin-top: 2px; }
.central-svc-menu {
  position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px);
  margin: 0; padding: .35rem; list-style: none;
  border-radius: 12px; background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .14);
  max-height: min(280px, 50vh); overflow: auto;
}
.central-svc-menu[hidden] { display: none !important; }
.central-svc-option {
  display: grid; gap: .15rem; width: 100%; text-align: left;
  padding: .7rem .75rem; border: 0; border-radius: 10px;
  background: transparent; font: inherit; cursor: pointer; color: inherit;
}
.central-svc-option strong {
  font-size: .92rem; font-weight: 700; line-height: 1.25;
  white-space: normal; word-break: break-word;
}
.central-svc-option span {
  font-size: .78rem; color: var(--muted, #64748b); line-height: 1.35;
  white-space: normal; word-break: break-word;
}
.central-svc-option:hover, .central-svc-option:focus {
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 10%, #fff);
  outline: none;
}
.central-svc-option.is-active {
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 14%, #fff);
}
.central-login-pick { margin: 0 0 1rem; display: grid; gap: .35rem; }
.central-login-pick select {
  width: 100%; box-sizing: border-box; padding: .55rem .75rem;
  border-radius: 10px; border: 1px solid #e2e8f0; font: inherit; background: #fff;
}
.central-contrato.is-restricted {
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, #d97706 22%, #e2e8f0);
  background: linear-gradient(180deg, #fffbeb, #fff 60%);
}
.central-contrato-destaque.is-warn { color: #92400e; font-weight: 700; }
.central-contrato-destaque {
  margin: .15rem 0 0; font-size: .92rem; font-weight: 650; color: var(--ink, #122033);
}
.central-contrato-destaque.is-warn { color: #92400e; font-weight: 700; }
.central-contrato.is-restricted {
  border-radius: 14px;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, #d97706 22%, #e2e8f0);
  background: linear-gradient(180deg, #fffbeb, #fff 60%);
}
.central-contrato-end {
  margin: .2rem 0 0; font-size: .92rem; font-weight: 650; color: var(--ink, #122033);
  line-height: 1.35; word-break: break-word;
}
.central-contrato.is-selected {
  padding: 1rem .95rem; border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--brand-blue, #2563eb) 35%, #e2e8f0);
  background: color-mix(in srgb, var(--brand-blue, #2563eb) 6%, #fff);
}
.central-conexao-hist {
  margin: 1rem 0 0; border: 1px solid #e2e8f0; border-radius: 12px; padding: .75rem .9rem;
  background: #fff;
}
.central-conexao-hist > summary {
  cursor: pointer; font-weight: 700; font-size: .95rem; color: var(--ink, #122033);
  list-style: none;
}
.central-conexao-hist > summary::-webkit-details-marker { display: none; }
.central-conexao-hist > summary::after {
  content: "▾"; float: right; color: #64748b; font-weight: 400;
}
.central-conexao-hist[open] > summary { margin-bottom: .75rem; }
.central-conexao-hist[open] > summary::after { content: "▴"; }
.central-conexao-resumo .is-wide { grid-column: 1 / -1; }
.central-desbloqueio-nota { margin: 0 0 .85rem; }
.central-bol-toolbar { align-items: flex-end; margin-bottom: 1.1rem; }
.central-bol-toolbar-copy { display: grid; gap: .15rem; }
.central-bol-toolbar-copy h2 { margin: 0; font-size: 1.2rem; font-weight: 750; }
.central-bol-toolbar-copy .hint { margin: 0; font-size: .86rem; }
.central-bol-card {
  gap: .55rem;
  display: grid;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.central-bol-card.is-shell {
  border: 1px solid #e6edf5;
  border-radius: 16px;
  padding: 1.15rem 1.25rem 1.1rem;
  background: #fff;
  margin: 0 0 .75rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}
.central-bol-card.is-shell.is-late {
  border-color: #fecaca;
  background: #fffafa;
}
.central-bol-card.is-shell:last-child { margin-bottom: 0; }
.central-shell [data-panel="boletos"] .central-item {
  border-bottom: 0;
}
/* Não zerar padding dos cards — a regra acima era mais específica e espremia o texto. */
.central-shell [data-panel="boletos"] .central-bol-card.is-shell {
  padding: 1.15rem 1.25rem 1.1rem;
}
.central-shell [data-panel="boletos"] .central-bol-card.is-shell.is-late {
  border-color: #fecaca;
  background: #fffafa;
}
.central-bol-card .central-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: .4rem .85rem;
  min-width: 0;
}
.central-bol-ctr {
  margin: .15rem 0 0;
  font-size: .8rem;
  font-weight: 550;
  color: var(--muted, #64748b);
  line-height: 1.35;
}
.central-bol-titulo {
  flex: 1 1 11rem;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.35;
  color: var(--ink, #122033);
}
.central-bol-card .central-badge {
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
}
.central-bol-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem 1rem;
  min-width: 0;
}
.central-bol-valor {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.4rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--ink, #122033);
}
.central-bol-venc {
  margin: 0;
  flex: 0 1 auto;
  font-size: .84rem;
  color: var(--muted, #64748b);
  line-height: 1.4;
}
.central-bol-venc strong { font-weight: 650; color: #334155; }
.central-bol-status { display: none; }
.central-bol-card .central-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .2rem;
  padding-top: .8rem;
  border-top: 1px solid #f1f5f9;
  min-width: 0;
}
.central-bol-card .central-item-actions .btn {
  flex: 1 1 8rem;
  min-width: 0;
}
.central-bol-card.is-late .central-item-actions { border-top-color: #fecaca; }
/* Nota de topo removida — classe mantida só por segurança se HTML antigo aparecer. */
.central-bol-modal-note { display: none !important; }
.central-bol-meta {
  list-style: none; margin: .1rem 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .75rem; font-size: .85rem;
}
.central-bol-meta li { display: grid; gap: .1rem; }
.central-bol-meta li.is-wide { grid-column: 1 / -1; }
.central-bol-meta span { color: var(--muted, #64748b); font-size: .78rem; }
.central-bol-meta strong { font-weight: 650; }
.central-bol-meta-modal {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem;
  margin: 0; padding: 0;
}
.central-bol-meta-modal div { display: grid; gap: .15rem; }
.central-bol-meta-modal .is-wide { grid-column: 1 / -1; }
.central-bol-meta-modal dt { margin: 0; font-size: .78rem; color: var(--muted, #64748b); }
.central-bol-meta-modal dd { margin: 0; font-weight: 650; }
.central-boleto-dados {
  margin-top: .65rem; border: 1px solid #e2e8f0; border-radius: 10px; padding: .5rem .75rem;
}
.central-boleto-dados summary { cursor: pointer; font-weight: 650; font-size: .9rem; }
.central-boleto-dados[open] summary { margin-bottom: .5rem; }
.central-boleto-linha code { display: block; word-break: break-all; font-size: .8rem; margin-top: .35rem; }

.central-speed-head {
  display: grid; gap: .2rem; margin: 0 0 1rem; text-align: center;
}
.central-speed-head h2 { margin: 0; font-size: 1.25rem; font-weight: 750; }
.central-speed-head .hint { margin: 0; font-size: .88rem; }
.central-speed {
  display: grid; gap: 1.15rem; max-width: 560px; margin: 0 auto;
}
.central-speed-chart {
  margin: 0; padding: .85rem .9rem .7rem;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, #e2e8f0);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--brand-navy, #1e3a5f) 5%, transparent);
}
.central-speed-chart[hidden] { display: none !important; }
.central-speed-chart-cap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .35rem .75rem; margin: 0 0 .45rem;
  font-size: .78rem; font-weight: 700; color: var(--ink, #122033);
}
.central-speed-chart-peaks {
  font-size: .72rem; font-weight: 650; color: var(--muted, #64748b);
}
.central-speed-chart-canvas {
  display: block; width: 100%; height: 168px;
  max-width: 100%;
}
.central-speed-chart-legend {
  list-style: none; margin: .35rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .75rem 1.1rem;
  font-size: .72rem; font-weight: 650; color: var(--muted, #64748b);
}
.central-speed-chart-legend li { display: inline-flex; align-items: center; gap: .35rem; }
.central-speed-chart-legend i {
  display: block; width: 14px; height: 3px; border-radius: 99px;
}
.central-speed-chart-legend .is-down i { background: var(--brand-blue, #2563eb); }
.central-speed-chart-legend .is-up i { background: #0f9f90; }
.central-speed-card-extra {
  display: block; margin-top: .2rem;
  font-size: .72rem; font-style: normal; font-weight: 650;
  color: var(--muted, #64748b);
}
.central-speed-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem;
}
.central-speed-steps li {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 2.4rem; padding: .4rem .5rem; border-radius: 12px;
  font-size: .78rem; font-weight: 700; text-align: center;
  color: var(--muted, #64748b); background: #f1f5f9;
  border: 1px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.central-speed-steps li span {
  display: grid; place-items: center;
  width: 1.35rem; height: 1.35rem; border-radius: 999px; flex: none;
  font-size: .7rem; font-weight: 800;
  background: #e2e8f0; color: #475569;
}
.central-speed-steps li.is-on {
  color: var(--brand-blue, #0b5cd5);
  background: color-mix(in srgb, var(--brand-blue, #0b5cd5) 10%, #fff);
  border-color: color-mix(in srgb, var(--brand-blue, #0b5cd5) 28%, #fff);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-blue, #0b5cd5) 12%, transparent);
}
.central-speed-steps li.is-on span {
  background: var(--brand-blue, #0b5cd5); color: #fff;
}
.central-speed-steps li.is-done {
  color: #065f46; background: #ecfdf5; border-color: #a7f3d0;
}
.central-speed-steps li.is-done span { background: #10b981; color: #fff; }
.central-speed-stage {
  display: grid; justify-items: center; gap: .9rem; padding: 1.6rem 1.1rem 1.25rem;
  border-radius: 22px;
  background:
    radial-gradient(90% 70% at 50% -10%, color-mix(in srgb, var(--brand-blue, #0b5cd5) 22%, transparent), transparent 55%),
    linear-gradient(180deg, #f8fafc 0%, #fff 55%);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, #e2e8f0);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--brand-navy, #1e3a5f) 7%, transparent);
}
.central-speed-gauge {
  --p: 0; width: 210px; height: 210px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(
    from -90deg,
    var(--brand-blue, #0b5cd5) calc(var(--p) * 1%),
    #e2e8f0 0
  );
  position: relative;
  transition: background .12s linear;
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-blue, #0b5cd5) 6%, transparent);
}
.central-speed.is-running .central-speed-gauge {
  animation: central-speed-pulse 1.6s ease-in-out infinite;
}
@keyframes central-speed-pulse {
  0%, 100% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--brand-blue, #0b5cd5) 6%, transparent); }
  50% { box-shadow: 0 0 0 14px color-mix(in srgb, var(--brand-blue, #0b5cd5) 12%, transparent); }
}
.central-speed-gauge::before {
  content: ""; position: absolute; inset: 14px; border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 10px 28px rgba(15, 23, 42, .06);
}
.central-speed-gauge-inner {
  position: relative; z-index: 2; text-align: center; display: grid; gap: .15rem;
}
.central-speed-gauge-inner strong {
  font-size: 2.35rem; font-variant-numeric: tabular-nums; line-height: 1; letter-spacing: -.03em;
  font-weight: 800; color: var(--ink, #122033);
}
.central-speed-gauge-inner span { font-size: .82rem; color: var(--muted, #64748b); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.central-speed-spin {
  position: absolute; inset: 8px; z-index: 1; border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: color-mix(in srgb, var(--brand-blue, #0b5cd5) 75%, #38bdf8);
  border-right-color: color-mix(in srgb, var(--brand-blue, #0b5cd5) 30%, transparent);
  animation: central-speed-spin .8s linear infinite;
  pointer-events: none;
}
.central-speed-spin.is-upload {
  border-top-color: #0f9f90;
  border-right-color: color-mix(in srgb, #0f9f90 40%, transparent);
  animation-duration: .65s;
}
@keyframes central-speed-spin { to { transform: rotate(360deg); } }
.central-speed-fase {
  margin: 0; font-size: .98rem; font-weight: 650; color: var(--ink, #122033); text-align: center;
  min-height: 1.4em;
}
.central-speed-hint { margin: 0; font-size: .78rem; text-align: center; max-width: 22rem; }
.central-speed-bar {
  width: min(280px, 100%); height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden;
}
.central-speed-bar i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue, #0b5cd5), #38bdf8);
  transition: width .15s linear;
}
.central-speed-actions { display: flex; justify-content: center; }
.central-speed-cta {
  min-width: min(240px, 100%); min-height: 3rem; border-radius: 12px;
  font-weight: 750; box-shadow: 0 10px 22px color-mix(in srgb, var(--brand-blue, #0b5cd5) 22%, transparent);
}
.central-speed-metrics {
  display: block; width: 100%; max-width: 100%;
  box-sizing: border-box;
}
.central-speed-metrics.is-resultado {
  margin-top: .15rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, #e2e8f0);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--brand-navy, #1e3a5f) 6%, transparent);
}
.central-speed-metric {
  display: grid; gap: .2rem; padding: 1rem .9rem; text-align: center;
  border-radius: 12px; background: color-mix(in srgb, var(--brand-navy, #1e3a5f) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, #e2e8f0);
}
.central-speed-metric span { font-size: .78rem; color: var(--muted, #64748b); text-transform: uppercase; letter-spacing: .04em; }
.central-speed-metric strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.central-pix-box { display: grid; gap: .75rem; margin-top: .5rem; }
.central-pix-box img { max-width: 200px; margin: 0 auto; }

/* Modal 2ª via (home / rodapé) */
.central-modal[hidden] { display: none !important; }
.central-modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: 1rem;
  overflow: hidden;
}
.central-modal-backdrop {
  position: absolute; inset: 0; background: rgba(10, 22, 40, .55); border: 0; cursor: pointer;
}
.central-modal-dialog {
  position: relative; z-index: 1; width: min(560px, 100%);
  max-height: min(92vh, 780px);
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0,0,0,.32);
  padding: 0; overflow: hidden;
}
.central-modal-dialog .central-head {
  padding: 1.25rem 1.35rem 0.85rem; border-bottom: 1px solid #eef2f7;
}
.central-modal-dialog .central-form,
.central-modal-dialog [data-central-boletos-wrap] {
  padding: 1rem 1.35rem 1.35rem; overflow: auto; flex: 1; min-height: 0;
}
.central-modal-dialog [data-central-boletos-wrap][hidden] { display: none !important; }
.central-modal-boletos-head {
  margin: 0 0 .85rem;
  padding: 0 0 .75rem;
  border-bottom: 1px solid #eef2f7;
}
.central-modal-boletos-head h2 {
  margin: 0 0 .15rem; font-size: 1.15rem; font-weight: 750; color: var(--ink, #122033);
}
.central-modal-boletos-head .muted { margin: 0; font-size: .84rem; color: #64748b; }
.central-modal-dialog .central-bol-card.is-modal {
  border: 1px solid #e8eef5;
  border-radius: 14px;
  padding: 1rem 1.1rem .95rem;
  background: #fff;
  margin: 0 0 .65rem;
  box-shadow: none;
}
.central-modal-dialog .central-bol-card.is-modal:last-child { margin-bottom: 0; }
.central-modal-dialog .central-bol-card.is-modal.is-late {
  border-color: #fecaca;
  background: #fffafa;
}
.central-modal-dialog .central-bol-card.is-modal .central-bol-titulo { font-size: .96rem; }
.central-modal-dialog .central-bol-card.is-modal .central-bol-valor { font-size: 1.28rem; }
.central-modal-dialog .central-bol-card.is-modal .central-item-actions {
  display: flex; flex-wrap: wrap; gap: .45rem;
  margin-top: .15rem; padding-top: .75rem;
  border-top: 1px solid #f1f5f9;
}
.central-modal-dialog .central-bol-card.is-modal.is-late .central-item-actions { border-top-color: #fecaca; }
.central-modal-dialog .central-bol-card.is-modal .central-item-actions .btn {
  flex: 1 1 7.5rem; justify-content: center; min-height: 2.35rem; gap: .35rem;
  font-size: .88rem; min-width: 0;
}
.central-modal-dialog .central-bol-card.is-modal .central-item-actions .btn .icon { width: 1rem; height: 1rem; }
.central-modal-close {
  position: absolute; top: .75rem; right: .75rem; z-index: 2;
  border: 0; background: #f1f5f9; cursor: pointer; padding: .4rem; border-radius: 10px;
}
.btn-pix .icon { margin-right: .15rem; }
.central-aviso-overlay[hidden] { display: none !important; }
.central-aviso-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: grid; place-items: center; padding: 1rem;
  background: rgba(10, 22, 40, .5);
}
.central-aviso-card {
  width: min(420px, 100%); background: #fff; border-radius: 16px;
  padding: 1.25rem; box-shadow: 0 20px 50px rgba(0,0,0,.25); position: relative;
}
.central-aviso-card img { width: 100%; border-radius: 10px; margin-bottom: .75rem; }

.btn-pix {
  color: #fff !important;
  background: linear-gradient(135deg, #00a884, #128c7e) !important;
  border: 0 !important;
}
.btn-pix:hover { filter: brightness(1.05); }

.central-tile-desbloqueio.is-loading { opacity: .65; }
.central-tile-desbloqueio.is-elegivel {
  background: color-mix(in srgb, #f59e0b 14%, #fff);
  border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
}
.central-tile-desbloqueio.is-inelegivel {
  background: #f1f5f9;
  color: var(--muted, #64748b);
}
.central-tile-desbloqueio.is-inelegivel .icon { color: #94a3b8; }

.central-conexao-tools { margin: .5rem 0 1rem; display: grid; gap: .65rem; }
.central-conexao-dates {
  grid-template-columns: 1fr 1fr;
  align-items: end;
}
.central-conexao-dates .central-field:nth-child(3),
.central-conexao-date-actions { grid-column: 1 / -1; }
.central-conexao-date-actions { display: flex; flex-wrap: wrap; gap: .45rem; }
.central-conexao-tools .central-field {
  display: grid; gap: .3rem; min-width: 0; position: relative; z-index: 1;
}
.central-conexao-tools .central-field > span { font-size: .82rem; color: var(--muted, #64748b); }
.central-conexao-tools input[type="search"],
.central-conexao-tools input[type="date"],
.central-conexao-tools select {
  width: 100%; max-width: 100%; box-sizing: border-box;
  min-height: 2.75rem; padding: 10px 12px;
  border: 1px solid var(--line, #e2e8f0); border-radius: 10px;
  font: inherit; font-size: 16px; background: #fff;
  -webkit-appearance: none; appearance: none;
}
.central-conexao-tools input[type="date"] {
  min-width: 0;
  color-scheme: light;
}
.central-contrato-doc {
  padding: .25rem .15rem 0.5rem;
}
.central-contrato-doc-kicker {
  margin: 0; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #64748b;
}
.central-contrato-doc-head h3 { margin: .25rem 0 .15rem; font-size: 1.2rem; }
.central-contrato-doc-dl {
  display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin: 1rem 0;
}
.central-contrato-doc-dl .is-wide { grid-column: 1 / -1; }
.central-contrato-doc-dl dt {
  margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b;
}
.central-contrato-doc-dl dd {
  margin: .15rem 0 0; font-weight: 650; padding: .55rem .7rem;
  border-radius: 10px; background: #f8fafc; border: 1px solid #eef2f7;
}
.central-contrato-doc-note {
  margin: .75rem 0 0; font-size: .82rem; color: #64748b;
  border-top: 1px solid #e2e8f0; padding-top: .75rem;
}
@media (max-width: 720px) {
  .central-conexao-dates { grid-template-columns: 1fr; }
  .central-conexao-dates .central-field,
  .central-conexao-date-actions { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .central-contrato-doc-dl { grid-template-columns: 1fr; }
}
.central-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .5rem; margin-top: .85rem;
}

.central-doc-modal[hidden] { display: none !important; }
.central-doc-modal {
  position: fixed; inset: 0; z-index: 95;
  display: grid; place-items: center;
  padding: max(.5rem, env(safe-area-inset-top)) max(.5rem, env(safe-area-inset-right))
    max(.5rem, env(safe-area-inset-bottom)) max(.5rem, env(safe-area-inset-left));
  overflow: hidden;
}
.central-doc-backdrop {
  position: absolute; inset: 0; border: 0; cursor: pointer;
  background: rgba(10, 22, 40, .55);
}
.central-doc-dialog {
  position: relative; z-index: 1; width: min(520px, 100%);
  max-height: min(92vh, 92dvh, 900px); height: auto;
  display: flex; flex-direction: column;
  margin: auto; background: #fff; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28); overflow: hidden;
}
/* Sem PDF: altura acompanha o conteúdo (sem área branca vazia). */
.central-doc-modal.is-compact .central-doc-dialog {
  width: min(420px, 100%);
  height: auto;
  max-height: min(70vh, 70dvh, 480px);
}
.central-doc-modal.is-compact.is-loading .central-doc-dialog {
  width: min(340px, 100%);
  max-height: none;
}
.central-doc-modal.is-compact .central-doc-body {
  flex: 0 1 auto;
  overflow: auto;
}
.central-doc-modal.is-wide .central-doc-dialog { width: min(720px, 100%); height: auto; }
.central-doc-modal.is-pdf .central-doc-dialog {
  width: min(920px, 100%);
  height: min(92vh, 92dvh, 900px);
  max-height: min(92vh, 92dvh, 900px);
}
@media (max-width: 640px) {
  .central-doc-modal.is-pdf .central-doc-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
  }
  .central-doc-modal.is-pdf {
    padding: 0;
    place-items: stretch;
  }
  .central-doc-modal.is-pdf .central-doc-foot {
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    padding: .75rem .9rem max(.85rem, env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -6px 20px rgba(15, 23, 42, .06);
  }
  .central-doc-modal.is-pdf .central-doc-acoes {
    display: grid;
    width: 100%;
    gap: .45rem;
  }
  .central-doc-modal.is-pdf .central-doc-acoes .btn,
  .central-doc-modal.is-pdf [data-central-download] {
    width: 100%;
    justify-content: center;
    min-height: 2.85rem;
  }
  .central-doc-modal.is-pdf [data-central-doc-close].btn-ghost {
    width: 100%;
    justify-content: center;
    order: 2;
  }
}
.central-doc-loading {
  display: grid; justify-items: center; gap: .45rem;
  text-align: center; padding: .5rem 0 .25rem;
}
.central-doc-loading p { margin: 0; }
.central-doc-spinner {
  width: 2rem; height: 2rem; border-radius: 50%;
  border: 3px solid #e2e8f0; border-top-color: var(--brand-blue, #2563eb);
  animation: central-speed-spin .75s linear infinite;
}
.central-pdf-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  flex: 0 0 auto;
  padding: .2rem 0 .35rem;
}
.central-pdf-page, .central-pdf-zoom {
  font-size: .82rem; font-weight: 650; font-variant-numeric: tabular-nums;
  min-width: 3.5rem; text-align: center; color: var(--ink, #122033);
}
.central-pdf-sep {
  width: 1px; height: 1.1rem; background: #e2e8f0; margin: 0 .15rem;
}
.central-pdf-viewport {
  flex: 1 1 auto; min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f1f5f9;
  border-radius: 10px;
  text-align: center;
  -webkit-overflow-scrolling: touch;
}
.central-pdf-viewport canvas {
  display: block;
  margin: 0 auto;
  max-width: none;
}
.central-doc-head {
  flex: 0 0 auto;
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; border-bottom: 1px solid #e2e8f0;
}
.central-doc-head h2 { margin: 0; font-size: 1.1rem; }
.central-doc-close { border: 0; background: transparent; cursor: pointer; padding: .35rem; border-radius: 8px; }
.central-doc-body {
  flex: 1 1 auto; min-height: 0;
  padding: 1rem 1.15rem; overflow: auto;
}
.central-doc-modal.is-pdf .central-doc-body {
  display: flex; flex-direction: column; gap: .65rem;
  overflow: hidden; padding: .65rem .85rem;
}
.central-doc-foot {
  flex: 0 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem;
  padding: .9rem 1.15rem; border-top: 1px solid #e2e8f0; background: #f8fafc;
}
.central-doc-acoes { display: flex; flex-wrap: wrap; gap: .45rem; }
.central-doc-frame {
  width: 100%; max-width: 100%; min-height: 280px; border: 0; border-radius: 10px;
  background: #f1f5f9; display: block;
}
.central-doc-modal.is-pdf .central-doc-frame {
  flex: 1 1 auto; min-height: 0; height: 100%;
}
.central-doc-modal.is-pdf .central-doc-dialog,
.central-doc-modal.is-pdf .central-doc-body {
  overflow-x: hidden; max-width: 100%;
}
.central-doc-modal.is-pdf {
  overflow-x: hidden;
}
.central-boleto-linha {
  flex: 0 0 auto;
  padding: .65rem .85rem; border-radius: 10px;
  background: #f8fafc; border: 1px solid #e2e8f0;
}
.central-boleto-linha code {
  display: block; margin-top: .35rem; font-size: .8rem; word-break: break-all;
  font-family: ui-monospace, monospace;
}
/* Modal Pix — composição limpa, hierarquia clara */
.central-doc-modal.is-pix .central-doc-dialog {
  width: min(420px, 100%);
  max-height: min(92vh, 720px);
}
.central-doc-modal.is-pix .central-doc-head {
  padding: .85rem 1rem .85rem 1.15rem;
  border-bottom: 0;
  background: linear-gradient(180deg, color-mix(in srgb, #32bcad 12%, #fff) 0%, #fff 100%);
}
.central-doc-modal.is-pix .central-doc-head h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
}
.central-doc-modal.is-pix .central-doc-body {
  padding: 0 1.15rem 1.1rem;
  overflow: auto;
}
.central-doc-modal.is-pix .central-doc-foot {
  background: #fff;
  border-top: 1px solid #eef2f6;
  padding: .75rem 1.15rem;
}
.central-pix-loading {
  margin: 1.5rem 0 1.25rem;
  text-align: center;
  color: var(--muted, #64748b);
  font-size: .95rem;
  display: grid;
  justify-items: center;
  gap: .75rem;
}
.central-pix-loading::before {
  content: "";
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #dbe3ef;
  border-top-color: #32bcad;
  animation: central-speed-spin .8s linear infinite;
}
.central-pix-modal {
  display: grid;
  gap: .7rem;
  justify-items: center;
  text-align: center;
  padding: .15rem 0 0;
}
.central-pix-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  min-width: 3.4rem;
  padding: .35rem .65rem;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  background: #32bcad;
  text-transform: none;
}
.central-pix-brand .icon {
  width: 1.15rem; height: 1.15rem; color: #fff;
}
.central-pix-nome {
  margin: .15rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink, #122033);
  line-height: 1.25;
}
.central-pix-valor {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  color: var(--ink, #122033);
  line-height: 1.1;
}
.central-pix-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem .85rem;
  width: 100%;
}
.central-pix-meta li {
  display: grid;
  gap: .1rem;
  min-width: 5.5rem;
  text-align: center;
}
.central-pix-meta span {
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}
.central-pix-meta strong {
  font-size: .9rem;
  font-weight: 650;
  color: var(--ink, #122033);
}
.central-pix-qr {
  width: min(220px, 68vw);
  aspect-ratio: 1;
  padding: 12px;
  margin: .15rem 0 .1rem;
  border: 1px solid #e8eef4;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 35, 60, .06);
}
.central-pix-qr img,
.central-pix-qr table {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}
.central-pix-copy {
  width: 100%;
  display: grid;
  gap: .4rem;
  text-align: left;
}
.central-pix-copy-label {
  margin: 0;
  font-size: .78rem;
  font-weight: 650;
  color: var(--muted, #64748b);
}
.central-pix-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .5rem;
  align-items: center;
}
.central-pix-code {
  margin: 0;
  padding: .7rem .8rem;
  max-height: 3.6rem;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #e8eef4;
  background: #f6f8fb;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem;
  line-height: 1.35;
  word-break: break-all;
  color: #334155;
}
.central-pix-copy-btn {
  align-self: center;
  min-width: 5.5rem;
  padding: .65rem 1rem;
  border-radius: 10px;
  font-weight: 700;
}
.central-pix-copy-btn.is-copied {
  background: #0f9f90 !important;
  border-color: #0f9f90 !important;
}
.central-pix-hint {
  margin: .1rem 0 0;
  max-width: 22rem;
  font-size: .8rem;
  line-height: 1.4;
  color: var(--muted, #64748b);
}
@media (max-width: 420px) {
  .central-pix-copy-row {
    grid-template-columns: 1fr;
  }
  .central-pix-copy-btn { width: 100%; }
}
.central-contrato-resumo {
  margin-top: 1rem; border: 1px solid var(--border, #e2e8f0); border-radius: 12px; padding: .65rem 1rem;
}
.central-contrato-resumo summary {
  cursor: pointer; font-weight: 600; color: var(--ink, #122033);
}
.central-contrato-resumo[open] summary { margin-bottom: .75rem; }
.central-contrato-resumo.is-open { margin-top: .25rem; border: 0; padding: 0; }
.central-speed.is-done .central-speed-stage,
.central-speed.is-done .central-speed-steps { display: none; }
.central-speed-result-title {
  margin: 0 0 .75rem; font-size: 1.1rem; font-weight: 750; text-align: center;
}
.central-speed-params {
  list-style: none; margin: .85rem 0 0; padding: .75rem .85rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: .45rem .75rem;
  border-radius: 12px; background: #f8fafc; border: 1px solid #eef2f7;
}
.central-speed-params li { display: grid; gap: .1rem; min-width: 0; }
.central-speed-params span {
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--muted, #64748b);
}
.central-speed-params strong {
  font-size: .84rem; font-weight: 650; color: var(--ink, #122033);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.central-speed-result-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: .65rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.central-speed-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .2rem; min-width: 0; width: 100%; max-width: 100%;
  padding: .9rem .55rem; box-sizing: border-box;
  border-radius: 14px; text-align: center;
  background: color-mix(in srgb, var(--brand-navy, #1e3a5f) 5%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 10%, #e2e8f0);
  overflow: hidden;
}
.central-speed-card.is-down {
  background: color-mix(in srgb, var(--brand-blue, #0b5cd5) 8%, #fff);
  border-color: color-mix(in srgb, var(--brand-blue, #0b5cd5) 22%, #e2e8f0);
}
.central-speed-card.is-up {
  background: color-mix(in srgb, #0f9f90 8%, #fff);
  border-color: color-mix(in srgb, #0f9f90 22%, #e2e8f0);
}
.central-speed-card-label {
  display: block; width: 100%;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: var(--muted, #64748b);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.central-speed-card-value {
  display: block; width: 100%;
  font-size: clamp(1.25rem, 6vw, 1.7rem); font-weight: 800;
  font-variant-numeric: tabular-nums; line-height: 1.15;
  color: var(--ink, #122033);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.central-speed-card-unit {
  display: block; font-size: .75rem; font-weight: 650; color: var(--muted, #64748b);
}
@media (min-width: 560px) {
  .central-speed-result-grid { gap: .75rem; }
  .central-speed-card { padding: 1.05rem .85rem; }
  .central-speed-card-label { font-size: .72rem; }
}
.central-boletos-pager { margin-top: .85rem; }
.central-tile[hidden] { display: none !important; }
.central-erp-diag { margin: 0; font-size: .85rem; }
.central-erp-diag summary { cursor: pointer; font-weight: 600; }

/* Confirmação (mesmo padrão do painel) */
.page-central .confirma { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.page-central .confirma[hidden] { display: none; }
.page-central .confirma-fundo { position: absolute; inset: 0; background: rgba(6, 18, 38, .5); }
.page-central .confirma-janela {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr);
  column-gap: 16px; width: min(440px, 100%); padding: 24px 24px 20px;
  border-radius: 16px; background: #fff; box-shadow: 0 24px 64px rgba(6, 18, 38, .28);
}
.page-central .confirma-icone {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  color: var(--brand-blue, #0b5cd5); background: color-mix(in srgb, var(--brand-blue, #0b5cd5) 12%, #fff);
}
.page-central .confirma-icone svg { width: 22px; height: 22px; }
.page-central .confirma h2 { margin: 2px 0 0; font-size: 17px; }
.page-central .confirma p { margin: 6px 0 0; color: var(--muted, #64748b); font-size: 14px; line-height: 1.55; }
.page-central .confirma-acoes { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.page-central .confirma-btn {
  min-height: 40px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.page-central .confirma-nao { color: inherit; background: #fff; border-color: var(--line, #e2e8f0); }
.page-central .confirma-sim { color: #fff; background: var(--brand-blue, #0b5cd5); }

/* Início: só os cards/atalhos — o menu de abas some (desktop e celular). */
.central-shell.is-inicio .central-nav { display: none !important; }
.central-shell:not(.is-inicio) [data-panel="inicio"] { display: none !important; }

@media (max-width: 720px) {
  .central-page { padding: 14px 0 24px; }
  .central-card, .central-shell { padding: 14px; border-radius: 16px; }
  .central-shell-head {
    flex-direction: row;
    align-items: flex-start;
    gap: .65rem;
    margin-bottom: .75rem;
  }
  .central-logout {
    min-height: 2.45rem;
    padding: .4rem .8rem;
    font-size: .82rem;
  }
  .central-head h1, .central-head h2, .central-shell-head h1 { font-size: 1.25rem; }
  .central-svc { max-width: none; }
  .central-svc-hint { display: none; }
  .central-home-grid { grid-template-columns: 1fr 1fr; gap: .55rem; }
  .central-tile { padding: .85rem .75rem; min-height: 5.5rem; }
  .central-tile strong { font-size: .95rem; }
  .central-tile span { font-size: .75rem; }

  /* Abas dentro do card — compactas, alinhadas e com scroll suave se precisar. */
  .central-nav {
    position: static;
    z-index: auto;
    display: flex !important;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: .15rem;
    margin: 0 0 .95rem;
    padding: .22rem;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, #e8eef5);
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    touch-action: pan-x manipulation;
  }
  .central-nav::-webkit-scrollbar { display: none; }
  .central-nav a {
    flex: 1 1 0;
    min-width: 3.65rem;
    max-width: none;
    min-height: 3rem;
    padding: .38rem .28rem .42rem;
    border-radius: 12px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: -.015em;
    color: var(--muted, #64748b);
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
    scroll-snap-align: start;
    -webkit-tap-highlight-color: transparent;
    transition: background .14s ease, color .14s ease, border-color .14s ease, box-shadow .14s ease;
  }
  .central-nav a .icon {
    width: 1.2rem; height: 1.2rem;
    opacity: .88;
  }
  .central-nav a span {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .central-nav a[aria-current="page"] {
    background: #fff;
    color: var(--brand-blue, #2563eb);
    border-color: color-mix(in srgb, var(--brand-blue, #2563eb) 16%, transparent);
    box-shadow: 0 2px 10px color-mix(in srgb, var(--brand-navy, #1e3a5f) 8%, transparent);
  }
  .central-nav a[aria-current="page"] .icon { opacity: 1; color: var(--brand-blue, #2563eb); }
  .central-conexao-tools { position: relative; z-index: 2; }
  .central-item-actions { display: grid; grid-template-columns: 1fr; }
  .central-item-actions .btn { width: 100%; justify-content: center; }
  .central-dl-grid { grid-template-columns: 1fr 1fr; }
  .page-central .confirma-janela { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  body.page-central.central-logado .central-page { padding-top: 8px; }
  .central-wrap { max-width: 100%; }
  .central-page:has(.central-shell) .central-wrap { max-width: 100%; padding-left: 10px; padding-right: 10px; }
}
