/* Yazı tipi: Inter (SIL Open Font License, public/fonts/Inter-LICENSE.txt) — programla birlikte gelir, internet gerekmez */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/InterVariable.woff2') format('woff2'); }
:root {
  --brand: #0b3561; --brand-2: #1565c0; --brand-soft: #e8f1fb; --accent: #f59e0b;
  --bg: #f3f5f8; --card: #fff; --text: #0f1b2d; --muted: #5b6b80; --line: #e3e8ef; --line-2: #eef2f6;
  --ok: #16a34a; --warn: #d97706; --err: #dc2626; --ai: #7c3aed; --ai-soft: #f3effe;
  --r: 12px; --shadow: 0 1px 2px rgba(15,27,45,.06), 0 1px 3px rgba(15,27,45,.04);
  --shadow-lg: 0 12px 40px rgba(15,27,45,.18);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand-2); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 24px; } h2 { font-size: 18px; } h3 { font-size: 16px; } h4 { font-size: 14px; }
p { margin: 0 0 8px; }
.ic { width: 18px; height: 18px; flex: none; vertical-align: middle; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.nowrap { white-space: nowrap; } .right { text-align: right; } .center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; } .stack-lg > * + * { margin-top: 20px; }
.hide { display: none !important; }

/* ---------- Yerleşim ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--brand); color: #cfe0f5; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 18px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 22px; color: #fff; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand b { display: block; font-size: 15px; } .brand span { font-size: 12px; color: #9fbbe0; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 9px; color: #cfe0f5; font-weight: 500; margin-bottom: 2px; }
.nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav a.on { background: rgba(255,255,255,.14); color: #fff; }
.nav .count { margin-left: auto; background: var(--accent); color: #111; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; }
.side .me { margin-top: auto; padding: 12px; border-top: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; gap: 10px; color: #fff; font-size: 13px; }
.side .me .grow span { display: block; color: #9fbbe0; font-size: 12px; }
.side .me button { color: #cfe0f5; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: rgba(243,245,248,.92); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.top h1 { font-size: 20px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { padding: 24px 28px 60px; max-width: 1280px; width: 100%; }
.bell { position: relative; } .bell .dot { position: absolute; top: 2px; right: 2px; background: var(--err); color: #fff; font-size: 10px; min-width: 16px; height: 16px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; padding: 0 4px; }
.tabbar { display: none; }

@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .top { padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
  .top h1 { font-size: 18px; }
  .content { padding: 16px 14px 100px; }
  .tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px 7px; font-size: 11px; color: var(--muted); font-weight: 500; }
  .tabbar a.on { color: var(--brand-2); }
  .tabbar a .ic { width: 22px; height: 22px; }
}

/* ---------- Bileşenler ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-head h3 { flex: 1; }
.card-body { padding: 16px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .g2, .g3 { grid-template-columns: 1fr; } .g3.kpis { grid-template-columns: repeat(3, 1fr); gap: 8px; } .g3.kpis .kpi { padding: 12px; } .g3.kpis .kpi b { font-size: 19px; } .g3.kpis .kpi span { font-size: 12px; } }

.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.kpi b { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.alert b { color: var(--err); }
a.kpi:hover { border-color: var(--brand-2); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: var(--text); padding: 9px 15px; border-radius: 9px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; min-height: 40px; }
.btn:hover { background: #f7f9fc; border-color: #cfd8e3; }
.btn:disabled { opacity: .55; cursor: wait; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.primary:hover { background: #0f56a5; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--err); }
.btn.ai { background: var(--ai); border-color: var(--ai); color: #fff; }
.btn.ai:hover { background: #6d28d9; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.btn.lg { padding: 13px 20px; font-size: 16px; min-height: 50px; }
.btn.block { width: 100%; }
.btn.rec { background: var(--err); color: #fff; border-color: var(--err); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .7; } }
.icon-btn { border: 0; background: transparent; padding: 8px; border-radius: 8px; cursor: pointer; color: inherit; display: inline-grid; place-items: center; }
.icon-btn:hover { background: rgba(0,0,0,.05); }

.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 20px; background: #eef2f6; color: #3b4a5e; white-space: nowrap; }
.st-yeni { background: #e0edff; color: #1450a3; } .st-planlandi { background: #ede9fe; color: #5b21b6; }
.st-yolda { background: #fff4d6; color: #92580a; } .st-islemde { background: #ffedd5; color: #b45309; }
.st-parca_bekliyor { background: #fde2e2; color: #a61b1b; } .st-tamamlandi { background: #dcfce7; color: #166534; }
.st-iptal { background: #eceff3; color: #6b7686; }
.pr-acil { background: var(--err); color: #fff; } .pr-yuksek { background: #fee2e2; color: #b91c1c; } .pr-dusuk { background: #f1f5f9; color: #64748b; }
.kd-bakim { background: #e0f2f1; color: #0f766e; } .kd-kurulum { background: #fef3c7; color: #92400e; } .kd-ariza { background: #f1f5f9; color: #334155; }
.badge.ai { background: var(--ai-soft); color: var(--ai); }

/* Formlar */
label.f { display: block; }
label.f > span { display: block; font-size: 13px; font-weight: 600; color: #34445a; margin-bottom: 5px; }
input, select, textarea { width: 100%; font: inherit; color: inherit; padding: 10px 12px; border: 1px solid #d4dce6; border-radius: 9px; background: #fff; min-height: 42px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(21,101,192,.25); border-color: var(--brand-2); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; padding: 0; flex: none; accent-color: var(--brand-2); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.search { position: relative; } .search .ic { position: absolute; left: 11px; top: 12px; color: var(--muted); }
.search input { padding-left: 36px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 150px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; padding: 6px 13px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Listeler */
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line-2); color: inherit; }
.item:last-child { border-bottom: 0; }
a.item:hover { background: #f8fafc; }
.item .t { font-weight: 600; } .item .s { font-size: 13px; color: var(--muted); margin-top: 2px; }
.item .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 5px; }
.item .side-info { text-align: right; font-size: 13px; color: var(--muted); flex: none; }
.no { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.sys-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); flex: none; }
.urgent-bar { border-left: 3px solid var(--err); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; }
table.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #f8fafc; }
.table-wrap { overflow-x: auto; }

