/* The three detail sheets on a deal, and the filled-in values on its card. */

.dd-wrap { border-top: 1px solid var(--border); padding-top: 12px; }

.dd-group { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 8px;
  background: var(--card); overflow: hidden; }
.dd-group.open { border-color: #bfdbfe; }

/* The whole header is the toggle, so the hit area is the row rather than the
   little chevron. A collapsed sheet is the default: three open sheets of
   thirty boxes is why nobody fills any of them in. */
.dd-head { display: flex; align-items: center; gap: 9px; width: 100%; padding: 11px 13px;
  background: transparent; border: 0; text-align: left; font: inherit; cursor: pointer; }
.dd-head:hover { background: #f8fbff; }
.dd-head svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.dd-group.open .dd-head { background: #f8fbff; border-bottom: 1px solid var(--border); }

.dd-count { font-size: 11.5px; font-weight: 700; color: #047857; background: #ecfdf5;
  border-radius: 6px; padding: 2px 7px; white-space: nowrap; }
.dd-fill { font-size: 11.5px; color: var(--blue); font-weight: 600; white-space: nowrap; }
.dd-fill:hover { text-decoration: underline; }

.dd-body { display: none; padding: 12px 13px 14px; }
.dd-group.open .dd-body { display: block; }
.dd-blurb { margin: 0 0 10px; }

/* A currency box and a box with a unit after it. The symbol sits inside the
   frame so the number lines up with the ones above and below it. */
.dd-money, .dd-unit { display: flex; align-items: center; gap: 0;
  border: 1px solid var(--border); border-radius: 9px; overflow: hidden; background: #fff; }
.dd-money:focus-within, .dd-unit:focus-within { border-color: var(--blue); }
.dd-money > span, .dd-unit > span { padding: 0 10px; color: var(--muted); font-size: 13px;
  background: var(--bg); align-self: stretch; display: flex; align-items: center; }
.dd-money > span { border-right: 1px solid var(--border); }
.dd-unit > span { border-left: 1px solid var(--border); }
.dd-money input, .dd-unit input { border: 0 !important; outline: 0; flex: 1; min-width: 0; }

/* A tick reads as a sentence, so the label goes beside the box rather than
   above it like every other field. */
.dd-check label { display: flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 400; }
.dd-check input { width: 16px; height: 16px; flex: none; }
.dd-check span { font-size: 13.5px; }

/* ---- On the deal card ---- */
.dd-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.dd-chip { display: inline-flex; align-items: baseline; gap: 5px; font-size: 11.5px;
  background: var(--bg); border: 1px solid var(--line, #eef2f7); border-radius: 7px;
  padding: 2px 7px; color: var(--text); }
.dd-chip i { font-style: normal; color: var(--muted); }
.dd-chip.more { color: var(--muted); }

@media (max-width: 640px) {
  .dd-head { padding: 10px; }
  .dd-count, .dd-fill { display: none; }
}
