.badge-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.metric-chip {
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-strong);
}

.metric-chip--warn { background: rgba(180, 83, 9, 0.12); color: var(--warning); }
.metric-chip--danger { background: rgba(185, 28, 28, 0.12); color: var(--danger); }
.metric-chip--neutral { background: rgba(24, 32, 38, 0.06); color: var(--text); }

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 6px;
  gap: 6px;
  border-radius: 18px;
  background: rgba(24, 32, 38, 0.06);
}

.segmented__btn {
  min-height: 42px;
  border-radius: 14px;
  font-weight: 800;
  color: var(--text-muted);
}

.segmented__btn.is-active {
  background: white;
  color: var(--primary-strong);
  box-shadow: var(--shadow-soft);
}

.kv-list {
  display: grid;
  gap: 12px;
}

.kv-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(24, 32, 38, 0.08);
}

.kv-item:last-child { border-bottom: 0; padding-bottom: 0; }
.kv-item__label { color: var(--text-muted); font-size: 0.86rem; }
.kv-item__value { text-align: right; font-weight: 700; }

.notice {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--primary-strong);
  font-size: 0.92rem;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-actions .btn {
  min-height: 42px;
  padding-inline: 14px;
}

/* --- M�DULO EPI --------------------------------------------------- */
.signature-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #fff;
}

.signature-canvas {
  display: block;
  width: 100%;
  touch-action: none;
  cursor: crosshair;
}

.signature-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid var(--border);
}

.signature-hint {
  font-size: 12px;
  color: var(--text-muted);
}

.legal-box {
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: #78350f;
  line-height: 1.6;
}

.alert-banner {
  background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(239,68,68,0.08));
  border: 1px solid rgba(251,191,36,0.45);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13px;
  color: #92400e;
  margin-bottom: 12px;
}

.epi-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.epi-table th {
  background: var(--primary);
  color: #fff;
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
}

.epi-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.epi-table tr:nth-child(even) td { background: rgba(15,118,110,0.04); }

.epi-item-row {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 10px;
}

.epi-item-row__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.epi-item-row__num {
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
}

.btn-icon--danger { color: var(--danger); }

.status-banner {
  padding: 10px 0 6px;
  display: flex;
  justify-content: center;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 12px;
}

.detail-row:last-child { border-bottom: 0; }

.detail-row__label {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.detail-row__value {
  text-align: right;
  font-weight: 600;
}

.section-count {
  font-size: 13px;
  color: var(--text-muted);
  padding: 4px 0 8px;
  font-weight: 600;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 24px;
  text-align: center;
}

.empty-state__icon { font-size: 2.5rem; }
.empty-state__title { font-weight: 800; font-size: 1.1rem; }
.empty-state__text { color: var(--text-muted); font-size: 14px; }

/* ── SOL-CARD (card de solicitação / usuário) ─────────────────────────────── */
.sol-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 8px;
}

.sol-card {
  background: var(--surface-strong);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.sol-card--inactive { opacity: 0.6; }

.sol-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sol-card__title {
  font-weight: 800;
  font-size: 0.97rem;
}

.sol-card__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.sol-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.text-truncate {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── AVATAR BADGE SIZES ──────────────────────────────────────────────────── */
.avatar-badge--lg {
  width: 44px;
  height: 44px;
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
}

/* ── BOTÕES PEQUENOS ─────────────────────────────────────────────────────── */
.btn--sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  min-height: 34px;
}

/* ── FILTROS DE LISTA ────────────────────────────────────────────────────── */
.solicitacoes-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.solicitacoes-filters .text-input {
  flex: 1;
  min-width: 140px;
}

/* ── MODAL BOTTOM-SHEET ──────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  animation: fade-in 0.18s ease;
}

.modal-backdrop[hidden] { display: none; }

.modal-sheet {
  background: var(--surface-strong);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
  animation: slide-up 0.22s ease;
}

@keyframes slide-up {
  from { transform: translateY(48px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
