/* Setup › Farms & Crops (static/farms-crops.js; ~/prod-promote/mock-farm-tree.html). Laptop: the tree
   on the left, the picked block's panel on the right; under 900px the two stack (the phone's
   drill-down is slice 6). Names and badges never wrap: a long name ellipses, the rest stays. */
#tab-setup-farms-crops .fc-cols { display: flex; gap: 16px; align-items: flex-start; margin-top: 12px; }
#tab-setup-farms-crops .fc-left { flex: 1.25; min-width: 0; }
#tab-setup-farms-crops .fc-tree { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
#tab-setup-farms-crops .fc-tbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
#tab-setup-farms-crops .fc-tbar input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; background: #fff; }
#tab-setup-farms-crops .fc-sum { font-size: 12.5px; color: var(--ink3); white-space: nowrap; }

#tab-setup-farms-crops .fc-n { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line2); cursor: pointer; white-space: nowrap; min-width: 0; }
#tab-setup-farms-crops .fc-n:first-child { border-top: 0; }
#tab-setup-farms-crops .fc-n:hover { background: #fbf7ee; }
#tab-setup-farms-crops .fc-n.sel { background: var(--gl, #e7f1e6); }
#tab-setup-farms-crops .fc-n:focus-visible { outline: 2px solid var(--gm, #2e6b34); outline-offset: -2px; }
#tab-setup-farms-crops .fc-tw { width: 14px; color: var(--ink3); font-size: 11px; flex: none; text-align: center; }
#tab-setup-farms-crops .fc-nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; min-width: 4.5em; flex: 0 1 auto; }
#tab-setup-farms-crops .fc-mt { color: var(--ink3); font-size: 13px; margin-left: auto; flex: none; padding-left: 8px; }
#tab-setup-farms-crops .fc-l0 { background: #f7f3ea; }
#tab-setup-farms-crops .fc-l0 .fc-nm { font-size: 15.5px; }
#tab-setup-farms-crops .fc-l1 { padding-left: 34px; }
#tab-setup-farms-crops .fc-l1 .fc-nm { font-weight: 500; }
#tab-setup-farms-crops .fc-l2 { padding-left: 62px; }
#tab-setup-farms-crops .fc-l2 .fc-nm { font-weight: 500; }
#tab-setup-farms-crops .fc-l3 { padding-left: 90px; }
#tab-setup-farms-crops .fc-var { color: var(--ink2); font-size: 13.5px; cursor: default; }
#tab-setup-farms-crops .fc-var:hover { background: none; }
#tab-setup-farms-crops .fc-var .fc-nm { font-weight: 400; }
#tab-setup-farms-crops .fc-group .fc-nm { font-weight: 600; }
#tab-setup-farms-crops .ctag, #tab-setup-farms-crops .fc-warn { flex: none; white-space: nowrap; }
#tab-setup-farms-crops .fc-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
#tab-setup-farms-crops .fc-vtx { flex: 1 1 0; min-width: 0; font-size: 13px; color: var(--ink2); overflow: hidden; text-overflow: ellipsis; }
#tab-setup-farms-crops .fc-grey { color: var(--ink3); }
#tab-setup-farms-crops .fc-vtx.fc-grey { flex: none; }
#tab-setup-farms-crops .fc-warn.fc-flag { flex: 0 1 auto; min-width: 3em; overflow: hidden; text-overflow: ellipsis; }   /* "2 varieties", "group": never cut; a long name gives way instead */
#tab-setup-farms-crops .fc-warn { font-size: 11.5px; font-weight: 700; color: #9a5b12; background: #fbefdc; border-radius: 999px; padding: 1px 8px; }
#tab-setup-farms-crops .fc-add { padding: 9px 14px 9px 34px; border-top: 1px solid var(--line2); color: var(--gm, #2e6b34); font-weight: 600; font-size: 13.5px; cursor: pointer; }
#tab-setup-farms-crops .fc-add:hover { background: #fbf7ee; }
#tab-setup-farms-crops .fc-empty { padding: 18px 14px; color: var(--ink3); font-size: 14px; }
#tab-setup-farms-crops .fc-link { color: var(--gm, #2e6b34); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
#tab-setup-farms-crops .fc-link:hover { text-decoration: underline; }
#tab-setup-farms-crops .fc-addfarm { display: flex; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line2); background: #fffdf8; }
#tab-setup-farms-crops .fc-addfarm input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; }
#tab-setup-farms-crops #fc-appl-slot { margin-top: 14px; }

