:root {
    --bg: #eef5f1;
    --bg-soft: #f7fbf8;
    --panel: #ffffff;
    --ink: #10241a;
    --muted: #607369;
    --line: #d4e2da;
    --line-strong: #bfd0c6;
    --green: #147243;
    --green-dark: #0f5c36;
    --blue: #1767b6;
    --amber: #9a5907;
    --red: #b42318;
    --field-ink: #075493;
    --field-focus: #157dcc;
    --shadow-sm: 0 8px 24px rgba(16, 36, 26, .07);
    --shadow-md: 0 18px 46px rgba(16, 36, 26, .14);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 96px; }
body { margin: 0; min-height: 100vh; background: linear-gradient(180deg, #f7fbf8 0%, #edf2f4 44%, #eaf3ee 100%); color: var(--ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 18px; line-height: 1.5; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
.offline-app { width: min(100%, 760px); margin: 0 auto; padding: 0; }
.offline-card, .offline-top, .sync-strip, .offline-tabs { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-sm); }
.offline-login { min-height: 100vh; display: grid; align-content: center; gap: 14px; padding: 28px 22px; text-align: center; border: 0; border-radius: 0; box-shadow: none; }
.offline-logo { width: min(230px, 70vw); margin: 0 auto; }
.login-app-name { color: var(--green); font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
h1, h2 { margin: 0; }
h1 { font-size: 1.55rem; }
h2 { font-size: 1.15rem; margin-bottom: 14px; }
p { margin: 0; color: var(--muted); }
label { display: grid; gap: 6px; margin-bottom: 12px; color: #263b30; font-weight: 750; text-align: left; }
input, select, textarea { width: 100%; min-height: 50px; border: 1px solid #9cc6e6; border-radius: 8px; padding: 12px; background: #f0f8ff; color: var(--field-ink); -webkit-text-fill-color: var(--field-ink); caret-color: var(--field-focus); font-weight: 700; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
input::placeholder, textarea::placeholder { color: #7892a8; font-weight: 500; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: var(--field-focus); outline: 0; box-shadow: 0 0 0 .2rem rgba(22, 131, 216, .18); background: #fff; }
textarea { min-height: 86px; resize: vertical; }
label small { color: var(--muted); font-weight: 650; }
.offline-check-field { position: relative; }
.offline-check-field input { padding-right: 48px; }
.offline-check-field span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: #e5edf0; color: var(--muted); font-weight: 900; }
.offline-check-field span.ok { background: #dcfce7; color: #15803d; }
.offline-check-field span.bad { background: #fee2e2; color: #b91c1c; }
.offline-check-field input.ok { border-color: #16a34a; box-shadow: 0 0 0 .16rem rgba(22, 163, 74, .12); }
.offline-check-field input.bad { border-color: #dc2626; box-shadow: 0 0 0 .16rem rgba(220, 38, 38, .12); }
.loan-farmer-details { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.loan-farmer-details > div { min-width: 0; display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7fbf8; }
.loan-farmer-details span { color: var(--muted); font-size: .72rem; font-weight: 850; text-transform: uppercase; }
.loan-farmer-details strong { font-size: .9rem; overflow-wrap: anywhere; }
.loan-farmer-loans { grid-column: 1 / -1; display: grid; gap: 6px; margin: -2px 0 12px; }
.loan-farmer-loan-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.loan-farmer-loan-row > span { min-width: 0; display: grid; gap: 2px; }
.loan-farmer-loan-row small { color: var(--muted); font-weight: 700; }
.loan-read-only-note { grid-column: 1 / -1; margin: 0 0 10px; padding: 10px; border-radius: 8px; background: #fff7ed; color: #9a3412; font-size: .86rem; font-weight: 750; }
.update-form[data-read-only="true"] input:disabled,
.update-form[data-read-only="true"] select:disabled,
.update-form[data-read-only="true"] textarea:disabled { opacity: 1; color: #53645a; -webkit-text-fill-color: #53645a; background: #f3f5f4; }
button { min-height: 46px; border: 1px solid transparent; border-radius: 8px; padding: 11px 14px; font-weight: 800; background: #eef3f0; color: var(--ink); transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
button:hover { background: #e4ece7; }
button:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem rgba(20, 114, 67, .16); }
button.primary { background: var(--green); color: #fff; width: 100%; box-shadow: 0 10px 22px rgba(20, 114, 67, .16); }
button.primary:hover { background: var(--green-dark); }
button:disabled { opacity: .55; }
.hidden { display: none !important; }
.hint, .message { color: var(--muted); font-size: .92rem; }
.message { min-height: 22px; margin-top: 10px; }
.message.ok { color: var(--green); }
.message.bad { color: var(--red); }
.status-pill { width: fit-content; margin: 0 auto; border-radius: 999px; padding: 6px 12px; background: #e7f6ed; color: var(--green); font-weight: 800; font-size: .88rem; }
.offline-main { min-height: 100vh; display: grid; align-content: start; gap: 10px; padding: 0 12px 92px; background: transparent; }
.offline-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; position: sticky; top: 0; z-index: 8; margin: 0 -12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: 0 8px 22px rgba(15, 23, 42, .08); backdrop-filter: blur(12px); background: rgba(255, 255, 255, .94); }
.offline-top span { display: block; color: var(--muted); font-size: .84rem; font-weight: 800; }
.offline-top strong { display: block; font-size: 1rem; }
.sync-strip { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding: 9px 11px; margin-top: 2px; border-color: var(--line-strong); }
.sync-strip span { color: var(--muted); font-size: .9rem; font-weight: 700; }
.offline-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 5px 6px max(5px, env(safe-area-inset-bottom)); }
.offline-tabs button { padding: 9px 3px; font-size: .84rem; min-width: 0; background: transparent; color: #627168; display: grid; place-items: center; gap: 3px; }
.offline-tabs button.active { background: transparent; color: var(--green); }
.tab-panel { padding: 15px; }
.tab-panel, .update-form, .farmer-profile-card, #farmerProfileOffline { scroll-margin-top: 140px; }
.summary-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.summary-mini-grid > div, .summary-mini-grid > button { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); box-shadow: 0 6px 16px rgba(16, 36, 26, .045); }
.summary-mini-grid span { display: block; color: var(--muted); font-size: .84rem; font-weight: 800; }
.summary-mini-grid strong { display: block; margin-top: 3px; font-size: 1.3rem; }
.summary-mini-grid .summary-card-link { width: 100%; min-height: 76px; text-align: left; color: var(--ink); cursor: pointer; }
.summary-card-link:hover, .summary-card-link:focus-visible { border-color: #78b18c; background: #edf8f1; outline: 0; box-shadow: 0 0 0 .18rem rgba(23, 107, 58, .12); }
.summary-mini-grid .summary-link-card { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 12px; align-items: center; width: 100%; min-height: 72px; text-align: left; background: #edf6ff; border-color: #a9ccec; color: var(--field-ink); }
.summary-link-card span small { display: block; margin-top: 3px; color: #59768f; font-size: .78rem; font-weight: 650; }
.summary-link-card strong { margin: 0; color: #0756a3; font-size: 1.55rem; }
.summary-link-card b { color: #1683d8; font-size: 1.45rem; }
.summary-link-card:hover, .summary-link-card:focus-visible { border-color: var(--field-focus); background: #e3f1ff; outline: 0; box-shadow: 0 0 0 .18rem rgba(22, 131, 216, .14); }
.summary-collapse { margin-top: 10px; }
.summary-collapse > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f7fbf8; border: 1px solid var(--line); color: var(--ink); text-align: left; }
.summary-collapse > button span { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; background: #e1f3e8; color: var(--green); flex: 0 0 auto; }
.summary-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.summary-collapse .summary-table-wrap { border-top: 0; border-radius: 0 0 8px 8px; }
.summary-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.summary-table th, .summary-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.summary-table th { background: #f2f7f4; color: #43554b; font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.summary-table th:last-child, .summary-table td:last-child { text-align: right; }
.summary-table tr:last-child td { border-bottom: 0; }
.summary-table tfoot th { padding: 9px 10px; border-top: 2px solid var(--line); background: #f7fbf8; text-align: left; }
.summary-table tfoot th:last-child { text-align: right; }
.plr-acre-summary-table { table-layout: auto; min-width: 700px; font-size: .86rem; }
.plr-acre-summary-table th, .plr-acre-summary-table td { padding: 8px 6px; }
.plr-acre-summary-table th:first-child, .plr-acre-summary-table td:first-child { min-width: 190px; overflow-wrap: anywhere; }
.plr-acre-summary-table th:nth-child(n+2), .plr-acre-summary-table td:nth-child(n+2) { text-align: right; }
.plr-acre-summary-table tfoot th:nth-child(n+2) { text-align: right; }
.summary-empty { padding: 10px; color: var(--muted); font-size: .92rem; }
.update-form { margin-top: 12px; }
.gps-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.gps-row button { background: #e8f1ff; color: var(--blue); }
.gps-row .gps-icon-button { width: 50px; min-width: 50px; height: 50px; min-height: 50px; padding: 11px; display: grid; place-items: center; border: 1px solid #9fc7e8; }
.gps-icon-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gps-icon-button:focus-visible { outline: 0; box-shadow: 0 0 0 .2rem rgba(22, 131, 216, .22); }
.offline-section-title { margin-top: 18px; }
.offline-list { display: grid; gap: 10px; margin-bottom: 12px; }
.offline-item { border: 1px solid var(--line); border-left: 5px solid var(--red); border-radius: 8px; padding: 12px; background: #fff; box-shadow: 0 6px 18px rgba(16, 36, 26, .045); }
.offline-item.done { border-left-color: #16a34a; }
.offline-item.progress { border-left-color: #d97706; }
.offline-item.tomorrow { border-left-color: var(--blue); background: #f7fbff; }
.offline-item h3 { margin: 0 0 6px; font-size: 1rem; }
.offline-item p { margin-bottom: 8px; color: #334155; }
.offline-item-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.offline-badge { display: inline-flex; border-radius: 999px; padding: 4px 8px; background: #eef2f7; color: var(--ink); font-size: .82rem; font-weight: 850; }
.offline-badge.high { background: #fee2e2; color: var(--red); }
.offline-badge.medium { background: #fef3c7; color: var(--amber); }
.offline-badge.low { background: #dcfce7; color: var(--green); }

.app-primary-action { min-height: 50px; }
.app-topbar .app-bar-logo { width: 38px; height: 38px; object-fit: contain; flex: 0 0 auto; }
.app-bar-title { min-width: 0; margin-right: auto; }
.app-bar-title strong { font-size: 1rem; }
.app-bar-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.app-icon-button { width: 42px; height: 42px; min-width: 42px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: #eef3f0; color: var(--green); font-size: 1.3rem; }
.app-icon-primary { background: var(--green); color: #fff; }
.sync-dot { width: 9px; height: 9px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .13); }
.sync-dot.offline { background: var(--red); box-shadow: 0 0 0 3px rgba(180, 35, 24, .13); }
.sync-strip button { color: var(--blue); background: #e8f1fb; padding: 8px 11px; }
.app-bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 760px); border: 0; border-top: 1px solid #cfdbd4; border-radius: 0; box-shadow: 0 -10px 26px rgba(15, 23, 42, .12); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.nav-icon { width: 36px; height: 29px; display: grid; place-items: center; border-radius: 16px; font-size: 1.3rem; line-height: 1; }
.app-bottom-nav button.active .nav-icon { background: #dcefe3; }
.app-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.app-section-heading h2 { margin: 2px 0 0; font-size: 1.12rem; }
.section-eyebrow { color: var(--green); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0; }
.date-chip { padding: 6px 9px; background: #edf4ff; color: var(--blue); border-radius: 6px; font-size: .8rem; font-weight: 850; }
.planning-window { padding: 11px 12px; margin-bottom: 12px; border-left: 4px solid var(--amber); background: #fff8e8; color: #6d4304; font-size: .9rem; font-weight: 700; }
.planning-window.open { border-left-color: var(--green); background: #eaf7ef; color: var(--green); }
.month-segment { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 13px; border: 1px solid #cbd8d0; border-radius: 7px; overflow: hidden; }
.month-segment button { border-radius: 0; background: #fff; color: #53635a; padding: 10px; }
.month-segment button.active { background: var(--green); color: #fff; }
.duty-register-card { cursor: pointer; }
.duty-register-card:hover, .duty-register-card:focus-visible { background: #f8fbf9; border-color: #9bc4aa; outline: 0; }
.offline-badge.duty-status.done { background: #dcfce7; color: #15803d; }
.offline-badge.duty-status.progress { background: #fef3c7; color: #92400e; }
.duty-detail-sheet { position: fixed; z-index: 31; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 760px); max-height: 88vh; overflow-y: auto; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-radius: 8px 8px 0 0; box-shadow: 0 -18px 48px rgba(15, 23, 42, .24); }
.duty-detail-status { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.duty-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.duty-detail-grid div, .duty-detail-block { display: grid; gap: 4px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f8fbf9; }
.duty-detail-grid span, .duty-detail-block span { color: var(--muted); font-size: .76rem; font-weight: 850; text-transform: uppercase; }
.duty-detail-grid strong { overflow-wrap: anywhere; }
.duty-detail-block { margin-bottom: 8px; }
.duty-detail-block p { margin: 0; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.duty-plan-sheet { position: fixed; z-index: 30; left: 50%; bottom: 0; transform: translateX(-50%); width: min(100%, 760px); max-height: 88vh; overflow-y: auto; margin: 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-radius: 8px 8px 0 0; box-shadow: 0 -18px 48px rgba(15, 23, 42, .24); }
.sheet-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; grid-column: 1 / -1; position: sticky; top: -18px; z-index: 2; padding: 4px 0 10px; background: #fff; }
.sheet-heading h2 { margin: 2px 0 0; }
.register-history { margin-top: 14px; }
.register-history-toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; background: #f4f7f5; border: 1px solid var(--line); }
.register-history-toggle span { font-size: 1.15rem; }
.register-change { border-left-color: #64748b; }
.register-change small { display: block; color: var(--muted); margin-top: 4px; }
.offline-item-action { display: flex; justify-content: flex-end; margin-top: 9px; }
.offline-item-action button { color: var(--blue); background: #e8f1fb; padding: 8px 12px; }
.tool-menu { display: grid; gap: 8px; }
.tool-menu > button, .tool-menu > a { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; width: 100%; min-height: 46px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-weight: 800; text-align: left; text-decoration: none; }
.tool-menu > button > span:nth-child(2), .tool-menu > a > span:nth-child(2) { display: grid; gap: 2px; }
.tool-menu small { color: var(--muted); font-size: .84rem; font-weight: 600; }
.tool-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: #e8f1fb; color: var(--blue); font-weight: 900; }
.tool-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tool-menu b { color: var(--muted); font-size: 1.35rem; }
.form-section-heading { margin: 15px 0 10px; padding-top: 13px; border-top: 1px solid var(--line); color: #33473c; font-size: .88rem; font-weight: 900; text-transform: uppercase; }
.selectable-list { margin-bottom: 8px; }
.cultivation-live-bar { margin-bottom: 10px; padding: 11px; border: 1px solid #b8d6ec; border-radius: 8px; background: #f3f9ff; }
.cultivation-live-bar label { margin-bottom: 0; }
.cultivation-live-bar input { background: #fff; }
.offline-record-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 18px; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-left: 4px solid var(--amber); background: #fff; text-align: left; }
.offline-record-row:hover, .offline-record-row:focus-visible { background: #f6faf7; border-color: #9bc4aa; outline: 0; }
.record-main, .record-side { min-width: 0; display: grid; gap: 3px; }
.record-main strong, .record-main small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record-main small, .record-side small { color: var(--muted); font-size: .82rem; font-weight: 650; }
.record-side { justify-items: end; text-align: right; }
.offline-record-row > b { color: var(--muted); font-size: 1.25rem; }
.plr-application-row.pending { border-left-color: #d97706; }
.plr-application-row.approved { border-left-color: #2563eb; }
.plr-application-row.done { border-left-color: #16a34a; }
.plr-application-row.returned { border-left-color: #7c3aed; }
.plr-application-row.rejected { border-left-color: #dc2626; }
.offline-badge.plr-status { max-width: 150px; justify-content: center; text-align: center; white-space: normal; }
.offline-badge.plr-status.pending { background: #fef3c7; color: #92400e; }
.offline-badge.plr-status.approved { background: #dbeafe; color: #1d4ed8; }
.offline-badge.plr-status.done { background: #dcfce7; color: #15803d; }
.offline-badge.plr-status.returned { background: #ede9fe; color: #6d28d9; }
.offline-badge.plr-status.rejected { background: #fee2e2; color: #b91c1c; }
.plr-application-detail { margin-bottom: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7fbf8; }
.plr-application-detail > button { width: 100%; }
.plr-search-box { display: grid; grid-template-columns: 1fr 180px; gap: 8px 12px; }
.plr-search-box .message { grid-column: 1 / -1; }
.farmer-search-box { padding: 12px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 8px; background: #f7fbf8; }
.farmer-search-box:has(#plrAcreFilterType) { display: grid; grid-template-columns: 150px 1fr; gap: 8px 10px; }
.farmer-search-box:has(#plrAcreFilterType) label { margin-bottom: 0; }
.farmer-search-box:has(#plrAcreFilterType) .message { grid-column: 1 / -1; }
.farmer-profile-card { display: grid; gap: 12px; margin-top: 14px; }
.farmer-profile-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.farmer-profile-head h2 { margin: 3px 0; }
.farmer-profile-head small { color: var(--muted); font-weight: 700; }
.farmer-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.farmer-profile-grid div, .farmer-profile-note { display: grid; gap: 3px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.farmer-profile-grid span, .farmer-profile-note span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.farmer-profile-grid strong, .farmer-profile-note strong { font-size: .94rem; overflow-wrap: anywhere; }
.farmer-profile-card details { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.farmer-profile-card summary { display: flex; justify-content: space-between; align-items: center; padding: 12px; cursor: pointer; color: var(--ink); font-weight: 850; background: #f7fbf8; }
.farmer-profile-card summary span { min-width: 25px; padding: 3px 7px; border-radius: 999px; background: #dcefe3; color: var(--green); text-align: center; font-size: .75rem; }
.farmer-profile-list { display: grid; }
.farmer-profile-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 11px 12px; border-top: 1px solid var(--line); }
.farmer-profile-row > div { min-width: 0; display: grid; gap: 3px; }
.farmer-profile-row > div:last-child { justify-items: end; text-align: right; }
.farmer-profile-row strong, .farmer-profile-row small { overflow-wrap: anywhere; }
.farmer-profile-row strong.farmer-land-plr { font-size: .88rem; }
.farmer-profile-row small { color: var(--muted); font-size: .82rem; font-weight: 650; }

@media (min-width: 720px) {
    .offline-app { padding: 0; }
    .update-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
    .update-form label:has(textarea), .update-form button { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .summary-mini-grid { grid-template-columns: 1fr 1fr; }
    .loan-farmer-details { grid-template-columns: 1fr 1fr; }
    .plr-search-box { grid-template-columns: 1fr; }
    .plr-search-box .message { grid-column: auto; }
    .farmer-search-box:has(#plrAcreFilterType) { grid-template-columns: 1fr; }
    .farmer-search-box:has(#plrAcreFilterType) .message { grid-column: auto; }
    .plr-acre-summary-table { width: 100%; min-width: 0; }
    .plr-acre-summary-table thead { display: none; }
    .plr-acre-summary-table tbody, .plr-acre-summary-table tfoot { display: block; }
    .plr-acre-summary-table tbody tr, .plr-acre-summary-table tfoot tr {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 7px;
        border-bottom: 1px solid var(--line);
    }
    .plr-acre-summary-table tbody td, .plr-acre-summary-table tfoot th {
        min-width: 0;
        padding: 5px 2px;
        border: 0;
        text-align: center !important;
        font-size: .82rem;
    }
    .plr-acre-summary-table tbody td:first-child, .plr-acre-summary-table tfoot th:first-child {
        grid-column: 1 / -1;
        min-width: 0;
        padding: 4px 3px 7px;
        border-bottom: 1px dashed var(--line);
        text-align: left !important;
        font-weight: 850;
    }
    .plr-acre-summary-table [data-label]::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: .68rem;
        font-weight: 800;
    }
    .plr-acre-summary-table tfoot tr { background: #f1f7f3; border-bottom: 0; }
    .plr-acre-summary-table tfoot th { background: transparent; }
}
