@media screen{.purchase-files-select,.purchase-files-settings{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:16px 0}.purchase-files-settings .field{min-width:180px}.purchase-files-settings small{display:block;margin-top:8px;color:#8593a7;font-size:11px}.purchase-files-work{display:grid;grid-template-columns:230px minmax(0,1fr);gap:22px;border-top:1px solid #e7ecf4;padding-top:18px}#purchase-files-list{max-height:62vh;overflow:auto;display:flex;flex-direction:column;gap:8px;align-self:start}#purchase-files-list>button{text-align:left;display:grid;gap:5px;white-space:normal;padding:12px;font-size:11px}#purchase-files-list>button strong{overflow-wrap:anywhere}#purchase-files-list>button.active{border-color:#a9c4f6;background:#f1f6ff}#purchase-files-list small{color:#8491a5}#purchase-files-list span{font-size:10px;color:#6482b1}.purchase-file-title{display:flex;gap:12px;justify-content:space-between;align-items:start;font-size:13px;margin:0 0 14px}.purchase-file-title strong{overflow-wrap:anywhere}.purchase-file-title a{white-space:nowrap;color:#3467ba}.purchase-file-text{background:#f7f9fc;border:1px solid #e6ebf3;padding:12px;border-radius:8px;margin:12px 0}.purchase-file-text pre{max-height:210px;overflow:auto;white-space:pre-wrap;font:11px/1.6 Consolas,monospace}.purchase-file-image{max-width:100%;max-height:400px;object-fit:contain}#purchase-file-form fieldset{border:0;padding:0;margin:0}#purchase-file-form .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}#purchase-file-form label{min-width:0}#purchase-file-form input,#purchase-file-form select{width:100%;min-width:0;box-sizing:border-box}#purchase-file-form input[readonly]{background:#f2f5fa;color:#8a97a9}.purchase-file-amounts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0;padding:16px;background:#f7faff;border:1px solid #e6edf8;border-radius:9px}.purchase-files-footer{position:sticky;bottom:-30px;background:#fff;border-top:1px solid #e3e9f3;margin-top:22px;padding:16px 0 5px;display:flex;gap:12px;justify-content:space-between;align-items:center;font-size:11px;color:#73839b;z-index:3}.purchase-files-footer>div{display:flex;gap:8px;flex-wrap:wrap}.purchase-files-empty{color:#8b98ab;padding:50px 18px;text-align:center}#purchase-files-message{font-size:12px;color:#526b93;line-height:1.7}.purchase-files .error{color:#b34838!important}@media(max-width:900px){.purchase-files-work{grid-template-columns:180px minmax(0,1fr)}#purchase-file-form .grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.purchase-files-work{grid-template-columns:1fr}#purchase-files-list{max-height:160px;flex-direction:row}#purchase-files-list>button{min-width:150px}.purchase-files-footer{position:static;flex-direction:column;align-items:start}.purchase-file-title{flex-direction:column}.purchase-file-amounts{padding:12px}}}

@media screen{dialog:has(.purchase-files) .modal-top{position:sticky;top:-30px;background:white;z-index:6;padding-top:15px}.purchase-files-work .grid input,.purchase-files-work .grid select,.purchase-file-amounts input{padding:9px 10px;font-size:13px}.purchase-files-work .grid{gap:10px!important}.purchase-files-work .field{font-size:11px}.purchase-files-work .field input{margin-top:5px}.purchase-file-text{margin:10px 0}.purchase-files-work .purchase-file-amounts{padding:12px;gap:10px}.purchase-files> .info{font-size:12px;line-height:1.7}}
