/* Breeding, sales & leasing, fitness & welfare, exercise plans (views/breeding.js, sales.js, fitness.js, exercise.js) */
.bp-tabs { margin: 0 0 14px; }
.bp-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.bp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.bp > .card, .bp section.card { margin-bottom: 14px; }
.bp-sh { display: flex; align-items: center; gap: 8px; padding: 12px 16px; flex-wrap: wrap; } .bp-sh h3 { margin: 0 auto 0 0; }
[dir="rtl"] .bp-sh h3 { margin: 0 0 0 auto; }
.bp .card.flush .pad { padding: 10px 16px; }
.bp-acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; } .bp-acts .sel-sm { width: auto; }
.sel-sm { width: auto; padding: 5px 8px; font-size: 13px; }
.row-acts { white-space: nowrap; text-align: end; } .row-acts .btn { margin-inline-start: 4px; }

/* breeding */
.bp-mare header, .bp-stallion header, .bp-list header, .bp-tpl header { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bp-mare header .hn, .bp-stallion header .hn, .bp-list header .hn { font-size: 19px; text-decoration: none; }
.bp-mare.watch { border-color: var(--clay); box-shadow: 0 0 0 2px rgba(227, 145, 94, .25); }
.bp-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; margin: 8px 0; }
.bp-dl dt { font: 600 9.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); } .bp-dl dd { margin: 0; font-size: 14px; }
.bp-due { display: flex; align-items: baseline; gap: 8px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 8px 0; flex-wrap: wrap; }
.bp-due small { font: 600 10px var(--f-mono); color: var(--mute); } .bp-due b { font-size: 16px; } .bp-due span { color: var(--mute); font-size: 13px; }
.bp-due.soon { background: var(--straw-bg); border-color: var(--straw); }
.bp-next { list-style: none; padding: 0; margin: 6px 0 0; } .bp-next li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.bp-next li.late b { color: var(--bad); }
.bp-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; margin-top: 8px; }
.bp-mini div { background: var(--panel2); border-radius: 8px; padding: 6px 8px; min-width: 0; } .bp-mini small { display: block; font: 600 9.5px var(--f-mono); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; } .bp-mini b { font-size: 15px; overflow-wrap: anywhere; }
.bp-watch { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 14px; }
.bp-countdown { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: var(--arch); }
.bp-countdown b { font: 700 46px var(--f-head); line-height: 1; } .bp-countdown span { color: var(--mute); font-size: 13px; } .bp-countdown em { font-style: normal; font-size: 12px; }
.bp-countdown.hot { background: var(--straw-bg); border-color: var(--straw); }
.bp-set { max-width: 560px; } .bp-set .fld { margin-bottom: 10px; }

/* sales */
.bp-head { font-weight: 600; margin: 6px 0 0; }
.bp-alert { display: flex; align-items: center; gap: 10px; background: var(--straw-bg); border: 1px solid var(--straw); color: var(--straw-ink); border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.bp-alert span { flex: 1; min-width: 200px; }
.bp-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.bp-col { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 160px; display: flex; flex-direction: column; gap: 6px; }
.bp-col > header { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 6px; }
.bp-card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; cursor: pointer; }
.bp-card small { color: var(--mute); font-size: 12px; } .bp-card em { font-style: normal; font-weight: 700; }
.bp-card.late { border-color: var(--bad); } .bp-card:hover { border-color: var(--clay); }
.bp-card-acts { display: flex; gap: 4px; align-items: center; margin-top: 4px; } .bp-card-acts select { flex: 1; min-width: 0; }

