* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: #0A1121;
  color: #FFF8EC;
}
#entrada {
  position: fixed;
  inset: 0;
  z-index: 30;
  max-width: none;
  margin: 0;
  padding: 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(820px 420px at 50% 0%, rgba(255, 194, 71, 0.22), transparent 62%),
    linear-gradient(165deg, #1a3054 0%, #0A1121 48%, #070d18 100%);
}
#entrada[hidden] { display: none !important; }
#entrada .cartao {
  width: min(400px, 100%);
  background: #ffffff;
  border-radius: 24px;
  padding: 36px 32px 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}
#entrada .icone {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 16px;
  filter: drop-shadow(0 10px 18px rgba(10, 17, 33, 0.22));
}
#entrada h1 {
  margin: 0;
  color: #0A1121;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
}
#entrada .sub {
  margin: 6px 0 8px;
  color: #5c6b82;
  font-size: 15px;
  text-align: center;
}
#entrada label {
  color: #31445f;
  font-size: 13px;
  font-weight: 700;
  margin: 16px 0 6px;
}
#entrada label.lembrar {
  margin-top: 12px;
  color: #31445f;
  font-weight: 600;
}
#entrada label.lembrar input {
  width: 16px;
  height: 16px;
  accent-color: #e0a020;
}
#entrada input[type="text"],
#entrada input[type="password"] {
  border: 1px solid #d5deea;
  border-radius: 12px;
  padding: 13px 14px;
  background: #f6f8fb;
  outline: none;
}
#entrada input[type="text"]:focus,
#entrada input[type="password"]:focus {
  border-color: #e0a020;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 194, 71, 0.35);
}
#entrada button {
  width: 100%;
  margin-top: 22px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: #FFC247;
  color: #0A1121;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
#entrada button:hover { background: #ffb31a; }
#entrada .aviso {
  min-height: 22px;
  margin: 14px 0 0;
  color: #b42318;
  text-align: center;
}
label { display: block; font-size: 14px; margin: 12px 0 4px; color: #A9B4C6; }
label.lembrar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 14px;
}
label.lembrar input { width: auto; }
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #0A1121;
  font-size: 16px;
}
.aviso { min-height: 20px; margin: 12px 0 0; color: #9b2c2c; font-size: 14px; }

.faixa {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  background: #0A1121;
  padding: 8px 12px;
}
.marca {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFF8EC;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-right: 4px;
}
.marca img { width: 28px; height: 28px; }
.botoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  flex: 1 1 220px;
  min-width: min(100%, 220px);
}
button.menu {
  width: auto;
  margin: 0;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #0A1121;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
button.menu:hover { background: #FFC247; }
.espera-exame {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 36px;
}
.espera-exame p {
  margin: 0;
  max-width: 460px;
  padding: 48px 40px;
  background: #ffffff;
  color: #0A1121;
  border-radius: 8px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 8px 24px rgba(20, 40, 70, 0.12);
}
.espera-exame[hidden] { display: none !important; }
.conta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.grupo-menu { position: relative; }
#btn-clinica {
  max-width: min(280px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#lista-clinicas { width: min(320px, calc(100vw - 16px)); }
button.iniciais {
  width: 34px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #FFC247;
  color: #0A1121;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
.lista button.marcado { background: #FFC247; font-weight: bold; }
#lista-config button,
#dentro.escuro #lista-config button {
  background: #ffffff;
  color: #0A1121;
}
#lista-config button.escolhido,
#lista-config button.escolhido:hover,
#dentro.escuro #lista-config button.escolhido,
#dentro.escuro #lista-config button.escolhido:hover {
  background: #FFC247;
  color: #0A1121;
  font-weight: bold;
}

.grupo-exame { position: relative; }
.lista {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  width: min(320px, calc(100vw - 16px));
  max-height: min(70vh, calc(100vh - 96px));
  overflow: auto;
  background: #ffffff;
  border: 1px solid #A9B4C6;
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(20, 40, 70, 0.18);
}
.lista.lista-direita {
  left: auto;
  right: 0;
  width: min(240px, calc(100vw - 16px));
}
.nome-conta {
  margin: 4px 8px 8px;
  font-size: 14px;
  font-weight: bold;
  color: #0A1121;
}
.lista button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: normal;
  text-align: left;
  cursor: default;
}
.lista .titulo-grupo {
  margin: 8px 8px 2px;
  font-size: 12px;
  font-weight: bold;
  color: #0A1121;
}
.lista .subitem { padding-left: 18px; }
#lista-recentes { width: min(380px, calc(100vw - 16px)); }
#lista-recentes button.recente { cursor: pointer; line-height: 1.25; }
#lista-recentes button.recente small { display: block; color: #555; font-size: 12px; font-weight: normal; }
#lista-recentes .vazio { margin: 6px 8px; color: #555; font-size: 13px; }

#dentro[hidden],
#folha[hidden],
.miolo[hidden],
#relatorio[hidden],
#rel-previa[hidden],
#documentos[hidden],
.busca-alteracao[hidden],
#exame-urinario[hidden] { display: none !important; }
#dentro {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #A9B4C6;
}
.miolo {
  flex: 1;
  align-self: stretch;
  width: calc(100% - 16px);
  max-width: none;
  min-height: 0;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: 10px;
  margin: 8px 8px 10px;
  overflow: visible;
}
.lado {
  flex: 1 1 auto;
  width: auto;
  min-width: 280px;
  align-self: stretch;
  max-width: none;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.topo {
  display: none;
}
.topo.aberto {
  display: block;
  position: fixed;
  z-index: 60;
  width: 700px;
  max-width: calc(100vw - 16px);
  margin: 0;
}
.topo.aberto .paciente {
  box-shadow: 0 10px 28px rgba(10, 17, 33, 0.28);
}
.paciente {
  width: 100%;
  flex: 1 1 auto;
  min-width: 0;
  background: #ffffff;
  border: 1px solid #A9B4C6;
  border-radius: 8px;
  padding: 4px 8px 8px;
}
.paciente label {
  margin: 6px 0 3px;
  color: #0A1121;
  font-size: 12px;
  font-weight: bold;
}
.paciente .linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.paciente input {
  width: auto;
  flex: 1;
  min-width: 0;
  height: 28px;
  padding: 0 8px;
  border: 1px solid #A9B4C6;
  border-radius: 6px;
  background: #ffffff;
  color: #0A1121;
  font-size: 14px;
}
.paciente input.data {
  flex: none;
  width: 112px;
}
#nome-paciente,
#solicitante {
  min-width: 0;
  height: 32px;
  font-size: 15px;
}
.combo-solicitante {
  position: relative;
  flex: 1;
  min-width: 0;
}
.combo-solicitante input { width: 100%; }
.lista-solicitante {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: 34px;
  bottom: auto;
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #A9B4C6;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(10, 17, 33, 0.18);
}
.lista-solicitante button {
  display: block;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0 8px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #0A1121;
  font-size: 14px;
  font-weight: normal;
  text-align: left;
  cursor: pointer;
}
.lista-solicitante button.marcado,
.lista-solicitante button:hover { background: #FFC247; }
button.repetir {
  width: auto;
  flex: none;
  height: 28px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #A9B4C6;
  border-radius: 6px;
  background: #ffffff;
  color: #0A1121;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  white-space: nowrap;
}
button.repetir:hover,
#dentro.escuro button.repetir:hover {
  background: #FFC247;
  border-color: #FFC247;
  color: #0A1121;
}
.grupo-alteracoes {
  flex: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
  margin-left: 0;
}
.alteracoes[hidden] { display: none !important; }
.alteracoes {
  flex: 1;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-left: 0;
  overflow: hidden;
  background: #ffffff;
  color: #000000;
  border: 1px solid #A9B4C6;
  border-radius: 8px;
}
.corpo-alteracoes {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overflow-anchor: none;
  padding: 6px 8px 10px;
  background: #ffffff;
  container-type: inline-size;
}
.alteracoes .par-orgaos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px 16px;
  align-items: start;
}
@container (min-width: 400px) {
  .alteracoes .par-orgaos { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
.alteracoes h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #0A1121;
}
#exame-urinario .corpo-alteracoes { min-width: 0; }
#exame-urinario .rins-lados {
  column-gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
#exame-urinario .rins-lados > div { min-width: 0; max-width: 100%; }
#exame-urinario .rins-lados .duas-colunas {
  width: 100%;
  max-width: 100%;
  grid-auto-columns: minmax(0, 1fr);
}
#exame-urinario .medidas-rim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
  max-width: 100%;
}
#exame-urinario .medidas-rim .rotulo { display: inline; margin: 0; }
#exame-urinario .linha-urina {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 3px 0;
}
#exame-urinario .obrigatorio { color: #9b1c1c; font-weight: 700; }
#exame-urinario input.curto { width: 58px; }
#exame-venoso .rins-lados,
#exame-mamas .rins-lados {
  column-gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
