.sw-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}.sw-card[aria-pressed=true]{outline:2px solid var(--card-accent);outline-offset:3px}.sw-card .inventory-card-footer strong{font-size:22px;font-weight:400}.sw-filters,.sw-actions,.sw-document-heading,.sw-search{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.sw-filters{align-items:end;margin:22px 0}.sw-filters label{flex:1;min-width:140px}.sw-workspace label,.sw-fields label{display:flex;flex-direction:column;gap:7px;font-size:13px}.sw-workspace input,.sw-workspace select,.sw-editor input,.sw-editor select,.sw-fields input{min-height:44px;height:44px;box-sizing:border-box;border:1px solid var(--ui-line);border-radius:10px;background:var(--ui-raised);color:var(--ui-ink);padding:8px 12px;font:inherit;min-width:0;max-width:100%;width:100%}.sw-document-heading{justify-content:space-between;margin:0 0 20px}.sw-document-heading h2{margin:0 0 8px}.sw-state{display:inline-block;padding:6px 12px;border-radius:99px;font-size:12px;background:var(--ui-tint);color:var(--ui-accent)}.sw-state[data-state=submitted]{background:#f9dca666;color:#92600e}.sw-state[data-state=posted]{background:#c7e6df66;color:#1b6c59}.sw-state[data-state=cancelled]{background:#f4ced466;color:#9c4253}.sw-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;padding:18px;border:1px solid var(--ui-line);border-radius:14px;background:var(--ui-soft)}.sw-summary dt{font-size:12px;color:var(--ui-muted)}.sw-summary dd{margin:8px 0 0;font-size:15px;overflow-wrap:anywhere}.sw-note{white-space:pre-wrap;padding:14px;border-inline-start:3px solid var(--ui-accent);background:var(--ui-soft)}.sw-table td small{display:block;font-size:11px;color:var(--ui-muted);margin-top:4px}.sw-history{margin-top:22px;font-size:12px}.sw-history p{padding:10px;border-bottom:1px solid var(--ui-line)}.sw-editor{width:min(880px,calc(100vw - 24px))!important;max-height:92dvh!important;overflow:auto!important}.sw-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.sw-picker{padding:16px;border:1px solid var(--ui-line);border-radius:14px;margin:20px 0}.sw-picker h3{font-size:17px;margin:0 0 16px}.sw-search{margin-bottom:16px}.sw-search input{flex:1}.sw-picker>[data-sw=add]{min-height:40px}.sw-editor [hidden]{display:none!important}.sw-editor footer{position:sticky;bottom:-1px;background:var(--ui-panel);padding-top:14px;margin-top:20px}.sw-editor [data-stockroom]>button{margin-top:8px}.sw-editor [data-location-lock]{display:block;font-size:11px;color:var(--ui-muted);margin-top:5px}.sw-expiry-counts{display:grid;grid-template-columns:1fr 1fr;gap:16px}.sw-expiry-counts>div{display:flex;flex-direction:column;gap:8px;border:1px solid var(--ui-line);border-radius:14px;padding:18px;background:var(--ui-soft)}.sw-expiry-counts strong{font-size:28px;font-weight:400}.sw-expiry-state{padding:5px 10px;border-radius:99px;font-size:12px}.sw-expiry-state.expired{background:#f9d6db;color:#982d40}.sw-expiry-state.near{background:#fff0d1;color:#8c5b0e}.sw-workspace button img,.sw-editor button img{width:18px;height:18px;filter:var(--ui-icon-filter)}
@media(max-width:850px){.sw-card-grid{grid-template-columns:1fr 1fr}.sw-summary{grid-template-columns:1fr 1fr}}@media(max-width:600px){.sw-card-grid{gap:12px}.sw-fields{grid-template-columns:1fr}.sw-actions{width:100%}.sw-actions button{flex:1;min-height:44px}.sw-workspace .sw-table,.sw-editor .sw-table{display:block;min-width:0;width:100%}.sw-table thead{display:none}.sw-table tbody{display:grid;gap:12px}.sw-table tr{display:grid;grid-template-columns:1fr 1fr;gap:12px;border:1px solid var(--ui-line);border-radius:12px;padding:14px}.sw-table td{display:block;border:0!important;padding:0!important;white-space:normal!important;overflow-wrap:anywhere}.sw-table td:before{content:attr(data-label);display:block;font-size:10px;color:var(--ui-muted);margin-bottom:4px}.sw-table td:first-child{min-width:0!important}.sw-filters label{min-width:calc(50% - 10px)}.sw-filters label:first-child{flex-basis:100%}}
