/* Praxis Dialyse · Insumos (dialise-insumos.js). Prefixo hn-. */
.hn { min-width: 0; }
.hn .cx { min-width: 0; }
.hn-abas { flex-wrap: wrap; overflow-x: visible; }
.hn-barra { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; }
.hn-barra > .campo { flex: 0 1 200px; min-width: 0; }
.hn-barra > p { flex: 1 1 280px; margin: 0; font-size: .86rem; }
.hn-barra select, .hn-barra input { max-width: 100%; min-width: 0; width: 100%; }
.hn-ferr { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; align-items: center; }
.hn-acoes { flex-wrap: wrap; gap: 6px; margin: 0; }
.hn-chk { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.hn-chk input { width: auto; }
.hn-h2 { font-size: 1rem; margin: 0; }
.hn-h2 small { font-weight: 400; font-size: .8rem; }
.hn-h3 { font-size: .92rem; margin: 10px 0 4px; }
.hn-sec { display: flex; flex-direction: column; gap: 8px; }
.hn-sec0 { padding: 0; overflow: hidden; }
.hn-sec-cab { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.hn-kpis { margin: 0; }
.hn-kpis .sp-kpi { min-width: 0; }
.hn-kpis .sp-kpi b { overflow-wrap: anywhere; }
.hn-largo { grid-column: 1 / -1; }
.hn-curto { max-width: 420px; }
.hn-form { min-width: 0; }
.hn-form .campo { min-width: 0; }
.hn-form input, .hn-form select { width: 100%; min-width: 0; max-width: 100%; }
.hn-tx-at { color: var(--at); }
.hn-ul { margin: 6px 0 0; padding-left: 18px; font-weight: 400; }
.hn-ul small { display: block; opacity: .85; }
.hn-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.hn-link:hover b { text-decoration: underline; color: var(--px); }
.hn-in { color: var(--aco); font-size: .78rem; }
.hn-movs > li > span { flex: 1 1 260px; }
.hn-estornado > span { opacity: .6; text-decoration: line-through; }
.hn-desvios { border-left: 4px solid var(--at); }

/* tabelas: computador tabela; celular cartão */
.hn-tab { width: 100%; border-collapse: collapse; font-size: .88rem; }
.hn-tab th, .hn-tab td { padding: 7px 10px; border-bottom: 1px solid var(--linha); text-align: left; vertical-align: top; }
.hn-tab thead th { font-size: .74rem; color: var(--aco); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; }
.hn-tab .num { text-align: right; font-variant-numeric: tabular-nums; }
.hn-tab td small { display: block; color: var(--aco); font-size: .76rem; }
.hn-tab .hn-acao { text-align: right; white-space: nowrap; }
.hn-tab tr.hn-mal td:first-child { box-shadow: inset 4px 0 0 var(--mal); }
.hn-tab tr.hn-at td:first-child { box-shadow: inset 4px 0 0 var(--at); }
.hn-tab tr.hn-off td { color: var(--aco); }
.hn-tab tr.hn-tot td { font-weight: 700; border-bottom: 0; }

/* kit */
.hn-kits { display: flex; flex-direction: column; gap: 6px; }
.hn-kit { display: grid; grid-template-columns: minmax(0, 1fr) 80px 60px auto; gap: 6px; align-items: center; }
.hn-kit select, .hn-kit input { min-width: 0; width: 100%; }
.hn-kit .mut { font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* gráfico (uma série: uma cor; média em tinta neutra) */
.hn-graf { margin: 0; background: var(--sup); border: 1px solid var(--linha); border-radius: 8px; padding: 10px 12px; }
.hn-graf figcaption { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.hn-graf figcaption small { color: var(--aco); }
.hn-graf svg { width: 100%; max-width: 760px; height: auto; display: block; font-size: 12px; }
.hn-g-rot { fill: var(--tinta); }
.hn-g-val { fill: var(--aco); }
.hn-g-bar { fill: var(--px); }
.hn-g-bar.hn-g-desvio { fill: var(--at); }
.hn-graf g:hover .hn-g-bar { opacity: .8; }
.hn-g-media { stroke: var(--tinta); stroke-width: 1.5; stroke-dasharray: 4 3; }

/* documentos impressos */
.hn-doc { width: 100%; border-collapse: collapse; font-size: 11pt; margin: 8px 0; }
.hn-doc th, .hn-doc td { border: 1px solid #999; padding: 4px 6px; text-align: left; vertical-align: top; }
.hn-doc th { background: #eee; }

@media (max-width: 760px) {
  .hn-tab thead { display: none; }
  .hn-tab, .hn-tab tbody, .hn-tab tr, .hn-tab td { display: block; width: 100%; }
  .hn-tab tr { border-bottom: 1px solid var(--linha); padding: 8px 12px; }
  .hn-tab tr.hn-mal { box-shadow: inset 4px 0 0 var(--mal); }
  .hn-tab tr.hn-at { box-shadow: inset 4px 0 0 var(--at); }
  .hn-tab tr.hn-mal td:first-child, .hn-tab tr.hn-at td:first-child { box-shadow: none; }
  .hn-tab td { border: 0; padding: 2px 0; display: flex; justify-content: space-between; gap: 10px; text-align: right; }
  .hn-tab td:empty { display: none; }
  .hn-tab td > * { min-width: 0; }
  .hn-tab td::before { content: attr(data-r); color: var(--aco); font-size: .78rem; text-align: left; flex: none; }
  .hn-tab td:first-child { display: block; text-align: left; font-size: .98rem; }
  .hn-tab td:first-child::before { content: none; }
  .hn-tab td small { text-align: right; }
  .hn-tab td:first-child small { text-align: left; }
  .hn-tab .hn-acao { justify-content: flex-end; padding-top: 4px; }
  .hn-tab .hn-acao::before { content: none; }
  .hn-barra > .campo { flex: 1 1 140px; }
  .hn-ferr { margin-left: 0; }
  .hn-kit { grid-template-columns: minmax(0, 1fr) 64px auto; }
  .hn-kit .mut { display: none; }
  .hn-graf svg { font-size: 15px; }
}
/* Gasto automático na diálise do hospital (cadastro do produto) */
.hn-kit { border: 1px solid var(--linha); border-radius: 10px; padding: 10px 12px 12px; margin: 4px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; min-width: 0; }
.hn-kit legend { font-weight: 700; padding: 0 6px; }
.hn-kit > p { grid-column: 1 / -1; margin: 0; font-size: .86rem; }
@media (max-width: 600px) { .hn-kit { grid-template-columns: 1fr; } }