#exame-venoso .corpo-alteracoes { min-width: 0; }
#exame-venoso .rins-lados > div { min-width: 0; }
#exame-mamas .corpo-alteracoes { min-width: 0; }
#exame-mamas .rins-lados > div { min-width: 0; max-width: 100%; }
#exame-mamas select,
#exame-mamas input.curto { max-width: 100%; min-width: 0; }
#exame-mamas .rins-lados select { width: 100%; }
#exame-mamas .linha,
#exame-mamas .medidas-rim { max-width: 100%; }
#exame-mamas .linha.medidas { flex-wrap: wrap; max-width: 100%; }
#exame-mamas .medidas-rim {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 4px 0;
}
#exame-mamas .medidas-rim .rotulo { display: inline; margin: 0; }
#exame-venoso .obrigatorio,
#exame-mamas .obrigatorio { color: #9b1c1c; font-weight: 700; }
#exame-venoso h3.parva-titulo { cursor: pointer; }
#exame-venoso .parva-corpo.recolhida { display: none; }
#exame-venoso .medida-safena { flex-wrap: nowrap; gap: 4px; }
#exame-venoso .medida-safena .rotulo { display: inline; width: 52px; margin: 0; flex: none; }
#exame-venoso .medida-safena input.curto { width: 36px; }
#exame-venoso label.marca.mini {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  flex: none;
}
#exame-venoso label.marca.mini input { width: 11px; height: 11px; margin: 0; }
#exame-venoso label.botao-icone {
  position: relative;
  width: 22px;
  height: 22px;
  justify-content: center;
  padding: 0;
  border: 1px solid #A9B4C6;
  border-radius: 4px;
  background: #fff;
  color: #0A1121;
  cursor: pointer;
}
#exame-venoso label.botao-icone input {
  position: absolute;
  opacity: 0;
  width: 18px;
  height: 18px;
  margin: 0;
}
#exame-venoso label.botao-icone svg { width: 15px; height: 15px; display: block; }
#exame-venoso label.olho .corte { display: none; }
#exame-venoso label.botao-icone:has(input:checked) {
  background: #1F4E79;
  border-color: #1F4E79;
  color: #fff;
}
#exame-venoso label.olho:has(input:checked) .corte { display: block; }
#exame-venoso button.desenhar-varizes {
  width: auto; margin: 4px 0; padding: 6px 10px; background: #a00000; color: #fff; font-weight: 700;
}
#esquema-venoso { margin-top: 12px; text-align: center; }
#esquema-venoso img { display: block; max-width: 100%; height: auto; margin: 8px auto; }
.v-desenho {
  position: fixed; inset: 0; z-index: 80; background: rgba(10, 17, 33, 0.45);
  display: flex; align-items: center; justify-content: center; padding: 12px;
}
.v-desenho[hidden] { display: none !important; }
.v-desenho-caixa {
  width: min(1100px, 96vw); height: min(92vh, 920px); background: #fff; color: #0A1121;
  display: flex; flex-direction: column; border-radius: 8px; overflow: hidden;
}
.v-desenho-topo, .v-desenho-base { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 10px; }
.v-desenho-base { justify-content: space-between; }
.v-desenho-telas { flex: 1; display: flex; gap: 8px; overflow: auto; padding: 0 8px 8px; }
.v-desenho-telas canvas { display: block; background: #fff; border: 1px solid #333; cursor: crosshair; touch-action: none; }
.v-desenho-telas h3 { color: #a00000; margin: 0 0 4px; }
.v-desenho button { width: auto; padding: 6px 10px; }
.v-desenho .v-ok { background: #006400; color: #fff; font-weight: 700; }
#exame-tv .importante { color: #9b1c1c; font-weight: 700; }
#exame-tv .azul { color: #1F4E79; font-weight: 700; }
#exame-tv select { max-width: 220px; }
#exame-tv select.figo { min-width: 88px; }
#exame-tv .tv-item { margin: 8px 0 10px; padding-bottom: 6px; border-bottom: 1px solid #d5dbe6; }
#exame-prostata .recuo { margin-left: 18px; }
#exame-bolsa .importante { color: #9b1c1c; font-weight: 700; }
#exame-bolsa .azul { color: #1F4E79; font-weight: 700; }
#exame-bolsa .corpo-alteracoes { min-width: 0; }
#exame-bolsa .be-lados {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#exame-bolsa .be-lado { min-width: 0; max-width: 100%; }
#exame-bolsa .be-lado select { max-width: 100%; }
#exame-bolsa .be-lado .linha,
#exame-bolsa .be-lado .linha.medidas { flex-wrap: wrap; max-width: 100%; }
#exame-calcaneo .azul { color: #1F4E79; font-weight: 700; }
#exame-calcaneo .doppler { color: blue; font-weight: 700; }
#exame-calcaneo .importante { color: #9b1c1c; font-weight: 700; }
#exame-calcaneo .roxo { color: purple; font-weight: 700; }
#exame-calcaneo .ca-grupo { margin: 8px 0 2px; color: #1F4E79; font-weight: 700; }
#exame-calcaneo .ca-tam { font-weight: 700; }
#exame-calcaneo .corpo-alteracoes { min-width: 0; }
#exame-calcaneo .ca-lado { min-width: 0; max-width: 100%; }
#exame-calcaneo .ca-lado select { max-width: 100%; }
#exame-calcaneo .ca-lados,
#exame-calcaneo .ca-lados.bilateral {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#exame-calcaneo .ca-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}
#exame-carotidas .azul,
#exame-carotidas .cv-grupo { color: #1F4E79; font-weight: 700; margin: 8px 0 2px; }
#exame-carotidas .cv-ratio { margin-left: 6px; }
#exame-carotidas .importante { color: #9b1c1c; font-weight: 700; }
#exame-carotidas .cv-seg { margin: 6px 0 2px; font-weight: 700; }
#exame-carotidas .corpo-alteracoes { min-width: 0; }
#exame-carotidas .cv-lado { min-width: 0; max-width: 100%; }
#exame-carotidas .cv-lado select,
#exame-carotidas .cv-lado input.curto { max-width: 100%; }
#exame-carotidas input.curto { width: 72px; }
#exame-carotidas .cv-lados {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#exame-cotovelo .azul { color: #1F4E79; font-weight: 700; }
#exame-cotovelo .doppler { color: blue; font-weight: 700; }
#exame-cotovelo .importante { color: #9b1c1c; font-weight: 700; }
#exame-cotovelo .co-grupo { margin: 8px 0 2px; color: #1F4E79; font-weight: 700; }
#exame-cotovelo .co-rotulo { margin: 6px 0 2px; font-weight: 700; }
#exame-cotovelo .corpo-alteracoes { min-width: 0; }
#exame-cotovelo .co-lado { min-width: 0; max-width: 100%; }
#exame-cotovelo .co-lado select { max-width: 100%; width: 100%; }
#exame-cotovelo .co-lados,
#exame-cotovelo .co-lados.bilateral {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#exame-cotovelo .co-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}
#exame-joelho .azul { color: #1F4E79; font-weight: 700; }
#exame-joelho .doppler { color: blue; font-weight: 700; }
#exame-joelho .importante { color: #9b1c1c; font-weight: 700; }
#exame-joelho .jo-grupo,
#dentro.escuro #exame-joelho .jo-grupo {
  margin: 10px 0 4px;
  padding: 4px 8px;
  background: #1F4E79;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}
#exame-joelho .jo-rotulo { margin: 6px 0 2px; font-weight: 700; }
#exame-joelho .corpo-alteracoes { min-width: 0; }
#exame-joelho .jo-lado { min-width: 0; max-width: 100%; }
#exame-joelho .jo-lado select { max-width: 100%; width: 100%; }
#exame-joelho .jo-lados,
#exame-joelho .jo-lados.bilateral {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#exame-joelho .jo-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}
#exame-mao .azul,
#dentro.escuro #exame-mao .azul { color: #1F4E79; font-weight: 700; }
#exame-mao .doppler { color: blue; font-weight: 700; }
#exame-mao .importante,
#dentro.escuro #exame-mao .importante { color: #9b1c1c; font-weight: 700; }
#exame-mao .ma-rotulo { margin: 8px 0 2px; }
#exame-mao .ma-dica { margin: 0 0 6px; color: #666; font-size: 12px; font-style: italic; }
#exame-mao .corpo-alteracoes { min-width: 0; }
#exame-mao .ma-lado { min-width: 0; max-width: 100%; overflow-x: auto; }
#exame-mao .ma-mapa { width: 100%; max-width: 220px; height: auto; }
#exame-mao .ma-art { max-width: 100%; width: 100%; }
#exame-mao .ma-lados,
#exame-mao .ma-lados.bilateral {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#exame-mao .ma-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}
#exame-mao .ma-dedos { width: 100%; max-width: 100%; table-layout: fixed; border-collapse: collapse; margin: 2px 0 8px; }
#exame-mao .ma-dedos th:first-child { white-space: normal; width: 42%; }
#exame-mao .ma-dedos th,
#exame-mao .ma-dedos td { text-align: center; padding: 2px 6px; font-size: 13px; font-weight: 700; }
#exame-mao .ma-dedos th:first-child { text-align: left; padding-left: 0; }
#exame-mao .ma-dedos input { width: 16px; height: 16px; }
#exame-mao .ma-cisto { border: 1px solid #A9B4C6; border-radius: 4px; padding: 4px 6px; margin: 6px 0; }
#exame-mao .ma-abas { display: flex; gap: 4px; margin: 4px 0; }
#exame-mao .ma-aba {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #A9B4C6;
  border-radius: 4px;
  background: #fff;
  color: #0A1121;
  font-weight: 700;
  cursor: pointer;
}
#exame-mao .ma-aba.marcado { background: #1F4E79; border-color: #1F4E79; color: #fff; }
#exame-mao .ma-mapa { display: block; background: #fff; border: 1px solid #888; }
#exame-mao .ma-mapa.ma-fora { display: none !important; }
#exame-mao .ma-mapa.espelho { transform: scaleX(-1); }
#exame-mao .ma-ponto { fill: #5c8cff; stroke: #000; stroke-width: 1; cursor: pointer; }
#exame-mao .ma-ponto:hover { fill: #ffa64d; }
#exame-mao .ma-ponto.marcado,
#exame-mao .ma-ponto.marcado:hover { fill: #d62828; }
#exame-mao .ma-status { margin: 4px 0; max-width: 220px; min-height: 32px; color: #666; font-size: 12px; font-style: italic; }
#exame-mao .ma-fibro-det { max-width: 100%; }
#exame-mao .ma-fibro-det .linha { max-width: 100%; }
#exame-mao .ma-fibro-det select { max-width: 100%; }
#exame-mao .ma-fibro-tipo { align-items: center; gap: 6px; }
#exame-parede .corpo-alteracoes { min-width: 0; }
#exame-parede .pa-rotulo { margin: 6px 0 2px; font-weight: 700; }
#exame-parede .pa-hernia,
#exame-parede .pa-item {
  border: 1px solid #A9B4C6;
  border-radius: 4px;
  padding: 4px 8px 6px;
  margin: 6px 0;
}
#exame-parede .pa-texto { width: 180px; max-width: 100%; }
#exame-parede input:disabled { opacity: 0.4; }
#exame-partes .corpo-alteracoes { min-width: 0; }
#exame-partes .pm-item,
#exame-partes .pm-area {
  border: 1px solid #A9B4C6;
  border-radius: 4px;
  padding: 4px 8px 6px;
  margin: 6px 0;
}
#exame-partes .pm-rotulo { margin: 6px 0 2px; font-weight: 700; }
#exame-partes .pm-texto { width: 260px; max-width: 100%; }
#exame-partes .pm-obs { width: 100%; max-width: 420px; }
#exame-partes select { max-width: 100%; }
#exame-partes .pm-tipo { width: 220px; }
#exame-partes .importante { color: #9b1c1c; font-weight: 700; }
#exame-partes .doppler { color: blue; font-weight: 700; }
#exame-partes .pm-hs { color: #8B0000; font-weight: 700; }
#exame-partes .pm-aviso { margin: 4px 0 8px; color: #8B0000; font-size: 12px; font-style: italic; }
#exame-partes .pm-sub { margin: 8px 0 2px; color: #8B0000; font-weight: 700; }
#exame-partes .pm-rec { font-weight: 700; font-style: italic; }
#dentro.escuro #exame-partes .importante,
#dentro.escuro #exame-partes .pm-hs,
#dentro.escuro #exame-partes .pm-aviso,
#dentro.escuro #exame-partes .pm-sub { color: #ff8a80; }
#dentro.escuro #exame-partes .doppler { color: #8ab4ff; }
#exame-pe .corpo-alteracoes { min-width: 0; }
#exame-pe .azul,
#dentro.escuro #exame-pe .azul { color: #1F4E79; font-weight: 700; }
#exame-pe .doppler { color: blue; font-weight: 700; }
#dentro.escuro #exame-pe .doppler { color: #8ab4ff; font-weight: 700; }
#exame-pe .pe-lado { min-width: 0; max-width: 100%; }
#exame-pe .pe-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  width: 100%;
}
#exame-pe select { max-width: 100%; }
#exame-pe .pe-espaco { width: 70px; }
#exame-pe .pe-rotulo { margin: 8px 0 2px; }
#exame-pe .pe-cisto { border: 1px solid #A9B4C6; border-radius: 4px; padding: 4px 6px; margin: 6px 0; }
#exame-pe .pe-abas { display: flex; gap: 4px; margin: 4px 0; }
#exame-pe .pe-aba {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #A9B4C6;
  border-radius: 4px;
  background: #fff;
  color: #0A1121;
  font-weight: 700;
  cursor: pointer;
}
#exame-pe .pe-aba.marcado { background: #1F4E79; border-color: #1F4E79; color: #fff; }
#exame-pe .pe-mapa { display: block; width: 220px; max-width: 100%; height: auto; background: #fff; border: 1px solid #888; }
#exame-pe .pe-mapa.pe-fora { display: none !important; }
#exame-pe .pe-ponto { fill: #5c8cff; stroke: #000; stroke-width: 1; cursor: pointer; }
#exame-pe .pe-ponto:hover { fill: #ffa64d; }
#exame-pe .pe-ponto.marcado,
#exame-pe .pe-ponto.marcado:hover { fill: #d62828; }
#exame-pe .pe-status { margin: 4px 0; min-height: 32px; color: #666; font-size: 12px; font-style: italic; }
#exame-punho .corpo-alteracoes { min-width: 0; }
#exame-punho .azul,
#dentro.escuro #exame-punho .azul { color: #1F4E79; font-weight: 700; }
#exame-punho .doppler { color: blue; font-weight: 700; }
#dentro.escuro #exame-punho .doppler { color: #8ab4ff; font-weight: 700; }
#exame-punho .importante,
#dentro.escuro #exame-punho .importante { color: #9b1c1c; font-weight: 700; }
#exame-punho input.pu-med { color: #9b1c1c; font-weight: 700; }
#dentro.escuro #exame-punho input.pu-med { color: #ff8a80; font-weight: 700; }
#exame-punho .pu-lado { min-width: 0; max-width: 100%; }
#exame-punho .pu-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  width: 100%;
}
#exame-punho select { max-width: 100%; }
#exame-punho .pu-rotulo { margin: 8px 0 2px; }
#exame-punho .pu-dica { margin: 0 0 6px; color: #666; font-size: 12px; font-style: italic; }
#exame-punho .pu-cisto { border: 1px solid #A9B4C6; border-radius: 4px; padding: 4px 6px; margin: 6px 0; }
#exame-punho .pu-abas { display: flex; gap: 4px; margin: 4px 0; }
#exame-punho .pu-aba {
  height: 26px;
  padding: 0 10px;
  border: 1px solid #A9B4C6;
  border-radius: 4px;
  background: #fff;
  color: #0A1121;
  font-weight: 700;
  cursor: pointer;
}
#exame-punho .pu-aba.marcado { background: #1F4E79; border-color: #1F4E79; color: #fff; }
#exame-punho .pu-mapa { display: block; width: 220px; max-width: 100%; height: auto; background: #fff; border: 1px solid #888; }
#exame-punho .pu-mapa.pu-fora { display: none !important; }
#exame-punho .pu-ponto { fill: #5c8cff; stroke: #000; stroke-width: 1; cursor: pointer; }
#exame-punho .pu-ponto:hover { fill: #ffa64d; }
#exame-punho .pu-ponto.marcado,
#exame-punho .pu-ponto.marcado:hover { fill: #d62828; }
#exame-punho .pu-status { margin: 4px 0; min-height: 32px; color: #666; font-size: 12px; font-style: italic; }
#exame-quadril .corpo-alteracoes { min-width: 0; }
#exame-quadril .azul,
#dentro.escuro #exame-quadril .azul { color: #1F4E79; font-weight: 700; }
#exame-quadril .doppler { color: blue; font-weight: 700; }
#dentro.escuro #exame-quadril .doppler { color: #8ab4ff; font-weight: 700; }
#exame-quadril .importante,
#dentro.escuro #exame-quadril .importante { color: #9b1c1c; font-weight: 700; }
#exame-quadril .qu-lado { min-width: 0; max-width: 100%; }
#exame-quadril .qu-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  width: 100%;
}
#exame-quadril select { max-width: 100%; }
#exame-quadril .qu-rotulo { margin: 8px 0 2px; }
#exame-cervical .corpo-alteracoes { min-width: 0; }
#exame-cervical .azul,
#dentro.escuro #exame-cervical .azul { color: #1F4E79; font-weight: 700; }
#exame-cervical .doppler { color: blue; font-weight: 700; }
#dentro.escuro #exame-cervical .doppler { color: #8ab4ff; font-weight: 700; }
#exame-cervical .ce-bloco { margin: 4px 0 8px; min-width: 0; max-width: 100%; }
#exame-inguinal .corpo-alteracoes { min-width: 0; }
#exame-inguinal .azul,
#dentro.escuro #exame-inguinal .azul { color: #1F4E79; font-weight: 700; }
#exame-inguinal .importante,
#dentro.escuro #exame-inguinal .importante { color: #9b1c1c; font-weight: 700; }
#exame-inguinal .ig-lado { min-width: 0; max-width: 100%; }
#exame-inguinal .ig-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  width: 100%;
}
#exame-inguinal select,
#exame-inguinal input[type="text"] { max-width: 100%; }
#exame-inguinal .ig-rotulo { margin: 8px 0 2px; }
#exame-inguinal .ig-sub { margin: 6px 0 2px; font-size: 13px; }
#exame-tornozelo .corpo-alteracoes { min-width: 0; }
#exame-tornozelo .azul,
#dentro.escuro #exame-tornozelo .azul { color: #1F4E79; font-weight: 700; }
#exame-tornozelo .doppler { color: blue; font-weight: 700; }
#dentro.escuro #exame-tornozelo .doppler { color: #8ab4ff; font-weight: 700; }
#exame-tornozelo .importante,
#dentro.escuro #exame-tornozelo .importante { color: #9b1c1c; font-weight: 700; }
#exame-tornozelo .roxo { color: purple; font-weight: 700; }
#dentro.escuro #exame-tornozelo .roxo { color: #d9a0ff; font-weight: 700; }
#exame-tornozelo .to-lado { min-width: 0; max-width: 100%; }
#exame-tornozelo .to-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  width: 100%;
}
#exame-tornozelo .to-lado select { width: 100%; max-width: 100%; }
#exame-tornozelo .to-rotulo { margin: 8px 0 2px; }
#exame-tornozelo .to-sub { margin: 6px 0 2px; }
#exame-tornozelo .to-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; max-width: 100%; }
#exame-tireoide .corpo-alteracoes { min-width: 0; }
#exame-tireoide .doppler { color: blue; font-weight: 700; }
#dentro.escuro #exame-tireoide .doppler { color: #8ab4ff; font-weight: 700; }
#exame-tireoide .ti-status { width: 100%; max-width: 100%; }
#exame-tireoide .ti-nod { width: 100%; min-width: 0; max-width: 100%; }
#exame-tireoide .ti-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; width: 100%; min-width: 0; max-width: 100%; }
#exame-tireoide .ti-baixo { align-items: flex-start; }
#exame-tireoide .ti-linha select,
#exame-tireoide .ti-linha input[type="text"] { max-width: 100%; }
#exame-tireoide .ti-eti { font-size: 14px; font-weight: 400; margin: 0; }
#exame-tireoide .ti-campo { display: inline-flex; align-items: center; gap: 4px; flex: none; }
#exame-tireoide .ti-forcar { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
#exame-tireoide .ti-medidas { display: grid; grid-template-columns: 78px max-content; align-items: center; column-gap: 10px; row-gap: 6px; }
#exame-tireoide .ti-tres { display: inline-flex; align-items: center; gap: 4px; flex-wrap: nowrap; }
#exame-tireoide .ti-medidas input.curto,
#exame-tireoide .ti-tres input.curto { width: 58px; }
#exame-tireoide .ti-cisto { width: 100%; min-width: 0; max-width: 100%; }
#exame-tireoide .ti-x { margin: 0 2px; }
#exame-tireoide input.curto:disabled { background: #e0e0e0; }
#exame-tireoide .ti-rec { font-weight: 700; font-style: italic; }
#exame-arterial .azul { color: #1F4E79; font-weight: 700; }
#exame-arterial #ar-lado { width: max-content; }
#exame-arterial .corpo-alteracoes { min-width: 0; }
#exame-arterial .ar-lados { width: 100%; max-width: 100%; min-width: 0; }
#exame-arterial .ar-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
#exame-arterial .ar-col { min-width: 0; max-width: 100%; }
#exame-arterial .ar-miolo select { width: 100%; max-width: 100%; }
#exame-arterial h3.ar-abre { cursor: pointer; }
#exame-arterial .ar-miolo.recolhida { display: none; }
#exame-arterial .ar-segs { align-items: center; }
#exame-arterial .ar-segs label.marca { margin: 0; }
#exame-arterial input.curto { width: 72px; }
#exame-arterial input.curto[readonly] { background: #ececec; }
#dentro.escuro #exame-arterial .azul { color: #8ab4ff; }
#exame-tvp .azul { color: #1F4E79; font-weight: 700; }
#exame-tvp #tvp-lado { width: max-content; }
#exame-tvp .corpo-alteracoes { min-width: 0; }
#exame-tvp .tv-lados { width: 100%; max-width: 100%; min-width: 0; }
#exame-tvp .tv-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
#exame-tvp .tv-col { min-width: 0; max-width: 100%; }
#exame-tvp h3.tv-abre { cursor: pointer; }
#exame-tvp .tv-miolo.recolhida { display: none; }
#exame-tvp .tv-miolo select { width: 100%; max-width: 100%; }
#dentro.escuro #exame-tvp .azul { color: #8ab4ff; }
#exame-musculo .azul { color: #1F4E79; font-weight: 700; }
#exame-musculo .doppler { color: blue; font-weight: 700; }
#exame-musculo .mu-edema { color: #e67e00; font-weight: 700; }
#exame-musculo #mu-lado { width: max-content; }
#exame-musculo .corpo-alteracoes { min-width: 0; }
#exame-musculo .mu-regioes { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
#exame-musculo .mu-regioes label { border: 1px solid #8a8a8a; padding: 4px 12px; cursor: pointer; background: #fff; color: #000; }
#exame-musculo .mu-regioes label:has(input:checked) { background: #b7e7b7; font-weight: 700; }
#exame-musculo .mu-lados { width: 100%; max-width: 100%; min-width: 0; }
#exame-musculo .mu-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
#exame-musculo .mu-col { min-width: 0; max-width: 100%; }
#exame-musculo .mu-col select { width: 100%; max-width: 100%; }
#exame-musculo .mu-rotulo { font-weight: 700; margin: 8px 0 2px; }
#exame-musculo .mu-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0; }
#exame-musculo .mu-medidas { display: flex; align-items: center; gap: 6px; }
#exame-musculo .mu-medidas input.curto { width: 72px; }
#dentro.escuro #exame-musculo .azul,
#dentro.escuro #exame-musculo .doppler { color: #8ab4ff; }
#dentro.escuro #exame-musculo .mu-edema { color: #ffb347; }
#dentro.escuro #exame-musculo .mu-regioes label { background: #2a2a2a; color: #fff8ec; }
#dentro.escuro #exame-musculo .mu-regioes label:has(input:checked) { background: #1B7A3A; color: #fff; }
#exame-mamas-masc .corpo-alteracoes { min-width: 0; }
#exame-mamas-masc .mx-lados {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#exame-mamas-masc .mx-col { min-width: 0; max-width: 100%; }
#exame-mamas-masc .mx-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 4px 0; }
#exame-mamas-masc .mx-linha select { width: auto; max-width: 100%; }
#exame-mamas-masc .mx-rotulo { font-weight: 700; margin: 8px 0 2px; }
#exame-mamas-masc .mx-num { font-weight: 700; }
#exame-mamas-masc .mx-lipoma { color: blue; font-weight: 700; }
#exame-mamas-masc .mx-axila { color: #c40000; font-weight: 700; }
#exame-mamas-masc input.curto { width: 64px; }
#dentro.escuro #exame-mamas-masc .mx-lipoma { color: #8ab4ff; }
#dentro.escuro #exame-mamas-masc .mx-axila { color: #ff8a8a; }
#exame-cervical .ce-linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 4px 0;
}
#exame-cervical .ce-eti { font-weight: 700; }
#exame-cervical .ce-med { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
#exame-cervical .ce-linha input[type="text"] { max-width: 100%; }
#exame-cervical .ce-linha select { max-width: 100%; }
#exame-cervical .ce-rec { font-weight: 700; font-style: italic; }
#laudo .ce-obs { font-size: 12px; }
#exame-ombro .azul { color: #1F4E79; font-weight: 700; }
#exame-ombro .doppler { color: blue; font-weight: 700; }
#exame-ombro .om-grupo,
#exame-ombro .om-rotulo,
#dentro.escuro #exame-ombro .om-grupo,
#dentro.escuro #exame-ombro .om-rotulo {
  margin: 10px 0 4px;
  padding: 4px 8px;
  background: #1F4E79;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}
