.receive-form{min-width:min(1000px,90vw)}.receive-find{display:grid;grid-template-columns:1fr 1fr;gap:12px}.receive-find p{grid-column:1/-1;margin:0;color:var(--muted)}.receive-line{border:1px solid var(--line);border-radius:12px;padding:16px;margin:12px 0;background:#fff}.receive-line-head{display:flex;justify-content:space-between;align-items:center;gap:12px}.receive-line>p{margin:6px 0;color:var(--muted)}.receive-quantities{font-weight:600;color:var(--green2)!important}.receive-fields{display:grid;grid-template-columns:2fr 2fr 80px 140px;gap:10px;margin:12px 0}.receive-fields>label:last-child{grid-column:1/-1}.receive-distribution,.receive-item-photo{margin-top:12px;padding:10px;background:#f3f7f8;border-radius:8px}.receive-distribution summary,.receive-item-photo summary{cursor:pointer;font-weight:600}.receive-allocation{display:grid;grid-template-columns:140px 100px 1fr 1fr;gap:8px;padding:12px 0;border-bottom:1px solid var(--line)}.receive-allocation>label:nth-last-child(2){grid-column:1/4}.receive-common{padding:16px;border:1px solid var(--line);border-radius:10px}.receive-photo-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.receive-photo-actions label,.receive-photo-actions button{padding:8px 12px;border:1px solid #bdcfd9;border-radius:8px;background:white;cursor:pointer;font:inherit}.receive-photo-actions input{display:none}.receive-photo-previews{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.receive-photo-previews>span{position:relative}.receive-photo-previews img{width:90px;height:80px;object-fit:contain;background:white;border:1px solid var(--line)}.receive-photo-previews button{position:absolute;top:0;right:0;background:#ae3333;color:white;border:0;border-radius:50%;padding:3px 7px}.receive-label-line{border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:16px}.receive-label-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.receive-label-preview img{width:160px;height:120px;object-fit:contain;border:1px solid var(--line);margin-top:10px}.receive-link-actions{padding:16px}.receive-link-actions button{display:block;padding:10px;margin:8px 0;width:100%;text-align:left}
dialog:has(.receive-form),dialog:has(.receive-label-form){width:min(960px,calc(100% - 24px))}
.receive-form{min-width:0}.receive-history{border:1px solid var(--line);border-radius:12px;background:white;margin:12px 0;padding:16px}.receive-history header{display:flex;justify-content:space-between;gap:12px}.receive-history small{display:block;color:var(--muted);margin-top:5px}.receive-history-item{display:grid;grid-template-columns:80px 1fr 180px;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid var(--line)}.receive-history-item img{width:76px;height:70px;object-fit:contain}.receive-history-item p{margin:6px 0}.receive-status{display:block;border-radius:6px;padding:6px 10px;margin-bottom:8px;font-weight:600}.receive-status.pending{background:#fff0d7;color:#925600}.receive-status.ready{background:#e5f2ff;color:#155c94}.receive-status.done{background:#e4f4ed;color:#256c50}.receive-secondary{margin-top:12px}.receive-secondary summary{cursor:pointer;color:var(--muted)}.receive-secondary button{margin:8px 8px 0 0}.receive-inline-form{background:#f3f7f8;border-radius:8px;padding:16px;margin-top:12px;display:grid;grid-template-columns:1fr 1fr;gap:12px}.receive-inline-form>b,.receive-inline-form>p,.receive-inline-form>div{grid-column:1/-1}.receive-inline-form label{display:flex;flex-direction:column;gap:6px}.receive-inline-form input[type=checkbox]{width:auto;align-self:flex-start}
@media(max-width:750px){.receive-history-item{grid-template-columns:64px 1fr}.receive-history-item img{width:60px;height:60px}.receive-history-item>div:last-child{grid-column:2}.receive-inline-form{grid-template-columns:1fr}.receive-history-head{flex-wrap:wrap}.receive-photo-actions [data-paste-photo]{display:none}}
.receive-history-head{display:flex;justify-content:space-between;gap:12px}.receive-list-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.receive-list-filters .active{background:var(--navy);color:white}
.receive-allocation>[data-unit-check]{grid-column:1/-1}.receive-allocation [data-unit-confirm]{width:100%;min-width:0}.receive-search-result .receive-line-head{align-items:flex-start}
@media(max-width:750px){.receive-form{min-width:0}.receive-find{grid-template-columns:1fr}.receive-fields{grid-template-columns:1fr 1fr}.receive-allocation{grid-template-columns:1fr 1fr}.receive-allocation>label:nth-last-child(2){grid-column:1/-1}.receive-label-fields{grid-template-columns:1fr}.receive-photo-actions{gap:6px}}
