* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f3f4f6;
  color: #1f2937;
  min-height: 100vh;
  padding: 24px;
}

.container {
  max-width: 760px;
  margin: 0 auto;
}

header {
  margin-bottom: 24px;
  text-align: center;
}

header h1 {
  font-size: 28px;
  color: #111827;
  margin-bottom: 6px;
}

.subtitle {
  color: #6b7280;
  font-size: 14px;
}

.status {
  text-align: center;
  padding: 24px;
  color: #6b7280;
}

.status.erro {
  color: #b91c1c;
  background: #fef2f2;
  border-radius: 8px;
  border: 1px solid #fecaca;
}

.search-wrapper {
  position: relative;
  margin-bottom: 24px;
}

#busca {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s;
}

#busca:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 10;
  display: none;
}

.dropdown.open { display: block; }

.dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.1s;
}

.dropdown-item:last-child { border-bottom: none; }

.dropdown-item:hover,
.dropdown-item.active {
  background: #eff6ff;
}

.dropdown-item .nome {
  font-weight: 500;
  color: #111827;
}

.dropdown-item .meta {
  font-size: 12px;
  color: #6b7280;
  margin-top: 2px;
}

.dropdown-empty {
  padding: 16px;
  text-align: center;
  color: #9ca3af;
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 6px;
}

.tag.supervisor {
  background: #fef3c7;
  color: #92400e;
}

.resultado {
  display: grid;
  gap: 16px;
}

.card {
  background: #fff;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.card.supervisor {
  border-color: #fde68a;
  background: #fffbeb;
}

.card-header {
  padding: 12px 16px;
  background: #f9fafb;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  color: #4b5563;
  border-bottom: 1px solid #e5e7eb;
}

.card.supervisor .card-header {
  background: #fef3c7;
  color: #78350f;
  border-color: #fde68a;
}

.card-body {
  padding: 16px;
}

.linha {
  padding: 6px 0;
  font-size: 14px;
}

.linha .label {
  display: inline-block;
  width: 90px;
  color: #6b7280;
  font-weight: 500;
}

.aviso {
  color: #92400e;
  font-style: italic;
}
