.products{grid-template-columns:repeat(2,minmax(0,1fr))}.product-head-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.product-inline-card{align-items:flex-start}.product-inline-fields{flex:1;min-width:0;display:grid;grid-template-columns:1.5fr 1fr .8fr;gap:8px;align-self:stretch}.product-inline-field{display:grid;gap:5px;min-width:0}.product-inline-field span{color:var(--muted);font-size:10px}.product-inline-field input,.product-inline-field select{width:100%;min-width:0;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);padding:7px 8px;font:inherit;font-size:12px}.product-inline-field input:focus,.product-inline-field select:focus{outline:2px solid #bd914733;border-color:var(--gold)}.product-inline-card .product-actions{align-self:center;flex-wrap:wrap}.product-inline-card .product-actions .action:disabled{opacity:.55;cursor:wait}.inline-category-list{display:grid;gap:8px;max-height:55vh;overflow:auto;margin-top:14px}.inline-category-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:8px;padding:9px 11px;background:#fbfcfb}.inline-category-row>div{display:flex;gap:5px}@media(max-width:700px){.products{grid-template-columns:1fr}.product-head-actions{width:100%;justify-content:flex-start}.product-inline-card{align-items:flex-start;flex-wrap:wrap}.product-inline-fields{flex-basis:calc(100% - 66px);grid-template-columns:1fr}.product-inline-card .product-actions{width:100%;justify-content:flex-start;margin-right:0}}
.product-search-wrap{display:grid;gap:6px;margin:0 0 14px;max-width:420px}.product-search-wrap label{color:var(--muted);font-size:11px}.product-search-wrap input{width:100%;box-sizing:border-box;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--text);padding:9px 11px;font:inherit;font-size:12px}.product-search-wrap input:focus{outline:2px solid #bd914733;border-color:var(--gold)}.product-inline-card[hidden]{display:none}
.product-cost-editor{min-width:0;border:1px solid #dce7db;border-radius:10px;background:#f7faf6;padding:11px;color:#173d2a}.product-cost-editor h3{margin:0 0 9px;font-size:14px}.product-cost-editor[hidden],[data-cost-total-field][hidden],[data-cost-components][hidden],.product-cost-field[hidden]{display:none!important}.product-cost-mode-wrap{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.product-cost-field{display:grid;gap:5px;min-width:0}.product-cost-field span{color:#718177;font-size:11px}.product-cost-field input,.product-cost-field select{width:100%;min-width:0;box-sizing:border-box;border:1px solid #dce7db;border-radius:7px;background:#fff;color:#173d2a;padding:8px;font:inherit;font-size:12px}.product-cost-details{grid-column:1/-1}.product-cost-details summary{cursor:pointer;color:#174c38;font-weight:700}.product-cost-details[open] summary{margin-bottom:10px}.product-cost-hint{margin:8px 0;color:#718177;font-size:11px;line-height:1.6}.product-cost-preview{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;border-top:1px solid #dce7db;padding-top:8px;font-size:12px}.product-cost-preview strong{color:#174c38}.product-cost-editor .product-cost-mode-wrap~.product-cost-mode-wrap{margin-top:8px}@media(max-width:700px){.product-cost-editor{grid-column:1/-1}.product-cost-mode-wrap{grid-template-columns:1fr}}
.product-cost-editor{grid-column:1/-1}

/* Seedling cards show a compact read-only capital summary; editing remains in the product dialog. */
.product-inline-capital-summary{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 12px;align-items:center;padding:10px 12px;border:1px solid #cfe3d6;border-radius:10px;background:linear-gradient(135deg,#f8fcf9,#edf8f0);color:#164934}.product-inline-capital-label{font-size:11px;font-weight:800;color:#315d49}.product-inline-capital-amount{font-size:16px;color:#075c3a;white-space:nowrap}.product-inline-capital-route{min-width:0;color:#5e786b;font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.product-inline-capital-status{justify-self:end;display:inline-flex;align-items:center;gap:5px;color:#17704c;font-size:10px;font-weight:800;white-space:nowrap}.product-inline-capital-status b{display:grid;place-items:center;inline-size:15px;block-size:15px;border-radius:50%;background:#17704c;color:#fff;font-size:10px}.product-inline-capital-summary.is-missing{border-color:#ecdcae;background:#fffaf0}.product-inline-capital-summary.is-missing .product-inline-capital-amount{color:#836427}.product-inline-capital-summary.is-missing .product-inline-capital-status{color:#9a7124}.product-inline-capital-summary.is-missing .product-inline-capital-status b{background:#bd8c2c}@media(max-width:700px){.product-inline-capital-summary{gap:6px 10px;padding:10px}.product-inline-capital-route{font-size:10px}.product-inline-capital-status{font-size:9px}}

.product-inline-health-card{grid-column:1/-1;padding:11px 12px;border:1px solid #cfe3d6;border-radius:10px;background:#f8fcf9;color:#164934}.product-inline-health-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}.product-inline-health-card header>span{display:grid;gap:2px;min-width:0}.product-inline-health-card header small,.product-inline-health-card footer{color:#5e786b;font-size:10px;font-weight:700}.product-inline-health-card header strong{overflow:hidden;color:#164934;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.product-inline-health-card header>b{display:grid;place-items:center;flex:0 0 20px;inline-size:20px;block-size:20px;border-radius:50%;background:#287450;color:#fff;font-size:12px}.product-inline-health-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.product-inline-health-metrics>span{display:grid;gap:3px;min-width:0;padding:7px 8px;border:1px solid #d8e8dc;border-radius:8px;background:#fff}.product-inline-health-metrics small{color:#718177;font-size:9px;font-weight:700}.product-inline-health-metrics b{overflow:hidden;color:#164934;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.product-inline-health-card footer{display:flex;justify-content:space-between;gap:8px;margin-top:9px;padding-top:8px;border-top:1px solid #d8e8dc}.product-inline-health-card footer b{color:#315d49;font-size:10px}.product-inline-health-card.is-healthy{border-color:#9acdad;background:#f2faf4}.product-inline-health-card.is-warning,.product-inline-health-card.is-break-even,.product-inline-health-card.is-missing{border-color:#ecdcae;background:#fffaf0}.product-inline-health-card.is-warning header>b,.product-inline-health-card.is-break-even header>b,.product-inline-health-card.is-missing header>b{background:#bd8c2c}.product-inline-health-card.is-loss{border-color:#efb5ac;background:#fff5f3}.product-inline-health-card.is-loss header>b{background:#be4e40}.product-inline-health-card.is-loss header strong,.product-inline-health-card.is-loss [data-product-health-profit]{color:#b13b2d}.product-inline-health-card.is-new,.product-inline-health-card.is-unpriced{border-color:#dbe2df;background:#fafcfc}.product-inline-health-card.is-new header>b,.product-inline-health-card.is-unpriced header>b{background:#7b8b84}@media(max-width:700px){.product-inline-health-card{padding:10px}.product-inline-health-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.product-inline-health-card header strong{white-space:normal}.product-inline-health-card footer{align-items:flex-start;flex-direction:column;gap:3px}}

#modal.product-modal-anchored{box-shadow:0 18px 46px rgba(20,64,45,.22);border:1px solid #cfe3d6}@media(max-width:700px){#modal.product-modal-anchored{position:relative!important;inset:auto!important;width:min(780px,100%)!important;max-height:92vh!important}}

/* Seedling capital flow in the add/edit dialog: product data, type, route, then active route costs. */
#modal .product-cost-editor[data-cost-kind="seedling"]{margin-top:20px;padding:18px;border:1px solid #cfe3d6;border-radius:15px;background:linear-gradient(135deg,#f9fcfa,#f2f8f4);box-shadow:inset 0 1px #fff;color:#164934}
#modal .seedling-flow-step{padding:14px 15px;border:1px solid #d3e5d9;border-radius:12px;background:#f7fbf8}
#modal .seedling-type-step .product-cost-field{gap:7px}
#modal .seedling-type-step .product-cost-field>span{color:#0d5237;font-size:15px;font-weight:800}
#modal .seedling-type-step select{min-height:48px;border-color:#75a98b;border-width:2px;border-radius:10px;background:#fff;font-size:15px;font-weight:700}
#modal .seedling-route-picker{margin-top:18px}
#modal .seedling-route-picker h3,#modal .seedling-cost-panel h3{margin:0 0 10px;color:#0d5237;font-size:17px}
#modal .seedling-route-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.seedling-route-option{position:relative;display:block;min-width:0;cursor:pointer}
.seedling-route-option input{position:absolute;inline-size:1px;block-size:1px;opacity:0;pointer-events:none}
.seedling-route-card{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:94px;padding:15px;border:1px solid #c8dece;border-radius:12px;background:#fff;transition:border-color .18s,background .18s,box-shadow .18s,transform .18s}
.seedling-route-card>span{display:grid;gap:5px;min-width:0}.seedling-route-card strong{color:#164934;font-size:14px;line-height:1.45}.seedling-route-card small{color:#718177;font-size:11px;line-height:1.45}.seedling-route-card b{inline-size:22px;block-size:22px;flex:0 0 22px;border:2px solid #78a889;border-radius:50%;background:#fff}
.seedling-route-option:hover .seedling-route-card{border-color:#287450;box-shadow:0 7px 18px rgba(22,73,52,.10);transform:translateY(-1px)}
.seedling-route-option input:checked+.seedling-route-card{border:2px solid #176746;background:#eff8f1;box-shadow:0 8px 20px rgba(22,103,70,.11)}
.seedling-route-option input:checked+.seedling-route-card b{border-color:#176746;box-shadow:inset 0 0 0 5px #176746}
.seedling-route-option input:focus-visible+.seedling-route-card{outline:3px solid #bd914766;outline-offset:2px}
#modal .seedling-cost-panel{margin-top:18px;padding:16px;border:1px solid #cfe3d6;border-radius:13px;background:#fff}
#modal .seedling-cost-panel .product-cost-field span{color:#436557;font-size:12px;font-weight:700}
#modal .seedling-cost-panel .product-cost-field span small{color:#718177;font-weight:600}
#modal .seedling-cost-panel .product-cost-field input{min-height:46px;border-color:#c7dccd;border-radius:9px;font-size:15px}
#modal .product-cost-editor[data-cost-kind="seedling"] .product-cost-hint{margin:8px 0 0}
#modal .product-cost-editor[data-cost-kind="seedling"] [data-seedling-selection-warning]{padding:10px 12px;border-radius:9px;background:#fff7e9;color:#836427}
#modal .product-cost-editor[data-cost-kind="seedling"] .product-cost-preview{margin-top:16px;border:0;border-radius:10px;background:#e8f5eb;padding:14px 15px;color:#0b5638;font-size:15px;font-weight:800}
#modal .product-cost-editor[data-cost-kind="seedling"] .product-cost-preview strong{color:#075c3a;font-size:18px}
#modal .seedling-profit-imprint{margin-top:12px;padding:14px 15px;border:1px solid #cfe3d6;border-radius:12px;background:linear-gradient(135deg,#fbfefc,#f1f9f3);color:#164934}#modal .seedling-profit-imprint-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px}#modal .seedling-profit-imprint-head strong{font-size:15px;color:#075c3a}#modal .seedling-profit-imprint-head small{font-size:11px;font-weight:700;color:#5e786b}.seedling-profit-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.seedling-profit-metrics>span{display:grid;gap:4px;min-width:0;padding:9px 10px;border:1px solid #d7e8dc;border-radius:9px;background:#fff}.seedling-profit-metrics small{color:#6a8074;font-size:10px;font-weight:700}.seedling-profit-metrics b{overflow:hidden;color:#164934;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.seedling-profit-imprint[data-profit-state="healthy"]{border-color:#9acdad;background:linear-gradient(135deg,#f5fcf6,#e7f6eb)}.seedling-profit-imprint[data-profit-state="warning"],.seedling-profit-imprint[data-profit-state="break-even"]{border-color:#ead495;background:#fffaf0}.seedling-profit-imprint[data-profit-state="warning"] .seedling-profit-imprint-head small,.seedling-profit-imprint[data-profit-state="break-even"] .seedling-profit-imprint-head small{color:#956d1e}.seedling-profit-imprint[data-profit-state="loss"]{border-color:#efb5ac;background:#fff5f3}.seedling-profit-imprint[data-profit-state="loss"] .seedling-profit-imprint-head small,.seedling-profit-imprint[data-profit-state="loss"] [data-profit-net]{color:#b13b2d}
@media(max-width:700px){#modal .product-cost-editor[data-cost-kind="seedling"]{margin-top:16px;padding:13px}#modal .seedling-flow-step{padding:12px}.seedling-route-options{grid-template-columns:1fr}#modal .seedling-route-card{min-height:82px;padding:13px}#modal .seedling-cost-panel{padding:13px}.seedling-profit-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.seedling-profit-imprint-head{align-items:flex-start;flex-direction:column;gap:4px}}
