/* Praxis Dialyse · módulo hospitalar · Equipe e logística (aba hd_plantao). Prefixo hq-. */
.hq { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hq-corpo { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hq-abas { max-width: 100%; }
.hq-cresce { flex: 1 1 auto; }
.hq-h3 { margin: 0 0 8px; font-size: 1rem; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.hq-mes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hq-mes .sp-abas { flex: 0 1 auto; min-width: 0; }
.hq-kpis { margin: 0 0 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.hq-aviso { background: #fff4dc; border: 1px solid #f1d08a; color: #7a4b00; border-radius: 8px; padding: 8px 10px; margin: 6px 0; font-size: .9rem; }
.hq-nota { margin: 0 4px; font-size: .85rem; }
.hq-lista { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hq-lista > li { min-width: 0; }

/* Meu ponto */
.hq-bater { display: flex; flex-direction: column; gap: 10px; border-left: 4px solid var(--linha); }
.hq-bater.hq-dentro { border-left-color: var(--ok, #157347); }
.hq-bater-cab { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.hq-bater-cab > div { display: flex; flex-direction: column; min-width: 0; }
.hq-foto-linha { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hq-foto-btn { cursor: pointer; }
.hq-foto-prev { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 2px solid var(--px); }
.hq-grande { font-size: 1.15rem; padding: 14px 18px; width: 100%; }
.hq-dia { border: 1px solid var(--linha); border-radius: 8px; padding: 8px 10px; background: var(--sup); }
.hq-dia-cab { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.hq-h { font-variant-numeric: tabular-nums; font-weight: 700; }
.hq-par { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-variant-numeric: tabular-nums; padding: 2px 0; }
.hq-mini { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; border: 1px solid var(--linha); }
.hq-semfoto { display: inline-flex; align-items: center; justify-content: center; font-size: .55rem; color: var(--aco); background: var(--fundo, #f4f4f4); text-align: center; line-height: 1; }

/* Plantão de hoje */
.hq-grade, .hq-locais { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.hq-pes { display: flex; align-items: center; gap: 10px; }
.hq-pes > div { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.hq-chips { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.hq-chips li { border: 1px solid #f1d08a; background: #fff4dc; border-radius: 999px; padding: 3px 10px; font-size: .88rem; }

/* Faltas */
.hq-res, .hq-lanc, .hq-os, .hq-log { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; border-bottom: 1px solid var(--linha); padding: 6px 0; }
.hq-res-n { display: flex; gap: 4px; flex-wrap: wrap; }
.hq-lanc > div, .hq-os > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 220px; }
.hq-lanc > div > b + .pill, .hq-os > div .pill { align-self: flex-start; }

/* Pontuação */
.hq-pts-cab { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.hq-pts-cab > div { display: flex; flex-direction: column; }
.hq-pts-cab { flex-wrap: wrap; }
.hq-pts-n { font-family: var(--f-tit); font-size: 1.5rem; }
.hq-f { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--linha); padding: 3px 0; font-variant-numeric: tabular-nums; }
.hq-f > span { min-width: 0; }
.hq-neg { color: var(--mal, #b42318); }
.hq-dicas { margin-top: 10px; background: #eef6f0; border: 1px solid #bfdcc8; border-radius: 8px; padding: 8px 12px; }
.hq-dicas ul { margin: 4px 0 0; padding-left: 18px; }
.hq-formula { background: var(--sup); border: 1px solid var(--linha); border-radius: 8px; padding: 10px 14px; }
.hq-formula summary { cursor: pointer; font-weight: 600; }
.hq-rank > li > details { background: var(--sup); border: 1px solid var(--linha); border-radius: 8px; }
.hq-rank summary { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; flex-wrap: wrap; }
.hq-rank summary::-webkit-details-marker { display: none; }
.hq-rank details > .hq-pts { margin: 0 8px 8px; }
.hq-pos { font-weight: 700; color: var(--px); min-width: 2em; }
.hq-chk { display: flex; flex-wrap: wrap; gap: 6px 14px; border: 1px solid var(--linha); border-radius: 8px; padding: 8px 12px; }
.hq-chk[hidden] { display: none; }
.hq-chk legend { font-weight: 600; font-size: .9rem; }
.hq-chk .campo { flex: 1 1 100%; }
.hq-chk1 { display: flex; gap: 8px; align-items: center; }

/* Logística */
.hq-log-i { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; }
.hq-rota { font-weight: 600; color: var(--px); }
.hq-log-a { display: flex; gap: 6px; flex-wrap: wrap; }

/* Máquinas */
.hq-maqs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.hq-maq { display: flex; flex-direction: column; gap: 2px; text-align: left; font: inherit; color: inherit; background: var(--sup); border: 1px solid var(--linha); border-left: 5px solid var(--linha); border-radius: 8px; padding: 8px 10px; cursor: pointer; min-width: 0; }
.hq-maq:hover { border-color: var(--px); }
.hq-maq small { overflow-wrap: anywhere; }
.hq-m-st { font-weight: 700; font-size: .85rem; margin-top: 2px; }
.hq-m-d { color: var(--aco); }
.hq-m-livre { border-left-color: #157347; } .hq-m-livre .hq-m-st { color: #157347; }
.hq-m-uso { border-left-color: #1d5fbf; } .hq-m-uso .hq-m-st { color: #1d5fbf; }
.hq-m-manut, .hq-m-fora { border-left-color: #b42318; } .hq-m-manut .hq-m-st, .hq-m-fora .hq-m-st { color: #b42318; }
.hq-m-trans { border-left-color: #b26b00; } .hq-m-trans .hq-m-st { color: #b26b00; }
.hq-dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; }
.hq-dl dt { color: var(--aco); font-size: .85rem; } .hq-dl dd { margin: 0; overflow-wrap: anywhere; }

/* Impressão */
.hq-tab-doc { width: 100%; font-size: 10pt; border-collapse: collapse; }
.hq-tab-doc th, .hq-tab-doc td { border: 1px solid #999; padding: 3px 5px; text-align: left; vertical-align: top; }
.hq-rub { min-width: 70px; }
.hq-doc-nota { font-size: 9pt; color: #555; }

@media (max-width: 600px) {
  .hq-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-grade, .hq-locais { grid-template-columns: minmax(0, 1fr); }
  .hq-maqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-dl { grid-template-columns: minmax(0, 1fr); }
}
.hq-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.hq-gps-ajuda { border: 1px solid #f1d08a; background: #fff8e6; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.hq-gps-ajuda p, .hq-gps-ajuda ol { margin: 0; }
.hq-gps-ajuda ol { padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.hq-gps-ajuda .btn { align-self: stretch; min-height: 48px; justify-content: center; font-size: 16px; }
