/* Laboratório do OdontoSys. Reaproveita os componentes oe- do estoque (botões, selos, janelas, indicadores). */
#v-laboratorio { padding: 0 !important; color: var(--text); }

.ol-seg { margin-bottom: 14px; flex-wrap: wrap; max-width: 100%; }
.ol-lista { display: flex; flex-direction: column; gap: 10px; }

.ol-card {
  position: relative; display: grid; grid-template-columns: minmax(220px, 1.25fr) minmax(280px, 1.5fr) auto; gap: 18px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border-soft); border-radius: 12px; padding: 14px 16px 14px 22px; overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.ol-card:hover { border-color: var(--border); box-shadow: 0 4px 14px rgba(15, 35, 60, .07); }
.ol-card.cancelada { opacity: .65; }
.ol-faixa { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #8aa0b8; }
.ol-card.info .ol-faixa { background: #2f7cf6; }
.ol-card.ok .ol-faixa { background: #0f766e; }
.ol-card.alerta .ol-faixa { background: #d97706; }
.ol-card.critico .ol-faixa { background: var(--danger); }
.ol-card.neutro .ol-faixa { background: #b5c3d3; }

.ol-principal { min-width: 0; }
.ol-linha1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.ol-num { font-size: .72rem; font-weight: 800; letter-spacing: .05em; color: var(--muted); text-transform: uppercase; }
.ol-titulo { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ol-dente { font-size: .72rem; font-weight: 800; color: var(--primary); background: var(--primary-dim); padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.ol-sub { font-size: .8rem; color: var(--muted); line-height: 1.45; }
.ol-sub strong { color: var(--text); }

.ol-meio { min-width: 0; }
.ol-passos { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.ol-passos li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.ol-passos li::before { content: ''; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: #cbd8e6; z-index: 0; }
.ol-passos li:first-child::before { display: none; }
.ol-passos li.ok::before, .ol-passos li.atual::before { background: #0f766e; }
.ol-passos li.atual.critico::before { background: var(--danger); }
.ol-passos li.atual.alerta::before { background: #d97706; }
.ol-no { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b5c3d3; background: #fff; }
.ol-passos li.ok .ol-no { background: #0f766e; border-color: #0f766e; }
.ol-passos li.atual .ol-no { border-color: #2f7cf6; background: #fff; box-shadow: 0 0 0 4px rgba(47, 124, 246, .18); }
.ol-passos li.atual.critico .ol-no { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220, 38, 38, .16); }
.ol-passos li.atual.alerta .ol-no { border-color: #d97706; box-shadow: 0 0 0 4px rgba(217, 119, 6, .18); }
.ol-pn { font-size: .68rem; font-weight: 700; color: var(--muted); line-height: 1.25; }
.ol-passos li.atual .ol-pn, .ol-passos li.ok .ol-pn { color: var(--text); }
.ol-pd { font-size: .66rem; color: var(--muted); min-height: 1em; }
.ol-passos.cancelada li::before { background: #cbd8e6; }
.ol-passos.cancelada .ol-no { border-color: #cbd8e6; box-shadow: none; }
.ol-prazo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .76rem; }

.ol-acoes { display: flex; align-items: center; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.ol-link-os {
  margin-left: 8px; border: 1px solid var(--border); background: #fff; color: var(--primary); border-radius: 999px; padding: 1px 9px;
  font: inherit; font-size: .66rem; font-weight: 800; cursor: pointer;
}
.ol-link-os:hover { border-color: var(--primary); background: var(--primary-dim); }
.ol-urgente { margin-top: 2px; }
.oe-menu button.perigo { color: var(--danger); }

/* detalhes */
.ol-det-topo { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ol-dg { margin: 0 0 18px; display: grid; gap: 0; border: 1px solid var(--border-soft); border-radius: 10px; overflow: hidden; }
.ol-dl { display: grid; grid-template-columns: 180px 1fr; border-bottom: 1px solid var(--border-soft); }
.ol-dl:last-child { border-bottom: 0; }
.ol-dl dt { background: var(--surface); padding: 9px 12px; font-size: .74rem; font-weight: 800; color: var(--muted); }
.ol-dl dd { margin: 0; padding: 9px 12px; font-size: .84rem; line-height: 1.5; }
.ol-h4 { margin: 0 0 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ol-hist { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border-soft); display: flex; flex-direction: column; gap: 10px; }
.ol-hist li { position: relative; display: flex; flex-direction: column; gap: 1px; font-size: .82rem; }
.ol-hist li::before { content: ''; position: absolute; left: -20px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: #2f7cf6; }
.ol-hist li span { color: var(--muted); font-size: .78rem; }
.ol-hist li small { color: var(--muted); font-size: .72rem; }

@media (max-width: 1100px) {
  .ol-card { grid-template-columns: 1fr; gap: 12px; }
  .ol-acoes { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ol-dl { grid-template-columns: 1fr; }
  .ol-dl dt { padding-bottom: 2px; }
  .ol-pn { font-size: .62rem; }
}
