/* Drenagem rodoviária — sarjetas, meio-fio e drenos.
 *
 * Herda a folha da família. A geometria de página NÃO é redeclarada; só a
 * colocação do painel de resultados, que é do produto.
 */
@import url("../estabilidade-taludes/styles.css");
@import url("../shared/ep-como-usar.css");

.drenagem-workspace > .results-panel { grid-column: 1 / -1; }

/* --------------------------------------------------------- trechos */

.trechos-wrap { margin-bottom: 8px; max-height: 300px; overflow-y: auto; }
.trechos-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.trechos-table thead th {
  position: sticky; top: 0; z-index: 1; background: #fff;
  text-align: left; font-size: .6rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted, #848f8b); font-weight: 600; padding: 0 3px 4px;
}
/* Em layout fixo a largura vem da PRIMEIRA linha — os `th`, não os `td`. */
.trechos-table th:nth-child(1) { width: 22%; }
.trechos-table th:nth-child(2) { width: 17%; }
.trechos-table th:nth-child(3) { width: 19%; }
.trechos-table th:nth-child(4) { width: 32%; }
.trechos-table th:nth-child(5) { width: 24px; }
.trechos-table td { padding: 2px 3px; vertical-align: middle; }
.trechos-table td:nth-child(5) { padding-left: 2px; padding-right: 2px; }
.trechos-table td input, .trechos-table td select { min-width: 0; }
.trechos-table tr.selecionada td { background: #eef6f2; }
.trechos-table tr.excede td { background: #fdf1f1; }

/* A faixa da Tabela 33, com o valor adotado dentro dela — a tabela tem os
 * cabeçalhos trocados na fonte, e mostrar a faixa é o que torna isso visível. */
.faixa-coeficiente {
  margin: 7px 0 0; padding: 8px 11px; border-radius: 9px;
  background: #f2f8f5; border: 1px solid #cfe3d8;
  font-size: .76rem; line-height: 1.5; color: #2c4a3d;
}
.faixa-barra {
  position: relative; height: 6px; border-radius: 3px; background: #dbe8e2; margin: 6px 0 3px;
}
.faixa-barra i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: #9fc9b6; }
.faixa-barra u {
  position: absolute; top: -3px; width: 2px; height: 12px; background: #0e6b4f; text-decoration: none;
}
.faixa-extremos { display: flex; justify-content: space-between; font-size: .68rem; color: #848f8b; }

/* O aviso de que a descarga do dreno NÃO é calculada. É a decisão mais
 * importante do produto, e não pode parecer omissão. */
.nao-dimensiona {
  margin-top: 9px; padding: 11px 13px; border-radius: 10px;
  border: 1px solid #e6d3a8; border-left: 3px solid #d9a441; background: #fdf9f0;
  font-size: .77rem; line-height: 1.6; color: #6b4c14;
}
.nao-dimensiona b { color: #5a3f10; }

/* --------------------------------------------------------------- desenho */

.dr-eixo, .dr-cota, .dr-hachura { pointer-events: none; }
.dr-agua { fill: url(#water-hatch); }
/* O maciço em volta da sarjeta, com o vazio dela como furo: sem terreno a
 * seção era um V solto no branco, e o leitor via a forma sem ver a coisa. */
.dr-terreno { pointer-events: none; }
/* A pista chegando pelo lado interno. Espessura típica DECLARADA no código —
 * este produto não dimensiona pavimento. */
.dr-pavimento { fill: #4a5450; stroke: #24302c; stroke-width: 0.7; }
.dr-revestimento { fill: url(#concrete-hatch); stroke: #24302c; stroke-width: 1.2; }
.dr-terreno { fill: url(#soil-hatch); stroke: #24302c; stroke-width: 1.2; }
.dr-filtrante { fill: url(#areia-hatch); stroke: #24302c; stroke-width: 1; }
.dr-drenante { fill: url(#pedregulho-hatch); stroke: #24302c; stroke-width: 1; }
.dr-pavimento { fill: #2b2f31; }
.dr-manta { stroke: #b02a37; stroke-width: 1.6; stroke-dasharray: 5 3; fill: none; }
.dr-tubo { fill: #fff; stroke: #24302c; stroke-width: 1.4; }
.dr-trecho { cursor: pointer; }
.dr-trecho:hover .dr-trecho-faixa { fill: #cfe3d8; }
.dr-trecho-faixa { fill: #e7f4ed; }
.dr-trecho.excede .dr-trecho-faixa { fill: #fbe3e5; }

/* ------------------------------------------------------- quadros das abas */

.quadro-filtro td.corrigida { color: #a4670f; }
.quadro-filtro td.falha { color: #b02a37; font-weight: 600; }

/* Últimos dois tokens secundários acertados no piso de contraste.
 *
 * `#7d9389` sobre branco dava 3,28:1; `#65736e` sobre o verde escuro da faixa
 * de saídas dava 3,06:1. O segundo é texto CLARO sobre fundo escuro, e por isso
 * foi CLAREADO, não escurecido — a primeira tentativa escureceu os dois, o que
 * levou o rótulo da faixa a 1,38:1, pior que estava. A direção da correção vem
 * de comparar a luminância do texto com a do fundo, e não de supor. */
