:root {
  --bg: #f4f5f7;
  --bg-2: #eceef2;
  --card: #ffffff;
  --card-2: #f8f9fb;
  --ink: #15171c;
  --ink-2: #3f4450;
  --ink-3: #6b7280;
  --line: #e3e6eb;
  --brand: #ee6a12;
  --brand-2: #c9500a;
  --brand-ink: #ffffff;
  --dark: #1d2027;
  --good: #16a34a;
  --good-bg: #dcfce7;
  --warn: #d97706;
  --warn-bg: #fef3c7;
  --bad: #dc2626;
  --bad-bg: #fee2e2;
  --info: #2563eb;
  --info-bg: #dbeafe;
  --violet: #7c3aed;
  --cloud: #0284c7;
  --cloud-bg: #f0f9ff;
  --gold: #f5b301;
  --side: #1d2027;
  --side-2: #15171c;
  --side-ink: #c7cad1;
  --shadow: 0 1px 2px rgba(21,23,28,.06), 0 4px 14px rgba(21,23,28,.06);
  --shadow-lg: 0 20px 50px rgba(21,23,28,.2);
  --radius: 14px;
  --grad: linear-gradient(135deg, #f47b22, #e2580a);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #111318; --bg-2: #1b1e25; --card: #1a1d24; --card-2: #20242c; --ink: #f2f3f5; --ink-2: #c4c8d0;
  --ink-3: #9096a2; --line: #2c3039; --good-bg: rgba(22,163,74,.18); --warn-bg: rgba(217,119,6,.18);
  --bad-bg: rgba(220,38,38,.18); --info-bg: rgba(37,99,235,.2); --cloud-bg: rgba(14,165,233,.12); --side: #0c0d10; --side-2: #0c0d10;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 18px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
svg { width: 18px; height: 18px; flex: none; }
html, body { margin: 0; height: 100%; }
body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.01em; }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.hidden { display: none !important; }

/* ------------------------------------------------ giriş */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 16px; position: relative; overflow: hidden;
  background: #0b0e1f;
}
.login .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: float 14s ease-in-out infinite; }
.login .b1 { width: 480px; height: 480px; background: #ee6a12; top: -120px; left: -100px; }
.login .b2 { width: 420px; height: 420px; background: #2563eb; bottom: -140px; right: -80px; animation-delay: -5s; }
.login .b3 { width: 300px; height: 300px; background: #c9500a; top: 40%; left: 55%; animation-delay: -9s; }
@keyframes float { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-30px) scale(1.1); } }
.login-card {
  position: relative; width: 100%; max-width: 400px; padding: 36px 32px 28px; border-radius: 24px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(22px);
  box-shadow: 0 30px 80px rgba(0,0,0,.45); color: #fff; animation: rise .6s cubic-bezier(.2,.8,.2,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.login-logo { display: grid; place-items: center; margin-bottom: 18px; }
.login-logo img { max-height: 84px; max-width: 260px; }
.login h1 { text-align: center; font-size: 20px; }
.login p.sub { text-align: center; margin: 4px 0 24px; color: rgba(255,255,255,.65); font-size: 13px; }
.login label { display: block; font-size: 12px; color: rgba(255,255,255,.7); margin: 12px 0 6px; }
.login input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1); color: #fff; outline: none; transition: .2s;
}
.login input:focus { border-color: #ee6a12; background: rgba(255,255,255,.16); box-shadow: 0 0 0 4px rgba(238,106,18,.25); }
.login .btn { width: 100%; margin-top: 22px; padding: 13px; font-size: 15px; }
.login .err { color: #ffb3bf; font-size: 13px; margin-top: 12px; min-height: 18px; text-align: center; }
.login .foot { text-align: center; font-size: 11px; color: rgba(255,255,255,.45); margin-top: 18px; }

.logo-ph { display: flex; align-items: center; gap: 12px; }
.logo-plate { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 16px; padding: 10px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.logo-plate img { display: block; height: 64px; width: auto; max-width: 100%; }
.side .brand .logo-plate { padding: 6px 10px; border-radius: 12px; box-shadow: none; }
.side .brand .logo-plate img { height: 40px; }
.ds-logo { display: inline-block; width: auto; vertical-align: middle; border-radius: 3px; }
.sel-bar .btn.ds { background: #fff; color: #141a33; }
.logo-ph svg.mark { width: 52px; height: 52px; border-radius: 14px; box-shadow: 0 8px 24px rgba(91,75,255,.45); }
.logo-ph .txt b { display: block; font-size: 18px; letter-spacing: .02em; }
.logo-ph .txt span { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }

/* ------------------------------------------------ iskelet */
.shell { display: grid; grid-template-columns: 248px minmax(0,1fr); min-height: 100vh; }
.side {
  background: linear-gradient(180deg, var(--side), var(--side-2)); color: var(--side-ink); padding: 20px 14px;
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
}
.side .brand { padding: 4px 8px 18px; color: #fff; }
.side .brand svg.mark { width: 40px; height: 40px; border-radius: 12px; }
.side .brand .txt b { font-size: 15px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--side-ink);
  font-weight: 500; transition: .15s; position: relative;
}
.nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav a.on { background: var(--brand); color: #fff; }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: var(--grad); }
.nav svg { width: 18px; height: 18px; flex: none; }
.nav .pill { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; padding: 1px 7px; border-radius: 10px; }
.side .me { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.05); font-size: 13px; }
.side .me b { color: #fff; display: block; }
.side .me a { color: #9fa6d8; font-size: 12px; }

.main { min-width: 0; padding: 24px 28px 80px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.topbar h1 { font-size: 24px; }
.topbar .sp { flex: 1; }
.btn.burger { display: none; }
h3 svg, .topbar h1 svg { width: 18px; height: 18px; flex: none; }
.login .btn { justify-content: center; }

/* ------------------------------------------------ bileşenler */
.btn {
  border: 0; border-radius: 12px; padding: 9px 16px; font-weight: 600; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; background: var(--card); color: var(--ink); border: 1px solid var(--line);
  transition: transform .1s, box-shadow .2s, background .2s; white-space: nowrap;
}
.btn:hover { box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--brand); color: #fff; border: 0; box-shadow: 0 4px 12px rgba(238,106,18,.35); }
.btn.pri:hover { background: var(--brand-2); }
.btn.good { background: var(--good); color: #fff; border: 0; }
.btn.bad { color: var(--bad); }
.btn.sm { padding: 5px 10px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid var(--line); }
.card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.card h3 .sp { flex: 1; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.g6 { grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); }
.span2 { grid-column: span 2; }
.mt { margin-top: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 18px; margin-bottom: 18px; }
.qbtn {
  border: 0; cursor: pointer; text-align: left; padding: 22px; border-radius: 20px; color: #fff; position: relative;
  overflow: hidden; display: flex; align-items: center; gap: 16px; font-size: 18px; font-weight: 700;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.qbtn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.qbtn small { display: block; font-size: 12px; font-weight: 500; opacity: .8; }
.qbtn .ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; }
.qbtn .ic svg { width: 26px; height: 26px; }
.qbtn::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.12); }
.q1 { background: linear-gradient(135deg, #3d4566, #1b2146); }
.q2 { background: linear-gradient(135deg, #00b8d9, #2a7de1); }
.q3 { background: linear-gradient(135deg, #5b4bff, #8b2cf5); }

.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.hero .goal { font-size: 13px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.hero .big { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin: 4px 0 16px; letter-spacing: -.02em; }
.hero .big span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .line { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px dashed var(--line); }
.hero .line b { font-size: 22px; }
.bar { height: 14px; border-radius: 10px; background: var(--bg-2); overflow: hidden; margin: 14px 0 6px; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 10px; width: 0; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.chart-box { position: relative; height: 260px; }
.chart-box.tall { height: 340px; }

.kpi { padding: 16px 18px; }
.kpi .l { font-size: 12px; color: var(--ink-3); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .v { font-size: 26px; font-weight: 800; margin-top: 4px; }
.kpi .s { font-size: 12px; color: var(--ink-3); }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; }

.alert {
  display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px;
  border: 1px solid transparent; font-weight: 500;
}
.alert svg { width: 22px; height: 22px; flex: none; }
.alert.bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(224,56,79,.25); animation: pulse-bad 2.4s infinite; }
.alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.info { background: var(--info-bg); color: var(--info); }
.alert .cd { margin-left: auto; text-align: center; font-weight: 800; font-size: 22px; line-height: 1; }
.alert .cd small { display: block; font-size: 10px; font-weight: 600; letter-spacing: .1em; }
@keyframes pulse-bad { 0%,100% { box-shadow: 0 0 0 0 rgba(224,56,79,.25); } 50% { box-shadow: 0 0 0 8px rgba(224,56,79,0); } }

/* bulut balonu */
.balloon {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #0369a1); padding: 14px 20px 14px 16px; border-radius: 999px;
  display: flex; align-items: center; gap: 12px; font-weight: 700; box-shadow: 0 12px 30px rgba(2,132,199,.45);
  animation: bob 3s ease-in-out infinite;
}
.balloon .n { background: #fff; color: var(--cloud); border-radius: 999px; min-width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; padding: 0 8px; }
.balloon svg { width: 26px; height: 26px; }
.balloon::before { content: ""; position: absolute; inset: -6px; border-radius: 999px; border: 2px solid rgba(14,165,233,.55); animation: ring 2s ease-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes ring { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }

/* tablolar */
.tbl-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 700; padding: 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--card-2); }
tr.cloud td { background: var(--cloud-bg); }
tr.cloud td:first-child { box-shadow: inset 4px 0 0 var(--cloud); }
td.r, th.r { text-align: right; }
td.num, td.r { white-space: nowrap; }
.clickable { cursor: pointer; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge.gray { background: var(--bg-2); color: var(--ink-2); }
.badge.good { background: var(--good-bg); color: var(--good); }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.bad { background: var(--bad-bg); color: var(--bad); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: #ede9fe; color: var(--violet); }
.badge.org { background: #ffedd5; color: #c2410c; }
.badge.cloud { background: var(--cloud); color: #fff; }
.badge.violet { background: #ede9fe; color: var(--violet); }
.badge svg { width: 12px; height: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip svg { width: 13px; height: 13px; }
.chips .arr { color: var(--ink-3); font-size: 12px; }

/* formlar */
.f label { display: block; font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 10px 0 5px; }
.f input, .f select, .f textarea, .inp {
  width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card);
  outline: none; transition: .15s;
}
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(238,106,18,.18); }
.inp.sm { padding: 5px 8px; border-radius: 8px; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .inp { width: auto; min-width: 150px; }
.filters .search { flex: 1; min-width: 200px; }
.seg { display: inline-flex; background: var(--bg-2); border-radius: 12px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--ink-2); font-size: 13px; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }

.switch { position: relative; width: 38px; height: 22px; display: inline-block; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 22px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--good); }
.switch input:checked + span::before { transform: translateX(16px); }

.drop {
  border: 2px dashed var(--line); border-radius: 16px; padding: 26px; text-align: center; cursor: pointer;
  transition: .2s; background: var(--card-2);
}
.drop:hover, .drop.over { border-color: var(--brand); background: #fff7ed; }
.drop svg { width: 36px; height: 36px; color: var(--brand); }
.drop b { display: block; margin-top: 8px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--brand); border-color: var(--brand); }

/* müşavir sıralaması */
.rank { display: flex; flex-direction: column; gap: 8px; }
.rank .it { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line); cursor: pointer; transition: .15s; }
.rank .it:hover { transform: translateX(3px); border-color: var(--brand); }
.rank .pos { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--bg-2); color: var(--ink-2); flex: none; }
.rank .nm { flex: 1; min-width: 0; }
.rank .nm b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank .nm small { color: var(--ink-3); }
.rank .cnt { font-weight: 800; font-size: 18px; }
.rank .it.top { position: relative; overflow: hidden; }
.rank .it.top::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s infinite; pointer-events: none; }
.rank .it.t1 { background: linear-gradient(90deg, rgba(245,179,1,.2), rgba(245,179,1,.04)); border-color: rgba(245,179,1,.5); }
.rank .it.t2 { background: linear-gradient(90deg, rgba(160,170,190,.25), rgba(160,170,190,.04)); }
.rank .it.t3 { background: linear-gradient(90deg, rgba(205,127,50,.2), rgba(205,127,50,.04)); }
.rank .t1 .pos { background: var(--gold); color: #fff; }
.rank .t2 .pos { background: #a0aabe; color: #fff; }
.rank .t3 .pos { background: #cd7f32; color: #fff; }
.star { color: var(--gold); display: inline-block; animation: twinkle 1.6s ease-in-out infinite; }
.star svg { width: 18px; height: 18px; fill: currentColor; }
@keyframes shine { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(100%); } }
@keyframes twinkle { 0%,100% { transform: scale(1) rotate(0); filter: drop-shadow(0 0 0 rgba(245,179,1,0)); } 50% { transform: scale(1.25) rotate(15deg); filter: drop-shadow(0 0 6px rgba(245,179,1,.9)); } }

/* durum adımları */
.steps { display: flex; gap: 0; margin: 6px 0 4px; }
.steps .st { flex: 1; text-align: center; position: relative; cursor: pointer; padding-top: 34px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.steps .st::before { content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); display: grid; place-items: center; z-index: 1; color: var(--ink-3); border: 2px solid var(--card); }
.steps .st::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--bg-2); }
.steps .st:first-child::after { display: none; }
.steps .st.done { color: var(--ink); }
.steps .st.done::before { background: var(--grad); color: #fff; content: "✓"; }
.steps .st.done::after { background: var(--brand); }
.steps .st.cur::before { box-shadow: 0 0 0 5px rgba(238,106,18,.25); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline .ev { position: relative; padding: 0 0 14px; }
.timeline .ev::before { content: ""; position: absolute; left: -21px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 3px solid var(--brand); }
.timeline .ev small { color: var(--ink-3); }

.totals .ln { display: flex; justify-content: space-between; padding: 6px 0; }
.totals .ln.big { font-size: 18px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; }
.profit { background: linear-gradient(135deg, rgba(18,166,106,.12), rgba(0,184,217,.1)); border-radius: 14px; padding: 14px 16px; }
.profit .v { font-size: 24px; font-weight: 800; color: var(--good); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(10,12,30,.55); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.modal { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg); width: 100%; max-width: 620px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.modal.wide { max-width: 1040px; }
.modal header { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.modal header h2 { font-size: 17px; flex: 1; }
.modal .body { padding: 18px 22px; overflow: auto; }
.modal footer { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.x { border: 0; background: var(--bg-2); width: 32px; height: 32px; border-radius: 10px; cursor: pointer; font-size: 18px; }
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow-lg); font-weight: 600; animation: rise .25s; }
.toast.bad { background: var(--bad); color: #fff; }
.toast.good { background: var(--good); color: #fff; }

.empty { text-align: center; padding: 40px 10px; color: var(--ink-3); }
.empty svg { width: 42px; height: 42px; opacity: .5; }
pre.letter { white-space: pre-wrap; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-family: inherit; margin: 0; }
.preview-tag { position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%); z-index: 30; background: rgba(20,26,51,.85); color: #fff; font-size: 12px; padding: 6px 14px; border-radius: 999px; }
.sel-bar { position: sticky; top: 8px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; border-radius: 14px; background: var(--ink); color: var(--bg); margin-bottom: 12px; box-shadow: var(--shadow-lg); }
.sel-bar .btn { background: rgba(255,255,255,.12); color: inherit; border: 0; }

@media (max-width: 1100px) {
  .g6 { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .shell { grid-template-columns: minmax(0,1fr); }
  .side { position: fixed; z-index: 60; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: .25s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .btn.burger { display: inline-flex; }
  .main { padding: 16px 16px 90px; }
  .g2, .g3, .quick { grid-template-columns: 1fr; }
  .g6 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .span2 { grid-column: auto; }
  .hero .big { font-size: 26px; }
  .topbar h1 { font-size: 20px; }
  .balloon { right: 16px; bottom: 16px; }
  .balloon .lbl { display: none; }
}

/* ------------------------------------------------ ana ekran (sade) */
.home-top { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-bottom: 16px; }
.tile { border: 0; cursor: pointer; text-align: left; color: #fff; border-radius: 16px; padding: 20px 22px; display: flex; align-items: center; gap: 16px; font: inherit; transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile svg { width: 30px; height: 30px; flex: none; }
.tile b { display: block; font-size: 20px; }
.tile span { font-size: 13px; opacity: .9; }
.t-dark { background: var(--dark); }
.t-blue { background: var(--info); }
.t-orange { background: var(--brand); }
.goalcard { background: var(--dark); color: #fff; border-radius: 18px; padding: 26px 28px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,1fr); gap: 28px; align-items: center; }
.goalcard h2 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.15; }
.goalcard .eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .18em; color: var(--brand); background: rgba(238,106,18,.14); border: 1px solid rgba(238,106,18,.35); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.goal-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0; }
.goal-h em { font-style: normal; font-size: clamp(44px, 5.5vw, 68px); font-weight: 900; line-height: .95; letter-spacing: -.03em; color: #fff; background: linear-gradient(180deg, #ffb06b, #ee6a12); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.goal-h span { font-size: clamp(18px, 2vw, 24px); font-weight: 700; color: #e8eaee; }
.goalcard .nums { display: flex; flex-wrap: wrap; gap: 14px 32px; margin-top: 22px; }
.goalcard .nums small { display: block; color: #a9aeb8; font-size: 12.5px; }
.goalcard .nums b { font-size: clamp(18px, 1.7vw, 24px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.goalcard .pct { display: flex; align-items: baseline; gap: 10px; margin-top: 18px; }
.goalcard .pct b { font-size: 40px; color: var(--brand); line-height: 1; }
.goalcard .pct span { color: #a9aeb8; }
.hbar { height: 16px; border-radius: 8px; background: rgba(255,255,255,.12); overflow: hidden; margin-top: 10px; }
.hbar i { display: block; height: 100%; background: var(--brand); border-radius: 8px; width: 0; transition: width 1.2s ease; }
.cmp .r { display: grid; grid-template-columns: 120px minmax(0,1fr) auto; gap: 12px; align-items: center; margin-bottom: 14px; }
.cmp .r span { color: #c7cad1; font-size: 13px; }
.cmp .r b { font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; }
.cmp .track { height: 26px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.cmp .track i { display: block; height: 100%; border-radius: 6px; width: 0; transition: width 1.2s ease; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-top: 16px; }
.stat { border-radius: 16px; padding: 18px 20px; color: #fff; cursor: pointer; transition: transform .15s; }
.stat:hover { transform: translateY(-2px); }
.stat small { font-size: 13px; font-weight: 600; opacity: .92; }
.stat { text-align: center; }
.stat b { display: block; font-size: 46px; font-weight: 900; line-height: 1.05; margin: 6px 0 4px; }
.stat span { font-size: 13px; opacity: .9; }
.s-warn { background: #f59e0b; } .s-info { background: #2563eb; } .s-violet { background: #7c3aed; } .s-good { background: #16a34a; }
.advbars .a { display: grid; grid-template-columns: 28px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.advbars .a:last-child { border-bottom: 0; }
.advbars .a:hover .nm { color: var(--brand); }
.advbars .pos { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--bg-2); color: var(--ink-2); }
.advbars .a.p1 .pos { background: var(--gold); color: #fff; } .advbars .a.p2 .pos { background: #9ca3af; color: #fff; } .advbars .a.p3 .pos { background: #c2773a; color: #fff; }
.advbars .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 6px; }
.advbars .bars { margin-top: 6px; height: 10px; border-radius: 5px; background: var(--bg-2); position: relative; overflow: hidden; }
.advbars .bars i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; }
.advbars .bars .f { background: #e9d5ff; } .advbars .bars .o { background: linear-gradient(90deg, #a855f7, #7e22ce); }
.advbars .a:hover .nm { color: #9333ea; }
.advbars .cnt { text-align: right; font-variant-numeric: tabular-nums; }
.advbars .cnt b { font-size: 18px; display: block; }
.advbars .cnt small { color: var(--ink-3); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.money3 { display: grid; gap: 8px; }
.money3 div { background: var(--card-2); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.money3 small { color: var(--ink-3); font-size: 13px; }
.money3 b { font-size: 18px; white-space: nowrap; }
.alert.solid { background: var(--bad); color: #fff; border: 0; }
.alert.solid a { color: #fff; text-decoration: underline; }
@media (max-width: 1100px) { .goalcard { grid-template-columns: 1fr; } .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) { .home-top { grid-template-columns: 1fr; } .goalcard .nums { grid-template-columns: 1fr 1fr; } .money3 { grid-template-columns: 1fr; } .cmp .r { grid-template-columns: 90px minmax(0,1fr) auto; } }

/* ------------------------------------------------ sipariş listesi (sade) */
table.ord tbody tr td { background: var(--card); }
table.ord tbody tr:hover td { background: var(--card-2); }
table.ord a { color: var(--ink); }
table.ord a:hover { color: var(--brand); }
table.ord a.ono { white-space: nowrap; font-weight: 800; color: var(--ink); letter-spacing: .01em; }
table.ord tr.cloud td { background: var(--cloud-bg); }
table.ord tr.cloud td:first-child { box-shadow: inset 5px 0 0 #0ea5e9; }
table.ord tr.cloud:hover td { background: #e0f2fe; }
.cloudtag { display: inline-flex; align-items: center; gap: 5px; margin-top: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, #38bdf8, #0284c7); box-shadow: 0 3px 10px rgba(2,132,199,.35); }
.cloudtag svg { width: 13px; height: 13px; }
.cloudtag.sm { margin: 0 0 0 4px; padding: 2px 8px 2px 6px; }
table.ord .badge { color: #fff; font-weight: 700; padding: 4px 10px; }
table.ord .badge.warn { background: #f59e0b; } table.ord .badge.info { background: #2563eb; } table.ord .badge.violet { background: #7c3aed; }
table.ord .badge.good { background: #16a34a; } table.ord .badge.bad { background: #dc2626; } table.ord .badge.gray { background: #6b7280; }

/* ------------------------------------------------ müşteri düzenleme penceresi */
.modal.cmod { overflow: hidden; }
.modal.cmod header { background: var(--info); color: #fff; border: 0; }
.modal.cmod header h2 { display: flex; align-items: center; gap: 10px; min-width: 0; }
.modal.cmod header h2 span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal.cmod header svg { width: 22px; height: 22px; }
.modal.cmod header .x { background: rgba(255,255,255,.18); color: #fff; }
.modal.cmod .body { background: var(--bg); }
.ctags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ctag { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff; }
.t-company { background: #1d2027; } .t-person { background: #475569; }
.t-inv { background: #16a34a; } .t-noinv { background: #9ca3af; } .t-none { background: #e5e7eb; color: #374151; }
.cmod .ctags .badge { color: #fff; font-weight: 700; padding: 4px 11px; font-size: 12px; }
.cmod .ctags .badge.warn { background: #f59e0b; } .cmod .ctags .badge.info { background: #2563eb; } .cmod .ctags .badge.violet { background: #7c3aed; } .cmod .ctags .badge.good { background: #16a34a; }
.clinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.cl { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; font-size: 13px; min-width: 0; }
.cl span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); }
.cl svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: #fff; flex: none; }
.cl-adv svg { background: var(--brand); } .cl-ord svg { background: var(--violet); } .cl-pay svg { background: var(--good); }
a.cl:hover { border-color: var(--brand); }
.fsec { background: var(--card); border-radius: 14px; padding: 12px 16px 16px; margin-bottom: 12px; border-left: 5px solid; box-shadow: var(--shadow); }
.fsec h4 { margin: 2px 0 2px; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.fsec h4 svg { width: 16px; height: 16px; }
.fsec.s-blue { border-color: #2563eb; } .fsec.s-blue h4 { color: #2563eb; }
.fsec.s-orange { border-color: var(--brand); } .fsec.s-orange h4 { color: var(--brand-2); }
.fsec.s-green { border-color: #16a34a; } .fsec.s-green h4 { color: #16a34a; }
.seg2 { display: flex; gap: 6px; }
.seg2 button { flex: 1; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; font-weight: 700; color: var(--ink-3); cursor: pointer; }
.seg2 button[data-v="1"].on { background: #16a34a; border-color: #16a34a; color: #fff; }
.seg2 button[data-v="0"].on { background: #6b7280; border-color: #6b7280; color: #fff; }
.btn.danger { background: var(--bad); color: #fff; border-color: var(--bad); margin-right: auto; }
.modal.cmod footer { background: var(--card); }

/* ------------------------------------------------ tablo başlıkları */
thead th { background: var(--dark); color: #fff; font-size: 11.5px; letter-spacing: .07em; padding: 12px 10px; border-bottom: 3px solid var(--brand); position: sticky; top: 0; z-index: 1; }
thead th:first-child { border-top-left-radius: 10px; }
thead th:last-child { border-top-right-radius: 10px; }
thead th input[type=checkbox] { accent-color: var(--brand); }
:root[data-theme="dark"] thead th { background: #2a2e37; }

/* ------------------------------------------------ renkli sayı kutuları */
.kpi.solid { --k: #2563eb; background: var(--k); color: #fff; border: 0; text-align: center; border-radius: 16px; padding: 16px 14px; box-shadow: 0 6px 16px rgba(21,23,28,.12); }
.grid > .kpi.solid:not([style]):nth-child(4n+1) { --k: #2563eb; }
.grid > .kpi.solid:not([style]):nth-child(4n+2) { --k: #9333ea; }
.grid > .kpi.solid:not([style]):nth-child(4n+3) { --k: #0d9488; }
.grid > .kpi.solid:not([style]):nth-child(4n+4) { --k: #ee6a12; }
.kpi.solid .l { justify-content: center; color: rgba(255,255,255,.92); font-size: 12.5px; }
.kpi.solid .v { font-size: clamp(22px, 2.1vw, 32px); font-weight: 900; line-height: 1.1; margin: 6px 0 2px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.solid .s { color: rgba(255,255,255,.85); }
.kpi.solid.clickable:hover { transform: translateY(-2px); }

/* ------------------------------------------------ hareketli başlıklar */
.card h3.hx { font-size: 16px; font-weight: 800; gap: 10px; }
.hx .hi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 6px 14px var(--hs); }
.hx .hi svg { width: 18px; height: 18px; }
.hx .ht { background: var(--hg); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hx-violet { --hg: linear-gradient(90deg, #9333ea, #c026d3); --hs: rgba(147,51,234,.35); }
.hx-green  { --hg: linear-gradient(90deg, #16a34a, #0d9488); --hs: rgba(22,163,74,.35); }
.hx-blue   { --hg: linear-gradient(90deg, #2563eb, #0ea5e9); --hs: rgba(37,99,235,.35); }
.hx .hi { background: var(--hg); }
.stat small { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.stat .si { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.stat .si svg { width: 16px; height: 16px; }
@keyframes a-twinkle { 0%, 100% { transform: rotate(0) scale(1); } 50% { transform: rotate(18deg) scale(1.15); } }
@keyframes a-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes a-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
@keyframes a-spin { to { transform: rotate(360deg); } }
@keyframes a-rise { 0% { transform: translateY(3px); opacity: .6; } 50% { transform: translateY(-3px); opacity: 1; } 100% { transform: translateY(3px); opacity: .6; } }
@keyframes a-pop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.a-twinkle svg { animation: a-twinkle 2.4s ease-in-out infinite; }
.a-bounce svg { animation: a-bounce 1.6s ease-in-out infinite; }
.a-swing svg { animation: a-swing 2.2s ease-in-out infinite; transform-origin: 50% 20%; }
.a-spin svg { animation: a-spin 4s linear infinite; }
.a-rise svg { animation: a-rise 1.8s ease-in-out infinite; }
.a-pop svg { animation: a-pop 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .hx .hi svg, .stat .si svg { animation: none !important; } }

/* açık renkli ana ekran kutuları */
.hx-orange { --hg: linear-gradient(90deg, #ea580c, #f59e0b); --hs: rgba(234,88,12,.35); }
.card.tint-violet { background: linear-gradient(180deg, #faf5ff, #ffffff); border-color: #ede9fe; }
.card.tint-green  { background: linear-gradient(180deg, #f0fdf4, #ffffff); border-color: #dcfce7; }
.card.tint-blue   { background: linear-gradient(180deg, #eff6ff, #ffffff); border-color: #dbeafe; }
.tint-violet .advbars .a { border-color: #ede9fe; }
.tint-violet .advbars .bars { background: #f3e8ff; }
.tint-green .money3 div { background: #ffffff; border: 1px solid #dcfce7; }
:root[data-theme="dark"] .card.tint-violet, :root[data-theme="dark"] .card.tint-green, :root[data-theme="dark"] .card.tint-blue { background: var(--card); border-color: var(--line); }
:root[data-theme="dark"] .tint-green .money3 div { background: var(--card-2); border-color: var(--line); }

/* ------------------------------------------------ ikinci ekran (detay paneli) */
#drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
#drawer .dw-bg { position: absolute; inset: 0; background: rgba(15,17,22,.35); opacity: 0; transition: opacity .25s; }
#drawer .dw { position: absolute; top: 0; right: 0; bottom: 0; width: min(1180px, 84vw); background: var(--bg); box-shadow: -20px 0 50px rgba(15,17,22,.25);
  display: flex; flex-direction: column; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); border-left: 4px solid var(--brand); }
#drawer.open { pointer-events: auto; }
#drawer.open .dw-bg { opacity: 1; }
#drawer.open .dw { transform: none; }
.dw-bar { display: flex; align-items: center; gap: 8px; padding: 12px 18px; background: var(--dark); color: #fff; }
.dw-bar .dw-t { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .02em; }
.dw-bar .dw-t svg { color: var(--brand); }
.dw-bar .sp { flex: 1; }
.dw-bar .x { background: rgba(255,255,255,.14); color: #fff; }
.dw-bar .btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.dw-body { flex: 1; overflow: auto; padding: 20px 22px 40px; }
.dw-body .burger { display: none !important; }
.dw-body .topbar { margin-top: 0; }
.dw-body .grid.g3 { grid-template-columns: minmax(0,1fr); }
.dw-body .span2 { grid-column: auto; }
@media (max-width: 1000px) { #drawer .dw { width: 100vw; border-left: 0; } }

/* ------------------------------------------------ ödeyen, para dağılımı, cari */
.payer { display: inline-flex; align-items: center; gap: 5px; margin: 3px 0 1px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.payer svg { width: 12px; height: 12px; }
.payer.pm { background: #f3e8ff; color: #7e22ce; }
.payer.pf { background: #e0f2fe; color: #0369a1; }
.wtag .badge { font-size: 10.5px; padding: 2px 7px; }
.msplit { border-radius: 16px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.ms-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; padding: 16px 18px 12px; background: var(--dark); color: #fff; }
.ms-head small { display: block; color: #a9aeb8; font-size: 12px; }
.ms-head b { font-size: 26px; font-weight: 900; }
.ms-meta { text-align: right; font-size: 12px; color: #c7cad1; }
.ms-bar { display: flex; height: 12px; background: #2a2e37; }
.ms-bar i { display: block; height: 100%; transition: width .5s; }
.ms-bar .ds { background: linear-gradient(90deg, #2563eb, #0ea5e9); }
.ms-bar .pr { background: linear-gradient(90deg, #16a34a, #4ade80); }
.ms-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
.ms-tiles > div { border-radius: 12px; padding: 12px 14px; }
.ms-tiles small { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; }
.ms-tiles small svg { width: 14px; height: 14px; }
.ms-tiles b { display: block; font-size: 22px; font-weight: 900; margin: 4px 0 2px; }
.ms-tiles span { font-size: 12px; }
.mt-ds { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.mt-pr { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.ms-vat { display: flex; align-items: stretch; gap: 8px; padding: 0 12px 12px; }
.ms-vat > div { flex: 1; background: var(--card-2); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.ms-vat small { display: block; font-size: 11.5px; color: var(--ink-3); }
.ms-vat b { font-size: 15px; white-space: nowrap; }
.ms-vat .op { align-self: center; font-weight: 900; font-size: 18px; color: var(--ink-3); }
.ms-vat .vp { background: linear-gradient(135deg, #f59e0b, #ea580c); color: #fff; }
.ms-vat .vp small { color: rgba(255,255,255,.9); font-weight: 700; }
.ms-vat .vp b { font-size: 18px; }
.cari-sum { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.cs { border-radius: 16px; padding: 16px 18px; color: #fff; box-shadow: 0 8px 20px rgba(21,23,28,.12); }
.cs h4 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.cs h4 svg { width: 18px; height: 18px; }
.cs h4 img { background: #fff; border-radius: 4px; padding: 1px 3px; }
.cs-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; opacity: .92; padding: 3px 0; }
.cs-row b { white-space: nowrap; }
.cs-big { display: flex; flex-direction: column; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255,255,255,.3); }
.cs-big span { font-size: 12px; opacity: .9; }
.cs-big b { font-size: clamp(20px, 1.9vw, 26px); font-weight: 900; white-space: nowrap; }
.cs-recv { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.cs-ds { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.cs-vat { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.cs-pr { background: linear-gradient(135deg, #16a34a, #15803d); }
table.ledger td.dr { color: #b91c1c; }
table.ledger td.cr { color: #15803d; }
tr.clickable { cursor: pointer; }
@media (max-width: 1100px) { .cari-sum { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 700px) { .cari-sum, .ms-tiles { grid-template-columns: 1fr; } .ms-vat { flex-wrap: wrap; } .ms-vat .op { display: none; } .ms-vat > div { flex-basis: 100%; } }

/* ------------------------------------------------ kampanya */
.camp { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; white-space: nowrap; color: #fff; }
.camp svg { width: 12px; height: 12px; }
.camp.c-nov { background: linear-gradient(135deg, #f97316, #c2410c); }
.camp.c-dec { background: linear-gradient(135deg, #0ea5e9, #1d4ed8); }
.camp.c-jan { background: linear-gradient(135deg, #a855f7, #6d28d9); }
.topbar h1 .campsel { width: auto; font-size: 13px; font-weight: 700; margin-left: 6px; vertical-align: 3px; padding: 4px 8px; }
.wizhead > div:first-child { grid-column: span 2; }
@media (max-width: 700px) { .wizhead > div:first-child { grid-column: auto; } }
table.ord th, table.ord td { padding-left: 7px; padding-right: 7px; }
table.ord .payer { font-size: 11px; padding: 2px 7px 2px 6px; }

.dupt { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; }
.dupt svg { width: 12px; height: 12px; }
table.ord tr.dup td { background: #fef2f2; }
table.ord tr.dup td:first-child { box-shadow: inset 5px 0 0 var(--bad); }
table.ord tbody tr[data-oid] { cursor: pointer; user-select: none; }
th.sno, td.sno { width: 64px; text-align: center; }
td.sno span { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; background: var(--dark); color: #fff; font-weight: 800; font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------ makbuz */
.rc-no { font-family: ui-monospace, Menlo, monospace; background: var(--dark); color: #fff; border-radius: 8px; padding: 2px 10px; font-size: .7em; vertical-align: 3px; }
a.rcl { display: inline-flex; align-items: center; gap: 5px; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 12.5px; color: var(--ink); background: var(--card-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 8px; white-space: nowrap; }
a.rcl svg { width: 13px; height: 13px; color: var(--brand); }
a.rcl:hover { border-color: var(--brand); color: var(--brand); }
tr.rc-line { cursor: pointer; }
.rcpt { max-width: 760px; margin: 0 auto; background: var(--card); border-radius: 22px; overflow: hidden; box-shadow: 0 24px 60px rgba(21,23,28,.18); position: relative; }
.rcpt::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: radial-gradient(circle at 10px -2px, transparent 8px, var(--card) 9px) repeat-x; background-size: 20px 10px; }
.rc-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; color: #fff; background: linear-gradient(135deg, #1d2027 0%, #2b2f38 60%, #ee6a12 160%); }
.rcpt.odm .rc-top { background: linear-gradient(135deg, #1d2027 0%, #1e3a8a 70%, #0ea5e9 140%); }
.rc-logo { background: #fff; border-radius: 12px; padding: 8px 12px; }
.rc-logo img { height: 42px; display: block; }
.rc-title { text-align: right; }
.rc-title small { display: block; letter-spacing: .22em; font-weight: 800; font-size: 12px; color: #fdba74; }
.rcpt.odm .rc-title small { color: #7dd3fc; }
.rc-title b { display: block; font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: .04em; }
.rc-title span { font-size: 13px; color: #c7cad1; }
.rc-amount { text-align: center; padding: 26px 20px 18px; background: linear-gradient(180deg, #fff7ed, var(--card)); border-bottom: 2px dashed var(--line); }
.rcpt.odm .rc-amount { background: linear-gradient(180deg, #eff6ff, var(--card)); }
.rc-amount small { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.rc-amount b { display: block; font-size: clamp(34px, 5vw, 52px); font-weight: 900; letter-spacing: -.02em; background: linear-gradient(90deg, #ea580c, #f59e0b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.rcpt.odm .rc-amount b { background-image: linear-gradient(90deg, #1d4ed8, #0ea5e9); }
.rc-amount i { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); word-break: break-word; }
.rc-parties { display: grid; grid-template-columns: minmax(0,1fr) 40px minmax(0,1fr); align-items: center; gap: 10px; padding: 18px 26px; }
.rc-parties > div:not(.rc-arrow) { background: var(--card-2); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.rc-parties small, .rc-grid small, .rc-desc small, .rc-rows > small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.rc-parties b { display: block; font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; }
.rc-parties em { display: block; font-style: normal; font-weight: 600; font-size: 12px; color: var(--ink-3); }
.rc-arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; }
.rcpt.odm .rc-arrow { background: #2563eb; }
.rc-ds { display: block; margin-bottom: 4px; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; padding: 0 26px 14px; }
.rc-grid > div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.rc-grid b { font-size: 14px; overflow-wrap: anywhere; }
.rc-desc { margin: 0 26px 14px; padding: 12px 14px; border-left: 4px solid var(--brand); background: #fff7ed; border-radius: 0 12px 12px 0; }
.rcpt.odm .rc-desc { border-color: #2563eb; background: #eff6ff; }
.rc-desc p { margin: 4px 0 0; }
.rc-rows { padding: 0 26px 14px; }
.rc-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; margin-top: 8px; border-radius: 12px; background: #f0fdf4; color: var(--ink); border: 1px solid #bbf7d0; }
a.rc-row:hover { border-color: var(--good); }
.rc-row span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.rc-row svg { width: 15px; height: 15px; }
.rc-row.open { background: #fff7ed; border-color: #fed7aa; }
.rc-foot { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 26px; color: var(--ink-3); font-size: 13px; }
.rc-stamp { border: 3px solid var(--good); color: var(--good); font-weight: 900; letter-spacing: .12em; padding: 6px 14px; border-radius: 10px; transform: rotate(-6deg); font-size: 14px; }
.rcpt.odm .rc-stamp { border-color: #2563eb; color: #2563eb; }
@media (max-width: 600px) { .rc-top { flex-direction: column; align-items: flex-start; } .rc-title { text-align: left; } .rc-parties { grid-template-columns: 1fr; } .rc-arrow { justify-self: center; transform: rotate(90deg); } .rc-row { grid-template-columns: 1fr auto; } .rc-row .muted { display: none; } }
@media print { body.printing * { visibility: hidden !important; } body.printing .print-me, body.printing .print-me * { visibility: visible !important; } body.printing .print-me { position: fixed; inset: 0; margin: 0; box-shadow: none; max-width: none; } }

.rc-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.rc-tabs button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink-2); font: inherit; font-weight: 800; padding: 10px 16px; border-radius: 12px; cursor: pointer; }
.rc-tabs button svg { width: 16px; height: 16px; }
.rc-tabs button span { background: var(--bg-2); color: var(--ink-2); border-radius: 999px; padding: 1px 8px; font-size: 12px; }
.rc-tabs button.on { background: var(--dark); color: #fff; border-color: var(--dark); box-shadow: inset 0 -3px 0 var(--brand); }
.rc-tabs button.on span { background: var(--brand); color: #fff; }
.rc-filters { align-items: flex-end; }
.rc-filters .dt { display: flex; flex-direction: column; gap: 2px; }
.rc-filters .dt small { font-size: 11px; color: var(--ink-3); font-weight: 700; }
a.rcl.odm svg { color: #2563eb; }
td a.rcl + a.rcl { margin-top: 4px; }

/* Sipariş numarası: turuncu/koyu temaya uyumlu etiket */
a.ono, span.ono, table.ord a.ono { display: inline-flex; align-items: center; white-space: nowrap; font-family: ui-monospace, Menlo, monospace; font-weight: 800; font-size: 12.5px; letter-spacing: .02em; color: #b4500c; background: #fff4ea; border: 1px solid #f7cfaa; padding: 3px 9px; border-radius: 8px; text-decoration: none; }
a.ono:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
:root[data-theme="dark"] a.ono { background: #3a2617; border-color: #6b3a17; color: #ffb37a; }
.af-filters { margin-bottom: 8px; }
.af-filters .search { flex: 1 1 220px; }
#pk button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
#pk button svg { width: 15px; height: 15px; }
#pk button[data-k="tah"].on { background: var(--good); border-color: var(--good); color: #fff; }
#pk button[data-k="iade"].on { background: var(--bad); border-color: var(--bad); color: #fff; }

a.rcl.iade { color: var(--bad); border-color: #f5b5b5; background: #fff1f1; }
a.rcl.iade svg { color: var(--bad); }
a.rcl i { font-style: normal; font-family: inherit; font-size: 10.5px; background: var(--bad); color: #fff; border-radius: 5px; padding: 0 5px; }
.rcpt.iade .rc-top { background: linear-gradient(135deg, #1d2027 0%, #7f1d1d 70%, #ef4444 140%); }
.rcpt.iade .rc-title small { color: #fca5a5; }
.rcpt.iade .rc-amount { background: linear-gradient(180deg, #fff1f1, var(--card)); }
.rcpt.iade .rc-amount b { background-image: linear-gradient(90deg, #b91c1c, #ef4444); }
.rcpt.iade .rc-arrow { background: #dc2626; }
.rcpt.iade .rc-desc { border-color: #dc2626; background: #fff1f1; }
.rc-stamp.iade { border-color: var(--bad); color: var(--bad); }
td.nowrap, .nowrap { white-space: nowrap; }
tfoot tr.tot td { border-top: 2px solid var(--dark); background: var(--card-2); }
#pk.seg2 button { flex: 1; }
.rcpt.iade .rc-stamp { border-color: var(--bad); color: var(--bad); }
.af-act { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; }
.af-act .btn.sm { padding: 3px 8px; font-size: 11.5px; }
.af-act .btn.sm svg { width: 12px; height: 12px; }
.af-act [data-iade] { color: var(--bad); }
.af-body td:nth-child(3) { min-width: 200px; }

/* Firma düzenleme penceresi: geniş, müşavir adı tam okunur */
.modal.cmod { max-width: 880px; }
.cmod .clinks { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cmod .cl-adv { grid-column: 1 / -1; }
.cmod .cl span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.cl-left.due svg { background: var(--bad); } .cl-left.ok svg { background: var(--good); }
.cl-left.due { color: var(--bad); }

/* Dönem içinde yeni gelen firma */
.newtag { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 9px 2px 7px; border-radius: 999px; background: linear-gradient(90deg, #059669, #10b981); color: #fff; font-size: 11px; font-weight: 800; white-space: nowrap; box-shadow: 0 2px 6px rgba(16,185,129,.35); }
.newtag svg { width: 12px; height: 12px; }
.newtag.sm { margin: 0 0 0 2px; padding: 1px 8px 1px 6px; font-size: 10.5px; }

/* Müşavir firma listesi altı tahsilat özeti */
.colsum { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; padding: 16px; border-radius: 16px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden; }
.colsum .cs-box { border-radius: 14px; padding: 14px 16px; color: #fff; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.colsum .cs-box small { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; opacity: .95; }
.colsum .cs-box small svg { width: 15px; height: 15px; }
.colsum .cs-box b { font-size: 26px; font-weight: 900; line-height: 1.1; }
.colsum .cs-box span { font-size: 12px; opacity: .9; font-weight: 600; }
.colsum .cs-all { background: var(--dark); }
.colsum .cs-paid { background: linear-gradient(135deg, #15803d, #22c55e); }
.colsum .cs-due { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.colsum.done .cs-due { background: linear-gradient(135deg, #64748b, #94a3b8); }
.colsum .cs-bar { grid-column: 1 / -1; height: 10px; border-radius: 999px; background: #fde2e2; overflow: hidden; }
.colsum .cs-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #16a34a, #22c55e); }
.colsum .cs-stamp { position: absolute; right: 22px; top: 50%; transform: translateY(-50%) rotate(-12deg); display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 4px double #16a34a; border-radius: 12px; color: #16a34a; background: rgba(255,255,255,.88); font-weight: 900; font-size: 20px; letter-spacing: .1em; box-shadow: 0 6px 20px rgba(22,163,74,.25); animation: stampIn .5s cubic-bezier(.2,1.6,.4,1) both; pointer-events: none; }
.colsum .cs-stamp svg { width: 24px; height: 24px; }
@keyframes stampIn { from { opacity: 0; transform: translateY(-50%) rotate(-12deg) scale(2.2); } to { opacity: 1; transform: translateY(-50%) rotate(-12deg) scale(1); } }
:root[data-theme="dark"] .colsum .cs-stamp { background: rgba(20,24,30,.9); }
@media (max-width: 700px) { .colsum { grid-template-columns: 1fr; } .colsum .cs-stamp { right: 50%; transform: translate(50%, -50%) rotate(-12deg); font-size: 16px; } @keyframes stampIn { from { opacity: 0; } to { opacity: 1; } } }

/* Ödemesi beklenen firmalar raporu */
a.cs-box.cs-due { cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s; }
a.cs-box.cs-due:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(220,38,38,.35); }
.btn.xl { color: #15803d; border-color: #86efac; }
.btn.xl:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.due-card { padding: 22px; }
.rpt-top { display: flex; align-items: center; gap: 18px; border-bottom: 3px solid var(--brand); padding-bottom: 14px; }
.rpt-top img { height: 48px; border-radius: 8px; background: #fff; padding: 4px; }
.rpt-top small { display: block; color: var(--brand); font-weight: 800; letter-spacing: .08em; font-size: 11.5px; }
.rpt-top b { display: block; font-size: 20px; }
.rpt-top span { color: var(--ink-3); font-size: 12.5px; }
.rpt-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 16px 0; }
.rpt-kpi div { border-radius: 12px; padding: 12px 14px; background: var(--dark); color: #fff; text-align: center; }
.rpt-kpi small { display: block; font-size: 11.5px; font-weight: 700; opacity: .9; }
.rpt-kpi b { font-size: 20px; font-weight: 900; }
.rpt-kpi .g { background: linear-gradient(135deg, #15803d, #22c55e); }
.rpt-kpi .r { background: linear-gradient(135deg, #b91c1c, #ef4444); }
.rpt-t { width: 100%; border-collapse: collapse; }
.rpt-t td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.rpt-t td.r b { color: var(--bad); }
.rpt-t tfoot td { border-top: 2px solid var(--dark); background: var(--card-2); }
.rpt-t tfoot td.r b { color: var(--ink); }
.rpt-foot { margin: 14px 0 0; color: var(--ink-3); font-size: 12px; }
.due-card { overflow-x: auto; }
@media (max-width: 700px) { .rpt-kpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print { body.printing .rpt.print-me { position: absolute; inset: 0 auto auto 0; width: 100%; } }
.rpt-t td.num, .rpt-t td.r, .rpt-t td.ono { white-space: nowrap; }

/* Müşavir ekranı: siparişler tek balon */
.ordball { width: 100%; border: 0; cursor: pointer; font: inherit; color: #fff; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 16px 12px 12px; border-radius: 16px; background: linear-gradient(135deg, #6d28d9, #a855f7); box-shadow: 0 8px 20px rgba(124,58,237,.3); transition: transform .15s, box-shadow .15s; }
.ordball:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(124,58,237,.4); }
.ordball small { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ordball small svg { width: 15px; height: 15px; }
.ordball b { font-size: 38px; font-weight: 900; line-height: 1.05; }
.ordball span { font-size: 12.5px; font-weight: 700; }
.ordball .ob-sub { background: rgba(255,255,255,.2); border-radius: 999px; padding: 2px 10px; margin-top: 2px; }
.ordball em { font-style: normal; font-size: 11.5px; opacity: .9; margin-top: 6px; }
.ordball[aria-expanded="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #a855f7; }
.ord-det { animation: rise .25s cubic-bezier(.2,.8,.2,1); }
.ord-det .od-firm { display: inline-block; min-width: 190px; }

.del-block p { margin: 0 0 10px; }
.del-ok { display: flex; align-items: center; gap: 14px; }
.del-ok > svg { width: 44px; height: 44px; flex: none; padding: 10px; border-radius: 50%; background: var(--good); color: #fff; }
.del-ok p { margin: 0; font-size: 15px; }
.del-sec { border: 1px solid var(--line); border-left: 4px solid var(--bad); border-radius: 12px; padding: 10px 12px; margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.del-sec h4 { width: 100%; margin: 0 0 4px; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--bad); }
.del-sec h4 svg { width: 15px; height: 15px; }
.del-sec h4 span { background: var(--bad); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 11.5px; }

/* Tahsilatlar: hareketli karakterli "yeni tahsilat" balonu */
.paybub { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 18px; padding: 16px 22px; border: 0; border-radius: 22px; cursor: pointer; font: inherit; text-align: left; color: #fff;
  background: linear-gradient(120deg, #ee6a12 0%, #f43f5e 45%, #8b5cf6 100%); background-size: 200% 200%; animation: pbGrad 8s ease infinite; box-shadow: 0 12px 30px rgba(238,106,18,.35); transition: transform .18s, box-shadow .18s; }
.paybub:hover { transform: translateY(-3px) scale(1.005); box-shadow: 0 18px 38px rgba(244,63,94,.4); }
.paybub:active { transform: translateY(0) scale(.99); }
.pb-char { flex: none; width: 104px; height: 104px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; box-shadow: inset 0 0 0 3px rgba(255,255,255,.35); }
.pm-char { width: 92px; height: 92px; overflow: visible; }
.pm-body { animation: pmHop 1.6s cubic-bezier(.45,0,.55,1) infinite; transform-origin: 60px 106px; }
.pm-shadow { animation: pmShadow 1.6s cubic-bezier(.45,0,.55,1) infinite; transform-origin: 60px 114px; }
.pm-arm.l { animation: pmWave 1.1s ease-in-out infinite; transform-origin: 28px 74px; }
.pm-arm.r { animation: pmWave 1.1s ease-in-out infinite reverse; transform-origin: 92px 74px; }
.pm-eyes { animation: pmBlink 4s infinite; transform-origin: 60px 70px; }
.pm-coin.c1 { animation: pmCoin 2.4s ease-in-out infinite; }
.pm-coin.c2 { animation: pmCoin 2.4s ease-in-out .8s infinite; }
.pb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 1; }
.pb-txt small { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.pb-txt b { font-size: 22px; font-weight: 900; line-height: 1.2; }
.pb-txt em { font-style: normal; font-size: 13px; opacity: .92; }
.pb-go { flex: none; position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #e11d48; font-weight: 900; padding: 11px 18px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0,0,0,.18); animation: pbPulse 1.8s ease-in-out infinite; }
.pb-go svg { width: 16px; height: 16px; }
.pb-bub { position: absolute; border-radius: 50%; background: rgba(255,255,255,.16); pointer-events: none; }
.pb-bub.b1 { width: 120px; height: 120px; right: 18%; top: -50px; animation: pbFloat 6s ease-in-out infinite; }
.pb-bub.b2 { width: 70px; height: 70px; right: 4%; bottom: -26px; animation: pbFloat 5s ease-in-out 1s infinite; }
.pb-bub.b3 { width: 40px; height: 40px; left: 42%; bottom: 8px; animation: pbFloat 4s ease-in-out .5s infinite; }
@keyframes pbGrad { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes pmHop { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.06, .94); } 45% { transform: translateY(-10px) scale(.97, 1.03); } 70% { transform: translateY(0) scale(1.04, .96); } }
@keyframes pmShadow { 0%, 100%, 70% { transform: scaleX(1); opacity: .15; } 45% { transform: scaleX(.7); opacity: .08; } }
@keyframes pmWave { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-18deg); } }
@keyframes pmBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes pmCoin { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(14deg); } }
@keyframes pbPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes pbFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .paybub, .paybub * { animation: none !important; } }
@media (max-width: 700px) { .paybub { flex-wrap: wrap; justify-content: center; text-align: center; padding: 18px 16px; } .pb-txt { flex-basis: 100%; } .pb-txt b { font-size: 18px; } }

/* Takip No (defter sayfa numarası) */
.takip { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; padding: 2px 10px 2px 7px; border-radius: 8px; background: #1d2027; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .02em; box-shadow: inset 0 -2px 0 var(--brand); white-space: nowrap; }
.takip svg { width: 13px; height: 13px; color: var(--brand); }
h1 .takip, .topbar .takip { font-size: 13px; padding: 4px 12px 4px 8px; }
.takip-l { display: flex; align-items: center; gap: 5px; color: var(--brand-2); }
.takip-l svg { width: 14px; height: 14px; }
.takip-l small { color: var(--ink-3); font-weight: 500; }
.takip-in { font-weight: 800; border-color: var(--brand) !important; background: #fff7ed; }
.takip-in.big { font-size: 22px; text-align: center; }
.takip-v { display: inline-flex; align-items: center; gap: 8px; }
.takip-v .btn.sm { padding: 2px 8px; font-size: 11px; }
:root[data-theme="dark"] .takip-in { background: #3a2617; }

.cs-link { cursor: pointer; transition: transform .15s, box-shadow .15s; }
.cs-link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(37,99,235,.35); }
.cs-open { margin-left: auto; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.22); padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.rpt-kpi.two { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; }
.rpt-kpi .m { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.rpt-kpi .f { background: linear-gradient(135deg, #0369a1, #0ea5e9); }
.rpt-t .who { font-weight: 800; white-space: nowrap; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
.rpt-t .who.wm { background: #ede9fe; color: #6d28d9; }
.rpt-t .who.wf { background: #e0f2fe; color: #0369a1; }
.rpt-t small.tk { color: var(--brand); font-weight: 800; }
.due-f { margin-bottom: 14px; }
.due-f .search { flex: 1 1 220px; }
.due-f .seg { flex-wrap: wrap; max-width: 100%; }
.rpt-wrap { max-width: 100%; margin: 0 !important; padding: 0 !important; }
.seg { flex-wrap: wrap; max-width: 100%; }

/* VKN/TCKN uzunluk kontrolü */
.vk-t tr.vk-err td { background: #fee2e2 !important; color: #991b1b; border-bottom-color: #fecaca; }
.vk-t tr.vk-err td:first-child { box-shadow: inset 4px 0 0 var(--bad); font-weight: 800; }
.vk-t .vk-in { width: 130px; border-color: var(--bad); background: #fff; font-weight: 800; color: #991b1b; }
.vk-t .vk-tin { width: 100%; min-width: 220px; border-color: #fca5a5; background: #fff; }
.vk-msg { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--bad); }
.vk-msg svg { width: 13px; height: 13px; flex: none; }
.alert.vk-bad { background: var(--bad); color: #fff; }
.alert.vk-ok { background: #dcfce7; color: #166534; border: 1px solid #86efac; }
.alert.vk-ok svg { color: #16a34a; }
:root[data-theme="dark"] .vk-t tr.vk-err td { background: #4c1d1d !important; color: #fecaca; }
:root[data-theme="dark"] .alert.vk-ok { background: #14321f; color: #bbf7d0; border-color: #166534; }
.vk-warn { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11.5px; font-weight: 700; color: #a16207; background: #fef9c3; border-radius: 6px; padding: 1px 7px; }
.vk-warn svg { width: 12px; height: 12px; }

/* ---- Tahsilat girişi penceresi ---- */
.modal.paymod { max-width: 640px; overflow: hidden; }
.modal.paymod header { position: relative; overflow: hidden; border: 0; padding: 18px 22px; color: #fff;
  background: linear-gradient(120deg, #ee6a12, #f5b301 30%, #16a34a 55%, #2563eb 78%, #7c3aed); background-size: 220% 220%; animation: ptflow 9s ease-in-out infinite; }
.modal.paymod.is-ref header { background: linear-gradient(120deg, #dc2626, #ee6a12 45%, #db2777 75%, #7c3aed); background-size: 220% 220%; }
@keyframes ptflow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.modal.paymod header .x { background: rgba(255,255,255,.22); color: #fff; border-color: transparent; position: relative; z-index: 1; }
.pt-head { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pt-ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.22); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); animation: ptbob 2.6s ease-in-out infinite; }
.pt-ic svg { width: 26px; height: 26px; }
@keyframes ptbob { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-4px) rotate(4deg); } }
.pt-txt b { display: block; font-size: 22px; font-weight: 900; letter-spacing: .06em; text-shadow: 0 2px 10px rgba(0,0,0,.18); }
.pt-txt small { display: block; font-size: 12px; font-weight: 600; opacity: .92; }
.pt-coins { position: absolute; right: 70px; top: 0; bottom: 0; width: 120px; pointer-events: none; }
.pt-coins i { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff6c8, #f5b301 60%, #c98a00); box-shadow: 0 1px 4px rgba(0,0,0,.2); animation: ptcoin 3.2s ease-in-out infinite; }
.pt-coins i:nth-child(1) { left: 10px; top: 14px; }
.pt-coins i:nth-child(2) { left: 52px; top: 38px; width: 12px; height: 12px; animation-delay: -1s; }
.pt-coins i:nth-child(3) { left: 92px; top: 10px; width: 20px; height: 20px; animation-delay: -2s; }
@keyframes ptcoin { 0%,100% { transform: translateY(0) scale(1); opacity: .95; } 50% { transform: translateY(8px) scale(.85); opacity: .7; } }
@media (prefers-reduced-motion: reduce) { .modal.paymod header, .pt-ic, .pt-coins i { animation: none; } }

.pform { display: flex; flex-direction: column; gap: 4px; }
.pstep { display: flex; gap: 14px; position: relative; padding-bottom: 12px; }
.pstep:not(:last-child)::before { content: ""; position: absolute; left: 14px; top: 32px; bottom: 0; width: 2px; background: linear-gradient(var(--line), transparent); }
.pnum { position: relative; z-index: 1; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; margin-top: 18px; box-shadow: 0 3px 10px rgba(0,0,0,.12); }
.pstep:nth-child(1) .pnum { background: #ee6a12; } .pstep:nth-child(2) .pnum { background: #f5b301; }
.pstep:nth-child(3) .pnum { background: #16a34a; } .pstep:nth-child(4) .pnum { background: #0284c7; }
.pstep:nth-child(5) .pnum { background: #2563eb; } .pstep:nth-child(6) .pnum { background: #7c3aed; } .pstep:nth-child(7) .pnum { background: #db2777; }
.pbody { flex: 1; min-width: 0; }
.pbody label { display: block; }
.pgrid { gap: 12px; }
.pform input, .pform select { width: 100%; }

.pocard { margin-top: 10px; border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, var(--good-bg), var(--info-bg)); border: 1px solid var(--line); }
.poc-top { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.poc-top small { flex-basis: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.poc-no { background: #ee6a12; color: #fff; font-weight: 800; font-size: 12px; padding: 2px 9px; border-radius: 999px; }
.poc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.poc-nums div { background: var(--card); border-radius: 10px; padding: 6px 10px; }
.poc-nums small { display: block; color: var(--ink-3); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.poc-nums b { font-size: 14px; white-space: nowrap; }
.poc-nums .g b { color: var(--good); } .poc-nums .r b { color: var(--bad); }
.poc-bar { height: 7px; border-radius: 99px; background: var(--card); margin-top: 10px; overflow: hidden; }
.poc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #16a34a, #84cc16); border-radius: 99px; transition: width .4s; }

.pamt { display: flex; align-items: center; border-radius: 14px; border: 2px solid #16a34a; background: var(--good-bg); padding: 0 16px; }
.pform.is-ref .pamt { border-color: var(--bad); background: var(--bad-bg); }
.pamt input { border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 26px; font-weight: 800; padding: 10px 0; color: var(--ink); }
.pamt span { font-size: 22px; font-weight: 800; color: var(--good); }
.pform.is-ref .pamt span { color: var(--bad); }
#paHint { display: block; margin-top: 4px; }

.pmeth { display: flex; flex-wrap: wrap; gap: 8px; }
.pmeth button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; transition: .15s; }
.pmeth button svg { width: 15px; height: 15px; color: var(--mc); }
.pmeth button:hover { border-color: var(--mc); }
.pmeth button.on { background: var(--mc); border-color: var(--mc); color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.pmeth button.on svg { color: #fff; }
@media (max-width: 520px) {
  .pt-txt b { font-size: 18px; } .pt-coins { display: none; } .pnum { width: 24px; height: 24px; font-size: 11px; } .pstep { gap: 10px; }
  .pstep:not(:last-child)::before { left: 11px; } .pgrid { grid-template-columns: 1fr; } .poc-nums b { font-size: 12px; }
}
.psearch { position: relative; margin-bottom: 8px; }
.psearch svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--good); pointer-events: none; }
.f .psearch input { padding-left: 36px; padding-right: 110px; border: 2px dashed color-mix(in srgb, var(--good) 45%, var(--line)); background: var(--card-2); }
.f .psearch input:focus { border-style: solid; border-color: var(--good); box-shadow: 0 0 0 3px rgba(22,163,74,.18); }
.psearch small { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 700; font-size: 12px; color: var(--good); }
.psearch small.none { color: var(--bad); }

/* ---- Veri güvenliği ---- */
.safe-hero { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, #16a34a, #0284c7 60%, #7c3aed); box-shadow: var(--shadow); }
.safe-hero .sh-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; background: rgba(255,255,255,.2); display: grid; place-items: center; }
.safe-hero .sh-ic svg { width: 28px; height: 28px; }
.safe-hero b { display: block; font-size: 18px; }
.safe-hero span { display: block; opacity: .95; font-size: 13px; margin-top: 2px; }
.card h3.wrap { flex-wrap: wrap; }
.rank .pc-ok { color: var(--good); font-weight: 700; }
.rank .pc-due { color: var(--bad); font-weight: 700; }
.adv-total { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(120deg, #ee6a12, #db2777 55%, #7c3aed); box-shadow: var(--shadow); }
.adv-total .at-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.adv-total .at-ic svg { width: 22px; height: 22px; }
.adv-total .at-l { font-size: 16px; font-weight: 800; }
.adv-total b { font-size: 30px; font-weight: 900; line-height: 1; }
.adv-total small { opacity: .9; font-weight: 600; }
.seg2.invd { max-width: 420px; }
.seg2.invd button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 10px; }
.seg2.invd button svg { width: 15px; height: 15px; }
.seg2.invd button[data-v="0"].on { background: var(--warn); border-color: var(--warn); }
/* Renkli seçenek balonları */
.bseg { display: flex; gap: 10px; flex-wrap: wrap; }
.bseg button { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px; cursor: pointer; font: inherit; text-align: left;
  border: 2px solid color-mix(in srgb, var(--bc) 45%, transparent); background: color-mix(in srgb, var(--bc) 10%, var(--card)); color: var(--bc); transition: .15s; }
.bseg button svg { width: 22px; height: 22px; padding: 4px; box-sizing: content-box; border-radius: 50%; background: color-mix(in srgb, var(--bc) 18%, transparent); }
.bseg button b { display: block; font-size: 14px; }
.bseg button small { display: block; font-size: 11.5px; font-weight: 600; opacity: .8; }
.bseg button:hover { transform: translateY(-1px); box-shadow: 0 4px 12px color-mix(in srgb, var(--bc) 25%, transparent); }
.bseg button.on { background: var(--bc); border-color: var(--bc); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--bc) 40%, transparent); }
.bseg button.on svg { background: rgba(255,255,255,.25); }
.bseg button.on::after { content: "✓"; font-weight: 900; margin-left: 4px; }
.bseg.sm { gap: 8px; }
.bseg.sm button { padding: 6px 14px 6px 8px; gap: 6px; }
.bseg.sm button svg { width: 16px; height: 16px; padding: 3px; }
.bseg.sm button b { font-size: 13px; }
.rpt-t { font-size: 13px; }
.rpt-t th { white-space: nowrap; }
.rpt-t td { padding: 8px 8px; }
.rpt-t td.num, .rpt-t td.r, .rpt-t td.ono { white-space: nowrap; }
.rpt-t td.advc { min-width: 150px; max-width: 220px; }
.rpt-t tr.grp td { background: color-mix(in srgb, #7c3aed 6%, transparent); }
.qty-pill { display: inline-block; margin-top: 3px; white-space: normal !important; padding: 2px 10px; border-radius: 999px; background: #7c3aed; color: #fff; font-weight: 800; font-size: 12px; }

/* ---- Datasoft cari hesabı balonu ve alt toplamlar ---- */
.dsball { width: 100%; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 22px; border: 0; border-radius: 22px; cursor: pointer; text-align: left; font: inherit; color: #fff;
  background: linear-gradient(120deg, #c2410c, #ee6a12 35%, #db2777 75%, #7c3aed); background-size: 200% 200%; animation: ptflow 10s ease-in-out infinite;
  box-shadow: 0 10px 28px rgba(238,106,18,.35); transition: transform .15s, box-shadow .15s; }
.dsball:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(238,106,18,.45); }
.dsball .db-logo { height: 58px; padding: 0 14px; border-radius: 18px; background: #fff; display: grid; place-items: center; flex: none; }
.dsball .db-logo img { height: 30px !important; }
.dsball .db-main { flex: 1 1 220px; min-width: 0; }
.dsball .db-main b { display: block; font-size: 20px; font-weight: 900; }
.dsball .db-main small { display: block; opacity: .9; font-weight: 600; }
.dsball .db-stat { background: rgba(255,255,255,.18); border-radius: 14px; padding: 8px 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.dsball .db-stat small { display: block; font-size: 11px; font-weight: 700; opacity: .9; }
.dsball .db-stat b { font-size: 16px; white-space: nowrap; }
.dsball .db-stat.r { background: rgba(127,29,29,.45); }
.dsball .db-stat.g { background: rgba(22,101,52,.4); }
.dsball .db-go { font-weight: 800; background: #fff; color: #c2410c; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .dsball { animation: none; } }

.ds-tots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .ds-tots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ds-tots { grid-template-columns: 1fr; } }
.ds-tots .dt { position: relative; border-radius: 22px; padding: 16px 18px 16px 70px; color: #fff; min-height: 86px; box-shadow: 0 8px 22px rgba(0,0,0,.12); overflow: hidden; }
.ds-tots .dt::after { content: ""; position: absolute; right: -20px; top: -20px; width: 80px; height: 80px; border-radius: 50%; background: rgba(255,255,255,.12); }
.ds-tots .dt-ic { position: absolute; left: 16px; top: 18px; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; }
.ds-tots .dt-ic svg { width: 20px; height: 20px; }
.ds-tots small { display: block; font-size: 12px; font-weight: 700; opacity: .92; }
.ds-tots b { display: block; font-size: 20px; font-weight: 900; margin-top: 2px; white-space: nowrap; }
.ds-tots .t1 { background: linear-gradient(135deg, #475569, #1e293b); }
.ds-tots .t2 { background: linear-gradient(135deg, #ee6a12, #c2410c); }
.ds-tots .t3 { background: linear-gradient(135deg, #f5b301, #d97706); }
.ds-tots .t4 { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.ds-tots .t5 { background: linear-gradient(135deg, #16a34a, #15803d); }
.ds-tots .t6 { background: linear-gradient(135deg, #dc2626, #991b1b); }
.ds-tots .t6.ok { background: linear-gradient(135deg, #0284c7, #1d4ed8); }
.ds-tots .dt-bar { display: block; height: 6px; border-radius: 99px; background: rgba(255,255,255,.25); margin-top: 8px; overflow: hidden; }
.ds-tots .dt-bar i { display: block; height: 100%; background: #fff; border-radius: 99px; }
.ds-tots em { font-style: normal; font-size: 11px; font-weight: 700; opacity: .9; }
/* Sayfalama */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pager .pg-info { color: var(--ink-3); font-weight: 600; font-size: 13px; }
.pager .pg-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink-2); font: inherit; font-weight: 700; cursor: pointer; transition: .15s; }
.pager button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.pager button.on { background: linear-gradient(135deg, #ee6a12, #db2777); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(238,106,18,.35); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .pg-gap { align-self: center; color: var(--ink-3); padding: 0 2px; }

/* ---- Bekleyen rapor: hareketli balonlar ---- */
.rpt-kpi.anim div { position: relative; overflow: hidden; border-radius: 22px; padding: 16px 14px 14px 70px; text-align: left; min-height: 78px;
  box-shadow: 0 8px 22px rgba(0,0,0,.14); animation: kfloat 4.5s ease-in-out infinite; }
.rpt-kpi.anim div:nth-child(2) { animation-delay: -1.1s; } .rpt-kpi.anim div:nth-child(3) { animation-delay: -2.2s; } .rpt-kpi.anim div:nth-child(4) { animation-delay: -3.3s; }
.rpt-kpi.anim div:not(.g):not(.r):not(.m):not(.f) { background: linear-gradient(135deg, #334155, #0f172a); }
.rpt-kpi.anim div:first-child:not(.m) { background: linear-gradient(135deg, #ee6a12, #c2410c); }
.rpt-kpi.anim div::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 48%, transparent 66%); transform: translateX(-120%); animation: kshine 5s ease-in-out infinite; }
.rpt-kpi.anim div::after { content: ""; position: absolute; right: -18px; top: -18px; width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.12); }
.rpt-kpi.anim b { position: relative; z-index: 1; display: block; font-size: 21px; white-space: nowrap; }
.rpt-kpi.anim small { position: relative; z-index: 1; }
.kchar { position: absolute; left: 10px; top: 50%; width: 52px; height: 52px; margin-top: -26px; z-index: 1; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); animation: kbob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.rpt-kpi.anim div:nth-child(2) .kchar { animation-delay: -.6s; } .rpt-kpi.anim div:nth-child(3) .kchar { animation-delay: -1.2s; } .rpt-kpi.anim div:nth-child(4) .kchar { animation-delay: -1.8s; }
.kc-yapilan { animation-name: kspin !important; animation-duration: 3.2s !important; }
.kc-yapilacak { animation-name: ktilt !important; animation-duration: 3s !important; }
.kc-spark { animation: kspark 1.6s ease-in-out infinite; transform-origin: 56px 13px; }
.kc-face { animation: kblink 4s infinite; transform-origin: center; transform-box: fill-box; }
@keyframes kfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes kshine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes kbob { 0%,100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-5px) rotate(5deg); } }
@keyframes kspin { 0%,100% { transform: rotateY(0) translateY(0); } 50% { transform: rotateY(180deg) translateY(-4px); } }
@keyframes ktilt { 0%,40% { transform: rotate(0); } 50%,90% { transform: rotate(180deg); } 100% { transform: rotate(360deg); } }
@keyframes kspark { 0%,100% { transform: scale(.4); opacity: .3; } 50% { transform: scale(1.1); opacity: 1; } }
@keyframes kblink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.15); } }
@media (max-width: 700px) { .rpt-kpi.anim { grid-template-columns: 1fr 1fr; } .rpt-kpi.anim.two { grid-template-columns: 1fr; } .rpt-kpi.anim b { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .rpt-kpi.anim div, .rpt-kpi.anim div::before, .kchar, .kc-spark, .kc-face { animation: none !important; } }
.rpt-t td.fcell { min-width: 200px; }
.rpt-t td.fcell .vk { color: var(--ink-3); }
.rpt-t td.fcell .who { font-size: 11px; padding: 1px 8px; }
.rpt-t td.advc { min-width: 120px; max-width: 180px; }
@media (max-width: 1200px) { .rpt-t { font-size: 12.5px; } .rpt-t td, .rpt-t th { padding: 7px 6px; } }

/* Yeni sipariş: müşavirin tüm siparişleri verilmişse yalnızca mesaj + Ana Sayfa */
.modal-bg.wz-done .wzx, .modal-bg.wz-done footer .btn.pri { display: none !important; }
.wz-donebox { text-align: center; padding: 40px 16px 32px; }
.wz-donebox > svg { width: 56px; height: 56px; color: #16a34a; background: #dcfce7; border-radius: 50%; padding: 12px; }
.wz-donebox p { margin: 14px 0 20px; font-size: 18px; }
.wz-donebox .btn { display: inline-flex; gap: 8px; align-items: center; }
.wz-donebox .btn svg { width: 18px; height: 18px; }

/* ---- Sipariş İşlemleri: hareketli durum balonları + sığan liste ---- */
.rpt-kpi.okpi { grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 0 16px; }
.rpt-kpi.anim .okb { cursor: pointer; transition: transform .15s, box-shadow .15s; padding-left: 68px; }
.rpt-kpi.anim .okb:hover { box-shadow: 0 12px 26px rgba(0,0,0,.22); }
.rpt-kpi.anim .okb.on { outline: 3px solid #fff; box-shadow: 0 0 0 5px var(--brand), 0 10px 24px rgba(0,0,0,.2); }
.rpt-kpi.anim .okb:nth-child(5) { animation-delay: -4.1s; } .rpt-kpi.anim .okb:nth-child(5) .kchar { animation-delay: -2.4s; }
.rpt-kpi.anim .okb small.ls { font-size: 11px; font-weight: 600; opacity: .85; }
.kc-ucak { animation-name: kfly !important; animation-duration: 2.8s !important; }
.kc-anahtar { animation-name: kturn !important; animation-duration: 3.4s !important; }
@keyframes kfly { 0%,100% { transform: translate(0,0) rotate(-6deg); } 50% { transform: translate(4px,-6px) rotate(6deg); } }
@keyframes kturn { 0%,60%,100% { transform: rotate(0); } 75% { transform: rotate(-25deg); } 88% { transform: rotate(10deg); } }
@media (max-width: 1280px) { .rpt-kpi.anim .okb { padding: 12px 10px 12px 50px; } .rpt-kpi.anim .okb .kchar { width: 38px; height: 38px; margin-top: -19px; left: 7px; } .rpt-kpi.anim .okb b { font-size: 19px; } }
@media (max-width: 900px) { .rpt-kpi.okpi { grid-template-columns: repeat(6, minmax(0, 1fr)); } .rpt-kpi.okpi .okb { grid-column: span 2; } .rpt-kpi.okpi .okb:nth-child(n+4) { grid-column: span 3; } }
@media (max-width: 700px) { .rpt-kpi.okpi { grid-template-columns: 1fr 1fr; } .rpt-kpi.okpi .okb, .rpt-kpi.okpi .okb:nth-child(n+4) { grid-column: auto; } .rpt-kpi.okpi .okb:first-child { grid-column: 1 / -1; } }
table.ord td.ono-c .badge { margin-top: 3px; }
table.ord td.advf { min-width: 170px; }
table.ord td.stc { white-space: nowrap; }
table.ord td.stc .badge { margin: 2px 0; }
table.ord small.okar { color: var(--good); font-weight: 700; white-space: nowrap; }
table.ord tbody tr.ds-ok:not(.dup) td { background: #ecfdf3; }
table.ord tbody tr.ds-ok:not(.dup) td:first-child { box-shadow: inset 5px 0 0 #22c55e; }
table.ord tbody tr.ds-ok:not(.dup):hover td { background: #dcfce7; }
table.ord thead th { white-space: normal; }

/* ---- Sipariş formu ---- */
.sf-modal .body { background: linear-gradient(135deg, #fff7ed, #eef2ff); }
.sform { position: relative; overflow: hidden; background: #fff; color: #1d2027; border-radius: 18px; box-shadow: 0 18px 40px rgba(15,23,42,.16); padding: 0 26px 18px; animation: sfIn .45s cubic-bezier(.2,.8,.2,1); }
.sform .num { font-variant-numeric: tabular-nums; }
.sf-band { height: 8px; margin: 0 -26px; background: linear-gradient(90deg, #ee6a12, #f59e0b, #e11d48, #7c3aed, #2563eb, #ee6a12); background-size: 300% 100%; animation: pbGrad 6s ease infinite; }
.sf-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 18px 0 14px; border-bottom: 2px dashed #fed7aa; }
.sf-logo { display: flex; align-items: center; }
.sf-logo img { max-height: 58px; max-width: 170px; object-fit: contain; animation: sfFloat 4s ease-in-out infinite; }
.sf-logo.ds { justify-content: flex-end; } .sf-logo.ds img { animation-delay: -2s; }
.sf-title { text-align: center; line-height: 1.15; }
.sf-title small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #ee6a12; }
.sf-title b { display: block; font-size: 26px; font-weight: 900; letter-spacing: .04em; background: linear-gradient(90deg, #c2410c, #ee6a12, #7c3aed, #2563eb); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: pbGrad 5s ease infinite; }
.sf-no { display: inline-block; margin-top: 6px; font: 800 14px ui-monospace, Menlo, monospace; color: #b4500c; background: #fff4ea; border: 1px solid #fed7aa; border-radius: 999px; padding: 3px 12px; letter-spacing: .04em; }
.sf-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.sf-meta div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 8px 12px; }
.sf-meta small, .sf-box small, .sf-pays > small { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.sf-meta b { font-size: 14px; }
.sf-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-box { border-radius: 14px; padding: 12px 14px; background: linear-gradient(135deg, #f5f3ff, #ede9fe); border: 1px solid #ddd6fe; display: flex; flex-direction: column; gap: 2px; }
.sf-box.inv { background: linear-gradient(135deg, #ecfeff, #e0f2fe); border-color: #bae6fd; }
.sf-box small svg { width: 14px; height: 14px; }
.sf-box b { font-size: 15px; } .sf-box span { font-size: 12px; color: #475569; }
.sf-lines { margin-top: 14px; border-radius: 12px; overflow: auto; border: 1px solid #e2e8f0; max-height: 360px; }
.sf-lines table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sf-lines th { position: sticky; top: 0; background: #1d2027; color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; text-align: left; padding: 9px 10px; border-bottom: 3px solid #ee6a12; }
.sf-lines td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; animation: sfRow .4s both; animation-delay: var(--d); }
.sf-lines tr:nth-child(even) td { background: #fafafa; }
.sf-lines td small { color: #64748b; }
.sf-lines .r { text-align: right; white-space: nowrap; } .sf-lines .c { text-align: center; width: 44px; }
.sf-bottom { display: grid; grid-template-columns: 1fr minmax(260px, 340px); gap: 14px; margin-top: 14px; align-items: start; }
.sf-pays { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.sf-pays div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed #e2e8f0; }
.sf-pays p { margin: 6px 0 0; color: #64748b; }
.sf-tot { border-radius: 14px; overflow: hidden; border: 1px solid #e2e8f0; font-size: 13.5px; }
.sf-tot div { display: flex; justify-content: space-between; padding: 7px 14px; border-bottom: 1px solid #f1f5f9; }
.sf-tot .big { background: linear-gradient(135deg, #1d2027, #334155); color: #fff; font-size: 16px; padding: 11px 14px; }
.sf-tot .ok b { color: #16a34a; } .sf-tot .due b { color: #dc2626; }
.sf-yazi { display: block; margin-top: 10px; font-size: 12px; color: #64748b; }
.sf-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 10px; border-top: 2px dashed #fed7aa; font-size: 12px; color: #64748b; }
.sf-stamp { position: absolute; left: 64px; bottom: 108px; z-index: 3; transform: rotate(-14deg); border: 5px double #16a34a; color: #16a34a; border-radius: 16px; padding: 8px 26px; text-align: center; background: rgba(240,253,244,.6);
  animation: sfStamp .6s cubic-bezier(.2,1.4,.4,1) .35s both; pointer-events: none; mix-blend-mode: multiply; }
.sf-stamp b { display: block; font-size: 40px; font-weight: 900; letter-spacing: .14em; line-height: 1; }
.sf-stamp small { display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; margin-top: 4px; }
.sf-stamp.cancel { border-color: #dc2626; color: #dc2626; background: rgba(254,242,242,.6); }
@keyframes sfIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
@keyframes sfRow { from { opacity: 0; transform: translateX(-8px); } }
@keyframes sfFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes sfStamp { 0% { opacity: 0; transform: rotate(-14deg) scale(2.6); } 70% { opacity: 1; transform: rotate(-14deg) scale(.92); } 100% { opacity: 1; transform: rotate(-14deg) scale(1); } }
@media (max-width: 700px) {
  .sform { padding: 0 14px 14px; } .sf-band { margin: 0 -14px; }
  .sf-head { grid-template-columns: 1fr 1fr; } .sf-title { grid-column: 1 / -1; order: 3; } .sf-logo img { max-height: 40px; max-width: 120px; }
  .sf-meta { grid-template-columns: 1fr 1fr; } .sf-parties, .sf-bottom { grid-template-columns: 1fr; }
  .sf-stamp { left: 24px; bottom: 60px; } .sf-stamp b { font-size: 28px; }
  .sf-modal .body { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .sform, .sf-band, .sf-title b, .sf-logo img, .sf-lines td, .sf-stamp { animation: none !important; } }
@media print {
  body.printing-sf .modal-bg { display: none !important; }
  body.printing-sf .sf-print-host { position: absolute; inset: 0 auto auto 0; width: 100%; }
  body.printing-sf .sform { box-shadow: none; border-radius: 0; animation: none; }
  body.printing-sf .sf-lines { max-height: none; overflow: visible; }
  body.printing-sf .sf-lines td, body.printing-sf .sf-stamp { animation: none; }
  .sform * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.sf-modal .body, .sform { min-width: 0; }
.sf-lines table { min-width: 480px; }
@media print { body.printing-sf .sf-lines table { min-width: 0; } }
.modal.sf-modal { min-width: 0; max-width: min(1040px, calc(100vw - 16px)); }

/* ---- Sipariş listesi v2: metalik başlık, kart satırlar, ayrışan tahsilat/durum ---- */
.ord2-wrap { border: 0; background: transparent; overflow: auto; }
table.ord2 { border-collapse: separate; border-spacing: 0 8px; margin-top: -8px; }
table.ord2 thead th { position: relative; color: #1e293b; font-weight: 800; letter-spacing: .06em; text-shadow: 0 1px 0 rgba(255,255,255,.8); border: 0; border-bottom: 3px solid #ee6a12; padding-top: 13px; padding-bottom: 13px;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%) fixed, linear-gradient(180deg, #f8fafc 0%, #dfe4ea 42%, #b9c3cf 52%, #d6dce4 78%, #eef1f5 100%);
  background-size: 250% 100%, 100% 100%; animation: metalSheen 7s ease-in-out infinite; }
table.ord2 thead th:first-child { border-radius: 14px 0 0 14px; } table.ord2 thead th:last-child { border-radius: 0 14px 14px 0; }
table.ord2 thead th input { accent-color: #ee6a12; }
@keyframes metalSheen { 0%, 100% { background-position: 120% 0, 0 0; } 50% { background-position: -20% 0, 0 0; } }
table.ord2 th.c, table.ord2 td.c { text-align: center; }
table.ord2 tbody td { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 12px; padding-bottom: 12px; vertical-align: middle; transition: background .15s; }
table.ord2 tbody td:first-child { border-left: 1px solid var(--line); border-radius: 14px 0 0 14px; box-shadow: inset 5px 0 0 var(--acc, #94a3b8); padding-left: 14px; }
table.ord2 tbody td:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
table.ord2 tbody tr { animation: ordIn .35s both; }
table.ord2 tbody tr:nth-child(2) { animation-delay: 30ms; } table.ord2 tbody tr:nth-child(3) { animation-delay: 60ms; } table.ord2 tbody tr:nth-child(4) { animation-delay: 90ms; } table.ord2 tbody tr:nth-child(5) { animation-delay: 120ms; }
table.ord2 tbody tr:nth-child(6) { animation-delay: 150ms; } table.ord2 tbody tr:nth-child(7) { animation-delay: 180ms; } table.ord2 tbody tr:nth-child(8) { animation-delay: 210ms; } table.ord2 tbody tr:nth-child(9) { animation-delay: 240ms; } table.ord2 tbody tr:nth-child(10) { animation-delay: 270ms; }
@keyframes ordIn { from { opacity: 0; transform: translateY(6px); } }
table.ord2 tbody tr:hover td { background: #fff8f1; }
table.ord2 tr.st-warn { --acc: #f97316; } table.ord2 tr.st-info { --acc: #2563eb; } table.ord2 tr.st-violet { --acc: #7c3aed; } table.ord2 tr.st-good { --acc: #16a34a; } table.ord2 tr.st-gray { --acc: #94a3b8; }
table.ord2 tbody tr.ds-ok:not(.dup) td { background: #ecfdf3; border-color: #bbf7d0; }
table.ord2 tbody tr.ds-ok:not(.dup) td:first-child { box-shadow: inset 5px 0 0 #22c55e; }
table.ord2 tbody tr.ds-ok:not(.dup):hover td { background: #dcfce7; }
table.ord2 tbody tr.dup td { background: #fef2f2; } table.ord2 tbody tr.dup td:first-child { box-shadow: inset 5px 0 0 var(--bad); }
table.ord2 .odate { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); font-size: 12px; margin: 3px 0; }
table.ord2 .odate svg { width: 12px; height: 12px; }
.advrow { display: flex; gap: 10px; align-items: flex-start; }
.avat { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: #fff; letter-spacing: .02em;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.45), transparent 45%), var(--av); box-shadow: 0 4px 10px color-mix(in srgb, var(--av) 40%, transparent), inset 0 -2px 0 rgba(0,0,0,.15); }
table.ord2 .advf a { font-weight: 700; }
.qbub { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 19px; font-weight: 900; font-size: 15px; color: #334155;
  background: linear-gradient(180deg, #f8fafc, #e2e8f0); border: 1px solid #cbd5e1; box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(15,23,42,.08); }
.envc { display: block; margin-top: 4px; font-size: 11px; font-weight: 700; color: #15803d; }
table.ord2 .otot { font-size: 15px; }
table.ord2 .okar { display: inline-block; margin-top: 3px; font-size: 11.5px; font-weight: 800; color: #15803d; background: #dcfce7; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
/* Tahsilat: dolu renkli hap + ilerleme */
.ppill { display: inline-flex; flex-direction: column; gap: 4px; min-width: 128px; }
.ppill .pp-l { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; color: #fff; font-weight: 800; font-size: 12px; padding: 4px 11px 4px 8px; border-radius: 999px; box-shadow: 0 3px 8px rgba(0,0,0,.12); white-space: nowrap; }
.ppill .pp-l svg { width: 13px; height: 13px; }
.ppill .pp-bar { display: block; height: 6px; border-radius: 6px; background: #e2e8f0; overflow: hidden; }
.ppill .pp-bar i { display: block; height: 100%; border-radius: 6px; }
.ppill small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.ppill.p-bad .pp-l { background: linear-gradient(135deg, #f43f5e, #dc2626); } .ppill.p-bad .pp-bar i { background: #dc2626; }
.ppill.p-warn .pp-l { background: linear-gradient(135deg, #22d3ee, #0891b2); } .ppill.p-warn .pp-bar i { background: linear-gradient(90deg, #22d3ee, #0891b2); }
.ppill.p-good .pp-l { background: linear-gradient(135deg, #4ade80, #16a34a); } .ppill.p-good .pp-bar i { background: #16a34a; }
.ppill.p-info .pp-l { background: linear-gradient(135deg, #818cf8, #4f46e5); } .ppill.p-info .pp-bar i { background: #4f46e5; }
.ppill.part .pp-bar i { background-size: 16px 16px; background-image: linear-gradient(45deg, rgba(255,255,255,.35) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.35) 50%, rgba(255,255,255,.35) 75%, transparent 75%), linear-gradient(90deg, #22d3ee, #0891b2); animation: ppStripe 1s linear infinite; }
@keyframes ppStripe { to { background-position: 16px 0, 0 0; } }
/* Durum: açık zeminli çip + 4 adım noktası */
.schip { display: inline-flex; flex-direction: column; gap: 5px; padding: 6px 11px; border-radius: 12px; border: 1.5px solid; min-width: 118px; }
.schip .sc-l { font-size: 12px; font-weight: 800; white-space: nowrap; }
.schip .sc-dots { display: flex; gap: 4px; } .schip .sc-dots i { flex: 1; height: 5px; border-radius: 3px; background: currentColor; opacity: .18; }
.schip .sc-dots i.on { opacity: 1; }
.schip.s-warn { color: #c2410c; background: #fff7ed; border-color: #fdba74; }
.schip.s-info { color: #1d4ed8; background: #eff6ff; border-color: #93c5fd; }
.schip.s-violet { color: #6d28d9; background: #f5f3ff; border-color: #c4b5fd; }
.schip.s-good { color: #15803d; background: #f0fdf4; border-color: #86efac; }
.schip.s-gray { color: #475569; background: #f1f5f9; border-color: #cbd5e1; }
@media (prefers-reduced-motion: reduce) { table.ord2 thead th, table.ord2 tbody tr, .ppill.part .pp-bar i { animation: none !important; } }

table.ord2 td.psc { white-space: nowrap; } table.ord2 td.psc .schip { margin-top: 7px; }
table.ord2 td.advf { min-width: 120px; }
.ftog .ftxt { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; line-height: 1.2; }
table.ord2 td.psc .ppill, table.ord2 td.psc .schip { display: flex; width: 126px; min-width: 0; box-sizing: border-box; }
table.ord2 th, table.ord2 td { padding-left: 6px; padding-right: 6px; }
@media (max-width: 1200px) { table.ord2 .avat { display: none; } }
.btn.campbtn { color: #fff; border: 0; background: linear-gradient(135deg, #8b5cf6, #6d28d9 55%, #ee6a12); background-size: 200% 100%; animation: pbGrad 5s ease infinite; box-shadow: 0 6px 16px rgba(109,40,217,.35); }
.btn.campbtn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.campbtn svg { color: #fff; }

.rpt-kpi.okpi.odk { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .rpt-kpi.okpi.odk { grid-template-columns: 1fr 1fr; } .rpt-kpi.okpi.odk > div { grid-column: auto !important; } }
.odacts { display: inline-flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: nowrap; }
.odacts .btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: #fff; border: 0; font-weight: 700; box-shadow: 0 4px 10px rgba(0,0,0,.14); transition: transform .15s, filter .15s; }
.odacts .btn svg { width: 14px; height: 14px; color: #fff; }
.odacts .btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.odacts .oda-e { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.odacts .oda-p { background: linear-gradient(135deg, #f97316, #ea580c); }
table.odt td { vertical-align: middle; }
table.odt tfoot td { background: linear-gradient(180deg, #f8fafc, #eef2f7); border-top: 2px solid #1d2027; padding-top: 10px; padding-bottom: 10px; font-size: 14px; }
table.odt tfoot tr.sub td { border-top: 1px dashed #cbd5e1; background: #fff; font-size: 12.5px; color: var(--ink-3); }
table.odt tfoot tr:last-child td.r b { color: #1d4ed8; font-size: 15px; }
.sf-box.inv.nof { background: linear-gradient(135deg, #fffbeb, #fef3c7); border-color: #fcd34d; } .sf-box.inv.nof small { color: #b45309; }
/* Sipariş formu alt düğmeleri: renkli + hareketli karakter */
.btn.sfb { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; color: #fff; border: 0; font-weight: 800; padding: 8px 18px 8px 12px; border-radius: 14px;
  background-size: 200% 100%; animation: pbGrad 5s ease infinite; box-shadow: 0 8px 18px rgba(0,0,0,.18); transition: transform .15s, filter .15s; }
.btn.sfb:hover { transform: translateY(-2px); filter: brightness(1.08); }
.btn.sfb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 48%, transparent 66%); transform: translateX(-120%); animation: kshine 4s ease-in-out infinite; pointer-events: none; }
.btn.sfb svg { color: #fff; }
.btn.sfb .bchar { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); animation: kbob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
.btn.sfb-p .bchar { animation-delay: -1.2s; }
.btn.sfb-d { background-image: linear-gradient(135deg, #8b5cf6, #6d28d9, #a855f7); }
.btn.sfb-p { background-image: linear-gradient(135deg, #0ea5e9, #2563eb, #06b6d4); }
.btn.sfb-k { background-image: linear-gradient(135deg, #f97316, #ea580c, #f59e0b); padding-left: 14px; }
.btn.sfb-k svg { width: 18px; height: 18px; }
@media (prefers-reduced-motion: reduce) { .btn.sfb, .btn.sfb::after, .btn.sfb .bchar { animation: none !important; } }
.rpt-kpi.okpi.tkpi { margin: 18px 0 0; }
/* Bağlantı kutuları: müşavir mor, firma mavi, sipariş turuncu, tutar yeşil */
.chips .chip.c-adv, .chips .chip.c-cus, .chips .chip.c-ord, .chips .chip.c-pay { border: 1px solid; font-weight: 700; transition: transform .15s, box-shadow .15s; }
.chips .chip.c-adv { color: #6d28d9; background: linear-gradient(135deg, #f5f3ff, #ede9fe); border-color: #c4b5fd; }
.chips .chip.c-cus { color: #0369a1; background: linear-gradient(135deg, #f0f9ff, #e0f2fe); border-color: #7dd3fc; }
.chips .chip.c-ord { color: #c2410c; background: linear-gradient(135deg, #fff7ed, #ffedd5); border-color: #fdba74; font-family: ui-monospace, Menlo, monospace; }
.chips .chip.c-pay { color: #15803d; background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-color: #86efac; }
.chips .chip.c-adv svg, .chips .chip.c-cus svg, .chips .chip.c-ord svg, .chips .chip.c-pay svg { color: currentColor; }
.chips a.chip:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.1); }

.odacts .btn .nolink { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: #ea580c; font-size: 10px; font-weight: 900; }
.fsec.s-purple { border-color: #7c3aed; } .fsec.s-purple h4 { color: #7c3aed; }

/* Tami link eşleşme rozetleri */
.plm { margin-top: 6px; min-height: 0; }
.plm .badge, .badge.tlb { white-space: normal; }
.plm small, .badge.tlb small { font-weight: 600; opacity: .85; }

/* Mali müşavirler: siparişsiz müşavir */
.rank .it.noord { background: linear-gradient(90deg, rgba(220,38,38,.12), rgba(245,158,11,.06)); border-color: rgba(220,38,38,.45); box-shadow: inset 5px 0 0 #dc2626; }
.nsv { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 3px 11px 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; color: #fff; letter-spacing: .02em; white-space: nowrap; vertical-align: 1px;
  background: linear-gradient(135deg, #ef4444, #b91c1c); box-shadow: 0 0 0 0 rgba(220,38,38,.55); animation: nsv-pulse 1.8s ease-out infinite; }
.nsv svg { width: 13px; height: 13px; animation: a-swing 1.4s ease-in-out infinite; transform-origin: 50% 20%; }
@keyframes nsv-pulse { 0% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); } 70% { box-shadow: 0 0 0 9px rgba(220,38,38,0); } 100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); } }
@media (prefers-reduced-motion: reduce) { .nsv, .nsv svg { animation: none; } }

/* Ana ekran: sipariş bekleyen müşavir kutusu */
.stat.s-bad { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.stat .sb2 { display: inline; font-size: 15px; font-weight: 900; margin: 0; }

/* Mali müşavirler filtresi */
.adv-flt { align-items: center; }
.adv-flt .bseg button i { font-style: normal; font-weight: 900; background: rgba(255,255,255,.3); border-radius: 999px; padding: 0 7px; margin-left: 4px; }
#advm .b-cnt { --bc: #7c3aed; } #advm .b-takip { --bc: #ea580c; } #advm .b-yok { --bc: #dc2626; }
#advm button:not(.on) i { background: color-mix(in srgb, var(--bc) 15%, transparent); }

/* Ödeme yazısı gönderim takibi */
.ltr-ok { color: #15803d; font-weight: 800; } .ltr-ok i { font-style: normal; font-weight: 600; opacity: .8; }
.ltr-no { color: #b45309; font-weight: 700; }
.ltr-new { display: inline-block; margin-left: 4px; padding: 0 8px; border-radius: 999px; background: #f59e0b; color: #fff; font-weight: 800; font-size: 11px; animation: nsv-pulse 1.8s ease-out infinite; }
.ltr-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 16px; border-radius: 14px; border: 1px solid; }
.ltr-bar > div { flex: 1; min-width: 220px; } .ltr-bar b { display: block; } .ltr-bar small { color: var(--ink-2); }
.ltr-bar .lb-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 18px; flex: none; }
.ltr-bar.ok { background: #f0fdf4; border-color: #86efac; } .ltr-bar.ok .lb-ic { background: #16a34a; } .ltr-bar.ok b { color: #15803d; }
.ltr-bar.no { background: #fffbeb; border-color: #fcd34d; } .ltr-bar.no .lb-ic { background: #d97706; } .ltr-bar.no b { color: #b45309; }
.ltr-bar.new { background: #fff7ed; border-color: #fdba74; } .ltr-bar.new .lb-ic { background: #ea580c; animation: nsv-pulse 1.8s ease-out infinite; } .ltr-bar.new b { color: #c2410c; }
:root[data-theme="dark"] .ltr-bar { background: var(--card-2); }
#advm .b-yazi { --bc: #0d9488; }

/* Müşavir kartı: Bilgiler kutusu geniş, e-posta tek satır */
@media (min-width: 1101px) { .grid.g4.adv-info { grid-template-columns: minmax(0,1.6fr) repeat(3, minmax(0,1fr)); } }
.adv-info .ln { gap: 10px; }
.adv-info .ln > span { white-space: nowrap; flex: none; }
.adv-info .ln.em b { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.adv-info .ln.em a { color: inherit; }

/* ------------------------------------------------ İstatistik */
.ist { display: grid; gap: 12px; }
.ist-hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; padding: 26px 28px; border-radius: 22px; color: #fff;
  background: linear-gradient(120deg, #0f172a, #4c1d95 45%, #c2410c 100%); background-size: 200% 200%; animation: ihg 12s ease-in-out infinite; box-shadow: 0 18px 40px rgba(76,29,149,.3); }
@keyframes ihg { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ist-hero small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .2em; opacity: .8; }
.ist-hero h2 { font-size: 30px; margin: 4px 0; } .ist-hero p { margin: 0; opacity: .85; max-width: 420px; }
.ih-r { text-align: right; position: relative; z-index: 1; } .ih-r b { display: block; font-size: clamp(28px, 3.4vw, 44px); font-weight: 900; line-height: 1.1; margin: 4px 0; text-shadow: 0 4px 18px rgba(0,0,0,.3); }
.ih-r span { font-size: 13px; opacity: .85; }
.ist-hero .ib { position: absolute; border-radius: 50%; background: rgba(255,255,255,.08); animation: ibf 9s ease-in-out infinite; }
.ist-hero .b1 { width: 220px; height: 220px; right: -60px; top: -90px; } .ist-hero .b2 { width: 120px; height: 120px; left: 38%; bottom: -60px; animation-delay: -3s; } .ist-hero .b3 { width: 60px; height: 60px; left: 22%; top: 12px; animation-delay: -6s; }
@keyframes ibf { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-14px,12px) scale(1.12); } }
.ist-head, .ist-row { display: grid; grid-template-columns: 56px minmax(0,1fr) 110px 190px; gap: 14px; align-items: center; }
.ist-head { padding: 0 18px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ist-head .r, .ir-n, .ir-v { text-align: right; }
.ist-row { padding: 12px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); border-left: 6px solid var(--rc); cursor: pointer;
  opacity: 0; transform: translateY(14px); transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .5s, box-shadow .2s; }
.ist.go .ist-row { opacity: 1; transform: none; }
.ist.go .ist-row:nth-of-type(2) { transition-delay: .08s; } .ist.go .ist-row:nth-of-type(3) { transition-delay: .16s; } .ist.go .ist-row:nth-of-type(4) { transition-delay: .24s; } .ist.go .ist-row:nth-of-type(5) { transition-delay: .32s; }
.ist-row:hover { box-shadow: 0 10px 26px color-mix(in srgb, var(--rc) 30%, transparent); }
.ist-row .ir-ch { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--rc) 14%, transparent); }
.ist-row .ir-ch svg { width: 44px; height: 44px; }
.ir-t b { display: block; font-size: 15px; } .ir-t small { color: var(--ink-3); font-size: 12px; }
.ir-bar { height: 7px; border-radius: 99px; background: var(--bg-2); margin-top: 7px; overflow: hidden; }
.ir-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--rc), color-mix(in srgb, var(--rc) 55%, #fff)); transition: width 1.4s cubic-bezier(.2,.8,.2,1) .3s; }
.ist.go .ir-bar i { width: var(--w); }
.ir-n b, .ir-v b { display: block; font-size: 22px; font-weight: 900; color: var(--rc); white-space: nowrap; } .ir-v b { font-size: 19px; }
.ir-n small, .ir-v small { color: var(--ink-3); font-size: 11px; }
.r-adv { --rc: #7c3aed; } .r-all { --rc: #2563eb; } .r-ord { --rc: #16a34a; } .r-no { --rc: #dc2626; }
.ist-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 22px; border-radius: 20px; color: #fff;
  background: linear-gradient(135deg, #16a34a, #0d9488 60%, #0369a1); box-shadow: 0 14px 30px rgba(13,148,136,.35); position: relative; overflow: hidden; }
.ist-total::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.3) 48%, transparent 66%); transform: translateX(-120%); animation: kshine 4.5s ease-in-out infinite; }
.it-l { display: flex; align-items: center; gap: 12px; } .it-l svg { width: 34px; height: 34px; padding: 8px; box-sizing: content-box; border-radius: 14px; background: rgba(255,255,255,.2); }
.it-l b { display: block; font-size: 16px; letter-spacing: .08em; } .it-l small { opacity: .9; }
.ist-total > b { font-size: clamp(26px, 3vw, 38px); font-weight: 900; white-space: nowrap; }
.ist-cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.ist-cards .ic { position: relative; overflow: hidden; border-radius: 22px; padding: 18px 18px 16px; color: #fff; cursor: pointer; min-height: 180px; box-shadow: 0 12px 28px rgba(15,23,42,.18); animation: icf 6s ease-in-out infinite; }
.ist-cards .ic:nth-child(2) { animation-delay: -2s; } .ist-cards .ic:nth-child(3) { animation-delay: -4s; cursor: default; }
@keyframes icf { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.ic-tah { background: linear-gradient(135deg, #0ea5e9, #1d4ed8); } .ic-ode { background: linear-gradient(135deg, #8b5cf6, #6d28d9); } .ic-net { background: linear-gradient(135deg, #f59e0b, #c2410c); }
.ist-cards .ic > svg { position: absolute; right: 10px; bottom: 8px; width: 70px; height: 70px; opacity: .95; }
.ist-cards .ic small { display: block; font-size: 12.5px; font-weight: 800; opacity: .95; }
.ist-cards .ic > b { display: block; font-size: clamp(22px, 2.2vw, 30px); font-weight: 900; margin: 6px 0 10px; white-space: nowrap; }
.ist-cards .ic em { display: block; font-style: normal; font-size: 11.5px; opacity: .9; max-width: calc(100% - 80px); margin-top: 8px; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#fff calc(var(--p) * 1%), rgba(255,255,255,.22) 0); animation: rgp 1.6s ease-out both; }
.ring span { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,23,42,.35); font-weight: 900; font-size: 12.5px; }
@property --p { syntax: '<number>'; inherits: false; initial-value: 0; }
@keyframes rgp { from { --p: 0; } }
@media (max-width: 1000px) { .ist-cards { grid-template-columns: 1fr; } .ist-head { display: none; } .ist-row { grid-template-columns: 48px minmax(0,1fr); } .ir-n, .ir-v { text-align: left; grid-column: 2; } .ih-r { text-align: left; } }
@media (prefers-reduced-motion: reduce) { .ist-hero, .ist-cards .ic, .ist-total::before { animation: none; } }
.ist-row .ir-ch .kchar { position: static; margin: 0; width: 44px; height: 44px; }
.ist-cards .ic .kchar { left: auto; right: 14px; top: auto; bottom: 14px; margin: 0; width: 76px; height: 76px; }
.r-exp { --rc: #ea580c; }

/* Datasoft aktarım ajanı */
.btn.ds { background: #fff; border-color: #c7d2fe; color: #1e3a8a; }
.ds-cmd { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 12px 14px; font-size: 12.5px; }
.ds-cmd b { display: block; color: #93c5fd; font-size: 12px; margin-bottom: 6px; }
.ds-cmd code { display: block; font-family: ui-monospace, Consolas, monospace; word-break: break-all; color: #fde68a; }
.ds-cmd small { display: block; margin-top: 6px; color: #94a3b8; }
.ds-cmd small code { display: inline; color: #e2e8f0; }
.ds-kur { background: #f1f5f9; border: 1px solid var(--line, #e2e8f0); border-radius: 10px; padding: 10px; font-size: 12px; white-space: pre-wrap; word-break: break-all; margin: 4px 0 0; }
.aj-st { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; background: #fef2f2; border: 1px solid #fecaca; }
.aj-st.on { background: #f0fdf4; border-color: #bbf7d0; }
.aj-st .dot { width: 12px; height: 12px; border-radius: 50%; background: #dc2626; flex: none; box-shadow: 0 0 0 0 rgba(220,38,38,.5); animation: ajp 1.8s infinite; }
.aj-st.on .dot { background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.5); }
.aj-st small { display: block; color: var(--muted, #64748b); }
@keyframes ajp { 0% { box-shadow: 0 0 0 0 rgba(100,116,139,.45); } 70% { box-shadow: 0 0 0 10px rgba(100,116,139,0); } 100% { box-shadow: 0 0 0 0 rgba(100,116,139,0); } }
.akt-key input { flex: 1; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.akt-adv summary { cursor: pointer; font-weight: 600; color: var(--brand, #4f46e5); }
.akt-h td { vertical-align: top; }
.akt-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0 0 12px; }
.akt-sum > div { background: #eef2ff; border-radius: 12px; padding: 10px 12px; }
.akt-sum b { display: block; font-size: 20px; color: #1e3a8a; }
.akt-sum small { color: var(--muted, #64748b); }
.akt-dlg .alert { margin: 0 0 12px; }
.akt-run { margin-top: 12px; border: 1px solid #c7d2fe; background: #f8faff; border-radius: 12px; padding: 12px 14px; }
.akt-run.ok { border-color: #bbf7d0; background: #f0fdf4; }
.akt-run.bad { border-color: #fecaca; background: #fef2f2; }
.akt-run p { margin: 8px 0 0; }
.akt-steps { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.akt-steps span { flex: 1; min-width: 120px; font-size: 12px; padding: 6px 8px; border-radius: 8px; background: #e2e8f0; color: #475569; text-align: center; }
.akt-steps span.done { background: #16a34a; color: #fff; }
.akt-steps span.now { background: #4f46e5; color: #fff; animation: aks 1.2s ease-in-out infinite alternate; }
@keyframes aks { from { opacity: .65; } to { opacity: 1; } }
@media (max-width: 900px) { .akt-g { grid-template-columns: 1fr; } }
