/* Structured completion proof, scoped to its own centered dialog. */
.completion-proof-dialog{width:min(760px,calc(100vw - 28px));max-width:none;max-height:90dvh;padding:0;border:1px solid #d7e2dd;border-radius:16px;color:#153e2f;box-shadow:0 24px 80px #142f3040;overflow:hidden;background:#fff}
.completion-proof-dialog[open]{display:flex;flex-direction:column}.completion-proof-dialog::backdrop{background:#102b2a66}.cp-header,.cp-footer{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:16px 22px;background:#fff;flex-shrink:0}.cp-header{border-bottom:1px solid #e5ece8}.cp-header h2{margin:3px 0 0;font-size:21px}.cp-header small,.cp-footer>span{color:#6c7d76;font-size:12px}.cp-body{padding:18px 22px;overflow:auto;overscroll-behavior:contain;min-height:160px}.cp-body [hidden]{display:none!important}.cp-footer{border-top:1px solid #e5ece8}.cp-footer>span{margin-right:auto}.cp-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.cp-grid .formfield:last-child{grid-column:1/-1}.cp-body .formfield{display:flex;flex-direction:column;gap:6px;margin:10px 0;font-size:13px}.cp-body input,.cp-body textarea{min-width:0;width:100%;box-sizing:border-box;border:1px solid #d3dfd8;border-radius:8px;padding:10px;font:inherit;color:#183d32;background:#fff}.cp-body input:focus,.cp-body textarea:focus{outline:2px solid #7ba98f;outline-offset:1px}.cp-body h3{font-size:16px;margin:10px 0}.cp-section-head{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.cp-tabs{display:flex;gap:8px;margin-bottom:16px}.cp-status{font-size:11px;margin-left:6px;padding:2px 6px;border-radius:4px}.cp-status.empty{color:#b42318;background:#fff0ee}.cp-status.filled{color:#216640;background:#e6f3e9}.cp-body .note{font-size:12px;line-height:1.6;color:#6b7d73}.cp-message{font-size:13px;color:#216640}.cp-history{margin-top:20px}.cp-history article{border-top:1px solid #e5ece8;padding:12px 0}.cp-history p,.cp-legacy p{white-space:pre-wrap;overflow-wrap:anywhere}.cp-history small{font-size:12px;color:#6b7d73}.cp-thumbnails{display:flex;flex-wrap:wrap;gap:10px}.cp-thumbnails img{width:140px;height:104px;object-fit:contain;background:#f3f6f4;border:1px solid #dce5df;border-radius:6px}.cp-thumbnails figure{margin:0;display:flex;flex-direction:column;gap:5px}.cp-upload{border:1px dashed #b4c7bb;padding:12px;border-radius:8px}.lo-picker-filters{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.lo-picker-filters label{flex:1;min-width:120px;font-size:12px}.lo-picker-filters select{display:block;box-sizing:border-box;width:100%;padding:9px;border:1px solid #d6e1d9;border-radius:7px;background:#fff;color:#153e2f}.lo-independent-picker small{display:block;color:#697e73;margin-top:3px}
@media(max-width:600px){.completion-proof-dialog{width:calc(100vw - 16px);max-height:94dvh;border-radius:12px}.cp-header,.cp-footer{padding:12px 14px}.cp-body{padding:12px 14px}.cp-grid{grid-template-columns:1fr}.cp-tabs .btn{flex:1;font-size:13px;padding:10px 8px}.cp-footer>span{display:none}.cp-footer .btn{flex:1;min-height:44px}.cp-thumbnails img{width:110px;height:90px}.cp-section-head>.btn{min-height:42px}}

/* Account import stays beside its empty input; native picker opens from the full date field. */
.cp-grid .cp-account-field{grid-column:1/-1}.cp-account-input{display:flex;align-items:stretch;border:1px solid #d3dfd8;border-radius:8px;overflow:hidden;background:#fff}.cp-body .cp-account-input input{border:0;border-radius:0;flex:1;width:0;min-width:0}.cp-account-input:focus-within{outline:2px solid #7ba98f;outline-offset:1px}.cp-body .cp-account-input input:focus{outline:none}.cp-account-input .cp-inline-import{flex:none;border:0;border-left:1px solid #d3dfd8;border-radius:0;background:#eef5ef;color:#19573d;white-space:nowrap;padding:9px 14px;font-size:13px;min-height:42px}.cp-account-input .cp-inline-import:hover{background:#e0eee3}.cp-body select{box-sizing:border-box;width:100%;min-width:0;border:1px solid #d3dfd8;border-radius:8px;padding:10px;font:inherit;color:#183d32;background:#fff;min-height:42px}.cp-body select:focus{outline:2px solid #7ba98f;outline-offset:1px}.cp-date-field input{cursor:pointer}.cp-grid .formfield.cp-date-field{grid-column:auto}

/* No importable reference data: preserve native disabled interaction and a visible gray state. */
.cp-account-input .cp-inline-import:disabled,.cp-account-input .cp-inline-import:disabled:hover{background:#f1f3f2;color:#929c96;cursor:not-allowed;opacity:1}

/* Embedded proof uses the same fields and save path without covering the device. */
.completion-proof-inline{display:block;color:#173e31;background:white;font:13px/1.5 Inter,"Segoe UI","Microsoft YaHei",sans-serif}.completion-proof-inline .cp-header{padding:0 0 6px;border:0}.completion-proof-inline .cp-header h2{font-size:15px;margin:0;line-height:24px;letter-spacing:0}.completion-proof-inline .cp-header small,.completion-proof-inline [data-cp-close],.completion-proof-inline .cp-section-head,.completion-proof-inline .cp-footer>span{display:none}.completion-proof-inline .cp-body{padding:0;overflow:visible;min-height:0}.completion-proof-inline .cp-body .note{font-size:11px;margin:5px 0;line-height:1.5}.completion-proof-inline .cp-grid{grid-template-columns:1fr;gap:0}.completion-proof-inline .cp-body .formfield{font-size:12px;margin:7px 0;gap:3px}.completion-proof-inline .cp-body input,.completion-proof-inline .cp-body textarea,.completion-proof-inline .cp-body select{font-size:13px;padding:7px 8px;min-height:34px;max-height:160px}.completion-proof-inline .cp-tabs{gap:5px;margin-bottom:8px}.completion-proof-inline .btn{font:inherit;cursor:pointer;padding:6px 8px;border:1px solid #d3dfd8;border-radius:7px;background:#fff;color:#24583b}.completion-proof-inline .btn.primary{background:#164b37;color:#fff;border-color:#164b37}.completion-proof-inline .btn:disabled{opacity:.5;cursor:not-allowed}.completion-proof-inline .cp-inline-import{font-size:11px;border:0;border-left:1px solid #d3dfd8;border-radius:0;background:#eef5ef;min-height:34px;padding:6px}.completion-proof-inline .cp-footer{position:sticky;bottom:-10px;z-index:1;padding:9px 0 10px;margin-top:8px;justify-content:stretch}.completion-proof-inline .cp-footer .primary{width:100%;min-height:38px}.completion-proof-inline .cp-status{font-size:10px;margin-left:2px;padding:2px 4px}.completion-proof-inline .cp-thumbnails img{width:92px;height:70px}.completion-proof-inline .cp-body .error-text{color:#b42318;overflow-wrap:anywhere}.completion-proof-inline .cp-account-input input{width:0}.completion-proof-inline .cp-message{font-size:12px}.completion-proof-inline .cp-upload{padding:8px}.completion-proof-inline .cp-history{margin-top:10px}
@media(max-width:760px),(max-width:1000px) and (max-height:500px){.completion-proof-inline .cp-body input,.completion-proof-inline .cp-body textarea,.completion-proof-inline .cp-body select{font-size:16px;min-height:44px}.completion-proof-inline .btn{min-height:44px}.completion-proof-inline .cp-body .formfield{font-size:14px}.completion-proof-inline .cp-header h2{font-size:17px}.completion-proof-inline .cp-footer{bottom:-10px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}}
