/* Contract ledger uses the CRM's existing restrained red/white theme. */
.business-filters .field { max-width:none; }
.business-filters .field:has(input[type="search"]) { flex:2 1 260px; }
.business-contract-summary { display:flex; gap:9px; flex-wrap:wrap; align-items:center; margin:0 0 18px; }
.business-contract-summary strong { font-size:15px; margin-left:5px; font-variant-numeric:tabular-nums; }
.business-contract-summary .active { color:#a8323e; border-color:#c48189; background:#fcf1f2; }
.business-table-actions { display:flex; align-items:center; gap:6px; flex-wrap:wrap; min-width:130px; }
.business-expiry-warning { margin-top:6px; color:#aa7b26; font-size:11px; }
.business-expiry-warning.expired { color:#ac3545; }
.business-expiry-note { padding:13px 16px; margin:0 0 22px; border-radius:8px; background:#fff6e6; color:#906619; font-size:12px; line-height:1.7; }
.business-detail-title { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:24px; }
.business-detail-title h3 { font-size:20px; font-weight:600; margin:0 0 5px; }
.business-detail-title p { margin:0; }
.business-detail-grid { gap:20px 24px; margin:0; }
.business-detail-grid dd { margin:0; white-space:pre-wrap; line-height:1.8; overflow-wrap:anywhere; }
.business-detail-grid dt { margin-bottom:5px; }
.business-contract-chain { display:flex; gap:8px; margin-top:20px; }
.business-file-list { display:flex; flex-direction:column; gap:8px; margin-top:12px; }
.business-file { display:flex; justify-content:space-between; align-items:center; gap:12px; border:1px solid #e5e7ea; background:#fff; border-radius:8px; padding:12px 14px; }
.business-file > div { display:flex; align-items:center; gap:10px; min-width:0; }
.business-file span { overflow-wrap:anywhere; font-size:12px; }
.business-file small { display:block; margin-top:4px; color:var(--muted); font-size:10px; }
.business-file .icon { color:#a8323e; }
.business-history { margin-top:18px; }
.business-history strong { font-size:12px; font-weight:600; }
.business-history .timeline-item:last-child { padding-bottom:0; }
.business-readonly { padding:10px 12px; border:1px solid #e2e5e9; border-radius:7px; min-height:40px; background:#fafafa; font-size:12px; }
.business-existing-files { border-left:2px solid #e3d2d4; padding-left:10px; }
.business-existing-files > span { display:block; margin:3px 0; font-size:11px; }
.business-file-selection { display:flex; flex-direction:column; gap:8px; }
.business-file-selection > div { display:flex; justify-content:space-between; align-items:center; gap:10px; border:1px solid #e5e7eb; border-radius:7px; padding:9px 11px; font-size:12px; }
.business-file-selection small { color:var(--muted); }
.business-upload input[type="file"] { padding:9px; min-height:42px; }
.business-modal #business-form-error { margin:0; }
@media(max-width:650px) {
  .business-file { padding:10px; }
  .business-detail-title h3 { font-size:18px; }
}
