/* Grillus RH: o que é só do RH, sempre pelos tokens do Grillus (claro e escuro). */
.rh-marca { opacity: .9; }
.rh-marca-escuro, html[data-tema="escuro"] .rh-marca-claro { display: none; }
html[data-tema="escuro"] .rh-marca-escuro { display: inline; }
.rh-mais { display: grid; gap: 2px; padding: 12px; }
.rh-mais a, .rh-mais button { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; text-align: left; cursor: pointer; }
.rh-mais a:hover, .rh-mais button:hover { background: var(--hover); }
.rh-mais i { font-size: 20px; color: var(--muted); }
.rh-mais-sep { height: 1px; background: var(--line); margin: 6px 4px; }
/* menu da conta: abre do botão no pé do menu lateral, por cima do conteúdo */
.rh-conta-menu { position: fixed; left: 64px; bottom: 14px; top: auto; min-width: 260px; }
.rh-conta-menu a, .rh-conta-menu button { display: flex; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; font: 500 14px/1.3 var(--fonte-texto); color: var(--ink); text-decoration: none; cursor: pointer; }
.rh-conta-menu a:hover, .rh-conta-menu button:hover, .rh-conta-menu a:focus-visible, .rh-conta-menu button:focus-visible { background: var(--hover); outline: none; }
.rh-conta-menu a.on { background: var(--brand-l); color: var(--brand-dd); }
.rh-conta-menu i { font-size: 18px; color: var(--muted); }
.rh-conta-menu [data-a="tema"] { border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; padding-top: 11px; }
@media (max-width: 760px) { .rh-conta-menu { display: none !important; } }
.rh-teste { font-weight: 600; color: var(--brand); text-decoration: none; }
.lg-top-title { font: 600 15px var(--fonte-titulo); color: var(--ink); }
.lg-top-sep { width: 1px; height: 22px; background: var(--line); margin: 0 12px; }
.rh-planos { display: grid; gap: 8px; margin: 0 0 16px; }
.rh-plano { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; }
.rh-plano:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.rh-plano span { display: grid; gap: 2px; }
.rh-plano em { font-style: normal; font-weight: 600; color: var(--brand-dd); }
.rh-plano small { color: var(--muted); }
.rh-num { margin-bottom: 16px; }
.rh-num > a { text-decoration: none; color: var(--ink); }
.rh-num > a:hover { background: var(--hover); }
.rh-alerta b { color: var(--bad); }
.rh-lista { list-style: none; margin: 0; padding: 0; }
.rh-lista li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rh-lista li:last-child { border-bottom: 0; }
.rh-lista small { color: var(--muted); white-space: nowrap; }
.rh-preco { font: 700 26px var(--fonte-titulo); margin: 4px 0; }
.rh-preco small { font: 400 13px var(--fonte-texto); color: var(--muted); }
.plano-card.on { border-color: var(--brand); }
.rh-tab { width: 100%; border-collapse: collapse; }
.rh-tab th, .rh-tab td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); font-size: 13px; }
.rh-tab th { color: var(--muted); font-weight: 600; }
.rh-chips { margin: 8px 0 12px; }
.rh-hist { list-style: none; margin: 0; padding: 0; }
.rh-hist-dia { font-weight: 700; font-size: 12.5px; color: var(--muted); margin: 18px 0 6px; }
.rh-hist-it { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.rh-hist-h { color: var(--muted); font-size: 12.5px; }
.rh-hist-it p { margin: 0; overflow-wrap: anywhere; }
.rh-hist-it ul { margin: 4px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }

/* tarefas: quadro no jeito do Trello */
.rh-kb-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.rh-kb-cab h1 { margin: 0; }
.rh-kb-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rh-kb-top select { min-width: 0; max-width: 190px; }
.rh-busca { position: relative; display: inline-flex; align-items: center; }
.rh-busca i { position: absolute; left: 10px; color: var(--muted); pointer-events: none; }
.rh-busca input { padding-left: 32px; width: 220px; max-width: 100%; }
.rh-kb { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 12px; align-items: start; }
.rh-kcol { background: var(--soft); border-radius: 14px; padding: 10px; display: flex; flex-direction: column; max-height: calc(100vh - 210px); }
.rh-kcol.rh-alvo { box-shadow: inset 0 0 0 2px var(--brand); }
.rh-kcol header { display: flex; align-items: center; gap: 6px; font: 600 13.5px var(--fonte-titulo); padding: 2px 4px 10px; }
.rh-kcol header small { margin-left: auto; color: var(--muted); font: 500 12px var(--fonte-texto); background: var(--card); border-radius: 99px; padding: 1px 8px; }
.rh-kl { display: grid; gap: 8px; overflow-y: auto; min-height: 8px; padding: 1px; }
.rh-kmarca { height: 4px; border-radius: 4px; background: var(--brand); }
.rh-kc { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; cursor: pointer; display: grid; gap: 7px; box-shadow: 0 1px 0 rgba(25, 25, 29, .06); overflow: hidden; }
.rh-kc:hover { border-color: var(--brand); }
.rh-kc:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.rh-kc.rh-arr { opacity: .4; transform: rotate(2deg); }
.rh-kc b { font-weight: 600; font-size: 13.5px; line-height: 1.35; overflow-wrap: anywhere; }
.rh-kc-capa { display: block; height: 30px; margin: -9px -10px 0; }
.rh-kc-et { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.rh-etq { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; border-radius: 6px; padding: 2px 8px; line-height: 1.4; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; }
.rh-etq-mais { background: var(--soft); color: var(--muted); cursor: pointer; }
.rh-kc-m { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12px; color: var(--muted); }
.rh-kc-m i { margin-right: 3px; }
.rh-kc-av { margin-left: auto; display: inline-flex; }
.rh-kc-av .av-s, .rh-cartao-av .av-s { margin-left: -4px; box-shadow: 0 0 0 2px var(--card); }
.rh-selo { display: inline-flex; align-items: center; border-radius: 5px; padding: 1px 6px; }
.rh-selo.atras { background: var(--bad); color: var(--bg); }
.rh-selo.perto { background: color-mix(in srgb, var(--warn) 22%, var(--card)); color: var(--ink); }
.rh-selo.ok { background: color-mix(in srgb, var(--ok) 20%, var(--card)); color: var(--ink); }
.rh-pri-urgente { color: var(--bad); font-weight: 700; }
.rh-pri-alta { color: var(--warn); font-weight: 700; }
.rh-p-alta { border-left: 3px solid var(--warn); }
.rh-p-urgente { border-left: 3px solid var(--bad); }
.rh-ag { background: var(--brand-l); color: var(--brand-dd); border-radius: 6px; padding: 1px 6px; }
.rh-kadd { padding-top: 6px; }
.rh-kadd-b { width: 100%; justify-content: flex-start; background: none; border: 0; color: var(--muted); padding: 8px; border-radius: 8px; }
.rh-kadd-b:hover { background: var(--hover); color: var(--ink); }
.rh-kadd-t { width: 100%; resize: vertical; }
.rh-kadd-a { display: flex; gap: 6px; margin-top: 6px; }
.rh-dica { margin-top: 10px; }
.rh-arq { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.rh-arq-it { display: grid; gap: 6px; }
/* janela do cartão */
.rh-cartao { width: min(860px, 100%); max-width: 860px; padding: 0; }
.rh-cartao-capa { height: 64px; border-radius: 14px 14px 0 0; }
.rh-cartao-top { display: flex; gap: 10px; align-items: flex-start; padding: 18px 18px 6px; }
.rh-cartao-top > i { font-size: 20px; margin-top: 6px; color: var(--muted); }
.rh-cartao-top .grow { flex: 1; min-width: 0; }
#c-tit { width: 100%; border: 1px solid transparent; background: none; font: 700 19px/1.3 var(--fonte-titulo); color: var(--ink); resize: none; overflow: hidden; padding: 4px 6px; margin-left: -6px; border-radius: 8px; }
#c-tit:hover, #c-tit:focus { border-color: var(--line); background: var(--card); }
.rh-cartao-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 180px; gap: 18px; padding: 6px 18px 18px; }
.rh-cartao-main { display: grid; gap: 18px; min-width: 0; }
.rh-cartao-meta { display: flex; flex-wrap: wrap; gap: 14px 22px; }
.rh-cartao-meta > div { display: grid; gap: 6px; }
.rh-cartao-meta small, .rh-cartao-acoes > small { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.rh-cartao-av { display: flex; align-items: center; padding-left: 4px; }
.rh-mais-p { cursor: pointer; border: 0; background: var(--soft); color: var(--muted); }
.rh-cartao-sec { display: grid; gap: 8px; }
.rh-cartao-sec > span { font: 600 14px var(--fonte-titulo); display: flex; align-items: center; gap: 6px; }
.rh-cartao-sec textarea { width: 100%; }
.rh-barra-p { height: 6px; background: var(--soft); border-radius: 6px; overflow: hidden; }
.rh-barra-p span { display: block; height: 100%; background: var(--ok); transition: width .2s; }
.rh-ck { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-weight: 400; }
.rh-ck input { width: auto; flex: 0 0 auto; margin: 0; }
.rh-ck label, .rh-ck span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 400; }
.rh-ck label.feito { text-decoration: line-through; color: var(--muted); }
.rh-cm-novo { display: grid; gap: 6px; justify-items: start; }
.rh-at { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rh-at li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; font-size: 13px; }
.rh-at li > div { display: grid; gap: 2px; }
.rh-at-h { color: var(--muted); }
.rh-cm-txt { margin: 2px 0; background: var(--soft); border-radius: 8px; padding: 8px 10px; color: var(--ink); overflow-wrap: anywhere; white-space: pre-wrap; }
.rh-cartao-acoes { display: grid; gap: 6px; align-content: start; }
.rh-cartao-acoes button { justify-content: flex-start; width: 100%; }
.rh-pop { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; background: var(--card); max-height: 320px; overflow: auto; }
.rh-cores { display: flex; flex-wrap: wrap; gap: 6px; }
.rh-cores button, .rh-cores label span { display: block; width: 28px; height: 22px; border-radius: 6px; border: 0; cursor: pointer; padding: 0; }
.rh-cores button[aria-pressed="true"], .rh-cores input:checked + span { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--ink); }
.rh-cores input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rh-etq-nova { display: grid; gap: 8px; margin: 12px 0; }
.rh-etq-lin { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }
.ic { background: none; border: 0; padding: 4px 6px; color: var(--muted); cursor: pointer; border-radius: 6px; }
.ic:hover { background: var(--hover); color: var(--ink); }
.rh-folha-ov { position: fixed; inset: 0; background: rgba(25, 25, 29, .38); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 16px; }
.rh-folha { max-height: 92vh; overflow: auto; display: flex; flex-direction: column; background: var(--card); color: var(--ink); }
.rh-folha-bt { display: flex; gap: 8px; align-items: center; margin-top: 16px; position: sticky; bottom: -28px; background: var(--card); padding: 12px 0; }
.rh-folha-bt .grow { flex: 1; }
.rh-ck { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-weight: 400; }
.rh-ck input { width: auto; flex: 0 0 auto; margin: 0; }
.rh-ck span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.rh-cm p { margin: 0 0 8px; font-size: 13px; overflow-wrap: anywhere; }
.rh-cm small { color: var(--muted); }
#rh-toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .2s; z-index: 300; max-width: calc(100vw - 32px); }
#rh-toast.on { opacity: 1; transform: translate(-50%, 0); }
#rh-toast.bad { background: var(--bad); color: var(--bg); }

/* barra do celular */
.rh-barra { display: none; }
@media (max-width: 760px) {
  #app { grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .ct { padding: 18px 16px 96px; }
  .tb { padding: 8px 16px; }
  .tb-r .mut, .rh-marca, html[data-tema="escuro"] .rh-marca-escuro { display: none; }
  .rh-kb { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 -16px; padding: 0 16px 8px; overscroll-behavior-x: contain; }
  .rh-kcol { flex: 0 0 86%; scroll-snap-align: center; max-height: none; }
  .rh-kb-top select { flex: 1 1 140px; max-width: none; }
  .rh-busca, .rh-busca input { width: 100%; }
  .rh-dica { display: none; }
  .rh-cartao-corpo { grid-template-columns: minmax(0, 1fr); }
  .rh-cartao-acoes { grid-template-columns: 1fr 1fr; }
  .rh-cartao-acoes > small, .rh-cartao-acoes select, #c-pop { grid-column: 1 / -1; }
  .rh-barra { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); z-index: 90; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .rh-barra a { flex: 1; display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; padding: 4px 0; }
  .rh-barra a i { font-size: 20px; }
  .rh-barra a.on { color: var(--brand); }
  .rh-folha-ov { align-items: flex-end; padding: 0; }
  .rh-folha { max-width: none; width: 100%; border-radius: 16px 16px 0 0; max-height: 94vh; }
  .rh-mais { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .frm { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------------------------ módulos */
.pill.info { background: var(--brand-l); color: var(--brand-dd); }
.pill { font-family: var(--fonte-texto); }
label.btn { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.rh-h2 { font: 700 17px var(--fonte-titulo); margin: 22px 0 10px; }
.rh-plano-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.rh-plano-total { display: grid; justify-items: end; }
.rh-plano-total small { color: var(--muted); font-size: 12px; }
.rh-plano-total b { font: 700 24px var(--fonte-titulo); }
.rh-lista-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 18px; }
.rh-lista-2 li { border-bottom: 0; padding: 4px 0; justify-content: flex-start; gap: 6px; }
.rh-plano-bt { margin-top: auto; padding-top: 10px; display: flex; gap: 8px; align-items: center; }
.plano-card { display: flex; flex-direction: column; }
.rh-bib-top, .rh-atas-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; margin-bottom: 12px; }
.rh-bib { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.rh-doc { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; cursor: pointer; color: var(--ink); font: inherit; height: auto; justify-content: flex-start; white-space: normal; }
.rh-doc:hover { border-color: var(--brand); }
.rh-doc > i { font-size: 22px; color: var(--brand); background: var(--brand-l); border-radius: 10px; padding: 8px; }
.rh-doc span { display: grid; gap: 3px; min-width: 0; }
.rh-doc b { overflow-wrap: anywhere; }
.rh-doc small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.rh-vazio { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 28px 18px; }
.rh-vazio h3 { margin: 6px 0 0; }
.rh-vazio p { max-width: 560px; margin: 0 auto; }
.rh-vazio .rh-lista-2 { text-align: left; max-width: 560px; width: 100%; }
.rh-modelos { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 8px; }
.rh-folha-larga { max-width: 820px; width: min(820px, 100%); }
.rh-doc-cab { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.rh-doc-cab > i { font-size: 22px; color: var(--brand); background: var(--brand-l); border-radius: 10px; padding: 8px; }
.rh-doc-cab > div { flex: 1; min-width: 0; }
.rh-doc-cab h3 { margin: 2px 0 0; overflow-wrap: anywhere; }
.rh-md { line-height: 1.6; overflow-wrap: anywhere; }
.rh-md h3, .rh-md h4, .rh-md h5 { font-family: var(--fonte-titulo); margin: 16px 0 6px; }
.rh-md ul { padding-left: 20px; margin: 6px 0; }
.rh-md .rh-md-ck { list-style: none; margin-left: -18px; }
.rh-md p { margin: 0 0 8px; }
.rh-uso { display: grid; gap: 4px; min-width: 220px; }
.rh-uso small { color: var(--muted); font-size: 12px; }
.rh-uso b { font: 700 16px var(--fonte-titulo); }
.rh-lista-cards { display: grid; gap: 8px; }
.rh-ata { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; color: var(--ink); font: inherit; width: 100%; height: auto; white-space: normal; justify-content: flex-start; }
.rh-ata:hover { border-color: var(--brand); }
.rh-ata .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.rh-ata .grow b, .rh-ata .grow small { overflow-wrap: anywhere; }
.rh-ata-d { display: grid; justify-items: center; background: var(--soft); border-radius: 10px; padding: 6px 10px; min-width: 52px; }
.rh-ata-d b { font: 700 18px var(--fonte-titulo); line-height: 1; }
.rh-ata-d small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.rh-ata-ic { font-size: 20px; color: var(--brand); background: var(--brand-l); border-radius: 10px; padding: 8px; }
.rh-part { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.rh-part .chip input { width: auto; margin: 0 4px 0 0; }
.rh-rec { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 10px 0; }
.rh-rec-t { font: 700 44px var(--fonte-titulo); letter-spacing: -.02em; }
.rh-rec canvas { width: 300px; max-width: 100%; height: 48px; }
.rh-rec-bt { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.rh-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 6px 0 14px; overflow-x: auto; }
.rh-tabs button { background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 8px 12px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rh-tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
[data-p="ed"] textarea { width: 100%; margin-bottom: 8px; }
.rh-tr { white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--ink); max-height: 50vh; overflow: auto; }
.rh-pend { margin-top: 16px; background: var(--soft); border-radius: 12px; padding: 12px 14px; display: grid; gap: 8px; justify-items: start; }
.rh-pend ul { margin: 0; padding-left: 18px; }
.rh-espera { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px; }
.rh-spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: rh-gira .9s linear infinite; }
@keyframes rh-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rh-spin { animation: none; } }
.rh-pt-p h3 { display: flex; gap: 8px; align-items: baseline; }
.rh-pt-l { list-style: none; margin: 0; padding: 0; display: grid; }
.rh-pt-l li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.rh-pt-l li:first-child { border-top: 0; }
.rh-pt-l li .grow { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13.5px; overflow-wrap: anywhere; }
.rh-pt-l li.feita { opacity: .55; }
.rh-pt-l .pill { flex: 0 0 auto; margin-top: 1px; }
.rh-rolar { overflow-x: auto; margin-top: 10px; }
.rh-esp td, .rh-esp th { white-space: nowrap; }
.rh-cv { display: grid; gap: 10px; margin-bottom: 14px; }
.rh-cv-m { border-radius: 12px; padding: 10px 14px; background: var(--soft); max-width: 92%; overflow-wrap: anywhere; }
.rh-cv-m small { color: var(--muted); font-size: 11.5px; }
.rh-cv-m p { margin: 4px 0 0; white-space: pre-wrap; }
.rh-cv-m.advogado { justify-self: end; background: var(--brand-l); }
.rh-parecer { max-width: 100%; justify-self: stretch; border: 1px solid var(--brand); background: var(--card); }
.rh-ass { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 10px; font-size: 13px; }
.rh-venda { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.rh-venda h2 { font: 700 22px var(--fonte-titulo); margin: 8px 0; }
.rh-venda-img { width: 180px; height: auto; }
.rh-passos { padding-left: 20px; display: grid; gap: 6px; }
@media (max-width: 760px) {
  .rh-venda { grid-template-columns: minmax(0, 1fr); }
  .rh-venda-img { display: none; }
  .rh-plano-total { justify-items: start; }
  .rh-bib-top .pri, .rh-atas-top .pri, .rh-atas-top label.btn { width: 100%; justify-content: center; }
  .rh-folha-larga { width: 100%; }
  .rh-cv-m { max-width: 100%; }
}
.rh-chips { justify-content: flex-start; max-width: none; }
.rh-chips .chip input { width: auto; margin: 0 4px 0 0; }
.plano-card .badge { align-self: flex-start; }
.rh-at li.mut { display: block; }
.lg-resumo { margin: 0 0 12px; padding-left: 18px; font-size: 13.5px; line-height: 1.5; display: grid; gap: 6px; }
.rh-lista-simples { padding-left: 18px; display: grid; gap: 6px; margin: 8px 0; }

/* ---------- Início no padrão do Grillus Gestão (js/rh-inicio.js) */
.rh-ini { display: grid; gap: 18px; min-width: 0; }
.rh-ini .capa { margin: 0; }
.rh-capa-sub { margin: 4px 0 0; color: rgba(255,255,255,.82); font-size: 13px; }
.rh-capa .capa-chips a { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.rh-capa .capa-chips a:hover { background: rgba(255,255,255,.18); }
.rh-prox { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: 14px 16px; color: #fff; align-content: start; }
.rh-prox small { color: rgba(255,255,255,.78); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.rh-prox b { font-family: var(--fonte-titulo); font-size: 18px; font-weight: 700; }
.rh-prox span { color: rgba(255,255,255,.85); font-size: 13px; }
.rh-capa-bt { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 10px; padding: 8px 12px; background: #fff; color: #19191d; font: 600 13px var(--fonte-texto); cursor: pointer; }
.rh-recado { background: var(--card); }
.rh-recado[href]:hover { border-color: var(--acento); }
.rh-recado-img { width: 72px; height: auto; flex: none; }
.rh-recado .destaque-tx span { font-size: 15px; line-height: 1.4; }
.rh-recado-ir { color: var(--acento); font-size: 13px; font-weight: 600; white-space: nowrap; display: inline-flex; gap: 4px; align-items: center; }
.rh-numeros > a { text-decoration: none; color: var(--ink); }
.rh-numeros > a:hover { background: var(--hover); }
.rh-numeros em { font-style: normal; font-size: 12px; color: var(--muted); }
.rh-numeros .rh-ruim b { color: var(--bad); }
.rh-numeros .rh-aviso b { color: var(--warn); }
.rh-legenda { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 12.5px; color: var(--muted); }
.rh-pt { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); margin-right: -8px; }
.rh-pt.ruim { background: var(--bad); } .rh-pt.aviso { background: var(--warn); }
.rh-selo { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--soft); }
.rh-selo.ruim { background: color-mix(in srgb, var(--bad) 14%, transparent); color: var(--bad); }
.rh-atencao { padding: 0; overflow: hidden; }
.rh-atencao table { width: 100%; border-collapse: collapse; }
.rh-atencao th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 14px; background: var(--soft); }
.rh-atencao td { padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.rh-atencao td:last-child, .rh-atencao th:last-child { text-align: right; width: 1%; white-space: nowrap; }

/* calendário */
.rh-cal-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .rh-cal-grid { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.rh-cal { padding: 12px; }
.rh-cal-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rh-cal-top b { font-family: var(--fonte-titulo); font-size: 17px; min-width: 150px; text-align: center; }
.rh-cal-top .grow { flex: 1; }
.rh-cal-sem, .rh-cal-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rh-cal-sem span { font-size: 11.5px; color: var(--muted); text-align: center; text-transform: uppercase; letter-spacing: .05em; padding: 2px 0 4px; }
.rh-cal-d { min-height: 86px; border-radius: 10px; background: var(--soft); padding: 6px; display: grid; align-content: start; gap: 3px; cursor: pointer; min-width: 0; outline: none; }
.rh-cal-d:hover, .rh-cal-d:focus-visible { box-shadow: inset 0 0 0 2px var(--acento); }
.rh-cal-d .n { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.rh-cal-d.fora { background: none; }
.rh-cal-d.fora .n, .rh-cal-d.passado .n { color: var(--muted); font-weight: 400; }
.rh-cal-d.hoje .n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--acento); color: #fff; justify-self: start; }
.rh-cal-ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 6px; padding: 3px 6px; background: var(--acento-suave); color: var(--ink); font: 12px/1.3 var(--fonte-texto); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.rh-cal-ev b { font-weight: 600; color: var(--acento); }
.rh-cal-mais { font-size: 11.5px; color: var(--muted); }
.rh-cal-pr { display: inline-flex; gap: 3px; align-items: center; font-size: 11.5px; color: var(--muted); }
.rh-cal-pr.ruim { color: var(--bad); }
.rh-cal-leg { margin: 10px 2px 0; display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.rh-cal-ev-amostra { display: inline-block; width: 16px; height: 10px; border-radius: 3px; background: var(--acento-suave); margin-right: -8px; }
.rh-cal-lado { display: grid; gap: 8px; }
.rh-cal-lado h4 { margin: 0; font-size: 14px; }
.rh-cal-prox { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rh-cal-prox button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 12px; color: var(--ink); cursor: pointer; font: inherit; }
.rh-cal-prox button:hover { border-color: var(--acento); }
.rh-cal-dt { display: grid; justify-items: center; min-width: 44px; padding: 4px 0; border-radius: 10px; background: var(--acento-suave); }
.rh-cal-dt b { font-family: var(--fonte-titulo); font-size: 20px; line-height: 1; color: var(--acento); }
.rh-cal-dt small { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.rh-cal-tx { display: grid; gap: 2px; min-width: 0; }
.rh-cal-tx b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rh-cal-tx small { color: var(--muted); font-size: 12px; }
.rh-cal-av { display: inline-flex; gap: 4px; align-items: center; }
.rh-ev-horas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rh-ev-pessoas { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 12px; max-height: 220px; overflow: auto; padding: 6px 2px; border: 1px solid var(--line); border-radius: 10px; }
@media (max-width: 760px) {
  .rh-cal { padding: 8px; }
  .rh-cal-d { min-height: 52px; padding: 4px; }
  .rh-cal-ev { padding: 0; height: 6px; border-radius: 3px; background: var(--acento); }
  .rh-cal-ev b, .rh-cal-ev span { display: none; }
  .rh-cal-pr span { display: none; }
  .rh-recado-img { width: 54px; }
  .rh-recado-ir { display: none; }
}

/* ---------- Premiação (js/rh-premiacao.js) */
.rh-pr { display: grid; gap: 14px; min-width: 0; }
.rh-pr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.rh-pr-mes { display: inline-flex; align-items: center; gap: 8px; }
.rh-pr-mes b { font-family: var(--fonte-titulo); font-size: 18px; min-width: 170px; text-align: center; }
.rh-pr-abas { flex-wrap: wrap; margin: 0; }
.rh-selo.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.rh-selo.aviso { background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); }
.rh-pr-num .rh-aviso b { color: var(--warn); }
.rh-pr-num > span { flex-basis: 160px; }
.rh-pr-acoes { display: flex; flex-wrap: wrap; gap: 8px; }
.rh-pr-tab { padding: 0; overflow-x: auto; }
.rh-pr-tab table { width: 100%; border-collapse: collapse; min-width: 0; }
.rh-pr-tab th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 12px; background: var(--soft); vertical-align: bottom; }
.rh-pr-tab th small { display: block; font-size: 11px; }
.rh-pr-tab td { padding: 9px 12px; border-top: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.rh-pr-tab td small { display: block; font-size: 12px; }
.rh-pr-tab tfoot td { font-weight: 600; background: var(--soft); }
.rh-pr-tab .r { text-align: right; white-space: nowrap; }
.rh-pr-notas { display: inline-flex; gap: 3px; }
.rh-pr-n { width: 30px; height: 30px; min-height: 0; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: 600 13px var(--fonte-texto); cursor: pointer; }
.rh-pr-n:hover:not(:disabled) { border-color: var(--acento); }
.rh-pr-n:disabled { cursor: default; opacity: .75; }
.rh-pr-n.on { color: #fff; border-color: transparent; }
.rh-pr-n.on.n1 { background: #b4231b; } .rh-pr-n.on.n2 { background: #a3561a; } .rh-pr-n.on.n3 { background: #6b6a78; }
.rh-pr-n.on.n4 { background: #2b6f8f; } .rh-pr-n.on.n5 { background: #1a7a4c; }
.rh-pr-in { width: 100%; min-width: 80px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: 14px var(--fonte-texto); }
.rh-pr-in-c { max-width: 90px; text-align: right; }
.rh-pr-in-l { min-width: 220px; }
td.r .rh-pr-in { text-align: right; max-width: 130px; margin-left: auto; display: block; }
.rh-pr-ord { white-space: nowrap; width: 1%; }
.rh-pr-ord .sm { padding: 2px 6px; min-height: 0; }
.rh-pr-regras { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); align-items: start; }
.rh-pr-regras table { width: 100%; border-collapse: collapse; }
.rh-pr-regras th, .rh-pr-regras td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14px; }
.rh-pr-regras .r { text-align: right; }
.rh-pr-regras h4 { margin: 14px 0 6px; font-size: 14px; }
.rh-pr-conf { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.rh-pr-conf li { display: flex; gap: 10px; align-items: baseline; }
.rh-vazio ul { margin: 6px 0 12px; padding-left: 18px; }
@media (max-width: 760px) {
  .rh-pr-tab table, .rh-pr-tab tbody, .rh-pr-tab tr, .rh-pr-tab td { display: block; }
  .rh-pr-tab thead { display: none; }
  .rh-pr-tab tr { padding: 10px 12px; border-top: 1px solid var(--line); }
  .rh-pr-tab td { border: 0; padding: 4px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .rh-pr-tab td::before { content: attr(data-l); font-size: 12px; color: var(--muted); }
  .rh-pr-tab td:not([data-l])::before { content: none; }
  .rh-pr-tab td.r { text-align: right; }
  .rh-pr-tab tfoot, .rh-pr-tab tfoot tr { display: block; }
  .rh-pr-mes b { min-width: 0; }
}
