.stock-tabs{display:flex;gap:5px;padding:16px 24px 0;flex-wrap:wrap}.stock-tabs button{border:0;background:transparent;color:var(--muted);padding:9px 14px;border-radius:7px;cursor:pointer;font:inherit;font-size:13px}.stock-tabs button.active{background:#e8f1ef;color:#226353;font-weight:650}.stock-toolbar{display:flex;gap:18px;align-items:center;justify-content:space-between;padding:20px 24px;border-top:1px solid #edf0ee}.stock-toolbar p{color:var(--muted);font-size:13px;max-width:650px;margin:0;line-height:1.7}.stock-toolbar>div{display:flex;gap:8px;flex-shrink:0}.stock-lots{min-width:250px;padding:12px 0}.stock-lots>div{padding:8px 0;border-bottom:1px solid #edf0ee;display:grid;gap:5px}.stock-lots small{color:var(--muted)}.stock-lots span{font-variant-numeric:tabular-nums}.stock-edit{min-width:1090px}.stock-edit td:first-child{min-width:230px}.stock-edit input,.stock-edit select{width:100%;min-width:100px}.stock-edit td:nth-child(2){min-width:180px}.stock-edit td:nth-child(3){min-width:120px}.stock-edit td:nth-child(6){min-width:180px}.stock-confirm{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.7;margin:22px 0;color:#354c43}.stock-confirm input{margin-top:4px;flex-shrink:0}.stock-settle-row{border:1px solid #e2e8e4;border-radius:9px;padding:18px;margin:18px 0}.stock-settle-row h3{margin:0 0 15px}.stock-settle-row p{font-size:13px;line-height:1.7}.y-tabs{overflow:auto}.stock-tabs+.filters{padding-top:18px}#yarn-content>.orders-card>.info-banner{margin:12px 24px}#yarn-dialog:has(.stock-edit){width:min(1330px,96vw)}#yarn-dialog .y-field.wide{grid-column:1/-1}@media(max-width:800px){.stock-toolbar{align-items:stretch;flex-direction:column}.stock-toolbar>div{flex-wrap:wrap}.stock-tabs{padding:12px}.stock-settle-row{padding:12px}}
/* Opening balances use the same stock ledger as supplier receipts. */
.stock-opening-history{margin:22px 24px;border:1px solid var(--line);border-radius:8px;padding:16px}.stock-opening-history>summary{cursor:pointer;font-size:13px;color:#426372}.stock-opening-history .table-wrap{margin-top:16px}.stock-opening-edit{min-width:1130px}.stock-opening-edit input,.stock-opening-edit select{width:100%;min-width:105px;height:38px;border:1px solid #dfe8ec;border-radius:6px;padding:8px 10px;background:#fff;color:#486370;font:inherit;font-size:12px}.stock-opening-edit input:focus,.stock-opening-edit select:focus{outline:2px solid #dbeaf0;border-color:#87aebf}.stock-opening-edit td:nth-child(2){min-width:190px}.stock-opening-edit td:nth-child(3),.stock-opening-edit td:nth-child(4){min-width:140px}.stock-opening-edit td:nth-child(7){min-width:170px}.stock-opening-actions{display:flex;gap:20px;align-items:center;justify-content:space-between;margin-top:14px}.stock-opening-actions>span{font-size:12px;color:var(--muted)}#yarn-dialog:has(.stock-opening-edit){width:min(1380px,96vw)}
@media(max-width:800px){.stock-opening-history{margin:16px 12px}.stock-opening-actions{align-items:flex-start;flex-direction:column;gap:10px}}