#tab-setup-farms-crops .fc-panel { flex: 1; min-width: 0; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto;
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
#tab-setup-farms-crops .fc-pick { color: var(--ink3); font-size: 14px; padding: 30px 0; text-align: center; }
#tab-setup-farms-crops .fc-phead { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
#tab-setup-farms-crops .fc-phead > div { flex: 1; min-width: 0; }
#tab-setup-farms-crops .fc-k { font-size: 12.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tab-setup-farms-crops .fc-h2 { margin: 2px 0 0; font-size: 20px; overflow-wrap: anywhere; }
#tab-setup-farms-crops .fc-vfoot { margin-top: 12px; text-align: right; }
#tab-setup-farms-crops .fc-season { background: #fff; border: 1px solid #e6e8e6; border-radius: 11px; padding: 16px 17px; margin-bottom: 13px; }
#tab-setup-farms-crops .fc-sech { font-size: 11.5px; font-weight: 700; color: #1a3a1f; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
#tab-setup-farms-crops .fc-vrow { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line2); font-size: 14px; }
#tab-setup-farms-crops .fc-vrow:first-child { border-top: 0; }
#tab-setup-farms-crops .fc-r { margin-left: auto; text-align: right; color: var(--ink2); }
#tab-setup-farms-crops a.fc-r { color: var(--gm, #2e6b34); }

/* a laptop narrower than 1280 (1024x600): the summary under the search, tighter rows, the panel a
   little narrower; a block's name keeps room to read before it ellipses */
@media (min-width: 901px) and (max-width: 1279px) {
  #tab-setup-farms-crops .fc-tbar { flex-wrap: wrap; row-gap: 6px; }
  #tab-setup-farms-crops .fc-tbar input { flex: 1 1 100%; }
  #tab-setup-farms-crops .fc-left { flex: 1.5; }
  #tab-setup-farms-crops .fc-n { gap: 7px; padding: 8px 10px; }
  #tab-setup-farms-crops .fc-l1 { padding-left: 24px; }
  #tab-setup-farms-crops .fc-l2 { padding-left: 42px; }
  #tab-setup-farms-crops .fc-l3 { padding-left: 60px; }
  #tab-setup-farms-crops .fc-add { padding-left: 24px; }
  #tab-setup-farms-crops .fc-nm { font-size: 14px; }
  #tab-setup-farms-crops .fc-l0 .fc-nm { font-size: 15px; }
  #tab-setup-farms-crops .fc-mt, #tab-setup-farms-crops .fc-vtx { font-size: 12px; }
  #tab-setup-farms-crops .fc-panel { padding: 14px 14px; }
}
@media (max-width: 900px) {
  #tab-setup-farms-crops .fc-cols { flex-direction: column; }
  #tab-setup-farms-crops .fc-tbar { flex-wrap: wrap; row-gap: 6px; }
  #tab-setup-farms-crops .fc-tbar input { flex: 1 1 100%; }
  #tab-setup-farms-crops .fc-left, #tab-setup-farms-crops .fc-panel { width: 100%; flex: none; }
  #tab-setup-farms-crops .fc-panel { position: static; max-height: none; }
  #tab-setup-farms-crops .fc-l1 { padding-left: 24px; }
  #tab-setup-farms-crops .fc-l2 { padding-left: 40px; }
  #tab-setup-farms-crops .fc-l3 { padding-left: 56px; }
  #tab-setup-farms-crops .fc-mt { font-size: 12px; }
}
#tab-setup-farms-crops .vi { max-width: none; }   /* the two columns take the pane, as Products and Tank Mixes do */

