.hdoc-page {min-width:0;max-width:100%;}
.hdoc-toolbar,.hdoc-actions,.hdoc-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.hdoc-tabs{margin:8px 0 12px}.hdoc-actions{margin-top:12px}.hdoc-page .panel{padding:14px;margin-bottom:12px}
.hdoc-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;align-items:end}
.hdoc-filters label,.hdoc-upload label,.hdoc-confirm label,.hdoc-modal form>label{display:grid;gap:5px;min-width:0}
.hdoc-filters input,.hdoc-filters select,.hdoc-upload input,.hdoc-modal input:not([type=checkbox]):not([type=radio]),.hdoc-modal select{max-width:100%;min-width:0;width:100%;box-sizing:border-box}
.hdoc-filters>.checkrow{display:flex;align-items:center;gap:8px;align-self:center}
.hdoc-filters>.checkrow input{width:auto}.hdoc-filters>button{justify-self:start}
.hdoc-page .table-wrap,.hdoc-scroll.table-wrap{max-width:100%;overflow:auto}
.hdoc-page table{min-width:730px;width:100%;font-size:14px}.hdoc-page td,.hdoc-page th{padding:9px 10px;vertical-align:top}
.hdoc-page td p{margin:4px 0;font-size:12px;max-width:360px}.hdoc-page td small{line-height:1.5}.hdoc-page td button{font-size:12px;padding:3px 7px;margin-top:4px}
.hdoc-page td{white-space:normal}.hdoc-page td:nth-child(1){width:30px}.hdoc-page input[type=checkbox],.hdoc-modal input[type=checkbox],.hdoc-modal input[type=radio]{width:16px;min-width:16px;height:16px;flex:none}
.hdoc-tag{display:inline-block;padding:2px 6px;border-radius:5px;font-size:12px;background:#edf2f7;color:#425168;margin:1px 0}
.hdoc-PENDING,.hdoc-ISSUE{background:#fff2d7;color:#80540d}.hdoc-LINKED,.hdoc-AUTO,.hdoc-CONFIRMED{background:#e7f4ed;color:#1b6043}.hdoc-ERROR,.hdoc-EXCLUDED{background:#fbe9e8;color:#9b3833}
.hdoc-problem{color:#9b5523}.hdoc-modal{width:min(1040px,calc(100vw - 28px));max-width:1040px;max-height:90vh;overflow:auto;box-sizing:border-box}
.hdoc-upload{display:grid;grid-template-columns:minmax(0,2fr) minmax(140px,1fr) auto;align-items:end;gap:12px}
.hdoc-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}
.hdoc-summary span{padding:12px;border-radius:8px;background:#f1f5f9;font-size:13px}.hdoc-summary strong{display:block;font-size:24px;color:#223b56;margin-bottom:4px}
.hdoc-scroll{max-height:320px;overflow:auto;margin:10px 0}.hdoc-scroll p{margin:7px 0}.hdoc-scroll table{min-width:650px;width:100%}
.hdoc-scroll td,.hdoc-scroll th{padding:8px;text-align:left}.hdoc-modal details{margin:12px 0}.hdoc-modal summary{cursor:pointer;font-weight:600}
.hdoc-confirm{display:grid;gap:12px;margin-top:16px;padding-top:12px;border-top:1px solid #e4e8ef}.hdoc-confirm .checkrow{display:flex;gap:8px}.hdoc-confirm button{justify-self:start}
.hdoc-errors{max-height:300px;overflow:auto}.hdoc-chosen{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.hdoc-chosen span{padding:4px 8px;background:#f0f4f8;border-radius:5px;font-size:13px}
.hdoc-candidates{max-height:270px;overflow:auto;border:1px solid #dce3ec;border-radius:6px;margin:12px 0}.hdoc-candidates label{padding:8px 12px;display:flex;gap:8px;border-bottom:1px solid #edf1f5}
.hdoc-modal form>button[type=submit]{margin-top:12px}.hdoc-audit{max-height:65vh;overflow:auto}
@media(max-width:650px){.hdoc-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hdoc-upload{grid-template-columns:1fr}.hdoc-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.hdoc-summary span{padding:9px}.hdoc-page .panel{padding:10px}.hdoc-modal{padding:14px}.hdoc-page .toolbar{align-items:flex-start;flex-wrap:wrap}.hdoc-actions button{font-size:12px;padding:6px 8px}}