.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty .ic { width: 32px; height: 32px; color: #b6c2d1; margin-bottom: 6px; }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: #b6c2d1; }
.timeline li::after { content: ''; position: absolute; left: 8.5px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.comment::before { background: var(--brand-2); } .timeline li.ai::before { background: var(--ai); } .timeline li.status::before { background: var(--ok); }
.timeline .when { font-size: 12px; color: var(--muted); }
.timeline .bubble { background: #f6f8fb; border: 1px solid var(--line-2); padding: 8px 11px; border-radius: 10px; margin-top: 4px; white-space: pre-wrap; }
.timeline .internal { font-size: 11px; color: var(--warn); font-weight: 600; }

/* Yapay zeka kutusu */
.ai-box { border: 1px solid #ddd3fb; background: linear-gradient(180deg, #faf8ff, #fff); border-radius: var(--r); }
.ai-box .card-head { border-color: #ece6fd; } .ai-box .card-head .ic { color: var(--ai); }
.ai-box ul { margin: 6px 0 0; padding-left: 20px; } .ai-box li { margin-bottom: 3px; }
.ai-tag { font-size: 11px; color: var(--ai); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.warn-box { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 10px 12px; border-radius: 10px; font-size: 14px; display: flex; gap: 8px; }

/* Kontrol listesi */
.check-item { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: 15px; }
.check-item:last-child { border-bottom: 0; }
.check-item.done span { color: var(--muted); text-decoration: line-through; }
.progress { height: 6px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ok); }

/* Fotoğraflar */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photos a, .photos .add { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #eef2f6; display: grid; place-items: center; position: relative; }
.photos img { width: 100%; height: 100%; object-fit: cover; }
.photos .add { border: 2px dashed #c6d2df; color: var(--muted); cursor: pointer; font-size: 12px; font-weight: 600; text-align: center; }
.photos .add input { display: none; }

/* Pencere */
.modal-wrap { position: fixed; inset: 0; background: rgba(15,27,45,.45); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 14px; width: min(520px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.modal.wide { width: min(820px, 100%); }
.modal-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); } .modal-head h3 { flex: 1; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 18px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
@media (max-width: 600px) { .modal-wrap { place-items: end stretch; padding: 0; } .modal { width: 100%; border-radius: 16px 16px 0 0; max-height: 92vh; } }

#toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #0f1b2d; color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 500; box-shadow: var(--shadow-lg); transition: opacity .3s, transform .3s; }
.toast.err { background: var(--err); } .toast.out { opacity: 0; transform: translateY(8px); }
@media (max-width: 900px) { #toasts { bottom: 90px; } }

/* Giriş ekranı */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: radial-gradient(1200px 600px at 0% 0%, #1565c0 0%, var(--brand) 55%, #071f3a 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side h2 { font-size: 34px; line-height: 1.15; margin: 18px 0 14px; letter-spacing: -.02em; }
.auth-side p { color: #c2d6ef; max-width: 440px; font-size: 16px; }
.auth-side ul { list-style: none; padding: 0; margin: 26px 0 0; } .auth-side li { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: #dbe8f8; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; }
.auth-form form { width: min(380px, 100%); }
.auth-logo { display: none; }
@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; } .auth-side { display: none; }
  .auth-logo { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 24px; text-align: center; }
  .auth-logo img { width: 64px; height: 64px; border-radius: 16px; }
}
.demo-box { margin-top: 18px; padding: 12px; background: #fff; border: 1px dashed var(--line); border-radius: 10px; font-size: 13px; }
.demo-box button { margin: 3px 3px 0 0; }

/* Teknisyen büyük kartları */
.job { display: block; padding: 16px; color: inherit; }
.job + .job { border-top: 1px solid var(--line-2); }
.job .title { font-weight: 700; font-size: 16px; margin: 6px 0 4px; }
.job .addr { display: flex; gap: 6px; color: var(--muted); font-size: 14px; }
.section-title { display: flex; align-items: center; gap: 8px; margin: 22px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.section-title:first-child { margin-top: 0; }

/* İmza */
.sig-pad { border: 2px dashed #c6d2df; border-radius: 12px; background: #fff; touch-action: none; width: 100%; height: 200px; display: block; }

/* Basit çubuk grafik */
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: 170px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bar-row .track { height: 12px; background: #eef2f6; border-radius: 6px; overflow: hidden; display: flex; }
.bar-row .track i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); margin-bottom: 10px; } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cols { display: flex; align-items: flex-end; gap: 10px; height: 180px; padding-top: 10px; }
.cols .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); height: 100%; justify-content: flex-end; }
.cols .colbar { width: 100%; max-width: 46px; display: flex; flex-direction: column-reverse; border-radius: 5px 5px 0 0; overflow: hidden; }
.cols .colbar i { display: block; }
@media (max-width: 600px) { .bar-row { grid-template-columns: 110px 1fr 36px; } }

.kv { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.code-box { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 26px; letter-spacing: .25em; font-weight: 700; background: var(--brand-soft); color: var(--brand); padding: 8px 14px; border-radius: 10px; display: inline-block; }
.stars { display: flex; gap: 4px; } .stars button { border: 0; background: none; cursor: pointer; padding: 2px; color: #cbd5e1; } .stars button.on { color: var(--accent); } .stars .ic { width: 30px; height: 30px; fill: currentColor; }
.notif { display: flex; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-2); color: inherit; }
.notif.unread { background: #f5f9ff; } .notif .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); margin-top: 7px; flex: none; } .notif:not(.unread) .dot { background: transparent; }
.install-hint { background: var(--brand-soft); border: 1px solid #cfe0f5; border-radius: var(--r); padding: 14px 16px; display: flex; gap: 12px; align-items: center; }

/* ---------- Servis formu (yazdırma) ---------- */
.sf { background: #fff; color: #111; max-width: 820px; margin: 0 auto; padding: 32px 36px; border: 1px solid var(--line); font-size: 13px; }
.sf-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 3px solid var(--brand); padding-bottom: 14px; gap: 16px; }
.sf-head .co { display: flex; gap: 12px; align-items: center; } .sf-head img { width: 54px; height: 54px; }
.sf-head .co b { font-size: 17px; color: var(--brand); display: block; } .sf-head .co span { font-size: 11px; color: #555; display: block; }
.sf-head .doc { text-align: right; } .sf-head .doc h2 { font-size: 18px; color: var(--brand); letter-spacing: .03em; } .sf-head .doc div { font-size: 12px; margin-top: 3px; }
.sf h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--brand); border-bottom: 1px solid #d7dee8; padding-bottom: 4px; margin: 18px 0 8px; }
.sf table { width: 100%; border-collapse: collapse; } .sf td, .sf th { border: 1px solid #d7dee8; padding: 6px 8px; text-align: left; vertical-align: top; }
.sf th { background: #f3f6fa; font-weight: 600; width: 22%; font-size: 12px; }
.sf ul { margin: 0; padding-left: 18px; } .sf li { margin-bottom: 3px; }
.sf .status { display: inline-block; padding: 4px 12px; border: 2px solid var(--ok); color: var(--ok); font-weight: 700; border-radius: 6px; }
.sf .sigs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 22px; }
.sf .sig { border: 1px solid #d7dee8; border-radius: 6px; padding: 10px; min-height: 120px; }
.sf .sig img { max-height: 80px; max-width: 100%; display: block; margin: 4px 0; }
.sf .foot { margin-top: 20px; font-size: 10.5px; color: #666; text-align: center; border-top: 1px solid #e5e9ef; padding-top: 8px; }
.sf .photos-p { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; } .sf .photos-p img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
.sf [contenteditable]:hover { outline: 1px dashed #93c5fd; } .sf [contenteditable]:focus { outline: 2px solid #3b82f6; }
.qr-label { width: 300px; border: 2px solid var(--brand); border-radius: 12px; padding: 14px; text-align: center; background: #fff; margin: 0 auto; }
.qr-label canvas { width: 180px; height: 180px; image-rendering: pixelated; }

@media print {
  @page { size: A4; margin: 10mm; }
  body { background: #fff; }
  .side, .top, .tabbar, .no-print, #toasts { display: none !important; }
  .app { display: block; } .content { padding: 0; max-width: none; }
  .sf { border: 0; padding: 0; max-width: none; }
  .sf [contenteditable]:hover { outline: none; }
}
@media (max-width: 600px) {
  .sf { padding: 16px; font-size: 12.5px; }
  .sf-head { flex-direction: column; } .sf-head .doc { text-align: left; }
  .sf .sigs { grid-template-columns: 1fr; } .sf .photos-p { grid-template-columns: repeat(2, 1fr); }
}

/* Parametreler kutucukları */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 980px; }
.tile { display: flex; align-items: center; gap: 18px; padding: 26px 24px; color: inherit; transition: border-color .15s, transform .15s, box-shadow .15s; min-height: 132px; }
.tile:hover { border-color: var(--brand-2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15,27,45,.08); }
.tile b { font-size: 19px; display: block; margin-bottom: 4px; } .tile p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.tile-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; flex: none; }
.tile-ic .ic { width: 30px; height: 30px; }
.tile > div:nth-child(2) { flex: 1; } .tile-go { color: var(--muted); }
@media (max-width: 700px) { .tiles { grid-template-columns: 1fr; gap: 12px; } .tile { padding: 18px; min-height: 0; } .tile-ic { width: 52px; height: 52px; } }

/* İş takvimi */
.cal { overflow: hidden; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-head div { padding: 8px 10px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); background: #fafbfc; }
.cal-cell { min-height: 118px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 6px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell.out { background: #fafbfc; } .cal-cell.we { background: #fcfcfd; }
.cal-cell.today { background: var(--brand-soft); } .cal-cell.today .cal-day { color: var(--brand-2); }
.cal-day { font-weight: 700; font-size: 13px; display: flex; justify-content: space-between; color: #34445a; }
.cal-day span { font-size: 11px; font-weight: 600; color: var(--muted); }
.cal-chip { display: block; font-size: 11.5px; line-height: 1.3; padding: 4px 6px; border-radius: 6px; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, white); color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cal-chip b { color: var(--c); } .cal-chip span { display: block; color: var(--muted); font-size: 10.5px; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.planli { background: #fff; border: 1px dashed var(--c); border-left: 3px solid var(--c); }
.cal-chip.gecikti { background: #fff; border: 1px dashed var(--err); border-left: 3px solid var(--err); }
.cal-chip:hover { filter: brightness(.96); }
.cal-more { border: 0; background: none; color: var(--brand-2); font-size: 11.5px; font-weight: 600; cursor: pointer; text-align: left; padding: 2px 4px; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; }
.cal-legend a { color: var(--text); display: flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.cal-legend a.dim { opacity: .45; } .cal-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.cal-key { display: flex; gap: 16px; flex-wrap: wrap; } .cal-key i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.cal-key .k1 { background: #dbe7f6; border-left: 3px solid var(--brand-2); } .cal-key .k2 { border: 1px dashed var(--brand-2); } .cal-key .k3 { border: 1px dashed var(--err); }
.cal-agenda { display: none; }
.cal-agenda-day { padding: 12px 14px; border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) { .cal { display: none; } .cal-agenda { display: block; } .cal-chip { white-space: normal; font-size: 13px; padding: 7px 9px; } .cal-chip span { font-size: 12px; } }
@media print { .cal-cell { min-height: 90px; } .cal-chip { font-size: 9px; } }

/* ---------------------------------------------------------------------
   v1.6 — Apple tipografisi (Inter ile), lacivert menü korunur
   --------------------------------------------------------------------- */
:root {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-optical-sizing: auto; font-feature-settings: 'cv11';
  font-size: 15.5px; line-height: 1.47; letter-spacing: -.011em;
  --text: #1d1d1f; --muted: #6e6e73; --line: #e5e5ea; --line-2: #f0f0f3; --bg: #f5f5f7;
  --r: 18px; --brand-2: #0071e3;
  --shadow: 0 2px 12px rgba(0,0,0,.05);
  color: #1d1d1f;
}
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; background: #f5f5f7; }
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -.022em; color: #1d1d1f; }
b, strong { font-weight: 600; }

/* Başlık: büyük ve kalın */
.top { background: rgba(245,245,247,.86); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 0; padding: 22px 36px 12px; }
.top h1 { font-size: 34px; font-weight: 600; letter-spacing: -.028em; line-height: 1.1; }
.content { padding: 10px 36px 70px; }
@media (max-width: 900px) { .top { padding: 12px 18px 8px; } .top h1 { font-size: 26px; } .content { padding: 8px 14px 110px; } }

/* Lacivert menü: daha temiz yazı */
.side { background: #0b2f57; }
.brand b { font-weight: 600; font-size: 16px; letter-spacing: -.015em; }
.nav a { font-size: 15px; font-weight: 500; letter-spacing: -.01em; color: #d3e1f2; border-radius: 10px; }
.nav a:hover { background: rgba(255,255,255,.07); }
.nav a.on { background: rgba(255,255,255,.14); color: #fff; font-weight: 600; }

/* Kartlar: beyaz, kenarlıksız, yumuşak köşe */
.card { border: 0; border-radius: var(--r); box-shadow: var(--shadow); }
.card-head { border-bottom: 0; padding: 20px 22px 10px; }
.card-head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.card-body { padding: 6px 22px 20px; } .card-pad { padding: 22px; }
.grid { gap: 20px; } .stack-lg > * + * { margin-top: 22px; }

/* Göstergeler */
.kpi { padding: 20px 22px; }
.kpi b { font-size: 38px; font-weight: 600; letter-spacing: -.035em; line-height: 1.1; font-feature-settings: 'tnum' 1; }
.kpi span { font-size: 14px; color: #6e6e73; }
a.kpi { transition: transform .2s, box-shadow .2s; } a.kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.09); border: 0; }

/* Listeler */
.item { padding: 14px 22px; border-bottom: 1px solid #f0f0f3; }
.item .t { font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.item .s { font-size: 14px; color: #6e6e73; }
a.item:hover { background: #fafafc; }
.side-info { color: #6e6e73; font-size: 13.5px; }
.no { font-family: inherit; font-size: 12.5px; font-weight: 500; color: #86868b; font-feature-settings: 'tnum' 1; letter-spacing: 0; }
.section-title { color: #6e6e73; font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; }
table.t th { font-size: 12px; color: #86868b; text-transform: none; letter-spacing: 0; background: transparent; font-weight: 600; }
table.t td { font-size: 14.5px; }
.kv { font-size: 14.5px; } .kv dt { color: #6e6e73; }

/* Rozetler */
.badge { border-radius: 7px; font-size: 12px; font-weight: 600; padding: 3px 9px; letter-spacing: 0; }

/* Düğmeler: hap şeklinde, Apple mavisi */
.btn { border-radius: 980px; font-weight: 500; font-size: 14.5px; letter-spacing: -.01em; padding: 9px 18px; }
.btn.primary { background: #0071e3; border-color: #0071e3; } .btn.primary:hover { background: #0077ed; }
.btn.sm { font-size: 13.5px; padding: 5px 13px; }
.btn.lg { font-size: 16px; padding: 12px 24px; }

/* Form alanları */
input, select, textarea { font-size: 15px; border-radius: 12px; border-color: #d2d2d7; letter-spacing: -.01em; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: #0071e3; box-shadow: 0 0 0 4px rgba(0,113,227,.15); }
label.f > span { font-size: 13.5px; font-weight: 500; color: #6e6e73; }

/* Pencere */
.modal { border-radius: 22px; } .modal-head { border-bottom: 0; padding: 20px 22px 6px; } .modal-head h3 { font-size: 20px; }
.modal-foot { border-top: 0; padding: 8px 22px 20px; }

/* Giriş ekranı başlığı */
.auth-side h2 { font-size: 44px; font-weight: 600; letter-spacing: -.03em; line-height: 1.08; }
.auth-form h1 { font-size: 32px; font-weight: 600; letter-spacing: -.028em; }

/* ---------------------------------------------------------------------
   v1.7 — Kurumsal kimlik: Küresel Elektronik logosu ve renkleri
   Lacivert #25407F · Fıstık yeşili #AFCA25
   --------------------------------------------------------------------- */
:root { --kurum: #25407f; --kurum-koyu: #1b2f61; --yesil: #afca25; --brand: #25407f; --brand-2: #25407f; --brand-soft: #e9eef8; }
a { color: #2b4c99; }
.side { background: linear-gradient(180deg, #24407e 0%, #1d3569 100%); }
.brand-logo { flex-direction: column; align-items: flex-start; gap: 8px; padding: 6px 10px 24px; }
.brand-logo img { width: 100%; max-width: 196px; height: auto; border-radius: 0; box-shadow: none; }
.brand-logo span { color: #b9c8e4; font-size: 12px; padding-left: 2px; }
.nav a.on { background: rgba(255,255,255,.13); }
.nav a.on::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 4px; border-radius: 0 4px 4px 0; background: var(--yesil); }
.nav a { position: relative; }
.nav .count { background: var(--yesil); color: #1b2f61; }
.btn.primary { background: var(--kurum); border-color: var(--kurum); } .btn.primary:hover { background: var(--kurum-koyu); }
.chip.on { background: var(--kurum); border-color: var(--kurum); }
input:focus, select:focus, textarea:focus { border-color: var(--kurum); box-shadow: 0 0 0 4px rgba(37,64,127,.14); }
.sys-ic { background: #e9eef8; color: var(--kurum); }
.tabbar a.on { color: var(--kurum); }
.progress > i { background: var(--yesil); }
.code-box { background: #e9eef8; color: var(--kurum); }
.auth-side { background: radial-gradient(1100px 600px at 0% 0%, #2f50a0 0%, #25407f 50%, #172b57 100%); }
.auth-side h2 em { color: var(--yesil); font-style: normal; }
.auth-logo img.wide { width: 230px; height: auto; border-radius: 0; }
.qr-label { border-color: var(--kurum); }
/* Servis formu üst bilgisi */
.sf-head { border-bottom-color: var(--kurum); }
.sf-head .co img.sf-logo { width: 190px; height: auto; }
.sf-head .co b { color: var(--kurum); font-size: 14px; }
.sf-head .doc h2, .sf h4 { color: var(--kurum); }
.sf h4 { border-bottom: 2px solid var(--yesil); }
@media (max-width: 600px) { .sf-head .co { flex-direction: column; align-items: flex-start; } }
.auth-side h2 { color: #fff; } .auth-side h2 em { color: var(--yesil); }

/* ======================================================= v1.9 — Çift pano, To Do listesi, kapatma akışı, zaman çizelgesi */
.seg { display: inline-flex; background: #e6eaf2; border-radius: 12px; padding: 4px; gap: 4px; }
.seg a { display: flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 9px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
.seg a.on { background: #fff; color: var(--kurum); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.seg a.on .ic { color: var(--yesil); }
.g5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 1100px) { .g5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .g5 { grid-template-columns: repeat(2, 1fr); gap: 8px; } .g5 .kpi { padding: 12px; } .g5 .kpi b { font-size: 20px; } .seg { display: flex; } .seg a { flex: 1; justify-content: center; padding: 9px 8px; font-size: 13.5px; } .hide-m { display: none; } }

/* To Do satırları — her satır en fazla 2 satır */
.todo-card { overflow: hidden; }
.todo-gh { display: flex; align-items: center; gap: 8px; padding: 12px 18px 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.todo-gh span { background: var(--line-2); border-radius: 9px; padding: 0 7px; font-size: 11.5px; }
.todo-group.late .todo-gh { color: var(--err); }
.todo-group.today .todo-gh { color: var(--kurum); }
.todo { display: flex; align-items: center; gap: 12px; padding: 8px 18px; border-top: 1px solid var(--line-2); min-height: 58px; transition: background .12s; }
.todo:hover { background: #f7f9fc; }
.todo.acil { box-shadow: inset 3px 0 0 var(--err); }
.todo-check { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #9aa7bb; background: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; color: transparent; transition: all .15s; }
.todo-check .ic { width: 15px; height: 15px; stroke-width: 3; }
.todo-check:hover { border-color: var(--ok); color: var(--ok); background: #ecfdf3; }
.todo-check.run { border-color: var(--kurum); box-shadow: 0 0 0 3px rgba(37,64,127,.12); }
.todo-check.wait { border-style: dashed; border-color: var(--warn); }
.todo-check.pop { background: var(--ok); border-color: var(--ok); color: #fff; transform: scale(1.12); }
.todo-main { flex: 1; min-width: 0; color: inherit; }
.todo-l1, .todo-l2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-l1 { font-size: 13.5px; color: var(--muted); }
.todo-l1 .no { font-weight: 600; color: var(--kurum); }
.todo-l1 b { color: var(--text); font-weight: 600; }
.dotsep { margin: 0 6px; color: #b4bfcf; }
.todo-l2 { font-size: 15px; font-weight: 500; color: var(--text); margin-top: 1px; }
.todo-meta { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12.5px; color: var(--text); max-width: 170px; text-align: right; }
.todo-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 170px; display: inline-flex; align-items: center; gap: 4px; }
.todo-meta .ic { width: 13px; height: 13px; }
.todo-meta .late { color: var(--err); font-weight: 600; }
.acil-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--err); display: inline-block; }
.todo-empty { padding: 28px 18px; text-align: center; color: var(--muted); display: flex; gap: 8px; justify-content: center; align-items: center; }
.todo-add { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 18px; border-top: 1px solid var(--line); background: #fafbfd; }
.todo-add .plus { width: 26px; height: 26px; display: grid; place-items: center; color: var(--kurum); }
.todo-add input { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 8px 0 !important; font-size: 15px; flex: 1; outline: none; }
.todo-add .btn { opacity: 0; transition: opacity .15s; }
.todo-add:focus-within .btn { opacity: 1; }
.todo-add:focus-within { background: #fff; box-shadow: inset 0 2px 0 var(--yesil); }
@media (max-width: 700px) {
  .todo { padding: 8px 12px; gap: 10px; }
  .todo-meta { max-width: 92px; } .todo-meta span { max-width: 92px; }
  .todo-l2 { font-size: 14.5px; }
  .todo-add .btn { opacity: 1; }
}

/* Yapay zekâ planı + malzeme listesi */
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 800px) { .ai-cols { grid-template-columns: 1fr; } }
.ai-list, .ai-steps { margin: 6px 0 0; padding-left: 20px; } .ai-list li, .ai-steps li { margin-bottom: 3px; }
.mat-box { background: #fff; border: 1px solid #e6e0fb; border-radius: 12px; padding: 12px; }
.mat-t td, .mat-t th { padding: 7px 6px; }
.mat-t tr.packed td b { text-decoration: line-through; color: var(--muted); }
.ok-tick { color: var(--ok); display: inline-grid; place-items: center; }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--ai); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; margin-right: 4px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Servis kapatma akışı */
.close-flow { max-width: 820px; padding-bottom: 120px; }
.close-head { border-left: 4px solid var(--kurum); }
.close-title { font-size: 19px; font-weight: 600; margin: 4px 0; }
.stepno { width: 28px; height: 28px; border-radius: 50%; background: var(--kurum); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.cstep.locked { opacity: .45; pointer-events: none; filter: grayscale(.4); }
.cstep.locked .stepno { background: #9aa7bb; }
.lbl { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.pick-item input { position: absolute; opacity: 0; pointer-events: none; }
.pick-item span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 22px; cursor: pointer; font-weight: 500; background: #fff; user-select: none; }
.pick-item input:checked + span { border-color: var(--kurum); background: var(--brand-soft); color: var(--kurum); }
.pick-item input:checked + span::after { content: '✓'; font-weight: 700; color: var(--yesil); margin-left: 2px; }
.prev-notes { background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.prev-notes p { white-space: pre-wrap; margin: 0 0 4px; font-size: 14px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input { width: 22px !important; height: 22px; margin-top: 2px; flex: none; }
.faulty-row { background: #fffaf3; border-color: #f6d9a8; }
.danger-t { color: var(--err); }
.qa-row { padding: 8px 0; border-top: 1px solid var(--line-2); } .qa-row .row { margin-top: 6px; }
.close-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: 0 -6px 24px rgba(15,27,45,.08); z-index: 5; }
.close-bar #sum { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-bottom: 10px; color: var(--muted); }
.close-bar #sum .ic { width: 14px; height: 14px; }
.close-bar.locked { opacity: .45; pointer-events: none; }
@media (max-width: 900px) { .close-bar { bottom: 74px; } }

/* İş emri fişi */
.wo .cb { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #555; border-radius: 2px; }
.wo ol { margin: 0; padding-left: 20px; }
.wo .lines i { display: block; height: 26px; border-bottom: 1px solid #c9d2de; }

/* Zaman çizelgesi */
.subnav { display: none; margin: -2px 0 6px 30px; border-left: 1px solid rgba(255,255,255,.15); padding-left: 8px; }
.subnav.open { display: block; }
.subnav a { display: block; padding: 6px 10px !important; font-size: 13.5px !important; color: #b8cbe4 !important; border-radius: 8px; }
.subnav a::before { display: none !important; }
.subnav a.on, .subnav a:hover { background: rgba(255,255,255,.1) !important; color: #fff !important; }
.subtabs { flex-wrap: wrap; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.gantt { padding: 6px 0; overflow-x: auto; }
.g-row { display: grid; grid-template-columns: 170px 1fr; min-width: 720px; border-top: 1px solid var(--line-2); }
.g-head { border-top: 0; height: 26px; }
.g-name { padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; color: inherit; border-right: 1px solid var(--line-2); }
.g-name b { font-size: 14px; }
.g-track { position: relative; height: 54px; }
.g-head .g-track { height: 26px; }
.g-head .g-track span { position: absolute; top: 6px; font-size: 11px; color: var(--muted); transform: translateX(-50%); }
.g-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--err); z-index: 2; }
.gbar { position: absolute; top: 9px; height: 36px; border-radius: 8px; padding: 3px 8px; color: #fff; overflow: hidden; font-size: 12px; line-height: 1.25; display: flex; flex-direction: column; justify-content: center; z-index: 1; min-width: 14px; }
.gbar b, .gbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gbar span { opacity: .85; font-size: 11px; }
.gbar.ok, .legend .ok { background: #2f9e5b; }
.gbar.part, .legend .part { background: #d98a0b; }
.gbar.half, .legend .half { background: #7b8aa3; }
.gbar.live, .legend .live { background: var(--kurum); }
.gbar.team { background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.22) 0 6px, transparent 6px 12px); }
.legend .team { background: #7b8aa3 repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 3px, transparent 3px 6px); }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li a { display: flex; gap: 14px; align-items: flex-start; padding: 12px 18px; border-top: 1px solid var(--line-2); color: inherit; }
.hist li a:hover { background: #f7f9fc; }
.h-time { width: 58px; flex: none; display: flex; flex-direction: column; font-variant-numeric: tabular-nums; }
.h-time b { font-size: 16px; color: var(--kurum); } .h-time span { font-size: 12px; color: var(--muted); }
.hist .ic { width: 13px; height: 13px; }
@media print { .close-bar, .seg { display: none; } }

/* v1.9.1 — Deneme modu: şifresiz hızlı giriş */
.quick-login h1 { font-size: 26px; }
.ql-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 10px; }
.ql { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: inherit; transition: all .12s; }
.ql:hover { border-color: var(--kurum); background: var(--brand-soft); }
.ql b { display: block; font-size: 15px; } .ql .grow span { font-size: 12.5px; color: var(--muted); }
.ql > .ic { color: var(--kurum); }
.ql-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; flex: none; background: #7b8aa3; }
.ql-av.r-admin { background: var(--kurum); } .ql-av.r-office { background: #3b82f6; } .ql-av.r-technician { background: #2f9e5b; } .ql-av.r-customer { background: #d98a0b; }
.new-cari { background: #f6f9ec; border: 1px solid #dfe9b4; border-radius: 12px; padding: 10px 12px; }
option.opt-new { color: var(--kurum); font-weight: 600; }
.pick-add { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px dashed #9aa7bb; border-radius: 22px; background: transparent; cursor: pointer; font: inherit; font-weight: 500; color: var(--kurum); }
.pick-add:hover { border-color: var(--kurum); background: var(--brand-soft); }
.tag-stj { font-style: normal; font-size: 11px; font-weight: 600; background: #fff4dd; color: #a86500; border-radius: 8px; padding: 1px 6px; margin-left: 2px; }
.seg-sm { display: flex; }
.seg-sm label { flex: 1; }
.seg-sm input { position: absolute; opacity: 0; }
.seg-sm span { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 9px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg-sm input:checked + span { background: #fff; color: var(--kurum); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.kpi-f { cursor: pointer; transition: box-shadow .15s, transform .15s; border: 2px solid transparent; }
.kpi-f:hover { transform: translateY(-1px); }
.kpi-f.on { border-color: var(--kurum); box-shadow: 0 6px 20px rgba(37,64,127,.15); }
.kpi-f.on span { color: var(--kurum); font-weight: 600; }
.todo-check.done { background: var(--ok); border-color: var(--ok); color: #fff; cursor: default; }
.todo-check.plan { border-style: solid; border-color: #c9d2de; color: var(--muted); cursor: default; }
.todo-check.plan .ic { stroke-width: 2; width: 13px; height: 13px; }
a.todo { color: inherit; }
.card.kpi-f.on { border: 2px solid var(--kurum) !important; background: #f7f9fe; }
.g6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.g6 .kpi { padding: 14px 16px; } .g6 .kpi b { font-size: 26px; }
@media (max-width: 1250px) { .g6 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .g6 { grid-template-columns: repeat(2, 1fr); gap: 8px; } .g6 .kpi { padding: 12px; } .g6 .kpi b { font-size: 20px; } }
.ok-box { display: flex; gap: 10px; align-items: flex-start; background: #ecfdf3; border: 1px solid #b7ebc8; color: #146c3a; border-radius: 12px; padding: 10px 12px; font-size: 14px; }

/* ======================================================= v2.0 — Teknik Destek */
.kb-hero { padding: 18px; background: linear-gradient(135deg, #25407f 0%, #1c3266 100%); border: 0; }
.kb-hero .small { color: #c9d6ee !important; }
.kb-search { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 4px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.kb-search .ic { color: var(--kurum); width: 22px; height: 22px; }
.kb-search input { border: 0 !important; box-shadow: none !important; font-size: 18px; padding: 12px 0 !important; flex: 1; outline: none; background: transparent !important; }
.kb .chips { flex-wrap: wrap; }
.kb .chip { cursor: pointer; }
.seg-xs a { padding: 6px 12px; font-size: 13px; cursor: pointer; }
.kb-row { display: flex; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--line-2); color: inherit; }
.kb-row:hover { background: #f7f9fc; }
.kb-row b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-row .kb-name { display: block; font-size: 13.5px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-row .tiny { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--brand-soft); color: var(--kurum); display: grid; place-items: center; flex: none; }
.kb-badges { display: flex; gap: 6px; flex: none; }
.kb-badges .ic, .kb-head .badge .ic { width: 12px; height: 12px; }
.kb-card { display: flex; flex-direction: column; gap: 18px; }
.kb-head h2 { margin: 10px 0 4px; font-size: 20px; }
.kb-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .kb-grid { grid-template-columns: 1fr; } }
.kb-quick th { width: 38%; text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; vertical-align: top; }
.kb-quick td { font-size: 14px; }
.tag-own { font-size: 10.5px; font-weight: 600; background: #eef6d6; color: #5d7110; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.kb-sec summary { list-style: none; cursor: pointer; }
.kb-sec summary::-webkit-details-marker { display: none; }
.kb-sec summary .ic { transition: transform .15s; color: var(--muted); }
.kb-sec[open] summary .ic { transform: rotate(90deg); }
.kb-steps { margin: 0; padding: 4px 22px 16px 40px; }
.kb-steps li { padding: 5px 0; line-height: 1.5; }
.kb-steps li::marker { color: var(--kurum); font-weight: 700; }
.kb-family { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #fff8e6; border: 1px solid #f3dfaa; color: #7a5a00; border-radius: 12px; padding: 10px 14px; }
.kb-family > span { flex: 1; min-width: 220px; }
.kb-family .ic { width: 14px; height: 14px; vertical-align: -2px; }
.kb-body p { margin: 0 0 10px; } .kb-body ul { margin: 0 0 10px; padding-left: 20px; }
.kb-note { border-top: 1px solid var(--line-2); padding-top: 10px; }
.kb-note p { margin: 4px 0 0; white-space: pre-wrap; }
.kb-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; padding: 0 18px 12px; }
.kb-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.kb-file { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line-2); }
.kb-file a { color: inherit; min-width: 0; } .kb-file b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .kb-file .tiny { display: block; }
.kb-links { display: flex; flex-wrap: wrap; gap: 6px; }
.kb-links a { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 18px; font-size: 13px; color: var(--kurum); background: #fff; }
.kb-links a:hover { background: var(--brand-soft); }
.kb-links .ic { width: 13px; height: 13px; }
.kb-res { color: #146c3a; margin-top: 3px; } .kb-res .ic { width: 11px; height: 11px; }
@media (max-width: 700px) { .kb-row { padding: 10px 12px; } .kb-badges .badge:not(.st-tamamlandi) { display: none; } .kb-search input { font-size: 16px; } }
.kb-sub { font-size: 15px; font-weight: 500; margin-bottom: 6px; }

/* ======================================================= v2.1 — Zayıf Akım projeleri */
.pbar { display: block; height: 6px; background: #e7ebf2; border-radius: 4px; overflow: hidden; margin: 4px 0 2px; min-width: 60px; }
.pbar i { display: block; height: 100%; background: #7d93c4; border-radius: 4px; }
.pbar.ok i { background: #2f9e5b; } .pbar.site i { background: #d98a0b; }
.pj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.pj-card { padding: 18px; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .12s, box-shadow .12s; }
.pj-card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,27,45,.1); }
.pj-card h3 { margin: 4px 0 0; font-size: 17px; }
.pj-prog { margin-top: 8px; }
.pj-today { color: #2f9e5b; }
.pj-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 16px; }
.pj-kpis > div { display: flex; flex-direction: column; }
.pj-kpis b { font-size: 26px; color: var(--kurum); line-height: 1.1; } .pj-kpis span { font-size: 13px; color: var(--muted); }
@media (max-width: 800px) { .pj-kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; } .pj-kpis b { font-size: 22px; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14.5px; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a.on { color: var(--kurum); border-bottom-color: var(--yesil); }
.pj-ov { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .pj-ov { grid-template-columns: 1fr; } }
.pj-sys td { vertical-align: middle; } .pj-sys td .pbar { width: 100%; }
.pj-chart { display: flex; align-items: flex-end; gap: 4px; height: 140px; padding: 10px 16px 24px; }
.pj-chart > div { flex: 1; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; }
.pj-chart span { display: block; background: linear-gradient(180deg, #2f9e5b, #25407f); border-radius: 4px 4px 0 0; min-height: 2px; }
.pj-chart i { position: absolute; bottom: -18px; left: 0; right: 0; text-align: center; font-size: 10.5px; font-style: normal; color: var(--muted); }
.pj-chart b { position: absolute; left: 0; right: 0; text-align: center; font-size: 10.5px; top: -2px; color: var(--text); }
.pj-items .grp td { background: #f3f6fb; font-weight: 700; color: var(--kurum); font-size: 13px; letter-spacing: .02em; }
.pj-items td { vertical-align: top; }
.pj-items tr.svc td { color: var(--muted); }
.pj-items tr.done td b { color: #146c3a; }
.pj-items .okc { color: #146c3a; font-weight: 600; } .pj-items .part { color: #a86500; }
.pj-items .pbar { width: 70px; margin-left: auto; }
.pj-items .ic, .pj-inst .ic { width: 15px; height: 15px; }
.mv-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.mv-wrap input { padding: 6px 8px !important; }
.pj-inst code, .pj code { background: #eef2f8; padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
/* montaj girişi */
.ie { max-width: 760px; padding-bottom: 130px; }
.ie .chips { flex-wrap: wrap; } .ie .chip { cursor: pointer; padding: 8px 14px; font-size: 14px; }
.ie-items { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.ie-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; }
.ie-item input { width: 20px !important; height: 20px; flex: none; }
.ie-item b { display: block; font-size: 14.5px; } .ie-item .tiny { display: block; }
.ie-item.on { border-color: var(--kurum); background: var(--brand-soft); }
.ie-item.done { opacity: .6; }
.ie-rem { text-align: right; font-size: 13px; flex: none; } .ie-rem b { font-size: 17px; color: var(--kurum); } .ie-rem .tiny { display: block; color: var(--muted); }
.ie textarea#ie-ser { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .03em; }

/* ======================================================= v2.2 — Modül menüsü ve Ana Pano */
.side .nav { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.2) transparent; }
.nav-top, .nav-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; color: #d3e1f2; font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.01em; background: none; border: 0; cursor: pointer; text-align: left; margin-bottom: 2px; position: relative; }
.nav-head:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-head .chev { width: 15px; height: 15px; margin-left: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .55; transition: transform .18s; }
.nav-grp.open .chev { transform: rotate(90deg); }
.nav-grp.active > .nav-head, .nav-top.active { color: #fff; }
.nav-grp.active > .nav-head .ic { color: var(--yesil); }
.nav-sub { display: none; margin: 0 0 6px 23px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.14); }
.nav-grp.open .nav-sub { display: block; }
.nav .nav-sub a { padding: 7px 10px; font-size: 14px; color: #b8cbe4; margin-bottom: 1px; }
.nav .nav-sub a:hover { color: #fff; }
.nav .nav-sub a.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 600; }
.nav .nav-sub a.on::before { left: -14px; top: 7px; bottom: 7px; width: 3px; }
.nav-top + .nav-grp, .nav-grp + .nav-top, .nav-top + .nav-top { margin-top: 0; }
.nav > .nav-top:first-child { margin-bottom: 10px; }
.side-shade { display: none; }
@media (max-width: 900px) {
  .app.drawer .side { display: flex; position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: 280px; height: 100%; box-shadow: 10px 0 40px rgba(0,0,0,.3); animation: slidein .2s ease; }
  .app.drawer .side-shade { display: block; position: fixed; inset: 0; background: rgba(10,20,40,.45); z-index: 55; }
  @keyframes slidein { from { transform: translateX(-100%); } to { transform: none; } }
}
/* Ana Pano */
.hm-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hm-hello h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; } .hm-hello p { margin: 4px 0 0; }
.hm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.hm-tile { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--kurum); }
.hm-zayif { border-top-color: #d98a0b; } .hm-bakim { border-top-color: #2f9e5b; } .hm-finans { border-top-color: #7b4fd6; } .hm-teknik { border-top-color: var(--yesil); } .hm-cari { border-top-color: #3b82f6; }
.hm-head { display: flex; align-items: center; gap: 10px; color: inherit; }
.hm-head h3 { margin: 0; font-size: 16px; flex: 1; } .hm-head > .ic { width: 16px; height: 16px; color: var(--muted); }
.hm-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-soft); color: var(--kurum); display: grid; place-items: center; }
.hm-main .hm-stat { flex-direction: row; align-items: baseline; gap: 8px; }
.hm-main .hm-stat b { font-size: 34px; line-height: 1; }
.hm-stat { display: flex; flex-direction: column; color: inherit; }
.hm-stat b { font-size: 20px; color: var(--kurum); font-weight: 700; } .hm-stat b.alert { color: var(--err); }
.hm-stat span { font-size: 12.5px; color: var(--muted); }
a.hm-stat:hover b { text-decoration: underline; }
.hm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.hm-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1000px) { .hm-cols { grid-template-columns: 1fr; } }
.hm .item .pbar { margin: 4px 0 2px; }
/* Ekip — menü yetkileri */
.perm-tree { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.perm-mod { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.perm-mod > label { font-weight: 700; display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.perm-mod .perm-it { display: flex; gap: 8px; align-items: center; font-size: 13.5px; padding: 3px 0 3px 22px; }
.perm-mod input { width: 16px !important; height: 16px; }
.perm-mod.off { opacity: .45; }
.hm-tabs { margin-bottom: 18px; }
.hm-teklif { border-top-color: #0ea5a4; }
.fin-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 4px 18px 18px; }
.fin-grid .hm-stat b { font-size: 26px; } .fin-grid .tiny { color: var(--text); font-weight: 600; }
@media (max-width: 700px) { .fin-grid { grid-template-columns: repeat(2, 1fr); } }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; } @media (max-width: 900px) { .g2 { grid-template-columns: 1fr; } }
.za-row { display: block; padding: 14px 18px; border-top: 1px solid var(--line-2); color: inherit; }
.za-row:hover { background: #f7f9fc; }
.za-row .pbar { margin: 8px 0 6px; height: 8px; }
.za-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.za-meta b { color: var(--text); } .za-meta .late, .za-meta b.late { color: var(--err); } .okc { color: #146c3a; }
a.warn-box { color: inherit; }

/* v2.3 — Teklif */
.qt-kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qt-stat { padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.qt-stat span { font-size: 12px; color: var(--muted); } .qt-stat b { font-size: 21px; } .qt-stat small { font-size: 12px; color: var(--muted); }
.qt-stat.qt-in { background: #fffbeb; border-color: #fde68a; }
@media (max-width: 760px) { .qt-kpi { grid-template-columns: repeat(2, 1fr); } }
.qt-sys { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: #f1f5f9; border-top: 1px solid var(--line); font-size: 14px; }
table.t th.r, table.t td.r, .qt-t .r { text-align: right; }
table.t td.qt-in, table.t th.qt-in { background: #fffbeb; }
.qt-items td { padding: 8px 12px; } .qt-list td { vertical-align: top; }
.qt-terms th { width: 120px; white-space: nowrap; vertical-align: top; text-transform: none; letter-spacing: 0; font-size: 12px; }
.qt-term { display: grid; grid-template-columns: 130px 1fr auto; gap: 6px; align-items: start; }
.qt-calc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px; }
.qt-calc .full { grid-column: 1 / -1; margin: 0; }
@media (max-width: 700px) { .qt-calc { grid-template-columns: 1fr 1fr; } }
.kb-sug { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.kb-sug button { text-align: left; background: #f8fafc; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; font-size: 13px; cursor: pointer; }
.kb-sug button:hover { background: #eef2ff; }
.qt-print { max-width: 900px; }
.qt-print h4 { margin: 16px 0 6px; font-size: 13px; color: var(--brand); letter-spacing: .03em; }
.qt-print table { width: 100%; border-collapse: collapse; font-size: 12px; }
.qt-print th, .qt-print td { border: 1px solid #cbd5e1; padding: 5px 7px; text-align: left; vertical-align: top; }
.qt-print .qt-t th, .qt-print .qt-hd th, .qt-print .qt-terms th { background: #eef2f7; font-weight: 600; }
.qt-print .qt-hd { margin-top: 14px; } .qt-print .qt-hd th { width: 110px; } .qt-print .qt-hd { table-layout: fixed; width: 100%; } .qt-print .qt-hd td { overflow-wrap: anywhere; }
.qt-print .r { text-align: right; white-space: nowrap; }
.qt-print tr.tot td, .qt-print tr.tot th { font-weight: 700; background: #f8fafc; }
.qt-print .qt-sum { width: 360px; margin: 14px 0 0 auto; } .qt-print .qt-sum td { text-align: right; }
.qt-print .qt-terms td { font-size: 11px; }
@media print { .qt-print h4, .qt-print tr { break-inside: avoid; } }
.qt-print .qt-sum th { white-space: nowrap; width: auto; }

/* v2.4 — Telefon: sayfa asla ekrandan taşmasın; geniş tablolar kendi içinde kaysın */
@media (max-width: 1100px) { .split { grid-template-columns: minmax(0, 1fr); } }
.split > *, .stack-lg > *, .card { min-width: 0; }
@media (max-width: 700px) {
  main.content { overflow-x: hidden; }
  .card-body table.t, .card > table.t { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  h2, .card p, .todo-l2, .kv dd { overflow-wrap: anywhere; }
  .ai-box .card-head { flex-wrap: wrap; row-gap: 6px; }
  .ai-box .card-head h3 { font-size: 15px; }
  .ai-cols { grid-template-columns: 1fr; }
  .split .card-head { flex-wrap: wrap; }
  .table-wrap { overflow-x: auto; }
}

/* v2.4 — Arızalı Ürünler filtreleri: geniş ekranda tek satır */
.rma-f { flex-wrap: nowrap; gap: 6px; }
.rma-f .search { flex: 1 1 170px; min-width: 130px; max-width: 260px; }
.rma-f .search input { height: 34px; font-size: 13px; }
.rma-f select { min-width: 0; width: auto; max-width: 150px; height: 34px; font-size: 13px; padding: 4px 26px 4px 8px; flex: 0 1 auto; }
.rma-f .rma-date { display: flex; align-items: center; gap: 4px; white-space: nowrap; color: var(--muted); }
.rma-f .rma-date input { width: 128px; min-width: 0; height: 34px; font-size: 12.5px; padding: 4px 6px; }
.rma-f .icon-btn { flex: 0 0 auto; }
@media (max-width: 1250px) { .rma-f { flex-wrap: wrap; } }
@media (max-width: 700px) {
  .rma-f .search { max-width: none; flex-basis: 100%; }
  .rma-f select { flex: 1 1 45%; max-width: none; }
  .rma-f .rma-date { flex: 1 1 100%; } .rma-f .rma-date input { flex: 1; width: auto; }
}

/* v2.4 — Panoda kapatılanlar satırı */
.closed-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: -6px 2px 0; }
.closed-line .ic { width: 14px; height: 14px; color: var(--ok, #16a34a); }
.closed-line a { color: var(--text); padding: 2px 8px; border-radius: 999px; text-decoration: none; }
.closed-line a:hover { background: var(--line-2); }
.closed-line a.on { background: var(--brand); color: #fff; }
.closed-line a.on b { color: #fff; }
.kpis.kpis-4 { grid-template-columns: repeat(4, 1fr); } .kpis.kpis-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 700px) { .kpis.kpis-4, .kpis.kpis-5 { grid-template-columns: repeat(2, 1fr); } }

/* v2.4 — Konuşarak yaz düğmesi */
.mic-btn { gap: 6px; border-color: #c7d2fe; color: var(--brand); background: #eef2ff; }
.mic-btn.rec { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; animation: micpulse 1.2s infinite; }
@keyframes micpulse { 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, .15); } }
.lbl-t { font-size: 13px; font-weight: 600; color: var(--muted); }
@media (max-width: 700px) { .mic-btn { padding: 10px 14px; font-size: 15px; } }

/* v2.4 — Yetki ağacı */
.perm-sec { font-weight: 700; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 14px 0 8px; }
.perm-mod.cap { grid-column: span 2; } @media (max-width: 700px) { .perm-mod.cap { grid-column: auto; } }
.perm-mod .perm-it span { flex: 1; }
.perm-own { display: none; font-style: normal; font-size: 10.5px; font-weight: 700; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 0 5px; }
.perm-it.own .perm-own, .perm-own.on { display: inline-block; }
.perm-it.own { background: #fffbeb; border-radius: 6px; }
/* v2.4 — Telefonda üst çubuk: eylem düğmeleri yalnız ikon, başlık kısalır; hiçbir şey ekrandan taşmaz */
@media (max-width: 700px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  .top { min-width: 0; gap: 8px; }
  #top-actions { flex: 0 0 auto; gap: 6px; flex-wrap: nowrap; }
  #top-actions .btn { padding: 8px 10px; }
  #top-actions .btn > span { display: none; }
  .tabbar { max-width: 100vw; }
  .tabbar a { min-width: 0; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* v2.5 — Teklif panosu */
.qt-row { align-items: center; }
.qt-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; margin: 0 4px 0 6px; background: #94a3b8; }
.qt-dot.st-hazirlaniyor { background: #94a3b8; } .qt-dot.st-gonderildi { background: #2563eb; } .qt-dot.st-onaylandi { background: #16a34a; }
.qt-dot.st-reddedildi, .qt-dot.st-iptal { background: #64748b; } .qt-dot.st-gecikti { background: #ea580c; }
.qt-row .todo-meta b { font-size: 14px; color: var(--text); }
.kpi-amt b { font-size: 18px !important; line-height: 1.25; }
button.qt-add { width: 100%; border: 0; border-top: 1px solid var(--line); cursor: pointer; font: inherit; color: var(--muted); text-align: left; min-height: 52px; }
button.qt-add:hover { background: #f1f5f9; color: var(--text); }
.qt-step { font-size: 13px; } .qt-step b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; margin-right: 4px; }
.qt-vp input { height: 32px; font-size: 13px; padding: 4px 6px; } .qt-vp td { vertical-align: top; }
.qt-vp input[type=checkbox] { width: 18px; height: 18px; }

/* v2.5 — Teklif Maliyetleri (kâr panosu) */
.pf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 800px) { .pf-two { grid-template-columns: 1fr; } }
.pf-card { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.pf-h { font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pf-grid > div { background: #f8fafc; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.pf-grid span { font-size: 12px; color: var(--muted); } .pf-grid b { font-size: 20px; } .pf-grid small { font-size: 11.5px; color: var(--muted); }
.pf-grid .pf-tot { background: #ecfdf5; } .pf-grid .pf-tot b { color: #047857; }
@media (max-width: 500px) { .pf-grid { grid-template-columns: 1fr; } }
.warn-t { color: #b45309; } .tiny.warn { color: #b45309; } .tiny.ok { color: #047857; }
.pf-t td { vertical-align: top; } .pf-t td.r, .pf-t th.r { text-align: right; white-space: nowrap; }
.qt-vp input[data-f=system] { width: 150px; } .qt-vp input[data-f=name] { width: 100%; min-width: 220px; } .qt-vp td:nth-child(3) { width: 100%; }
@media (max-width: 700px) { .closed-line { margin-top: 0; } }

/* v2.5.1 — Teklif kalem tablosu */
.qt-head { gap: 8px; } .qt-head h3 { margin: 0; }
.qt-cur { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.qt-cur select { width: auto; min-width: 74px; height: 32px; padding: 2px 26px 2px 8px; font-size: 13px; font-weight: 700; color: var(--text); }
table.qt-tbl { font-size: 13.5px; }
table.qt-tbl th { white-space: nowrap; font-size: 12px; }
table.qt-tbl td { padding: 8px 10px; vertical-align: top; white-space: nowrap; }
table.qt-tbl td.qt-name { white-space: normal; min-width: 220px; width: 100%; }
table.qt-tbl tr.qt-g td { background: #f1f5f9; font-weight: 700; font-size: 12.5px; letter-spacing: .02em; padding: 7px 10px; }
table.qt-tbl tfoot td { font-weight: 700; border-top: 2px solid var(--line); background: #fafbfd; }
table.qt-tbl td.pos { color: #047857; font-weight: 600; } table.qt-tbl td.neg { color: #b91c1c; font-weight: 600; }
.qt-quick { gap: 8px; flex-wrap: wrap; }
.qt-quick #qtext { min-width: 200px; }
.qt-qm { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--muted); }
.qt-qm input { width: 64px !important; height: 32px; padding: 2px 6px !important; border: 1px solid var(--line) !important; border-radius: 8px; background: #fff !important; }
.qt-hint { display: block; padding: 0 18px 12px; }
@media (max-width: 700px) { .qt-quick #qtext { flex-basis: 100%; } }

/* v2.5.2 — Teklif tablosunda satır içi düzenleme */
table.qt-edit td { padding: 4px 6px; vertical-align: middle; }
table.qt-edit td.qt-name { padding-left: 4px; }
.qi { height: 34px; border: 1px solid transparent !important; background: transparent !important; border-radius: 8px; padding: 4px 8px !important; font-size: 13.5px; width: 100%; min-width: 0; box-shadow: none !important; color: var(--text); }
.qi:hover { border-color: var(--line) !important; background: #fff !important; }
.qi:focus { border-color: var(--brand) !important; background: #fff !important; outline: none; box-shadow: 0 0 0 3px rgba(37, 99, 235, .12) !important; }
.qi-num { text-align: right; width: 96px; } .qi-qty { width: 72px; } .qi-unit { width: 64px; } .qi-name { min-width: 220px; font-weight: 500; }
.qi-wrap { display: inline-flex; align-items: center; gap: 2px; }
.qi-cc { font-size: 10.5px; font-weight: 700; color: #92400e; background: #fde68a; border-radius: 5px; padding: 1px 4px; }
.qi-m { font-size: 11.5px; color: var(--muted); margin-left: 6px; } .qi-mar { width: 60px; height: 28px; font-size: 12px; }
td[data-o="k"] { white-space: nowrap; } td[data-o="k"] b { display: inline-block; min-width: 64px; }
table.qt-edit td.pos b { color: #047857; } table.qt-edit td.neg b { color: #b91c1c; }
.qi-act { white-space: nowrap; width: 1%; } .qi-act .icon-btn { width: 32px; height: 32px; }
tr.qi-dirty td { background: #fffbeb !important; } tr.qi-dirty td:first-child { box-shadow: inset 3px 0 0 #f59e0b; }
.qt-savebar { display: none; align-items: center; gap: 8px; padding: 10px 16px; background: #fffbeb; border-top: 1px solid #fde68a; position: sticky; bottom: 0; z-index: 3; font-size: 13.5px; color: #92400e; font-weight: 600; }
.qt-savebar.on { display: flex; }
@media (max-width: 900px) { .qt-savebar { bottom: 64px; } }
#qsave-top.pulse { background: var(--brand); color: #fff; border-color: var(--brand); }
.qi-num { width: 84px; } .qi-qty { width: 64px; } .qi-unit { width: 56px; } .qi-name { min-width: 170px; } .qi-mar { width: 52px; }
table.qt-edit td[data-o="k"] b { min-width: 56px; } table.qt-edit th, table.qt-edit td { padding-left: 5px; padding-right: 5px; }
.qi-mar { width: 60px; }

/* ---------- v2.6 Sahne Yöneticisi ---------- */
.stage { display: flex; gap: 18px; align-items: flex-start; }
.stage-strip { display: none; }
.stage-main { flex: 1; min-width: 0; display: flex; align-items: stretch; --split: 50%; }
.scene { flex: 1; min-width: 0; }
.scene-head { display: none; }
.content:has(.stage.has-strip), .content:has(.stage.split) { max-width: none; }
.stage.has-strip .stage-strip { display: flex; flex-direction: column; gap: 12px; width: 168px; flex: 0 0 168px; position: sticky; top: 92px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 4px 4px 10px 0; }
.sc-card { position: relative; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; padding: 10px 10px 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 16px -10px rgba(0,0,0,.25); transform: perspective(500px) rotateY(9deg); transform-origin: left center; transition: transform .18s, box-shadow .18s; }
.sc-card:hover, .sc-card:focus-visible { transform: none; box-shadow: 0 8px 22px -8px rgba(0,0,0,.3); outline: none; }
.sc-card.dirty { border-color: #f0b44c; }
.sc-t { display: flex; gap: 6px; align-items: center; font-weight: 600; font-size: 12.5px; line-height: 1.25; padding-right: 30px; }
.sc-t svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--brand, #1d5fbf); }
.sc-t span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sc-s { font-size: 11px; color: var(--muted, #6b7280); margin-top: 3px; }
.sc-s b { color: #b26a00; font-weight: 600; }
.sc-mini { display: grid; gap: 4px; margin-top: 7px; }
.sc-mini i { display: block; height: 5px; border-radius: 3px; background: #e7eaf0; }
.sc-mini i:nth-child(2) { width: 75%; } .sc-mini i:nth-child(3) { width: 55%; }
.sc-plus, .sc-close { position: absolute; top: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #eef1f6; color: #374151; display: grid; place-items: center; cursor: pointer; padding: 0; opacity: 0; transition: opacity .15s; }
.sc-plus { right: 32px; } .sc-close { right: 6px; }
.sc-plus svg, .sc-close svg { width: 13px; height: 13px; }
.sc-card:hover .sc-plus, .sc-card:hover .sc-close, .sc-card:focus-within .sc-plus, .sc-card:focus-within .sc-close { opacity: 1; }
.sc-plus:hover { background: var(--brand, #1d5fbf); color: #fff; } .sc-close:hover { background: #e5484d; color: #fff; }
@media (hover: none) { .sc-plus, .sc-close { opacity: 1; } }
/* Yan yana iki sayfa */
.stage.split .stage-main { gap: 0; }
.stage.split .scene { flex: 0 0 calc(var(--split) - 5px); height: calc(100vh - 120px); overflow: auto; background: rgba(255,255,255,.55); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px 30px; position: relative; }
.stage.split .scene + .sc-div + .scene { flex: 1 1 0; }
.stage.split .scene.focused { border-color: var(--brand, #1d5fbf); box-shadow: 0 0 0 2px rgba(29,95,191,.12); }
.stage.split .scene-head { display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 5; background: inherit; backdrop-filter: blur(10px); margin: 0 -14px 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.stage.split .scene.focused .scene-head .sc-actions { display: none; }
.sc-title { font-size: 15px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-div { flex: 0 0 10px; cursor: col-resize; position: relative; }
.sc-div::after { content: ''; position: absolute; left: 3px; top: 40%; height: 60px; width: 4px; border-radius: 2px; background: #cfd5df; }
.sc-div:hover::after { background: var(--brand, #1d5fbf); }
.stage-btn.on { color: var(--brand, #1d5fbf); background: rgba(29,95,191,.1); }
/* Telefon: kartlar üstte yatay şerit */
@media (max-width: 900px) {
  .stage { flex-direction: column; gap: 8px; align-items: stretch; }
  .stage.has-strip .stage-strip { flex-direction: row; width: auto; flex: none; position: static; max-height: none; overflow-x: auto; overflow-y: hidden; padding: 2px 0 6px; gap: 8px; scrollbar-width: none; }
  .stage-strip::-webkit-scrollbar { display: none; }
  .sc-card { transform: none; flex: 0 0 auto; max-width: 190px; padding: 6px 30px 6px 10px; border-radius: 18px; }
  .sc-t { padding-right: 0; font-size: 12px; } .sc-t span { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
  .sc-s, .sc-mini, .sc-plus { display: none; }
  .sc-close { top: 50%; transform: translateY(-50%); right: 5px; width: 20px; height: 20px; }
}
@media print { .stage-strip, .scene-head, .sc-div { display: none !important; } }

/* ---------- v2.6 Ana Pano: üst üste açılır kutular ---------- */
.hm-accs { display: flex; flex-direction: column; gap: 8px; }
.hm-acc { padding: 0; gap: 0; border-top-width: 0; border-left: 4px solid var(--kurum); overflow: hidden; }
.hm-acc-h { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; }
.hm-acc-h:hover { background: rgba(0,0,0,.025); } .hm-acc-h:focus-visible { outline: 2px solid var(--kurum); outline-offset: -2px; }
.hm-acc-h h3 { margin: 0; font-size: 15.5px; flex: 0 0 auto; min-width: 120px; }
.hm-peek { flex: 1; display: flex; gap: 16px; justify-content: flex-end; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.hm-peek b { color: var(--kurum); font-size: 15px; } .hm-peek .alert b { color: var(--err); }
.hm-acc-h .chev { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; color: var(--muted); transition: transform .2s; flex: 0 0 16px; }
.hm-acc.open .hm-acc-h .chev { transform: rotate(90deg); }
.hm-acc-b { display: none; padding: 2px 18px 16px; flex-direction: column; gap: 12px; }
.hm-acc.open .hm-acc-b { display: flex; animation: hmIn .2s ease; }
.hm-zayif.hm-acc { border-left-color: #d98a0b; } .hm-bakim.hm-acc { border-left-color: #2f9e5b; } .hm-finans.hm-acc { border-left-color: #7b4fd6; } .hm-teknik.hm-acc { border-left-color: var(--yesil); } .hm-cari.hm-acc { border-left-color: #3b82f6; }
.hm-go { align-self: flex-end; display: inline-flex; gap: 6px; align-items: center; color: var(--kurum); }
.hm-go svg { width: 14px; height: 14px; }
@keyframes hmIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .hm-acc-h { padding: 12px 12px; gap: 10px; } .hm-acc-h h3 { min-width: 0; font-size: 15px; } .hm-peek { gap: 10px; font-size: 12px; } .hm-peek span + span { display: none; } }

/* ---------- v2.7 Teklif: görünümler, durum şeridi, şecere ---------- */
.qt-savebar { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); box-shadow: 0 6px 20px -12px rgba(0,0,0,.35); backdrop-filter: blur(8px); }
.qt-savebar.dirty { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.qt-savebar .btn[disabled] { opacity: .45; pointer-events: none; }
.qt-tabs { gap: 10px; align-items: center; }
.qt-tabs .seg a svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
.qt-kpi.qt-kpi3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qt-nocost > label:not(:has([name=unit_price])), .qt-nocost .qt-step, .qt-nocost > p { display: none; }
.qt-note { margin-top: 12px; padding: 9px 12px; border-radius: 10px; background: #eef4ff; color: #1e3a8a; font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.qt-note.warn { background: #fff7e6; color: #8a4b00; }
.qt-note svg { width: 16px; height: 16px; flex: 0 0 16px; }
.qs-strip { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 0; overflow-x: auto; }
.qs-strip li { flex: 1 1 0; min-width: 118px; display: flex; gap: 8px; align-items: flex-start; position: relative; padding: 0 10px 0 0; color: var(--muted); }
.qs-strip li:not(:last-child)::after { content: ''; position: absolute; left: 30px; right: 6px; top: 12px; height: 2px; background: var(--line); }
.qs-strip li.done:not(:last-child)::after { background: #2f9e5b; }
.qs-strip li > i { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; background: #eef1f6; color: #6b7280; position: relative; z-index: 1; }
.qs-strip li > i svg { width: 13px; height: 13px; }
.qs-strip li.done > i { background: #2f9e5b; color: #fff; }
.qs-strip li.cur > i { background: var(--kurum); color: #fff; box-shadow: 0 0 0 4px rgba(29,95,191,.15); }
.qs-strip li.x > i { background: #e5484d; color: #fff; }
.qs-strip li > div { display: flex; flex-direction: column; min-width: 0; padding-top: 28px; margin-left: -32px; }
.qs-strip b { font-size: 12.5px; color: var(--text); font-weight: 600; white-space: nowrap; }
.qs-strip li:not(.done):not(.cur):not(.x) b { color: var(--muted); font-weight: 500; }
.qs-strip span { font-size: 11px; white-space: nowrap; }
.qs-strip em { font-size: 11px; font-style: normal; color: #4b5563; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.qs-strip.side li.x b { color: #c2262b; }
.qs-dots { display: inline-flex; gap: 3px; margin: 0 6px; vertical-align: middle; }
.qs-dots i { width: 6px; height: 6px; border-radius: 50%; background: #dfe3ea; }
.qs-dots i.d { background: #2f9e5b; } .qs-dots i.c { background: var(--kurum); }
.sc-tree { list-style: none; margin: 0; padding: 4px 18px 16px; display: flex; flex-direction: column; gap: 0; }
.sc-tree > li { position: relative; padding: 12px 0 12px 22px; border-left: 2px solid var(--line); }
.sc-tree > li::before { content: ''; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #9aa4b2; }
.sc-tree > li.on::before { background: var(--kurum); border-color: var(--kurum); }
.sc-tree > li.on { background: linear-gradient(90deg, rgba(29,95,191,.05), transparent 60%); }
.sc-diff { list-style: none; margin: 6px 0 2px; padding: 0; font-size: 12.5px; display: grid; gap: 2px; }
.sc-diff .add { color: #1f7a45; } .sc-diff .rm { color: #b42318; } .sc-diff .ch { color: #8a4b00; }
.sc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 1000px) { .sc-cols { grid-template-columns: 1fr; } }
.sc-log { list-style: none; margin: 0; padding: 0 18px 14px; }
.sc-log li { display: grid; grid-template-columns: 112px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.sc-log li:last-child { border-bottom: 0; }
@media (max-width: 900px) { .sc-log li { grid-template-columns: 1fr auto; } .sc-log li > span:first-child { grid-column: 1 / -1; } .qt-kpi.qt-kpi3 { grid-template-columns: 1fr 1fr; } .qs-strip li { min-width: 96px; } }
@media (max-width: 600px) {
  .qs-strip li { min-width: 0; padding-right: 4px; }
  .qs-strip b { white-space: normal; font-size: 11px; line-height: 1.2; }
  .qs-strip li:not(.cur):not(.x) span, .qs-strip li:not(.cur):not(.x) em { display: none; }
  .qs-strip li.cur span, .qs-strip li.x span { white-space: normal; }
  .qs-strip li:not(:last-child)::after { left: 26px; }
}

/* ---------- v2.8 Stok ---------- */
.stk-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.stk-kpi a.qt-stat { color: inherit; text-decoration: none; }
.stk-kpi .qt-stat.bad b { color: var(--err); } .stk-kpi .qt-stat.warn b { color: #b26a00; }
.stk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; align-items: start; }
.stk-alert { border-left: 4px solid var(--err); }
.stk-list { list-style: none; margin: 0; padding: 0 18px 12px; }
.stk-list li { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.stk-list li:last-child { border-bottom: 0; }
.neg { color: var(--err); } .pos { color: #1f7a45; } .warn-t { color: #b26a00; }
.stk-tree-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 18px; align-items: start; }
.stk-tree { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding-bottom: 10px; }
.stk-tree ul { list-style: none; margin: 0; padding: 0 8px; }
.stk-tree ul ul { padding: 0 0 0 14px; border-left: 1px solid var(--line); margin-left: 10px; }
.stk-tree a { display: flex; justify-content: space-between; gap: 6px; padding: 5px 8px; border-radius: 8px; font-size: 13px; color: var(--text); cursor: pointer; text-decoration: none; }
.stk-tree a:hover { background: rgba(0,0,0,.04); } .stk-tree a.on { background: var(--kurum); color: #fff; }
.stk-tree a i { font-style: normal; font-size: 11px; color: var(--muted); } .stk-tree a.on i { color: rgba(255,255,255,.8); }
.stk-search { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; }
.stk-search svg { width: 16px; height: 16px; color: var(--muted); } .stk-search input { border: 0; flex: 1; padding: 9px 0; outline: none; background: none; }
.stk-dd { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px -10px rgba(0,0,0,.3); max-height: 320px; overflow: auto; margin-top: 4px; }
.stk-dd button { all: unset; display: block; width: 100%; box-sizing: border-box; padding: 8px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); }
.stk-dd button:hover, .stk-dd button.on { background: #eef4ff; }
.stk-dd b { display: block; font-size: 13px; } .stk-dd span { display: block; font-size: 12px; color: var(--muted); } .stk-dd small { font-size: 11px; color: #4b5563; }
.stk-lines td { vertical-align: top; } .stk-lines tr.nomatch { background: #fff8e6; } .stk-lines tr.skip { opacity: .45; }
.stk-pick { min-width: 260px; } .stk-find input { width: 100%; } .stk-sugg { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 4px; } .stk-sugg .chip { font-size: 11.5px; cursor: pointer; }
.stk-chosen { font-size: 13px; }
.stk-direct summary { cursor: pointer; font-size: 13.5px; display: flex; gap: 6px; align-items: center; }
.stk-direct summary svg { width: 15px; height: 15px; }
.stk-file { align-self: flex-start; cursor: pointer; }
.stk-hist { padding: 0 18px 14px; } .stk-hist summary { cursor: pointer; margin-bottom: 6px; }
.stk-count input[data-loc] { width: 130px; }
@media (max-width: 900px) {
  .stk-tree-wrap { grid-template-columns: 1fr; } .stk-tree { position: static; max-height: 260px; }
  .stk-count th:nth-child(2), .stk-count td:nth-child(2) { display: none; }
  .stk-lines .stk-pick { min-width: 180px; }
}
.hm-stok.hm-acc { border-left-color: #0f766e; }
.stk-linked { border-color: #2f9e5b !important; background: #f0fbf4 !important; }
.qi-old { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 700; color: #8a4b00; background: #fff1d6; border-radius: 6px; padding: 1px 4px; vertical-align: middle; cursor: help; }
.qs-pick { display: grid; grid-template-columns: 220px 1fr; gap: 14px; min-height: 360px; }
.qs-tree { border-right: 1px solid var(--line); padding-right: 10px; max-height: 420px; overflow: auto; font-size: 13px; }
.qs-tree summary { cursor: pointer; font-weight: 600; padding: 5px 2px; }
.qs-tree a { display: flex; justify-content: space-between; padding: 4px 8px 4px 14px; border-radius: 7px; color: var(--text); text-decoration: none; }
.qs-tree a:hover { background: rgba(0,0,0,.04); } .qs-tree a.on { background: var(--kurum); color: #fff; } .qs-tree a i { font-style: normal; font-size: 11px; opacity: .7; }
.qs-pick section { display: flex; flex-direction: column; gap: 8px; min-width: 0; } .qs-pick #qps { width: 100%; }
.qs-res { max-height: 380px; overflow: auto; display: grid; gap: 4px; }
.qs-item { display: grid; grid-template-columns: auto 1fr 70px; gap: 10px; align-items: center; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: 9px; cursor: pointer; }
.qs-item.on { border-color: var(--kurum); background: #eef4ff; }
.qs-item b { display: block; font-size: 13px; } .qs-item small { font-size: 11.5px; color: var(--muted); } .qs-item small i { font-style: normal; color: #4b5563; }
@media (max-width: 700px) { .qs-pick { grid-template-columns: 1fr; } .qs-tree { border-right: 0; max-height: 160px; } }
.stk-tree a { justify-content: flex-start; } .stk-tree a span { flex: 1; min-width: 0; } .stk-tree a .tw { width: 12px; flex: 0 0 12px; font-weight: 400; color: var(--muted); font-size: 11px; }
.stk-tree a.on .tw { color: #fff; } .stk-tree ul ul { margin-left: 8px; padding-left: 8px; }
.stk-crumb a { color: inherit; } .stk-crumb a:hover { color: var(--kurum); }
.qs-tree details details { margin-left: 10px; } .qs-tree summary i, .qs-tree a i { font-style: normal; font-size: 11px; opacity: .65; } .qs-tree summary.on { color: var(--kurum); }
.stk-paths { display: flex; flex-direction: column; gap: 2px; } .stk-paths a { color: inherit; } .stk-paths a:hover { color: var(--kurum); }

/* v2.9 — İhale */
.late { color: var(--err); font-weight: 600; }
.tn-list td { vertical-align: top; } .tn-list .nowrap { white-space: nowrap; }
.tn-steps { display: flex; gap: 4px; margin-top: 12px; flex-wrap: wrap; }
.tn-steps span { font-size: 12px; padding: 4px 10px; border-radius: 7px; background: #f1f5f9; color: var(--muted); }
.tn-steps span.d { background: #e7f6ec; color: #146c3a; } .tn-steps span.c { background: #25407f; color: #fff; font-weight: 600; }
.tn-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; }
@media (max-width: 1000px) { .tn-cols { grid-template-columns: 1fr; } }
.tn-checks { display: flex; flex-direction: column; }
.tn-chk { display: flex; align-items: center; gap: 10px; padding: 9px 18px; border-bottom: 1px solid var(--line-2); cursor: pointer; font-size: 14px; }
.tn-chk span { flex: 1; } .tn-chk.done span { color: #146c3a; text-decoration: line-through; text-decoration-color: #9fd3b0; }
.tn-chk .icon-btn { opacity: 0; } .tn-chk:hover .icon-btn { opacity: 1; }
.tn-tbl .tn-name { min-width: 260px; max-width: 520px; font-size: 13px; line-height: 1.35; }
.tn-tbl .tn-unit { width: 56px; } .tn-tbl td { vertical-align: top; }
.tn-pick { margin-top: 4px; display: none; } .tn-tbl tr:hover .tn-pick, .tn-tbl .tn-pick:focus-within { display: block; }
.tn-pick input { height: 28px; font-size: 12px; padding: 2px 8px; width: 100%; max-width: 320px; border: 1px dashed #c9d3e0; border-radius: 7px; background: #fbfcfe; }
tr.tn-us td { background: #f3f7ff; }
.tn-print .qt-t td { font-size: 11px; vertical-align: top; }
.tn-tbl td.tn-name { white-space: normal; word-break: break-word; }
.tn-tbl select.qi { width: 82px; min-width: 82px; padding-right: 22px !important; }
.tn-tbl .qi-num { width: 84px; }
.tn .card-head select.sm { width: auto; max-width: 190px; height: 34px; font-size: 13px; }
.tn-chk { padding: 7px 18px; font-size: 13.5px; min-height: 0; }
.tn-chk input { width: 16px; height: 16px; flex: none; }
.tn .todo-meta .badge, .board .todo-meta .badge { max-width: none; }

/* v2.9.1 ilan metni yapıştır */
.tn-paste{background:var(--bg-soft,#f6f7f9);border:1px dashed var(--line,#d5d9e0);border-radius:10px;padding:10px 12px;margin-bottom:12px}
.tn-paste textarea{width:100%;font-size:13px}

/* v2.10 İhale: sekmeler, katılım özeti, firma yeterlik */
.tn-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; margin-bottom: -4px; }
.tn-tabs a { padding: 10px 16px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.tn-tabs a.on { color: var(--brand); border-bottom-color: var(--brand); }
.tn-tabs a:hover { color: var(--text); }
.tn-light { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 20px; line-height: 1.6; }
.tn-light.ok { background: #e7f6ec; color: #15803d; } .tn-light.warn { background: #fef3c7; color: #b45309; } .tn-light.err { background: #fde8e8; color: #b91c1c; }
.tn-dec { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; border: 1px solid var(--line); }
.tn-dec.ok { background: #f0fbf4; border-color: #bbe5c8; } .tn-dec.warn { background: #fffbeb; border-color: #fde68a; } .tn-dec.err { background: #fef2f2; border-color: #fecaca; }
.tn-dec-ic { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--line-2); color: var(--muted); flex: none; }
.tn-dec.ok .tn-dec-ic { background: var(--ok); color: #fff; } .tn-dec.warn .tn-dec-ic { background: #f59e0b; color: #fff; } .tn-dec.err .tn-dec-ic { background: var(--err); color: #fff; }
.tn-dec-ic .ic { width: 26px; height: 26px; }
.tn-dec-t { font-size: 19px; font-weight: 700; }
.tn-dec.ok .tn-dec-t { color: #15803d; } .tn-dec.warn .tn-dec-t { color: #b45309; } .tn-dec.err .tn-dec-t { color: #b91c1c; }
.tn-el td { vertical-align: top; }
.tn-st.ok { color: #15803d; } .tn-st.warn { color: #b45309; } .tn-st.err { color: #b91c1c; } .tn-st.muted { color: var(--muted); }
.tn-st b { display: inline-block; width: 16px; }
.tn-el details summary { cursor: pointer; margin-top: 3px; }
.tn-sec { flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); color: var(--brand-2); font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.tn-ai { background: var(--ai-soft); } .tn-ai h3 { color: var(--ai); margin: 0 0 6px; }
.tn-bulk { padding: 2px 4px; }
@media print { .tn-tabs, .tn-dec .btn, .side, .top-actions { display: none !important; } }

/* v2.11 Maliyet çalışması */
.tc-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-in { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 9px; font: inherit; font-size: 14px; background: #fff; }
.tc-in.r { text-align: right; }
.tc-net { background: #e7f6ec !important; } .tc-net span, .tc-net b, .tc-net small { color: #15803d !important; }
.tc-net.neg { background: #fde8e8 !important; } .tc-net.neg span, .tc-net.neg b, .tc-net.neg small { color: #b91c1c !important; }
.tc-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .tc-cols { grid-template-columns: 1fr; } }
.tc-sec { border-top: 1px solid var(--line-2); }
.tc-sec-h { display: flex; align-items: center; gap: 10px; padding: 10px 18px; background: #fafbfd; }
.tc-tot { border-top: 1px solid var(--line); font-size: 15px; }
.tc-line { display: flex; align-items: center; gap: 8px; padding: 7px 18px 7px 54px; border-top: 1px solid var(--line-2); font-size: 14px; }
.tc-line.na { color: var(--muted); } .tc-line.na > .grow > span { text-decoration: line-through; }
.tc-amt { min-width: 90px; text-align: right; }
.tc-oto { font-size: 9.5px; font-weight: 800; padding: 1px 5px; border-radius: 4px; background: var(--brand-soft); color: var(--brand-2); margin-left: 6px; vertical-align: 2px; }
.tc-flash { background: #fff7d6 !important; transition: background .3s; }
.tn-sec.sm { width: 20px; height: 20px; font-size: 11px; display: inline-flex; vertical-align: -4px; margin-right: 4px; }
.tc-netrow td { background: #e7f6ec; color: #15803d; } .tc-netrow.neg td { background: #fde8e8; color: #b91c1c; }
.tc-scen td.ok { color: #15803d; } .tc-scen td.warn { color: #b45309; } .tc-scen tr.click { cursor: pointer; } .tc-scen tr.click:hover td { background: #f6f8fb; }
.tc-pg { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)) !important; }
.tc-hint { background: var(--brand-soft); padding: 8px 10px; border-radius: 8px; }
.tc-cklist { padding: 0 8px 4px; }
.tc-ck { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-top: 1px solid var(--line-2); }
.tc-ck-i { width: 24px; height: 24px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; }
.tc-ck.err .tc-ck-i { background: #fde8e8; color: #b91c1c; } .tc-ck.warn .tc-ck-i { background: #fef3c7; color: #b45309; }
.tc-items td { vertical-align: top; } .tc-items .qi-num { width: 76px; } .tc-items .tn-name { min-width: 220px; max-width: 320px; } .tc-items select.qi { width: 62px; }
.tc-src { display: inline-block; font-size: 10px; font-weight: 700; padding: 0 6px; border-radius: 10px; margin-top: 3px; }
.tc-src.ok { background: #e7f6ec; color: #15803d; } .tc-src.blue { background: var(--brand-soft); color: var(--brand-2); } .tc-src.warn { background: #fef3c7; color: #b45309; } .tc-src.muted { background: #eef2f6; color: var(--muted); }
.btn.xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; }
.tc-mm { padding: 10px 0; border-top: 1px solid var(--line-2); }
.tn-draft { position: relative; } .tn-wm { text-align: center; font-weight: 800; color: #b91c1c; border: 2px solid #b91c1c; padding: 4px; margin-bottom: 8px; letter-spacing: 2px; }

/* v2.12 Bütçe – Gerçekleşen */
.pc-tbl td { vertical-align: middle; }
.pc-tot td { background: #fafbfd; }
.pc-bar { height: 8px; background: #eef2f6; border-radius: 4px; overflow: hidden; } .pc-bar i { display: block; height: 8px; background: var(--ok); }
.pc-bar.warn i { background: #f59e0b; } .pc-bar.err i { background: var(--err); }
td.warn { color: #b45309; } td.ok { color: #15803d; }
.tc-warnk { background: #fffbeb !important; }
.tc-photo { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); cursor: pointer; }
.tc-photo .ic { width: 30px; height: 30px; }
.pc-ts th.c, .pc-ts td.c { text-align: center; padding: 6px 2px; min-width: 26px; font-size: 12px; }
.pc-ts th.we { color: var(--err); }
.pc-cell { cursor: pointer; user-select: none; } .pc-cell:hover { background: #f1f5fb; }
.pc-cell.full { color: var(--brand); font-size: 15px; } .pc-cell.half { color: var(--brand-2); }
.pc-cell.sug { box-shadow: inset 0 0 0 2px #fde68a; }
.pc-sug-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 2px #fde68a; vertical-align: -2px; }

/* v2.12.2 Yeni İlanlar: yuvarlak köşeli satırlar + künye simgesi */
.tn-list { border-collapse: separate !important; border-spacing: 0 8px !important; background: transparent; }
.card.flush:has(> .tn-list) { background: transparent; box-shadow: none; overflow: visible; }
.tn-list thead th { background: transparent; border: 0; }
.tn-list tbody tr td { background: var(--card); border-top: 1px solid var(--line-2) !important; border-bottom: 1px solid var(--line-2) !important; }
.tn-list tbody tr td:first-child { border-left: 1px solid var(--line-2); border-radius: 14px 0 0 14px; }
.tn-list tbody tr td:last-child { border-right: 1px solid var(--line-2); border-radius: 0 14px 14px 0; }
.tn-list tbody tr:hover td { background: #f7f9fc; }
.tn-kc { position: relative; width: 44px; padding-right: 0 !important; }
.tn-kn { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); cursor: help; outline: none; }
.tn-kn .ic { width: 17px; height: 17px; }
.tn-kp { display: none; position: absolute; left: 46px; top: 4px; z-index: 30; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(15, 30, 60, .18); padding: 12px 14px; font-size: 13px; }
.tn-kc:hover .tn-kp, .tn-kn:focus + .tn-kp { display: block; }
.tn-kc:hover .tn-kn { background: var(--brand); color: #fff; }
.tn-kh { font-weight: 700; color: var(--brand); margin-bottom: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--line-2); }
.tn-kr { display: grid; grid-template-columns: 112px 1fr; gap: 8px; padding: 3px 0; } .tn-kr span { color: var(--muted); } .tn-kr b { font-weight: 600; }
.tn-km { max-height: 230px; overflow: auto; } .tn-km > div { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--line-2); } .tn-km b { white-space: nowrap; font-weight: 600; }
.tn-ks { max-height: 200px; overflow: auto; line-height: 1.5; }
.tn-kp { width: 400px; }
.tn-kl { margin: 2px 0 0; padding-left: 18px; line-height: 1.55; } .tn-kw { margin-top: 8px; padding: 8px 10px; border-radius: 9px; background: #fffbeb; color: #92400e; font-size: 12.5px; line-height: 1.5; }
.tn-kp { max-height: 70vh; overflow: auto; }
.tn-kp.up { top: auto; bottom: 4px; }

/* v2.13 — ihale dosyası (ZIP) sürükle-bırak */
.tn-list tr.tn-drop td { background: #eaf2ff !important; box-shadow: inset 0 2px 0 var(--brand), inset 0 -2px 0 var(--brand); }
.tn-list tr.tn-drop td:first-child { box-shadow: inset 2px 2px 0 var(--brand), inset 0 -2px 0 var(--brand); }
.tn-list tr.tn-drop td:last-child { box-shadow: inset -2px 2px 0 var(--brand), inset 0 -2px 0 var(--brand); }
.tn-list tr.tn-drop td:last-child::after { content: 'Bırakın — ihale dosyası okunacak'; display: block; font-size: 12px; font-weight: 600; color: var(--brand); margin-top: 6px; }
.tn-list tr.tn-loading { opacity: .75; pointer-events: none; }
.tn-busy { font-size: 12px; font-weight: 600; color: var(--brand); margin-top: 6px; }
.tn-kn { cursor: pointer; }
.tn-kw svg { width: 14px; height: 14px; vertical-align: -2px; }
.tn-br-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tn-br-sum > div { background: var(--bg-soft, #f4f6fa); border-radius: 12px; padding: 10px 12px; }
.tn-br-sum b { display: block; font-size: 22px; line-height: 1.1; }
.tn-br-sum span { font-size: 12px; color: var(--muted); }
.tn-br-k { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tn-br td { vertical-align: top; }
.tn-br-c { white-space: nowrap; font-weight: 600; font-size: 13px; }
.tn-br-c svg { width: 15px; height: 15px; vertical-align: -3px; color: var(--brand); }
.warn-t { color: #a15c00; }
.tn-dropbox { outline: 2px dashed var(--brand); outline-offset: -4px; background: #eaf2ff; }
#tn-docs.tn-loading { opacity: .6; pointer-events: none; }
.tn-fcat { font-size: 11px; padding: 1px 4px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: inherit; }

/* v2.14 — İndirilenler izleme */
.tn-ws { font-size: 13px; padding: 8px 12px; border-radius: 10px; background: #eef7f0; color: #1f5f33; }
.tn-ws.off { background: #f4f6fa; color: var(--muted); }
.tn-ws svg { width: 15px; height: 15px; vertical-align: -3px; }
.tn-ws a { font-weight: 600; }
.tn-ip { font-weight: 600; color: var(--brand); white-space: nowrap; }
.tn-wt td { vertical-align: top; }
.tn-wa { max-width: 360px; font-size: 12px; }

/* v2.15 — Firma Yeterlik belge okuma */
.qr-drop { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border: 2px dashed var(--line); border-radius: 14px; background: var(--bg-soft, #f7f9fc); }
.qr-drop > svg { width: 26px; height: 26px; color: var(--brand); flex: none; }
.qr-drop.over { border-color: var(--brand); background: #eaf2ff; }
.qr-drop.busy { opacity: .7; pointer-events: none; }
.qr-f svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--brand); }
.qr-t td { vertical-align: top; }

/* v2.15.1 — Dokümanlar listesi kısaltma */
#tn-docs .tn-dl { position: relative; overflow: hidden; }
#tn-docs .tn-dl.clamp::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(transparent, var(--card, #fff)); pointer-events: none; }
#tn-docs .tn-dl .item { padding-top: 7px; padding-bottom: 7px; }
#tn-docs .tn-dl .item b { font-size: 13px; }
.tn-more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 10px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--brand); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 0 0 14px 14px; }
.tn-more:hover { background: #f4f7fd; }
.tn-more svg { width: 16px; height: 16px; }
select.tn-fcat { width: auto !important; display: inline-block !important; min-height: 0 !important; height: auto !important; padding: 1px 22px 1px 6px !important; font-size: 11px !important; border-radius: 6px; margin: 0; background-position: right 4px center; background-size: 12px; }

.tn-kmiss { font-size: 12px; color: #b42318; background: #fdecea; border-radius: 8px; padding: 5px 8px; margin: 4px 0; }
.tn-kmiss svg { width: 13px; height: 13px; vertical-align: -2px; }
.tn-kchk { font-size: 12px; color: #a15c00; margin: 2px 0 4px; }

/* v2.15.6 — künye: anlaşılır katılım kararı */
.tn-v { font-size: 13px; padding: 7px 10px; border-radius: 9px; margin: 2px 0 6px; line-height: 1.4; }
.tn-v.no { background: #fdecea; color: #a8201a; } .tn-v.chk { background: #fff5e0; color: #8a5300; } .tn-v.ok { background: #e8f6ec; color: #1f6a35; }
.tn-kq { list-style: none; margin: 0; padding: 0; }
.tn-kq li { display: flex; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; line-height: 1.4; }
.tn-kq li:last-child { border-bottom: 0; }
.tn-kqi { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; margin-top: 1px; }
.tn-kq li.ok .tn-kqi { background: #2e9e57; } .tn-kq li.no .tn-kqi { background: #d93025; } .tn-kq li.chk .tn-kqi { background: #e6a000; }
.tn-kq li.no .tn-kqo { color: #a8201a; } .tn-kq li.chk .tn-kqo { color: #8a5300; }
.tn-kqo { color: var(--muted); }
.tn-kn2 { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* v2.16 — ihale kartı durum menüsü */
.tn-stw { position: relative; display: inline-block; }
.tn-stb { border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; }
.tn-stc { font-size: 11px; color: var(--muted); }
.tn-stm { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 210px; background: var(--card, #fff); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(20,30,60,.15); padding: 6px; }
.tn-stm button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; font-size: 13px; cursor: pointer; color: inherit; }
.tn-stm button:hover { background: #f1f5fd; }

/* v2.16 — Genel sekmesi */
.qt-stat b.tn-big { font-size: 22px; }
.tn-part { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; }
.tn-part > span:first-child { font-weight: 600; margin-right: 2px; }
.btn.danger-solid { background: #d93025; border-color: #d93025; color: #fff; }

/* v2.16 — projeden metraj */
.tn-dwg td { vertical-align: top; }
.tn-dwg .dwg-l { width: 100%; min-width: 220px; font-size: 13px; padding: 5px 8px; }
.tn-dwg .dwg-i { max-width: 340px; font-size: 12px; }

/* v2.16 — ihale günü borç yazıları */
.tn-debtc { border: 1px solid var(--line); }
.tn-debtc.warn { border-color: #f1b3ad; background: #fff7f6; }
.tn-debtc.ok { border-color: #bfe3c9; background: #f4fbf6; }
.tn-debt { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); }
.tn-debt:first-of-type { border-top: 0; }
.tn-debt.ok .tn-kqi { background: #2e9e57; } .tn-debt.no .tn-kqi { background: #d93025; } .tn-debt.chk .tn-kqi { background: #e6a000; } .tn-debt.wait .tn-kqi { background: #98a2b3; }
.tn-debt.no .small { color: #a8201a; }
/* v2.17 — Metraj / Yaklaşık maliyet / Teklif sekmeleri */
.tn-mok { font-size: 13px; padding: 9px 12px; border-radius: 10px; background: #fff5e0; color: #8a5300; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tn-mok.ok { background: #e8f6ec; color: #1f6a35; }
.tn-mok svg { width: 15px; height: 15px; }
.tn-mt .qi-num { width: 110px; text-align: right; }
.tn-mt .tn-q0 { border-color: #f1b3ad; background: #fff7f6; }
.tn-qro { color: var(--text); }
.kpis-3 { grid-template-columns: repeat(3, 1fr); }
/* v2.18 — Metraj tablosu (kalem × çizim) */
.tn-mx th.mx-h { max-width: 120px; white-space: normal; font-size: 11.5px; line-height: 1.25; vertical-align: bottom; }
.tn-mx td.mx-c .qi-num, .tn-mx td.mx-t .qi-num { width: 72px; }
.tn-mx td.mx-dwg .qi-num, .mx-key.mx-dwg { color: #1d5fb8; background: #eef4fd; }
.mx-key { padding: 1px 6px; border-radius: 6px; }
.tn-mx td.mx-t { background: #f6f7f9; font-variant-numeric: tabular-nums; }
.tn-mx td.mx-w { min-width: 190px; }
.tn-mx .mx-wl { font-size: 12px; color: #a24b00; margin-bottom: 3px; display: flex; gap: 4px; align-items: flex-start; }
.tn-mx .mx-wl svg { width: 13px; height: 13px; flex: none; margin-top: 2px; }
.tn-mx .mxn { width: 100%; font-size: 12px; }
.tn-mx .mx-cdel { width: 20px; height: 20px; }
.tn-mx .mx-cdel svg { width: 12px; height: 12px; }
.tn-mx { font-size: 13px; }
.tn-mx td, .tn-mx th { padding: 6px 6px; }
.tn-mx td.mx-n { min-width: 210px; max-width: 280px; }
.tn-mx .mx-u { width: 52px; }
.tn-mx th.mx-h { max-width: 84px; min-width: 64px; }
.tn-mx td.mx-c .qi-num, .tn-mx td.mx-t .qi-num { width: 58px; padding: 4px 6px; }
.tn-mx td.mx-w { min-width: 170px; max-width: 220px; }
.tn-mx thead th { position: sticky; top: 0; background: var(--card, #fff); z-index: 1; }
.tn-mx td.mx-el { background: #fbf8ee; }
.mx-st { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; margin-bottom: 3px; background: #eef0f3; color: #555; }
.mx-st.ok { background: #e8f6ec; color: #1f6a35; } .mx-st.no { background: #fde8e6; color: #b3261e; } .mx-st.warn { background: #fff5e0; color: #8a5300; }
.tn-mx .mx-wl { color: #6b6f76; }
.tn-mx tbody tr:not(.qt-g) td.mx-n, .tn-mx thead th:nth-child(2) { position: sticky; left: 0; background: var(--card, #fff); z-index: 2; box-shadow: 1px 0 0 var(--line, #e6e8ec); }
.tn-mx .mxn { padding: 3px 6px; height: 26px; }
/* v2.18.1 — kalem adı sütunu geniş, satırlar kısa */
.tn-mx td.mx-n { min-width: 380px; max-width: 460px; line-height: 1.3; }
.tn-mx td.mx-n .tiny { display: inline; margin-right: 6px; }
.tn-mx td, .tn-mx th { padding-top: 4px; padding-bottom: 4px; }
.tn-mx th.mx-h { min-width: 58px; max-width: 72px; }
.tn-mx .mx-wl { margin-bottom: 0; }
.tn-mx td.mx-w { min-width: 300px; max-width: 360px; }
.tn-mx .mx-sw { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }
.tn-mx .mx-sw:empty { display: none; }
.tn-mx .mx-st { margin-bottom: 0; }
.tn-mx .mxn { height: 24px; margin-top: 2px; border-color: transparent; background: transparent; }
.tn-mx .mxn:hover, .tn-mx .mxn:focus { border-color: var(--line, #dfe2e6); background: #fff; }
.tn-mx .mxn:not(:placeholder-shown) { border-color: transparent; }
.tn-mx input.qi { height: 26px !important; min-height: 0 !important; padding: 2px 6px !important; font-size: 13px; }
.tn-mx .icon-btn { width: 26px !important; height: 26px !important; }
/* v2.18.1 — başlık sabit: tablo kendi kutusunda kayar */
.mx-scroll { max-height: calc(100vh - 150px); overflow: auto; }
.tn-mx thead th { position: sticky; top: 0; z-index: 3; background: var(--card, #fff); box-shadow: 0 1px 0 var(--line, #e6e8ec); }
.tn-mx thead th:nth-child(2) { z-index: 4; }
.tn-mx .mx-row { display: flex; align-items: center; gap: 8px; }
.tn-mx .mx-row .mx-sw { flex: 0 1 auto; }
.tn-mx .mx-row .mxn { flex: 1 1 90px; min-width: 70px; margin-top: 0; }
.tn-mx td.mx-w { min-width: 340px; max-width: 420px; }
/* v2.18.2 — sayı sütunları dar, tablo ekrana sığsın */
.tn-mx td, .tn-mx th { padding-left: 3px; padding-right: 3px; }
.tn-mx th.mx-h, .tn-mx th.r { min-width: 0; max-width: 54px; font-size: 10.5px; line-height: 1.2; white-space: normal; word-break: break-word; }
.tn-mx td.mx-c .qi-num, .tn-mx td.mx-t .qi-num { width: 46px; padding: 2px 3px !important; font-size: 12.5px; }
.tn-mx td.mx-t { font-size: 12.5px; padding-right: 5px; }
.tn-mx td.mx-n { min-width: 300px; max-width: 380px; }
.tn-mx .mx-u { width: 44px; }
.tn-mx td.mx-w { min-width: 230px; max-width: 300px; }
.tn-mx .mx-wl { font-size: 11.5px; }
.tn-mx td:first-child, .tn-mx th:first-child { padding-left: 8px; width: 24px; }
table.t.tn-mx td, table.t.tn-mx th { padding: 4px 3px; }
table.t.tn-mx td:first-child, table.t.tn-mx th:first-child { padding-left: 10px; }
table.t.tn-mx td.mx-n { padding-right: 10px; }
table.t.tn-mx td.mx-t { padding-right: 8px; }
table.t.tn-mx td.mx-w { padding-left: 8px; }
.tn-mx td.mx-n { min-width: 270px; }
.tn-mx td.mx-w { min-width: 200px; }
/* v2.20 — poz kitabı seçimi */
.tc-ask { border: 1px solid #f3d48a; background: #fffaf0; }
.tc-bsel { font-size: 12px; padding: 2px 6px; height: 26px; margin-top: 2px; }
#pu-m, #pq-b, #ym-b { width: auto !important; min-width: 150px; max-width: 280px; flex: none; }
#pu-y { flex: none; }
.tc-bsel { width: auto !important; max-width: 100%; }
/* v2.21 — İhale maliyeti: kalem üstünde stok / B2B / marka-model / not */
.tn-pick { display: none; gap: 6px; flex-wrap: wrap; align-items: center; }
.tn-tbl tr:hover .tn-pick, .tn-tbl .tn-pick:focus-within { display: flex; }
.tn-pick input.tn-s { flex: 1 1 150px; max-width: 200px; }
.tn-pick .tn-b2b { height: 28px; font-size: 12px; white-space: nowrap; }
.tn-pick input.tn-bm { height: 28px; font-size: 12px; padding: 2px 8px; border: 1px dashed #c9d3e0; border-radius: 7px; background: #fffdf5; flex: 1 1 130px; max-width: 180px; }
.tn-pick input.tn-bmnote { max-width: 220px; }
.tn-bmv { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: 11.5px; }
.tn-bmv svg { width: 11px; height: 11px; vertical-align: -1px; }
.tn-bmb { color: #1d5fb8; } .tn-bmn { color: #8a5300; }
/* v2.21 — alt menü grubu (İhale › Parametreler) */
.nav-sublbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .55; padding: 8px 12px 2px 22px; }
.nav-sub a.nav-sub2 { padding-left: 34px; font-size: 13px; }
.tn-pick input.tn-s, .tn-pick input.tn-bm { height: 28px !important; min-height: 0 !important; padding: 2px 8px !important; font-size: 12px !important; }
.tn-pick .tn-b2b { height: 28px !important; padding: 0 8px !important; }
.tn-pick .tn-b2b svg { width: 13px; height: 13px; }
/* v2.22 — geniş tablolar: sabit sol sütunlar, sabit başlık/alt toplam, miktar kaynağı, satıcı etiketleri */
.mx-scroll { max-height: calc(100vh - 150px); overflow: auto; }
.mx-scroll thead th { position: sticky; top: 0; z-index: 3; background: var(--card, #fff); box-shadow: 0 1px 0 var(--line, #e6e8ec); }
.mx-scroll tfoot td { position: sticky; bottom: 0; z-index: 3; background: #f7f9fc; box-shadow: 0 -1px 0 var(--line, #e6e8ec); }
.mx-scroll td.stk, .mx-scroll th.stk { position: sticky; z-index: 2; background: var(--card, #fff); }
.mx-scroll thead th.stk, .mx-scroll tfoot td.stk { z-index: 4; }
.mx-scroll tfoot td.stk { background: #f7f9fc; }
.mx-scroll tr.qt-g td.stk { background: #f1f5f9; }
.mx-scroll .stk-last { box-shadow: 1px 0 0 var(--line, #e6e8ec); }
.mx-scroll thead th.stk-last { box-shadow: 1px 0 0 var(--line, #e6e8ec), 0 1px 0 var(--line, #e6e8ec); }
.qsrc { font-size: 10px; color: #9aa1ab; line-height: 1.1; margin-top: 1px; white-space: nowrap; }
.sup { display: inline-block; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 10px; white-space: nowrap; }
.sup-kare { background: #e8f0fe; color: #1a56c4; } .sup-nokta { background: #fdecea; color: #b3261e; } .sup-merter { background: #e7f6ec; color: #15803d; } .sup-own { background: #eef0f3; color: #555; }
.tn-qp { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-right: 6px; }
.tn-qp .btn.xs { height: 26px; padding: 0 8px; }
.tn-qp input { width: 54px; height: 26px; font-size: 12px; padding: 2px 6px; }
.tn-sch td.tn-kar { white-space: nowrap; }
.tn-sch .qi-num { width: 86px; } .tn-sch .tn-fx, .tn-sch .tn-mg { width: 64px; }
.tn-pm { color: #8a5300; font-weight: 600; }
.tn-sch td, .tn-sch th { padding-left: 6px; padding-right: 6px; }
.mx-scroll tr.qt-g .qg-l { position: sticky; left: 10px; display: inline-block; }
/* v2.23 — kenarda bekle-kaydır okları, kalın yatay kaydırma çubuğu, kâr hizası */
.tn-edge { position: absolute; width: 64px; z-index: 6; pointer-events: none; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #1d5fb8; opacity: .55; transition: opacity .15s; }
.tn-edge.l { background: linear-gradient(90deg, rgba(29,95,184,.14), rgba(29,95,184,0)); }
.tn-edge.r { background: linear-gradient(270deg, rgba(29,95,184,.14), rgba(29,95,184,0)); }
.tn-edge.go { opacity: 1; }
.tn-edge[hidden] { display: none; }
.mx-scroll { scrollbar-width: auto; scrollbar-color: #9aa7b8 #eef1f5; }
.mx-scroll::-webkit-scrollbar { height: 14px; width: 12px; }
.mx-scroll::-webkit-scrollbar-track { background: #eef1f5; }
.mx-scroll::-webkit-scrollbar-thumb { background: #9aa7b8; border-radius: 8px; border: 3px solid #eef1f5; }
.mx-scroll::-webkit-scrollbar-thumb:hover { background: #6f7f94; }
.tn-kp { font-size: 11px; color: #8a909a; font-weight: 500; margin-left: 4px; }
.tn-sch td.tn-kar, #tn-tp { white-space: nowrap; }
/* Stokta ara / B2B / marka / not: yalnız kalem adının üzerine gelince */
.tn-tbl tr:hover .tn-pick { display: none; }
.tn-tbl td.tn-name:hover .tn-pick, .tn-tbl .tn-pick:focus-within { display: flex; }
.tc-pick tbody tr, .tc-pk { cursor: pointer; user-select: none; }
.tc-pick tbody tr:hover td, .tc-pk:hover { background: #eef4fd; }
.tc-pk { padding: 3px 6px; border-radius: 6px; }
.tc-pk.on { background: #e7f6ec; outline: 1px solid #9fd8b2; }
.tc-mm.done > b { color: #1f6a35; }
.tc-k5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .tc-k5 { grid-template-columns: repeat(2, 1fr); } }
.tc-lim { border: 1px solid #f3d48a; background: #fffaf0; }
.tc-bid { border: 1px solid #c7d7f5; background: #f4f8ff; }
.ok-t { color: #1f6a35; }
/* v2.24 — Nakliye kartı */
.tc-ship > summary { cursor: pointer; list-style: none; gap: 10px; }
.tc-ship > summary::-webkit-details-marker { display: none; }
.tc-sopts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tc-sopt { position: relative; border: 1px solid var(--line, #e6e8ec); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.tc-sopt span { font-size: 12px; color: var(--muted); } .tc-sopt b { font-size: 20px; } .tc-sopt small { font-size: 11.5px; color: var(--muted); }
.tc-sopt.best { border-color: #9fd8b2; background: #f3fbf5; }
.tc-sopt em { position: absolute; top: 8px; right: 10px; font-style: normal; font-size: 11px; font-weight: 700; color: #1f6a35; }
.tc-sp { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.tc-sp label { display: flex; flex-direction: column; font-size: 11.5px; color: var(--muted); gap: 3px; }
.tc-sp input:not([type=checkbox]) { height: 32px; }
.tc-st .qi-num { width: 70px; }
#sh-sw { max-height: 420px; }
/* v2.25 — kazanılan ihaleler: malzeme takibi, mukayese */
.kz-bar { position: relative; height: 7px; width: 120px; border-radius: 4px; background: #eef1f5; overflow: hidden; }
.kz-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; } .kz-bar i.o { background: #c7d7f5; } .kz-bar i.s { background: #4caf6e; }
.kz-tbl .kz-q { width: 64px; } .kz-tbl .kz-t { width: 120px; font-size: 12.5px; } .kz-tbl .kz-note { width: 160px; }
.kz-bulk { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mk-tbl tr.mk-up td.tn-name { box-shadow: inset 3px 0 0 #4caf6e; } .mk-tbl tr.mk-dn td.tn-name { box-shadow: inset 3px 0 0 #e0645a; }
.mk-tbl .qi-num { width: 80px; }
/* v2.26 — İhale › Parametreler açılır alt grup */
button.nav-sublbl { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: inherit; font: inherit; font-size: 13.5px; text-transform: none; letter-spacing: 0; opacity: .85; padding: 8px 12px 8px 22px; cursor: pointer; text-align: left; border-radius: 8px; }
button.nav-sublbl:hover { opacity: 1; background: rgba(255,255,255,.06); }
button.nav-sublbl svg { width: 15px; height: 15px; }
button.nav-sublbl .nav-sgc { margin-left: auto; transition: transform .15s; display: inline-flex; }
button.nav-sublbl.open .nav-sgc { transform: rotate(180deg); }
.nav-sub a.nav-sub2[hidden] { display: none; }

/* v2.27 — kalemin altında ayrı ince araç satırı (Poz sütunundan Miktar sütununa kadar) */
.tn-tbl tr.tn-pickrow { display: none; }
.tn-tbl tr[data-it]:has(> td.tn-name:hover) + tr.tn-pickrow, .tn-tbl tr.tn-pickrow:hover, .tn-tbl tr.tn-pickrow:focus-within { display: table-row; }
.tn-tbl tr.tn-pickrow > td { padding-top: 0 !important; padding-bottom: 5px !important; border-top: 0 !important; background: #f7f9fc; }
.tn-tbl tr[data-it]:has(> td.tn-name:hover) > td { border-bottom-color: transparent; }
.tn-pick2 { display: flex; gap: 6px; align-items: center; }
.tn-pick2 > * { height: 28px !important; min-height: 0 !important; font-size: 12px !important; }
.tn-pick2 input { padding: 2px 8px !important; border: 1px dashed #c9d3e0; border-radius: 7px; background: #fbfcfe; }
.tn-pick2 input.tn-s { flex: 0 0 150px; width: 150px; }
.tn-pick2 .btn { white-space: nowrap; flex: 0 0 auto; }
.tn-pick2 input.tn-bm { flex: 0 0 160px; width: 160px; background: #fffdf5; }
.tn-pick2 input.tn-bmnote { flex: 1 1 auto; width: auto; min-width: 90px; }
.tn-sock { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11px; color: #7a5b00; justify-content: flex-end; flex-wrap: wrap; }
.tn-sock { flex-wrap: wrap; max-width: 380px; margin-left: auto; }
table.t td .tn-sock input { width: 62px !important; min-height: 0 !important; height: 24px !important; font-size: 12px !important; text-align: right; border: 1px solid #e8d9a8; border-radius: 6px; padding: 1px 5px !important; background: #fffaf0; }
table.t td .tn-sock select { width: 54px !important; min-height: 0 !important; height: 24px !important; font-size: 11px !important; border: 1px solid #e8d9a8; border-radius: 6px; padding: 0 2px !important; background: #fffaf0; }
.tn-sock span { white-space: nowrap; }
.tn-sock b.late { flex-basis: 100%; text-align: right; }

/* v2.28 — toplu fiyat listesi eşleştirme */
.pl-wrap { max-height: calc(100vh - 300px); overflow: auto; border: 1px solid #e6eaf0; border-radius: 10px; }
.pl-tbl thead th { position: sticky; top: 0; background: #f7f9fc; z-index: 1; }
.pl-tbl td { vertical-align: top; }
.pl-tbl tr.pl-ok td:first-child { box-shadow: inset 4px 0 #16a34a; }
.pl-tbl tr.pl-warn td:first-child { box-shadow: inset 4px 0 #f59e0b; } .pl-tbl tr.pl-warn { background: #fffbeb; }
.pl-tbl tr.pl-gray td:first-child { box-shadow: inset 4px 0 #cbd5e1; } .pl-tbl tr.pl-gray { color: #64748b; }
.pl-tbl select.pls { font-size: 12px; height: 30px; }
.pl-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: 0; } .pl-dot.ok { background: #16a34a; } .pl-dot.warn { background: #f59e0b; } .pl-dot.gray { background: #cbd5e1; }
.pl-srch .tc-pk { cursor: pointer; padding: 3px 6px; border-radius: 6px; } .pl-srch .tc-pk:hover { background: #eef4fd; }
.pl-ow { display: flex; gap: 4px; align-items: center; color: #a24b00; margin-top: 3px; }

.tn-sock .tn-sk { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; cursor: pointer; font-weight: 600; }
table.t td .tn-sock .tn-sk input { width: auto !important; height: auto !important; min-height: 0 !important; }
.tn-sock.off { color: #94a3b8; } .tn-sock.off input.qs, .tn-sock.off select { opacity: .55; }
.tn-sock .tn-skx { width: 20px; height: 20px; } .tn-sock .tn-skx svg { width: 11px; height: 11px; }
.tn-sock .tn-skn { flex-basis: 100%; text-align: right; }
.tn-sock.off .tn-skn { display: none; }
.sup-dia { background: #ede9fe; color: #5b21b6; } .sup .sup-k { font-weight: 400; opacity: .8; }

/* v2.28.2 — tablo kaydırma okları (her zaman görünür) */
.tn-arr { position: absolute; z-index: 7; width: 28px; height: 48px; border: 1px solid #c7d4e6; border-radius: 8px; background: rgba(255,255,255,.92); color: #1d5fb8; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 2px 8px rgba(15,35,70,.15); padding: 0; }
.tn-arr:hover { background: #1d5fb8; color: #fff; border-color: #1d5fb8; }
.tn-arr[hidden] { display: none; }

/* v2.28.3 — soket satırı hücreye sığsın */
table.t td .tn-sock { display: block !important; max-width: none; margin: 4px 0 0; text-align: right; color: #7a5b00; }
.tn-sock .tn-sk1 { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.tn-sock .tn-sk { font-weight: 600; font-size: 11px; display: inline-flex; align-items: center; gap: 2px; cursor: pointer; }
table.t td .tn-sock input.qs { width: 54px !important; }
table.t td .tn-sock select.qs { width: 50px !important; }
.tn-sock .tn-skn { display: block; text-align: right; white-space: nowrap; }
.tn-sock .late { text-align: right; }
table.t td.qt-in:has(> .tn-sock) { min-width: 215px; }

/* v2.28.4 — araç satırı Poz'dan Birim sütununa kadar; kutular daraltıldı */
.tn-pick2 { gap: 4px; }
.tn-pick2 input.tn-s { flex: 1 1 90px; width: 90px; min-width: 70px; }
.tn-pick2 .btn { padding: 0 7px !important; }
.tn-pick2 input.tn-bm { flex: 1 1 110px; width: 110px; min-width: 80px; }
.tn-pick2 input.tn-bmnote { flex: 2 1 90px; min-width: 60px; }
.tn-tbl td.tn-name { cursor: default; }
.sup-galip { background: #fff4e0; color: #b45309; }
.sup-kamtek { background: #e8f0ff; color: #1d4ed8; }

/* v2.28.6 — ihale listesi yeni sütun düzeni */
.tn-list2 td { vertical-align: middle; }
.tn-list2 .tn-ikn { display: flex; align-items: center; gap: 6px; }
.tn-list2 .tn-ikn .tn-kc { padding: 0; width: auto; position: relative; }
.tn-list2 .tn-ttl { margin: 2px 0 1px; line-height: 1.3; }
.tn-list2 td.tn-go { cursor: pointer; } .tn-list2 td.tn-go:hover .tn-ttl b { color: var(--brand, #1d5fb8); text-decoration: underline; }
.tn-up { display: flex; align-items: center; gap: 6px; padding: 7px 9px; border: 1.5px dashed #b9c7da; border-radius: 9px; font-size: 12px; color: #3b5b85; cursor: pointer; background: #f8fbff; white-space: nowrap; }
.tn-up:hover, tr.tn-drop .tn-up { border-color: #1d5fb8; background: #eaf2fd; }
.tn-up svg { width: 15px; height: 15px; flex: none; }
table.t.tn-list2 td { vertical-align: middle !important; }
table.t.tn-list2 td:first-child { min-width: 92px; white-space: nowrap; }
table.t.tn-list2 td:first-child .tn-dt b { white-space: nowrap; }
table.t.tn-list2 td.r.nowrap { white-space: normal; }
table.t.tn-list2 td.r.nowrap .btn { display: flex; width: 100%; justify-content: center; margin: 0 0 5px; white-space: nowrap; }
.card.flush:has(> .tn-list2) { overflow: visible; }

/* v2.28.7 — ortalı satırlar, kırmızı kalan gün, simge yükleme, başlık filtreleri */
table.t.tn-list2 th.c, table.t.tn-list2 td.c { text-align: center; }
.tn-left { color: #dc2626; font-weight: 700; font-size: 13.5px; margin-top: 2px; }
.tn-left.gone { color: #94a3b8; font-weight: 500; font-size: 12px; }
.tn-up { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 10px; position: relative; min-width: 46px; }
.tn-up span { font-size: 10.5px; font-weight: 700; letter-spacing: .4px; }
.tn-up svg { width: 18px; height: 18px; }
.tn-up .tn-upn { position: absolute; top: -7px; right: -7px; background: #1d5fb8; color: #fff; font-size: 10px; border-radius: 9px; padding: 1px 5px; line-height: 14px; }
.tn-fh { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 6px; font: inherit; color: inherit; }
.tn-fh svg { opacity: .35; } .tn-fh:hover { background: #eef3fa; } .tn-fh:hover svg { opacity: .8; }
.tn-fh.on { background: #1d5fb8; color: #fff; } .tn-fh.on svg { opacity: 1; }
.tn-fbar { margin-bottom: 6px; }
.tn-fpop { position: absolute; z-index: 60; background: #fff; border: 1px solid #d7e0ec; border-radius: 10px; box-shadow: 0 10px 30px rgba(15,35,70,.18); padding: 10px 12px; min-width: 210px; max-width: 300px; font-size: 13px; }
.tn-fpop label { display: flex; align-items: center; gap: 6px; padding: 3px 0; cursor: pointer; }
.tn-fpop .tn-fpt { font-weight: 700; font-size: 11.5px; color: #64748b; text-transform: uppercase; letter-spacing: .3px; margin: 4px 0 3px; }
.tn-fpop .tn-fpl { max-height: 260px; overflow: auto; }
.tn-fpop input.tn-fq { width: 100%; height: 32px; padding: 4px 8px; border: 1px solid #c9d3e0; border-radius: 7px; }
.tn-fpop .tn-fpf { border-top: 1px solid #eef1f5; margin-top: 8px; padding-top: 6px; font-size: 12px; }
table.t.tn-list2 td.tn-x .btn { display: inline-flex; width: auto; }

/* v2.28.8 — ilan adı/numarası seçilip kopyalanabilsin */
.tn-list2 .tn-sel { user-select: text; cursor: text; }
.tn-cp { all: unset; cursor: pointer; display: inline-flex; vertical-align: middle; margin-left: 5px; padding: 2px; border-radius: 4px; color: #64748b; opacity: 0; transition: opacity .12s; }
.tn-list2 tr:hover .tn-cp { opacity: .7; } .tn-cp:hover { opacity: 1 !important; background: #e8eef7; color: #1d5fb8; }

/* v2.28.9 — hazırlık pili */
.tn-bat { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; position: relative; cursor: default; }
.tn-bat-b { position: relative; width: 74px; height: 18px; border: 2px solid #64748b; border-radius: 5px; padding: 2px; box-sizing: border-box; background: #fff; overflow: hidden; }
.tn-bat-f { display: block; height: 100%; border-radius: 2px; transition: width .3s; }
.tn-bat-b i { position: absolute; top: 2px; bottom: 2px; width: 1.5px; background: #fff; opacity: .9; }
.tn-bat-cap { width: 4px; height: 8px; background: #64748b; border-radius: 0 2px 2px 0; margin-left: -6px; }
.tn-bat b { font-size: 12.5px; }
.tn-bat.low .tn-bat-f { background: #ef4444; } .tn-bat.low b { color: #dc2626; }
.tn-bat.mid .tn-bat-f { background: #f59e0b; } .tn-bat.mid b { color: #b45309; }
.tn-bat.ok .tn-bat-f { background: #16a34a; } .tn-bat.ok b { color: #15803d; }
.tn-bat-pop { display: none; position: absolute; right: 0; top: 24px; z-index: 30; background: #fff; border: 1px solid #d7e0ec; border-radius: 10px; box-shadow: 0 10px 30px rgba(15,35,70,.18); padding: 8px 12px; min-width: 210px; font-size: 12.5px; white-space: nowrap; }
.tn-bat:hover .tn-bat-pop, .tn-bat:focus .tn-bat-pop { display: block; }
.tn-bat-st { display: flex; gap: 6px; padding: 2px 0; } .tn-bat-st > span:first-child { width: 14px; text-align: center; }
.tn-bat-st.y > span:first-child { color: #16a34a; } .tn-bat-st.h > span:first-child { color: #d97706; } .tn-bat-st.n { color: #64748b; }
.tn-bat b { color: #15803d; font-size: 13px; }

/* v2.28.10 — hazırlık: yumuşak kutu, yüzde içinde */
.tn-prog { position: relative; width: 120px; height: 26px; border-radius: 8px; background: #ecfdf3; box-shadow: inset 0 0 0 1px #bbf7d0; overflow: hidden; }
.tn-prog-f { height: 100%; background: linear-gradient(90deg, #34d399, #16a34a); border-radius: 8px; min-width: 6px; }
.tn-prog span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; color: #14532d; text-shadow: 0 0 6px #fff, 0 0 2px #fff; }

/* v2.28.11 — hazırlık: ince çizgi (seçenek 1) */
.tn-bat { display: block; width: 150px; margin: 0; }
.tn-pl-h { display: flex; justify-content: space-between; font-size: 12px; color: #475569; margin-bottom: 5px; }
.tn-pl-h b { color: #15803d; font-size: 12.5px; }
.tn-pl-t { height: 6px; border-radius: 3px; background: #e7ecf2; overflow: hidden; }
.tn-pl-t > div { height: 100%; border-radius: 3px; background: #16a34a; }
/* v2.29 — ihale üst kutusu: solda İKN (çerçevesiz), ortada ad + idare, sağda katılım kararı */
.card.tn-hd { display: flex; gap: 22px; align-items: center; padding: 16px 20px; }
.tn-hd-ikn { text-align: center; min-width: 118px; flex: none; }
.tn-hd-no { font-weight: 800; color: #1d5fb8; font-size: 16px; white-space: nowrap; }
.tn-hd-st { margin-top: 5px; }
.tn-hd-main { flex: 1; min-width: 0; }
.tn-hd-t { font-size: 16px; line-height: 1.3; color: #0f172a; }
.tn-hd-t .tn-hd-ed { all: unset; cursor: pointer; margin-left: 6px; padding: 3px; border-radius: 6px; color: #64748b; opacity: 0; vertical-align: -2px; transition: opacity .12s; }
.tn-hd-t .tn-hd-ed svg { width: 15px; height: 15px; }
.tn-hd:hover .tn-hd-ed { opacity: .7; } .tn-hd-t .tn-hd-ed:hover { opacity: 1; background: #eef3fa; color: #1d5fb8; }
.tn-hd-main > .small { margin-top: 4px; }
.tn-hd-src:empty { display: none; } .tn-hd-src { margin-top: 3px; }
.tn-hd-dec { flex: 0 0 410px; max-width: 46%; }
.tn-hd-dec:empty { display: none; }
.tn-hd-dec .tn-dec { margin: 0; padding: 12px 14px; box-shadow: none; display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; position: relative; }
.tn-hd-dec .tn-dec .tn-dec-ic { width: 32px; height: 32px; flex: none; }
.tn-hd-dec .tn-dec .grow { min-width: 0; }
.tn-hd-dec .tn-dec-t { font-size: 15px; padding-right: 118px; }
.tn-hd-dec .tn-dec-ch { position: absolute; top: 10px; right: 10px; }
.tn-hd-dec .tn-part { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 1100px) { .card.tn-hd { flex-wrap: wrap; } .tn-hd-dec { flex: 1 1 100%; max-width: none; } }

/* v2.29.1 — üstteki karar kutusu sade: başlık tek satır, özet, okunan dosyalar */
.tn-hd-dec .tn-dec-t { padding-right: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-hd-dec .tn-dec { align-items: center; }
/* v2.29.1 — karar kutusu küçük */
.tn-hd-dec { flex: 0 0 280px; max-width: 32%; }
.tn-hd-dec .tn-dec { padding: 7px 10px; gap: 8px; border-radius: 10px; }
.tn-hd-dec .tn-dec .tn-dec-ic { width: 22px; height: 22px; }
.tn-hd-dec .tn-dec .tn-dec-ic svg { width: 13px; height: 13px; }
.tn-hd-dec .tn-dec-t { font-size: 13px; line-height: 1.25; }
.tn-hd-dec .tn-dec .grow > .small { font-size: 11px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-hd-dec .tn-dec details { margin-top: 1px !important; font-size: 10.5px; }
.tn-hd-dec .tn-dec details[open] .small, .tn-hd-dec .tn-dec details[open] { white-space: normal; }
@media (max-width: 1100px) { .tn-hd-dec { flex: 1 1 100%; max-width: none; } }
.tn-hd-dec .tn-dec-ic .ic { width: 13px; height: 13px; }
/* v2.30 — istenen belgeler + koşullar */
.tn-rq-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; padding: 4px 16px 12px; }
@media (max-width: 1000px) { .tn-rq-cols { grid-template-columns: 1fr; } }
.tn-rq-h { font-weight: 700; font-size: 13px; color: #1e3a5f; margin: 10px 0 4px; padding-bottom: 4px; border-bottom: 1px solid #eef1f5; }
.tn-rq { display: flex; align-items: center; gap: 8px; padding: 6px 2px; border-bottom: 1px dashed #eef1f5; }
.tn-rq-i { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; background: #eef1f5; color: #94a3b8; flex: none; font-weight: 700; }
.tn-rq.ok .tn-rq-i { background: #dcfce7; color: #15803d; }
.tn-rq-t { font-size: 13px; } .tn-rq.ok .tn-rq-t { color: #14532d; }
.tn-rq-f { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; }
.tn-rq-fl { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; } .tn-rq-fl svg { width: 12px; height: 12px; }
.tn-rq-fl .icon-btn { width: 20px; height: 20px; }
.tn-rq-x { opacity: 0; } .tn-rq:hover .tn-rq-x { opacity: .6; } .tn-rq-x:hover { opacity: 1 !important; }
.tn-cond { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 1000px) { .tn-cond { grid-template-columns: 1fr; } }
.tn-hd-dec .tn-dec.click { cursor: pointer; } .tn-hd-dec .tn-dec.click:hover { filter: brightness(.97); }
/* v2.31 (B39) — zeyilname uyarısı */
.tn-zy { margin-top: 5px; font-size: 10.5px; line-height: 1.25; color: #b42318; font-weight: 700; white-space: normal; max-width: 110px; margin-inline: auto; display: flex; gap: 3px; align-items: flex-start; justify-content: center; }
.tn-zy svg { width: 12px; height: 12px; flex: none; margin-top: 1px; }
.tn-zy.ok { color: #2f7d4f; font-weight: 600; }
.tn-zybar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 18px; background: #fdecea; color: #8f1d14; border-bottom: 1px solid #f3c5c0; }
.tn-zybar svg { width: 16px; height: 16px; flex: none; }
.tn-zyrow { display: flex; align-items: center; gap: 6px; padding: 4px 18px; }
.tn-zyrow:empty { display: none; }
.tn-zyrow svg { width: 13px; height: 13px; }

/* v2.33 (B53) — Hazırlık satırında hızlı taşıma kutusu */
.tn-qsw { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.tn-qsw .tn-stw { display: inline-flex; align-items: center; gap: 4px; }
.tn-qsc { border: 0; background: #1d5fb8; color: #fff; width: 18px; height: 18px; border-radius: 4px; font-size: 10px; line-height: 18px; padding: 0; cursor: pointer; }
.tn-qsc:hover { background: #164c95; }
.tn-qsw .tn-stm { left: auto; right: 0; min-width: 260px; }

/* B62 — İhale İlanları: İhale / Doğrudan Temin + tür düğmeleri */
.tn-seg{display:inline-flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--card)}
.tn-segb{border:0;background:transparent;padding:9px 22px;font-size:15px;font-weight:600;cursor:pointer;color:inherit}
.tn-segb+.tn-segb{border-left:1px solid var(--line)}
.tn-segb.on{background:var(--brand-2);color:#fff}
.tn-segn{display:inline-block;min-width:22px;padding:0 6px;margin-left:4px;border-radius:9px;font-size:12px;background:rgba(127,127,127,.16)}
.tn-segb.on .tn-segn,.tn-kind.on .tn-segn{background:rgba(255,255,255,.25)}
.tn-kinds{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}
.tn-kind{border:1px solid var(--line);background:var(--card);border-radius:16px;padding:5px 14px;font-size:13px;cursor:pointer;color:inherit}
.tn-kind.on{background:var(--brand-2);border-color:var(--brand-2);color:#fff}

/* B59 — Hazırlık: durum rozeti + ▾ hücrenin üstüne dayalı */
td.tn-x:has(.tn-qsw) { position: relative; padding-top: 40px; }
td.tn-x .tn-qsw { position: absolute; top: 10px; right: 12px; margin: 0; }
/* B63 — bakılan ilan */
.tn-seen { display: inline-flex; align-items: center; margin-left: 6px; color: #1d5fb8; vertical-align: middle; }

/* B64 — ilan uygunluğu */
.tn-rel { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; vertical-align: middle; white-space: nowrap; }
.tn-rel.r-evet { background: #dcfce7; color: #166534; } .tn-rel.r-belki { background: #fef3c7; color: #92400e; } .tn-rel.r-hayir { background: #fee2e2; color: #991b1b; }
.tn-relw { font-size: 12px; margin: 2px 0 1px; } .tn-relw.r-evet { color: #166534; } .tn-relw.r-belki { color: #92400e; } .tn-relw.r-hayir { color: #991b1b; }
.tn-decb { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.tn-segrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tn-hidb { border: 1px dashed var(--line); background: transparent; border-radius: 9px; padding: 7px 12px; font-size: 13px; cursor: pointer; color: var(--muted); }
.tn-hidb:hover { background: var(--card); }

/* B65 — Hazırlık: ZIP altında İhale Pro bağlantısı */
.tn-ipz { display: block; margin-top: 5px; font-size: 11px; font-weight: 600; white-space: nowrap; }

/* B67 — klasörden çek penceresi */
.tn-pfl { display: flex; flex-direction: column; gap: 6px; max-height: 55vh; overflow: auto; }
.tn-pf { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; }
.tn-pf.hit { border-color: #16a34a; background: #f0fdf4; }
.tn-pfn { flex: 1; min-width: 0; word-break: break-all; }
.tn-pok { color: #166534; }

/* B71 — mal alımında 4 kart */
.tc-k4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .tc-k4 { grid-template-columns: repeat(2, 1fr); } }

/* B78 — Teklifi belirle tek satır */
.tc-bar { flex-wrap: nowrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; white-space: nowrap; overflow-x: auto; }
.tc-bar .tc-fx { margin-left: 4px; }
@media (max-width: 900px) { .tc-bar { flex-wrap: wrap; } }
/* B75 — Nakliye tavsiye düğmesi */
.tc-shipb { margin-right: 4px; }

/* B81 — katılım kutusu taşmasın */
.tn-hd .tn-elig, .tn-hd [class*="elig"] { min-width: 0; overflow-wrap: anywhere; }
/* B82 — teklif birim fiyatında para birimi */
.tn-spw { display: inline-flex; align-items: center; gap: 3px; }
.tn-scur { width: 46px; padding: 2px 2px; font-size: 11px; }
.tn-sfx { font-size: 10.5px; color: var(--muted); text-align: right; white-space: nowrap; }

/* B83 — Maliyet özeti */
.tc-oz .tc-oz-top td { background: var(--brand-soft); }
.tc-oz td.r { white-space: nowrap; vertical-align: top; }

/* B84–B86 — kalem tablosu */
.tn-pbh { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--brand-2); cursor: pointer; padding: 0; white-space: nowrap; }
.tn-pbh:hover { text-decoration: underline; }
.tn-cu { color: var(--muted); white-space: nowrap; }
.tn-tl { color: var(--muted); font-size: 13px; margin-left: 4px; }
th.tn-thsp { padding-right: 26px; }

/* B91 — PB seçicisi dar */
.tn-tbl select.qi[data-f="cost_currency"] { width: 72px; min-width: 72px; padding-left: 6px !important; padding-right: 18px !important; background-position: right 3px center; }
/* B92 — TL satırında kur kutusu görünmez */
.tn-fx.tn-hid { visibility: hidden; }

/* B95 — giderler */
.tc-amtw { display: inline-flex; align-items: center; gap: 4px; }
.tc-amtw .tc-in { width: 118px; }
.tc-amtw .tc-in.tc-auto { color: var(--muted); }
.tc-tl { color: var(--muted); font-size: 13px; }
.tc-oto.tc-elle { background: #fef3c7; color: #92400e; }
.tc-back { border: 0; background: transparent; color: var(--brand-2); font-size: 11px; cursor: pointer; padding: 0 2px; }
.tc-del { margin: 2px 0 6px 40px; font-size: 12px; color: var(--muted); }
.tc-del summary { cursor: pointer; padding: 4px 0; }
.tc-del .tc-line { padding: 4px 8px; }

/* B96 — gider bölümleri aç / kapat */
.tc-sec .tc-sec-h[data-sect] { cursor: pointer; user-select: none; }
.tc-sec .tc-sec-h[data-sect]:hover { background: var(--line-2); }
.tc-car { width: 14px; display: inline-block; color: var(--muted); font-size: 12px; }
.tc-sec.closed > :not(.tc-sec-h) { display: none; }

/* B99/B100 — açılır kapanır kutular */
.tc-cc .tc-cch { cursor: pointer; user-select: none; gap: 6px; }
.tc-cc .tc-cch:hover { background: var(--line-2); }
.tc-cc.closed > :not(.card-head) { display: none; }
.tc-cc.closed .card-head { border-bottom: 0; }
/* B103 — teknik şartname simgesi */
.tn-specb { border: 0; background: transparent; padding: 0 4px 0 0; color: var(--brand-2); cursor: pointer; vertical-align: -2px; }
.tn-specb .ic { width: 14px; height: 14px; }
.tn-specb:hover { color: var(--brand); }
.tn-spec-t { max-height: 55vh; overflow: auto; white-space: pre-wrap; line-height: 1.55; font-size: 14px; background: var(--bg); border-radius: 10px; padding: 12px 14px; }
.tn-spec-t mark { background: #fde68a; padding: 0 1px; border-radius: 3px; }
.tn-spec-if { width: 100%; height: 65vh; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* B106 — Maliyet + Hazırlık çubukları */
.tn-bars { display: flex; flex-direction: column; gap: 2px; }
.tn-bars .tn-bat { margin-bottom: 2px; }
.tn-bat.cost .tn-pl-t > div { background: #2563eb; }

/* B104 — Kırtasiyem */
.sup-kirtasiyem { background: #fff1e0; color: #c2410c; }

/* B110 — Bilgisayarım */
.sup-bilgisayarim { background: #fde8ea; color: #b91c1c; }

/* B111 — Bimel */
.sup-bimel { background: #e0f2fe; color: #0369a1; }

/* B107 — şartname fare üstü penceresi */
.tn-spop { position: fixed; z-index: 1200; width: 440px; max-width: calc(100vw - 16px); max-height: 60vh; overflow: auto; background: #fff; border: 1px solid #d7e0ec; border-radius: 10px; box-shadow: 0 12px 34px rgba(15,35,70,.22); padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.tn-spop-h { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tn-spop-t { background: #eef2ff; color: #4338ca; border-radius: 6px; padding: 0 6px; font-size: 11px; }
.tn-spop-b { white-space: pre-wrap; color: var(--text, #0f172a); }
.tn-spop-b mark { background: #fef08a; padding: 0 1px; border-radius: 2px; }
.tn-spop-f { margin-top: 6px; font-size: 11px; color: var(--muted); }

/* B112 — tüm kalemler TL: kur ve TL alış sütunları gizli */
.tn-alltl .tn-cfx { display: none; }

/* B114 */
.sup-bulut { background: #ffedd5; color: #c2410c; }
.sup-denge { background: #ecfccb; color: #4d7c0f; }
.sup-bayinet { background: #fee2e2; color: #991b1b; }

/* B115 */
.sup-okisan { background: #e0e7ff; color: #3730a3; }
.sup-han { background: #fce7f3; color: #9d174d; }

/* B116 */
.sup-pcbayi { background: #e0f2fe; color: #075985; }
.sup-perkotek { background: #f3e8ff; color: #6b21a8; }
.sup-biges { background: #dcfce7; color: #166534; }
.sup-genbayi { background: #fef9c3; color: #854d0e; }

/* B117 */
.sup-ergen { background: #ffedd5; color: #9a3412; }
.sup-kemmarket { background: #ccfbf1; color: #115e59; }
.sup-neutron { background: #e0e7ff; color: #3730a3; }
.sup-sancak { background: #fee2e2; color: #991b1b; }
.sup-solidpazar { background: #fae8ff; color: #86198f; }
.sup-tesan { background: #dbeafe; color: #1e3a8a; }
.sup-liderses { background: #fef3c7; color: #78350f; }

/* v2.53 B121 — Z.A Maliyet / Teklif / şablon */
.za-t td { vertical-align: middle; padding-top: 5px; padding-bottom: 5px; }
.za-t tr.za-sys td { background: var(--brand-soft); color: var(--brand); font-weight: 700; cursor: pointer; user-select: none; }
.za-t tr.za-sys td span { font-weight: 500; color: var(--muted); font-size: 12.5px; }
.za-t tr.za-sys.dim td { opacity: .65; }
.za-t tr.on td { background: #fffbeb; }
.za-t .za-br { white-space: nowrap; font-size: 13px; }
.za-t .za-q { width: 64px; text-align: right; padding: 4px 6px; }
.za-t .za-p { width: 78px; text-align: right; padding: 4px 6px; }
.za-t .za-c { width: auto; padding: 3px 2px; margin-left: 2px; }
.za-t .za-x { width: 30px; } .za-t .za-x .icon-btn { opacity: .25; } .za-t tr:hover .za-x .icon-btn { opacity: 1; }
.za-b2b { font-size: 12.5px; white-space: nowrap; } .za-b2b b { color: #15803d; }
.za-al { font-size: 11px; padding: 1px 7px; margin-left: 4px; border: 1px solid #86efac; background: #f0fdf4; color: #166534; border-radius: 6px; cursor: pointer; }
.za-al:hover { background: #dcfce7; }
/* B124 — İlave kalem maliyeti */
.tn-ex { border: 1.5px dashed #f59e0b; }
.tn-ex .tn-exn { width: 100%; min-width: 260px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.tn-ex .tn-tbl tr.tn-pickrow { display: table-row; } /* B124 — ilave satırlarda çekme düğmeleri hep görünür */
/* B125 — Kalem maliyeti: ◀ ▶ okları / yatay kaydırma yok; tablo sayfa genişliğine sığar (çok dar ekranda yalnız tarayıcının kendi kaydırması).
   Yer açmak için "Alış B.Fiyat (₺)" ara sütunu gizli (alış tutarı ₺ olarak görünür). */
.tn-nox { overflow-x: auto; }
.tn-nox > table.tn-sch { width: 100%; font-size: 13px; }
.tn-nox .tn-sch td, .tn-nox .tn-sch th { padding-left: 4px !important; padding-right: 4px !important; }
.tn-nox .tn-sch th { white-space: normal; }
.tn-nox .tn-sch td.tn-name { white-space: normal; min-width: 130px; }
.tn-nox .tn-sch .qsrc { white-space: normal; line-height: 1.1; }
.tn-nox .tn-sch .qi-num { width: 72px; } .tn-nox .tn-sch .tn-fx, .tn-nox .tn-sch .tn-mg { width: 50px; }
.tn-nox .tn-sch select.qi { width: 62px !important; min-width: 0 !important; } .tn-nox .tn-sch .tn-unit { width: 52px; }
.tn-nox .tn-sch td.qt-in, .tn-nox .tn-sch th.qt-in { min-width: 0 !important; }
.tn-nox .tn-sch td.tn-kar { white-space: nowrap; }
.tn-nox .tn-sch .tn-cu, .tn-nox .tn-sch .tn-cuh { display: none; }
.tn-nox .tn-pick2 { flex-wrap: wrap; } .tn-nox .tn-pick2 input.tn-bm { flex: 0 1 140px; width: 140px; }
.tn-ex .tn-tbl tr.tn-pickrow { display: table-row; }
.tn-nox .tn-sch td, .tn-nox .tn-sch th { padding-left: 3px !important; padding-right: 3px !important; }
.tn-nox .tn-sch td.tn-name { min-width: 110px; } .tn-nox .tn-sch .qi-num { width: 68px; } .tn-nox .tn-sch .tn-fx, .tn-nox .tn-sch .tn-mg { width: 46px; } .tn-nox .tn-sch select.qi { width: 58px !important; }
.tn-nox .tn-sch select.qi { width: 60px !important; padding: 3px 14px 3px 4px !important; background-position: right 2px center !important; font-size: 12.5px; }
.tn-nox .tn-sch .tn-fx { width: 54px; } .tn-nox .tn-sch [data-f="unit_price"] { width: 78px; } .tn-nox .tn-sch .tn-unit { width: 54px; }
.tn-nox .tn-sch select.qi { width: 66px !important; }
/* B126–B128 — Z.A Maliyet satırda düzenleme, yeni sistem */
.za-t input.za-e { width: 100%; min-width: 0; border: 1px solid transparent; background: transparent; padding: 3px 5px; border-radius: 5px; font: inherit; }
.za-t input.za-e:hover { border-color: var(--line); background: #fff; }
.za-t input.za-e:focus { border-color: #93c5fd; background: #fff; box-shadow: 0 0 0 3px #dbeafe; outline: 0; }
.za-t td.za-br { width: 11%; } .za-t td.za-mdc { width: 12%; } .za-t td.za-nmc { min-width: 240px; } .za-t input.za-un { width: 52px; }
.za-t tr.za-blank input.za-e::placeholder { color: #94a3b8; font-style: italic; }
.za-t tr.za-addsys td { background: #fafafa; }
.za-t #za-ns { width: 460px; max-width: 100%; border: 1px dashed #94a3b8; border-radius: 7px; padding: 6px 10px; background: #fff; }
.za-t a.za-svt { font-weight: 500; font-size: 12.5px; margin-left: 8px; text-decoration: underline; }
.za-opt { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 13.5px; cursor: pointer; }
.za-opt:has(input:checked) { border-color: #1565c0; background: #eff6ff; }
/* B129 — Hazır şablon: üst çubuk ve tablo başlığı kaydırırken sabit; seçili satır */
.za-tplc { overflow: visible; }
.za-tplc .za-tplbar { position: sticky; top: var(--za-top, 0px); z-index: 6; background: var(--card, #fff); border-radius: var(--r) var(--r) 0 0; box-shadow: 0 1px 0 var(--line); }
.za-tplw { overflow: visible; }
.za-tplw thead th { position: sticky; top: calc(var(--za-top, 0px) + var(--za-bar, 0px)); z-index: 5; background: #f8fafc; box-shadow: 0 1px 0 var(--line); }
.za-tplw tr.za-sel td { background: #fef2f2; }
.za-tplw input.tsel, .za-tplw #tall { width: 16px; height: 16px; cursor: pointer; }
/* 01.12 — Z.A Maliyet / Hazır şablon: sıkı satırlar */
.za-t td { padding-top: 2px !important; padding-bottom: 2px !important; line-height: 1.25; }
.za-t tr.za-sys td { padding-top: 6px !important; padding-bottom: 6px !important; }
.za-t input, .za-t select { height: 28px !important; min-height: 0 !important; padding-top: 2px !important; padding-bottom: 2px !important; font-size: 13px; }
.za-t input[type=checkbox] { height: 16px !important; }
.za-t .za-b2b, .za-t .tiny { line-height: 1.2; }
.za-warn { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; } .za-warn ul { margin: 6px 0 0; }
.za-t tr.za-sys label.za-sysb { float: right; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; margin-right: 2px; }
.za-t tr.za-sys label.za-sysb input { width: 16px; height: 16px !important; }
/* B130 — Z.A Maliyet satış sütunları */
.za-t th.za-sph { color: #166534; }
.za-t td.za-spc input.za-sp { width: 78px; text-align: right; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 6px; padding: 2px 6px; }
.za-t td.za-spc input.za-sp::placeholder { color: #94a3b8; }
.za-t td.za-stt { color: #166534; font-weight: 600; }
/* 01.12 — Z.A Maliyet üst kutular: A sistemler (geniş) · B maliyet · C satış · D kâr */
.za-kpis { display: grid; grid-template-columns: minmax(300px, 2fr) 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
@media (max-width: 1000px) { .za-kpis { grid-template-columns: 1fr 1fr; } .za-kpis .za-ka { grid-column: 1 / -1; } }
.za-ka { padding: 10px 14px; }
.za-kat { width: 100%; border-collapse: collapse; font-size: 13px; }
.za-kat th { font-size: 11.5px; color: var(--muted); font-weight: 600; text-align: left; padding: 2px 4px; }
.za-kat td { padding: 2px 4px; border-top: 1px solid var(--line-2, #eef1f5); white-space: nowrap; }
.za-kat td:first-child { white-space: normal; font-weight: 600; color: var(--brand); }
.za-kat td:last-child { color: #166534; }
.za-kaf { margin-top: 6px; }
/* 01.12 — A kutusu küçük yazı; kutu diğerlerinden uzun olmasın (fazlası kutu içinde kayar) */
.za-ka { padding: 8px 12px; max-height: 132px; overflow-y: auto; }
.za-kat { font-size: 11px; line-height: 1.25; }
.za-kat th { font-size: 10px; padding: 0 3px 2px; position: sticky; top: -8px; background: var(--card, #fff); }
.za-kat td { padding: 1px 3px; }
.za-kaf { margin-top: 4px; font-size: 10.5px; }
/* 01.12 — A kutusu içeriği kadar dar; başlıklar sağa hizalı */
.za-kpis { grid-template-columns: max-content 1fr 1fr 1fr; }
.za-ka { min-width: 230px; }
.za-kat { width: auto; } .za-kat td + td, .za-kat th + th { padding-left: 14px; }
.za-kat th.right { text-align: right; }
@media (max-width: 1000px) { .za-kpis { grid-template-columns: 1fr 1fr; } }
/* 01.12 — B/C/D kutuları ortalı: üstte işçilik hariç, altta işçilik dahil */
.za-kc { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.za-kc > span i { font-style: normal; font-size: 11px; color: var(--muted); }
.za-kc .za-kc2 { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--line); width: 80%; display: flex; flex-direction: column; align-items: center; }
.za-kc .za-kc2 > span { font-size: 11px; color: var(--muted); }
.za-kc .za-kc2 em { font-style: normal; font-weight: 700; font-size: 16px; }
.za-kc .za-kc2 small { font-size: 11.5px; color: var(--muted); }
/* 01.12 — A kutusu B ile aynı boyda/genişlikte; tablo kutu içinde iki yönde kayar; B/C/D başlıkları büyük */
.za-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.za-ka { max-height: none; overflow: hidden; display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; }
.za-ka .za-kaw { flex: 1 1 auto; min-height: 0; overflow: auto; max-height: 190px; }
.za-kat { width: max-content; min-width: 100%; }
.za-kat th { top: 0; } .za-kat th i { font-style: normal; font-weight: 500; font-size: 9.5px; }
.za-kat td.za-kk { color: #0b3561; font-weight: 600; } .za-kat td.za-kk i { font-style: normal; font-weight: 500; color: var(--muted); font-size: 10px; }
.za-kc .za-kct { font-size: 15px; font-weight: 800; letter-spacing: .02em; color: var(--text, #111); }
.za-kc .za-kct i { font-style: normal; font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: 0; }
/* 01.12 — Z.A Maliyet sütunları: Marka · Model · Açıklama (geniş); diğerleri dar */
.za-tplw .za-t { table-layout: auto; width: 100%; }
.za-tplw .za-t td.za-br { width: 90px; max-width: 110px; } .za-tplw .za-t td.za-mdc { width: 110px; max-width: 130px; }
.za-tplw .za-t td.za-nmc { width: auto; min-width: 320px; }
.za-tplw .za-t .za-q { width: 50px; } .za-tplw .za-t input.za-un { width: 40px; }
.za-tplw .za-t .za-p { width: 62px; } .za-tplw .za-t .za-c { width: 44px; padding-left: 2px; padding-right: 0; }
.za-tplw .za-t td.za-spc input.za-sp { width: 62px; }
.za-tplw .za-t td.za-b2bc { max-width: 150px; white-space: normal; font-size: 12px; }
.za-tplw .za-t th { white-space: nowrap; padding-left: 5px; padding-right: 5px; } .za-tplw .za-t td { padding-left: 5px; padding-right: 5px; }
.za-b2b a.za-b2bl { color: inherit; text-decoration: none; } .za-b2b a.za-b2bl:hover { text-decoration: underline; } .za-b2b a.za-b2bl b { color: #15803d; }
/* 01.12 — adet, birim, para birimi daha dar */
.za-tplw .za-t .za-q { width: 40px !important; padding-left: 3px !important; padding-right: 3px !important; }
.za-tplw .za-t input.za-un { width: 30px !important; padding-left: 2px !important; padding-right: 2px !important; }
.za-tplw .za-t .za-c { width: 34px !important; padding: 2px 0 2px 2px !important; background-position: right 1px center !important; font-size: 12px; }
/* 01.12 — kalan bütün genişlik açıklamaya */
.za-tplw .za-t td.za-nmc { width: 100%; }
.za-tplw .za-t td:not(.za-nmc), .za-tplw .za-t th { white-space: nowrap; }
.za-tplw .za-t td.za-b2bc { white-space: nowrap; max-width: none; }
.za-tplw .za-t td.za-br, .za-tplw .za-t td.za-mdc { width: 1%; } .za-tplw .za-t td.za-br input { width: 80px; } .za-tplw .za-t td.za-mdc input { width: 100px; }
/* 01.12 — sistem başlığında kâr % kutusu */
.za-t tr.za-sys label.za-sm { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; font-size: 12px; font-weight: 600; color: #166534; }
.za-t tr.za-sys input.za-smi { width: 52px !important; height: 24px !important; text-align: right; padding: 1px 5px !important; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 6px; font-size: 12.5px; }
/* v2.59.3: A kutusu alt yazı kalktı, ince kaydırma çubuğu */
.za-ka .za-kaw { scrollbar-width: thin; }
.za-ka .za-kaw::-webkit-scrollbar { width: 6px; height: 6px; }
.za-ka .za-kaw::-webkit-scrollbar-thumb { background: #c5ccd6; border-radius: 3px; }
.za-ka .za-kaw::-webkit-scrollbar-track { background: transparent; }
/* v2.59.4: sistem başlığı — maliyet / satış, sonra Kâr % kutusu */
.za-sys .za-sst { margin-left: 14px; font-weight: 500; color: var(--muted); }
.za-sys .za-sm { margin-left: 16px; }
/* v2.59.6: sistem başlığında "Şablondan geri getir" (seçme kutusunun solunda) */
.za-t tr.za-sys .za-sysr { float: right; display: inline-flex; align-items: center; gap: 10px; }
.za-t tr.za-sys .za-sysr label.za-sysb { float: none; }
.za-t tr.za-sys button.za-srs { border: 0; background: none; padding: 0 2px; font-size: 11.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
.za-t tr.za-sys button.za-srs:hover { color: var(--brand); text-decoration: underline; }
/* v2.59.7: Z.A Maliyet araç çubuğu — toplu kâr, "Seçilenleri sil" alt satırda solda */
.za-tplbar .za-brk { flex-basis: 100%; height: 0; }
.za-tplbar .za-tk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #166534; }
.za-tplbar .za-tk input { width: 58px; height: 28px; text-align: right; padding: 2px 6px; border: 1px solid #bbf7d0; background: #f0fdf4; border-radius: 6px; }
/* v2.59.8: kalem maliyeti — stok ara / B2B satırı üzerine gelince değil, satır başındaki okla açılır */
.tn-tbl tr[data-it]:has(> td.tn-name:hover) + tr.tn-pickrow:not(.open), .tn-tbl tr.tn-pickrow:not(.open):hover { display: none; }
.tn-tbl tr.tn-pickrow.open { display: table-row; }
.tn-tbl button.tn-pkt { border: 0; background: none; padding: 0 3px 0 0; margin: 0; cursor: pointer; color: var(--muted); font-size: 11px; line-height: 1; }
.tn-tbl button.tn-pkt:hover, .tn-tbl button.tn-pkt.on { color: var(--brand); }
/* v2.60.0 B131: B2B'den seç */
.za-t a.za-pk { cursor: pointer; text-decoration: underline dotted; }
.za-t a.za-pk:hover { text-decoration: underline; }
.za-t .za-pin { font-size: 11px; cursor: help; }
/* 03.12 — kalem satırında Stokta ara kutusu dar (uzamaz) */
.tn-pick2 input.tn-s { flex: 0 0 100px !important; width: 100px !important; min-width: 0 !important; }
/* 03.12 — para birimi seçiminde küçük ok */
.tn-tbl select.qi[data-f="cost_currency"] { -webkit-appearance: none; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' fill='none' stroke='%2364748b' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right 4px center !important; background-size: 8px 5px !important; padding: 3px 14px 3px 6px !important; width: 54px !important; min-width: 0 !important; }
/* 03.12 — "Alış B.Fiyat (₺)" sütunu PB'den sonra görünür (dar tabloda da) */
.tn-nox .tn-sch .tn-cu, .tn-nox .tn-sch .tn-cuh { display: table-cell; }
.tn-sch td.tn-cu { color: var(--text); }

/* B140 — kontrol rozetleri + parça düğmeleri */
.tn-chk { display:inline-block; margin-left:6px; padding:1px 7px; border-radius:10px; font-size:11px; font-weight:600; white-space:nowrap; vertical-align:middle; cursor:help; }
.tn-chk.ok { background:#dcfce7; color:#166534; } .tn-chk.warn { background:#fef3c7; color:#92400e; } .tn-chk.bad { background:#fee2e2; color:#991b1b; } .tn-chk.miss { background:#e5e7eb; color:#374151; }
.tn-chkp { display:flex; flex-direction:column; gap:8px; align-items:flex-start; margin-top:8px; } .tn-chkp .btn.done { opacity:.7; }
.btn.tn-off { opacity:.55; }

/* B142–B144 (03.12) — Teklif: sürükleyerek sıralama, Marka / Model sütunu, kalem altı Stokta ara / B2B / Fiyat listesi */
.qt-tbl td.qi-sn { white-space: nowrap; }
.qt-tbl .qi-grip { display: inline-block; cursor: grab; color: #b6c0cc; font-size: 12px; letter-spacing: -2px; padding: 0 5px 0 0; user-select: none; }
.qt-tbl .qi-grip:hover { color: var(--brand); } .qt-tbl .qi-grip:active { cursor: grabbing; }
.qt-tbl tr.qi-dragging { opacity: .35; }
.qt-tbl tr.qi-over-t > td { box-shadow: inset 0 2px 0 var(--brand-2); }
.qt-tbl tr.qi-over-b > td { box-shadow: inset 0 -2px 0 var(--brand-2); }
.qt-tbl td.qt-bm { min-width: 150px; } .qt-tbl .qi-bm { width: 100%; min-width: 140px; }
.qt-tbl button.qi-pkt { border: 1px solid var(--line, #d5dbe5); border-radius: 5px; background: #fff; padding: 1px 4px; margin: 0 4px 0 0; cursor: pointer; color: var(--brand); font-size: 12px; line-height: 1; }
.qt-tbl button.qi-pkt:hover, .qt-tbl button.qi-pkt.on { color: var(--brand); }
.qt-tbl tr.qi-pickrow { display: none; }
.qt-tbl tr.qi-pickrow.open, .qt-tbl tr.qi-pickrow:hover, .qt-tbl tr.qi-pickrow:focus-within, .qt-tbl tr[data-it]:has(> td.qt-name:hover) + tr.qi-pickrow { display: table-row; }
.qt-tbl tr.qi-pickrow > td { padding-top: 0 !important; padding-bottom: 5px !important; border-top: 0 !important; background: #f7f9fc; }
.btn.sm.on { background: var(--brand-soft); border-color: var(--brand-2); }
/* B148 — Teklif maliyet çalışması */
.qt-kpi.qt-kpi4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .qt-kpi.qt-kpi4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.qt-tbl .qi-sup { font-size: 10.5px; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; margin-left: auto; text-align: right; }
.qt-tbl select.qi-cur { width: 58px; padding: 2px 4px; font-size: 12px; }
.qt-tbl input.qi-kur { width: 74px; }
.qt-tbl input.qi-kur:disabled { background: transparent; border-color: transparent; }
/* B152 — teklif maliyet kutuları */
.qt-kbx .qt-kbox { align-items: center; text-align: center; gap: 2px; }
.qt-kbox .qt-kt { font-size: 12px; color: var(--muted); } .qt-kbox .qt-kt b { font-size: 14px; color: var(--text, #111); letter-spacing: .02em; } .qt-kbox .qt-kt i { font-style: normal; }
.qt-kbox .qt-kv { font-size: 22px; } .qt-kbox .qt-kv2 { font-size: 17px; }
.qt-kbox hr { width: 100%; border: 0; border-top: 1px dashed var(--line, #d5dbe5); margin: 8px 0 4px; }
.qt-kbox.pos .qt-kv, .qt-kbox.pos .qt-kv2 { color: #15803d; } .qt-kbox.neg .qt-kv, .qt-kbox.neg .qt-kv2 { color: var(--err, #c62828); }
/* v2.66.4 — müşteri çıktısı: kalem tablosu sıkı, sayfa az */
.qt-print .qt-pit { table-layout: fixed; } .qt-print .qt-pit td { overflow-wrap: anywhere; }
.qt-print .qt-t th, .qt-print .qt-t td { padding: 3px 6px; line-height: 1.3; }
@media print { .qt-print table { font-size: 10.5px; } .qt-print h4 { margin: 10px 0 4px; } }
.qt-print .qt-pit th.c-sn { width: 26px; } .qt-print .qt-pit th.c-bm { width: 132px; } .qt-print .qt-pit th.c-urun { width: auto; }
.qt-print .qt-pit th.c-mk { width: 38px; } .qt-print .qt-pit th.c-br { width: 30px; } .qt-print .qt-pit th.c-bf { width: 66px; } .qt-print .qt-pit th.c-tt { width: 76px; }
.qt-print .qt-hd col.h-k { width: 15%; } .qt-print .qt-hd col.h-v { width: 43%; } .qt-print .qt-hd col.h-k2 { width: 12%; } .qt-print .qt-hd col.h-v2 { width: 30%; }
.qt-print .qt-pit th { width: auto; } /* .sf th %22 genişliği ezmesin */
.qt-print .qt-pit th.c-tt2 { width: 130px; }
@media print { .content { padding-bottom: 0 !important; } .app { min-height: 0 !important; } .qt-print h4 { break-after: avoid; } } /* v2.66.9: telefon genişliğindeki alt-menü boşluğu (110px) boş 3. sayfa yapıyordu */
@media print { .qt-termsb { break-inside: avoid; } } /* v2.66.10: şartlar bölünmesin, sığmazsa tamamı sonraki sayfaya */

/* B153 — telefonda Servis panosu: tek liste, kaydır-sil, basılı tut-sürükle, kapananlar */
.board-m { display: flex; flex-direction: column; gap: 26px; }
.board-m .bm-head { padding: 14px 16px 8px; text-align: center; }
.board-m .bm-head h3 { margin: 0; font-size: 19px; white-space: nowrap; }
.board-m .todo-l1 { white-space: normal; overflow: visible; }
.board-m .todo-l1 b { font-size: 14.5px; line-height: 1.3; }
.board-m .todo-l2 { color: var(--muted); font-size: 14px; }
.todo-sw { position: relative; overflow: hidden; border-top: 1px solid var(--line-2); touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.todo-sw .todo { border-top: 0; background: #fff; position: relative; z-index: 1; transition: transform .2s ease; }
.todo-sw .sw-del { position: absolute; inset: 0 0 0 auto; width: 88px; border: 0; background: var(--err); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 600; }
.todo-sw .sw-del .ic { width: 18px; height: 18px; }
.todo-sw.drag { z-index: 3; box-shadow: 0 8px 24px rgba(16,24,40,.22); border-radius: 10px; }
.todo-sw.drag .todo { background: #eef3fb; transform: scale(1.02); }
#todo-list.dragging .todo-sw:not(.drag) .todo { transition: none; }
.bm-ch { display: flex; align-items: center; padding: 6px 8px 6px 4px; }
.bm-tg { flex: 1; display: flex; align-items: center; gap: 8px; border: 0; background: none; font-size: 16px; font-weight: 700; color: var(--text); padding: 10px 10px; text-align: left; }
.bm-tg .ic { width: 18px; height: 18px; transition: transform .2s; transform: rotate(-90deg); }
.bm-tg.on .ic { transform: none; }
.bm-sr { border: 0; background: none; width: 42px; height: 42px; display: grid; place-items: center; color: var(--kurum); border-radius: 50%; }
.bm-sr .ic { width: 20px; height: 20px; }
.bm-q { padding: 0 14px 10px; }
.bm-q input { width: 100%; }
#bm-cl .bm-more { display: block; margin: 10px auto 14px; }
/* telefonda Servis panosunda üst çubuktaki başlık + "+" düğmesi gizli */
@media (max-width: 700px) {
  body:has(.scene.focused .board-m) #title, body:has(.scene.focused .board-m) #top-actions { visibility: hidden; }
}
.board-m .todo-meta, .board-m .todo-meta span { max-width: 116px; }
.todo-sw:not(.open):not(.swiping) .sw-del { visibility: hidden; }

/* B154 — telefonda aşağı çekip yenileme göstergesi */
.ptr { position: fixed; top: env(safe-area-inset-top, 0); left: 50%; z-index: 300; transform: translate(-50%, -50px); opacity: 0; pointer-events: none; }
.ptr-c { width: 38px; height: 38px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(16,24,40,.18); display: grid; place-items: center; color: var(--muted); margin-top: 8px; }
.ptr .ic { width: 20px; height: 20px; }
.ptr.ready .ptr-c { color: var(--kurum); }
.ptr.spin .ic { animation: ptrspin .8s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { html, body { overscroll-behavior-y: none; } }

/* v2.68.0 — B155: telefonda iPhone ana ekranı (springboard) */
.sb { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; box-sizing: border-box; overflow-x: hidden; z-index: 35; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, #0d3f9e 0%, #2f74d6 35%, #8fbbec 75%, #cfe0ef 100%);
  padding: calc(14px + env(safe-area-inset-top)) 14px calc(120px + env(safe-area-inset-bottom)); color: #fff; }
.sb-top { display: flex; align-items: center; gap: 6px; padding: 4px 6px 18px; }
.sb-top > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sb-top b { font-size: 20px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sb-top span { font-size: 13px; opacity: .9; }
.sb-btn { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.18); }
.sb-btn .ic { width: 21px; height: 21px; }
.sb-dot { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font: 600 11px/18px Inter, sans-serif; font-style: normal; text-align: center; }
.sb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 22px; column-gap: 6px; }
.sb-app { background: none; border: 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; min-width: 0; }
.sb-app:active .sb-ic { transform: scale(.92); filter: brightness(.85); }
.sb-ic { position: relative; width: 62px; height: 62px; border-radius: 15px; background: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.28); transition: transform .12s, filter .12s; }
.sb-ic img { width: 100%; height: 100%; border-radius: 15px; display: block; object-fit: cover; }
.sb-lbl { font-size: 12px; font-weight: 500; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.sb-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #ff3b30; color: #fff; font: 600 13px/22px Inter, sans-serif; font-style: normal; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.sb-badge[hidden] { display: none; }
.sb-dock { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 12px 8px; border-radius: 28px; box-sizing: border-box;
  background: rgba(255,255,255,.32); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
.sb-folder { position: fixed; inset: 0; z-index: 2; display: grid; place-items: center; padding: 24px; background: rgba(15,30,70,.35); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: sbIn .16s ease-out; }
.sb-folder[hidden] { display: none; }
@keyframes sbIn { from { opacity: 0; transform: scale(.96); } }
.sb-fw { width: 100%; max-width: 360px; }
.sb-fh { display: flex; align-items: center; gap: 12px; margin: 0 4px 14px; }
.sb-fh h3 { margin: 0; color: #fff; font-size: 24px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.35); }
.sb-fh .sb-ic { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.sb-fh .sb-ic img { border-radius: 12px; }
.sb-fl { background: rgba(255,255,255,.92); border-radius: 22px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.sb-fl a { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px; color: #0f172a; font-size: 16px; font-weight: 500; border-top: 1px solid rgba(15,23,42,.08); }
.sb-fl a:first-child { border-top: 0; }
.sb-fl a:active { background: rgba(30,58,138,.08); }
.sb-fl .chev { width: 16px; height: 16px; stroke: #94a3b8; fill: none; stroke-width: 2; }
body:has(.scene.focused .sb) .top, body:has(.scene.focused .sb) .tabbar { display: none; }
.sb-dock .sb-lbl { color: #0f1f55; text-shadow: none; font-weight: 600; }

/* v2.69.0 — B156: Teklif klasöründe "Yeni teklif oluştur" (konuş / yaz) + silik önerilen maliyet */
.sb-new { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(15,31,85,.12); }
.sb-new span { flex: 1; font-weight: 700; color: #0f1f55; font-size: 15px; }
.sb-new button { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #2f74d6; color: #fff; cursor: pointer; }
.sb-new button + button { background: #8cc63f; }
.sb-new button svg { width: 22px; height: 22px; }
.qi-hint::placeholder { color: #94a3b8; font-style: italic; opacity: 1; }
.qi-hint { cursor: copy; }

/* v2.70.0 — B157: telefon ana ekranında küçük sürüm yazısı */
.sb-top .sb-ver { font-size: 9px; opacity: 1; color: rgba(255,255,255,.6); align-self: center; margin-right: -2px; letter-spacing: .2px; }
/* v2.70.0 — B158: telefonda teklif belgesi görünümü */
.qp { background: #fff; margin: -8px -14px 0; padding: 14px 10px 120px; min-height: 100%; }
.qp-head h2 { margin: 0; font-size: 20px; color: #0f1f55; text-transform: capitalize; }
.qp-sub { font-size: 11px; color: var(--muted); margin: 2px 0 12px; }
.qp-t { width: 100%; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.qp-t th { background: #0f1f55; color: #fff; font-weight: 600; font-size: 10.5px; padding: 6px 3px; text-align: left; }
.qp-t th:nth-child(1) { width: 22px; } .qp-t th:nth-child(3) { width: 40px; } .qp-t th:nth-child(4) { width: 30px; } .qp-t th:nth-child(5) { width: 58px; } .qp-t th:nth-child(6) { width: 66px; }
.qp-t th.r, .qp-t td.r { text-align: right; }
.qp-t tbody td { padding: 7px 3px; border-bottom: 1px solid #e6e9f0; vertical-align: top; word-break: break-word; }
.qp-t tbody tr:active { background: #eef3fb; }
.qp-t td b { font-weight: 600; display: block; }
.qp-t td small { display: block; font-size: 10px; color: var(--muted); }
.qp-sn { color: var(--muted); }
.qp-cost { color: #9aa5b8 !important; }
.qp-hint { font-style: italic; color: #b3bccb !important; }
.qp-none { color: #c3cad6; }
.qp-empty { text-align: center; color: var(--muted); padding: 22px 6px !important; }
.qp-t tfoot td { padding: 5px 3px; font-size: 12px; text-align: right; }
.qp-t tfoot td:first-child { color: var(--muted); }
.qp-t tfoot tr.qp-grand td { font-weight: 700; font-size: 13.5px; color: #0f1f55; border-top: 2px solid #0f1f55; padding-top: 7px; }
.qp-bar { position: fixed; left: 10px; right: 10px; bottom: calc(62px + env(safe-area-inset-bottom)); display: flex; gap: 8px; z-index: 31; }
.qp-bar button { flex: 1; white-space: nowrap; display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 14px; padding: 12px 6px; font-weight: 600; font-size: 13px; background: #fff; color: #0f1f55; box-shadow: 0 2px 10px rgba(15,31,85,.18); cursor: pointer; }
.qp-bar button:first-child { background: #2f74d6; color: #fff; }
.qp-bar button svg { width: 18px; height: 18px; }
.qp-menu { display: flex; flex-direction: column; }
.qp-menu a, .qp-menu button { display: flex; align-items: center; gap: 10px; padding: 13px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: var(--ink, #0f172a); text-align: left; cursor: pointer; }
.qp-menu .danger { color: #c62828; }
.qp-menu svg { width: 18px; height: 18px; }
.form-grid.qp-form { grid-template-columns: 1fr 1fr; gap: 10px; }
.qp-form .full { grid-column: 1 / -1; }

/* v2.71.0 — B159: telefonda Servis / Bakım listesi (Yapılacaklar gibi sade) */
.pl { position: fixed; top: 0; left: 0; width: 100vw; bottom: calc(58px + env(safe-area-inset-bottom)); box-sizing: border-box; overflow-y: auto; overflow-x: hidden; z-index: 29;
  background: linear-gradient(180deg, #2f5fc4 0%, #4f7fd6 45%, #7ea3e3 100%); color: #fff; padding: calc(env(safe-area-inset-top) + 10px) 12px 90px; }
body:has(.scene.focused .pl) .top { display: none; }
.pl-back { color: #fff; font-size: 16px; text-decoration: none; opacity: .95; }
.pl-top { display: flex; align-items: center; gap: 6px; margin: 8px 2px 2px; }
.pl-top h1 { margin: 0; font-size: 32px; font-weight: 800; letter-spacing: .3px; color: #fff; }
.pl-ib { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: #fff; display: grid; place-items: center; cursor: pointer; }
.pl-ib svg { width: 20px; height: 20px; fill: none; stroke: currentColor; }
#pl-m svg { fill: currentColor; stroke: none; }
.pl-sub { font-size: 12px; opacity: .85; margin: 0 2px 10px; }
.pl-q input { width: 100%; box-sizing: border-box; border: 0; border-radius: 12px; padding: 11px 14px; font-size: 16px; margin-bottom: 10px; }
.pl-list { display: flex; flex-direction: column; gap: 6px; }
.pl-c { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 12px 14px; box-shadow: 0 1px 2px rgba(15,31,85,.15); }
.pl-o { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #6b7280; box-sizing: border-box; }
.pl-o:active { background: #dbe7fb; border-color: #2f74d6; }
.pl-o.off { border-style: dashed; border-color: #c3cad6; }
.pl-t { flex: 1; min-width: 0; text-decoration: none; color: #1f2937; }
.pl-t b { display: block; font-weight: 500; font-size: 15.5px; line-height: 1.3; }
.pl-t small { display: block; font-size: 12px; color: #8a94a6; margin-top: 2px; }
.pl-t small.late { color: #d93025; }
.pl-empty { text-align: center; padding: 30px 10px; opacity: .9; }
.pl-add { position: fixed; left: 12px; right: 12px; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 12px; border: 0; border-radius: 12px; padding: 15px 16px;
  background: rgba(30,60,140,.72); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 16px; cursor: pointer; }
.pl-add svg { width: 22px; height: 22px; }
.pl-mh { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; margin: 10px 0 2px; }
.qp-menu button.on { color: #2f74d6; font-weight: 700; }
.pl-prev { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
/* v2.71.1: iPhone 16 px altındaki kutuya dokununca ekranı büyütüp bırakıyor (tablo sağdan taşıyordu) */
@media (max-width: 700px) { input, select, textarea { font-size: 16px !important; } }
/* v2.71.2: telefonda teklif çıktısı — A4 genişliğinde çizilip ekrana sığdırılır */
.qt-fit { position: relative; overflow: hidden; width: 100%; }
.qt-fit .sf { width: 820px; max-width: none; margin: 0; padding: 32px 36px; font-size: 13px; border: 1px solid var(--line); transform-origin: 0 0; box-sizing: border-box; }
.qt-fit .sf-head { flex-direction: row; } .qt-fit .sf-head .doc { text-align: right; } .qt-fit .sf-head .co { flex-direction: row; align-items: center; }
.qt-fit .sf .sigs { grid-template-columns: 1fr 1fr; } .qt-fit h2 { overflow-wrap: normal; }
@media print { .qt-fit { height: auto !important; overflow: visible; } .qt-fit .sf { transform: none !important; width: auto; border: 0; padding: 0; } }
/* v2.72.0 — B160: telefonda teklif listesi */
.pl-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #c3cad6; margin: 0 7px; }
.pl-dot.st-hazirlaniyor { background: #f5a623; } .pl-dot.st-gonderildi { background: #2f74d6; } .pl-dot.st-onaylandi, .pl-dot.st-siparis, .pl-dot.st-faturalandi { background: #34a853; } .pl-dot.st-reddedildi, .pl-dot.st-iptal { background: #d93025; }
.pl-add .pl-mic { margin-left: auto; width: 38px; height: 38px; margin-top: -8px; margin-bottom: -8px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-style: normal; }
.pl-add .pl-mic svg { width: 20px; height: 20px; }
/* v2.72.1: telefonda teklif — silik maliyet B.Fiyat / Tutar sütununda */
.qp-t td small.qp-cost { color: #aab3c3 !important; font-style: italic; }
.qp-t tfoot tr.qp-ctot td { color: #9aa5b8; font-size: 11.5px; border: 0; padding-top: 6px; }
/* B162: telefon ekranında teklif şartları gizli (bilgisayarda ve yazdırılan/PDF çıktıda kalır) */
@media screen and (max-width: 700px) {
  .qt-termsb, .qt-tcard > .row, .qt-tcard > .qt-terms { display: none; }
  .qt-tcard:not(:has(p)) { display: none; }
}
/* v2.73.2: iOS Safari geniş (820px, küçültülmüş) teklif çıktısında yazıyı kendiliğinden büyütüyordu (ürün adları iri, "Ad." kırılıyor) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* B163: proje adı (telefon teklif ekranı + liste) */
.qp-pn { display: flex; align-items: center; gap: 8px; width: 100%; margin: 6px 0 2px; padding: 8px 10px; border: 1px dashed #c7d2e5; border-radius: 10px; background: #f7f9fd; text-align: left; font: inherit; color: #0f1f55; }
.qp-pn span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.qp-pn b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; }
.qp-pn.sug b { color: #8a94a6; font-weight: 500; font-style: italic; }
.qp-pn svg { width: 16px; height: 16px; color: #8a94a6; flex: none; }
.qp-pn[disabled] { border-style: solid; opacity: 1; }
.pl-t em.pl-pn { display: block; font-style: normal; font-size: 13.5px; color: #374151; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-t em.pl-pn.sug { color: #9aa3b2; font-style: italic; }
/* B165: kur kaynağı (Akbank satış · tarih saat) */
.qt-sum th small.qt-fxs { display: block; font-weight: 400; font-size: 9.5px; color: #6b7280; }
.qp-t tfoot small.qp-fxs { display: block; font-size: 10px; color: #8a94a6; font-weight: 400; }
.qp-menu small.muted { display: block; font-size: 11.5px; font-weight: 400; }
/* ===== B168: teklif çıktısı — firmanın antetli şablonu (A4: üst bant 37,6 mm, alt bilgi ~25 mm, silik "K" zemin) ===== */
.sf.qa { position: relative; width: 210mm; max-width: none; min-height: 297mm; padding: 0; border: 1px solid var(--line); font-size: 11.5px; color: #1f2937; overflow: hidden; background: #fff; box-sizing: border-box; }
.qa .qa-bg { position: absolute; left: 0; bottom: 0; width: 210mm; height: 297mm; z-index: 0; pointer-events: none; } /* ekranda alt bilgi sayfanın sonunda */
.qa .qa-ust { position: absolute; left: 0; top: 0; width: 210mm; height: auto; z-index: 1; }
.qa table.qa-pg { position: relative; z-index: 2; width: 100%; border: 0; border-collapse: collapse; }
.qa table.qa-pg > thead > tr > td, .qa table.qa-pg > tfoot > tr > td, .qa table.qa-pg > tbody > tr > td { border: 0; padding: 0; background: none; }
.qa .qa-sp1 { height: 41mm; } .qa .qa-sp2 { height: 30mm; }
.qa .qa-in { padding: 0 13mm !important; }
.qa .qa-tt { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid #25408f; padding-bottom: 4px; margin-bottom: 8px; }
.qa .qa-tt h2 { margin: 0; font-size: 19px; color: #25408f; letter-spacing: .04em; } .qa .qa-tt span { font-size: 12px; }
.qa .qa-info { display: grid; grid-template-columns: 1.25fr 1fr; gap: 10px; margin-bottom: 8px; }
.qa .qa-info table td, .qa .qa-info table th { border: 0; border-bottom: 1px solid #e3e8f0; padding: 3px 6px; font-size: 11px; background: none; }
.qa .qa-info table th { width: 78px; color: #25408f; font-weight: 700; }
.qa .qa-gen { margin: 6px 0 10px; } .qa .qa-gen h4, .qa h4.qa-h { margin: 8px 0 4px; font-size: 11px; color: #25408f; border-bottom: 2px solid #9dc31f; padding-bottom: 2px; }
.qa .qa-gen p { margin: 2px 0; font-size: 10.5px; line-height: 1.4; } .qa .qa-gen b { color: #1f2937; }
.qa table.qa-t { width: 100%; border-collapse: collapse; margin-top: 4px; }
.qa table.qa-t th { background: #25408f; color: #fff; font-size: 10.5px; font-weight: 600; padding: 5px 6px; border: 1px solid #25408f; width: auto; }
.qa table.qa-t td { font-size: 11px; padding: 4px 6px; border: 1px solid #d5dce8; background: rgba(255,255,255,.75); }
.qa table.qa-t td small { display: block; color: #6b7280; font-size: 9.5px; }
.qa table.qa-t .c-sn { width: 28px; text-align: center; } .qa table.qa-t .c-mr { width: 70px; } .qa table.qa-t .c-mk { width: 48px; } .qa table.qa-t .c-br { width: 40px; } .qa table.qa-t .c-bf { width: 78px; } .qa table.qa-t .c-tt { width: 86px; }
.qa table.qa-t tr.tot td { font-weight: 700; background: #eef2f9; }
.qa table.qt-sum { width: 52%; margin: 10px 0 0 auto; }
.qa .qa-not { margin: 8px 0 0; font-size: 11px; }
.qa .sigs { margin-top: 14px; } .qa tr { break-inside: avoid; }
.qt-fit .sf.qa { width: 210mm; padding: 0; }
@media print {
  @page antet { size: A4; margin: 0; }
  .sf.qa { page: antet; width: 210mm; min-height: 0; border: 0; padding: 0; overflow: visible; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qa .qa-bg, .qa .qa-ust { position: fixed; } .qa .qa-bg { top: 0; bottom: auto; }
  .qa table.qa-t td { background: #fff; }
}

/* v2.78.0 — B170: ana ekran alt çubuğu = küçük hızlı işlemler */
.sb-dock.sb-acts { padding: 6px 6px; border-radius: 20px; gap: 4px; }
.sb-act { background: none; border: 0; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; -webkit-tap-highlight-color: transparent; min-width: 0; color: #0f1f55; }
.sb-act span { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.85); box-shadow: 0 1px 3px rgba(15,31,85,.15); }
.sb-act svg { width: 19px; height: 19px; stroke: #1e3a8a; }
.sb-act small { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sb-act:active span { transform: scale(.92); }
/* B168: telefon teklif menüsünde para birimi düğmeleri */
.qp-cur { display: flex; align-items: center; gap: 6px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.qp-cur span { flex: 1; }
.qp-menu .qp-cur button { flex: none; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; border-bottom: 1px solid var(--line); }
.qp-menu .qp-cur button.on { background: #2f74d6; color: #fff; border-color: #2f74d6; }

/* v2.78.0 — B171: Satış ekranı + kamera barkod okuyucu */
.sl { max-width: 720px; }
.sl-kind { display: flex; width: 100%; box-sizing: border-box; }
.sl-kind button { flex: 1; border: 0; background: none; padding: 10px; border-radius: 9px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }
.sl-kind button.on { background: #fff; color: var(--kurum); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.sl-tg { padding: 12px 14px; }
.sl-sel { display: flex; align-items: center; gap: 10px; }
.sl-tl { display: flex; flex-direction: column; max-height: 240px; overflow: auto; margin-top: 6px; }
.sl-tl button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; text-align: left; cursor: pointer; }
.sl-tl button small { color: var(--muted); font-size: 12px; }
.sl-bar { display: flex; gap: 8px; align-items: center; }
.sl-bar .stk-search { min-width: 0; }
.sl-scan { padding: 12px 16px; }
.sl-lines { display: flex; flex-direction: column; }
.sl-line { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.sl-nm { min-width: 0; } .sl-nm b { display: block; overflow-wrap: anywhere; } .sl-nm small { display: block; color: var(--muted); font-size: 11.5px; }
.sl-q { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.sl-q button { width: 30px; height: 34px; border: 0; background: #f1f4f9; font-size: 18px; cursor: pointer; }
.sl-q input { width: 44px; height: 34px; border: 0; text-align: center; font: inherit; padding: 0; }
.sl-p { display: flex; flex-direction: column; align-items: flex-end; }
.sl-p input { width: 96px; text-align: right; padding: 7px 8px; }
.sl-p small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.sl-sum { margin-left: auto; border-collapse: collapse; min-width: 280px; }
.sl-sum th { text-align: left; font-weight: 500; padding: 4px 12px 4px 0; } .sl-sum td { text-align: right; padding: 4px 0; white-space: nowrap; }
.sl-sum select { width: auto; padding: 2px 4px; }
.sl-sum .tot th, .sl-sum .tot td { font-weight: 700; font-size: 16px; border-top: 1px solid var(--line); padding-top: 8px; }
.sl-list a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: inherit; }
.sl-list small { display: block; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
  .sl-line { grid-template-columns: 1fr auto auto; }
  .sl-nm { grid-column: 1 / -1; }
  .sl-sum { width: 100%; min-width: 0; }
}
.bc-scan { position: fixed; inset: 0; z-index: 1000; background: #000; display: flex; flex-direction: column; color: #fff; padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.bc-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; }
.bc-x { background: rgba(255,255,255,.15); color: #fff; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 18px; cursor: pointer; }
.bc-cam { position: relative; flex: 1; overflow: hidden; }
.bc-cam video { width: 100%; height: 100%; object-fit: cover; }
.bc-frame { position: absolute; left: 5%; right: 5%; top: 25%; bottom: 25%; border: 2px solid rgba(255,255,255,.85); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.bc-frame i { position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; background: #ef4444; animation: bcLine 1.4s ease-in-out infinite alternate; }
@keyframes bcLine { from { transform: translateY(-40px); } to { transform: translateY(40px); } }
.bc-msg { text-align: center; padding: 10px; font-size: 14px; opacity: .85; }
.bc-man { display: flex; gap: 8px; padding: 8px 16px 16px; }
.bc-man input { flex: 1; }

/* v2.79.0 — B173: antetli şablon — başlık ortada, üst bölümde yatay çizgi yok (ürün tablosu / toplam kutusu çizgili kalır) */
.qa .qa-tt { position: relative; display: block; text-align: center; border-bottom: 0; padding-bottom: 0; margin-bottom: 10px; }
.qa .qa-tt span { position: absolute; right: 0; bottom: 3px; }
.qa .qa-info table td, .qa .qa-info table th { border-bottom: 0; padding: 2px 6px; }
.qa .qa-gen h4, .qa h4.qa-h { border-bottom: 0; padding-bottom: 0; }

/* v2.80.0 — B175: stok kartları — küçük tek satır sıralama düğmeleri + arama yanında kamera */
.stk-fl { display: flex; gap: 2px; background: #e6eaf2; border-radius: 9px; padding: 2px; overflow-x: auto; scrollbar-width: none; }
.stk-fl::-webkit-scrollbar { display: none; }
.stk-fl a { flex: 1 0 auto; text-align: center; padding: 5px 3px; border-radius: 7px; font-size: 10.5px; letter-spacing: -.01em; font-weight: 600; color: var(--muted); white-space: nowrap; }
.stk-fl a.on { background: #fff; color: var(--kurum); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.stk-sr { display: flex; gap: 8px; align-items: stretch; }
.stk-sr .stk-search { min-width: 0; }
.stk-cam { padding: 0 14px; flex: none; }
.stk-cam svg { width: 20px; height: 20px; }
/* B176: sade satış akışı */
.sl-dd { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; margin-top: 4px; overflow: hidden; box-shadow: 0 8px 20px rgba(15,23,42,.12); max-height: 320px; overflow-y: auto; }
.sl-dd button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; text-align: left; cursor: pointer; }
.sl-dd button:last-child { border-bottom: 0; } .sl-dd small { color: var(--muted); font-size: 12px; }
.sl-big { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; padding: 24px 0; border: 0; border-radius: 18px; background: var(--kurum, #233a7c); color: #fff; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.sl-big svg { width: 40px; height: 40px; }
.sl-big:active { filter: brightness(.9); }
.sl-ls { padding: 10px 14px; }
.sl-li { display: grid; grid-template-columns: 1fr 52px 100px; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sl-ls .sl-li:last-of-type { border-bottom: 0; }
.sl-li .sl-nm { border: 0; background: none; padding: 0; text-align: left; font: inherit; cursor: pointer; min-width: 0; }
.sl-li .sl-nm b { display: block; font-size: 14px; overflow-wrap: anywhere; } .sl-li .sl-nm small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-qb { border: 0; border-radius: 8px; background: #f1f4f9; font: inherit; font-weight: 700; padding: 7px 0; cursor: pointer; }
.sl-pr { text-align: right; padding: 6px 8px; font-size: 13.5px; }
.sl-pr.e { border-color: #f59e0b; background: #fffbeb; }
.sl-li:has(> :nth-child(2):last-child) { grid-template-columns: 1fr 60px; }
.sl-tot { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; font-size: 14px; }
.sl-tot select { width: auto; padding: 2px 4px; }
.sl-tot.t { font-size: 16px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; }
.sl-foot { position: sticky; bottom: 8px; display: flex; gap: 8px; padding: 10px; background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 16px; box-shadow: 0 4px 16px rgba(15,23,42,.12); z-index: 3; }
.sl-foot .btn { flex: 1; justify-content: center; } .sl-foot .btn.primary { flex: 2; }
.sl-step { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 18px 0 6px; }
.sl-step button { width: 56px; height: 56px; border: 0; border-radius: 14px; background: #f1f4f9; font-size: 28px; font-weight: 700; cursor: pointer; }
.sl-step input { width: 110px; height: 60px; font-size: 30px; font-weight: 700; text-align: center; }
@media (max-width: 700px) {
  /* v2.80.1: adet penceresi ÜSTTEN açılır — klavye Vazgeç/Ekle tuşlarını kapatmasın */
  .modal-wrap.sl-sheet { place-items: start stretch; padding: 0; }
  .modal-wrap.sl-sheet .modal { width: 100%; max-width: none; border-radius: 0 0 22px 22px; margin: 0; padding-top: env(safe-area-inset-top); }
}
/* B175: telefonda stok sayfası sağa taşmasın (tablo kendi içinde kayar) */
.stk-tree-wrap { grid-template-columns: 260px minmax(0, 1fr); }
@media (max-width: 900px) { .stk-tree-wrap { grid-template-columns: minmax(0, 1fr); } }
.sl-li .sl-nm { grid-column: auto; } /* B176: eski satır kuralını ezme */
/* B177: ürün ağacı açılır/kapanır (standartta kapalı); kriter yokken ipucu */
.stk-tt { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; cursor: pointer; text-align: left; font: inherit; color: inherit; }
.stk-tt h3 { margin: 0; white-space: nowrap; }
.stk-tc { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.stk-chev { transition: transform .2s; color: var(--muted); font-weight: 400; }
.stk-tree.shut { padding-bottom: 0; overflow: visible; max-height: none; }
.stk-tree.shut > :not(.stk-tt) { display: none; }
.stk-tree.shut .stk-chev { transform: rotate(-90deg); }
.stk-hint { display: flex; align-items: center; gap: 12px; padding: 22px 18px; color: var(--muted); }
.stk-hint svg { width: 28px; height: 28px; flex: 0 0 28px; opacity: .6; } .stk-hint p { margin: 0; font-size: 14px; line-height: 1.45; }
/* B178: "Barkod tanınmadı" — arama üstte, sonuçlar altında uzun liste; telefonda tam ekran ve en üstte */
.bc-link .stk-search { flex-wrap: wrap; }
.bc-link .stk-dd { position: static; flex: 0 0 calc(100% + 20px); margin: 0 -10px; border: 0; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; box-shadow: none; max-height: 52vh; }
.bc-link #bpk:not(:empty) { margin-bottom: 8px; padding: 8px 10px; background: #eef4ff; border-radius: 10px; }
@media (max-width: 700px) {
  .modal-wrap.bc-link { place-items: start stretch; padding: 0; }
  .modal-wrap.bc-link .modal { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; border-radius: 0; margin: 0; padding-top: env(safe-area-inset-top); }
  .modal-wrap.bc-link .modal-body { flex: 1; min-height: 0; }
  .bc-link .stk-dd { max-height: none; }
}
/* B179: ürün barkodu + seri no birlikte okuma — çerçeve daha yüksek */
.bc-frame.tall { top: 12.5%; bottom: 12.5%; }
.bc-msg.ok { color: #86efac; opacity: 1; font-weight: 600; }
.sl-sn { font-size: 11.5px; color: var(--muted); font-family: ui-monospace, monospace; word-break: break-all; }
.qa table.qa-t td small.qa-sn { color: #111827; font-family: ui-monospace, monospace; font-size: 9px; word-break: break-all; }