/* slice 5: the By farm / By crop switch, By crop's rows, Retired, the variety and crop panels */
#tab-setup-farms-crops .fc-viewbar { padding: 10px 14px 0; }
#tab-setup-farms-crops .fc-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
#tab-setup-farms-crops .fc-switch button { border: 0; background: none; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink2); white-space: nowrap; }
#tab-setup-farms-crops .fc-switch button.on { background: var(--gm, #2e6b34); color: #fff; font-weight: 600; }
#tab-setup-farms-crops .fc-more { color: var(--ink3); font-size: 13.5px; }
#tab-setup-farms-crops .fc-more .fc-nm { font-weight: 500; }
#tab-setup-farms-crops .fc-np .fc-nm { font-weight: 400; color: var(--ink3); }
#tab-setup-farms-crops .fc-np { color: var(--ink3); }
#tab-setup-farms-crops .fc-retired { color: var(--ink3); cursor: default; }
#tab-setup-farms-crops .fc-retired .fc-nm { font-weight: 400; }
#tab-setup-farms-crops .fc-mini { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 10px; font: inherit; font-size: 12.5px; color: var(--gm, #2e6b34); font-weight: 600; cursor: pointer; white-space: nowrap; }
#tab-setup-farms-crops .fc-addcrop { padding-left: 14px; }
#tab-setup-farms-crops .fc-addvar { border-top: 1px solid var(--line2); border-bottom: 0; padding-left: 34px; }
#tab-setup-farms-crops .fc-dot-lg { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: 1px; }
#tab-setup-farms-crops .fc-facts { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin: 12px 0; }
#tab-setup-farms-crops .fc-fact { border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; background: #fff; }
#tab-setup-farms-crops .fc-fact b { display: block; font-size: 18px; margin-top: 2px; }
#tab-setup-farms-crops .fc-dupnote { border: 1px solid #f0dcb8; background: #fff8ec; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; color: #6b4a12; margin-top: 10px; }
#tab-setup-farms-crops .fc-rename { display: flex; gap: 8px; }
#tab-setup-farms-crops .fc-rename input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; }
#tab-setup-farms-crops .fc-note { font-size: 12.5px; color: var(--ink3); margin-top: 8px; }
#tab-setup-farms-crops .fc-pmsg { border: 1px solid #f0dcb8; background: #fbefdc; color: #7a4a0c; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 0 0 12px; }
#tab-setup-farms-crops .fc-pacts { display: flex; justify-content: flex-end; }
#tab-setup-farms-crops .fc-danger { color: #b8322a; }
/* Planted in: the block's name gives way, its farm and acres stay on one line */
#tab-setup-farms-crops .fc-vrow .fc-blk { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#tab-setup-farms-crops .fc-vrow .fc-r { flex: none; white-space: nowrap; }

/* slice 6: the phone's drill-down (under 768px, the Setup menu's phone line): one screen at a time,
   rows one line each, a block's gaps one amber "!" on its row and spelled out on its page */
