/* Phase 1.9 Stock Management */
.stk-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:20px}
.stk-head h2{margin:4px 0 5px;font-size:25px}.stk-head p,.stk-toolbar p{margin:0;color:var(--muted,#718096);font-size:13px}
.stk-head-actions{display:flex;gap:8px;flex-wrap:wrap}
.stk-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:16px}
.stk-stats article{background:var(--surface,#fff);border:1px solid var(--border,#e6eaf0);border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:7px;min-width:0}
.stk-stats article span{font-size:12px;color:var(--muted,#718096)}.stk-stats article b{font-size:23px;color:var(--text,#17243a)}.stk-stats article small{font-size:11px;color:var(--muted,#718096)}
.stk-stats article.warn b{color:#c47b13}.stk-stats article.danger b{color:#d04444}
.stk-alerts{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:rgba(236,164,54,.09);border:1px solid rgba(236,164,54,.25);border-radius:13px;margin-bottom:16px}
.stk-alerts div{display:flex;flex-direction:column;gap:3px}.stk-alerts span{font-size:12px;color:var(--muted,#718096)}
.stk-card,.stk-history{padding:0;overflow:hidden;margin-bottom:16px}
.stk-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:17px 18px}.stk-toolbar h3{margin:0 0 4px;font-size:16px}
.stk-filters{display:flex;gap:8px}.stk-filters input,.stk-filters select{min-height:38px;border:1px solid var(--border,#dce2ea);border-radius:9px;padding:0 11px;background:var(--surface,#fff);color:var(--text,#17243a);font:inherit;font-size:13px}
.stk-filters input{width:220px}.stk-filters select{min-width:130px}
.stk-table-wrap{width:100%;overflow-x:auto}.stk-table{width:100%;border-collapse:collapse;min-width:720px}.stk-table th{text-align:left;padding:11px 16px;background:var(--surface-2,#f7f8fa);font-size:10px;letter-spacing:.06em;color:var(--muted,#718096);font-weight:700}.stk-table td{padding:13px 16px;border-top:1px solid var(--border,#edf0f4);font-size:13px;color:var(--text,#26364d)}.stk-table td small{display:block;color:var(--muted,#8490a2);font-size:11px;margin-top:3px}
.stk-badge{display:inline-flex;padding:4px 8px;border-radius:20px;font-size:11px;font-weight:650}.stk-badge.ok{background:#e7f6ed;color:#23804a}.stk-badge.low{background:#fff3dc;color:#a96b08}.stk-badge.out{background:#fdeaea;color:#c13d3d}
.stk-foot{padding:12px 17px;border-top:1px solid var(--border,#edf0f4);font-size:11px;color:var(--muted,#718096)}
.stk-moves{padding:0 18px 8px}.stk-move{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--border,#edf0f4)}.stk-move-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-weight:800}.stk-move-icon.in{background:#e7f6ed;color:#23804a}.stk-move-icon.out{background:#fff0e8;color:#c05c2c}
.stk-move-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}.stk-move-info b{font-size:13px}.stk-move-info small{font-size:11px;color:var(--muted,#718096);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.stk-move strong{font-size:13px;white-space:nowrap}.stk-move strong.positive{color:#23804a}.stk-move strong.negative{color:#c05c2c}
.stk-empty{text-align:center;padding:25px!important;color:var(--muted,#718096)!important;font-size:13px!important}
.stk-backdrop{position:fixed;inset:0;background:rgba(10,20,35,.56);display:flex;align-items:center;justify-content:center;padding:16px;z-index:1000}
.stk-modal{width:min(100%,480px);max-height:90vh;overflow:auto;background:var(--surface,#fff);color:var(--text,#17243a);border-radius:17px;padding:20px;box-shadow:0 20px 70px rgba(0,0,0,.22)}
.stk-modal .pos-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:17px}.stk-modal .pos-dialog-head h3{margin:0 0 4px}.stk-modal .pos-dialog-head p{margin:0;color:var(--muted,#718096);font-size:12px}
.stk-modal .pos-dialog-head button{border:0;background:transparent;font-size:25px;cursor:pointer;color:inherit}
.stk-form{display:grid;gap:8px}.stk-form label{font-size:12px;font-weight:650;margin-top:5px}.stk-form input,.stk-form select{width:100%;min-height:42px;border:1px solid var(--border,#dce2ea);border-radius:9px;padding:0 11px;background:var(--surface,#fff);color:var(--text,#17243a);font:inherit}
.stk-current{background:var(--surface-2,#f5f7fa);border-radius:9px;padding:10px;font-size:12px;color:var(--muted,#66758a)}
.stk-modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}
@media(max-width:760px){.stk-head{flex-direction:column}.stk-head-actions{width:100%}.stk-head-actions button{flex:1}.stk-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.stk-stats article{padding:13px}.stk-stats article b{font-size:20px}.stk-alerts{align-items:flex-start;flex-direction:column}.stk-toolbar{align-items:flex-start;flex-direction:column}.stk-filters{width:100%}.stk-filters input{flex:1;min-width:0;width:100%}.stk-filters select{max-width:135px}.stk-moves{padding:0 12px 8px}.stk-move-info small{white-space:normal}}
