:root {
  --bg: #0c0e10;
  --surface: #14171a;
  --surface-soft: #191d21;
  --line: #292e33;
  --line-soft: #22272b;
  --text: #f4f5f6;
  --muted: #91989f;
  --muted-light: #bac0c5;
  --orange: #e5e7eb;
  --orange-soft: rgba(229, 231, 235, .09);
  --green: #51c878;
  --red: #f16464;
  --blue: #2e9bff;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .24);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; overflow-x: hidden; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 80% -10%, rgba(255,255,255,.045), transparent 30%), var(--bg); color: var(--text); }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
.app-shell { min-height: 100vh; }
.content-shell { min-width: 0; }
.sidebar { height: 100vh; padding: 18px 14px; display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); background: linear-gradient(180deg, #101316, #0d0f11); position: sticky; top: 0; z-index: 30; }
.sidebar-brand { min-height: 48px; padding: 0 6px 17px; border-bottom: 1px solid var(--line-soft); }
.sidebar-close { display: none; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted-light); background: var(--surface); font-size: 19px; line-height: 1; position: absolute; top: 20px; right: 12px; }
.sidebar-nav { display: flex; flex: 1; flex-direction: column; gap: 3px; overflow-y: auto; padding: 16px 2px; }
.nav-section { margin: 16px 10px 6px; color: var(--orange); font-size: 9px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.nav-section:first-child { margin-top: 0; }
.nav-item { min-height: 39px; padding: 0 11px; display: flex; gap: 11px; align-items: center; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600; transition: .18s ease; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,.035); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.035)); box-shadow: inset 3px 0 var(--orange); }
.nav-icon { width: 18px; color: var(--muted-light); font-size: 16px; line-height: 1; text-align: center; }
.nav-item.active .nav-icon { color: var(--orange); }
.sidebar-footer { padding: 14px 10px 4px; display: grid; grid-template-columns: 8px 1fr; gap: 2px 8px; align-items: center; border-top: 1px solid var(--line-soft); color: var(--muted-light); font-size: 10px; }
.sidebar-footer small { grid-column: 2; color: var(--muted); font-size: 9px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(81,200,120,.09); }
.topbar { height: 56px; padding: 0 clamp(16px, 2.4vw, 38px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line-soft); background: rgba(12,14,16,.86); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.topbar-title { display: flex; gap: 12px; align-items: center; }
.topbar-title strong, .topbar-title small { display: block; }.topbar-title strong { font-size: 14px; }.topbar-title small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.menu-button { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: var(--surface); }
.brand { display: inline-flex; gap: 13px; align-items: center; color: inherit; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: .01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.brand-mark { width: 37px; height: 37px; display: flex; gap: 3px; align-items: flex-end; justify-content: center; padding: 8px; border-radius: 11px; background: var(--orange); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.brand-mark i { width: 4px; border-radius: 2px; background: #161616; transform: skew(-12deg); }
.brand-mark i:nth-child(1) { height: 11px; }.brand-mark i:nth-child(2) { height: 17px; }.brand-mark i:nth-child(3) { height: 22px; }
.topbar-actions { display: flex; gap: 12px; align-items: center; }
.source-badge { display: flex; gap: 8px; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted-light); font-size: 12px; background: var(--surface); }
.refresh-button { min-height: 38px; padding: 0 15px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted-light); background: var(--surface); font-size: 11px; font-weight: 700; transition: .2s ease; }
.refresh-button:hover { color: var(--text); border-color: rgba(255,255,255,.28); transform: translateY(-1px); }
main { width: calc(100% - clamp(20px, 3vw, 42px)); max-width: 1800px; margin: 0 auto; padding: 22px 0 16px; }
.hero { display: flex; gap: 32px; align-items: flex-end; justify-content: space-between; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--orange); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.eyebrow[hidden] { display: none; }
.hero h1 { margin: 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -.035em; }
.hero p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.filters { display: flex; gap: 9px; align-items: flex-end; }
.filters label { display: grid; gap: 7px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filters select, .filters input { height: 43px; min-width: 145px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--text); background: var(--surface); transition: border-color .2s; }
.filters select { min-width: 200px; }
.filters select:focus, .filters input:focus { border-color: var(--orange); }
.kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.kpi-card { min-height: 88px; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: 12px; background: linear-gradient(145deg, rgba(255,255,255,.025), transparent 60%), var(--surface); box-shadow: var(--shadow); }
.kpi-card header { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10px; }
.kpi-card strong { display: block; margin-top: 10px; font-size: clamp(20px, 1.65vw, 26px); letter-spacing: -.035em; }
.kpi-card footer { margin-top: 8px; color: var(--muted); font-size: 11px; }
.workspace { margin-top: 16px; }
.operation-tabs { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 14px; padding: 0 0 8px; scrollbar-width: none; }
.operation-tabs::-webkit-scrollbar { display: none; }
.tab-button { flex: 0 0 auto; padding: 10px 15px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted-light); background: var(--surface); font-size: 12px; font-weight: 650; transition: .2s ease; }
.tab-button:hover { border-color: #41484e; color: var(--text); }
.tab-button.active { color: #151515; border-color: var(--orange); background: var(--orange); box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.panel { min-height: 240px; border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.panel-heading { min-height: 66px; padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-soft); }
.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.updated-at { color: var(--muted); font-size: 11px; }
.summary-layout { display: grid; grid-template-columns: 1.55fr .8fr; gap: 0; }
.farm-rows { display: grid; gap: 18px; padding: 14px; background: rgba(0,0,0,.08); }
.farm-dashboard-group { min-width: 0; display: grid; gap: 10px; }
.farm-dashboard-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(360px, .95fr); border: 1px solid var(--line-soft); border-radius: 13px; overflow: hidden; background: var(--surface-soft); }
.farm-operations { padding: 18px 20px; }
.farm-row-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.farm-row-heading div { display: flex; align-items: center; }
.farm-row-heading h3 { margin: 0; font-size: 13px; }.farm-row-heading small { color: var(--muted); font-size: 10px; }
.farm-total { color: var(--text); font-size: 12px; }
.farm-total span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.farm-operation-list { overflow: hidden; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(0,0,0,.13); }
.farm-operation-head,.farm-operation-summary { display: grid; grid-template-columns: minmax(105px,1.35fr) .62fr .95fr 1.08fr 1.08fr; gap: 8px; align-items: center; }
.farm-operation-head { padding: 7px 10px; color: var(--muted); background: rgba(0,0,0,.12); font-size: 7px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.farm-operation-summary { min-height: 38px; padding: 8px 10px; border-top: 1px solid var(--line-soft); font-size: 10px; font-variant-numeric: tabular-nums; }
.farm-operation-summary strong { overflow: hidden; color: var(--text); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.farm-operation-summary span { color: var(--muted-light); white-space: nowrap; }
.weather-card { min-width: 0; padding: 16px 18px; border-left: 1px solid var(--line-soft); background: linear-gradient(150deg, rgba(70,185,220,.035), transparent 45%), rgba(8,14,18,.5); }
.weather-card-title { display: flex; justify-content: space-between; align-items: center; color: var(--muted-light); font-size: 9px; font-weight: 800; letter-spacing: .09em; }.weather-card-title small { color: var(--muted); font-size: 8px; font-weight: 650; letter-spacing: .03em; text-transform: uppercase; }
.weather-current { display: flex; gap: 12px; align-items: center; margin-top: 8px; }.weather-current > img { width: 70px; height: 58px; object-fit: contain; filter: drop-shadow(0 6px 12px rgba(0,0,0,.28)); }.weather-current div strong { display: block; font-size: 29px; line-height: 1; letter-spacing: -.045em; }.weather-current div span { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; }
.weather-indicators { display: grid; grid-template-columns: repeat(3,1fr); margin-top: 10px; padding: 10px 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }.weather-indicators span { padding: 0 9px; border-left: 1px solid var(--line-soft); color: var(--muted); font-size: 8px; }.weather-indicators span:first-child { padding-left: 0; border-left: 0; }.weather-indicators strong { display: block; margin-top: 4px; color: #8bdcf1; font-size: 10px; }
.forecast-section { margin-top: 10px; }.forecast-section h4 { margin: 0; color: var(--muted-light); font-size: 8px; letter-spacing: .08em; }.forecast-days { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 4px; margin-top: 7px; }.forecast-day { min-width: 0; display: grid; justify-items: center; padding: 5px 2px; border: 1px solid rgba(255,255,255,.035); border-radius: 7px; background: rgba(255,255,255,.018); }.forecast-day > span { color: var(--muted); font-size: 7px; }.forecast-day img { width: 30px; height: 27px; margin: 2px 0; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.22)); }.forecast-day strong { font-size: 9px; }.forecast-day small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.rain-accumulated { display: grid; grid-template-columns: 1fr minmax(190px, 240px); gap: 12px; align-items: end; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }.rain-accumulated span { display: block; color: var(--muted); font-size: 7px; font-weight: 750; letter-spacing: .07em; }.rain-accumulated > div:first-child > strong { display: block; margin-top: 4px; font-size: 18px; }.rain-accumulated small { display: block; margin-top: 3px; color: var(--muted); font-size: 7px; }.rain-accumulated small.rain-period { margin-top: 4px; color: var(--muted-light); font-size: 10px; font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: normal; }.rain-accumulated small.positive { color: var(--green); }.rain-bars { height: 59px; display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 4px; }.rain-bar-item { min-width: 0; display: grid !important; grid-template-rows: 11px 31px 13px; gap: 2px; text-align: center; }.rain-bar-item > small,.rain-bar-item > strong { overflow: hidden; margin: 0; font-size: 6px; font-variant-numeric: tabular-nums; font-weight: 650; letter-spacing: 0; line-height: 11px; text-overflow: clip; white-space: nowrap; }.rain-bar-item > strong { color: var(--muted-light); }.rain-bar-plot { height: 31px; display: flex !important; align-items: end; }.rain-bar-plot i { width: 100%; height: var(--rain-height); min-height: 3px; border-radius: 3px 3px 1px 1px; background: #55c4e5; transition: height .45s ease; }.rain-bar-item.empty .rain-bar-plot i { height: 3px; background: #303940; }
.weather-source { display: block; margin-top: 7px; color: #626c73; font-size: 7px; text-align: right; }
.operation-list { padding: 8px 24px 24px; }
.operation-row { display: grid; grid-template-columns: 1.4fr .7fr .7fr .7fr; gap: 18px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line-soft); }
.operation-row:last-child { border-bottom: 0; }
.operation-name { display: flex; gap: 12px; align-items: center; }
.operation-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 13%, transparent); }
.operation-name strong, .operation-name span, .metric-pair strong, .metric-pair span { display: block; }
.operation-name strong { font-size: 13px; }.operation-name span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.metric-pair strong { font-size: 14px; }.metric-pair span { margin-top: 4px; color: var(--muted); font-size: 10px; }
.farm-summary { padding: 26px; border-left: 1px solid var(--line-soft); background: rgba(0,0,0,.09); }
.farm-summary h3 { margin: 0 0 20px; font-size: 13px; }
.farm-item { margin-top: 18px; }
.farm-item div { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; }
.farm-item span { color: var(--muted-light); }.farm-item strong { font-size: 11px; }
.progress { height: 5px; overflow: hidden; border-radius: 999px; background: #272c30; }.progress i { display: block; height: 100%; border-radius: inherit; background: var(--orange); }
.table-wrap { width: 100%; overflow-x: hidden; }
.operation-farm-groups { display: grid; gap: 16px; padding: 14px; background: rgba(0,0,0,.08); }
.operation-farm-group { min-width: 0; overflow: hidden; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(0,0,0,.1); }
.operation-farm-heading { min-height: 50px; padding: 11px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-soft); background: rgba(255,255,255,.018); }
.operation-farm-heading h3 { margin: 0; color: var(--text); font-size: 13px; }
.operation-farm-heading small { color: var(--muted); font-size: 9px; }
.operation-farm-group .live-machines-panel { margin: 12px 14px 14px; }
table { width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
th { padding: 13px 17px; color: var(--muted); background: rgba(0,0,0,.12); font-size: 9px; letter-spacing: .075em; text-align: left; text-transform: uppercase; }
td { padding: 15px 17px; border-top: 1px solid var(--line-soft); color: var(--muted-light); font-size: 11px; transition: background-color .16s ease, border-color .16s ease; }
tbody tr:hover td { border-top-color: #363d43; background: rgba(255,255,255,.035); }
td strong { color: var(--text); font-size: 12px; } td small { display: block; margin-top: 4px; color: var(--muted); }
.table-wrap th { overflow: hidden; padding: 10px 7px; font-size: clamp(6px, .55vw, 8px); text-overflow: ellipsis; white-space: nowrap; }
.table-wrap td { overflow: hidden; padding: 11px 7px; font-size: clamp(8px, .72vw, 10px); text-overflow: ellipsis; }
.table-wrap td strong { font-size: clamp(8px, .78vw, 11px); }
.table-wrap .col-equipment { width: 16%; }.table-wrap .col-operator { width: 14%; }.table-wrap .col-farm { width: 8%; }.table-wrap .col-area { width: 7%; }.table-wrap .col-productivity { width: 10%; }.table-wrap .col-efficiency { width: 18.5%; }.table-wrap .col-actions { width: 4%; }
.table-wrap th:nth-child(n+4) { text-align: center; }
.table-wrap .area-cell,.table-wrap .productivity-cell,.table-wrap .target-cell,.table-wrap .details-cell { text-align: center; }
.table-wrap .efficiency-cell { text-align: left; }
.machine-group:hover td { border-top-color: #363d43; background: rgba(255,255,255,.035); }
.machine-group + .machine-group tr:first-child td { border-top-color: #343a40; }
.value { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.productivity-value { display: inline-flex; gap: 5px; align-items: baseline; }
.table-wrap .productivity-value { width: 100%; display: grid; grid-template-columns: 5.8em 3.2em; column-gap: 5px; align-items: baseline; justify-content: center; }
.table-wrap .productivity-reading { text-align: right; }
.table-wrap .productivity-comparison { text-align: left; white-space: nowrap; }
.farm-operation-summary .productivity-value { width: 100%; display: grid; grid-template-columns: 6.2em max-content; column-gap: 6px; align-items: baseline; }
.farm-operation-summary .efficiency-summary-value { width: 100%; display: grid; grid-template-columns: 3.2em max-content; column-gap: 4px; align-items: baseline; }
.productivity-reading { white-space: nowrap; }
.productivity-comparison { font-size: 9px; font-weight: 850; }.productivity-comparison.up { color: #51c878; }.productivity-comparison.down { color: #f16464; }.productivity-comparison.neutral { color: var(--muted); }
.score { display: flex; gap: 8px; align-items: center; min-width: 100px; }.score-track { width: 58px; height: 5px; overflow: hidden; border-radius: 5px; background: #2a3034; }.score-track i { display: block; height: 100%; border-radius: inherit; background: var(--score-color, var(--orange)); }
.identity-cell { overflow: hidden; max-width: 320px; padding-right: 4px !important; padding-left: 4px !important; font-size: clamp(7px,.64vw,9px) !important; text-overflow: ellipsis; white-space: nowrap; }
.identity-cell strong { font-size: clamp(7px,.68vw,9px) !important; white-space: nowrap; }
.equipment-cell { min-width: 0; vertical-align: middle; }.operator-cell { min-width: 0; }.farm-cell { min-width: 0; }
.machine-implement { overflow: hidden; max-width: 300px; font-size: 7px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.efficiency-cell { min-width: 0; padding: 6px 5px; }
.efficiency-bar { min-width: 0; width: 100%; display: grid; gap: 4px; }
.efficiency-bar-row { min-width: 0; }
.efficiency-bar-label { display: block; margin-bottom: 1px; color: var(--muted); font-size: 6px; font-weight: 700; letter-spacing: .04em; line-height: 1; }
.efficiency-bar-track { height: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.12); border-radius: 3px; background: #44484c; position: relative; }
.efficiency-bar-fill { position: absolute; inset: 0; overflow: hidden; border-radius: 2px; background: linear-gradient(90deg,#ef4444 0%,#f97316 25%,#facc15 50%,#22c55e 75%,#2563eb 100%); clip-path: inset(0 calc(100% - var(--efficiency)) 0 0); transition: clip-path .45s ease; }
.efficiency-bar-track > strong { z-index: 2; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: clamp(7px,.62vw,9px); font-variant-numeric: tabular-nums; line-height: 1; text-shadow: 0 1px 3px rgba(0,0,0,.9); }
.details-cell { width: auto; padding-left: 4px; }
.details-link { padding: 0; border: 0; color: #d4d8dc; background: transparent; font-size: clamp(7px, .65vw, 10px); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.details-link:hover { color: #fff; }
.live-machines-panel { min-width: 0; border: 1px solid var(--line-soft); border-radius: 11px; overflow: hidden; background: rgba(0,0,0,.14); }
.table-wrap + .live-machines-panel { margin: 12px 14px 14px; }
.live-machines-panel > header { min-height: 48px; padding: 9px 14px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-soft); }
.live-machines-panel > header span,.live-machines-panel > header small { display: block; }.live-machines-panel > header span { color: var(--muted-light); font-size: 8px; font-weight: 800; letter-spacing: .08em; }.live-machines-panel > header small,.live-machines-panel > header time { margin-top: 3px; color: var(--muted); font-size: 7px; font-style: normal; }.live-online { display: flex; gap: 7px; align-items: center; }.live-online i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(81,200,120,.45); animation: live-pulse 1.6s ease-out infinite; }.live-online span { color: #6fd992 !important; font-size: 8px !important; letter-spacing: .04em !important; text-transform: uppercase; }
.live-machines-list { display: grid; }
.live-machine-row { min-height: 42px; padding: 7px 14px; display: grid; grid-template-columns: 1.35fr 1fr 1.2fr .8fr .8fr; gap: 12px; align-items: center; border-top: 1px solid var(--line-soft); }.live-machine-row:first-child { border-top: 0; }.live-machine-row span { min-width: 0; }.live-machine-row small,.live-machine-row strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.live-machine-row small { color: var(--muted); font-size: 7px; }.live-machine-row strong { margin-top: 2px; color: var(--muted-light); font-size: 9px; }
.live-machines-empty { min-height: 54px; padding: 14px; display: grid; place-items: center; color: var(--muted); font-size: 9px; text-align: center; }
.details-dialog { width: min(760px, calc(100% - 32px)); max-height: min(720px, calc(100vh - 40px)); padding: 0; overflow: hidden; border: 1px solid #343a40; border-radius: 14px; color: var(--text); background: #121518; box-shadow: 0 30px 90px rgba(0,0,0,.65); }
.details-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(3px); }
.details-dialog-header { padding: 19px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line-soft); }.details-dialog-header h2 { margin: 0; font-size: 18px; }.details-dialog-header p { margin: 5px 0 0; color: var(--muted-light); font-size: 11px; }.details-dialog-header .eyebrow { margin-bottom: 6px; }
.details-dialog-header .details-speed { margin-top: 3px; color: var(--muted); font-size: 10px; }
.details-focus { margin-bottom: 14px; color: var(--muted-light); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.details-close { min-height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted-light); background: var(--surface-soft); font-size: 10px; font-weight: 700; }
#detailsContent { max-height: calc(100vh - 150px); overflow: auto; padding: 20px 22px 24px; }
.details-context { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 10px; margin-bottom: 18px; }.details-context span { min-width: 0; padding: 11px 12px; border: 1px solid var(--line-soft); border-radius: 9px; background: rgba(255,255,255,.02); }.details-context small,.details-context strong { display: block; }.details-context small { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }.details-context strong { overflow: hidden; margin-top: 5px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.details-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 10px; }.details-table { min-width: 0; }.details-table th,.details-table td { padding: 12px 14px; }.details-table th:last-child,.details-table td:last-child { width: 110px; text-align: right; }.details-table tfoot td { color: var(--text); background: rgba(255,255,255,.025); font-weight: 800; }.details-empty { padding: 30px; color: var(--muted); text-align: center; }
.details-table .details-effective td { background: rgba(255,255,255,.035); }.details-table .details-effective td:first-child strong { color: #fff; }.details-table .details-harmful td:first-child strong { color: #e7eaed; }.details-block-gap { height: 22px; }
.loading { min-height: 300px; display: grid; place-content: center; justify-items: center; color: var(--muted); font-size: 12px; }.loading span { width: 28px; height: 28px; border: 2px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; }
.empty { min-height: 270px; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(81,200,120,.45); opacity: 1; } 70% { box-shadow: 0 0 0 6px rgba(81,200,120,0); opacity: .72; } 100% { box-shadow: 0 0 0 0 rgba(81,200,120,0); opacity: 1; } }
@media (max-width: 900px) { .farm-dashboard-row { grid-template-columns: 1fr; }.weather-card { border-top: 1px solid var(--line-soft); border-left: 0; } }
@media (max-width: 1050px) { .topbar { z-index: 40; }.summary-layout { grid-template-columns: 1fr; }.farm-summary { border-top: 1px solid var(--line-soft); border-left: 0; }.operation-row { grid-template-columns: 1.3fr repeat(3, .7fr); } }
@media (max-width: 760px) { .rain-accumulated { grid-template-columns: 1fr minmax(170px, 220px); } }
@media (max-width: 680px) { .topbar { padding: 0 14px; }.source-badge { display: none; } main { width: calc(100% - 28px); padding-top: 28px; }.filters { display: grid; grid-template-columns: 1fr 1fr; }.filters label:first-child { grid-column: 1 / -1; }.filters input { width: 100%; min-width: 0; }.kpi-grid { grid-template-columns: 1fr; }.operation-row { grid-template-columns: 1fr 1fr; }.operation-row .operation-name { grid-column: 1 / -1; }.panel-heading { align-items: flex-start; gap: 12px; flex-direction: column; }.farm-dashboard-row { grid-template-columns: minmax(0,1fr); }.farm-row-heading { align-items: flex-start; gap: 10px; }.farm-operation-head,.farm-operation-summary { grid-template-columns: minmax(90px,1.1fr) repeat(4,minmax(54px,.7fr)); gap: 5px; } }
@media (max-width: 680px) { .details-context { grid-template-columns: 1fr; } }
