.order-files-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap}.order-files-button svg,.item-files-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}.production-items-table td.shipment-summary.production-files-host{position:relative;padding-right:206px}.production-items-table .production-files-host>.item-files-button{position:absolute;top:8px;right:162px;display:grid;place-items:center;box-sizing:border-box;width:32px;min-width:32px;max-width:32px;height:18px;min-height:18px;max-height:18px;margin:0;padding:0;border:1px solid #b7c9d9;border-radius:4px;background:#f1f6fa;color:#426481;box-shadow:none;cursor:pointer;line-height:1}.production-items-table .item-files-button svg{width:16px;height:14px}.production-files-dialog{width:min(1000px,95vw);max-width:95vw;max-height:90vh;box-sizing:border-box;border:0;border-radius:16px;padding:24px;color:#253d59}.production-files-dialog::backdrop,.production-file-preview::backdrop{background:#142b456b}.production-files-dialog>header,.production-file-preview>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}.production-files-dialog h2{margin:4px 0;font-size:25px}.production-files-dialog>header button,.production-file-preview>header button{border:0;background:none;font-size:28px;line-height:1;color:#6e8299;padding:0;min-height:0}.production-files-dialog .muted{font-size:13px;line-height:1.5}.files-storage{background:#edf8f2;border:1px solid #c1dece;padding:10px 12px;border-radius:8px;font-size:13px}.files-storage.offline{background:#fff5df;border-color:#eed19c;color:#865e26}.files-upload{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;padding:12px 0}.files-upload label,.files-search-label{display:flex;flex-direction:column;gap:5px;font-size:13px}.files-upload select{min-width:150px}.files-upload>span{align-self:center}.files-search-label{margin:10px 0 15px}.files-search-label input{width:100%;box-sizing:border-box}.production-file{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 0;border-top:1px solid #e1e9f0}.production-file-info{min-width:0}.production-file-info strong{overflow-wrap:anywhere;font-size:15px}.production-file-info p{margin:7px 0;font-size:12px;color:#70849a}.production-file-info small{font-size:12px;color:#70849a}.production-file-kind{color:#3b6387}.production-file-actions{display:flex;align-items:center;flex-shrink:0;gap:7px}.production-file-actions button{font-size:13px;padding:7px 10px;min-height:32px}.production-file-actions .files-delete{display:grid;place-items:center;width:32px;height:32px;padding:6px;border:1px solid #edc4bf;border-radius:7px;background:#fff6f4;color:#c24237}.files-delete svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.files-empty{padding:25px 0;color:#7a8da2}.production-file-preview{width:95vw;max-width:1400px;height:90vh;box-sizing:border-box;border:0;border-radius:14px;padding:16px;color:#253d59}.production-file-preview>header{height:35px}.production-file-preview>header strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.production-file-preview>div{height:calc(100% - 45px);display:flex;justify-content:center;align-items:center}.production-file-preview img{max-width:100%;max-height:100%;object-fit:contain}.production-file-preview iframe{width:100%;height:100%;border:0}.production-files-dialog button:disabled{opacity:.55;cursor:wait}@media(max-width:650px){.production-files-dialog{padding:16px}.production-file{align-items:flex-start;flex-direction:column;gap:10px}.production-file-actions{align-self:flex-end}.files-upload>span{width:100%}.order-files-button span{display:none}}

.files-desktop{padding:14px;border:1px solid #d2dfec;border-radius:10px;background:#f4f8fc;margin:12px 0}.files-desktop>div{display:flex;gap:8px;flex-wrap:wrap}.files-desktop p{overflow-wrap:anywhere;margin:6px 0 10px}.files-desktop small{display:block;margin-top:9px;color:#60768d}.files-desktop button,.files-desktop a{font-size:13px;padding:8px 12px;min-height:36px}

.files-drop-hint{margin:4px 0 12px;padding:12px 16px;border:1px dashed #b5cce1;border-radius:10px;background:#f6faff;color:#607b96;text-align:center;font-size:13px;pointer-events:none}.production-files-dialog.files-drag-over{outline:3px solid #397bb6;outline-offset:-4px;box-shadow:inset 0 0 0 8px #dbeeff,0 20px 70px #183b5c44}.files-drag-over .files-drop-hint{background:#e5f1ff;border-color:#397bb6;color:#205089;font-weight:600}

.production-files-dialog.files-embedded{position:static;width:100%;max-width:none;max-height:none;margin:0;padding:0;border-radius:0;overflow:visible}.production-files-dialog.files-embedded>header{display:none}.files-embedded .files-desktop{margin-top:0}

/* Keep the embedded uploader aligned with the other position-card panels. */
#production-files-dialog.files-embedded{box-sizing:border-box;padding:22px 24px 26px;background:#fff}
#production-files-dialog [hidden]{display:none!important}
#production-files-dialog .files-desktop{margin:0 0 16px;padding:18px 20px;border-radius:14px}
#production-files-dialog .files-desktop>strong{display:block;font-size:15px;line-height:1.4}
#production-files-dialog .files-desktop>p{font-size:14px;line-height:1.5;margin:7px 0 12px}
#production-files-dialog .files-desktop>div{align-items:center;gap:10px}
#production-files-dialog .files-desktop button,#production-files-dialog .files-desktop a{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:38px;margin:0;padding:9px 14px;border:1px solid #cfdeec;border-radius:10px;background:#fff;color:#2b5379;font-family:inherit;font-size:13px;font-weight:600;line-height:1.3;text-decoration:none;cursor:pointer}
#production-files-dialog .files-desktop small{margin-top:12px;font-size:12px;line-height:1.5}
#production-files-dialog .files-storage{margin:0 0 18px;padding:11px 14px;border-radius:11px;font-size:13px;line-height:1.5}
#production-files-dialog .files-upload{gap:12px;padding:0;margin:0 0 16px;align-items:flex-end}
#production-files-dialog .files-upload label{margin:0;min-width:160px;font-size:12px;gap:6px}
#production-files-dialog .files-upload select{box-sizing:border-box;min-height:42px;margin:0;font-size:14px}
#production-files-dialog .files-upload>button{min-height:42px;margin:0;padding:10px 16px;font-size:14px;line-height:1.4;border-radius:11px}
#production-files-dialog .files-upload>span{font-size:12px;line-height:1.4;align-self:center}
#production-files-dialog #files-refresh{margin-left:auto}
#production-files-dialog .files-drop-hint{box-sizing:border-box;margin:0 0 18px;padding:16px;border-radius:12px;font-size:13px;line-height:1.5}
#production-files-dialog .files-search-label{margin:0;gap:7px;font-size:12px}
#production-files-dialog #files-search{box-sizing:border-box;min-height:42px;margin:0;padding:10px 14px;font-size:14px}
#production-files-dialog .files-empty{margin:16px 0 0;padding:24px 14px;text-align:center;font-size:14px;line-height:1.6;border:1px solid #e5ecf4;border-radius:12px;background:#fafcfe}
#production-files-dialog .production-file{gap:14px;padding:16px 0}
@media(max-width:650px){
 #production-files-dialog.files-embedded{padding:16px}
 #production-files-dialog .files-desktop{padding:14px}
 #production-files-dialog .files-desktop>div>*{flex:1 1 160px}
 #production-files-dialog .files-upload{display:flex;flex-wrap:wrap;gap:12px}
 #production-files-dialog .files-upload label{min-width:0;flex:1 1 100%}
 #production-files-dialog .files-upload select{width:100%;min-width:0}
 #production-files-dialog .files-upload>span{order:10;flex:1 1 100%;text-align:center;width:auto}
 #production-files-dialog #files-refresh{margin-left:0}
 #production-files-dialog .files-upload>button{flex:1 1 120px;padding:10px;font-size:13px}
}
