/* Customer management follows the existing blue-grey dense-cards shell. */
#admin-customer-management { min-width: 0; padding: 0 24px 24px; color: var(--ink, #263243); font-size: 14px; }
.crm-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; font-weight: 600; }
.crm-section-heading h3, .crm-subpanel > h3, .crm-body > h3 { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; }
.crm-help { margin: 6px 0 12px; color: var(--muted, #5d6b7f); font-size: 12px; font-weight: 400; line-height: 1.7; }
.crm-readonly, .crm-pending { margin: 14px 0; padding: 12px 14px; border: 1px solid #c9daea; border-radius: 10px; background: #eaf2fa; color: #315875; font-size: 13px; line-height: 1.7; }
.crm-pending p { margin: 0 0 10px; }
.crm-feedback { margin: 12px 0; padding: 10px 12px; border: 1px solid var(--line, #dfe7ef); border-radius: 8px; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }
.crm-feedback.failure { color: #973d39; border-color: #eccbc9; background: #fff5f4; }
.crm-feedback.success { color: #23634e; border-color: #bcdccc; background: #f0f8f4; }
.crm-filters { display: grid; grid-template-columns: minmax(160px, 1fr) minmax(130px, 180px) auto; align-items: center; gap: 10px; margin: 18px 0 12px; }
.crm-filters input, .crm-filters select, .crm-field input, .crm-field select, .crm-field textarea { box-sizing: border-box; width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid #bdccdc; border-radius: 8px; background: #fff; color: var(--ink, #263243); font: inherit; line-height: 1.5; }
.crm-field textarea { min-height: 88px; resize: vertical; }
.crm-field input:disabled, .crm-field select:disabled, .crm-field textarea:disabled { background: #f4f6f8; color: #657487; opacity: 1; cursor: not-allowed; }
#admin-customer-management :is(input, select, textarea, button):focus-visible { outline: 2px solid #167ac6; outline-offset: 2px; }
.crm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 18px 0; }
.crm-field { display: flex; min-width: 0; flex-direction: column; gap: 7px; margin: 0; font-weight: 400; }
.crm-field-label { font-size: 13px; font-weight: 500; }
.crm-field-wide { grid-column: 1 / -1; }
.crm-form-actions { display: flex; gap: 10px; align-items: center; }
.crm-empty { margin: 0; padding: 24px 14px; color: var(--muted, #5d6b7f); font-size: 13px; font-weight: 400; line-height: 1.8; text-align: center; }
.crm-name-button { min-height: 32px; padding: 5px 8px; color: #1269a8; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.crm-table-wrap .admin-table { min-width: 720px; }
.crm-table-wrap td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.crm-table-wrap td:first-child { min-width: 100px; }
.crm-inline-actions { display: flex; flex-wrap: wrap; gap: 7px; min-width: 180px; }
.crm-inline-actions .button { min-height: 32px; padding: 5px 9px; font-size: 12px; }
.crm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; margin: 18px 0; }
.crm-facts div { min-width: 0; }
.crm-facts dt { margin: 0 0 6px; color: var(--muted, #5d6b7f); font-size: 12px; }
.crm-facts dd { margin: 0; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.crm-note { margin: 6px 0 10px; font-size: 13px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; font-weight: 400; }
.crm-subpanel { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line, #dfe7ef); }
.crm-history { max-height: 360px; overflow-y: auto; margin-block: 12px; }
.crm-history-item { padding: 12px 0; border-bottom: 1px solid var(--line, #dfe7ef); }
.crm-history-item:last-child { border-bottom: 0; }
.crm-trial-history { margin-top: 10px; min-width: 180px; font-size: 12px; font-weight: 400; }
.crm-trial-history summary { color: #1269a8; cursor: pointer; }
.crm-trial-history .crm-help { margin-bottom: 6px; }
@media (max-width: 900px) { .crm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
  #admin-customer-management { padding-inline: 16px; }
  .crm-section-heading { align-items: flex-start; flex-wrap: wrap; }
  .crm-form-grid, .crm-filters { grid-template-columns: minmax(0, 1fr); }
  .crm-facts { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .crm-section-heading > .button { min-height: 36px; }
}