#tab-setup-farms-crops #fc-phone { display: none; }
@media (max-width: 767px) {
  #tab-setup-farms-crops .fc-cols { display: none; }
  #tab-setup-farms-crops #fc-phone { display: block; }
  /* the top bar carries the title and back; home has its own + Add farm, the bottom nav the Map */
  #tab-setup-farms-crops .pg-head { display: none; }
  #tab-setup-farms-crops .fc-phd { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); margin: 14px 4px 6px; }
  #tab-setup-farms-crops .fc-phd:first-child { margin-top: 4px; }
  #tab-setup-farms-crops .fc-pcard { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 10px; }
  #tab-setup-farms-crops .fc-pr { display: flex; align-items: center; gap: 8px; padding: 12px; min-height: 48px; border-top: 1px solid var(--line2); white-space: nowrap; cursor: pointer; min-width: 0; }
  #tab-setup-farms-crops .fc-pr:first-child { border-top: 0; }
  #tab-setup-farms-crops .fc-pr:active { background: #fbf7ee; }
  #tab-setup-farms-crops .fc-pr .fc-nm { flex: 0 1 auto; min-width: 4.5em; font-weight: 600; font-size: 15px; }
  #tab-setup-farms-crops .fc-pr .fc-mt { margin-left: auto; font-size: 13px; padding-left: 4px; }
  #tab-setup-farms-crops .fc-pr .fc-vtx.fc-grey { flex: none; }
  #tab-setup-farms-crops .fc-chev { color: var(--ink3); font-size: 18px; flex: none; line-height: 1; }
  #tab-setup-farms-crops .fc-padd { color: var(--gm, #2e6b34); font-weight: 600; font-size: 14px; }
  #tab-setup-farms-crops .fc-pr.fc-more .fc-nm { font-weight: 500; color: var(--ink3); font-size: 14px; }
  #tab-setup-farms-crops .fc-pr.fc-np .fc-nm { font-weight: 400; color: var(--ink3); }
  #tab-setup-farms-crops .fc-pr.fc-retired { cursor: default; }
  #tab-setup-farms-crops .fc-pr.fc-retired .fc-nm { font-weight: 400; color: var(--ink3); }
  #tab-setup-farms-crops .fc-ico { flex: none; padding: 0 7px; min-width: 18px; text-align: center; }
  #tab-setup-farms-crops .fc-ppage { background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
  #tab-setup-farms-crops .fc-gap { border: 1px solid #f0dcb8; background: #fbefdc; color: #7a4a0c; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; margin-bottom: 8px; }
  #tab-setup-farms-crops .fc-pcard .fc-addfarm { border-bottom: 0; border-top: 1px solid var(--line2); }
  #tab-setup-farms-crops .fc-facts { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  #tab-setup-farms-crops .fc-fact { padding: 8px 10px; }
  #tab-setup-farms-crops .fc-fact b { font-size: 16px; }
  #tab-setup-farms-crops .fc-pacts { margin-top: 4px; }
}

/* the swap: Farms & Blocks' tools here (⋮ menus, Select, blocks with no crop, Set crop) */
#tab-setup-farms-crops .fc-viewbar { display: flex; align-items: center; gap: 10px; }
#tab-setup-farms-crops .fc-selbtn { margin-left: auto; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 14px; font: inherit; font-size: 13px; cursor: pointer; color: var(--ink2); }
#tab-setup-farms-crops .fc-selbtn.on { background: var(--gm, #2e6b34); border-color: var(--gm, #2e6b34); color: #fff; font-weight: 600; }
#tab-setup-farms-crops .fc-n .kebab, #tab-setup-farms-crops .fc-phead .kebab { flex: none; margin-left: 2px; }
#tab-setup-farms-crops .fc-phead .kebab { align-self: flex-start; }
#tab-setup-farms-crops .fc-ck { flex: none; }
#tab-setup-farms-crops .fc-ncl { cursor: pointer; text-decoration: none; }
#tab-setup-farms-crops .fc-nocrop { margin: 10px 14px 0; }
#tab-setup-farms-crops .fc-selbar { margin: 10px 14px 12px; }
#tab-setup-farms-crops .fc-phd-k { display: flex; align-items: center; justify-content: space-between; }
#tab-setup-farms-crops .fc-phd-k .kebab { text-transform: none; }
@media (max-width: 767px) {
  #tab-setup-farms-crops #fc-phone .fc-nocrop { margin: 4px 0 10px; }
  #tab-setup-farms-crops #fc-phone .fc-selbar { margin: 10px 0 0; }
}
#tab-setup-farms-crops .fc-phd-acts { display: inline-flex; align-items: center; gap: 6px; text-transform: none; letter-spacing: 0; }
#tab-setup-farms-crops .fc-phd-acts .fc-selbtn { margin-left: 0; padding: 3px 12px; font-size: 12.5px; font-weight: 600; }
/* a tree row's ⋮ keeps the row one line (the shared .kebab is 30px tall) */
#tab-setup-farms-crops .fc-n .kebab { width: 26px; height: 22px; margin: -2px -6px -2px 0; font-size: 14px; }

/* Merge (the variety panel): the duplicate note's buttons; the sheet's list (body-level, the Set crop sheet's look) */
#tab-setup-farms-crops .fc-dupacts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
#tab-setup-farms-crops .fc-rename select { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font: inherit; font-size: 14px; background: #fff; }
.fc-mergelist { margin: 4px 0 12px; padding-left: 20px; font-size: 14px; color: var(--ink); }
.fc-mergelist li { margin: 4px 0; }
