/* 工作台 · 数字农田（企业级 / DataV 轻量风格） */

html.wb-farm-hub-x,
body.wb-farm-hub-x {
  overflow-x: hidden;
}

.farm-hub-root.farm-hub-page {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  box-sizing: border-box;
}

.farm-hub-root {
  width: 100%;
  box-sizing: border-box;
}

.farm-hub-inner {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

.app .content.farm-wide-content {
  max-width: 1600px;
  width: 100%;
  box-sizing: border-box;
}

.farm-loading {
  text-align: center;
  padding: 48px;
  color: #666;
}

.farm-hub-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.farm-hub-head-compact {
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e3efe6;
}

.farm-hub-head-text {
  flex: 1;
  min-width: 0;
}

.farm-head-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.farm-head-meta-item b {
  color: #1a4d2e;
}

.farm-hub-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.farm-title {
  font-size: 24px;
  font-weight: 900;
  color: #1a4d2e;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}

.farm-sub {
  margin: 0;
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  max-width: 720px;
}

/* —— 顶部 KPI：auto-fit + 最小 220px，禁止子项 flex:1 压扁 —— */
.farm-overview {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  align-items: stretch;
  padding: 16px 18px 18px;
  background: linear-gradient(165deg, #fbfffc 0%, #f0f7f2 55%, #e8f2ec 100%);
  border: 1px solid rgba(45, 110, 71, 0.22);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 8px 28px rgba(26, 77, 46, 0.08);
}

.farm-overview-live {
  margin-bottom: 14px;
}

.farm-kpi-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 148px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #f4faf6 100%);
  border: 1px solid rgba(207, 229, 212, 0.95);
  border-radius: 14px;
  padding: 14px 14px 12px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 10px;
  align-items: stretch;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  writing-mode: horizontal-tb;
  position: relative;
  z-index: 0;
}

.farm-kpi-card[data-farm-jump] {
  cursor: pointer;
}

.farm-kpi-card[data-farm-jump]:hover,
.farm-kpi-card[data-farm-jump]:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(26, 77, 46, 0.12);
  border-color: rgba(45, 110, 71, 0.45);
  outline: none;
}

.farm-kpi-ic {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  font-size: 26px;
  line-height: 1;
  margin-top: 2px;
}

.farm-kpi-body {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-items: stretch;
  min-width: 0;
}

.farm-kpi-label {
  font-size: 14px;
  color: #4a5c52;
  font-weight: 700;
  align-self: start;
  line-height: 1.35;
}

.farm-kpi-val {
  font-size: 32px;
  font-weight: 900;
  color: #143d24;
  margin: 0;
  align-self: center;
  line-height: 1.15;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.farm-kpi-foot {
  margin-top: 6px;
  font-size: 11px;
  color: #6d7a72;
  align-self: end;
  line-height: 1.45;
}

.farm-kpi-sub {
  color: #7a8a80;
}

/* 环比：统一主色，方向仅由符号区分 */
.farm-kpi-trend {
  color: #2d6e47;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.farm-kpi-trend.up,
.farm-kpi-trend.down {
  color: #2d6e47;
}

.farm-portal-notice {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid #e0d39a;
  border-radius: 14px;
  background: linear-gradient(180deg, #fffdf3 0%, #fff9df 100%);
  color: #574319;
  box-shadow: 0 6px 18px rgba(150, 117, 34, 0.08);
}

.farm-portal-notice b {
  color: #8a6215;
}

.farm-portal-notice p {
  margin: 3px 0 0;
  font-size: 12px;
  color: #7a672f;
}

.farm-plot-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.farm-filter-main,
.farm-filter-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.farm-filter-main {
  flex: 1 1 360px;
}

.farm-filter-meta {
  justify-content: flex-end;
  color: #66746c;
  font-size: 12px;
}

.farm-filter-main input,
.farm-filter-main select {
  min-height: 34px;
  border: 1px solid #cfe1d4;
  border-radius: 10px;
  background: #fbfffc;
  color: #26372c;
  font: inherit;
  font-size: 13px;
  box-sizing: border-box;
}

.farm-filter-main input {
  flex: 1 1 170px;
  min-width: 160px;
  padding: 7px 10px;
}

.farm-filter-main select {
  flex: 0 1 136px;
  padding: 7px 30px 7px 10px;
}

.farm-filter-main input:focus,
.farm-filter-main select:focus {
  border-color: #2d6e47;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 110, 71, 0.12);
}

.farm-filter-empty {
  display: none;
  margin: 10px 0 0;
  padding: 18px;
  border: 1px dashed #cfe1d4;
  border-radius: 14px;
  background: #fbfffc;
  color: #66746c;
  text-align: center;
}

.farm-filter-empty b {
  display: block;
  margin-bottom: 5px;
  color: #1a4d2e;
}

/* —— 地块 5 : 地图 7 —— */
.farm-plots-map-split {
  display: grid;
  grid-template-columns: minmax(360px, 0.88fr) minmax(520px, 1.12fr);
  gap: 16px;
  margin-bottom: 16px;
  align-items: stretch;
  min-width: 0;
}

.farm-plots-col,
.farm-map-col {
  min-width: 0;
}

.farm-plots-col .farm-card {
  margin-bottom: 0;
}

.farm-plots-col .farm-card,
.farm-map-col .farm-map-card {
  height: min(78vh, 760px);
  min-height: 620px;
}

#farmSectionPlots {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.farm-map-col {
  display: flex;
  flex-direction: column;
}

.farm-map-col .farm-map-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

.farm-map-card .farm-map-ph {
  flex: 1 1 auto;
  min-height: 220px;
}

.farm-map-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #53645b;
}

.farm-map-tools label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  cursor: pointer;
}

.farm-map-tools input {
  accent-color: #2d6e47;
}

.farm-map-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.farm-map-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 3px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8);
}

