.harvest-page [hidden]{display:none!important}
.harvest-farm-section{margin:24px 0}.harvest-section-heading,.harvest-company-head{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:14px}
.harvest-section-heading h2{font-size:24px}.harvest-section-heading .profile-field{width:180px;max-width:100%}.harvest-farm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.harvest-farm-card{display:block;padding:16px;border:1px solid var(--line-d);border-radius:12px;background:var(--moss);color:var(--cotton);text-decoration:none;min-width:0}.harvest-farm-card:hover{border-color:var(--gold)}
.harvest-farm-card h3{color:var(--gold-2);font-size:20px;line-height:1.3;overflow-wrap:anywhere;margin:0}.harvest-farm-card>small{display:block;color:var(--cotton-2);margin-top:5px}
.harvest-farm-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:14px}.harvest-farm-metrics span{display:block;font-size:13px;color:var(--cotton-2)}.harvest-farm-metrics b{display:block;font-size:21px;line-height:1.3;color:var(--gold-2);overflow-wrap:anywhere}
.harvest-total-preview{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px;border:1px solid #cbd5bd;border-radius:8px;background:#e8eddf}.harvest-total-preview span{font-size:14px;font-weight:700}.harvest-total-preview output{font-size:23px;font-weight:800;overflow-wrap:anywhere;text-align:right;color:#374d2c}
.harvest-check{display:flex;align-items:center;gap:8px;font-size:13px;margin:12px 0 18px;color:#516044}.harvest-check input{width:18px;height:18px}
.harvest-page .purchase-list-card h3{overflow-wrap:anywhere}.harvest-page .purchase-list-card.is-void{opacity:.65}.harvest-page .ledger-amounts b{overflow-wrap:anywhere}.harvest-company-head h3{margin:0}.harvest-detail-title{font-size:18px;margin:22px 0 12px}.harvest-company-total{margin:14px 0}
.harvest-page .stock-row-actions{flex-wrap:wrap}.harvest-page .inventory-view-tabs button{white-space:normal}
@media(max-width:760px){.harvest-farm-grid{grid-template-columns:1fr}.harvest-section-heading{align-items:flex-start}.harvest-section-heading h2{font-size:20px}.harvest-section-heading .profile-field{width:130px;flex-shrink:0}.harvest-farm-card{padding:14px}.harvest-farm-metrics b{font-size:20px}.harvest-total-preview{flex-wrap:wrap}.harvest-total-preview output{font-size:22px}.harvest-company-head{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){.harvest-page *{scroll-behavior:auto!important}}

.harvest-farm-section>.payment-help{color:var(--muted-d)}
.harvest-page #sale-status,.harvest-page #receipt-status{font-size:14px;line-height:1.6;margin-top:14px}
.harvest-page .is-error{color:#b43129;font-weight:650}
.harvest-page .purchase-list-card .ledger-amounts{grid-template-columns:repeat(2,minmax(0,1fr))}

.harvest-page .inventory-summary article{min-width:0}.harvest-page .inventory-summary b{min-width:0;overflow-wrap:anywhere}
.harvest-total-preview output{min-width:0}
@media(max-width:760px){.harvest-section-heading{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:12px}.harvest-section-heading h2{font-size:18px;line-height:1.25;letter-spacing:-.25px}.harvest-section-heading .profile-field{width:120px}}

.harvest-history-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:5px;border:1px solid #cbd3bf;border-radius:10px;background:#e9eddf;margin:0 0 18px}
.harvest-history-tabs button{font:750 15px/1.4 var(--f-body);min-height:46px;padding:9px;border:0;border-radius:7px;color:#35482a;background:transparent;cursor:pointer}
.harvest-history-tabs button[aria-selected="true"]{background:var(--gold);color:var(--ink)}
.harvest-sale-group{border:1px solid var(--line-l);border-radius:11px;background:#fffef9;overflow:hidden}
.harvest-sale-group>summary{display:block;cursor:pointer;list-style:none;padding:16px}
.harvest-sale-group>summary::-webkit-details-marker{display:none}
.harvest-group-heading{display:flex;justify-content:space-between;gap:12px;align-items:start;color:var(--ink)}
.harvest-group-heading>b{font-size:19px;line-height:1.35;overflow-wrap:anywhere}
.harvest-group-arrow{flex:none;color:var(--gold-ink);font-size:21px}
.harvest-sale-group[open] .harvest-group-arrow{transform:rotate(180deg)}
.harvest-sale-group>summary>small{display:block;margin-top:5px;color:var(--muted-l);font-size:12px}
.harvest-group-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.harvest-group-metrics>div{min-width:0}.harvest-group-metrics span{display:block;color:var(--muted-l);font-size:12px;line-height:1.4}
.harvest-group-metrics strong{display:block;margin-top:5px;font-size:18px;line-height:1.3;color:var(--ink);overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.harvest-group-records{display:grid;gap:12px;padding:14px;border-top:1px solid var(--line-l);background:#edf0e4}
@media(max-width:760px){.harvest-history-tabs button{font-size:14px}.harvest-group-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.harvest-group-metrics>div:last-child{grid-column:1/-1}.harvest-group-records{padding:10px}.harvest-group-heading>b{font-size:18px}}

.harvest-page .harvest-company-row{border:1px solid var(--line-l);border-radius:8px;cursor:default}
.harvest-page .harvest-detail-title{overflow-wrap:anywhere}

/* Keep company record counts next to their company name. */
.harvest-group-label{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 12px;min-width:0}
.harvest-group-label>b{font-size:19px;line-height:1.35;overflow-wrap:anywhere;min-width:0}
.harvest-group-label>small{color:var(--muted-l);font-size:12px;line-height:1.4}
@media(max-width:760px){.harvest-group-label>b{font-size:18px}}
