.health-passport details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;font-weight:850;font-size:17px;list-style:none}.health-passport details>summary::-webkit-details-marker{display:none}.health-passport details[open]>summary{margin-bottom:12px}.health-status-pill{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:900;line-height:1.2}.health-status-pill.ok{background:#dff2e5;color:#21673b}.health-status-pill.warning{background:#fff0cc;color:#805300}.health-status-pill.danger{background:#ffe0e3;color:#982b36}.health-status-pill.unknown{background:#eceae7;color:#65605b}.health-assessment{display:flex;flex-direction:column;gap:4px;padding:11px 12px;border-radius:12px;margin:10px 0 12px;border-left:5px solid #7d7771;background:#f3f1ee}.health-assessment.ok{border-left-color:#4f8f68;background:#eef8f1}.health-assessment.warning{border-left-color:#d0912d;background:#fff8e8}.health-assessment.danger{border-left-color:#b94a58;background:#fff0f1}.health-assessment span{font-size:13px;line-height:1.45}.health-history{margin:12px 0}.health-history>div{display:grid;grid-template-columns:95px 1fr auto;gap:8px;align-items:center;border-top:1px solid var(--line);padding:9px 0}.health-history span{font-size:13px;color:var(--muted)}.health-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(150px,1fr) minmax(200px,2fr);gap:10px;align-items:center;padding:11px 0;border-top:1px solid var(--line)}.health-row:first-of-type{border-top:0}.health-alert{border-left:4px solid #d0912d;padding:7px 9px;background:#fff5df;border-radius:8px}.checkline{display:flex!important;align-items:center;gap:8px}.checkline input{width:auto!important;margin:0}.fecal-card{border-left:5px solid #4f8f68}.health-status-entry{border:1px solid #d6b46e;background:linear-gradient(145deg,rgba(255,252,241,.96),rgba(244,236,217,.9))}

.health-view-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:14px 0}.health-view-tabs button{display:flex;justify-content:center;align-items:center;gap:8px;min-height:48px;border:1px solid var(--line);border-radius:15px;background:var(--surface);color:var(--ink);font-weight:800;padding:10px 13px}.health-view-tabs button b{display:inline-grid;place-items:center;min-width:25px;height:25px;border-radius:999px;background:var(--surface-soft);font-size:11px}.health-view-tabs button.active{border-color:#b88727;background:linear-gradient(145deg,#c69a3c,#a9781d);color:#fff;box-shadow:0 7px 18px rgba(139,96,18,.2)}.health-view-tabs button.active b{background:rgba(255,255,255,.22)}
.health-overview-card{padding:16px;overflow:hidden}.health-overview-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.health-overview-title h2{margin:0 0 3px}.health-overview-title .actions{margin:0}.health-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 15px}.health-summary-grid>div{display:flex;align-items:center;gap:9px;border-radius:13px;padding:9px 11px;border:1px solid var(--line);background:var(--surface-soft)}.health-summary-grid b{display:grid;place-items:center;min-width:31px;height:31px;border-radius:10px;font-size:16px}.health-summary-grid span{font-size:11px;font-weight:800}.health-summary-grid .danger b{background:#ffe0e3;color:#982b36}.health-summary-grid .warning b{background:#fff0cc;color:#805300}.health-summary-grid .ok b{background:#dff2e5;color:#21673b}.health-summary-grid .unknown b{background:#eceae7;color:#65605b}
.health-table-wrap{width:100%;overflow:auto;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.health-status-table{width:100%;min-width:880px;border-collapse:separate;border-spacing:0;font-size:12px}.health-vaccination-table{min-width:1280px}.health-status-table th,.health-status-table td{padding:10px;border-right:1px solid var(--line);border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.health-status-table th:last-child,.health-status-table td:last-child{border-right:0}.health-status-table tbody tr:last-child td{border-bottom:0}.health-status-table th{position:sticky;top:0;z-index:2;background:#f4ecdc;color:var(--ink);font-size:11px;white-space:nowrap}.health-status-table th:first-child,.health-status-table td:first-child{position:sticky;left:0;z-index:1;background:var(--surface)}.health-status-table th:first-child{z-index:3;background:#f4ecdc}.health-status-table tr.danger td:first-child{box-shadow:inset 5px 0 #b94a58}.health-status-table tr.warning td:first-child{box-shadow:inset 5px 0 #d0912d}.health-status-table tr.ok td:first-child{box-shadow:inset 5px 0 #4f8f68}.health-status-table tr.unknown td:first-child{box-shadow:inset 5px 0 #8b8781}.health-horse-column{min-width:150px}.health-horse-column small,.health-status-table td>small,.health-action-column>small{display:block;margin-top:4px;color:var(--muted);line-height:1.35}.health-horse-link{display:block;width:auto;border:0;background:none!important;padding:0!important;color:var(--ink)!important;font-size:14px;font-weight:900;text-align:left;text-decoration:underline;text-decoration-color:rgba(169,120,29,.35);text-underline-offset:3px;box-shadow:none!important}.health-vaccine-cell{display:flex;flex-direction:column;gap:3px;min-width:118px;padding-left:8px;border-left:4px solid #8b8781}.health-vaccine-cell.ok{border-color:#4f8f68}.health-vaccine-cell.warning{border-color:#d0912d}.health-vaccine-cell.danger{border-color:#b94a58}.health-vaccine-cell b{font-size:12px}.health-vaccine-cell span,.health-vaccine-cell small{font-size:10px;line-height:1.3;color:var(--muted)}.health-action-column{min-width:210px}.health-row-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}.health-row-actions button{margin:0!important;font-size:10px!important;padding:6px 8px!important}
@media(max-width:760px){.health-view-tabs{grid-template-columns:1fr}.health-view-tabs button{justify-content:space-between}.health-overview-title{flex-direction:column}.health-overview-title>button,.health-overview-title>.actions{width:100%}.health-overview-title>.actions button{flex:1}.health-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.health-row{grid-template-columns:1fr}.health-history>div{grid-template-columns:88px 1fr}.health-history button{grid-column:2}.health-passport details>summary{align-items:flex-start;flex-direction:column}}
