.document-library{max-width:1500px;margin:auto;padding:26px 12px;color:var(--text,#283d46)}.document-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.document-heading h1{margin:4px 0 8px}.document-heading p{color:var(--muted,#71818c);margin:0}.document-library button,.document-dialog button{cursor:pointer;border:1px solid #d6e1e4;border-radius:8px;padding:9px 14px;background:#fff;color:#355362;font:inherit;font-size:13px}.document-library button.primary-action,.document-dialog button.primary-action{background:var(--accent,#3d7097);color:#fff;border-color:transparent}.document-library button:disabled,.document-dialog button:disabled{opacity:.5;cursor:default}.document-filters{display:flex;align-items:end;gap:16px;padding:18px;background:var(--surface,#fff);border:1px solid var(--line,#dfe6e9);border-radius:14px;margin-bottom:22px}.document-filters label{display:grid;gap:6px;font-size:12px;font-weight:600}.document-filters label:first-child{flex:1}.document-filters input,.document-filters select,.document-form input,.document-form textarea,.checklist-item-editor input:not([type=checkbox]),.checklist-item-editor select,.checklist-item-editor textarea,.checklist-builder-toolbar select{width:100%;min-width:0;border:1px solid #d4dfe3;border-radius:8px;padding:10px 12px;background:#fff;color:#29434d;font:inherit}.document-filters>span{font-size:12px;color:#7c8b94;margin-bottom:10px}.document-empty{padding:50px 25px;text-align:center;border:1px dashed #cddce2;border-radius:14px;color:#71818c;background:#fff}.document-table-wrap{overflow:auto;border:1px solid #dce5e9;border-radius:13px;background:#fff}.document-table{width:100%;border-collapse:collapse;font-size:13px}.document-table th{text-align:left;color:#71818c;font-size:11px;padding:14px;background:#f5f8fa;white-space:nowrap}.document-table td{padding:15px 14px;border-top:1px solid #e5ebee;max-width:320px;overflow-wrap:anywhere}.document-table small{display:block;font-size:11px;color:#7c8b94;margin-top:5px}.document-table .document-link{padding:0;border:0;text-align:left;font-weight:650;background:none}.document-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}.document-cards article{min-width:0;background:var(--surface,#fff);border:1px solid var(--line,#dce5e9);border-radius:14px;padding:20px;display:flex;flex-direction:column;box-shadow:0 4px 12px #273d4605}.document-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:10px;color:#7b8b94}.document-kind{padding:5px 8px;border-radius:5px;background:#edf3f6;color:#41697b;font-size:10px;font-weight:700}.document-cards .document-card-title{padding:18px 0 6px;border:0;background:none;text-align:left;font-size:18px;font-weight:650;overflow-wrap:anywhere}.document-cards article>p{color:#71818c;font-size:13px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;flex:1}.document-cards footer{display:flex;align-items:center;gap:10px;margin-top:18px;padding-top:12px;border-top:1px solid #e7edef}.document-cards footer span{flex:1;font-size:11px;color:#829199}.document-cards footer button{padding:5px 8px;font-size:12px}.document-backdrop{position:fixed;inset:0;z-index:250;background:#20353f66;display:flex;align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(4px)}.document-backdrop:has(.document-preview){z-index:270}.document-dialog{width:min(960px,96vw);max-height:94dvh;display:flex;flex-direction:column;overflow:hidden;background:#fff;border-radius:18px;box-shadow:0 25px 80px #152f4940}.document-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid #e1e9ed;gap:20px}.document-dialog>header h2{margin:4px 0;font-size:22px;overflow-wrap:anywhere}.document-dialog>header small{color:#718a96;font-size:10px;letter-spacing:.1em}.document-body{padding:24px 26px;overflow:auto;min-height:0}.document-dialog>footer{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px;border-top:1px solid #e1e9ed;flex-shrink:0}.document-dialog>footer .document-danger{margin-right:auto;color:#b75049}.document-description{white-space:pre-wrap;line-height:1.6;color:#6e808a}.document-callout{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px;background:#f2f7f9;border-radius:12px;margin:18px 0 26px}.document-callout p{font-size:12px;color:#788b95}.document-file{display:flex;align-items:center;gap:10px;padding:12px 0;border-bottom:1px solid #e5ecef;font-size:13px}.document-file>div,.document-file>span{flex:1;min-width:0;overflow-wrap:anywhere}.document-file small{display:block;color:#80919a;font-size:11px}.document-error{margin:10px 24px;padding:12px 16px;border:1px solid #edcbc7;border-radius:8px;background:#fff5f3;color:#ab5147;font-size:13px;white-space:pre-wrap}.document-form{display:grid;gap:16px}.document-form label,.checklist-item-editor label{display:grid;gap:7px;font-size:12px;font-weight:650;margin-bottom:12px}.document-type-tabs{display:flex;gap:8px;padding:14px 0 20px}.document-type-tabs button{flex:1;background:#f5f8fa}.document-type-tabs button.active{color:#2d6580;border-color:#75a4b9;background:#eaf4f8;font-weight:700}.document-rich-editor{margin-bottom:22px}.document-upload{margin-top:24px;border-top:1px solid #e0e9ed;padding-top:16px}.document-upload h3{font-size:14px}.document-upload p{color:#7b8d97;font-size:12px}.checklist-builder-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:16px}.checklist-builder-toolbar small{display:block;font-size:11px;color:#7c8e98}.checklist-builder-toolbar select{width:210px;font-size:12px}.checklist-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);gap:18px;align-items:start}.checklist-items{display:grid;gap:7px}.checklist-item{border:1px solid #dee8ec;border-radius:9px;overflow:hidden;background:#fff;display:flex}.checklist-item.active{border-color:#75a3b9;background:#f3f8fb}.checklist-item .checklist-select{display:flex;align-items:center;gap:10px;flex:1;min-width:0;border:0;background:transparent;text-align:left;padding:12px}.checklist-select>span{color:#93a4ae;font-size:12px}.checklist-select div{min-width:0}.checklist-select small{display:block;font-size:10px;color:#6d8b9b}.checklist-select b{font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-weight:550}.checklist-item-actions{display:flex;align-items:center;padding:0 4px;gap:1px}.checklist-item-actions button{border:0;background:transparent;padding:6px}.checklist-item-editor{background:#f6f9fb;border:1px solid #dfe8ed;border-radius:12px;padding:18px;position:sticky;top:0}.checklist-item-editor h3{font-size:14px;margin:0 0 16px}.checklist-item-editor textarea{resize:vertical}.checklist-item-editor label.document-checkbox{display:flex;align-items:center;margin:15px 0;gap:8px}.document-checkbox input{width:15px;height:15px}.document-add-item{border-style:dashed!important;background:#f7fafc!important}.document-preview{width:min(1000px,96vw);height:94dvh}.document-preview-body{flex:1;min-height:0;overflow:auto;background:#e8eef1;padding:18px}.document-preview-body iframe{width:100%;height:100%;border:0;background:#fff}.document-pdf{width:min(100%,850px);margin:auto}.document-pdf canvas{width:100%;height:auto;display:block;margin-bottom:14px;box-shadow:0 2px 9px #263e4422}@media(max-width:700px){.document-library{padding:16px 0}.document-heading{align-items:start}.document-heading h1{font-size:24px}.document-filters{flex-wrap:wrap}.document-filters label:first-child{flex-basis:100%}.document-filters label{flex:1;min-width:110px}.document-backdrop{padding:0}.document-dialog{width:100%;max-height:100dvh;height:100dvh;border-radius:0}.document-body{padding:18px}.document-dialog>header{padding:16px}.document-dialog>footer{padding:12px}.checklist-layout{grid-template-columns:1fr}.checklist-item-editor{position:static}.document-type-tabs button{padding:9px 5px;font-size:11px}.document-callout{flex-direction:column;align-items:stretch}.document-preview-body{padding:5px}.document-file{flex-wrap:wrap}.document-file>div,.document-file>span{flex-basis:100%}}
.document-template-table{min-width:760px}.document-template-table th:first-child{width:44%}.document-template-table td{vertical-align:middle}.document-template-table .template-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.5;white-space:pre-wrap}.document-template-table .document-kind,.document-template-table .template-updated,.document-template-table td:last-child{white-space:nowrap}.document-template-table .template-file-count{text-align:center}.document-template-table tbody tr:hover{background:#f7fafb}.document-template-table .document-link:hover{text-decoration:underline}
.checklist-insert-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:0 0 18px;padding:12px 14px;background:#f6f9fb;border:1px solid #dfe8ed;border-radius:10px}.checklist-insert-toolbar label{display:grid;gap:5px;font-size:11px;font-weight:600}.checklist-insert-toolbar select{min-width:190px;border:1px solid #d4dfe3;border-radius:7px;padding:9px;background:#fff;color:#29434d;font:inherit;font-size:13px}.checklist-insert-toolbar small{align-self:center;color:#71818c;font-size:11px}.checklist-item-actions{flex-wrap:wrap;justify-content:center;max-width:110px;flex-shrink:0}.checklist-item-actions button{min-width:26px}.checklist-item-actions button:focus-visible{outline:2px solid #3d7097;outline-offset:-2px}
.checklist-reorder-hint{font-size:11px;color:#7c8e98;margin-bottom:4px}.checklist-item[draggable=true],.checklist-item[draggable=true] .checklist-select{cursor:grab}.checklist-item.dragging{opacity:.45}.checklist-item.drop-before{border-top:3px solid #3d7097;box-shadow:0 -2px 0 #bdd9e7}.checklist-item-actions{max-width:none;flex-wrap:nowrap;padding:0 8px}.checklist-drop-end{border:2px dashed #8eafbf;border-radius:8px;padding:16px;text-align:center;color:#41697b;background:#f0f7fa;font-size:12px}
.checklist-item .checklist-drag-handle{align-self:stretch;border:0;background:transparent;padding:0 7px;color:#6d8b9b;cursor:grab;font-size:22px;opacity:0;pointer-events:none}.checklist-item .checklist-item-actions{opacity:0;pointer-events:none}.checklist-item:hover .checklist-drag-handle,.checklist-item:focus-within .checklist-drag-handle,.checklist-item:hover .checklist-item-actions,.checklist-item:focus-within .checklist-item-actions{opacity:1;pointer-events:auto}.checklist-item .checklist-select{cursor:pointer}.checklist-drag-handle:active{cursor:grabbing}.checklist-drop-end{display:none}.checklist-items.is-dragging .checklist-drop-end{display:block}@media(hover:none){.checklist-item .checklist-drag-handle,.checklist-item .checklist-item-actions{opacity:1;pointer-events:auto}}
.checklist-item.checklist-section-item{background:#edf4f0;border-color:#cbdcd2;border-left:4px solid #719783;margin-top:10px}.checklist-item.checklist-section-item.active{background:#dfede5;border-color:#668e79;border-left-color:#3e7158}.checklist-section-item .checklist-select b{font-weight:750;color:#385f4c}.checklist-section-item .checklist-select small{color:#5f806e}.checklist-select small.checklist-type-label{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-bottom:4px;line-height:1.3}.checklist-type-sample{display:inline-flex;align-items:center;gap:3px;min-height:15px;color:#577b8d;flex-shrink:0;font-size:9px}.checklist-type-sample .sample-box{display:inline-flex;align-items:center;justify-content:center;width:10px;height:10px;border:1px solid currentColor;border-radius:2px;font-size:9px;font-style:normal;line-height:1}.sample-rule{width:24px;border-bottom:1px solid currentColor;height:10px}.sample-number{border-bottom:1px solid currentColor;font-variant-numeric:tabular-nums;letter-spacing:1px}.sample-lines{display:grid;gap:4px;width:26px}.sample-lines i{display:block;border-bottom:1px solid currentColor}.sample-lines i:last-child{width:18px}.sample-heading{color:#668e79;font-size:13px;line-height:1}
