/* Follow-up is the working area; source facts remain visible and editable. */
#page-customers .crm-table .crm-followup-column .compact-note {
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 4;
  color: inherit;
}
#page-customers .crm-table .crm-followup-column .compact-note > span {
  margin-top: 4px;
  font-size: 11px;
}
#page-customers .crm-table .crm-reference-column {
  font-size: 11.5px;
  line-height: 1.55;
}
#page-customers .crm-reference-column .inquiry-date-strong {
  font-size: 11.5px;
  font-weight: 600;
}
#page-customers .crm-reference-column .inquiry-week-small {
  font-size: 10.5px;
}
#page-customers .crm-reference-column .choice-button,
#page-customers .crm-reference-column .choice-label,
#page-customers .crm-reference-column .row-fact-label {
  font-size: 11px;
}
@media (min-width: 1100px) {
  #page-customers .crm-table th.crm-followup-column { width: 17% !important; }
  #page-customers .crm-table th.crm-reference-column { width: 8.5% !important; }
}
@container (max-width: 1050px) {
  #page-customers .crm-table tbody > tr > td.crm-followup-column {
    grid-column: 1 / -1;
  }
}
.fg-cell.fg-followup-cell { font-size: 1.08em; }
.fg-heading.fg-followup-cell b { font-weight: 700; color: #245543; }
.fg-cell.fg-reference-cell { font-size: .94em; }
.profile-followup-group h3 { font-size: 14px; }
.profile-followup-record p {
  font-size: 12.5px;
  line-height: 1.6;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.profile-summary-facts dd { font-size: 11.5px; font-weight: 500; }
.wb-row-status { font-size: 13px; line-height: 1.55; }
.wb-row-source, .wb-row-status small { font-size: 11px; }

/* Closed-drawer flow table: preserve existing columns and the open-drawer layout. */
@container (min-width: 1051px) {
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table {
    --flow-rule: #cbd8d0;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table :is(th, td) {
    border-bottom: 1px solid var(--flow-rule) !important;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table :is(th, td):not(:last-child) {
    border-right: 1px solid var(--flow-rule);
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table td {
    padding-top: 10px;
    padding-bottom: 10px;
    vertical-align: top;
    line-height: 21px;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table td > :first-child {
    margin-top: 0;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table th.crm-followup-column {
    background: #edf4ef;
    color: #245543;
    font-weight: 700;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table .crm-followup-column .compact-note {
    font-size: 14px;
    line-height: 21px;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table .crm-reference-column,
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table .crm-reference-column :is(.choice-button, .choice-label, .inquiry-date-strong) {
    font-size: 12px;
    line-height: 21px;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table .inline-choice .choice-button {
    min-height: 24px;
    padding: 0;
    border-width: 0;
    align-items: flex-start;
    line-height: 21px;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table .pill {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 21px;
  }
  /* Semantic row warnings keep their existing !important backgrounds. */
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table :is(th, td).crm-transfer-column {
    background-color: #f2f8f4;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table :is(th, td).crm-development-column {
    background-color: #f2f8f4;
  }
  body:not(:has(#workflowOverlay.open)) #page-customers:not(.fg-enabled) .crm-table :is(th, td).crm-sales-column {
    background-color: #f1f7fb;
  }
}
