#market.contract-mode > .stats { display: none; }
body:has(#market.contract-mode.active) .nav { align-content: start; }
#market.contract-mode > .department-detail { display: none; }
.mc-workspace[hidden] { display: none; }
.mc-workspace { background: #fff; padding: 20px; min-width: 0; }
.mc-workspace *, .mc-dialog * { box-sizing: border-box; letter-spacing: 0; }
.mc-heading,.mc-section-heading,.mc-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mc-heading h3,.mc-dialog h3 { font-size: 20px; margin: 0; overflow-wrap: anywhere; }
.mc-workspace a,.mc-dialog a { text-decoration: none; color: #143e36; white-space: nowrap; }
.mc-filters { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 18px 0; }
.mc-workspace label,.mc-dialog label { display: grid; gap: 7px; min-width: 0; font-size: 13px; }
.mc-workspace input,.mc-workspace select,.mc-dialog input,.mc-dialog select,.mc-dialog textarea { width: 100%; min-width: 0; max-width: 100%; padding: 10px; font: inherit; border: 1px solid #d4dfdb; border-radius: 4px; background: #fff; color: #1c3932; }
.mc-workspace input::placeholder,.mc-dialog textarea::placeholder { color: #97a39e; }
.mc-filter-actions { display: flex; align-items: end; gap: 8px; }
.mc-summary,.mc-finance { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); border-block: 1px solid #dbe4df; padding: 18px 0; gap: 18px; margin: 18px 0; }
.mc-summary span,.mc-finance span { display: block; color: #68796f; font-size: 12px; margin-bottom: 8px; }
.mc-summary span small { margin-left: 5px; }
.mc-summary strong,.mc-finance strong { font-size: 21px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mc-summary div:nth-child(3) strong { color: #16725b; }
.mc-summary div:nth-child(4) strong { color: #996d19; }
.mc-table-wrap { overflow-x: auto; }
.mc-table { width: 100%; min-width: 920px; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.mc-table th { background: #f3f7f5; color: #61736a; font-weight: 500; text-align: left; padding: 12px 8px; }
.mc-table th:first-child { width: 24%; }
.mc-table th:nth-child(2) { width: 18%; }
.mc-table th:nth-child(3) { width: 19%; }
.mc-table th:last-child { width: 66px; }
.mc-table button { min-width: 50px; padding: 8px; white-space: nowrap; }
.mc-table th:nth-child(6) { width: 84px; }
.mc-table td { padding: 16px 8px; border-bottom: 1px solid #e1e9e4; line-height: 1.6; overflow-wrap: anywhere; }
.mc-table small { display: block; color: #809087; margin-top: 4px; }
.mc-table .mc-number { text-align: right; font-variant-numeric: tabular-nums; }
.mc-status { display: inline-block; color: #68766c; background: #edf1ee; padding: 3px 7px; border-radius: 4px; white-space: nowrap; font-size: 12px; }
.mc-SIGNED { color: #126746; background: #e4f3e9; }
.mc-DRAFT { color: #876615; background: #faf0d9; }
.mc-TERMINATED { color: #aa4c49; background: #f8e9e8; }
.mc-demo { color: #9a711b; font-size: 11px; display: block; font-weight: 400; }
.mc-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 18px; font-size: 13px; }
.mc-pagination > span:first-child { margin-right: auto; color: #728279; }
.mc-workspace .mc-icon,.mc-dialog .mc-icon { padding: 0; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 4px; font-size: 18px; }
.mc-workspace button:disabled { opacity: .4; cursor: default; }
.mc-results[aria-busy=true] { opacity: .55; pointer-events: none; }
.mc-empty { padding: 25px 0; color: #7a8a80; font-size: 14px; text-align: center; }
.mc-error,.mc-form-error,.mc-upload-error { color: #af403c; font-size: 13px; overflow-wrap: anywhere; }
.mc-mobile-list { display: none; }
.mc-dialog { width: min(980px,calc(100% - 32px)); max-height: 90vh; padding: 0; border: 1px solid #dbe5df; border-radius: 8px; color: #213c32; font-family: inherit; }
.mc-dialog::backdrop { background: rgba(15,33,27,.4); }
.mc-dialog-heading { padding: 20px 24px; border-bottom: 1px solid #dbe4de; position: sticky; top: 0; background: #fff; z-index: 1; }
.mc-dialog-heading small { display: block; color: #7b8e80; margin-bottom: 5px; }
.mc-dialog-body { padding: 0 24px 24px; }
.mc-dialog-body > section { padding: 16px 0; border-bottom: 1px solid #e1e8e3; }
.mc-dialog h4 { margin: 0 0 16px; font-size: 16px; }
.mc-finance { grid-template-columns: repeat(4,minmax(0,1fr)); }
.mc-facts,.mc-edit-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; }
.mc-facts { margin: 0; }
.mc-facts div { min-width: 0; }
.mc-facts dt { font-size: 12px; color: #7b8b81; margin-bottom: 5px; }
.mc-facts dd { margin: 0; overflow-wrap: anywhere; font-size: 14px; }
.mc-prose { font-size: 13px; margin-top: 18px; }
.mc-prose p { white-space: pre-wrap; overflow-wrap: anywhere; color: #687e70; }
.mc-wide { grid-column: 1/-1; }
.mc-edit footer { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.mc-files { padding: 0; margin: 0 0 16px; list-style: none; }
.mc-files li { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-bottom: 1px solid #edf1ee; }
.mc-files li > span { min-width: 0; overflow-wrap: anywhere; }
.mc-files strong { font-size: 14px; }
.mc-files small { display: block; margin-top: 5px; color: #819188; }
.mc-files li > div { display: flex; gap: 8px; flex-shrink: 0; }
.mc-dialog .mc-upload { position: relative; padding: 16px; border: 1px dashed #9bbbac; color: #246a4e; text-align: center; border-radius: 4px; cursor: pointer; }
.mc-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: 100%; }
.mc-events > div { display: grid; gap: 5px; border-left: 2px solid #cfe0d5; padding: 0 0 18px 14px; font-size: 13px; overflow-wrap: anywhere; }
.mc-events small { color: #8a968e; }
@media (max-width:1100px) { .mc-filters { grid-template-columns: repeat(2,minmax(0,1fr)); } .mc-summary { gap: 10px; } .mc-summary strong { font-size: 18px; } }
@media (max-width:650px) {
  .mc-workspace { padding: 14px; }
  .mc-heading h3 { font-size: 18px; }
  .mc-search { grid-column: 1/-1; }
  .mc-summary { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
  .mc-summary > div:first-child { grid-column: 1/-1; }
  .mc-table-wrap { display: none; }
  .mc-mobile-list { display: grid; gap: 14px; }
  .mc-mobile-list article { border: 1px solid #e0e8e3; border-radius: 6px; padding: 14px; min-width: 0; }
  .mc-mobile-list header,.mc-mobile-list footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
  .mc-mobile-list header { align-items: flex-start; }
  .mc-mobile-list header strong { font-size: 15px; overflow-wrap: anywhere; }
  .mc-mobile-list p { font-size: 13px; color: #6c7b72; overflow-wrap: anywhere; }
  .mc-mobile-list dl { display: grid; gap: 8px; font-size: 12px; }
  .mc-mobile-list dl > div { display: grid; grid-template-columns: 64px minmax(0,1fr); gap: 8px; }
  .mc-mobile-list dt { color: #718278; }
  .mc-mobile-list dd { margin: 0; overflow-wrap: anywhere; }
  .mc-dialog-heading { padding: 16px; }
  .mc-dialog h3 { font-size: 17px; }
  .mc-dialog-body { padding: 0 16px 16px; }
  .mc-finance { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .mc-finance strong { font-size: 18px; }
  .mc-edit-grid { grid-template-columns: minmax(0,1fr); }
  .mc-files li { align-items: flex-start; flex-direction: column; }
}