#exame-ombro .om-sub { margin: 4px 0 2px; font-size: 12px; }
#exame-ombro .corpo-alteracoes { min-width: 0; }
#exame-ombro .om-lado { min-width: 0; max-width: 100%; }
#exame-ombro .om-lado select { max-width: 100%; width: 100%; }
#exame-ombro .om-ruptura { margin: 4px 0 2px 10px; padding-left: 8px; border-left: 2px solid #FFC247; }
#exame-ombro .om-medidas { display: grid; grid-template-columns: max-content 64px; align-items: center; gap: 4px 8px; font-size: 12px; }
#exame-ombro input.curto { width: 64px; }
#exame-ombro .om-lados,
#exame-ombro .om-lados.bilateral {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
#exame-ombro .om-lados.bilateral {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 18px;
  align-items: start;
}
#exame-obst .ob-alerta,
#dentro.escuro #exame-obst .ob-alerta { color: #9b1c1c; font-weight: 700; }
#exame-obst .ob-ok,
#dentro.escuro #exame-obst .ob-ok { color: #1B7A3A; font-weight: 700; }
#exame-obst .ob-ig,
#dentro.escuro #exame-obst .ob-ig { color: #1F4E79; font-weight: 700; margin: 4px 0 8px; }
#dentro.escuro #exame-obst .ob-ig { color: #8ab4ff; }
#exame-obst .corpo-alteracoes { min-width: 0; }
#exame-obst select { max-width: 100%; width: max-content; }
#exame-obst input.curto { width: 72px; }
.lista button.nao-pronto { box-shadow: inset 0 0 0 1px rgba(200, 30, 30, 0.35), inset 0 0 10px rgba(220, 38, 38, 0.45); }
.laudo table.cv-tab { width: 100%; border-collapse: collapse; margin: 4px 0 8px; font-size: 12px; }
.laudo table.cv-tab th,
.laudo table.cv-tab td { border: 1px solid #666; text-align: center; padding: 2px 4px; }
#exame-mamas .destaque-vermelho { color: #9b1c1c; font-weight: 700; }
#exame-mamas .destaque-azul { color: #1F4E79; font-weight: 700; }
.alteracoes .n-resumo { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
.alteracoes .n-nome { font-weight: 700; font-size: 13px; color: #0A1121; }
#exame-mamas .n-resumo { display: flex; align-items: center; gap: 6px; margin: 2px 0; }
#exame-mamas .n-nome { font-weight: 700; font-size: 13px; color: #0A1121; }
#exame-mamas .n-mamilo { display: inline-flex; align-items: center; gap: 6px; }
.alteracoes button.n-editar,
#exame-mamas button.n-editar {
  width: auto;
  height: 16px;
  margin: 0;
  padding: 0 5px;
  border: 1px solid #A9B4C6;
  border-radius: 4px;
  background: #ffffff;
  color: #0A1121;
  font-size: 10px;
  font-weight: 700;
  line-height: 14px;
  cursor: pointer;
}
#exame-urinario .rins-lados .duas-colunas input.curto { width: 32px; }
.alteracoes h3 {
  margin: 12px 0 6px;
  padding: 5px 8px;
  background: #1F4E79;
  color: white;
  font-size: 14px;
  font-weight: 700;
  border-radius: 4px;
}
.alteracoes label,
.alteracoes .rotulo {
  display: block;
  margin: 6px 0 3px;
  color: #0A1121;
  font-size: 14px;
  font-weight: 700;
}
.alteracoes label.marca {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 4px 0;
  font-size: 14px;
  font-weight: 600;
}
.alteracoes label.marca input {
  width: auto;
  height: auto;
  margin: 2px 0 0;
  padding: 0;
  flex: none;
}
.alteracoes select {
  width: max-content;
  max-width: 100%;
}
.alteracoes select:has(option[value=""]:checked) {
  color: #b5b5b5;
  font-weight: 500;
}
.alteracoes select option {
  color: #0A1121;
  font-weight: 600;
}
.alteracoes select,
.alteracoes input[type="text"] {
  height: 30px;
  margin: 0;
  padding: 0 6px;
  border: 1px solid #A9B4C6;
  border-radius: 6px;
  background: #ffffff;
  color: #0A1121;
  font-size: 14px;
  font-weight: 600;
}
#cistos-hepaticos,
#nodulos-hepaticos {
  margin-top: 10px;
}
.busca-alteracao {
  flex: none;
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 3px 6px;
  background: #ffffff;
  border: 1px solid #A9B4C6;
  border-radius: 8px;
}
.busca-alteracao .busca-nome {
  background: #cc0000;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  white-space: nowrap;
}
.busca-alteracao input[type="text"] {
  width: 92px;
  flex: none;
  height: 24px;
  margin: 0;
  padding: 0 8px;
  border: 1px solid #A9B4C6;
  border-radius: 6px;
  background: #ffffff;
  color: #0A1121;
  font-size: 14px;
  font-weight: 600;
}
.busca-alteracao #busca-status {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1F4E79;
}
.busca-alteracao #busca-status:empty { display: none; }
.busca-alteracao #busca-status.vazio { color: #C62828; }
.busca-alteracao button.seta {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #A9B4C6;
  border-radius: 4px;
  background: #e8e8e8;
  color: #0A1121;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.historico {
  flex: none;
  display: flex;
  flex-direction: row;
  gap: 6px;
}
.historico button.seta {
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid #A9B4C6;
  border-radius: 8px;
  background: #ffffff;
  color: #0A1121;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.historico button.seta:disabled,
.busca-alteracao button.seta:disabled {
  opacity: 0.35;
  cursor: default;
}
.alteracoes .busca-achei {
  background: #FFF59D;
  color: #0A1121;
  border-radius: 4px;
}
.alteracoes .busca-atual {
  background: #FFB300;
  color: #0A1121;
  outline: 2px solid #E65100;
  border-radius: 4px;
}
.alteracoes .vezes {
  font-size: 14px;
  font-weight: 700;
  color: #0A1121;
}
.alteracoes button.adicionar {
  display: inline-block;
  width: auto;
  margin: 6px 0 4px;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: #FFC247;
  color: #0A1121;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.alteracoes button.adicionar:hover {
  background: #e6a82e;
}
.alteracoes button.adicionar:disabled,
.alteracoes button.adicionar:disabled:hover {
  background: #c8c8c8;
  color: #6e6e6e;
  cursor: default;
}
.alteracoes button.remover {
  display: inline-block;
  width: auto;
  margin: 6px 0 4px 6px;
  padding: 3px 8px;
  border: 0;
  border-radius: 6px;
  background: #C62828;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.alteracoes button.remover:hover {
  background: #a31f1f;
}
.alteracoes .rins-lados {
  display: grid;
  grid-template-columns: max-content max-content;
  column-gap: 4px;
  align-items: start;
  width: max-content;
  max-width: 100%;
}
.alteracoes .rins-lados .linha { flex-wrap: wrap; }
.alteracoes .duas-colunas {
  display: grid;
  width: 100%;
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  column-gap: 12px;
  align-items: start;
}
.alteracoes .rins-lados .duas-colunas {
  width: max-content;
  grid-auto-columns: max-content;
  column-gap: 4px;
}
.alteracoes .rins-lados .duas-colunas select,
.alteracoes .rins-lados .duas-colunas input.curto {
  font-size: 14px;
  padding: 0 2px;
}
.alteracoes .rins-lados .duas-colunas input.curto { width: 32px; }
.alteracoes .rins-lados .duas-colunas .linha {
  flex-wrap: wrap;
  gap: 2px;
  max-width: 156px;
}
.alteracoes .linha {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 3px;
}
.alteracoes .duas-colunas select,
.alteracoes .duas-colunas input.curto {
  font-size: 12px;
  padding: 0 4px;
}
.alteracoes .duas-colunas input.curto { width: 46px; }
.alteracoes .duas-colunas .linha { flex-wrap: nowrap; }
.alteracoes .linha.medidas { flex-wrap: nowrap; }
.alteracoes .detalhe-nod { margin-top: 4px; }
.alteracoes input.curto { width: 58px; flex: none; }
.alteracoes input.medida-zero {
  outline: 2px solid #C62828;
  background: #fdecea;
}
.alteracoes input::placeholder {
  color: #b5b5b5;
  font-weight: 500;
}
.alteracoes select.meio { width: max-content; flex: none; min-width: 0; }
.alteracoes [hidden] { display: none !important; }
@media (max-width: 760px) {
  .topo,
  .grupo-alteracoes,
  .alteracoes {
    width: auto;
    margin-left: 0;
  }
  .topo { flex-direction: column; }
  .paciente { width: 100%; }
  .corpo-alteracoes { max-height: 280px; }
  .alteracoes .rins-lados,
  #exame-urinario .rins-lados,
  #exame-venoso .rins-lados,
  #exame-mamas .rins-lados,
  #exame-bolsa .be-lados,
  #exame-calcaneo .ca-lados.bilateral,
  #exame-carotidas .cv-lados,
  #exame-cotovelo .co-lados.bilateral { grid-template-columns: 1fr; }
  #exame-ombro .om-lados.bilateral { grid-template-columns: 1fr; }
  #exame-joelho .jo-lados.bilateral { grid-template-columns: 1fr; }
  #exame-mao .ma-lados.bilateral { grid-template-columns: 1fr; }
  #exame-pe .pe-lados.bilateral { grid-template-columns: 1fr; }
  #exame-punho .pu-lados.bilateral { grid-template-columns: 1fr; }
  #exame-quadril .qu-lados.bilateral { grid-template-columns: 1fr; }
  #exame-inguinal .ig-lados.bilateral { grid-template-columns: 1fr; }
  #exame-tornozelo .to-lados.bilateral { grid-template-columns: 1fr; }
}
#folha {
  flex: 0 1 700px;
  width: 700px;
  max-width: 42vw;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  padding: 0;
  margin-left: auto;
}
.miolo.cede {
  align-self: stretch;
  width: calc(100% - 12px);
  max-width: none;
  margin-left: 6px;
  margin-right: 6px;
  gap: 16px;
}
.miolo.cede .lado {
  flex: 1 1 auto;
  width: auto;
  min-width: min(var(--precisa, 320px), calc(100% - 420px));
  max-width: none;
}
.miolo.cede .topo,
.miolo.cede .grupo-alteracoes {
  --sobra: 0px;
  width: 100%;
  margin-left: 0;
}
.topo.aberto {
  margin-left: 0;
}
.miolo.cede #folha {
  flex: 0 1 700px;
  width: 700px;
  max-width: 42vw;
  min-width: 0;
  margin-left: auto;
}
@media (max-width: 760px) {
  .miolo { flex-direction: column; width: min(1180px, calc(100% - 16px)); margin-left: auto; margin-right: auto; }
  .lado { width: 100%; min-width: 0; }
  #folha { flex: 1 1 auto; width: 100%; max-width: none; min-width: 0; }
  .miolo.cede { width: min(1180px, calc(100% - 16px)); margin-left: auto; margin-right: auto; }
  .miolo.cede .lado,
  .miolo.cede #folha { width: 100%; max-width: none; min-width: 0; margin-left: 0; }
}
.folha-miolo {
  width: 100%;
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.opcoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #A9B4C6;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  padding: 6px 8px;
}
.opcoes .separa {
  width: 1px;
  height: 18px;
  background: #A9B4C6;
}
button.opcao {
  width: auto;
  margin: 0;
  height: 28px;
  padding: 0 10px;
  border: 1px solid #A9B4C6;
  border-radius: 6px;
  background: #ffffff;
  color: #0A1121;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}
button.opcao.imprimir {
  background: #C62828;
  border-color: #C62828;
  color: white;
}
button.opcao.imprimir.impresso {
  background: #1B7A3A;
  border-color: #1B7A3A;
  color: white;
}
@keyframes pisca-nome {
  0%, 45% { background: #C62828; border-color: #C62828; color: #fff; }
  55%, 100% { background: #fff; border-color: #C62828; color: #C62828; }
}
button#btn-paciente.falta-nome,
#dentro.escuro button#btn-paciente.falta-nome {
  animation: pisca-nome 1.1s ease-in-out infinite;
}
button#btn-paciente.tem-nome,
#dentro.escuro button#btn-paciente.tem-nome {
  animation: none;
  background: #1B7A3A;
  border-color: #1B7A3A;
  color: #fff;
}
button.opcao.escolhido {
  background: #FFC247;
  border-color: #FFC247;
}
.ferramentas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: #ffffff;
  border: 1px solid #A9B4C6;
  border-radius: 0;
  padding: 6px 8px;
}
.ferramentas button,
.ferramentas select,
.ferramentas .cor {
  width: auto;
  margin: 0;
  height: 28px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: #ffffff;
  color: #1a1a1a;
  font-size: 14px;
  cursor: pointer;
}
.ferramentas button {
  min-width: 28px;
  padding: 0 6px;
  font-weight: normal;
}
.ferramentas button:hover,
.ferramentas .cor:hover { background: #FFC247; }
.ferramentas select { padding: 0 4px; background: #ffffff; }
.ferramentas #fonte { min-width: 96px; }
.ferramentas button.alinha {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  padding: 0;
}
.ferramentas button.alinha svg {
  width: 16px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
  stroke-linecap: round;
}
.ferramentas .separa {
  width: 1px;
  height: 18px;
  margin: 0 4px;
  background: #A9B4C6;
}
.ferramentas .cor {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  font-weight: bold;
}
.ferramentas .cor input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.ferramentas .marca {
  background: #fff3a0;
}
.laudo {
  position: relative;
  flex: 1;
  min-height: 0;
  background: #ffffff;
  margin: 0;
  padding: 10px 22px 16px;
  border: 1px solid #A9B4C6;
  border-top: 6px solid #A9B4C6;
  box-shadow: 0 8px 22px rgba(20, 40, 70, 0.12);
  color: #000000;
  font-size: 13px;
  line-height: 1.25;
  outline: none;
  overflow-x: hidden;
  overflow-y: auto;
}
.laudo h2 {
  margin: 0 0 0.35em;
  text-align: center;
  font-size: 1em;
  font-weight: bold;
}
.laudo h3 {
  margin: 0.45em 0 0;
  font-size: 1em;
  font-weight: bold;
  text-align: left;
}
.laudo p { margin: 0 0 0.12em; text-align: justify; }
.laudo p.seguimento { margin-top: 2.4em; }
.laudo h3.conclusao {
  margin-top: 0.7em;
  font-style: italic;
  font-size: 11pt;
}
.laudo h3.conclusao ~ ul,
.laudo h3.conclusao ~ ol,
.laudo h3.conclusao ~ p {
  font-size: 11pt;
}
.laudo ul {
  margin: 0;
  padding-left: 1.3em;
}
.laudo li {
  font-style: italic;
  text-align: left;
}
.topo-folha {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 4px;
}
#laudo.sem-lado .topo-folha,
#laudo.sem-lado .rodape-folha { display: none !important; }
.logo-amor {
  height: 42px;
  width: auto;
}
.rodape-folha {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 0;
}
.assinatura-medico {
  width: 128px;
  height: auto;
}
.erro-campo {
  margin: 4px 0 0;
  color: #9b2c2c;
  font-size: 13px;
  font-weight: 700;
}

#dentro.escuro .erro-campo { color: #ff8a80; }
.aviso-impressao {
  margin-left: 8px;
  color: #1F4E79;
  font-size: 13px;
  font-weight: 700;
}
.aviso-impressao.erro { color: #C62828; font-size: 16px; }
#dentro.escuro .aviso-impressao { color: #9ecbff; }
#dentro.escuro .aviso-impressao.erro { color: #ff8a80; }
.quadro-impressao {
  position: absolute;
  width: 0;
  height: 0;
  border: 0;
  visibility: hidden;
}
.papel-pdf { background: #ffffff; }
.papel-pdf .laudo {
  position: static;
  flex: none;
  height: auto;
  max-height: none;
  overflow: visible;
  margin: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: #ffffff;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11pt;
  line-height: 1.15;
}
.papel-pdf .laudo h2 { font-size: 12pt; margin-bottom: 0.6em; }
.papel-pdf .bloco-conclusao {
  page-break-inside: avoid;
  break-inside: avoid;
}
.papel-pdf .laudo p.seguimento {
  margin-top: 2.4em;
  page-break-before: avoid;
  break-before: avoid;
}
.papel-pdf .doc-extra { font-size: 12pt; line-height: 1.3; }
.papel-pdf .doc-extra h2 { font-size: 16pt; text-align: center; margin: 10px 0 16px; }
.papel-pdf .doc-extra p { text-align: justify; text-indent: 1.5cm; margin: 0 0 12px; }
.papel-pdf .doc-extra p.termo { font-size: 11pt; line-height: 1.25; text-indent: 1cm; margin: 2px 0 6px; }
.papel-pdf .doc-extra p.sem-recuo { text-indent: 0; }
.papel-pdf .doc-extra p.direita { text-align: right; text-indent: 0; }
.papel-pdf .doc-extra p.centro { text-align: center; text-indent: 0; }
.papel-pdf .doc-extra p.item { text-indent: 0; margin: 0 0 2px 0.8cm; }
.papel-pdf .doc-extra .assinatura-corpo { display: block; width: 220px; margin: 28px auto 0; }
#dentro.escuro,
#dentro.escuro #folha { background: #070d18; }
#dentro.escuro .opcoes,
#dentro.escuro .ferramentas,
#dentro.escuro .laudo,
#dentro.escuro .lista {
  background: #121a2b;
  color: #FFF8EC;
  border-color: #2c3a50;
}
#dentro.escuro .laudo { border-top-color: #070d18; }
#dentro.escuro .opcoes .separa,
#dentro.escuro .ferramentas .separa { background: #2c3a50; }
#dentro.escuro button.opcao,
#dentro.escuro .ferramentas button,
#dentro.escuro .ferramentas select,
#dentro.escuro .ferramentas .cor {
  background: #121a2b;
  color: #FFF8EC;
  border-color: #2c3a50;
}
#dentro.escuro button.opcao.imprimir {
  background: #C62828;
  border-color: #C62828;
  color: white;
}
#dentro.escuro button.opcao.imprimir.impresso {
  background: #1B7A3A;
  border-color: #1B7A3A;
  color: white;
}
#dentro.escuro button.opcao.escolhido,
#dentro.escuro .lista button.marcado,
#dentro.escuro #lista-config button.escolhido {
  background: #FFC247;
  color: #0A1121;
  border-color: #FFC247;
}
#dentro.escuro .lista button,
#dentro.escuro .lista .titulo-grupo,
#dentro.escuro .nome-conta { color: #FFF8EC; }
#dentro.escuro .paciente {
  background: #121a2b;
  border-color: #2c3a50;
}
#dentro.escuro .paciente label { color: #FFF8EC; }
#dentro.escuro .paciente input,
#dentro.escuro button.repetir,
#dentro.escuro .alteracoes,
#dentro.escuro .cabeca-alteracoes,
#dentro.escuro .corpo-alteracoes,
#dentro.escuro .alteracoes select,
#dentro.escuro .alteracoes input {
  background: #121a2b;
  color: #FFF8EC;
  border-color: #2c3a50;
}
#dentro.escuro .alteracoes select:has(option[value=""]:checked) {
  color: #b5b5b5;
  font-weight: 500;
}
#dentro.escuro .alteracoes select option {
  color: #0A1121;
}
#dentro.escuro .alteracoes h2,
#dentro.escuro .alteracoes label,
#dentro.escuro .alteracoes .rotulo,
#dentro.escuro .alteracoes .vezes { color: #FFF8EC; }
#dentro.escuro #exame-venoso label.botao-icone { color: #0A1121; background: #fff; }
#dentro.escuro #exame-venoso label.botao-icone:has(input:checked) { color: #fff; background: #1F4E79; }
#dentro.escuro .busca-alteracao,
#dentro.escuro .busca-alteracao input,
#dentro.escuro .historico button.seta {
  background: #121a2b;
  color: #FFF8EC;
  border-color: #2c3a50;
}
#dentro.escuro .alteracoes h3 {
  background: #1F4E79;
  color: #ffffff;
}
#dentro.escuro .alteracoes .busca-achei,
#dentro.escuro .alteracoes h3.busca-achei {
  background: #FFF59D;
  color: #0A1121;
}
#dentro.escuro .alteracoes .busca-atual,
#dentro.escuro .alteracoes h3.busca-atual {
  background: #FFB300;
  color: #0A1121;
}
#dentro.escuro .alteracoes button.adicionar {
  background: #FFC247;
  color: #0A1121;
}
#dentro.escuro .alteracoes button.adicionar:disabled,
#dentro.escuro .alteracoes button.adicionar:disabled:hover {
  background: #3a4254;
  color: #8b93a3;
}
.lista button:hover,
#dentro.escuro .lista button:hover {
  background: #FFC247;
  color: #0A1121;
}
#lista-config button:hover,
#dentro.escuro #lista-config button:hover {
  background: #ffffff;
  color: #0A1121;
}
#relatorio {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 8px auto 10px;
  width: min(1180px, calc(100% - 24px));
  overflow: hidden;
  color: #0A1121;
}
.rel-corpo, #rel-previa {
  background: #ffffff;
  border: 1px solid #8ea0b8;
  border-radius: 8px;
  padding: 14px 16px 18px;
}
.rel-corpo { flex: 1.15; min-width: 0; min-height: 0; overflow: auto; }
#rel-previa {
  flex: 0.85;
  min-width: 280px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#relatorio h2 {
  margin: 0 0 12px;
  font-size: 16px;
  text-align: center;
}
.calendario {
  width: min(320px, 100%);
  margin: 0;
  border: 1px solid #8ea0b8;
  border-radius: 6px;
  padding: 4px;
}
.cal-faixa {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  margin: 0 auto 14px;
  flex-wrap: wrap;
}
.cal-clinicas {
  width: 210px;
  max-width: 100%;
  border: 1px solid #8ea0b8;
  border-radius: 6px;
  padding: 8px 10px;
  background: #ffffff;
}
.cal-clinicas[hidden] { display: none; }
.cal-cli { margin: 0 0 8px; }
.cal-cli:last-child { margin-bottom: 0; }
.cal-cli-nome { font-weight: 700; font-size: 13px; line-height: 1.2; color: #0A1121; }
.cal-cli-valor { color: #1b7a1b; font-weight: 700; font-size: 15px; line-height: 1.2; }
.cal-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.cal-topo strong { font-size: 11px; }
#relatorio .cal-topo button { background: #e8eef5; color: #0A1121; padding: 1px 6px; font-size: 10px; }
.cal-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-nome, .cal-dia {
  min-height: 12px;
  border-radius: 3px;
  text-align: center;
  font-size: 8px;
}
.cal-nome { color: #5c6b80; font-weight: 700; }
.cal-dia { background: #f4f7fb; padding: 1px 0 2px; min-height: 32px; }
.cal-dia.vazio { background: transparent; }
.cal-dia.hoje { outline: 1px solid #1F4E79; }
.cal-dia.escolhido { outline: 2px solid #0A1121; }
.cal-dia:not(.vazio) { cursor: pointer; }
.cal-dia.com-repasse { background: #FFC247; }
.cal-dia .cal-num { font-weight: 700; font-size: 9px; line-height: 1.1; }
.cal-dia .cal-total { color: #1b7a1b; font-weight: 700; font-size: 13px; line-height: 1.1; }
.cal-mes-total { margin: 6px 0 0; text-align: center; color: #1b7a1b; font-weight: 700; font-size: 13px; }
#cal-aviso { margin: 6px 0 0; min-height: 14px; color: #666; font-size: 11px; text-align: center; }
#relatorio label { color: #0A1121; font-size: 14px; }
.rel-caixa {
  margin: 12px 0;
  border: 1px solid #8ea0b8;
  border-radius: 6px;
  padding: 10px;
}
.rel-caixa legend {
  padding: 0 6px;
  color: #004080;
  font-size: 13px;
  font-weight: 700;
}
.rel-pendentes legend { color: #8B4513; }
.rel-tabela-rolagem { max-height: 180px; overflow: auto; }
#relatorio table { width: 100%; border-collapse: collapse; font-size: 13px; }
#relatorio th, #relatorio td { border: 1px solid #c5d0de; padding: 4px 6px; text-align: left; }
#relatorio th { background: #eef3f8; }
#relatorio td.direita, #relatorio th.direita { text-align: right; }
#relatorio tr.marcado td { background: #d6e6f5; }
#rel-pendentes-status { margin: 6px 0 0; color: #666; font-size: 12px; font-style: italic; }
.rel-botoes-lado, .rel-acoes-previa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#relatorio button {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  background: #1F4E79;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}
#rel-atualizar { background: #666666; }
#relatorio button.soma { background: #1b7a1b; }
#relatorio button.tira { background: #c62828; }
#rel-excluir { background: #e07000; align-self: flex-start; }
.rel-data-dia {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.rel-data-dia label { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; }
.rel-data-dia input {
  width: 108px;
  padding: 6px 8px;
  border: 1px solid #8ea0b8;
  border-radius: 6px;
  font-size: 14px;
}
#rel-atualizar-dia { background: #666666; padding: 6px 10px; }
.rel-botoes-gerar { display: flex; gap: 8px; }
.rel-botoes-gerar button { flex: 1; font-size: 14px; padding: 12px 8px; }
#rel-ver { background: #0A1121; }
#relatorio .rel-linha input[type="text"] {
  width: 100%;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #8ea0b8;
  border-radius: 6px;
  font-size: 14px;
}
#rel-clinica {
  display: block;
  margin: 4px auto 0;
  width: min(280px, 100%);
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid #8ea0b8;
  border-radius: 6px;
  font-size: 15px;
}
.rel-linha {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px 96px;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}
.rel-linha label { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; }
.rel-linha label.rel-valor { width: 110px; }
#relatorio .rel-linha button { width: 100%; white-space: nowrap; padding: 8px 6px; }
.rel-lista-ajustes { display: flex; gap: 8px; margin-top: 10px; }
.rel-lista-ajustes .rel-tabela-rolagem { flex: 1; }
#rel-aviso { min-height: 18px; margin: 8px 0 0; font-size: 13px; font-weight: 700; color: #1F4E79; }
#rel-aviso.erro { color: #c62828; }
.rel-folha { flex: 1; min-height: 0; overflow: auto; color: #000; font-size: 12px; line-height: 1.15; }
.rel-folha h2, .rel-folha h3 { margin: 0; text-align: center; font-size: 14px; line-height: 1.15; }
.rel-folha h3 { font-size: 13px; margin-bottom: 2px; }
.rel-folha p { margin: 0; line-height: 1.15; }
#relatorio .rel-folha table { width: 100%; border-collapse: collapse; font-size: 11px; margin: 2px 0; }
#relatorio .rel-folha th, #relatorio .rel-folha td { border: 1px solid #000; padding: 1px 4px; text-align: left; font-size: 11px; }
#relatorio .rel-folha th { background: #eef3f8; font-weight: 700; }
.rel-folha .rel-total { background: #fff3a0; display: inline-block; font-weight: 700; font-size: 13px; padding: 0 3px; margin: 1px 0; }
.rel-folha .rel-traco { margin: 2px 0; border: 0; border-top: 1px solid #000; }
#documentos {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin: 8px auto 10px;
  width: min(860px, calc(100% - 24px));
  background: #ffffff;
  color: #0A1121;
  border: 1px solid #8ea0b8;
  border-radius: 8px;
  padding: 16px 18px 22px;
}
#documentos h2 { margin: 4px 0 14px; font-size: 18px; text-align: center; }
#documentos h2.termo { color: #7a1d1d; font-size: 16px; }
#documentos h2.urg { color: #b45309; }
#documentos h3 { margin: 16px 0 8px; font-size: 14px; }
#documentos .doc-sub { margin: -8px 0 14px; text-align: center; color: #555; font-size: 13px; }
#documentos label { color: #0A1121; margin: 0; font-size: 14px; }
.doc-abas { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.doc-abas button {
  width: auto;
  background: #e8eef5;
  color: #0A1121;
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.doc-abas button.escolhida { background: #0A1121; color: #ffffff; }
.doc-grade { display: grid; grid-template-columns: 180px 1fr; gap: 10px 12px; align-items: center; }
.doc-linha { display: flex; gap: 8px; align-items: center; }
#documentos input,
#documentos select,
#documentos textarea {
  width: 100%;
  height: 34px;
  border: 1px solid #A9B4C6;
  border-radius: 6px;
  padding: 0 8px;
  background: #ffffff;
  color: #0A1121;
  font: 15px Arial, sans-serif;
}
#documentos textarea { height: 72px; padding: 6px 8px; resize: vertical; }
#af-dias { max-width: 90px; }
#documentos button.mini {
  width: auto;
  flex: none;
  background: #1f6feb;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 6px 10px;
  font-weight: 700;
  cursor: pointer;
}
#at-ultimo, #af-ultimo, #te-ultimo, #en-ultimo { background: #e0e0e0; color: #0A1121; }
#documentos button.gerar {
  width: 100%;
  margin-top: 18px;
  border: 0;
  border-radius: 6px;
  padding: 12px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
#documentos button.verde { background: #006400; }
#documentos button.vinho { background: #7a1d1d; }
#documentos button.laranja { background: #b45309; }
.doc-exames { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 20px; align-items: center; }
.doc-exame {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 112px;
  align-items: center;
  gap: 8px;
  min-height: 30px;
}
.doc-exame.sem-lado { grid-template-columns: 1fr; }
.doc-exame label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  font-weight: normal;
  line-height: 1.2;
}
#documentos .doc-exame input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  flex: none;
  border-radius: 3px;
}
.doc-exame select { width: 112px; height: 28px; padding: 0 4px; font-size: 13px; }
#doc-aviso { min-height: 22px; margin: 12px 0 0; font-weight: 700; color: #1b7a1b; }
#doc-aviso.erro { color: #C62828; }
@media (max-width: 860px) {
  #relatorio { flex-direction: column; overflow: auto; }
  .rel-corpo { overflow: visible; }
  #rel-previa { flex: none; max-height: 70vh; min-height: 240px; }
}
@media print {
  #dentro {
    position: static;
    overflow: visible;
    height: auto;
  }
  .faixa,
  .lado,
  .opcoes,
  .ferramentas,
  .rel-corpo,
  .rel-acoes-previa,
  #documentos { display: none; }
  .miolo,
  #folha,
  .folha-miolo,
  .laudo {
    overflow: visible;
    height: auto;
    max-height: none;
    width: auto;
  }
  .laudo {
    border: 0;
    box-shadow: none;
  }
  body.imprimindo-relatorio #relatorio {
    display: block;
    position: static;
    width: auto;
    margin: 0;
    overflow: visible;
    background: #ffffff;
  }
  body.imprimindo-relatorio #rel-previa {
    display: block !important;
    border: 0;
    padding: 0;
    overflow: visible;
    max-height: none;
    background: #ffffff;
  }
  body.imprimindo-relatorio .rel-folha { overflow: visible; max-height: none; }
  .rel-folha .rel-total,
  .rel-folha th,
  .rel-folha .rel-traco {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .rel-folha .rel-total { background: #fff3a0 !important; }
  .rel-folha th { background: #eef3f8 !important; }
  .rel-folha th, .rel-folha td { border-color: #c5d0de !important; }
}
