/* AgroTrag v9 — clear herd/member workflows, never infer individual medical status. */
.herd-panel { margin:20px 0; border:1px solid #d6e8d5; border-radius:18px; background:#fff; padding:23px; box-shadow:0 6px 30px #143b270e; }
.herd-head small { color:#478661; font-size:10px; letter-spacing:1.3px; font-weight:850; }
.herd-head h2 { color:#214f35; font-size:22px; margin:8px 0; }
.herd-head p { font-size:14px; color:#607c6a; margin:6px 0; line-height:1.6; }
.herd-head .herd-disclaimer { padding:11px 12px; background:#f4f8f0; border:1px solid #e1ecda; border-radius:11px; color:#516a59; font-size:12px; margin:14px 0; }
.herd-members { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:17px 0; }
.herd-member { display:flex; gap:12px; align-items:center; width:100%; min-width:0; border:1px solid #dce9dd; border-radius:13px; padding:12px; background:#fff; color:#254e33; text-align:left; min-height:85px; cursor:pointer; }
.herd-member:hover,.herd-member:focus-visible { background:#f2f9ef; border-color:#9bc8a4; }
.herd-member-icon { flex:0 0 39px; width:39px; height:39px; display:grid; place-items:center; background:#e9f5e8; border-radius:10px; font-size:23px; }
.herd-member>span:nth-child(2) { flex:1; min-width:0; }
.herd-member strong { font-size:14px; display:block; overflow-wrap:anywhere; }
.herd-member small { color:#708775; font-size:11px; line-height:1.5; display:block; margin-top:3px; }
.herd-member b { font-size:21px; color:#92ad99; }
.herd-blank { font-size:13px; color:#67826e; padding:18px 12px; background:#f7fbf5; border-radius:12px; }
.herd-actions { display:flex; flex-wrap:wrap; gap:9px; margin:16px 0; }
.herd-actions .button { min-height:54px; flex:1; white-space:normal; }
.herd-footnote { font-size:12px; color:#748675; line-height:1.6; margin:14px 0 0; }
.herd-parent { display:flex; gap:12px; justify-content:space-between; align-items:center; flex-wrap:wrap; margin:17px 0; padding:14px 16px; border-radius:13px; background:#f1f8ed; border:1px solid #e0efdc; color:#335f41; font-size:14px; }
.herd-modal { max-width:620px; max-height:90dvh; overflow-y:auto; }
.herd-modal form { display:grid; gap:13px; }
.herd-modal .wizard-hint { font-size:14px; color:#64816b; line-height:1.6; }
.herd-modal .field { margin:0; }
.herd-modal .field label { display:block; font-size:15px; font-weight:800; color:#32553d; margin-bottom:7px; }
.herd-modal .field :is(input,select,textarea) { width:100%; border:1px solid #ccdfcf; background:white; border-radius:11px; padding:12px; min-height:52px; font-size:16px; }
.herd-modal .advanced-fields { border:1px solid #e0e9de; border-radius:12px; padding:0 13px; }
.herd-modal .advanced-fields summary { display:flex; align-items:center; min-height:48px; color:#3d7953; font-weight:800; font-size:13px; cursor:pointer; }
.herd-modal .advanced-fields .field { margin:0 0 15px; }
.herd-submit { min-height:59px; width:100%; font-size:16px; font-weight:850; margin-top:7px; }
.herd-select-all { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; color:#2a5739; font-size:15px; }
.herd-select-all>span { background:#eef7eb; border-radius:99px; color:#35714a; padding:6px 11px; font-size:12px; font-weight:800; }
.herd-select-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; max-height:300px; overflow-y:auto; padding:3px; }
.herd-check { display:flex; align-items:center; gap:12px; padding:12px; min-height:66px; border:1px solid #dbe8db; border-radius:12px; cursor:pointer; background:#fff; }
.herd-check:has(input:checked) { background:#eaf6e7; border-color:#328650; }
.herd-check input { flex-shrink:0; width:25px!important; height:25px!important; min-height:25px!important; accent-color:#21794b; }
.herd-check>span { min-width:0; }
.herd-check strong { display:block; font-size:13px; color:#2a593c; overflow-wrap:anywhere; }
.herd-check small { display:block; font-size:11px; color:#768975; margin-top:2px; }
.herd-medication { background:#f7fbf5; border:1px solid #dce9d7; padding:15px; border-radius:12px; display:grid; gap:12px; }
.herd-medication[hidden],#hOther[hidden] { display:none!important; }
.herd-consent { display:flex; align-items:flex-start; gap:11px; border:1px solid #e9cfa7; background:#fff7e8; border-radius:11px; padding:13px; color:#725324; font-size:12px; line-height:1.5; font-weight:700; cursor:pointer; }
.herd-consent input { margin:2px 0 0; flex-shrink:0; height:24px!important; width:24px!important; min-height:24px!important; accent-color:#317c4e; }
@media(max-width:760px){
 .herd-panel { padding:17px 13px; margin:15px 0; }
 .herd-members,.herd-select-list { grid-template-columns:minmax(0,1fr); }
 .herd-modal { padding-bottom:calc(16px + env(safe-area-inset-bottom)); }
 .herd-member { min-height:75px; }
 .herd-actions { flex-direction:column; }
 .herd-select-list { max-height:33dvh; }
 .herd-modal .field :is(input,select,textarea) { font-size:17px; }
}
.agro-comfort .herd-check { min-height:78px; }
.agro-comfort .herd-member { min-height:95px; }
.agro-comfort .herd-member strong { font-size:18px; }
.agro-comfort .herd-modal .field label { font-size:18px; }
@media print { .herd-panel,.herd-parent { display:none!important; } }
