/* Segurança do Trabalho (st-) — chassi modelo B em ÂMBAR + pirâmide de Bird,
   timeline de EPI e matriz de vacinas. Reusa .fo-shell/.fo-side/.fo-main do
   gestao_fornecedores.css; aqui ficam só a cor e o que é exclusivo. */

.st-modtag {
  padding: 9px 20px;
  font-size: var(--text-2xs);
  font-weight: var(--font-bold);
  letter-spacing: .6px;
  color: #b45309;
  background: rgba(245, 158, 11, .14);
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid var(--line);
}
.st-modrule { height: 3px; background: linear-gradient(90deg, #f59e0b, transparent 70%); }
.fo-side-item.st-side.active { border-left-color: #f59e0b; }

#stAreaConteudo .card { padding: var(--space-4) var(--space-5); }

/* Tabelas (mesmo escudo anti table-layout:fixed dos fornecedores) */
.st-tabela {
  table-layout: auto !important;
  min-width: 980px; width: 100%; border-collapse: collapse;
}
.st-tabela-compacta { min-width: 720px; }
.st-tabela-scroll { overflow-x: auto; }
.st-tabela th {
  color: var(--muted); text-align: left; font-weight: var(--font-medium);
  font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .4px;
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  white-space: nowrap; vertical-align: middle;
}
.st-tabela td {
  padding: 10px 12px; border-bottom: 1px solid var(--line);
  font-size: var(--text-sm); vertical-align: middle; white-space: nowrap;
  word-wrap: normal; overflow-wrap: normal;
}
.st-tabela td.st-col-wrap { white-space: normal; min-width: 220px; }
.st-tabela tbody tr:nth-child(odd) td { background: var(--surface-alt); }
.st-tabela tbody tr:hover td { background: color-mix(in srgb, #f59e0b 8%, var(--panel)); }
.st-tabela tbody tr.st-linha { cursor: pointer; }
.st-tabela td.st-acoes { white-space: nowrap; width: 1%; }

.st-filtros { display: flex; gap: var(--space-2-5); flex-wrap: wrap; align-items: center; }
.st-filtros-acoes { display: flex; gap: var(--space-2); align-items: center; margin-left: auto; }

/* Pirâmide de Bird */
.st-bird { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.st-bird > div {
  color: #fff; text-align: center; font-weight: var(--font-bold);
  font-size: var(--text-sm); padding: 7px 0; border-radius: 4px; min-width: 40px;
}

/* Timeline de EPIs (bolinha âmbar p/ entrega, azul p/ devolução) */
.st-tl { border-left: 2px solid var(--line); margin-left: 8px; padding-left: 16px; }
.st-tl-item { position: relative; padding-bottom: 14px; font-size: var(--text-sm); cursor: pointer; border-radius: 6px; }
.st-tl-item::before {
  content: ''; position: absolute; left: -21px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%; background: #f59e0b;
}
.st-tl-item.dev::before { background: var(--blue); }
.st-tl-item:hover { background: rgba(245, 158, 11, .07); }
.st-tl-item.sel { background: rgba(245, 158, 11, .12); }

/* Matriz de vacinas */
.st-matriz td.ok { color: var(--green2, var(--green)); font-weight: var(--font-bold); }
.st-matriz td.pend { color: var(--warn); font-weight: var(--font-bold); }
.st-matriz td.venc { color: var(--danger); font-weight: var(--font-bold); }

/* Assinatura renderizada no detalhe */
.st-assinatura {
  border: 1px dashed var(--line); border-radius: 8px; min-height: 64px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-alt); padding: var(--space-2);
}
.st-assinatura img { max-height: 90px; max-width: 100%; }

@media (max-width: 768px) {
  .st-filtros { display: grid; grid-template-columns: 1fr 1fr; }
  .st-filtros .st-filtro-busca { grid-column: 1 / -1; }
  .st-filtros .input, .st-filtros .select { min-width: 0 !important; width: 100%; }
  .st-filtros-acoes { grid-column: 1 / -1; justify-content: flex-end; margin-left: 0; }
  .st-tabela td:first-child { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
}