.farm-map-legend .ok {
  background: #2f8f4e;
}

.farm-map-legend .warn {
  background: #d8a428;
}

.farm-map-legend .bad {
  background: #cf4b4b;
}

/* —— 主区：快捷 + 时间轴 | 侧栏图表 —— */
.farm-hub-work {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.farm-hub-main {
  min-width: 0;
}

.farm-hub-side {
  min-width: 0;
}

/* 兼容旧版类名（若仍有引用） */
.farm-hub-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 16px;
  align-items: start;
}

.farm-card {
  background: #fff;
  border: 1px solid #d4e8d8;
  border-radius: 16px;
  padding: 16px 16px 18px;
  margin-bottom: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.farm-hub-main .farm-card:last-child,
.farm-hub-side .farm-card:last-child {
  margin-bottom: 0;
}

.farm-h2 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: #1a4d2e;
}

.farm-h2-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  min-width: 0;
}

.farm-h2-row .farm-h2 {
  margin: 0;
}

.farm-muted {
  font-size: 12px;
  color: #777;
}

/* 快捷操作：PC 4 列 → 平板 2 → 手机 1 */
.farm-quick {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.farm-qb {
  text-align: left;
  border: 1px solid #cfe5d4;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #fbfffc 0%, #f4faf6 100%);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  min-height: 104px;
  min-width: 0;
  font: inherit;
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 30px auto auto;
  gap: 4px;
}

.farm-qb:hover {
  border-color: #2d6e47;
  box-shadow: 0 4px 16px rgba(45, 110, 71, 0.12);
  transform: translateY(-1px);
}

.farm-qb .ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #eef6f0;
  border: 1px solid #d5ead9;
  font-size: 17px;
  font-weight: 900;
  color: #123f27;
}

.farm-qb b {
  display: block;
  font-size: 14px;
  color: #1a4d2e;
}

.farm-qb small {
  display: block;
  font-size: 11px;
  color: #888;
  margin-top: 0;
  font-weight: 400;
  line-height: 1.35;
}

.farm-plot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 14px;
  min-width: 0;
  overflow: auto;
  padding-right: 4px;
  align-content: start;
  flex: 1 1 auto;
  min-height: 0;
  scrollbar-width: thin;
}

.farm-plot-card {
  border-radius: 16px;
  padding: 14px;
  border: 2px solid #dfece3;
  background: #fafcfb;
  transition: box-shadow 0.15s;
  min-width: 0;
  box-sizing: border-box;
}

.farm-plot-card.is-ok {
  border-color: #b8dfc8;
}

