#settingsNav{display:block}
.actionrow{gap:10px}
textarea{border:1px solid #ccd5e3;border-radius:9px;padding:11px 12px;font:inherit;background:#fff;resize:vertical;line-height:1.45}
dialog footer{align-items:center}.footer-spacer{flex:1}.dialog-help{margin:-8px 0 0;color:#68748a;font-size:14px;line-height:1.45}
.document-actions{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.wide-dialog{width:min(1050px,calc(100% - 30px))}.document-meta{color:#68748a;font-size:14px}.button-link{height:42px;padding:0 17px;border-radius:9px;display:inline-flex;align-items:center;text-decoration:none;font-weight:700}.doc-name{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.allocation-value{min-width:260px}.allocation-employee{min-width:220px}.status.pending{background:#fff4d6;color:#8a5a00}.document-meta{margin-bottom:8px}.wide-dialog{max-width:min(1180px,96vw)}

.allocation-editor{min-width:350px;display:flex;flex-direction:column;gap:8px}
.allocation-parts{display:flex;flex-direction:column;gap:7px}
.allocation-part{display:grid;grid-template-columns:minmax(150px,1fr) 120px 38px;gap:7px;align-items:center}
.allocation-part select,.allocation-part input{width:100%;min-width:0}
.allocation-add{align-self:flex-start;height:34px;padding:0 12px;font-size:13px}
.allocation-remove{height:38px;padding:0;font-size:20px}
.allocation-summary{color:#237a43}
.allocation-incomplete .allocation-summary{color:#a56200}
.allocation-employee{min-width:260px}
@media(max-width:800px){.allocation-editor{min-width:300px}.allocation-part{grid-template-columns:1fr 105px 36px}.allocation-employee{min-width:220px}}

.employee-picker{position:relative;min-width:300px}
.source-employee{margin-bottom:7px;font-size:13px;line-height:1.3;color:#68748a}
.source-employee b{color:#17233a}
.employee-picker .allocation-employee{width:100%;min-width:0}
.employee-search-results{position:absolute;z-index:50;top:100%;left:0;right:0;max-height:280px;overflow:auto;margin-top:4px;background:#fff;border:1px solid #b9c6d9;border-radius:10px;box-shadow:0 12px 30px rgba(20,38,70,.18);padding:5px}
.employee-search-option{display:flex;width:100%;height:auto;min-height:44px;flex-direction:column;align-items:flex-start;justify-content:center;padding:8px 10px;border:0;border-radius:7px;background:#fff;color:#17233a;text-align:left}
.employee-search-option:hover,.employee-search-option:focus{background:#edf3ff;color:#163fa6}
.employee-search-option small{font-weight:400;color:#68748a;margin-top:2px}
.employee-search-empty{padding:12px;color:#8a5a00;font-size:14px}

.document-filter{margin:14px 0 16px;padding:14px 16px;border:1px solid #c9d7ec;border-radius:12px;background:#f6f9ff}
.document-filter label{display:block;margin-bottom:7px;font-size:14px;font-weight:700;color:#17233a}
.document-filter-line{display:flex;gap:8px}
.document-filter-line input{flex:1;min-width:280px}
.document-filter-line button{flex:0 0 auto}
.document-filter small{display:block;margin-top:7px;color:#68748a}
@media(max-width:650px){.document-filter-line{flex-direction:column}.document-filter-line input{min-width:0;width:100%}}

#documentDialog{overflow:hidden}
#documentDialog>form{display:flex;flex-direction:column;max-height:88vh;overflow:hidden}
#documentDialog .tablewrap{flex:1;min-height:180px;overflow:auto}
#documentDialog footer{flex:0 0 auto;margin-top:12px;padding-top:12px;border-top:1px solid #dbe3ef;background:#fff;position:relative;z-index:5}
