/* Documents on buildings and vendors (documents.js, H19 phase 2): the
   Documents window, the vendor line in Vendor Contacts. Expired = red,
   expiring soon = amber, with the colourblind palette (body.cb-colors)
   swapping them for orange / light orange like the rest of the portal. */
.documents-card{max-width:760px;}
.doc-section{margin-top:14px;}
.doc-head{display:flex; align-items:center; justify-content:space-between; gap:10px;}
.doc-h{margin:0; font-size:15px;}
.doc-add{flex:0 0 auto;}
.doc-note{margin:4px 0 8px; font-size:12px; color:var(--ink-faint);}
.doc-empty{font-size:12.5px; color:var(--ink-faint); margin:6px 0;}
.doc-vendor{border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin-top:8px;}
.doc-vendor.doc-focus{border-color:var(--accent); box-shadow:0 0 0 2px #eaf2ef;}
.doc-vendor-name{display:flex; flex-direction:column;}
.doc-vendor-name > span:first-child{font-weight:600;}
.doc-vendor-meta{font-size:11.5px; color:var(--ink-faint);}
.doc-list{margin-top:6px;}
.doc-row{display:flex; align-items:flex-start; justify-content:space-between; gap:10px; padding:8px 0; border-top:1px dashed var(--line);}
.doc-row:first-child{border-top:0;}
.doc-main{min-width:0;}
.doc-name{display:flex; flex-wrap:wrap; gap:6px; align-items:baseline;}
.doc-type{font-weight:600;}
.doc-title{color:var(--ink);}
.doc-meta{font-size:11.5px; color:var(--ink-faint); margin-top:2px;}
.doc-chip{display:inline-block; margin-top:4px; font-size:11.5px; font-weight:600; padding:2px 8px; border-radius:999px; background:#eef1ed; color:#3e4a44;}
.doc-chip-bad{background:#f8dcd8; color:#8c2318;}
.doc-chip-warn{background:#fbecc9; color:#6b4a0c;}
.doc-chip-ok{background:#e3efe9; color:#1f5545;}
.doc-replaced{opacity:.6;}
.doc-replaced .doc-type{text-decoration:line-through;}
.doc-actions{display:flex; gap:6px; flex:0 0 auto; align-items:center;}
.doc-open{text-decoration:none; display:inline-flex; align-items:center;}
.doc-form{margin-top:8px;}
.doc-sending{margin-top:6px; font-size:12.5px; color:var(--ink-faint); display:flex; gap:8px; align-items:center; flex-wrap:wrap;}
.doc-sending-failed{color:#b3261e;}
.doc-undo{display:flex; gap:10px; align-items:center; padding:8px 10px; border-radius:8px; background:#eef1ed; font-size:13px;}
.mep-docs{display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:6px; font-size:12.5px; color:var(--ink-faint);}
.mep-docs-bad .mep-docs-text{color:#8c2318; font-weight:600;}
.mep-docs-warn .mep-docs-text{color:#a7671e; font-weight:600;}
@media (max-width:600px){
  .doc-row{flex-direction:column;}
}
body.cb-colors .doc-chip-bad{background:#B35806; color:#FFFFFF;}
body.cb-colors .doc-chip-warn{background:#FDD49E; color:#4A2800;}
body.cb-colors .doc-chip-ok{background:#CFE3F5; color:#0B3D66;}
body.cb-colors .mep-docs-bad .mep-docs-text{color:#B35806;}
body.cb-colors .mep-docs-warn .mep-docs-text{color:#8A4B00;}