.farm-plot-card.is-warn {
  border-color: #e8c76a;
  background: linear-gradient(180deg, #fffdf6, #fafcfb);
}

.farm-plot-card.is-bad {
  border-color: #e5989b;
  background: linear-gradient(180deg, #fff8f8, #fafcfb);
}

.farm-plot-card:hover {
  box-shadow: 0 6px 22px rgba(26, 77, 46, 0.08);
}

.farm-boundary-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #cfe1d4;
  background: #eef7f1;
  color: #1f6a3a;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.farm-boundary-pill.warn {
  border-color: #e3c66d;
  background: #fff8dc;
  color: #8a6215;
}

.farm-boundary-pill.ok {
  border-color: #b9dfc8;
  background: #effaf2;
}

.farm-plot-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  min-width: 0;
}

.farm-plot-name {
  margin: 0;
  font-size: 16px;
  color: #1a4d2e;
  word-break: break-word;
}

.farm-plot-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: #666;
}

.farm-fav {
  border: none;
  background: transparent;
  font-size: 20px;
  color: #ccc;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  flex-shrink: 0;
}

.farm-fav.on {
  color: #c9962a;
}

.farm-plot-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
  font-size: 12px;
  text-align: center;
}

.farm-plot-metrics b {
  display: block;
  font-size: 14px;
  color: #1a2e22;
  font-variant-numeric: tabular-nums;
}

.farm-plot-metrics small {
  color: #888;
}

.farm-plot-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 12px;
  color: #555;
  line-height: 1.65;
}

.farm-plot-meta strong {
  font-variant-numeric: tabular-nums;
}

.farm-phase-hint {
  font-size: 12px;
  color: #2d6e47;
  margin: 0 0 10px;
  line-height: 1.5;
}

.farm-plot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.farm-timeline {
  border-left: 3px solid #d4e8d8;
  margin-left: 8px;
  padding-left: 14px;
}

.farm-tl-item {
  position: relative;
  padding-bottom: 14px;
  cursor: pointer;
}

.farm-tl-item::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2d6e47;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #d4e8d8;
}

.farm-tl-item time {
  font-size: 12px;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.farm-tl-body {
  font-size: 13px;
  color: #333;
  margin-top: 2px;
}

.farm-map-ph {
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f0e6 0%, #eef6f0 40%, #dfece3 100%);
  border: 1px dashed rgba(45, 110, 71, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-size: 13px;
  color: #2d4a38;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 40px rgba(45, 110, 71, 0.06);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.farm-map-surface {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.farm-map-place-info {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  max-width: min(74%, 520px);
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 77, 46, 0.18);
  color: #1a4d2e;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}

.farm-map-view {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #e8f2eb;
}

.farm-map-err {
  border-radius: 12px;
  padding: 14px;
  background: #fff8f8;
  border: 1px solid #f5c6c6;
}

#farmMapCoords {
  font-variant-numeric: tabular-nums;
}

.farm-chart {
  width: 100%;
  height: 220px;
  min-width: 0;
}

.farm-chart-sm {
  height: 240px;
}

.farm-mini-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed #cfe1d4;
  border-radius: 12px;
  background: #fbfffc;
  color: #6d7a72;
  font-size: 13px;
}

.farm-chart-empty {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 22px;
  border: 1px dashed #cfe1d4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfffc 0%, #f3faf5 100%);
  text-align: center;
  color: #617169;
  box-sizing: border-box;
}

.farm-chart-empty b {
  display: block;
  margin-bottom: 6px;
  color: #1a4d2e;
  font-size: 15px;
}

.farm-chart-empty p {
  margin: 0 0 12px;
  line-height: 1.6;
  font-size: 13px;
}

