/* Portal IBG - tabelas, listas e estados */
.table-responsive {
  border-radius: 16px;
}

.table-premium {
  border-spacing: 0;
}

.table-premium thead th {
  position: static;
  background: #f8fafc;
  box-shadow: inset 0 -1px 0 var(--border);
}

.table-premium tbody tr {
  background: #fff;
}

.table-premium tbody tr:hover {
  background: #f8fbff;
}

.table-premium td {
  border-bottom: 1px solid #edf2f7;
}

.table-premium strong {
  font-weight: 750;
}

.badge-premium {
  border: 1px solid transparent;
  min-height: 24px;
}

.badge-premium.success {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.badge-premium.danger {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.badge-premium.warning {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.badge-premium.info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.badge-premium.muted {
  background: #f8fafc;
  color: #64748b;
  border-color: #e2e8f0;
}

.action-row,
.table-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}

.empty-state {
  border: 1px dashed #d7e0eb;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.88), rgba(248,250,252,.86));
}

.empty-state i {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 20px;
  color: var(--ibg-700);
  background: var(--ibg-100);
}

.pagination-wrap {
  justify-content: space-between;
  background: #fff;
  border-radius: 0 0 16px 16px;
}

.page-link-btn {
  border-radius: 10px;
}

.boleto-card {
  background: #fff;
  border-radius: 18px;
}

.boleto-card-header {
  background: #fff;
}

.boleto-card-header:hover {
  background: #f8fbff;
}

.boleto-card-body {
  background: #f8fafc;
}

.boleto-detail-block {
  border-radius: 14px;
  background: #fff;
}

.badge-bb {
  min-width: 38px;
  height: 30px;
  border-radius: 10px;
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.12);
}

.btn-bb-via-lg {
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,51,153,.18);
}

.skeleton-line {
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
  background-size: 600px 100%;
  animation: shimmer 1.4s infinite;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(248,250,252,.62);
  backdrop-filter: blur(6px);
}

.loading-overlay.show {
  display: flex;
}

.premium-spinner {
  width: 42px;
  height: 42px;
  border: 3px solid #dbeafe;
  border-top-color: var(--ibg-700);
  border-radius: 50%;
  animation: spin .75s linear infinite;
}

.boleto-modal-row {
  display: grid;
  grid-template-columns: minmax(130px, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.boleto-modal-label {
  font-size: 12.5px;
  color: var(--text-muted);
  min-width: 0;
}

.boleto-modal-value {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.copy-mini-btn {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-secondary);
  transition: .18s ease;
}

.copy-mini-btn:hover {
  color: var(--ibg-700);
  border-color: var(--ibg-400);
  background: var(--ibg-100);
}
