/* #7579 s1dealboard: the deal kit (dealboard), on the app's theme tokens */
.ud-board { display: grid; gap: 12px; }
.ud-h { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.ud-empty, .ud-none { margin: 0; color: var(--muted); font-size: 14px; }
.ud-cols { display: grid; gap: 18px; }
.ud-col > header { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 4px 2px 8px; }
.ud-col > header b { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ud-col > header small { white-space: nowrap; } .ud-col > header small { color: var(--muted); font-size: 13px; }
.ud-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ud-card { min-width: 0; display: grid; gap: 8px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius, 14px); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.ud-card:hover, .ud-card:focus-visible { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: 0 2px 10px rgba(0,0,0,.06); outline: none; }
.ud-card > * { min-width: 0; }
.ud-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ud-top b { font-size: 15.5px; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.ud-val { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ud-title { color: var(--muted); font-size: 14px; line-height: 1.35; }
.ud-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ud-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text); background: var(--bg); }
.ud-chip.is-draft { color: var(--muted); }
.ud-chip.is-sent { color: #175cd3; border-color: rgba(23,92,211,.3); background: rgba(23,92,211,.07); }
.ud-chip.is-ok { color: #067647; border-color: rgba(6,118,71,.3); background: rgba(6,118,71,.08); }
.ud-chip.is-bad { color: #b42318; border-color: rgba(180,35,24,.3); background: rgba(180,35,24,.07); }
.ud-tasks { list-style: none; margin: 2px 0 0; padding: 8px 0 0; border-top: 1px solid var(--border); display: grid; gap: 7px; }
.ud-tasks li { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; }
.ud-tick { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; border-radius: 5px; border: 1.5px solid var(--border); display: grid; place-items: center; color: #fff; }
.ud-tasks li.is-done .ud-tick { background: var(--primary); border-color: var(--primary); }
.ud-tick svg { width: 12px; height: 12px; }
.ud-tt { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.35; }
.ud-tasks li.is-done .ud-tt { color: var(--muted); text-decoration: line-through; }
.ud-tt small { color: var(--muted); font-size: 12.5px; } .ud-tt small.is-late { color: #b42318; font-weight: 600; }
.ud-link { flex: 0 0 auto; color: var(--primary); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.ud-link:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); } .ud-link svg { width: 16px; height: 16px; }
@media (min-width: 900px) {
  .ud-cols { grid-auto-flow: column; grid-auto-columns: minmax(210px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; scrollbar-width: thin; }
  .ud-board.is-scroll { position: relative; }
  .ud-board.is-scroll::after { content: ''; position: absolute; top: 0; right: 0; bottom: 6px; width: 48px; pointer-events: none; background: linear-gradient(to right, transparent, var(--bg)); }   /* more columns to the right */
  .ud-col { padding: 10px; border-radius: var(--radius, 14px); background: color-mix(in srgb, var(--text) 3%, transparent); }
}
/* r2chtask (#7579): a deliverable's approval chip (Show approvals) */
.ud-apr { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; min-height: 26px; max-width: 46%; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.2; cursor: pointer; white-space: nowrap; }
.ud-apr span { overflow: hidden; text-overflow: ellipsis; } .ud-apr svg { width: 13px; height: 13px; flex: 0 0 auto; }
.ud-apr:hover { border-color: var(--primary); } .ud-apr:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; } .ud-apr[disabled] { cursor: default; }
.ud-apr.is-ask { color: var(--primary); border-style: dashed; }
.ud-apr.is-sent { color: #175cd3; border-color: rgba(23,92,211,.3); background: rgba(23,92,211,.07); }
.ud-apr.is-ok { color: #067647; border-color: rgba(6,118,71,.3); background: rgba(6,118,71,.08); }
.ud-apr.is-bad { color: #b42318; border-color: rgba(180,35,24,.3); background: rgba(180,35,24,.07); }
.ud-apr.is-rev { color: #b54708; border-color: rgba(181,71,8,.3); background: rgba(181,71,8,.08); }
.ud-apr.is-draft { color: var(--muted); }
/* r4chdates (#7579): deal date chips; amber inside warn_days, red once ended (is-bad above) */
.ud-chip.ud-dchip { gap: 5px; align-items: flex-start; border-radius: 8px; padding: 3px 8px; line-height: 1.35; max-width: 100%; }
.ud-chip.ud-dchip svg { width: 12px; height: 12px; flex: none; margin-top: 2px; }
.ud-chip.is-soon { color: #b54708; border-color: rgba(181,71,8,.3); background: rgba(181,71,8,.08); }
/* r5chscore (#7579): Board | Scorecard switch and the scorecard rows */
.ud-tog { display: inline-flex; justify-self: start; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.ud-tog button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 4px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ud-tog button svg { width: 15px; height: 15px; }
.ud-tog button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.ud-tog button:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.ud-scwrap { display: grid; gap: 10px; min-width: 0; } .ud-scwrap[hidden], .ud-cols[hidden] { display: none; }
.ud-scsum { margin: 0; font-size: 14px; color: var(--muted); } .ud-scsum span { font-weight: 600; }
.ud-scsum .is-ok, .ud-scc .is-ok { color: #067647; } .ud-scsum .is-sent { color: #175cd3; } .ud-scsum .is-bad, .ud-scc .is-bad { color: #b42318; } .ud-scc .is-soon { color: #b54708; }
.ud-sc { display: grid; gap: 10px; }
.ud-scrow { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 12px; align-items: start; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius, 14px); background: var(--surface); cursor: pointer; transition: border-color .15s; }
.ud-scrow:hover, .ud-scrow:focus-visible { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); outline: none; }
.ud-scname { min-width: 0; display: grid; gap: 2px; } .ud-scname b { font-size: 15.5px; line-height: 1.3; overflow-wrap: anywhere; } .ud-scname span { color: var(--muted); font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.ud-verdict { white-space: nowrap; }
.ud-sccells { grid-column: 1 / -1; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.ud-scc { min-width: 0; display: grid; gap: 2px; } .ud-scc small { color: var(--muted); font-size: 12px; } .ud-scc span { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* r6choffer: the offer score chip */
.ud-offer{font-weight:600;display:inline-flex;align-items:center;gap:4px}
.ud-offer svg{width:12px;height:12px}
