/* Fly Tour CRM — öz serverimizdə saxlanılan şriftlər (CSP: yalnız 'self'). Inter və Montserrat — SIL Open Font License 1.1. */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/inter-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/inter-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('fonts/montserrat-cyrillic-ext.woff2') format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('fonts/montserrat-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('fonts/montserrat-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('fonts/montserrat-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Fly Tour CRM — Minimalist + Premium. Xarici resurs yoxdur (CSP: yalnız 'self'). */
:root {
  --navy: #102A43; --blue: #1D4E89; --blue-hover: #163E6E; --bg: #F5F8FC; --surface: #FFFFFF;
  --line: #D9E2EC; --line-soft: #E9EFF5; --ink: #102A43; --muted: #5B7083; --faint: #829AB1;
  --ok: #1F7A4D; --ok-bg: #E6F4EC; --warn: #8A5A00; --warn-bg: #FFF4DC; --err: #B42318; --err-bg: #FDECEA;
  --idle: #5B7083; --idle-bg: #EEF2F6; --focus: #3B82C4;
  --rail: #102A43; --rail-ink: #C9D6E3; --rail-active: #1D4E89;
  --radius-s: 8px; --radius: 14px;
  --shadow: 0 1px 2px rgba(16,42,67,.05), 0 2px 8px rgba(16,42,67,.04);
  --wa: #128C4A; --wa-hover: #0E7A40; --wa-bg: #E7F6EE;
  --font: "Segoe UI", "SF Pro Text", system-ui, -apple-system, Roboto, "Noto Sans", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E1B29; --surface: #13263A; --line: #24405C; --line-soft: #1B3249; --ink: #E4ECF4; --muted: #9DB1C6; --faint: #6E879F;
  --blue: #5B9BDB; --blue-hover: #7DB2E6; --ok: #5CC28C; --ok-bg: #133526; --warn: #F0C060; --warn-bg: #3A2E10;
  --err: #F2877B; --err-bg: #3D1A17; --idle: #9DB1C6; --idle-bg: #1B3249; --rail: #0A1520; --rail-active: #1D4E89; --avatar-ink: #E4ECF4;
  --shadow: none; --wa: #3DBE78; --wa-hover: #5CD08F; --wa-bg: #133526;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1B29; --surface: #13263A; --line: #24405C; --line-soft: #1B3249; --ink: #E4ECF4; --muted: #9DB1C6; --faint: #6E879F;
    --blue: #5B9BDB; --blue-hover: #7DB2E6; --ok: #5CC28C; --ok-bg: #133526; --warn: #F0C060; --warn-bg: #3A2E10;
    --err: #F2877B; --err-bg: #3D1A17; --idle: #9DB1C6; --idle-bg: #1B3249; --rail: #0A1520; --rail-active: #1D4E89; --avatar-ink: #E4ECF4;
    --shadow: none; --wa: #3DBE78; --wa-hover: #5CD08F; --wa-bg: #133526;
    color-scheme: dark;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 var(--font); color: var(--ink); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
h1 { font-size: 1.5rem; line-height: 1.25; margin: 0; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 .75rem; font-weight: 650; }
p { margin: 0 0 .75rem; }
.num { font-variant-numeric: tabular-nums; }
td.num, .e164 { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Qabıq ---------- */
.shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: linear-gradient(to right, var(--rail) 236px, var(--bg) 236px); }
.rail { background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; padding: 20px 14px; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 650; padding: 4px 8px 22px; }
.brand-mark { width: 34px; height: 34px; border-radius: 8px; background: var(--blue); display: grid; place-items: center; font-size: .85rem; letter-spacing: .02em;  color: #fff; }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail nav a { color: var(--rail-ink); padding: 9px 10px; border-radius: var(--radius-s); display: flex; gap: 10px; align-items: center; }
.rail nav a:hover { background: rgba(255,255,255,.06); text-decoration: none; color: #fff; }
.rail nav a[aria-current="page"] { background: var(--rail-active); color: #fff; }
.rail nav svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.rail-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; font-size: .85rem; }
.rail-foot .who { color: #fff; font-weight: 600; }
.rail-foot .role { color: var(--rail-ink); opacity: .8; }
.rail-actions { display: grid; gap: 6px; margin-top: 10px; }
.rail-actions form { margin: 0; }
.rail-actions .rail-btn { width: 100%; }
.rail-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: transparent; color: var(--rail-ink); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-s); padding: 7px 8px; font: inherit; cursor: pointer; }
.rail-btn:focus-visible, .theme-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Görünüş rejimi düyməsi: açıq rejimdə ay + "Tünd rejimə keç", tünd rejimdə günəş + "Açıq rejimə keç" */
.theme-toggle { display: inline-flex; align-items: center; gap: 8px; }
.theme-toggle .theme-icon { flex: none; }
.theme-when-dark { display: none; }
:root[data-theme="dark"] .theme-when-dark { display: inline; }
:root[data-theme="dark"] .theme-when-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-when-dark { display: inline; }
  :root:not([data-theme="light"]) .theme-when-light { display: none; }
}
.auth-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rail-btn:hover { color: #fff; border-color: rgba(255,255,255,.4); }

.main { min-width: 0; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 22px 32px 6px; flex-wrap: wrap; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.topbar .menu-toggle { display: none; }
.content { padding: 14px 32px 48px; max-width: 1280px; }

/* ---------- Komponentlər ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.panel + .panel, .stack > * + * { margin-top: 16px; }
.grid-2 > .panel + .panel { margin-top: 0; }
.metrics + .grid-2, .metrics + .panel, .grid-2 + .panel, .grid-2 + .grid-2, .panel + .grid-2 { margin-top: 16px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: var(--radius-s); padding: 8px 14px; font: inherit; font-weight: 550; cursor: pointer; line-height: 1.2; }
.btn:hover { border-color: var(--faint); text-decoration: none; }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
:root[data-theme="dark"] .btn-primary { color: #0E1B29; }
.btn-danger { color: var(--err); }
.btn-sm { padding: 5px 10px; font-size: .85rem; }
.btn-link { border: 0; background: none; color: var(--blue); padding: 0; font: inherit; cursor: pointer; }
.btn svg { width: 16px; height: 16px; }

label { display: block; font-weight: 550; font-size: .9rem; margin-bottom: 4px; }
.field { margin-bottom: 14px; }
.field .hint, .picker-search .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.field .error { font-size: .85rem; color: var(--err); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=datetime-local], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 8px 10px; min-height: 38px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59,130,196,.2); }
.is-invalid { border-color: var(--err) !important; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 3px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.form-actions { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 14px; }
.toolbar .grow { flex: 1 1 260px; }
.toolbar .field { margin: 0; }
.toolbar .field:not(.grow) select { max-width: 200px; }

.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { font-size: .82rem; font-weight: 600; color: var(--muted); background: var(--surface); position: sticky; top: 0; }
/* FT4-03: əməkdaş cədvəli — iki sətirli başlıq (qrup başlıqları), yapışqan deyil */
.emp-table thead th { position: static; }
.emp-table .col-groups th { text-align: center; color: var(--ink); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line-soft); }
.emp-table .col-groups th:first-child { text-align: left; border-left: 0; vertical-align: bottom; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--bg); }
td .name { font-weight: 600; color: var(--ink); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--idle-bg); color: var(--avatar-ink, var(--navy)); display: inline-grid; place-items: center; font-size: .78rem; font-weight: 650; flex: none; }
:root[data-theme="dark"] .avatar { color: var(--ink); }
.person { display: flex; gap: 10px; align-items: center; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .78rem; font-weight: 600; background: var(--idle-bg); color: var(--idle); white-space: nowrap; }
.badge.wrap { white-space: normal; text-align: center; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-err { background: var(--err-bg); color: var(--err); }
.badge-blue { background: rgba(29,78,137,.1); color: var(--blue); }

.alert { border-radius: var(--radius-s); padding: 11px 14px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(31,122,77,.25); }
.alert-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(183,121,31,.3); }
.alert-err { background: var(--err-bg); color: var(--err); border-color: rgba(180,35,24,.25); }
.alert-info { background: var(--idle-bg); color: var(--ink); border-color: var(--line); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 14px; margin: 0; }
.kv dt { color: var(--muted); font-size: .88rem; }
.kv dd { margin: 0; }

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain > li { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.list-plain > li:last-child { border-bottom: 0; }

/* ---------- İmza elementi: kontakt kartı "minmə talonu" kimi ---------- */
.pass { display: grid; grid-template-columns: 1fr 290px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.pass-main { padding: 22px 24px; }
.pass-kind { color: var(--muted); font-size: .88rem; display: flex; gap: 10px; align-items: center; }
.pass-legs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 18px 0 0; }
.pass-legs dt { color: var(--muted); font-size: .8rem; }
.pass-legs dd { margin: 2px 0 0; font-weight: 600; font-size: 1.02rem; }
.pass-stub { position: relative; background: var(--navy); color: #E4ECF4; padding: 22px 20px; display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  border-left: 2px dashed rgba(255,255,255,.35); }
.pass-stub .phone { font-size: 1.15rem; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.pass-stub .stub-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pass-stub .stub-actions .btn { white-space: nowrap; }
.pass-stub .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.pass-stub .btn:hover { border-color: #fff; }
.pass-stub small { color: #9DB1C6; }

.phone-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.phone-row .e164 { font-weight: 600; font-variant-numeric: tabular-nums; }
.inline-form { display: inline; }
details > summary { cursor: pointer; color: var(--blue); font-weight: 550; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details[open] > summary { margin-bottom: 10px; }

.pagination { display: flex; gap: 4px; justify-content: space-between; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.pagination .pages { display: flex; gap: 4px; }
.pagination a, .pagination span.cur { padding: 6px 11px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface); }
.pagination span.cur { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ---------- Giriş ekranları ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { color: var(--ink); padding: 0 0 18px; }
.auth-card .panel { padding: 26px; }
.auth-card .panel > h1 { margin-bottom: 18px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: .04em; }
.codes li { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px; text-align: center; list-style: none; }
.qr { display: block; width: 220px; height: 220px; background: #fff; padding: 8px; border-radius: var(--radius-s); margin: 8px 0 12px; }
.secret { font-weight: 600; letter-spacing: .08em; word-break: break-all; }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: var(--bg); }
  .rail { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 30; transform: translateX(-100%); transition: transform .2s ease; }
  .rail.open { transform: none; }
  .topbar .menu-toggle { display: inline-flex; }
  .topbar { padding: 14px 16px 4px; }
  .content { padding: 10px 16px 40px; }
  .grid-2 { grid-template-columns: 1fr; }
  .pass { grid-template-columns: 1fr; }
  .pass-stub { border-left: 0; border-top: 2px dashed rgba(255,255,255,.35); }
  .pass-stub::before, .pass-stub::after { display: none; }
  .pass-legs { grid-template-columns: 1fr 1fr; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .hide-sm { display: none; }
  th, td { padding: 9px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .rail, .topbar .actions, form { display: none !important; } .shell { display: block; } }
/* Şirkətə əlaqəli şəxs seçicisi */
.picker { margin-top: 12px; }
.picker-search { margin: 10px 0 12px; }
.picker-search label { display: block; font-weight: 600; margin-bottom: 4px; }
.picker-row { display: flex; gap: 8px; }
.picker-row input { flex: 1; min-width: 0; }
.picker-pick fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.picker-results[aria-busy="true"] { opacity: .6; }
.picker-list { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-s); max-height: 320px; overflow-y: auto; }
.picker-list li + li { border-top: 1px solid var(--line-soft); }
.picker-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; cursor: pointer; }
.picker-item:hover { background: var(--bg); }
.picker-item input { margin: 0; flex: none; }
.picker-item:has(input:checked) { background: var(--idle-bg); }
.picker-item.is-disabled { cursor: default; opacity: .7; }
.picker-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.picker-text .name { font-weight: 600; overflow-wrap: anywhere; }
.nowrap { white-space: nowrap; }
.picker-msg { margin: 4px 0 10px; }
.inline-actions { display: flex; gap: 6px; flex-wrap: wrap; }
/* Mərhələ 3: import / export */
.stat-tiles { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stat-tiles li a { display: flex; flex-direction: column; min-width: 120px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: inherit; text-decoration: none; font-size: .85rem; background: var(--surface); }
.stat-tiles li a .num { font-size: 1.35rem; font-weight: 700; }
.stat-tiles li a[aria-current] { border-color: var(--blue); box-shadow: 0 0 0 2px rgba(29,78,137,.15); }
.stat-tiles li.tile-warn a, .stat-tiles li.tile-conflict_name a, .stat-tiles li.tile-confirm_fill a, .stat-tiles li.tile-multi_match a, .stat-tiles li.tile-file_conflict a, .stat-tiles li.tile-conflict_field a, .stat-tiles li.tile-stale a { border-color: var(--warn); }
.stat-tiles li.tile-invalid a { border-color: var(--err); }
.stat-tiles li.tile-new a .num, .stat-tiles li.tile-created a .num { color: var(--ok); }
progress { width: 100%; height: 14px; accent-color: var(--blue); }
table.mapping select { min-width: 140px; }
table.mapping td { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-err { color: var(--err); }
.shared-choice { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.shared-choice legend { padding: 0 4px; }
/* Mərhələ 4: dashboard, statistika, qruplar, etiketlər */
.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; min-width: 0; }
.metric .label { color: var(--muted); font-size: .85rem; display: block; }
.metric .value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; display: block; }
.metric .sub { color: var(--muted); font-size: .8rem; display: block; margin-top: 2px; }
.metric.ok .value { color: var(--ok); } .metric.err .value { color: var(--err); } .metric.warn .value { color: var(--warn); }
.split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--idle-bg); margin: 8px 0 4px; }
.split span { display: block; height: 100%; min-width: 0; }
.split .s-blue { background: var(--blue); } .split .s-ok { background: var(--ok); } .split .s-err { background: var(--err); } .split .s-idle { background: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .82rem; color: var(--muted); margin: 0; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }
.chart { width: 100%; overflow-x: auto; }
.chart svg { display: block; width: 100%; min-width: 520px; height: auto; }
.chart .bar { fill: var(--blue); } .chart .line { fill: none; stroke: var(--ok); stroke-width: 2; } .chart .dot { fill: var(--ok); }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); } .chart .grid { stroke: var(--line-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: .82rem; background: var(--surface); max-width: 100%; }
.chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.chip form { display: inline; margin: 0; }
.chip button { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 2px; font: inherit; line-height: 1; }
.chip button:hover { color: var(--err); }
.rule-list { margin: 0; padding-left: 18px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bulk-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.bulk-row select { max-width: 100%; }
details.panel > summary { cursor: pointer; font-weight: 650; }
details.panel[open] > summary { margin-bottom: 12px; }
.color-input { width: 56px; height: 36px; padding: 2px; }
@media (max-width: 640px) {
  .metric .value { font-size: 1.35rem; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.split-svg { display: block; margin: 8px 0 6px; border-radius: 999px; }
.seg-bg { fill: var(--idle-bg); } .seg.s-blue { fill: var(--blue); } .seg.s-ok { fill: var(--ok); } .seg.s-err { fill: var(--err); } .seg.s-idle { fill: var(--faint); } .seg.s-warn { fill: var(--warn); }
.dot-none { fill: var(--faint); }

/* Mərhələ 5: təhlükəli əməliyyat paneli, nöqtəli siyahı */
.panel-danger { border-color: rgba(180,35,24,.35); }
.list-bullets { margin: 6px 0 12px; padding-left: 20px; }
.list-bullets li { margin: 4px 0; }
.alert-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.alert-list .alert { margin: 0; }
code.receipt { display: block; word-break: break-all; font-size: .75rem; background: var(--idle-bg); padding: 6px 8px; border-radius: var(--radius-s); }
.meta-cell { max-width: 320px; word-break: break-word; }

/* Mərhələ 5 (PWA): toxunma ekranında və telefonda düymələr barmaqla rahat basılır (≥ 44 px — Apple HIG / WCAG 2.5.5) */
@media (pointer: coarse), (max-width: 640px) {
  .btn, .btn-sm { min-height: 44px; justify-content: center; }
  .btn-sm { padding: 8px 12px; }
}

/* =====================================================================
   Dizayn yenilənməsi (1.0.0-rc.4): sadə, telefonda rahat, tez əlaqə.
   Bütün əvvəlki sinif adları saxlanılıb — yalnız görünüş dəyişir.
   ===================================================================== */
body { font-size: 15.5px; }
.panel, .metric, .table-wrap, .pass { box-shadow: var(--shadow); }
.panel { padding: 22px; }
h2 { font-size: 1.08rem; }

/* Menyu bölmələri */
.rail nav .nav-label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rail-ink); opacity: .55; padding: 14px 10px 4px; }
.rail nav .nav-label:first-child { padding-top: 0; }
.rail nav a { padding: 8px 10px; }
.rail { overflow-y: auto; }

/* Düymələr */
.btn { border-radius: 10px; padding: 9px 16px; transition: background-color .15s, border-color .15s; }
.btn-sm { border-radius: 8px; }
.btn-wa { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); border-color: var(--wa-hover); }
:root[data-theme="dark"] .btn-wa { color: #0E1B29; }
.btn-call { background: #fff; color: var(--navy); border-color: #fff; }
.pass-stub .btn-wa { background: var(--wa); border-color: var(--wa); }
.pass-stub .btn-call { background: #fff; color: var(--navy); border-color: #fff; }
.pass-stub .btn-call:hover { background: #E4ECF4; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); background: var(--surface); }
.icon-btn:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.icon-wa { color: var(--wa); }
.icon-btn.icon-wa:hover { background: var(--wa-bg); border-color: var(--wa); }
.row-actions { white-space: nowrap; text-align: right; }
.row-actions .icon-btn + .icon-btn { margin-left: 6px; }

/* Panel: salam, axtarış, tez keçidlər */
.quick { background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.quick .quick-hello { color: #fff; font-size: 1.2rem; margin-bottom: 14px; }
.quick-search { display: flex; gap: 8px; max-width: 680px; }
.quick-search input { flex: 1; min-width: 0; min-height: 46px; border-color: transparent; font-size: 1rem; }
.quick-search .btn-primary { background: #fff; color: var(--navy); border-color: #fff; min-height: 46px; }
.quick-search .btn-primary:hover { background: #E4ECF4; }
.quick-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.quick-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.12); color: #fff; font-weight: 550; font-size: .92rem; }
.quick-link:hover { background: rgba(255,255,255,.22); text-decoration: none; }
.quick-link svg { width: 18px; height: 18px; flex: none; }
:root[data-theme="dark"] .quick { background: linear-gradient(135deg, #12304D, #183F66); }
:root[data-theme="dark"] .quick-search .btn-primary { color: #0E1B29; }
.metrics { margin-top: 4px; }

/* Müştəri siyahısı: axtarış + əsas filtrlər + «daha çox» */
.filters { margin-bottom: 14px; }
.filters .toolbar { margin-bottom: 10px; }
.toolbar-search input[type=search] { min-height: 46px; font-size: 1rem; }
.toolbar-search .btn { min-height: 46px; }
.toolbar-quick { align-items: end; }
.more-filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.more-filters > summary { font-size: .92rem; display: flex; align-items: center; gap: 8px; }
.more-filters > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.more-filters[open] > summary::before { transform: rotate(45deg); }
.more-filters .toolbar { margin: 0; }
input[type=date] { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 7px 10px; min-height: 38px; }

/* Müştəri kartı: qeydlər — zaman xətti */
.note-add { margin-bottom: 14px; }
.note-add > summary { color: var(--blue); }
.note-add[open] > summary { margin-bottom: 12px; }
.timeline > li { position: relative; padding-left: 18px; }
.timeline > li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.timeline > li[data-channel="whatsapp"]::before { background: var(--wa); }
.timeline > li[data-channel="call"]::before { background: var(--blue); }
.timeline > li[data-channel="meeting"]::before { background: var(--warn); }
.timeline > li p { margin: 4px 0 4px; }

/* Arxa fon (mobil menyu açıq olanda) və aşağı keçid paneli */
.rail-backdrop, .tabbar, .topbar-brand { display: none; }

@media (max-width: 900px) {
  body { font-size: 16px; }
  .rail { visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .rail.open { visibility: visible; box-shadow: 4px 0 24px rgba(0,0,0,.25); }
  .rail.open + .rail-backdrop { display: block; position: fixed; inset: 0; background: rgba(10,21,32,.45); z-index: 25; }
  .topbar { padding: 12px 16px 6px; gap: 10px; }
  .topbar-brand { display: inline-flex; }
  .topbar-brand .brand-mark { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 650; }
  .topbar h1 { font-size: 1.3rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar .actions { margin-left: 0; width: 100%; gap: 6px; }
  .topbar .actions .btn { min-height: 40px; padding: 8px 12px; font-size: .9rem; }
  .content { padding: 8px 14px calc(88px + env(safe-area-inset-bottom)); }
  .panel { padding: 18px 16px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(16,42,67,.06); }
  .tabbar > a, .tabbar > button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--muted);
    font: inherit; font-size: .7rem; font-weight: 600; background: none; border: 0; border-radius: 10px; cursor: pointer; min-height: 52px; justify-content: center; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar > a:hover { text-decoration: none; }
  .tabbar > a[aria-current="page"] { color: var(--blue); }
  .tabbar .tab-add svg { width: 30px; height: 30px; padding: 5px; border-radius: 50%; background: var(--blue); color: #fff; margin-top: -2px; }
  :root[data-theme="dark"] .tabbar .tab-add svg { color: #0E1B29; }

  /* Siyahı telefonda kart şəklində */
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody { display: block; }
  .table-cards tr { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "sel who act" "sel tel act"; align-items: center; column-gap: 10px;
    padding: 12px 12px; border-bottom: 1px solid var(--line-soft); }
  .table-cards tbody tr:last-child { border-bottom: 0; }
  .table-cards td { border: 0; padding: 0; }
  .table-cards td:first-child:has(input) { grid-area: sel; }
  .table-cards td:has(.person) { grid-area: who; }
  .table-cards td.num:not(.hide-sm) { grid-area: tel; padding-left: 42px; color: var(--muted); font-size: .9rem; }
  .table-cards td.row-actions { grid-area: act; display: flex; gap: 8px; }
  .table-cards td.row-actions .icon-btn { width: 44px; height: 44px; margin: 0; }
  .table-cards td .name { overflow-wrap: anywhere; }
  .table-cards td:not([class]):not(:has(.person)):not(:has(input)) { grid-column: 2; padding: 4px 0 0 42px; }
  .table-cards tr:not(:has(input[data-select-item])) { grid-template-columns: 1fr auto; grid-template-areas: "who act" "tel act"; }
  .table-cards tr:not(:has(input[data-select-item])) td:not([class]):not(:has(.person)) { grid-column: 1; }

  .quick { padding: 18px 16px; }
  .quick-search .btn { padding: 9px 14px; }
  .toolbar-quick .field { flex: 1 1 140px; }
  .toolbar-quick .field select, .toolbar .field:not(.grow) select { max-width: none; }
  .more-filters .toolbar .field { flex: 1 1 140px; }
  .more-filters .toolbar input[type=date] { width: 100%; }
  .pass-stub .stub-actions .btn { flex: 1; }
  .phone-row .form-actions .btn { flex: 1 1 auto; }
}
details[data-bulk-filtered] { padding: 12px 16px; margin-bottom: 12px; }
details[data-bulk-filtered] > summary { font-size: .92rem; font-weight: 600; }

/* ---------- Mərhələ 7: şablonlar, kampaniyalar, ad günləri ---------- */
.wa-bubble { background: #DCF8C6; color: #111B21; border-radius: 12px 12px 12px 4px; padding: 12px 14px; margin: 8px 0 14px; font-size: .95rem; line-height: 1.45; max-width: 520px; box-shadow: 0 1px 1px rgba(0,0,0,.06); overflow-wrap: anywhere; }
:root[data-theme="dark"] .wa-bubble { background: #005C4B; color: #E9EDEF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wa-bubble { background: #005C4B; color: #E9EDEF; } }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.template-grid .panel + .panel { margin-top: 0; }
.template-card h2 { margin: 0; }
.template-card.is-inactive { opacity: .65; }
.send-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.birthday-panel .send-list { border: 0; box-shadow: none; }
.send-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.birthday-panel .send-item { padding: 10px 0; }
.send-item:last-child { border-bottom: 0; }
.send-item .person { min-width: 0; color: var(--ink); }
.send-item .person:hover { text-decoration: none; }
.send-item .person > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.send-item[data-state="sent"], .send-item[data-state="replied"] { background: var(--ok-bg); }
.send-item[data-state="skipped"] { background: var(--warn-bg); }
.send-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.send-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.outreach-actions { display: grid; gap: 10px; }
.outreach-actions .btn-wa { min-width: 170px; justify-content: center; }
.seg { display: flex; gap: 4px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; }
.seg a { padding: 7px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: .9rem; }
.seg a:hover { text-decoration: none; color: var(--ink); background: var(--bg); }
.seg a[aria-current="page"] { background: var(--blue); color: #fff; }
:root[data-theme="dark"] .seg a[aria-current="page"] { color: #0E1B29; }
.seg a .num { opacity: .75; margin-left: 4px; }
.metrics-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 > * { min-width: 0; }
progress.progress-line { width: 120px; height: 8px; vertical-align: middle; margin-right: 6px; accent-color: var(--wa); }
.birthday-panel { border-left: 4px solid #E8A33D; }
@media (max-width: 900px) {
  .metrics-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .send-item { padding: 12px; }
  .send-actions, .send-row { width: 100%; }
  .send-row .btn-wa { flex: 1; justify-content: center; }
  .birthday-panel .send-actions { width: auto; }
  .birthday-panel .send-row { width: auto; }
  .seg { overflow-x: auto; flex-wrap: nowrap; }
  .seg a { flex: none; }
}

/* =====================================================================
   1.0.0-rc.6 — FlyBeds rəngləri və «Səyahət ruhu» üslubu (seçilmiş dizayn A).
   Rənglər flybeds.az ilə eynidir; şriftlər: Montserrat (başlıqlar), Inter (mətn).
   Sinif adları dəyişməyib — yalnız görünüş.
   ===================================================================== */
:root {
  --navy: #17324A; --blue: #127F8E; --blue-hover: #1F5F7A; --turq: #1AA6B7; --sun: #F2D43D; --sun-bg: #FBF3C4;
  --bg: #F2FAFA; --surface: #FFFFFF; --line: #DCEBEC; --line-soft: #EAF4F4; --ink: #17324A; --ink2: #34506A; --muted: #557080; --faint: #7E98A6;
  --ok: #1C6B47; --ok-bg: #E3F3EA; --warn: #7A4B00; --warn-bg: #FDF1D6; --err: #8A2E12; --err-bg: #FDECE6; --idle: #557080; --idle-bg: #EAF4F4; --focus: #1AA6B7;
  --rail: #FFFFFF; --rail-ink: #34506A; --rail-active: #17324A; --rail-hover: #EAF4F4; --rail-line: #DCEBEC; --rail-brand: #17324A;
  --radius-s: 12px; --radius: 20px; --pill: 999px;
  --shadow: 0 1px 2px rgba(23,50,74,.05), 0 4px 14px rgba(23,50,74,.04);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Montserrat', 'Inter', system-ui, sans-serif;
}
:root[data-theme="dark"] {
  --navy: #0A1822; --blue: #4FD1DC; --blue-hover: #8ADCD9; --bg: #0C1E2B; --surface: #12293A; --line: #1F3D52; --line-soft: #183447;
  --ink: #E4F2F4; --ink2: #C2D8DE; --muted: #9DB8C4; --faint: #6E8A98; --ok: #6FD3A0; --ok-bg: #15382A; --warn: #F2D43D; --warn-bg: #3A3210;
  --err: #F2A08A; --err-bg: #3D1F17; --idle: #9DB8C4; --idle-bg: #183447; --sun-bg: #3A3210;
  --rail: #0A1822; --rail-ink: #C2D8DE; --rail-active: #127F8E; --rail-hover: #12293A; --rail-line: #1F3D52; --rail-brand: #E4F2F4; --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy: #0A1822; --blue: #4FD1DC; --blue-hover: #8ADCD9; --bg: #0C1E2B; --surface: #12293A; --line: #1F3D52; --line-soft: #183447;
    --ink: #E4F2F4; --ink2: #C2D8DE; --muted: #9DB8C4; --faint: #6E8A98; --ok: #6FD3A0; --ok-bg: #15382A; --warn: #F2D43D; --warn-bg: #3A3210;
    --err: #F2A08A; --err-bg: #3D1F17; --idle: #9DB8C4; --idle-bg: #183447; --sun-bg: #3A3210;
    --rail: #0A1822; --rail-ink: #C2D8DE; --rail-active: #127F8E; --rail-hover: #12293A; --rail-line: #1F3D52; --rail-brand: #E4F2F4; --shadow: none;
  }
}
body { font-family: var(--font); }
h1, h2, .brand, .metric .value, .quick .quick-hello { font-family: var(--font-head); letter-spacing: -0.01em; }
h1 { font-weight: 800; }
h2 { font-weight: 700; }

/* Menyu: açıq fon, aktiv bənd tünd */
.shell { background: linear-gradient(to right, var(--rail) 236px, var(--bg) 236px); }
.rail { border-right: 1px solid var(--rail-line); }
.brand { color: var(--rail-brand); }
.brand-mark { background: var(--blue); border-radius: 12px; }
:root[data-theme="dark"] .brand-mark { color: #0A1822; }
.rail nav a { color: var(--rail-ink); font-weight: 600; border-radius: 12px; padding: 10px 12px; }
.rail nav a:hover { background: var(--rail-hover); color: var(--ink); }
.rail nav a[aria-current="page"] { background: var(--rail-active); color: #FFFFFF; }
.rail nav a[aria-current="page"] svg { opacity: 1; }
.rail nav .nav-label { color: var(--muted); opacity: 1; }
.rail-foot { border-top-color: var(--rail-line); }
.rail-foot .who { color: var(--ink); }
.rail-foot .role { color: var(--muted); }
.rail-btn { color: var(--ink2); border-color: var(--line); border-radius: 12px; }
.rail-btn:hover { color: var(--ink); border-color: var(--blue); }

/* Düymələr, sahələr, kartlar */
.btn { border-radius: var(--pill); padding: 10px 18px; font-weight: 700; }
.btn-sm { border-radius: var(--pill); padding: 6px 14px; }
.btn-primary { background: var(--blue); border-color: var(--blue); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-link { border-radius: 0; padding: 0; }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=tel], input[type=datetime-local], input[type=date], input[type=time], input[type=number], select, textarea { border-radius: 12px; border-color: var(--line); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(26,166,183,.22); }
.panel, .metric, .table-wrap, .pass, .more-filters, .send-list { border-radius: var(--radius); border-color: var(--line); }
.badge-blue { background: var(--line-soft); color: var(--blue-hover); }
:root[data-theme="dark"] .badge-blue { color: var(--blue); }
.pagination span.cur { background: var(--blue); border-color: var(--blue); }
.pagination a, .pagination span.cur { border-radius: 10px; }
.seg a[aria-current="page"], .tabbar .tab-add svg { background: var(--blue); }

/* Panel: salamlama başlığı, axtarış və tez keçidlər (qutu yox, açıq fon üzərində) */
.quick { background: none; color: var(--ink); padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 12px 24px; align-items: end; }
:root[data-theme="dark"] .quick { background: none; }
.quick .quick-date { grid-column: 1; font-size: .92rem; color: var(--muted); font-weight: 500; margin: 0; }
.quick .quick-hello { grid-column: 1; color: var(--ink); font-size: 2rem; font-weight: 800; margin: 0; line-height: 1.15; }
.quick-search { grid-column: 2; grid-row: 1 / span 2; max-width: none; }
.quick-search input { min-height: 52px; border: 1px solid var(--line); border-radius: var(--pill); padding: 0 20px; background: var(--surface); }
.quick-search .btn-primary { min-height: 52px; background: var(--blue); color: #FFFFFF; border-color: var(--blue); }
:root[data-theme="dark"] .quick-search .btn-primary { color: #0A1822; }
.quick-links { grid-column: 1 / -1; margin-top: 4px; }
.quick-link { background: var(--surface); color: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.quick-link:hover { background: var(--line-soft); border-color: var(--blue); }
.quick-link svg { color: var(--blue); }

.today-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 16px; padding: 0; list-style: none; }
.tile { border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
a.tile:hover { text-decoration: none; border-color: var(--blue); }
.tile .tile-label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.tile .tile-value { font-family: var(--font-head); font-size: 2.2rem; font-weight: 800; line-height: 1.05; }
.tile .tile-sub { font-size: .88rem; color: var(--muted); }
.tile-teal { background: var(--blue); border-color: var(--blue); color: #FFFFFF; }
.tile-deep { background: #1F5F7A; border-color: #1F5F7A; color: #FFFFFF; }
.tile-teal .tile-label, .tile-teal .tile-sub, .tile-deep .tile-label, .tile-deep .tile-sub { color: rgba(255,255,255,.88); }
:root[data-theme="dark"] .tile-teal { color: #0A1822; }
:root[data-theme="dark"] .tile-teal .tile-label, :root[data-theme="dark"] .tile-teal .tile-sub { color: rgba(10,24,34,.8); }
.tile progress { width: 100%; height: 8px; accent-color: #FFFFFF; }
.today-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; align-items: start; }
.today-cols > .panel + .panel { margin-top: 0; }
.birthday-panel { border-left: 1px solid var(--line); }
.lapsed-panel .send-item { padding: 12px 0; }
.lapsed-panel .send-list, .birthday-panel .send-list { border: 0; box-shadow: none; background: none; }
.lapsed-panel .ago { font-size: .78rem; font-weight: 700; color: var(--warn); background: var(--warn-bg); padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; }

/* Müştəri kartı: başlıq kartı — FlyBeds firuzəyisi */
.pass { border-radius: 24px; }
.pass-stub { background: var(--blue); border-left-color: rgba(255,255,255,.4); }
.pass-stub small { color: rgba(255,255,255,.85); }
:root[data-theme="dark"] .pass-stub { background: #1F5F7A; }
.pass .avatar { width: 52px; height: 52px; font-size: 1.05rem; background: var(--sun-bg); }

/* Kampaniya göstəriciləri — rəngli kartlar */
.metrics-4 .metric:nth-child(2) { background: #1F5F7A; border-color: #1F5F7A; }
.metrics-4 .metric:nth-child(3) { background: var(--blue); border-color: var(--blue); }
.metrics-4 .metric:nth-child(2) .label, .metrics-4 .metric:nth-child(2) .value, .metrics-4 .metric:nth-child(3) .label, .metrics-4 .metric:nth-child(3) .value { color: #FFFFFF; }

/* Müştəri siyahısı kompüterdə kartlar şəbəkəsi (telefonda kompakt sətirlər qalır) */
@media (min-width: 901px) {
  .table-wrap:has(> .table-cards) { background: none; border: 0; box-shadow: none; overflow: visible; }
  .table-cards thead { display: none; }
  .table-cards, .table-cards tbody { display: block; }
  .table-cards tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
  .table-cards tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "who who sel" "tel tel tel" "type owner owner" "act act act";
    gap: 8px 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
  .table-cards tr:hover { background: var(--surface); border-color: var(--blue); }
  .table-cards td { border: 0; padding: 0; min-width: 0; }
  .table-cards td:first-child:has(input) { grid-area: sel; justify-self: end; align-self: start; }
  .table-cards td:has(.person) { grid-area: who; }
  .table-cards td.num:not(.hide-sm) { grid-area: tel; color: var(--muted); font-size: .92rem; }
  .table-cards td:has(> .badge), .table-cards td:not([class]):not(:has(.person)):not(:has(input)) { grid-area: type; }
  .table-cards td.hide-sm:not(.num):not(:has(.badge)) { grid-area: owner; font-size: .85rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .table-cards td.hide-sm.num { display: none; }
  .table-cards td.row-actions { grid-area: act; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
  .table-cards td.row-actions .icon-btn { width: 100%; height: 42px; border-radius: 12px; margin: 0; background: var(--line-soft); border-color: transparent; color: var(--ink); }
  .table-cards td.row-actions .icon-btn.icon-wa { background: #128C4A; color: #FFFFFF; }
  .table-cards td.row-actions .icon-btn.icon-wa:hover { background: #0E7A40; }
  .table-cards .person { gap: 12px; }
  .table-cards .avatar { width: 48px; height: 48px; font-size: .95rem; background: var(--line-soft); }
  .table-cards td .name { font-size: 1.02rem; }
}

@media (max-width: 900px) {
  .shell { background: var(--bg); }
  .quick { grid-template-columns: 1fr; }
  .quick-search { grid-column: 1; grid-row: auto; }
  .quick .quick-hello { font-size: 1.5rem; }
  .today-tiles, .today-cols { grid-template-columns: 1fr; }
  .tile .tile-value { font-size: 1.8rem; }
  .topbar-brand .brand-mark { background: var(--blue); }
  .quick-links { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .quick-links::-webkit-scrollbar { display: none; }
  .quick-link { flex: none; }
}
@media print { .tabbar, .rail-backdrop, .quick { display: none !important; } }

/* =====================================================================
   1.0.0-rc.7 — Tapşırıqlar və xatırlatmalar (Mərhələ 8).
   ===================================================================== */
.today-tiles { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile-sun { background: var(--sun-bg); border-color: transparent; }
a.tile-sun:hover { border-color: var(--sun); }

.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: var(--pill); background: var(--sun); color: #17324A;
  font-size: .78rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font); }
.tabbar > a { position: relative; }
.tabbar > a .nav-count { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; padding: 0 5px; font-size: .7rem; }

.task-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 16px 0 12px; }
.task-who select { min-width: 200px; }
.task-new { margin-top: 12px; }
.task-new > summary, .task-add > summary { list-style: none; display: inline-flex; cursor: pointer; }
.task-new > summary::-webkit-details-marker, .task-add > summary::-webkit-details-marker { display: none; }
.task-new[open] > summary, .task-add[open] > summary { margin-bottom: 14px; }
.task-form { display: flex; flex-direction: column; gap: 4px; }

.task-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.task-item { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.task-item:last-child { border-bottom: 0; }
.task-check { margin: 0; flex: none; }
.check-btn { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); color: transparent;
  display: grid; place-items: center; cursor: pointer; padding: 0; flex: none; transition: background .15s, color .15s, border-color .15s; }
.check-btn svg { width: 18px; height: 18px; }
button.check-btn:hover, button.check-btn:focus-visible { border-color: var(--ok); color: var(--ok); background: var(--ok-bg); }
.task-item[data-when="overdue"] button.check-btn { border-color: var(--err); }
.check-btn.is-done { background: var(--ok); border-color: var(--ok); color: #fff; cursor: default; }
.check-btn.is-cancelled { border-style: dashed; cursor: default; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-weight: 700; overflow-wrap: anywhere; }
.task-item:not([data-when="closed"]) .task-title { font-size: 1.02rem; }
.task-item[data-when="closed"] .task-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--faint); }
.task-meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; margin-top: 3px; }
.task-details { margin: 6px 0 0; color: var(--ink2); overflow-wrap: anywhere; }
.when { font-weight: 700; font-size: .78rem; padding: 2px 9px; border-radius: var(--pill); background: var(--idle-bg); color: var(--idle); }
.when-overdue { background: var(--err-bg); color: var(--err); }
.when-today { background: var(--sun-bg); color: var(--warn); }
.when-tomorrow { background: var(--line-soft); color: var(--blue-hover); }
:root[data-theme="dark"] .when-tomorrow { color: var(--blue); }
.task-more { margin-top: 6px; }
.task-more > summary { color: var(--blue-hover); cursor: pointer; font-weight: 600; }
.task-inline { margin: 10px 0 0; padding: 12px; border-radius: var(--radius-s); background: var(--bg); }
.task-inline .field { margin-bottom: 8px; }
.quick-dates { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 10px; }
.chip-btn { cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; color: var(--ink2); padding: 6px 12px; }
.chip-btn:hover { border-color: var(--blue); color: var(--blue-hover); }
.chip-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
:root[data-theme="dark"] .chip-btn[aria-pressed="true"] { color: #0E1B29; }
.task-panel .section-title { align-items: center; }
@media (max-width: 900px) {
  .task-toolbar { flex-direction: column; align-items: stretch; }
  .task-who select { width: 100%; }
  .check-btn { width: 34px; height: 34px; }
}

/* =====================================================================
   1.0.0-rc.8 — Satış axını (Mərhələ 9).
   ===================================================================== */
.deal-filters { justify-content: flex-start; }
.deal-filters .field { margin: 0; }
.deal-filters select { min-width: 200px; }
.deal-board { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 20px;
  scroll-snap-type: x proximity; }
.deal-col { border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-snap-align: start; background: var(--line-soft); }
.deal-col[data-col="offer"] { background: var(--sun-bg); }
.deal-col[data-col="payment"] { background: var(--warn-bg); }
.deal-col[data-col="won"] { background: var(--ok-bg); }
.deal-col[data-col="lost"] { background: var(--idle-bg); }
.deal-col-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px; }
.deal-col-head h2 { margin: 0; font-size: 1rem; }
.deal-count { font-size: .8rem; font-weight: 800; background: var(--surface); border-radius: var(--pill); padding: 2px 10px; }
.deal-col-sum { padding: 0 4px; color: var(--ink2); font-weight: 600; margin-top: -6px; }
.deal-empty { padding: 4px; }
.deal-card { background: var(--surface); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; box-shadow: var(--shadow);
  border: 1px solid transparent; min-width: 0; }
.deal-card:hover { border-color: var(--line); }
.deal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.deal-name { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.deal-src { font-size: .78rem; color: var(--muted); flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-title { font-size: .92rem; color: var(--ink2); overflow-wrap: anywhere; }
.deal-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 2px; }
.deal-amount { font-size: 1rem; }
.deal-age { font-size: .78rem; font-weight: 700; color: var(--muted); }
.deal-age.is-late { color: var(--err); }
.deal-reason { color: var(--muted); font-style: italic; }
.deal-actions { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 4px; }
.deal-actions .inline-form { margin: 0; }
.deal-more { flex-basis: 100%; }
.deal-more > summary { color: var(--blue-hover); cursor: pointer; font-weight: 600; }
:root[data-theme="dark"] .deal-more > summary { color: var(--blue); }
.deal-stack { display: flex; flex-direction: column; gap: 10px; }
.deal-panel .deal-card { background: var(--bg); box-shadow: none; }
.deal-who { margin: 0 0 14px; }
.deal-who .name { font-weight: 700; font-size: 1.1rem; }
@media (max-width: 900px) {
  .deal-board { grid-template-columns: repeat(6, 82%); margin-left: -16px; margin-right: -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }
  .deal-filters { flex-direction: row; flex-wrap: wrap; }
  .deal-filters .field { flex: 1 1 150px; }
  .deal-filters select { min-width: 0; width: 100%; }
  .deal-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .deal-summary .tile { padding: 12px; border-radius: 16px; gap: 2px; }
  .deal-summary .tile .tile-label { font-size: .74rem; }
  .deal-summary .tile .tile-value { font-size: 1.4rem; }
  .deal-summary .tile .tile-sub { font-size: .74rem; }
  .deal-summary .tile-sun .tile-sub { display: none; }
}

.deal-product { display: inline-block; font-size: .72rem; font-weight: 700; padding: 1px 8px; border-radius: var(--pill); background: var(--line-soft); color: var(--blue-hover); margin-right: 4px; vertical-align: 1px; }
:root[data-theme="dark"] .deal-product { color: var(--blue); }

/* Hədəflər */
.goal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.goal { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); min-width: 0; }
.goal[data-status="done"] { border-color: var(--ok); background: var(--ok-bg); }
.goal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.goal-kind { color: var(--muted); font-weight: 600; }
.goal-title { font-weight: 700; margin-top: 2px; }
.goal-status { font-size: .74rem; font-weight: 800; padding: 3px 10px; border-radius: var(--pill); white-space: nowrap; }
.goal-done { background: var(--ok); color: #fff; }
.goal-ahead { background: var(--ok-bg); color: var(--ok); }
.goal-close { background: var(--sun-bg); color: var(--warn); }
.goal-behind { background: var(--err-bg); color: var(--err); }
.goal-numbers { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.goal-value { font-family: var(--font-head); font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.goal-target { color: var(--muted); font-weight: 600; }
.goal-pct { margin-left: auto; font-weight: 800; font-size: 1.05rem; color: var(--blue-hover); }
:root[data-theme="dark"] .goal-pct { color: var(--blue); }
.goal-bar { position: relative; height: 12px; }
.goal-bar progress { display: block; width: 100%; height: 12px; border: 0; border-radius: var(--pill); overflow: hidden; background: var(--line-soft); appearance: none; -webkit-appearance: none; }
.goal-bar progress::-webkit-progress-bar { background: var(--line-soft); border-radius: var(--pill); }
.goal-bar progress::-webkit-progress-value { background: var(--blue); border-radius: var(--pill); }
.goal-bar progress::-moz-progress-bar { background: var(--blue); border-radius: var(--pill); }
.goal[data-status="behind"] .goal-bar progress::-webkit-progress-value { background: var(--err); }
.goal[data-status="behind"] .goal-bar progress::-moz-progress-bar { background: var(--err); }
.goal[data-status="done"] .goal-bar progress::-webkit-progress-value { background: var(--ok); }
.goal[data-status="done"] .goal-bar progress::-moz-progress-bar { background: var(--ok); }
/* gözlənilən nöqtə — nazik xətt kimi */
.goal-expected { position: absolute; inset: -3px 0 auto 0; width: 100%; height: 18px; background: none; border: 0; pointer-events: none; appearance: none; -webkit-appearance: none; opacity: .9; }
.goal-expected::-webkit-meter-bar { background: none; border: 0; }
.goal-expected::-webkit-meter-optimum-value, .goal-expected::-webkit-meter-suboptimum-value, .goal-expected::-webkit-meter-even-less-good-value { background: linear-gradient(to left, var(--ink) 0 2px, transparent 2px); }
.goal-expected::-moz-meter-bar { background: linear-gradient(to left, var(--ink) 0 2px, transparent 2px); }
.goal-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.goal-history { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.goal-hist { padding: 2px 8px; border-radius: var(--pill); background: var(--idle-bg); color: var(--idle); font-weight: 600; }
.goal-hist.is-done { background: var(--ok-bg); color: var(--ok); }
.goal-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.goal-actions .inline-form { margin: 0; }
.goal-person + .goal-person { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.goal-person h3 { margin: 0 0 10px; }
.goal-inactive { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; flex-wrap: wrap; }
.goal-form { max-width: 760px; }
.goal-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.goal-form legend { font-weight: 600; margin-bottom: 6px; }
.goal-form .check { margin-right: 18px; }

/* =====================================================================
   1.0.0-rc.9 — satış idxalı, doğum tarixi, potensial müştərilər (Mərhələ 10).
   ===================================================================== */
.si-map { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 16px; }
.si-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.si-row:last-child { border-bottom: 0; }
.si-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.si-tiles .tile-value { font-size: 1.5rem; }
.pot-tiles { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.pot-bars { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pot-bars li { display: grid; grid-template-columns: 120px 1fr 70px; gap: 10px; align-items: center; }
.pot-bars progress { width: 100%; height: 10px; border: 0; border-radius: var(--pill); overflow: hidden; background: var(--line-soft); appearance: none; -webkit-appearance: none; }
.pot-bars progress::-webkit-progress-bar { background: var(--line-soft); }
.pot-bars progress::-webkit-progress-value { background: var(--blue); }
.pot-bars progress::-moz-progress-bar { background: var(--blue); }
.pot-num { text-align: right; font-weight: 700; }
.pot-segs li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.pot-segs .inline-form { margin: 0; }

/* Avtomatik xatırlatmalar */
.auto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.auto-rule form { display: flex; flex-direction: column; gap: 8px; height: 100%; }
.auto-days input { max-width: 120px; }
.auto-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.switch input { width: 20px; height: 20px; accent-color: var(--blue); }
.auto-grid > .panel { margin: 0; }

/* rc.11: satış nəzarəti, menecerin iş paneli, SMM qəbulu, sorğu səhifəsi */
[hidden] { display: none !important; }
.deal-col[data-col="contacted"] { background: rgba(29,78,137,.07); }
.deal-ref { font-weight: 700; color: var(--ink2); margin-right: 4px; }
.deal-next { color: var(--muted); font-weight: 600; }
.deal-next.is-late, .is-late { color: var(--err); }
.deal-phones { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 8px 0; }
.deal-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 18px; margin: 14px 0; }
.deal-facts div { min-width: 0; }
.deal-facts dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.deal-facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.deal-stage-badge[data-stage="won"] { background: var(--ok-bg); color: var(--ok); }
.deal-stage-badge[data-stage="lost"] { background: var(--idle-bg); color: var(--idle); }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.task-row-mini { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line-soft); }
.task-row-mini:first-child { border-top: 0; }
.outcome-form { margin-top: 10px; }
.outcome-form .field { margin-bottom: 10px; }
.field-narrow { max-width: 140px; }
.work-tiles { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0; }
.work-tiles .tile { padding: 14px 16px; border-radius: 18px; }
.work-tiles .tile .tile-value { font-size: 1.8rem; }
.tile-alert { background: var(--err-bg); border-color: transparent; }
.tile-alert .tile-value { color: var(--err); }
.work-strip { margin-top: 16px; }
.work-list { gap: 0; }
.work-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.work-row:first-child { border-top: 0; }
.work-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 260px; }
.work-main .name { font-weight: 700; overflow-wrap: anywhere; }
.work-act { flex: 0 1 auto; }
.work-act > summary { list-style: none; cursor: pointer; }
.work-act > summary::-webkit-details-marker { display: none; }
.work-act[open] { flex-basis: 100%; }
.work-act[open] > .outcome-form { padding: 12px; border-radius: var(--radius-s); background: var(--bg); }
.sc-filter { flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.sc-filter .field { margin: 0; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.sc-tiles { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.sc-tiles .tile { padding: 16px; border-radius: 18px; }
.sc-tiles .tile .tile-value { font-size: 1.8rem; }
.bars li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) auto; gap: 10px; align-items: center; }
.bars meter { width: 100%; height: 12px; }
.bar-label { overflow-wrap: anywhere; }
.chip-radio { cursor: pointer; padding: 6px 12px; font-weight: 600; }
.chip-radio input { accent-color: var(--blue); }
.chip-radio:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.intake-routes { margin-top: 8px; gap: 2px; }
.summary-text { width: 100%; font-family: var(--font-mono, ui-monospace, monospace); font-size: .95rem; line-height: 1.5; }
.form-row-wrap { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
@media (max-width: 900px) {
  .bars li { grid-template-columns: minmax(0, 1fr) auto; }
  .bars meter { grid-column: 1 / -1; grid-row: 2; }
  .field-narrow { max-width: none; }
}
/* rc.11: 6 sütunlu lövhədə kart başlığı sıxılmasın */
.deal-board { grid-template-columns: repeat(6, minmax(210px, 1fr)); }
.deal-top { flex-wrap: wrap; }
.deal-name { overflow-wrap: break-word; flex: 1 1 auto; }
.deal-src { max-width: 100%; }
@media (max-width: 900px) { .deal-board { grid-template-columns: repeat(6, 82%); } }
/* rc.12: satış optimizasiyası */
.panel-note { border-left: 4px solid var(--warn); }
.deal-facts .span-2 { grid-column: 1 / -1; }
.sla-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.sla-badge { font-weight: 600; }
.sla-badge.is-late { background: var(--err-bg); color: var(--err); border-color: rgba(180,35,24,.25); }
.lost-check { display: grid; gap: 8px; }
.lost-check-group { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; margin: 0; }
.lost-q { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: center; padding: 3px 0; }
.lost-q-opts { display: inline-flex; gap: 12px; }
.quote-list { display: grid; gap: 10px; }
.quote-row { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; display: grid; gap: 4px; }
.quote-row[data-quote-status="accepted"] { border-color: rgba(31,122,77,.45); }
.quote-row[data-quote-status="rejected"], .quote-row[data-quote-status="expired"] { opacity: .8; }
.quote-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; }
.quote-form { display: grid; gap: 8px; margin-top: 8px; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.msg-chips .chip-btn.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.msg-actions, .match-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.repeat-form select { min-width: 0; max-width: 100%; }
@media print {
  .daily-report .tile { break-inside: avoid; }
  .topbar, .tabbar, .rail { display: none !important; }
}

/* 2026-12-04: demo sayt */
.demo-logins{margin-top:18px;padding-top:14px;border-top:1px dashed var(--line, #d6dde8)}
.demo-logins-title{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;opacity:.7;margin-bottom:8px}
.demo-login-btn{display:flex;flex-direction:column;align-items:flex-start;gap:2px;width:100%;margin:0 0 8px;padding:10px 12px;border:1px solid var(--line, #d6dde8);border-radius:10px;background:transparent;color:inherit;cursor:pointer;font:inherit;text-align:left}
.demo-login-btn:hover{border-color:#127F8E}
.demo-login-btn span{font-size:12px;opacity:.7}
.demo-ribbon{position:fixed;right:12px;bottom:12px;z-index:9999;background:#f59e0b;color:#111;font:600 12px/1 Inter,system-ui,sans-serif;padding:7px 10px;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.2);pointer-events:none}

@media (max-width:900px){.demo-ribbon{bottom:auto;top:6px;right:auto;left:50%;transform:translateX(-50%);font-size:10px;padding:4px 8px}}
