/* BASIC: a single, read-only overview using the existing ST visual language. */
#costs .hp-shell{display:grid;gap:22px;color:#243b30}
#costs #hp-content{display:grid;gap:18px}
#costs .hp-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:0}
#costs .hp-heading h2{font-size:1.65rem;letter-spacing:-.035em;margin:0 0 7px;color:#173f32}
#costs .hp-heading p{margin:0;color:#718078;font-size:.82rem;line-height:1.5}
#costs .hp-controls{display:flex;gap:10px;flex-shrink:0}
#costs .hp-controls label,#costs .hp-filter{display:grid;gap:6px;font-size:.7rem;font-weight:700;color:#6d7a72}
#costs .hp-controls select,#costs .hp-filter select{min-height:39px;border:1px solid #dce4dd;border-radius:9px;padding:8px 30px 8px 11px;background:#fff;color:#173f32;font:inherit;font-size:.8rem}
#costs .hp-controls label:first-child{min-width:145px}
#costs .hp-controls label:last-child{min-width:92px}
#costs .hp-overview{display:grid;grid-template-columns:1.65fr 1fr 1fr;gap:16px}
#costs .hp-card{min-width:0;background:#fff;border:1px solid #e0e6e0;border-radius:16px;padding:22px}
#costs .hp-value{background:#f1f5e7;border-color:#dbe4c6}
#costs .hp-value-top,#costs .hp-value-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}
#costs .hp-eyebrow{font-size:.69rem;text-transform:uppercase;font-weight:800;letter-spacing:.055em;color:#65765d}
#costs .hp-tag{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:7px;background:#f3f6f1;color:#647560;font-size:.68rem;white-space:nowrap;font-weight:650}
#costs .hp-value .hp-tag{background:#e6edda;color:#536b43}
#costs .hp-value-amount{display:block;margin:19px 0 18px;font-size:2.1rem;line-height:1.1;font-weight:800;letter-spacing:-.045em;color:#173f32;overflow-wrap:anywhere}
#costs .hp-value-bottom{font-size:.78rem;color:#41573f}
#costs .hp-value-bottom b{font-size:.97rem}
#costs .hp-coverage{font-size:.7rem;color:#64745c}
#costs .hp-coverage-track{height:4px;background:#dfe7cf;border-radius:4px;margin-top:11px;overflow:hidden}
#costs .hp-coverage-track span{display:block;height:100%;background:#9eb752;border-radius:inherit}
#costs .hp-value p{font-size:.7rem;color:#718061;line-height:1.5;margin:10px 0 0}
#costs .hp-summary{display:flex;flex-direction:column;justify-content:center}
#costs .hp-summary>.hp-eyebrow{color:#778279}
#costs .hp-summary>strong{display:block;margin:23px 0 8px;font-size:2.05rem;letter-spacing:-.04em;color:#173f32;font-weight:750;line-height:1.15}
#costs .hp-summary>strong>span{font-size:1rem;letter-spacing:0;font-weight:550;color:#829078}
#costs .hp-summary p{font-size:.76rem;color:#78837a;margin:0;line-height:1.5}
#costs .hp-summary>small{font-size:.68rem;color:#98a18f;margin-top:21px}
#costs .hp-charts{display:grid;grid-template-columns:1.65fr 1fr;gap:18px}
#costs .hp-panel-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
#costs .hp-panel-head h3{margin:0;color:#243b30;font-size:.98rem;font-weight:750;letter-spacing:-.015em}
#costs .hp-panel-head p{margin:6px 0 0;color:#72816b;font-size:.73rem;line-height:1.5}
#costs .hp-year-total{text-align:right;flex-shrink:0}
#costs .hp-year-total>strong{color:#2e6250;font-weight:750;font-size:1.1rem;white-space:nowrap}
#costs .hp-year-total>strong>span{font-size:.75rem;color:#829078;font-weight:500}
#costs .hp-year-total>small{display:block;color:#8a9488;font-size:.66rem;margin-top:5px}
#costs .hp-chart{margin:0;position:relative;padding:8px 0 0 34px}
#costs .hp-chart-axis{position:absolute;top:7px;left:0;bottom:55px;display:flex;flex-direction:column;justify-content:space-between;font-size:.63rem;color:#98a292;max-width:30px}
#costs .hp-chart-plot{position:relative;height:191px;min-width:0}
#costs .hp-chart-grid{position:absolute;inset:0 0 27px;border-top:1px dashed #e8ece6;border-bottom:1px solid #e0e7de;pointer-events:none}
#costs .hp-chart-grid:after{content:'';position:absolute;top:50%;left:0;right:0;border-top:1px dashed #e8ece6}
#costs .hp-chart-columns{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));height:100%;gap:8px;position:relative}
#costs .hp-chart-column{border:0;background:transparent;padding:0;min-width:0;display:flex;flex-direction:column;justify-content:flex-end;align-items:stretch;color:#88937f;cursor:pointer;border-radius:5px;box-shadow:none;font:inherit}
#costs .hp-chart-column:focus-visible{outline:2px solid #749745;outline-offset:3px}
#costs .hp-chart-column.future{cursor:default;opacity:.35}
#costs .hp-chart-bars{height:164px;display:flex;flex-direction:column-reverse;justify-content:flex-start;align-items:stretch;padding:0 4px}
#costs .hp-chart-bars>span{display:block;flex-shrink:0;min-width:0;background:#568674;border-radius:4px 4px 0 0;transition:background .15s}
#costs .hp-chart-bars>.hp-birth-female{background:#acc65d;border-radius:4px 4px 0 0}
#costs .hp-chart-bars>.hp-birth-male{background:#568674;border-radius:0}
#costs .hp-chart-bars>.hp-birth-unknown{background:#adb6a4}
#costs .hp-chart-column.selected .hp-milk-bar{background:#acc65d}
#costs .hp-chart-column:hover .hp-milk-bar{background:#7e9e49}
#costs .hp-chart-month{display:grid;place-items:center;height:27px;font-size:.64rem;line-height:1;font-weight:550}
#costs .hp-chart-column.selected .hp-chart-month{color:#244b36;font-weight:850;background:#f1f5e7;border-radius:5px}
#costs .hp-chart-empty{position:absolute;inset:0 0 27px;display:flex;align-items:center;justify-content:center;pointer-events:none;color:#8d9989;font-size:.73rem;text-align:center;padding:12px}
#costs .hp-chart figcaption{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;align-items:center;min-height:23px;margin-top:12px;color:#85907e;font-size:.67rem;text-align:center;line-height:1.5}
#costs .hp-chart figcaption>span{display:inline-flex;align-items:center;gap:5px}
#costs .hp-dot{width:7px;height:7px;border-radius:2px;display:inline-block}
#costs .hp-dot.female{background:#acc65d}#costs .hp-dot.male{background:#568674}
#costs .hp-balance-grid{display:grid;grid-template-columns:repeat(var(--hp-cells),minmax(0,1fr));gap:25px}
#costs .hp-balance-cell{position:relative;display:flex;flex-direction:column;gap:8px;padding:14px 12px;border-radius:10px;background:#f8faf6;min-width:0}
#costs .hp-balance-cell>span{font-size:.69rem;color:#64745b;font-weight:650}
#costs .hp-balance-cell>strong{font-size:1.8rem;line-height:1.1;color:#2d5037;letter-spacing:-.045em;font-weight:750}
#costs .hp-balance-cell>small{font-size:.64rem;color:#76836b;line-height:1.4}
#costs .hp-balance-cell.equals{background:#edf3dd;border:1px solid #dbe5bf}
#costs .hp-balance-cell:before{position:absolute;left:-18px;top:45%;font-size:1.1rem;font-weight:500;color:#8c9a81}
#costs .hp-balance-cell.plus:before{content:'+'}#costs .hp-balance-cell.minus:before{content:'−'}#costs .hp-balance-cell.equals:before{content:'='}
#costs .hp-footnote{font-size:.7rem;color:#89947f;line-height:1.6;margin:14px 0 0}
#costs .hp-notice{font-size:.73rem;line-height:1.6;border-radius:9px;padding:10px 13px;background:#fff6e7;color:#8c6c36;margin:12px 0 0}
#costs .hp-filter{min-width:190px}
#costs .hp-table-wrap{overflow:auto;max-width:100%}
#costs .hp-table{border-collapse:collapse;width:100%;min-width:0;text-align:left;font-size:.79rem}
#costs .hp-table th{font-size:.66rem;color:#8b9682;font-weight:650;text-transform:uppercase;letter-spacing:.035em;border-bottom:1px solid #e5ebe0;padding:10px 12px}
#costs .hp-table td{padding:13px 12px;border-bottom:1px solid #f0f3ed;color:#5c6d52;line-height:1.5}
#costs .hp-table tr:last-child td{border-bottom:0}
#costs .hp-table td>strong{color:#294c38;font-weight:750}
#costs .hp-table td>small{display:block;font-size:.68rem;color:#8a9781;margin-top:2px}
#costs .hp-badge{display:inline-flex;border-radius:6px;padding:4px 8px;font-size:.67rem;font-weight:700;white-space:nowrap;background:#eef5e6;color:#5b783c}
#costs .hp-badge.exit{background:#faf0e5;color:#ad7948}
#costs .hp-badge.birth{background:#ecf4f0;color:#4c806a}
#costs .hp-empty{display:grid;justify-items:center;text-align:center;padding:31px 14px;gap:9px}
#costs .hp-empty-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#f2f5ee;color:#98a288;margin-bottom:3px}
#costs .hp-empty>strong{font-size:.82rem;color:#66785a;font-weight:650}
#costs .hp-empty p{font-size:.73rem;line-height:1.6;color:#8c9881;margin:0;max-width:420px}
#costs .hp-loading{color:#7a8b70;text-align:center;padding:45px;font-size:.85rem}
#costs .hp-monthly{padding:16px 22px}
#costs .hp-monthly summary{cursor:pointer;font-size:.77rem;font-weight:650;color:#557047;padding:2px 0}
#costs .hp-monthly[open] summary{margin-bottom:16px}
#costs .hp-monthly-table{min-width:470px}
#costs .hp-monthly-table thead th{font-weight:800}
/* Monthly herd estimates use current prices; missing months remain gaps in the line. */
#costs .hp-value-trend .hp-panel-head{flex-wrap:wrap}
#costs .hp-value-trend .hp-year-total{margin-left:auto}
#costs .hp-value-chart{padding:8px 0 0 64px}
#costs .hp-value-axis{position:absolute;top:8px;left:0;width:54px;font-size:.64rem;color:#849081}
#costs .hp-value-axis>small{position:absolute;left:0;top:-13px;font-size:.6rem;color:#6c7d65}
#costs .hp-value-axis>span{position:absolute;left:0;transform:translateY(-50%)}
#costs .hp-value-plot{position:relative;min-width:0}
#costs .hp-value-plot>svg{display:block;width:100%;height:212px;overflow:visible}
#costs .hp-value-grid{stroke:#e5ebe3;stroke-width:1;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
#costs .hp-value-line{fill:none;stroke:#3f7482;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
#costs .hp-value-mean{stroke:#969f99;stroke-width:1.8;stroke-dasharray:6 5;vector-effect:non-scaling-stroke}
#costs .hp-value-isolated{position:absolute;width:12px;height:3px;border-radius:1px;background:#3f7482;transform:translate(-50%,-50%);pointer-events:none}
#costs .hp-value-hover-line{stroke:#7c9ba3;stroke-width:1;vector-effect:non-scaling-stroke;pointer-events:none}
#costs .hp-value-hit{cursor:crosshair}
#costs .hp-value-plot [hidden]{display:none}
#costs .hp-value-tooltip{position:absolute;top:8px;z-index:2;box-sizing:border-box;width:max-content;max-width:min(240px,100%);padding:10px 12px;border:1px solid #dce6e8;border-radius:9px;background:#fff;box-shadow:0 5px 18px #24434c20;color:#42575d;font-size:.74rem;line-height:1.5;pointer-events:none;overflow-wrap:anywhere}
#costs .hp-value-tooltip strong,#costs .hp-value-tooltip span,#costs .hp-value-tooltip small{display:block}
#costs .hp-value-tooltip strong{margin-bottom:3px;color:#315f6c}
#costs .hp-value-tooltip small{margin-top:4px;color:#6c797d;font-size:.68rem}
#costs .hp-value-months{display:grid;grid-template-columns:repeat(12,minmax(0,1fr))}
#costs .hp-value-month{display:grid;place-items:center;min-width:0;min-height:44px;width:100%;padding:0;border:0;border-radius:5px;background:transparent;font:inherit;font-size:.64rem;color:#77846f;cursor:pointer;white-space:nowrap}
#costs .hp-value-month.selected{background:#edf3f5;color:#315f6c;font-weight:850}
#costs .hp-value-month.future{opacity:.35;cursor:default}
#costs .hp-value-month:focus-visible{outline:2px solid #3f7482;outline-offset:-2px}
#costs .hp-value-legend-line{display:inline-block;width:22px;height:0;border-top:2.4px solid #3f7482}
#costs .hp-value-legend-line.mean{border-top:1.8px dashed #969f99}
#costs .hp-value-no-data{position:absolute;inset:0 0 44px;display:grid;place-items:center;text-align:center;background:rgba(255,255,255,.82);padding:12px;color:#7a8973;font-size:.76rem;line-height:1.5}
#costs .hp-value-detail{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;margin-top:12px;border:1px solid #e6ece2;border-radius:10px;background:#f8faf6;font-size:.79rem}
#costs .hp-value-detail strong,#costs .hp-value-detail small{display:block}
#costs .hp-value-detail small{margin-top:4px;font-size:.66rem;color:#7a8873}
#costs .hp-value-detail>b{font-size:.96rem;color:#3f7482;overflow-wrap:anywhere}
#costs .hp-value-method{margin-top:12px;color:#73836a;font-size:.7rem}
#costs .hp-value-method summary{cursor:pointer}
#costs .hp-value-method .hp-footnote{margin-top:8px}
body[data-field-compact="true"] #costs .hp-value-month{white-space:nowrap;overflow-wrap:normal}
@media(max-width:600px){#costs .hp-value-chart{padding-left:52px}#costs .hp-value-axis{width:45px;font-size:.6rem}#costs .hp-value-month{font-size:.55rem}#costs .hp-value-detail{align-items:flex-start;flex-direction:column}#costs .hp-value-detail>b{font-size:.94rem}}
@media(max-width:360px){#costs .hp-value-chart{padding-left:44px}#costs .hp-value-axis{width:38px}}
@media(max-width:1200px){#costs .hp-overview{grid-template-columns:1.5fr 1fr 1fr}#costs .hp-value-top{align-items:flex-start;flex-direction:column;gap:8px}#costs .hp-value-amount{font-size:1.8rem}#costs .hp-value-bottom{align-items:flex-start;flex-direction:column;gap:6px}#costs .hp-charts{grid-template-columns:1fr 1fr}#costs .hp-chart-columns{gap:3px}#costs .hp-chart-bars{padding:0 2px}}
@media(max-width:900px){#costs .hp-card{padding:19px}#costs .hp-overview{grid-template-columns:1fr 1fr}#costs .hp-value{grid-column:1/-1}#costs .hp-value-top,#costs .hp-value-bottom{flex-direction:row;align-items:center}#costs .hp-value-amount{font-size:2.2rem}#costs .hp-charts{grid-template-columns:1fr}#costs .hp-chart-columns{gap:10px}#costs .hp-chart-bars{padding:0 6px}#costs .hp-balance-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 24px}#costs .hp-balance-cell:before{display:none}#costs .hp-balance-cell.plus>span:before{content:'+ ';color:#6b8b49}#costs .hp-balance-cell.minus>span:before{content:'− ';color:#aa7950}#costs .hp-balance-cell.equals>span:before{content:'= '}}
@media(max-width:600px){#costs .hp-shell{gap:18px}#costs .hp-heading{align-items:stretch;flex-direction:column;gap:15px}#costs .hp-heading h2{font-size:1.4rem}#costs .hp-heading p{font-size:.77rem}#costs .hp-controls{display:grid;grid-template-columns:1fr 1fr;width:100%}#costs .hp-controls label{min-width:0!important}#costs .hp-controls select{width:100%}#costs #hp-content{gap:14px}#costs .hp-card{padding:17px;border-radius:13px}#costs .hp-overview{gap:12px}#costs .hp-value-top{align-items:flex-start}#costs .hp-value-amount{font-size:2rem;margin:20px 0 16px}#costs .hp-value .hp-eyebrow{max-width:145px;line-height:1.5}#costs .hp-tag{font-size:.62rem;padding:5px 7px}#costs .hp-summary>strong{font-size:1.65rem;margin-top:19px}#costs .hp-summary>strong>span{font-size:.82rem}#costs .hp-eyebrow{font-size:.63rem}#costs .hp-summary p{font-size:.67rem}#costs .hp-summary>small{margin-top:15px;font-size:.62rem}#costs .hp-panel-head{gap:10px;margin-bottom:18px}#costs .hp-panel-head h3{font-size:.91rem}#costs .hp-panel-head p{font-size:.69rem}#costs .hp-year-total>strong{font-size:1rem}#costs .hp-year-total>small{font-size:.59rem}#costs .hp-chart-columns{gap:4px}#costs .hp-chart-bars{padding:0 2px}#costs .hp-chart{padding-left:29px}#costs .hp-chart-month{font-size:.58rem}#costs .hp-balance-grid{grid-template-columns:1fr 1fr;gap:10px}#costs .hp-balance-cell{padding:12px}#costs .hp-balance-cell>span{font-size:.65rem}#costs .hp-balance-cell>strong{font-size:1.65rem}#costs .hp-balance-cell.equals{grid-column:1/-1;display:grid;grid-template-columns:1fr auto;align-items:center}#costs .hp-balance-cell.equals>strong{grid-column:2;grid-row:1/3}#costs .hp-balance-cell.equals>small{grid-column:1}#costs .hp-movements>.hp-panel-head{flex-direction:column}#costs .hp-filter{width:100%}#costs .hp-movements .hp-table,#costs .hp-movements tbody,#costs .hp-movements tr,#costs .hp-movements td{display:block}#costs .hp-movements thead{display:none}#costs .hp-movements tr{border-top:1px solid #e6ebe1;padding:9px 0}#costs .hp-movements td{display:grid;grid-template-columns:82px minmax(0,1fr);gap:0 10px;border:0;padding:5px 0;font-size:.75rem}#costs .hp-movements td:before{content:attr(data-label);color:#8d9982;font-size:.67rem;grid-column:1;grid-row:1/3}#costs .hp-movements td>small{grid-column:2}#costs .hp-badge{justify-self:start}#costs .hp-footnote{font-size:.65rem}#costs .hp-empty{padding:24px 8px}#costs .hp-monthly{padding:14px 17px}}
