/* Cows records and reports: document layout without interactive data grids. */
.cows-page-toolbar, .cows-record-heading, .cows-record-pager { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--app-space-4); }
.cows-page-toolbar { margin:24px 0 20px; }
.cows-page-toolbar h2 { display:flex; align-items:center; gap:10px; margin:0; }
.cows-count { padding:3px 9px; border-radius:20px; background:#edf3e7; color:#416238; font-size:12px; font-weight:600; }
.cows-record-list { display:flex; flex-direction:column; gap:var(--app-space-6); min-width:0; }
.cows-record-slot, .cows-record { min-width:0; max-width:100%; }
.cows-record-slot:focus { outline:2px solid var(--app-accent); outline-offset:3px; scroll-margin-block:1rem; }
.cows-record { border:1px solid var(--app-border); border-radius:16px; background:var(--app-surface); overflow:hidden; }
.cows-record-heading { padding:var(--app-space-5); border-bottom:1px solid #e7ede3; margin-bottom:var(--app-space-5); background:linear-gradient(120deg,#f4f8ef,var(--app-surface)); }
.cows-record-heading > div { min-width:0; }
.cows-record-heading .mixture-name { margin:0; overflow-wrap:anywhere; }
.cows-record-heading h3 { margin:0; font-size:22px; color:var(--app-heading); }
.cows-record-eyebrow { margin:0 0 6px; color:#64785e; font-size:11px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; }
.cows-record-meta { margin:8px 0 0; color:#62705f; font-size:13px; }
.cows-contact-section { min-width:0; margin-bottom:var(--app-space-6); }
.cows-contact-list { display:grid; gap:var(--app-space-3); margin:0; padding:0; list-style:none; }
.cows-contact { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; align-items:center; gap:var(--app-space-4); padding:var(--app-space-4); }
.cows-contact-identity { display:flex; align-items:center; gap:var(--app-space-3); }
.cows-contact-identity > div, .cows-contact-methods { min-width:0; overflow-wrap:anywhere; }
.cows-contact-identity h3, .cows-contact-identity p, .cows-contact-methods, .cows-contact-methods dd { margin:0; }
.cows-contact-identity h3 { color:var(--app-heading); font-size:1rem; }
.cows-contact-identity p, .cows-contact-methods dt { color:var(--app-text-muted); font-size:.875rem; }
.cows-contact-methods { display:grid; gap:var(--app-space-2); }
.cows-contact-methods a { text-decoration:underline; text-underline-offset:.15em; }
.cows-contact-edit { grid-column:-2 / -1; justify-self:start; }
@media(max-width:767.98px) { .cows-contact { grid-template-columns:minmax(0,1fr); justify-items:start; } }
.cows-farm-places { min-width:0; padding-bottom:var(--app-space-5); }
.cows-farm-places .cows-record-list { gap:var(--app-space-4); }
.cows-farm-places .cows-record-heading { margin-bottom:0; border-bottom:0; }
.cows-farm-places .cows-record-heading h3 { overflow-wrap:anywhere; }
.cows-farm-stables { border-top:1px solid var(--app-border); padding:var(--app-space-4) var(--app-space-5); }
.cows-farm-stable-heading, .cows-farm-stable-row { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:var(--app-space-3); }
.cows-farm-stable-heading { margin-bottom:var(--app-space-3); }
.cows-farm-stable-heading h4, .cows-farm-stable-row h5 { margin:0; color:var(--app-heading); font-size:1rem; overflow-wrap:anywhere; }
.cows-farm-stable-list { list-style:none; padding:0; margin:0; }
.cows-farm-stable-row { padding:var(--app-space-3) 0; }
.cows-farm-stable-row + .cows-farm-stable-row { border-top:1px solid var(--app-border); }
.cows-farm-stable-row > div { min-width:0; }
.cows-farm-stable-row dl { display:flex; gap:var(--app-space-3); flex-wrap:wrap; margin:6px 0 0; font-size:.875rem; }
.cows-farm-stable-row dl > div { min-width:0; }
.cows-farm-stable-row dt { color:var(--app-text-muted); }
.cows-farm-stable-row dd { margin:2px 0 0; overflow-wrap:anywhere; }
@media(max-width:599.98px) { .cows-farm-stables { padding:var(--app-space-4); } }
.cows-daily-sections { display:flex; flex-direction:column; gap:28px; padding:0 20px 20px; min-width:0; }
.cows-daily-sections section { min-width:0; }
.cows-daily-sections h3 { margin:0 0 14px; color:var(--app-heading); font-size:18px; }
.cows-record .cows-daily-sections .cows-matrix-region { margin:0; max-width:100%; }
.cows-record .cows-daily-sections .cows-matrix-hint { margin:8px 0 0; }
.cows-load-groups { display:grid; gap:var(--app-space-3); margin-top:var(--app-space-3); }
.cows-load-group { min-width:0; padding:var(--app-space-4); border:1px solid var(--app-border); border-radius:12px; }
.cows-load-group > header { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; gap:var(--app-space-3); }
.cows-load-group h4 { margin:0; color:var(--app-heading); overflow-wrap:anywhere; }
.cows-load-group .cows-record-meta { margin:4px 0 0; }
.cows-load-list { display:grid; gap:var(--app-space-2); margin-top:var(--app-space-3); }
.cows-load { border-top:1px solid var(--app-border); }
.cows-load summary { padding:var(--app-space-2) 0; cursor:pointer; color:var(--app-heading); font-weight:600; }
.cows-load summary:focus-visible { outline:2px solid var(--app-accent); outline-offset:2px; }
.cows-load dl { display:grid; grid-template-columns:minmax(0, 1fr) auto; gap:var(--app-space-2) var(--app-space-3); margin:0 0 var(--app-space-2); }
.cows-load dt { overflow-wrap:anywhere; }
.cows-load dd { margin:0; text-align:right; }
.cows-record-pager { margin-top:var(--app-space-6); padding-top:16px; border-top:1px solid var(--app-border); color:#53634e; font-size:13px; }
.cows-matrix-region { min-width:0; max-width:100%; overflow-x:auto; border-radius:12px; scrollbar-color:#9caf96 #edf2e9; }
.cows-matrix-region:focus-visible { outline:2px solid var(--app-accent); outline-offset:3px; }
.cows-record .cows-matrix-region { margin:0 20px 20px; max-width:calc(100% - 40px); }
.cows-matrix { width:100%; border-collapse:separate; border-spacing:0; border:1px solid var(--app-border); border-radius:12px; overflow:hidden; font-size:13px; }
.cows-matrix caption { text-align:left; color:#61725a; font-size:12px; padding:0 0 12px; }
.cows-matrix th, .cows-matrix td { padding:14px 16px; min-width:140px; border-bottom:1px solid #e7ede3; vertical-align:middle; overflow-wrap:anywhere; }
.cows-matrix thead th { background:#eef4e9; color:#385b32; font-weight:600; text-align:right; }
.cows-matrix th:first-child { position:sticky; left:0; z-index:1; min-width:180px; text-align:left; box-shadow:inset -1px 0 #e3eadf; }
.cows-matrix tbody th { background:var(--app-surface); font-weight:500; }
.cows-matrix td { text-align:right; font-variant-numeric:tabular-nums; }
.cows-matrix.cows-mixture-composition th, .cows-matrix.cows-mixture-composition td { min-width:0; }
.cows-matrix.cows-mixture-composition th:first-child { position:static; width:50%; box-shadow:none; }
.cows-matrix tbody tr:last-child > * { border-bottom:0; }
.cows-matrix th small { display:block; margin-top:4px; color:#697b63; font-size:11px; font-weight:400; }
.cows-matrix .cows-matrix-total > * { border-top:2px solid #a4bf83; background:#eef5e4; color:#24542f; font-weight:700; }
.cows-matrix-hint { display:none; color:var(--app-text-muted); font-size:12px; margin:8px 0 0; }
.cows-back-link { display:inline-block; margin-bottom:var(--app-space-5); }
.cows-report-sections { display:flex; flex-direction:column; gap:32px; min-width:0; }
.cows-report-section { padding:var(--app-space-6); min-width:0; border:1px solid var(--app-border); border-radius:16px; background:var(--app-surface); }
.cows-section-heading { display:flex; align-items:flex-start; gap:var(--app-space-3); margin-bottom:22px; }
.cows-section-heading > span { display:grid; place-items:center; flex-shrink:0; width:32px; height:32px; background:#edf4e6; color:#537633; border-radius:10px; font-size:12px; font-weight:600; }
.cows-section-heading h2 { margin:0 0 6px; color:var(--app-heading); font-size:20px; }
.cows-section-heading p { margin:0; color:var(--app-text-muted); font-size:13px; line-height:1.5; }
.cows-metric-groups { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:var(--app-space-4); }
.cows-metric-group { min-width:0; padding:var(--app-space-5); border:1px solid #e0e9d9; border-radius:12px; background:var(--app-surface-subtle); }
.cows-metric-group h3 { margin:0; color:#31512e; font-size:16px; overflow-wrap:anywhere; }
.cows-group-location { margin:4px 0 0; color:#6c7c63; font-size:12px; }
.cows-metric-group dl { margin:16px 0 0; }
.cows-metric-group dl > div { display:flex; justify-content:space-between; align-items:baseline; gap:var(--app-space-4); padding:10px 0; border-bottom:1px solid #e2eadb; }
.cows-metric-group dl > div:last-child { border-bottom:0; }
.cows-metric-group dt { min-width:0; font-size:13px; color:#5e6e57; overflow-wrap:anywhere; }
.cows-metric-group dd { margin:0; text-align:right; color:#283e25; font-size:14px; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.cows-metric-group .cows-metric-emphasis { margin-top:8px; padding:14px 12px; border-radius:8px; background:#e9f2dc; }
.cows-metric-emphasis dd { color:#245f31; font-size:18px; }
@media(max-width:599.98px) { .cows-report-section { padding:var(--app-space-4); } .cows-record-heading { padding:var(--app-space-4); } .cows-record .cows-matrix-region { margin:0 16px 16px; max-width:calc(100% - 32px); } .cows-metric-group { padding:var(--app-space-4); } .cows-matrix th, .cows-matrix td { padding:var(--app-space-3); min-width:120px; } .cows-matrix th:first-child { min-width:150px; } .cows-matrix-hint { display:block; } .cows-record .cows-matrix-hint { margin:0 16px 16px; } }
