/* UBA24 v1.2 — mesma composição do quadro original, sem interferir no cabeçalho. */
.uba24-p7-header{--p7-yellow:#FFC107;box-sizing:border-box;width:100%;min-width:0;flex:1 1 0;display:grid;grid-template-columns:minmax(140px,36%) minmax(0,64%);align-items:center;gap:0;background:#080c14;color:#fff;border-bottom:3px solid var(--p7-yellow);border-radius:0;overflow:hidden;font-family:inherit;min-height:148px;padding:18px 12px!important}
.uba24-p7-header *{box-sizing:border-box}
.uba24-p7-now{min-width:0;padding:0 12px 0 0;overflow:hidden}
.uba24-p7-place{display:block;font-size:11px;letter-spacing:.025em;color:#fff;line-height:1.3}
.uba24-p7-nowrow{display:flex;align-items:center;justify-content:space-between;gap:3px}
.uba24-p7-nowrow strong{font-size:38px;font-weight:800;white-space:nowrap;line-height:1.14;letter-spacing:-.04em;color:#fff!important}
.uba24-p7-nowrow strong small{font-size:17px;vertical-align:super;letter-spacing:0}
.uba24-p7-icon{display:block;flex:0 0 auto;width:32px;height:32px;stroke:#fff}
.uba24-p7-description{font-size:12px;line-height:1.25;margin-top:4px;color:#fff;font-weight:500;max-width:100%;overflow-wrap:break-word}
.uba24-p7-note{display:block;font-size:10px;line-height:1.15;color:#cbd5e1;margin-top:4px;max-height:23px;overflow:hidden}
.uba24-p7-five{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));min-width:0;align-items:stretch;width:100%;height:80px}
.uba24-p7-day{min-width:0;display:flex;flex-direction:column;justify-content:space-between;align-items:center;text-align:center;border-left:1px solid rgba(255,255,255,.15);padding:0 1px;color:#fff}
.uba24-p7-day b{font-size:10px;font-weight:800;line-height:1.15;color:#fff}
.uba24-p7-day .uba24-p7-icon{width:23px;height:23px}
.uba24-p7-day strong{font-size:12px;font-weight:850;color:#fff!important;white-space:nowrap;line-height:1}
.uba24-p7-day small{font-size:11px;color:#b9c5d6;line-height:1}
section.uba24-v27-internal-header > .uba24-p7-header{width:50%!important;max-width:50%!important;flex:1 1 50%!important}
@media(max-width:1100px){.uba24-p7-header{padding:14px 8px!important;grid-template-columns:minmax(118px,33%) minmax(0,67%)}.uba24-p7-nowrow strong{font-size:31px}.uba24-p7-day .uba24-p7-icon{width:20px;height:20px}.uba24-p7-description{font-size:11px}}
@media(max-width:760px){section.uba24-v27-internal-header{flex-wrap:wrap!important}section.uba24-v27-internal-header > .uba24-p7-header{max-width:100%!important;width:100%!important;flex:1 1 100%!important}.uba24-p7-header{grid-template-columns:minmax(124px,35%) minmax(0,65%);min-height:128px}}

.uba24-p7-panel{clear:both;margin:22px 0!important;padding:20px!important;border-radius:12px;border:1px solid #2b3748!important;background:#101827!important;color:#f8fafc!important;max-width:100%}
.uba24-p7-panel header{background:#0A192F!important;border-bottom:3px solid #FFC107;padding:14px;border-radius:8px;margin-bottom:14px}
.uba24-p7-panel h2{font-size:clamp(22px,3vw,30px)!important;color:#fff!important;margin:0 0 5px!important}
.uba24-p7-panel h3{font-size:19px!important;color:#fff!important;margin:18px 0 10px!important}
.uba24-p7-panel header p{margin:0!important;color:#e2e8f0!important;font-size:14px}
.uba24-p7-panel .p7-observed{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:11px 12px;margin-bottom:14px;background:#1f2937;border-radius:8px;color:#fff}
.uba24-p7-panel .p7-observed b{color:#FFC107}
.uba24-p7-panel .p7-observed small{color:#cbd5e1}
.uba24-p7-panel .p7-obstext{font-weight:800}
.uba24-p7-panel .p7-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.uba24-p7-panel .p7-day{border:1px solid #384456;border-radius:9px;padding:10px 8px;background:#152236;color:#f8fafc;min-width:0}
.uba24-p7-panel .p7-day>b{display:block;font-size:12px;margin-bottom:6px;color:#FFC107;text-transform:capitalize}
.uba24-p7-panel .p7-day>strong{display:block;font-size:23px;line-height:1.1;color:#fff}
.uba24-p7-panel .p7-day>strong small{font-size:14px;color:#cbd5e1}
.uba24-p7-panel .p7-day>span{display:block;min-height:36px;font-size:12px;margin:7px 0;color:#e2e8f0}
.uba24-p7-panel .p7-day p{font-size:11px;display:flex;flex-direction:column;gap:4px;margin:10px 0!important;color:#fff}
.uba24-p7-panel .p7-day p b{font-size:10px;color:#cbd5e1}
.uba24-p7-panel .p7-day p span{font-size:13px;font-weight:800;color:#fff}
.uba24-p7-panel .p7-percent{display:inline-block;padding:4px 7px;border-radius:6px;color:#101827;font-size:12px;font-weight:900;white-space:nowrap}
.uba24-p7-panel .p7-hourly{margin-top:15px}
.uba24-p7-panel .p7-scroll{overflow-x:auto}
.uba24-p7-panel table{width:100%;min-width:650px;border-collapse:collapse!important;background:#111827!important;color:#fff!important}
.uba24-p7-panel th,.uba24-p7-panel td{border-bottom:1px solid #334155!important;text-align:left!important;padding:10px!important;font-size:13px;color:#fff!important;background:#111827!important}
.uba24-p7-panel th{background:#1e293b!important;color:#FFC107!important}
.uba24-p7-panel .p7-source,.uba24-p7-panel .p7-updated,.uba24-p7-panel .p7-offline{font-size:12px;line-height:1.5;color:#cbd5e1!important;margin:14px 0 0!important}
.uba24-p7-panel .p7-source a{color:#FFC107!important;text-decoration:underline}
.p7-chance-very-high{background:#de3053!important;color:#fff!important}.p7-chance-high{background:#fd7e14!important}.p7-chance-medium{background:#FFC107!important}.p7-chance-low{background:#3db9ba!important}.p7-chance-very-low{background:#20c997!important}
.p7-confidence-very-high{background:#20c997!important}.p7-confidence-high{background:#7bcf7e!important}.p7-confidence-medium{background:#FFC107!important}.p7-confidence-low{background:#fd7e14!important}.p7-confidence-very-low{background:#E63946!important;color:#fff!important}.p7-unknown{background:#475569!important;color:#fff!important}
@media(max-width:1200px){.uba24-p7-panel .p7-days{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:760px){.uba24-p7-header{grid-template-columns:1fr}.uba24-p7-header .p7-mini{grid-template-columns:repeat(5,minmax(0,1fr))}.uba24-p7-panel .p7-days{grid-template-columns:repeat(2,minmax(0,1fr))}.uba24-p7-panel{padding:12px!important}}


/* v1.3: correção de chuva medida no quadro ORIGINAL quando não há previsão licenciada. */
.uba24-p7-observation-overlay{position:absolute!important;z-index:2147483!important;left:13px!important;bottom:24px!important;width:calc(42% - 16px)!important;min-width:115px;max-width:210px;min-height:39px;padding:3px 2px!important;background:#080b13!important;color:#fff!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;overflow:hidden!important;pointer-events:none;font:inherit!important;text-align:left!important}
.uba24-p7-observation-overlay b{display:block!important;font-size:11px!important;font-weight:800!important;line-height:1.18!important;color:#fff!important;white-space:normal!important}
.uba24-p7-observation-overlay small{display:block!important;margin-top:3px!important;font-size:9.5px!important;color:#cbd5e1!important;line-height:1.15!important;white-space:normal!important}
.uba24-p7-measured-text{font-weight:700!important;color:#fff!important}
@media(max-width:760px){.uba24-p7-observation-overlay{bottom:14px!important;left:10px!important;min-width:115px;width:calc(42% - 12px)!important}.uba24-p7-observation-overlay b{font-size:10px!important}.uba24-p7-observation-overlay small{font-size:9px!important}}

/* v1.4 — CORES UBA24 sem alterar largura, grid, imagens ou textos externos. */
.uba24-p7-header{--p7-sun:#FFC107;--p7-cloud:#cbd5e1;--p7-rain:#59b8ff;--p7-storm:#E63946}
.uba24-p7-header .uba24-p7-place{color:#FFC107!important}
.uba24-p7-header .uba24-p7-nowrow strong small{color:#FFC107!important}
.uba24-p7-header .uba24-p7-day strong{color:#fff!important}
.uba24-p7-header .uba24-p7-day small{color:#84c6ff!important}
.uba24-p7-header .uba24-p7-day b{color:#FFC107!important}
.uba24-p7-header .uba24-p7-icon{stroke:#cbd5e1!important;overflow:visible}
.uba24-p7-header .uba24-p7-icon .p7-icon-sun{stroke:#FFC107!important}
.uba24-p7-header .uba24-p7-icon .p7-icon-moon{stroke:#fbd38d!important}
.uba24-p7-header .uba24-p7-icon .p7-icon-cloud{stroke:#cbd5e1!important}
.uba24-p7-header .uba24-p7-icon .p7-icon-rain{stroke:#59b8ff!important}
.uba24-p7-header .uba24-p7-icon .p7-icon-storm{stroke:#E63946!important}
.uba24-p7-header .uba24-p7-description{color:#d9f0ff!important}
.uba24-p7-panel .p7-day:has(.p7-percent.p7-chance-very-high){border-top:3px solid #E63946}
.uba24-p7-panel .p7-day:has(.p7-percent.p7-chance-high){border-top:3px solid #fd7e14}
.uba24-p7-panel .p7-day:has(.p7-percent.p7-chance-medium){border-top:3px solid #FFC107}
.uba24-p7-panel .p7-day:has(.p7-percent.p7-chance-low){border-top:3px solid #59b8ff}

/* Quadro ORIGINAL: o conteúdo da previsão do WeatherWidget.io fica em iframe;
   só colorimos o contêiner e o indicador de CHUVA AGORA fora dele. */
.uba24-v8-weather-card.uba24-p7-status-strong,
.uba24-v8-weather-wrap.uba24-p7-status-strong{border-bottom-color:#E63946!important}
.uba24-v8-weather-card.uba24-p7-status-moderate,
.uba24-v8-weather-wrap.uba24-p7-status-moderate{border-bottom-color:#fd9b34!important}
.uba24-v8-weather-card.uba24-p7-status-light,
.uba24-v8-weather-wrap.uba24-p7-status-light{border-bottom-color:#59b8ff!important}
.uba24-p7-observation-overlay{--p7-rain-status:#94a3b8;border-left:3px solid var(--p7-rain-status)!important;
  border-radius:5px!important;padding:5px 7px!important;
  background:linear-gradient(90deg,rgba(18,32,52,.98),rgba(8,11,19,.99))!important;
  box-shadow:0 1px 4px rgba(0,0,0,.16)!important}
.uba24-p7-observation-overlay.uba24-p7-status-strong{--p7-rain-status:#E63946}
.uba24-p7-observation-overlay.uba24-p7-status-moderate{--p7-rain-status:#fd9b34}
.uba24-p7-observation-overlay.uba24-p7-status-light{--p7-rain-status:#59b8ff}
.uba24-p7-observation-overlay.uba24-p7-status-clear{--p7-rain-status:#20c997}
.uba24-p7-observation-overlay b{color:var(--p7-rain-status)!important}
.uba24-p7-observation-overlay b:before{content:'';display:inline-block;width:7px;height:7px;
  background:var(--p7-rain-status);border-radius:50%;margin-right:5px;vertical-align:1px}
.uba24-p7-observation-overlay small{color:#d7e4f4!important}
.uba24-v8-weather-card .uba24-p7-measured-text,.uba24-v8-weather-wrap .uba24-p7-measured-text{font-weight:800!important}
.uba24-v8-weather-card.uba24-p7-status-strong .uba24-p7-measured-text,
.uba24-v8-weather-wrap.uba24-p7-status-strong .uba24-p7-measured-text{color:#ff6476!important}
.uba24-v8-weather-card.uba24-p7-status-moderate .uba24-p7-measured-text,
.uba24-v8-weather-wrap.uba24-p7-status-moderate .uba24-p7-measured-text{color:#ffb765!important}
.uba24-v8-weather-card.uba24-p7-status-light .uba24-p7-measured-text,
.uba24-v8-weather-wrap.uba24-p7-status-light .uba24-p7-measured-text{color:#70c8ff!important}
