/* Hotel — mesmo visual da Clinica (prototipos/proto-hotel.html, aprovado). Tudo prefixado ht- e preso em .ht
   (o HUB ja tem .btn, .box, .fld e um `thead th` escuro global que pintariam esta tela). */
.ht{
  --ht-primary:#2b6cb0; --ht-primary-h:#2455a3; --ht-ink:#2c3e50; --ht-muted:#4a5568; --ht-light:#718096;
  --ht-line:#e2e8f0; --ht-linha2:#dce6ef; --ht-fundo:#f4f6fa; --ht-titulo:#17355e; --ht-sel:#e6f0fb;
  --ht-green:#38a169; --ht-green-bg:#e8f6ee; --ht-green-txt:#1f7a46; --ht-red-txt:#c81e1e; --ht-red-bg:#fdecec;
  --ht-amber:#f59e0b; --ht-amber-bg:#fff6e0; --ht-amber-txt:#8a5300; --ht-cinza:#64748b;
  max-width:1360px; margin:0 auto; display:flex; flex-direction:column; gap:11px;
  font:12px/1.5 'Segoe UI',Tahoma,system-ui,sans-serif; color:var(--ht-ink);
}
.ht *{ box-sizing:border-box; }
.ht button{ font:inherit; cursor:pointer; }
.ht button:disabled{ cursor:not-allowed; opacity:.55; }
.ht input,.ht select,.ht textarea{ font:inherit; color:var(--ht-ink); }
.ht :focus-visible{ outline:2px solid var(--ht-primary); outline-offset:2px; }

/* R79: status do ERP discreto, na linha das abas (sem quadro, sem fundo) */
.ht-barra{ display:flex; align-items:flex-end; gap:11px; border-bottom:1px solid var(--ht-line); }
.ht-barra .ht-abas{ flex:1; min-width:0; border-bottom:0; }
.ht-erp-st{ display:flex; align-items:center; gap:5.5px; font-size:11px; color:var(--ht-light); white-space:nowrap;
  padding:0 0 7px; flex:none; cursor:default; }
.ht-erp-st .ht-pt{ width:6.5px; height:6.5px; border-radius:50%; background:var(--ht-green); flex:none; }
.ht-erp-st.lendo .ht-pt{ background:var(--ht-amber); animation:vtPisca 1s infinite alternate; }
.ht-erp-st.erro .ht-pt{ background:var(--ht-red-txt); }
.ht-erp-st.erro{ color:var(--ht-red-txt); }
.ht-erp-st button{ border:0; background:none; color:var(--ht-primary); font-weight:700; font-size:12.5px; line-height:1;
  width:21.5px; height:21.5px; border-radius:5.5px; padding:0; display:inline-flex; align-items:center; justify-content:center; }
.ht-erp-st button:hover:not(:disabled){ background:var(--ht-sel); }
.ht-erp-st button.gira{ animation:vtGira 1s linear infinite; }
@keyframes vtGira{ to{ transform:rotate(360deg); } }
@keyframes vtPisca{ to{ opacity:.3; } }

.ht-abas{ display:flex; gap:2px; border-bottom:1px solid var(--ht-line); overflow-x:auto; scrollbar-width:none; }
.ht-abas::-webkit-scrollbar{ display:none; }
.ht-aba{ display:flex; align-items:center; gap:6.5px; padding:9px 12.5px; border:0; background:none; color:var(--ht-muted);
  border-bottom:2px solid transparent; font-size:12px; white-space:nowrap; }
.ht-aba.on{ color:var(--ht-primary); border-bottom-color:var(--ht-primary); font-weight:700; }
.ht-aba .ht-n{ background:var(--ht-red-bg); color:var(--ht-red-txt); font-size:10px; font-weight:700; border-radius:18px; padding:0 6.5px; }
.ht-tela{ display:none; flex-direction:column; gap:11px; }
.ht-tela.on{ display:flex; }

