/* Praxis Dialyse · Sala de diálise (prefixo hs-). Mapa dos postos, ficha da sessão, TV da sala, ficha impressa. */
.hs { min-width: 0; }
.hs-dia { display: flex; flex-direction: column; gap: 10px; }
.hs-dia-l { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hs-dia-l input[type="date"] { max-width: 170px; }
.hs-dia-n { margin-left: 4px; }
.hs-turnos { display: flex; flex-wrap: wrap; gap: 6px; }
.hs-turnos button { flex: 1 1 140px; min-width: 0; border: 1px solid var(--linha); background: var(--sup); color: var(--tinta); border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.hs-turnos button small { font-weight: 500; color: var(--aco); font-size: .78rem; }
.hs-turnos button[aria-pressed="true"] { background: var(--px); border-color: var(--px); color: var(--px-tinta); }
.hs-turnos button[aria-pressed="true"] small { color: inherit; opacity: .85; }
.hs-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.hs-kpi.hs-kpi-at { border-color: var(--at); background: var(--at-s); }
.hs-kpi.hs-kpi-mal { border-color: var(--mal); background: var(--mal-s); }
.hs-kpi.hs-kpi-ok { border-color: #9fd2b3; }
.hs-kpi b { font-size: 1.15rem; }
.hs-msgs { display: flex; flex-direction: column; gap: 4px; }
.hs-msgs .btn { margin-left: 6px; }
.hs-acoes { margin: 0; }
.hs-aviso b { display: block; font-size: 1.05rem; }
.hs-nota { font-size: .8rem; margin: 2px 0; }

/* salas e postos */
.hs-sala { display: flex; flex-direction: column; gap: 8px; border-left: 5px solid #c9c9dc; padding-left: 10px; }
.hs-sala h2 { font-size: 1rem; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.hs-sala h2 small { font-weight: 500; font-size: .8rem; }
.hs-sala-hbv { border-left-color: #c0392b; } .hs-sala-hcv { border-left-color: #d68910; } .hs-sala-hiv { border-left-color: #7d3c98; } .hs-sala-iso { border-left-color: #7f8c8d; }
.hs-semposto { border-left-color: var(--at); }
.hs-etq { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; border: 1px solid; }
.hs-etq-branca { background: #fff; color: #444; border-color: #bbb; }
.hs-etq-hbv { background: #fdecea; color: #8a1c12; border-color: #e6a39a; }
.hs-etq-hcv { background: #fff4dc; color: #7a4b00; border-color: #efc66e; }
.hs-etq-hiv { background: #f3e8fa; color: #5b2c6f; border-color: #c9a3dd; }
.hs-etq-iso, .hs-etq-at { background: var(--at-s); color: var(--at); border-color: var(--at); }
.hs-postos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.hs-q { min-width: 0; min-height: 148px; border-radius: 12px; border: 2px solid #c9c9dc; background: var(--sup); padding: 9px 10px; display: flex; flex-direction: column; align-items: stretch; gap: 3px; text-align: left; font: inherit; color: var(--tinta); cursor: pointer; transition: transform .08s, box-shadow .12s; overflow: hidden; }
.hs-q:hover { transform: translateY(-1px); box-shadow: var(--sombra-l); }
.hs-q:focus-visible { outline: 3px solid var(--px); outline-offset: 2px; }
.hs-q-n { font-weight: 700; font-size: .8rem; color: var(--aco); display: flex; justify-content: space-between; gap: 4px; }
.hs-q-n i { font-style: normal; font-weight: 600; }
.hs-q-p { font-size: .98rem; line-height: 1.15; overflow-wrap: anywhere; }
.hs-q small { font-size: .74rem; color: var(--aco); line-height: 1.2; }
.hs-q .hs-q-st { font-weight: 700; color: var(--tinta); }
.hs-q-x { font-style: normal; font-size: .66rem; font-weight: 800; text-transform: uppercase; background: var(--at-s); color: var(--at); border-radius: 4px; padding: 0 4px; vertical-align: middle; }
.hs-q-g { font-weight: 700; }
.hs-q-al { margin-top: auto; display: flex; flex-direction: column; gap: 2px; }
.hs-q-al i { font-style: normal; font-size: .7rem; font-weight: 700; line-height: 1.15; border-radius: 4px; padding: 1px 4px; }
.hs-al-mal { color: #8a1c12; background: #fdecea; } .hs-al-at { color: #7a4b00; background: #fff4dc; }
.hs-v-mal { color: var(--mal); }
.hs-leg i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border-width: 2px; border-style: solid; }
.hs-q-livre, i.hs-q-livre { background: var(--ok-s); border-color: #9fd2b3; border-style: dashed; }
.hs-q-manut, i.hs-q-manut { background: repeating-linear-gradient(45deg, #eceff3, #eceff3 8px, #e2e6ec 8px, #e2e6ec 16px); border-color: #b9c0cc; color: var(--aco); }
.hs-q-aguardando, i.hs-q-aguardando { background: var(--sup); border-color: #b9b9d0; }
.hs-q-pre, i.hs-q-pre { background: var(--at-s); border-color: var(--at); }
.hs-q-em_curso, i.hs-q-em_curso { background: var(--px-suave); border-color: var(--px); }
.hs-q-encerrada, i.hs-q-encerrada { background: #eef7f1; border-color: #6fb98a; }
.hs-q-faltou, i.hs-q-faltou { background: var(--mal-s); border-color: var(--mal); }
.hs-barra { display: block; height: 7px; border-radius: 99px; background: rgb(0 0 0 / .1); overflow: hidden; margin: 2px 0; }
.hs-barra > span { display: block; height: 100%; background: var(--px); border-radius: 99px; }
.hs-leg { display: flex; flex-wrap: wrap; gap: 10px; font-size: .78rem; color: var(--aco); }
.hs-leg span { display: inline-flex; align-items: center; gap: 4px; }

/* beira do leito */
.hs-agudos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.hs-ag { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hs-ag-c { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }

/* ficha da sessão (gaveta) */
.hs-fcab { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hs-fcab .btn { margin-left: auto; }
.hs-passos { flex-wrap: nowrap; flex: none; }
.hs-passo { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.hs-passo h3 { margin: 6px 0 0; font-size: .98rem; }
.hs-passo h3 small { font-weight: 500; }
.hs-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px 10px; }
.hs-c { min-width: 0; }
.hs-c input, .hs-c select, .hs-c textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.hs-c label { font-size: .8rem; }
.hs-c-l { grid-column: 1 / -1; }
.hs-mks { display: flex; flex-direction: column; gap: 4px; }
.hs-mk { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.hs-mk input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.hs-calc { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.hs-calc > p { grid-column: 1 / -1; margin: 0; }
.hs-calc-i { border: 1px solid var(--linha); border-radius: 10px; padding: 8px 10px; background: var(--bg); display: flex; flex-direction: column; gap: 2px; }
.hs-calc-i span { font-size: .74rem; color: var(--aco); text-transform: uppercase; letter-spacing: .03em; }
.hs-calc-i b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.hs-calc-i small { font-size: .76rem; color: var(--aco); }
.hs-calc-at { border-color: var(--at); background: var(--at-s); } .hs-calc-mal { border-color: var(--mal); background: var(--mal-s); }
.hs-queda { margin: 0; font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.hs-queda-baixo { background: var(--ok-s); color: var(--ok); } .hs-queda-moderado { background: var(--at-s); color: var(--at); } .hs-queda-alto { background: var(--mal-s); color: var(--mal); }
.hs-graves { display: flex; flex-direction: column; gap: 4px; }
.hs-graves > div { font-weight: 700; padding: 6px 10px; border-radius: 8px; }
.hs-presc h3 { margin-top: 0; }
.hs-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px 14px; margin: 0; }
.hs-dl div { min-width: 0; } .hs-dl dt { font-size: .74rem; color: var(--aco); } .hs-dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.hs-mon, .hs-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hs-mon li { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; border: 1px solid var(--linha); border-radius: 8px; padding: 6px 10px; font-variant-numeric: tabular-nums; }
.hs-mon li span small { color: var(--aco); font-size: .72rem; }
.hs-mon li em { flex-basis: 100%; font-size: .85rem; }
.hs-mon li.hs-mon-mal { border-color: var(--mal); background: var(--mal-s); }
.hs-lista li { border: 1px solid var(--linha); border-radius: 8px; padding: 8px 10px; }
.hs-med { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.hs-med > div:first-child { flex: 1 1 200px; min-width: 0; }
.hs-med-ok { background: #eef7f1; border-color: #9fd2b3 !important; }
.hs-med-a { display: flex; gap: 6px; flex: 1 1 200px; min-width: 0; }
.hs-med-a input { flex: 1; min-width: 0; }
.hs-ok-t { color: var(--ok); font-size: .82rem; font-weight: 600; }
.hs-falta { border-color: var(--mal); }

/* TV da sala */
.hs-tv { position: fixed; inset: 0; z-index: 2147482000; background: #0e0d2b; color: #eeeefb; display: flex; flex-direction: column; overflow: hidden; }
.hs-tv-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2vw; padding: 1.2vh 2vw; background: #1e1b4b; border-bottom: 2px solid #312e81; }
.hs-tv-top > div:first-child { display: flex; flex-direction: column; } .hs-tv-top > div:first-child b { font-size: clamp(18px, 2.2vw, 40px); } .hs-tv-top > div:first-child span { font-size: clamp(12px, 1vw, 18px); opacity: .8; }
.hs-tv-k { display: flex; gap: 1vw; margin-left: auto; }
.hs-tv-k span { display: flex; flex-direction: column; align-items: center; font-weight: 800; font-size: clamp(20px, 2.4vw, 46px); line-height: 1; padding: .6vh 1vw; border-radius: 10px; background: #312e81; min-width: 6vw; }
.hs-tv-k small { font-weight: 600; font-size: clamp(10px, .8vw, 15px); opacity: .85; }
.hs-tv-hora { font-weight: 800; font-size: clamp(24px, 3vw, 56px); line-height: 1; }
.hs-tv-sair { background: transparent; color: #d9d8f2; border: 1px solid #4b4799; border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.hs-tv-corpo { flex: 1; overflow: auto; padding: 1.2vw 2vw; display: flex; flex-direction: column; gap: 1.4vh; }
.hs-tv-s h2 { margin: 0 0 .8vh; font-size: clamp(14px, 1.3vw, 24px); display: flex; gap: 8px; align-items: center; }
.hs-tv-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(160px, 15vw, 320px), 1fr)); gap: 1vw; }
.hs-tv-c { background: #1a1846; border: 3px solid #312e81; border-radius: 14px; padding: 1vh 1vw; display: flex; flex-direction: column; gap: .4vh; min-height: 14vh; min-width: 0; }
.hs-tv-livre { opacity: .45; justify-content: center; }
.hs-tv-em_curso { border-color: #818cf8; } .hs-tv-pre { border-color: #e0a800; } .hs-tv-encerrada { border-color: #3fae6a; opacity: .75; } .hs-tv-faltou { border-color: #8a8aa8; opacity: .5; }
.hs-tv-alerta { border-color: #ff5a3c; animation: hstvpisca 1.6s ease-in-out infinite; }
@keyframes hstvpisca { 50% { box-shadow: 0 0 0 4px rgb(255 90 60 / .35); } }
@media (prefers-reduced-motion: reduce) { .hs-tv-alerta { animation: none; } }
.hs-tv-l { font-weight: 800; font-size: clamp(14px, 1.2vw, 24px); color: #a5b4fc; display: flex; justify-content: space-between; gap: 6px; }
.hs-tv-l span { font-weight: 600; font-size: .7em; color: #d9d8f2; }
.hs-tv-p { font-weight: 800; font-size: clamp(16px, 1.6vw, 32px); line-height: 1.1; overflow-wrap: anywhere; }
.hs-tv-t { font-weight: 800; font-size: clamp(16px, 1.5vw, 30px); font-variant-numeric: tabular-nums; }
.hs-tv-b { height: 10px; background: rgb(255 255 255 / .15); } .hs-tv-b > span { background: #818cf8; }
.hs-tv-al { border-radius: 6px; padding: 2px 8px; font-weight: 800; font-size: clamp(11px, .95vw, 18px); align-self: flex-start; }
.hs-tv-al-mal { background: #b8321f; color: #fff; } .hs-tv-al-at { background: #b07a00; color: #fff; }
.hs-tv-ic { font-size: clamp(11px, .9vw, 17px); color: #fcd34d; }

/* ficha impressa */
.hs-doc { font-size: 10.5pt; }
.hs-doc h3 { font-size: 10.5pt; margin: 10px 0 3px; text-transform: uppercase; letter-spacing: .03em; }
.hs-dt { width: 100%; border-collapse: collapse; font-size: 9pt; }
.hs-dt th, .hs-dt td { border: 1px solid #555; padding: 3px 5px; text-align: left; vertical-align: top; height: 18px; }
.hs-dt th { background: #eee; font-weight: 700; }
.hs-dt-id td small { display: block; font-size: 7.5pt; color: #444; }
.hs-dck { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 8pt; }
.hs-dck > div { text-align: left; display: flex; flex-direction: column; gap: 1px; }
@media print { .hs-dt th { background: #eee !important; } }
@media (max-width: 600px) {
  .hs-postos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-q { min-height: 136px; }
  .hs-fcab .btn { margin-left: 0; }
  .hs-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hs-tv-k { margin-left: 0; }
}
.hs-q.hs-q-livre, .hs-q.hs-q-manut { min-height: 76px; }
.hs-grade.hs-grade-l { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
@media (max-width: 600px) { .hs-grade.hs-grade-l { grid-template-columns: 1fr; } }
