.stock-dialog{color-scheme:dark;width:min(1050px,calc(100vw - 32px));max-width:1050px;max-height:calc(100dvh - 32px);padding:0;border:1px solid #3e3e3e;border-radius:22px;background:#171717;color:#f7f7f7;box-shadow:0 24px 100px #000a;font-family:inherit;overflow:hidden}.stock-dialog[open]{display:flex;flex-direction:column}.stock-dialog::backdrop{background:#000c;backdrop-filter:blur(7px)}.stock-dialog *{box-sizing:border-box}.stock-dialog [hidden]{display:none!important}.stock-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:24px 28px;border-bottom:1px solid #353535;flex-shrink:0}.stock-head span{color:#aaa;font-size:13px}.stock-head h1{font-size:26px;margin:4px 0 0;text-transform:uppercase;letter-spacing:-.7px}.stock-body{padding:24px 28px;overflow:auto;overscroll-behavior:contain;min-height:0}.stock-button{min-height:42px;padding:9px 15px;background:#292929;color:#f5f5f5;border:1px solid #484848;border-radius:10px;font:inherit;font-size:14px;font-weight:650;cursor:pointer}.stock-button:hover{background:#353535;border-color:#777}.stock-button.is-primary{background:#ff7b22;color:#161616;border-color:#ff7b22}.stock-button:focus-visible,.stock-dialog input:focus-visible,.stock-dialog select:focus-visible,.stock-dialog textarea:focus-visible{outline:2px solid #ff8b3e;outline-offset:3px}.stock-button:disabled{opacity:.5;cursor:default}.stock-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:22px}.stock-overview>div{padding:18px;border:1px solid #353535;border-radius:14px;background:#202020}.stock-overview span{display:block;color:#b6b6b6;font-size:13px}.stock-overview strong{display:block;font-size:28px;line-height:1.3;margin-top:5px}.stock-toolbar,.stock-item-actions,.stock-edit-actions,.stock-pagination{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.stock-toolbar{margin-bottom:20px}.stock-search{display:grid;grid-template-columns:minmax(160px,1fr) 180px auto;align-items:end;gap:12px;margin-bottom:18px}.stock-search label,.stock-field,.stock-catalog label{display:flex;flex-direction:column;gap:7px;color:#c5c5c5;font-size:13px}.stock-dialog input:not([type=checkbox]),.stock-dialog select,.stock-dialog textarea{width:100%;min-width:0;min-height:44px;padding:11px 12px;background:#242424;color:#fff;border:1px solid #484848;border-radius:10px;font:inherit;font-size:15px}.stock-dialog input::placeholder,.stock-dialog textarea::placeholder{color:#999}.stock-dialog textarea{line-height:1.55;resize:vertical}.stock-dialog input[type=checkbox]{accent-color:#ff7b22;width:18px;height:18px}.stock-items{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.stock-item{min-width:0;border:1px solid #3a3a3a;border-radius:16px;padding:20px;background:#202020}.stock-item-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.stock-item h2{font-size:17px;line-height:1.4;margin:0;overflow-wrap:anywhere}.stock-item-head p{font-size:12px;color:#aaa;margin:4px 0 0;overflow-wrap:anywhere}.stock-badge{flex-shrink:0;font-size:11px;line-height:1.3;padding:6px 8px;border:1px solid #545454;background:#2d2d2d;border-radius:30px;color:#ddd}.stock-badge.is-low{color:#ffac70;border-color:#82512c;background:#37271b}.stock-description{font-size:13px;color:#c0c0c0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:8em;overflow:auto;line-height:1.5}.stock-item dl,.stock-history dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin:18px 0}.stock-dialog dt{font-size:12px;color:#aaa}.stock-dialog dd{font-size:17px;font-weight:650;margin:4px 0 0}.stock-item-actions{padding-top:10px;border-top:1px solid #353535}.stock-muted{color:#aaa;font-size:13px;line-height:1.6;overflow-wrap:anywhere}.stock-empty{text-align:center;padding:40px 18px;color:#aaa;border:1px dashed #414141;border-radius:14px;line-height:1.65}.stock-empty h2{color:#eee;font-size:20px}.stock-error,.stock-notice,.stock-warning{padding:13px 16px;border-radius:10px;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.stock-error{background:#38211c;color:#ffd2be;border:1px solid #84412e}.stock-notice{background:#272b24;color:#d4e7c7;border:1px solid #4e6340}.stock-warning{background:#35291c;color:#ffd1a0;border:1px solid #7d5732}.stock-section-head{margin-bottom:22px}.stock-section-head h2{font-size:22px;margin:0 0 8px;overflow-wrap:anywhere}.stock-section-head p{color:#bcbcbc;font-size:14px;line-height:1.6}.stock-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.stock-field.is-wide{grid-column:1/-1}.stock-checkbox{display:flex;align-items:center;gap:10px;color:#ccc;font-size:14px}.stock-edit-actions{justify-content:flex-end;margin-top:24px;padding-top:18px;border-top:1px solid #373737}.stock-catalog{padding:16px;border:1px solid #414141;border-radius:12px;display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end;margin-bottom:20px}.stock-catalog-results{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}.stock-catalog-results .stock-button{text-align:left;overflow-wrap:anywhere;max-width:100%}.stock-pagination{justify-content:center;margin-top:24px;color:#bbb}.stock-history{display:grid;gap:12px;margin-top:20px}.stock-history article{border:1px solid #3c3c3c;border-radius:12px;padding:16px;background:#202020}.stock-history article>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.stock-history time{font-size:12px;color:#aaa}.stock-history p{font-size:14px;line-height:1.5;overflow-wrap:anywhere}.stock-history dl{max-width:450px;margin-bottom:0}@media(max-width:650px){.stock-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:16px}.stock-head{padding:18px 16px}.stock-head h1{font-size:21px}.stock-body{padding:18px 16px}.stock-overview{gap:8px}.stock-overview>div{padding:12px 9px}.stock-overview span{font-size:11px}.stock-overview strong{font-size:24px}.stock-search{grid-template-columns:1fr auto;gap:10px}.stock-search label:first-child{grid-column:1/-1}.stock-items,.stock-fields{grid-template-columns:1fr}.stock-item{padding:16px}.stock-item-head{gap:7px}.stock-item h2{font-size:16px}.stock-item-actions .stock-button{flex:1;font-size:12px;padding:8px}.stock-catalog{grid-template-columns:1fr}.stock-field.is-wide{grid-column:auto}.stock-edit-actions .stock-button{flex:1}.stock-button{min-height:44px}.stock-description{max-height:none}}
