﻿/* ============================================================
   KATRE CRM — PANEL KABUĞU  (panel.css)
   Kenar menü, üst çubuk, giriş ekranı ve crm-ui.css üzerine
   eklenen bileşenler (kanban, çubuk grafik, sekme, zaman akışı,
   kalem tablosu, sayfalama).

   Renk dili crm-ui.css ile ORTAK: lacivert = yapı + eylem,
   mavi = "açık" durumu, yeşil/kırmızı/turuncu = durum.
   ============================================================ */

:root {
    --p-sidebar: 252px;
    --p-topbar: 60px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--c-bg, #f4f6fb);
    color: var(--c-ink, #1c2430);
    font-family: 'Red Hat Display', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ============================================================
   KABUK
   ============================================================ */
.p-shell { display: flex; min-height: 100vh; }

.p-main {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: var(--p-sidebar);
    display: flex;
    flex-direction: column;
    transition: margin-left .18s ease;
}

body.p-daralt .p-main { margin-left: 68px; }

/* ---- Kenar menü ---- */
.p-side {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: var(--p-sidebar);
    background: linear-gradient(180deg, #1a2740 0%, #22314b 100%);
    color: #cdd6e4;
    display: flex;
    flex-direction: column;
    z-index: 60;
    transition: width .18s ease;
    box-shadow: 2px 0 14px rgba(15, 22, 38, .16);
}

body.p-daralt .p-side { width: 68px; }

.p-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    height: var(--p-topbar);
    flex: none;
    padding: 0 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-decoration: none;
    color: #fff;
    overflow: hidden;
}

.p-logo .mark {
    flex: none;
    width: 32px; height: 32px;
    border-radius: 9px;
    background: linear-gradient(140deg, #4f78c4 0%, #2f4f8f 100%);
    display: grid; place-items: center;
    font-weight: 800; font-size: .95rem; letter-spacing: -.02em;
    box-shadow: 0 3px 10px rgba(0,0,0,.28);
}

.p-logo .txt { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap; }
.p-logo .txt small { display: block; font-weight: 600; font-size: .64rem; color: #8fa0bb; letter-spacing: .1em; text-transform: uppercase; }

body.p-daralt .p-logo .txt { display: none; }

.p-nav { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 12px 10px 24px; }
.p-nav::-webkit-scrollbar { width: 6px; }
.p-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 3px; }

.p-navlbl {
    font-size: .62rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
    color: #6f819f; padding: 14px 12px 6px;
}
body.p-daralt .p-navlbl { visibility: hidden; height: 18px; padding: 0; }

.p-item, .p-sublink {
    display: flex; align-items: center; gap: 11px;
    padding: 10px 12px; border-radius: 10px;
    color: #cdd6e4; text-decoration: none;
    font-size: .855rem; font-weight: 600;
    transition: background .13s, color .13s;
    white-space: nowrap;
}

.p-item .material-icons-outlined { font-size: 20px; flex: none; color: #93a4c0; transition: color .13s; }
.p-item:hover { background: rgba(255,255,255,.07); color: #fff; }
.p-item:hover .material-icons-outlined { color: #fff; }

.p-item.active { background: rgba(93,131,203,.22); color: #fff; box-shadow: inset 3px 0 0 #5d83cb; }
.p-item.active .material-icons-outlined { color: #7fa3e0; }

.p-item .lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.p-item .cev { font-size: 18px !important; color: #6f819f !important; transition: transform .18s; }
.p-item.acik .cev { transform: rotate(180deg); }

body.p-daralt .p-item .lbl,
body.p-daralt .p-item .cev,
body.p-daralt .p-item .p-badge { display: none; }
body.p-daralt .p-sub { display: none !important; }

.p-badge {
    flex: none; min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 999px; background: #c0392b; color: #fff;
    font-size: .66rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
}

/* Alt menü — açık grupta görünür */
.p-sub { display: none; margin: 2px 0 6px 12px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.1); }
.p-sub.acik { display: block; }

.p-sublink { padding: 8px 10px; font-size: .81rem; font-weight: 500; color: #a9b7cd; }
.p-sublink:hover { background: rgba(255,255,255,.06); color: #fff; }
.p-sublink.active { color: #fff; font-weight: 700; background: rgba(93,131,203,.18); }
.p-sublink .material-icons-outlined { font-size: 17px; color: #7d8faa; }
.p-sublink.active .material-icons-outlined { color: #7fa3e0; }

/* ---- Üst çubuk ---- */
.p-top {
    position: sticky; top: 0; z-index: 50;
    height: var(--p-topbar); flex: none;
    background: #fff;
    border-bottom: 1px solid var(--c-line, #e8ebf1);
    display: flex; align-items: center; gap: 14px;
    padding: 0 22px;
    box-shadow: 0 1px 3px rgba(20,28,45,.05);
}

.p-burger {
    border: 1px solid var(--c-line, #e8ebf1); background: #fff;
    width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
    display: grid; place-items: center; color: #47536a;
    transition: background .13s, border-color .13s;
}
.p-burger:hover { background: var(--c-soft, #f6f8fc); border-color: #c3cede; }

.p-topttl { font-weight: 800; font-size: .96rem; color: var(--c-navy, #1e2d47); letter-spacing: -.01em; }
.p-topttl small { display: block; font-weight: 500; font-size: .72rem; color: var(--c-muted, #697586); letter-spacing: 0; }

.p-topsag { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.p-iconbtn {
    position: relative; width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid var(--c-line, #e8ebf1); background: #fff;
    display: grid; place-items: center; color: #47536a; text-decoration: none;
    transition: background .13s, border-color .13s;
}
.p-iconbtn:hover { background: var(--c-soft, #f6f8fc); border-color: #c3cede; color: var(--c-navy, #1e2d47); }
.p-iconbtn .dot {
    position: absolute; top: -5px; right: -5px;
    min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #c0392b; color: #fff; font-size: .62rem; font-weight: 800;
    display: inline-flex; align-items: center; justify-content: center;
    border: 2px solid #fff;
}

.p-user { display: flex; align-items: center; gap: 9px; padding-left: 10px; border-left: 1px solid var(--c-line, #e8ebf1); }
.p-avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--c-navy-grad, linear-gradient(180deg,#1e2d47,#29394f));
    color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none;
}
.p-uinfo { line-height: 1.2; }
.p-uinfo b { display: block; font-size: .82rem; color: var(--c-ink, #1c2430); font-weight: 700; }
.p-uinfo span { font-size: .7rem; color: var(--c-muted, #697586); }

@media (max-width: 780px) { .p-uinfo { display: none; } }

/* ---- İçerik ---- */
.p-content { flex: 1 1 auto; min-width: 0; }

.p-footer {
    padding: 14px 26px 22px;
    color: var(--c-muted, #697586); font-size: .74rem;
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* ---- Mobil ---- */
@media (max-width: 960px) {
    .p-side { transform: translateX(-100%); width: var(--p-sidebar); }
    body.p-mobil-acik .p-side { transform: translateX(0); }
    .p-main, body.p-daralt .p-main { margin-left: 0; }
    body.p-daralt .p-side { width: var(--p-sidebar); }
    body.p-daralt .p-item .lbl, body.p-daralt .p-item .cev,
    body.p-daralt .p-item .p-badge, body.p-daralt .p-logo .txt { display: initial; }
    body.p-daralt .p-sub { display: none; }
    body.p-daralt .p-sub.acik { display: block !important; }
    .p-orto { display: none; position: fixed; inset: 0; background: rgba(15,22,38,.5); z-index: 55; }
    body.p-mobil-acik .p-orto { display: block; }
    .crm-wrap { padding: 16px 14px 36px; }
}

/* ============================================================
   GİRİŞ EKRANI
   ============================================================ */
.g-sayfa {
    min-height: 100vh;
    display: grid; place-items: center;
    padding: 24px;
    background: radial-gradient(1200px 600px at 20% 0%, #2b3f63 0%, #1a2740 55%, #131c2e 100%);
}

.g-kutu {
    width: 100%; max-width: 400px;
    background: #fff; border-radius: 18px;
    box-shadow: 0 30px 70px rgba(10, 16, 30, .45);
    overflow: hidden;
}

.g-bas { padding: 30px 30px 6px; text-align: center; }
.g-bas .mark {
    width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px;
    background: linear-gradient(140deg, #4f78c4 0%, #2f4f8f 100%);
    display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1.25rem;
    box-shadow: 0 8px 20px rgba(47, 79, 143, .38);
}
.g-bas h1 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--c-navy, #1e2d47); letter-spacing: -.01em; }
.g-bas p { margin: 6px 0 0; font-size: .82rem; color: var(--c-muted, #697586); }

.g-govde { padding: 22px 30px 30px; }

.g-alt {
    padding: 14px 30px; background: var(--c-soft, #f6f8fc);
    border-top: 1px solid var(--c-line, #e8ebf1);
    font-size: .74rem; color: var(--c-muted, #697586); text-align: center;
}

/* ============================================================
   EK BİLEŞENLER
   ============================================================ */

/* ---- Sekmeler ---- */
.crm-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--c-line, #e8ebf1); margin-bottom: 16px; flex-wrap: wrap; }
.crm-tab {
    padding: 10px 16px; border: 0; background: none; cursor: pointer;
    font-size: .84rem; font-weight: 700; color: var(--c-muted, #697586);
    border-bottom: 2px solid transparent; text-decoration: none;
    font-family: inherit; display: inline-flex; align-items: center; gap: 7px;
    transition: color .13s, border-color .13s;
}
.crm-tab .material-icons-outlined { font-size: 18px; }
.crm-tab:hover { color: var(--c-navy, #1e2d47); }
.crm-tab.active { color: var(--c-navy, #1e2d47); border-bottom-color: var(--c-navy, #1e2d47); }

/* ---- Çubuk grafik (pipeline / aylık dağılım) ---- */
.crm-bars { display: flex; flex-direction: column; gap: 11px; }
.crm-bar { display: grid; grid-template-columns: 150px 1fr 132px; gap: 12px; align-items: center; }
.crm-bar .b-lbl { font-size: .81rem; font-weight: 600; color: var(--c-ink, #1c2430); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crm-bar .b-track { background: var(--c-soft, #f6f8fc); border-radius: 999px; height: 22px; overflow: hidden; border: 1px solid var(--c-line, #e8ebf1); }
.crm-bar .b-fill { height: 100%; border-radius: 999px; background: var(--c-navy-grad, linear-gradient(180deg,#1e2d47,#29394f)); min-width: 3px; transition: width .4s ease; }
.crm-bar .b-val { text-align: right; font-size: .82rem; font-weight: 700; color: var(--c-navy, #1e2d47); font-variant-numeric: tabular-nums; }
.crm-bar .b-val small { display: block; font-weight: 500; font-size: .7rem; color: var(--c-muted, #697586); }

@media (max-width: 700px) { .crm-bar { grid-template-columns: 110px 1fr 96px; gap: 8px; } }

/* Dikey sütun grafik — aylık satış */
.crm-cols { display: flex; align-items: flex-end; gap: 8px; height: 190px; padding: 8px 2px 0; overflow-x: auto; }
.crm-col { flex: 1 1 0; min-width: 34px; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.crm-col .c-bar {
    width: 100%; border-radius: 8px 8px 3px 3px; min-height: 3px;
    background: var(--c-navy-grad, linear-gradient(180deg,#1e2d47,#29394f));
    position: relative; transition: filter .13s;
}
.crm-col:hover .c-bar { filter: brightness(1.25); }
.crm-col .c-lbl { font-size: .68rem; color: var(--c-muted, #697586); font-weight: 600; white-space: nowrap; }
.crm-col .c-val { font-size: .68rem; color: var(--c-navy, #1e2d47); font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- Kanban (fırsat hattı) ---- */
.crm-kanban { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; }
.crm-kcol { flex: 0 0 268px; background: #eef1f7; border: 1px solid var(--c-line, #e8ebf1); border-radius: 12px; display: flex; flex-direction: column; max-height: 72vh; }
.crm-kcol > .k-head {
    padding: 11px 13px; border-bottom: 1px solid #dfe4ee; display: flex; align-items: center; gap: 8px;
    font-size: .78rem; font-weight: 800; color: var(--c-navy, #1e2d47); text-transform: uppercase; letter-spacing: .04em;
    position: sticky; top: 0; background: #eef1f7; border-radius: 12px 12px 0 0; z-index: 1;
}
.crm-kcol > .k-head .k-adet { margin-left: auto; background: #fff; border: 1px solid #d7dfec; border-radius: 999px; padding: 1px 8px; font-size: .68rem; color: #47536a; }
.crm-kcol > .k-body { padding: 10px; display: flex; flex-direction: column; gap: 9px; overflow-y: auto; }
.crm-kcol > .k-foot { padding: 9px 13px; border-top: 1px solid #dfe4ee; font-size: .76rem; font-weight: 700; color: var(--c-navy, #1e2d47); display: flex; justify-content: space-between; }

.crm-kcard {
    background: #fff; border: 1px solid var(--c-line, #e8ebf1); border-radius: 10px; padding: 11px 12px;
    text-decoration: none; color: inherit; display: block;
    box-shadow: 0 1px 2px rgba(20,28,45,.05);
    transition: transform .12s, box-shadow .12s, border-color .12s;
}
.crm-kcard:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,28,45,.12); border-color: #c7d3e6; }
.crm-kcard .kc-ttl { font-size: .84rem; font-weight: 700; color: var(--c-ink, #1c2430); margin-bottom: 5px; line-height: 1.3; }
.crm-kcard .kc-mus { font-size: .74rem; color: var(--c-muted, #697586); display: flex; align-items: center; gap: 5px; margin-bottom: 8px; }
.crm-kcard .kc-mus .material-icons-outlined { font-size: 14px; }
.crm-kcard .kc-alt { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.crm-kcard .kc-tut { font-size: .82rem; font-weight: 800; color: var(--c-navy, #1e2d47); font-variant-numeric: tabular-nums; }

/* ---- Kalem tablosu (teklif / satış satırları) ---- */
.crm-kalem { width: 100%; border-collapse: separate; border-spacing: 0; }
.crm-kalem thead th {
    background: var(--c-navy-soft, #f1f4f9); color: var(--c-navy, #1e2d47);
    font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--c-navy-line, #dde4ee); white-space: nowrap;
}
.crm-kalem tbody td { padding: 7px 8px; border-bottom: 1px solid var(--c-line, #e8ebf1); vertical-align: middle; }
.crm-kalem input, .crm-kalem select {
    width: 100%; border: 1px solid var(--c-line, #e8ebf1); border-radius: 8px;
    padding: 7px 9px; font-size: .84rem; font-family: inherit; color: var(--c-ink, #1c2430);
    background: #fff; outline: none;
}
.crm-kalem input:focus, .crm-kalem select:focus { border-color: var(--c-brand, #1e2d47); box-shadow: 0 0 0 3px rgba(30,45,71,.12); }
.crm-kalem input[readonly] { background: var(--c-soft, #f6f8fc); color: var(--c-muted, #697586); font-weight: 700; }
.crm-kalem .k-sil {
    border: 1px solid #f3cfca; background: var(--s-lose-bg, #fdecec); color: var(--s-lose, #c0392b);
    width: 32px; height: 32px; border-radius: 8px; cursor: pointer; display: grid; place-items: center;
}
.crm-kalem .k-sil:hover { background: #f9ddd8; }
.crm-kalem .k-sil .material-icons-outlined { font-size: 18px; }
.crm-kalem td.num, .crm-kalem th.num { text-align: right; }

/* Toplam kutusu */
.crm-toplam { margin-left: auto; max-width: 340px; width: 100%; }
.crm-toplam .t-satir { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: .86rem; color: var(--c-ink, #1c2430); }
.crm-toplam .t-satir span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.crm-toplam .t-genel {
    border-top: 2px solid var(--c-navy-line, #dde4ee); margin-top: 6px; padding-top: 11px;
    font-size: 1.02rem; font-weight: 800; color: var(--c-navy, #1e2d47);
}

/* ---- Zaman akışı (müşteri kartı / fırsat geçmişi) ---- */
.crm-akis { position: relative; padding-left: 26px; }
.crm-akis::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--c-navy-line, #dde4ee); }
.crm-akis .a-item { position: relative; padding: 0 0 18px; }
.crm-akis .a-item:last-child { padding-bottom: 0; }
.crm-akis .a-nokta {
    position: absolute; left: -22px; top: 3px; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 3px solid var(--c-navy-2, #29394f);
}
.crm-akis .a-item.win .a-nokta { border-color: var(--s-win, #1e8e4e); }
.crm-akis .a-item.lose .a-nokta { border-color: var(--s-lose, #c0392b); }
.crm-akis .a-bas { font-size: .85rem; font-weight: 700; color: var(--c-ink, #1c2430); }
.crm-akis .a-tar { font-size: .73rem; color: var(--c-muted, #697586); margin-top: 2px; }
.crm-akis .a-not { font-size: .8rem; color: #4a5566; margin-top: 4px; }

/* ---- Sayfalama ---- */
.crm-sayfa { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-top: 1px solid var(--c-line, #e8ebf1); flex-wrap: wrap; }
.crm-sayfa .s-bilgi { font-size: .78rem; color: var(--c-muted, #697586); }
.crm-sayfa .s-nav { display: flex; gap: 6px; }
.crm-sayfa .s-nav a, .crm-sayfa .s-nav span {
    min-width: 34px; height: 34px; padding: 0 10px; border-radius: 9px;
    border: 1px solid var(--c-line, #e8ebf1); background: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; color: #47536a; text-decoration: none;
}
.crm-sayfa .s-nav a:hover { background: var(--c-soft, #f6f8fc); border-color: #c3cede; }
.crm-sayfa .s-nav .aktif { background: var(--c-navy, #1e2d47); border-color: var(--c-navy, #1e2d47); color: #fff; }
.crm-sayfa .s-nav .pasif { opacity: .4; pointer-events: none; }

/* ---- Filtre çubuğu (form) ---- */
.crm-filtrebar {
    background: #fff; border: 1px solid var(--c-line, #e8ebf1); border-radius: var(--c-radius, 14px);
    padding: 13px 16px; margin-bottom: 14px; box-shadow: var(--c-shadow-sm, 0 1px 3px rgba(20,28,45,.06));
    display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap;
}
.crm-filtrebar .f-alan { display: flex; flex-direction: column; gap: 5px; min-width: 150px; }
.crm-filtrebar .f-alan > label { font-size: .7rem; font-weight: 700; color: var(--c-muted, #697586); text-transform: uppercase; letter-spacing: .05em; }
.crm-filtrebar select, .crm-filtrebar input {
    border: 1px solid var(--c-line, #e8ebf1); border-radius: 9px; padding: 8px 11px;
    font-size: .84rem; font-family: inherit; color: var(--c-ink, #1c2430); background: #fff; outline: none; height: 38px;
}
.crm-filtrebar select:focus, .crm-filtrebar input:focus { border-color: var(--c-brand, #1e2d47); box-shadow: 0 0 0 3px rgba(30,45,71,.12); }

/* ---- Küçük istatistik kutuları (ürün kartı, müşteri kartı) ---- */
.crm-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.crm-mini > div { background: var(--c-navy-soft, #f1f4f9); border: 1px solid var(--c-navy-line, #dde4ee); border-radius: 11px; padding: 11px 13px; }
.crm-mini .m-lbl { font-size: .68rem; font-weight: 700; color: var(--c-muted, #697586); text-transform: uppercase; letter-spacing: .05em; }
.crm-mini .m-val { font-size: 1.08rem; font-weight: 800; color: var(--c-navy, #1e2d47); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* ---- Bilgi satırı (etiket : değer) ---- */
.crm-bilgi { display: grid; grid-template-columns: 128px 1fr; gap: 8px 14px; font-size: .85rem; }
.crm-bilgi dt { color: var(--c-muted, #697586); font-weight: 600; }
.crm-bilgi dd { margin: 0; color: var(--c-ink, #1c2430); font-weight: 600; word-break: break-word; }

/* ---- Ürün küçük resmi ---- */
.crm-thumb {
    width: 40px; height: 40px; border-radius: 9px; object-fit: cover;
    background: var(--c-soft, #f6f8fc); border: 1px solid var(--c-line, #e8ebf1); flex: none;
}
.crm-thumb-bos { display: grid; place-items: center; color: #b3bccb; }
.crm-thumb-bos .material-icons-outlined { font-size: 20px; }

/* ---- Onay kutusu satırı ---- */
.crm-check { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--c-ink, #1c2430); cursor: pointer; font-weight: 600; }
.crm-check input { width: 17px; height: 17px; accent-color: var(--c-navy, #1e2d47); cursor: pointer; }

/* ============================================================
   SATIŞ SÜRECİ (sihirbaz)
   Üst blok = DURUM (neredeyim), alt blok = İŞ (ne yapıyorum).
   Üçü ayrı beyaz kart olsaydı sayfa "eşit ağırlıkta kutular"a
   dönüşür, göz tutunacak yer bulamazdı.
   ============================================================ */

.sr-ust {
    border-radius: var(--c-radius, 14px);
    overflow: hidden;
    margin-bottom: 18px;
    background: linear-gradient(180deg, #1e2d47 0%, #29394f 100%);
    box-shadow: 0 14px 34px rgba(21, 32, 52, .24);
}

.sr-bas { padding: 15px 20px 14px; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.sr-bas h5 { margin: 0; color: #fff; font-size: 1.08rem; font-weight: 800; display: flex; align-items: center; gap: 9px; }
.sr-bas h5::before { content: ""; flex: none; width: 4px; align-self: stretch; min-height: 20px; border-radius: 3px; background: rgba(255,255,255,.32); }
.sr-bas h5 .material-icons-outlined { color: rgba(255,255,255,.72); font-size: 21px; }
.sr-bas .alt { display: block; margin-top: 4px; font-size: .78rem; color: rgba(214,226,244,.62); }
.sr-bas .crm-btn { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.17); color: #dbe5f3; box-shadow: none; }
.sr-bas .crm-btn:hover { background: rgba(255,255,255,.17); color: #fff; transform: none; }

/* ---- Adım şeridi ---- */
.sr-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    border-top: 1px solid rgba(255,255,255,.09);
    border-bottom: 1px solid rgba(255,255,255,.09);
    padding: 10px 10px 12px;
}

.sr-step {
    position: relative;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    text-align: center; padding: 8px 6px;
    border-radius: 11px; text-decoration: none;
    transition: background .16s;
}

/* Adımlar arası bağlantı çizgisi — dairenin dikey ortasından geçer. */
.sr-step::before {
    content: ""; position: absolute; top: 23px; left: -50%;
    width: 100%; height: 3px; border-radius: 3px;
    background: rgba(255,255,255,.13); z-index: 0;
}
.sr-step:first-child::before { display: none; }
.sr-step.gecildi::before, .sr-step.simdi::before { background: #34c77b; }

/* Daire dolgusu OPAK: yarı saydam beyaz, arkadan geçen yeşil çizgiyi
   içinden gösteriyordu. Aynı ton, opak lacivert taban üstüne bindirildi. */
.sr-no {
    position: relative; z-index: 1;
    width: 30px; height: 30px; border-radius: 50%; flex: none;
    display: grid; place-items: center;
    font-weight: 800; font-size: .85rem;
    background: linear-gradient(rgba(255,255,255,.08), rgba(255,255,255,.08)), #232f4a;
    color: #b9c6d8;
    border: 2px solid rgba(255,255,255,.22);
    transition: .16s;
}
.sr-no .material-icons-outlined { font-size: 17px; }

.sr-ad { font-size: .78rem; font-weight: 800; color: #e9eff7; line-height: 1.2; }
.sr-ipucu { font-size: .69rem; color: rgba(223,232,245,.68); line-height: 1.3; }
.sr-ozet {
    font-size: .69rem; color: #79e2ab; font-weight: 700; line-height: 1.3; margin-top: 2px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Tamamlandı */
.sr-step.gecildi .sr-no { background: #27a468; border-color: #34c77b; color: #fff; }
.sr-step.gecildi .sr-ad { color: #9ae9c1; }

/* Şu anki adım — şeritteki en yüksek kontrast */
.sr-step.simdi { background: rgba(255,255,255,.11); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.sr-step.simdi .sr-no { background: #fff; border-color: #fff; color: #1e2d47; box-shadow: 0 0 0 5px rgba(255,255,255,.16); }
.sr-step.simdi .sr-ad { color: #fff; }
.sr-step.simdi .sr-ipucu { color: rgba(255,255,255,.82); }
.sr-step.simdi .sr-ozet { color: #fff; }

/* Açık ama girilmemiş */
.sr-step.acik:hover { background: rgba(255,255,255,.07); }
.sr-step.acik:hover .sr-no { border-color: #a9bbdb; color: #fff; }

/* Kilitli — kesik çizgi, tıklanamaz */
.sr-step.kilitli { cursor: not-allowed; }
.sr-step.kilitli .sr-no {
    background: linear-gradient(rgba(255,255,255,.04), rgba(255,255,255,.04)), #232f4a;
    color: rgba(255,255,255,.38);
    border-color: rgba(255,255,255,.20); border-style: dashed;
}
.sr-step.kilitli .sr-ad { color: rgba(255,255,255,.46); }
.sr-step.kilitli .sr-ipucu { color: rgba(255,255,255,.32); }

@media (max-width: 1100px) {
    .sr-steps { grid-template-columns: 1fr; padding: 6px 8px 8px; }
    .sr-step { flex-direction: row; text-align: left; align-items: flex-start; padding: 9px 8px; gap: 12px; }
    .sr-step::before { display: none; }
    .sr-step + .sr-step { border-top: 1px solid rgba(255,255,255,.10); }
    .sr-metin { display: flex; flex-direction: column; }
}

/* ---- Bağlam çubuğu: hangi müşteri / hangi fırsat ---- */
.sr-baglam {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: rgba(10,17,30,.26);
    padding: 10px 16px; color: #dbe5f3;
}
.sr-etiket {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px; padding: 4px 7px 4px 11px; font-size: .82rem; color: #dbe5f3;
}
.sr-etiket .k { color: rgba(186,203,228,.86); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.sr-etiket b { color: #fff; font-weight: 700; }
.sr-etiket a {
    display: inline-flex; align-items: center; gap: 3px; color: #cfe0ff; text-decoration: none;
    font-size: .74rem; font-weight: 700; background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.20); border-radius: 999px; padding: 2px 9px;
}
.sr-etiket a:hover { background: #fff; color: #1e2d47; border-color: #fff; }
.sr-etiket.bos { color: rgba(198,213,235,.62); }

/* ---- Gövde: tek beyaz çalışma alanı ---- */
.sr-govde {
    background: #fff; border: 1px solid #e3e8f0; border-radius: var(--c-radius, 14px);
    box-shadow: 0 2px 10px rgba(30,45,71,.06); padding: 18px 22px 22px;
}
.sr-govde-bas {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 14px;
    flex-wrap: wrap; margin: 0 0 16px; padding: 0 0 14px;
    border-bottom: 1px solid var(--c-navy-line, #dde4ee);
}
.sr-govde-bas > div { flex: 1 1 240px; min-width: 0; }
.sr-govde-bas h5 { margin: 0; font-size: 1.06rem; font-weight: 800; color: var(--c-navy, #1e2d47); display: flex; align-items: center; gap: 9px; }
.sr-govde-bas h5::before { content: ""; flex: none; width: 4px; align-self: stretch; min-height: 22px; border-radius: 3px; background: var(--c-navy-grad, linear-gradient(180deg,#1e2d47,#29394f)); }
.sr-govde-bas h5 .material-icons-outlined { color: #29394f; }
.sr-govde-bas p { margin: 3px 0 0; color: var(--c-muted, #697586); font-size: .8rem; line-height: 1.45; max-width: 820px; }

/* Adımlar arası gezinme */
.sr-gezi { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--c-line, #e8ebf1); flex-wrap: wrap; }

/* Seçilebilir satır listesi (müşteri / fırsat seçimi) */
.sr-sec tbody tr { cursor: pointer; }
.sr-sec tbody tr:hover { background: var(--c-brand-soft, #e9eef7); }

/* Tamamlandı kutlaması */
.sr-bitti { text-align: center; padding: 34px 16px; }
.sr-bitti .ikon { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--s-win-bg, #e6f7ec); color: var(--s-win, #1e8e4e); }
.sr-bitti .ikon .material-icons-outlined { font-size: 34px; }
.sr-bitti h5 { margin: 0 0 6px; font-size: 1.1rem; font-weight: 800; color: var(--c-navy, #1e2d47); }
.sr-bitti p { margin: 0 0 18px; color: var(--c-muted, #697586); font-size: .86rem; }

/* ---- Yazdırma ---- */
@media print {
    .p-side, .p-top, .p-footer, .crm-topbar, .crm-filters, .crm-filtrebar, .no-print { display: none !important; }
    .p-main { margin-left: 0 !important; }
    .crm-wrap { padding: 0 !important; }
    .crm-card, .crm-panel { box-shadow: none !important; border-color: #ccc !important; }
    body { background: #fff !important; }
}