.ht-titulo{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.ht-titulo h2{ margin:0; font-size:17px; color:var(--ht-titulo); font-weight:800; }
.ht-titulo .ht-sp{ flex:1; }
.ht-voltar{ border:0; background:none; color:var(--ht-primary); font-weight:600; padding:0; }

.ht-btn{ display:inline-flex; align-items:center; gap:6.5px; padding:7px 11.5px; border:1px solid var(--ht-line); background:#fff;
  border-radius:8px; font-weight:600; font-size:11.5px; color:var(--ht-ink); white-space:nowrap; height:auto; margin:0; }
.ht-btn:hover:not(:disabled){ border-color:#c3d3e6; }
.ht-btn.pri{ background:var(--ht-primary); border-color:var(--ht-primary); color:#fff; }
.ht-btn.perigo{ color:var(--ht-red-txt); border-color:currentColor; }
.ht-btn.perigo:hover:not(:disabled){ background:var(--ht-red-txt); border-color:var(--ht-red-txt); color:#fff; }
.ht-fat-cab.cancelado{ opacity:.75; }
.ht-btn.pri:hover:not(:disabled){ background:var(--ht-primary-h); }
.ht-btn.sm{ padding:4.5px 9px; font-size:11px; }
.ht-btn.on{ background:var(--ht-titulo); border-color:var(--ht-titulo); color:#fff; }
.ht-grupo{ display:inline-flex; }
.ht-grupo .ht-btn{ border-radius:0; } .ht-grupo .ht-btn:first-child{ border-radius:8px 0 0 8px; } .ht-grupo .ht-btn:last-child{ border-radius:0 8px 8px 0; }
.ht select.ht-btn{ padding-right:7px; }

.ht-box{ background:#fff; border:1px solid var(--ht-linha2); border-radius:12.5px; min-width:0; }
.ht-box-top{ display:flex; align-items:center; gap:9px; padding:10px 13.5px; border-bottom:1px solid var(--ht-line); flex-wrap:wrap; }
.ht-box-top h3{ margin:0; font-size:13px; color:var(--ht-titulo); }
.ht-box-top .ht-sp{ flex:1; }
.ht-box-c{ padding:12.5px 13.5px; }
.ht-vazio{ color:var(--ht-light); font-size:11px; text-align:center; padding:20px 11px; }
.ht-aviso{ background:var(--ht-amber-bg); border:1px solid #f6dfa6; border-radius:9px; padding:8px 11px; font-size:11px; color:#5c3b00; }
.ht-erro{ background:var(--ht-red-bg); border:1px solid #f6d3d3; border-radius:9px; padding:8px 11px; font-size:11px; color:var(--ht-red-txt); }

.ht-dt-top{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; padding:9px 13.5px; font-size:11px; color:var(--ht-muted); }
.ht-dt-top .ht-sp{ flex:1; }
.ht-dt-top select,.ht-dt-top input{ border:1px solid var(--ht-line); border-radius:6.5px; padding:4.5px 7px; width:auto; height:auto; margin:0; }
.ht-rol{ overflow-x:auto; }
.ht table{ width:100%; border-collapse:collapse; font-size:11.5px; margin:0; }
.ht thead th{ text-align:left; font-size:10px; color:var(--ht-light); text-transform:uppercase; letter-spacing:.5px; font-weight:700;
  padding:8px 11px; background:#fafbfd; border-bottom:1px solid var(--ht-line); white-space:nowrap; position:static; }
.ht tbody td{ padding:8px 11px; border-bottom:1px solid #eef2f7; vertical-align:middle; background:none; }
.ht tbody tr:last-child td{ border-bottom:0; }
.ht tbody tr:hover{ background:#fafcff; }
.ht td.ht-n,.ht th.ht-n{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ht-dt-pe{ display:flex; align-items:center; gap:9px; padding:9px 13.5px; font-size:11px; color:var(--ht-muted);
  border-top:1px solid var(--ht-line); flex-wrap:wrap; }
.ht-dt-pe .ht-sp{ flex:1; }

.ht-selo{ display:inline-flex; align-items:center; gap:4.5px; font-size:10px; font-weight:700; border-radius:18px; padding:2px 7px; white-space:nowrap; }
.ht-selo.erp{ background:var(--ht-sel); color:var(--ht-primary); }
.ht-selo.ok{ background:var(--ht-green-bg); color:var(--ht-green-txt); }
.ht-selo.esp{ background:var(--ht-amber-bg); color:var(--ht-amber-txt); }
.ht-selo.err{ background:var(--ht-red-bg); color:var(--ht-red-txt); }
.ht-selo.cinza{ background:#eef2f7; color:var(--ht-muted); }
.ht-selo.tipo{ background:#e0f2f7; color:#0e6a85; }

/* formularios */
.ht-form-col{ max-width:640px; width:100%; margin:0 auto; display:flex; flex-direction:column; gap:11px; }
.ht-grade{ display:grid; gap:9px 11px; }
.ht-g2{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.ht-fld{ display:flex; flex-direction:column; gap:3.5px; min-width:0; position:relative; }
.ht-fld.full{ grid-column:1/-1; }
.ht-fld > label{ font-size:11px; font-weight:700; color:var(--ht-muted); display:flex; align-items:center; gap:5.5px; margin:0; }
.ht-fld input,.ht-fld select,.ht-fld textarea{ border:1px solid var(--ht-line); border-radius:7px; padding:7px 9px;
  background:#fff; width:100%; height:auto; margin:0; }
.ht-fld textarea{ min-height:57.5px; resize:vertical; }
.ht-fld[hidden]{ display:none; }
/* R95: "Hospede estrangeiro (passaporte)" na ficha — mesmo jeito do checkbox da saida tarde */
.ht-fld > label.ht-estr{ font-weight:400; color:var(--ht-ink); gap:6px; cursor:pointer; }
.ht-fld .ht-estr input{ width:auto; margin:0; padding:0; }
.ht-ajuda{ font-size:10.5px; color:var(--ht-light); }
.ht-servs{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:3.5px 14.5px; }
.ht-rodape{ display:flex; gap:7px; justify-content:flex-end; align-items:center; flex-wrap:wrap; }

/* aviso de sucesso e modal */
.ht-ok{ background:var(--ht-green-bg); color:var(--ht-green-txt); border:1px solid #bfe5cd; border-radius:9px; padding:8px 11.5px; font-weight:600; }
.ht-modal{ position:fixed; inset:0; max-width:none; margin:0; display:none; place-items:center; padding:14.5px;
  background:rgba(15,23,42,.45); z-index:1000; }
.ht-modal.on{ display:grid; }
.ht-papel{ background:#fff; border-radius:11px; width:min(432px,100%); max-height:90vh; overflow:auto; box-shadow:0 20px 60px rgba(0,0,0,.3); }
.ht-det{ padding:14.5px 16px; }
.ht-det dl{ display:grid; grid-template-columns:auto minmax(0,1fr); gap:5.5px 12.5px; margin:0; }
.ht-det dt{ color:var(--ht-light); }
.ht-det dd{ margin:0; font-weight:600; }
.ht-pe{ display:flex; justify-content:space-between; align-items:center; gap:7px; flex-wrap:wrap; padding:10px 14.5px; border-top:1px solid var(--ht-line); }
.ht-acoes{ display:flex; gap:5.5px; flex-wrap:wrap; }
/* busca de hospede na reserva (prototipo: .combo) */
.ht-combo{ border:1px solid var(--ht-line); border-radius:8px; margin-top:3px; background:#fff; max-height:190px; overflow:auto; }
.ht-combo-it{ padding:7px 9px; cursor:pointer; border-bottom:1px solid #eef2f7; }
.ht-combo-it:last-child{ border-bottom:0; }
.ht-combo-it:hover{ background:var(--ht-sel); }
.ht-combo-vazio{ padding:7px 9px; color:var(--ht-light); }
.ht-combo-novo{ color:var(--ht-primary); font-weight:700; }
/* ficha do hospede (prototipo: abrirFicha) — abre por cima da reserva */
.ht-modal.c2{ z-index:1001; }
.ht-papel.largo{ width:min(760px,100%); }
.ht-g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.ht-acomp{ margin-top:11px; }
.ht-acomp input,.ht-acomp select{ width:100%; border:1px solid var(--ht-line); border-radius:6px; padding:4px 6px; background:#fff; }
.ht-acomp td{ padding:3px 4px; }
.ht-acomp .ht-btn{ margin-top:6px; }
.ht-busca{ border:1px solid var(--ht-line); border-radius:8px; padding:6px 9px; width:220px; max-width:100%; }

.ht-ap{ display:flex; gap:7px; flex-wrap:wrap; align-items:center; }
.ht .ht-n-in{ width:90px; }
@media (max-width:640px){ .ht-g2,.ht-g3{ grid-template-columns:minmax(0,1fr); } .ht-g3 .ht-fld{ grid-column:auto !important; } }

/* mapa de quartos (prototipo: .grade/.bar/.lista-hoje) */
.ht-kpis{ display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px; }
.ht-kpi{ border:1px solid var(--ht-line); border-radius:11px; padding:10px 12px; background:#fbfcfe; }
.ht-kpi small{ display:block; color:var(--ht-muted); font-size:11px; }
.ht-kpi b{ font-size:22px; color:var(--ht-titulo); }
.ht-kpi span{ font-size:10.5px; color:var(--ht-light); }
.ht-kpi .ht-pt{ display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; }
.ht-leg{ display:flex; gap:14px; flex-wrap:wrap; font-size:11px; color:var(--ht-muted); }
.ht-leg i{ display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:4px; vertical-align:-1px; }
.ht-mapa{ overflow-x:auto; }
.ht-gradeq{ display:grid; min-width:900px; font-size:11px; }
.ht-gradeq .ht-cab{ background:#f7f9fc; border-bottom:1px solid var(--ht-line); padding:6px 4px; text-align:center; color:var(--ht-muted); position:sticky; top:0; }
.ht-gradeq .ht-cab.hoje{ background:var(--ht-sel); color:var(--ht-primary); font-weight:700; }
.ht-gradeq .ht-cab.fds{ background:#f1f3f7; }
.ht-gradeq .ht-q{ border-bottom:1px solid var(--ht-line); padding:6px 8px; background:#fff; position:sticky; left:0; z-index:4; border-right:1px solid var(--ht-line); }
.ht-gradeq .ht-q{ cursor:pointer; }
.ht-gradeq .ht-q:hover{ background:var(--ht-hover,#f7fafc); }
.ht-gradeq .ht-q b{ font-size:12.5px; color:var(--ht-titulo); }
.ht-gradeq .ht-q span:not(.ht-limp){ display:block; color:var(--ht-light); font-size:10px; }
.ht-gradeq .ht-c{ border-bottom:1px solid var(--ht-line); border-left:1px solid #f0f3f8; min-height:38px; cursor:pointer; position:relative; }
.ht-gradeq .ht-c:hover{ background:#f3f8ff; }
.ht-gradeq .ht-c.hoje{ background:#f6faff; }
.ht-bar{ position:relative; z-index:2; align-self:center; margin:5px 2px; height:26px; border-radius:7px; padding:0 8px; display:flex; align-items:center; gap:5px;
  font-size:11px; font-weight:600; color:#fff; cursor:pointer; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; box-shadow:0 1px 2px rgba(0,0,0,.08); }
.ht-bar.res{ background:#3b82c4; } .ht-bar.hosp{ background:#2f9e5b; } .ht-bar.saiu{ background:#a0aec0; }
.ht-bar.bloq{ background:repeating-linear-gradient(45deg,#e46a6a,#e46a6a 6px,#d65555 6px,#d65555 12px); }
.ht-bar small{ opacity:.85; font-weight:400; }
.ht-limp{ display:inline-block; font-size:10px; font-weight:700; border-radius:20px; padding:0 6px; margin-top:2px; }
.ht-limp.sujo{ background:var(--ht-amber-bg); color:var(--ht-amber-txt); }
.ht-limp.limpando{ background:var(--ht-sel); color:#1a4f86; }
.ht-limp.limpo{ background:var(--ht-green-bg); color:var(--ht-green-txt); }
.ht-lista-hoje{ display:none; flex-direction:column; gap:8px; }
.ht-lq{ display:flex; align-items:center; gap:10px; border:1px solid var(--ht-line); border-radius:10px; padding:9px 11px; background:#fff; cursor:pointer; }
.ht-lq b{ font-size:15px; color:var(--ht-titulo); min-width:40px; } .ht-lq .ht-sp{ flex:1; }
.ht-selo2{ display:inline-block; border-radius:20px; padding:1px 9px; font-size:10.5px; font-weight:700; }
.ht-selo2.livre{ background:var(--ht-green-bg); color:var(--ht-green-txt); } .ht-selo2.ocup{ background:#dcf3e4; color:#17693a; }
.ht-selo2.res{ background:var(--ht-sel); color:#1a4f86; } .ht-selo2.bloq{ background:var(--ht-red-bg); color:var(--ht-red-txt); }
.ht-selo2.chega{ background:var(--ht-amber-bg); color:var(--ht-amber-txt); }
@media (max-width:760px){
  .ht-kpis{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ht-mapa,.ht-mapa-ctl{ display:none; } .ht-lista-hoje{ display:flex; }
}

/* conta do quarto e check-out (prototipo: .hosp-top/.dados/.total/.btn.verde) */
.ht-btn.verde{ background:var(--ht-green); border-color:var(--ht-green); color:#fff; }
.ht-btn.verde:hover:not(:disabled){ background:#2f855a; border-color:#2f855a; }
.ht-hosp-top{ display:flex; gap:12.5px; align-items:center; flex-wrap:wrap; }
.ht-hosp-top h3{ margin:0; font-size:14.5px; color:var(--ht-titulo); }
.ht-hosp-top p{ margin:0; color:var(--ht-muted); }
.ht-av{ width:41px; height:41px; border-radius:50%; background:var(--ht-sel); display:flex; align-items:center; justify-content:center; font-size:20px; flex:none; }
.ht-dados{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:9px; }
.ht-dados div{ background:#f7f9fc; border-radius:7px; padding:6px 9px; min-width:0; }
.ht-dados small{ display:block; color:var(--ht-light); font-size:10px; }
.ht-dados b{ color:var(--ht-titulo); overflow-wrap:anywhere; }
.ht-total{ display:flex; justify-content:flex-end; align-items:center; gap:12.5px; padding:9px 13.5px; border-top:1px solid var(--ht-line); }
.ht-total b{ font-size:18px; color:var(--ht-titulo); }
.ht-ck{ display:flex; gap:9px; align-items:center; flex-wrap:wrap; }
.ht-ck-txt{ flex:1; min-width:220px; }
.ht-ck-tarde{ display:flex; align-items:center; gap:5px; flex-wrap:wrap; }
.ht-ck-tarde select{ border:1px solid var(--ht-line); border-radius:6px; padding:3px 5px; width:auto; height:auto; margin:0; }
.ht-ck-tarde input{ width:auto; margin:0; }
.ht-fat-cab{ display:flex; align-items:center; gap:7px; flex-wrap:wrap; background:var(--ht-green-bg); border:1px solid #bfe5cd;
  border-radius:9px; padding:7px 11px; font-size:11px; color:#1f5f3a; }
.ht-fat-cab b{ color:var(--ht-titulo); }
.ht-fat-cab .ht-sp{ flex:1; }
.ht-fat-cab.parcial{ background:var(--ht-red-bg); border-color:#f6d3d3; color:var(--ht-red-txt); }
.ht-fat-cab.enviando{ background:var(--ht-amber-bg); border-color:#f6dfa6; color:var(--ht-amber-txt); }
#ht-ck-resumo .ht-box{ border-radius:9px; }
.ht-sel-serv{ display:flex; gap:5px; align-items:center; min-width:0; }
.ht-fld .ht-sel-serv input{ flex:1 1 40%; min-width:0; }
.ht-fld .ht-sel-serv select{ flex:1 1 60%; min-width:0; }
.ht-sel-serv .ht-btn{ flex:none; }
@media (max-width:640px){ .ht-sel-serv{ flex-wrap:wrap; } .ht-fld .ht-sel-serv select{ flex-basis:calc(100% - 40px); } .ht-fld .ht-sel-serv input{ flex-basis:100%; } }
#ht-ck-resumo td{ padding:6px 10px; }
@media (max-width:640px){ .ht-dados{ grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* R81 (copiado do vet.css, prefixo ht-): fatura — A4 retrato, cores impressas como na tela. Presa em .ht
   para vencer o `.ht table/td` do modulo e ficar igual a da Clinica. */
.ht .ht-fat{ --fa:#1a4f86; --fa2:#e9f2fc; padding:22px 26px; color:#1a2b45; font-size:12.5px; line-height:1.45;
  -webkit-print-color-adjust:exact; print-color-adjust:exact; }
.ht .ht-fat svg{ width:18px; height:18px; fill:var(--fa); flex:none; }
.ht .ht-fat .fa-top{ display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto; gap:16px; align-items:start;
  padding-bottom:14px; border-bottom:1px solid #c7d7ea; }
.ht .ht-fat .fa-cli{ display:flex; gap:12px; align-items:center; min-width:0; }
.ht .ht-fat .fa-cli img{ max-width:96px; max-height:72px; object-fit:contain; }
.ht .ht-fat .fa-cli h2{ margin:0; font-size:20px; color:var(--fa); line-height:1.15; }
.ht .ht-fat .fa-doc{ font-size:11.5px; color:#4a5f7a; margin-top:2px; }
.ht .ht-fat .fa-cont{ display:flex; flex-direction:column; gap:6px; font-size:11.5px; color:#2d3f5a; }
.ht .ht-fat .fa-cont div{ display:flex; gap:8px; align-items:flex-start; }
.ht .ht-fat .fa-id{ background:var(--fa2); border-radius:12px; padding:12px 16px; text-align:left; min-width:190px; }
.ht .ht-fat .fa-id b{ display:block; font-size:22px; letter-spacing:1px; color:#0f2f57; }
.ht .ht-fat .fa-os{ font-weight:700; color:var(--fa); }
.ht .ht-fat .fa-info{ display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); margin:12px 0; border:1px solid #d9e4f1;
  border-radius:10px; padding:8px 4px; }
.ht .ht-fat .fa-info svg{ width:14px; height:14px; margin-top:1px; }
.ht .ht-fat .fa-info > div{ display:flex; gap:7px; padding:0 9px; border-left:1px solid #e3ebf5; min-width:0; }
.ht .ht-fat .fa-info > div:first-child{ border-left:0; }
.ht .ht-fat .fa-info small{ display:block; font-size:9px; font-weight:700; color:var(--fa); text-transform:uppercase; letter-spacing:.4px; }
.ht .ht-fat .fa-info b{ display:block; font-size:12px; color:#0f2f57; overflow-wrap:anywhere; }
.ht .ht-fat .fa-info span{ display:block; font-size:10px; line-height:1.35; color:#4a5f7a; }
.ht .ht-fat .fa-sit{ display:inline-block !important; margin-top:3px; padding:2px 10px; border-radius:20px; font-weight:700; font-size:10.5px !important; }
.ht .ht-fat .fa-sit.ab{ background:#dcf3e4; color:#17693a !important; }
.ht .ht-fat .fa-sit.fin{ background:#e1ecfb; color:#1a4f86 !important; }
.ht .ht-fat .fa-sit.canc{ background:#fde4e4; color:#b42318 !important; }
.ht .ht-fat .fa-tab{ border:1px solid #d9e4f1; border-radius:12px; overflow:hidden; }
.ht .ht-fat table{ width:100%; border-collapse:collapse; font-size:12.5px; }
.ht .ht-fat thead th{ background:var(--fa); color:#fff; text-transform:uppercase; letter-spacing:.3px; font-size:11px;
  padding:9px 10px; text-align:left; border:0; }
.ht .ht-fat td{ padding:9px 10px; border-top:1px solid #e3ebf5; border-bottom:0; vertical-align:middle; }
.ht .ht-fat tbody tr:first-child td{ border-top:0; }
.ht .ht-fat tbody tr:hover{ background:none; }
.ht .ht-fat .n{ text-align:right !important; white-space:nowrap; }
.ht .ht-fat .i{ color:#6b7f99; width:28px; }
.ht .ht-fat .d{ font-weight:700; color:#0f2f57; }
.ht .ht-fat .t{ font-weight:700; }
.ht .ht-fat .fa-tipo{ display:inline-block; padding:2px 10px; border-radius:20px; font-size:11.5px; }
.ht .ht-fat .fa-tipo.s{ background:#e1ecfb; color:#1a4f86; }
.ht .ht-fat .fa-tipo.p{ background:#efe6fb; color:#5b2a9c; }
.ht .ht-fat .fa-tipo.m{ display:none; }
.ht .ht-fat .fa-total{ display:flex; justify-content:flex-end; align-items:center; gap:18px; margin:12px 0; }
.ht .ht-fat .fa-total span{ font-size:15px; font-weight:700; }
.ht .ht-fat .fa-total b{ background:var(--fa2); border-radius:12px; padding:10px 18px; font-size:22px; color:#0f2f57; min-width:190px; text-align:right; }
.ht .ht-fat .fa-box{ display:flex; gap:10px; background:var(--fa2); border-radius:12px; padding:10px 14px; margin-top:10px; font-size:12px; }
.ht .ht-fat .fa-box small{ display:block; font-size:10.5px; font-weight:700; color:var(--fa); text-transform:uppercase; letter-spacing:.4px; }
.ht .ht-fat .fa-pe{ margin-top:22px; padding-top:12px; border-top:1px solid #c7d7ea; text-align:center; color:#0f2f57; font-size:14px; }
.ht .ht-fat .fa-linha{ display:flex; align-items:center; justify-content:center; gap:10px; margin-top:6px; }
.ht .ht-fat .fa-linha::before,.ht .ht-fat .fa-linha::after{ content:''; width:80px; border-top:1px solid #9fb6d3; }
@media (max-width:700px){
  .ht .ht-fat{ padding:16px 14px; }
  .ht .ht-fat .fa-top{ grid-template-columns:1fr; }
  .ht .ht-fat .fa-info{ grid-template-columns:repeat(2,minmax(0,1fr)); row-gap:12px; }
  .ht .ht-fat .fa-info > div:nth-child(3){ border-left:0; }
  .ht .ht-fat .i,.ht .ht-fat .tp{ display:none; }              /* celular: sem #, tipo vai sob a descricao */
  .ht .ht-fat .fa-tipo.m{ display:table; margin-top:3px; font-weight:400; }
  .ht .ht-fat td,.ht .ht-fat thead th{ padding:7px 6px; }
  .ht .ht-fat table{ font-size:11.5px; }
  .ht .ht-fat .fa-total b{ min-width:0; }
}
@media print{ .ht .ht-fat{ padding:0; }
  /* o @media print do index pinta 'thead th' de cinza: aqui o cabecalho e azul (PRD) */
  .ht .ht-fat thead th{ background:#1a4f86 !important; color:#fff !important; } .ht .ht-fat .fa-top{ grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto; }
  .ht .ht-fat .fa-info{ grid-template-columns:repeat(4,minmax(0,1fr)); } .ht .ht-fat .fa-info > div:nth-child(3){ border-left:1px solid #e3ebf5; } }
/* impressao: so a fatura aberta no modal (o index esconde tudo com 'body *{visibility:hidden}' — R76) */
@media print{
  body.ht-imprimindo > *:not(#ht-modal){ display:none !important; }
  body.ht-imprimindo #ht-modal{ position:static; background:none; padding:0; display:block; }
  body.ht-imprimindo #ht-modal .ht-papel{ box-shadow:none; max-height:none; width:100%; border-radius:0; overflow:visible; }
  body.ht-imprimindo #ht-modal .ht-pe{ display:none; }
  body.ht-imprimindo #ht-modal, body.ht-imprimindo #ht-modal *{ visibility:visible !important; }
  body.ht-imprimindo #ht-modal .ht-pe, body.ht-imprimindo #ht-modal .ht-pe *{ visibility:hidden !important; }
}

/* ---- Camareira e avisos (Task 7). Celular primeiro: cartoes de largura total e botoes grandes. ---- */
.ht-cam{ display:flex; flex-direction:column; gap:9px; max-width:640px; }
.ht-cam-card{ border:1px solid var(--ht-line); border-radius:12px; padding:11px 13px; display:flex; flex-direction:column; gap:9px; background:#fff; min-width:0; }
.ht-cam-card.feito{ opacity:.6; }
.ht-cam-top{ display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.ht-cam-q{ font-size:22px; color:var(--ht-titulo); min-width:52px; }
.ht-cam-t{ flex:1 1 140px; min-width:0; overflow-wrap:anywhere; }
.ht-cam-acoes{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.ht-cam-acoes .ht-btn{ padding:12px 16px; font-size:14px; min-height:44px; justify-content:center; }
.ht-btn.ok{ background:var(--ht-green); border-color:var(--ht-green); color:#fff; }
.ht-prio{ font-size:10.5px; font-weight:700; color:var(--ht-light); text-transform:uppercase; letter-spacing:.4px; margin-top:4px; }
.ht-avisos{ margin-top:12px; }
.ht-aviso-l{ display:flex; gap:10px; align-items:center; border-bottom:1px solid #edf2f7; padding:8px 13px; flex-wrap:wrap; }
.ht-aviso-l:last-child{ border-bottom:0; }
.ht-aviso-l > b{ min-width:40px; color:var(--ht-titulo); }
.ht-aviso-txt{ flex:1 1 200px; min-width:0; overflow-wrap:anywhere; }
.ht-aviso-cf{ display:block; color:var(--ht-red-txt); font-weight:600; margin-top:3px; }
@media (max-width:640px){ .ht-cam-acoes .ht-btn{ flex:1 1 130px; } .ht-aviso-l .ht-btn{ min-height:40px; } }
