@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: 'DM Sans', sans-serif;
  color: #20243a;
  background: #f6f7fb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #20243a;
  --muted: #85899d;
  --line: #eceef4;
  --purple: #6857df;
  --purple-dark: #5545c8;
  --panel: #fff;
  --green: #24966a;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; background: #f6f7fb; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.shell { min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 242px; z-index: 3;
  display: flex; flex-direction: column; padding: 27px 17px;
  background: #fff; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 6px; color: var(--ink); text-decoration: none; font: 800 21px Manrope, sans-serif; letter-spacing: -.7px; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: white; background: linear-gradient(145deg,#8578f4,#5c4bd2); box-shadow: 0 7px 16px #6857df33; font: 800 24px Manrope,sans-serif; }
.brand-mark.small { width: 36px; height: 36px; border-radius: 11px; font-size: 19px; }
.brand-sub { display: block; margin-top: 3px; color: #9da0b1; font: 600 9px 'DM Sans',sans-serif; letter-spacing: 1.6px; }
.side-label { margin: 54px 10px 12px; color: #a6a8b8; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.sidebar nav { display: grid; gap: 6px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 11px; border-radius: 9px; color: #777b90; text-decoration: none; font-size: 13px; font-weight: 600; }
.nav-link:hover { color: var(--purple); background: #f8f7ff; }
.nav-link.active { color: var(--purple); background: #f0efff; }
.nav-icon { width: 20px; text-align: center; font-size: 19px; }
.nav-count { margin-left: auto; color: #8f8ca4; font-size: 11px; }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 5px; border-top: 1px solid var(--line); color: #9296a7; font-size: 11px; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #32b77d; box-shadow: 0 0 0 3px #32b77d1d; }

.main-area { min-height: 100vh; max-width: 1800px; margin-left: 242px; padding: 0 42px; }
.topbar { display: flex; align-items: center; justify-content: space-between; height: 72px; margin: 0 -42px 32px; padding: 0 42px; border-bottom: 1px solid var(--line); background: #fff; }
.breadcrumb { color: #9699aa; font-size: 12px; }
.breadcrumb span { margin: 0 9px; color: #cacbd4; }
.breadcrumb strong { color: #45495e; font-weight: 600; }
.user-menu { display: flex; align-items: center; gap: 9px; color: #55596c; font-size: 12px; font-weight: 600; }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #6253d1; background: #e9e6ff; font-weight: 700; }
.icon-button { padding: 5px 8px; border: 0; border-radius: 7px; color: #9295a6; background: transparent; font-size: 18px; }
.icon-button:hover { color: var(--purple); background: #f0efff; }
.page-section { animation: appear .18s ease-out; }
@keyframes appear { from { opacity: .5; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { margin: 0 0 7px; color: #989bad; font-size: 9px; font-weight: 700; letter-spacing: 1.45px; }
.page-heading h1 { margin: 0 0 6px; color: #282c42; font: 700 26px Manrope,sans-serif; letter-spacing: -.8px; }
.muted { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.button { padding: 9px 13px; border: 1px solid #e6e8f0; border-radius: 8px; color: #5e6277; background: #fff; font-size: 11px; font-weight: 600; white-space: nowrap; transition: .15s; }
.button:hover { border-color: #c8c3f6; color: var(--purple); background: #fbfaff; }
.button.primary { border-color: var(--purple); color: #fff; background: var(--purple); box-shadow: 0 3px 8px #6857df2b; }
.button.primary:hover { background: var(--purple-dark); }
.button.full { width: 100%; margin-top: 8px; padding: 12px; }
.button.full span { float: right; }

.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 20px; }
.metric-card { min-width: 0; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 2px 6px #282c4205; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.metric-label { color: #888ca0; font-size: 11px; font-weight: 600; }
.metric-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.metric-value { margin: 13px 0 4px; color: #292d42; font: 700 26px Manrope,sans-serif; letter-spacing: -.8px; }
.metric-note { color: #a0a3b2; font-size: 10px; }
.metric-icon.purple { color: #6555d8; background: #f0efff; }
.metric-icon.blue { color: #4f8be3; background: #eaf3ff; }
.metric-icon.orange { color: #e29256; background: #fff2e8; }
.metric-icon.green { color: #36a477; background: #e8f8f0; }
.overview-grid { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(270px,.8fr); gap: 17px; }
.panel { min-width: 0; padding: 19px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 2px 6px #282c4204; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.panel h2 { margin: 1px 0 5px; color: #303449; font: 700 14px Manrope,sans-serif; }
.panel-heading .muted { font-size: 10px; }
.quick-links { display: grid; }
.quick-links>a { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid #f1f2f6; color: var(--ink); text-decoration: none; }
.quick-links>a:first-child { border-top: 0; }
.quick-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border-radius: 9px; font-size: 17px; }
.quick-icon.lilac { color: #6b5bdb; background: #f1efff; }
.quick-icon.mint { color: #35a678; background: #e9f8f1; }
.quick-icon.peach { color: #d98e5a; background: #fff1e8; }
.quick-links b { display: block; margin-bottom: 3px; font-size: 11px; }
.quick-links small { display: block; color: #9699a9; font-size: 9px; }
.quick-links i { margin-left: auto; color: #a4a6b4; font-style: normal; }
.quick-links>a:hover b,.quick-links>a:hover i { color: var(--purple); }
.status-pill { padding: 6px 8px; border-radius: 20px; font-size: 9px; font-weight: 700; }
.status-pill.healthy { color: #24966a; background: #eaf8f1; }
.sync-time { margin: 19px 0 5px; color: #35394e; font: 700 17px Manrope,sans-serif; }
.small-text { font-size: 10px; }
/* Genel bakış: satış hunisi, iletişim kanalları, pazarlama ve kaynak panelleri */
.ov-row { margin-bottom: 17px; }
.ov-side { display: grid; gap: 17px; align-content: start; min-width: 0; }
.ov-more { font-size: 12px; text-decoration: none; white-space: nowrap; }
.quick-icon.blue { color: #4f8be3; background: #eaf3ff; }
.ov-pipeline { display: grid; gap: 4px; }
.ov-stage { display: grid; grid-template-columns: minmax(90px,150px) minmax(60px,1fr) 44px minmax(80px,auto); align-items: center; gap: 12px; padding: 7px 6px; border-radius: 8px; color: var(--ink); font-size: 12.5px; text-decoration: none; }
.ov-stage:hover { background: #f6f5ff; }
.ov-stage-name { display: flex; align-items: center; gap: 8px; overflow: hidden; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.ov-stage-count { color: #303449; font-weight: 700; text-align: right; }
.ov-stage-total { color: #85899d; font-size: 11.5px; text-align: right; white-space: nowrap; }
.ov-bar { display: block; height: 8px; overflow: hidden; border-radius: 99px; background: #f1f2f6; }
.ov-bar>span { display: block; height: 100%; border-radius: 99px; background: #8e84ec; }
.ov-stage .ov-bar>span { background: currentColor; opacity: .75; }
.ov-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #f0f1f5; color: #6f7387; font-size: 12px; }
.ov-won { color: #1d7a45; }
.ov-lost { color: #a85361; }
.ov-warn { color: #b3303e; font-weight: 600; }
.ov-channels { display: grid; }
.ov-channel { display: grid; grid-template-columns: 34px 1fr 64px 64px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f2f6; color: #4b4f64; font-size: 12.5px; }
.ov-channel:first-child { border-top: 0; }
.ov-channel-name { color: #303449; font-weight: 600; }
.ov-channel-total { grid-column: span 2; text-align: right; font-weight: 600; }
.ov-hint { margin: 10px 0 0; }
.ov-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.ov-stat { display: grid; gap: 2px; padding: 11px 12px; border: 1px solid #f0f1f5; border-radius: 9px; color: #6f7387; font-size: 11.5px; text-decoration: none; }
.ov-stat:hover { border-color: #d4d0f5; }
.ov-stat b { color: #292d42; font: 700 19px Manrope,sans-serif; }
.ov-stat small { color: #9a9db0; font-size: 10.5px; }
.ov-sources { display: grid; gap: 9px; }
.ov-source { display: grid; grid-template-columns: 96px 1fr 56px; align-items: center; gap: 10px; font-size: 12px; }
.ov-source b { color: #303449; text-align: right; }
.health-foot { display: flex; align-items: center; gap: 8px; margin-top: 24px; padding-top: 13px; border-top: 1px solid #f0f1f5; color: #717589; font-size: 10px; }
.footer { padding: 27px 0; color: #a1a3b0; font-size: 10px; }
.footer span { padding: 0 5px; }

.data-panel { overflow: hidden; padding: 0; }
.toolbar { display: flex; align-items: center; gap: 10px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; align-items: center; flex: 1; gap: 8px; max-width: 320px; height: 34px; padding: 0 9px; border: 1px solid #e9eaf1; border-radius: 7px; color: #a0a2b0; }
.search-box span { font-size: 19px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-box input::placeholder { color: #a7a9b6; }
.toolbar select,.bulk-bar select,.dialog select { height: 34px; padding: 0 9px; border: 1px solid #e9eaf1; border-radius: 7px; outline: 0; color: #64687a; background: #fff; font-size: 10px; }
.result-count { margin-left: auto; color: #999cad; font-size: 10px; white-space: nowrap; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; }
thead { background: #fbfbfd; }
th { height: 39px; padding: 0 13px; border-bottom: 1px solid #eff0f4; color: #999cad; text-align: left; font-size: 9px; font-weight: 700; letter-spacing: .55px; }
td { padding: 11px 13px; border-bottom: 1px solid #f0f1f5; color: #676b7f; font-size: 10px; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfcff; }
th:first-child,td:first-child { padding-left: 17px; }
.check-cell { width: 32px; }
input[type=checkbox] { width: 13px; height: 13px; accent-color: var(--purple); }
.contact-name { color: #34384d; font-size: 10px; font-weight: 600; }
.contact-email { margin-top: 3px; color: #9a9dad; font-size: 9px; }
.company-name { color: #5d6175; font-weight: 500; }
.truncate-cell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.company-col { max-width: 280px; }
#page-contacts .toolbar { flex-wrap: wrap; }
.search-box.field-filter { flex: 0 1 160px; }
.contact-company-col { width: 200px; min-width: 200px; max-width: 200px; }
.domain-col { max-width: 220px; }
.range-filter { display: flex; align-items: center; gap: 6px; color: #8b8ea0; font-size: 12px; white-space: nowrap; }
.range-filter input { width: 72px; height: 34px; padding: 0 8px; border: 1px solid #e9eaf1; border-radius: 7px; outline: 0; color: #64687a; background: #fff; font-size: 12px; }
.range-filter input:focus { border-color: #b9b1f5; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; height: 30px; padding: 0 4px 0 10px; border-radius: 20px; color: #5b4ccc; background: #efedff; font-size: 12px; }
.filter-chip>span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip button { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; color: #5b4ccc; background: transparent; font-size: 15px; cursor: pointer; }
.filter-chip button:hover { background: #ddd8ff; }
/* Kişiler / Firmalar filtre çubuğu: üst satırda arama + aksiyonlar, altta filtre ızgarası */
.filter-toolbar { flex-wrap: wrap; gap: 12px; }
.filter-toolbar > .search-box { flex: 1 1 320px; max-width: 520px; height: 38px; }
.filter-toolbar > .text-button { margin-left: auto; }
.filter-toolbar > .result-count { margin-left: 0; }
.filter-grid { order: 10; flex: 1 0 100%; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.filter-grid > select,.filter-grid > .search-box,.filter-grid > .search-box.field-filter { width: 100%; min-width: 0; max-width: none; height: 36px; }
.filter-grid .range-filter { grid-column: span 2; min-width: 0; height: 36px; padding: 0 4px 0 10px; border: 1px solid #e9eaf1; border-radius: 7px; background: #fff; }
.filter-grid .range-filter input { flex: 1; min-width: 0; width: auto; height: 28px; }
@media (max-width: 520px) { .filter-grid .range-filter { grid-column: auto; } .filter-toolbar > .text-button { margin-left: 0; } }
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover,th.sortable.sorted { color: #5b4ccc; }
th.sortable:after { margin-left: 4px; opacity: .35; content: '↕'; }
th.sortable[data-dir=asc]:after { opacity: 1; content: '↑'; }
th.sortable[data-dir=desc]:after { opacity: 1; content: '↓'; }
.count-link { color: #5b4ccc; font-weight: 600; text-decoration: none; }
.count-link:hover { text-decoration: underline; }
.company-link { color: inherit; text-decoration: none; }
.company-link:hover { color: var(--purple); text-decoration: underline; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; border-radius: 20px; font-size: 9px; font-weight: 600; }
.status-badge:before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ''; }
.status-badge.unclassified { color: #86899a; background: #f1f2f5; }
.status-badge.lead,.status-badge.prospect { color: #d2873e; background: #fff4e7; }
.status-badge.developer { color: #3976b8; background: #eaf3ff; }
.status-badge.customer { color: #278b65; background: #eaf7f0; }
.status-badge.partner { color: #6355cb; background: #f0efff; }
.status-badge.supplier { color: #8a6d1f; background: #fbf5e2; }
.status-badge.other { color: #2f8a96; background: #e6f6f8; }
.status-badge.inactive { color: #9a7481; background: #f8eef1; }
.bulk-bar { display: flex; align-items: center; gap: 9px; padding: 10px 16px; border-bottom: 1px solid #e8e5ff; color: #55516e; background: #f5f4ff; font-size: 10px; }
.bulk-bar select { background: #fff; }
.small-button { padding: 8px 11px; }
.text-button { padding: 5px; border: 0; color: #77798a; background: transparent; font-size: 10px; }
.table-footer { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-top: 1px solid var(--line); color: #999cad; font-size: 10px; }
.page-button { margin-left: 4px; padding: 6px 10px; }
.empty-state { padding: 34px 12px; color: #999cad; text-align: center; font-size: 11px; }
.edit-button { padding: 7px 10px; border: 0; border-radius: 6px; color: var(--purple); background: #f3f2ff; font-size: 10px; font-weight: 600; }
.edit-button:hover { background: #e9e6ff; }

.date-filter { display: flex; align-items: end; gap: 8px; }
.date-filter label { display: grid; gap: 5px; color: #8c8fa1; font-size: 9px; font-weight: 600; }
.date-filter input { height: 34px; padding: 0 8px; border: 1px solid #e7e8ef; border-radius: 7px; color: #55596d; background: #fff; font-size: 10px; }
.date-filter select { height: 34px; min-width: 132px; padding: 0 30px 0 10px; border: 1px solid #e7e8ef; border-radius: 7px; color: #3d4152; font-size: 10px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238c8fa1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 11px center; transition: border-color .15s, box-shadow .15s; }
.date-filter select:hover,.date-filter input:hover { border-color: #d6d4f5; }
.date-filter select:focus,.date-filter input:focus { outline: 0; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(104,87,223,.14); }
.report-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
.report-grid { grid-template-columns: minmax(0,1.2fr) minmax(290px,.8fr); }
.chart { display: flex; align-items: end; gap: 4px; height: 210px; overflow-x: auto; padding: 10px 0 0; border-bottom: 1px solid #eceef3; }
.chart-column { position: relative; display: flex; align-items: end; justify-content: center; flex: 1; gap: 2px; min-width: 16px; height: 100%; }
.chart-bar { width: 28%; min-width: 3px; min-height: 2px; border-radius: 3px 3px 0 0; }
.chart-bar.sent { background: #7062df; }
.chart-bar.received { background: #62b7a0; }
.chart-bar.meetings { background: #f2b66e; }
.chart-label { position: absolute; bottom: -17px; color: #a2a4b1; font-size: 8px; white-space: nowrap; }
.chart-legend { display: flex; gap: 15px; margin-top: 22px; color: #898c9d; font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.legend-dot.sent { background: #7062df; }
.legend-dot.received { background: #62b7a0; }
.legend-dot.meetings { background: #f2b66e; }
.top-company-list { display: grid; }
.top-company { padding: 10px 0; border-top: 1px solid #f0f1f5; }
.top-company:first-child { border-top: 0; }
.top-company-top { display: flex; justify-content: space-between; gap: 8px; color: #55596c; font-size: 10px; }
.top-company b { font-weight: 600; }
.top-company span { color: #9699a9; }
.top-company-track { height: 4px; overflow: hidden; margin-top: 7px; border-radius: 5px; background: #f0eff7; }
.top-company-track i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg,#897cf1,#6152d6); }

.notice { position: fixed; top: 82px; right: 25px; z-index: 8; max-width: 340px; padding: 11px 15px; border-radius: 8px; color: #fff; background: #2c3044; box-shadow: 0 8px 22px #20243a22; font-size: 11px; }
.notice.error { background: #a03d4b; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; background: #191a2d77; }
.dialog { width: min(440px,100%); padding: 23px; border-radius: 13px; background: #fff; box-shadow: 0 18px 60px #17172a33; }
.dialog-title { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }
.dialog-title h2 { margin: 0; color: #303449; font: 700 16px Manrope,sans-serif; }
.dialog label,.login-card label { display: block; margin: 15px 0 7px; color: #74788c; font-size: 10px; font-weight: 600; }
.dialog input,.dialog select,.login-card input { width: 100%; height: 39px; padding: 0 10px; border: 1px solid #e7e8ef; border-radius: 7px; outline: 0; color: #44485e; background: #fff; font-size: 11px; }
.dialog input:focus,.dialog select:focus,.login-card input:focus { border-color: #988ef0; box-shadow: 0 0 0 3px #7162df14; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 23px; }

.login-screen { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: radial-gradient(ellipse at 30% 20%,#f0eeff,transparent 38%),#f6f7fb; }
.login-card { width: min(390px,100%); padding: 34px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 16px 55px #33325e0c; }
.login-card .brand-mark { margin-bottom: 26px; }
.login-card h1 { margin: 0 0 7px; color: #2c3044; font: 700 21px Manrope,sans-serif; letter-spacing: -.55px; }
.login-card>.muted { margin-bottom: 25px; }
.login-card input { height: 42px; }
.form-error { min-height: 16px; margin: 8px 0; color: #b84350; font-size: 10px; }
.login-foot { margin: 20px 0 0; color: #a1a3b1; text-align: center; font-size: 9px; }

@media (min-width: 1800px) { .main-area { margin-right: auto; } }
@media (max-width: 1050px) {
  .main-area { margin-left: 218px; padding: 0 25px; }
  .topbar { margin: 0 -25px 27px; padding: 0 25px; }
  .sidebar { width: 218px; }
  .metric-grid { gap: 10px; }
  .metric-card { padding: 15px; }
  .overview-grid,.report-grid { grid-template-columns: 1fr; }
  .health-panel { min-height: 160px; }
}
@media (max-width: 760px) {
  .sidebar { width: 62px; align-items: center; padding: 18px 8px; }
  .brand { padding: 0; }
  .brand>span:nth-child(2),.side-label { display: none; }
  .sidebar nav { width: 100%; margin-top: 32px; }
  .nav-link { justify-content: center; padding: 0; font-size: 0; }
  .nav-link .nav-icon { font-size: 18px; }
  .nav-count,.sidebar-bottom { display: none; }
  .main-area { margin-left: 62px; padding: 0 15px; }
  .topbar { height: 60px; margin: 0 -15px 23px; padding: 0 15px; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .page-heading h1 { font-size: 23px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric-value { font-size: 23px; }
  .ov-stage { grid-template-columns: minmax(80px,1fr) 1fr 36px; }
  .ov-stage-total { display: none; }
  .toolbar { flex-wrap: wrap; }
  .search-box { min-width: 100%; max-width: none; }
  .toolbar select { flex: 1; }
  .range-filter { flex-wrap: wrap; }
  .result-count { margin-left: 0; }
  .bulk-bar { flex-wrap: wrap; }
  .date-filter { width: 100%; flex-wrap: wrap; }
  .date-filter label { flex: 1; }
  .date-filter input,.date-filter select { width: 100%; }
  .report-metrics { grid-template-columns: 1fr; }
  .panel { padding: 14px; }
  .data-panel { padding: 0; }
  .table-footer { padding: 10px; }
  .user-menu { gap: 6px; }
  .user-menu>span { max-width: 85px; overflow: hidden; text-overflow: ellipsis; }
  .chart-column:nth-child(odd) .chart-label { display: none; }
}

.eyebrow { font-size: 11px; }
.muted { font-size: 14px; }
.nav-link { font-size: 14px; }
.page-heading h1 { font-size: 30px; }
.button { font-size: 13px; }
.metric-label { font-size: 13px; }
.metric-value { font-size: 30px; }
.metric-note { font-size: 12px; }
.panel h2 { font-size: 16px; }
.panel-heading .muted { font-size: 12px; }
.quick-links b { font-size: 13px; }
.quick-links small { font-size: 11px; }
.status-pill { font-size: 11px; }
.small-text { font-size: 12px; }
.health-foot { font-size: 12px; }
.footer { font-size: 12px; }
.search-box input,.toolbar select,.bulk-bar select,.dialog select { font-size: 12px; }
.result-count { font-size: 12px; }
th { font-size: 11px; }
td { font-size: 12px; }
.contact-name { font-size: 12px; }
.contact-email { font-size: 11px; }
.status-badge { font-size: 11px; }
.bulk-bar,.text-button,.table-footer,.edit-button { font-size: 12px; }
.empty-state { font-size: 13px; }
.date-filter label { font-size: 11px; }
.date-filter input,.date-filter select { font-size: 12px; }
.chart-label { font-size: 10px; }
.chart-legend { font-size: 11px; }
.top-company-top { font-size: 12px; }
.notice { font-size: 13px; }
.dialog label,.login-card label { font-size: 12px; }
.dialog input,.dialog select,.login-card input { font-size: 13px; }
.form-error { font-size: 12px; }
.login-foot { font-size: 11px; }
.login-card h1 { font-size: 23px; }

@media (max-width: 760px) {
  .nav-link { font-size: 0; }
  .page-heading h1 { font-size: 27px; }
  .metric-value { font-size: 26px; }
}


/* ---------- İçe aktar ---------- */
.import-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.2fr); gap: 17px; margin-bottom: 20px; }
.segmented { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: 10px; background: #f3f3f8; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 8px 16px; border-radius: 7px; color: #777b90; font-size: 13px; font-weight: 600; }
.segmented input:checked + span { color: var(--purple); background: #fff; box-shadow: 0 1px 4px #282c4214; }
.segmented input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 1px; }
.import-columns { margin-bottom: 14px; font-size: 13px; line-height: 1.5; }
.import-columns p { margin: 0 0 6px; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 150px; padding: 18px; border: 1.5px dashed #d4d1f3; border-radius: 11px; background: #fbfbff; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.dragging { border-color: var(--purple); background: #f5f3ff; }
.dropzone.has-file { border-style: solid; border-color: #b9b1f5; }
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone-icon { color: var(--purple); font-size: 28px; }
.dropzone b { font-size: 14px; word-break: break-all; }
.dropzone small { color: var(--muted); font-size: 12px; }
.import-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.import-result-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.import-result-title .status-pill:not(.healthy) { color: #5b4ccc; background: #efedff; }
@media (max-width: 900px) { .import-grid { grid-template-columns: 1fr; } }
.import-grid .segmented { margin-right: 8px; }
.odoo-status { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 11px 13px; border-radius: 9px; background: #f7f7fb; color: #555a70; font-size: 13px; word-break: break-all; }
.offline-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #c9a14a; box-shadow: 0 0 0 3px #c9a14a22; }
.odoo-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.odoo-filters label { display: grid; gap: 6px; color: #74788c; font-size: 12px; font-weight: 600; }
.odoo-filters input { height: 39px; padding: 0 10px; border: 1px solid #e7e8ef; border-radius: 7px; outline: 0; color: #44485e; font-size: 13px; }
.odoo-filters input:focus { border-color: #988ef0; box-shadow: 0 0 0 3px #7162df14; }
#odooDialog .dialog { width: min(520px,100%); }
#odooDialog .dialog-actions { align-items: center; }
#odooDialog .dialog-actions .text-button { margin-right: auto; color: #b84350; }
.form-error.success { color: var(--green); }
@media (max-width: 640px) { .odoo-filters { grid-template-columns: 1fr; } }

/* ---------- Kayıt kaynağı ---------- */
.source-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; color: #5f6377; background: #f1f2f5; font-size: 11px; font-weight: 600; white-space: nowrap; }
.source-badge.office365 { color: #2f6db5; background: #eaf2fc; }
.source-badge.file { color: #6b6f82; background: #f0f1f4; }
.source-badge.odoo { color: #8a3f7a; background: #f8edf5; }
.source-badge.meta_ads { color: #1d6fd6; background: #e8f1ff; }
.source-badge.linkedin { color: #0a66c2; background: #e7f0fa; }
.source-summary { margin-bottom: 20px; }
.source-summary td { padding-top: 10px; padding-bottom: 10px; }

/* ---- Kişi kartı (contacts.js) ---- */
.contact-open { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.contact-open:hover .contact-name { color: var(--purple); text-decoration: underline; }
.contact-title { color: #4b4f63; font-size: 12px; }
.contact-phone { white-space: nowrap; color: #4b4f63; }
.li-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; color: #fff; background: #0a66c2; font: 700 11px/1 Arial, sans-serif; }
.li-mark.small { width: 14px; height: 14px; font-size: 9px; border-radius: 3px; }
.contact-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 40px); overflow: auto; }
.contact-dialog .dialog-title { margin-bottom: 8px; }
.contact-dialog .dialog-title p { margin: 4px 0 0; }
.contact-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.contact-form-grid .span-2 { grid-column: 1 / -1; }
.contact-dialog input.field-filled { border-color: #0a66c2; background: #f2f8fd; }
.input-with-link { display: flex; gap: 6px; align-items: center; }
.input-with-link .icon-button { flex: none; text-decoration: none; }
.linkedin-box { margin-top: 14px; padding: 14px; border: 1px solid #e3ecf6; border-radius: 10px; background: #fafcfe; }
.linkedin-box-head b { color: #303449; font-size: 13px; }
.linkedin-search-row { display: flex; gap: 8px; margin-top: 8px; }
.linkedin-search-row input { flex: 1; }
.linkedin-search-row .button { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.contact-dialog .form-error { min-height: 0; margin: 10px 0 0; color: #9c2f3d; font-size: 12px; }
.spinner { display: inline-block; width: 11px; height: 11px; margin-right: 4px; border: 2px solid #c9d8ea; border-top-color: #0a66c2; border-radius: 50%; vertical-align: -1px; animation: li-spin .8s linear infinite; }
@keyframes li-spin { to { transform: rotate(360deg); } }
.linkedin-search-row a.button { display: inline-flex; align-items: center; text-decoration: none; white-space: nowrap; }

/* Kişi kartı › Firma geçmişi (contacts.js) */
.cd-history { margin: 16px 0 4px; padding: 12px; border: 1px solid #eceef4; border-radius: 10px; background: #fafbfd; }
.cd-history-head { display: flex; align-items: center; gap: 8px; color: #303449; font-size: 12.5px; }
.cd-history-head .button { margin-left: auto; }
.cd-history-list { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.cd-history-list li { position: relative; padding: 0 0 10px 18px; font-size: 12.5px; color: #303449; }
.cd-history-list li::before { content: ''; position: absolute; left: 3px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #c3c7d4; }
.cd-history-list li:not(:last-child)::after { content: ''; position: absolute; left: 6px; top: 14px; bottom: 0; width: 1px; background: #e1e4ec; }
.cd-history-list li.current::before { background: #1f9d55; box-shadow: 0 0 0 3px #e2f4e9; }
.cd-history-list li:last-child { padding-bottom: 0; }
.cd-history-list .cd-h-meta { display: block; margin-top: 2px; color: #6f7387; font-size: 11.5px; }
.cd-history-list .cd-h-now { margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #e2f4e9; color: #135c32; font-size: 10.5px; font-weight: 700; }
.cd-history-empty { color: #a0a3b2; font-size: 11.5px; }
.cd-prev-emails { margin: 10px 0 0; color: #6f7387; font-size: 11.5px; }
.cd-job-change { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #dfe2ea; }
.cd-job-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* LinkedIn Chrome eklentisi durumu (extension.js) */
.ext-chip { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; margin-right: 14px; padding: 6px 12px; border: 1px solid #dfe2ea; border-radius: 999px; background: #fff; color: #4b4f63; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.ext-chip:hover { border-color: #0a66c2; color: #0a66c2; }
.ext-chip .ext-dot { width: 8px; height: 8px; border-radius: 50%; background: #a0a4b3; }
.ext-chip.connected { color: #0a66c2; background: #e7f0fa; border-color: #c7dcf3; }
.ext-chip.connected .ext-dot { background: #1f9d55; }
.ext-chip.outdated .ext-dot { background: #e8a317; }
.ext-status { padding: 10px 12px; border-radius: 8px; background: #f3f4f7; margin-bottom: 12px; font-weight: 600; }
.ext-status.ok { background: #e7f6ec; color: #135c32; }
.ext-status.warn { background: #fff6e0; color: #6b4a00; }
.ext-steps { margin: 8px 0 4px; padding-left: 20px; line-height: 1.6; }
.ext-steps code { background: #f1f2f5; padding: 1px 5px; border-radius: 4px; }
@media (max-width: 640px) { .contact-form-grid { grid-template-columns: 1fr; } }
.ext-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: -16px 0 24px; padding: 12px 16px; border: 1px solid #f3d48a; border-radius: 10px; background: #fff6e0; color: #6b4a00; font-size: 13px; }
.ext-banner-actions { display: flex; align-items: center; gap: 8px; }
.ext-banner .button { text-decoration: none; }
.ext-chip.outdated { color: #6b4a00; background: #fff6e0; border-color: #f3d48a; }

/* gg.aa.yyyy tarih alanları (datefmt.js) */
.date-field-wrap { position: relative; display: block; min-width: 0; }
.date-field-wrap .date-field { width: 100%; padding-right: 30px; font-variant-numeric: tabular-nums; }
.date-field-wrap .date-field.bad { border-color: #e5484d; }
.date-field-btn { position: absolute; top: 50%; right: 5px; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 5px; color: #8c8fa1; background: transparent; cursor: pointer; }
.date-field-btn:hover { color: var(--purple); background: rgba(104,87,223,.08); }
.date-field-picker { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
.date-filter .date-field-wrap { width: 128px; }
.cal-dt .date-field-wrap { flex: 1; }
@media (max-width: 760px) { .date-filter .date-field-wrap { width: 100%; } }
