/* One document request per row; the text owns wrapping, actions keep their width. */
.contract-document-requests{margin-bottom:20px}
.cdr-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.cdr-header>div{min-width:0}
.cdr-header h3{display:flex;align-items:center;justify-content:flex-start;gap:9px;margin:0}
.cdr-header p,.cdr-help{font-size:13px;line-height:1.5;color:var(--muted);margin:6px 0 0}
.cdr-count{display:inline-flex;align-items:center;justify-content:center;min-width:25px;padding:2px 8px;border-radius:6px;background:var(--green-l);color:var(--green-d);font-size:13px;font-variant-numeric:tabular-nums}
.cdr-search{flex:0 1 270px;min-width:200px}
.cdr-search input{width:100%;min-height:36px;padding:7px 10px;border:1px solid var(--border);border-radius:7px;background:#fff;color:var(--text);font:inherit;font-size:13px}
.cdr-search input:focus,.cdr-date-field input:focus,.cdr-manager select:focus{outline:2px solid var(--green);outline-offset:2px}
.cdr-search .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.cdr-request{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 0;border-top:1px solid var(--border)}
.cdr-request:first-child{margin-top:16px}
.cdr-request:last-child{padding-bottom:0}
.cdr-request-content{min-width:0;flex:1;overflow-wrap:anywhere}
.cdr-request h4{font-size:14px;line-height:1.4;font-weight:700;margin:0 0 4px}
.cdr-contract-link,.cdr-contract-label{font-size:13px;line-height:1.45;font-weight:600}
.cdr-contract-link{display:inline;text-align:left;padding:0;border:0;background:none;color:var(--green-d);cursor:pointer;font-family:inherit}
.cdr-contract-link:hover{text-decoration:underline}
.cdr-contract-link:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.cdr-request p{font-size:13px;line-height:1.45;margin:5px 0;color:var(--muted)}
.cdr-request small{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:5px}
.cdr-upload{flex:none;white-space:nowrap}
.cdr-more{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:12px;color:var(--muted)}
.cdr-more:not(:empty){padding-top:16px;margin-top:16px;border-top:1px solid var(--border)}
.cdr-empty,.cdr-loading{color:var(--muted);font-size:13px;line-height:1.5}
.cdr-error{color:var(--red);font-size:13px;line-height:1.5;margin:12px 0;overflow-wrap:anywhere}
.cdr-modal{display:flex;flex-direction:column;width:min(560px,calc(100vw - 32px));overflow:hidden}
.cdr-modal form{display:flex;flex:1;flex-direction:column;min-height:0}
.cdr-modal .modal-head,.cdr-modal .modal-foot{flex:none}
.cdr-modal .modal-body{overflow:auto;min-height:0}
.cdr-modal .modal-head{align-items:flex-start}
.cdr-modal .modal-head h3{font-size:18px;line-height:1.4;margin:0;min-width:0}
.cdr-modal .modal-close{flex:none}
.cdr-upload-contract{font-weight:600;line-height:1.5;margin:0 0 10px;overflow-wrap:anywhere}
.cdr-file-field,.cdr-date-field{display:flex;flex-direction:column;gap:7px;margin-top:20px;font-size:13px;font-weight:600}
.cdr-file-field input{width:100%;min-width:0;font-weight:400}
.cdr-date-field input{width:170px;max-width:100%;font-weight:400;min-height:36px;padding:7px 10px;border:1px solid var(--border);border-radius:7px;color:var(--text);background:#fff;font-family:inherit}
.cdr-signature-check{display:flex;align-items:flex-start;gap:9px;font-size:13px;line-height:1.5;margin:18px 0}
.cdr-signature-check input{width:16px;min-width:16px;height:16px;margin-top:2px}
.cdr-manager{border:1px solid var(--border);border-radius:8px;padding:12px 14px;margin:14px 0}
.cdr-manager label{display:flex;flex-direction:column;align-items:flex-start;gap:6px;font-size:12px;color:var(--muted)}
.cdr-manager select{width:360px;max-width:100%;color:var(--text);font-size:13px;min-height:36px;padding:7px 10px;border:1px solid var(--border);border-radius:7px;background:#fff;font-family:inherit}
.cdr-manager strong{color:var(--text);font-size:14px}
.cdr-modal button:disabled,.cdr-manager select:disabled{opacity:.4;cursor:not-allowed}
@media(max-width:700px){
  .cdr-modal{width:100%;max-width:none}
  .cdr-header{flex-direction:column;gap:12px}
  .cdr-search{flex:auto;min-width:0;width:min(100%,320px)}
  .cdr-request{align-items:flex-start;flex-direction:column;gap:12px}
  .cdr-request-content{width:100%}
  .cdr-upload{align-self:flex-start}
  .cdr-modal .modal-foot{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
}
.cdr-estimate{display:flex;flex-direction:column;gap:4px}
.cdr-estimate-label{font-size:12px;color:var(--muted)}
.cdr-estimate strong{color:var(--text);font-size:14px}
.cdr-estimate .cdr-help{margin:2px 0 0}
.cdr-estimate-actions{margin-top:8px;display:flex;gap:8px;flex-wrap:wrap}
.cdr-estimate-title{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.cdr-estimate-row{display:flex;flex-direction:column;gap:4px;padding:8px 0;border-top:1px solid var(--border)}
.cdr-estimate-row:first-of-type{border-top:0}
