/* ---- Firma profili + AI araştırma ---- */
.sector-col { max-width: 180px; }
.city-col { max-width: 130px; }
.nowrap { white-space: nowrap; }

#companyDialog .dialog { width: min(640px,100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.company-profile-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.company-profile-grid .span-2 { grid-column: span 2; }

.enrich-box { margin-top: 18px; padding: 14px; border: 1px solid #e4e1fb; border-radius: 10px; background: #faf9ff; }
.enrich-head { display: flex; flex-direction: column; gap: 3px; }
.enrich-head b { color: #4d43b8; font-size: 12px; }
.enrich-head .muted { font-size: 11px; }
.enrich-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.enrich-controls select { flex: 1 1 220px; width: auto; min-width: 0; }
#companyDialog .enrich-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #55596d; font-size: 12px; font-weight: 500; white-space: nowrap; }
#companyDialog .enrich-check input, #companyDialog .enrich-table input[type=checkbox] { width: auto; height: auto; }
.enrich-spinner { display: inline-block; width: 11px; height: 11px; margin-right: 4px; border: 2px solid #c9c4f5; border-top-color: #6a5fe0; border-radius: 50%; vertical-align: -1px; animation: enrich-spin .8s linear infinite; }
@keyframes enrich-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .enrich-spinner { animation-duration: 2.4s; } }

.enrich-result { margin-top: 12px; font-size: 12px; }
.enrich-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #8a8ea0; font-size: 11px; }
.enrich-confidence { padding: 2px 8px; border-radius: 999px; font-weight: 600; }
.enrich-confidence.high { color: #1f7a4d; background: #e3f6ec; }
.enrich-confidence.medium { color: #8a5a00; background: #fff3d6; }
.enrich-confidence.low { color: #b84350; background: #fde8ea; }
.enrich-description { margin: 8px 0; color: #44485e; line-height: 1.5; }
.enrich-table { width: 100%; margin-top: 8px; border-collapse: collapse; table-layout: fixed; }
.enrich-table th { padding: 6px; color: #8a8ea0; font-size: 10px; text-align: left; }
.enrich-table th:first-child { width: 26px; }
.enrich-table th:nth-child(2) { width: 110px; }
.enrich-table td { padding: 7px 6px; border-top: 1px solid #ecebf5; color: #44485e; }
.enrich-table .muted-row td { color: #a3a6b5; }
.enrich-table a { color: #5a4fd6; }
.enrich-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.enrich-actions .muted { font-size: 11px; }
.enrich-note { margin: 8px 0 0; color: #6a6e82; }
.enrich-warning { margin: 6px 0 0; color: #8a5a00; }
.enrich-error { margin: 0; color: #b84350; }
.enrich-sources { margin-top: 8px; color: #6a6e82; }
.enrich-sources summary { cursor: pointer; font-size: 11px; }
.enrich-sources ul { margin: 6px 0 0; padding-left: 18px; }
.enrich-sources a { color: #5a4fd6; word-break: break-all; }

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

/* ---- Firma birleştirme (company-merge.js) ---- */
#mergeCompanyDialog .dialog { width: min(600px,100%); max-height: calc(100vh - 40px); overflow-y: auto; }
.merge-intro { margin: 6px 0 14px; font-size: 12px; line-height: 1.5; }
.merge-list { display: flex; flex-direction: column; gap: 8px; }
.merge-option { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid #e9eaf1; border-radius: 10px; cursor: pointer; background: #fff; transition: border-color .15s, background-color .15s; }
.merge-option:hover { border-color: #cfcaf7; }
.merge-option.master { border-color: #6c5ce7; background: #f7f6ff; }
.merge-option input { flex: none; margin: 0; }
.merge-option-body { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 3px; }
.merge-option-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.merge-option-meta { color: #7a7e90; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merge-option-stats { flex: none; text-align: right; color: #64687a; font-size: 11px; line-height: 1.7; }
.merge-master-badge { padding: 2px 7px; border-radius: 999px; color: #fff; background: #6c5ce7; font-size: 10px; font-weight: 600; }
.merge-summary { margin: 14px 0 0; color: #55516e; font-size: 12px; }
