/* Mert Bilişim Destek Portalı — onaylanan önizleme tasarımı */
/* Layout: açık zeminde yüzen yan menü + yapışkan üst bar + bento ana sayfa. Mobilde çekmece menü.
   İmza öğe: destek hakları = delikli bilet koçanı. Mavi bilgi ve gezinme, turuncu yalnızca ana eylem. */
:root {
  --bg: #edf0f4; --surface: #fbfcfd; --surface-2: #f3f5f8; --surface-3: #e8ecf1; --line: #dde3ea; --line-2: #c9d1dc;
  --ink: #1b2433; --ink-2: #4b5667; --ink-3: #768296;
  --blue: #1f56c4; --blue-2: #17459f; --blue-soft: #e7edf9; --blue-ink: #1a4597;
  --orange: #e2661d; --orange-2: #c55513; --orange-soft: #fbeee4;
  --ok: #157a56; --ok-soft: #e3f2eb; --warn: #9a5c06; --warn-soft: #f9efdc; --bad: #b8352a; --bad-soft: #f9e9e7;
  --violet: #5a48c4; --violet-soft: #eeebfb; --note: #fbf5e2; --note-line: #e6d6a3;
  --navy: #1e2d47;
  --scrim: rgba(15, 23, 38, .5);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px -16px rgba(16, 24, 40, .16);
  --display: "Sora", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --r-xl: 18px; --r-lg: 14px; --r: 11px; --r-sm: 8px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b1018; --surface: #121925; --surface-2: #161f2d; --surface-3: #1b2536; --line: #222d3e; --line-2: #304056;
  --ink: #e8edf5; --ink-2: #b1bccc; --ink-3: #7f8ba0;
  --blue: #6aa1ff; --blue-2: #8db7ff; --blue-soft: #142544; --blue-ink: #9bbfff;
  --orange: #ff8a3d; --orange-2: #ffa262; --orange-soft: #3a2314;
  --ok: #4fd19a; --ok-soft: #0f2c21; --warn: #f0b75a; --warn-soft: #33270f; --bad: #ff8571; --bad-soft: #3a1713;
  --violet: #b3a1ff; --violet-soft: #241e48; --note: #2a2410; --note-line: #4a3f17; --scrim: rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .5); --navy: #2a3a57; color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #0b1018; --surface: #121925; --surface-2: #161f2d; --surface-3: #1b2536; --line: #222d3e; --line-2: #304056;
  --ink: #e8edf5; --ink-2: #b1bccc; --ink-3: #7f8ba0;
  --blue: #6aa1ff; --blue-2: #8db7ff; --blue-soft: #142544; --blue-ink: #9bbfff;
  --orange: #ff8a3d; --orange-2: #ffa262; --orange-soft: #3a2314;
  --ok: #4fd19a; --ok-soft: #0f2c21; --warn: #f0b75a; --warn-soft: #33270f; --bad: #ff8571; --bad-soft: #3a1713;
  --violet: #b3a1ff; --violet-soft: #241e48; --note: #2a2410; --note-line: #4a3f17; --scrim: rgba(0, 0, 0, .6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 3px rgba(0, 0, 0, .3), 0 14px 34px -14px rgba(0, 0, 0, .5); --navy: #2a3a57; color-scheme: dark }

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.2; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-size: 1.3rem; font-weight: 500; } h2 { font-size: 1.15rem; font-weight: 500; } h3 { font-size: 1rem; font-weight: 500; }
p { margin: 0; }
b, strong { font-weight: 600; }
a { color: var(--blue); text-decoration: none; cursor: pointer; font-weight: 500; }
a:hover { color: var(--blue-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); } .sm { font-size: .86rem; }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* İskelet */
.app { display: grid; grid-template-columns: 272px minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: 0; height: 100vh; padding: 14px 0 14px 14px; z-index: 40; }
.side-in { height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; overflow: hidden; }
.logo { display: flex; align-items: center; gap: 11px; padding: 20px 20px 16px; }
.logo-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(140deg, var(--blue), var(--blue-2)); display: grid; place-items: center; color: #fff; font: 600 1rem var(--display); position: relative; flex: none; }
.logo-mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2.5px solid var(--surface); }
.logo b { font: 500 1rem var(--display); display: block; letter-spacing: -.01em; }
.logo span span { font-size: .8rem; color: var(--ink-3); }
.nav { flex: 1; overflow-y: auto; padding: 4px 12px 12px; }
.nav h4 { margin: 16px 10px 6px; font: 500 .78rem var(--body); color: var(--ink-3); }
.nav h4:first-child { margin-top: 4px; }
.nav button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; border: 0; background: none; color: var(--ink-2); font-weight: 500; font-size: .93rem; text-align: left; cursor: pointer; }
.nav button svg { color: var(--ink-3); }
.nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav button[aria-current="page"] { background: var(--blue-soft); color: var(--blue-ink); }
.nav button[aria-current="page"] svg { color: var(--blue); }
.nav .count { margin-left: auto; background: var(--orange); color: #fff; font-size: .72rem; font-weight: 600; border-radius: 99px; padding: 1px 8px; }
.side-foot { border-top: 1px solid var(--line); padding: 14px 16px; display: grid; gap: 10px; }
.firm { display: flex; gap: 10px; align-items: center; min-width: 0; }
.firm b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.firm span { font-size: .8rem; color: var(--ink-3); }
.logout { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: var(--bad); font-weight: 600; padding: 6px 2px; cursor: pointer; width: fit-content; }

.col { min-width: 0; }
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 20px clamp(16px, 3vw, 48px); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top h1 { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; height: 40px; width: min(320px, 32vw); color: var(--ink-3); }
.search input { border: 0; background: none; outline: none; width: 100%; color: var(--ink); }
.icon-btn { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: var(--ink-2); flex: none; }
.icon-btn:hover { color: var(--blue); border-color: var(--line-2); }
.burger { display: none; }
.content { padding: 8px clamp(16px, 3vw, 48px) 72px; width: 100%; display: grid; gap: 24px; }
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 35; }

.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 500 .78rem var(--display); flex: none; background: var(--blue-soft); color: var(--blue-ink); }
.av.staff { background: var(--orange-soft); color: var(--orange-2); }

/* Kart */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; }
.card-h + .tw, .card-h + .rows, .card-h + .list { border-top: 1px solid var(--line); }
.card-b { padding: 4px 24px 24px; }
.card-b.top-line { border-top: 1px solid var(--line); padding-top: 20px; }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.intro p { color: var(--ink-2); }

