/* DestekGO Yönetim V4.1 — Teklif sayfaları (önek .tk-) */

/* Sütunlar */
.tk-col { gap: 18px; min-width: 0; }
.tk-col > .panel + .panel { margin-top: 0; }
.tk-flush { padding: 0 !important; }
.tk-pad { padding: 12px 18px; }
.tk-h3 { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: none; margin: 18px 0 8px; }
.tk-h3:first-child { margin-top: 0; }
.tk-ol { margin: 0; padding-left: 22px; display: grid; gap: 5px; }
.tk-badges { display: inline-flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tk-ledger-text { font-size: 18px !important; }
.tk-ua { display: block; max-width: 420px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.tk-quote { display: block; margin-top: 4px; padding: 8px 10px; background: var(--paper); border-left: 3px solid var(--orange); border-radius: 6px; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tk-btns .btn { flex: 1 1 auto; justify-content: center; }
.tk-note { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tk-note > span:first-child { flex: 1 1 320px; }
.tk-doc-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--blue-soft); color: var(--blue); display: inline-grid; place-items: center; flex: none; }
.tk-doc-ic svg { width: 18px; height: 18px; }
a.item.tk-link { color: inherit; text-decoration: none; }
a.item.tk-link:hover { background: #fafbfc; }

/* Ölçüler (özet paneli, vergi aracı) */
.tk-metric { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.tk-metric:last-child { border-bottom: 0; }
.tk-metric span { color: var(--ink-2); }
.tk-metric b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tk-metric.pos b { color: var(--green); }
.tk-bar { height: 8px; background: var(--line-2); border-radius: 99px; overflow: hidden; margin: 2px 0 8px; }
.tk-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy-3), var(--green)); border-radius: 99px; }

/* Süreç zaman çizelgesi */
.tk-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.tk-steps li { display: flex; gap: 12px; position: relative; padding-bottom: 16px; }
.tk-steps li:last-child { padding-bottom: 0; }
.tk-steps li::before { content: ""; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tk-steps li:last-child::before { display: none; }
.tk-steps li.done::before { background: var(--green); }
.tk-steps i { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; position: relative; z-index: 1; }
.tk-steps i svg { width: 14px; height: 14px; stroke-width: 2.6; }
.tk-steps li.done i { background: var(--green); border-color: var(--green); color: #fff; }
.tk-steps li.bad i { background: var(--red); border-color: var(--red); color: #fff; }
.tk-steps li.current i { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.tk-steps b { display: block; font-size: 13.5px; font-weight: 600; }
.tk-steps li:not(.done):not(.current):not(.bad) b { color: var(--faint); font-weight: 500; }
.tk-steps small { display: block; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

/* Aktivite */
.tk-log { list-style: none; margin: 0; padding: 0; }
.tk-log li { padding: 10px 18px; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.tk-log li b { font-weight: 500; }
.tk-log li small { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tk-log li:last-child { border-bottom: 0; }

/* Müşteri bağlantısı */
.tk-link-box { margin-top: 16px; padding: 12px; border: 1px dashed var(--line); border-radius: 10px; background: #fbfcfd; display: grid; gap: 8px; }
.tk-link-box small { color: var(--muted); font-size: 12px; }
.tk-link-box code { font-size: 12px; overflow-wrap: anywhere; color: var(--ink-2); }

/* Form */
.tk-aside { position: sticky; top: calc(var(--top) + 16px); align-self: start; }
.tk-sum { grid-template-columns: 90px minmax(0, 1fr); margin-bottom: 14px; }
.tk-form-actions { display: grid; gap: 8px; }
.tk-form-actions .btn { justify-content: center; width: 100%; }
.tk-items { display: grid; gap: 8px; }
.tk-item { display: flex; gap: 6px; align-items: center; }
.tk-item .input { flex: 1; min-width: 0; height: 38px; }
.tk-n { width: 26px; flex: none; font-size: 12px; font-weight: 600; color: var(--blue); font-variant-numeric: tabular-nums; }
.tk-item [data-up] { font-weight: 700; }
.tk-pick { position: relative; }
.tk-suggest { position: absolute; left: 0; right: 0; top: 100%; margin-top: 4px; z-index: 40; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-pop); padding: 6px; max-height: 340px; overflow: auto; }
.tk-suggest button { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; }
.tk-suggest button:hover, .tk-suggest button:focus { background: var(--blue-soft); outline: none; }
.tk-suggest .kind { flex: none; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--line-2); border-radius: 6px; padding: 2px 6px; width: 92px; text-align: center; }
.tk-suggest b { display: block; font-weight: 600; }
.tk-suggest small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-suggest span:last-child { min-width: 0; }
.tk-suggest-empty { padding: 10px; font-size: 13px; color: var(--muted); }

/* Vergi aracı */
.tk-tax { display: grid; gap: 12px; }
.tk-seg { display: flex; background: var(--line-2); border-radius: 10px; padding: 3px; gap: 3px; }
.tk-seg button { flex: 1; border: 0; background: none; border-radius: 8px; padding: 7px 8px; font: 600 12.5px/1.3 var(--font); color: var(--muted); cursor: pointer; }
.tk-seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(19, 35, 63, .12); }
.tk-tax-out { font-size: 13px; color: var(--muted); }
.tk-tax-out .btn { margin-top: 10px; width: 100%; justify-content: center; }
.tk-tax .field { margin: 0; }

/* Ayarlar */
.tk-pay-grid > div { min-width: 0; }
.tk-pay-grid .form-grid { grid-template-columns: minmax(0, 1fr); }

/* Gündem: teklif kalemleri */
.ev.k-offer, i.k-offer { background: #0f8a8a; }
.ev.k-offer_docs, i.k-offer_docs { background: #c25700; }

@media (max-width: 1100px) {
  .tk-aside { position: static; }
}
@media (max-width: 860px) {
  .tk-detail .cust-head .actions .btn span { display: none; }
  .tk-detail .cust-head .actions .btn:not(.icon) { padding: 0 12px; }
  .tk-log li { flex-direction: column; gap: 2px; }
  .tk-ua { max-width: none; }
  .tk-steps li { padding-bottom: 14px; }
  .tk-item [data-up] { display: none; }
  .tk-suggest .kind { width: auto; }
}
/* V4.3: teklif gönderiminde bilgi kopyası seçeneği */
.tk-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding: 10px 12px; background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; cursor: pointer; }
.tk-copy span { flex: 1; min-width: 0; }
.tk-copy small { flex-basis: 100%; color: var(--muted, #6b7891); font-size: 12px; overflow-wrap: anywhere; }
