:root {
  color-scheme: light;
  --green-950: #173b2a;
  --green-900: #1d4933;
  --green-800: #285d3e;
  --green-700: #34734a;
  --green-100: #eaf3eb;
  --green-50: #f4f8f3;
  --ink: #1d3327;
  --muted: #748278;
  --line: #e5ebe5;
  --surface: #fff;
  --canvas: #f5f7f4;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
button, select { font: inherit; }
button { cursor: pointer; }
.clima-shell { min-height: 100vh; }
.clima-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; width: 252px; max-height: 100vh; overflow-y: auto; padding: 22px 15px 16px; background: var(--green-950); color: #e7f1e8; }
.brand { display: flex; align-items: center; gap: 11px; margin: 0 6px 31px; color: inherit; text-decoration: none; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.brand span, .topbar-user { display: grid; gap: 4px; }
.brand strong { font-size: .99rem; letter-spacing: -.02em; }
.brand small { color: #a7c3ad; font-size: .75rem; }
.nav-caption { margin: 0 10px 9px; color: #8fac96; font-size: .65rem; font-weight: 750; letter-spacing: .12em; }
.nav-caption-spaced { margin-top: 25px; }
.clima-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 41px; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; color: #c8d9cb; background: transparent; text-align: left; font-size: .82rem; transition: background .16s ease, color .16s ease; }
.nav-item > i { width: 17px; color: #a7c3ad; text-align: center; }
.nav-item:hover, .nav-item.active { color: #fff; background: #2b6042; }
.nav-item.active { box-shadow: inset 3px 0 #b8dd78; }
.nav-item.active > i { color: #d3ebad; }
.nav-count { display: grid; place-items: center; width: 19px; height: 19px; margin-left: auto; border-radius: 50%; color: #562f18; background: #f1c48b; font-size: .68rem; font-weight: 800; }
.sidebar-bottom { margin-top: auto; }
.demo-note { display: flex; gap: 9px; padding: 12px 10px; border: 1px solid #355a41; border-radius: 8px; color: #b6cfba; font-size: .72rem; line-height: 1.55; }
.demo-note > i { margin-top: 2px; color: #d4eaa7; }
.demo-note strong { color: #fff; }
.sidebar-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.sidebar-action { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; border: 1px solid #315841; border-radius: 8px; padding: 7px 8px; color: #d9e9da; background: #1b432f; font: inherit; font-size: .7rem; font-weight: 700; text-align: left; text-decoration: none; transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease; }
.sidebar-action > span, .sidebar-action > i { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; background: linear-gradient(145deg, #367451, #214a34); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.14), 0 2px 5px rgba(0,0,0,.18); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.agricola-action { grid-column: 1 / -1; }
.module-switch-action > span { color: #d7f48b; }
.sidebar-action:hover { transform: translateX(2px); border-color: #477450; background: #2c6245; color: #fff; }
.sidebar-action:hover > span, .sidebar-action:hover > i { transform: translateY(-1px); filter: brightness(1.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.23); }
.sidebar-action:focus-visible { outline: 2px solid #bddc68; outline-offset: 2px; }
.logout-action { color: #f2b0a5; }
.logout-action > i { color: #ffd2ca; background: linear-gradient(145deg, #9b5147, #69372f); }
.logout-action:hover { border-color: #a6534b; background: #59372f; color: #fff; }
.clima-main { min-height: 100vh; margin-left: 252px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; height: 60px; padding: 0 34px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.breadcrumb { display: flex; align-items: center; gap: 11px; color: #829087; font-size: .77rem; }
.breadcrumb i { font-size: .58rem; }
.breadcrumb strong { color: var(--ink); font-weight: 650; }
.topbar-user { display: flex; align-items: center; gap: 9px; color: #4e6255; font-size: .78rem; }
.user-avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--green-800); background: var(--green-100); }
.mobile-menu { display: none; border: 0; color: var(--green-900); background: transparent; font-size: 1rem; }
.content { width: min(1440px, 100%); margin: 0 auto; padding: 22px 34px 18px; }
.demo-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 11px 14px; border: 1px solid #d5e5c4; border-radius: 7px; color: #506744; background: #f4f8eb; font-size: .75rem; }
.demo-banner > i { color: #68894b; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.eyebrow { margin: 0 0 6px; color: #819087; font-size: .63rem; font-weight: 800; letter-spacing: .11em; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { margin-bottom: 5px; color: var(--green-950); font-size: 1.55rem; letter-spacing: -.035em; }
.page-heading > div:first-child > p:last-child { margin-bottom: 0; color: var(--muted); font-size: .79rem; }
.filters { display: flex; gap: 9px; }
.filters label { display: grid; gap: 5px; color: #65756a; font-size: .66rem; font-weight: 650; }
.filters select { min-width: 157px; height: 36px; padding: 0 29px 0 10px; border: 1px solid #dce5dc; border-radius: 6px; color: var(--ink); background: #fff; font-size: .73rem; }
.screen[hidden] { display: none; }
.screen.active { animation: screen-enter .18s ease-out; }
@keyframes screen-enter { from { opacity: .55; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.metric-card, .panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 2px 6px rgba(28,55,36,.025); }
.metric-card { min-height: 135px; padding: 15px 16px 13px; border-top: 3px solid #6b9b66; }
.temp-metric { border-top-color: #e7a24c; }
.humidity-metric { border-top-color: #61a1b5; }
.forecast-metric { border-top-color: #8299ce; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #6f7e73; font-size: .72rem; }
.metric-icon { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 7px; color: #4d8250; background: #eff6ed; font-size: .83rem; }
.temp-metric .metric-icon { color: #bc7830; background: #fff5e8; }
.humidity-metric .metric-icon { color: #44849c; background: #edf7f9; }
.forecast-metric .metric-icon { color: #6075a9; background: #f0f2fa; }
.metric-value { display: flex; align-items: baseline; gap: 5px; margin-top: 4px; color: var(--green-950); }
.metric-value strong { font-size: 1.62rem; font-weight: 730; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-value > span { color: #67776c; font-size: .78rem; }
.metric-card > p { margin: 4px 0 0; color: #879188; font-size: .65rem; }
.metric-card > p > i { margin-right: 3px; color: #5e9a61; }
.metric-separator { padding: 0 3px; color: #c4cdc5; }
.dashboard-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; }
.panel { padding: 17px 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.panel-heading .eyebrow { margin-bottom: 4px; }
.panel-heading h2, .section-intro h2 { margin: 0; color: var(--green-950); font-size: .98rem; letter-spacing: -.015em; }
.period-pill { flex: 0 0 auto; padding: 5px 8px; border-radius: 20px; color: #748177; background: #f4f7f3; font-size: .62rem; }
#historySource { max-width: 48%; white-space: normal; text-align: right; line-height: 1.35; }
.chart { display: flex; height: 175px; padding-top: 6px; }
.chart-y-labels { display: flex; flex-direction: column; justify-content: space-between; padding: 2px 8px 18px 0; color: #91a096; font-size: .58rem; }
.bar-chart { position: relative; display: flex; flex: 1; align-items: flex-end; justify-content: space-around; gap: 8px; padding: 0 3px; border-bottom: 1px solid #e8eee8; background: repeating-linear-gradient(to top, transparent 0, transparent 33px, #edf1ed 34px, transparent 35px); }
.bar-column { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 7px; }
.bar { position: relative; display: flex; align-items: flex-start; justify-content: center; width: min(29px, 72%); height: var(--bar-height); border-radius: 4px 4px 0 0; background: #a6caa0; }
.bar span { position: absolute; top: -17px; color: #718071; font-size: .58rem; }
.bar-column.current .bar { background: #4f8956; }
.bar-column.current .bar span { color: #356a3b; font-weight: 750; }
.bar-column > small { position: absolute; bottom: -19px; color: #7d8c80; font-size: .62rem; }
.chart-footnote { margin: 24px 0 0; color: #8b968d; font-size: .64rem; }
.chart-footnote i { margin-right: 4px; }
.text-button { padding: 5px 0; border: 0; color: #4d7f51; background: transparent; font-size: .69rem; font-weight: 650; }
.text-button i { margin-left: 3px; font-size: .6rem; }
.alert-list { display: grid; }
.alert-row { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 0; border-top: 1px solid #edf0ed; }
.alert-row:first-child { border-top: 0; }
.alert-icon { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: #b47b34; background: #fff6e8; font-size: .82rem; }
.alert-info .alert-icon { color: #4c8098; background: #edf7fa; }
.alert-danger .alert-icon { color: #b45c4e; background: #fff0ed; }
.alert-row > div { display: grid; gap: 4px; min-width: 0; }
.alert-row strong { overflow: hidden; color: #304337; font-size: .69rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.alert-row small { color: #8b968d; font-size: .61rem; }
.alert-chevron { margin-left: auto; color: #bbc4bc; font-size: .61rem; }
.farm-panel, .forecast-summary { grid-column: span 1; }
.apac-observation-panel { margin-bottom: 14px; }
.apac-source-link { flex: 0 0 auto; text-decoration: none; }
.apac-source-link i { margin-left: 4px; font-size: .6rem; }
.apac-station-info { display: grid; gap: 4px; margin-bottom: 13px; }
.apac-station-info strong { color: #304337; font-size: .76rem; font-weight: 700; }
.apac-station-info small, .apac-observation-note { color: #879188; font-size: .64rem; }
.apac-observation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.apac-observation-grid > div { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid #edf1ed; border-radius: 6px; background: #fafcf9; }
.apac-observation-grid > div > span { color: #77857a; font-size: .64rem; }
.apac-observation-grid strong { color: var(--green-950); font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.apac-observation-grid strong span { font-size: inherit; }
.apac-observation-note { margin: 11px 0 0; line-height: 1.5; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 8px 9px; border-bottom: 1px solid #e9eee9; color: #819086; font-size: .62rem; font-weight: 700; }
td { padding: 11px 9px; border-bottom: 1px solid #f0f3f0; color: #526357; font-size: .68rem; }
tbody tr:last-child td { border-bottom: 0; }
td strong { color: var(--green-900); }
.farm-dot { display: inline-block; width: 7px; height: 7px; margin: 0 7px 1px 0; border-radius: 50%; background: #6e9a5d; }
.farm-dot-blue { background: #6393a4; }
.farm-dot-orange { background: #d49b50; }
.status { display: inline-flex; align-items: center; padding: 4px 7px; border-radius: 20px; font-size: .58rem; font-weight: 700; }
.status-good { color: #46754a; background: #edf6ec; }
.status-attention { color: #9c6a24; background: #fff5e6; }
.status-danger { color: #a34f43; background: #fff0ed; }
.status-info { color: #46778b; background: #edf7fa; }
.status-neutral { color: #68776c; background: #f0f3f0; }
.forecast-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.forecast-strip > div { display: grid; justify-items: center; gap: 7px; padding: 5px 3px; border-radius: 6px; }
.forecast-strip > div:hover { background: #f5f8f4; }
.forecast-strip small { color: #7c8a80; font-size: .61rem; }
.forecast-strip i { color: #8c9d88; font-size: .92rem; }
.forecast-strip strong { color: #334a39; font-size: .78rem; }
.forecast-strip > div > span { color: #7395a1; font-size: .61rem; }
.section-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 4px 0 18px; }
.section-intro > div > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: .75rem; }
.section-intro h2 { font-size: 1.12rem; }
.secondary-button, .primary-button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid #dce5dc; border-radius: 6px; color: #4b6f50; background: #fff; font-size: .71rem; font-weight: 650; white-space: nowrap; }
.secondary-button:hover { border-color: #9bb89a; background: #f7faf6; }
.primary-button { border-color: var(--green-800); color: #fff; background: var(--green-800); }
.primary-button:hover { background: var(--green-900); }
.compact-grid { margin-top: 14px; }
.full-panel { margin-bottom: 16px; }
.source-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 20px; color: #647d55; background: #edf4e7; font-size: .63rem; font-weight: 750; letter-spacing: .025em; white-space: nowrap; }
.forecast-source { color: #6173a2; background: #eff1fa; }
.forecast-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.forecast-day { display: grid; justify-items: center; gap: 8px; min-height: 190px; padding: 15px 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-align: center; }
.forecast-day > small { color: #465a4b; font-size: .72rem; font-weight: 700; }
.forecast-date { color: #96a097; font-size: .62rem; }
.forecast-day > i { margin: 5px 0; color: #899a8b; font-size: 1.35rem; }
.forecast-day.rain-day > i { color: #628fa1; }
.forecast-day > strong { color: var(--green-950); font-size: 1.02rem; }
.forecast-day > strong small { color: #8b968d; font-size: .67rem; font-weight: 500; }
.rain-chance { color: #638b9a; font-size: .69rem; }
.forecast-day p { margin: 0; color: #7d8980; font-size: .62rem; }
.disclaimer { margin: 14px 0; color: #7b8a7c; font-size: .7rem; }
.disclaimer i { margin-right: 5px; color: #68894b; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(270px, .8fr); gap: 14px; }
.map-panel { padding: 10px; }
.map-layer-controls { display: flex; gap: 5px; margin: 0 0 9px; }
.map-layer-controls[hidden] { display: none; }
.map-layer-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid #dce5dc; border-radius: 6px; color: #536453; background: #fff; font-size: .7rem; }
.map-layer-button.active { border-color: #34734a; color: #fff; background: #34734a; }
.sentinel-controls { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; margin: 0 0 9px; }
.sentinel-controls[hidden] { display: none; }
.sentinel-controls label { display: grid; gap: 4px; color: #65756a; font-size: .64rem; font-weight: 650; }
.sentinel-controls select { height: 32px; padding: 0 8px; border: 1px solid #dce5dc; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; }
.map-illustration { display: flex; min-height: 410px; flex-direction: column; overflow: hidden; border-radius: 6px; background: #f7f9f6; }
.farm-map-canvas { flex: 1; width: 100%; min-height: 360px; background: #edf2e8; }
.map-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; color: #647568; background: #fff; font-size: .68rem; }
.map-caption i { margin-right: 5px; color: #47804f; }
.map-caption a { flex: 0 0 auto; color: var(--green-800); }
.map-caption #sentinelStatus { margin-left: auto; color: #788678; }
.map-caption #sentinelStatus[data-state="error"] { color: #a34137; }
.sentinel-details { padding: 8px; border-radius: 6px; color: #647568; background: #f3f7f1; font-size: .7rem; }
.map-location-card { display: grid; justify-items: center; gap: 10px; padding: 26px; color: #5e7062; text-align: center; }
.map-location-card > i { color: #47804f; font-size: 1.7rem; }
.map-location-card > strong { color: var(--green-950); font-size: .9rem; }
.map-location-card > span { font-size: .78rem; }
.map-location-card > a { color: var(--green-800); font-size: .77rem; }
.clima-message { margin: 0 0 16px; padding: 10px 12px; border: 1px solid #d5e5c4; border-radius: 7px; color: #506744; background: #f4f8eb; font-size: .76rem; }
.clima-message[hidden] { display: none; }
.clima-message[data-tipo="erro"] { border-color: #efc9c4; color: #8b3c34; background: #fff4f2; }
.clima-message[data-tipo="info"] { border-color: #d6e5d7; color: #436248; background: #f2f8f2; }
.location-form { display: grid; gap: 15px; margin-bottom: 14px; }
.location-form h3 { margin: 0; color: var(--green-950); font-size: .95rem; }
.location-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.location-fields label { display: grid; gap: 6px; color: #65756a; font-size: .72rem; font-weight: 650; }
.location-fields select, .location-fields input { min-width: 0; height: 37px; padding: 0 10px; border: 1px solid #dce5dc; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; }
.location-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.map-grid { position: absolute; inset: 0; opacity: .37; background-image: linear-gradient(30deg, transparent 48%, #d2dec9 49%, #d2dec9 50%, transparent 51%), linear-gradient(120deg, transparent 48%, #d2dec9 49%, #d2dec9 50%, transparent 51%); background-size: 76px 92px; }
.map-region-label { position: absolute; top: 22px; left: 22px; color: #98a58f; font-size: .64rem; font-weight: 750; letter-spacing: .12em; }
.map-scale { position: absolute; right: 12px; bottom: 11px; padding: 6px 8px; border-radius: 5px; color: #73806f; background: rgba(255,255,255,.82); font-size: .59rem; }
.map-marker { position: absolute; display: grid; justify-items: center; gap: 5px; }
.marker-one { top: 33%; left: 25%; }
.marker-two { top: 54%; left: 57%; }
.marker-three { top: 25%; left: 72%; }
.marker-pulse { position: relative; width: 16px; height: 16px; border: 4px solid #fff; border-radius: 50%; background: #4e8554; box-shadow: 0 1px 7px #315f3d66; }
.marker-two .marker-pulse { background: #5c8996; }
.marker-three .marker-pulse { background: #c08a44; }
.marker-label { display: grid; gap: 2px; padding: 6px 8px; border: 1px solid #e2e8df; border-radius: 5px; color: #536453; background: rgba(255,255,255,.92); box-shadow: 0 2px 7px #193b2a10; font-size: .62rem; white-space: nowrap; }
.marker-label strong { color: var(--green-900); font-size: .66rem; }
.map-legend { align-self: start; }
.apac-state-map-panel { padding: 11px; }
.apac-map-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 2px 2px 11px; }
.apac-map-controls label { color: #65756a; font-size: .72rem; font-weight: 650; }
.apac-map-controls select { min-width: 220px; height: 36px; padding: 0 10px; border: 1px solid #dce5dc; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; }
.apac-map-controls > span { margin-left: auto; color: #68776c; font-size: .68rem; }
.apac-state-map { width: 100%; height: min(68vh, 680px); min-height: 420px; overflow: hidden; border-radius: 6px; background: #edf2e8; }
.apac-map-note { margin: 10px 3px 1px; color: #7d8980; font-size: .65rem; line-height: 1.5; }
.apac-map-popup { min-width: 190px; color: #526357; font: inherit; }
.apac-map-popup strong { display: block; margin-bottom: 4px; color: var(--green-950); font-size: .78rem; }
.apac-map-popup small { display: block; color: #7c8980; font-size: .65rem; }
.apac-map-popup p { margin: 8px 0 0; font-size: .68rem; line-height: 1.6; }
.apac-map-source { flex: 0 0 auto; text-decoration: none; }
.map-farm-row { display: flex; align-items: center; gap: 8px; padding: 14px 0; border-top: 1px solid #edf0ed; }
.map-farm-row > div { display: grid; flex: 1; gap: 4px; }
.map-farm-row > div strong { color: #435749; font-size: .69rem; }
.map-farm-row small { color: #879188; font-size: .58rem; }
.map-farm-row > b { color: var(--green-900); font-size: .72rem; }
.notice-card { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 15px; padding: 12px 14px; border: 1px solid #f1e1bd; border-radius: 7px; color: #806639; background: #fffaf0; }
.notice-card > i { margin-top: 2px; color: #b18745; }
.notice-card p { margin: 0; font-size: .7rem; line-height: 1.55; }
.operation-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.operation-card { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; }
.operation-icon { display: grid; grid-row: span 2; place-items: center; width: 36px; height: 36px; border-radius: 8px; color: #997139; background: #fff5e6; }
.operation-icon.rain { color: #4d8095; background: #edf7fa; }
.operation-icon.heat { color: #b35d4c; background: #fff0ed; }
.operation-card .eyebrow { margin-bottom: 3px; }
.operation-card h3 { margin: 0; color: #31483a; font-size: .82rem; }
.operation-card > strong, .operation-card > p, .operation-card > .status { grid-column: 1 / -1; }
.operation-card > strong { color: var(--green-950); font-size: 1.1rem; }
.operation-card > p { min-height: 50px; margin: -4px 0 1px; color: #7d8980; font-size: .67rem; line-height: 1.5; }
.operation-window-panel { margin-top: 14px; }
.operation-window-guidance { max-width: 1000px; margin: -3px 0 14px; color: #748278; font-size: .68rem; line-height: 1.55; }
.operation-window-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.operation-day { min-width: 0; padding: 12px; border: 1px solid var(--line); border-left: 3px solid #6b9b66; border-radius: 7px; background: #fff; }
.operation-day-attention { border-left-color: #d29a4d; }
.operation-day-incomplete { border-left-color: #9aa39c; }
.operation-day-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.operation-day-heading strong { color: var(--green-950); font-size: .78rem; text-transform: capitalize; }
.operation-day-heading > span { color: #89958b; font-size: .64rem; }
.operation-day-status { display: inline-block; margin: 7px 0 8px; color: #4d8250; font-size: .65rem; font-weight: 750; }
.operation-day-attention .operation-day-status { color: #986a28; }
.operation-day-incomplete .operation-day-status { color: #707b72; }
.operation-day-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; }
.operation-day-metrics > span { display: flex; justify-content: space-between; gap: 6px; color: #7d8980; font-size: .62rem; }
.operation-day-metrics strong { color: #46594b; font-size: .62rem; font-weight: 700; text-align: right; }
.operation-day-notes { margin-top: 9px; color: #69776c; font-size: .62rem; line-height: 1.5; }
.operation-day-notes > p { margin: 0; }
.operation-day-notes ul { display: grid; gap: 2px; margin: 0; padding-left: 16px; }
.operation-day-missing { display: block; margin-top: 5px; color: #858e87; }
.hourly-forecast-panel { margin-top: 14px; }
.hourly-forecast-meta { margin: -3px 0 12px; color: #748278; font-size: .67rem; line-height: 1.5; }
.hourly-forecast-guidance { margin: -5px 0 12px; color: #89958b; font-size: .62rem; line-height: 1.5; }
.hourly-forecast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 560px; overflow-y: auto; padding: 1px 3px 1px 1px; }
.hourly-forecast-item { min-width: 0; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.hourly-forecast-attention { border-color: #e8d1ad; background: #fffaf2; }
.hourly-forecast-time { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; padding-bottom: 6px; border-bottom: 1px solid #edf0ed; }
.hourly-forecast-time strong { color: var(--green-950); font-size: .76rem; }
.hourly-forecast-time span { color: #89958b; font-size: .58rem; text-align: right; text-transform: capitalize; }
.hourly-forecast-values { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; padding-top: 7px; }
.hourly-forecast-values > span { display: grid; gap: 2px; color: #89958b; font-size: .56rem; }
.hourly-forecast-values strong { color: #46594b; font-size: .61rem; font-weight: 700; }
.hourly-forecast-missing { display: block; margin-top: 7px; color: #986a28; font-size: .55rem; line-height: 1.4; }
.report-hint { display: flex; gap: 12px; margin-top: 14px; padding: 14px; border: 1px solid #dfe9dc; border-radius: 8px; color: #63805c; background: #f5f9f2; }
.report-hint > i { margin-top: 2px; }
.report-hint strong { color: #415e40; font-size: .73rem; }
.report-hint p { margin: 4px 0 0; color: #788678; font-size: .68rem; line-height: 1.5; }
.rainfall-comparison-panel { margin-bottom: 16px; }
.rainfall-comparison-guidance { margin: -4px 0 8px; color: #748278; font-size: .68rem; line-height: 1.5; }
.rainfall-comparison-status { margin-bottom: 12px; color: #4b6f50; font-size: .72rem; font-weight: 700; line-height: 1.5; }
.rainfall-comparison-chart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.rainfall-comparison-period { display: grid; justify-items: center; gap: 5px; min-width: 0; text-align: center; }
.comparison-bar-area { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 150px; border-bottom: 1px solid #e8eee8; background: repeating-linear-gradient(to top, transparent 0, transparent 36px, #edf1ed 37px, transparent 38px); }
.comparison-bar { position: relative; display: flex; align-items: flex-start; justify-content: center; width: min(58px, 70%); height: var(--comparison-height); min-height: 0; border-radius: 5px 5px 0 0; background: #6b9b66; }
.comparison-previous .comparison-bar { background: #91a6b0; }
.comparison-incomplete .comparison-bar { opacity: .42; }
.comparison-bar > span { position: absolute; top: -19px; color: #46594b; font-size: .63rem; font-weight: 750; white-space: nowrap; }
.rainfall-comparison-period > strong { color: #3e5544; font-size: .68rem; }
.rainfall-comparison-period > small { color: #818d83; font-size: .59rem; line-height: 1.4; }
.rainfall-comparison-period .comparison-coverage { color: #647568; }
.rainfall-comparison-period .comparison-warning { color: #986a28; }
.comparison-average { grid-column: 1 / -1; margin: 4px 0 0; color: #748278; font-size: .68rem; text-align: right; }
.comparison-average strong { color: var(--green-900); }
.report-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.report-card { min-height: 143px; padding: 16px; }
.report-card > i { color: #62905e; font-size: 1rem; }
.report-card h3 { margin: 12px 0 5px; color: #354c3c; font-size: .76rem; }
.report-card p { min-height: 32px; margin: 0 0 10px; color: #7c8980; font-size: .65rem; line-height: 1.45; }
.report-card > span { color: #78906d; font-size: .6rem; }
.alert-cards { display: grid; gap: 10px; }
.alert-card { display: flex; align-items: flex-start; gap: 13px; padding: 15px; border-left: 3px solid #d5a252; }
.alert-card.alert-info { border-left-color: #6d9db0; }
.alert-card.alert-danger { border-left-color: #cb7564; }
.alert-card > div { display: grid; justify-items: start; gap: 7px; }
.alert-card h3 { margin: 2px 0 0; color: #354b3b; font-size: .79rem; }
.alert-card p, .alert-card small { margin: 0; color: #7e8b81; font-size: .66rem; }
.alert-card small { color: #9aa39c; }
.alert-card ul { display: grid; gap: 3px; margin: 0; padding-left: 17px; color: #647568; font-size: .68rem; line-height: 1.45; }
.alert-config-form { display: grid; gap: 12px; margin-bottom: 14px; }
.alert-config-form .panel-heading { margin-bottom: 0; }
.alert-config-form .panel-heading h2 { margin: 0; color: var(--green-950); font-size: .95rem; }
.alert-config-guidance { margin: 0; color: #748278; font-size: .68rem; line-height: 1.5; }
.alert-config-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.alert-config-grid label { display: grid; gap: 5px; color: #65756a; font-size: .66rem; font-weight: 650; }
.alert-config-grid input { width: 100%; min-width: 0; height: 36px; padding: 0 9px; border: 1px solid #dce5dc; border-radius: 6px; color: var(--ink); background: #fff; font: inherit; }
.alert-config-grid input:disabled { color: #9aa39c; background: #f4f6f4; }
.alert-config-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.alert-config-actions > span { color: #4b6f50; font-size: .68rem; }
.alert-config-actions > span[data-tipo="erro"] { color: #a34137; }
.integration-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.integration-card { display: flex; align-items: center; gap: 12px; }
.integration-card > div { flex: 1; }
.integration-icon { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 8px; color: #6079a6; background: #f0f3fa; }
.sensor-icon { color: #55816b; background: #edf5ef; }
.integration-card h3 { margin: 0 0 5px; color: #394e3e; font-size: .75rem; }
.integration-card p { margin: 0; color: #7d8980; font-size: .64rem; line-height: 1.45; }
.table-icon { margin-right: 6px; color: #648b68; }
.page-footer { padding: 20px 2px 5px; color: #96a097; font-size: .63rem; }
.page-footer span { padding: 0 4px; color: #c4cbc5; }

@media (max-width: 1180px) {
  .content { padding-right: 24px; padding-left: 24px; }
  .topbar { padding-right: 24px; padding-left: 24px; }
  .metric-grid { gap: 9px; }
  .metric-card { padding-right: 12px; padding-left: 12px; }
  .forecast-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .clima-sidebar { width: 216px; padding-right: 11px; padding-left: 11px; }
  .clima-main { margin-left: 216px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map-layout { grid-template-columns: 1fr; }
  .apac-state-map { height: 55vh; min-height: 340px; }
  .map-illustration { min-height: 330px; }
  .farm-map-canvas { min-height: 280px; }
  .location-fields { grid-template-columns: 1fr 1fr; }
  .location-fields label:first-child { grid-column: span 2; }
  .operation-grid { grid-template-columns: 1fr; }
  .alert-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operation-window-grid { grid-template-columns: 1fr; }
  .hourly-forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rainfall-comparison-chart { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .comparison-average { text-align: left; }
}
@media (max-width: 680px) {
  .clima-sidebar { position: fixed; top: 60px; bottom: auto; display: none; width: min(290px, 88vw); max-height: calc(100dvh - 60px); overflow-y: auto; box-shadow: 0 12px 30px #102e1e30; }
  .clima-sidebar.open { display: flex; }
  .clima-main { margin-left: 0; }
  .topbar { justify-content: flex-start; gap: 12px; height: 56px; padding: 0 15px; }
  .mobile-menu { display: inline-grid; place-items: center; width: 30px; height: 30px; }
  .breadcrumb { gap: 7px; font-size: .72rem; }
  .topbar-user { margin-left: auto; font-size: .7rem; }
  .user-avatar { width: 27px; height: 27px; }
  .content { padding: 15px 14px; }
  .demo-banner { align-items: flex-start; margin-bottom: 18px; font-size: .68rem; line-height: 1.5; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .page-heading h1 { font-size: 1.35rem; }
  .filters { width: 100%; }
  .filters label { flex: 1; min-width: 0; }
  .filters select { width: 100%; min-width: 0; }
  .metric-grid { gap: 8px; }
  .apac-observation-grid { gap: 6px; }
  .apac-observation-grid > div { padding: 9px 7px; }
  .apac-observation-grid > div > span { font-size: .58rem; }
  .apac-observation-grid strong { font-size: .93rem; }
  .metric-card { min-height: 123px; padding: 12px 10px; }
  .metric-top { align-items: flex-start; font-size: .64rem; }
  .metric-icon { flex: 0 0 27px; width: 27px; height: 27px; }
  .metric-value strong { font-size: 1.42rem; }
  .metric-card > p { font-size: .58rem; line-height: 1.4; }
  .panel { padding: 14px 12px; }
  .panel-heading h2 { font-size: .9rem; }
  .section-intro { align-items: flex-start; flex-direction: column; }
  .apac-map-controls { align-items: stretch; }
  .apac-map-controls label { width: 100%; }
  .apac-map-controls select { width: 100%; }
  .apac-map-controls > span { width: 100%; margin-left: 0; }
  .apac-state-map { height: 58vh; min-height: 320px; }
  .section-intro h2 { font-size: 1.02rem; }
  .forecast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forecast-day:last-child { grid-column: span 2; }
  .report-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .report-card { padding: 12px; }
  .report-card p { font-size: .62rem; }
  .integration-grid { grid-template-columns: 1fr; }
  .alert-config-grid { grid-template-columns: 1fr; }
  .operation-day-metrics > span { flex-direction: column; gap: 2px; }
  .operation-day-metrics strong { text-align: left; }
  .hourly-forecast-grid { grid-template-columns: 1fr; }
  .comparison-bar-area { height: 120px; }
  .integration-card { align-items: flex-start; flex-wrap: wrap; }
  .integration-card > div { min-width: calc(100% - 60px); }
  .forecast-summary .panel-heading, .farm-panel .panel-heading { align-items: flex-start; }
  .forecast-strip { gap: 0; }
  .forecast-strip > div { gap: 6px; }
}
@media (max-width: 390px) {
  .topbar-user > span:last-child { display: none; }
  .metric-top { gap: 3px; font-size: .6rem; }
  .metric-icon { width: 24px; height: 24px; flex-basis: 24px; }
  .map-illustration { min-height: 290px; }
  .farm-map-canvas { min-height: 240px; }
  .map-caption { align-items: flex-start; flex-direction: column; gap: 6px; }
  .map-caption #sentinelStatus { margin-left: 0; }
  .location-fields { grid-template-columns: 1fr; }
  .location-fields label:first-child { grid-column: auto; }
  .marker-label { padding: 5px 6px; font-size: .56rem; }
  .marker-label strong { font-size: .59rem; }
}