.farm-detail-hero {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #d4e8d8;
  border-radius: 14px;
  background: linear-gradient(145deg, #f7fcf8 0%, #eef8f1 100%);
}

.farm-detail-hero h3 {
  margin: 0 0 5px;
  color: #1a4d2e;
  font-size: 20px;
}

.farm-detail-hero p {
  margin: 0 0 10px;
  color: #66746c;
}

.farm-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.farm-detail-grid div {
  padding: 12px;
  border: 1px solid #e0ece4;
  border-radius: 12px;
  background: #fbfffc;
}

.farm-detail-grid b,
.farm-detail-grid span {
  display: block;
}

.farm-detail-grid b {
  color: #143d24;
  font-size: 17px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.farm-detail-grid span {
  margin-top: 4px;
  color: #77857d;
  font-size: 12px;
}

.farm-rem-item {
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
}

.farm-rem-item:last-child {
  border-bottom: none;
}

.farm-rem-item b {
  color: #1a4d2e;
}

.farm-rem-item p {
  margin: 4px 0 0;
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

.farm-chip {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef6f0;
  border: 1px solid #cfe5d4;
  font-size: 12px;
  color: #1a4d2e;
}

.farm-quick-card {
  margin-bottom: 16px;
}

.farm-support-grid,
.farm-analysis-grid {
  display: grid;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.farm-support-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.farm-analysis-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.farm-support-grid .farm-card,
.farm-analysis-grid .farm-card {
  margin-bottom: 0;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.farm-analysis-card .farm-chart,
.farm-support-grid .farm-chart {
  flex: 1 1 auto;
}

.farm-data-health {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.farm-data-health div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #dbeadf;
  border-radius: 12px;
  background: #fbfffc;
  color: #54655b;
  font-size: 13px;
}

.farm-data-health b {
  color: #113d24;
  font-size: 15px;
}

.farm-drawer-note,
.farm-drawer-panel {
  border: 1px solid #d8eadc;
  border-radius: 12px;
  background: #f7fcf8;
  padding: 12px;
  margin-bottom: 12px;
  color: #516157;
  font-size: 13px;
  line-height: 1.6;
}

.farm-drawer-panel {
  background: #fbfffc;
}

.farm-location-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbeadf;
  border-radius: 8px;
  background: #fbfefc;
}

.farm-location-actions span {
  flex: 1 1 180px;
  min-width: 0;
  color: #54655b;
  font-size: 12px;
  line-height: 1.5;
}

/* —— 统一断点 —— */
@media (max-width: 1280px) {
  .farm-hub-inner {
    padding: 20px 20px 22px;
  }

  .farm-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .farm-hub-work,
  .farm-hub-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  }

  .farm-support-grid,
  .farm-analysis-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .farm-plots-map-split {
    display: flex;
    flex-direction: column;
  }

  .farm-map-col {
    order: -1;
  }

  .farm-plots-col .farm-card,
  .farm-map-col .farm-map-card {
    height: auto;
    min-height: 0;
  }

  #farmSectionPlots {
    overflow: visible;
  }

  .farm-plot-grid {
    overflow: visible;
    padding-right: 0;
  }

  .farm-map-view {
    min-height: 360px;
  }

  .farm-hub-work,
  .farm-hub-grid {
    grid-template-columns: 1fr;
  }

  .farm-hub-side .farm-card {
    margin-bottom: 16px;
  }

  .farm-hub-side .farm-card:last-child {
    margin-bottom: 0;
  }

  .farm-quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .farm-hub-inner {
    padding: 16px 16px 20px;
  }

  .farm-portal-notice,
  .farm-plot-toolbar,
  .farm-map-tools {
    align-items: stretch;
  }

  .farm-portal-notice {
    flex-direction: column;
  }

  .farm-portal-notice .btn {
    width: 100%;
  }

  .farm-filter-main,
  .farm-filter-meta {
    width: 100%;
    justify-content: stretch;
  }

  .farm-filter-main input,
  .farm-filter-main select,
  .farm-filter-meta .btn {
    flex: 1 1 100%;
    width: 100%;
  }

  .farm-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px 14px 16px;
  }

  .farm-kpi-card {
    min-height: 140px;
  }

  .farm-plot-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .farm-hub-head {
    margin-bottom: 16px;
  }

  .farm-detail-grid {
    grid-template-columns: 1fr;
  }

  .farm-support-grid,
  .farm-analysis-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .farm-hub-inner {
    padding: 12px 12px 16px;
  }

  .farm-overview {
    grid-template-columns: 1fr;
  }

  .farm-kpi-card {
    width: 100%;
  }

  .farm-kpi-val {
    font-size: 26px;
  }

  .farm-quick {
    grid-template-columns: 1fr;
  }

  .farm-plot-grid {
    grid-template-columns: 1fr;
  }
}
