/* HTI Pay Console — tokens e overrides do shell Front Dashboard Nova */
:root {
  /* Identidade: dark no lugar do azul Front padrão */
  --hti-brand: #132144;
  --hti-brand-rgb: 19, 33, 68;
  --hti-primary: var(--hti-brand);
  --hti-offcanvas-width: min(100vw, 42rem);
  --hti-offcanvas-emitente-width: min(100vw, 52rem);

  --bs-primary: #132144;
  --bs-primary-rgb: 19, 33, 68;
  --bs-link-color: #132144;
  --bs-link-hover-color: #0d162e;
}

.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: #132144;
  --bs-btn-border-color: #132144;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0d162e;
  --bs-btn-hover-border-color: #0d162e;
  --bs-btn-focus-shadow-rgb: 19, 33, 68;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0a1224;
  --bs-btn-active-border-color: #0a1224;
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: #132144;
  --bs-btn-disabled-border-color: #132144;
  color: #fff !important;
  background-color: #132144 !important;
  border-color: #132144 !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.show > .btn-primary.dropdown-toggle {
  color: #fff !important;
  background-color: #0d162e !important;
  border-color: #0d162e !important;
}

.btn-soft-primary {
  color: #132144 !important;
  background-color: rgba(19, 33, 68, 0.1) !important;
  border-color: transparent !important;
}
.btn-soft-primary:hover,
.btn-soft-primary:focus,
.btn-soft-primary:active,
.btn-soft-primary.active,
.show > .btn-soft-primary.dropdown-toggle {
  color: #fff !important;
  background-color: #132144 !important;
  border-color: transparent !important;
}

.bg-soft-primary {
  background-color: rgba(var(--hti-brand-rgb), 0.1) !important;
}
.text-primary,
.link-primary {
  color: var(--hti-brand) !important;
}
.link-primary:hover,
.link-primary:focus {
  color: #0d162e !important;
}
.avatar-soft-primary,
.icon-soft-primary {
  color: var(--hti-brand) !important;
  background-color: rgba(var(--hti-brand-rgb), 0.1) !important;
  background: rgba(var(--hti-brand-rgb), 0.1) !important;
}

.hti-offcanvas-lg {
  --bs-offcanvas-width: var(--hti-offcanvas-width);
  width: var(--hti-offcanvas-width) !important;
  max-width: 100vw;
  z-index: 1080;
  transition: none !important;
}

.hti-offcanvas-emitente {
  --bs-offcanvas-width: var(--hti-offcanvas-emitente-width);
  width: var(--hti-offcanvas-emitente-width) !important;
}

/* Garante painéis de formulário (fora do navbar) mesmo com regras .navbar-expand .offcanvas */
.main .offcanvas.hti-offcanvas-lg,
.content .offcanvas.hti-offcanvas-lg,
body > .offcanvas.hti-offcanvas-lg,
.offcanvas.hti-offcanvas-lg {
  position: fixed !important;
  visibility: hidden;
  background-color: var(--bs-offcanvas-bg, #fff) !important;
  border: var(--bs-offcanvas-border-width, 1px) solid var(--bs-offcanvas-border-color, rgba(0, 0, 0, 0.1)) !important;
  transform: translateX(100%) !important;
  transition: none !important;
}

.main .offcanvas.hti-offcanvas-lg.show,
.content .offcanvas.hti-offcanvas-lg.show,
body > .offcanvas.hti-offcanvas-lg.show,
.offcanvas.hti-offcanvas-lg.show {
  visibility: visible !important;
  transform: none !important;
}

/* Backdrop sem fade */
.offcanvas-backdrop,
.offcanvas-backdrop.fade,
.offcanvas-backdrop.show {
  transition: none !important;
  opacity: .5 !important;
}

.hti-kpi-card .card-subtitle {
  font-size: .75rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #677788;
}

.hti-kpi-value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
}

.hti-home-chart {
  min-height: 220px;
}

.offcanvas-backdrop {
  z-index: 1075;
}

/* Tablist estilo portal Next / Eventos — fora da tabela, compacto, scroll no mobile */
.hti-tabs-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  width: 100%;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.hti-tabs-scroll::-webkit-scrollbar {
  height: 4px;
}
.hti-tabs-scroll::-webkit-scrollbar-thumb {
  background: var(--bs-border-color, #e7eaf3);
  border-radius: 4px;
}
.hti-tabs-scroll .nav-segment {
  display: inline-flex;
  flex-wrap: nowrap;
  width: max-content;
  max-width: none;
  min-width: 0;
}
.hti-nav-segment-sm .nav-link {
  white-space: nowrap;
  font-size: .8125rem;
  padding: .4rem .75rem;
  line-height: 1.25;
  margin: 0;
}
.hti-nav-segment-sm .badge {
  font-size: .65rem;
  font-weight: 600;
  vertical-align: middle;
}

.hti-emit-tabs {
  max-width: 100%;
  min-width: 0;
  margin: 0 0 .75rem;
  padding: 0;
}

.hti-emit-tabs .nav-segment {
  padding: .2rem;
}

.hti-emit-filters {
  margin: 0 0 .75rem !important;
}

/* Offcanvas emitente — formulários no padrão Front */
#emitenteModal .offcanvas-body {
  padding-top: 1rem;
}
#emitenteModal .hti-emit-pane .row {
  --bs-gutter-y: .75rem;
  margin-bottom: .25rem;
}
#emitenteModal label.caption,
#emitenteModal label:not(.form-check-label) {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--bs-body-color);
}
#emitenteModal .hti-emit-form .form-label {
  margin-bottom: .35rem;
}
#emitenteModal .hti-emit-form .form-control,
#emitenteModal .hti-emit-form .form-select {
  font-size: .875rem;
}
#emitenteModal .hti-emit-form hr {
  opacity: .15;
}
/* Telefone/celular: garante largura útil em sm/md/lg */
#emitenteModal .hti-emit-phone {
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 576px) {
  #emitenteModal .hti-emit-phone {
    min-width: 9.75rem;
  }
}
@media (min-width: 992px) {
  #emitenteModal .hti-emit-phone {
    min-width: 10.5rem;
  }
}
#emitenteModal .input-group-append {
  display: flex;
}
#emitenteModal .input-group-append .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
#emitenteModal .btn-info {
  --bs-btn-color: #fff;
  --bs-btn-bg: #132144;
  --bs-btn-border-color: #132144;
  --bs-btn-hover-bg: #0d162e;
  --bs-btn-hover-border-color: #0d162e;
  --bs-btn-active-bg: #0a1224;
  --bs-btn-active-border-color: #0a1224;
  color: #fff;
  background-color: #132144;
  border-color: #132144;
}
#emitenteModal .offcanvas-footer,
#taxasModal .offcanvas-footer,
#confirmacaoModal .offcanvas-footer {
  padding: .875rem 1.25rem;
  background: var(--bs-body-bg, #fff);
}
#emitenteModal table.table {
  font-size: .8125rem;
}

