*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.55 var(--font); color: var(--ink-900); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--navy-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; line-height: 32px; font-weight: 650; letter-spacing: -.015em; margin: 0; color: var(--ink-900); }
h2 { font-size: 16px; line-height: 24px; font-weight: 600; margin: 0 0 12px; color: var(--ink-900); }
h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
p { margin: 0 0 8px; }
.muted { color: var(--ink-500); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* ── Üst çubuk (GÖNÜÇ SYSTEM ortak) ───────────────────────────────────────── */
.gs-topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; height: 60px; padding: 0 20px;
  background: var(--navy-700); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.12); }
.gs-brand { display: flex; align-items: center; }
.gs-brand img { display: block; height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 3px 8px; }
.gs-apps { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: rgba(255,255,255,.08); }
.gs-app { color: #C9D4E8; padding: 6px 14px; border-radius: 7px; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.gs-app:hover { color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.gs-app.is-active { color: var(--navy-800); background: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.15); }
.gs-spacer { flex: 1; }

.usermenu { position: relative; }
.usermenu > summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 8px 5px 5px; border-radius: 10px; }
.usermenu > summary::-webkit-details-marker { display: none; }
.usermenu > summary:hover, .usermenu[open] > summary { background: rgba(255,255,255,.1); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--navy-700); font-weight: 650; font-size: 12.5px; letter-spacing: .02em; }
.usermenu .who { display: grid; line-height: 1.2; text-align: left; }
.usermenu .who b { font-size: 13.5px; font-weight: 600; color: #fff; }
.role-chip { display: inline-block; margin-top: 2px; font-size: 11px; font-weight: 500; color: #DCE5F5; }
.usermenu .chev { color: #C9D4E8; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 240px; background: var(--surface); color: var(--ink-900); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-lg); padding: 6px; }
.menu .menu-head { padding: 10px 10px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu .menu-head b { display: block; font-size: 14px; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 8px; color: var(--ink-700); font: inherit; font-size: 13.5px;
  background: none; border: 0; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg); text-decoration: none; color: var(--ink-900); }
.menu form { margin: 0; }
.menu hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }

/* ── Uygulama içi menü ─────────────────────────────────────────────────── */
.gs-subnav { display: flex; align-items: center; gap: 4px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.gs-subnav a { display: inline-flex; align-items: center; gap: 8px; padding: 14px 10px 12px; color: var(--ink-600); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.gs-subnav a:hover { color: var(--ink-900); text-decoration: none; }
.gs-subnav a.is-active { color: var(--navy-700); border-bottom-color: var(--navy-700); font-weight: 600; }
.gs-subnav .sep { width: 1px; height: 20px; background: var(--line); margin: 0 8px; flex: none; }
.gs-subnav .group-label { font-size: 11px; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: .06em; padding: 0 4px; }

.gs-main { flex: 1; width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 24px 56px; }
.gs-main.wide { max-width: 1480px; }
.gs-footer { text-align: center; color: var(--ink-400); font-size: 12px; padding: 18px; }

/* ── Sayfa başlığı ─────────────────────────────────────────────────────── */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .sub { color: var(--ink-500); margin: 4px 0 0; }
.page-head .actions { display: flex; gap: 8px; align-items: center; }
.crumbs { display: flex; gap: 6px; align-items: center; color: var(--ink-500); font-size: 13px; margin: 0 0 8px; }
.crumbs a { color: var(--ink-500); }

/* ── Düğmeler ──────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-700); font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; box-shadow: var(--shadow-xs);
  transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: #F9FAFB; border-color: #D0D5DD; text-decoration: none; color: var(--ink-900); }
.btn-primary { background: var(--navy-700); border-color: var(--navy-700); color: #fff; box-shadow: 0 1px 2px rgba(20,38,74,.25), inset 0 1px 0 rgba(255,255,255,.08); }
.btn-primary:hover { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink-600); }
.btn-ghost:hover { background: var(--line-2); border-color: transparent; }
/* v.17.8: geri çek / geri al — belirgin ama birincil değil */
.btn-warn-outline { background: #fff8e6; border-color: #e0a100; color: #7a5200; font-weight: 600; }
.btn-warn-outline:hover { background: #ffefc2; border-color: #c48c00; }
form.pullback { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.btn-danger { color: var(--danger-700); }
.btn-danger:hover { background: var(--danger-50); border-color: var(--danger-200); color: var(--danger-700); }
.btn-sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14.5px; }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }
.btn .i { width: 16px; height: 16px; }

/* ── Kart ve bölümler ──────────────────────────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.card-head h2 { margin: 0; }
.card-body { padding: 20px; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* ── Özet kartları (pano) ──────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { position: relative; display: block; padding: 16px 18px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); color: inherit; overflow: hidden; }
.stat:hover { border-color: #D0D5DD; text-decoration: none; box-shadow: var(--shadow-sm); }
.stat.is-active { border-color: var(--navy-500); box-shadow: 0 0 0 1px var(--navy-500); }
.stat .label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-600); }
.stat .value { font-size: 28px; line-height: 36px; font-weight: 650; letter-spacing: -.02em; margin-top: 6px; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.stat .desc { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }
.stat .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--line-2); }
.stat .bar > span { display: block; height: 100%; border-radius: 0 3px 3px 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.tone-neutral { --tone: #98A2B3; } .tone-info { --tone: #4E6FB4; } .tone-warn { --tone: #DC8A0E; } .tone-ok { --tone: #12A15E; } .tone-danger { --tone: #D92D20; }
.dot, .stat .bar > span { background: var(--tone, #98A2B3); }

/* ── Rozetler ──────────────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap;
  background: var(--line-2); color: var(--ink-700); border: 1px solid transparent; }
.badge .dot { width: 6px; height: 6px; }
.badge-status { background: #fff; border-color: var(--line); }
.badge-ok { background: var(--ok-50); color: var(--ok-700); border-color: var(--ok-200); }
.badge-warn { background: var(--warn-50); color: var(--warn-700); border-color: var(--warn-200); }
.badge-danger { background: var(--danger-50); color: var(--danger-700); border-color: var(--danger-200); }
.badge-info { background: var(--info-50); color: var(--info-700); border-color: var(--info-200); }
.badge-navy { background: var(--navy-50); color: var(--navy-700); border-color: var(--navy-100); }
.badge-muted { background: var(--line-2); color: var(--ink-500); }
.badge-aktif { background: var(--ok-50); color: var(--ok-700); border-color: var(--ok-200); }
.badge-kara_liste { background: var(--danger-50); color: var(--danger-700); border-color: var(--danger-200); }
.badge-pasif { background: var(--line-2); color: var(--ink-500); }
.tag { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 5px; font-size: 11.5px; font-weight: 500; background: var(--line-2); color: var(--ink-600); }

/* Doğrulama seviyeleri */
.lvl { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.lvl-engel { background: var(--danger-700); color: #fff; }
.lvl-uyari { background: var(--warn-50); color: var(--warn-700); border: 1px solid var(--warn-200); }
.lvl-ok { background: var(--ok-50, #ECFDF3); color: var(--ok-700, #067647); border: 1px solid var(--ok-200, #ABEFC6); } /* v.17.37 */
.lvl-ok .i { width: 12px; height: 12px; }
.lvl-onay { background: var(--info-50); color: var(--info-700); border: 1px solid var(--info-200); }
.issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.issues li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: 13.5px; color: var(--ink-700); }
.issues li a { color: inherit; }
.issues .lvl { margin-top: 1px; }

/* ── Tablo ─────────────────────────────────────────────────────────────── */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.table-wrap .toolbar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--ink-500); background: #FAFBFC; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover td { background: #FAFBFC; }
.table .primary { font-weight: 600; color: var(--ink-900); }
.table .secondary { display: block; font-size: 12.5px; color: var(--ink-500); margin-top: 1px; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-plain { width: 100%; border-collapse: collapse; }
.table-plain th, .table-plain td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; font-size: 13.5px; }
.table-plain th { font-size: 12px; color: var(--ink-500); font-weight: 600; }

/* ── Arama / filtre ────────────────────────────────────────────────────── */
.search { position: relative; flex: 1; min-width: 220px; max-width: 360px; }
.search .i { position: absolute; left: 11px; top: 11px; color: var(--ink-400); }
.search input { padding-left: 34px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--line-2); border-radius: 9px; }
.seg a, .seg label { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--ink-600); cursor: pointer; white-space: nowrap; }
.seg a:hover { text-decoration: none; color: var(--ink-900); }
.seg a.is-active, .seg input:checked + span, .seg label.is-checked { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-xs); }

/* ── Formlar ───────────────────────────────────────────────────────────── */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field-label { font-weight: 500; font-size: 13.5px; color: var(--ink-700); }
.field-label em { color: var(--danger-700); font-style: normal; margin-left: 2px; }
.field-hint { font-size: 12.5px; color: var(--ink-500); }
input, select, textarea { font: inherit; font-size: 14px; height: 40px; padding: 0 12px; border: 1px solid #D0D5DD; border-radius: 8px; background: #fff; color: var(--ink-900); width: 100%;
  box-shadow: var(--shadow-xs); transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy-500); box-shadow: var(--ring); }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; padding: 0; box-shadow: none; accent-color: var(--navy-700); }
input:disabled, select:disabled, textarea:disabled { background: #F9FAFB; color: var(--ink-500); }
.input-affix { position: relative; }
.input-affix input { padding-right: 52px; }
.input-affix .affix { position: absolute; right: 12px; top: 0; height: 40px; display: flex; align-items: center; color: var(--ink-500); font-size: 13px; pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.check input { margin-top: 2px; }
.check .muted { font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 18px 20px 4px; margin: 0; min-width: 0; box-shadow: var(--shadow-xs); }
legend { font-weight: 600; font-size: 14px; color: var(--ink-900); padding: 0 6px; }
.form-actions { grid-column: 1 / -1; display: flex; gap: 8px; }

/* ── Uyarılar ──────────────────────────────────────────────────────────── */
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: 10px; margin: 0 0 16px; border: 1px solid; font-size: 13.5px; }
.alert-error { background: var(--danger-50); border-color: var(--danger-200); color: var(--danger-700); }
.alert-info { background: var(--navy-50); border-color: var(--navy-100); color: var(--navy-700); }
.alert-warn { background: var(--warn-50); border-color: var(--warn-200); color: var(--warn-700); }
.alert-success { background: var(--ok-50); border-color: var(--ok-200); color: #05603A; display: grid; gap: 6px; }
.secret { font-family: var(--mono); font-size: 16px; background: #fff; padding: 6px 10px; border-radius: 6px; border: 1px dashed #6CE9A6; user-select: all; justify-self: start; }

/* ── Boş durum ─────────────────────────────────────────────────────────── */
.empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 48px 24px; }
.empty .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-600); margin-bottom: 8px; border: 1px solid var(--navy-100); }
.empty .ico .i { width: 22px; height: 22px; }
.empty h3 { font-size: 15px; margin: 0; }
.empty p { color: var(--ink-500); max-width: 420px; margin: 0 0 10px; }
.empty-inline { padding: 28px 16px; }

/* ── Kayıt görünümü ────────────────────────────────────────────────────── */
.kv { display: grid; grid-template-columns: minmax(140px, max-content) 1fr; gap: 10px 20px; margin: 0; }
.kv dt { color: var(--ink-500); font-size: 13px; }
.kv dd { margin: 0; color: var(--ink-900); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }

/* ── Giriş ─────────────────────────────────────────────────────────────── */
.auth-wrap { flex: 1; display: grid; place-items: center; padding: 40px 16px; background:
  radial-gradient(1200px 400px at 50% -10%, rgba(31,56,100,.08), transparent 70%), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); padding: 32px 32px 28px; border-radius: 18px; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); border-top: 4px solid var(--red-600); }
.auth-logo { margin: 0 0 18px; text-align: center; }
.auth-logo img { width: 300px; max-width: 100%; height: auto; }
.auth-title { font-size: 20px; font-weight: 650; text-align: center; margin: 0 0 4px; }
.auth-lead { text-align: center; color: var(--ink-500); margin: 0 0 22px; font-size: 13.5px; }
.auth-card .btn-primary { width: 100%; height: 42px; margin-top: 4px; }
.auth-foot { text-align: center; color: var(--ink-400); font-size: 12px; margin-top: 18px; }

