/* Calculadora de hora extra e adicional noturno — shortcode [gq_hora_extra] (hora-extra.js).
 * Tudo escopado em .gq-he; cores do design system (--gq-*) com fallback. */
.gq-he {
    margin: 2rem 0;
    padding: 1.4rem 1.4rem 1.2rem;
    border: 1px solid var(--gq-border, rgba(128, 128, 128, 0.28));
    border-radius: 12px;
    background: var(--gq-surface, rgba(128, 128, 128, 0.05));
}
.gq-he-aviso-topo {
    margin: 0 0 0.8rem;
    padding: 0.7rem 0.9rem;
    border-left: 3px solid #b7791f;
    background: rgba(183, 121, 31, 0.1);
    font-size: 14px;
    line-height: 1.5;
}
.gq-he-quem { margin: 0 0 1.1rem; font-size: 13.5px; line-height: 1.5; opacity: 0.85; }
.gq-he-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}
.gq-he-campo {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
}
.gq-he-rotulo { font-size: 14px; font-weight: 500; }
.gq-he-dica { font-size: 12.5px; opacity: 0.75; line-height: 1.4; }
.gq-he input[type="number"],
.gq-he select {
    width: 100%;
    box-sizing: border-box;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    font-size: 16px;
    border: 1px solid var(--gq-border, rgba(128, 128, 128, 0.4));
    border-radius: 8px;
    background: #fff;
    color: #14181a;
}
.gq-he-caixa {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 14.5px;
    line-height: 1.4;
}
.gq-he-caixa input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.gq-he-botao {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 44px;
    padding: 0.6rem 1.6rem;
    font-size: 16px;
    font-weight: 600;
    border: 0;
    border-radius: 8px;
    background: #1f3a5f;
    color: #fff;
    cursor: pointer;
}
.gq-he-botao:hover { background: #16294a; }
.gq-he-saida { margin-top: 1.4rem; }
.gq-he-erro { color: #b42318; font-weight: 500; }
.gq-he-valor-hora { margin: 0 0 1rem; font-size: 16px; }
.gq-he-grade {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.2rem;
}
.gq-he-bloco-titulo {
    margin: 0 0 0.5rem !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}
.gq-he-tabela { width: 100%; border-collapse: collapse; font-size: 15px; }
.gq-he-tabela td { padding: 0.45rem 0.3rem; border-bottom: 1px solid var(--gq-border, rgba(128, 128, 128, 0.2)); vertical-align: top; }
.gq-he-tabela td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gq-he-total td { font-weight: 700; border-bottom: 0; }
.gq-he-liquido { margin: 1rem 0 0.2rem; font-size: 17px; }
.gq-he-liquido strong { font-size: 21px; }
.gq-he-destaque {
    margin: 1rem 0 0;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    background: rgba(31, 90, 61, 0.1);
    font-size: 16px;
    line-height: 1.5;
}
.gq-he-destaque strong { font-size: 20px; }
.gq-he-reflexos { margin-top: 1.4rem; }
.gq-he-reflexos ul { margin: 0 0 0.6rem 1.2rem; padding: 0; }
.gq-he-nota, .gq-he-fora { font-size: 13.5px; line-height: 1.5; opacity: 0.85; }
.gq-he-avisos { margin: 1rem 0 0 1.2rem; padding: 0; font-size: 14.5px; line-height: 1.5; }
.gq-he-tag {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0 0.4rem;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: 1px;
    cursor: help;
}
.gq-he-tag-lei { background: rgba(31, 90, 61, 0.14); color: #1f5a3d; }
.gq-he-tag-jurisprudencia { background: rgba(183, 121, 31, 0.18); color: #7a4b0a; }
.gq-he-tag-entendimento { background: rgba(128, 128, 128, 0.2); color: #444; }

/* Quadro "o que a lei diz" (texto da página, fora do .gq-he), mesmo cuidado da rescisão:
 * a .gq-tabela do busca.css é nowrap e carrega depois; cor explícita por causa do modo escuro. */
.gq-tabela.gq-he-comparativo th,
.gq-tabela.gq-he-comparativo td {
    white-space: normal;
    vertical-align: top;
    min-width: 8.5rem;
    font-size: 14px;
    color: #14181a;
}
.gq-tabela.gq-he-comparativo th { background: #f5f5f5; }
.gq-tabela.gq-he-comparativo tbody th { min-width: 7rem; }

/* Lista "Como calculamos": o tema põe <li> em 22px e a prosa da página é 17px. */
.gq-cargo-geral > ul {
    max-width: var(--gq-medida, 700px);
}
.gq-cargo-geral > ul > li {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 0.5rem;
}
