/* Card-scoped layout: override global form label margins. */
.stock-count-entry{container:count-card / inline-size;background:#fff!important;border:1px solid #e2e7eb!important;border-radius:12px!important;padding:18px!important}
.stock-count-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.stock-count-grid>.count-field:not(.count-quantity-field){grid-column:1/-1}
.stock-count-grid .count-field,.stock-count-grid label{margin:0!important;min-width:0;display:flex;flex-direction:column;gap:8px;color:#65727c;font-size:12px;line-height:18px}
.stock-count-grid .count-field>span{margin:0;padding:0;line-height:18px;font-weight:600;font-size:12px}
.stock-count-grid .count-quantity-field,.stock-count-grid .count-parts{display:contents}
.stock-count-grid .count-quantity-field>span{display:none}
.stock-count-grid input,.stock-count-grid select{margin:0!important;height:44px;min-height:44px;box-sizing:border-box;padding:10px 12px;border:1px solid #dce2e7;border-radius:8px;background:#fff;color:#20282f;font-size:14px;line-height:22px;width:100%;min-width:0;box-shadow:none}
.stock-count-grid select{padding-right:30px;text-overflow:ellipsis}
.stock-count-grid input::placeholder{color:#99a2aa}
.stock-count-entry .count-row-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px;margin-top:16px;padding-top:14px;border-top:1px solid #edf0f2}
.stock-count-entry .count-row-footer>div:first-child{flex:1;min-width:180px}
.stock-count-entry .count-variance{margin:0;gap:6px;font-size:12px;line-height:1.5;color:#6b7780}
.stock-count-entry .count-variance>strong{display:block;width:fit-content;font-size:12px;line-height:20px;font-weight:600;color:#3c4852;background:#f1f4f6;padding:3px 9px;border-radius:6px}
.stock-count-entry .count-variance>span,.stock-count-entry .count-variance>small{font-size:12px;line-height:1.5;color:#6b7780}
.stock-count-entry .count-recorded-spec{font-size:12px;color:#6b7780}
.stock-count-entry .count-recorded-spec summary{cursor:pointer;line-height:22px}
.stock-count-entry .count-recorded-spec p{white-space:pre-wrap;overflow-wrap:anywhere;margin:6px 0}
.stock-count-entry .count-product-actions{display:flex;flex-wrap:wrap;gap:8px;margin:0;width:100%;align-items:center}
.stock-count-entry .count-product-actions button{height:34px;min-height:34px;padding:6px 10px;border:1px solid #e1e6ea;border-radius:7px;background:#fff;font-size:12px;line-height:20px;white-space:nowrap;color:#4a5964}
.stock-count-entry .count-product-actions .remove-count{color:#b54747;border-color:#f0dddd;background:#fff;margin-left:auto;font-size:12px}
.stock-count-entry .count-row-error:empty{display:none}
.stock-count-entry .count-row-error:not(:empty){display:block;margin-top:6px}
@container count-card (min-width:520px){.stock-count-grid>.count-field:not(.count-quantity-field){grid-column:auto}}
@container count-card (min-width:760px){.stock-count-grid{grid-template-columns:minmax(130px,1fr) minmax(240px,2.2fr) minmax(100px,.8fr) minmax(130px,1fr)}.stock-count-entry .count-product-actions{width:auto}.stock-count-entry .count-product-actions .remove-count{margin-left:0}}
@media(max-width:600px){.stock-count-entry{padding:14px!important}.stock-count-grid{gap:14px}.stock-count-grid input,.stock-count-grid select{font-size:16px;height:46px;min-height:46px}.stock-count-entry .count-product-actions button{height:38px;min-height:38px}}
.count-row-photos{margin-top:12px;border-top:1px solid #edf0f2;padding-top:10px;min-width:0}
.count-date-summary{padding:12px 14px;margin:12px 0;border:1px solid #dce6df;border-radius:9px;background:#f5faf6;color:#325b3c;overflow-wrap:anywhere}
.count-date-summary.error{background:#fff7e7;border-color:#f0ce85;color:#8a5310}
.count-date-summary p{margin:0 0 9px;font-size:13px;line-height:1.6}
.count-date-summary button{white-space:normal;text-align:left;line-height:1.5;min-height:40px}
#stockCountControls .count-settings{display:grid;min-width:0}
.count-row-photos[hidden]{display:none}
.count-row-photos small{display:block;font-size:12px;line-height:20px;color:#687780}
.count-row-photos[data-state=saved] .count-row-photo-status{color:#21744b;font-weight:600}
.count-row-photos[data-state=error] small{color:#ad342d}
.count-row-photo-grid{display:flex;flex-wrap:wrap;gap:8px;margin-top:7px}
.count-row-photo-grid a{display:flex;align-items:center;justify-content:center;width:80px;height:80px;border:1px solid #dce3e8;border-radius:8px;overflow:hidden;background:#f8fafb;text-decoration:none}
.count-row-photo-grid img{display:block;width:100%;height:100%;object-fit:contain}
.count-row-photo-grid img[hidden],.count-row-photo-grid span[hidden]{display:none}
.count-row-photo-grid span{font-size:11px;line-height:16px;padding:5px;color:#476378}
@media(max-width:600px){.count-row-photo-grid a{width:72px;height:72px}}
