/* Pluviômetro — igual ao do Pecuária 360 (03/11/2026). Tela em js/pages/pluviometro/pluviometro.js */
.pagina-pluviometro { padding-bottom: 24px; }
.pv-card { background: #fff; border-radius: 16px; padding: 16px; box-shadow: 0 2px 10px rgba(0,0,0,.06); margin-bottom: 14px; }
.pv-card-titulo { font-size: 12px; font-weight: 800; color: #555; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 10px; }
.pv-mm-linha { display: flex; align-items: center; gap: 10px; }
.pv-mm { flex: 1; min-width: 0; padding: 14px 16px; border: 2px solid #e5e5e5; border-radius: 14px; font-size: 32px; font-weight: 900; font-family: inherit; text-align: center; box-sizing: border-box; color: #0D47A1; background: #fff; }
.pv-mm:focus { outline: none; border-color: #1565C0; }
.pv-mm-un { font-size: 21px; font-weight: 800; color: #555; }
.pv-linha2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 11px; }
.pv-linha2 > div { min-width: 0; }
.pv-linha2 .pv-inp { min-width: 0; max-width: 100%; }
.pv-linha2 input[type="date"].pv-inp { -webkit-appearance: none; appearance: none; }
.pv-lbl { display: block; font-size: 12px; font-weight: 800; color: #666; text-transform: uppercase; margin-bottom: 4px; }
.pv-inp { width: 100%; padding: 11px 13px; border: 2px solid #e5e5e5; border-radius: 11px; font-size: 16px; font-family: inherit; box-sizing: border-box; background: #fff; color: #1a1a1a; }
.pv-btn-lancar { width: 100%; padding: 16px; background: linear-gradient(135deg, #1565C0, #0D47A1); color: #fff; border: none; border-radius: 14px; font-size: 18px; font-weight: 800; font-family: inherit; cursor: pointer; margin-top: 14px; }
.pv-btn-zero { width: 100%; padding: 11px; margin-top: 8px; background: #fff; color: #0D47A1; border: 2px dashed #90CAF9; border-radius: 14px; font-weight: 800; font-family: inherit; font-size: 15px; cursor: pointer; }
.pv-resumo { background: linear-gradient(135deg, #0D47A1 0%, #1a237e 100%); border-radius: 16px; padding: 16px 18px; color: #fff; margin-bottom: 14px; }
.pv-resumo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.pv-stat-v { font-size: 24px; font-weight: 900; color: #90CAF9; line-height: 1.1; }
.pv-stat-l { font-size: 11px; opacity: .85; text-transform: uppercase; margin-top: 2px; }
.pv-stat-s { font-size: 12px; opacity: .85; margin-top: 2px; }
.pv-semchuva, .pv-florada { margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.2); font-size: 15px; font-weight: 700; }
.pv-florada { margin-top: 8px; }
.pv-grafico { display: flex; align-items: flex-end; gap: 4px; height: 144px; padding-top: 8px; }
.pv-g-mes { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.pv-g-barras { display: flex; align-items: flex-end; gap: 2px; height: 100%; width: 100%; justify-content: center; }
.pv-g-bar { width: 42%; border-radius: 3px 3px 0 0; min-height: 1px; }
.pv-g-bar--atual, .pv-cor-atual { background: #1565C0; }
.pv-g-bar--passado, .pv-cor-passado { background: #BBDEFB; }
.pv-g-nome { font-size: 11px; color: #666; margin-top: 3px; }
.pv-legenda { display: flex; gap: 14px; font-size: 13px; color: #555; margin-top: 8px; }
.pv-legenda i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; }
.pv-mes-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.pv-mes-nav button { background: #E3F2FD; color: #0D47A1; border: none; border-radius: 10px; padding: 6px 14px; font-weight: 900; font-size: 20px; cursor: pointer; }
.pv-mes-nav b { font-size: 16px; color: #1a1a1a; }
.pv-reg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 3px; border-bottom: 1px solid #f0f0f0; cursor: pointer; }
.pv-reg b { color: #0D47A1; font-size: 18px; }
.pv-reg small { color: #6b7280; display: block; font-size: 13px; }
.pv-vazio { text-align: center; color: #888; padding: 16px 8px; font-size: 15px; line-height: 1.45; }
.pv-folha-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 99999; display: flex; align-items: flex-end; justify-content: center; }
.pv-folha { background: #fff; width: 100%; max-width: 544px; border-radius: 19px 19px 0 0; padding: 18px 16px calc(22px + env(safe-area-inset-bottom)); box-sizing: border-box; max-height: 92vh; overflow-y: auto; }
.pv-folha h3 { margin: 0 0 6px; font-size: 18px; color: #111827; }
.pv-folha p { margin: 0 0 14px; color: #374151; line-height: 1.4; }
.pv-folha .pv-mm { margin-bottom: 4px; }
.pv-folha .pv-btn-lancar { margin-top: 10px; }
.pv-btn-sec { width: 100%; padding: 14px; margin-top: 8px; border-radius: 14px; border: 2px solid #1565C0; background: #fff; color: #0D47A1; font-weight: 800; font-family: inherit; font-size: 16px; cursor: pointer; }
.pv-btn-del { width: 100%; padding: 12px; margin-top: 8px; border-radius: 14px; border: none; background: #FFEBEE; color: #c62828; font-weight: 800; font-family: inherit; font-size: 15px; cursor: pointer; }
.pv-btn-link { width: 100%; padding: 10px; margin-top: 5px; background: none; border: none; color: #6b7280; font-family: inherit; font-size: 15px; cursor: pointer; }
/* folha de impressão */
.pv-impressao .pr-doc { padding: 8px 4px 40px; color: #1a1a1a; }
.pv-impressao .pr-doc h1 { font-size: 22px; margin: 0 0 4px; }
.pv-impressao .pr-cabec { font-size: 13px; color: #555; margin-bottom: 14px; }
.pv-impressao .pr-doc h2 { font-size: 15px; margin: 18px 0 6px; }
.pv-impressao .pr-tab { width: 100%; border-collapse: collapse; }
.pv-impressao .pr-tab td, .pv-impressao .pr-tab th { border-bottom: 1px solid #ddd; padding: 6px; font-size: 13px; text-align: left; }
.pv-impressao .pr-num { text-align: right; white-space: nowrap; font-weight: 600; }
.pv-impressao .pr-data { white-space: nowrap; width: 96px; }
.pv-impressao .pr-total { font-weight: 800; }
@media print { .pr-no-print { display: none !important; } }

/* Previsão do tempo na tela inicial (canto de cima, à direita) — igual ao Pecuária */
.hero-tempo { position: absolute; top: 12px; right: 12px; z-index: 3; display: none; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 58%; }
.hero-tempo.on { display: flex; }
.hero-tempo-chip { display: flex; align-items: center; gap: 7px; background: rgba(0,0,0,.38); color: #fff; border-radius: 14px; padding: 6px 11px 6px 8px; cursor: pointer; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.18); font-family: inherit; }
.hero-tempo-emoji { font-size: 24px; line-height: 1; }
.hero-tempo-temp { font-size: 15px; font-weight: 800; line-height: 1.1; text-align: left; }
.hero-tempo-cidade { font-size: 11px; opacity: .9; line-height: 1.1; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.hero-tempo-prox { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.hero-tempo-dia { background: rgba(0,0,0,.32); color: #fff; border-radius: 10px; padding: 3px 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
