/* S9 styles (s9-deals) -- consumes pomio.css tokens only; no new global tokens here. */

/* ---------------------------------------------------------------- A7: phone widget in the create modal */
/* crm.html's slot is itself a .field; the widget brings its own .field */
#nl-phone-slot { margin-bottom: 0; min-width: 0; }
#nl-phone-slot > .field { margin-bottom: 14px; }

/* ---------------------------------------------------------------- A4: unassigned deals */
.s9-unassigned-pill {
  font-size: 11px; font-weight: 600; padding: 1px 8px; line-height: 1.5;
  background: transparent; color: var(--muted); border: 1px dashed var(--border-strong);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.s9-card-owner { margin-top: 6px; min-width: 0; }

/* ---------------------------------------------------------------- A6: amounts line up */
.card-value, .col-total { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- S9 §9: communications section in the drawer */
#dr-comms[hidden] { display: none; }
/* the panel hides itself when communications are not available to this viewer */
#dr-comms:has(> .comm-panel[hidden]) { display: none; }
#dr-comms { margin-top: 14px; min-width: 0; }

/* ---------------------------------------------------------------- SCALE-1 P4: scalable board / list */
/* search status + sort notes under the filter bar */
.deal-search-status, .deal-view-hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 10px; min-width: 0; overflow-wrap: anywhere; }
.deal-search-status[hidden], .deal-view-hint[hidden] { display: none; }
.deal-search-status.is-warn { color: var(--text); }
/* a re-opened board (filter / sort change) keeps its columns until the new ones answered */
#board-view.is-reloading { opacity: .6; transition: opacity .15s; }
/* header count / sum that is not exactly known: "—" with a tooltip */
.col-count.is-unknown { cursor: help; }
.col-total-unknown { display: flex; align-items: center; gap: 6px; cursor: help; }
.col-calc { background: none; border: 0; padding: 2px 0; font: inherit; font-weight: 600; color: var(--accent-text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.col-calc:disabled { opacity: .6; cursor: default; }
/* infinite scroll: "Meer laden" per column + a zero-height sentinel */
.col-foot:empty { display: none; }
.col-foot { padding-top: 4px; }
.col-more { width: 100%; justify-content: center; }
.col-sentinel, .list-sentinel { height: 1px; }
.col-error { border-color: var(--danger, var(--border-strong)); }
/* the list footer: "{shown} van {total} geladen" + Meer laden */
.deal-list-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 12px 0 4px; font-size: 12.5px; color: var(--muted); }
.deal-list-foot:empty { display: none; }
@media (max-width: 480px) {
  .deal-list-foot { justify-content: flex-start; }
  .deal-list-foot .btn-sm { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- SCALE-1 P5: company status badge + won prompt */
.card-company { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; min-width: 0; }
.card-company-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rship-badge-slot:empty, .rship-drawer-badge:empty { display: none; }
.rship-drawer-badge { margin-left: 8px; text-transform: none; letter-spacing: 0; }
/* non-blocking action toast (relationshipUi.showActionToast) */
.toast.rship-toast { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.rship-toast-text { flex: 1 1 180px; min-width: 0; }
.rship-toast-actions { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.rship-toast-actions .btn-sm { min-height: var(--tap); }
.rship-toast-close { min-width: var(--tap); justify-content: center; font-size: 16px; }
