/* modules/equine/css/equine.css - Equine module styles (roadmap XfBA0): rug cards and wardrobe, the horse share card photo, the Feed plan table.
   Loaded after assets/css/app.css (config/assets.php); uses its :root variables. */
/* Today's Weather horse cards (roadmap h592K): large, easy to scan on a phone */
.today-card { display: flex; align-items: flex-start; gap: 12px; width: 100%; text-align: left; padding: 14px 12px; }
.today-card .fb-avatar { width: 56px; height: 56px; }
.today-card .item-title { font-size: 1.1rem; }
.today-rug { font-size: 1.25rem; font-weight: 700; margin: 6px 0 2px; }
.today-match.ok { font-size: .9rem; }
.today-match.warn { font-size: .9rem; color: var(--accent-gold, inherit); }
.today-notes { margin-top: 6px; display: grid; gap: 2px; }
/* Feed Dashboard, the feed room board (roadmap g5AfW) */
.fb-top { padding: 8px 0 10px; }
.fb-period { display: flex; width: 100%; }
.fb-period button { flex: 1; min-height: 48px; font-size: 1.1rem; font-weight: 700; }
.fb-search { width: 100%; min-height: 44px; margin-top: 8px; }
.fb-top select { min-height: 40px; }
.fb-list { display: grid; gap: 12px; padding-bottom: 24px; }
.fb-card { background: var(--navy-card); border: 1px solid var(--navy-border); border-radius: 14px; padding: 12px; }
.fb-card.fb-compact { padding: 8px 12px; }
.fb-card.fb-dragging { opacity: .85; border-color: var(--accent-blue); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); }
.fb-head { display: flex; align-items: center; gap: 10px; }
.fb-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: var(--navy-hover); }
.fb-initial { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; color: var(--text-main); }
.fb-title { flex: 1; min-width: 0; }
.fb-name { font-size: 1.2rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-sub { font-size: .9rem; }
.fb-stable { display: inline-block; padding: 1px 8px; border-radius: 10px; background: var(--accent-blue); color: var(--color-white); font-weight: 600; }
.fb-edit { min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--navy-border); background: transparent; color: var(--text-main); font-size: 1.2rem; cursor: pointer; }
.fb-handle { touch-action: none; cursor: grab; font-size: 1.4rem; padding: 8px 10px; user-select: none; color: var(--text-muted); }
.fb-note { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--navy-surface); color: var(--text-soft); }
.fb-sec { margin-top: 10px; }
.fb-sec-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); margin-bottom: 4px; }
.fb-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; width: 100%; min-height: 44px; padding: 8px 10px; margin-top: 4px;
  border: 1px solid var(--navy-border); border-radius: 10px; background: transparent; color: var(--text-main); text-align: left; font: inherit; }
button.fb-item { cursor: pointer; }
.fb-feed { flex: 1; font-weight: 600; }
.fb-qty { font-size: 1.15rem; font-weight: 700; }
.fb-inote { flex-basis: 100%; font-size: .9rem; color: var(--text-soft); }
.fb-imp { color: var(--accent-gold); font-weight: 700; }
.fb-note.fb-imp { border: 1px solid var(--accent-gold); }
.fb-item-imp { border-color: var(--accent-gold); }
.fb-none { margin-top: 10px; }
/* Feed & nutrition tab (roadmap POiLN) */
.nut-bar { height: 12px; min-width: 2px; border-radius: 6px; background: var(--accent-blue); }
.nut-alerts { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.nut-alert { padding: 8px 12px; border-radius: var(--radius-md); font-size: 0.85rem; border: 1px solid var(--navy-border); }
.nut-alert.nut-bad { background: var(--red-a15); color: var(--text-danger); border-color: var(--red-a50); }
.nut-alert.nut-warn { background: var(--navy-surface); border-color: var(--accent-gold); }
.horse-card-photo { display: block; width: 160px; height: 160px; max-width: 100%; object-fit: cover; border-radius: 50%; margin: 0 auto 12px; }

.rug { border-left: 4px solid var(--accent-gold); }
.rug-label { font-family: var(--font-heading); font-weight: 700; color: var(--accent-gold); }
.rug-label.night { color: var(--color-night); }
/* Rug recommendations and wardrobe */
.rug-badge { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; background: var(--navy-surface); border: 1px solid var(--navy-border); border-radius: var(--radius-md); padding: 10px 14px; font-size: 0.85rem; margin-bottom: 12px; }
.rug-card { background: var(--navy-surface); border: 1px solid var(--navy-border); border-left: 4px solid var(--accent-gold); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; }
.rug-card.night { border-left-color: var(--color-night); }
/* Owner rugging override (roadmap w9a6x) */
.rug-override { background: var(--navy-surface); border: 2px solid var(--accent-blue); border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 12px; }
.rug-override-badge { display: inline-block; background: var(--accent-blue); color: #fff; font-weight: 700; font-size: 0.78rem; border-radius: 999px; padding: 3px 10px; margin-bottom: 4px; }
.rug-override-text { white-space: pre-wrap; margin: 6px 0; }
.rug-label.owner { color: var(--accent-blue); }
.rug-system-title { margin: 4px 0 8px; font-size: 0.95rem; opacity: 0.85; }
.rug-override-mode { gap: 16px; }
.rug-override-history { margin: 6px 0 0; padding-left: 18px; font-size: 0.85rem; }
.rug-override-history li { margin-bottom: 6px; }
.rug-rec { margin: 8px 0 2px; font-size: 1.02rem; color: var(--color-white); }
.rug-match { margin-top: 8px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.rug-match.ok { background: var(--green-a12); border: 1px solid var(--accent-green); }
.rug-match.warn { background: var(--gold-a12); border: 1px solid var(--accent-gold); }
.rug-item .icon-btn { width: 36px; height: 36px; font-size: 1.1rem; }
.rug-form .check-row { display: flex; gap: 10px; align-items: center; margin: 12px 0; color: var(--text-main); font-weight: 600; }

/* Feed plan table */
.feed-in { width: 62px; min-height: 34px; padding: 4px 6px; }
.feed-in.feed-flags { width: 130px; }
.feed-in[data-k=weight] { width: 78px; }
.feed-table th, .feed-table td { padding-left: 6px; padding-right: 6px; }
.feed-table td:nth-last-child(-n+3) { white-space: nowrap; }
.feed-pair { display: inline-flex; gap: 4px; align-items: center; }
.feed-table td { vertical-align: middle; }
@media (max-width: 768px) { .feed-in, .feed-in[data-k=weight] { width: 90px; } .feed-pair .feed-in { width: 70px; } .feed-in.feed-flags { width: 170px; } table.data.stack td .feed-pair { justify-content: flex-end; } }
@media print {
  .feed-in { border: none !important; background: none !important; color: var(--color-black) !important; width: auto !important; padding: 0 !important; -moz-appearance: textfield; }
  .feed-in::-webkit-inner-spin-button { display: none; }
  .feed-in::placeholder { color: transparent !important; }
}

/* Owner access in the Team forms (js/team_access.js) and the API pill on a horse (js/horses.js); moved from the core app.css */
.horse-access .ha-list { max-height: 280px; overflow-y: auto; }
.horse-access #haScopeRow { display: flex; gap: 10px; align-items: flex-start; }
.horse-pill { position: static; vertical-align: middle; margin-left: 10px; }