/* Butonlar */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; font-weight: 600; font-size: .92rem; cursor: pointer; white-space: nowrap; }
.btn-p { background: var(--orange); color: #fff; box-shadow: 0 6px 16px -6px rgba(242, 107, 29, .6); } .btn-p:hover { background: var(--orange-2); }
.btn-b { background: var(--blue); color: #fff; } .btn-b:hover { background: var(--blue-2); }
.btn-s { background: var(--surface); border-color: var(--line-2); color: var(--ink); } .btn-s:hover { border-color: var(--blue); color: var(--blue); }
.btn-block { width: 100%; }

/* Rozetler */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-open { background: var(--blue-soft); color: var(--blue-ink); } .s-in_progress { background: var(--violet-soft); color: var(--violet); }
.s-waiting { background: var(--warn-soft); color: var(--warn); } .s-closed { background: var(--surface-3); color: var(--ink-2); }
.p-paid, .s-ok { background: var(--ok-soft); color: var(--ok); } .p-partial { background: var(--warn-soft); color: var(--warn); } .p-unpaid, .s-bad { background: var(--bad-soft); color: var(--bad); }

/* Ana sayfa bento */
.hello { font-size: 1.5rem; font-weight: 500; }
.bento { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
.money-b { padding: 6px 20px 20px; display: grid; gap: 18px; }
.money .k, .credits .k { font-size: .86rem; color: var(--ink-3); font-weight: 500; }
.big { font: 600 2.3rem/1.1 var(--display); letter-spacing: -.02em; margin: 4px 0 8px; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ba > div { display: grid; gap: 2px; background: var(--surface-2); border-radius: var(--r); padding: 12px 14px; }
.ba span { font-size: .84rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.ba b { font: 500 1.05rem var(--display); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.split { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: var(--bad-soft); overflow: hidden; }
.split span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }

.credits-b { padding: 6px 20px 20px; }
.credit-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.credit-h .big { margin: 4px 0 0; }
.credit-h .big small { font: 500 1rem var(--body); color: var(--ink-3); margin-left: 6px; letter-spacing: 0; }
.stubs { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; margin: 16px 0 14px; }
.stub { aspect-ratio: 3 / 4; max-width: 100%; border-radius: 7px; background: linear-gradient(170deg, var(--blue), var(--blue-2)); position: relative; display: grid; place-items: end center; padding-bottom: 5px; color: rgba(255, 255, 255, .85); font: 500 .62rem var(--display); }
.stub::before { content: ""; position: absolute; top: 20%; left: 50%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: var(--surface); }
.stub.reserved { background: linear-gradient(170deg, var(--orange), var(--orange-2)); }
.stub.used { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); }
.stub.used::before { background: var(--line-2); }
.legend { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: .84rem; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.action { display: flex; align-items: center; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.action .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.action.ok .ico { background: var(--ok-soft); color: var(--ok); } .action.bad .ico { background: var(--bad-soft); color: var(--bad); }
.action .txt { flex: 1; min-width: 220px; }
.action .txt b { display: block; }
.action .txt span { color: var(--ink-2); font-size: .92rem; }
.action .acts { display: flex; gap: 10px; flex-wrap: wrap; }
.contact { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; padding: 0 14px; min-height: 42px; font-weight: 600; user-select: all; }

.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }

/* Tablo */
.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: .8rem; color: var(--ink-3); font-weight: 500; padding: 12px 24px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 15px 24px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th.r, td.r { text-align: right; }
tbody tr.rl { cursor: pointer; } tbody tr.rl:hover td { background: var(--surface-2); }
.t { font-weight: 600; color: var(--ink); }
.empty { padding: 34px 20px; text-align: center; color: var(--ink-3); display: grid; gap: 10px; justify-items: center; }
.tot td { font-weight: 600; background: var(--surface-2); }

/* Talep satırları */
.rows { display: grid; }
.row { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 20px 14px 0; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; background: none; text-align: left; width: 100%; }
.row:last-child { border-bottom: 0; }
.row:hover { background: var(--surface-2); }
.row .bar { align-self: stretch; border-radius: 0 3px 3px 0; }
.row.pri-high .bar { background: var(--warn); } .row.pri-urgent .bar { background: var(--bad); }
.row .tt { font-weight: 600; color: var(--ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .meta { font-size: .84rem; color: var(--ink-3); display: flex; gap: 4px 12px; flex-wrap: wrap; margin-top: 2px; }

/* Liste kartları (cihaz, bakım, abonelik) */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.item { padding: 18px 20px; display: grid; gap: 12px; align-content: start; }
.item-h { display: flex; gap: 12px; align-items: flex-start; }
.item-h .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.item-h div { min-width: 0; flex: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; text-align: right; font-weight: 500; min-width: 0; }
.track { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.track span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }

/* Form */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .88rem; }
.field .hint { font-size: .83rem; color: var(--ink-3); }
.set-sec { margin: 26px 0 6px; font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.card-b.top-line > .set-grp:first-child > .set-sec { margin-top: 2px; }
.set-grp { margin: 0; }
.set-grp > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-radius: 8px; padding: 0 2px; }
.set-grp > summary::-webkit-details-marker { display: none; }
.set-grp > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin-right: 6px; flex: none; transition: transform .15s ease; }
.set-grp[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.set-grp > summary:hover { color: var(--ink-2); }
.set-tabs .btn { border-radius: 0; background: transparent; border: 0; border-bottom: 3px solid transparent; box-shadow: none; color: var(--ink-3); min-height: 38px; padding: 0 12px; }
.set-tabs .btn:hover { color: var(--ink); background: transparent; }
.set-tabs .btn-p { background: transparent; color: var(--ink); border-bottom-color: var(--orange); font-weight: 700; }
.set-tabs .btn-p:hover { background: transparent; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=datetime-local], input[type=time], input[type=search], input[type=tel], input[type=url], select, textarea { width: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 13px; min-height: 44px; }
.content input:focus, .content select:focus, .content textarea:focus, .login input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
textarea { min-height: 120px; resize: vertical; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: .9rem; color: var(--ink-2); }
.steps li b { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; font: 500 .8rem var(--display); }
.steps li strong { color: var(--ink); display: block; }

/* Talep detayı */
.progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.progress div { padding: 12px 16px; font-size: .86rem; color: var(--ink-3); display: flex; gap: 10px; align-items: center; min-width: 0; }
.progress div + div { border-left: 1px solid var(--line); }
.progress .dot2 { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; font-size: .7rem; color: #fff; }
.progress .done .dot2 { background: var(--blue); border-color: var(--blue); }
.progress .now .dot2 { border-color: var(--orange); background: var(--orange-soft); }
.progress .done, .progress .now { color: var(--ink); font-weight: 500; }
.chat { display: grid; gap: 16px; }
.bubble { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; max-width: 88%; }
.bubble.mine { margin-left: auto; grid-template-columns: minmax(0, 1fr) 36px; }
.bubble.mine .av { order: 2; }
.bubble .who { font-size: .82rem; color: var(--ink-3); margin-bottom: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.bubble.mine .who { justify-content: flex-end; }
.bubble .txt { background: var(--surface); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.mine .txt { background: var(--blue); color: #fff; border-color: var(--blue); border-radius: 16px 4px 16px 16px; }
.bubble.note .txt { background: var(--note); border-color: var(--note-line); color: var(--ink); }
.sys { text-align: center; font-size: .84rem; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.sys::before, .sys::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.composer { padding: 14px; display: grid; gap: 10px; }
.composer textarea { border: 0; padding: 4px; min-height: 70px; }
.composer textarea:focus { box-shadow: none !important; }
.composer .bar2 { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line-2); border-radius: 11px; padding: 11px 13px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.opt input { margin-top: 4px; accent-color: var(--blue); }
.confirm { border-radius: 11px; background: var(--orange-soft); padding: 12px 14px; display: grid; gap: 10px; font-size: .9rem; }
.crumb { font-size: .86rem; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.crumb a { color: var(--ink-3); font-weight: 500; }

/* Personel */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { padding: 18px 22px; min-width: 0; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi .k { font-size: .86rem; color: var(--ink-3); font-weight: 500; }
.kpi .v { font: 600 2rem var(--display); margin-top: 4px; letter-spacing: -.02em; }
.kpi.alert .v { color: var(--orange); }
.kpi .d { font-size: .84rem; color: var(--ink-3); margin-top: 2px; }
.sync { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; flex-wrap: wrap; }
.sync > svg { color: var(--ok); }
.sync > span { display: grid; line-height: 1.3; font-size: .9rem; }
.sync .btn { min-height: 36px; padding: 0 12px; font-size: .85rem; }
.dash { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.stack { display: grid; gap: 24px; min-width: 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; background: var(--surface-3); padding: 4px; border-radius: 11px; }
.tabs button { border: 0; background: none; padding: 6px 10px; border-radius: 8px; font-weight: 500; font-size: .85rem; color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.tabs button span { font-size: .74rem; color: var(--ink-3); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs button[aria-selected="true"] span { color: var(--blue); font-weight: 600; }
.tabs.flat { background: none; padding: 0 20px; border-radius: 0; gap: 18px; border-bottom: 1px solid var(--line); }
.tabs.flat button { border-radius: 0; padding: 4px 0 10px; }
.tabs.flat button[aria-selected="true"] { background: none; box-shadow: inset 0 -2px 0 var(--blue); color: var(--blue-ink); }
table.q th.stripe, table.q td.stripe { width: 4px; padding: 0; }
table.q tr.pri-high td.stripe { background: var(--warn); } table.q tr.pri-urgent td.stripe { background: var(--bad); }
table.q td, table.q th { padding-left: 14px; padding-right: 14px; }
.qt { display: block; max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.late { color: var(--bad); font-weight: 600; }
.who-cell { display: inline-flex; align-items: center; gap: 8px; }
.sm-av { width: 26px; height: 26px; font-size: .66rem; }
.claim { border: 1px dashed var(--orange); color: var(--orange-2); background: var(--orange-soft); font-weight: 600; font-size: .82rem; border-radius: 8px; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
.att > div { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.att > div.link { cursor: pointer; } .att > div.link:hover { background: var(--surface-2); }
.load { display: grid; padding: 6px 0 10px; border-top: 1px solid var(--line); }
.load > div { display: grid; grid-template-columns: 36px 110px minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 8px 20px; font-size: .9rem; }
.lbar, .cbar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: block; }
.lbar > span, .cbar > span { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.lbar.warn > span { background: var(--orange); }
.load b { text-align: right; }
.cats { display: grid; gap: 14px; }
.cats > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: .9rem; }
.cats .cbar { grid-column: 1 / -1; }
svg.chart { width: 100%; min-width: 440px; height: auto; display: block; }
svg.chart text { fill: var(--ink-3); font: 500 var(--fs, 11px) var(--body); }

/* Giriş */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; padding: 14px; gap: 14px; }
.login-side { background: linear-gradient(155deg, var(--blue-2), var(--blue) 60%, #3f86ff); color: #fff; border-radius: var(--r-xl); padding: 40px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; gap: 28px; overflow: hidden; }
.login-side .logo { padding: 0; } .login-side .logo-mark { background: rgba(255,255,255,.16); } .login-side .logo-mark::after { border-color: var(--blue-2); }
.login-side .logo span span { color: rgba(255,255,255,.75); }
.login-side h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600; max-width: 14ch; margin-top: auto; letter-spacing: -.025em; }
.login-side p { color: rgba(255,255,255,.82); max-width: 42ch; margin-top: 12px; }
.login-stub { display: flex; gap: 8px; margin-top: 26px; }
.login-stub .stub { width: 34px; flex: none; background: rgba(255,255,255,.95); color: var(--blue-2); }
.login-stub .stub::before { background: var(--blue); }
.login-stub .stub.used { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.login-stub .stub.used::before { background: rgba(255,255,255,.45); }
.login-form { display: grid; place-items: center; padding: 32px 20px; }
.login-form form { width: 100%; max-width: 370px; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 500; font-size: .9rem; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* Tablolar: masaüstünde tablo, mobilde düzenli satır kartı */
.c-amt { white-space: nowrap; font-weight: 600; }
.c-no b { font-weight: 600; }
table.mc td.c-tip .pill::before { display: none; }
.sumrow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sumrow > div { padding: 16px 20px; display: grid; gap: 4px; align-content: start; justify-items: start; min-width: 0; }
.sumrow > div + div { border-left: 1px solid var(--line); }
.sumrow span { font-size: .84rem; color: var(--ink-3); font-weight: 500; }
.sumrow b { font: 500 1.15rem var(--display); }
@media (max-width: 640px) {
  .sumrow { grid-template-columns: 1fr 1fr; }
  .sumrow > div:last-child { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr auto; align-items: center; }
  .sumrow > div:last-child span { grid-column: 1 / -1; }
  table.mc, table.mc tbody { display: block; }
  table.mc thead { display: none; }
  table.mc tr { display: grid; column-gap: 12px; row-gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.mc tr:last-child { border-bottom: 0; }
  table.mc td { padding: 0; border: 0; background: none !important; min-width: 0; text-align: left; }
  table.mc td[data-l] { font-size: .88rem; color: var(--ink); }
  table.mc td[data-l]::before { content: attr(data-l); display: block; font-size: .74rem; font-weight: 500; color: var(--ink-3); margin-bottom: 2px; }
  table.mc .c-no { line-height: 1.4; }
  table.mc .c-no div { margin-top: 2px; }
  table.mc .c-amt { text-align: right; font-size: 1rem; }
  table.mc .c-tip { justify-self: end; align-self: end; }
  table.mc .e { display: none; }

  table.inv tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 7.75rem; grid-template-areas: "no no amt" "date vade tip"; }
  table.inv .c-no { grid-area: no; } table.inv .c-amt { grid-area: amt; }
  table.inv .c-date { grid-area: date; } table.inv .c-vade { grid-area: vade; } table.inv .c-tip { grid-area: tip; }

  table.wo tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 7.75rem; grid-template-areas: "no no tip" "dev date ."; }
  table.wo .c-no { grid-area: no; } table.wo .c-tip { grid-area: tip; align-self: start; }
  table.wo .c-dev { grid-area: dev; } table.wo .c-date { grid-area: date; }

  table.stm tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 7.75rem; grid-template-areas: "no no amt" "date bal ."; }
  table.stm .c-no { grid-area: no; } table.stm .c-amt { grid-area: amt; }
  table.stm .c-date { grid-area: date; } table.stm .c-bal { grid-area: bal; }
}

@media (max-width: 1120px) { .cols, .dash { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 980px) { .bento, .two { grid-template-columns: 1fr; } .search { display: none; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); height: auto; padding: 0; transform: translateX(-105%); transition: transform .25s ease; }
  .side.open { transform: none; }
  .side-in { border-radius: 0 var(--r-xl) var(--r-xl) 0; border-left: 0; padding-top: env(safe-area-inset-top, 0px); }
  .burger { display: grid; }
  .top { top: 0; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
  .content { padding: 16px 16px 48px; gap: 16px; }
  .login { grid-template-columns: 1fr; min-height: 0; padding: 0; gap: 0; }
  .login-side { border-radius: 0; padding: 28px 20px; gap: 16px; } .login-side h2 { margin-top: 0; } .login-stub { display: none; }
  .hs { display: none; }
  .bubble { max-width: 100%; }
  .progress div { padding: 10px; font-size: .8rem; gap: 6px; }
  .hello { font-size: 1.3rem; }
  th, td { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 480px) {
  .g2 { grid-template-columns: 1fr; }
  .stubs { gap: 4px; }
  .big { font-size: 1.9rem; }
  .kpi { padding: 14px 16px; } .kpi .v { font-size: 1.6rem; }
  .load > div { grid-template-columns: 30px minmax(0, 1fr) 70px 20px; padding: 8px 16px; }
  .ba { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
@media (prefers-reduced-motion: no-preference) { .stub.just-used { animation: punch .6s ease; } @keyframes punch { 40% { transform: scale(.8) rotate(-5deg); } } }

/* Portal eklemeleri */
.flash { padding: 12px 16px; border-radius: 11px; font-weight: 500; border: 1px solid; }
.flash.ok { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.flash.bad { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.error { color: var(--bad); font-size: .84rem; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 14px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; font-size: .88rem; padding: 0 10px; color: var(--ink-2); }
.pager .current { background: var(--blue); color: #fff; border-color: var(--blue); }
.pager .disabled { color: var(--ink-3); }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline-form .field { margin: 0; flex: 1; min-width: 160px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .92rem; }
.check input { width: 18px; height: 18px; accent-color: var(--blue); }
details.more > summary { cursor: pointer; color: var(--blue); font-weight: 500; list-style: none; }
details.more > summary::-webkit-details-marker { display: none; }
.meter-row { display: grid; gap: 6px; }
.meter-row .mtop { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-2)); border-radius: 99px; }
.meter.low > span { background: var(--warn); } .meter.empty > span { background: var(--bad); }
.timer { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.timer > div { background: var(--surface-2); border-radius: var(--r); padding: 10px 12px; }
.timer b { display: block; font: 500 1.1rem var(--display); }
.timer span { font-size: .8rem; color: var(--ink-3); }
.events { display: grid; gap: 10px; font-size: .88rem; }
.events > div { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 10px; align-items: start; }
.code { font: 500 .8rem var(--display); background: var(--surface-3); border-radius: 7px; padding: 3px 0; text-align: center; }
.code.work { background: var(--violet-soft); color: var(--violet); } .code.wait { background: var(--warn-soft); color: var(--warn); }
.code.closed { background: var(--ok-soft); color: var(--ok); }
.badge-call { background: var(--orange-soft); color: var(--orange-2); }
.suggest { position: relative; }
.suggest-list { position: absolute; z-index: 20; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--line-2); border-radius: 11px; box-shadow: var(--shadow); max-height: 260px; overflow: auto; }
.suggest-list button { display: flex; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer; }
.suggest-list button:hover { background: var(--surface-2); }
@media (max-width: 640px) { .g3 { grid-template-columns: 1fr; } .timer { grid-template-columns: 1fr 1fr 1fr; } }
.tabs a.tab { padding: 6px 12px; border-radius: 8px; font-weight: 500; font-size: .86rem; color: var(--ink-2); text-decoration: none; }
.tabs a.tab.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.tabs a.tab span { font-size: .74rem; color: var(--ink-3); margin-left: 4px; }
.tabs a.tab.on span { color: var(--blue); font-weight: 600; }
.callbox { border-radius: 11px; padding: 14px; background: var(--orange-soft); display: grid; gap: 10px; }
.covbox { border-radius: 11px; padding: 12px 14px; font-size: .9rem; }
.covbox.ok { background: var(--ok-soft); color: var(--ok); } .covbox.call { background: var(--orange-soft); color: var(--orange-2); } .covbox.bad { background: var(--bad-soft); color: var(--bad); }

/* tablo içi form alanları */
td input[type=text], td input[type=number], td select { min-height: 38px; padding: 7px 10px; min-width: 76px; }
td select { min-width: 92px; }
.pill { white-space: nowrap; }

/* talep kaynağı etiketi */
.src { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink-2); }
.src-telefon { background: var(--surface-3); color: var(--navy); }
.src-whatsapp { background: #e3f7ea; color: #13803f; }
.src-panel { background: var(--blue-soft); color: var(--blue-ink); }
.src-eposta { background: #f1ecfe; color: #5b3cc4; }
.src-sosyal { background: #fde8f1; color: #b4236b; }
.src-form { background: var(--orange-soft); color: var(--orange-2); }

/* satır işlem menüsü */
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; cursor: pointer; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(15, 23, 42, .14); padding: 6px; display: grid; text-align: left; }
.menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; font-size: .88rem; background: none; border: 0; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.menu-list .danger { color: var(--bad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: .82rem; }

/* durum değiştir penceresi */
dialog.modal { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(15, 23, 42, .3); background: var(--surface); color: var(--ink); }
dialog.modal::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: inset 4px 0 0 var(--blue); }
.modal-h h3 { color: var(--ink); font-size: 1.05rem; }
.modal-h button { background: none; border: 0; color: var(--ink-3); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.modal-b { padding: 18px 20px 6px; }
.modal-f { display: flex; justify-content: space-between; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid var(--line); }
.sla-bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.sla-bar span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.sla-bar.warn span { background: var(--warn, #d97706); } .sla-bar.bad span { background: var(--bad); }

/* etiket solda, alan sağda form düzeni */
.frm { display: grid; gap: 14px; }
.frow { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 18px; align-items: start; }
.frow > label { font-weight: 600; font-size: .9rem; padding-top: 11px; }
.frow > label i { color: var(--bad); font-style: normal; }
.frow .hint { font-size: .82rem; color: var(--ink-3); display: block; margin-top: 4px; }
.chosen { display: flex; gap: 10px; align-items: center; min-height: 44px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface-2); }
.card-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r, 16px) var(--r, 16px); }
@media (max-width: 720px) { .frow { grid-template-columns: 1fr; gap: 6px; } .frow > label { padding-top: 0; } }

/* servise dönüştür */
.banner { display: flex; gap: 14px; padding: 16px 18px; background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 25%, transparent); border-left: 4px solid var(--blue); }
.banner .ico { color: var(--blue); flex: none; margin-top: 2px; }
.banner b { color: var(--blue-ink); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips > span:not(.src) { background: var(--surface); border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; font-size: .78rem; font-weight: 600; }
.conv { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0 32px; }
.conv .frow { grid-template-columns: 150px minmax(0, 1fr); }
.scopes { display: grid; gap: 8px; }
.scope { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 11px; cursor: pointer; }
.scope:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.scope input { margin-top: 3px; accent-color: var(--blue); }
.scope span { display: grid; gap: 2px; }
.scope em { font-style: normal; font-size: .72rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 99px; padding: 1px 8px; justify-self: start; }
.scope small { color: var(--ink-3); font-size: .8rem; }
.agr-sum { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); }
@media (max-width: 980px) { .conv { grid-template-columns: 1fr; } }

.acts-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-ok { background: var(--ok); color: #fff; border-color: transparent; }
.btn-ok:hover { filter: brightness(1.08); }
.btn-danger { background: var(--bad); color: #fff; border-color: transparent; }
.statusbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; }
.kv-wide { grid-template-columns: 130px minmax(0, 1fr); } .kv-wide dd { text-align: left; font-weight: 500; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 12px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.seg input:checked + span { background: var(--ok-soft); color: var(--ok); }
.seg label + label { border-left: 1px solid var(--line-2); }
.seg label:last-child input:checked + span { background: var(--warn-soft); color: var(--warn); }
.work { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.grp-row td { background: var(--surface-2); font-weight: 700; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); padding-top: 8px !important; padding-bottom: 8px !important; }

.conv > .frm { align-content: start; align-self: start; }
@media (max-width: 980px) { .conv { grid-template-columns: 1fr; } }

/* servis detay */
.svc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 14px; }
.svc-bar .svc-meta { margin-left: auto; font-size: .88rem; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.chip.dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.work { background: var(--blue-soft); color: var(--blue-ink); border-color: transparent; }
.chip.wait { background: #fff4dd; color: #9a6205; border-color: transparent; }
.pill.pri { font-size: .72rem; padding: 2px 9px; }
.pill.pri-high, .pill.pri-urgent { background: #fff4d6; color: #9a6205; }
.pill.pri-urgent { background: #fde8e8; color: var(--bad); }
.svc-tabs { margin: 0 0 16px; padding: 0 4px; overflow-x: auto; flex-wrap: nowrap; }
.svc-tabs button { white-space: nowrap; font-size: .9rem; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.svc-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.svc-kpi { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; text-align: left; font: inherit; color: inherit; cursor: default; }
button.svc-kpi { cursor: pointer; } button.svc-kpi:hover { border-color: var(--blue); }
.svc-kpi .k { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.svc-kpi .v { font: 600 1.6rem var(--display); line-height: 1.1; }
.svc-kpi .d { font-size: .78rem; color: var(--ink-3); }
.blue { color: var(--blue); } .ok { color: var(--ok); } .orange { color: var(--orange); }
.kv-left dd { text-align: left; }
.sla-track { height: 22px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.sla-track span { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 40px; background: #d99a2b; color: #2e1f05; font-size: .74rem; font-weight: 600; border-radius: 99px; }
.sla-track.bad span { background: var(--bad); color: #fff; }
.notes { display: grid; }
.note-i { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.note-i:last-child { border-bottom: 0; }
.note-i p { margin: 6px 0 0; white-space: pre-wrap; }
.note-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { display: inline-flex; padding: 2px 9px; border-radius: 99px; font-size: .72rem; font-weight: 600; background: var(--blue-soft); color: var(--blue-ink); }
.tag.k-tespit { background: #fff4dd; color: #9a6205; } .tag.k-bilgi { background: var(--surface-2); color: var(--ink-2); } .tag.ok { background: #e7f6ee; color: #12774a; }
.person { display: flex; align-items: center; gap: 10px; }
.ico-file { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; }
.checks > div { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.checks > div:last-child { border-bottom: 0; }
.checks .tick { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--line-2); background: var(--surface); color: #fff; font-weight: 600; cursor: pointer; display: grid; place-items: center; line-height: 1; }
.checks .done .tick { background: var(--ok); border-color: var(--ok); }
.checks .done .t { text-decoration: line-through; color: var(--ink-3); }
@media (max-width: 1100px) { .svc-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .svc-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .svc-bar .svc-meta { margin-left: 0; width: 100%; } }

/* marka logosu */
.brand-logo { display: grid; gap: 6px; padding: 22px 22px 14px; text-decoration: none; }
.brand-logo img { width: 100%; max-width: 200px; height: auto; display: block; }
.brand-logo .lg-dark { display: none; }
.brand-sub { font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-left: 2px; }
:root[data-theme="dark"] .lg-light { display: none; } :root[data-theme="dark"] .lg-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg-light { display: none; } :root:not([data-theme="light"]) .lg-dark { display: block; } }

/* Giriş ekranı (kurumsal) */
body.auth { background: var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.auth-brand { position: relative; overflow: hidden; color: #fff; background: linear-gradient(160deg, #0a2f57 0%, #0d4f91 55%, #1268b3 100%); padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.auth-brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, #1268b3 0 70%, #ec6a1f 70% 100%); }
.auth-net { position: absolute; width: min(62vw, 720px); right: -18%; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, .09); pointer-events: none; }
.auth-brand-in { position: relative; max-width: 560px; margin-block: auto; }
.auth-eyebrow { display: inline-block; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #ffb27a; margin-bottom: 18px; }
.auth-brand h1 { font: 600 clamp(1.9rem, 3.2vw, 2.9rem)/1.15 var(--display); letter-spacing: -.025em; margin: 0; }
.auth-lead { margin: 16px 0 0; font-size: 1.05rem; color: rgba(255, 255, 255, .82); max-width: 46ch; }
.auth-points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.auth-points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; color: rgba(255, 255, 255, .78); font-size: .93rem; }
.auth-points li span { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 600 .95rem var(--display); background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; }
.auth-points b { display: block; color: #fff; font-size: 1rem; margin-bottom: 2px; }
.auth-partner { position: relative; display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); max-width: 560px; }
.auth-partner .ak { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; padding: 4px; }
.auth-partner .ak img { width: 100%; height: auto; }
.auth-partner b { display: block; font-size: .95rem; } .auth-partner span { font-size: .84rem; color: rgba(255, 255, 255, .7); }
.auth-form { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px clamp(20px, 4vw, 64px) 24px; background: var(--surface); }
.auth-card { width: 100%; max-width: 420px; margin-block: auto; }
.auth-logo { width: 230px; height: auto; display: block; margin-bottom: 36px; }
.auth-card .lg-dark { display: none; }
.auth-card h2 { font: 600 1.6rem var(--display); letter-spacing: -.02em; margin: 0; }
.auth-card > p { margin: 8px 0 28px; }
.auth-card .field input { min-height: 50px; }
.auth-btn { min-height: 50px; font-size: 1rem; }



.auth-foot { font-size: .8rem; color: var(--ink-3); margin: 24px 0 0; }
:root[data-theme="dark"] .auth-card .lg-light { display: none; } :root[data-theme="dark"] .auth-card .lg-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .auth-card .lg-light { display: none; } :root:not([data-theme="light"]) .auth-card .lg-dark { display: block; } }
@media (max-width: 960px) {
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .auth-form { min-height: 100vh; padding-top: 40px; border-top: 4px solid #1268b3; }
}
@media (max-width: 480px) { .auth-logo { width: 190px; margin-bottom: 28px; } }
/* pano: geniş kuyruk, yan kartlar altta yan yana */
@media (max-width: 1700px) {
  .dash { grid-template-columns: 1fr; }
  .dash > .stack { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 1100px) { .dash > .stack { grid-template-columns: 1fr; } }

.auth-help { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.auth-help-t { font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.contact { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .15s, background .15s; }
.contact:hover { border-color: var(--blue); background: var(--blue-soft); }
.contact .ci { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.contact + .contact .ci { background: var(--orange-soft); color: var(--orange-2); }
.contact .cv { min-width: 0; display: grid; }
.contact small { font-size: .76rem; color: var(--ink-3); font-weight: 500; }
.contact b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.contact .ca { font-size: 1.4rem; line-height: 1; color: var(--ink-3); }
@media (max-width: 480px) {
  .contact { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .contact .ci { width: 36px; height: 36px; }
  .contact .ca { display: none; }
  .contact b { font-size: .84rem; overflow: visible; text-overflow: clip; }
}

/* tanım sayfaları */
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.page-lead { color: var(--ink-2); max-width: 80ch; font-size: .95rem; margin: 0; }
.type-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.type-card { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); }
.type-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.suffix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); overflow: hidden; }
.suffix input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; min-width: 0; flex: 1; }
.suffix span { display: grid; place-items: center; padding: 0 12px; font-size: .8rem; color: var(--ink-3); background: var(--surface-2); border-left: 1px solid var(--line); white-space: nowrap; }
.suffix:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.cat-list { border-top: 1px solid var(--line); }
.cat-row { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(0, 3fr) auto; gap: 24px; align-items: center; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cat-row:last-child { border-bottom: 0; }
.cat-row.off { opacity: .55; }
.cat-row h4 { margin: 0; font: 500 1rem var(--display); }
.cat-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.cat-prices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.price { display: grid; gap: 2px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.price .pt { font-size: .74rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.price b { font: 500 1.05rem var(--display); white-space: nowrap; }
.price .pu { font-size: .78rem; color: var(--ink-3); }
.price.empty b { color: var(--ink-3); }
dialog.modal.modal-lg { width: min(880px, calc(100vw - 32px)); }
.modal-h .x { color: var(--ink-3); font-size: 1.5rem; text-decoration: none; line-height: 1; }
.modal-b { max-height: calc(100vh - 200px); overflow-y: auto; }
.sec-t { font: 600 .78rem var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); margin: 18px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.modal-b .sec-t:first-child { margin-top: 4px; }
.price-edit, .rights { display: grid; gap: 8px; }
.pe-h, .pe-r { display: grid; grid-template-columns: 90px 1.1fr 1fr .9fr 1.2fr; gap: 10px; align-items: center; }
.pe-h { font-size: .74rem; font-weight: 600; color: var(--ink-3); padding: 0 2px; }
.pe-r { padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.pe-r select, .pe-r input { min-height: 40px; }
.right-r { display: grid; grid-template-columns: 110px 1fr 1.3fr 1fr; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--surface-2); }
.right-r input, .right-r select { min-height: 40px; }
.sla-wrap { padding: 0; }
table.sla-matrix { border-collapse: separate; border-spacing: 10px; width: 100%; min-width: 860px; }
table.sla-matrix th { background: none; border: 0; padding: 4px 6px; font: 500 .92rem var(--display); color: var(--ink); text-align: center; white-space: nowrap; }
table.sla-matrix th small { display: block; font: 500 .74rem var(--body); color: var(--ink-3); }
table.sla-matrix th.rh { text-align: left; }
table.sla-matrix th.corner { text-align: left; font: 500 .72rem var(--body); color: var(--ink-3); }
table.sla-matrix th.corner span { display: block; }
table.sla-matrix td { padding: 0; border: 0; }
.sla-cell { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s, transform .15s; position: relative; }
.sla-cell:hover { border-color: var(--blue); box-shadow: 0 8px 20px -10px rgba(29, 95, 224, .45); transform: translateY(-1px); }
.sla-cell.on { border-color: var(--blue); background: var(--blue-soft); }
.sla-cell.off { opacity: .55; }
.sla-cell .code-t { font-size: .74rem; font-weight: 600; color: var(--blue-ink); letter-spacing: .04em; }
.sla-cell b { font: 600 1.15rem var(--display); }
.sla-cell .per { font-size: .76rem; color: var(--ink-3); margin-top: -2px; }
.sla-cell .yr { font-size: .78rem; color: var(--ink-2); margin-top: 4px; }
.sla-cell .flag { position: absolute; top: 10px; right: 10px; font-size: .68rem; font-weight: 600; color: var(--orange-2); }
.sla-none { display: grid; place-items: center; height: 100%; min-height: 80px; color: var(--ink-3); border: 1px dashed var(--line); border-radius: 14px; }
@media (max-width: 1280px) { .cat-row { grid-template-columns: 1fr auto; } .cat-prices { grid-column: 1 / -1; grid-row: 2; } }
@media (max-width: 980px) { .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .cat-prices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pe-h { display: none; } .pe-r { grid-template-columns: 1fr 1fr; } .pe-r > b { grid-column: 1 / -1; }
  .right-r { grid-template-columns: 1fr 1fr; } .right-r > b { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .type-grid { grid-template-columns: 1fr; } }

/* alt menü grubu (Servis yönetimi › Tanımlar) */
.nav h4.sub { margin-left: 22px; position: relative; }
.nav h4.sub::before { content: ""; position: absolute; left: -12px; top: 50%; width: 8px; height: 1px; background: var(--line-2); }
.nav a.sub { margin-left: 14px; padding-left: 12px !important; border-left: 1px solid var(--line); border-radius: 0 10px 10px 0 !important; font-size: .9rem !important; }

/* kategori düzenleme: servis tipi kartları */
dialog.modal.modal-xl { width: min(1180px, calc(100vw - 32px)); }
.tp-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tp-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.tp-card { --tp: var(--blue); }
.tp-atolye { --tp: #c9690e; } .tp-uzaktan { --tp: #0f7aa8; } .tp-destek { --tp: #157a56; } .tp-yerinde { --tp: var(--blue); }
.tp-h { display: flex; align-items: center; gap: 9px; padding: 11px 14px; color: var(--ink); font: 500 .95rem var(--display); background: color-mix(in srgb, var(--tp) 9%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, var(--tp) 22%, var(--line)); box-shadow: inset 0 3px 0 var(--tp); }
.tp-h svg { color: var(--tp); }
.tp-b { padding: 14px; }
.tp-b .field { margin-bottom: 12px; }
.tp-b input, .tp-b select { min-height: 40px; }
.info-note { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); font-size: .84rem; }
.info-note svg { flex: none; margin-top: 2px; }
/* servis durumları */
.st-form { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 16px; }
.color-in { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line-2); border-radius: 11px; padding: 4px 12px 4px 4px; min-height: 44px; background: var(--surface); }
.color-in input[type=color] { width: 44px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.color-in span { font-size: .85rem; color: var(--ink-2); }
.st-preview { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.st-chip { display: grid; padding: 10px 16px; border-radius: 10px; min-width: 260px; }
.st-chip small, .st-cell small { font-size: .74rem; opacity: .85; }
table.st-list td { padding-top: 10px; padding-bottom: 10px; }
td.st-cell { display: table-cell; }
td.st-cell b { display: block; font-weight: 500; }
@media (max-width: 1280px) { .tp-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .st-form { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .tp-cards, .st-form { grid-template-columns: 1fr; } }

/* talep → servis fişi bağlantısı */
.wo-link { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px 24px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.wo-link:hover { background: var(--blue-soft); }
.wo-ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.wo-main { display: grid; gap: 2px; min-width: 0; }
.wo-main b { font-size: 1.05rem; }
.wo-go { font-weight: 600; color: var(--blue); white-space: nowrap; }
.st-pill { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 99px; font-size: .76rem; font-weight: 600; white-space: nowrap; }
.t-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.danger-t { color: var(--bad) !important; }
@media (max-width: 720px) { .wo-link { grid-template-columns: 44px minmax(0, 1fr); } .wo-link .st-pill, .wo-link .wo-go { grid-column: 2; justify-self: start; } }

/* görevler, maliyet, işlem geçmişi */
table.tasks td { vertical-align: middle; }
.tk-acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.tk-acts form { margin: 0; }
.pill.tk-running { background: var(--blue-soft); color: var(--blue-ink); }
.pill.tk-paused { background: var(--warn-soft); color: var(--warn); }
.pill.tk-done { background: var(--ok-soft); color: var(--ok); }
.pill.tk-waiting { background: var(--surface-2); color: var(--ink-2); }
.kv.cost dt.tot, .kv.cost dd.tot { padding-top: 10px; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: 1rem; }
.timeline { list-style: none; margin: 0; padding: 8px 24px 16px; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; position: relative; }
.timeline li + li { border-top: 1px dashed var(--line); }
.timeline .dot { width: 12px; height: 12px; border-radius: 50%; margin-top: 4px; background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.timeline .lg-status .dot { background: var(--violet); box-shadow: 0 0 0 4px var(--violet-soft); }
.timeline .lg-closed .dot, .timeline .lg-check .dot { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.timeline .lg-part .dot, .timeline .lg-file .dot { background: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.timeline .lg-task .dot, .timeline .lg-staff .dot, .timeline .lg-assign .dot { background: #0ea5e9; box-shadow: 0 0 0 4px rgba(14, 165, 233, .15); }
.tl-main { display: grid; gap: 2px; min-width: 0; } .tl-main span { color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }
.tl-meta { display: grid; text-align: right; font-size: .8rem; color: var(--ink-3); white-space: nowrap; }
.tag.k-not { background: var(--surface-2); color: var(--ink-2); } .tag.k-telefon { background: var(--surface-3); color: var(--navy); }
.tag.k-ziyaret { background: var(--orange-soft); color: var(--orange-2); } .tag.k-mail { background: #f1ecfe; color: #5b3cc4; } .tag.k-whatsapp { background: #e3f7ea; color: #13803f; }

/* liste filtreleri ve kullanım çubukları */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.filters select, .filters input { min-height: 40px; width: auto; min-width: 150px; }
.filters input[type=search] { min-width: 220px; }
.use-list { display: grid; gap: 6px; }
.use { display: grid; grid-template-columns: 70px minmax(60px, 1fr) auto; gap: 10px; align-items: center; }
.use .bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.use .bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; }
.use .bar i.hi { background: var(--orange); }

/* pano analizleri: grafik renkleri doğrulandı (açık ve koyu temada CVD/kontrast) */
:root { --c1: #1f56c4; --c2: #d9600f; }
:root[data-theme="dark"] { --c1: #3d7be8; --c2: #e2661f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c1: #3d7be8; --c2: #e2661f; } }
.an-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-top: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.an-head h2 { font: 600 1.35rem var(--display); margin: 0 0 4px; }
.an-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.an-tile { padding: 18px 20px; display: grid; gap: 4px; align-content: start; }
.an-tile .k { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.an-tile .v { font: 600 1.45rem var(--display); letter-spacing: -.02em; line-height: 1.2; white-space: nowrap; }
.an-tile .d { font-size: .8rem; color: var(--ink-3); }
.meter-s { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.meter-s i { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
.meter-s i.warn { background: var(--warn); } .meter-s i.bad { background: var(--bad); }
.an-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.an-grid.two-1 { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.hbars { display: grid; gap: 4px; padding: 12px 24px 20px; border-top: 1px solid var(--line); }
.hb { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 7px 0; color: var(--ink); text-decoration: none; }
a.hb:hover .hb-l { color: var(--blue); }
.hb-l { font-size: .88rem; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-l small { display: block; font-weight: 500; color: var(--ink-3); font-size: .74rem; }
.hb-t { height: 10px; border-radius: 0 4px 4px 0; background: var(--surface-2); overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hb-v { text-align: right; font-size: .88rem; white-space: nowrap; }
.hb-v small { display: block; color: var(--ink-3); font-size: .74rem; }
.flag-up { color: var(--ok); font-weight: 600; } .flag-risk { color: var(--bad); font-weight: 600; }
.col-g:hover .hit { fill: var(--surface-2); }
@media (max-width: 1500px) { .an-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .an-grid, .an-grid.two-1 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .an-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* ---- Bakım anlaşmaları ---- */
.ph-title { display: flex; align-items: center; gap: 10px; font: 600 1.35rem var(--display); letter-spacing: -.01em; margin: 0; }
.ph-title svg { width: 22px; height: 22px; color: var(--blue); }
.page-head + .flt-panel, .page-head + .card { margin-top: 0; }
.flt-panel { padding: 18px 24px 14px; }
.flt-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 0 14px; }
.flt-f { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 900px) { .flt-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flt-grid { grid-template-columns: 1fr; } }
th.c, td.c { text-align: center; }
.nw { white-space: nowrap; }
.agr-table td, .agr-table th { padding-left: 16px; padding-right: 16px; }
.agr-table td { vertical-align: middle; }
.agr-no { white-space: nowrap; }
.agr-no a { display: block; text-decoration: none; }
.agr-no b { color: var(--blue); font-size: .95rem; }
.agr-cust { min-width: 220px; }
.agr-cust > span { display: block; }
.agr-cust a { color: var(--ink); font-weight: 500; text-decoration: none; }
.agr-cust a:hover { color: var(--blue); }
.agr-use { min-width: 190px; }
.use-mini { display: grid; gap: 4px; }
.use-mini + .use-mini { margin-top: 8px; }
.bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--blue); border-radius: 99px; min-width: 2px; }
.bar i.hi { background: var(--orange); }
.bar.thin { height: 4px; margin-top: 6px; max-width: 140px; }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); font-weight: 500; } .warn-t { color: var(--warn); font-weight: 600; }
.cnt { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--ink); color: var(--surface); font-size: .78rem; font-weight: 600; }
tr.agr-exp td { background: var(--warn-soft); }
tr.agr-off td { color: var(--ink-3); }
tr.agr-off .agr-cust a, tr.agr-off .agr-no b { opacity: .7; }
.list-f { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--line); }
.list-f nav { margin: 0 auto; }
.list-f .per select { min-height: 36px; padding: 5px 30px 5px 10px; }
.empty-row { text-align: center; color: var(--ink-3); padding: 26px; }

.agr-bar { gap: 12px; }
.agr-bar.exp { border-color: color-mix(in srgb, var(--warn) 40%, var(--line)); }
.agr-bar.off { opacity: .85; }
.agr-bar a { font-weight: 500; text-decoration: none; }
.flag-warn { display: inline-flex; align-items: center; gap: 6px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .8rem; padding: 4px 10px; border-radius: 99px; }
.flag-warn svg { width: 14px; height: 14px; }
.amt-pill { background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; padding: 4px 12px; border-radius: 99px; font-size: .85rem; }
.agr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
@media (max-width: 1100px) { .agr-grid { grid-template-columns: 1fr; } }
.rights-t td, .rights-t th { padding-left: 18px; padding-right: 18px; }
.rights-t tr.none td { background: var(--surface-2); color: var(--ink-3); }
.info-kv { grid-template-columns: 150px minmax(0, 1fr); gap: 12px 14px; }
.info-kv dt { font-weight: 500; color: var(--ink-2); }
.panel-tools { display: flex; justify-content: flex-end; padding: 12px 20px 0; }
.agr-tabs-card [data-panel] .tw { margin-top: 12px; border-top: 1px solid var(--line); }

/* anlaşma formu */
.agr-form .frm { display: grid; gap: 14px; }
.agr-form .frow { grid-template-columns: 210px minmax(0, 1fr); }
.in-ico { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); position: relative; }
.in-ico:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.in-ico .ico { display: grid; place-items: center; width: 44px; flex: none; color: var(--ink-3); background: var(--surface-2); border-right: 1px solid var(--line); border-radius: 10px 0 0 10px; font-weight: 700; font-family: var(--display); }
.in-ico .ico svg { width: 16px; height: 16px; }
.in-ico input, .in-ico select { border: 0 !important; box-shadow: none !important; border-radius: 0 10px 10px 0 !important; min-width: 0; flex: 1; background: transparent; }
.in-ico.amt select { flex: none; width: auto; border-left: 1px solid var(--line) !important; border-radius: 0 10px 10px 0 !important; }
.in-ico.amt input { border-radius: 0 !important; text-align: right; }
.date-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; align-items: start; }
.date-row.two { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.date-row .inl { font-weight: 600; font-size: .9rem; padding-top: 11px; white-space: nowrap; }
.date-row .inl i { color: var(--bad); font-style: normal; }
@media (max-width: 900px) { .date-row, .date-row.two { grid-template-columns: 1fr; } .date-row .inl { padding-top: 0; } }
.in-suf { display: flex; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: var(--surface); }
.in-suf:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.in-suf input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; flex: 1; min-width: 0; }
.in-suf span { display: grid; place-items: center; padding: 0 14px; background: var(--surface-2); border-left: 1px solid var(--line); color: var(--ink-2); font-size: .85rem; white-space: nowrap; }
.sep-t { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--blue-ink); font-weight: 600; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; margin: 10px 0 2px; }
.sep-t::before, .sep-t::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.sep-t svg { width: 15px; height: 15px; }
.lim-wrap { border: 1px solid var(--line); border-radius: 12px; max-width: 760px; }
.lim-t th, .lim-t td { padding: 10px 14px; }
.lim-t td:first-child { font-weight: 500; white-space: nowrap; }
.lim-t td:first-child svg { width: 14px; height: 14px; color: var(--ink-3); vertical-align: -2px; margin-right: 4px; }
.lim-t tr:last-child td { border-bottom: 0; }
.lim-t input { text-align: center; max-width: 90px; }
.cat-picks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: 11px; }
@media (max-width: 720px) { .agr-form .frow { grid-template-columns: 1fr; } }
.cat-picks[hidden], .flt-panel[hidden] { display: none; }
.agr-table td:nth-child(3) { min-width: 210px; }
.agr-table td:nth-child(2) { min-width: 200px; }
.agr-table details.menu summary { white-space: nowrap; }
.agr-tabs-card th, .agr-tabs-card td { padding-left: 16px; padding-right: 16px; }
.rights-t td { white-space: nowrap; }
.list-head { display: flex; justify-content: flex-end; }
.agr-table td, .agr-table th { padding-left: 12px; padding-right: 12px; }
.agr-table td:first-child, .agr-table th:first-child { padding-left: 20px; }
.agr-table td:last-child, .agr-table th:last-child { padding-right: 20px; }
.agr-table td:nth-child(2) { min-width: 180px; }
.agr-table td:nth-child(3) { min-width: 160px; font-size: .9rem; }
.agr-table td:nth-child(4) { font-size: .82rem; }
.agr-use { min-width: 170px; }
.agr-dates { line-height: 1.5; }
@media (min-width: 1500px) { .agr-tw { overflow: visible; } }
.agr-table tbody tr:last-child details.menu .menu-list, .agr-table tbody tr:nth-last-child(2):not(:first-child) details.menu .menu-list { top: auto; bottom: calc(100% + 4px); }

/* ---- Sol menü: renkli ikon kutuları ---- */
.nav a.navlink { display: flex; align-items: center; gap: 11px; padding: 6px 10px 6px 7px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .92rem; text-decoration: none; transition: background-color .15s, color .15s; position: relative; }
.nav a.navlink + a.navlink { margin-top: 2px; }
.nav-ic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--ic); background: color-mix(in srgb, var(--ic) 11%, transparent); transition: background-color .15s, color .15s; }
.nav-ic svg { width: 16px; height: 16px; }
.nav-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav a.navlink:hover { background: var(--surface-3); color: var(--ink); }
.nav a.navlink:hover .nav-ic { background: color-mix(in srgb, var(--ic) 18%, transparent); }
.nav a.navlink[aria-current="page"] { background: color-mix(in srgb, var(--ic) 10%, var(--surface)); color: var(--ink); font-weight: 600; }
.nav a.navlink[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--ic); }
.nav a.navlink[aria-current="page"] .nav-ic { background: var(--ic); color: #fff; }
.nav a.navlink:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.nav a.navlink.sub { margin-left: 16px; padding-left: 7px !important; border-left: 0; border-radius: 10px !important; font-size: .89rem !important; }
.nav a.navlink.sub .nav-ic { width: 26px; height: 26px; }
.nav a.navlink.sub[aria-current="page"]::before { left: -16px; }
.nav h4 { font: 600 .76rem var(--body); letter-spacing: .01em; color: var(--ink-3); margin: 18px 10px 6px; }
.nav .count { font-weight: 600; }
/* tam sayfa düzenleyici (kategori, SLA paketi) */
.editor-page .editor-h h3 { font-size: 1.1rem; }
.editor-page .editor-b { padding-top: 6px; }
.editor-page .card-f { border-radius: 0 0 var(--r-xl) var(--r-xl); }
/* yazışma bildirimleri */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 100; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { pointer-events: auto; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 12px 14px 14px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; box-shadow: 0 18px 40px -16px rgba(15, 23, 38, .35); opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.toast.in { opacity: 1; transform: none; } .toast.out { opacity: 0; transform: translateX(16px); }
.toast-ic { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.toast-ic svg { width: 17px; height: 17px; }
.toast-b { display: grid; gap: 2px; color: var(--ink); text-decoration: none; min-width: 0; font-weight: 400; }
.toast-b b { font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-s { font-size: .78rem; color: var(--ink-3); }
.toast-t { font-size: .86rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.toast-b:hover b { color: var(--blue); }
.toast-x { border: 0; background: none; color: var(--ink-3); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 4px; border-radius: 6px; }
.toast-x:hover { color: var(--ink); background: var(--surface-3); }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

/* ---- Analizler ---- */
.an-filter { padding: 14px 20px; }
.an-filter-in { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.an-range { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.an-range label { font-size: .84rem; color: var(--ink-2); font-weight: 500; }
.an-range input { min-height: 38px; padding: 6px 10px; width: auto; }
.an-cap { margin-top: 10px; font-size: .84rem; color: var(--ink-3); }
.an-cap b { color: var(--ink); font-weight: 600; }
.an-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.an-k { padding: 16px 20px 18px; display: grid; gap: 4px; align-content: start; }
.an-k .k { font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.an-k .v { font: 600 1.5rem var(--display); letter-spacing: -.02em; line-height: 1.25; white-space: nowrap; }
.an-k .d { font-size: .8rem; color: var(--ink-3); }
.dl { justify-self: start; font-size: .76rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; }
.dl.good { background: var(--ok-soft); color: var(--ok); } .dl.bad { background: var(--bad-soft); color: var(--bad); }
.dl.flat { background: var(--surface-3); color: var(--ink-2); } .dl.none { padding: 2px 0; color: var(--ink-3); font-weight: 500; }
@media (max-width: 1200px) { .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .an-kpis { grid-template-columns: 1fr; } }
.insights { list-style: none; margin: 0; padding: 6px 24px 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.ins { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ins b { font-weight: 600; font-size: .93rem; } .ins p { font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
.ins-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; }
.ins-ic svg { width: 16px; height: 16px; }
.ins-good .ins-ic { background: var(--ok-soft); color: var(--ok); } .ins-warn .ins-ic { background: var(--warn-soft); color: var(--warn); }
.ins-bad .ins-ic { background: var(--bad-soft); color: var(--bad); } .ins-info .ins-ic { background: var(--blue-soft); color: var(--blue); }
@media (max-width: 900px) { .insights { grid-template-columns: 1fr; } }
.rev-mix { display: grid; gap: 16px; }
.mix-bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; background: var(--surface-3); }
.mix-bar i { display: block; height: 100%; }
.mix-l { margin: 0; display: grid; gap: 10px; }
.mix-l > div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.mix-l dt { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: .9rem; }
.mix-l dt i { width: 10px; height: 10px; border-radius: 3px; }
.mix-l dd { margin: 0; font-weight: 600; }
.mix-l dd span { margin-left: 8px; font-weight: 500; color: var(--ink-3); font-size: .82rem; }
.mix-l .tot { padding-top: 10px; border-top: 1px solid var(--line); }
.an-table td, .an-table th { padding-left: 18px; padding-right: 18px; }
.share { display: inline-block; vertical-align: middle; width: calc(100% - 46px); height: 8px; border-radius: 0 4px 4px 0; background: var(--surface-3); margin-right: 8px; overflow: hidden; }
.share i { display: block; height: 100%; background: var(--c1); border-radius: 0 4px 4px 0; }
.sla-v { font-weight: 600; color: var(--ok); } .sla-v.warn { color: var(--warn); } .sla-v.bad { color: var(--bad); }
table.heat { border-collapse: separate; border-spacing: 3px; width: 100%; }
table.heat th { background: none; border: 0; padding: 2px 4px; font-size: .72rem; font-weight: 500; color: var(--ink-3); text-align: center; }
table.heat tbody th { text-align: left; }
table.heat td { border: 0; padding: 0; height: 30px; min-width: 28px; text-align: center; font-size: .74rem; font-weight: 600; border-radius: 5px; background: var(--surface-2); }
table.heat { table-layout: fixed; }
table.heat td { min-width: 0; }
table.heat thead th:first-child, table.heat tbody th { width: 38px; }
table.heat thead th:last-child { width: 44px; }

/* ---- Düğmeler: tek tip renk ve hover (bağlantı olarak kullanılan düğmeler dahil) ---- */
:root { --btn-blue: #1f56c4; --btn-blue-h: #17459f; --btn-orange: #e2661d; --btn-orange-h: #c55513; --btn-green: #157a56; --btn-green-h: #106245; --btn-red: #b8352a; --btn-red-h: #962a21; }
:root[data-theme="dark"] { --btn-blue: #2f6ad8; --btn-blue-h: #3d7be8; --btn-orange: #e2661f; --btn-orange-h: #f07a35; --btn-green: #1f8a63; --btn-green-h: #27a073; --btn-red: #c8473b; --btn-red-h: #d95b4f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --btn-blue: #2f6ad8; --btn-blue-h: #3d7be8; --btn-orange: #e2661f; --btn-orange-h: #f07a35; --btn-green: #1f8a63; --btn-green-h: #27a073; --btn-red: #c8473b; --btn-red-h: #d95b4f; } }
.btn { font-weight: 500; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; text-decoration: none; }
.btn-b, a.btn-b, .btn-b:hover, a.btn-b:hover, .btn-b:focus-visible { color: #fff; }
.btn-b { background: var(--btn-blue); } .btn-b:hover { background: var(--btn-blue-h); }
.btn-p, a.btn-p, .btn-p:hover, a.btn-p:hover { color: #fff; }
.btn-p { background: var(--btn-orange); box-shadow: 0 6px 16px -8px rgba(226, 102, 29, .55); } .btn-p:hover { background: var(--btn-orange-h); box-shadow: 0 8px 20px -8px rgba(226, 102, 29, .6); }
.btn-ok, a.btn-ok, .btn-ok:hover, a.btn-ok:hover { color: #fff; } .btn-ok { background: var(--btn-green); } .btn-ok:hover { background: var(--btn-green-h); filter: none; }
.btn-danger, a.btn-danger, .btn-danger:hover, a.btn-danger:hover { color: #fff; } .btn-danger { background: var(--btn-red); } .btn-danger:hover { background: var(--btn-red-h); }
.btn-s, a.btn-s { color: var(--ink); } .btn-s:hover, a.btn-s:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.btn svg { width: 16px; height: 16px; }
.req { color: var(--bad); font-style: normal; }

/* ---- Servis talepleri listesi ---- */
.tq-tabs { display: flex; gap: 6px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tq-tabs a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px 13px; color: var(--ink-2); font-weight: 500; font-size: .92rem; text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; border-radius: 8px 8px 0 0; transition: background-color .15s, color .15s; }
.tq-tabs a b { min-width: 26px; height: 22px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); font-size: .76rem; font-weight: 600; }
.tq-tabs a:hover { color: var(--ink); background: var(--surface-2); }
.tq-tabs a.on { color: var(--blue-ink); border-bottom-color: var(--blue); font-weight: 600; }
.tq-tabs a.on b { background: var(--blue); color: #fff; }
.tq-tabs a.warn b { background: var(--bad-soft); color: var(--bad); }
.tq-tabs a.warn.on b { background: var(--bad); color: #fff; }
.tq-filters { display: grid; grid-template-columns: minmax(240px, 2fr) repeat(4, minmax(140px, 1fr)) auto; gap: 12px; align-items: end; padding: 16px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.tq-filters .field { margin: 0; }
.tq-filters label { font-size: .78rem; color: var(--ink-3); font-weight: 500; }
.tq-filters input, .tq-filters select { min-height: 40px; }
.tq-actions { display: flex; gap: 8px; }
.tq-actions .btn { min-height: 40px; }
@media (max-width: 1300px) { .tq-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tq-search { grid-column: 1 / -1; } .tq-actions { grid-column: 1 / -1; justify-content: flex-end; } }
@media (max-width: 640px) { .tq-filters { grid-template-columns: 1fr; } }
.tq-card table.q > tbody > tr > td { padding-top: 14px; padding-bottom: 14px; }
.tq-card .tw { border-top: 0 !important; }
/* ---- Wolvox entegrasyonu ---- */
.wx-status { display: flex; align-items: center; gap: 16px; padding: 16px 22px; border-left: 4px solid var(--ink-3); }
.wx-status.ok { border-left-color: var(--ok); } .wx-status.warn { border-left-color: var(--warn); } .wx-status.off { border-left-color: var(--bad); }
.wx-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; background: var(--ink-3); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ink-3) 18%, transparent); }
.wx-status.ok .wx-dot { background: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 18%, transparent); }
.wx-status.warn .wx-dot { background: var(--warn); box-shadow: 0 0 0 5px color-mix(in srgb, var(--warn) 18%, transparent); }
.wx-status.off .wx-dot { background: var(--bad); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bad) 18%, transparent); }
.wx-st { display: grid; gap: 2px; } .wx-st b { font-weight: 600; } .wx-st span { font-size: .86rem; color: var(--ink-3); }
.wx-note { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 14px; padding: 16px 22px; background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.wx-note .ins-ic { background: var(--surface); color: var(--warn); }
.wx-note b { font-weight: 600; } .wx-note p { font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.wx-note code { font-size: .82rem; background: var(--surface); padding: 1px 6px; border-radius: 5px; }
.wx-steps { list-style: none; counter-reset: s; margin: 0; padding: 8px 24px 20px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.wx-steps li { counter-increment: s; display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding: 10px 0; }
.wx-steps li::before { content: counter(s); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); font-weight: 600; font-size: .85rem; }
.wx-steps b { font-weight: 600; font-size: .92rem; } .wx-steps span { font-size: .85rem; color: var(--ink-3); }
.src-telefon, .tag.k-telefon { background: var(--surface-3); color: var(--ink); }
.menu-list { min-width: 220px; }
.menu-list a, .menu-list button { white-space: nowrap; }
/* imza alanı */
.sigbox { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface-2); margin-top: 12px; }
.sig-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; } .sig-h b { font-weight: 600; }
.sig-area { position: relative; height: 170px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: #fff; touch-action: none; }
.sig-area canvas { width: 100%; height: 100%; display: block; border-radius: 10px; cursor: crosshair; touch-action: none; }
.sig-ph { position: absolute; inset: auto 0 18px; text-align: center; color: #a3adbd; font-size: .9rem; pointer-events: none; }
.sig-area::after { content: ""; position: absolute; left: 24px; right: 24px; bottom: 40px; border-bottom: 1px solid #d5dbe5; pointer-events: none; }
.sig-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 8px; }
.chip.onsite { background: var(--ok-soft); color: var(--ok); border-color: transparent; display: inline-flex; align-items: center; gap: 6px; } .chip.onsite svg { width: 14px; height: 14px; }
/* ---- Saha ziyaretleri ---- */
.vs-filter { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-right: 16px; }
.vs-staff { display: flex; align-items: center; gap: 8px; } .vs-staff select { min-height: 38px; width: auto; }
.vs-day { display: flex; align-items: baseline; gap: 10px; font: 600 1rem var(--display); margin: 8px 2px 0; }
.vs-day span { font-weight: 500; color: var(--ink-2); font-size: .92rem; } .vs-day small { margin-left: auto; color: var(--ink-3); font: 500 .82rem var(--body); }
.vs-list { display: grid; gap: 12px; }
.vs-card { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 16px 20px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 14px; box-shadow: var(--shadow-sm); }
.vs-late { border-left-color: var(--bad); } .vs-onsite { border-left-color: var(--ok); } .vs-done { border-left-color: var(--line-2); opacity: .8; }
.vs-time b { display: block; font: 600 1.5rem var(--display); letter-spacing: -.02em; }
.vs-st { display: inline-block; margin-top: 4px; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); }
.vs-late .vs-st { background: var(--bad-soft); color: var(--bad); } .vs-onsite .vs-st { background: var(--ok-soft); color: var(--ok); } .vs-done .vs-st { background: var(--surface-3); color: var(--ink-2); }
.vs-main { display: grid; gap: 3px; min-width: 0; }
.vs-cust { font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; } .vs-cust:hover { color: var(--blue); }
.vs-subj { color: var(--ink-2); }
.vs-addr { display: flex; gap: 6px; align-items: flex-start; color: var(--ink-2); } .vs-addr svg { width: 14px; height: 14px; margin-top: 3px; flex: none; color: var(--ink-3); }
.vs-acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) {
  .vs-card { grid-template-columns: 1fr; gap: 10px; padding: 14px 16px; }
  .vs-time { display: flex; align-items: center; gap: 10px; } .vs-time b { font-size: 1.3rem; } .vs-st { margin-top: 0; }
  .vs-acts { justify-content: stretch; } .vs-acts > *, .vs-acts form, .vs-acts .btn { flex: 1; } .vs-acts .btn { min-height: 44px; width: 100%; }
}
.dash-ops { margin-bottom: 0; }
.ops-t td, .ops-t th { padding-top: 11px; padding-bottom: 11px; }
.vis-mini { display: grid; border-top: 1px solid var(--line); }
.vm { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 22px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; border-left: 3px solid var(--blue); }
.vm:last-child { border-bottom: 0; } .vm:hover { background: var(--surface-2); color: var(--ink); }
.vm b { font: 600 1.05rem var(--display); }
.vm-m { display: grid; min-width: 0; } .vm-m span { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vm-m small { color: var(--ink-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vm-s { font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); white-space: nowrap; }
.vm-late { border-left-color: var(--bad); } .vm-late .vm-s { background: var(--bad-soft); color: var(--bad); }
.vm-onsite { border-left-color: var(--ok); } .vm-onsite .vm-s { background: var(--ok-soft); color: var(--ok); }
.vm-done { border-left-color: var(--line-2); } .vm-done .vm-s { background: var(--surface-3); color: var(--ink-2); }

/* ---- Müşteriler modülü ---- */
.cu-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pay-kpis { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cu-k { padding: 14px 18px; display: grid; gap: 2px; align-content: start; }
.cu-k span { font-size: .8rem; color: var(--ink-3); font-weight: 500; }
.cu-k b { font: 600 1.3rem var(--display); letter-spacing: -.01em; white-space: nowrap; }
.cu-k small { font-size: .78rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1100px) { .cu-kpis, .pay-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cu-flt { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cu-search { display: flex; align-items: stretch; gap: 0; margin: 16px 20px; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; background: var(--surface); }
.cu-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.cu-search .ico { display: grid; place-items: center; width: 46px; color: var(--ink-3); background: var(--surface-2); border-right: 1px solid var(--line); }
.cu-search input { flex: 1; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-height: 46px; }
.cu-search .btn { border-radius: 0; min-height: 46px; }
.cu-tw { border-top: 1px solid var(--line); }
.cu-table td, .cu-table th { padding: 13px 16px; }
.cu-table td:first-child, .cu-table th:first-child { padding-left: 20px; }
.cu-table tr.off td { color: var(--ink-3); }
.cu-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--line-2) 30%, transparent); }
.cu-dot.on { background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.cu-name { min-width: 280px; }
.cu-name > a { font-weight: 600; color: var(--ink); text-decoration: none; font-size: .95rem; } .cu-name > a:hover { color: var(--blue); }
.cu-name .sm { margin-top: 3px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.blue-t { color: var(--blue-ink); }
.cu-up { text-transform: uppercase; font-size: .76rem; }
.cu-bal { font-size: .98rem; } .cu-tag { font-size: .78rem; color: var(--ink-3); font-weight: 600; }
.grp { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; color: var(--g); background: color-mix(in srgb, var(--g) 12%, transparent); white-space: nowrap; }
.grp::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--g); }
.grp.lg { font-size: .86rem; padding: 3px 11px; }
.cu-sub { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cu-tabs { margin-top: 4px; }
.ro-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ro-grid > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.ro-grid span { font-size: .76rem; color: var(--ink-3); } .ro-grid b { font-weight: 600; }
@media (max-width: 900px) { .ro-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.in-ico .in-btn { border-radius: 0 10px 10px 0; min-height: auto; border-width: 0 0 0 1px; }
.def-cols { grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); }
@media (max-width: 1000px) { .def-cols { grid-template-columns: 1fr; } }

/* tahsilat */
.pm-choice { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .pm-choice { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pm-opt { position: relative; cursor: pointer; }
.pm-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pm-opt > span { display: grid; gap: 2px; justify-items: start; padding: 12px 14px; border: 1.5px solid var(--line-2); border-radius: 12px; background: var(--surface); transition: border-color .15s, background-color .15s; }
.pm-opt > span svg { width: 20px; height: 20px; color: var(--ink-3); margin-bottom: 4px; }
.pm-opt b { font-weight: 600; } .pm-opt small { color: var(--ink-3); font-size: .78rem; }
.pm-opt:hover > span { border-color: var(--blue); }
.pm-opt input:checked + span { border-color: var(--blue); background: var(--blue-soft); box-shadow: inset 0 0 0 1px var(--blue); }
.pm-opt input:checked + span svg { color: var(--blue); }
.pm-opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.pm-fields { display: grid; gap: 14px; }
.pay-bal { margin-top: 6px; font-size: .86rem; color: var(--ink-2); }
.pm { display: inline-block; font-size: .76rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.pm-dekont { background: var(--blue-soft); color: var(--blue-ink); } .pm-nakit { background: var(--ok-soft); color: var(--ok); }
.pm-kredi_karti { background: var(--violet-soft); color: var(--violet); } .pm-evrak { background: var(--warn-soft); color: var(--warn); }
.pay-t tr.off td { color: var(--ink-3); } .strike { text-decoration: line-through; }
.pay-flt { grid-template-columns: minmax(220px, 2fr) repeat(4, minmax(130px, 1fr)) auto; }

/* cari hareket raporu */
.rp-filter { padding: 16px 20px 12px; }
.rp-grid { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(3, minmax(150px, 1fr)) auto; gap: 12px; align-items: end; }
.rp-grid .field { margin: 0; } .rp-act .btn { min-height: 44px; }
.rp-quick { margin-top: 10px; display: flex; gap: 14px; color: var(--ink-3); } .rp-quick a { font-weight: 500; }
@media (max-width: 1100px) { .rp-grid { grid-template-columns: 1fr 1fr; } }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 18px 22px; }
.rp-head h3 { font-size: 1.1rem; }
.rp-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rp-sum > div { padding: 12px 22px; display: grid; gap: 2px; border-right: 1px solid var(--line); } .rp-sum > div:last-child { border-right: 0; }
.rp-sum span { font-size: .78rem; color: var(--ink-3); } .rp-sum b { font: 600 1.1rem var(--display); }
.rp-sum .hl { background: var(--blue-soft); }
.rp-note { display: flex; align-items: center; gap: 8px; padding: 10px 22px 0; } .rp-note svg { width: 16px; height: 16px; }
.rp-table tr.dv td { background: var(--surface-2); }
.rp-table tr.pend td { background: var(--warn-soft); }
.rp-table tfoot td { padding: 12px 18px; border-top: 2px solid var(--line-2); background: var(--surface-2); }
.rp-foot { padding: 12px 22px 18px; }
@media print {
  .side, .top, .no-print, .flash, .toasts { display: none !important; }
  .app { display: block !important; } .main, .content { padding: 0 !important; margin: 0 !important; }
  body { background: #fff !important; } .card { box-shadow: none !important; border-color: #d9dfe9 !important; }
  .rp-table tr.pend td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
[hidden] { display: none !important; }
.rp-table td.r, .rp-table th.r, .pay-t td.r, .an-table td.num.r { white-space: nowrap; }
.rp-table td:first-child, .rp-table td:nth-child(5) { white-space: nowrap; }

/* ===== Müşteri & İş Takibi ===== */
.ld-flt { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ld-tabs { padding: 0 20px; gap: 6px; overflow-x: auto; flex-wrap: nowrap; }
.ld-tab { display: inline-flex; align-items: center; gap: 6px; padding: 14px 10px 12px; font-size: .88rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.ld-tab .i { width: 16px; height: 16px; }
.ld-tab span { font-size: .74rem; font-weight: 600; color: var(--ink-3); background: var(--surface-3); border-radius: 99px; padding: 1px 7px; }
.ld-tab:hover { color: var(--ink); }
.ld-tab.on { color: var(--g, var(--blue-ink)); border-bottom-color: var(--g, var(--blue)); }
.ld-tab.on span { background: color-mix(in srgb, var(--g, var(--blue)) 14%, transparent); color: var(--g, var(--blue)); }
.ld-tab.warn span { background: var(--bad-soft); color: var(--bad); }
.ld-table { width: 100%; }
.ld-table td { vertical-align: top; }
.ld-row td:first-child { box-shadow: inset 3px 0 0 var(--g); }
.ld-name a, .ld-name > b { font-weight: 600; color: var(--ink); }
.ld-name a:hover { color: var(--blue); }
.ld-c { display: flex; align-items: center; gap: 4px; margin-top: 4px; flex-wrap: wrap; }
.ld-c .num { margin-right: 4px; color: var(--ink-2); }
.qc { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); }
.qc .i { width: 14px; height: 14px; }
.qc:hover { background: var(--blue); color: #fff; }
.qc.wa { color: #128c4b; background: #e2f5ea; }
.qc.wa:hover { background: #128c4b; color: #fff; }
:root[data-theme="dark"] .qc.wa { background: #0f2c21; color: #4fd19a; }
.lg-badge { display: inline-block; font-size: .72rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; margin-top: 5px; white-space: nowrap; }
.lg-badge.lg { font-size: .84rem; padding: 3px 12px; margin: 0; }
.src-chip { display: inline-block; font-size: .78rem; font-weight: 500; color: var(--ink-2); background: var(--surface-3); border-radius: 7px; padding: 2px 9px; white-space: nowrap; }
.ld-req { color: var(--ink-2); max-width: 360px; }
.ld-st { min-width: 170px; }
.ld-next { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: .76rem; font-weight: 600; color: var(--violet); }
.ld-next .i { width: 13px; height: 13px; }
.ld-next.today { color: var(--orange-2); }
.ld-next.late { color: var(--bad); }
.ld-next.none { color: var(--ink-3); font-weight: 500; }
.dlg-who { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.dlg-who > span { display: grid; }
.dlg-who .i { color: var(--blue); flex: none; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; cursor: pointer; margin: 4px 0 10px; }
.check-row input { width: 18px; height: 18px; accent-color: var(--blue); }
.dlg-next { padding: 12px 14px 2px; border: 1px dashed var(--line-2); border-radius: 12px; background: var(--surface-2); }
.dup-box { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--ink); font-size: .86rem; border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }
.dup-box b { color: var(--warn); }
.dup-box ul { margin: 6px 0; padding-left: 0; list-style: none; display: grid; gap: 4px; }
.ld-addr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 0 12px; }
.ld-steps { display: flex; padding: 6px; gap: 6px; overflow-x: auto; }
.ld-step { flex: 1; margin: 0; }
.ld-step button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-weight: 500; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.ld-step button:hover:not(:disabled) { background: var(--blue-soft); color: var(--blue-ink); }
.ld-step .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); font-size: .76rem; font-weight: 600; }
.ld-step.done button { color: var(--ok); }
.ld-step.done .n { background: var(--ok); color: #fff; }
.ld-step.cur button { background: var(--blue); color: #fff; font-weight: 600; cursor: default; }
.ld-step.cur .n { background: rgba(255, 255, 255, .25); color: #fff; }
.ld-step button:disabled { cursor: default; }
.ld-lost { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: var(--bad); }
.ld-lost div { display: grid; } .ld-lost span { color: var(--ink-2); }
.action.warn .ico { background: var(--warn-soft); color: var(--warn); }
.ld-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 24px; align-items: start; }
.ld-calls { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ld-calls li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 14px 20px; align-items: start; }
.ld-calls li + li { border-top: 1px solid var(--line); }
.ld-calls li.pend { background: color-mix(in srgb, var(--violet) 4%, transparent); }
.ld-calls li.late { background: color-mix(in srgb, var(--bad) 5%, transparent); }
.lc-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--violet-soft); color: var(--violet); }
.ld-calls li.late .lc-ic { background: var(--bad-soft); color: var(--bad); }
.ld-calls li.done .lc-ic { background: var(--ok-soft); color: var(--ok); }
.lc-ic .i { width: 16px; height: 16px; }
.lc-m { display: grid; gap: 2px; min-width: 0; }
.lc-res { color: var(--ink); background: var(--surface-2); border-radius: 8px; padding: 6px 10px; margin-top: 4px; white-space: pre-line; }
.lc-r { display: grid; justify-items: end; gap: 4px; text-align: right; }
.lc-a { display: flex; gap: 6px; margin-top: 4px; }
.lc-a form { margin: 0; }
.ld-note { display: flex; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
.ld-note input { flex: 1; min-height: 38px; }
.stage-f { margin: 0; }
.stage-sel { min-height: 34px !important; padding: 4px 30px 4px 10px !important; font-size: .84rem; font-weight: 600; color: var(--g) !important; border-color: color-mix(in srgb, var(--g) 40%, transparent) !important; background-color: color-mix(in srgb, var(--g) 8%, var(--surface)) !important; }
.cv-seg span { padding: 9px 16px; }
.cv-seg input:checked + span, .cv-seg label:last-child input:checked + span { background: var(--blue-soft); color: var(--blue-ink); }
.call-flt { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.call-flt select, .call-flt input[type=search] { width: auto; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
.call-flt .check-row { margin: 0 8px 0 0; }
.type-pill { display: inline-block; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); white-space: nowrap; }
.type-pill.t-tekrar_ara { background: var(--bad-soft); color: var(--bad); }
.type-pill.t-whatsapp { background: #e2f5ea; color: #128c4b; }
.type-pill.t-ziyaret, .type-pill.t-demo { background: var(--violet-soft); color: var(--violet); }
.type-pill.t-toplanti, .type-pill.t-eposta { background: var(--surface-3); color: var(--ink-2); }
.call-subj b { display: block; }
.call-subj p { margin: 4px 0; font-size: .86rem; color: var(--ink-2); max-width: 680px; }
.late-d { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--bad); }
.late-d .i { width: 14px; height: 14px; }
.dl-kpis .cu-k { border-top: 3px solid var(--line-2); }
.dl-kpis .k-blue { border-top-color: #1f56c4; } .dl-kpis .k-orange { border-top-color: #d9600f; } .dl-kpis .k-green { border-top-color: #157a56; }
.dl-links { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.dl-links a { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 500; }
.dl-links .i { width: 13px; height: 13px; }
.ld-rep { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.ld-rep.two { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.rep-list { display: grid; gap: 4px; }
.rep-list a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.rep-list a:hover { background: var(--surface-2); }
.rep-list a span { display: inline-flex; align-items: center; gap: 8px; }
.rep-list a .i { width: 16px; height: 16px; color: var(--ink-3); }
.rep-list a b { font: 600 1.15rem var(--display); }
.rep-list a.bad b, .rep-list a.bad .i { color: var(--bad); }
.rep-list a.warn b, .rep-list a.warn .i { color: var(--warn); }
.rate-box { display: grid; justify-items: center; text-align: center; gap: 2px; }
.rate-box .rate { font: 600 2.2rem var(--display); letter-spacing: -.02em; }
.rate-box > span { color: var(--ink-2); font-weight: 500; }
.rate-box small { color: var(--ink-3); }
.rate-box .kv { width: 100%; }
.act-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-height: 520px; overflow-y: auto; }
.act-list li { display: grid; gap: 2px; padding: 10px 20px; font-size: .88rem; }
.act-list li + li { border-top: 1px solid var(--line); }
.cell-bar { display: grid; grid-template-columns: minmax(40px, 1fr) auto; gap: 10px; align-items: center; }
.cell-bar b { min-width: 34px; text-align: right; }
.src-t tfoot th, .trend-t tfoot th { background: var(--surface-2); font-weight: 600; }
.lost-f .an-range { width: 100%; }
.toast-call .toast-ic { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 1200px) { .ld-rep { grid-template-columns: 1fr 1fr; } .ld-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ld-flt { grid-template-columns: 1fr 1fr; } .ld-rep, .ld-rep.two { grid-template-columns: 1fr; } .ld-addr { grid-template-columns: 1fr; gap: 10px; } }
@media (max-width: 640px) { .ld-calls li { grid-template-columns: 34px minmax(0, 1fr); } .lc-r { grid-column: 2; justify-items: start; text-align: left; } .ld-step button { font-size: .78rem; padding: 8px; } }
@media print { .ld-tabs, .call-flt, .an-range button, .acts-top { display: none !important; } }
.ld-name { min-width: 230px; }
.ld-c { flex-wrap: nowrap; }
.ld-name .lg-badge { margin-left: 0; }
.info-kv .ld-c { display: inline-flex; vertical-align: middle; margin: 0 0 0 6px; }
.stage-sel { min-width: 180px; }
.navlink .nav-t { white-space: normal; line-height: 1.25; overflow: visible; text-overflow: clip; }
.stage-sel { min-width: 200px; width: 100%; }
.ld-c .num { white-space: nowrap; }

/* ===== Firma Bilgileri / Personel ===== */
.up-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.up-prev { display: grid; place-items: center; height: 96px; border: 1px dashed var(--line-2); border-radius: 12px; background: #fff; padding: 10px; }
.up-prev img { max-width: 100%; max-height: 76px; object-fit: contain; }
.up-prev.stamp { height: 120px; } .up-prev.stamp img { max-height: 100px; }
.up-row input[type=file] { padding: 8px; }
.st-who { display: flex; gap: 12px; align-items: center; }
.st-who > span:last-child { display: grid; gap: 2px; justify-items: start; }
.role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.role-pick label { cursor: pointer; }
.role-pick input { position: absolute; opacity: 0; pointer-events: none; }
.role-pick span { display: grid; gap: 4px; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 12px; transition: border-color .15s, background .15s; }
.role-pick small { color: var(--ink-3); font-size: .82rem; line-height: 1.45; }
.role-pick input:checked + span { border-color: var(--blue); background: var(--blue-soft); }
.role-pick input:checked + span b { color: var(--blue-ink); }
.role-pick input:focus-visible + span { box-shadow: 0 0 0 3px var(--blue-soft); }
@media (max-width: 760px) { .up-row, .role-pick { grid-template-columns: 1fr; } }

/* ===== Giriş ekranı ===== */
.lg2 { background: #f5f7fb; }
.lg2-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(420px, 1fr); }
.lg2-brand { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: #071a33; padding: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); display: flex; flex-direction: column; gap: clamp(28px, 4vh, 44px); }
.lg2-glow { position: absolute; inset: -20% -10% auto auto; width: 75%; aspect-ratio: 1; z-index: -1; background: radial-gradient(closest-side, rgba(43, 120, 230, .55), transparent 70%); filter: blur(10px); }
.lg2-glow::after { content: ""; position: absolute; left: -70%; top: 95%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(236, 106, 31, .28), transparent 70%); }
.lg2-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.lg2-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lg2-logo { width: 200px; height: auto; }
.lg2-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 99px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); }
.lg2-badge img { width: 24px; height: 24px; border-radius: 50%; background: #fff; padding: 2px; object-fit: contain; }
.lg2-copy { max-width: 560px; }
.lg2-eyebrow { display: inline-block; font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #ffad73; margin-bottom: 16px; }
.lg2-copy h1 { font: 600 clamp(2rem, 3.3vw, 3.1rem)/1.12 var(--display); letter-spacing: -.03em; margin: 0; }
.lg2-copy h1 em { font-style: normal; background: linear-gradient(90deg, #7fb3ff, #b9d4ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lg2-copy p { margin: 18px 0 0; font-size: 1.04rem; line-height: 1.6; color: rgba(255, 255, 255, .72); max-width: 48ch; }
.lg2-preview { position: relative; max-width: 520px; padding-right: 60px; animation: lg2-up .7s .1s both cubic-bezier(.2, .7, .2, 1); }
.lg2-card { background: rgba(255, 255, 255, .97); color: #12203a; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .1); }
.lg2-card.main { padding: 18px 20px; }
.lg2-card-h { display: flex; align-items: center; gap: 8px; font-size: .78rem; color: #5b6880; }
.lg2-card-h b { color: #12203a; font-weight: 600; }
.lg2-dot { width: 8px; height: 8px; border-radius: 50%; background: #ec6a1f; box-shadow: 0 0 0 4px rgba(236, 106, 31, .15); }
.lg2-chip { margin-left: auto; font-size: .7rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: #eef4ff; color: #1f56c4; }
.lg2-subj { font: 600 1rem var(--display); margin: 10px 0 14px; letter-spacing: -.01em; }
.lg2-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.lg2-steps li { position: relative; display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: center; font-size: .82rem; color: #8a95a8; }
.lg2-steps li span { font-size: .74rem; font-variant-numeric: tabular-nums; }
.lg2-steps i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #cfd6e3; }
.lg2-steps li.ok { color: #2a3851; } .lg2-steps li.ok i { background: #157a56; border-color: #157a56; }
.lg2-steps li.cur { color: #12203a; font-weight: 600; } .lg2-steps li.cur i { border-color: #1f56c4; box-shadow: 0 0 0 4px rgba(31, 86, 196, .15); animation: lg2-pulse 1.8s infinite; }
.lg2-sla { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 16px; padding-top: 14px; border-top: 1px solid #edf0f5; font-size: .76rem; color: #5b6880; }
.lg2-bar { height: 6px; border-radius: 99px; background: #edf0f5; overflow: hidden; } .lg2-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #1f56c4, #4d8af0); }
.lg2-sla b { color: #12203a; font-weight: 600; }
.lg2-card.float { position: absolute; right: 0; bottom: -26px; width: 270px; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; animation: lg2-up .7s .35s both cubic-bezier(.2, .7, .2, 1); }
.lg2-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #e3f2eb; color: #157a56; }
.lg2-ic .i { width: 18px; height: 18px; }
.lg2-card.float b { display: block; font-size: .84rem; } .lg2-card.float small { font-size: .72rem; color: #6b7587; }
.lg2-big { font: 600 1.05rem var(--display); color: #157a56; }
.lg2-feats { list-style: none; margin: auto 0 0; padding: 22px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid rgba(255, 255, 255, .1); max-width: 620px; }
.lg2-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .8rem; color: rgba(255, 255, 255, .62); }
.lg2-feats .i { width: 18px; height: 18px; flex: none; color: #7fb3ff; margin-top: 2px; }
.lg2-feats b { display: block; color: #fff; font-size: .88rem; font-weight: 600; }
.lg2-side { display: flex; flex-direction: column; background: var(--surface); }
.lg2-form { width: 100%; max-width: 410px; margin: auto; padding: 40px 24px; animation: lg2-up .5s both cubic-bezier(.2, .7, .2, 1); }
.lg2-mlogo { width: 210px; height: auto; display: none; margin-bottom: 32px; }
.lg2-form h2 { font: 600 1.85rem var(--display); letter-spacing: -.025em; margin: 0; }
.lg2-sub { margin: 8px 0 30px; color: var(--ink-3); font-size: .94rem; line-height: 1.55; }
.lg2-err { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 18px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-size: .88rem; font-weight: 500; }
.lg2-err .i { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.lg2-field { margin-bottom: 18px; }
.lg2-field label { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.lg2-in { position: relative; display: flex; align-items: center; }
.lg2-in .ic { position: absolute; left: 15px; color: var(--ink-3); display: grid; pointer-events: none; }
.lg2-in .ic .i { width: 18px; height: 18px; }
.lg2-in input { width: 100%; min-height: 52px; padding: 0 48px 0 46px; border: 1.5px solid var(--line-2); border-radius: 13px; background: var(--surface); color: var(--ink); font: 500 .98rem var(--body, inherit); transition: border-color .15s, box-shadow .15s; }
.lg2-in input::placeholder { color: var(--ink-3); font-weight: 400; }
.lg2-in input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.lg2-in:focus-within .ic { color: var(--blue); }
.lg2-eye { position: absolute; right: 8px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: none; color: var(--ink-3); cursor: pointer; display: grid; place-items: center; }
.lg2-eye:hover { background: var(--surface-2); color: var(--ink); }
.lg2-eye svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.lg2-eye[aria-pressed="true"] { color: var(--blue); }
.lg2-caps { display: block; margin-top: 6px; font-size: .78rem; font-weight: 600; color: var(--warn); }
.lg2-row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 24px; font-size: .88rem; }
.lg2-row a { font-weight: 600; }
.lg2-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--ink-2); }
.lg2-check input { width: 17px; height: 17px; accent-color: var(--blue); }
.lg2-btn { width: 100%; min-height: 54px; border: 0; border-radius: 13px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 1rem var(--display); color: #fff; background: linear-gradient(180deg, #2a64d6, #1a4fb8); box-shadow: 0 10px 24px -10px rgba(26, 79, 184, .7), inset 0 1px 0 rgba(255, 255, 255, .15); transition: transform .15s, box-shadow .15s, filter .15s; }
.lg2-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.lg2-btn:hover { filter: brightness(1.06); box-shadow: 0 14px 28px -10px rgba(26, 79, 184, .8); }
.lg2-btn:hover svg { transform: translateX(3px); }
.lg2-btn:active { transform: translateY(1px); }
.lg2-btn:focus-visible { outline: 3px solid var(--blue-soft); outline-offset: 2px; }
.lg2-btn.busy { opacity: .8; pointer-events: none; }
.lg2-help { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lg2-help > span { width: 100%; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 4px; }
.lg2-help a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); color: var(--ink); font-size: .84rem; text-decoration: none; border: 1px solid var(--line); }
.lg2-help a:hover { border-color: var(--blue); color: var(--blue-ink); }
.lg2-help a .i { width: 15px; height: 15px; color: var(--blue); }
.lg2-help a.wa .i { color: #128c4b; }
.lg2-help b { font-weight: 600; }
.lg2-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px clamp(20px, 3vw, 40px); border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-3); }
.lg2-foot .sec { display: inline-flex; align-items: center; gap: 6px; } .lg2-foot .i { width: 14px; height: 14px; color: var(--ok); }
@keyframes lg2-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lg2-pulse { 50% { box-shadow: 0 0 0 7px rgba(31, 86, 196, .05); } }
@media (prefers-reduced-motion: reduce) { .lg2-preview, .lg2-card.float, .lg2-form, .lg2-steps li.cur i { animation: none; } }
@media (max-height: 760px) and (min-width: 1001px) { .lg2-preview { display: none; } }
@media (max-width: 1000px) {
  .lg2-wrap { grid-template-columns: 1fr; }
  .lg2-brand { display: none; }
  .lg2-side { min-height: 100vh; border-top: 4px solid #1a4fb8; }
  .lg2-mlogo.lg-light { display: block; }
}
:root[data-theme="dark"] .lg2-mlogo.lg-light { display: none !important; }
:root[data-theme="dark"] .lg2 .lg2-mlogo.lg-dark { display: none; }
@media (max-width: 1000px) { :root[data-theme="dark"] .lg2-mlogo.lg-dark { display: block !important; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lg2-mlogo.lg-light { display: none !important; } }
@media (prefers-color-scheme: dark) and (max-width: 1000px) { :root:not([data-theme="light"]) .lg2-mlogo.lg-dark { display: block !important; } }
:root[data-theme="dark"] .lg2, :root[data-theme="dark"] .lg2-side { background: var(--surface); }
.lg2-preview { padding-right: 0; display: grid; }
.lg2-card.main { margin-right: 70px; padding-bottom: 30px; }
.lg2-card.float { position: relative; right: auto; bottom: auto; width: 310px; margin: -16px 0 0 auto; }
.lg2-card.float small { white-space: nowrap; }
@media (max-height: 760px) and (min-width: 1001px) { .lg2-preview { display: grid; } }
@media (max-height: 860px) and (min-width: 1001px) { .lg2-steps { display: none; } .lg2-subj { margin-bottom: 4px; } .lg2-copy h1 { font-size: clamp(1.8rem, 2.8vw, 2.5rem); } .lg2-brand { gap: 26px; } }
@media (max-height: 620px) and (min-width: 1001px) { .lg2-preview { display: none; } }
/* giriş: kurumsal sol panel */
.lg2-brand { background: linear-gradient(165deg, #0b2440 0%, #0a1d35 55%, #081628 100%); justify-content: space-between; }
.lg2-glow { opacity: .55; }
.lg2-grid { opacity: .6; }
.lg2-copy { margin-top: auto; max-width: 600px; }
.lg2-copy h1 { font-size: clamp(1.9rem, 3vw, 2.75rem); line-height: 1.15; }
.lg2-copy p { font-size: 1rem; max-width: 54ch; }
.lg2-pillars { list-style: none; margin: 0 0 auto; padding: 0; max-width: 600px; border-top: 1px solid rgba(255, 255, 255, .12); }
.lg2-pillars li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 8px; align-items: baseline; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.lg2-pillars .n { font: 600 .8rem var(--display); letter-spacing: .08em; color: #ffad73; }
.lg2-pillars b { display: block; font: 600 1.02rem var(--display); color: #fff; letter-spacing: -.01em; }
.lg2-pillars small { display: block; margin-top: 3px; font-size: .88rem; color: rgba(255, 255, 255, .62); }
.lg2-org { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); }
.lg2-partner { display: flex; align-items: center; gap: 12px; }
.lg2-partner .ak { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; padding: 4px; flex: none; }
.lg2-partner .ak img { width: 100%; height: auto; }
.lg2-partner b { display: block; font-size: .9rem; } .lg2-partner small { font-size: .8rem; color: rgba(255, 255, 255, .6); }
.lg2-org address { font-style: normal; font-size: .8rem; color: rgba(255, 255, 255, .55); max-width: 34ch; text-align: right; line-height: 1.5; }
@media (max-height: 760px) and (min-width: 1001px) { .lg2-pillars li { padding: 12px 0; } .lg2-pillars small { display: none; } }
.lg2-org address { text-align: left; }
@media (max-height: 760px) and (min-width: 1001px) { .lg2-form { padding: 20px 24px; } .lg2-sub { margin-bottom: 20px; } .lg2-help { margin-top: 20px; padding-top: 16px; } }

/* ===== Menü ağacı ===== */
.nav { padding: 6px 10px 12px; }
.nav > a.navlink, .nav-grp { margin-top: 2px; }
.nav-grp > summary, .nav-sub > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 11px; border-radius: 10px; user-select: none; }
.nav-grp > summary::-webkit-details-marker, .nav-sub > summary::-webkit-details-marker { display: none; }
.nav-grp > summary { padding: 6px 8px 6px 7px; color: var(--ink); font-weight: 600; font-size: .92rem; transition: background-color .15s; }
.nav-grp > summary:hover { background: var(--surface-3); }
.nav-grp > summary:focus-visible, .nav-sub > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.nav-grp[open] > summary { background: color-mix(in srgb, var(--ic) 7%, transparent); }
.nav-grp[open] > summary .nav-ic { background: var(--ic); color: #fff; }
.nav .chev { width: 16px; height: 16px; margin-left: auto; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 2; transition: transform .18s ease; }
.nav details[open] > summary .chev { transform: rotate(90deg); }
.nav-grp > summary .count { margin-left: auto; } .nav-grp > summary .count + .chev { margin-left: 6px; }
.nav-grp[open] > summary .dot-c { display: none; }
.nav-kids { position: relative; margin: 2px 0 6px 21px; padding-left: 10px; border-left: 1px solid var(--line); display: grid; gap: 1px; }
.nav-kids a.navlink { padding: 5px 8px 5px 6px; font-size: .89rem; }
.nav-kids a.navlink .nav-ic { width: 26px; height: 26px; }
.nav-kids a.navlink .nav-ic svg { width: 15px; height: 15px; }
.nav-kids a.navlink[aria-current="page"]::before { left: -11px; top: 6px; bottom: 6px; }
.nav a.navlink + a.navlink { margin-top: 0; }
.nav-sub > summary { padding: 6px 8px; color: var(--ink-3); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.nav-sub > summary:hover { background: var(--surface-3); color: var(--ink-2); }
.nav-sub[open] > summary { color: var(--ink-2); }
.nav-sub .sub-ic { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-sub .chev { width: 14px; height: 14px; }
.nav-sub > .nav-kids { margin: 0 0 4px 14px; }
.nav-kids a.navlink.leaf { font-size: .87rem; }
@media (prefers-reduced-motion: reduce) { .nav .chev { transition: none; } }
.nav-grp[open] > summary .dot-c + .chev { margin-left: auto; }
.nav-grp[open] > summary .dot-c + .chev { margin-left: auto; }

/* ===== Hover okunabilirlik düzeltmeleri ===== */
/* koyu temada hover rengi açılmak yerine koyulaşır; beyaz yazı okunur kalır (kontrast ≥ 4.5) */
:root[data-theme="dark"] { --btn-blue-h: #2556b8; --btn-orange-h: #b9531a; --btn-green-h: #176e4f; --btn-red-h: #a63a30; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --btn-blue-h: #2556b8; --btn-orange-h: #b9531a; --btn-green-h: #176e4f; --btn-red-h: #a63a30; } }
/* hızlı iletişim kısayolları: hover'da simge görünür kalır */
.qc:hover, .ld-name .qc:hover, .ld-c .qc:hover { background: var(--btn-blue); color: #fff !important; }
.qc.wa:hover, .ld-name .qc.wa:hover { background: #128c4b; color: #fff !important; }
/* liste içi bağlantılar ve menü öğeleri */
.menu-list a:hover, .menu-list button:hover { color: var(--ink); }
.menu-list .danger:hover { color: var(--bad); background: var(--bad-soft); }
.tabs a.tab:hover { color: var(--ink); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ld-tab:hover span { color: var(--ink-2); }
.crumb a:hover { color: var(--blue-ink); }
.dl-links a:hover, .rp-quick a:hover { color: var(--blue-ink); text-decoration: underline; }
.btn-s:hover, a.btn-s:hover { color: var(--blue-ink); }
.btn-s.danger-t:hover, button.danger-t:hover { color: var(--bad); background: var(--bad-soft); }
.vm:hover .vm-m span { color: var(--ink); }

/* ===== Dashboard ===== */
.db-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.db-head h2 { font: 600 1.55rem var(--display); letter-spacing: -.02em; margin: 0; }
.db-head p { margin: 4px 0 0; color: var(--ink-3); }
.db-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.db-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.db-tile { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
.db-tile:hover { border-color: var(--blue); color: var(--ink); transform: translateY(-1px); }
.db-tile .ic { grid-row: 1 / 4; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.db-tile .ic svg { width: 18px; height: 18px; }
.db-tile .t { font-size: .8rem; font-weight: 500; color: var(--ink-3); }
.db-tile b { font: 600 1.6rem/1.15 var(--display); letter-spacing: -.02em; }
.db-tile small { font-size: .77rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-tile.hot .ic { background: var(--warn-soft); color: var(--warn); } .db-tile.hot b { color: var(--orange-2); }
.db-tile.bad .ic { background: var(--bad-soft); color: var(--bad); } .db-tile.bad b, .db-tile.bad small { color: var(--bad); }
.db-tile.bad { border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.db-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.ag-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ag-list li + li { border-top: 1px solid var(--line); }
.ag-list a { display: grid; grid-template-columns: 52px 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 20px; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; }
.ag-list a:hover { background: var(--surface-2); color: var(--ink); }
.ag-time { font: 600 .98rem var(--display); }
.ag-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.ag-ic svg { width: 16px; height: 16px; }
.ag-m { display: grid; min-width: 0; } .ag-m b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-m small { color: var(--ink-3); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-k { font-weight: 600; color: var(--ink-2); }
.ag-s { font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); white-space: nowrap; }
.ag-late a { border-left-color: var(--bad); } .ag-late .ag-ic, .ag-late .ag-s { background: var(--bad-soft); color: var(--bad); } .ag-late .ag-time { color: var(--bad); }
.ag-now a, .ag-onsite a { border-left-color: var(--ok); } .ag-now .ag-s, .ag-onsite .ag-s, .ag-onsite .ag-ic { background: var(--ok-soft); color: var(--ok); }
.ag-done a { opacity: .65; } .ag-done .ag-s { background: var(--surface-3); color: var(--ink-2); }
.al-list { list-style: none; margin: 0; padding: 6px 10px 10px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.al-list a { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 16px; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.al-list a:hover { background: var(--surface-2); color: var(--ink); }
.al-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); }
.al-ic svg { width: 16px; height: 16px; }
.al-t { font-size: .88rem; font-weight: 500; }
.al-list b { font: 600 1.05rem var(--display); }
.al-go { width: 16px; height: 16px; fill: none; stroke: var(--ink-3); stroke-width: 2; }
.al-bad .al-ic { background: var(--bad-soft); color: var(--bad); } .al-bad b { color: var(--bad); }
.al-warn .al-ic { background: var(--warn-soft); color: var(--warn); } .al-warn b { color: var(--warn); }
.al-info .al-ic { background: var(--blue-soft); color: var(--blue); }
.db-ok { display: flex; gap: 12px; align-items: center; padding: 22px 20px; border-top: 1px solid var(--line); }
.db-ok > svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); flex: none; }
.db-ok div { display: grid; }
.db-sync { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--ink-3); text-decoration: none; }
.db-sync svg { width: 15px; height: 15px; color: var(--ok); } .db-sync:hover { color: var(--blue-ink); background: var(--surface-2); }
.db-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: stretch; }
.db-mod { display: flex; flex-direction: column; border-top: 3px solid var(--m); transition: box-shadow .15s ease, transform .15s ease; }
.db-mod:hover { box-shadow: 0 10px 26px -12px rgba(16, 24, 40, .16); transform: translateY(-2px); }
.dbb-in > .card, .dbb-in > section.card { transition: box-shadow .15s ease, transform .15s ease; }
.db-editing .dbb-in > .card, .db-editing .dbb-in > section.card { transition: none; transform: none; }
.dbb-in > .card:hover, .dbb-in > section.card:hover { box-shadow: 0 10px 26px -12px rgba(16, 24, 40, .14); transform: translateY(-2px); }
.dm-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px 12px; }
.dm-h h3 { font-size: 1rem; margin: 0; } .dm-h a { margin-left: auto; font-weight: 500; }
.dm-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: color-mix(in srgb, var(--m) 12%, transparent); color: var(--m); transition: transform .15s ease; }
.dm-ic svg { width: 16px; height: 16px; }
.db-mod:hover .dm-ic { transform: scale(1.08); }
.dm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.dm-kpis > div { display: grid; gap: 1px; padding: 12px 20px; border-bottom: 1px solid var(--line); min-width: 0; }
.dm-kpis > div:nth-child(odd) { border-right: 1px solid var(--line); }
.dm-kpis span { font-size: .76rem; color: var(--ink-3); font-weight: 500; }
.dm-kpis .ki-row { display: flex; align-items: center; gap: 6px; }
.dm-kpis .ki-ic { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; background: color-mix(in srgb, var(--m) 14%, transparent); color: var(--m); flex: none; }
.dm-kpis .ki-ic svg { width: 11px; height: 11px; }
.dm-kpis b { font: 600 1.35rem var(--display); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dm-kpis b.dm-sm { font-size: 1.05rem; padding-top: 4px; }
.dm-kpis small { font-size: .75rem; color: var(--ink-3); }
.dm-chart { padding: 12px 20px 8px; margin-top: auto; }
.dm-cap { font-size: .76rem; color: var(--ink-3); font-weight: 500; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 54px; margin-top: 8px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--m) 70%, transparent); min-height: 2px; }
.spark i.z { background: var(--surface-3); } .spark i.today { background: var(--m); }
.spark i:hover { background: var(--m); }
.spark-x { display: flex; justify-content: space-between; font-size: .7rem; color: var(--ink-3); margin-top: 4px; }
.dm-foot { padding: 10px 20px 14px; border-top: 1px solid var(--line); font-size: .84rem; }
.dm-links { display: grid; gap: 2px; padding: 10px 12px 12px; margin-top: auto; }
.dm-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-size: .88rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.dm-links a svg { width: 16px; height: 16px; color: var(--m); }
.dm-links a:hover { background: var(--surface-2); color: var(--ink); }
.db-load { display: grid; padding: 6px 0 10px; border-top: 1px solid var(--line); }
.db-load > div { display: grid; grid-template-columns: 36px minmax(110px, 1fr) minmax(60px, 1fr) auto; gap: 12px; align-items: center; padding: 8px 20px; font-size: .88rem; }
.db-load .nm { display: grid; min-width: 0; } .db-load .nm small { color: var(--ink-3); font-size: .74rem; }
@media (max-width: 1300px) { .db-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); } .db-mods { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1000px) { .db-row, .db-mods { grid-template-columns: 1fr; } .db-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ag-list a { grid-template-columns: 46px minmax(0, 1fr) auto; } .ag-ic { display: none; } .db-quick .btn { flex: 1; } }
.nav-grp > summary .nav-t { white-space: normal; line-height: 1.25; overflow: visible; }
.dm-kpis b.dm-sm { white-space: normal; line-height: 1.3; }
.db-tile small { white-space: normal; }

/* ===== Beta 12: Dashboard yerleşimi ===== */
.dbg { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; align-items: stretch; grid-auto-flow: row dense; }
.dbb { min-width: 0; display: flex; flex-direction: column; }
.dbb.sz-s { grid-column: span 2; } .dbb.sz-m { grid-column: span 3; } .dbb.sz-l { grid-column: span 4; } .dbb.sz-f { grid-column: 1 / -1; }
.dbb-in { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dbb-in > .card, .dbb-in > section { flex: 1; }
.dbb.is-hidden { display: none; }
.dbb-bar { display: none; }
.db-editing .dbb { outline: 2px dashed var(--line-2); outline-offset: 6px; border-radius: var(--r-lg); cursor: grab; }
.db-editing .dbb.is-hidden { display: flex; opacity: .5; }
.db-editing .dbb.is-hidden .dbb-in { display: none; }
.db-editing .dbb.dragging { opacity: .35; }
.db-editing .dbb-in { pointer-events: none; user-select: none; max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.db-editing .dbb-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--blue); border-radius: 12px; box-shadow: var(--shadow-sm); }
.dbb-drag { color: var(--ink-3); display: grid; } .dbb-drag svg { width: 20px; height: 20px; }
.dbb-t { display: grid; min-width: 0; flex: 1 1 160px; } .dbb-t b { font-size: .92rem; } .dbb-t small { font-size: .76rem; color: var(--ink-3); line-height: 1.35; }
.dbb-ctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dbb-ctl .icon-btn { width: 36px; height: 36px; }
.dbb-ctl select { min-height: 36px; width: auto; padding: 4px 30px 4px 10px; font-size: .84rem; }
.dbb-ctl [data-hide] .off, .dbb-ctl [data-hide][aria-pressed="true"] .on { display: none; }
.dbb-ctl [data-hide][aria-pressed="true"] .off { display: inline-flex; }
.dbb-ctl [data-hide] span { align-items: center; gap: 6px; display: inline-flex; } .dbb-ctl [data-hide] svg { width: 16px; height: 16px; }
.db-editbar { position: sticky; top: 76px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 14px 18px; background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 40%, var(--line)); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.db-editbar[hidden] { display: none; }
.db-eb-t { display: grid; gap: 2px; min-width: 0; flex: 1 1 320px; } .db-eb-t b { display: flex; align-items: center; gap: 8px; color: var(--blue-ink); } .db-eb-t .sm { color: var(--ink-2); }
.db-eb-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .db-eb-def { margin: 0 8px 0 0; }
.db-editing #dbEditBtn { display: none; }
/* yeni dashboard listeleri */
.og-list, .qk-list, .ex-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.og-list li + li, .qk-list li + li, .ex-list li + li { border-top: 1px solid var(--line); }
.og-list a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 120px; gap: 14px; align-items: center; padding: 12px 20px; color: var(--ink); text-decoration: none; }
.og-list a:hover, .qk-list a:hover, .ex-list a:hover { background: var(--surface-2); color: var(--ink); }
.og-no { display: grid; } .og-no b { font-weight: 600; } .og-no small { font-size: .76rem; color: var(--ink-3); }
.og-m, .qk-m, .ex-m { display: grid; min-width: 0; } .og-m b, .ex-m b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-m small, .qk-m small, .ex-m small { font-size: .8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.og-st { display: grid; justify-items: start; gap: 3px; } .og-st small { font-size: .76rem; font-weight: 600; }
.og-sla { text-align: right; font-size: .84rem; font-weight: 500; }
.qtabs { display: flex; gap: 4px; padding: 0 16px 12px; flex-wrap: wrap; }
.qtabs a { padding: 6px 11px; border-radius: 8px; font-size: .82rem; font-weight: 500; color: var(--ink-2); background: var(--surface-2); text-decoration: none; }
.qtabs a:hover { color: var(--blue); background: var(--blue-soft); } .qtabs a.on { background: var(--blue); color: #fff; }
.qk-list li { border-left: 3px solid transparent; } .qk-list li.pri-urgent { border-left-color: var(--bad); } .qk-list li.pri-high { border-left-color: var(--orange); }
.qk-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 16px 11px 17px; color: var(--ink); text-decoration: none; }
.qk-m b { font-weight: 600; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; }
.qk-r { display: grid; justify-items: end; gap: 4px; } .qk-r small { font-size: .74rem; color: var(--ink-3); white-space: nowrap; }
.ex-list a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 20px; color: var(--ink); text-decoration: none; }
.db-queue .card-h { padding-bottom: 12px; }
/* haftalık blok */
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.wk-d { display: flex; flex-direction: column; gap: 6px; padding: 12px 10px 14px; min-width: 0; min-height: 150px; }
.wk-d + .wk-d { border-left: 1px solid var(--line); }
.wk-d.today { background: color-mix(in srgb, var(--blue) 5%, transparent); }
.wk-d.past { background: var(--surface-2); } .wk-d.past .wk-i { opacity: .7; }
.wk-h { display: flex; align-items: baseline; gap: 6px; margin-bottom: 2px; color: var(--ink-2); text-decoration: none; font-size: .8rem; font-weight: 600; }
.wk-h b { font-weight: 500; color: var(--ink-3); } .wk-h i { margin-left: auto; font-style: normal; font-size: .72rem; padding: 0 7px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.wk-d.today .wk-h { color: var(--blue-ink); } .wk-d.today .wk-h i { background: var(--blue); color: #fff; }
.wk-i { display: grid; gap: 1px; padding: 6px 8px; border-radius: 8px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--ink); text-decoration: none; font-size: .8rem; min-width: 0; }
.wk-i:hover { background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--ink); }
.wk-i time { font-size: .72rem; font-weight: 600; color: var(--ink-2); } .wk-i span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-none { font-size: .78rem; color: var(--ink-3); }
.wk-more { font-size: .78rem; font-weight: 600; }
@media (max-width: 1300px) { .dbb.sz-s { grid-column: span 3; } .dbb.sz-l { grid-column: span 3; } }
@media (max-width: 1100px) { .dbg { grid-template-columns: 1fr; gap: 16px; } .dbb.sz-s, .dbb.sz-m, .dbb.sz-l, .dbb.sz-f { grid-column: 1 / -1; } .dbb-ctl select { display: none; } }
@media (max-width: 1100px) and (min-width: 761px) { .wk { grid-template-columns: repeat(4, minmax(0, 1fr)); } .wk-d:nth-child(5) { border-left: 0; } .wk-d:nth-child(n+5) { border-top: 1px solid var(--line); } }
@media (max-width: 760px) {
  .wk { grid-template-columns: 1fr; }
  .wk-d { min-height: 0; padding: 12px 16px; } .wk-d + .wk-d { border-left: 0; border-top: 1px solid var(--line); }
  .wk-d.empty:not(.today) { display: none; }
  .og-list a { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; }
  .og-no { grid-column: 1; grid-row: 1; display: flex; gap: 8px; align-items: baseline; } .og-m { grid-column: 1 / -1; grid-row: 2; }
  .og-st { grid-column: 2; grid-row: 1; justify-items: end; } .og-sla { grid-column: 1 / -1; grid-row: 3; text-align: left; }
  .db-editbar { top: 64px; padding: 12px 14px; } .db-eb-a { width: 100%; } .db-eb-a .btn { flex: 1; }
  .db-quick .db-q-hide { display: none; }
}

/* ===== Ekip Takvimi ===== */
:root { --k-visit: #d9600f; --k-call: #1f56c4; --k-meet: #5a48c4; --k-edu: #0e8a7e; --k-off: #64748b; --k-sla: #b8352a; --k-agr: #b7791f; --k-deal: #0f7aa8; --k-other: #3f51b5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --k-visit: #ff8a3d; --k-call: #6aa1ff; --k-meet: #b3a1ff; --k-edu: #3fc9b8; --k-off: #9aa8bc; --k-sla: #ff8571; --k-agr: #f0b75a; --k-deal: #4cc3f0; --k-other: #8f9dff; } }
:root[data-theme="dark"] { --k-visit: #ff8a3d; --k-call: #6aa1ff; --k-meet: #b3a1ff; --k-edu: #3fc9b8; --k-off: #9aa8bc; --k-sla: #ff8571; --k-agr: #f0b75a; --k-deal: #4cc3f0; --k-other: #8f9dff; }
.ce-visit, .ce-ev-ziyaret, .k-ziyaret { --c: var(--k-visit); } .ce-call, .k-gorusme { --c: var(--k-call); } .ce-meet, .ce-ev-toplanti, .k-toplanti { --c: var(--k-meet); }
.ce-ev-egitim { --c: var(--k-edu); } .ce-ev-izin, .k-izin { --c: var(--k-off); } .ce-sla, .k-sla { --c: var(--k-sla); } .ce-agr, .k-anlasma { --c: var(--k-agr); } .ce-deal, .k-teklif { --c: var(--k-deal); } .ce-ev-diger { --c: var(--k-other); }
.cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; padding: 12px 16px; }
.cal-nav { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cal-nav .btn { min-height: 40px; }
.cal-title { font: 600 1.15rem var(--display); margin-left: 8px; }
.cal-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vtabs { display: inline-flex; padding: 4px; gap: 2px; border-radius: 11px; background: var(--surface-3); }
.vtabs a { padding: 7px 14px; border-radius: 8px; font-size: .88rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.vtabs a:hover { color: var(--ink); background: var(--surface); } .vtabs a.on { background: var(--surface); color: var(--blue-ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.cal-flt { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 12px 16px; }
.cal-who { display: flex; align-items: center; gap: 8px; } .cal-who select { min-height: 40px; width: auto; min-width: 180px; }
.cal-kinds { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin: 0; padding: 0; }
.kchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .82rem; font-weight: 500; color: var(--ink-2); cursor: pointer; background: var(--surface); }
.kchip input { position: absolute; opacity: 0; pointer-events: none; }
.kchip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c) 25%, transparent); }
.kchip:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: var(--ink); }
.kchip:has(input:not(:checked)) { opacity: .6; } .kchip:has(input:not(:checked)) i { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
.kchip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.cal-mob { display: none; }
.cal-hint { display: flex; align-items: center; gap: 8px; margin: -8px 4px 0; } .cal-hint svg { width: 16px; height: 16px; flex: none; }
/* saat ızgarası */
.cg { overflow: hidden; }
.cg-head, .cg-all, .cg-body { display: grid; grid-template-columns: 58px repeat(var(--n), minmax(0, 1fr)); }
.cg-head { border-bottom: 1px solid var(--line); }
.cg-dh { display: flex; align-items: baseline; justify-content: center; gap: 6px; padding: 10px 4px; color: var(--ink-2); text-decoration: none; border-left: 1px solid var(--line); }
.cg-dh small { font-size: .78rem; font-weight: 600; text-transform: capitalize; } .cg-dh b { font: 500 1.05rem var(--display); }
.cg-dh:hover { background: var(--surface-2); color: var(--ink); }
.cg-dh.today b { background: var(--blue); color: #fff; border-radius: 99px; padding: 0 8px; } .cg-dh.today small { color: var(--blue-ink); }
.cg-all { border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cg-lbl { font-size: .7rem; font-weight: 600; color: var(--ink-3); padding: 8px 6px; text-align: right; }
.cg-ac { display: grid; gap: 3px; align-content: start; padding: 4px; border-left: 1px solid var(--line); min-height: 34px; min-width: 0; }
.cg-body { position: relative; }
.cg-gut span { display: block; position: relative; border-top: 1px solid transparent; }
.cg-gut time { position: absolute; top: -8px; right: 8px; font-size: .72rem; color: var(--ink-3); background: var(--surface); padding: 0 2px; }
.cg-gut span:first-child time { top: 2px; }
.cg-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px var(--hp)), repeating-linear-gradient(to bottom, transparent 0 calc(var(--hp) / 2), color-mix(in srgb, var(--line) 45%, transparent) calc(var(--hp) / 2) calc(var(--hp) / 2 + 1px), transparent calc(var(--hp) / 2 + 1px) var(--hp)); cursor: copy; }
.cg-col.wkend, .cg-ac.wkend { background-color: color-mix(in srgb, var(--surface-3) 45%, transparent); }
.cg-col.today { background-color: color-mix(in srgb, var(--blue) 4%, transparent); }
.cg-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; pointer-events: none; }
.cg-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); }
.cb { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 1px; padding: 4px 7px; overflow: hidden; text-align: left; border: 0; border-left: 3px solid var(--c); border-radius: 7px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: var(--ink); font-size: .78rem; line-height: 1.3; cursor: pointer; box-shadow: 0 0 0 1px var(--surface); }
.cb:hover { background: color-mix(in srgb, var(--c) 22%, var(--surface)); z-index: 4; }
.cb time { font-size: .7rem; font-weight: 600; color: var(--ink-2); } .cb b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cb span { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .cb .cb-w { color: var(--ink-3); }
.cb.cb-xs { flex-direction: row; align-items: center; gap: 6px; padding: 2px 6px; } .cb.cb-xs b { min-width: 0; }
.cb[draggable="true"], .ce[draggable="true"] { cursor: grab; }
.st-done { opacity: .62; } .st-done b, .st-done .ce-t { text-decoration: line-through; text-decoration-color: var(--ink-3); }
.st-late { box-shadow: 0 0 0 1px var(--surface), inset 0 0 0 1px color-mix(in srgb, var(--bad) 55%, transparent); }
.st-late time::after { content: " · Gecikti"; color: var(--bad); }
.dragging { opacity: .4; }
.over { background-color: color-mix(in srgb, var(--blue) 12%, transparent) !important; box-shadow: inset 0 0 0 2px var(--blue); }
/* kısa öğe */
.ce { display: flex; align-items: baseline; gap: 6px; width: 100%; min-width: 0; padding: 4px 7px; border: 0; border-left: 3px solid var(--c); border-radius: 6px; background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--ink); font-size: .76rem; line-height: 1.3; text-align: left; cursor: pointer; }
.ce:hover { background: color-mix(in srgb, var(--c) 22%, var(--surface)); }
.ce time { font-size: .7rem; font-weight: 600; color: var(--ink-2); flex: none; }
.ce-t { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ce-w { color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce.st-late time::after { content: ""; }
/* ay */
.cm-head, .cm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cm-head span { padding: 10px 8px; font-size: .78rem; font-weight: 600; color: var(--ink-3); text-align: center; border-bottom: 1px solid var(--line); }
.cm-c { display: flex; flex-direction: column; gap: 3px; min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; }
.cm-c:nth-child(7n) { border-right: 0; }
.cm-c.out { background: var(--surface-2); } .cm-c.out .cm-d { color: var(--ink-3); }
.cm-c.wkend:not(.out) { background: color-mix(in srgb, var(--surface-3) 40%, transparent); }
.cm-d { align-self: flex-start; font: 500 .9rem var(--display); color: var(--ink-2); padding: 1px 7px; border-radius: 99px; text-decoration: none; }
.cm-d:hover { background: var(--surface-3); color: var(--ink); }
.cm-c.today .cm-d { background: var(--blue); color: #fff; }
.cm-more { font-size: .76rem; font-weight: 600; padding: 2px 4px; }
/* ekip */
.ct { overflow: hidden; }
.ct-row { display: grid; grid-template-columns: 210px repeat(var(--n), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ct-row:last-child { border-bottom: 0; }
.ct-head { background: var(--surface-2); }
.ct-head .ct-p { font-size: .78rem; font-weight: 600; color: var(--ink-3); padding: 10px 16px; align-self: center; }
.ct-p { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; min-width: 0; }
.ct-n { display: grid; min-width: 0; flex: 1; } .ct-n b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ct-n small { font-size: .74rem; color: var(--ink-3); }
.ct-c { font-size: .74rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.ct-cell { display: flex; flex-direction: column; gap: 3px; padding: 6px; min-height: 64px; border-left: 1px solid var(--line); min-width: 0; }
.ct-cell.today { background: color-mix(in srgb, var(--blue) 4%, transparent); } .ct-cell.wkend { background-color: color-mix(in srgb, var(--surface-3) 40%, transparent); }
.ct-cell.busy { background-image: repeating-linear-gradient(135deg, transparent 0 8px, color-mix(in srgb, var(--k-off) 10%, transparent) 8px 9px); }
.ct-cell .ce { flex-wrap: wrap; row-gap: 0; } .ct-cell .ce-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* liste (telefon) */
.cal-list { display: grid; gap: 14px; }
.cl-day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cl-day.today { border-color: color-mix(in srgb, var(--blue) 45%, var(--line)); }
.cl-h { display: flex; align-items: center; gap: 8px; padding: 12px 8px 12px 16px; font: 600 .98rem var(--display); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.cl-day.today .cl-h { background: var(--blue-soft); color: var(--blue-ink); }
.cl-h small { font: 500 .84rem var(--body); color: var(--ink-3); }
.cl-add { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); }
.cl-add:hover { background: var(--surface); }
.cl-empty { padding: 14px 16px; font-size: .88rem; color: var(--ink-3); }
.cal-list ul { list-style: none; margin: 0; padding: 0; }
.cal-list li + li { border-top: 1px solid var(--line); }
.cl-it { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 12px; width: 100%; padding: 12px 16px 12px 13px; border: 0; border-left: 4px solid var(--c); background: none; color: var(--ink); text-align: left; cursor: pointer; font-size: .9rem; }
.cl-it:hover { background: var(--surface-2); }
.cl-time { font: 600 .95rem var(--display); display: grid; align-content: start; } .cl-time small { font: 500 .78rem var(--body); color: var(--ink-3); }
.cl-m { display: grid; gap: 2px; min-width: 0; }
.cl-k { font-size: .74rem; font-weight: 600; color: var(--c); text-transform: uppercase; letter-spacing: .03em; }
.cl-m b { font-weight: 600; line-height: 1.35; } .cl-s { font-size: .84rem; color: var(--ink-2); line-height: 1.4; }
.cl-w { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--ink-3); } .cl-w svg { width: 14px; height: 14px; }
.cl-st { grid-column: 2; justify-self: start; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.cl-it.st-late .cl-st { background: var(--bad-soft); color: var(--bad); } .cl-it.st-onsite .cl-st { background: var(--ok-soft); color: var(--ok); } .cl-it.st-road .cl-st { background: var(--warn-soft); color: var(--warn); }
.cal-mini { padding: 8px 10px 12px; } .cal-mini .cm-head span { padding: 6px 0; border: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.mini-grid a { display: grid; justify-items: center; gap: 2px; padding: 6px 0; min-height: 46px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.mini-grid a b { font: 500 .9rem var(--display); } .mini-grid a i { font-style: normal; font-size: .66rem; font-weight: 700; min-width: 18px; text-align: center; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); }
.mini-grid a.out { color: var(--ink-3); } .mini-grid a.today { background: var(--blue); color: #fff; } .mini-grid a.today i { background: #fff; color: var(--blue); }
/* pencereler */
.cd-h { box-shadow: inset 4px 0 0 var(--c); }
.cd-k { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c); }
.cd-t { font: 600 1.15rem var(--display); margin-bottom: 4px; } .cd-sub { color: var(--ink-2); margin-bottom: 12px; }
.cd-kv { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px 10px; margin: 0 0 14px; font-size: .92rem; }
.cd-kv dt { color: var(--ink-3); padding-top: 2px; } .cd-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; } .cd-kv [hidden] { display: none; }
.cd-kv .pre { white-space: pre-line; }
.cd-st { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 99px; background: var(--surface-3); }
.cd-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; } .cd-quick[hidden], .cd-quick [hidden] { display: none; }
.cal-dlg .modal-f { flex-wrap: wrap; } .cal-dlg .modal-f [hidden] { display: none; }
.cd-fr { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.ev-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 0 14px; }
.ev-grid .field:only-child { grid-column: 1 / -1; }
.ev-when { display: grid; grid-template-columns: 1fr 130px 1fr 130px; gap: 0 12px; }
.ev-when [hidden] { display: none; }
.lbl { font-weight: 600; font-size: .9rem; }
.ev-team { margin: 2px 0 8px; }
.ev-users { display: flex; flex-wrap: wrap; gap: 6px; } .ev-users.off { opacity: .45; pointer-events: none; }
.uchip { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .86rem; font-weight: 500; cursor: pointer; min-height: 40px; }
.uchip input { position: absolute; opacity: 0; pointer-events: none; }
.uchip .av { width: 30px; height: 30px; font-size: .7rem; }
.uchip:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
.uchip:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.cf-box { padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.cf-box > b { display: flex; align-items: center; gap: 8px; color: var(--warn); margin-bottom: 4px; }
.cf-box ul, .cf-list { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; display: grid; gap: 4px; }
.cf-list li b { display: block; }
.toast-bad { border-left: 4px solid var(--bad); }
@media (max-width: 1200px) { .ct-row { grid-template-columns: 170px repeat(var(--n), minmax(0, 1fr)); } .ct-p .av { display: none; } }
@media (max-width: 760px) {
  .cal-desk { display: none; } .cal-mob { display: grid; gap: 14px; }
  .cal-bar { padding: 12px; } .cal-nav { width: 100%; } .cal-title { margin-left: 4px; font-size: 1rem; flex: 1; text-align: right; }
  .cal-acts { width: 100%; } .vtabs { flex: 1; } .vtabs a { flex: 1; text-align: center; padding: 9px 4px; }
  .cal-acts .btn { width: 100%; }
  .cal-flt { padding: 12px; } .cal-who { width: 100%; } .cal-who select { flex: 1; min-width: 0; }
  .cal-kinds { flex-wrap: nowrap; overflow-x: auto; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; width: calc(100% + 24px); } .kchip { flex: none; min-height: 38px; }
  .ev-grid, .ev-when { grid-template-columns: 1fr 1fr; } .ev-grid .field:first-child { grid-column: 1 / -1; } .ev-span { grid-column: 1 / -1; }
  .cd-fr { width: 100%; margin: 0; } .cd-fr .btn, .cal-dlg .modal-f form, .cal-dlg .modal-f form .btn { flex: 1; width: 100%; }
}

/* ===== Saha ziyaretleri (sahada kullanım) ===== */
.head-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-road { border-left-color: var(--warn); } .vs-road .vs-st { background: var(--warn-soft); color: var(--warn); }
.vs-acts { display: grid; grid-template-columns: repeat(2, auto); gap: 8px; justify-content: end; align-items: center; }
.vs-acts form { margin: 0; } .vs-acts form .btn, .vs-acts > .btn { width: 100%; }
.vs-quick { grid-column: 1 / -1; display: flex; gap: 6px; justify-content: flex-end; }
.vs-quick .btn { min-height: 38px; padding: 0 12px; font-size: .84rem; }
@media (max-width: 760px) {
  .vs-acts { grid-template-columns: 1fr 1fr; justify-content: stretch; }
  .vs-acts > form:only-of-type, .vs-acts > .btn { grid-column: 1 / -1; }
  .vs-acts .btn { min-height: 48px; font-size: .95rem; }
  .vs-quick { display: grid; grid-template-columns: repeat(3, 1fr); } .vs-quick .btn { min-height: 46px; flex-direction: column; gap: 2px; font-size: .76rem; padding: 4px; }
  .head-acts { width: 100%; } .head-acts .btn { flex: 1; }
}

/* Müşteri paneli: planlı ziyaretler */
.pv-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pv-list li + li { border-top: 1px solid var(--line); }
.pv-it { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 20px; color: var(--ink); text-decoration: none; }
a.pv-it:hover { background: var(--surface-2); color: var(--ink); }
.pv-date { display: grid; justify-items: center; padding: 6px 0; border-radius: 10px; background: var(--orange-soft); color: var(--orange-2); }
.pv-date b { font: 600 1.2rem/1.1 var(--display); } .pv-date small { font-size: .72rem; font-weight: 600; text-transform: uppercase; }
.pv-m { display: grid; gap: 1px; min-width: 0; } .pv-k { font-size: .78rem; color: var(--ink-3); font-weight: 500; } .pv-m b { font-weight: 600; } .pv-m small { font-size: .8rem; color: var(--ink-2); }
.pv-st { font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; background: var(--blue-soft); color: var(--blue-ink); white-space: nowrap; }
@media (max-width: 560px) { .pv-it { grid-template-columns: 48px minmax(0, 1fr); padding: 12px 16px; } .pv-st { grid-column: 2; justify-self: start; } }

/* Servis raporları */
.s-warn { background: var(--warn-soft); color: var(--warn); } .s-info { background: var(--blue-soft); color: var(--blue-ink); }
.rp-flt { padding: 14px 20px; display: grid; gap: 12px; }
.rp-presets { justify-self: start; }
.rp-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.rp-form .field { margin: 0; min-width: 150px; } .rp-form .field label { font-size: .84rem; }
.rp-form .field input, .rp-form .field select { min-height: 42px; }
.rp-form .rp-cust { min-width: 280px; flex: 1 1 280px; }
.rp-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.rp-flt .an-cap { margin: 0; }
.rp-reasons { display: grid; gap: 2px; margin-top: 4px; font-size: .8rem; }
table.rt { width: 100%; }
table.rt tfoot td { font-weight: 600; background: var(--surface-2); }
.hk-card { padding: 16px 20px; border-left: 4px solid var(--ok); }
.hk-card.hk-warn { border-left-color: var(--orange); } .hk-card.hk-bad { border-left-color: var(--bad); }
.hk-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.hk-who { display: grid; } .hk-who b { font-size: 1rem; color: var(--ink); }
.hk-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hk-rows { display: grid; gap: 2px; }
.hk-r { display: grid; grid-template-columns: minmax(160px, 1.2fr) minmax(120px, 2fr) minmax(140px, auto); gap: 6px 18px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.hk-t { display: grid; } .hk-t b { font-size: .9rem; } .hk-t small { font-size: .76rem; color: var(--ink-3); }
.hk-unl { grid-column: 2 / -1; font-size: .86rem; color: var(--ink-2); }
.hk-n { text-align: right; font-size: .88rem; display: grid; } .hk-n small { font-size: .76rem; color: var(--ink-3); }
.rp-bars { list-style: none; margin: 0; padding: 6px 20px 14px; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.rp-bars li { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(80px, 1fr) 48px; gap: 12px; align-items: center; padding: 8px 0; }
.rp-bl { display: grid; min-width: 0; } .rp-bl b { font-size: .9rem; } .rp-bl small { font-size: .78rem; color: var(--ink-3); }
.rp-bars li > b { text-align: right; }
.rp-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-topic { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.rp-topic b { min-width: 28px; text-align: center; padding: 2px 8px; border-radius: 99px; background: var(--blue); color: #fff; font-size: .8rem; }
@media (max-width: 760px) {
  .rp-flt { padding: 12px; }
  .rp-presets { justify-self: stretch; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .rp-presets a.tab { flex: none; }
  .rp-form { display: grid; grid-template-columns: 1fr 1fr; } .rp-form .field { min-width: 0; } .rp-form .rp-cust, .rp-form .field:has(select) { grid-column: 1 / -1; }
  .rp-btns { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: 1fr 1fr; } .rp-btns .btn { width: 100%; } .rp-btns .btn-b { grid-column: 1 / -1; }
  .hk-card { padding: 14px 16px; } .hk-r { grid-template-columns: 1fr auto; } .hk-bar { grid-column: 1 / -1; grid-row: 2; } .hk-unl { grid-column: 1 / -1; }
  .rp-bars { padding: 6px 16px 12px; }
}
.dbg { align-items: start; }
.dbb.sz-f, .dbg > .dbb:has(.db-mod) { align-self: stretch; }
.wk-i span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.cal-hint { margin: 0 4px; }
.cb.cb-xs b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb.cb-xs time { flex: none; }
.ct-n b { white-space: normal; overflow: visible; line-height: 1.3; }
@media (min-width: 761px) { .cal-desk { display: grid; gap: 10px; } }
.cm-c .ce, .cg-ac .ce { flex-wrap: wrap; row-gap: 0; }
.cm-c .ce-t, .cg-ac .ce-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ===== Telefon düzeni (beta 12 mobil denetimi) ===== */
@media (max-width: 760px) {
  /* tablolar kart görünümünde: yatay kaydırma yok */
  .tw { overflow: visible; }
  table.mcard, table.mcard > tbody, table.mcard > tfoot, table.mcard > tbody > tr, table.mcard > tfoot > tr, table.mcard > tbody > tr > td, table.mcard > tfoot > tr > td { display: block; width: auto; }
  table.mcard { min-width: 0 !important; width: 100% !important; }
  table.mcard > thead { display: none; }
  table.mcard > tbody { padding: 4px 0; }
  table.mcard > tbody > tr, table.mcard > tfoot > tr { margin: 10px 12px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
  table.mcard > tfoot > tr { background: var(--surface-2); }
  table.mcard > tbody > tr > td, table.mcard > tfoot > tr > td { position: relative; padding: 8px 0 8px 40% !important; border: 0 !important; border-top: 1px solid var(--line) !important; text-align: left !important; min-height: 36px; white-space: normal !important; background: none !important; }
  table.mcard > tbody > tr > td::before, table.mcard > tfoot > tr > td::before { content: attr(data-l); position: absolute; left: 0; top: 9px; width: calc(40% - 12px); font-size: .76rem; font-weight: 600; color: var(--ink-3); line-height: 1.3; }
  table.mcard > tbody > tr > td[data-l=""], table.mcard > tfoot > tr > td[data-l=""], table.mcard td:not([data-l]) { padding-left: 0 !important; }
  table.mcard > tbody > tr > td[data-l=""]::before, table.mcard td:not([data-l])::before { display: none; }
  table.mcard > tbody > tr > td:first-child, table.mcard > tbody > tr > td.stripe + td { padding: 10px 0 !important; border-top: 0 !important; font-size: .95rem; }
  table.mcard > tbody > tr > td:first-child::before, table.mcard > tbody > tr > td.stripe + td::before { position: static; display: block; width: auto; margin-bottom: 2px; }
  table.mcard > tbody > tr > td:first-child[data-l=""]::before { display: none; }
  table.mcard td.stripe, table.mcard td:empty { display: none !important; }
  table.mcard td.hs { display: none !important; }
  table.mcard tr.pri-urgent { border-left: 4px solid var(--bad); } table.mcard tr.pri-high { border-left: 4px solid var(--orange); }
  table.mcard td .menu, table.mcard td details.menu { display: block; }
  table.mcard td details.menu > summary { width: 100%; }
  table.mcard td form { display: inline-block; }
  table.mcard td input:not([type=checkbox]):not([type=radio]), table.mcard td select { width: 100%; }
  table.mcard > tbody > tr.empty-row > td { padding-left: 0 !important; }
  /* kesilen metinler telefonda alt satıra geçer */
  .content small, .content .tt, .content a.qt, .ag-m b, .og-m b, .ex-m b, .qk-m b, .hb-l, .content .sm { white-space: normal !important; text-overflow: clip !important; }
  .ag-m small, .og-m small, .qk-m small, .ex-m small { overflow: visible; }
  /* dokunma hedefleri */
  .btn-sm, a.btn-sm, summary.btn-sm { min-height: 40px; padding: 0 14px; font-size: .86rem; }
  .tabs a.tab, a.tab { min-height: 40px; display: inline-flex; align-items: center; }
  .modal-h button[data-close], .modal-h button { width: 40px; height: 40px; display: grid; place-items: center; margin: -8px -10px -8px 0; }
  input[type=file] { min-height: 44px; padding: 8px; }
  .qtabs a { min-height: 38px; display: inline-flex; align-items: center; }
  /* pencereler tam genişlik ve kaydırılabilir */
  dialog.modal, dialog.modal.modal-lg, dialog.modal.modal-xl { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); margin: auto; }
  dialog.modal form { display: flex; flex-direction: column; max-height: calc(100dvh - 16px); }
  dialog.modal .modal-b { overflow-y: auto; padding: 16px; }
  .modal-f { padding: 12px 16px 16px; flex-wrap: wrap; } .modal-f > .btn { flex: 1; }
}
@media (max-width: 560px) {
  .card-h { flex-wrap: wrap; padding: 16px; }
  .card-h > div:first-child { flex: 1 1 220px; min-width: 0; }
  .card-h > .btn, .card-h > a.btn { flex: none; }
}
.kchip, .uchip { position: relative; }
.seg label, .pm-opt, .role-pick label { position: relative; }
fieldset.cal-kinds { min-width: 0; }
@media (max-width: 760px) {
  .tq-filters, .pay-flt { grid-template-columns: 1fr 1fr !important; padding: 12px; }
  .tq-filters .tq-search, .tq-filters .tq-actions { grid-column: 1 / -1; }
  .tq-filters .tq-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tq-actions .btn { width: 100%; }
  .cu-k b { white-space: normal; font-size: 1.15rem; line-height: 1.25; overflow-wrap: anywhere; }
  svg.chart { min-width: 0; }
  table.mcard > tbody > tr > th, table.mcard > tfoot > tr > th { display: block; text-align: left !important; padding: 10px 0 4px !important; border: 0 !important; }
}
@media (max-width: 420px) { .tq-filters, .pay-flt { grid-template-columns: 1fr !important; } }
@media (max-width: 760px) {
  .ld-steps { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .ld-step button { min-height: 44px; justify-content: flex-start; text-align: left; font-size: .84rem; }
  table.mcard td, table.mcard th, .kv dd, .info-kv dd { overflow-wrap: anywhere; }
}
.flt-toggle { display: none; }
@media (max-width: 760px) {
  .tq-filters .flt-toggle { display: inline-flex; grid-column: 1 / -1; order: 2; }
  .tq-filters .tq-search { order: 1; }
  .tq-filters:not(.m-open) > .field:not(.tq-search) { display: none; }
  .tq-filters > .field, .tq-filters > .tq-actions { order: 3; }
  /* talep listesi kartı: talep başlığı en üstte */
  table.q.mcard > tbody > tr { display: flex; flex-direction: column; }
  table.q.mcard > tbody > tr > td:nth-child(4) { order: -1; padding: 10px 0 !important; border-top: 0 !important; }
  table.q.mcard > tbody > tr > td:nth-child(4)::before { display: none; }
  table.q.mcard > tbody > tr > td:nth-child(2) { padding: 8px 0 8px 40% !important; border-top: 1px solid var(--line) !important; font-size: .9rem; }
  table.q.mcard > tbody > tr > td:nth-child(2)::before { position: absolute; display: block; width: calc(40% - 12px); margin: 0; }
  table.q.mcard > tbody > tr > td:nth-child(2) .muted { display: inline; margin-left: 6px; }
}
@media (max-width: 760px) {
  table.mcard > tbody > tr { position: relative; }
  table.mcard > tbody > tr > td:first-child[data-l=""]:not(:only-child) { position: absolute !important; top: 12px; right: 14px; width: auto; min-height: 0; padding: 0 !important; border: 0 !important; }
  table.mcard > tbody > tr > td:first-child[data-l=""] + td { padding: 10px 28px 10px 0 !important; border-top: 0 !important; font-size: .95rem; }
  table.mcard > tbody > tr > td:first-child[data-l=""] + td::before { position: static; display: block; width: auto; margin-bottom: 2px; }
}
@media (max-width: 760px) {
  form.filters { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; }
  form.filters select, form.filters input { width: 100% !important; min-width: 0 !important; }
  form.filters input[type=search], form.filters input[type=text] { grid-column: 1 / -1; }
  .card-f { flex-wrap: wrap; } .card-f > .btn, .card-f > button, .card-f > a.btn { flex: 1 1 140px; }
}
@media (max-width: 760px) {
  .tq-tabs { flex-wrap: wrap; overflow: visible !important; row-gap: 0; }
  .tq-tabs a { flex: 1 1 auto; justify-content: center; }
  .vs-filter { padding: 0 0 12px; } .vs-staff { width: 100%; padding: 0 12px; } .vs-staff select { flex: 1; }
}
@media (max-width: 760px) {
  .rp-presets { flex-wrap: wrap; overflow: visible; } .rp-presets a.tab { flex: 1 1 auto; justify-content: center; }
  .an-filter .tabs { flex-wrap: wrap; } .an-filter .tabs a.tab { flex: 1 1 auto; justify-content: center; }
  .rp-btns { display: flex; flex-wrap: wrap; } .rp-btns .btn { flex: 1 1 140px; } .rp-btns .btn-b { flex-basis: 100%; }
  .an-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
  .an-k { padding: 14px; } .an-k .v { font-size: 1.3rem !important; white-space: normal; overflow-wrap: anywhere; } .an-k .d { font-size: .76rem; }
}
.cb.cb-xs.st-late time::after { content: ""; }
@media (min-width: 1500px) { table.rt td.num { white-space: nowrap; } }
.frm > *, .frow > *, .g2 > * { min-width: 0; }
@media (max-width: 420px) {
  .rp-grid { grid-template-columns: 1fr; }
  input[type=file] { width: 100%; max-width: 100%; }
  .st-chip { max-width: 100%; min-width: 0; flex: 1; white-space: normal; } .st-preview { flex-wrap: wrap; }
  .chosen { flex-wrap: wrap; } .g2 { grid-template-columns: 1fr !important; }
  dialog.modal .modal-b { overflow-x: hidden; }
  .ev-when { grid-template-columns: 1fr 1fr; } .ev-when .field input { min-width: 0; width: 100%; }
}
/* dizüstü ekranlarda tablolar sığsın: daha dar hücre boşluğu, başlıklar kaydırılabilir */
@media (min-width: 761px) and (max-width: 1500px) {
  th { padding: 11px 12px; white-space: normal; }
  td { padding: 13px 12px; }
  th:first-child, td:first-child { padding-left: 20px; } th:last-child, td:last-child { padding-right: 20px; }
}
@media (min-width: 761px) and (max-width: 1500px) {
  .agr-cust { min-width: 170px; } .agr-use { min-width: 140px; }
  .agr-table td:nth-child(2) { min-width: 140px; } .agr-table td:nth-child(3) { min-width: 130px; }
  .cu-name { min-width: 200px; } .ld-name { min-width: 170px; } .ld-st, .stage-sel { min-width: 140px; }
}

/* Geniş ekranda sığmayan tablolar da kart görünümüne geçer (JS: .mfit) */
.tw:has(> table.mfit) { overflow: visible; }
table.mfit, table.mfit > tbody, table.mfit > tfoot, table.mfit > tbody > tr, table.mfit > tfoot > tr, table.mfit > tbody > tr > td, table.mfit > tfoot > tr > td { display: block; width: auto; }
table.mfit { min-width: 0 !important; width: 100% !important; }
table.mfit > thead { display: none; }
table.mfit > tbody { padding: 4px 0; }
table.mfit > tbody > tr, table.mfit > tfoot > tr { margin: 10px 12px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-sm); }
table.mfit > tfoot > tr { background: var(--surface-2); }
table.mfit > tbody > tr > td, table.mfit > tfoot > tr > td { position: relative; padding: 8px 0 8px 40% !important; border: 0 !important; border-top: 1px solid var(--line) !important; text-align: left !important; min-height: 36px; white-space: normal !important; background: none !important; }
table.mfit > tbody > tr > td::before, table.mfit > tfoot > tr > td::before { content: attr(data-l); position: absolute; left: 0; top: 9px; width: calc(40% - 12px); font-size: .76rem; font-weight: 600; color: var(--ink-3); line-height: 1.3; }
table.mfit > tbody > tr > td[data-l=""], table.mfit > tfoot > tr > td[data-l=""], table.mfit td:not([data-l]) { padding-left: 0 !important; }
table.mfit > tbody > tr > td[data-l=""]::before, table.mfit td:not([data-l])::before { display: none; }
table.mfit > tbody > tr > td:first-child, table.mfit > tbody > tr > td.stripe + td { padding: 10px 0 !important; border-top: 0 !important; font-size: .95rem; }
table.mfit > tbody > tr > td:first-child::before, table.mfit > tbody > tr > td.stripe + td::before { position: static; display: block; width: auto; margin-bottom: 2px; }
table.mfit > tbody > tr > td:first-child[data-l=""]::before { display: none; }
table.mfit td.stripe, table.mfit td:empty { display: none !important; }
table.mfit td.hs { display: none !important; }
table.mfit tr.pri-urgent { border-left: 4px solid var(--bad); } table.mfit tr.pri-high { border-left: 4px solid var(--orange); }
table.mfit td .menu, table.mfit td details.menu { display: block; }
table.mfit td details.menu > summary { width: 100%; }
table.mfit td form { display: inline-block; }
table.mfit td input:not([type=checkbox]):not([type=radio]), table.mfit td select { width: 100%; }
table.mfit > tbody > tr.empty-row > td { padding-left: 0 !important; }
table.mfit > tbody > tr > th, table.mfit > tfoot > tr > th { display: block; text-align: left !important; padding: 10px 0 4px !important; border: 0 !important; }
table.mfit td, table.mfit th, .kv dd, .info-kv dd { overflow-wrap: anywhere; }
table.q.mfit > tbody > tr { display: flex; flex-direction: column; }
table.q.mfit > tbody > tr > td:nth-child(4) { order: -1; padding: 10px 0 !important; border-top: 0 !important; }
table.q.mfit > tbody > tr > td:nth-child(4)::before { display: none; }
table.q.mfit > tbody > tr > td:nth-child(2) { padding: 8px 0 8px 40% !important; border-top: 1px solid var(--line) !important; font-size: .9rem; }
table.q.mfit > tbody > tr > td:nth-child(2)::before { position: absolute; display: block; width: calc(40% - 12px); margin: 0; }
table.q.mfit > tbody > tr > td:nth-child(2) .muted { display: inline; margin-left: 6px; }
table.mfit > tbody > tr { position: relative; }
table.mfit > tbody > tr > td:first-child[data-l=""]:not(:only-child) { position: absolute !important; top: 12px; right: 14px; width: auto; min-height: 0; padding: 0 !important; border: 0 !important; }
table.mfit > tbody > tr > td:first-child[data-l=""] + td { padding: 10px 28px 10px 0 !important; border-top: 0 !important; font-size: .95rem; }
table.mfit > tbody > tr > td:first-child[data-l=""] + td::before { position: static; display: block; width: auto; margin-bottom: 2px; }
@media (min-width: 761px) { table.mfit > tbody { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 12px; padding: 12px; } table.mfit > tbody > tr { margin: 0 !important; } table.mfit > tfoot > tr { margin: 0 12px 12px; } }
table.mfit td, table.mfit th { min-width: 0 !important; max-width: none !important; }
@media (max-width: 1300px) and (min-width: 761px) { .pay-flt { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
input[type=file] { max-width: 100%; }
@media (max-width: 1200px) and (min-width: 761px) { .ld-steps { flex-wrap: wrap; overflow: visible; } .ld-step { flex: 1 1 150px; } }

/* KVKK */
.kv-page { background: var(--bg); }
.kv-wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 48px; display: grid; gap: 16px; }
.kv-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.kv-head .brand-logo img { width: 190px; height: auto; display: block; }
.kv-head .lg-dark { display: none; }
:root[data-theme="dark"] .kv-head .lg-light { display: none; } :root[data-theme="dark"] .kv-head .lg-dark { display: block; }
.kv-doc { padding: 26px 30px; line-height: 1.7; }
.kv-doc h2 { font: 600 1.3rem var(--display); margin: 0 0 14px; } .kv-doc h3 { font: 600 1.02rem var(--display); margin: 22px 0 8px; }
.kv-doc p { margin: 0 0 10px; color: var(--ink-2); } .kv-doc ul { margin: 0 0 10px; padding-left: 20px; color: var(--ink-2); } .kv-doc li { margin: 3px 0; }
.kv-consent h3 { margin-top: 0; }
.kv-foot { text-align: center; }
.kv-accept { overflow: hidden; }
.kv-scroll { max-height: 52vh; overflow-y: auto; padding: 22px 26px; border-bottom: 1px solid var(--line); line-height: 1.7; }
.kv-scroll h2 { font: 600 1.15rem var(--display); margin: 0 0 12px; } .kv-scroll h3 { font: 600 .98rem var(--display); margin: 18px 0 6px; }
.kv-scroll p, .kv-scroll li { color: var(--ink-2); font-size: .94rem; } .kv-scroll ul { padding-left: 20px; }
.kv-checks { display: grid; gap: 12px; padding: 18px 26px; }
.kv-check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.kv-check:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.kv-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue); }
.kv-riza { display: block; margin-top: 6px; font-size: .86rem; color: var(--ink-2); line-height: 1.55; }
.kv-ta { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .86rem; line-height: 1.6; }
.lg2-foot a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .kv-doc { padding: 18px; } .kv-scroll { padding: 16px; max-height: 46vh; } .kv-checks { padding: 14px 16px; } .kv-head .brand-logo img { width: 150px; } }

/* ================= Teklifler ================= */
.qst { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 2px 0 2px 9px; border-left: 4px solid var(--mbg); max-width: 210px; line-height: 1.25; }
.qst span { font-size: .8rem; font-weight: 600; color: var(--fg); background: var(--bg); padding: 2px 8px; border-radius: 6px; }
.qst b { font-size: .7rem; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .03em; }
.q-table th:first-child { min-width: 170px; }
.q-table td { vertical-align: top; } .q-table .q-cari { font-weight: 600; color: var(--ink); }
.q-srcb { display: inline-block; font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 6px; background: var(--orange-soft); color: var(--orange-2); }
.q-rev { display: inline-block; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--blue-soft); color: var(--blue-ink); vertical-align: 1px; }
.q-flt { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

/* giriş formu */
.q-form { display: grid; gap: 20px; }
.q-form > .card { margin: 0; }
.q-tabs { display: flex; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.q-tabs button { border: 0; background: none; padding: 14px 6px 12px; margin-right: 18px; font: 600 .92rem var(--body); color: var(--ink-3); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.q-tabs button.on { color: var(--blue-ink); border-bottom-color: var(--blue); }
.q-panel { padding: 20px; }
fieldset.q-src { all: unset; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 18px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; max-width: 640px; min-width: 0; }
.q-src label { position: relative; display: block; cursor: pointer; }
.q-src input { position: absolute; opacity: 0; inset: 0; margin: 0; }
.q-src label > span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 6px 10px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--ink-2); text-align: center; }
.q-src label > span svg { width: 16px; height: 16px; flex: none; }
.q-src input:checked + span { background: var(--surface); color: var(--blue-ink); box-shadow: var(--shadow-sm); }
.q-src input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
.q-who { padding: 16px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.q-who .field:last-child { margin-bottom: 0; }
.q-note { margin: 0 0 12px; }
.q-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.q-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
.q-span2 { grid-column: span 2; } .q-span3 { grid-column: 1 / -1; }
.q-head { gap: 0 28px; }
.q-dates { gap: 0 14px; }
.q-quick { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.chip-btn { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 4px 11px; font: 500 .78rem var(--body); color: var(--ink-2); cursor: pointer; min-height: 34px; }
.chip-btn:hover { border-color: var(--blue); color: var(--blue-ink); }
.q-pick { display: inline-block; position: relative; margin-top: 6px; }
.q-pick > summary { list-style: none; } .q-pick > summary::-webkit-details-marker { display: none; }
.q-pick .menu-list { left: 0; right: auto; width: min(420px, 82vw); max-height: 320px; overflow: auto; }
.q-pick .menu-list a { white-space: normal; display: grid; gap: 2px; }
.q-pick .menu-list a b { font-weight: 600; }

/* satırlar */
.q-lines-card { padding: 0; overflow: visible; }
.q-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; border: 0; border-bottom: 1px solid var(--line); background: var(--blue-soft); color: var(--blue-ink); font: 600 .92rem var(--body); cursor: pointer; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.q-add:hover { background: color-mix(in srgb, var(--blue-soft) 70%, var(--blue) 12%); }
.q-add svg { width: 17px; height: 17px; }
.q-lines-card { container: qlines / inline-size; }
.q-lhead, .q-row { display: grid; grid-template-columns: minmax(200px, 1fr) 96px 136px 136px 82px minmax(104px, 128px) 36px; gap: 8px; padding: 0 14px; align-items: start; }
.q-lhead { padding-top: 10px; padding-bottom: 10px; background: var(--navy, #14284b); color: #fff; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.q-lhead .r { text-align: right; }
.q-row { padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.q-row:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.q-row input, .q-row select { min-height: 40px; }
.q-ml { display: none; }
.q-in { display: flex; min-width: 0; }
.q-in > input { flex: 1 1 auto; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; text-align: right; }
.q-in > select { flex: 0 0 auto; width: 66px; max-width: 100px; border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; background-color: var(--surface-2); font-size: .82rem; padding-left: 8px; padding-right: 24px; }
.q-pre { display: inline-flex; align-items: center; padding: 0 9px; border: 1px solid var(--line-2); border-right: 0; border-radius: 9px 0 0 9px; background: var(--surface-2); color: var(--ink-3); font-size: .82rem; font-weight: 600; }
.q-pre + input { border-top-left-radius: 0; border-bottom-left-radius: 0; border-top-right-radius: 9px; border-bottom-right-radius: 9px; }
.q-netin { margin-top: 6px; }
.q-qty .q-in, .q-price .q-in { flex-direction: column; gap: 6px; }
.q-qty .q-in > input, .q-price .q-in > input { border-radius: 9px; }
.q-qty .q-in > select, .q-price .q-in > select { width: 100%; max-width: none; margin-left: 0; border-radius: 9px; }
.q-row select { padding: 6px 24px 6px 9px; font-size: .84rem; background-position: right 8px center; }
.q-row input[type=number] { padding: 8px 10px; }
.q-disc .q-in + .q-in input { font-size: .86rem; }
.q-vat select { width: 100%; }
.q-net { text-align: right; padding-top: 10px; } .q-net b { font-weight: 600; }
.q-del { padding-top: 2px; }
.q-name { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; min-width: 0; }
.q-name .q-stock { flex: 1 1 100%; min-width: 0; }
.q-name .q-stock input { width: 100%; font-weight: 500; }
.q-code { font-size: .74rem; font-weight: 600; color: var(--ink-3); background: var(--surface-3); border-radius: 6px; padding: 2px 7px; font-variant-numeric: tabular-nums; }
.q-note-btn { display: inline-flex; align-items: center; gap: 5px; border: 1px dashed var(--line-2); background: none; color: var(--ink-3); border-radius: 7px; padding: 3px 10px; font: 500 .78rem var(--body); cursor: pointer; min-height: 34px; }
.q-note-btn svg { width: 14px; height: 14px; }
.q-note-btn.has { border-style: solid; border-color: var(--orange); color: var(--orange-2); background: var(--orange-soft); }
.q-notebox { grid-column: 1 / -1; display: grid; gap: 6px; padding: 4px 0 2px; }
.q-notebox textarea { min-height: 84px; background: var(--note, #fffbea); border-color: var(--note-line, #f1e2a6); font-size: .9rem; }
.q-savenote { font-size: .84rem; }
.q-sum { display: flex; justify-content: flex-end; padding: 18px 16px 20px; }
.q-sum-box { width: min(380px, 100%); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.q-sum-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 600; font-size: .86rem; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.q-sum-h svg { width: 16px; height: 16px; color: var(--ink-3); }
.q-sum-box dl { margin: 0; }
.q-sum-box dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px; font-size: .9rem; }
.q-sum-box dl > div + div { border-top: 1px solid var(--line); }
.q-sum-box dt { color: var(--ink-2); } .q-sum-box dd { margin: 0; font-weight: 600; }
.q-sum-box .dc dd { color: var(--bad); }
.q-sum-box .grand { background: var(--navy, #14284b); color: #fff; padding: 12px 14px; }
.q-sum-box .grand dt { color: #fff; font-weight: 600; } .q-sum-box .grand dd { font-size: 1.12rem; }
.q-words { margin: 0; padding: 8px 14px 10px; border-top: 1px solid var(--line); }
.q-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 20px; position: sticky; bottom: 0; z-index: 5; box-shadow: 0 -6px 18px rgba(15, 23, 42, .06); }
.q-actions .q-rev { background: none; padding: 0; font-size: .9rem; color: var(--ink); font-weight: 500; }
.q-act-btns { display: flex; gap: 10px; margin-left: auto; }

/* görüntüle */
.q-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 24px; padding: 20px 22px; border-top: 3px solid #0f7aa8; }
.q-hero-no { font-size: .84rem; font-weight: 600; color: var(--ink-3); }
.q-hero h2 { margin: 4px 0 10px; font: 600 1.35rem var(--display); letter-spacing: -.01em; }
.q-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.q-hero-r { display: grid; justify-items: end; align-content: start; gap: 2px; text-align: right; }
.q-hero-r b { font: 600 1.6rem var(--display); letter-spacing: -.01em; color: var(--ink); }
.q-hero-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.q-hero-acts form { display: contents; }
.q-show { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.q-show-main, .q-show-side { display: grid; gap: 24px; min-width: 0; }
.q-show .card { margin: 0; }
.q-ltable { width: 100%; }
.q-ltable thead th { background: var(--navy, #14284b); color: #fff; font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 600; white-space: nowrap; }
.q-ltable td { vertical-align: top; }
.q-ltable s { font-size: .82rem; }
.q-notes { margin: 6px 0 0; padding-left: 16px; color: var(--ink-2); font-size: .86rem; }
.q-notes li { margin: 2px 0; }
.q-texts { display: grid; gap: 16px; }
.q-texts p { margin: 4px 0 0; color: var(--ink-2); }
.q-lbl { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.q-dl { margin: 0; display: grid; gap: 0; }
.q-dl > div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.q-dl > div:last-child { border-bottom: 0; }
.q-dl dt { color: var(--ink-3); } .q-dl dd { margin: 0; overflow-wrap: anywhere; }
.q-hist { list-style: none; margin: 0; padding: 4px 20px 16px; border-top: 1px solid var(--line); }
.q-hist li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.q-hist li:last-child { border-bottom: 0; }
.q-hist-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); color: var(--ink-3); }
.q-hist-ic svg { width: 15px; height: 15px; }
.q-hist-ic.a-revision { background: var(--blue-soft); color: var(--blue-ink); } .q-hist-ic.a-status { background: var(--orange-soft); color: var(--orange-2); }
.q-hist-ic.a-printed { background: var(--ok-soft); color: var(--ok); }
.q-snap { margin-top: 8px; } .q-snap summary { cursor: pointer; color: var(--blue-ink); font-weight: 500; }
.q-snap table { margin-top: 8px; border: 1px solid var(--line); border-radius: 8px; }
.q-snap thead th { background: var(--surface-2); color: var(--ink-3); }

/* tanımlar */
.q-defs { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
.qs-tree { border-top: 1px solid var(--line); padding: 8px 16px 16px; display: grid; gap: 12px; }
.qs-main { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.qs-main.off, .qs-row.off { opacity: .55; }
.qs-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 10px 8px 12px; }
.qs-mrow { background: var(--surface-2); border-bottom: 1px solid var(--line); }
.qs-sub { padding-left: 30px; position: relative; }
.qs-sub::before { content: ""; position: absolute; left: 16px; top: 0; bottom: 50%; width: 9px; border-left: 1.5px solid var(--line-2); border-bottom: 1.5px solid var(--line-2); border-bottom-left-radius: 5px; }
.qs-sub + .qs-sub { border-top: 1px solid var(--line); }
.qs-sw { display: inline-grid; justify-self: start; gap: 1px; padding: 6px 12px; border-radius: 8px; background: var(--bg); color: var(--fg); min-width: 0; max-width: 100%; }
.qs-sw b { font-weight: 600; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qs-sw small { font-size: .72rem; opacity: .85; }
.qs-mrow .qs-sw { grid-column: 1 / 3; }
.qs-acts { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.qs-acts form { display: contents; }
.qs-n { white-space: nowrap; }
.qs-prev { min-width: 140px; }
.qt-grp { border-top: 1px solid var(--line); padding: 12px 20px 6px; }
.qt-grp h4 { margin: 0 0 6px; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); font-weight: 600; }
.qt-item { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; padding: 10px 0; border-top: 1px dashed var(--line); }
.qt-grp .qt-item:first-of-type { border-top: 0; }
section > .qt-item { padding: 12px 20px; border-top: 1px solid var(--line); }
.qt-item p { margin: 4px 0 0; } .qt-item > div { min-width: 0; }
.qt-empty { margin: 4px 0 10px; }

/* dashboard */
.dm-soon { list-style: none; margin: 0; padding: 4px 20px 10px; display: grid; gap: 2px; border-top: 1px solid var(--line); }
.dm-soon li a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .86rem; color: var(--ink); }
.dm-soon li a small { color: var(--warn); font-weight: 600; }
.dm-soon::before { content: "Geçerliliği 7 gün içinde bitecekler"; display: block; font-size: .72rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; padding: 8px 0 2px; }
.q-rkpis { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.dl-kpis .k-red { border-top-color: #b8352a; }

@container qlines (max-width: 860px) {
  .q-lhead { display: none; }
  .q-row { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 12px; padding: 14px 16px; }
  .q-name { grid-column: 1 / -2; } .q-del { grid-column: -2 / -1; justify-self: end; }
  .q-qty, .q-vat { grid-column: span 2; } .q-price { grid-column: span 2; }
  .q-disc { grid-column: span 3; } .q-net { grid-column: span 3; padding-top: 0; align-self: end; }
  .q-ml { display: block; font-size: .74rem; font-weight: 600; color: var(--ink-3); margin-bottom: 4px; }
  .q-disc { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; } .q-disc .q-ml { grid-column: 1 / -1; } .q-netin { margin-top: 0; }
  .q-net { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; } .q-net .q-ml { margin: 0; }
}
@container qlines (max-width: 560px) {
  .q-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-name { grid-column: 1 / -1; padding-right: 48px; position: relative; } .q-del { grid-column: auto; position: absolute; }
  .q-row { position: relative; } .q-del { right: 12px; top: 12px; }
  .q-qty, .q-price, .q-vat, .q-net { grid-column: span 1; } .q-disc { grid-column: 1 / -1; } .q-net { align-self: end; padding-bottom: 10px; }
}
@media (max-width: 1280px) {
  .q-show { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .q-defs { grid-template-columns: 1fr; }
  .q-grid3 { grid-template-columns: 1fr 1fr; } .q-span2 { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .q-panel { padding: 16px; }
  .q-grid2, .q-grid3 { grid-template-columns: minmax(0, 1fr); } .q-span2, .q-span3 { grid-column: auto; }
  .q-src label > span { flex-direction: column; gap: 3px; font-size: .78rem; min-height: 52px; padding: 6px 4px; }
  .q-sum { padding: 14px; }
  .q-actions { padding: 12px 16px; } .q-act-btns { width: 100%; } .q-act-btns > * { flex: 1; justify-content: center; }
  .q-hero { grid-template-columns: 1fr; padding: 16px; } .q-hero-r { justify-items: start; text-align: left; }
  .q-hero-acts > * , .q-hero-acts form > button { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .qs-row { grid-template-columns: minmax(0, 1fr) auto; } .qs-n { display: none; } .qs-sw b { white-space: normal; }
  .qs-mrow { grid-template-columns: 1fr; } .qs-mrow .qs-sw { grid-column: auto; } .qs-mrow .qs-acts { justify-content: flex-start; }
  .qt-item { flex-direction: column; } .qt-item .qs-acts { align-self: flex-start; }
  .q-dl > div { grid-template-columns: 92px minmax(0, 1fr); }
}
.q-ltable td:nth-child(2) { min-width: 260px; } .q-snap .q-ltable td:nth-child(2) { min-width: 0; }
.q-head > div:last-child .q-pick .menu-list, .q-panel[data-panel=diger] .q-grid2 > .field:last-child .q-pick .menu-list { left: auto; right: 0; }
.q-pick { max-width: 100%; } .q-pick .menu-list { width: min(420px, calc(100vw - 48px)); }
.q-rkpis .cu-k small { white-space: normal; }

/* sabitlenmiş açılır menü */
details.menu[open] > .menu-list { z-index: 120; }

/* teklif paylaşım */
.q-link { display: flex; gap: 8px; }
.q-link input { flex: 1; min-width: 0; font-size: .82rem; min-height: 38px; padding: 7px 10px; background: var(--surface-2); }
.q-share-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.q-share-acts .btn { flex: 1 1 auto; justify-content: center; }
.btn.q-wa { background: #25d366; color: #fff; border-color: #25d366; flex-basis: 100%; }
.btn.q-wa:hover { background: #1ebe5b; color: #fff; }
.pill.s-info { background: var(--blue-soft); color: var(--blue-ink); }
.q-hist-ic.a-response { background: var(--ok-soft); color: var(--ok); } .q-hist-ic.a-viewed, .q-hist-ic.a-shared { background: var(--blue-soft); color: var(--blue-ink); }

.flash.warn { background: var(--warn-soft); color: var(--warn); }
.upd-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.q-dates { align-items: start; } .q-dates .field { align-content: start; }
/* teklif görüntüleme: orta genişlikte yan panel alta iner, kalemler tablo olarak kalır */
@media (max-width: 1520px) and (min-width: 761px) {
  .q-show { grid-template-columns: minmax(0, 1fr); }
  .q-show-side { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
}

/* raporlar: telefonda filtre ve butonlar düzenli */
.rp-flt .rp-form .field select { min-width: 170px; }
@media (max-width: 760px) {
  .rp-grid { grid-template-columns: 1fr 1fr; } .rp-grid > .field:first-child, .rp-grid > .field:has(select), .rp-grid .rp-act { grid-column: 1 / -1; }
  .rp-act .btn { width: 100%; justify-content: center; }
  .rp-quick { flex-wrap: wrap; gap: 6px 14px; }
  .rp-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .rp-head .acts-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .rp-head .acts-top .btn { justify-content: center; min-height: 40px; } .rp-head .acts-top .btn:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .rp-flt .rp-form .field select { min-width: 0; }
  .rp-grid > * { min-width: 0; } .rp-grid input, .rp-grid select { width: 100%; min-width: 0; max-width: 100%; }
  .page-head .acts-top { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .page-head .acts-top > * { justify-content: center; width: 100%; }
  .page-head .acts-top > *:only-child, .page-head .acts-top > *:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .top h1 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 1.02rem; line-height: 1.2; }
}
/* tutarlar satır kırılmasın, KPI metinleri taşmasın, dokunmatikte küçük butonlar */
td.r.num, td.num.r, td.r > b.num, tfoot td.r { white-space: nowrap; }
.cu-k { min-width: 0; } .cu-k b { overflow-wrap: anywhere; } .q-rkpis .cu-k b:not(.num) { white-space: normal; }
.q-rkpis .cu-k b { white-space: normal; line-height: 1.2; }
@media (pointer: coarse) and (max-width: 1180px) { .btn-sm, a.btn-sm, summary.btn-sm, .sk-m .btn-sm, .sk-m summary.btn-sm { min-height: 38px; } .tabs a.tab, a.tab { min-height: 38px; display: inline-flex; align-items: center; } }
@media (max-width: 760px) {
  .rp-sum { grid-template-columns: 1fr 1fr; } .rp-sum > div { padding: 12px 16px; border-bottom: 1px solid var(--line); } .rp-sum > div:nth-child(2n) { border-right: 0; } .rp-sum > div:nth-last-child(-n+2) { border-bottom: 0; }
  .rp-sum b { font-size: 1rem; white-space: nowrap; }
}
/* detay sayfası başlık butonları: telefonda düzenli 2'li ızgara, ana işlem en üstte tam genişlik */
@media (max-width: 760px) {
  .intro { flex-direction: column; align-items: stretch; }
  .intro > .acts-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100%; margin: 0; }
  .intro > .acts-top > *, .intro > .acts-top > details.menu > summary, .intro > .acts-top > form > .btn { width: 100%; min-width: 0; margin: 0; justify-content: center; min-height: 44px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .intro > .acts-top > :is(.btn-p, .btn-ok) { grid-column: 1 / -1; order: -1; }
  .intro > .acts-top:not(:has(> :is(.btn-p, .btn-ok))) > :last-child:nth-child(odd),
  .intro > .acts-top:has(> :is(.btn-p, .btn-ok)) > :last-child:nth-child(even):not(.btn-p, .btn-ok) { grid-column: 1 / -1; }
  .intro > .acts-top > details.menu > summary.btn-b { background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
}
/* ===== Dashboard: tablet/telefon düzeni ===== */
/* varsayılan yerleşimde tek sütuna düşünce önce aksiyon gerektirenler (kişisel yerleşim aynen korunur) */
@media (max-width: 1100px) {
  .db-auto > [data-key="strip"] { order: 1; } .db-auto > [data-key="alerts"] { order: 2; } .db-auto > [data-key="agenda"] { order: 3; }
  .db-auto > [data-key="queue"] { order: 4; } .db-auto > [data-key="ongoing"] { order: 5; } .db-auto > [data-key="week"] { order: 6; }
  .db-auto > [data-key="mod_service"] { order: 7; } .db-auto > [data-key="mod_leads"] { order: 8; } .db-auto > [data-key="mod_quotes"] { order: 9; }
  .db-auto > [data-key="mod_customers"] { order: 10; } .db-auto > [data-key="load"] { order: 11; } .db-auto > [data-key="expiring"] { order: 12; }
  body.db-editing .db-auto > .dbb { order: 0; }
}
@media (max-width: 760px) {
  /* karşılama + hızlı işlemler */
  .db-head { position: relative; display: block; }
  .db-head h2 { font-size: 1.3rem; padding-right: 52px; } .db-head p { font-size: .88rem; }
  .db-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
  .db-quick .btn { width: 100%; min-height: 44px; padding: 0 8px; justify-content: center; gap: 6px; font-size: .86rem; }
  .db-quick .btn-p { grid-column: 1 / -1; min-height: 48px; font-size: .95rem; }
  .db-quick .db-q-hide { display: inline-flex; }
  .db-quick .db-edit-btn { position: absolute; top: 0; right: 0; width: 42px; min-height: 42px; padding: 0; }
  .db-quick .db-edit-btn span { display: none; }
  /* gündem: durum etiketi metnin altına */
  .ag-list a { grid-template-columns: 48px minmax(0, 1fr); gap: 2px 12px; padding: 12px 16px; align-items: start; }
  .ag-list .ag-ic { display: none; }
  .ag-time { grid-row: 1 / 3; font-size: .95rem; padding-top: 1px; }
  .ag-s { grid-column: 2; justify-self: start; margin-top: 4px; }
}
/* dashboard özet kutuları (geniş ekran): simge + başlık tek satır, sayı ve açıklama tam genişlik → tüm kutularda hizalı */
@media (min-width: 1001px) { .db-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 1301px) { .db-strip { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 1001px) {
  .db-tile { grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: 34px auto auto; align-items: center; row-gap: 6px; padding: 16px 18px; }
  .db-tile .ic { grid-row: 1; width: 32px; height: 32px; border-radius: 9px; }
  .db-tile .t { grid-column: 2; grid-row: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.2; font-weight: 600; color: var(--ink-2); }
  .db-tile b { grid-column: 1 / -1; grid-row: 2; font-size: 1.85rem; line-height: 1; margin-top: 4px; }
  .db-tile small { grid-column: 1 / -1; grid-row: 3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; line-height: 1.3; }
}
@media (max-width: 760px) { .db-head p { padding-right: 52px; } .wk-d.past:not(.today) { display: none; } }

/* bugün özeti: tablet ve telefonda 2'li kutular; simge+başlık üstte, sayılar hizalı, tek kalan kutu tam genişlik */
@media (max-width: 1000px) {
  .db-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .db-strip > .db-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .db-tile { grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: 34px auto auto; align-items: center; column-gap: 10px; row-gap: 4px; padding: 14px; }
  .db-tile .ic { grid-row: 1; width: 30px; height: 30px; border-radius: 9px; }
  .db-tile .ic svg { width: 16px; height: 16px; }
  .db-tile .t { grid-column: 2; grid-row: 1; font-size: .82rem; font-weight: 600; color: var(--ink-2); line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .db-tile b { grid-column: 1 / -1; grid-row: 2; font-size: 1.75rem; line-height: 1; margin-top: 6px; }
  .db-tile small { grid-column: 1 / -1; grid-row: 3; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
}

.db-tile { align-content: start; }

/* Telefon: düzenleme (sürükle-bırak) masaüstüne özel, mobilde düğme gizli */
@media (max-width: 640px) { .db-quick .db-edit-btn { display: none; } }