/* Skeleton — alinhado à console Next Ingresso */
.console-skel {
  cursor: wait;
}
.console-skel .placeholder {
  border-radius: 0.375rem;
}
.console-skel-label {
  display: block;
  width: 45%;
  max-width: 8rem;
  min-height: 0.7rem;
  margin-bottom: 0.85rem;
}
.console-skel-value {
  display: block;
  width: 70%;
  max-width: 11rem;
  min-height: 1.85rem;
  margin-bottom: 0.85rem;
}
.console-skel-meta {
  display: block;
  width: 55%;
  max-width: 9rem;
  min-height: 0.65rem;
}
.console-skel-line {
  display: block;
  width: 100%;
  min-height: 0.75rem;
  margin-bottom: 0.75rem;
}
.console-skel-line:last-child {
  margin-bottom: 0;
}
.console-skel-line.is-short {
  width: 62%;
}
.console-skel-line.is-medium {
  width: 80%;
}
.console-skel-avatar {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  border-radius: 50%;
  vertical-align: middle;
}
.console-skel-chart {
  display: block;
  width: 100%;
  min-height: 10rem;
  height: 100%;
  border-radius: 0.5rem;
}
.console-skel-chart.is-sm {
  min-height: 9rem;
}
.console-skel-chart.is-lg {
  min-height: 18rem;
}
.console-skel-circle {
  display: block;
  width: 5.5rem;
  height: 5.5rem;
  min-height: 5.5rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
}
[data-hs-theme="dark"] .console-skel .placeholder,
html[data-bs-theme="dark"] .console-skel .placeholder {
  opacity: 0.28;
}

/* Primary dark — mata resquícios de azul Front (#377dff) em hover/focus */
.btn-primary,
.btn-primary:focus,
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active {
  box-shadow: 0 4px 11px rgba(19, 33, 68, 0.28) !important;
}

.btn-outline-primary {
  --bs-btn-color: #132144;
  --bs-btn-border-color: #132144;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #132144;
  --bs-btn-hover-border-color: #132144;
  --bs-btn-focus-shadow-rgb: 19, 33, 68;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0d162e;
  --bs-btn-active-border-color: #0d162e;
  color: #132144 !important;
  border-color: #132144 !important;
  background-color: transparent !important;
}
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
.btn-outline-primary.active {
  color: #fff !important;
  background-color: #132144 !important;
  border-color: #132144 !important;
  box-shadow: 0 4px 11px rgba(19, 33, 68, 0.28) !important;
}

.btn-ghost-primary,
.btn-ghost-primary:hover,
.btn-ghost-primary:focus,
.btn-ghost-primary.btn-no-focus:hover,
.btn-ghost-primary.btn-no-focus:hover:hover {
  color: #132144 !important;
  background-color: rgba(19, 33, 68, 0.1) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.btn-ghost-primary.dropdown-toggle {
  color: #132144 !important;
  background-color: rgba(19, 33, 68, 0.1) !important;
}

.btn-soft-primary:hover,
.btn-soft-primary:focus {
  box-shadow: 0 4px 11px rgba(19, 33, 68, 0.28) !important;
}

.page-link,
.page-item.active .page-link {
  color: #132144;
}
.page-item.active .page-link {
  background-color: #132144 !important;
  border-color: #132144 !important;
}
.page-link:hover {
  color: #0d162e !important;
  background-color: rgba(19, 33, 68, 0.08) !important;
  border-color: rgba(19, 33, 68, 0.2) !important;
}

.form-check-input:checked {
  background-color: #132144 !important;
  border-color: #132144 !important;
}
.form-check-input:focus {
  border-color: rgba(19, 33, 68, 0.45) !important;
  box-shadow: 0 0 0 0.25rem rgba(19, 33, 68, 0.2) !important;
}

.legend-indicator.bg-primary {
  background-color: #132144 !important;
}

/* Marca HTI é quase quadrada — não inflar como o wordmark antigo */
.navbar-brand .navbar-brand-logo {
  width: auto !important;
  min-width: 0 !important;
  max-width: 2.75rem;
  max-height: 2.4rem;
  height: auto;
}
.navbar-brand .navbar-brand-logo-mini {
  width: auto !important;
  min-width: 0 !important;
  max-width: 2.15rem;
  max-height: 2.15rem;
  height: auto;
}
.hti-login-logo {
  display: block;
  width: auto;
  max-width: 6.5rem;
  max-height: 5.75rem;
  height: auto;
}

