/* Firma özel alanları: firma penceresindeki giriş bölümü ve Ayarlar → Firma özel alanları (company-fields.js). */
/* Kart: "Fırsatlar" kutusuyla aynı görsel dil. */
.cf-section { margin: 18px 0 4px; padding: 14px; border: 1px solid #eceef4; border-radius: 10px; background: #fafbfd; }
.cf-section-head { display: flex; align-items: center; gap: 8px; color: #303449; font-size: 12.5px; }
.cf-section-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; color: var(--purple); background: #f0efff; font-size: 13px; }
.cf-count { padding: 2px 8px; border-radius: 999px; color: #5c6075; background: #eceef4; font-size: 10.5px; font-weight: 600; }
.cf-edit-link { margin-left: auto; padding: 4px 8px; border-radius: 6px; color: #77798a; font-size: 11px; text-decoration: none; }
.cf-edit-link:hover { color: var(--purple); background: #f0efff; }
.cf-section > .muted { margin-top: 10px; }

.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
.cf-grid .span-2 { grid-column: span 2; }
.cf-field { min-width: 0; padding: 10px 12px 12px; border: 1px solid #eceef4; border-radius: 9px; background: #fff; transition: border-color .15s; }
.cf-field:focus-within { border-color: #c9c3f7; }
.cf-field-head { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.dialog .cf-field-head label { margin: 0; color: #4c5066; font-size: 11px; font-weight: 700; letter-spacing: .1px; }
.cf-kind { margin-left: auto; color: var(--muted); font-size: 10px; }
.dialog .cf-field input:not([type=checkbox]):not([type=radio]), .dialog .cf-field select { height: 34px; background: #fbfbfd; }
.dialog .cf-field.is-empty select, .dialog .cf-field.is-empty input::placeholder { color: #a6a9b8; }
.dialog .cf-field:not(.is-empty) .cf-field-head label::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: 6px;
  border-radius: 50%; background: var(--green); vertical-align: middle; }

/* Çipler: çoklu seçim (✓) ve kısa tek seçim (segment). */
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.dialog .cf-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 11px; border: 1px solid #e3e5ee;
  border-radius: 999px; color: #44485e; background: #fff; font-size: 11.5px; font-weight: 500; cursor: pointer; user-select: none;
  transition: background .15s, border-color .15s, color .15s; }
.dialog .cf-chip:hover { border-color: #c9c3f7; }
.dialog .cf-chip input { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.cf-chip-mark { display: grid; place-items: center; width: 14px; height: 14px; border: 1.5px solid #c8cad6; border-radius: 4px; background: #fff;
  font-size: 10px; line-height: 1; transition: inherit; }
.cf-segment .cf-chip-mark { border-radius: 50%; }
.dialog .cf-chip:has(input:checked) { border-color: var(--purple); color: #fff; background: var(--purple); }
.dialog .cf-chip:has(input:checked) .cf-chip-mark { border-color: #fff; color: var(--purple); background: #fff; }
.dialog .cf-chip:has(input:checked) .cf-chip-mark::before { content: '✓'; font-weight: 700; }
.dialog .cf-chip:has(input:focus-visible) { box-shadow: 0 0 0 3px #7162df2e; }
.dialog .cf-chip.missing { border-style: dashed; }

@media (max-width: 620px) {
  .cf-grid { grid-template-columns: 1fr; }
  .cf-grid .span-2 { grid-column: auto; }
}

/* Ayarlar sayfası */
.cf-table td { vertical-align: middle; }
.cf-table .cf-order { width: 64px; white-space: nowrap; }
.cf-table .cf-order .icon-button { padding: 2px 6px; font-size: 14px; }
.cf-table .cf-order .icon-button:disabled { opacity: .25; cursor: default; background: transparent; }
.cf-options-cell { max-width: 360px; }
.cf-option { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 8px; border-radius: 999px; color: #4c5066; background: #f1f2f7; font-size: 11px; }
.text-button.danger { color: #b84350; }

/* Alan penceresi */
#companyFieldDialog .dialog { width: min(480px,100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.cf-options { display: grid; gap: 6px; }
.cf-option-row { display: flex; align-items: center; gap: 6px; }
.cf-option-row input { flex: 1; }
.cf-hint { margin: 8px 0 0; padding: 8px 10px; border-radius: 7px; color: #8a5a12; background: #fff6e5; font-size: 11px; }
#cfUsageNote { margin-top: 10px; }