/* fitness & welfare */
.bp-alerts h3 { margin-bottom: 4px; }
.bp-chart { width: 100%; height: 150px; display: block; }
.bp-chart .ax { stroke: var(--line2); } .bp-chart .tg { stroke: var(--sage); stroke-dasharray: 5 4; stroke-width: 2; }
.bp-chart .ln { fill: none; stroke: var(--clay); stroke-width: 2.5; vector-effect: non-scaling-stroke; } .bp-chart .pt { fill: var(--panel); stroke: var(--clay); stroke-width: 2; }
.bp-chart .lb { font: 500 11px var(--f-mono); fill: var(--mute); }
.bp-stack { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.bp-stack .col { flex: 1; display: flex; flex-direction: column-reverse; justify-content: flex-start; height: 100%; position: relative; padding-bottom: 16px; min-width: 0; }
.bp-stack .col i { display: block; width: 100%; } .bp-stack .col small { position: absolute; bottom: 0; inset-inline-start: 0; right: 0; text-align: center; font: 500 9px var(--f-mono); color: var(--mute); white-space: nowrap; overflow: hidden; }
.bp-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; } .bp-legend span { display: inline-flex; align-items: center; gap: 4px; } .bp-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.k-ridden { background: var(--clay); } .k-lessons { background: var(--tack); } .k-lunge { background: var(--straw); } .k-conditioning { background: #2F5E8C; } .k-walker { background: var(--mute); } .k-turnout { background: var(--sage); }
.bp-row-bad td:first-child { box-shadow: inset 3px 0 0 var(--bad); } .bp-row-warn td:first-child { box-shadow: inset 3px 0 0 var(--straw); }
[dir="rtl"] .bp-row-bad td:first-child { box-shadow: inset -3px 0 0 var(--bad); } [dir="rtl"] .bp-row-warn td:first-child { box-shadow: inset -3px 0 0 var(--straw); }
input[type=range] { padding: 0; accent-color: var(--clay); }

/* exercise plans */
.bp-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 8px 0; }
.bp-week > div { background: var(--panel2); border-radius: 8px; padding: 4px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-week small { font: 600 9.5px var(--f-mono); color: var(--mute); text-align: center; }
.bp-week i { font-style: normal; font-size: 11px; background: var(--panel); border-radius: 5px; padding: 1px 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bp-week i.rest { color: var(--mute); background: transparent; }
.bp-pattern { display: grid; grid-template-columns: repeat(7, minmax(160px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.bp-pattern .day { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bp-pattern .day > b { font: 700 13px var(--f-mono); letter-spacing: .08em; }
.bp-pattern .items { display: flex; flex-direction: column; gap: 6px; }
.bp-pattern .it { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px; position: relative; }
.bp-pattern .it select, .bp-pattern .it input { padding: 4px 6px; font-size: 12.5px; min-width: 0; }
.bp-pattern .it [data-f=type], .bp-pattern .it [data-f=notes] { grid-column: 1 / -1; }
.bp-pattern .it [data-del] { position: absolute; top: -8px; inset-inline-end: -8px; background: var(--panel); border: 1px solid var(--line); border-radius: 50%; }
.bp-pattern .it > span { font-weight: 700; grid-column: 1 / -1; } .bp-pattern .it em { font-style: normal; color: var(--mute); font-size: 12px; } .bp-pattern .it small { grid-column: 1 / -1; color: var(--mute); }
.bp-thisweek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bp-thisweek > div { text-align: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 2px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bp-thisweek > div.today { border-color: var(--clay); } .bp-thisweek small { font: 500 10px var(--f-mono); color: var(--mute); }
.bp-thisweek b { font: 700 16px var(--f-mono); } .bp-thisweek b.ok { color: var(--ok); } .bp-thisweek b.bad { color: var(--bad); } .bp-thisweek i.rest { font-style: normal; color: var(--mute); font-size: 12px; }
.bp-checkins { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; } .bp-checkins > div { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .bp-checkins small { min-width: 70px; color: var(--mute); }
.chip-btn.done { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .chip-btn .ico { width: 14px; height: 14px; vertical-align: -2px; }
.bp-wchart { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.bp-wchart > div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bp-wchart .pl { width: 70%; background: var(--line); border-radius: 6px 6px 2px 2px; display: flex; align-items: flex-end; overflow: hidden; min-height: 2px; } .bp-wchart .pl i { display: block; width: 100%; background: var(--sage); }
.bp-wchart small { font: 500 10px var(--f-mono); color: var(--mute); } .bp-wchart em { font: 500 10px var(--f-mono); font-style: normal; }
.bp-wbars { display: flex; align-items: flex-end; gap: 3px; height: 26px; } .bp-wbars span { width: 10px; height: 100%; background: var(--line); border-radius: 3px; display: flex; align-items: flex-end; overflow: hidden; } .bp-wbars i { display: block; width: 100%; background: var(--sage); }
.bp-days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 4px; } .bp-days span { aspect-ratio: 1; border-radius: 4px; background: var(--line); } .bp-days .ok { background: var(--sage); } .bp-days .bad { background: var(--bad); opacity: .75; } .bp-days .rest { background: var(--panel2); border: 1px dashed var(--line2); }
.bp-coaches { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; } .bp-coaches > div { display: flex; flex-direction: column; gap: 2px; background: var(--panel2); border-radius: 10px; padding: 8px 10px; } .bp-coaches span { color: var(--mute); font-size: 13px; } .bp-coaches em { font-style: normal; align-self: flex-start; }
.bp-goals { margin: 0; padding-inline-start: 18px; }

@media (max-width: 900px) { .bp-two { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .bp-dl { grid-template-columns: 1fr 1fr; } .bp-kanban { grid-auto-columns: 80%; }
  .bp-pattern { grid-template-columns: repeat(7, minmax(150px, 80%)); }
  .bp-thisweek { grid-template-columns: repeat(7, minmax(42px, 1fr)); overflow-x: auto; } .bp-days { grid-template-columns: repeat(7, 1fr); }
  .bp-week { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
