.campo-invalido {
  border-color: red;
}

.modal-80 {
  max-width: 80% !important;
  width: 80% !important;
}

.modal-90 {
  max-width: 90% !important;
  width: 90% !important;
}
.modal-95 {
  max-width: 95% !important;
  width: 95% !important;
}
.modal-98 {
  max-width: 98% !important;
  width: 98% !important;
}

.modal-100 {
  max-width: 100% !important;
  width: 100% !important;
}

.w100perc {
  max-width: 100% !important;
  width: 100% !important;
}

.borderTable {
  padding-top: 2px;
  padding-bottom: 2px;
  border-bottom: 1px solid #C0C0C0;
  border-collapse: collapse;
}

/* Loading */
.overlay {
  position: relative;
}

.overlay:before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  z-index: 9999;
}

.overlay i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}


#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

#loading-spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 4px solid #fff;
  border-top-color: #00a65a;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.sem-quebra td,
.sem-quebra th {
  white-space: nowrap;
}

.margem_cima20 {
  margin-top: 20px;
}

.margem_cima10 {
  margin-top: 10px;
}

.margem_cima50 {
  margin-top: 5px;
}

.margem_baixo20 {
  margin-bottom: 20px;
}

.margem_baixo10 {
  margin-bottom: 10px;
}

.margem_baixo5 {
  margin-bottom: 5px;
}

.table thead th {
  text-align: center !important;
  vertical-align: middle !important;
  height: 25px;
}

.info-box .info-box-text,
.info-box .info-box-number {
  font-size: clamp(12px, 2vw, 16px);
}

.small-box h3 {
  font-size: clamp(12px, 2vw, 30px);
}

.small-box p span {
  font-size: clamp(8px, 2vw, 12px) !important;
  line-height: 1.2;
  word-break: break-word;
}

/* Opcional: ajusta o ícone pra não ocupar espaço exagerado */
/* Ajusta o “quadrado” do ícone do info-box (AdminLTE fixa ~90px) */
.info-box .info-box-icon {
  width: clamp(30px, 4vw, 70px) !important;
  height: clamp(30px, 4vw, 70px) !important;
  line-height: clamp(30px, 4vw, 70px) !important;
}

/* Tamanho do ícone Ionicons dentro do info-box */
.info-box .info-box-icon>i[class^="ion-"],
.info-box .info-box-icon>i[class*=" ion-"] {
  font-size: clamp(20px, 4vw, 40px) !important;
  line-height: 1 !important;
}

/* Small-box: AdminLTE define font-size grande aqui */
.small-box .icon {
  font-size: clamp(30px, 4vw, 70px) !important;
  line-height: 1 !important;
  right: 10px;
  top: 10px;
  /* opcional, dá um respiro */
}

/* Ícone Ionicons dentro do small-box herda do container acima */
.small-box .icon>i[class^="ion-"],
.small-box .icon>i[class*=" ion-"] {
  font-size: inherit !important;
  line-height: 1 !important;
}

.highcharts-tooltip-container {
  z-index: 3000 !important;
  pointer-events: none;
}


/* pill base */
.refresh-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  margin-left: .5rem;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
  user-select: none;
}

.refresh-pill i {
  font-size: .9rem;
}

/* estados */
.refresh-on {
  background: linear-gradient(135deg, #0d6efd, #3aa0ff);
  color: #fff;
}

.refresh-off {
  background: #f1f3f5;
  color: #6c757d;
}

.refresh-soon {
  background: linear-gradient(135deg, #ffc107, #ff8f00);
  color: #212529;
}

/* animação quando <10s */
.refresh-soon i {
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: .9;
  }

  50% {
    transform: scale(1.15);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: .9;
  }
}