/* Farm inputs: farmers request equipment and pesticides, suppliers send quotes (see js/inputs.js). Colours come from the theme tokens, so dark mode follows. */
#page-marketplace .tab-btn .tab-count{pointer-events:none}            /* a tap on the count badge now switches the tab too */
#page-marketplace.in-inputs .filter-bar{display:none}                  /* the top search and sort belong to produce listings only */
/* each role sees only the header buttons that apply to it: farmers request inputs and list produce, buyers post produce requests, suppliers quote */
#page-marketplace.in-role-agro .page-hdr-actions [onclick*="buyer-request"],
#page-marketplace.in-role-farmer .page-hdr-actions [onclick*="buyer-request"]{display:none}

.in-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}
.in-filters input[type=search]{flex:1 1 180px;min-width:0}
.in-filters select{flex:0 1 170px;width:auto}
.in-chips{display:flex;gap:6px;flex-wrap:wrap}
.in-chip{border:1px solid var(--border);background:var(--surface,transparent);color:var(--text-secondary);border-radius:999px;padding:7px 14px;font:inherit;font-size:13px;font-weight:600;cursor:pointer;min-height:36px}
.in-chip.active{background:var(--forest,#3D6B38);border-color:var(--forest,#3D6B38);color:#fff}

.in-note{font-size:12px;line-height:1.45;color:var(--text-secondary);margin:8px 0 0}
.in-won{color:#166534;font-weight:600}
:root[data-theme="dark"] .in-won{color:#86EFAC}
.in-summary{padding:12px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--gray-50);margin-bottom:12px}

.in-mine-card{padding:14px;margin-bottom:12px}
.in-mine-hdr{display:flex;gap:10px;justify-content:space-between;align-items:flex-start;margin-bottom:10px}
.in-mine-title{font-weight:700;font-size:15px;display:flex;gap:8px;align-items:center}
.in-mine-act{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.in-quotes{display:grid;gap:8px}

.in-quote{display:flex;gap:12px;justify-content:space-between;align-items:flex-start;padding:12px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--gray-50)}
.in-quote.is-won{border-color:#16A34A;background:rgba(22,163,74,.08)}
.in-quote.is-lost{opacity:.6}
.in-quote-main{min-width:0;flex:1}
.in-quote-name{font-weight:700;font-size:14px}
.in-quote-price{font-weight:800;font-size:18px;color:var(--maize,#B45309);margin:2px 0}
.in-quote-meta{font-size:12px;color:var(--text-secondary)}
.in-quote-note{font-size:13px;margin-top:6px;overflow-wrap:anywhere}
.in-quote-act{display:flex;flex-direction:column;gap:6px;flex-shrink:0}
.in-quote-act .btn{white-space:nowrap}

@media (max-width:520px){
  .in-quote{flex-direction:column}
  .in-quote-act{flex-direction:row;width:100%}
  .in-quote-act .btn{flex:1;justify-content:center}
  .in-filters select{flex:1 1 100%}
}
