/* ============================================================
   SKELETON LOADING
   Estados: loading (shine), vazio (sem shine), sem-resultado (sem shine)
   ============================================================ */

/* --- Base das peças skeleton --- */
.sk {
  background: var(--sk-base, #e2e8f0);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.results .sk {
  flex:1;
}

/* Shine animado — ativo apenas no estado loading */
.sk-loading .sk::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: sk-shine 1.4s ease-in-out infinite;
}

@keyframes sk-shine {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

/* Tema escuro: ajuste da base e do brilho */
[data-theme="dark"] .sk {
  --sk-base: #2d3748;
}
[data-theme="dark"] .sk-loading .sk::after {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: sk-shine 1.4s ease-in-out infinite;
}

/* ============================================================
   WRAPPER GERAL — posição relativa para a overlay de msg
   ============================================================ */
.sk-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ============================================================
   OVERLAY DE MENSAGEM (estado vazio / sem resultado)
   Fica sobre o skeleton, centralizada
   ============================================================ */
.sk-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
  overflow:hidden;
  background: linear-gradient(to top, var(--bg) 0%, transparent 50%, var(--bg) 100%);
  z-index:1;
}

.sk-overlay-msg {
  background: var(--sk-overlay-bg, rgba(255, 255, 255, 0.5));
  box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 50px;
  border: 1px solid var(--sk-overlay-border, #cbd5e1);
  border-radius: var(--spacing-lg);
  padding: 80px 40px;
  text-align: center;
  font-size: calc(0.85rem * var(--font-scale, 1));
  color: var(--sk-overlay-color, #475569);
  max-width: 320px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  pointer-events: auto;
}

.sk-overlay-msg strong {
  display: block;
  font-size: calc(0.9rem * var(--font-scale, 1));
  color: var(--sk-overlay-title, #1e293b);
  margin-bottom: 4px;
}

[data-theme="dark"] .sk-overlay-msg {
  --sk-overlay-bg: rgba(26, 32, 44, 0.88);
  --sk-overlay-border: #4a5568;
  --sk-overlay-color: #a0aec0;
  --sk-overlay-title: #e2e8f0;
}

/* ============================================================
   SKELETON — FACETAS
   ============================================================ */
.sk-facets {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  padding: 8px 4px;
  overflow: hidden;
  opacity:0.5;
  height:100%;
  width:100%;
  justify-content:center;
}

/* Grupo de faceta: título + itens */
.sk-facet-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Linha de título do grupo */
.sk-facet-title {
  height: 13px;
  width: 60%;
  margin-bottom: 4px;
}

/* Linha de item (checkbox + label) */
.sk-facet-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sk-facet-check {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border-radius: 3px;
}

.sk-facet-label {
  height: 11px;
  flex: 1;
  max-width: 80%;
  border-radius: 3px;
}

/* Larguras variadas para parecer natural */
.sk-facet-item:nth-child(2) .sk-facet-label { max-width: 75%; }
.sk-facet-item:nth-child(3) .sk-facet-label { max-width: 85%; }
.sk-facet-item:nth-child(4) .sk-facet-label { max-width: 60%; }
.sk-facet-item:nth-child(5) .sk-facet-label { max-width: 70%; }
.sk-facet-item:nth-child(6) .sk-facet-label { max-width: 65%; }

/* Linha "X mais" */
.sk-facet-more {
  height: 10px;
  width: 40px;
  margin-top: 4px;
  border-radius: 3px;
  opacity: 0.6;
}

/* ============================================================
   SKELETON — LISTA DE RESULTADOS
   ============================================================ */
.sk-results {
      display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: 8px 16px;
    overflow: hidden;
    /* height: 100%; */
    margin: auto 0;
}

/* Card individual */
.sk-card {
  border: 1px solid var(--sk-card-border, #e2e8f0);
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--sk-card-bg, rgba(255, 255, 255,0.5));
  opacity:0.5;
}

[data-theme="dark"] .sk-card {
  --sk-card-border: #2d3748;
  --sk-card-bg: #1a202c;
}

/* Linha 1: número do processo (mais larga) */
.sk-card-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sk-line {
  border-radius: 4px;
}

/* Tamanhos pré-definidos */
.sk-line-xs  { height: 10px; }
.sk-line-sm  { height: 12px; }
.sk-line-md  { height: 13px; }
.sk-line-lg  { height: 14px; }

.sk-w-20  { width: 20%; }
.sk-w-25  { width: 25%; }
.sk-w-30  { width: 30%; }
.sk-w-35  { width: 35%; }
.sk-w-40  { width: 40%; }
.sk-w-50  { width: 50%; }
.sk-w-55  { width: 55%; }
.sk-w-60  { width: 60%; }
.sk-w-70  { width: 70%; }
.sk-w-full { width: 100%; }

/* Badge pill */
.sk-badge {
  height: 20px;
  border-radius: 10px;
  flex-shrink: 0;
}

.sk-badge-sm { width: 64px; }
.sk-badge-md { width: 90px; }
.sk-badge-lg { width: 120px; }

/* Divisor entre seções do card */
.sk-card-divider {
  height: 1px;
  background: var(--sk-card-border, #e2e8f0);
  margin: 0 -16px;
}

.lupa {
    width:60px;
    margin-left:15px;
}
