.document-toolbar,.document-upload-buttons{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.document-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;align-items:end;margin:20px 0}.document-filters .field{margin:0}.document-row{display:grid;grid-template-columns:84px minmax(0,1fr) auto auto;align-items:center;gap:18px;border-bottom:1px solid #dce5e8;padding:16px 0}.document-row-name small{display:block;margin:6px 0;color:#52717d}.document-thumb{border:1px solid #cbdde1;border-radius:6px;background:#fff;width:80px;height:90px;padding:3px;cursor:zoom-in}.document-thumb img{width:100%;height:100%;object-fit:contain}.document-thumb span{font-weight:700;color:#126b74}.document-upload{background:#fff;border:1px solid #d9e4e7;border-radius:10px;padding:24px;margin:24px 0}.document-upload form{max-width:760px}.document-upload-buttons label{position:relative;overflow:hidden;cursor:pointer}.document-upload-buttons input[type=file]{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.document-progress{margin:12px 0;font-weight:600}.document-upload-results{padding-left:22px}.document-upload-results li{padding:8px 0;overflow-wrap:anywhere}.document-upload-results li a,.document-upload-results li button{margin-left:12px}.document-detail{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,1fr);gap:24px}.document-detail section{min-width:0}.document-page-image{display:block;width:100%;background:#f4f7f8;border:1px solid #d7e4e7;padding:8px;cursor:zoom-in}.document-page-image img{display:block;width:100%;max-height:650px;object-fit:contain}.document-pdf{width:100%;height:650px;border:1px solid #cbdde1}.document-match{border-left:3px solid #147e81;padding:12px 16px;background:#edf6f5;margin:12px 0}.document-match form{margin-top:10px}.document-text{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;max-height:500px;overflow:auto}.document-storage{padding:20px 0}.document-storage progress{display:block;width:100%;height:22px;accent-color:#168042}.document-storage progress.near{accent-color:#ce8500}.document-storage progress.full{accent-color:#c52331}.document-storage progress::-webkit-progress-bar{background:#e5eeee;border-radius:8px}.document-storage progress::-webkit-progress-value{background:#168042;border-radius:8px}.document-storage progress.near::-webkit-progress-value{background:#ce8500}.document-storage progress.full::-webkit-progress-value{background:#c52331}.document-viewer{width:min(1100px,96vw);max-width:96vw;height:94vh;padding:18px;border:0;border-radius:10px}.document-viewer::backdrop{background:#102c35c9}.document-viewer header{display:flex;justify-content:space-between;gap:16px;align-items:center}.document-viewer header h2{overflow-wrap:anywhere;font-size:20px}.document-viewer [data-document-viewer-body]{height:calc(100% - 120px);overflow:auto;text-align:center}.document-viewer img{max-width:100%;height:auto}.document-viewer iframe{width:100%;height:100%;border:0}.document-rotation-1{transform:rotate(90deg)}.document-rotation-2{transform:rotate(180deg)}.document-rotation-3{transform:rotate(270deg)}.project-documents-actions{display:flex;gap:10px;flex-wrap:wrap}.phone-camera .document-upload{padding:16px;text-align:left}.phone-camera .document-upload .field{margin-bottom:14px}.phone-camera .document-upload small{display:block}.phone-camera .document-upload [data-document-fallback]{display:none}.mobile-menu-label{font-size:14px;font-weight:600;margin-left:6px}
@media(max-width:760px){.document-detail{grid-template-columns:1fr}.document-row{grid-template-columns:66px minmax(0,1fr);gap:10px}.document-thumb{width:62px;height:75px;grid-row:span 2}.document-row .pill{justify-self:start;grid-column:2}.document-row>a.button{grid-column:2;justify-self:start}.document-filters{grid-template-columns:1fr 1fr}.document-filters>.field:first-of-type{grid-column:1/-1}.document-upload{padding:16px}.document-upload-buttons label{min-height:48px;flex:1;text-align:center;justify-content:center}.document-upload .field input,.document-upload .field select,.document-filters input,.document-filters select{font-size:16px;min-height:46px}.documents-page h2{font-size:21px}.document-viewer{padding:12px}.document-pdf{height:480px}.app-top .mobile-menu{width:auto;min-width:76px}.document-storage p{line-height:1.6}.project-documents-actions .button{min-height:44px}.document-upload-results li a{display:block;margin:8px 0}}
[data-document-uploader][hidden],[data-document-uploader] [hidden],.document-viewer [hidden]{display:none!important}.document-upload-buttons label:focus-within{outline:3px solid #1871be;outline-offset:3px}