/* ── Sözleşme kartı ───────────────────────────────────────────────────── */
.contract-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.contract-head .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; align-items: center; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.summary-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.summary-list > div { padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.summary-list > div:nth-child(odd) { border-right: 1px solid var(--line-2); }
.summary-list dt { font-size: 12px; color: var(--ink-500); margin-bottom: 2px; }
.summary-list dd { margin: 0; font-weight: 500; }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.doc-row:last-child { border-bottom: 0; }
.doc-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 700; flex: none; }
.doc-ico.docx { background: #EAF1FF; color: #2557B8; }
.doc-ico.pdf { background: #FEECEB; color: #C4320A; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 18px; font-size: 13px; color: var(--ink-600); }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--navy-500); }
.timeline li::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline b { color: var(--ink-900); font-weight: 500; }

/* ── Sihirbaz ──────────────────────────────────────────────────────────── */
.wz { display: grid; grid-template-columns: 236px minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.wz-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.wz-head h1 { font-size: 20px; line-height: 28px; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-500); }
.save-state.is-saving .i { animation: spin 1s linear infinite; }
.save-state.is-error { color: var(--danger-700); }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { position: sticky; top: 80px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.steps a { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: var(--ink-600); }
.steps a:hover { background: var(--bg); text-decoration: none; }
.steps .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; border: 1.5px solid var(--line); color: var(--ink-500); background: #fff; }
.steps .t { font-size: 13.5px; font-weight: 500; line-height: 1.25; }
.steps .h { display: block; font-size: 11.5px; color: var(--ink-400); font-weight: 400; margin-top: 1px; }
.steps a.is-current { background: var(--navy-50); color: var(--navy-800); }
.steps a.is-current .n { border-color: var(--navy-700); background: var(--navy-700); color: #fff; }
.steps a.is-done .n { border-color: #12A15E; background: #12A15E; color: #fff; }
.steps a.has-error .n { border-color: var(--danger-700); color: var(--danger-700); background: var(--danger-50); }

.wz-main { min-width: 0; }
.wz-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); }
.wz-card-head { padding: 20px 24px 4px; }
.wz-card-head .eyebrow { font-size: 12px; font-weight: 600; color: var(--navy-600); letter-spacing: .04em; text-transform: uppercase; }
.wz-card-head h2 { font-size: 18px; margin: 4px 0 2px; }
.wz-body { padding: 8px 24px 8px; }
.q { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.q:last-child { border-bottom: 0; }
.q-label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink-900); margin-bottom: 10px; }
.q-label .badge { font-weight: 500; }
.q-help { font-size: 12.5px; color: var(--ink-500); margin: -6px 0 10px; }
.q-sub { margin: 12px 0 0 0; padding: 14px 16px; border-left: 2px solid var(--navy-100); background: #FBFCFE; border-radius: 0 10px 10px 0; }
.q-inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.q-inline .field { margin: 0; }
[data-show-if][hidden], [data-hide-key][hidden] { display: none !important; }

.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: grid; gap: 3px; padding: 14px 14px 13px 42px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .12s, box-shadow .12s, background .12s; }
.choice:hover { border-color: #C3CBD8; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice::before { content: ""; position: absolute; left: 14px; top: 15px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #C3CBD8; background: #fff; }
.choice .ct { font-weight: 600; font-size: 13.5px; color: var(--ink-900); }
.choice .ch { font-size: 12.5px; color: var(--ink-500); }
.choice.is-checked { border-color: var(--navy-600); background: var(--navy-50); box-shadow: 0 0 0 1px var(--navy-600); }
.choice.is-checked::before { border: 5px solid var(--navy-700); }
.choice .pending { margin-top: 4px; }
/* v.17: sözleşme türü kartları — şablonu henüz olmayan türler soluk */
.type-cards { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.type-cards .choice.is-soon:not(.is-checked) .ct { color: var(--ink-600); }
.type-cards .choice.is-soon .ch { color: var(--warn-700, #9A6700); }
.tabs-row { flex-wrap: wrap; gap: 6px; }

.segmented { display: inline-flex; flex-wrap: wrap; padding: 3px; gap: 3px; background: var(--line-2); border-radius: 10px; }
.segmented label { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-600); cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented label:hover { color: var(--ink-900); }
.segmented label.is-checked { background: #fff; color: var(--navy-800); font-weight: 600; box-shadow: var(--shadow-sm); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.checkcard { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; font-size: 13.5px; }
.checkcard.is-checked { border-color: var(--navy-600); background: var(--navy-50); }

.firm-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #FBFCFE; margin-top: 12px; }
.firm-card dt { font-size: 11.5px; color: var(--ink-500); }
.firm-card dd { margin: 0; font-size: 13.5px; font-weight: 500; word-break: break-word; }
.firm-card .missing { color: var(--danger-700); font-weight: 500; }

.grid-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.grid-table th { font-size: 11.5px; font-weight: 600; color: var(--ink-500); background: #FAFBFC; text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.grid-table td { padding: 4px; border-bottom: 1px solid var(--line-2); }
.grid-table tr:last-child td { border-bottom: 0; }
.grid-table input, .grid-table select { height: 34px; border-color: transparent; box-shadow: none; background: transparent; padding: 0 8px; font-size: 13.5px; }
.grid-table input:hover, .grid-table select:hover { border-color: var(--line); }
.grid-table input:focus, .grid-table select:focus { border-color: var(--navy-500); background: #fff; }
.grid-table .num input, .grid-table input.num { text-align: right; font-variant-numeric: tabular-nums; }
.grid-table td.amount { text-align: right; padding: 0 10px; font-variant-numeric: tabular-nums; font-weight: 500; white-space: nowrap; }
.grid-table td.rm { width: 36px; text-align: center; }
.grid-table tfoot td { background: #FAFBFC; padding: 10px; font-weight: 600; }
.grid-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.total-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--navy-50); border: 1px solid var(--navy-100); }
.total-box .lbl { font-size: 13px; color: var(--navy-700); font-weight: 500; }
.total-box .val { font-size: 22px; font-weight: 650; color: var(--navy-800); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.computed { font-size: 13px; color: var(--ink-600); margin-top: 6px; }
.computed b { color: var(--ink-900); font-variant-numeric: tabular-nums; }

.wz-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line-2); background: #FCFCFD; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.issue-strip { margin: 0 24px 16px; padding: 12px 14px; border-radius: 10px; background: #FCFCFD; border: 1px solid var(--line); }

.advanced { margin-top: 8px; border: 1px dashed #D0D5DD; border-radius: 12px; }
.advanced > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; color: var(--ink-600); list-style: none; display: flex; align-items: center; gap: 8px; }
.advanced > summary::-webkit-details-marker { display: none; }
.advanced[open] > summary { border-bottom: 1px dashed #D0D5DD; }
.advanced .adv-body { padding: 14px; }
.ovr { display: grid; grid-template-columns: minmax(180px, 1.2fr) 120px 140px minmax(200px, 2fr); gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.ovr input { height: 34px; }

/* Sağ panel: "Bu seçim sözleşmede neyi değiştiriyor?" */
.impact { position: sticky; top: 80px; display: grid; gap: 12px; }
.impact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.impact-head { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.impact-head h3 { font-size: 13.5px; margin: 0; display: flex; align-items: center; gap: 8px; }
.impact-head p { font-size: 12px; color: var(--ink-500); margin: 2px 0 0; }
.impact-body { max-height: calc(100vh - 260px); overflow: auto; }
.clause { padding: 14px 16px; border-bottom: 1px solid var(--line-2); }
.clause:last-child { border-bottom: 0; }
.clause-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.clause-title { font-size: 13px; font-weight: 600; }
.clause-key { font-family: var(--mono); font-size: 11px; color: var(--ink-400); }
.clause-text { font-size: 12.5px; color: var(--ink-600); line-height: 1.6; max-height: 9.6em; overflow: hidden; position: relative; }
.clause-text.full { max-height: none; }
.clause-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2.4em; background: linear-gradient(transparent, #fff); }
.clause-text.full::after { display: none; }
.clause-text mark { background: #FFF3C4; color: var(--ink-900); padding: 0 2px; border-radius: 3px; }
.clause-omit { font-size: 12.5px; color: var(--ink-500); font-style: italic; }
.clause.is-pending { background: #FFFCF5; }
.clause.is-error { background: var(--danger-50); }

/* Özet ekranı */
.sum-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.sum-table { width: 100%; border-collapse: collapse; }
.sum-table th { width: 38%; text-align: left; font-weight: 500; color: var(--ink-500); font-size: 13px; padding: 10px 20px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.sum-table td { padding: 10px 20px 10px 0; border-bottom: 1px solid var(--line-2); font-weight: 500; }
.sum-table tr.group th { padding-top: 18px; color: var(--ink-900); font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.sel-list { list-style: none; margin: 0; padding: 0; }
.sel-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.sel-list li:last-child { border-bottom: 0; }
.generate-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; margin-top: 18px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
.generate-bar .msg { font-size: 13.5px; color: var(--ink-600); }

/* ── Hukuk ekranları ───────────────────────────────────────────────────── */
.legal-text { font-size: 13.5px; line-height: 1.7; color: var(--ink-700); }
.legal-text ol { margin: 6px 0; padding-left: 22px; }
.legal-text .var { background: #FFF3C4; color: var(--ink-900); padding: 0 3px; border-radius: 3px; font-weight: 500; }
.legal-text .ref { color: var(--navy-600); font-weight: 600; }
.outline { list-style: none; margin: 0; padding: 0; }
.outline > li { border-bottom: 1px solid var(--line-2); }
.outline summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; font-weight: 600; }
.outline summary::-webkit-details-marker { display: none; }
.outline .items { padding: 0 16px 12px 40px; display: grid; gap: 8px; }
.outline .it { display: grid; grid-template-columns: 46px 1fr; gap: 10px; font-size: 13px; color: var(--ink-600); }
.outline .it b { color: var(--navy-700); font-variant-numeric: tabular-nums; }
.outline .slot { padding: 8px 10px; border: 1px dashed var(--navy-100); background: var(--navy-50); border-radius: 8px; color: var(--navy-700); }
.cond-row { display: grid; grid-template-columns: 1.3fr 140px 1.3fr 36px; gap: 8px; align-items: center; margin-bottom: 8px; }

/* ── Sistem durumu ─────────────────────────────────────────────────────── */
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.status-item { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.status-item .k { font-size: 12px; color: var(--ink-500); }
.status-item .v { font-size: 15px; font-weight: 600; margin-top: 4px; display: flex; align-items: center; gap: 8px; }

/* ── Duyarlı düzen ─────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .wz { grid-template-columns: 220px minmax(0, 1fr); }
  .wz .impact-col { grid-column: 2; }
  .impact { position: static; }
}
@media (max-width: 980px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layout-2, .sum-grid { grid-template-columns: 1fr; }
  .wz { grid-template-columns: 1fr; }
  .wz .impact-col { grid-column: auto; }
  .steps { position: static; display: flex; overflow-x: auto; gap: 4px; }
  .steps a { grid-template-columns: 26px auto; white-space: nowrap; }
  .steps .h { display: none; }
  .firm-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .gs-topbar { gap: 10px; padding: 0 12px; }
  .gs-brand img { height: 34px; }
  .gs-apps { display: none; }
  .usermenu .who { display: none; }
  .gs-main { padding: 18px 14px 40px; }
  .gs-subnav { padding: 0 10px; }
  h1 { font-size: 20px; line-height: 28px; }
  .grid-2, .grid-3, .summary-list { grid-template-columns: 1fr; }
  .summary-list > div:nth-child(odd) { border-right: 0; }
  .ovr { grid-template-columns: 1fr 1fr; }
  /* Liste → kart */
  .table.responsive thead { display: none; }
  .table.responsive tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px; border-bottom: 1px solid var(--line-2); }
  .table.responsive td { display: block; padding: 0; border: 0; }
  .table.responsive td[data-m="hide"] { display: none; }
  .table.responsive td[data-m="full"] { grid-column: 1 / -1; }
  .table.responsive td.num { text-align: left; }
  .page-head .actions { width: 100%; }
  .page-head .actions .btn { flex: 1; }
}

/* ── Yardımcı sınıflar (satır içi stil yok — CSP) ───────────────────────── */
.m0 { margin: 0 !important; } .mt2 { margin-top: 2px; } .mt8 { margin-top: 8px; } .mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mb6 { margin-bottom: 6px; } .mb8 { margin-bottom: 8px; } .ml-auto { margin-left: auto; } .pl18 { padding-left: 18px; } .tag-gap { margin: 0 4px 4px 0; }
.w70 { width: 70px; } .w80 { width: 80px; } .w90 { width: 90px; } .w120 { width: 120px; } .w130 { width: 130px; } .w150 { width: 150px; }
.mw180 { max-width: 180px; } .mw220 { max-width: 220px; } .mw260 { max-width: 260px; } .mw280 { max-width: 280px; } .mw460 { max-width: 460px; } .mw520 { max-width: 520px; } .mw900 { max-width: 900px; }
.span2 { grid-column: span 2; } .span-all { grid-column: 1 / -1; } .center { text-align: center; } .ox-auto { overflow-x: auto; }
.scroll360 { max-height: 360px; overflow: auto; } .scroll420 { max-height: 420px; overflow: auto; }
.break { word-break: break-all; } .prewrap { white-space: pre-wrap; } .fw600 { font-weight: 600; }
.grow { flex: 1; } .min0 { min-width: 0; } .minw260 { min-width: 260px; } .items-stretch { align-items: stretch; }
.plain-link { color: inherit; text-decoration: none !important; display: block; } .plain-link:hover { border-color: #D0D5DD; box-shadow: var(--shadow-sm); }
.stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .stats.stats-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.group-row, .group-row td { background: #FAFBFC; font-weight: 600; font-size: 12.5px; color: var(--ink-600); }
@media (max-width: 980px) { .stats.stats-3, .stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wz-main.wz-wide { grid-column: 2 / 4; }
.grid-table td.desc-col { min-width: 240px; }
@media (max-width: 1280px) { .wz-main.wz-wide { grid-column: 2; } }
@media (max-width: 980px) { .wz-main.wz-wide { grid-column: auto; } }

/* ══ v0.2.1 — rafine görünüm: boşluk, başlık hiyerarşisi, kartlar ══════════════ */
body { background: #F4F6F9; font-size: 14.5px; }
.gs-topbar { height: 66px; padding: 0 24px; gap: 24px; background: linear-gradient(180deg, #213C6B 0%, var(--navy-700) 100%); box-shadow: 0 1px 0 rgba(0,0,0,.18), 0 6px 18px -10px rgba(20,38,74,.6); }
.gs-brand img { height: 48px; padding: 4px 10px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.gs-apps { padding: 4px; border-radius: 11px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); }
.gs-app { padding: 7px 16px; font-size: 13.5px; }
.usermenu > summary { padding: 6px 10px 6px 6px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); }
.avatar { width: 34px; height: 34px; background: linear-gradient(180deg, #fff, #E8EDF6); box-shadow: inset 0 0 0 1px rgba(31,56,100,.12); }
.usermenu .who b { font-size: 14px; letter-spacing: -.005em; }
.role-chip { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-top: 3px; border-radius: 999px; background: rgba(255,255,255,.14); color: #E6ECF7; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; }
.menu { min-width: 260px; border-radius: 14px; padding: 8px; }
.menu .menu-head { padding: 12px 12px 12px; }
.menu .menu-head .muted { display: block; margin-top: 2px; }

.gs-subnav { padding: 0 24px; gap: 6px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.gs-subnav a { padding: 16px 12px 14px; font-size: 14px; }
.gs-subnav a.is-active { border-bottom-width: 2.5px; }

.gs-main { padding: 36px 32px 72px; }
.eyebrow-top { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-600); margin-bottom: 6px; display: block; }
h1 { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.022em; }
h2 { font-size: 15.5px; font-weight: 650; letter-spacing: -.005em; }
.page-head { margin-bottom: 28px; align-items: flex-end; }
.page-head .sub { font-size: 15px; margin-top: 6px; color: var(--ink-500); }
.crumbs { margin-bottom: 12px; }

.card, .table-wrap, .wz-card, .impact-card, .steps, fieldset, .stat, .generate-bar {
  border-color: #E5E8EE; border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 16px -10px rgba(16,24,40,.10); }
.card-head { padding: 18px 22px; }
.card-body { padding: 22px; }
.card-pad { padding: 22px; }

.stats { gap: 16px; margin-bottom: 28px; }
.stat { padding: 20px 22px 24px; transition: transform .15s, box-shadow .15s, border-color .15s; }
.stat:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(16,24,40,.05), 0 12px 24px -12px rgba(16,24,40,.18); }
.stat .label { font-size: 13.5px; gap: 10px; }
.stat .ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--tone) 12%, #fff); color: var(--tone); }
.stat .ico .i { width: 16px; height: 16px; }
.stat .value { font-size: 34px; line-height: 40px; margin-top: 14px; font-weight: 700; }
.stat .desc { font-size: 13px; }
.stat .bar { height: 3px; }

.table-wrap .toolbar { padding: 14px 16px; }
.table th { font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; padding: 12px 16px; background: #F9FAFC; }
.table td { padding: 16px; }
.table .primary { font-size: 14.5px; }

.btn { height: 40px; border-radius: 9px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 10px; }
.btn-primary { background: linear-gradient(180deg, #27467A 0%, var(--navy-700) 100%); }
.btn-primary:hover { background: var(--navy-800); }
.btn-sm { height: 34px; }

.wz { gap: 24px; }
.wz-card-head { padding: 24px 28px 6px; }
.wz-card-head h2 { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; }
.wz-body { padding: 8px 28px 12px; }
.wz-foot { padding: 18px 28px; border-radius: 0 0 16px 16px; }
.q { padding: 20px 0; }
.q-label { font-size: 14.5px; }
.empty { padding: 56px 24px; }
.empty .ico { width: 52px; height: 52px; border-radius: 14px; }
.empty h3 { font-size: 16px; }
@media (max-width: 760px) { .gs-main { padding: 20px 14px 48px; } h1 { font-size: 22px; line-height: 30px; } .gs-brand img { height: 40px; } .gs-topbar { height: 60px; } }
.gs-brand img { height: 52px; padding: 3px 10px; }
.role-chip { justify-self: start; }
.stat .bar { position: relative; left: auto; right: auto; bottom: auto; margin-top: 16px; height: 4px; border-radius: 999px; background: #EEF1F5; overflow: hidden; }
.stat .bar > span { border-radius: 999px; }
.stat { padding-bottom: 20px; }

/* v0.3 — engel çözüm düğmesi */
.issues li .issue-fix { grid-column: 2; justify-self: start; white-space: nowrap; margin-top: 2px; }
.issues li .btn.issue-fix { height: 30px; font-size: 12.5px; }
/* v0.3 — fiyat tablosu dar sütunda sıkışmasın: yatay kaydırma, sütun alt genişlikleri */
[data-items] .ox-auto { border-radius: 10px; }
[data-items] .ox-auto > .grid-table { min-width: 940px; }
[data-items] .grid-table td.w90 { min-width: 84px; } [data-items] .grid-table td.w80 { min-width: 70px; }
[data-items] .grid-table td.w150 { min-width: 150px; } [data-items] .grid-table td.w120 { min-width: 110px; }
[data-items] .grid-table td.w130 { min-width: 120px; } [data-items] .grid-table td.amount { min-width: 120px; }
[data-paste-note] { align-self: center; }
.check input { flex: none; width: 16px; height: 16px; margin-top: 3px; }
.form-grid + section, .form-grid + .card, form.form-grid ~ section { margin-top: 32px; }
.danger-zone { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }

/* v0.4 — koşullu metin parçaları (hukuk ekranları) */
.legal-text .opt { border-bottom: 1.5px dashed #C2850C; background: #FFF8E6; border-radius: 3px; padding: 0 2px; }
.legal-text .opt-c { font-size: 10px; color: #8A5A00; margin-left: 3px; font-weight: 600; letter-spacing: .01em; }
.tag-cond { background: #FFF4DB; color: #8A5A00; border-color: #F5D58A; }
.legal-text p { white-space: pre-line; }
.file-btn { cursor: pointer; }
.file-btn input[type=file] { display: none; }
.mb16 { margin-bottom: 16px; } .w40 { width: 40px; }

/* v0.5 — sorumluluk matrisi: seçili hücre belirgin */
.mx-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mx-table th, .mx-table td { padding: 8px 10px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: middle; }
.mx-table thead th { background: #F4F6FA; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); }
.mx-table tbody th { font-weight: 600; font-size: 14px; color: var(--ink-900); width: 34%; }
.mx-table tr:last-child th, .mx-table tr:last-child td { border-bottom: 0; }
.mx-fixed th, .mx-fixed td { background: #FAFBFC; }
.mx-multi { display: flex; gap: 8px; flex-wrap: wrap; }
.mx-opt { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 14px 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--ink-600); transition: background .12s, border-color .12s, color .12s; }
.mx-opt input { position: absolute; opacity: 0; pointer-events: none; }
.mx-opt .mx-tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #C5CCD8; display: grid; place-items: center; background: #fff; }
.mx-opt .mx-tick .i { width: 13px; height: 13px; opacity: 0; color: #fff; }
.mx-opt:hover { border-color: var(--navy-500); color: var(--navy-700); }
.mx-opt.is-checked { background: var(--navy-700); border-color: var(--navy-700); color: #fff; box-shadow: 0 2px 6px -2px rgba(31,56,100,.45); }
.mx-opt.is-checked .mx-tick { background: #fff; border-color: #fff; }
.mx-opt.is-checked .mx-tick .i { opacity: 1; color: var(--navy-700); }
.mx-opt.is-fixed { cursor: default; background: #E8EDF6; border-color: #C9D3E6; color: var(--navy-700); }
.mx-opt.is-fixed .mx-tick { background: var(--navy-700); border-color: var(--navy-700); }
.mx-opt.is-fixed .mx-tick .i { opacity: 1; color: #fff; }
.mx-opt:focus-within { outline: 2px solid var(--navy-500); outline-offset: 2px; }
.mx-pending { margin-left: 4px; font-size: 10.5px; }
.mx-opt.is-checked .mx-pending { background: #FFF4DB; }
.pending-link { text-decoration: none; display: inline-flex; align-items: center; gap: 3px; }
.pending-link:hover { text-decoration: underline; }
.pending-link .i { width: 11px; height: 11px; }
.segmented label.is-checked { background: var(--navy-700); color: #fff; box-shadow: 0 2px 6px -2px rgba(31,56,100,.45); }
.btn-danger-ghost { color: var(--danger-700); background: transparent; border-color: transparent; }
.btn-danger-ghost:hover { background: #FDECEC; }
@media (max-width: 760px) { .mx-table tbody th { width: auto; } .mx-table thead { display: none; } .mx-table tr { display: grid; grid-template-columns: 1fr 1fr; } .mx-table tbody th { grid-column: 1 / -1; border-bottom: 0; padding-bottom: 0; } }
.mx-opt { position: relative; }
.mx-sum td { text-align: center; color: var(--navy-700); } .mx-sum th { font-weight: 500; }

/* v0.5 — takip: teminat, ihtar, dava */
.attention { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin-bottom: 20px; border-radius: 12px; background: #FFF6E5; border: 1px solid #F5D58A; color: #6B4700; text-decoration: none; font-size: 14px; }
.attention:hover { background: #FFEFCC; text-decoration: none; }
.attention .i { flex: none; }
.attention .ml-auto { margin-left: auto; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.trk-list { list-style: none; margin: 0; padding: 0; }
.trk-item { display: flex; align-items: center; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line-2); border-left: 3px solid transparent; }
.trk-item:first-child { border-top: 0; }
.trk-item.tone-danger { border-left-color: var(--danger-700); background: #FFF8F8; }
.trk-item.tone-warn { border-left-color: #D99A00; }
.trk-item form { margin: 0; }
.trk-add { border-top: 1px solid var(--line-2); }
.trk-add > summary { cursor: pointer; padding: 12px 20px; font-weight: 600; color: var(--navy-700); display: flex; align-items: center; gap: 6px; list-style: none; }
.trk-add > summary::-webkit-details-marker { display: none; }
.trk-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 20px 18px; }
.trk-form .span2 { grid-column: span 2; }
.trk-act { position: relative; }
.trk-act > summary { list-style: none; }
.trk-act > summary::-webkit-details-marker { display: none; }
.trk-act[open] .trk-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 360px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(16,24,40,.3); padding: 8px 0; }
.trk-pop .trk-form { padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.trk-pop > form:last-child { padding: 8px 14px 4px; }
@media (max-width: 760px) { .trk-form { grid-template-columns: 1fr; } .trk-form .span2 { grid-column: auto; } .trk-item { flex-wrap: wrap; } .trk-act[open] .trk-pop { width: min(360px, 90vw); } }
.mx-table td { white-space: normal; }
.mx-table td > .mx-pending, .mx-multi > .mx-pending { margin: 0 6px 0 2px; vertical-align: middle; }
.mx-multi { align-items: center; }
.mx-opt > span:last-child { white-space: nowrap; }
.mx-table td:nth-child(2) { width: 170px; }

/* v0.5.1 — sürüm göstergesi */
.gs-footer .ver { color: inherit; text-decoration: underline dotted; text-underline-offset: 3px; }
.menu .menu-head { position: relative; }
.ver-chip { position: absolute; top: 12px; right: 12px; font-size: 10.5px; font-weight: 600; color: var(--ink-500); background: #F1F3F7; border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.changelog { margin: 0; padding: 14px 22px 18px 40px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-700); }

/* v0.6 — onay akışı */
.queue { display: grid; gap: 10px; margin-bottom: 14px; }
.queue-item { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-radius: 12px; font-size: 15px; text-decoration: none; border: 1px solid; }
.queue-item b { font-size: 20px; }
.queue-item .i { margin-left: auto; }
.queue-item.tone-info { background: #EAF0FA; border-color: #C9D6EE; color: var(--navy-700); }
.queue-item.tone-warn { background: #FFF6E5; border-color: #F5D58A; color: #6B4700; }
.queue-item.tone-danger { background: #FDECEC; border-color: #F5C2C2; color: #7A1A1A; }
.queue-item:hover { text-decoration: none; filter: brightness(.98); }
.generate-bar form { margin: 0; }
.wf-panel { display: grid; gap: 10px; }
.wf-panel .wf-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wf-panel .wf-head .muted { margin-left: auto; }
.wf-panel form { margin: 0; }
.wf-panel .trk-add { border-top: 0; }
.wf-panel .trk-add > summary { padding: 6px 0; }
.wf-panel .trk-form { padding: 4px 0 0; }
.wf-card .card-body { padding: 18px 20px; }

/* v0.7 — sözleşme listesi: zebra satırlar, düzenli sütunlar, numara rozetleri, hazırlayan süzgeci */
.table-contracts { table-layout: fixed; }
.table-contracts th:nth-child(1) { width: 20%; } .table-contracts th:nth-child(2) { width: 18%; }
.table-contracts th:nth-child(3) { width: 15%; } .table-contracts th:nth-child(4) { width: 11.5%; }
.table-contracts th:nth-child(5) { width: 11.5%; } .table-contracts th:nth-child(6) { width: 9%; }
.table-contracts th:nth-child(7) { width: 15%; }
.table-contracts td { vertical-align: top; padding-top: 15px; padding-bottom: 15px; overflow-wrap: anywhere; }
.table-contracts td.num { overflow-wrap: normal; }
.table-contracts tbody tr:nth-child(even) td { background: #F5F7FA; }
.table-contracts tbody tr.clickable:hover td { background: #EAF0F8; }
.table-contracts tbody tr td:first-child { box-shadow: inset 3px 0 0 transparent; }
.table-contracts tbody tr.clickable:hover td:first-child { box-shadow: inset 3px 0 0 var(--navy-600); }
.table-contracts .primary { display: block; line-height: 1.35; }
.table-contracts .secondary { line-height: 1.4; margin-top: 3px; }
.cell-project { font-size: 13.5px; color: var(--ink-600); line-height: 1.45; }
.cell-project .tag { margin-bottom: 3px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nos { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; }
.no-takip, .no-official { font-family: var(--mono); font-size: 11.5px; line-height: 18px; padding: 0 6px; border-radius: 5px; white-space: nowrap; }
.no-takip { background: #EDF0F4; color: var(--ink-600); }
.no-official { background: #E3EAF6; color: #1F3A68; font-weight: 600; }
.filter-select select { height: 40px; min-width: 210px; max-width: 280px; }
.wz-head .meta, .contract-head .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.wz-head .meta { margin-top: 8px; }
.meta .i { width: 14px; height: 14px; vertical-align: -2px; }
b.ink { color: var(--ink-900); font-weight: 600; }
@media (max-width: 1100px) { .table-contracts { table-layout: auto; } }
@media (max-width: 760px) {
  .table-contracts tbody tr:nth-child(even) { background: #F5F7FA; }
  .table-contracts tbody tr td, .table-contracts tbody tr:nth-child(even) td, .table-contracts tbody tr.clickable:hover td { background: transparent; box-shadow: none; }
  .filter-select, .filter-select select { width: 100%; max-width: none; }
}

/* v0.8 — onay zinciri: 5 durum kartı, zincir göstergesi, avukat notu */
.stats { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wf-chain { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 4px 0 10px; padding: 0; }
.wf-chain li { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: #EEF1F5; color: var(--ink-500); }
.wf-chain li .i { width: 13px; height: 13px; }
.wf-chain li.is-done { background: #E6F4EC; color: #1E6B40; }
.wf-chain li.is-now { background: var(--navy-50); color: var(--navy-700); box-shadow: inset 0 0 0 1px var(--navy-100); }
.note-box { background: #FFF8E6; border: 1px solid #F3DFA6; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; }
.stack-sm { display: grid; gap: 8px; margin: 8px 0; }

/* v0.9 — sorumluluk matrisi önizlemesi (Ek-1 düzeninin ekran karşılığı) */
.rm-doc { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: auto; }
.rm-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 860px; }
.rm-table th { background: #1B3F8B; color: #fff; font-size: 11.5px; letter-spacing: .03em; font-weight: 600; padding: 8px 10px; border: 1px solid #2B5299; text-align: center; }
.rm-table thead tr:nth-child(2) th { background: #2B5299; font-weight: 500; text-transform: none; letter-spacing: 0; }
.rm-table td { padding: 7px 10px; border: 1px solid #DCE3EE; vertical-align: top; line-height: 1.45; }
.rm-table tbody tr:nth-child(even):not(.rm-sec) td { background: #F6F8FB; }
.rm-table tr.rm-sec td { background: #DCE5F2; color: #1B3F8B; font-weight: 700; font-size: 12.5px; letter-spacing: .03em; }
.rm-table .c-no { width: 44px; text-align: center; color: var(--ink-500); }
.rm-table .c-t { width: 88px; text-align: center; vertical-align: middle; }
.rm-table .c-note { width: 30%; font-size: 12px; color: var(--ink-600); }
.rm-tick { color: #1B3F8B; font-weight: 700; font-size: 15px; }
.rm-notes { margin: 0; padding: 14px 18px 16px 36px; font-size: 13px; border-top: 1px solid var(--line); }
.rm-doc.is-compact { max-height: 520px; }
.mx-pick { display: grid; gap: 8px; }
.mx-pick .mx-meta { font-size: 12.5px; color: var(--ink-500); }
/* v.15.3: matris kutucuğu */
.mx-toggle { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.mx-toggle input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.mx-toggle.is-on { border-color: var(--navy-600); background: var(--navy-50); box-shadow: 0 0 0 1px var(--navy-600); }
.mx-body { display: grid; gap: 8px; }
.mx-body[hidden] { display: none; }
/* Fiyat tablosu ek sütunları */
.xcol-head { display: inline-flex; align-items: center; gap: 4px; }
.xcol-head input { width: 110px; font-weight: 600; font-size: 12px; padding: 4px 6px; height: 28px; }
.xcol-head .btn { height: 26px; padding: 0 6px; }
/* 6 durum kartı */
.stats { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat .desc { min-height: 2.6em; }
/* Mobil onay: sözleşme kartında onay paneli en üstte */
@media (max-width: 900px) {
  .layout-2 { display: flex; flex-direction: column; }
  .layout-2 > .stack:last-child { order: -1; }
}
.rm-table th.c-no, .rm-table th.c-note { color: #fff; font-size: 11.5px; }

/* v0.10 — sorumluluk matrisi: satırlar arası belirgin ince çizgi, bölüm ayrımı */
.rm-table td { border: 1px solid #C9D3E6; }
.rm-table tbody tr:not(.rm-sec) td { border-bottom-color: #B4C2DB; }
.rm-table tr.rm-sec td { border-top: 2px solid #1B3F8B; border-bottom: 1px solid #9FB1D3; }
.rm-table tbody tr:not(.rm-sec):hover td { background: #EEF3FB; }
.rm-table .c-t { border-left-color: #D5DDEB; }
/* Hukuk düzeltmeleri */
.table-edits { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-edits th { text-align: left; font-size: 11.5px; color: var(--ink-500); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.table-edits td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.table-edits td.old { color: var(--ink-500); text-decoration: line-through; text-decoration-color: #C7CEDA; }
.table-edits td.new { color: #1E6B40; font-weight: 600; }
.q-computed { padding-top: 0; margin-top: -6px; }
@media (max-width: 760px) { .table-edits th:nth-child(4), .table-edits td:nth-child(4) { display: none; } }
/* v0.11 — hukuk aşamasında çözülecek kontroller (Teknik Ofisi durdurmaz) */
.lvl-hukuk { background: #EEF1F6; color: #4A5872; border: 1px solid #D5DBE6; }
.issues-later { margin-top: 10px; padding: 8px 10px 4px; border: 1px dashed #D5DBE6; border-radius: 10px; background: #FAFBFD; }
.issues-later-head { margin: 0 0 6px; font-size: 12px; font-weight: 600; color: #4A5872; display: flex; align-items: center; gap: 6px; }
.issues-later .issues li { color: var(--ink-600); }
/* v0.11 — fiyat tablosu: sütun harfleri, formül hücreleri, sütun toplamı */
.btn-xs { height: 22px; padding: 0 5px; font-size: 11px; }
.col-letter { display: inline-block; min-width: 16px; padding: 0 4px; margin-right: 3px; border-radius: 4px; background: #E8EEF8; color: #1B3F8B; font-size: 10.5px; font-weight: 700; text-align: center; vertical-align: 1px; }
.grid-table input.f-cell { background: #F3F8EE; color: #1E6B40; font-weight: 600; }
.grid-table input.f-err { background: #FDECEC; color: #B42318; }
.grid-table tfoot .sum-row td { font-weight: 700; color: #1B3F8B; border-top: 2px solid #C9D3E6; padding: 6px 8px; }
/* Serbest tablo (Excel'deki gibi) */
.free-table { border-collapse: collapse; font-size: 12.5px; margin: 6px 0 4px; }
.free-table th, .free-table td { border: 1px solid #C9D3E6; padding: 0; vertical-align: middle; }
.free-table thead th { background: #F2F5FA; color: var(--ink-500); font-weight: 600; font-size: 11px; padding: 3px 6px; white-space: nowrap; }
.free-table th.rn { background: #F2F5FA; color: var(--ink-500); font-size: 11px; font-weight: 600; padding: 2px 4px; white-space: nowrap; text-align: right; }
.free-table textarea { display: block; width: auto; min-width: 0; min-height: 30px; height: auto; font-size: 12.5px; border: 0; border-radius: 0; resize: vertical; padding: 5px 7px; font: inherit; line-height: 1.35; background: transparent; box-shadow: none; }
.free-table textarea:focus { outline: 2px solid #2B5299; outline-offset: -2px; background: #fff; }
.free-table tr.is-head td { background: #1B3F8B; }
.free-table tr.is-head textarea { color: #fff; font-weight: 600; text-align: center; }
.free-table tr.is-head textarea:focus { color: var(--ink-900); }
.free-empty { padding: 26px; border: 1px dashed #C9D3E6; border-radius: 12px; text-align: center; color: var(--ink-500); background: #FAFBFD; display: flex; gap: 8px; justify-content: center; align-items: center; }
.free-head select { height: 28px; padding: 0 6px; margin-left: 4px; }
.lvl-text-danger { color: var(--danger-700); }
/* v0.12 — sorumluluk matrisi düzenleyicisi (sözleşmeye özel / şablon taslağı) */
.mx-custom { margin-top: 10px; display: grid; gap: 8px; }
.mx-custom-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mx-legend { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mx-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid #D5DBE6; vertical-align: -1px; }
.mx-swatch.is-changed { background: #FFF1C7; } .mx-swatch.is-new { background: #DDF3E4; }
.mx-status { margin-left: auto; } .mx-status.is-error { color: var(--danger-700); }
.rm-table tbody tr.is-changed td { background: #FFF6DB !important; }
.rm-table tbody tr.is-new td { background: #E9F7EE !important; }
.mx-edit textarea { width: 100%; min-height: 0; height: auto; padding: 4px 6px; font-size: 12.5px; line-height: 1.35; border: 1px solid transparent; border-radius: 6px; background: transparent; resize: vertical; }
.mx-edit textarea:hover { border-color: #D5DBE6; } .mx-edit textarea:focus { border-color: #2B5299; background: #fff; outline: none; }
.mx-edit .rm-table td { vertical-align: middle; }
.mx-edit .rm-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1B3F8B; }
.mx-sec { display: flex; align-items: center; gap: 6px; }
.mx-sec input { height: 30px; font-weight: 700; color: #1B3F8B; background: transparent; border: 1px solid transparent; flex: 1; }
.mx-sec input:focus { background: #fff; border-color: #2B5299; }
.mx-bind { display: inline-block; margin-top: 3px; }
.mx-bound-tick { color: #9AA6BA; font-weight: 700; } .mx-bound-tick.on { color: #6C7A93; }
.mx-notes { padding: 10px 14px; border-top: 1px solid var(--line); }
.mx-notes ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.mx-notes li { display: flex; gap: 6px; align-items: flex-start; }
.mx-meta-form { margin-bottom: 10px; }
.mx-custom .rm-doc.mx-edit { max-height: 680px; overflow: auto; }
.mx-custom .rm-doc.mx-edit thead th { position: sticky; top: 0; z-index: 1; }

/* v0.13 — Şirket evrakları */
.evrak-list { list-style: none; margin: 0; padding: 0; }
.evrak-row { padding: 10px 0; }
.evrak-row form { margin: 0; }
.evrak-row .doc-ico { font-size: 9px; }
.evrak-group { margin: 0 0 4px; font-weight: 600; font-size: 13px; color: var(--navy-700); }
.trk-form .span-all { grid-column: 1 / -1; }
.evrak-row .break { word-break: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .evrak-row { flex-wrap: wrap; row-gap: 8px; } .evrak-row .grow { flex: 1 1 calc(100% - 48px); } .evrak-row > a.btn { margin-left: 48px; }
}

/* v0.14 — Sözleşmeler listesi: her satır aynı yükseklikte (en çok iki satır metin; uzun metin "…", tamamı üzerine gelince) */
@media (min-width: 761px) {
  .table-contracts { table-layout: fixed; width: 100%; }
  .table-contracts th:nth-child(1) { width: 19%; } .table-contracts th:nth-child(2) { width: 14%; } .table-contracts th:nth-child(3) { width: 20%; }
  .table-contracts th:nth-child(4) { width: 11%; } .table-contracts th:nth-child(5) { width: 13%; } .table-contracts th:nth-child(6) { width: 9%; }
  .table-contracts th:nth-child(7) { width: 14%; }
  .table-contracts td, .table-contracts th { padding-left: 12px; padding-right: 12px; }
  .table-contracts td { height: 76px; vertical-align: middle; }
  .table-contracts .ell { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .table-contracts .cell-title { font-weight: 500; color: var(--ink-900); }
  .table-contracts .cell-project .tag + .clamp2 { -webkit-line-clamp: 1; line-clamp: 1; }
  .table-contracts .cell-project .tag { display: inline-block; }
  .table-contracts .secondary .lvl { font-size: 11px; padding: 0 6px; }
}

/* v0.14 — sürüm numarası üst çubukta */
.gs-ver { color: rgba(255,255,255,.82); font-size: 12px; font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; text-decoration: none;
  border: 1px solid rgba(255,255,255,.28); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.gs-ver:hover { color: #fff; border-color: rgba(255,255,255,.6); }
@media (max-width: 560px) { .gs-ver { font-size: 11px; padding: 2px 7px; } .gs-ver .ver-word { display: none; } }

/* v0.14 — kaydetme onayı: sağ üstte yeşil bildirim, 5 sn sonra kaybolur */
.toast-saved { position: fixed; top: 78px; right: 20px; z-index: 60; display: flex; align-items: center; gap: 10px; max-width: min(420px, calc(100vw - 32px));
  background: #0F7B4A; color: #fff; font-weight: 600; font-size: 14px; padding: 12px 16px; border-radius: 10px;
  box-shadow: 0 10px 28px -8px rgba(15, 60, 40, .45); animation: toast-saved 5.5s ease forwards; pointer-events: none; }
.toast-saved .i { width: 18px; height: 18px; flex: none; stroke: #fff; }
@keyframes toast-saved { 0% { opacity: 0; transform: translateY(-8px); } 6% { opacity: 1; transform: none; } 85% { opacity: 1; } 100% { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .toast-saved { animation: none; } }
@media (max-width: 760px) { .toast-saved { top: 70px; right: 16px; left: 16px; max-width: none; } }
.table tr.row-saved td { background: #EAF7F0; transition: background 2s; }

/* v0.15 — Excel'den aynen: formüllü ve sayı hücreleri */
.free-table td.num textarea { text-align: right; font-variant-numeric: tabular-nums; }
.free-table textarea.f-cell { background: #F3F8EE; color: #1E6B40; font-weight: 600; }
.free-table textarea.f-cell:focus { background: #fff; color: var(--ink-900); font-weight: 500; text-align: left; font-family: var(--font-mono, ui-monospace, monospace); }
.free-table textarea.f-err { background: #FEECEB; color: #B42318; }
.callout-excel { display: flex; gap: 10px; align-items: flex-start; background: #EAF1FF; border: 1px solid #C9D9F7; color: var(--navy-700); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin: 6px 0 10px; }
.callout-excel .i { flex: none; margin-top: 2px; }
[data-free].is-full { position: fixed; inset: 10px; z-index: 70; background: #fff; border-radius: 12px; padding: 16px 18px; overflow: auto; box-shadow: 0 20px 60px -10px rgba(15, 30, 60, .45); }
[data-free].is-full .grid-actions { position: sticky; top: -16px; z-index: 2; background: #fff; padding: 8px 0; }
body.no-scroll { overflow: hidden; }

/* v0.15 — Sözleşme föyü (yazdırılabilir) */
/* v.15.15 — Ticari ve Teknik Şartlar Föyü (ekranda kâğıt görünümü, A4 baskı) */
body:has(> .fy) { background: #E9EDF3; }
.fy { padding: 18px 16px 48px; color: #14213A; }
.fy-bar { max-width: 210mm; margin: 0 auto 14px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fy-page { max-width: 210mm; margin: 0 auto; background: #fff; border-radius: 4px; box-shadow: 0 1px 2px rgba(15,23,42,.08), 0 10px 30px rgba(15,23,42,.10);
  padding: 15mm 14mm 12mm; font-size: 12.5px; line-height: 1.5; }
.fy-head { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; padding-bottom: 14px; border-bottom: 3px solid var(--navy-700); position: relative; }
.fy-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; border-bottom: 1px solid #C9D3E3; }
.fy-head img { height: 50px; width: auto; margin-top: 2px; }
.fy-eyebrow { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #5A6B86; font-weight: 600; }
.fy-title h1 { margin: 2px 0 4px; font-size: 21px; line-height: 1.2; color: var(--navy-700); letter-spacing: -.01em; }
.fy-sub { margin: 0; font-size: 13px; color: #33415C; }
.fy-meta { margin: 0; display: grid; grid-template-columns: auto auto; gap: 2px 10px; font-size: 11px; min-width: 190px; }
.fy-meta div { display: contents; }
.fy-meta dt { color: #6B7891; text-align: right; }
.fy-meta dd { margin: 0; font-weight: 600; color: #14213A; }
.fy-meta dd small { display: block; font-weight: 400; color: #6B7891; }
.fy-status { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 10.5px; font-weight: 650; color: var(--c, #5B6B82); background: color-mix(in srgb, var(--c, #5B6B82) 12%, #fff); border: 1px solid color-mix(in srgb, var(--c, #5B6B82) 35%, #fff); }

.fy-kpis { display: grid; grid-template-columns: 1.45fr 1fr .9fr 1.15fr 1.1fr; margin: 20px 0 6px; border: 1px solid #D5DEEA; border-radius: 8px; overflow: hidden; }
.fy-kpi { padding: 9px 12px; border-left: 1px solid #D5DEEA; display: flex; flex-direction: column; gap: 1px; min-width: 0; margin: 0; }
dl.fy-kpi { justify-content: flex-start; gap: 0; }
dl.fy-kpi dt { font-size: 10.5px; font-weight: 650; color: var(--navy-700); line-height: 1.3; }
dl.fy-kpi dd { margin: 0 0 6px; font-size: 12px; font-weight: 400; color: #14213A; line-height: 1.35; }
dl.fy-kpi dd:last-child { margin-bottom: 0; }
.fy-kpi:first-child { border-left: 0; }
.fy-kpi span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #6B7891; font-weight: 600; }
.fy-kpi b { font-size: 13.5px; color: #14213A; line-height: 1.3; }
.fy-kpi small { font-size: 10.5px; color: #6B7891; }
.fy-kpi.is-main { background: var(--navy-700); color: #fff; }
.fy-kpi.is-main span, .fy-kpi.is-main small { color: #C9D6EE; }
.fy-kpi.is-main b { color: #fff; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.fy-sec { margin: 18px 0 0; }
.fy-sec h2 { display: flex; align-items: center; gap: 9px; margin: 0 0 8px; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--navy-700);
  padding-bottom: 5px; border-bottom: 1px solid #C9D3E3; break-after: avoid; }
.fy-no { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--navy-700); color: #fff; font-size: 10.5px; letter-spacing: 0; flex: none; }
.fy-sec h3 { margin: 12px 0 5px; font-size: 11.5px; color: #33415C; font-weight: 650; break-after: avoid; }
.fy-sec.is-key { background: #FFFAEB; border: 1px solid #F3D88E; border-radius: 8px; padding: 10px 12px 12px; }
.fy-sec.is-key h2 { border-bottom-color: #F0D58A; }

.fy-kv { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; }
.fy-kv div { display: grid; grid-template-columns: 38% 1fr; gap: 8px; padding: 4px 6px; border-bottom: 1px solid var(--rowline, #D9E0EA); break-inside: avoid; }
.fy-kv div:nth-child(4n+3), .fy-kv div:nth-child(4n+4) { background: var(--zebra, #EEF3FB); }
.fy-kv dt { color: var(--navy-700); font-weight: 600; }
.fy-kv dd { margin: 0; font-weight: 400; color: #14213A; overflow-wrap: anywhere; }
.fy-sec.is-key .fy-kv { grid-template-columns: 1fr; }
.fy-sec.is-key .fy-kv div { grid-template-columns: 22% 1fr; background: transparent; }
.fy-sec.is-key .fy-kv div:nth-child(even) { background: rgba(240,213,138,.18); }

.fy-list { margin: 0; padding: 0; list-style: none; counter-reset: fy; border-top: 1px solid var(--rowline, #D9E0EA); }
.fy-list li { position: relative; padding: 4px 6px 4px 34px; border-bottom: 1px solid var(--rowline, #D9E0EA); break-inside: avoid; }
.fy-list li:nth-child(even) { background: var(--zebra, #EEF3FB); }
ol.fy-list li { counter-increment: fy; }
ol.fy-list li::before { content: counter(fy) "."; position: absolute; left: 8px; width: 20px; text-align: right; color: #5A6B86; font-variant-numeric: tabular-nums; }
ul.fy-list li::before { content: ""; position: absolute; left: 16px; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy-500, #3A5FA0); }
.fy-attn li::before { background: #C26A0A !important; }

.fy-tw { overflow-x: auto; }
.fy-table { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.fy-table th { background: var(--navy-700); color: #fff; font-weight: 600; text-align: center; padding: 6px 7px; font-size: 10.5px; letter-spacing: .02em; vertical-align: middle; border: 0; }
.fy-table thead tr + tr th { background: #2D4A7C; }
.fy-table td { padding: 5px 7px; border-bottom: 1px solid var(--rowline, #D9E0EA); vertical-align: middle; }
.fy-table td.m { text-align: center; }
.fy-table tbody tr:nth-child(even) td { background: var(--zebra, #EEF3FB); }
.fy-table tr { break-inside: avoid; }
.fy-table .n { text-align: right; white-space: nowrap; }
.fy-table .c { text-align: center; width: 1%; white-space: nowrap; }
.fy-table .nw { white-space: nowrap; }
.fy-table .b { font-weight: 650; }
.fy-table .r { text-align: right; }
.fy-table td.desc { min-width: 180px; }
.fy-table tfoot td { vertical-align: middle; background: #E3EAF6; border-top: 2px solid var(--navy-700); border-bottom: 0; font-weight: 700; color: var(--navy-700); padding: 7px; }
.fy-free td.note { color: #33415C; }
.fy-free.is-wide { font-size: 10px; }
.fy-free.is-wide th, .fy-free.is-wide td { padding: 4px 5px; }
.fy-small { margin-top: 8px; }
.fy-resp { margin: 0 0 10px; }
.fy-resp td:first-child { font-weight: 400; }
.fy-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--navy-700); }
.fy-dot.is-g { background: #138A52; }
.fy-src { margin: 6px 0 0; font-size: 10.5px; color: #6B7891; }
.fy-empty { margin: 0; padding: 8px 10px; background: #F6F8FB; border: 1px dashed #C9D3E3; border-radius: 6px; color: #6B7891; }
.fy-note { margin: 0; white-space: pre-wrap; padding: 8px 12px; border-left: 3px solid var(--navy-500, #3A5FA0); background: #F4F7FC; }

.fy-karar { margin-top: 22px; break-inside: avoid; }
.fy-checks p { margin: 7px 0; display: flex; gap: 6px; align-items: baseline; }
.fy-line { flex: 1; border-bottom: 1px dotted #8090A8; min-height: 1em; }
.fy-line.full { display: block; width: 100%; margin-top: 10px; }
.fy-sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 18px; }
.fy-sign div { border: 1px solid #C9D3E3; border-radius: 6px; min-height: 86px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.fy-sign span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #5A6B86; font-weight: 650; }
.fy-sign small { border-top: 1px solid #C9D3E3; padding-top: 4px; font-size: 11px; color: #33415C; min-height: 1.4em; }
.fy-foot { margin-top: 20px; padding-top: 8px; border-top: 1px solid #C9D3E3; font-size: 10px; color: #6B7891; text-align: center; }

@media (max-width: 760px) {
  .fy { padding: 10px 8px 32px; }
  .fy-bar .small { display: none; }
  .fy-page { padding: 18px 14px; }
  .fy-head { grid-template-columns: 1fr; gap: 10px; }
  .fy-meta { grid-template-columns: auto 1fr; }
  .fy-meta dt { text-align: left; }
  .fy-kpis { grid-template-columns: 1fr 1fr; }
  .fy-kpi.is-main { grid-column: 1 / -1; }
  .fy-kpi { border-left: 0; border-top: 1px solid #D5DEEA; }
  .fy-kpi:nth-child(odd):not(.is-main) { border-left: 1px solid #D5DEEA; }
  .fy-kpi.is-main { border-top: 0; }
  .fy-kv { grid-template-columns: 1fr; }
  .fy-kv div:nth-child(n) { background: transparent; }
  .fy-kv div:nth-child(even) { background: var(--zebra, #EEF3FB); }
  .fy-sign { grid-template-columns: 1fr; }
}
@media print {
  body { background: #fff !important; }
  .no-print, .gs-topbar, .gs-subnav, .gs-footer, .toast-saved { display: none !important; }
  @page { size: A4; margin: 12mm 11mm 12mm; }
  .fy { padding: 0; }
  .fy-page { max-width: none; box-shadow: none; border-radius: 0; padding: 0; font-size: 10.5px; }
  .fy-tw { overflow: visible; }
  .fy-table { font-size: 9.8px; }
  .fy-free.is-wide { font-size: 8.6px; }
  .fy-table thead { display: table-header-group; }
  .fy-table tfoot { display: table-row-group; }
  .fy-sec h2, .fy-kpis, .fy-head { break-inside: avoid; }
  .fy-sec.is-key { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.prep-note { display: flex; gap: 8px; align-items: flex-start; } .prep-note .i { flex: none; margin-top: 2px; }

/* v.15.1 — standart tabloda kaldırılan sütunlar */
.grid-table .is-hidden-col { display: none; }
.grid-table th .col-del { margin-left: 2px; padding: 0 3px; opacity: .55; }
.grid-table th .col-del:hover { opacity: 1; color: var(--danger, #B42318); }
.hidden-cols { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; background: #F6F8FB; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 12px; margin: 6px 0 8px; }
.hidden-cols .tag { display: inline-flex; align-items: center; gap: 4px; }

/* v.15.1 — fiyat tablosu ve matris ekranı (2. ve 4. adım) ekranın tamamını kullanır; etki paneli altta */
.gs-main.full { max-width: none; }
.gs-main.full .wz { grid-template-columns: 236px minmax(0, 1fr); }
.gs-main.full .wz-main.wz-wide { grid-column: 2; }
.impact-below { margin-top: 18px; }
.impact-below .impact-card { max-width: none; }
@media (max-width: 980px) { .gs-main.full .wz { grid-template-columns: minmax(0, 1fr); } .gs-main.full .wz-main.wz-wide { grid-column: auto; } }
.impact.impact-below { position: static; top: auto; }
/* v.15.1 — serbest tablo ekrana sığar (yatay kaydırma yalnız çok dar ekranda) */
.free-table.is-fit { table-layout: fixed; width: 100%; }
.free-table.is-fit col.rn-col { width: 46px; }
.free-table.is-fit textarea { width: 100%; resize: none; overflow: hidden; }
.free-table.is-fit td.num textarea:not(:focus) { white-space: nowrap; }

/* ── v.15.5 Telefon ve cep uygulaması (masaüstü görünümü değişmez) ───────────────── */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
a, button, label, summary, .choice, .mx-opt { -webkit-tap-highlight-color: rgba(31, 56, 100, .08); }
.gs-back { display: none; }
.gs-subnav .nav-i, .gs-subnav .nav-s { display: none; }
/* Sihirbaz dar ekranda tek sütun: adım şeridi ve tablolar sayfayı yana taşırmaz (iPhone'da sayfa küçülüp kayıyordu) */
@media (max-width: 980px) {
  .wz, .gs-main.full .wz { grid-template-columns: minmax(0, 1fr); }
  .wz > * { min-width: 0; }
  .steps { max-width: 100%; scrollbar-width: none; scroll-snap-type: x proximity; }
  .steps::-webkit-scrollbar { display: none; }
  .steps a { scroll-snap-align: center; }
}
@media (max-width: 760px) {
  .steps a:not(.is-current) .t { display: none; }
  .steps a { grid-template-columns: 26px; padding: 8px; }
  .steps a.is-current { grid-template-columns: 26px auto; padding-right: 12px; }
  .wz-card-head, .wz-body { padding-left: 16px; padding-right: 16px; }
  .wz-foot { padding: 14px 16px; }
  .ox-auto { -webkit-overflow-scrolling: touch; }
}
/* Dokunmatik ekran: iPhone, 16 pikselden küçük yazılı kutuya dokununca sayfayı büyütüyordu (gecikme ve kayma hissi) */
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]), select, textarea,
  .grid-table input, .grid-table select, .free-table textarea, .mx-edit textarea, .xcol-head input { font-size: 16px; }
  .btn { min-height: 42px; }
}
/* Ana ekrana eklenen uygulama (Safari → Ana Ekrana Ekle): durum çubuğu, geri düğmesi, alt sekme çubuğu */
@media (display-mode: standalone) {
  .gs-topbar { padding-top: env(safe-area-inset-top); height: calc(60px + env(safe-area-inset-top)); }
  .gs-back { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-left: -6px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; flex: none; }
  .gs-back .i { width: 20px; height: 20px; }
  .gs-footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  body { overscroll-behavior-y: none; }
}
@media (display-mode: standalone) and (max-width: 760px) {
  .gs-topbar { height: calc(56px + env(safe-area-inset-top)); gap: 8px; }
  .gs-brand img { height: 34px; }
  .gs-subnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; gap: 0; padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); border-bottom: 0; background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 16px -8px rgba(16, 24, 40, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .gs-subnav a { flex: 1 0 64px; flex-direction: column; gap: 2px; padding: 6px 2px; border-bottom: 0; border-radius: 10px; font-size: 10.5px; font-weight: 500; }
  .gs-subnav a.is-active { color: var(--navy-700); background: var(--navy-50); border-bottom: 0; }
  .gs-subnav .nav-i { display: block; width: 22px; height: 22px; }
  .gs-subnav .nav-l, .gs-subnav .sep, .gs-subnav .group-label { display: none; }
  .gs-subnav .nav-s { display: block; white-space: nowrap; }
  .gs-main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .gs-footer { display: none; }
  .toast-saved { top: calc(66px + env(safe-area-inset-top)); }
}
@media (max-width: 760px) {
  .generate-bar { flex-direction: column; align-items: stretch; }
  .generate-bar form, .generate-bar .btn { width: 100%; }
  .generate-bar .btn-lg { white-space: normal; height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
}
.trk-act:not([open]) .trk-pop { display: none; }

/* ── v.15.6 Telefon: iOS tarzı ana sayfa (masaüstü değişmez) ─────────────────── */
.table-contracts td.m-card { display: none; }
@media (max-width: 760px) {
  .gs-main { background: #F2F2F7; }
  /* Büyük başlık + Yeni düğmesi */
  .page-head { flex-wrap: nowrap; align-items: center; margin: 4px 0 12px; gap: 12px; }
  .page-head .eyebrow-top, .page-head .sub { display: none; }
  .page-head h1 { font-size: 30px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
  .page-head .actions { width: auto; flex: none; }
  .page-head .actions .btn-lg { height: 36px; min-height: 36px; padding: 0 14px; font-size: 15px; font-weight: 600; border-radius: 999px; gap: 6px; box-shadow: none; }
  .page-head .actions .btn-lg .i { width: 15px; height: 15px; }
  /* Durum kartları → 3×2 renkli düğme (tek bakışta hepsi; dokununca süzer). Ad ve sayı aynı boyutta. */
  .stats, .stats.stats-3, .stats.stats-4 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin: 0 0 16px; padding: 0; overflow: visible; }
  .stats.stats-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { --c: var(--tone, #667085); position: relative; display: flex; flex-direction: column; justify-content: center; gap: 3px; min-width: 0; min-height: 66px; padding: 10px 11px;
    border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--c) 10%, #fff) 100%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 1px 2px rgba(16, 24, 40, .06), 0 3px 8px -3px color-mix(in srgb, var(--c) 35%, transparent);
    overflow: hidden; transition: transform .08s, box-shadow .08s; }
  .stat:hover { transform: none; }
  .stat:active { transform: translateY(1px); box-shadow: 0 1px 1px rgba(16, 24, 40, .08); }
  .stat .label { order: 1; margin: 0; padding-right: 0; font-size: 14px; line-height: 18px; letter-spacing: -.01em; font-weight: 600; color: color-mix(in srgb, var(--c) 75%, #101828); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; gap: 0; display: block; }
  .stat .value { order: 2; margin: 0; font-size: 14px; line-height: 22px; font-weight: 700; letter-spacing: 0; color: var(--c); }
  .stat .ico { position: absolute; bottom: 9px; right: 9px; width: 22px; height: 22px; border-radius: 7px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
  .stat .ico .i { width: 12px; height: 12px; }
  .stat .label > .dot { display: none; }
  .stat .desc, .stat .bar { display: none; }
  .stat.is-active { background: var(--c); border-color: var(--c); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .18); }
  .stat.is-active .value, .stat.is-active .label { color: #fff; }
  .stat.is-active .ico { background: rgba(255, 255, 255, .22); color: #fff; }
  /* Her duruma kendi hafif rengi */
  .stat.st-taslak { --c: #5B6B82; } .stat.st-to_onayinda { --c: #4F5BD5; } .stat.st-hukukta { --c: #2F6FDB; }
  .stat.st-musavirde { --c: #7A4FD1; } .stat.st-onayda { --c: #C26A0A; } .stat.st-imzada { --c: #138A52; }
  /* Arama: gri dolgulu iOS alanı; liste ayrı beyaz grup */
  .table-wrap.is-ios-list { background: transparent; border: 0; box-shadow: none; overflow: visible; }
  .is-ios-list .toolbar { gap: 8px; padding: 0 0 10px; border: 0; background: transparent; }
  .is-ios-list .toolbar .seg { display: none; }
  .toolbar .search { max-width: none; min-width: 0; flex: 1 1 100%; }
  .toolbar .search input, .filter-select select { height: 38px; border: 0; border-radius: 10px; background: rgba(118, 118, 128, .12); box-shadow: none; }
  .toolbar .search .i { top: 11px; }
  .filter-select { flex: 1 1 100%; }
  /* Sözleşme satırları: tek hücreli iOS listesi */
  .table-contracts { display: block; background: #fff; border-radius: 12px; overflow: hidden; }
  .table-contracts tbody { display: block; }
  .table.responsive.table-contracts tbody tr, .table.responsive.table-contracts tbody tr:nth-child(even) { display: block; position: relative; padding: 12px 34px 12px 16px; border: 0; background: #fff; }
  .table-contracts tbody tr + tr::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid rgba(60, 60, 67, .22); }
  .table-contracts tbody tr:active { background: #E5E5EA; }
  .table-contracts tbody td { display: none !important; }
  .table-contracts tbody td.m-card { display: block !important; padding: 0 !important; background: transparent !important; box-shadow: none !important; }
  .mc-top { display: flex; align-items: baseline; gap: 10px; }
  .mc-firm { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 21px; color: var(--ink-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mc-amt { flex: none; font-size: 15px; font-weight: 600; color: var(--ink-900); font-variant-numeric: tabular-nums; }
  .mc-amt small { font-size: 12px; font-weight: 500; color: var(--ink-500); }
  .mc-title { margin-top: 2px; font-size: 15px; line-height: 20px; color: #3C3C43; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mc-title.is-muted { color: #8E8E93; }
  .mc-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: #8E8E93; white-space: nowrap; overflow: hidden; }
  .mc-status { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--tone, #8E8E93); }
  .mc-status .dot { width: 7px; height: 7px; }
  .mc-chip { flex: none; padding: 1px 6px; border-radius: 5px; background: #EEF0F4; color: var(--ink-600); font-weight: 600; font-size: 11.5px; }
  .mc-no { font-family: var(--mono); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
  .mc-time { margin-left: auto; flex: none; }
  .mc-chev { position: absolute; right: 12px; top: 50%; margin-top: -8px; color: #C7C7CC; width: 16px; height: 16px; }
  .attention { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; }
}
@media (max-width: 760px) {
  /* Diğer listeler (taşeron, proje, takip…): beyaz grup içinde sade satırlar */
  .table.responsive:not(.table-contracts) tbody tr { gap: 2px 12px; padding: 12px 16px; border-bottom: .5px solid rgba(60, 60, 67, .18); background: #fff; }
  .table.responsive:not(.table-contracts) tbody tr:nth-child(even), .table.responsive:not(.table-contracts) tbody tr:nth-child(even) td { background: #fff; }
  .table.responsive:not(.table-contracts) tbody tr:last-child { border-bottom: 0; }
  .table.responsive:not(.table-contracts) tbody td { font-size: 13.5px; color: #6B7280; min-width: 0; overflow-wrap: anywhere; }
  .table.responsive:not(.table-contracts) tbody td:first-child { font-size: 16px; font-weight: 600; color: var(--ink-900); }
  .table.responsive:not(.table-contracts) tbody td:first-child a { color: inherit; }
  .table.responsive:not(.table-contracts) tbody tr:active { background: #F2F2F7; }
}
@media (max-width: 760px) {
  .table.responsive:not(.table-contracts) tbody td { background: transparent !important; box-shadow: none !important; }
  .card-head { flex-wrap: wrap; row-gap: 4px; padding: 14px 16px; }
  .card-head h2, .card-head h3 { white-space: nowrap; }
}
@media (max-width: 760px) {
  /* Sözleşme satırları sırayla beyaz / açık gri: her sözleşme ayrı görünür */
  .table.responsive.table-contracts tbody tr:nth-child(even) { background: #EEF3FB; }
  .table.responsive.table-contracts tbody tr + tr::before { border-top-color: rgba(60, 60, 67, .12); left: 0; }
  .table.responsive.table-contracts tbody tr:active { background: #DDE7F6; }
}
@media (max-width: 760px) {
  .mc-status.st-taslak { --tone: #5B6B82; } .mc-status.st-to_onayinda { --tone: #4F5BD5; } .mc-status.st-hukukta { --tone: #2F6FDB; }
  .mc-status.st-musavirde { --tone: #7A4FD1; } .mc-status.st-onayda { --tone: #C26A0A; } .mc-status.st-imzada { --tone: #138A52; }
}

/* v.15.10: sayfa geçişinde üstte ince ilerleme çubuğu + dokunma anında basılı görünüm */
html::before { content: ""; position: fixed; top: env(safe-area-inset-top, 0); left: 0; height: 3px; width: 0; z-index: 1000; background: linear-gradient(90deg, #5B8DEF, #9DB8F5); opacity: 0; pointer-events: none; }
html.is-loading::before { opacity: 1; animation: gc-load 1.6s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes gc-load { 0% { width: 0; } 30% { width: 45%; } 100% { width: 88%; } }
@media (prefers-reduced-motion: reduce) { html.is-loading::before { animation: none; width: 60%; } }
@media (pointer: coarse) {
  .btn:active, .gs-subnav a:active, .steps a:active, .choice:active, .mx-opt:active { opacity: .7; }
}

/* v.15.10: durum grubu etiketi (Hukuk: Avukatta / Hukuk Müşavirinde) */
.stat .grp { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 5px; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; vertical-align: 1px; background: color-mix(in srgb, var(--tone, #667085) 14%, #fff); color: var(--tone, #667085); }
/* Yerinde süzme: satır renkleri JS ile (gizli satırlar sayılmaz) */
.table-contracts.js-zebra tbody tr:nth-child(even) td { background: transparent; }
.table-contracts.js-zebra tbody tr.is-alt td { background: #F5F7FA; }
.table-contracts tbody tr[hidden] { display: none !important; }
.js-empty { padding: 28px 16px; margin: 0; }
@media (max-width: 760px) {
  .stat .label { white-space: normal; display: block; overflow: visible; }
  .stat .lbl { display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .stat .grp { display: block; width: max-content; margin: 0 0 3px; padding: 0 5px; font-size: 9.5px; line-height: 15px; background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c); }
  .stat.is-active .grp { background: rgba(255, 255, 255, .25); color: #fff; }
  .stat { justify-content: flex-end; min-height: 72px; }
  .table.responsive.table-contracts.js-zebra tbody tr:nth-child(even) { background: #fff; }
  .table.responsive.table-contracts.js-zebra tbody tr.is-alt { background: #EEF3FB; }
  .js-empty { background: #fff; border-radius: 12px; margin-top: 0; }
}
/* Aşağı çekip yenile göstergesi */
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 64px); z-index: 60; width: 34px; height: 34px; margin-top: -40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(16, 24, 40, .18); display: grid; place-items: center; opacity: 0; transform: translate(-50%, 0); pointer-events: none; }
.ptr svg { width: 18px; height: 18px; fill: none; stroke: var(--navy-600); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ptr.is-ready svg { stroke: var(--navy-800); }
.ptr.is-spinning { opacity: 1 !important; animation: ptr-spin .7s linear infinite; }
@keyframes ptr-spin { to { transform: translate(-50%, 76px) rotate(360deg); } }
@media (min-width: 761px) {
  .stat .grp { position: absolute; top: 18px; right: 16px; margin: 0; }
  .stat:has(.grp) .label { padding-right: 58px; }
}

/* v.15.11: telefonda eşit kutucuklar — büyük başlık + küçük açıklama + sayı; altısı aynı boy ve aynı hizada */
.stat .t-big, .stat .t-small { display: none; }
@media (max-width: 760px) {
  .stats, .stats.stats-3 { grid-auto-rows: 1fr; }
  .stat { justify-content: flex-start; min-height: 0; height: 100%; padding: 11px 11px 10px; gap: 0; }
  .stat .grp, .stat .lbl { display: none !important; }
  .stat .label { display: block; padding: 0; overflow: hidden; }
  .stat .t-big { display: block; font-size: 15px; line-height: 19px; font-weight: 700; letter-spacing: -.01em; color: color-mix(in srgb, var(--c) 80%, #101828); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat .t-small { display: block; margin-top: 1px; font-size: 12px; line-height: 16px; font-weight: 500; color: color-mix(in srgb, var(--c) 70%, #667085); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat .value { margin-top: 8px; font-size: 15px; line-height: 22px; }
  .stat .ico { bottom: 10px; right: 10px; }
  .stat.is-active .t-big, .stat.is-active .t-small { color: #fff; }
}

/* v.15.11: bilgisayarda da durum kartları aynı renk ailesinde; başlık "Hukuk" + açıklama "Avukatta" (yerleşim aynı) */
.stat.st-taslak, .mc-status.st-taslak { --c: #5B6B82; } .stat.st-to_onayinda, .mc-status.st-to_onayinda { --c: #4F5BD5; } .stat.st-hukukta, .mc-status.st-hukukta { --c: #2F6FDB; }
.stat.st-musavirde, .mc-status.st-musavirde { --c: #7A4FD1; } .stat.st-onayda, .mc-status.st-onayda { --c: #C26A0A; } .stat.st-imzada, .mc-status.st-imzada { --c: #138A52; }
.badge-status.st-taslak { --tone: #5B6B82; } .badge-status.st-to_onayinda { --tone: #4F5BD5; } .badge-status.st-hukukta { --tone: #2F6FDB; }
.badge-status.st-musavirde { --tone: #7A4FD1; } .badge-status.st-onayda { --tone: #C26A0A; } .badge-status.st-imzada { --tone: #138A52; }
@media (min-width: 761px) {
  .stat[class*="st-"] { border-color: color-mix(in srgb, var(--c) 28%, #fff); background: linear-gradient(180deg, #fff 0%, color-mix(in srgb, var(--c) 7%, #fff) 100%); }
  .stat[class*="st-"] .ico { background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c); }
  .stat[class*="st-"] .value { color: color-mix(in srgb, var(--c) 85%, #101828); }
  .stat[class*="st-"] .bar > span { background: var(--c); }
  .stat[class*="st-"].is-active { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 8px 20px -12px var(--c); }
  .stat[class*="st-"] .grp, .stat[class*="st-"] .lbl { display: none; }
  .stat[class*="st-"] .label { padding-right: 0; align-items: center; }
  .stat[class*="st-"] .t-big { display: block; font-size: 14px; line-height: 18px; font-weight: 700; color: color-mix(in srgb, var(--c) 80%, #101828); }
  .stat[class*="st-"] .t-small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: color-mix(in srgb, var(--c) 65%, #667085); }
  .stat[class*="st-"] .label .ico + .t-big { margin-top: 0; }
}
@media (min-width: 761px) {
  .stat[class*="st-"] .label { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 10px; row-gap: 0; }
  .stat[class*="st-"] .label .ico { grid-row: 1 / 3; align-self: center; }
}
/* v.15.12: büyük başlık iki satıra kadar sarılır (Teknik Ofis Şefinde, İmza Sürecinde); metin alanı sabit yükseklik → sayılar aynı hizada */
@media (max-width: 760px) {
  .stat .label { min-height: 38px; }
  .stat .t-big { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
}
@media (min-width: 761px) { .stat[class*="st-"] .label { min-height: 36px; } }

/* ── v.15.13 Bütün listelerde sıralı satır rengi + belirgin ince çizgi (sorumluluk matrisi hariç) ── */
:root { --zebra: #EEF3FB; --zebra-hover: #E6EDF8; --rowline: #D9E0EA; }
.table td, .table-plain td, .table-edits td, .sum-table:not(.mx-sum) td, .sum-table:not(.mx-sum) th, .grid-table td { border-bottom-color: var(--rowline); }
.table tbody tr:nth-child(even) td, .table-plain tbody tr:nth-child(even) td, .table-edits tbody tr:nth-child(even) td,
.grid-table tbody tr:nth-child(even) td, .sum-table:not(.mx-sum) tr:nth-child(even):not(.group) td, .sum-table:not(.mx-sum) tr:nth-child(even):not(.group) th,
.free-table tbody tr:not(.is-head):nth-child(even) td { background: var(--zebra); }
.table tbody tr.clickable:hover td { background: var(--zebra-hover); }
.table-contracts.js-zebra tbody tr:nth-child(even) td { background: transparent; }
.table-contracts.js-zebra tbody tr.is-alt td { background: var(--zebra); }
.table-contracts.js-zebra tbody tr.clickable:hover td { background: var(--zebra-hover); }
@media (max-width: 760px) {
  .table.responsive:not(.table-contracts) tbody tr { border-bottom: 1px solid var(--rowline); }
  .table.responsive:not(.table-contracts) tbody tr:nth-child(even), .table.responsive:not(.table-contracts) tbody tr:nth-child(even) td { background: var(--zebra); }
  .table.responsive.table-contracts tbody tr + tr::before { border-top: 1px solid var(--rowline); left: 0; }
  .table.responsive.table-contracts.js-zebra tbody tr.is-alt { background: var(--zebra); }
}

/* v.15.14: satır / sütun taşıma düğmeleri */
.btn-xs.mv { width: 22px; padding: 0; justify-content: center; color: var(--ink-500); }
.btn-xs.mv .i { width: 14px; height: 14px; }
.btn-xs.mv:disabled { opacity: .25; }
.grid-table td.rm { width: 96px; white-space: nowrap; }
.row-tools { display: inline-flex; align-items: center; gap: 1px; }
.xcol-head .btn-xs.mv { width: 20px; }
.free-table.is-fit col.rn-col { width: 54px; }
.free-table th.rn .rn-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 0; margin-top: 2px; }
.free-table th.cl .cl-tools { display: inline-flex; gap: 0; vertical-align: middle; }
.grid-table tbody tr.row-moved td { background: #DCEBFF !important; transition: background .6s; }
@media (pointer: coarse) { .btn-xs.mv { width: 30px; height: 30px; min-height: 30px; } .btn-xs.mv .i { width: 16px; height: 16px; } }
.fy-status.st-taslak { --c: #5B6B82; } .fy-status.st-to_onayinda { --c: #4F5BD5; } .fy-status.st-hukukta { --c: #2F6FDB; }
.fy-status.st-musavirde { --c: #7A4FD1; } .fy-status.st-onayda { --c: #C26A0A; } .fy-status.st-imzada { --c: #138A52; }
.fy-table tbody tr.is-total td { background: #E3EAF6; border-top: 2px solid var(--navy-700); font-weight: 700; color: var(--navy-700); }

/* v.15.16 — Sözleşmeler listesi (bilgisayar): sütunlar arasında çok ince çizgi, başlıklar ortalı, bedel sığar ve diğer yazılarla aynı biçimde */
@media (min-width: 761px) {
  .table-contracts th:nth-child(1) { width: 18%; } .table-contracts th:nth-child(2) { width: 13%; } .table-contracts th:nth-child(3) { width: 19%; }
  .table-contracts th:nth-child(4) { width: 13.5%; } .table-contracts th:nth-child(5) { width: 12.5%; } .table-contracts th:nth-child(6) { width: 9.5%; }
  .table-contracts th:nth-child(7) { width: 14.5%; }
  .table.table-contracts th, .table.table-contracts th.num { text-align: center; }
  .table-contracts th + th, .table-contracts td + td { border-left: 1px solid #E7ECF3; }
  .table.table-contracts td.num { text-align: center; font-size: 14px; font-weight: 500; color: var(--ink-900); font-variant-numeric: normal; letter-spacing: 0; }
  .table-contracts td.num .muted { color: var(--ink-900); font-weight: 500; }
  .table-contracts td:nth-child(6) { text-align: center; }
}

/* v.15.17 — Sözleşmeler listesi (bilgisayar): sütunlar içeriğe göre kendiliğinden genişler, hiçbir metin kesilmez ("…" yok); uzun metin alt satıra geçer */
@media (min-width: 761px) {
  .table-contracts { table-layout: auto; }
  .table-contracts th:nth-child(n) { width: auto; }
  .table-contracts td { height: auto; min-height: 76px; padding-top: 14px; padding-bottom: 14px; }
  .table-contracts .ell { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
  .table-contracts .clamp2, .table-contracts .cell-project .tag + .clamp2 { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
  .table-contracts .cell-project .tag { margin-bottom: 2px; }
  .table-contracts td.num, .table-contracts td:nth-child(6), .table-contracts .badge, .table-contracts .no-takip, .table-contracts .no-official { white-space: nowrap; }
  .table-contracts td:nth-child(1) { min-width: 180px; }
  .table-contracts td:nth-child(3) { min-width: 200px; }
  .table-contracts td:nth-child(7) { min-width: 185px; }
  .table-contracts td:nth-child(2) { min-width: 140px; }
}

/* v.15.18 — Sözleşmeler listesi (bilgisayar): bütün satırlar eşit yükseklikte (92 px). Sütun genişlikleri sabit oranlı ve içeriğe göre
   ayarlı: durum etiketi ve bedel tek satırda sığar; diğer hücrelerde başlık en çok 2, alt bilgi en çok 2 satır (tamamı üzerine gelince). Durum kutucukları biraz küçüldü. */
@media (min-width: 761px) {
  .table-contracts td { height: 92px; padding: 8px 10px; vertical-align: middle; }
  .table-contracts th { padding-left: 10px; padding-right: 10px; }
  .table-contracts td:nth-child(n) { min-width: 0; }
  .table-contracts td > .primary, .table-contracts td > .cell-title, .table-contracts td > .small.ell, .table-contracts .cell-project .clamp2,
  .table-contracts .cell-project .tag + .clamp2, .table-contracts td > .secondary {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; white-space: normal; overflow-wrap: anywhere; }
  .table-contracts td > .secondary.nos { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: unset; line-clamp: none; }
  .table-contracts .nos .no-official + .no-takip { display: none; }
  .table-contracts td > .primary { font-size: 13.5px; line-height: 18px; -webkit-line-clamp: 3; line-clamp: 3; }
  .table-contracts td > .cell-title, .table-contracts td > .small.ell, .table-contracts td > .small { font-size: 13.5px; line-height: 18px; }
  .table-contracts .cell-project .clamp2 { font-size: 13.5px; line-height: 18px; -webkit-line-clamp: 3; line-clamp: 3; }
  .table-contracts .cell-project .tag + .clamp2 { -webkit-line-clamp: 2; line-clamp: 2; }
  .table-contracts td > .secondary { font-size: 12px; line-height: 16px; margin-top: 2px; }
  .table-contracts td.num { font-size: 13.5px; }
}
@media (min-width: 1101px) {
  .table-contracts { table-layout: fixed; }
  .table-contracts th:nth-child(1) { width: 15.5%; } .table-contracts th:nth-child(2) { width: 11.5%; } .table-contracts th:nth-child(3) { width: 21%; }
  .table-contracts th:nth-child(4) { width: 12%; } .table-contracts th:nth-child(5) { width: 12.5%; } .table-contracts th:nth-child(6) { width: 12.5%; }
  .table-contracts th:nth-child(7) { width: 15%; }
}
@media (min-width: 761px) {
  .stats { gap: 12px; margin-bottom: 22px; }
  .stat { padding: 13px 16px 13px; }
  .stat .label { font-size: 13px; gap: 8px; }
  .stat .ico { width: 26px; height: 26px; border-radius: 8px; }
  .stat .ico .i { width: 14px; height: 14px; }
  .stat .value { font-size: 28px; line-height: 32px; margin-top: 8px; }
  .stat .desc { font-size: 12.5px; min-height: 2.5em; line-height: 1.25; }
  .stat .bar { margin-top: 10px; height: 3px; }
}

/* v.15.19 — Tablolar için genel kural (bilgisayar; sözleşme listesi ve föy kendi düzeninde, sorumluluk matrisi ve düzenlenebilir tablolar hariç):
   başlıklar yatay ve dikey ortalı, sütunlar arasında çok silik çizgi, genişlik içeriğe göre (app.js), hücre en çok 3 satır, satırlar eşit. */
@media (min-width: 761px) {
  .table:not(.table-contracts) thead th, .table-plain thead th, .table-edits thead th { text-align: center; vertical-align: middle; }
  .table:not(.table-contracts) tr > :is(th, td) + :is(th, td), .table-plain tr > :is(th, td) + :is(th, td), .table-edits tr > :is(th, td) + :is(th, td) {
    border-left: 1px solid rgba(16, 24, 40, .06); }
  table.is-fit { table-layout: fixed; width: 100%; }
  table.is-fit thead th { white-space: normal; }
  table.is-fit td { vertical-align: middle; overflow-wrap: anywhere; word-break: normal; }
  table.is-fit .ell { white-space: normal; overflow: visible; text-overflow: clip; }
  .cx { max-height: calc(3 * 1.5em); overflow: hidden; line-height: 1.5; }
  .cx.is-clipped { cursor: help; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25em), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 1.25em), transparent); }
  tr:not(.clickable):not([data-href]) .cx.is-clipped { cursor: zoom-in; }
  .cx.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; cursor: zoom-out; }
  .cx-probe { position: absolute; left: 0; top: 0; visibility: hidden; pointer-events: none; width: max-content; height: auto; }
  .cx-probe.is-min { width: min-content; }
  .cx-probe .ell { white-space: normal; overflow: visible; }
}

/* v.15.20 — Telefonda "Onay sırasında yapılan düzeltmeler": tablo yerine her düzeltme bir kart (Alan başlık; Eski, Yeni, Düzelten alt alta) */
@media (max-width: 760px) {
  .table-edits, .table-edits tbody { display: block; width: 100%; }
  .table-edits thead { display: none; }
  .table-edits tr { display: block; padding: 10px 12px; border-bottom: 1px solid var(--rowline); }
  .table-edits tbody tr:nth-child(even) { background: var(--zebra); }
  .table-edits tbody tr:nth-child(even) td { background: transparent; }
  .table-edits td, .table-edits td:nth-child(4) { display: block; padding: 2px 0; border: 0; word-break: normal; overflow-wrap: anywhere; }
  .table-edits td:first-child { font-size: 14.5px; color: var(--ink-900); margin-bottom: 2px; }
  .table-edits td.old::before, .table-edits td.new::before { display: inline-block; min-width: 38px; margin-right: 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); text-decoration: none; }
  .table-edits td.old::before { content: "Eski"; }
  .table-edits td.new::before { content: "Yeni"; }
  .table-edits td:nth-child(4) { margin-top: 4px; font-size: 12px; color: var(--ink-500); }
  .table-edits td:nth-child(4) br { display: none; }
  .table-edits td:nth-child(4) .muted::before { content: " · "; }
}

/* v.15.21 — Bildirimler sayfası */
.notif .plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.notif .plain-list li { display: flex; gap: 8px; align-items: flex-start; }
.notif .plain-list .i { flex: none; margin-top: 3px; color: #138A52; }
.m-b0 { margin-bottom: 0; }
.push-nudge { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: #EEF3FB; border: 1px solid #D5E0F3; color: var(--navy-700); font-size: 13.5px; }
.push-nudge .i { flex: none; }
.push-nudge a { margin-left: auto; font-weight: 600; white-space: nowrap; }
.push-nudge button { margin-left: 4px; background: none; border: 0; color: var(--ink-500); cursor: pointer; font-size: 18px; line-height: 1; padding: 0 4px; }
[data-push] [hidden] { display: none !important; }

/* v.15.22 — Matriste sihirbaza bağlı satırlar tıklanarak değiştirilir (seçim 4. ekrandaki soruya da yazılır) */
button.mx-bound-tick { appearance: none; -webkit-appearance: none; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; margin: 0;
  border: 1.5px solid #8C99AE; border-radius: 4px; background: #fff; color: #fff; font: 700 12px/1 var(--font); cursor: pointer; }
button.mx-bound-tick.on { background: var(--navy-700); border-color: var(--navy-700); }
button.mx-bound-tick:hover:not(:disabled) { border-color: var(--navy-500); box-shadow: 0 0 0 3px rgba(58, 95, 160, .18); }
button.mx-bound-tick:disabled { cursor: default; opacity: .8; }

/* v.15.23 — Raporlar */
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.rp-card { display: flex; align-items: flex-start; gap: 14px; padding: 18px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.rp-card:hover { text-decoration: none; border-color: var(--navy-500); box-shadow: 0 0 0 1px var(--navy-500); }
.rp-card b { display: block; font-size: 15px; color: var(--ink-900); margin-bottom: 3px; }
.rp-card .muted { display: block; font-size: 13px; line-height: 1.45; }
.rp-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy-50); color: var(--navy-700); }
.rp-ico .i { width: 20px; height: 20px; }
.rp-chev { margin-left: auto; flex: none; color: #98A2B3; align-self: center; }
.rp-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 14px 16px; margin-bottom: 16px; }
.rp-field { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.rp-field > span, .rp-ms-l { font-size: 12px; font-weight: 600; color: var(--ink-500); }
.rp-field.rp-q { flex: 1 1 260px; }
.rp-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-600); padding-bottom: 9px; }
.rp-go { margin-left: auto; }
.rp-ms { position: relative; min-width: 210px; }
.rp-ms > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; }
.rp-ms > summary::-webkit-details-marker { display: none; }
.rp-ms > summary .rp-ms-l { grid-column: 1 / -1; margin-bottom: 4px; }
.rp-ms > summary b { font-weight: 500; font-size: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 8px 34px 8px 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; grid-column: 1 / -1; grid-row: 2; }
.rp-ms > summary .i { grid-column: 2; grid-row: 2; align-self: center; margin-right: 10px; color: var(--ink-500); pointer-events: none; }
.rp-ms[open] > summary b { border-color: var(--navy-500); box-shadow: var(--ring); }
.rp-ms-list { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; min-width: 100%; max-height: 320px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 28px -10px rgba(16, 24, 40, .25); padding: 6px; display: grid; gap: 1px; }
.rp-ms-list label { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 6px; font-size: 13.5px; white-space: nowrap; cursor: pointer; }
.rp-ms-list label:hover { background: var(--zebra); }
.rp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.rp-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.rp-kpi span { font-size: 12px; font-weight: 600; color: var(--ink-500); }
.rp-kpi b { font-size: 20px; line-height: 1.25; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.rp-kpi small { font-size: 12px; color: var(--ink-500); }
.rp-kpi.is-main { background: var(--navy-700); border-color: var(--navy-700); }
.rp-kpi.is-main span, .rp-kpi.is-main small { color: #C9D6EE; } .rp-kpi.is-main b { color: #fff; }
.rp-kpi.is-warn { border-color: #F3D88E; background: #FFFAEB; } .rp-kpi.is-bad { border-color: #F5B5AE; background: #FEF3F2; }
.rp-sec { margin-bottom: 16px; }
.rp-sec .card-body { padding: 0; }
.rp-sec .card-body > p { padding: 16px 20px; }
.rp-sec .table tfoot td { background: #E3EAF6; border-top: 2px solid var(--navy-700); padding: 12px 14px; }
.rp-empty { padding: 28px; text-align: center; color: var(--ink-500); background: #fff; border: 1px dashed var(--line); border-radius: 12px; }
.rp-note { display: flex; gap: 6px; align-items: flex-start; margin: -6px 0 14px; } .rp-note .i { flex: none; margin-top: 2px; }
.rp-bar { display: inline-block; width: 120px; height: 8px; border-radius: 999px; background: #EDF1F6; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.rp-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--navy-500); }
.rp-bar.st-to_onayinda > span { background: #4F5BD5; } .rp-bar.st-hukukta > span { background: #2F6FDB; } .rp-bar.st-musavirde > span { background: #7A4FD1; } .rp-bar.st-onayda > span { background: #C26A0A; }
.rp-lo { color: #138A52; } .rp-hi { color: #B42318; }
.rp-items > summary { cursor: pointer; color: var(--navy-600); font-weight: 600; font-size: 13px; white-space: nowrap; }
.rp-mini { margin-top: 8px; border-collapse: collapse; font-size: 12.5px; min-width: 320px; }
.rp-mini th { text-align: center; font-weight: 600; color: var(--ink-500); padding: 4px 8px; border-bottom: 1px solid var(--rowline); }
.rp-mini td { padding: 4px 8px; border-bottom: 1px solid var(--rowline); vertical-align: top; }
.rp-mini tbody tr:nth-child(even) td { background: var(--zebra); }
.rp-mini .n { text-align: right; } .rp-mini .c { text-align: center; }
.rp-mini .secondary { display: block; font-size: 11.5px; color: var(--ink-500); }
.rp-firm .card-body { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; } .rp-firm .card-body > div { flex: 1 1 300px; }
.rp-firm { margin-bottom: 16px; }
@media (max-width: 760px) {
  .rp-filter { flex-direction: column; align-items: stretch; } .rp-field, .rp-ms { min-width: 0; } .rp-go { margin-left: 0; } .rp-go .btn { width: 100%; } .rp-field.rp-q { flex: none; }
  .rp-kpis { grid-template-columns: 1fr 1fr; } .rp-kpi.is-main, .rp-kpi.is-wide { grid-column: 1 / -1; }
  .rp-sec .card-body { overflow-x: auto; }
  .rp-bar { width: 70px; }
}
/* v.15.23 — açılan kalem / teklif listesi (bilgisayarda satırın altında tam genişlik) */
@media (min-width: 761px) {
  .rp-t details.rp-items .rp-mini { display: none; }
  .rp-t tr.rp-exp > td, .rp-t tbody tr.rp-exp:nth-child(even) > td { background: #F7F9FC; padding: 6px 20px 16px; border-bottom: 1px solid var(--rowline); }
  .rp-t tr.rp-exp .rp-mini { margin: 0 auto; min-width: 60%; font-size: 13px; background: #fff; }
  .rp-t tr.rp-exp .rp-mini td { padding: 5px 12px; }
}
/* v.15.23 — Telefonda rapor tabloları kart: ilk sütun başlık, diğerleri "etiket — değer" satırları (etiketler app.js ile sütun başlığından) */
@media (max-width: 760px) {
  .rp-sec .card-body { overflow-x: visible; }
  .rp-t, .rp-t > tbody, .rp-t > tfoot { display: block; width: 100%; }
  .rp-t > thead { display: none; }
  .rp-t > * > tr { display: block; padding: 10px 14px; border-bottom: 1px solid var(--rowline); }
  .rp-t > tbody > tr:nth-child(even) { background: var(--zebra); }
  .rp-t > * > tr > td, .rp-t > tbody > tr:nth-child(even) > td { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 3px 0; border: 0; background: transparent; text-align: right; min-width: 0; overflow-wrap: anywhere; word-break: normal; }
  .rp-t > * > tr > td::before { content: attr(data-l); flex: none; max-width: 45%; text-align: left; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; color: var(--ink-500); }
  .rp-t .rp-v { flex: 1 1 auto; min-width: 0; text-align: right; }
  .rp-t > tbody > tr > td:first-child .rp-v { text-align: left; }
  .rp-t > tbody > tr > td:first-child { display: block; text-align: left; font-size: 15px; font-weight: 600; color: var(--ink-900); padding-bottom: 5px; }
  .rp-t > tbody > tr > td:first-child::before { content: none; }
  .rp-t > * > tr > td:empty { display: none; }
  .rp-t > tbody > tr > td:has(details[open]), .rp-t > tbody > tr:nth-child(even) > td:has(details[open]) { display: block; text-align: left; }
  .rp-t > * > tr > td:has(details[open])::before { display: block; max-width: none; margin-bottom: 2px; }
  .rp-t > * > tr > td:has(details[open]) .rp-v { text-align: left; }
  .rp-t > tfoot > tr { background: #E3EAF6; border-top: 2px solid var(--navy-700); }
  .rp-t > tfoot > tr > td { padding: 3px 0 !important; border: 0 !important; background: transparent !important; text-align: right; }
  .rp-t > tfoot > tr > td::before { content: none; }
  .rp-mini { min-width: 0; width: 100%; }
  .rp-t tr.rp-exp { display: none; }
  .rp-mini thead { display: none; }
  .rp-mini, .rp-mini tbody { display: block; }
  .rp-mini tr { display: block; padding: 6px 0; border-bottom: 1px solid var(--rowline); }
  .rp-mini tbody tr:nth-child(even) td { background: transparent; }
  .rp-mini td { display: inline; padding: 0; border: 0; text-align: left !important; }
  .rp-mini td:first-child { display: block; font-weight: 600; color: var(--ink-900); }
  .rp-mini td + td:not(:nth-child(2))::before { content: " · "; color: var(--ink-500); }
  .rp-mini td:last-child { font-weight: 600; }
}

/* v.15.24 — Birim fiyat raporunda kalem önerileri */
.rp-sug-wrap { position: relative; }
.rp-sug { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; max-height: 380px; overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 14px 30px -12px rgba(16, 24, 40, .28); padding: 4px; }
.rp-sug[hidden] { display: none; }
.rp-sug-opt { padding: 8px 10px; border-radius: 7px; cursor: pointer; }
.rp-sug-opt + .rp-sug-opt { border-top: 1px solid #EEF1F5; }
.rp-sug-opt:hover, .rp-sug-opt.is-active { background: var(--zebra); }
.rp-sug-name { font-size: 14px; color: var(--ink-900); line-height: 1.35; }
.rp-sug-name mark { background: #FFE9A8; color: inherit; border-radius: 2px; padding: 0 1px; }
.rp-sug-meta { margin-top: 2px; font-size: 12px; color: var(--ink-500); }
.rp-sug-meta b { font-weight: 600; color: var(--ink-500); }
.rp-sug-meta b.is-multi { color: #138A52; }
.rp-sug-empty, .rp-sug-more { padding: 9px 10px; font-size: 12.5px; color: var(--ink-500); }
.rp-sug-more { border-top: 1px solid var(--line); }
.rp-single { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; }
.rp-single .i { flex: none; margin-top: 2px; }

/* v.15.26 — Çelişki kontrolü */
.cf-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.cf-n.cf-celiski { background: #FEE4E2; color: #B42318; }
.cf-n.cf-kontrol { background: #FEF0C7; color: #93370D; }
.cf-n.is-zero { background: #EEF1F5; color: #98A2B3; }
.btn .cf-n { margin-left: 6px; }
.btn.btn-cf { border-color: #F5B5AE; color: #B42318; }
.cf-list { list-style: none; margin: 0; padding: 0; }
.cf-item { padding: 14px 20px; border-top: 1px solid var(--rowline); border-left: 3px solid transparent; }
.cf-item:first-child { border-top: 0; }
.cf-item:nth-child(even) { background: var(--zebra); }
.cf-item-celiski { border-left-color: #D92D20; }
.cf-item-kontrol { border-left-color: #F79009; }
.cf-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cf-title { font-size: 14.5px; color: var(--ink-900); font-weight: 600; }
.cf-lv { display: inline-flex; align-items: center; gap: 4px; flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.cf-lv .i { width: 13px; height: 13px; }
.cf-lv.cf-celiski { background: #FEE4E2; color: #B42318; }
.cf-lv.cf-kontrol { background: #FEF0C7; color: #93370D; }
.cf-detail { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-600); line-height: 1.5; }
.cf-src { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; margin-top: 10px; }
.cf-box { display: flex; flex-direction: column; gap: 3px; padding: 8px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.cf-box-l { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.cf-box-t { font-size: 13px; color: var(--ink-900); line-height: 1.45; overflow-wrap: anywhere; }
.cf-own { font-weight: 600; }
.cf-kpi-t { font-size: 15px !important; line-height: 1.35 !important; }
.cf-note { margin-bottom: 16px; }
.cf-note b { display: block; margin-bottom: 2px; }
.cf-pad { padding: 14px 20px !important; }
/* v.16.5 — Sorumluluklar: sihirbaz–matris ve sözleşme metni ayrı */
.cf-sum { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; padding: 14px 20px 4px; }
.cf-sum-i { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 150px; }
.cf-sum-i span { font-size: 11.5px; font-weight: 600; color: var(--ink-500); }
.cf-sum-i b { font-size: 18px; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.cf-sum-i.is-bad { border-color: #F5B5AE; background: #FFF8F7; } .cf-sum-i.is-bad b { color: #B42318; }
.cf-sum-i.is-warn { border-color: #F5D58A; background: #FFFBEF; } .cf-sum-i.is-warn b { color: #93370D; }
.cf-sum-v { display: flex; align-items: center; margin-left: auto; }
.cf-srcline { display: flex; gap: 8px; align-items: flex-start; margin: 10px 20px 12px; padding: 10px 12px; border-radius: 8px; background: #F4F7FB; font-size: 13px; color: var(--ink-700); line-height: 1.5; }
.cf-srcline > .i { flex: none; margin-top: 3px; }
.cf-src-err { color: #93370D; font-weight: 600; }
.cf-srcform { margin-top: 8px; }
.cf-srcform label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-500); }
.cf-srcform select { max-width: 100%; }
.cf-resp .secondary { display: block; margin-top: 3px; font-size: 12px; color: var(--ink-500); white-space: normal; }
.cf-ev-dayanak { color: #0F7444; } .cf-ev-karsi { color: #B42318; }
.cf-ev-cell { text-align: left !important; font-size: 13px; }
.cf-pad0 { margin: 10px 20px 14px; }
@media (max-width: 760px) {
  .cf-sum { padding: 12px 14px 4px; } .cf-sum-i { min-width: calc(50% - 4px); flex: 1 1 calc(50% - 4px); } .cf-sum-v { margin-left: 0; width: 100%; }
  .cf-srcline, .cf-pad0 { margin-left: 14px; margin-right: 14px; }
  .cf-ev-cell { display: block !important; text-align: left !important; } .cf-ev-cell::before { display: block; margin-bottom: 4px; }
  .rp-t .cf-ev-cell .rp-v { text-align: left; }
}
@media (max-width: 760px) {
  .cf-item { padding: 12px 14px; }
  .cf-src { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page-head { flex-wrap: wrap; }
  .page-head > div { min-width: 0; }
  .page-head .actions { flex-wrap: wrap; }
}

/* v.15.28 — İş kapsamı satır listesi */
.ln-ed { max-width: 860px; }
.ln-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; counter-reset: ln; background: #fff; }
.ln-row { display: flex; align-items: center; gap: 6px; padding: 4px 8px 4px 0; border-top: 1px solid var(--rowline); counter-increment: ln; }
.ln-row:first-child { border-top: 0; }
.ln-row:nth-child(even) { background: var(--zebra); }
.ln-row::before { content: counter(ln) "."; flex: none; width: 38px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--ink-500); font-variant-numeric: tabular-nums; }
.ln-in { flex: 1 1 auto; min-width: 0; border: 1px solid transparent !important; background: transparent !important; box-shadow: none !important; padding: 7px 8px !important; font-size: 14px; }
.ln-in:hover { border-color: var(--line) !important; background: #fff !important; }
.ln-in:focus { border-color: var(--navy-500) !important; background: #fff !important; box-shadow: var(--ring) !important; outline: none; }
.ln-tools { display: inline-flex; gap: 2px; flex: none; opacity: .55; transition: opacity .12s; }
.ln-row:hover .ln-tools, .ln-row:focus-within .ln-tools { opacity: 1; }
.ln-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.ln-actions label.btn { cursor: pointer; }
.ln-note { margin: 6px 0 0; color: var(--navy-700); }
@media (pointer: coarse) { .ln-tools { opacity: 1; } }
@media (max-width: 760px) { .ln-row::before { width: 26px; } .ln-actions .muted { flex-basis: 100%; } }

/* v.15.29 — Sözleşmeler listesi: ilk sütunda Sözleşme No (verilmediyse Takip No). Sütunlar sınıfla hizalanır (durum ortalı, hazırlayan sola) */
.table-contracts td.c-no .no-main { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: var(--navy-700); white-space: normal; overflow-wrap: normal; word-break: keep-all; }
.table-contracts td.c-no .no-sub { display: block; font-size: 11.5px; white-space: nowrap; }
@media (min-width: 761px) {
  .table.table-contracts td.c-no { text-align: center; }
  .table.table-contracts td.c-prep { text-align: left; white-space: normal; }
  .table.table-contracts td.c-status { text-align: center; white-space: nowrap; }
}
@media (min-width: 1101px) {
  .table-contracts th:nth-child(1) { width: 11%; } .table-contracts th:nth-child(2) { width: 13.5%; } .table-contracts th:nth-child(3) { width: 13.5%; }
  .table-contracts th:nth-child(4) { width: 16%; } .table-contracts th:nth-child(5) { width: 10.5%; } .table-contracts th:nth-child(6) { width: 10%; }
  .table-contracts th:nth-child(7) { width: 13%; } .table-contracts th:nth-child(8) { width: 12.5%; }
}

/* v.15.30 — Sözleşme ekleri (PDF) */
.att-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; max-width: 980px; }
.att-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; border-top: 1px solid var(--rowline); }
.att-row:first-child { border-top: 0; }
.att-row:nth-child(even) { background: var(--zebra); }
.att-row.is-off .att-name { color: var(--ink-500); }
.att-name { flex: 1 1 260px; min-width: 0; font-size: 13.5px; color: var(--ink-900); }
.att-files { display: flex; flex-wrap: wrap; gap: 6px; flex: 2 1 260px; min-width: 0; }
.att-file { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; padding: 3px 4px 3px 8px; border: 1px solid #D5E0F3; border-radius: 999px; background: #EEF3FB; font-size: 12.5px; }
.att-file a { display: inline-flex; align-items: center; gap: 4px; color: var(--navy-700); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.att-file a .i { width: 13px; height: 13px; flex: none; }
.att-del { appearance: none; border: 0; background: none; color: var(--ink-500); cursor: pointer; padding: 2px; border-radius: 50%; display: inline-grid; place-items: center; }
.att-del:hover { background: #fff; color: #B42318; }
.att-del .i { width: 13px; height: 13px; }
.att-add { flex: none; cursor: pointer; }
.att-new { display: flex; gap: 6px; flex: 1 1 100%; }
.att-new input { flex: 1 1 auto; min-width: 0; max-width: 420px; }
.att-note { margin: 6px 0 0; color: var(--navy-700); }
@media (max-width: 760px) {
  .att-name { flex: 1 1 0; order: 1; }
  .att-add { order: 2; }
  .att-files { order: 3; flex: 1 1 100%; }
  .att-files:empty { display: none; }
  .att-new { order: 4; }
}

/* v.15.31: logo — "CONTRACTS" satırı büyütüldü; telefonda logo bir tık büyük */
@media (max-width: 760px) { .gs-brand img, .gs-topbar .gs-brand img { height: 42px; padding: 3px 8px; } }
/* v.15.31: hızlı ipucu — sığmayan metin ve düğme açıklaması beklemeden açılır */
.gs-tip { position: fixed; z-index: 1000; left: 0; top: 0; max-width: min(440px, calc(100vw - 16px)); padding: 6px 10px; border-radius: 8px; background: #1B2638; color: #fff; font-size: 12.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; pointer-events: none; box-shadow: 0 6px 18px -6px rgba(16, 24, 40, .45); }
.gs-tip[hidden] { display: none; }
/* v.15.32: taşeron listesi — Unvandan sonraki sütunlar ortalı, yazılar aynı boyda (vergi no ayrı küçük yazı değil) */
@media (min-width: 761px) {
  .table-subs td:not(:first-child) { text-align: center; font-size: 14px; color: var(--ink-700, #344054); }
  .table-subs td.c-vkn { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
  .table-subs td .badge { font-size: 12px; }
}
/* v.15.32: sıralı satırlarda koyu satırın tonu açıldı (GM, 10.10 14:41) */
:root { --zebra: #F5F8FD; --zebra-hover: #ECF1F9; }
/* v.15.34: pano durum kutucukları biraz küçüldü, yer idareli (GM, 10.10 14:48) */
@media (min-width: 761px) {
  .stats { gap: 10px; margin-bottom: 18px; }
  .stat { padding: 10px 14px 11px; }
  .stat .label { font-size: 12.5px; }
  .stat .ico { width: 24px; height: 24px; border-radius: 7px; }
  .stat .ico .i { width: 13px; height: 13px; }
  .stat .value { font-size: 23px; line-height: 26px; margin-top: 4px; }
  .stat .desc { font-size: 12px; min-height: 0; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat .bar { margin-top: 7px; height: 3px; }
}
@media (min-width: 761px) {
  .stat[class*="st-"] .t-big { font-size: 13.5px; line-height: 17px; }
  .stat[class*="st-"] .t-small { font-size: 11.5px; line-height: 15px; }
  .stat[class*="st-"] .label { grid-template-columns: 24px minmax(0, 1fr); column-gap: 9px; }
}
/* v.15.36: Performans — ana ekranın solunda "Performansım", /performans sayfası */
.pano-layout.has-side { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 22px; align-items: start; }
.pano-main { min-width: 0; }
.pf-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px 12px; background: var(--surface, #fff); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.pf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 0 4px 2px; }
.pf-title { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy-700, #1F3B73); }
.pf-title .i { width: 16px; height: 16px; }
.pf-period { font-size: 11.5px; color: var(--ink-500); }
.pf-sec-l { margin: 4px 4px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-500); }
.pf-tiles { display: grid; grid-template-columns: 1fr; gap: 6px; }
.pf-tile { --c: #4F5BD5; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line-2, #EAECF0); border-radius: 12px; background: linear-gradient(180deg, #fff, #FAFBFD); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; min-width: 0; }
a.pf-tile:hover { border-color: color-mix(in srgb, var(--c) 40%, #fff); box-shadow: 0 4px 12px -6px rgba(16,24,40,.18); transform: translateY(-1px); text-decoration: none; }
.pf-tile.tone-ok { --c: #138A52; } .pf-tile.tone-warn { --c: #C26A0A; } .pf-tile.tone-danger { --c: #C0362C; }
.pf-ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.pf-ico .i { width: 15px; height: 15px; }
.pf-txt { display: flex; flex-direction: column; min-width: 0; }
.pf-val { font-size: 18px; line-height: 22px; font-weight: 700; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.pf-tile.is-dur .pf-val { font-size: 15.5px; }
.pf-lbl { font-size: 12px; line-height: 15px; color: var(--ink-600); }
.pf-sub { font-size: 11px; line-height: 14px; color: color-mix(in srgb, var(--c) 75%, #667085); }
.pf-more { display: inline-flex; align-items: center; gap: 4px; align-self: flex-end; margin: 2px 4px 0; font-size: 12.5px; font-weight: 600; }
.pf-more .i { width: 14px; height: 14px; }
.pf-block + .pf-block { margin-top: 18px; }
.pf-block-h { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pf-grid .pf-tile { padding: 12px 14px; }
.pf-grid .pf-val { font-size: 22px; line-height: 28px; }
.pf-grid .pf-tile.is-dur .pf-val { font-size: 18px; }
.pf-grid .pf-ico { width: 36px; height: 36px; border-radius: 10px; }
.table-perf td.pf-c { font-variant-numeric: tabular-nums; }
.table-perf td.tone-warn { color: #9A5208; } .table-perf td.tone-danger { color: #B42318; } .table-perf td.tone-ok { color: #0F7444; }
/* Dar bilgisayar ekranı ve telefon: panel üstte, kutucuklar yan yana kayar */
@media (max-width: 1280px) {
  .pano-layout.has-side { display: block; }
  .pf-side { position: static; margin-bottom: 16px; }
  .pf-sec { min-width: 0; }
  .pf-tiles { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
  .pf-tiles .pf-tile { flex: 0 0 auto; min-width: 168px; }
}
@media (max-width: 760px) {
  .pf-side { padding: 12px 10px 10px; border-radius: 14px; }
  .pf-tiles .pf-tile { min-width: 150px; }
}
.pf-dur { font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-dur.is-slow { color: #B42318; }
.pf-dur.is-open::after { content: " ●"; font-size: 9px; vertical-align: 2px; color: #C26A0A; }
.pf-head { flex-wrap: wrap; row-gap: 2px; } .pf-title { white-space: nowrap; }

/* v.16: İmzalandı durumu (7. durum kartı) ve Ek Protokoller */
.stat.st-imzalandi, .mc-status.st-imzalandi, .fy-status.st-imzalandi { --c: #1F3A68; --tone: #1F3A68; }
.badge-status.st-imzalandi { --tone: #1F3A68; }
@media (min-width: 761px) { .stat.st-imzalandi { --c: #1F3A68; } }
@media (max-width: 760px) { .mc-status.st-imzalandi { --tone: #1F3A68; } }
.stats { grid-template-columns: repeat(8, minmax(0, 1fr)); }
@media (max-width: 1280px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stats > .stat:last-child:nth-child(odd) { grid-column: span 2; } }
.amend-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.amend { border: 1px solid var(--line, #E3E8F0); border-radius: 10px; padding: 10px 12px; }
.amend-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ack { border-left: 3px solid #C26A0A; padding: 4px 0 4px 10px; }
.ack-log { margin: 4px 0 0; padding-left: 16px; }
.ack-form { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.ack-form select, .ack-form input { height: 32px; font-size: 13px; }
.ack-form input[name="note"] { flex: 1 1 180px; min-width: 0; }
/* v.16 iki aşamalı doğrulama */
.tfa-qr { width: 200px; height: 200px; margin: 8px auto; background: #fff; padding: 6px; border: 1px solid var(--line); border-radius: 8px; }
.tfa-qr svg { width: 100%; height: 100%; display: block; }
.tfa-steps { margin: 8px 0; padding-left: 18px; text-align: left; }
.tfa-codes { list-style: none; padding: 0; margin: 10px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; font-size: 15px; }
.tfa-codes li { background: #F5F8FD; border: 1px solid var(--line); border-radius: 6px; padding: 6px; text-align: center; }

/* v.16.1 (GM, 10.10): üst menü hafif düğme görünümünde (yalnız bilgisayar / geniş ekran; telefon alt sekme çubuğu aynı) */
@media (min-width: 761px) {
  .gs-subnav { padding: 10px 24px; gap: 8px; }
  .gs-subnav a { padding: 8px 15px; font-size: 14px; border: 1px solid #E3E9F3; border-radius: 10px; background: #F7F9FD;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05); transition: background .15s, border-color .15s, color .15s; }
  .gs-subnav a:hover { background: #EDF2FA; border-color: #CFDAEC; color: var(--navy-700); }
  .gs-subnav a.is-active { background: var(--navy-700); border: 1px solid var(--navy-700); color: #fff; font-weight: 600; box-shadow: 0 2px 6px -2px rgba(31, 56, 100, .45); }
  .gs-subnav .sep { margin: 0 4px; }
  /* Sözleşmeler başlığının üstündeki ve altındaki boşluk biraz azaldı */
  .gs-main { padding-top: 24px; }
  .pano-main > .page-head { margin-bottom: 18px; }
}
/* v.16.2 yapay zekâ taramaları */
.ai-run { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ai-run form { margin: 0; }
.ai-pad { padding: 14px 20px; }
.ai-ozet { padding: 14px 20px 0; margin: 0; }
.ai-lv { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid transparent; white-space: nowrap; }
.ai-yuksek, .ai-celiski { background: #FDECEC; color: #B42318; border-color: #F7C9C5; }
.ai-orta, .ai-kontrol { background: #FEF4E6; color: #B54708; border-color: #F9DBAF; }
.ai-dusuk { background: #EEF4FF; color: #2F5BB7; border-color: #D3E0FB; }
.ai-sent { white-space: pre-wrap; font-size: 12.5px; line-height: 1.5; background: #F7F9FD; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
.ack-form select { width: auto; flex: 0 0 auto; max-width: 100%; }
@media (min-width: 761px) {
  .gs-subnav { gap: 6px; padding: 10px 20px; }
  .gs-subnav a { padding: 7px 11px; font-size: 13.5px; }
}
/* v.16.3 iki yapay zekâ modülü */
.ai-part { font-size: 17px; margin: 18px 0 10px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.ai-high { background: #FDECEC; color: #B42318; border-color: #F7C9C5; }
.ai-medium { background: #FEF4E6; color: #B54708; border-color: #F9DBAF; }
.ai-low { background: #EEF4FF; color: #2F5BB7; border-color: #D3E0FB; }
.ai-conf { font-size: 12px; color: var(--ink-500); white-space: nowrap; }
.ai-item .cf-head { flex-wrap: wrap; gap: 6px 8px; }
.ai-item > * + * { margin-top: 6px; }
.ai-risk-h { letter-spacing: .02em; }
.ai-review { background: #F7F9FD; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.ai-decide { display: grid; gap: 6px; margin-top: 8px; }
.ai-decide textarea { min-height: 34px; font-size: 13px; }
.ai-decide-b { display: flex; flex-wrap: wrap; gap: 6px; }
.ai-decide-b .btn.is-on { background: var(--navy-700); color: #fff; border-color: var(--navy-700); }
.ai-item-high { border-left: 3px solid #D92D20; } .ai-item-medium { border-left: 3px solid #DC6803; } .ai-item-low { border-left: 3px solid #5B8DEF; }
.ai-disclaimer b { display: block; }

/* v.16.6 — Onaylar ve sürüm; güncel olmayan belge */
.apv-cur { margin-bottom: 10px !important; }
.apv-t .secondary { white-space: normal; }
.doc-row.is-stale .doc-ico { opacity: .55; }
.doc-stale { margin-left: 6px; vertical-align: middle; font-size: 11px; }

/* v.16.7 — Performans panosu panodan kaldırıldı; Performans sayfasında kutucuklar yana kaymaz, alt alta dizilir */
@media (max-width: 760px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pf-grid .pf-tile { padding: 10px; gap: 8px; }
  .pf-grid .pf-ico { width: 30px; height: 30px; }
  .pf-grid .pf-val { font-size: 19px; line-height: 24px; }
  .pf-grid .pf-tile.is-dur .pf-val { font-size: 16px; }
}
@media (max-width: 760px) {
  .page-head .actions .seg { display: flex; width: 100%; }
  .page-head .actions .seg a { flex: 1 1 0; justify-content: center; padding: 5px 4px; font-size: 12.5px; min-width: 0; }
}

/* v.16.7 — Telefonda durum kutucukları yine 3 sütun (önceki düzen); 7. kutucuk (İmzalandı) alt satırda ince şerit */
@media (max-width: 760px) {
  .stats, .stats.stats-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; }
  .stats > .stat:last-child:nth-child(odd) { grid-column: auto; }
  .stats > .stat:last-child:nth-child(3n+1) { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; min-height: 44px; height: 44px; padding: 0 44px 0 12px; }
  .stats > .stat:last-child:nth-child(3n+1) .label { flex: 1 1 auto; display: flex; align-items: center; min-height: 0; height: auto; }
  .stats > .stat:last-child:nth-child(3n+1) .label .t-small { display: none; }
  .stats > .stat:last-child:nth-child(3n+1) .value { flex: none; }
  .stats > .stat:last-child:nth-child(3n+1) .ico { top: 50%; bottom: auto; transform: translateY(-50%); }
}
.wf-tech { margin: 6px 0 2px !important; color: var(--ink-600); }
/* v.16.10 — Panoda "Sözleşmeler" başlığı üst menüye biraz daha yakın (bilgisayar) */
@media (min-width: 761px) { .gs-main:has(.pano-main) { padding-top: 12px; } }
/* v.16.11 — Çalışma Önizlemesi (eksiklerle) */
.wp-banner { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; padding: 10px 14px; border: 2px solid var(--danger-700); border-radius: 8px; background: var(--danger-50); color: var(--danger-700); font-weight: 700; letter-spacing: .2px; }
.wp-banner .i { flex: none; }
.wp-sum { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 9px 14px; border-radius: 8px; font-size: 14.5px; }
.wp-sum.is-bad { background: var(--danger-50); border: 1px solid var(--danger-200); color: var(--danger-700); }
.wp-sum.is-ok { background: var(--ok-50); border: 1px solid var(--ok-200); color: var(--ok-700); }
.wp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; margin-top: 12px; }
.wp-side { position: sticky; top: 12px; min-width: 0; }
.wp-doc { min-width: 0; }
.wp-paper { font-size: 13.5px; line-height: 1.55; color: var(--ink-900); }
.wp-paper p { margin: 0 0 6px; text-align: justify; }
.wp-cover { text-align: center; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.wp-cover-t { font-weight: 700; font-size: 16px; color: var(--navy-700); }
.wp-h { margin: 18px 0 8px; font-size: 14.5px; color: var(--navy-700); scroll-margin-top: 80px; }
.wp-item { display: flex; gap: 10px; scroll-margin-top: 80px; }
.wp-item > .wp-no { flex: none; width: 42px; font-weight: 700; color: var(--navy-700); }
.wp-item > .min0, .wp-item > p, .wp-item > .wp-box { flex: 1; min-width: 0; }
.wp-list { list-style: none; margin: 0 0 6px; padding: 0 0 0 4px; }
.wp-list li { margin: 0 0 3px; }
.wp-lh { font-weight: 700; margin-top: 6px !important; }
.wp-val { background: #FFF7D6; border-radius: 3px; padding: 0 2px; }
.wp-mark { font-weight: 700; color: var(--danger-700); background: var(--danger-50); border: 1px solid var(--danger-200); border-radius: 4px; padding: 0 4px; scroll-margin-top: 80px; }
.wp-mark.wp-bilgi { color: var(--warn-700); background: var(--warn-50); border-color: var(--warn-200); }
.wp-box { margin: 0 0 10px; padding: 9px 12px; border: 2px solid var(--danger-700); border-radius: 6px; background: var(--danger-50); font-size: 13px; }
.wp-box b { color: var(--danger-700); display: block; margin-bottom: 3px; }
.wp-box-note { font-style: italic; color: var(--ink-600); margin-top: 3px; }
.wp-tw { overflow-x: auto; margin: 6px 0 10px; scroll-margin-top: 80px; }
.wp-t { border-collapse: collapse; width: 100%; font-size: 12.5px; }
.wp-t th, .wp-t td { border: 1px solid var(--line); padding: 4px 6px; vertical-align: middle; }
.wp-t th { background: var(--navy-700); color: #fff; text-align: center; font-weight: 600; }
.wp-t td.num { text-align: right; white-space: nowrap; }
.wp-t td.c { text-align: center; }
.wp-t tbody tr:nth-child(even) td { background: var(--zebra); }
.wp-t tr.wp-sec td { background: var(--navy-50); font-weight: 700; color: var(--navy-700); }
.wp-note { font-size: 12px; color: var(--ink-500); font-style: italic; }
.wp-issues, .wp-ekler, .wp-prev, .wp-other { list-style: none; margin: 0; padding: 0; }
.wp-issues li { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.wp-issues li:last-child, .wp-ekler li:last-child, .wp-prev li:last-child { border-bottom: 0; }
.wp-k { flex: none; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: var(--danger-50); color: var(--danger-700); }
.wp-is-hesap .wp-k { background: var(--warn-50); color: var(--warn-700); }
.wp-is-atif .wp-k { background: var(--info-50); color: var(--info-700); }
.wp-acts { flex-basis: 100%; font-size: 12px; }
.wp-other li { padding: 4px 0; border-bottom: 1px solid var(--line-2); }
.wp-ekler li { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.wp-ek { flex: none; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.wp-ek-ok { background: var(--ok-50); color: var(--ok-700); }
.wp-ek-bad { background: var(--danger-50); color: var(--danger-700); }
.wp-ek-warn { background: var(--warn-50); color: var(--warn-700); }
.wp-ek-muted { background: var(--navy-50); color: var(--ink-500); }
.wp-prev li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.wp-prev li.is-stale { opacity: .85; }
.wp-stale { font-size: 12px; font-weight: 700; color: var(--warn-700); margin-top: 2px; }
.wp-step .card-body .row { gap: 8px; }
@media (max-width: 1100px) { .wp-grid { grid-template-columns: minmax(0, 1fr); } .wp-side { position: static; order: -1; } }
@media (max-width: 760px) {
  .wp-banner { font-size: 12.5px; padding: 8px 10px; }
  .wp-paper { font-size: 13px; }
  .wp-item > .wp-no { width: 34px; }
}
/* v.16.12 — İhtar aktif takibi ve uygulama içi bildirimler */
.gs-bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; margin-right: 8px; border-radius: 10px; color: #fff; opacity: .85; }
.gs-bell:hover { opacity: 1; background: rgba(255,255,255,.12); text-decoration: none; }
.gs-bell .i { width: 20px; height: 20px; }
.gs-bell-n { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.inbox .trk-item.is-new { background: var(--navy-50); }
.dot-new { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #E5484D; margin-right: 6px; vertical-align: middle; }
.mb16 { margin-bottom: 16px; }
.nt-line { margin-top: 2px; }
.nt-unassigned { color: var(--warn-700); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.nt-unassigned .i { width: 14px; height: 14px; }
.nt-arch { margin-top: 3px; color: var(--ink-600); }
.nt-hist { margin-top: 4px; }
.nt-hist ul { margin: 4px 0 0; padding-left: 16px; color: var(--ink-600); }
.nt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.nt-date { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-600); }
.nt-date input[type=date] { padding: 4px 6px; }
.nt-queue { border-top: 1px solid var(--line-2); background: var(--warn-50); }
.nt-queue-h { padding: 10px 20px; color: var(--warn-700); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.nt-queue .trk-item { background: #fff; }
.nt-table tr.nt-late td:first-child { box-shadow: inset 3px 0 0 var(--danger-700); }
.nt-pager { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .gs-bell { width: 36px; height: 36px; margin-right: 4px; } }
.nt-table td:nth-child(3) { min-width: 180px; }
.nt-table td:nth-child(4), .nt-table td:nth-child(6), .nt-table .nt-unassigned { white-space: nowrap; }
.nt-table td:nth-child(2) { min-width: 170px; }
@media (max-width: 760px) { .nt-table td:nth-child(3), .nt-table td:nth-child(2) { min-width: 0; } .nt-table td:nth-child(6) { white-space: normal; } }
@media (max-width: 760px) { .nt-queue .trk-item > .grow, .nt-item > .grow { flex-basis: 100%; } .nt-date label { display: flex; align-items: center; gap: 6px; } }
@media (max-width: 760px) { .nt-item .trk-act[open], .nt-queue .trk-act[open] { flex-basis: 100%; } .nt-item .trk-act[open] .trk-pop, .nt-queue .trk-act[open] .trk-pop { position: static; width: 100%; margin-top: 8px; } }
/* v.16.14 — İçe aktarım kaynağı ve geçmişi */
.imp-box { margin-top: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-50); font-size: 13px; }
.imp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.imp-head a { margin-left: auto; }
.imp-line { margin: 3px 0; line-height: 1.45; }
.imp-k { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 10px; background: #fff; border: 1px solid var(--line); margin-right: 4px; }
.imp-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.imp-grid .kv { max-width: 900px; }
.imp-list { margin: 6px 0 12px; padding-left: 18px; }
.imp-list li.is-del { color: var(--danger-700); }
.imp-diff tr.is-del td { color: var(--danger-700); }
.imp-diff tr.is-chg td b { color: var(--navy-700); }
.h-sm { font-size: 14px; margin: 14px 0 6px; color: var(--navy-700); }
[data-items] tbody tr.is-imported td:first-child { box-shadow: inset 2px 0 0 var(--navy-500); }
@media (max-width: 1100px) { .imp-grid { grid-template-columns: minmax(0, 1fr); } }
.imp-scroll { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
.imp-diff { width: 100%; }
.imp-grid .kv dd .small { margin-top: 2px; }
/* v.16.15 — düzenleme çakışması */
.save-state.is-conflict { color: var(--danger-700); font-weight: 600; }
.conflict-box { margin-bottom: 14px; display: block; }
.conflict-box .cf-body { display: flex; flex-direction: column; gap: 6px; }
.cf-scroll { overflow-x: auto; margin-top: 6px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.cf-table { width: 100%; font-size: 13px; color: var(--ink-900); }
.cf-table th { text-align: center; white-space: nowrap; }
.cf-table td { vertical-align: top; }
.cf-table tr.is-theirs td:first-child { box-shadow: inset 3px 0 0 var(--danger-700); }
.cf-actions { flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .cf-table thead { display: none; } .cf-table tr { display: block; padding: 8px 10px; border-bottom: 1px solid var(--line); } .cf-table td { display: block; border: 0; padding: 2px 0; } .cf-table td:nth-child(2)::before { content: "Açtığınızda: "; color: var(--ink-500); } .cf-table td:nth-child(3)::before { content: "Güncel: "; color: var(--ink-500); } .cf-table td:nth-child(4)::before { content: "Sizin: "; color: var(--ink-500); } .cf-table td:first-child { font-weight: 600; } .cf-table tr.is-theirs { box-shadow: inset 3px 0 0 var(--danger-700); } .cf-table tr.is-theirs td:first-child { box-shadow: none; } }
/* ── v.16.16 Taşeron karnesi ─────────────────────────────────────────────── */
.rt-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 9px 2px 8px; border-radius: 999px; border: 1px solid; white-space: nowrap; line-height: 1.5; vertical-align: middle; }
.rt-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.rt-badge.is-big { font-size: 15px; padding: 4px 14px 4px 12px; }
.rt-badge.is-big::before { width: 10px; height: 10px; }
.rt-kara { color: #111827; background: #F3F4F6; border-color: #4B5563; }
.rt-kirmizi { color: #B42318; background: #FEF3F2; border-color: #F5B5AE; }
.rt-mavi { color: #1D4E9E; background: #EEF4FF; border-color: #B2CCFF; }
.rt-yesil { color: #067647; background: #ECFDF3; border-color: #A6E4C3; }
.rt-none { color: #475467; background: #fff; border-color: #D0D5DD; border-style: dashed; }
.rt-none::before { background: transparent; border: 1.5px solid currentColor; }
.kr-pick { margin-bottom: 14px; }
.kr-head { background: #fff; border: 1px solid var(--line); border-left-width: 6px; border-radius: 14px; padding: 20px 22px 16px; margin-bottom: 14px; }
.kr-head.rt-band-kara { border-left-color: #111827; background: linear-gradient(90deg, #F5F5F6 0, #fff 340px); }
.kr-head.rt-band-kirmizi { border-left-color: #D92D20; background: linear-gradient(90deg, #FEF6F5 0, #fff 340px); }
.kr-head.rt-band-mavi { border-left-color: #2E6BD8; background: linear-gradient(90deg, #F2F6FE 0, #fff 340px); }
.kr-head.rt-band-yesil { border-left-color: #12A15E; background: linear-gradient(90deg, #F0FBF5 0, #fff 340px); }
.kr-head.rt-band-none { border-left-color: #C3CAD5; }
.kr-head-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.kr-name { margin: 0; font-size: 24px; line-height: 1.25; color: var(--ink-900); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.kr-meta { margin: 6px 0 0; color: var(--ink-600, #475467); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.kr-rating { border-left: 1px solid var(--line); padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.kr-rating-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kr-rating-desc { font-weight: 600; color: var(--ink-900); }
.kr-rating-line { margin: 0; font-size: 13.5px; color: var(--ink-600, #475467); }
.kr-reason { font-size: 14px; line-height: 1.5; color: var(--ink-900); }
.kr-legal { display: flex; gap: 8px; align-items: flex-start; background: #FFFAEB; border: 1px solid #F3D88E; border-radius: 10px; padding: 8px 12px; font-size: 13.5px; }
.kr-legal .i { flex: none; margin-top: 2px; color: #93590C; }
.kr-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2, #F2F4F7); }
.kr-pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.kr-more > summary { cursor: pointer; list-style: none; }
.kr-more > summary::-webkit-details-marker { display: none; }
.kr-more-l { color: var(--navy-500); font-weight: 600; white-space: nowrap; }
.kr-more[open] > summary { display: none; }
details.kr-more.small > summary { display: inline; color: var(--navy-500); font-weight: 600; }
details.kr-more.small[open] > summary { display: none; }
.kr-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.kr-kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.kr-kpi.is-wide { grid-column: span 2; }
.kr-kpi-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink-500); text-transform: uppercase; letter-spacing: .02em; }
.kr-kpi-h .i { width: 15px; height: 15px; }
.kr-kpi > b { font-size: 21px; line-height: 1.25; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.kr-kpi small { font-size: 12.5px; color: var(--ink-500); line-height: 1.45; }
.kr-kpi.is-warn { border-color: #F3D88E; background: #FFFCF3; } .kr-kpi.is-bad { border-color: #F5B5AE; background: #FFF8F7; }
.kr-warn { color: #93590C !important; font-weight: 600; }
.kr-vol { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; align-items: baseline; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.kr-vol > span { font-size: 13px; color: var(--ink-600, #475467); }
.kr-vol > b { font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; }
.kr-vol > small { grid-column: 1 / -1; }
.kr-vol.is-main > b { font-size: 16px; color: var(--navy-700); }
.kr-att { margin-bottom: 14px; }
.kr-att-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kr-att-i { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); border-left: 4px solid #98A2B3; }
.kr-att-i > .small { grid-column: 1; }
.kr-att-i .kr-att-b { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.kr-att-i.sev-yuksek { border-left-color: #D92D20; } .kr-att-i.sev-orta { border-left-color: #DC8A0E; }
.kr-tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: 6px 0 14px; scrollbar-width: thin; }
.kr-tabs a { flex: none; padding: 10px 14px; font-size: 14px; font-weight: 600; color: var(--ink-500); border-bottom: 2px solid transparent; text-decoration: none; white-space: nowrap; }
.kr-tabs a:hover { color: var(--navy-700); }
.kr-tabs a.is-on { color: var(--navy-700); border-bottom-color: var(--navy-700); }
.kr-n { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--navy-50); font-size: 12px; text-align: center; }
.kr-tab > .card, .kr-tab > section { margin-bottom: 14px; }
.kr-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.kr-grid2 > .kr-internal { grid-column: 1 / -1; background: #FAFBFC; }
.kr-issues { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.kr-issue { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; border-left: 4px solid #D0D5DD; background: #fff; }
.kr-issue.kind-problem.is-open { border-left-color: #DC8A0E; }
.kr-issue.kind-olumlu { border-left-color: #12A15E; }
.kr-issue.kind-not { border-left-color: #4E6FB4; }
.kr-issue-h { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.kr-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-500); }
.kr-issue-m { margin-top: 3px; }
.kr-issue-b { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin-top: 6px; }
.kr-issue-d { margin-top: 6px; font-size: 14px; }
.kr-t th { text-align: center; }
.kr-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kr-hist > li { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; display: grid; gap: 4px; }
.kr-form { border-color: var(--navy-500); }
.kr-rt-pick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rt-opt { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: #fff; }
.rt-opt span { display: flex; flex-direction: column; gap: 2px; } .rt-opt small { font-size: 12px; color: var(--ink-500); }
.rt-opt.rt-kara:has(input:checked) { border-color: #111827; background: #F3F4F6; box-shadow: 0 0 0 1px #111827; }
.rt-opt.rt-kirmizi:has(input:checked) { border-color: #D92D20; background: #FEF3F2; box-shadow: 0 0 0 1px #D92D20; }
.rt-opt.rt-mavi:has(input:checked) { border-color: #2E6BD8; background: #EEF4FF; box-shadow: 0 0 0 1px #2E6BD8; }
.rt-opt.rt-yesil:has(input:checked) { border-color: #12A15E; background: #ECFDF3; box-shadow: 0 0 0 1px #12A15E; }
.rt-opt b { color: var(--ink-900); } .rt-opt.rt-kirmizi b { color: #B42318; } .rt-opt.rt-mavi b { color: #1D4E9E; } .rt-opt.rt-yesil b { color: #067647; }
.kr-checks { display: grid; gap: 6px; padding: 8px 0; max-height: 220px; overflow: auto; } .kr-checks label { display: flex; gap: 8px; font-size: 13.5px; }
.kr-short { max-width: 240px; }
.kr-new { max-width: 900px; }
.kr-kinds { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; } .kr-kinds legend { margin-bottom: 6px; }
.kr-kind-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px; cursor: pointer; font-weight: 600; }
.kr-kind-opt:has(input:checked) { border-color: var(--navy-700); background: var(--navy-50); box-shadow: 0 0 0 1px var(--navy-700); }
.kr-more-fields > summary { cursor: pointer; font-weight: 600; color: var(--navy-700); padding: 6px 0; }
.kr-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; padding-top: 8px; } .kr-fields .span-all { grid-column: 1 / -1; }
.kr-grow { flex: 1 1 240px; min-width: 0; }
@media (max-width: 1280px) { .kr-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kr-kpi.is-wide { grid-column: span 1; } }
@media (max-width: 900px) {
  .kr-head-main { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .kr-rating { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 12px; }
  .kr-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kr-grid2 { grid-template-columns: minmax(0, 1fr); }
  .kr-rt-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .kr-head { padding: 16px 14px 12px; border-left-width: 5px; }
  .kr-name { font-size: 20px; }
  .kr-kpis { grid-template-columns: minmax(0, 1fr); }
  .kr-actions .btn { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .kr-att-i { grid-template-columns: minmax(0, 1fr); } .kr-att-i .kr-att-b { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .kr-fields, .kr-rt-pick { grid-template-columns: minmax(0, 1fr); }
  .kr-t thead { display: none; }
  .kr-t, .kr-t tbody, .kr-t tr, .kr-t td { display: block; width: 100%; }
  .kr-t tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
  .kr-t td { border: 0; padding: 2px 0; text-align: left !important; }
  .kr-t td[data-l]::before { content: attr(data-l) ": "; color: var(--ink-500); font-size: 12px; font-weight: 600; }
  .kr-tabs a { padding: 9px 11px; font-size: 13.5px; }
}
.kr-att .card-head, .kr-tab .card-head, .kr-grid2 .card-head { flex-wrap: wrap; gap: 6px 12px; }
.kr-att .card-head h2, .kr-tab .card-head h2, .kr-grid2 .card-head h2 { white-space: normal; min-width: 0; overflow-wrap: anywhere; }
.kr-legal .kr-pre, .kr-legal details { display: block; margin-top: 2px; }
@media (min-width: 1281px) { .kr-kpis { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
/* v.16.17 evrak geçerliliği */
.ev-valid > summary { cursor: pointer; font-size: 12.5px; color: var(--navy-500); font-weight: 600; margin-top: 4px; }
.ev-valid-f { flex-wrap: wrap; gap: 6px 10px; align-items: center; margin-top: 6px; } .ev-valid-f input[type="date"] { max-width: 170px; }
.ev-vk { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; } .ev-vk legend { width: 100%; }
.ev-vk .field-hint { width: 100%; }
/* v.16.19 imzalı evrak */
.sg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sg-row { border: 1px solid var(--line); border-left: 4px solid #98A2B3; border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; }
.sg-row.st-tamam { border-left-color: #12A15E; } .sg-row.st-bekliyor { border-left-color: #DC8A0E; } .sg-row.st-yok, .sg-row.st-imza_eksik { border-left-color: var(--danger-700); }
.sg-head { display: flex; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.sg-no { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--navy-50); color: var(--navy-700); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.sg-sigs { gap: 6px 16px; flex-wrap: wrap; } .sg-ok { color: #067647; font-weight: 700; } .sg-x { color: var(--danger-700); font-weight: 700; }
.sg-warn { list-style: none; margin: 0; padding: 0; color: #93590C; font-size: 13px; display: grid; gap: 2px; }
.sg-problems { margin: 6px 0 4px; padding-left: 18px; }
.sg-verify { background: #FAFBFC; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.sg-up > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--navy-700); }
.c-status .sg-tag, .sg-tag { display: block; width: fit-content; max-width: 100%; white-space: normal; margin-top: 4px; font-size: 10.5px; line-height: 1.3; }
.c-status .sg-next { margin: 3px auto 0; font-size: 11.5px; color: var(--ink-600, #475467); font-weight: 600; } /* v.17.37: taşeron imzaladı → sıradaki adım */
.mc-chip.mc-ok { background: var(--ok-50, #ECFDF3); color: var(--ok-700, #067647); }

/* v.16.20 — Taşeron mutabakatı aşaması */
.stat.st-taseronda, .mc-status.st-taseronda, .fy-status.st-taseronda { --c: #0F7C86; }
.badge-status.st-taseronda, .mc-status.st-taseronda { --tone: #0F7C86; }
.rp-bar.st-taseronda > span { background: #0F7C86; }
.wf-chain li.is-skip { background: transparent; color: var(--muted, #8A94A6); box-shadow: inset 0 0 0 1px #DDE2EA; text-decoration: line-through; text-decoration-color: #C3CAD5; font-weight: 500; }
.sub-send { border: 1px solid #CBE6E8; background: #F2FAFA; border-radius: 10px; padding: 10px 12px; margin: 4px 0 10px; }
.sub-send-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sub-send-head .i { color: #0F7C86; }
.sub-hist { margin: 4px 0 10px; }
.sub-hist > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #0F7C86; }
.sub-rounds { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.sub-rounds li { margin-bottom: 8px; }
.sub-rounds .sub-out { color: var(--muted, #5B6B82); }
.sub-rounds li.sub-mutabik .sub-out { color: #1E6B40; font-weight: 600; }
.sub-rounds li.sub-talep .sub-out { color: #9A5B00; font-weight: 600; }
.sub-rounds li .note-box { margin: 4px 0 0; }

/* v.16.21 — İş süresi */
#is-suresi .trk-item.is-cancel { opacity: .6; }
#is-suresi .trk-item.is-cancel .fw600 { text-decoration: line-through; }
#is-suresi .summary-list { margin: 0; }

/* v.16.21 — Taşeron listesinde liste rengi: süzgeç + satır şeridi */
.rt-filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 14px; }
.rt-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; border: 1px solid #D0D5DD; background: #fff; font-size: 13px; font-weight: 600; color: #344054; text-decoration: none; }
.rt-chip b { font-weight: 700; color: #667085; }
.rt-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: #98A2B3; }
.rt-chip.rt-yesil .dot { background: #12A15E; } .rt-chip.rt-mavi .dot { background: #2E6BD8; }
.rt-chip.rt-kirmizi .dot { background: #D92D20; } .rt-chip.rt-kara .dot { background: #111827; }
.rt-chip.rt-none .dot { background: transparent; border: 1.5px dashed #98A2B3; } .rt-chip.rt-all .dot { display: none; }
.rt-chip:hover { border-color: #98A2B3; }
.rt-chip.is-active { background: var(--navy-50); border-color: var(--navy-700, #1F3A68); color: var(--navy-700, #1F3A68); }
.table-subs tr.rt-row > td:first-child { box-shadow: inset 4px 0 0 var(--rt, transparent); }
.table-subs tr.rt-row-yesil { --rt: #12A15E; } .table-subs tr.rt-row-mavi { --rt: #2E6BD8; }
.table-subs tr.rt-row-kirmizi { --rt: #D92D20; } .table-subs tr.rt-row-kara { --rt: #111827; }
.table-subs tr.rt-row-kara > td { background: #F7F7F8; }
.table-subs td a:has(> .rt-badge) { text-decoration: none; }

/* v.16.22 — Telefonda durum düğmeleri daha küçük (GM, 13.10): 4 sütun × 2 satır, kısa kutucuklar */
@media (max-width: 760px) {
  .stats, .stats.stats-3 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin: 0 0 14px; grid-auto-rows: auto; }
  .stats > .stat:last-child:nth-child(odd), .stats > .stat:last-child:nth-child(3n+1) { grid-column: auto; flex-direction: column; align-items: stretch; height: auto; min-height: 0; padding: 8px 8px 7px; }
  .stats > .stat:last-child:nth-child(3n+1) .label .t-small { display: block; }
  .stats > .stat:last-child:nth-child(3n+1) .ico { top: auto; bottom: 7px; transform: none; }
  .stat, .stat[class*="st-"] { min-height: 0; height: auto; padding: 8px 8px 7px; border-radius: 11px; gap: 0; }
  .stat .label, .stat[class*="st-"] .label { display: block; min-height: 0; padding: 0; }
  .stat .t-big, .stat[class*="st-"] .t-big { font-size: 12.5px; line-height: 15px; -webkit-line-clamp: 2; line-clamp: 2; }
  .stat .t-small, .stat[class*="st-"] .t-small { font-size: 10.5px; line-height: 13px; margin-top: 1px; }
  .stat .value { margin-top: 4px; font-size: 16px; line-height: 20px; }
  .stat .ico { width: 18px; height: 18px; border-radius: 6px; bottom: 7px; right: 7px; }
  .stat .ico .i { width: 10px; height: 10px; }
}
@media (max-width: 760px) {
  .queue { gap: 6px; margin-bottom: 10px; }
  .queue-item { padding: 8px 12px; font-size: 13.5px; line-height: 18px; border-radius: 11px; gap: 8px; }
  .queue-item b { font-size: 17px; }
  .attention { padding: 8px 12px; font-size: 13px; line-height: 18px; border-radius: 11px; gap: 8px; }
}

/* v.16.24 — Föy: sorumlu etiketi ve kontrol durumu */
.fy-who { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; background: #EEF2F8; color: var(--navy-700, #1F3A68); }
.fy-who.is-yk { background: #E7F6EE; color: #0F6B3E; }
.fy-who.is-ikisi { background: #FFF4E0; color: #8A5300; }
.fy-check { margin: 0 0 16px; padding: 8px 12px; border-radius: 8px; border: 1px solid #F3DFA6; background: #FFF8E6; color: #6B4700; font-size: 12.5px; }
.fy-check.is-bad { border-color: #F5B5AE; background: #FEF3F2; color: #912018; }
.fy-check.is-ok { border-color: #A6E4C3; background: #ECFDF3; color: #05603A; }
.fy-check ul { margin: 4px 0 0; padding-left: 18px; }
@media print { .fy-check { break-inside: avoid; } }

/* v.16.26 — Hızlı görüntü: fiyat tablosu ve sorumluluk matrisi sayfaya sığar */
.qv-page .rm-doc { overflow: visible; min-width: 0; max-width: 100%; }
.qv-page .rm-table { width: 100%; min-width: 0; table-layout: fixed; font-size: 11.5px; }
.qv-page .rm-table thead tr:first-child th[colspan] { width: 112px; }
.qv-page .rm-table thead tr:first-child th.c-note { width: 30%; }
.qv-page .rm-table .c-no { width: 34px; }
.qv-page .rm-table .c-t { width: 58px; }
.qv-page .rm-table .c-note { width: 30%; word-break: break-word; }
.qv-page .rm-table td, .qv-page .rm-table th { overflow-wrap: anywhere; word-break: normal; }
.qv-page h3 { margin: 18px 0 8px; font-size: 13px; }
.qv-page .rm-table thead th { font-size: 9.5px; padding: 6px 3px; letter-spacing: 0; }
.qv-page .rm-table thead tr:first-child th.c-no { width: 38px; }
.qv-page .rm-table thead tr:first-child th[colspan] { width: 128px; }

/* v.16.27: Gönüç Sistem düğmesi (üst çubuk) */
.gs-sistem { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; margin-right: 8px; border-radius: 10px; color: #fff; font-size: 13.5px; font-weight: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); white-space: nowrap; }
.gs-sistem:hover { background: rgba(255,255,255,.18); text-decoration: none; color: #fff; }
.gs-sistem .i { width: 18px; height: 18px; }
@media (max-width: 760px) { .gs-sistem span { display: none; } .gs-sistem { width: 36px; padding: 0; justify-content: center; margin-right: 4px; } }

/* ── v.17.11: Genel Müdür onay ekranı (sade) ───────────────────────────────── */
.gm { max-width: 980px; margin: 0 auto; padding-bottom: 96px; display: grid; gap: 16px; }
.gm-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-500); font-size: 13px; width: max-content; }
.gm-hero { display: flex; gap: 24px; align-items: stretch; justify-content: space-between; padding: 28px 30px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, #2F5597 0%, var(--navy-700) 45%, var(--navy-800) 100%); box-shadow: var(--shadow-md); }
.gm-hero-main { min-width: 0; }
.gm-eyebrow { display: inline-block; font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #B9C9E6; }
.gm-hero h1 { color: #fff; font-size: 26px; line-height: 1.2; margin: 6px 0 4px; }
.gm-sub { color: #DCE5F5; margin: 0; font-size: 14.5px; }
.gm-sub span { opacity: .6; margin: 0 2px; }
.gm-ref { margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gm-ref .mono { color: #fff; background: rgba(255,255,255,.12); padding: 2px 8px; border-radius: 6px; }
.gm-ref .mono.muted { color: #C9D4E8; background: transparent; padding: 0; }
.gm-wait { font-size: 12px; font-weight: 600; color: #FEDF89; background: rgba(254,223,137,.14); padding: 2px 10px; border-radius: 999px; }
.gm-amount { flex: none; display: grid; align-content: center; justify-items: end; text-align: right; padding-left: 24px; border-left: 1px solid rgba(255,255,255,.18); }
.gm-amount span { font-size: 12px; color: #B9C9E6; }
.gm-amount b { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 4px 0; white-space: nowrap; }
.gm-amount small { font-size: 12px; color: #C9D4E8; }
.gm-attn { border-radius: 14px; padding: 16px 20px; border: 1px solid; }
.gm-attn h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin: 0; }
.gm-attn ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.gm-attn li { position: relative; padding-left: 16px; font-size: 13.5px; }
.gm-attn li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-400, #98A2B3); }
.gm-attn li.t-bad::before { background: var(--danger-700); } .gm-attn li.t-warn::before { background: var(--warn-700); } .gm-attn li.t-info::before { background: var(--navy-500); }
.gm-attn li a { font-weight: 600; white-space: nowrap; }
.gm-attn.is-ok { background: var(--ok-50); border-color: var(--ok-200); } .gm-attn.is-ok h2 { color: var(--ok-700); }
.gm-attn.is-warn { background: var(--warn-50); border-color: var(--warn-200); } .gm-attn.is-warn h2 { color: var(--warn-700); }
.gm-attn.is-bad { background: var(--danger-50); border-color: var(--danger-200); } .gm-attn.is-bad h2 { color: var(--danger-700); }
.gm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.gm-tile { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-xs); display: grid; gap: 4px; align-content: start; }
.gm-tile span { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-500); }
.gm-tile b { font-size: 14.5px; font-weight: 600; color: var(--ink-900); line-height: 1.4; }
.gm-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow-xs); }
.gm-card h2 { font-size: 15px; margin: 0 0 14px; }
.gm-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; position: relative; }
.gm-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 0 10px 0 0; position: relative; }
.gm-steps li i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); color: var(--ink-500); position: relative; z-index: 1; }
.gm-steps li.is-done i { background: var(--ok-50); color: var(--ok-700); box-shadow: inset 0 0 0 1px var(--ok-200); }
.gm-steps li.is-now i { background: var(--navy-700); color: #fff; box-shadow: 0 0 0 4px var(--navy-100); }
.gm-steps li i .i { width: 14px; height: 14px; }
.gm-steps li div { display: grid; min-width: 0; line-height: 1.3; }
.gm-steps li span { font-size: 11.5px; color: var(--ink-500); font-weight: 600; }
.gm-steps li b { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.gm-steps li small { font-size: 11.5px; color: var(--ink-500); }
.gm-steps li.is-now b { color: var(--navy-700); }
.gm-quote { margin: 14px 0 0; padding: 10px 14px; background: var(--navy-50); border-radius: 10px; font-size: 13px; white-space: pre-wrap; }
.gm-doc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.gm-doc { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink-900); transition: border-color .15s, box-shadow .15s; }
.gm-doc:hover { text-decoration: none; border-color: var(--navy-100); box-shadow: var(--shadow-sm); }
.gm-doc .i { width: 20px; height: 20px; color: var(--navy-600); }
.gm-doc span { display: grid; line-height: 1.3; } .gm-doc small { color: var(--ink-500); font-size: 12px; }
.gm-doc.is-main { background: var(--navy-50); border-color: var(--navy-100); }
.gm-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; }
.gm-more > summary::-webkit-details-marker { display: none; }
.gm-more[open] > summary { margin-bottom: 8px; } .gm-more[open] > summary .i { transform: rotate(180deg); }
.gm-grp { padding: 12px 0; border-top: 1px solid var(--line-2); }
.gm-grp h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); margin: 0 0 8px; }
.gm-grp dl { margin: 0; display: grid; gap: 6px; }
.gm-grp dl div { display: grid; grid-template-columns: minmax(140px, 32%) 1fr; gap: 12px; font-size: 13.5px; }
.gm-grp dt { color: var(--ink-500); } .gm-grp dd { margin: 0; }
.gm-grp ol { margin: 0; padding-left: 20px; font-size: 13.5px; }
.gm-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 12px; justify-content: flex-end; align-items: flex-start; padding: 12px; border-radius: 16px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.gm-approve { font-size: 15px; padding: 12px 22px; border-radius: 12px; }
.gm-iade { position: relative; }
.gm-iade > summary { list-style: none; padding: 12px 18px; border-radius: 12px; font-size: 15px; }
.gm-iade > summary::-webkit-details-marker { display: none; }
.gm-iade-form { position: absolute; right: 0; bottom: calc(100% + 10px); width: min(420px, 86vw); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow-lg); display: grid; gap: 10px; }
.gm-note { text-align: center; color: var(--ink-500); font-size: 13px; }
@media (max-width: 720px) {
  .gm { gap: 12px; padding-bottom: 110px; }
  .gm-hero { flex-direction: column; padding: 22px 20px; gap: 16px; border-radius: 16px; }
  .gm-hero h1 { font-size: 22px; }
  .gm-amount { justify-items: start; text-align: left; padding: 14px 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .gm-amount b { font-size: 26px; }
  .gm-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .gm-tile { padding: 12px; } .gm-tile b { font-size: 13.5px; }
  .gm-steps { grid-template-columns: 1fr; gap: 12px; }
  .gm-grp dl div { grid-template-columns: 1fr; gap: 2px; }
  .gm-actions { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); }
  .gm-actions > form { flex: 1; } .gm-approve { width: 100%; justify-content: center; }
  .gm-iade-form { right: auto; left: 0; }
}
/* v.17.11: telefonda üst çubuk taşmasın (Genel Müdür menüsünde Gönüç Sistem düğmesi de var) */
@media (max-width: 760px) {
  .gs-topbar { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .usermenu .chev { display: none; }
  .usermenu > summary { padding: 4px; gap: 6px; }
}
/* Ana ekran uygulamasında alt sekme çubuğunun üstünde dursun */
@media (display-mode: standalone) and (max-width: 760px) {
  .gm-actions { bottom: calc(74px + env(safe-area-inset-bottom)); }
  .gm { padding-bottom: 150px; }
}
/* v.17.11 (GM, 31.10): bilgiler düğme halinde — dokununca açılır */
.gm-btns { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-items: start; }
.gm-btn { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); color: var(--ink-900); }
a.gm-btn, .gm-btn > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; min-height: 64px; cursor: pointer; list-style: none; }
.gm-btn > summary::-webkit-details-marker { display: none; }
a.gm-btn:hover { text-decoration: none; border-color: var(--navy-100); box-shadow: var(--shadow-sm); }
.gm-btn i { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); }
.gm-btn i .i { width: 18px; height: 18px; }
.gm-btn span { display: grid; min-width: 0; flex: 1; line-height: 1.3; }
.gm-btn b { font-size: 14.5px; font-weight: 650; }
.gm-btn small { font-size: 12.5px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-btn > summary > .i { flex: none; color: var(--ink-400, #98A2B3); transition: transform .15s; }
.gm-btn.is-main { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }
.gm-btn.is-main i { background: rgba(255,255,255,.14); color: #fff; } .gm-btn.is-main small { color: #C9D4E8; }
.gm-pop[open] { grid-column: 1 / -1; border-color: var(--navy-100); box-shadow: var(--shadow-sm); }
.gm-pop[open] > summary { border-bottom: 1px solid var(--line-2); } .gm-pop[open] > summary > .i { transform: rotate(180deg); }
.gm-pop[open] > summary small { white-space: normal; }
.gm-pop-body { padding: 12px 16px 16px; font-size: 13.5px; }
.gm-kv { margin: 0; display: grid; gap: 8px; }
.gm-kv div { display: grid; grid-template-columns: minmax(130px, 34%) 1fr; gap: 12px; }
.gm-kv dt { color: var(--ink-500); } .gm-kv dd { margin: 0; white-space: pre-wrap; }
.gm-list { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.gm-detail { text-align: center; margin: 0; font-size: 13px; } .gm-detail a { color: var(--ink-500); }
@media (max-width: 720px) {
  .gm-btns { grid-template-columns: 1fr 1fr; gap: 8px; }
  a.gm-btn, .gm-btn > summary { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; min-height: 0; }
  .gm-btn > summary > .i { display: none; }
  .gm-btn.is-main { grid-column: 1 / -1; } .gm-btn.is-main, .gm-btn.is-main { flex-direction: row; align-items: center; }
  .gm-pop[open] > summary { flex-direction: row; align-items: center; }
  .gm-kv div { grid-template-columns: 1fr; gap: 2px; }
}

/* ── v.17.12: Zeyilname ekranı ─────────────────────────────────────────────── */
.zy { max-width: 980px; margin: 0 auto; display: grid; gap: 16px; }
.zy-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; }
.zy-eyebrow { color: var(--navy-600); }
.zy-tip { max-width: 420px; }
.zy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 16px; }
.zy-dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 16px; grid-column: 1 / -1; }
.zy-dl dt { font-size: 12px; color: var(--ink-500); } .zy-dl dd { margin: 0; font-weight: 600; }
.zy-pick details { border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 12px; margin-bottom: 8px; }
.zy-pick summary { cursor: pointer; font-weight: 600; }
.zy-picks { display: grid; gap: 4px; margin-top: 8px; }
.zy-pick-item { display: grid; grid-template-columns: auto auto 1fr; gap: 8px; align-items: baseline; padding: 6px 8px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.zy-pick-item:hover { background: var(--navy-50); }
.zy-pick-item span { color: var(--ink-600, #475467); }
.zy-row { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 10px; background: #fff; }
.zy-row legend { font-weight: 650; font-size: 13px; color: var(--navy-700); padding: 0 6px; }
.zy-row-head { display: grid; grid-template-columns: 1fr 160px; gap: 12px; }
.zy-row textarea { width: 100%; }
.zy-actions { position: sticky; bottom: 12px; z-index: 5; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding: 12px; border-radius: 14px;
  background: rgba(255,255,255,.94); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
@media (max-width: 720px) { .zy-row-head { grid-template-columns: 1fr; } .zy-actions .btn { flex: 1; justify-content: center; } }
/* v.17.12 (GM, 31.10): öne çıkan bilgiler + proje */
.gm-proj { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 6px; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.12); color: #fff; font-size: 15px; }
.gm-proj span { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: #B9C9E6; }
.gm-proj b { font-weight: 650; } .gm-proj .i { color: #B9C9E6; }
.gm-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gm-k { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 14px 18px; box-shadow: var(--shadow-xs); display: grid; gap: 3px; align-content: start; overflow: hidden; }
.gm-k::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--line); }
.gm-k > span { font-size: 11.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-500); }
.gm-k > b { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; color: var(--ink-900); }
.gm-k > small { font-size: 12.5px; color: var(--ink-500); line-height: 1.35; }
.gm-k.t-ok::before { background: var(--ok-700); } .gm-k.t-ok > b { color: var(--ok-700); }
.gm-k.t-warn::before { background: var(--warn-700); } .gm-k.t-warn > b { color: var(--warn-700); }
.gm-k.t-info::before { background: var(--navy-600); } .gm-k.t-info > b { color: var(--navy-700); }
.gm-k.t-muted > b { color: var(--ink-500); }
.gm-k-wide { grid-column: span 2; }
.gm-k-resp { grid-column: span 2; } .gm-k-resp::before { background: var(--navy-100); }
.gm-k-resp p { margin: 2px 0 0; display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.gm-k-resp em { font-style: normal; color: var(--ink-500); }
.gm-k-resp b.is-yk { color: var(--ok-700); } .gm-k-resp b.is-ay { color: var(--navy-700); }
.gm-poz-wrap { overflow-x: auto; }
.gm-poz { width: 100%; border-collapse: collapse; font-size: 13px; }
.gm-poz th { text-align: left; font-size: 11.5px; color: var(--ink-500); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.gm-poz td { padding: 7px 8px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.gm-poz .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (max-width: 980px) { .gm-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .gm-keys { gap: 8px; } .gm-k { padding: 12px 12px 12px 15px; } .gm-k > b { font-size: 17px; }
  .gm-proj { font-size: 14px; }
  .gm-poz th:nth-child(3), .gm-poz td:nth-child(3) { display: none; }
}
/* v.17.12 (GM, 31.10 — 2. tur): küçük başlık + alt alta özet listesi */
.gm { max-width: 760px; }
.gm2-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-800)); box-shadow: var(--shadow-sm); }
.gm2-who { min-width: 0; }
.gm2-eyebrow { font-size: 10.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #B9C9E6; }
.gm2-head h1 { color: #fff; font-size: 18px; line-height: 1.3; margin: 2px 0 2px; }
.gm2-head p { margin: 0; font-size: 13px; color: #DCE5F5; }
.gm2-head p .mono { color: #C9D4E8; font-size: 12px; }
.gm2-amt { flex: none; text-align: right; display: grid; }
.gm2-amt span { font-size: 11px; color: #B9C9E6; }
.gm2-amt b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gm2-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-xs); overflow: hidden; }
.gm2-card h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin: 0; padding: 12px 16px 6px; }
.gm2-list { list-style: none; margin: 0; padding: 0 0 4px; }
.gm2-row { display: grid; grid-template-columns: 28px minmax(120px, 38%) 1fr; gap: 10px; align-items: start; padding: 11px 16px; border-top: 1px solid var(--line-2); }
.gm2-row:first-child { border-top: 0; }
.gm2-row i { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-600); }
.gm2-row i .i { width: 15px; height: 15px; }
.gm2-l { font-size: 13.5px; color: var(--ink-500); padding-top: 4px; }
.gm2-v { display: grid; gap: 1px; padding-top: 3px; min-width: 0; }
.gm2-v b { font-size: 15px; font-weight: 650; color: var(--ink-900); overflow-wrap: anywhere; }
.gm2-v small { font-size: 12.5px; color: var(--ink-500); line-height: 1.35; }
.gm2-row.t-ok b { color: var(--ok-700); } .gm2-row.t-ok i { background: var(--ok-50); color: var(--ok-700); }
.gm2-row.t-warn b { color: var(--warn-700); } .gm2-row.t-warn i { background: var(--warn-50); color: var(--warn-700); }
.gm2-row.t-muted b { color: var(--ink-500); font-weight: 600; } .gm2-row.t-muted i { background: var(--line-2); color: var(--ink-500); }
.gm2-row.t-info b { color: var(--navy-700); }
.gm2-row.t-yk b { color: var(--ok-700); } .gm2-row.t-ay b { color: var(--navy-700); }
.gm2-row.is-proj { background: var(--navy-50); } .gm2-row.is-proj b { font-size: 16px; }
/* detay düğmeleri alt alta */
.gm2-btns { grid-template-columns: 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-xs); }
.gm2-btns .gm-btn { border: 0; border-top: 1px solid var(--line-2); border-radius: 0; box-shadow: none; }
.gm2-btns .gm-btn:first-child { border-top: 0; }
.gm2-btns a.gm-btn, .gm2-btns .gm-btn > summary { min-height: 54px; padding: 10px 16px; flex-direction: row !important; align-items: center !important; }
.gm2-btns .gm-btn i { width: 30px; height: 30px; }
.gm2-btns .gm-btn > summary > .i { display: inline-block !important; }
.gm2-btns .gm-btn.is-main { grid-column: auto; }
.gm2-btns .gm-pop[open] { box-shadow: none; }
.gm-attn { padding: 12px 16px; } .gm-attn h2 { font-size: 14px; }
@media (max-width: 720px) {
  .gm2-head { padding: 12px 14px; gap: 10px; }
  .gm2-head h1 { font-size: 16px; } .gm2-head p { font-size: 12.5px; }
  .gm2-amt b { font-size: 17px; }
  .gm2-row { grid-template-columns: 26px 1fr; row-gap: 2px; padding: 10px 14px; }
  .gm2-row i { width: 26px; height: 26px; grid-row: span 2; }
  .gm2-l { padding-top: 0; font-size: 12.5px; } .gm2-v { grid-column: 2; padding-top: 0; }
  .gm2-v b { font-size: 14.5px; }
}

/* v.17.13 (GM, 31.10): SGK / yemek / konaklama — yapan ve maliyet ayrı; avans ayrıntısı alt alta */
.gm2-pair { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.gm2-pair > span { display: inline-flex; align-items: baseline; gap: 6px; }
.gm2-pair em { font-style: normal; font-size: 11.5px; letter-spacing: .02em; text-transform: uppercase; color: var(--ink-500); }
.gm2-pair b { font-size: 14.5px; }
.gm2-pair b.w-yk { color: var(--ok-700); }
.gm2-pair b.w-ay { color: var(--navy-700); }
.gm2-pair b.w-none { color: var(--ink-500); font-weight: 600; }
.gm2-pair + small { margin-top: 2px; }

/* v.17.13 (GM, 31.10): Genel Müdürde uyarılar açılır başlık altında */
.queue-fold { margin-bottom: 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface, #fff); }
.queue-fold > summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px; cursor: pointer; font-size: 13.5px; color: var(--ink-700); }
.queue-fold > summary::-webkit-details-marker { display: none; }
.queue-fold > summary b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--warn-50); color: var(--warn-700); font-size: 12px; }
.queue-fold > summary small { color: var(--ink-500); font-size: 12px; }
.queue-fold .qf-ic { margin-left: auto; display: inline-flex; color: var(--ink-500); }
.queue-fold .qf-ic .i + .i, .queue-fold[open] .qf-ic .i:first-child { display: none; }
.queue-fold[open] .qf-ic .i + .i { display: inline-block; }
.queue-fold > .queue { padding: 0 10px 10px; margin: 0; }
.queue-fold .queue-item { padding: 10px 14px; font-size: 14px; } .queue-fold .queue-item b { font-size: 16px; }
.queue-fold .attention { margin: 0; }
@media (max-width: 640px) { .queue-fold > summary small { display: none; } }

/* v.17.13: imzalı evrak satırı dar sütunda başlık sıkışmasın — durum rozeti alta iner */
.sg-head > .grow { flex: 1 1 220px; overflow-wrap: anywhere; }
.sg-head > .badge { margin-left: 36px; }
@media (min-width: 900px) { .sg-head > .badge { margin-left: 0; } }
.sg-pre > summary { cursor: pointer; font-size: 13px; color: var(--navy-700); font-weight: 600; }
.sg-pre { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; }

/* v.17.15 (GM, 31.10): imza nüshası ve imzalı tarama karşılaştırması */
.sg-copy { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; border: 1px solid #C9D6EE; background: #EAF0FA; border-radius: 10px; padding: 10px 14px; }
.sg-copy > div { flex: 1 1 260px; } .sg-copy b .i { width: 15px; height: 15px; vertical-align: -2px; }
.sg-cmp { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
.sg-cmp > b { display: flex; align-items: center; gap: 6px; } .sg-cmp ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.sg-cmp.tone-ok { background: #ECFDF3; border-color: #ABEFC6; } .sg-cmp.tone-ok > b { color: #067647; }
.sg-cmp.tone-warn { background: #FFF6E5; border-color: #F5D58A; } .sg-cmp.tone-warn > b { color: #93590C; }
.sg-cmp.tone-danger { background: #FDECEC; border-color: #F5C2C2; } .sg-cmp.tone-danger > b { color: #7A1A1A; }
.sg-cmp.tone-info { background: #F5F8FC; } .sg-cmp.tone-info > b { color: var(--navy-700); }
.sg-diffok { background: #FFF6E5; border: 1px solid #F5D58A; border-radius: 8px; padding: 8px 10px; }
.sg-wd > summary { cursor: pointer; font-size: 12.5px; color: var(--warn-700, #93590C); font-weight: 600; }
.sg-wd input { min-width: 0; }

/* v.17.17 (GM, 31.10): Sihirbazda düzenle — düzenleme modu (geçici kopya) */
.dz-note { margin-bottom: 12px; }
.dz-bar { position: sticky; bottom: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: 16px 0 0; padding: 10px 14px; background: #fff; border: 1px solid #C9D6EE; border-radius: 12px; box-shadow: 0 -6px 18px rgba(16, 24, 40, .08); }
.dz-bar-t { font-weight: 650; color: var(--navy-700); display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.dz-bar-b { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.dz-bar-b form { margin: 0; }
.dz-ask { max-width: 760px; margin: 0 auto; }
@media (max-width: 640px) {
  .dz-bar { bottom: calc(66px + env(safe-area-inset-bottom)); padding: 8px 10px; }
  .dz-bar-t { width: 100%; font-size: 13px; }
  .dz-bar-b { width: 100%; margin-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz-bar-b > [data-draft-save] { grid-column: 1 / -1; order: -1; }
  .dz-bar-b .btn { width: 100%; justify-content: center; padding-left: 6px; padding-right: 6px; font-size: 13px; white-space: normal; line-height: 1.2; }
}

/* v.17.18 (GM, 31.10): şablonu tek metin olarak okuma */
.tm { max-width: 980px; margin: 0 auto; }
.tm-doc { font-size: 15px; line-height: 1.6; }
.tm-sec + .tm-sec { margin-top: 18px; }
.tm-sec > h2 { font-size: 17px; margin: 0 0 8px; color: var(--navy-700); }
.tm-item { display: grid; grid-template-columns: 52px 1fr; gap: 8px; padding: 6px 8px; border-radius: 8px; }
.tm-item.is-degisti { background: #FFF6E5; border-left: 3px solid #E0A100; }
.tm-item.is-yeni { background: #EAF0FA; border-left: 3px solid var(--navy-500, #3B5BA9); }
.tm-no { font-variant-numeric: tabular-nums; color: var(--ink-700); }
.tm-body .legal-text { white-space: pre-wrap; }
.tm-list { margin: 4px 0 4px 18px; padding: 0; }
.tm-badge { margin-bottom: 4px; }
.tm-old > summary, .tm-edit > summary { cursor: pointer; font-size: 12.5px; color: var(--navy-600, #2F4A8A); font-weight: 600; margin-top: 4px; }
.tm-old .legal-text { color: var(--ink-500); text-decoration: line-through; text-decoration-color: rgba(122, 26, 26, .35); }
.tm-edit textarea { width: 100%; font-size: 14px; }
.tm-table { opacity: .8; }
.tm-ret > summary { list-style: none; } .tm-ret > summary::-webkit-details-marker { display: none; }
.tm-ret[open] { flex-basis: 100%; }
@media (max-width: 640px) { .tm-item { grid-template-columns: 40px 1fr; padding: 6px 4px; } .tm-doc { font-size: 14.5px; } }
.tm-rev { display: inline-block; margin-top: 4px; } .tm-rev .btn { padding: 2px 8px; font-size: 12.5px; }
/* v.17.22 Gönüç resim imzası */
.es-box { border: 1px solid #F1D9A6; background: #FFF8EA; border-radius: 10px; padding: 10px 14px; display: grid; gap: 8px; }
.es-box.es-done { border-color: var(--ok-200); background: var(--ok-50); }
.es-box b .i { width: 15px; height: 15px; vertical-align: -2px; }
.es-act { display: grid; gap: 4px; justify-items: start; }
.es-undo summary { cursor: pointer; color: var(--ink-600, #475467); }
.es-cur { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.es-img { max-width: 260px; max-height: 90px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.es-new > summary { list-style: none; } .es-new > summary::-webkit-details-marker { display: none; }
.es-pad-wrap { position: relative; max-width: 560px; }
.es-pad { display: block; width: 100%; aspect-ratio: 900 / 420; background: #fff; border: 1px dashed #98A2B3; border-radius: 10px; touch-action: none; cursor: crosshair; }
.es-file { position: relative; }
.es-docs { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
/* v.17.36: Genel Müdür için işin özeti */
.gs-box { margin: 12px 0 0; border: 1px solid #C7D7FE; background: #EEF4FF; border-radius: 10px; padding: 10px 14px; }
.gs-box.is-empty { border-color: var(--line); background: #F9FAFB; color: var(--ink-600, #475467); }
.gs-box p { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.gs-eyebrow { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-600, #475467); }
.gs-text { font-size: 15px; font-weight: 600; margin-top: 4px !important; }
/* v.17.36: GM ekranında taramanın imza sayfası (taşeron imzası görünsün) */
.es-area { margin: 6px 0 0; }
.es-area img { display: block; width: 100%; max-width: 640px; height: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.es-area figcaption { margin-top: 4px; }
.es-sub { display: block; font-size: 12.5px; margin-bottom: 2px; }
.es-sub .i { width: 14px; height: 14px; vertical-align: -2px; }
.sg-mgmt { background: #FFF8EA; border: 1px solid #F1D9A6; border-radius: 8px; padding: 6px 10px; }
.signed-final { border: 1px solid var(--ok-200); background: var(--ok-50); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.signed-final .doc-row { background: #fff; }
/* v.17.24 İmzalı sözleşme özeti */
.sg-final-btns .gm-btn.is-main { grid-column: span 2; }
@media (max-width: 640px) { .sg-final-btns .gm-btn.is-main { grid-column: 1 / -1; } }
.gm-btn.is-pending { border-style: dashed; }
.gm-btn.is-warn { border-color: #F1D9A6; background: #FFF8EA; }
.gm-btn.is-bad { border-color: #F5C2C0; background: #FEF3F2; }
.gm > .gm-btns + .gm2-card, .gm > .gm2-card + .gm-btns { margin-top: 14px; }
/* v.17.26 yeniden bas — düğme + kart içinde form */
.sg-restamp > summary { list-style: none; display: inline-flex; } .sg-restamp > summary::-webkit-details-marker { display: none; }
.sg-restamp[open] > summary { background: var(--navy-50); border-color: var(--navy-100); }
.sg-restamp-form { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; }
.sg-restamp-form .btn { justify-self: start; }
/* v.17.28 İşveren-Gönüç şablonu: kontrol edilecek maddeler */
.tm-item.is-kontrol { background: #FFF8EA; border-left: 3px solid #E0A100; }
.tm-kontrol { border: 1px solid #F1D9A6; background: #fff; border-radius: 8px; padding: 8px 10px; margin: 4px 0 8px; font-size: 13px; }
.tm-kontrol ul { margin: 4px 0; padding-left: 18px; }
.tm-kontrol-act { margin-top: 6px; gap: 6px; flex-wrap: wrap; align-items: center; }
.tm-var { background: #EEF2FA; }

/* v.17.42 Sözleşme listesi */
.sl-t td { vertical-align: top; }
.sl-t .sl-note { min-width: 220px; }
.sl-t .sl-note .secondary { display: block; margin-top: 2px; }
.sl-edit { margin-top: 4px; }
.sl-edit > summary { cursor: pointer; font-size: 12px; color: var(--navy-700); list-style: none; }
.sl-edit > summary::-webkit-details-marker { display: none; }
.sl-edit textarea { width: 100%; min-width: 200px; }
/* v.17.44 Zeyilname tablo düzenleyici */
.zy-ed { display: grid; gap: 6px; }
.zy-tbl[hidden] { display: none; }
.zy-tbl { border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #FBFCFE; }
.zy-tbl-scroll { overflow-x: auto; }
.zy-tgrid { border-collapse: collapse; min-width: 100%; }
.zy-tgrid td { padding: 2px; }
.zy-tgrid tr { display: table-row; }
.zy-tgrid td { display: table-cell; }
.zy-tgrid input { width: 100%; min-width: 70px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff; }
.zy-tgrid .zy-hrow input { font-weight: 700; background: #EEF2F8; }
.zy-tgrid .zy-rn { font-size: 11px; color: var(--ink-500, #667085); text-align: right; padding-right: 6px; white-space: nowrap; }
.zy-tgrid .zy-ctl td { text-align: center; }
.zy-x { border: 0; background: none; color: var(--ink-500, #667085); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 4px; }
.zy-x:hover:not(:disabled) { background: #FEE4E2; color: #B42318; }
.zy-x:disabled { opacity: .25; cursor: default; }
.zy-tbl-bar { margin-top: 8px; gap: 8px; align-items: center; flex-wrap: wrap; }
.zy-tbl-add { gap: 8px; }
.zy-msg { color: #B42318; margin: 0; }

/* v.17.45 — Zeyilnameler (kayıt, detay, sözleşme kartı) */
.zl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.zl-list li { padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.zl-list li:last-child { border-bottom: 0; }
.zl-tag { margin-left: 4px; }
.zl-actions { flex-wrap: wrap; gap: 8px; }
.zl-change { border: 1px solid var(--line-2); border-radius: 8px; padding: 12px; margin-top: 12px; }
.zl-change h3 { margin: 0 0 8px; font-size: 15px; }
.zl-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 760px) { .zl-cols { grid-template-columns: 1fr; } }
.zl-cols > div { min-width: 0; }
.zl-lbl { display: inline-block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; padding: 1px 6px; border-radius: 4px; background: var(--line-2); color: var(--ink-600); margin-bottom: 6px; }
.zl-lbl.is-new { background: var(--ok-50); color: var(--ok-700); }
.zl-text { white-space: pre-wrap; margin: 0 0 8px; }
.zl-tbl { overflow-x: auto; }
.zl-t { font-size: 13px; }
.zl-t th, .zl-t td { padding: 4px 6px; border: 1px solid var(--line-2); }
.zl-del { margin-top: 16px; }

/* v.17.46 — zeyilname: değişiklik satırı ekle / kaldır */
.zy-row { position: relative; }
.zy-del-row { position: absolute; top: -4px; right: 10px; }

/* v.17.47 — zeyilname onay zinciri */
.zl-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.zl-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface, #fff); font-size: 13px; color: var(--ink-700); text-decoration: none; }
.zl-tab em { font-style: normal; font-size: 11px; font-weight: 700; background: var(--line-2); border-radius: 999px; padding: 0 6px; }
.zl-tab.is-on { background: var(--navy-700, #1F3864); border-color: var(--navy-700, #1F3864); color: #fff; }
.zl-tab.is-on em { background: rgba(255,255,255,.2); color: #fff; }
.zl-tab.is-hot em { background: #D0202A; color: #fff; }
tr.zl-me td { background: #FFFAF0; }
tr.zl-me td:first-child { box-shadow: inset 3px 0 0 #F59E0B; }
.zl-mini { display: flex; gap: 2px; width: 104px; margin-top: 6px; }
.zl-mini b { flex: 1; height: 4px; border-radius: 2px; background: #E6E9EF; }
.zl-mini b.d { background: #12A150; } .zl-mini b.c { background: #D97706; }
.zl-ret { color: #B42318; font-weight: 600; }
.zf-steps { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
/* v.17.49: Taşeron mutabakatı isteğe bağlı adım — kullanılmadıysa üstü çizili, henüz gelinmediyse kesikli */
.zf-s.s b, .zf-s.s small { color: var(--muted, #8A94A6); text-decoration: line-through; text-decoration-color: #C3CAD5; font-weight: 500; }
.zf-s.s .o { border-style: dashed; } .zf-s.s::before { background: #12A150; }
.zf-s.o-opt .o { border-style: dashed; }
.zf-s { position: relative; text-align: center; font-size: 12px; color: var(--ink-500); padding: 0 2px; }
.zf-s .o { width: 24px; height: 24px; border-radius: 50%; margin: 0 auto 6px; display: grid; place-items: center; background: #fff; border: 2px solid #DDE2EA; position: relative; z-index: 1; color: #fff; }
.zf-s .o svg { width: 13px; height: 13px; }
.zf-s::before { content: ""; position: absolute; top: 11px; left: -50%; right: 50%; height: 3px; background: #E4E8EE; }
.zf-s:first-child::before { display: none; }
.zf-s.d .o { background: #12A150; border-color: #12A150; } .zf-s.d::before, .zf-s.c::before { background: #12A150; }
.zf-s.c .o { border-color: #D97706; box-shadow: 0 0 0 5px rgba(217,119,6,.16); }
.zf-s.c .o::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #D97706; }
.zf-s b { display: block; font-size: 12.5px; color: var(--ink-700); } .zf-s.c b { color: #B45309; } .zf-s small { display: block; line-height: 1.35; }
.zf-acts { flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.zf-ret { flex-basis: auto; } .zf-ret[open] { flex-basis: 100%; } .zf-ret > summary { list-style: none; display: inline-flex; cursor: pointer; } .zf-ret > summary::-webkit-details-marker { display: none; }
.zf-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.zf-hist li { padding-bottom: 8px; border-bottom: 1px solid var(--line-2); } .zf-hist li:last-child { border-bottom: 0; }
@media (max-width: 760px) { .zf-steps { grid-template-columns: 1fr; gap: 8px; } .zf-s { text-align: left; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; } .zf-s::before { display: none; } .zf-s .o { margin: 0; grid-row: span 2; } }

/* v.17.52: taslak arşivi — sözleşme kartında "Arşive al" / "Arşivde · Canlandır", listede Arşiv süzgeci */
.arch-card.arch-ask > summary { cursor: pointer; list-style: none; }
.arch-card.arch-ask > summary::-webkit-details-marker { display: none; }
.arch-card.arch-ask:not([open]) > summary { border-bottom: 0; }
.arch-card:not(.arch-ask) { border-color: #C9D3E6; background: #F6F8FB; }
.seg a.seg-arsiv { display: inline-flex; align-items: center; gap: 4px; }
.seg a.seg-arsiv .i { width: 14px; height: 14px; }

/* ── v.17.71: sözleşme iptali (Teknik Ofis Şefi + hukuk + Genel Müdür onayı; silinmez) ── */
.cx-card.is-pending { border-color: #F2C46D; background: #FFFBF0; }
.cx-card.is-cancelled { border-color: #F3B8B2; background: #FFF7F6; }
.cx-card.is-cancelled .card-head h2 { color: var(--danger-700, #B42318); }
.cx-card.cx-ask > summary { cursor: pointer; list-style: none; }
.cx-card.cx-ask > summary::-webkit-details-marker { display: none; }
.cx-card.cx-ask:not([open]) > summary { border-bottom: 0; }
.cx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cx-step { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line, #E4E7EC); border-radius: 10px; background: #fff; }
.cx-step .cx-dot { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #D0D5DD; background: #fff; color: #fff; }
.cx-step .cx-dot .i { width: 13px; height: 13px; }
.cx-step.is-done .cx-dot { background: #12A15E; border-color: #12A15E; }
.cx-step .cx-who { display: flex; flex-direction: column; min-width: 0; }
.cx-actions { gap: 8px; align-items: center; flex-wrap: wrap; }
.cx-actions input { min-width: 0; }
.cx-reject > summary { list-style: none; display: inline-flex; cursor: pointer; }
.cx-reject > summary::-webkit-details-marker { display: none; }
.badge.cx-tag { margin-left: 6px; }

/* v.17.74: imzalayacak kişiye kaşe + imza bölümü sayfanın üstünde */
.sign-top { border-color: #9CC3F5; box-shadow: 0 0 0 3px rgba(37, 119, 238, .12); }
.sign-top .es-box { margin: 0; }
#yonetim-imzasi { scroll-margin-top: 80px; }
.sg-rerun { display: inline; margin: 0; }
.es-rerun { margin-top: 6px; }
