:root{font:15px/1.5 Arial,sans-serif;color:#253247;background:#f3f5f8}body{margin:0}header,main{max-width:1440px;margin:auto;padding:24px}header{padding-bottom:8px}h1{font-size:28px;margin:10px 0}h2{font-size:20px}a{color:#245da0}section,details{background:white;border:1px solid #dce1e8;border-radius:8px;padding:18px;margin:14px 0}summary{cursor:pointer;font-weight:bold}button,select,input{font:inherit;padding:8px;border:1px solid #adb8c8;border-radius:5px}button{cursor:pointer;background:#edf2f8;color:#203d64}button:disabled{opacity:.5;cursor:default}form{display:flex;flex-wrap:wrap;gap:14px;padding-top:16px;align-items:end}label{display:flex;flex-direction:column;gap:5px}p{margin:8px 0}.note,small{color:#62718a}#error{color:#9f251e;white-space:pre-wrap}.scroll{overflow:auto}table{width:100%;border-collapse:collapse;min-width:850px;table-layout:fixed}th,td{text-align:left;border-bottom:1px solid #dce1e8;padding:12px;vertical-align:top;overflow-wrap:anywhere}th{background:#eef2f7}td:nth-child(1){width:30%}pre{font:inherit;white-space:pre-wrap;max-height:220px;overflow:auto}.pager{display:flex;align-items:center;gap:20px;margin-bottom:12px}.document{border-left:3px solid #a9bacd;padding:8px;margin:8px 0}.warning{color:#925c00}.ok{color:#146846}dialog{border:1px solid #adb8c8;border-radius:8px;max-width:900px;width:85vw}dialog::backdrop{background:#0006}#paymentRows{max-height:60vh;overflow:auto}@media(max-width:650px){header,main{padding:12px}h1{font-size:23px}form{display:block}label,form button{margin:12px 0}input,select{max-width:100%;box-sizing:border-box}}
@media(max-width:650px){table,tbody,tr,td{display:block;min-width:0;width:auto}thead{display:none}tr{border:1px solid #dce1e8;border-radius:6px;margin-bottom:14px}td:nth-child(1){width:auto}td:before{display:block;font-weight:bold;margin-bottom:8px}td:nth-child(1):before{content:"Сообщение"}td:nth-child(2):before{content:"Операция поставщика"}td:nth-child(3):before{content:"Проверка документа"}td:nth-child(4):before{content:"Выплаты"}}
form[hidden]{display:none}#evidenceRows{max-height:55vh;overflow:auto;overflow-wrap:anywhere}#evidenceError{color:#9f251e}dialog{max-height:90vh;box-sizing:border-box;overflow:auto}
.allocation-choice{flex-direction:row;align-items:center;gap:10px;margin:12px 0}.allocation-choice input{width:18px;height:18px;margin:0;flex-shrink:0}#previewResult{overflow-wrap:anywhere}
