/* Yerleşim: solda gezinme rayı, sağda içerik; teklif ve tank ekranlarında form | çıktı iki sütun.
   Dil: teknik resim paftası — ince çizgi, mono kodlar, antet; marka yeşili eylem, mavisi ölçü/bilgi. */
:root {
  --bg: #F2F4F1; --surface: #FFFFFF; --surface-2: #EEF2EC; --line: #D9DED6; --line-2: #BCC5B9;
  --ink: #161D17; --ink-2: #465247; --ink-3: #657066;
  --v1: #2C75BA; --v2: #3A9527;
  --map-n: #E7EAE6; --map-0: #A6D196; --map-1: #9DC4EB; --map-2: #5E9BD8; --map-3: #2F74BC; --map-4: #17497F;
  --field: #F4F7F3; --field-line: #C3CCC0; --field-hover: #9AA897; --field-ring: rgba(75, 174, 50, .22);   /* grafik serileri (renk körlüğü ve kontrast denetimi geçti) */
  --brand: #4BAE32; --brand-btn: #2F7F1F; --on-brand: #FFFFFF; --brand-ink: #256B17; --brand-soft: #E5F3E0;
  --blue: #2C75BA; --blue-ink: #1F5C97; --blue-soft: #E3EEF9;
  --warn-ink: #8A5A00; --warn-soft: #FFF0CC; --bad-ink: #B3261E; --bad-soft: #FBE3E0;
  --hl: #FFE94D; --hl-ink: #1A1A00; --hl-line: #D2B800;
  --series-1: #2C75BA; --series-2: #4BAE32; --grid: #E4E8E1; --axis: #C3CABF;
  --dw-ink: #1B231C; --dw-thin: #5E6A60; --dw-dim: #1F5C97; --dw-fill: #FFFFFF;
  --scrim: rgba(12, 17, 12, .48); --shadow: 0 1px 2px rgba(22, 29, 23, .06), 0 10px 28px rgba(22, 29, 23, .10);
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F130F; --surface: #171C17; --surface-2: #1F261F; --line: #2B342B; --line-2: #3F4B3F;
    --ink: #E8EDE6; --ink-2: #B6C0B5; --ink-3: #8D998E;
  --v1: #4E93D8; --v2: #4BAE32;
  --map-n: #232A23; --map-0: #3C6B33; --map-1: #24476C; --map-2: #2F689F; --map-3: #468BCE; --map-4: #86B9EC;
  --field: #111611; --field-line: #3A463A; --field-hover: #556455; --field-ring: rgba(75, 174, 50, .28);
    --v1: #4E93D8; --v2: #4BAE32;
    --map-n: #232A23; --map-0: #3C6B33; --map-1: #24476C; --map-2: #2F689F; --map-3: #468BCE; --map-4: #86B9EC;
    --field: #111611; --field-line: #3A463A; --field-hover: #556455; --field-ring: rgba(75, 174, 50, .28);
    --brand: #4BAE32; --brand-btn: #4BAE32; --on-brand: #06140A; --brand-ink: #7FD267; --brand-soft: #1A3115;
    --blue: #4E93D8; --blue-ink: #8EC0EE; --blue-soft: #14283C;
    --warn-ink: #F0C060; --warn-soft: #382B0D; --bad-ink: #FF8E84; --bad-soft: #3D1A17;
    --hl: #F7DC3C; --hl-ink: #1A1A00; --hl-line: #B89F00;
    --series-1: #2C75BA; --series-2: #4BAE32; --grid: #263026; --axis: #3A453A;
    --dw-ink: #DCE4DA; --dw-thin: #93A094; --dw-dim: #8EC0EE; --dw-fill: #171C17;
    --scrim: rgba(0, 0, 0, .6); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F130F; --surface: #171C17; --surface-2: #1F261F; --line: #2B342B; --line-2: #3F4B3F;
  --ink: #E8EDE6; --ink-2: #B6C0B5; --ink-3: #8D998E;
  --brand: #4BAE32; --brand-btn: #4BAE32; --on-brand: #06140A; --brand-ink: #7FD267; --brand-soft: #1A3115;
  --blue: #4E93D8; --blue-ink: #8EC0EE; --blue-soft: #14283C;
  --warn-ink: #F0C060; --warn-soft: #382B0D; --bad-ink: #FF8E84; --bad-soft: #3D1A17;
  --hl: #F7DC3C; --hl-ink: #1A1A00; --hl-line: #B89F00;
  --series-1: #2C75BA; --series-2: #4BAE32; --grid: #263026; --axis: #3A453A;
  --dw-ink: #DCE4DA; --dw-thin: #93A094; --dw-dim: #8EC0EE; --dw-fill: #171C17;
  --scrim: rgba(0, 0, 0, .6); --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sans); -webkit-text-size-adjust: 100%; }
#app { height: 100%; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 20px; font-weight: 650; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: 14px; font-weight: 650; letter-spacing: -.005em; }
h3 { font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); }
a { color: var(--blue-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--ink-3); }
.code { font-family: var(--mono); font-size: .93em; letter-spacing: -.01em; }
.nw { white-space: nowrap; }
.agn { display: block; color: var(--ink-2); font-size: 12px; line-height: 1.5; margin: 2px 0 3px; }
td.nm { min-width: 300px; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- kabuk ---------- */
.shell { display: grid; grid-template-columns: 208px minmax(0, 1fr); height: 100%; }
.side { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; padding: 16px 10px 12px; padding-left: max(10px, env(safe-area-inset-left, 0px)); overflow-y: auto; }
.brandbox { display: flex; align-items: baseline; gap: 8px; padding: 2px 8px 0; }
.brandbox img { width: 112px; height: auto; display: block; }
.brandbox span { font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-weight: 550; text-align: left; cursor: pointer; white-space: nowrap; }
.nav button:hover { background: var(--surface-2); color: var(--ink); }
.nav button[aria-current="page"] { background: var(--brand-soft); color: var(--brand-ink); }
.nav .cnt { margin-left: auto; font: 600 11px var(--mono); padding: 1px 6px; border-radius: 9px; background: var(--warn-soft); color: var(--warn-ink); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.proto { font: 600 10.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--warn-ink); background: var(--warn-soft); padding: 4px 8px; border-radius: 4px; text-align: center; }
.user { display: flex; align-items: center; gap: 8px; padding: 6px 4px 0; border-top: 1px solid var(--line); padding-top: 10px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); display: grid; place-items: center; font: 650 11px var(--sans); flex: none; }
.user .who { min-width: 0; flex: 1; line-height: 1.2; }
.user .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .who span { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.main { min-width: 0; overflow: auto; }
.wrap { max-width: 1500px; margin: 0 auto; padding-block: 18px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 1100px) { .wrap { padding-left: 24px; padding-right: 24px; } }

@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .side { flex-direction: row; align-items: center; gap: 10px; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); overflow-x: auto; overflow-y: hidden; }
  .brandbox { padding: 0; } .brandbox img { width: 74px; } .brandbox span { display: none; }
  .user .avatar { display: none; }
  .nav { flex-direction: row; }
  .nav button { padding: 7px 8px; gap: 7px; } .nav button .lbl { display: none; } .nav button[aria-current="page"] .lbl { display: inline; }
  .side-foot { margin: 0 0 0 auto; flex-direction: row; align-items: center; }
  .proto { display: none; }
  .user { border: 0; padding: 0; } .user .who { display: none; }
}

/* ---------- ortak parçalar ---------- */
.vhead { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.vhead .grow { flex: 1; min-width: 0; }
.vhead .sub { color: var(--ink-3); font-size: 13px; }
.vtitle { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.card > header { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card > header .grow { flex: 1; min-width: 0; }
.card > header h2 { white-space: nowrap; }
.card .body { padding: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); font-weight: 600; font-size: 13px; line-height: 1.2; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.pri { background: var(--brand-btn); color: var(--on-brand); border-color: transparent; }
.btn.pri:hover { filter: brightness(1.08); }
.btn.sm { padding: 4px 8px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.dng { color: var(--bad-ink); }
.btn.wide { width: 100%; padding: 9px 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.icon { padding: 5px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; line-height: 1.5; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pill.good { background: var(--brand-soft); color: var(--brand-ink); }
.pill.info { background: var(--blue-soft); color: var(--blue-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill.bad { background: var(--bad-soft); color: var(--bad-ink); }
.pill.neutral { background: var(--surface-2); color: var(--ink-2); }
.pill.mute { background: none; color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.chip { display: inline-block; padding: 1px 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.chip.warn { background: var(--warn-soft); color: var(--warn-ink); }
.chip.bad { background: var(--bad-soft); color: var(--bad-ink); }
.chip.good { background: var(--brand-soft); color: var(--brand-ink); }
.chip.rev { font-family: var(--mono); background: var(--blue-soft); color: var(--blue-ink); }
.up { color: var(--bad-ink); } .down { color: var(--brand-ink); }

.f { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.f > label, .f > .lab { font-size: 12px; font-weight: 550; color: var(--ink-2); }
.f .hint { font-size: 11.5px; color: var(--ink-3); }
input[type="text"], input[type="number"], input[type="date"], input[type="password"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%; min-width: 0; padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--surface); color: var(--ink); }
input[type="number"] { font-variant-numeric: tabular-nums; }
input:not([type="checkbox"]):not([type="radio"]), select { height: 33px; }
textarea { resize: vertical; min-height: 60px; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-2); opacity: 1; border-color: var(--line); }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--brand-btn); }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 12px; align-items: end; }
.fgrid .span2 { grid-column: span 2; } .fgrid .full { grid-column: 1 / -1; }
.fgrid.qf { grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); }
/* kalıptan üretilen stok adı önizlemesi */
.mname { border: 1px dashed var(--line-2); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 5px; background: var(--surface-2); min-width: 0; }
.mname .kick { color: var(--brand-ink); }
.mname .code { font-size: 12.5px; overflow-wrap: anywhere; line-height: 1.45; }
.mname .odd { color: var(--warn-ink); font-weight: 550; }
.f > label .hint { font-weight: 400; }
@media (max-width: 420px) { .fgrid .span2 { grid-column: 1 / -1; } }
.hl, .f.hl input, .f.hl select, .f.hl textarea, input.hl, td.hl input { background: var(--hl) !important; color: var(--hl-ink) !important; }
.f.hl input, .f.hl select, .f.hl textarea, input.hl, td.hl input { border-color: var(--hl-line); }
span.hl, b.hl, div.hl { padding: 0 3px; border-radius: 2px; }
.f.hl, .hw.hl { background: none !important; padding: 0; }
.hw { display: block; }
.hw.hl input { background: var(--hl) !important; color: var(--hl-ink) !important; border-color: var(--hl-line); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hlkey { display: inline-block; width: 12px; height: 12px; border-radius: 2px; background: var(--hl); border: 1px solid var(--hl-line); vertical-align: -1px; }

.tblw { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 11px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
th.num { text-align: right; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
td input, td select { padding: 4px 6px; }
td.num input { text-align: right; }
.empty { padding: 28px 14px; text-align: center; color: var(--ink-3); }

.banner { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; flex-wrap: wrap; }
.banner .grow { flex: 1; min-width: 180px; }
.banner.warn { background: var(--warn-soft); border-color: transparent; color: var(--warn-ink); }
.banner.info { background: var(--blue-soft); border-color: transparent; color: var(--blue-ink); }
.banner .ic { width: 18px; height: 18px; }

.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: none; padding: 5px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line); white-space: nowrap; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- giriş ---------- */
.login { min-height: 100%; display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); }
.login-card { background: var(--surface); border-right: 1px solid var(--line); padding: 48px max(24px, env(safe-area-inset-right, 0px)) 32px max(32px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.login-card img { width: 190px; height: auto; }
.login-card h1 { font-size: 26px; letter-spacing: -.02em; }
.login-card form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.login-card input { padding: 9px 10px; }
.err { color: var(--bad-ink); font-size: 13px; font-weight: 550; }
.demo-note { font-size: 12.5px; color: var(--ink-2); background: var(--surface-2); border-radius: 6px; padding: 10px 12px; line-height: 1.5; }
.login-hero { padding: 28px max(24px, env(safe-area-inset-right, 0px)) 28px 24px; display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0;
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
.hero-cap { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; font: 600 12px var(--mono); color: var(--ink-2); }
.hero-cap .eyebrow { text-transform: uppercase; letter-spacing: .12em; color: var(--brand-ink); }
#hero-draw { background: var(--surface); border: 1px solid var(--line-2); border-radius: 4px; padding: 8px; max-width: 860px; }
@media (max-width: 860px) {
  .login { grid-template-columns: minmax(0, 1fr); }
  .login-card { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
  .login-hero { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
}

/* ---------- ana ekran ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; min-width: 0; }
.kpi .l { font-size: 12.5px; color: var(--ink-2); font-weight: 550; }
.kpi .v { font-size: 27px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; margin-top: 2px; }
.kpi .v small { font-size: 14px; font-weight: 600; color: var(--ink-2); letter-spacing: 0; }
.kpi .s { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pipe { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pipe button { border: 0; border-right: 1px solid var(--line); background: none; text-align: left; padding: 9px 12px; cursor: pointer; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pipe button:last-child { border-right: 0; }
.pipe button:hover { background: var(--surface-2); }
.pipe button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.pipe button[aria-pressed="true"] .pl, .pipe button[aria-pressed="true"] .ps { color: inherit; opacity: .85; }
.pipe .pl { font-size: 12px; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pipe .pl i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.pipe .pn { font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; }
.pipe .ps { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.dot-mute { background: var(--line-2); } .dot-neutral { background: var(--ink-3); } .dot-warn { background: var(--warn-ink); } .dot-info { background: var(--blue); } .dot-good { background: var(--brand); } .dot-bad { background: var(--bad-ink); } .dot-all { background: transparent; border: 1.5px solid currentColor; }
@media (max-width: 1000px) { .pipe { grid-template-columns: repeat(4, minmax(0, 1fr)); } .pipe button:nth-child(4) { border-right: 0; } .pipe button:nth-child(-n+4) { border-bottom: 1px solid var(--line); } }
@media (max-width: 520px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pipe button { border-bottom: 1px solid var(--line); } .pipe button:nth-child(even) { border-right: 0; } .pipe button:nth-child(4) { border-right: 0; } .pipe button:last-child { border-bottom: 0; } }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; align-items: start; }
.cols > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 1180px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.search { position: relative; flex: 1; min-width: 160px; max-width: 320px; }
.search .ic { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 30px; }
.qno { font-family: var(--mono); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.sub2 { font-size: 12px; color: var(--ink-3); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { border-bottom: 1px solid var(--line); }
.todo li:last-child { border-bottom: 0; }
.todo button { display: flex; gap: 10px; width: 100%; padding: 10px 14px; border: 0; background: none; text-align: left; cursor: pointer; align-items: flex-start; }
.todo button:hover { background: var(--surface-2); }
.todo .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.todo .ti .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.todo .ti.bad { background: var(--bad-soft); color: var(--bad-ink); } .todo .ti.warn { background: var(--warn-soft); color: var(--warn-ink); } .todo .ti.info { background: var(--blue-soft); color: var(--blue-ink); }
.todo b { display: block; font-size: 13px; font-weight: 600; }
.todo span { font-size: 12px; color: var(--ink-3); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-2); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.legend .s1 { background: var(--series-1); } .legend .s2 { background: var(--series-2); }

/* ---------- grafik ---------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart.bar { max-width: 460px; }
.ch-grid { stroke: var(--grid); stroke-width: 1; }
.ch-axis { stroke: var(--axis); stroke-width: 1; }
.ch-ax { fill: var(--ink-3); font: 10.5px var(--sans); font-variant-numeric: tabular-nums; }
.ch-val { fill: var(--ink); font: 600 11px var(--sans); font-variant-numeric: tabular-nums; }
.ch-s1 { fill: var(--series-1); } .ch-s2 { fill: var(--series-2); }
.ch-hit { fill: transparent; }
.ch-band { outline: none; cursor: default; }
.ch-band:hover .ch-hit, .ch-band:focus-visible .ch-hit { fill: var(--surface-2); }
.ch-line { fill: none; stroke: var(--series-1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-fc { stroke-dasharray: 5 4; opacity: .85; }
.ch-area { fill: var(--series-1); opacity: .1; }
.ch-cross { stroke: var(--ink-3); stroke-width: 1; opacity: 0; }
.ch-dot { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; opacity: 0; }
.ch-dot-fc { fill: var(--surface); stroke: var(--series-1); }
.ch-band:hover .ch-cross, .ch-band:hover .ch-dot, .ch-band:focus-visible .ch-cross, .ch-band:focus-visible .ch-dot { opacity: 1; }
.ch-end { fill: var(--series-1); stroke: var(--surface); stroke-width: 2; }
.spark { display: block; }
.sp-line { fill: none; stroke: var(--ink-3); stroke-width: 1.4; stroke-linejoin: round; }
.sp-area { fill: var(--ink-3); opacity: .1; }
.sp-end { fill: var(--series-1); }
#tip { position: fixed; z-index: 80; pointer-events: none; background: var(--ink); color: var(--bg); padding: 7px 10px; border-radius: 6px; font-size: 12px; max-width: 280px; box-shadow: var(--shadow); line-height: 1.4; }
.tip-t { opacity: .75; margin-bottom: 2px; }
.tip-r { display: flex; align-items: baseline; gap: 6px; }
.tip-r b { font-variant-numeric: tabular-nums; }
.tip-r span { opacity: .8; }
.tip-k { display: inline-block; width: 10px; height: 3px; border-radius: 2px; flex: none; align-self: center; }
.tip-k.s1 { background: var(--series-1); } .tip-k.s2 { background: var(--series-2); }

/* ---------- teklif ---------- */
.lines td { vertical-align: top; }
.lines .ln-t { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.lines .ln-s { font-size: 12px; color: var(--ink-3); margin: 2px 0 6px 24px; }
.lines .ln-a { margin-left: 24px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.lines td.pad { padding-top: 13px; }
.lines th.int, .lines td.int { background: var(--surface-2); }
.lines tr.added td { background: var(--hl); color: var(--hl-ink); }
.lines tr.added td .ln-s, .lines tr.added td .muted { color: inherit; opacity: .75; }
.lines input[type="number"] { width: 84px; }
.lines .qty input { width: 64px; }
.lines .unit input { width: 72px; }
.lines td:nth-child(2) { width: 46%; }
.tot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 760px) { .tot { grid-template-columns: minmax(0, 1fr); } }
.sum { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; font-variant-numeric: tabular-nums; }
.sum > :nth-child(even) { text-align: right; }
.sum .big { font-size: 18px; font-weight: 650; letter-spacing: -.01em; border-top: 1px solid var(--line); padding-top: 8px; }
.sum input { width: 70px; text-align: right; display: inline-block; padding: 3px 6px; }
.intbox { background: var(--surface-2); border-radius: 6px; padding: 12px 14px; }

/* ---------- tank ---------- */
.tank { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tank .tform { grid-column: 1; grid-row: 1; }
.tank .tdraw { grid-column: 2; grid-row: 1; position: sticky; top: 12px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.tbd { min-width: 0; }   /* yapışkan çizim sütunu yalnız form boyunca kalsın diye ızgaranın dışındadır */
.tank .tdraw .dw { max-height: 60vh; }
@media (max-width: 1020px) {
  .tank { grid-template-columns: minmax(0, 1fr); }
  .tank .tform, .tank .tdraw { grid-column: 1; grid-row: auto; }
  .tank .tdraw { position: static; order: -1; }
  .tank .tdraw .dw { max-height: none; }
}
.grp { padding: 12px 14px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.grp:last-child { border-bottom: 0; }
.grp .fgrid { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.grp.shut { padding-bottom: 12px; }
.grph { margin: -4px -6px; font-size: inherit; }
.grph button { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; padding: 4px 6px; border-radius: 5px; cursor: pointer; color: inherit; font: inherit; font-weight: 650; text-align: left; }
.grph button:hover { background: var(--surface-2); }
.grph .grow { flex: 1; min-width: 0; }
.grph .sub2 { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.grph .ic { width: 14px; height: 14px; flex: none; color: var(--ink-3); transform: rotate(90deg); }
.grp.shut .grph .ic { transform: rotate(-90deg); }
.grp h4 { font-size: 12px; font-weight: 650; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; }
.grp .sub { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 0; border-top: 1px dashed var(--line); }
.grp .sub:first-of-type { border-top: 0; padding-top: 0; }
.duo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 6px; }
.grp .fgrid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.read { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.read > div { background: var(--surface-2); padding: 6px 10px; min-width: 0; }
.read dt { font-size: 11px; color: var(--ink-3); } .read dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.read .sumr { background: var(--brand-soft); } .read .sumr dt, .read .sumr dd { color: var(--brand-ink); }
.code-parts { display: flex; flex-wrap: wrap; gap: 4px; }
.code-parts span { display: flex; flex-direction: column; align-items: center; padding: 3px 7px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-2); min-width: 0; }
.code-parts b { font: 650 12px var(--mono); } .code-parts small { font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.neg { color: var(--bad-ink); }
.rowlist .r.stf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 58px 28px; }
.rowlist .r.crs { grid-template-columns: 34px minmax(0, 1fr) minmax(0, 1fr) 28px; }
.rowlist .r.lgp { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); }
.rowlist .r.nzl { grid-template-columns: 34px minmax(0, 1fr) auto 28px 28px; padding: 5px 0; border-bottom: 1px solid var(--line); }
.rowlist .r.nzl:last-child { border-bottom: 0; }
.rowlist .r.nzl .det, .check.nt .det { display: block; font-size: 11.5px; color: var(--ink-3); }
.rowlist .r.nzl .num { font-variant-numeric: tabular-nums; font-size: 12.5px; white-space: nowrap; }
.rowlist .r.odoc { grid-template-columns: minmax(150px, 1fr) minmax(0, 1.2fr) auto; padding: 4px 0; }
.rowlist .r.odoc .code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; gap: 5px; align-items: center; font-size: 12px; }
.rowlist .r.odoc .ic { width: 13px; height: 13px; flex: none; }
.tbd2 { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
@media (max-width: 1180px) { .tbd2 { grid-template-columns: minmax(0, 1fr); } }
.bd tr.miss td { background: var(--bad-soft); }
.bd.cs td:first-child { width: 68%; }
.bd:not(.cs) td:first-child { width: 40%; }
.bd.cs td { vertical-align: top; }
.rowlist { display: flex; flex-direction: column; gap: 6px; }
.rowlist .r { display: grid; gap: 6px; align-items: center; }
.rowlist .r.noz { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, .9fr) 56px 28px; }
.rowlist .r.ext { grid-template-columns: minmax(0, 1fr) 64px 28px; }
.rowlist .hd { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.fit { display: flex; gap: 6px; align-items: flex-end; }
.fit .f { flex: 1; }
.dwbox { padding: 8px; }
.dw { width: 100%; height: auto; display: block; font-family: var(--mono); }
.dw-o { stroke: var(--dw-ink); stroke-width: 1.5; fill: var(--dw-fill); stroke-linejoin: round; }
.dw-n { stroke: var(--dw-ink); stroke-width: 1.5; fill: none; stroke-linecap: round; }
.dw-t { stroke: var(--dw-thin); stroke-width: .8; fill: none; }
.dw-tf { stroke: var(--dw-thin); stroke-width: .8; fill: var(--dw-fill); }
.dw-h { stroke: var(--dw-thin); stroke-width: .9; fill: none; stroke-dasharray: 5 3; }
.dw-c { stroke: var(--dw-thin); stroke-width: .7; fill: none; stroke-dasharray: 14 3 2 3; }
.dw-d { stroke: var(--dw-dim); stroke-width: .8; fill: none; }
.dw-da { fill: var(--dw-dim); }
.dw-bg { fill: var(--dw-fill); }
.dw-tx { fill: var(--dw-dim); font-size: 10px; font-weight: 600; }
.dw-lb { fill: var(--dw-thin); font-size: 8.5px; paint-order: stroke; stroke: var(--dw-fill); stroke-width: 2.5px; }
.dw-cap { fill: var(--dw-thin); font-size: 9px; letter-spacing: .14em; }
.dw-hl { fill: var(--hl); }
.dw-hltx { fill: var(--hl-ink) !important; }
.dw-tb { fill: none; stroke: var(--dw-ink); stroke-width: 1; }
.dw-tbl { fill: var(--dw-thin); font-size: 6.6px; letter-spacing: .1em; }
.dw-tbv { fill: var(--dw-ink); font-size: 10.5px; font-weight: 600; }
.dw-tbb { fill: var(--dw-ink); font: 700 13px var(--sans); letter-spacing: .08em; }
.dw-tbc { fill: var(--dw-ink); font-size: 8.6px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 1px; background: var(--line); border-top: 1px solid var(--line); }
.facts div { background: var(--surface); padding: 9px 12px; min-width: 0; }
.facts span { display: block; font-size: 11.5px; color: var(--ink-3); }
.facts b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.facts .price { background: var(--brand-soft); }
.facts .price b { font-size: 19px; color: var(--brand-ink); letter-spacing: -.01em; }
.facts .price span { color: var(--brand-ink); }
.bd td, .bd th { padding: 6px 10px; font-size: 13px; }
.bd .det { font-size: 11.5px; color: var(--ink-3); display: block; }
.bd tr.g td { background: var(--surface-2); font-weight: 650; }
.bd tr.t td { font-weight: 650; border-top: 1px solid var(--line-2); }
.bd tr.p td { font-size: 15px; font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); }
.bd .share { display: inline-block; width: 64px; height: 6px; border-radius: 3px; background: var(--grid); vertical-align: middle; margin-left: 8px; overflow: hidden; }
.bd .share i { display: block; height: 100%; background: var(--series-1); border-radius: 3px; }

/* ---------- pencere, bildirim ---------- */
.modal-bg { position: fixed; inset: 0; background: var(--scrim); display: grid; place-items: center; padding: 16px; z-index: 60; }
.modal { background: var(--surface); border-radius: 10px; width: min(620px, 100%); max-height: 100%; overflow: auto; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.modal.wide { width: min(860px, 100%); }
.modal > header { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.modal > header h2 { font-size: 16px; flex: 1; }
.modal .mb { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 12px; }
.modal > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mail { font: 12.5px/1.5 var(--mono); white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 12px; max-height: 320px; overflow: auto; user-select: all; }
.picklist { max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; }
.picklist label { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 6px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.picklist label:last-child { border-bottom: 0; }
.picklist label:hover { background: var(--surface-2); }
.picklist input[type="number"] { width: 84px; padding: 3px 6px; text-align: right; }
#toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; font-size: 13px; font-weight: 550; box-shadow: var(--shadow); z-index: 90; max-width: calc(100% - 32px); text-align: center; }
.setgrid { columns: 3 340px; column-gap: 14px; }
.setgrid > .card { break-inside: avoid; margin-bottom: 14px; }
.best { background: var(--brand-soft); color: var(--brand-ink); font-weight: 650; }
.cmp td, .cmp th { text-align: right; } .cmp td:first-child, .cmp th:first-child, .cmp td:nth-child(2), .cmp th:nth-child(2) { text-align: left; }
.cmp .sh { text-align: right; line-height: 1.3; } .cmp .sh small { display: block; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--ink-3); }
.cmp input { width: 88px; text-align: right; }

@media (prefers-reduced-motion: no-preference) { .btn, .nav button, .pipe button { transition: background-color .12s, color .12s; } }

@page { size: A4; margin: 10mm 13mm; }
@media print {
  html, body, #app { height: auto; }
  body { background: #fff; }
  .side, .noprint, .tbar-w, #toast, #tip, .modal-bg { display: none !important; }
  .shell { display: block; height: auto; }
  .main { overflow: visible; }
  .wrap { padding: 0; max-width: none; display: block; }
  /* Kâğıt: A4, kenar boşluğu 10/13 mm. Ekrandaki 768 px içerik genişliği 184 mm'ye ölçeklenir (0,905);
     ekranda bir sayfaya sığan belge kâğıtta da tek sayfaya sığar, sığmayan sonraki sayfaya akar. */
  .docwrap { display: block; zoom: 0.905; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- gezinme grupları, dil seçimi ---------- */
.navg { display: flex; flex-direction: column; gap: 2px; margin-bottom: 6px; }
.navg h3 { font-size: 10.5px; padding: 6px 10px 2px; color: var(--ink-3); }
.seg.lang { align-self: flex-start; }
.seg.lang button { padding: 3px 9px; font: 600 11.5px var(--mono); }
.login-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
@media (max-width: 860px) { .navg { flex-direction: row; margin: 0; } .navg h3 { display: none; } .nav { gap: 0; } .seg.lang { align-self: center; } }

/* ---------- ürün fotoğrafı ---------- */
.photo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; }
label.btn { cursor: pointer; }

/* ana ekran teklif listesi: telefonda her teklif üç satırlı bir karta döner */
.qt { min-width: 640px; }
@media (max-width: 640px) {
  .qt { min-width: 0; display: block; }
  .qt thead { display: none; }
  .qt tbody { display: block; }
  .qt tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); align-items: center; }
  .qt td { padding: 0; border: 0; }
  .qt td:nth-child(1) { grid-area: 1 / 1; }
  .qt td:nth-child(6) { grid-area: 1 / 2; justify-self: end; text-align: right; }
  .qt td:nth-child(2) { grid-area: 2 / 1 / 3 / -1; }
  .qt td:nth-child(3) { display: none; }
  .qt td:nth-child(4) { grid-area: 3 / 1; } .qt td:nth-child(4) > .sub2 { visibility: hidden; }
  .qt td:nth-child(5) { grid-area: 3 / 2; font-weight: 650; }
  .qt td.empty { grid-area: 1 / 1 / 2 / -1; padding: 18px 0; }
}

/* ---------- sevkiyat ---------- */
.shp > header { gap: 8px 10px; }
.chip.mode { display: inline-flex; align-items: center; gap: 5px; }
.chip.mode .ic { width: 13px; height: 13px; }
.strip { padding: 8px 10px 0; }
.shs { width: 100%; height: auto; display: block; overflow: hidden; }
.shipgrid { display: flex; flex-direction: column; gap: 14px; }
.shp > header .grow { min-width: 180px; }
.shp .facts b { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .shp .facts { grid-template-columns: 1fr 1fr; } .shp .facts > div:first-child { grid-column: 1 / -1; } }
.sbody { display: grid; grid-template-columns: minmax(0, 1fr) 230px; align-items: center; }
.sbody .strip { max-width: 900px; width: 100%; justify-self: center; }
.sh-road { fill: var(--surface-2); }
.sh-dash { stroke: var(--ink-3); stroke-width: 1.6; stroke-dasharray: 10 10; fill: none; }
.sh-tie { stroke: var(--line-2); stroke-width: 7; stroke-dasharray: 2.5 9.5; }
.sh-rail { stroke: var(--ink-3); stroke-width: 1.4; }
.sh-sea { fill: var(--blue-soft); }
.sh-wave path { fill: none; stroke: var(--blue); stroke-width: 1.4; }
.sh-cloud { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1; }
.sh-base { stroke: var(--line-2); stroke-width: 2; }
.sh-done { stroke: var(--brand); stroke-width: 3.5; stroke-linecap: round; }
.sh-pin { fill: var(--surface); stroke: var(--ink-3); stroke-width: 2; }
.sh-pin.on { fill: var(--brand); stroke: var(--surface); }
.sh-ok { fill: var(--brand); }
.sh-okc { fill: none; stroke: var(--surface); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sh-lb { fill: var(--ink); font: 600 12px var(--sans); }
.sh-lb2 { fill: var(--ink-3); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.v-b { fill: var(--blue); } .v-c { fill: var(--brand); } .v-n { fill: var(--line-2); } .v-d { fill: var(--ink-2); } .v-h { fill: var(--surface); }
.v-g { fill: var(--surface); opacity: .9; }
.v-r { fill: none; stroke: var(--surface); stroke-width: 1; opacity: .35; }
.v-sp { fill: none; stroke: var(--surface); stroke-width: 1.1; }
.v-wht { fill: var(--surface); stroke: var(--ink-2); stroke-width: 1.2; }
.spin { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .moving .sh-dash { animation: shdash .9s linear infinite; }
  .moving .sh-tie { animation: shtie .55s linear infinite; }
  .moving .spin { animation: shspin .8s linear infinite; }
  .moving .bob { animation: shbob 2.6s ease-in-out infinite; }
  .moving .sh-wave { animation: shwave 2.4s linear infinite; }
  .moving .sh-clouds { animation: shcloud 14s linear infinite alternate; }
}
@keyframes shdash { to { stroke-dashoffset: -20; } }
@keyframes shtie { to { stroke-dashoffset: -12; } }
@keyframes shspin { to { transform: rotate(360deg); } }
@keyframes shbob { 50% { transform: translateY(-2px); } }
@keyframes shwave { to { transform: translateX(-40px); } }
@keyframes shcloud { from { transform: translateX(24px); } to { transform: translateX(-60px); } }
.steps { list-style: none; margin: 0; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; border-left: 1px solid var(--line); align-self: stretch; align-content: center; }
@media (max-width: 1100px) { .sbody { grid-template-columns: minmax(0, 1fr); } .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); border-left: 0; padding: 6px 14px 12px; } }
.steps li { display: grid; grid-template-columns: 14px minmax(0, 1fr); column-gap: 6px; align-items: center; font-size: 12px; color: var(--ink-3); }
.steps li i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line-2); grid-row: span 2; }
.steps li b { font-weight: 600; }
.steps li span { grid-column: 2; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.steps li.done { color: var(--ink-2); }
.steps li.done i { background: var(--brand); border-color: var(--brand); }
.steps li.cur { color: var(--ink); }
.steps li.cur i { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rowlist .r.car { grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1.7fr) 28px; }
.rowlist .r.cert-r { grid-template-columns: 18px minmax(0, 1.2fr) minmax(0, .8fr) auto; }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rowlist .r.car { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ---------- entegrasyonlar ---------- */
.setgrid.two { columns: 2 420px; }
@media (max-width: 920px) { .setgrid.two { columns: 1; } }
@media (max-width: 740px) { .setgrid { columns: 1; } }
/* kayıt satırları: geniş ekranda tablo gibi tek satır, dar ekranda etiketli alanlar */
.setwide { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.recs { display: flex; flex-direction: column; }
.rec { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px 12px; padding: 12px 16px; border-top: 1px solid var(--line); align-items: end; }
.rec:first-child { border-top: 0; }
.rec .rk, .rec .wide { grid-column: 1 / -1; }
.rec .rk { font-size: 12px; color: var(--ink-3); }
.rec.usr > .f:last-child { grid-column: 1 / -1; }
@media (min-width: 1000px) {
  .rec.usr { grid-template-columns: 64px repeat(5, minmax(0, 1fr)); }
  .rec.bnk { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 2.1fr) 116px minmax(0, .8fr); }
  .rec .rk, .rec .wide, .rec.usr > .f:last-child { grid-column: auto; }
  .rec .rk { padding-bottom: 9px; }
  .rec + .rec { border-top: 0; padding-top: 0; }
  .rec + .rec > .f > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
.ilogo { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; flex: none; font-size: 0; }
.ilogo::after { font: 700 11.5px var(--sans); letter-spacing: .02em; }
.ilogo.bitrix { background: var(--blue-soft); } .ilogo.bitrix::after { content: "B24"; color: var(--blue-ink); }
.ilogo.netsis { background: var(--brand-soft); } .ilogo.netsis::after { content: "NET"; color: var(--brand-ink); }
.imap td { padding: 6px 8px; font-size: 13px; }
.imap .dir { text-align: center; font-weight: 700; color: var(--ink-3); width: 30px; }
.imap td.code { white-space: nowrap; font-size: 12px; }

/* ---------- teklif akışı: talepler, sunum dosyası bilgileri, sipariş, raporlar ---------- */
.lnk { border: 0; background: none; padding: 0; font: inherit; color: var(--blue-ink); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.lnk:hover { color: var(--ink); }
.ids { white-space: nowrap; }
.h3row { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; font-size: 12px; font-weight: 550; color: var(--ink-2); }
.h3row .lnk { font-weight: 500; }
.ntl { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.check.nt { align-items: flex-start; padding: 7px 10px; border-bottom: 1px solid var(--line); cursor: pointer; line-height: 1.4; }
.check.nt:last-child { border-bottom: 0; }
.check.nt:hover { background: var(--surface-2); }
.check.nt input { margin-top: 3px; flex: none; }
[data-hk].hl > .ntl { border-color: var(--hl-line); box-shadow: inset 3px 0 0 var(--hl); }
.fb { list-style: none; margin: 0; padding: 0; }
.fb li { border-bottom: 1px solid var(--line); }
.fb li > div, .fb li > button { display: flex; flex-direction: column; gap: 2px; padding: 9px 14px; width: 100%; border: 0; background: none; text-align: left; font: inherit; color: inherit; }
.fb li > button { cursor: pointer; } .fb li > button:hover { background: var(--surface-2); }
.fit.body { padding-top: 10px; }
table.mini { width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.mini td, table.mini th { padding: 3px 6px; border-bottom: 1px solid var(--line); }
table.mini th { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.tries { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: 6px; }
.tries button { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; padding: 5px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); font: inherit; font-size: 11.5px; cursor: pointer; font-variant-numeric: tabular-nums; text-align: left; }
.tries button b { font-size: 13px; } .tries button span { color: var(--ink-3); white-space: nowrap; }
.tries button[aria-pressed="true"] { border-color: var(--brand-btn); background: var(--brand-soft); }
.tries button[aria-pressed="true"] span, .tries button[aria-pressed="true"] b { color: var(--brand-ink); }
.tries button:disabled { cursor: default; opacity: .8; }
.kpis.k5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cols.even { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.who2 { display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.repgrid { display: grid; grid-template-columns: minmax(280px, 440px) minmax(0, 1fr); align-items: center; }
.repgrid > .tblw { border-left: 1px solid var(--line); align-self: stretch; }
@media (max-width: 1000px) { .repgrid { grid-template-columns: minmax(0, 1fr); } .repgrid > .tblw { border-left: 0; border-top: 1px solid var(--line); } }
.seg button[aria-pressed="true"] .muted { color: inherit; opacity: .7; }
@media (max-width: 1180px) { .cols.even { grid-template-columns: minmax(0, 1fr); } }
.ordsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.ordsteps li { display: flex; gap: 9px; padding: 10px 14px; align-items: flex-start; border-right: 1px solid var(--line); min-width: 0; }
.ordsteps li:last-child { border-right: 0; }
.ordsteps .ti { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.ordsteps .ti .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.ordsteps .ti.good { background: var(--brand-soft); color: var(--brand-ink); } .ordsteps .ti.mute { background: var(--surface-2); color: var(--ink-3); }
.ordsteps b { display: block; font-size: 13px; font-weight: 600; } .ordsteps li span span { font-size: 12px; color: var(--ink-3); }
@media (max-width: 860px) { .ordsteps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ordsteps li:nth-child(2) { border-right: 0; } .ordsteps li:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
.terms.rqi { font-size: 13px; grid-template-columns: 124px minmax(0, 1fr); }
.terms.rqi > :nth-child(odd) { color: var(--ink-3); }
.eval { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.eval > div { border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.eval h3 { font-size: 13px; }
@media (max-width: 640px) { .eval { grid-template-columns: minmax(0, 1fr); } }
.modal > header h2 .pill { vertical-align: 2px; margin-left: 6px; }
.rec.trm { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; align-items: start; }
.rec.trm.nt { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 118px 28px; }
.rec.trm .opt { gap: 6px; padding-top: 20px; }
.rec.flu { grid-template-columns: minmax(0, 1.5fr) 110px 100px 70px minmax(0, 1.5fr) minmax(0, 1.6fr) 28px; }
@media (max-width: 1000px) { .rec.trm, .rec.trm.nt { grid-template-columns: minmax(0, 1fr); } .rec.trm .opt { padding-top: 0; flex-direction: row; gap: 14px; } .rec.flu { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } }
.lkbox { border: 1px dashed var(--line-2); border-radius: 6px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface-2); }
.lkbox .kick { color: var(--brand-ink); display: flex; gap: 6px; align-items: center; text-transform: none; letter-spacing: 0; font: 600 11.5px var(--sans); }
.lkbox .ic, td .sub2 .ic, p.sub2 .ic { width: 12px; height: 12px; vertical-align: -1px; }

/* =====================================================================
   Müşteri belgesi (fiyat teklifi) — beyaz kâğıt, koyu yazı, ince tablo çizgileri, ölçülü MAKFEN yeşili.
   Kâğıt her temada beyazdır, A4 oranındadır. Ekranda 860 px genişlik = baskıda 184 mm (styles.css: zoom .905).
   Yazı tipi Arial (Word çıktısıyla aynı görünür, Türkçe karakterlerin hepsi var).
   ===================================================================== */
.pv { margin: 0; }
.rnd { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: #E8ECE8; }

.docwrap { display: flex; flex-direction: column; gap: 18px; align-items: center; }
.page {
  --dw-ink: #1B231C; --dw-thin: #5E6A60; --dw-dim: #1F5C97; --dw-fill: #FFFFFF; --hl: #FFE94D; --hl-ink: #1A1A00; --grid: #E4E8E1;
  --p-ink: #151515; --p-ink2: #4D4D4D; --p-line: #8F8F8F; --p-hair: #D0D0D0; --p-fill: #F3F4F3;
  --p-g: #4BAE32; --p-gd: #2E7420; --p-gt: #EFF7EC; --p-red: #B42318;
  --p-font: Arial, "Helvetica Neue", Helvetica, "Liberation Sans", sans-serif;
  background: #FFFFFF; color: var(--p-ink); width: 100%; max-width: 860px; min-height: 1216px; padding: 36px 46px; position: relative; overflow: hidden;
  box-shadow: var(--shadow); font: 11.5px/1.45 var(--p-font); color-scheme: light;
}
.page h1, .page h2, .page h3 { font-family: var(--p-font); color: var(--p-ink); }
.page p { margin: 0; }
.page table { border-collapse: collapse; width: 100%; font-size: 11px; }
.page th { text-align: left; text-transform: none; letter-spacing: 0; white-space: normal; background: none; color: inherit; font-weight: 700; font-size: inherit; padding: 0; border-bottom: 0; }
.page .num { text-align: right; font-variant-numeric: tabular-nums; }
.page b { font-weight: 700; }

/* kâğıt: antet tablo başlığıdır, baskıda her sayfada yinelenir; alt bilgi ekranda tablo altlığı, baskıda @page kutusu */
.pgt { width: 100%; height: 1144px; border-collapse: collapse; }
.pgt > thead > tr > td, .pgt > tfoot > tr > td, .pgt > tbody > tr > td { padding: 0; border: 0 !important; }
.pgt > thead > tr > td { padding-bottom: 18px; }
.pgt > tbody > tr > td.pgb { vertical-align: top; }
.pgt > tfoot > tr > td { vertical-align: bottom; padding-top: 18px; }

/* antet: solda logo, sağda kısa iletişim; onaysız belgede küçük TASLAK etiketi */
.dh { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 10px; border-bottom: 2px solid var(--p-g); }
.dh > img { width: 190px; height: auto; display: block; }
.dh.big > img { width: 260px; }
.dh-r { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; font-size: 9.5px; color: var(--p-ink2); line-height: 1.45; }
.dh-r i, .dfc i { display: inline-block; width: 10px; }
.dtag { display: inline-block; border: 1px solid var(--p-red); color: var(--p-red); font-weight: 700; font-size: 9px; letter-spacing: .16em; padding: 1px 7px 1px 8px; border-radius: 2px; margin-bottom: 5px; line-height: 1.5; }
.certs { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; color: #1D251E; }
.certs.prev { justify-content: flex-start; background: #FFFFFF; padding: 10px; border-radius: 6px; border: 1px solid var(--line); }
.cert { width: 40px; height: 40px; display: block; flex: none; }
.cert-img { height: 46px; width: auto; display: block; flex: none; }

/* alt bilgi (ekran) */
.df { border-top: 1px solid var(--p-line); padding-top: 6px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; font-size: 9px; color: var(--p-ink2); align-items: baseline; }
.dfc { text-align: center; white-space: nowrap; }
.df .pg { text-align: right; }

/* bölüm başlığı: yeşil işaret, koyu yazı, ince çizgi; ilk satırıyla birlikte kalır */
.page h2.sh { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 24px 0 8px; padding-bottom: 4px; border-bottom: 1px solid var(--p-ink); break-after: avoid; page-break-after: avoid; }
.page h2.sh::before { content: ""; flex: none; width: 7px; height: 7px; background: var(--p-g); align-self: center; }
.pgb > h2.sh:first-child { margin-top: 0; }
.shr { margin-left: auto; font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 10px; color: var(--p-ink2); text-align: right; }

/* 1 · ilk sayfa */
.cvh { margin: 2px 0 14px; }
.page h1.cvt { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.15; letter-spacing: -.005em; }
.cvp { font-size: 14px; margin-top: 4px !important; color: var(--p-ink); }
.cva { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 0; border-top: 1px solid var(--p-hair); border-bottom: 1px solid var(--p-hair); break-inside: avoid; }
.cvto { padding: 10px 20px 10px 0; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lbl { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--p-ink2); margin-bottom: 2px; }
.cvto .cn { font-size: 13px; font-weight: 700; line-height: 1.3; }
.cvto .ca { color: var(--p-ink2); line-height: 1.45; overflow-wrap: anywhere; }
.cvr { border-left: 1px solid var(--p-hair); padding: 8px 0 8px 16px; }
table.cvi th, table.cvi td { padding: 2px 0; border: 0; font-size: 10.5px; vertical-align: top; }
table.cvi th { font-weight: 400; color: var(--p-ink2); width: 92px; }
.ttl { display: block; font-size: 9.5px; color: var(--p-ink2); }

/* fiyat tablosu: Poz, Açıklama, Miktar, Birim fiyat, Toplam; tutarlar sağa hizalı */
.psec { margin-top: 20px; }
.psec h2.sh { margin-top: 0; }
table.psm { border-top: 1px solid var(--p-ink); }
table.psm th { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--p-ink2); padding: 6px 8px; background: var(--p-fill); border-bottom: 1px solid var(--p-line); }
table.psm td { padding: 7px 8px; border-bottom: 1px solid var(--p-hair); vertical-align: top; font-size: 11.5px; }
table.psm td.num, table.psm th.num { white-space: nowrap; }
table.psm td.pos { color: var(--p-ink2); font-variant-numeric: tabular-nums; }
table.psm tr { break-inside: avoid; }
.dsc { overflow-wrap: anywhere; }
.dt { display: block; font-weight: 700; }
.ds { display: block; font-size: 9.5px; color: var(--p-ink2); margin-top: 2px; overflow-wrap: anywhere; }
/* toplam bloğu: tek parça, Toplam sütunuyla aynı hizada; genel toplam ve para birimi ilk bakışta seçilir */
.tblk { display: flex; flex-direction: column; align-items: flex-end; break-inside: avoid; page-break-inside: avoid; break-before: avoid; }
table.tots { width: 55%; border-bottom: 1px solid var(--p-line); }
table.tots th { font-weight: 400; color: var(--p-ink2); text-align: right; padding: 5px 8px; }
table.tots td { width: 32.7%; padding: 5px 8px; white-space: nowrap; }
table.tots tr + tr > * { border-top: 1px solid var(--p-hair); }
table.tots tr.gtot > * { border-top: 2px solid var(--p-g); background: var(--p-gt); color: var(--p-ink); font-weight: 700; padding: 9px 8px; vertical-align: baseline; }
table.tots tr.gtot th { font-size: 11.5px; }
table.tots tr.gtot td { font-size: 16px; }
.words { width: 55%; text-align: right; font-size: 9.5px; font-style: italic; color: var(--p-ink2); margin-top: 5px !important; }
.removed { text-decoration: line-through; color: var(--p-ink2); margin-top: 6px !important; font-size: 10.5px; }
.dletter { margin-top: 24px; display: flex; flex-direction: column; gap: 8px; break-inside: avoid; }
.dsig1 { margin-top: 18px; display: flex; flex-direction: column; gap: 2px; align-items: flex-start; break-inside: avoid; }
.dsig1 p { margin-bottom: 14px !important; }
.dsig1 span { color: var(--p-ink2); }
.dpar { text-align: justify; hyphens: auto; orphans: 3; widows: 3; }

/* 2 · teknik kapsam: kalem başlığı (poz, ürün adı, mamul kodu, miktar), alt tablolar */
.item { margin: 0 0 24px; }
.ihd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 10px; background: var(--p-fill); border-top: 2px solid var(--p-g); break-inside: avoid; break-after: avoid; page-break-after: avoid; }
.ipos { font-weight: 700; font-size: 15px; line-height: 1.2; color: var(--p-gd); font-variant-numeric: tabular-nums; }
.ittl { min-width: 0; }
.ittl b { display: block; font-size: 12.5px; line-height: 1.3; }
.icode, .idim { display: block; font-size: 9.5px; color: var(--p-ink2); margin-top: 2px; overflow-wrap: anywhere; }
.iqty { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.iqty span { font-size: 8.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--p-ink2); }
.iqty b { font-size: 12.5px; }
.ibd { margin-top: 6px; }
.ibd.pic { display: grid; grid-template-columns: minmax(0, 1fr) 30%; gap: 14px; align-items: start; }
.itx { min-width: 0; }
.ibd .dpic.gen { margin: 0; border: 1px solid var(--p-hair); padding: 8px; background: #FFFFFF; break-inside: avoid; }
.ibd .dpic.gen img, .ibd .dpic.gen > svg { display: block; width: 100%; height: auto; max-height: 300px; object-fit: contain; }
.ibd:not(.pic) > .dpic.gen { max-width: 320px; margin: 8px auto 0; }
table.st { margin-top: 10px; border-bottom: 1px solid var(--p-line); }
.ibd table.st { margin-top: 0; }
table.st tr.cap th { padding: 6px 6px 4px; border-bottom: 1px solid var(--p-line); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--p-gd); }
table.st tr.cap th > span { display: inline-block; }
table.st tr.cap .capr { float: right; font-weight: 400; letter-spacing: .04em; color: var(--p-ink2); }
table.st tr.ch th { padding: 4px 6px; background: var(--p-fill); border-bottom: 1px solid var(--p-hair); font-size: 9.5px; font-weight: 700; color: var(--p-ink2); }
table.st td { padding: 4px 6px; border-bottom: 1px solid var(--p-hair); vertical-align: top; overflow-wrap: anywhere; }
table.st tbody tr:last-child td { border-bottom: 0; }
table.st td.k { color: var(--p-ink2); }
table.st tr, table.kvt tr { break-inside: avoid; page-break-inside: avoid; }
.inotes { margin: 8px 0 0; padding: 0 0 0 16px; display: flex; flex-direction: column; gap: 2px; font-size: 10.5px; }
.inotes li { break-inside: avoid; }
.ipr { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; margin-top: 8px; padding: 6px 8px; border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); background: var(--p-fill); break-inside: avoid; break-before: avoid; }
.ipr > span:first-child { color: var(--p-ink2); margin-right: 2px; }
.ipr b { font-size: 12px; }
.gal { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }
.dpic { margin: 0; position: relative; break-inside: avoid; text-align: center; }
.dpic img, .dpic > svg { display: block; height: 210px; width: auto; max-width: 100%; object-fit: contain; }
.dpic figcaption { font-size: 9.5px; color: var(--p-ink2); padding-top: 3px; }

/* ticari koşullar: tek tablo */
table.kvt.terms { border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
table.terms th.k { font-size: 10.5px; font-weight: 700; color: var(--p-ink); background: var(--p-fill); vertical-align: top; padding: 6px 8px; border-bottom: 1px solid var(--p-hair); }
table.terms td { padding: 6px 8px; border-bottom: 1px solid var(--p-hair); vertical-align: top; overflow-wrap: anywhere; }
.pp { display: inline-block; min-width: 3.4em; font-weight: 700; }
.trm, .nts { break-inside: auto; }
/* ek bölüm tablosu ve notlar */
table.gt { border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); }
table.gt th { background: var(--p-fill); font-weight: 700; font-size: 9.5px; text-transform: uppercase; padding: 5px 7px; border-bottom: 1px solid var(--p-line); }
table.gt td { border-bottom: 1px solid var(--p-hair); padding: 5px 7px; vertical-align: top; overflow-wrap: anywhere; }
table.gt td.snc { white-space: nowrap; }
table.gt td.k { color: var(--p-ink2); }
.gt tr { break-inside: avoid; }
.dnotes { margin: 0; padding: 0 0 0 18px; display: flex; flex-direction: column; gap: 4px; }
.dnotes li { break-inside: avoid; }
.dmute { color: var(--p-ink2); }
.revnote { margin-top: 16px; font-size: 10.5px; display: flex; gap: 8px; align-items: center; }
.xsec { margin-bottom: 8px; }
.xsec .dpar { white-space: pre-wrap; margin-bottom: 8px !important; }
.xsec .gal { justify-content: flex-start; }

/* 3 · ekler: çizim (ekranda yatay kâğıt, baskıda yatay A4) ve sertifikalar */
.page.annex { max-width: 1216px; min-height: 860px; }
.page.annex .pgt { height: 788px; }
.dwp { border: 1px solid var(--p-line); position: relative; height: 610px; break-inside: avoid; }
.dwp > svg { position: absolute; left: 6px; top: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.dnote { font-size: 9.5px; color: var(--p-ink2); margin-top: 6px !important; }
.cdf1 { margin: 4px 0 0; text-align: center; }
.cdf1 img { display: inline-block; max-width: 100%; max-height: 960px; width: auto; height: auto; border: 1px solid var(--p-hair); }

/* ---------- belge düzenleme kipi (yalnız ekranda) ---------- */
.docwrap.editing .ed { outline: 1px dashed #9DB6DE; outline-offset: 1px; border-radius: 2px; cursor: text; min-width: 2.5em; display: inline-block; white-space: pre-wrap; }
.docwrap.editing .ed:hover { background: #F2F6FD; }
.docwrap.editing .ed:focus { outline: 2px solid #3E78D0; background: #F5F9FF; }
.docwrap.editing .ed.hl { background: var(--hl); }
.docwrap.editing .ed:empty::before { content: "…"; color: #9AA3B5; }
.docwrap.editing td.edited { box-shadow: inset 2px 0 0 #6F9BDC; }
tr.gone td, tr.gone th, li.gone > span:first-child, p.gone, .icode.gone { opacity: .35; text-decoration: line-through; }
.rxc { width: 34px; }
td.rx, th.rx { width: 34px; border: 0 !important; background: none !important; padding: 2px 0 2px 6px !important; text-align: left; vertical-align: middle !important; }
.dnotes li .rx { margin-left: 6px; }
.dxb { font: 600 13px/1 var(--sans); width: 22px; height: 22px; border-radius: 50%; border: 1px solid #C8D3E6; background: #FFFFFF; color: #3E5F94; cursor: pointer; padding: 0; vertical-align: middle; }
.dxb:hover { background: #E8EFFB; border-color: #7EA0D6; }
.dpic .pdel { position: absolute; top: 6px; right: 6px; }
.dxadd { font: 500 11.5px var(--sans); color: #2F5EA8; background: #FFFFFF; border: 1px dashed #A9BEDF; border-radius: 4px; padding: 2px 9px; margin: 6px 0 4px; cursor: pointer; text-transform: none; letter-spacing: 0; }
td.rx .dxadd, th.rx .dxadd, th.k .dxadd { margin: 0; padding: 1px 7px; }
.dxadd:hover { background: #F2F6FD; }
.dxbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; background: #F4F7FC; border: 1px dashed #B9CBE6; border-radius: 6px; padding: 6px 8px; margin: 0 0 6px; font-family: var(--sans); }
.dxbar .btn[aria-pressed="false"] { opacity: .6; text-decoration: line-through; }
.dxbar select { max-width: 260px; }
.dxbar .dxadd { margin: 0; }
.dxsec { margin: 14px 0 4px; }
.dxhint { font: 11.5px var(--sans); color: #3E5F94; margin-top: 6px !important; }

/* yalnız ekran, dar pencere */
@media screen and (max-width: 700px) {
  .page { padding: 20px 14px; min-height: 0; }
  .pgt, .page.annex .pgt { height: auto; }
  .page.annex { min-height: 0; }
  .df { grid-template-columns: minmax(0, 1fr); } .dfc { white-space: normal; text-align: left; } .df .pg { text-align: left; }
  .dh { flex-wrap: wrap; } .dh > img, .dh.big > img { width: 170px; } .dh-r { align-items: flex-start; text-align: left; }
  .cva { grid-template-columns: minmax(0, 1fr); } .cvr { border-left: 0; border-top: 1px solid var(--p-hair); padding-left: 0; }
  .ibd.pic { grid-template-columns: minmax(0, 1fr); } .ibd .dpic.gen { max-width: 260px; }
  table.tots, .words { width: 100%; }
  .dpic img, .dpic > svg { height: 160px; width: auto; }
  .dwp { height: auto; } .dwp > svg { position: static; width: 100%; height: auto; }
  table.st td, table.psm td, table.terms td, table.terms th, table.gt td, table.gt th { padding: 3px 4px; font-size: 10.5px; }
}

/* baskı: A4 dikey (çizim ekleri yatay), kenar 11 / 13 / 15 mm. Antet ve tablo başlıkları her sayfada yinelenir.
   Alt bilgi @page kenar kutularındadır: solda teklif no · rev, ortada unvan · web, sağda sayfa no — hepsi aynı satırda
   (içerikleri views-doc.js → pageCss). */
@media print {
  @page {
    size: A4; margin: 11mm 13mm 15mm;
    @bottom-left { font: 7.5pt Arial, sans-serif; color: #4D4D4D; vertical-align: top; padding-top: 2.4mm; border-top: .6pt solid #8F8F8F; }
    @bottom-center { font: 7.5pt Arial, sans-serif; color: #4D4D4D; vertical-align: top; padding-top: 2.4mm; border-top: .6pt solid #8F8F8F; text-align: center; }
    @bottom-right { font: 7.5pt Arial, sans-serif; color: #151515; vertical-align: top; padding-top: 2.4mm; border-top: .6pt solid #8F8F8F; text-align: right; }
  }
  @page yatay { size: A4 landscape; }
  .docwrap { display: block; }
  .page { box-shadow: none; max-width: none; min-height: 0; padding: 0; overflow: visible; break-after: page; }
  .page:last-child { break-after: auto; }
  .pgt, .page.annex .pgt { height: auto; }
  .pgt > tfoot { display: none; }
  .page.annex { page: yatay; max-width: none; min-height: 0; }
  .page.annex .dwp { height: 590px; margin-right: 3px; }
  .cdf1 img { max-height: 1000px; }
}

/* ===================== sunucu sürümü eklemeleri ===================== */
/* giriş, doğrulama, etkinleştirme */
.auth { min-height: 100%; display: grid; place-items: center; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); }
.auth-card { width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card input { padding: 9px 10px; }
.auth-card .otp { font: 600 22px var(--mono); letter-spacing: .3em; text-align: center; }
.auth-foot { font-size: 12.5px; color: var(--ink-3); }
.ok-msg { background: var(--brand-soft); color: var(--brand-ink); padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.auth-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.qr { display: flex; justify-content: center; background: #fff; border-radius: 8px; padding: 6px; }
.qr svg { width: 230px; height: 230px; display: block; }
.codes { list-style: none; margin: 0; padding: 12px 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; background: var(--surface-2); border-radius: 8px; font-size: 15px; }
.sel { user-select: all; word-break: break-all; }
.small { font-size: 12px; }
.boot { padding: 48px 24px; color: var(--ink-3); text-align: center; }
.bigcode { font-size: 26px; font-weight: 700; letter-spacing: .08em; text-align: center; background: var(--surface-2); padding: 12px; border-radius: 8px; }

/* kayıt göstergesi */
.save { font-size: 12px; color: var(--ink-3); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.save .ic { width: 14px; height: 14px; }
.save.dirty, .save.saving { color: var(--warn-ink); }
.save.error, .save.conflict { color: var(--bad-ink); }

/* listeler ve filtreler */
.filt { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.card > header.filt { padding: 9px 12px; }
.filt select { width: auto; max-width: 280px; }
.filt input[type="date"] { width: auto; }
.vhead .acts select { width: auto; }
td.acts { display: table-cell; white-space: nowrap; }
td.acts > * + * { margin-left: 6px; }
.filt .search { max-width: none; }
.det { display: block; font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td, table.list tr.click:focus-visible td { background: var(--surface-2); }
table.list td { vertical-align: top; }
tr.g td { background: var(--surface-2); font-weight: 650; font-size: 12.5px; }
.pager { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.seg.tabs { align-self: flex-start; flex-wrap: wrap; }
.seg.tabs button { padding: 7px 14px; font-size: 13px; }
.seg .cnt { font: 600 10.5px var(--mono); padding: 0 5px; border-radius: 8px; background: var(--warn-soft); color: var(--warn-ink); margin-left: 4px; }
.hlrow td { background: var(--warn-soft); }
.warnrow td { color: var(--bad-ink); }
.det2 { font-size: 12px; color: var(--ink-2); max-width: 460px; word-break: break-word; }
table.log td { font-size: 12.5px; }
.lnkchip { border: 0; cursor: pointer; font: inherit; font-size: 11.5px; font-weight: 600; }
.pick { display: flex; align-items: center; gap: 8px; min-height: 32px; flex-wrap: wrap; }
.pick .grow { flex: 1; min-width: 160px; }
.rowlist .r.miss { grid-template-columns: minmax(0, 1fr) 120px 100px; }
.rowlist .r.ext { grid-template-columns: minmax(0, 1fr) 80px 28px; }
.rowlist .r.flu { grid-template-columns: minmax(0, 1.4fr) 90px 80px 60px minmax(0, 1fr) 28px; }
textarea.code { font-size: 12px; }

/* maliyet raporu */
.costrep { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.cr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 2px solid var(--brand); padding-bottom: 10px; }
.cr-head div { display: flex; flex-direction: column; align-items: flex-end; }
.cr-head b { font-size: 16px; letter-spacing: .04em; }
.cr-head span { font-size: 12px; color: var(--bad-ink); font-weight: 600; }
.cr-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; margin: 0; }
.cr-meta dt { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.cr-meta dd { margin: 0; font-weight: 600; }
.cr-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.cr-kpi div { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; }
.cr-kpi span { display: block; font-size: 11.5px; color: var(--ink-3); }
.cr-kpi b { font-size: 16px; font-variant-numeric: tabular-nums; }
.cr-tank { display: flex; flex-direction: column; gap: 6px; }
.cr-tank h2 { font-size: 15px; }
table.cr td.src { font-size: 11px; color: var(--ink-3); }
.cr-sum { max-width: 560px; margin-left: auto; }


@media print {
  .costrep { border: 0; padding: 0; }
  .cr-tank { break-inside: auto; }
  .cr-sum, .cr-kpi { break-inside: avoid; }
}
@media (max-width: 640px) {
  .auth-card { padding: 20px 16px; }
  .codes { grid-template-columns: minmax(0, 1fr); }
  .rowlist .r.flu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .costrep { padding: 14px; }
}

/* profil resmi, çevrimiçi izleyenler */
img.avatar { object-fit: cover; padding: 0; background: var(--surface-2); }
.avatar.xs { width: 20px; height: 20px; font-size: 9px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xl { width: 88px; height: 88px; font-size: 28px; }
.viewers { display: inline-flex; gap: 6px; align-items: center; }
.viewers .vw { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); background: var(--blue-soft); border-radius: 999px; padding: 2px 8px 2px 2px; }
.prof { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ekip */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.member { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.mtop { display: flex; gap: 12px; align-items: center; }
.mtop .grow { flex: 1; min-width: 0; }
.mnow { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; background: var(--surface-2); border-radius: 6px; padding: 8px 10px; }
.mnow .lnk { text-align: left; }
.mnow .ic { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--ink-3); }
.mstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mstats div { border: 1px solid var(--line); border-radius: 6px; padding: 6px 8px; }
.mstats span, .mstats small { display: block; font-size: 11.5px; color: var(--ink-3); }
.mstats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.mq { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.mq > div { display: flex; gap: 8px; align-items: baseline; }
.mq .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
table.wk { min-width: 0; }
table.wk th { font-size: 10px; letter-spacing: .04em; padding: 6px 4px; white-space: nowrap; line-height: 1.25; }
table.wk th small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
table.wk th.today, table.wk td.today { background: var(--brand-soft); }
table.wk td { font-size: 12px; padding: 6px 4px; vertical-align: bottom; }
table.wk td:first-child, table.wk td:last-child { vertical-align: middle; }
table.wk td .det { font-size: 10px; }
table.wk .bar { display: block; height: 22px; width: 8px; margin: 0 0 2px auto; background: var(--surface-2); border-radius: 2px; position: relative; overflow: hidden; }
table.wk .bar i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--brand); border-radius: 2px; }

/* yönetim: sertifika listesi */
.cdr { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cdr > img { width: 64px; height: auto; border: 1px solid var(--line); grid-row: span 2; }
.cdr .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* 1.8.0: mukavemet profili işçiliği sütunu, yüzey işlemi yeri, hızlı fiyat girişi */
.rowlist .r.stf { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 58px 92px 28px; }
.yer { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; }
.yer .lab { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.yerb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.yerb .sep { width: 1px; height: 20px; background: var(--line-2); margin: 0 2px; }
.yerb .btn[aria-pressed="true"] { border-color: var(--brand-btn); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.qp { display: inline-flex; align-items: center; gap: 4px; justify-content: flex-end; }
.qp input { width: 96px; text-align: right; font-variant-numeric: tabular-nums; padding: 5px 7px; }
.qp .cur { font-size: 12px; color: var(--ink-3); min-width: 28px; text-align: left; }
.qp input.ok { border-color: var(--brand-btn); background: var(--brand-soft); }
@media (max-width: 640px) {
  .rowlist .r.stf { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 28px; }
  .rowlist .r.stf > :nth-child(3), .rowlist .r.stf > :nth-child(4) { grid-column: span 1; }
}
.showg { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 14px; margin: 2px 0 4px; }

/* giriş ekranı — logodaki sola bakan ok (k) arka planda sağdan sola yavaşça akar (1.12.0) */
html:has(body.authb) { height: 100%; }
body.authb { min-height: 100vh; min-height: 100dvh; background: #0C1410; color-scheme: light; }
.rain { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 70% at 50% -10%, #1A3A1F 0%, #0F1D13 45%, #0A110C 100%); }
.rain i { position: absolute; left: 104vw; top: var(--x); height: var(--s); width: calc(var(--s) * .62); opacity: var(--o);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 48'%3E%3Cpath d='M16 0h14L14 24l16 24H16L0 24z' fill='%234BAE32'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: makfen-in var(--d) linear var(--l) infinite; will-change: transform; }
.rain i.b { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 48'%3E%3Cpath d='M16 0h14L14 24l16 24H16L0 24z' fill='%232E7BC6'/%3E%3C/svg%3E"); }
@keyframes makfen-in { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-118vw, 0, 0); } }
@media (prefers-reduced-motion: reduce) { .rain i { animation: none; left: calc(var(--y) * 1.05); } }
.authb .auth { position: relative; z-index: 1; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.authb .auth-card { width: min(420px, 100%); border-radius: 16px; padding: 30px 30px 24px; border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 2px 0 rgba(255, 255, 255, .04) inset; position: relative; overflow: hidden; }
.authb .auth-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: #4BAE32; }
.auth-brand { display: flex; align-items: flex-end; gap: 10px; padding-bottom: 4px; }
.auth-brand img { width: 168px; height: auto; display: block; }
.auth-brand span { font: 600 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); padding-bottom: 2px; border-left: 1px solid var(--line-2); padding-left: 10px; }
.authb .auth-card h1 { font-size: 24px; letter-spacing: -.01em; }
.authb .auth-card input { padding: 11px 12px; border-radius: 8px; height: 44px; }
.authb .auth-card .btn.pri.wide { padding: 11px 14px; border-radius: 8px; font-weight: 650; }
.auth-site { font-size: 12px; color: rgba(232, 237, 230, .62); text-align: center; margin: 0; padding: 0 16px; }
.auth-site a { color: rgba(232, 237, 230, .85); }
@media (max-width: 480px) { .authb .auth-card { padding: 24px 18px 20px; border-radius: 14px; } .auth-brand img { width: 140px; } }

/* 1.8.0: telefon görünümü — başlıklar, teklif listesi ve fiyat tabloları kart düzeninde */
@media (max-width: 640px) {
  .vhead { align-items: flex-start; }
  .vhead > .btn.ghost:first-child { order: -1; padding-left: 0; }
  .vhead .vtitle { flex: 1 1 100%; }
  .vhead .vtitle h1 { font-size: 21px; flex: 1 1 100%; }
  .vhead > .acts { flex: 1 1 100%; flex-wrap: wrap; gap: 6px; }
  .vhead > .acts .btn { flex: 1 1 auto; justify-content: center; }
  .card > header.filt { flex-direction: column; align-items: stretch; }
  .card > header.filt .seg { width: 100%; }
  .card > header.filt .seg button { flex: 1; }
  .card > header.filt > .sub2 { order: 3; }
  .filt select { max-width: none; width: 100%; }

  /* teklif listesi: her teklif bir kart */
  .qlist { min-width: 0 !important; display: block; }
  .qlist thead { display: none; }
  .qlist tbody { display: block; }
  .qlist tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); align-items: start; }
  .qlist td { padding: 0 !important; border: 0 !important; min-width: 0; }
  .qlist td:nth-child(1) { grid-area: 1 / 1; }
  .qlist td:nth-child(4) { grid-area: 1 / 2; justify-self: end; }
  .qlist td:nth-child(2) { grid-area: 2 / 1 / 3 / -1; }
  .qlist td:nth-child(3) { grid-area: 3 / 1; color: var(--ink-3); font-size: 12.5px; }
  .qlist td:nth-child(5) { grid-area: 3 / 2; font-weight: 650; text-align: right; }
  .qlist td:nth-child(6), .qlist td:nth-child(7) { display: none; }
  .qlist td.empty { grid-area: 1 / 1 / 2 / -1; padding: 18px 0 !important; }

  /* fiyat tabloları: kart adı üstte, hızlı fiyat kutusu ve düğmeler altta */
  .prl { min-width: 0 !important; display: block; }
  .prl thead { display: none; }
  .prl tbody { display: block; }
  .prl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 11px 12px; border-bottom: 1px solid var(--line); align-items: center; }
  .prl tr.g { display: block; padding: 8px 12px; }
  .prl td { padding: 0 !important; border: 0 !important; min-width: 0; }
  .prl td:nth-child(1) { grid-area: 1 / 1 / 2 / -1; }
  .prl td:nth-child(2) { display: none; }
  .prl td:nth-child(3) { grid-area: 2 / 1; text-align: left; }
  .prl td:nth-child(3) .qp { justify-content: flex-start; }
  .prl td:nth-child(3) .qp input { width: 120px; }
  .prl:not(.prk) td:nth-child(4) { display: none; }
  .prl td:last-child { grid-area: 2 / 2; }
  .prl td.acts { display: flex; flex-direction: column; gap: 4px; }
}

/* ---------- 1.8.1: sürüm etiketi ve "Yenilikler" ---------- */
.verb { display: flex; align-items: center; gap: 7px; width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink-3); font-size: 12px; cursor: pointer; text-align: left; position: relative; }
.verb:hover { background: var(--surface-2); color: var(--ink); }
.verb .ic { width: 14px; height: 14px; }
.verb .vno { font: 600 11.5px var(--mono); color: var(--ink-2); }
.verb .lbl { margin-left: auto; }
.verb.new { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.verb.new::after { content: ""; position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px var(--surface); }
.modal:has(.rnwrap) { overflow: hidden; }
.modal .mb.rnwrap { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; min-height: 0; padding-top: 6px; }
.rnwrap > * { flex: none; }
.rn-hero { border-radius: 8px; padding: 16px 18px; background: var(--brand-soft); border-left: 4px solid var(--brand); display: flex; flex-direction: column; gap: 6px; }
.rn-hero h3 { margin: 0; font: 650 19px/1.25 var(--sans); letter-spacing: 0; text-transform: none; text-wrap: balance; color: var(--ink); }
.rn-top { display: flex; align-items: center; gap: 10px; }
.rn-hero ul { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rn-hero li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; line-height: 1.45; }
.rn-hero .rn-k { background: var(--surface); }
.rn-h { font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 6px 2px 0; }
.rn-foot { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); }
.rn-chip { align-self: flex-start; font: 650 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--on-brand); background: var(--brand-btn); padding: 3px 8px; border-radius: 4px; }
.rn { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.rn summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; }
.rn summary::-webkit-details-marker { display: none; }
.rn summary::after { content: "›"; margin-left: 8px; color: var(--ink-3); transition: transform .15s; font-size: 16px; }
.rn[open] summary::after { transform: rotate(90deg); }
.rn summary b { flex: 1; min-width: 0; font-size: 13.5px; }
.rn-v { font: 600 11.5px var(--mono); color: var(--ink-2); background: var(--surface-2); padding: 2px 7px; border-radius: 4px; flex: none; }
.rn-d { font-size: 12px; color: var(--ink-3); flex: none; }
.rn ul { list-style: none; margin: 0; padding: 0 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.rn li { display: flex; gap: 10px; align-items: baseline; font-size: 13px; line-height: 1.45; }
.rn-k { flex: none; width: 84px; text-align: center; font: 600 10.5px var(--sans); letter-spacing: .04em; text-transform: uppercase; padding: 2px 0; border-radius: 4px; }
.k-new { background: var(--brand-soft); color: var(--brand-ink); }
.k-imp { background: var(--blue-soft); color: var(--blue-ink); }
.k-fix { background: var(--surface-2); color: var(--ink-2); }
@media (max-width: 860px) {
  .verb { width: auto; padding: 5px 7px; border: 0; background: none; }
  .verb .lbl { display: none; }
  .verb.new { background: var(--brand-soft); }
  .rn li, .rn-hero li { flex-direction: column; gap: 3px; }
  .rn-k { width: auto; padding: 2px 6px; }
  .rn .rn-d { display: none; }
}

/* ---------- 1.9.0: yeni teklifte ürün seçimi ---------- */
.prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 8px; }
.prod { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 78px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: 600 12.5px/1.25 var(--sans); text-align: left; cursor: pointer; }
.prod .ic { width: 26px; height: 26px; stroke-width: 1.5; color: var(--ink-2); }
.prod:hover { border-color: var(--line-2); background: var(--surface-2); }
.prod[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.prod[aria-checked="true"] .ic { color: var(--brand-ink); }
.prod.soon { color: var(--ink-3); background: var(--surface); }
.prod.soon .ic { color: var(--ink-3); opacity: .7; }
.prod.soon:hover { background: var(--surface); }
.prod em { position: absolute; top: 8px; right: 8px; font: 600 9.5px var(--sans); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); padding: 1px 5px; border-radius: 3px; }
@media (max-width: 560px) { .prods { grid-template-columns: repeat(2, minmax(0, 1fr)); } .prod { min-height: 66px; } }

/* ---------- 1.9.0: yönetim ---------- */
.atabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-top: -4px; }
.atabs::-webkit-scrollbar { display: none; }
.atabs button { display: flex; align-items: center; gap: 7px; padding: 9px 12px 10px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--ink-3); font: 600 13px var(--sans); white-space: nowrap; cursor: pointer; border-radius: 6px 6px 0 0; }
.atabs button:hover { color: var(--ink); background: var(--surface-2); }
.atabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.atabs button[aria-selected="true"] .ic { color: var(--brand-ink); }
.card > header h2.ch { display: flex; align-items: center; gap: 9px; }
.card > header h2.ch .ic { width: 17px; height: 17px; color: var(--brand-ink); }
.card > header h2.ch small { font: 500 12px var(--sans); color: var(--ink-3); }
.svb { gap: 5px; }
.svb .ic { width: 14px; height: 14px; }
.svb:not(.pri) { color: var(--ink-3); }
.svb:not(.pri) .ic { display: none; }
.arcst { display: flex; flex-wrap: wrap; gap: 6px; }
.arcst .chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; font-size: 12px; }
.arcst .chip .ic { width: 13px; height: 13px; }
.uc { display: flex; align-items: center; gap: 10px; }
.uc .det { display: block; }
@media (max-width: 860px) { .atabs button { padding: 8px 10px; } .atabs button span { display: none; } .atabs button[aria-selected="true"] span { display: inline; } }

/* ---------- 1.10.0: ana sayfa (karşılama, saat, verimlilik, grafikler) ---------- */
.dhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding: 4px 0 2px; }
.dh-l { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dh-l h1 { font: 650 26px/1.15 var(--sans); letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.dh-d { margin: 0; color: var(--ink-3); font-size: 13.5px; }
.dh-live { margin: 4px 0 0; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.dh-live b { font: 600 14px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.dh-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); animation: dhp 2s ease-in-out infinite; }
@keyframes dhp { 50% { box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .dh-live .dot { animation: none; } }
.dsh-r { display: flex; align-items: center; gap: 8px; }
.dh-clock { font: 600 34px/1 var(--mono); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--ink); }
.prodc > header { gap: 10px; }
.kts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kt { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.kt:first-child { border-left: 0; }
.kt-l { font-size: 12.5px; color: var(--ink-3); }
.kt-v { font: 650 26px/1.15 var(--sans); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kt.hero .kt-v { color: var(--brand-ink); }
.kt-s { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.dl small { font-size: 11px; color: var(--ink-3); }
.dl.up { color: var(--brand-ink); } .dl.down { color: var(--bad-ink, #A33); }
.chhead { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.chhead h2 { font: 650 15px var(--sans); margin: 0; }
.chadd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.chc { min-width: 0; }
.chc.w2 { grid-column: span 2; }
.chc > header h2 small { font: 500 12px var(--sans); color: var(--ink-3); margin-left: 6px; }
.chgrid.editing .chc { outline: 1px dashed var(--line-2); outline-offset: 3px; }
.chtools { display: flex; gap: 2px; }
.chtools .fw .ic { transform: rotate(180deg); }
.chb { min-height: 120px; position: relative; }
.chsvg { display: block; max-width: 100%; overflow: visible; }
.chsvg .grid { stroke: var(--line); stroke-width: 1; }
.chsvg .base { stroke: var(--line-2); stroke-width: 1; }
.chsvg .ax { fill: var(--ink-3); font: 11px var(--sans); font-variant-numeric: tabular-nums; }
.chsvg .vl { fill: var(--ink); font: 600 11.5px var(--sans); }
.chsvg .lin { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chsvg .area { opacity: .1; }
.chsvg .dot { stroke: var(--surface); stroke-width: 2; }
.chsvg .cross { stroke: var(--line-2); stroke-width: 1; }
.chsvg .hit { fill: transparent; outline: none; }
.chsvg .hit.on, .chsvg .hit:focus-visible { fill: var(--surface-2); }
.chleg { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--ink-2); }
.chleg span { display: inline-flex; align-items: center; gap: 6px; }
.chleg i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.chleg i.ln { height: 2px; width: 14px; }
.chempty { color: var(--ink-3); font-size: 13px; padding: 28px 0; text-align: center; }
.hbars { display: flex; flex-direction: column; gap: 10px; }
.hb { display: grid; grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 13px; outline: none; border-radius: 4px; }
.hb:hover, .hb:focus-visible { background: var(--surface-2); }
.hb-l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hb-t { height: 14px; display: block; }
.hb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hb-v { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; min-width: 64px; }
.hb-v b { font-weight: 600; font-variant-numeric: tabular-nums; }
.hb-v small { font-size: 11px; color: var(--ink-3); }
.ctip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: 6px; font-size: 12px; box-shadow: var(--shadow); line-height: 1.45; min-width: 120px; }
.ctip-h { font-size: 11.5px; opacity: .75; margin-bottom: 3px; }
.ctip-r { display: flex; align-items: center; gap: 7px; }
.ctip-r i { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.ctip-r b { font-weight: 650; font-variant-numeric: tabular-nums; }
.ctip-r span { opacity: .8; }
@media (max-width: 1100px) and (min-width: 641px) { .kts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kt:nth-child(3) { border-left: 0; } .kt:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 860px) {
  .chgrid { grid-template-columns: minmax(0, 1fr); } .chc.w2 { grid-column: auto; }
  .dhead { align-items: flex-start; } .dsh-r { align-items: flex-start; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .dh-clock { font-size: 24px; } .dh-l h1 { font-size: 22px; }
  .kts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kt { border-left: 0 !important; border-top: 1px solid var(--line) !important; } .kt:nth-child(-n+2) { border-top: 0 !important; } .kt:nth-child(odd) { border-right: 1px solid var(--line); }
  .kt-v { font-size: 22px; }
  .prodc > header .seg { width: 100%; } .prodc > header .seg button { flex: 1; }
}

/* ---------- 1.11.0: CRM · Anlaşmalar (Bitrix24) ---------- */
.crmh .vtitle { gap: 12px; }
.crmcat { width: auto; min-width: 200px; font-weight: 600; }
.crmsync { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.crmsync .ic { width: 13px; height: 13px; }
.crmbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kb { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 10px; align-items: flex-start; min-height: 60vh; scroll-snap-type: x proximity; }
.kcol { flex: 0 0 272px; display: flex; flex-direction: column; gap: 6px; scroll-snap-align: start; border-radius: 8px; transition: background .12s; }
.kcol.over { background: var(--surface-2); outline: 2px dashed var(--line-2); outline-offset: 2px; }
.kcol > header { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 22px 8px 12px; color: #102030; font: 600 12.5px var(--sans); background: var(--sc); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); border-radius: 4px 0 0 4px; }
.kcol > header .kn { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kcol > header .kcnt { font: 650 11.5px var(--mono); background: rgba(255,255,255,.55); padding: 1px 6px; border-radius: 9px; }
.ksum { font: 600 15px var(--sans); color: var(--ink); padding: 2px 4px 4px; font-variant-numeric: tabular-nums; }
.kcards { display: flex; flex-direction: column; gap: 8px; }
.kc { display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 11px 8px; cursor: pointer; font-size: 12.5px; box-shadow: 0 1px 1px rgba(0,0,0,.03); }
.kc:hover { border-color: var(--line-2); }
.kc:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; }
.kc.drag { opacity: .45; }
.kc-t { color: var(--blue-ink); font-weight: 600; font-size: 13px; line-height: 1.3; }
.kc-tag { align-self: flex-start; font-size: 11px; color: var(--ink-3); background: var(--surface-2); padding: 0 6px; border-radius: 3px; }
.kc-a { font: 650 14px var(--sans); font-variant-numeric: tabular-nums; }
.kc-c { color: var(--ink-2); line-height: 1.35; } .kc-c span { color: var(--ink-3); }
.kc-q { display: flex; flex-wrap: wrap; gap: 4px; }
.kc footer { display: flex; align-items: center; gap: 8px; margin-top: 4px; padding-top: 6px; border-top: 1px solid var(--line); }
.kc-d { color: var(--ink-3); font-size: 11.5px; flex: 1; }
.kc-e { font-size: 11.5px; }
.kc-u { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: var(--blue-ink); font: 650 9.5px var(--sans); display: grid; place-items: center; }
.kdrop { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; gap: 10px; padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--line); backdrop-filter: blur(6px); }
.kz { flex: 1; text-align: center; padding: 16px 10px; border-radius: 8px; border: 2px dashed var(--sc); color: var(--ink); font-weight: 650; }
.kz.over { background: color-mix(in srgb, var(--sc) 22%, transparent); }
.crmt th.srt { cursor: pointer; user-select: none; } .crmt th.asc::after { content: " ▲"; font-size: 9px; } .crmt th.desc::after { content: " ▼"; font-size: 9px; }
.crmt td { vertical-align: top; }
.sbar { display: flex; gap: 2px; width: 120px; } .sbar i { flex: 1; height: 6px; border-radius: 2px; background: var(--surface-2); }
.sbl { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 3px; white-space: nowrap; }
.modal.wide:has(.crmdeal) { width: min(1180px, 100%); }
.crmdt { white-space: normal !important; } .crmdt small { color: var(--ink-3); font-weight: 500; }
.stg { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.stg-i { position: relative; flex: 1 1 90px; min-width: 70px; height: 30px; border: 0; padding: 0 16px 0 12px; background: var(--surface-2); color: var(--ink-2); font: 600 11.5px var(--sans); cursor: pointer; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); }
.stg-i:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); border-radius: 4px 0 0 4px; }
.stg-i span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stg-i.on { background: var(--sc); color: #102030; }
.stg-i:hover { filter: brightness(.95); }
.stg-end { display: flex; gap: 4px; margin-left: 8px; }
.stg-end .btn.on { background: var(--sc); color: #fff; border-color: var(--sc); }
.crmcols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.cs { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.cs h3 { margin: 0 0 2px; font: 650 12px var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cf { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.cf-l { color: var(--ink-3); }
.cf-v input, .cf-v select, .cf-v textarea { width: 100%; }
.cf-v .fit { display: flex; gap: 6px; } .cf-v .fit select { width: 90px; flex: none; }
.cf-title { font-weight: 600; }
.cq { display: flex; align-items: center; gap: 8px; font-size: 13px; } .cq .num { margin-left: auto; }
.cs .fit { display: flex; gap: 6px; }
.tls { display: flex; flex-direction: column; gap: 10px; max-height: 420px; overflow-y: auto; margin-top: 4px; }
.tl { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; font-size: 12.5px; }
.tl-i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-ink); } .tl-i .ic { width: 14px; height: 14px; }
.tl.done .tl-i { background: var(--brand-soft); color: var(--brand-ink); }
.tl p { margin: 2px 0; white-space: pre-wrap; color: var(--ink-2); }
.seg.sm button { padding: 4px 10px; font-size: 12px; }
@media (max-width: 860px) {
  .crmcols { grid-template-columns: minmax(0, 1fr); }
  .kcol { flex-basis: 82vw; }
  .cf { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .stg-i { flex-basis: 30%; }
  .stg-end { margin-left: 0; width: 100%; } .stg-end .btn { flex: 1; }
}
.kdrop[hidden] { display: none; }
.crmt th:first-child, .crmt td:first-child { min-width: 260px; }
.crmt td:nth-child(2) { min-width: 150px; } .crmt td:nth-child(4) { min-width: 170px; }
.crmt td { white-space: normal; } .crmt td.num { white-space: nowrap; }

/* ---------- 1.12.0: yazı kutuları — beyaz kart üstünde beyaz kutu yerine hafif dolgu, belirgin kenar, yeşil odak ---------- */
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"], input[type="password"], input[type="search"], input[type="email"], input[type="tel"], input[type="url"], input:not([type]), select, textarea {
  background: var(--field); border: 1px solid var(--field-line); border-radius: 6px; color: var(--ink); transition: border-color .12s, box-shadow .12s, background .12s; }
input:not([type="checkbox"]):not([type="radio"]):hover, select:hover, textarea:hover { border-color: var(--field-hover); }
input:not([type="checkbox"]):not([type="radio"]):focus, select:focus, textarea:focus { outline: none; background: var(--surface); border-color: var(--brand-btn); box-shadow: 0 0 0 3px var(--field-ring); }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: .85; }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); border-color: var(--line); }
.authb .auth-card label { color: var(--ink-2); }

/* ---------- 1.12.0: müşteriler, tedarikçiler, ana sayfa listeleri ---------- */
.plist td { vertical-align: top; }
.plist td:first-child { min-width: 220px; }
.tags { display: flex; flex-wrap: wrap; gap: 4px; }
.pview { gap: 12px; }
.pkpi { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; }
.pkpi > div { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-left: 1px solid var(--line); min-width: 0; }
.pkpi > div:first-child { border-left: 0; }
.pkpi span { font-size: 12px; color: var(--ink-3); } .pkpi b { font: 650 18px var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 14px; align-items: start; }
.catpick { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.pick { cursor: pointer; border: 1px solid var(--line); padding: 4px 10px; font-size: 12px; background: var(--surface); }
.chip.pick.on { background: var(--brand-soft); color: var(--brand-ink); border-color: var(--brand); }
.qmini { display: flex; flex-direction: column; }
.qm { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 10px; padding: 8px 6px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; font-size: 13px; cursor: pointer; color: var(--ink); border-radius: 4px; }
.qm:last-child { border-bottom: 0; }
.qm:hover, .qm:focus-visible { background: var(--surface-2); }
.qm-c { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.qm .num { font-variant-numeric: tabular-nums; } .qm-d { color: var(--ink-3); font-size: 12px; }
@media (max-width: 860px) {
  .pkpi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pkpi > div { border-left: 0; border-top: 1px solid var(--line); } .pkpi > div:nth-child(-n+2) { border-top: 0; }
  .pcols { grid-template-columns: minmax(0, 1fr); }
  .qm { grid-template-columns: auto minmax(0, 1fr) auto; } .qm .num, .qm-d { display: none; }
}

/* ---------- 1.13.0: üst şerit (her sayfada gün, hafta, çeyrek, saat), entegrasyon logoları ---------- */
.tbar-w { max-width: 1500px; margin: 0 auto; padding: 10px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); }
@media (min-width: 1100px) { .tbar-w { padding-left: 24px; padding-right: 24px; } }
.tbar { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; }
/* 1.14.0: tek parça, büyük harfli, sade şerit */
.tb-pill { display: inline-flex; align-items: center; height: 32px; padding: 0 3px 0 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.tb-i { display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-right: 1px solid var(--line); height: 14px; }
.tb-i .ic { width: 13px; height: 13px; color: var(--brand); }
.tb-w { color: var(--ink-3); }
.tbar .tb-c { margin-left: 3px; padding: 6px 11px; border-radius: 999px; background: var(--surface-2); font: 600 12px/1 var(--mono); letter-spacing: .05em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tbar .tb-c small { font-size: 10.5px; color: var(--ink-3); }
.wrap { padding-top: 8px; }
.card > header h2.lg { display: flex; align-items: center; min-height: 22px; }
.card > header h2.lg img { height: 20px; width: auto; display: block; }
.card > header h2.lg img.nts { height: 26px; margin: -4px 0; }
@media (max-width: 860px) { .tbar .tb-d { display: none; } }
@media (max-width: 520px) { .tb-i { padding: 0 8px; } .tbar .lsw span { display: none; } }

/* müşteri haritası */
.wm { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(220px, 1fr); gap: 16px; align-items: start; }
.wm-map { min-width: 0; }
.wmap { width: 100%; height: auto; display: block; }
.wmap path { stroke: var(--surface); stroke-width: .6; transition: filter .12s; outline: none; }
.wmap .m-1 { fill: var(--map-n); } .wmap .m0 { fill: var(--map-0); } .wmap .m1 { fill: var(--map-1); } .wmap .m2 { fill: var(--map-2); } .wmap .m3 { fill: var(--map-3); } .wmap .m4 { fill: var(--map-4); }
.wmap path.hov, .wmap path:focus-visible { stroke: var(--ink); stroke-width: 1.2; }
.wmap .mdot { fill: var(--brand); stroke: var(--surface); stroke-width: 1.5; pointer-events: none; opacity: .9; }
.wm-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--ink-2); }
.wm-leg span { display: inline-flex; align-items: center; gap: 5px; }
.wm-leg i, .wl i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex: none; }
i.m0 { background: var(--map-0); } i.m1 { background: var(--map-1); } i.m2 { background: var(--map-2); } i.m3 { background: var(--map-3); } i.m4 { background: var(--map-4); }
.wm-tot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.wm-tot > div { display: flex; flex-direction: column; padding: 8px 10px; border-left: 1px solid var(--line); } .wm-tot > div:first-child { border-left: 0; }
.wm-tot b { font: 650 20px var(--sans); } .wm-tot span { font-size: 11.5px; color: var(--ink-3); }
.wm-list { display: flex; flex-direction: column; max-height: 300px; overflow-y: auto; }
.wl { display: grid; grid-template-columns: 12px 20px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--line); font-size: 13px; border-radius: 4px; }
.wl.hov { background: var(--surface-2); }
.wl-n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-c { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.wl-t { font: 600 12.5px var(--mono); font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .wm { grid-template-columns: minmax(0, 1fr); } }

/* stok kartları: grup simgesi, tahmini fiyat */
.kcell { display: flex; gap: 10px; align-items: flex-start; }
.kic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--surface-2); color: var(--ink-2); }
.kic .ic { width: 18px; height: 18px; stroke-width: 1.5; }
.qp.est input::placeholder { color: var(--blue-ink); font-style: italic; opacity: 1; }
.chip.est { background: var(--blue-soft); color: var(--blue-ink); }
input.mkp { width: 96px; text-align: right; }

/* CRM: kayıt düzeni işaretleri, hızlı anlaşma */
.kc.warn { border-left: 3px solid var(--warn-ink); }
.kc-w { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--warn-ink); line-height: 1.3; }
.kc-w .ic { width: 13px; height: 13px; flex: none; }
.kc-w.late { color: var(--bad-ink); } .kc-w.due { color: var(--blue-ink); }
.kc-l { font-size: 11.5px; color: var(--ink-3); }
.ksum { display: flex; align-items: center; gap: 6px; }
.ksum .kadd { margin-left: auto; width: 26px; height: 26px; }
.kquick { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px; border: 1px dashed var(--line-2); border-radius: 8px; background: none; color: var(--ink-2); font: 600 12.5px var(--sans); cursor: pointer; }
.kquick:hover { background: var(--surface); color: var(--ink); border-color: var(--brand); }
.kquick .ic { width: 14px; height: 14px; }
.req { color: var(--bad-ink); font-weight: 700; }

/* dil seçimi (bayraklar) */
.lsw { display: flex; gap: 6px; margin-left: auto; align-self: center; }
.lsw a, .lsw button { display: block; line-height: 0; padding: 3px; border-radius: 5px; border: 1px solid transparent; opacity: .55; background: none; cursor: pointer; }
.lsw a:hover, .lsw button:hover { opacity: .9; }
.lsw a[aria-current="true"], .lsw button[aria-pressed="true"] { opacity: 1; border-color: var(--line-2); background: var(--surface); }
.lsw img { width: 24px; height: 16px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.tbar .lsw { display: inline-flex; height: 32px; padding: 3px; gap: 2px; margin: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tbar .lsw button { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 4px; border: 0; border-radius: 999px; opacity: 1; line-height: 1;
  font: 600 10.5px/1 var(--sans); letter-spacing: .1em; color: var(--ink-3); }
.tbar .lsw button:hover { color: var(--ink); background: var(--surface-2); }
.tbar .lsw button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }
.tbar .lsw img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }

/* ---------- 1.14.0: simgeli, sayılı filtreler (her ekranda) ---------- */
.seg.fs button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; }
.seg.fs .ic { width: 14px; height: 14px; flex: none; opacity: .8; }
.seg.fs em { font-style: normal; font-size: 11px; font-weight: 600; min-width: 18px; padding: 2px 6px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); text-align: center; font-variant-numeric: tabular-nums; }
.seg.fs button[aria-pressed="true"] em { background: color-mix(in srgb, var(--bg) 22%, transparent); color: var(--bg); }
.seg.fs button[aria-pressed="true"] .ic { opacity: 1; }
.filt.col { flex-direction: column; align-items: stretch; }
.filt.col .search { max-width: none; }
.filt.col .seg { align-self: flex-start; }
@media (max-width: 640px) { .seg.fs { max-width: 100%; overflow-x: auto; } .seg.fs button span { display: none; } .seg.fs button[aria-pressed="true"] span { display: inline; } }

/* ---------- 1.14.0: defterler ---------- */
:root { --nb-violet: #6E4FCF; --nb-gray: #6B7268; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --nb-violet: #B49BF5; --nb-gray: #A3A99F; } }
:root[data-theme="dark"] { --nb-violet: #B49BF5; --nb-gray: #A3A99F; }
[data-c] { --nbc: var(--brand); }
[data-c="blue"] { --nbc: var(--blue); } [data-c="amber"] { --nbc: var(--warn-ink); } [data-c="red"] { --nbc: var(--bad-ink); }
[data-c="violet"] { --nbc: var(--nb-violet); } [data-c="gray"] { --nbc: var(--nb-gray); }
.nbw { display: grid; grid-template-columns: minmax(250px, 320px) minmax(0, 1fr); gap: 16px; align-items: start; }
.nbl { position: sticky; top: 12px; }
.nbl > header { gap: 10px; }
.nbitems { display: flex; flex-direction: column; padding: 6px; max-height: calc(100vh - 230px); overflow-y: auto; }
.nbi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; text-align: left; cursor: pointer; color: var(--ink); }
.nbi:hover { background: var(--surface-2); }
.nbi.on { background: color-mix(in srgb, var(--nbc) 12%, var(--surface)); box-shadow: inset 3px 0 0 var(--nbc); }
.nbi-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: color-mix(in srgb, var(--nbc) 16%, var(--surface)); color: var(--nbc); }
.nbi-ic .ic { width: 16px; height: 16px; }
.nbi-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.nbi-t b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbi-t span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbm { border-top: 3px solid var(--nbc); min-width: 0; }
.nbh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.nbh h2 { font-size: 18px; line-height: 1.25; text-wrap: balance; }
.nbh .search { max-width: 220px; }
.nbvis { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.nbvis .ic { width: 13px; height: 13px; color: var(--nbc); }
.nbback { display: none; }
.nbc { margin: 14px 16px 6px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field); }
.nbc:focus-within { border-color: var(--field-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--field-ring) 18%, transparent); }
.nbc textarea { border: 0; background: transparent; box-shadow: none; resize: vertical; min-height: 72px; padding: 12px 14px; font: inherit; line-height: 1.55; }
.nbc textarea:focus { outline: none; box-shadow: none; }
.nbc-f { display: flex; align-items: center; gap: 8px; padding: 6px 8px 8px 14px; }
.nbc-f .sub2 { display: inline-flex; align-items: center; gap: 5px; flex: 1; }
.nbc-f .sub2 .ic { width: 13px; height: 13px; }
.nbday { display: flex; align-items: center; gap: 8px; margin: 18px 16px 6px; font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.nbday::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.nbday.pin { color: var(--nbc); } .nbday .ic { width: 13px; height: 13px; }
.nbe { margin: 0 16px; padding: 10px 0 12px; border-bottom: 1px solid var(--line); }
.nbe:last-of-type { border-bottom: 0; }
.nbe.pinned { margin: 0 10px 8px; padding: 10px 6px 12px; border: 1px solid color-mix(in srgb, var(--nbc) 35%, var(--line)); border-radius: 10px; background: color-mix(in srgb, var(--nbc) 6%, var(--surface)); }
.nbe-h { display: flex; align-items: center; gap: 8px; min-height: 26px; }
.nbe-h time { font: 600 12px var(--mono); color: var(--ink); background: var(--surface-2); border-radius: 6px; padding: 3px 7px; font-variant-numeric: tabular-nums; }
.nbe-h b { font-size: 13px; font-weight: 600; }
.nbe-h .btn.icon { opacity: 0; transition: opacity .12s; }
.nbe:hover .nbe-h .btn.icon, .nbe-h .btn.icon:focus-visible, .nbe-h .btn.icon[aria-pressed="true"] { opacity: 1; }
.nbe-h .btn.icon[aria-pressed="true"] { color: var(--nbc); }
@media (hover: none) { .nbe-h .btn.icon { opacity: .7; } }
.nbe-b { margin: 6px 0 0 2px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; max-width: 75ch; }
.nbe-b a { color: var(--blue-ink); }
.nbe textarea { margin-top: 8px; }
.nbempty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 70px 20px; }
.nbempty .ic { width: 34px; height: 34px; color: var(--ink-3); }
.nbm > .empty { padding: 26px 16px; }
.nbvisp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vopt { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); text-align: left; cursor: pointer; color: var(--ink); }
.vopt .ic { grid-row: span 2; width: 18px; height: 18px; color: var(--ink-3); }
.vopt span { font-size: 12px; color: var(--ink-3); }
.vopt[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.vopt[aria-pressed="true"] .ic { color: var(--brand); }
.nbcol { display: flex; gap: 10px; }
.nbcol button { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); background: var(--nbc); box-shadow: 0 0 0 1px var(--line-2); cursor: pointer; }
.nbcol button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
@media (max-width: 760px) {
  .nbw { grid-template-columns: minmax(0, 1fr); }
  .nbw.has .nbl { display: none; } .nbw:not(.has) .nbm { display: none; }
  .nbl { position: static; } .nbitems { max-height: none; }
  .nbback { display: inline-flex; } .nbh .search { max-width: none; flex-basis: 100%; order: 5; }
  .nbvisp { grid-template-columns: 1fr; }
}
.nbl .filt.col .seg { align-self: stretch; display: flex; }
.nbl .filt.col .seg button { flex: 1; justify-content: center; padding: 6px 6px; min-width: 0; }
.nbl .filt.col .search { min-width: 0; width: 100%; }

/* ---------- 1.14.0: bayraklı ülke seçimi, şirket logosu ---------- */
.flag { display: inline-block; width: 20px; height: 15px; border-radius: 2px; object-fit: cover; vertical-align: -3px; margin-right: 6px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent); background: var(--surface-2); }
.det .flag { width: 16px; height: 12px; vertical-align: -2px; margin-right: 4px; }
.cpick { position: relative; }
.cp-btn { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 38px; padding: 0 10px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cp-btn:hover { background: var(--field-hover); }
.cp-btn:focus-visible, .cpick.open .cp-btn { outline: none; border-color: var(--field-ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--field-ring) 18%, transparent); }
.cp-btn .flag { margin: 0; }
.cp-btn > .ic { width: 16px; height: 16px; color: var(--ink-3); }
.cp-k { font: 600 11px var(--mono); color: var(--ink-3); letter-spacing: .04em; }
.cp-ch { width: 16px; height: 16px; color: var(--ink-3); fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .15s; }
.cpick.open .cp-ch { transform: rotate(180deg); }
.cp-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); min-width: 260px; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
.cp-pop .search { max-width: none; margin-bottom: 6px; }
.cp-list { max-height: 260px; overflow-y: auto; display: flex; flex-direction: column; }
.cp-list button { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; border-radius: 6px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.cp-list button .flag { margin: 0; }
.cp-list button:hover, .cp-list button:focus-visible { background: var(--surface-2); outline: none; }
.cp-list button[aria-selected="true"] { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.cp-list button[hidden] { display: none; }
.clogo { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 3px; }
.clogo.ph { background: var(--surface-2); color: var(--ink-3); font: 700 11px var(--sans); letter-spacing: .04em; padding: 0; }
.clogo.md { width: 40px; height: 40px; }
.clogo.lg { width: 72px; height: 72px; border-radius: 12px; padding: 6px; }
.clogo.lg.ph .ic { width: 26px; height: 26px; }
.pname { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pname > div { min-width: 0; }
.ph2 { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph2 > span { overflow: hidden; text-overflow: ellipsis; }
.logof { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.logof-a { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.logof-a .hint { flex-basis: 100%; }
.wl .flag { width: 18px; height: 13px; margin: 0 2px 0 0; }
.cp-btn .grow, .cp-list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 1.15.0: önceki tekliften kopyala — teklif listesi ---------- */
.qpick { border: 1px solid var(--field-line); border-radius: 10px; background: var(--surface); padding: 8px; }
.qpick .search { max-width: none; margin-bottom: 6px; }
.qp-list { max-height: 264px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.qp-list button { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.qp-list button:hover { background: var(--surface-2); }
.qp-list button[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); }
.qp-list button[hidden] { display: none; }
.qp-list .grow { flex: 1; min-width: 0; } .qp-list .grow b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qp-no { flex: none; min-width: 92px; font-size: 12.5px; }
.qp-r { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }

/* ---------- 1.15.0: TCMB kur durumu ---------- */
.fxs { display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.fxs .fxv { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; border-right: 1px solid var(--line); min-width: 110px; }
.fxs .fxv span { font: 600 10.5px/1 var(--sans); letter-spacing: .1em; color: var(--ink-3); }
.fxs .fxv b { font: 600 18px/1.1 var(--mono); font-variant-numeric: tabular-nums; }
.fxs .fxm { display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 8px 14px; font-size: 12.5px; color: var(--ink-3); min-width: 0; flex: 1; box-shadow: inset 3px 0 0 var(--fxc, var(--brand)); }
.fxs .fxm b { color: var(--ink); font-size: 13px; }
.fxs.ok { --fxc: var(--brand); } .fxs.warn { --fxc: var(--warn-ink); } .fxs.bad { --fxc: var(--bad-ink); }
.fxs.warn .fxm b { color: var(--warn-ink); } .fxs.bad .fxm b { color: var(--bad-ink); }
@media (max-width: 560px) { .fxs { flex-wrap: wrap; } .fxs .fxm { flex-basis: 100%; border-top: 1px solid var(--line); } }

/* ---------- 1.15.0: harita filtresi, firmalar, zaman akışı ---------- */
button.wl { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
button.wl.on { background: var(--brand-soft); }
.wm-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; min-height: 30px; }
.wm-bar .btn .ic { width: 14px; height: 14px; }
.wm-rng { flex: 1; min-width: 140px; max-width: 420px; accent-color: var(--blue); }
.wm-when { font: 600 10.5px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); min-width: 92px; }
.wm-bar .chip.pick { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.wm-bar .chip .ic { width: 12px; height: 12px; } .wm-bar .chip .flag { width: 16px; height: 12px; margin: 0 2px 0 0; }
.wmap.filt path:not(.hit) { opacity: .45; }
.wmap path.hit { stroke: var(--ink); stroke-width: .9; }
.wmap path { transition: fill .35s ease; }
.wm-f { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.wm-f .search { max-width: none; }
.wm-f .seg.fs { align-self: flex-start; }
.wf { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; border-radius: 4px; }
.wf:hover, .wf.hov { background: var(--surface-2); }
.wf .clogo { width: 30px; height: 30px; }
.wf-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.wf-t b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-t span { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wf-t .flag { width: 15px; height: 11px; margin-right: 4px; }
.wf-r { display: flex; gap: 4px; flex: none; }
.wf-r .chip .ic { width: 12px; height: 12px; vertical-align: -2px; }
.chip.ok { background: var(--brand-soft); color: var(--brand-ink); }

/* ---------- 1.15.0: aynı satırdaki giriş alanları hizalı ----------
   Her alan üç satırlık alt ızgara: etiket / kutu / açıklama. Etiketi iki satıra taşan ya da altında açıklaması olan alan
   yanındakileri kaydırmaz; kutular aynı çizgide başlar ve aynı yüksekliktedir. */
@supports (grid-template-rows: subgrid) {
  .fgrid { row-gap: 0; align-items: stretch; }
  .fgrid > * { grid-row: span 3; }
  .fgrid > .f { display: grid; grid-template-rows: subgrid; row-gap: 4px; align-content: start; padding-bottom: 8px; }
  .fgrid > .f > label, .fgrid > .f > .lab { align-self: end; }
  .fgrid > .f > :only-child { grid-row: 2; align-self: center; }
  .fgrid > .f:has(> :nth-child(4)) { display: flex; }
}
.cp-btn { min-height: 0; height: 33px; }

/* ---------- 1.16.0: ilgili kişiler, yeni teklifte müşteri bilgileri ve dosyalar ---------- */
.kontak { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.kontak .kr { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 6px; width: 100%; align-items: center; }
@media (max-width: 640px) { .kontak .kr { grid-template-columns: 1fr 1fr; } .kontak .kr .btn { justify-self: start; } }
.nqc > .fgrid { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.nqf { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 4px 3px 8px; }
.fchip .ic { width: 13px; height: 13px; }
.btn.icon.xs { width: 20px; height: 20px; min-height: 0; padding: 0; }
.btn.icon.xs .ic { width: 12px; height: 12px; }
.kline { display: block; } .kline + .kline { margin-top: 3px; }

/* 1.16.0: tank bölüm maliyet tabloları */
.tkcost:empty { display: none; }
.tkcost { margin-top: 12px; overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.tkc { width: 100%; border-collapse: collapse; }
.tkc th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--ink-3); background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tkc td { vertical-align: middle; }
.tkc tr.nm td { padding-bottom: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.tkc tbody tr.nm:first-child td { border-top: 0; }
.tkc tr.nm .det { display: inline; margin-left: 6px; }
.tkc tr.v td { padding-top: 2px; padding-bottom: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tkc tr.miss td { background: var(--bad-soft); }
.tkc th:first-child, .tkc tr.v td:first-child { width: 40%; }
.tkc .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tkc tr.v td.num:last-child { color: var(--ink); font-weight: 600; }
.tkc tfoot td { font-weight: 650; border-top: 1px solid var(--line); background: var(--surface-2); }
.upin { width: 92px; height: 28px; padding: 2px 6px; text-align: right; font: inherit; font-size: 13px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
.upin:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.upin.ovr { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; }
.upin::placeholder { color: var(--ink-3); }
.lnk.xs { font-size: 13px; padding: 0 4px; margin-left: 2px; }
.rowlist .r.stz { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; padding-top: 0; }
.rowlist .r.stz .sub2 { white-space: nowrap; }
.tkc tr.nm td { border-bottom: 0; }
/* 1.16.0: belge başlığı: araçlar kendi satırında */
.vhead.dochd .vtitle { flex: 1 1 auto; min-width: min(100%, 360px); }
.vhead.dochd > .acts { flex: 1 1 100%; flex-wrap: wrap; gap: 8px; }

/* 1.17.0: sade maliyet raporu */
.costrep.cs { gap: 22px; max-width: 900px; margin: 0 auto; width: 100%; }
.cs-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; border-bottom: 2px solid var(--brand); padding-bottom: 12px; }
.cs-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cs-head b { font-size: 17px; letter-spacing: .05em; }
.cs-head span { font-size: 13px; color: var(--ink-2); }
.cs-hr { align-items: flex-end; text-align: right; }
.cs-hr img { margin-bottom: 4px; }
.cs-ic { color: var(--bad-ink) !important; font-weight: 600; font-size: 11.5px !important; text-transform: uppercase; letter-spacing: .06em; }
.cs-tank { display: flex; flex-direction: column; gap: 8px; break-inside: auto; }
.cs-tank h2 { font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.cs-tank h2 span { font-size: 12.5px; font-weight: 400; color: var(--ink-3); }
.cs-warn { font-size: 12.5px; color: var(--bad-ink); margin: 0; }
.cs-t, .cs-sum { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.cs-t th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); border-bottom: 1px solid var(--line-2); padding: 6px 8px; }
.cs-t td { padding: 5px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.cs-t td small { display: block; font-size: 11.5px; color: var(--ink-3); }
.cs-t .num, .cs-sum .num { text-align: right; white-space: nowrap; }
.cs-t th.num { text-align: right; }
.cs-t tr.cs-g td { background: var(--surface-2); font-weight: 650; font-size: 12px; padding-top: 6px; padding-bottom: 6px; }
.cs-t tr.miss td { color: var(--bad-ink); }
.cs-sum { max-width: 420px; margin-left: auto; }
.cs-sum td { padding: 5px 8px; }
.cs-sum tr.t td { font-weight: 650; border-top: 1px solid var(--line-2); }
.cs-sum tr.p td { font-weight: 700; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; }
.cs-total { break-inside: avoid; }
@media print {
  .costrep.cs { max-width: none; gap: 14px; border: 0 !important; padding: 0 !important; border-radius: 0; box-shadow: none; }
  .cs-t td { padding-top: 3px; padding-bottom: 3px; }
  .cs-t, .cs-sum { font-size: 10pt; }
  .cs-t thead { display: table-header-group; }
  .cs-t tr, .cs-sum { break-inside: avoid; }
  .cs-sum tr.p td, .cs-t tr.cs-g td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (max-width: 640px) { .cs-head { flex-direction: column; } .cs-hr { align-items: flex-start; text-align: left; } .cs-t td small { display: none; } }

/* ---------- 1.18.0: adım adım teklif ve tank hesabı ---------- */
.wiz { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px; overflow-x: auto; }
.wiz ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; min-width: max-content; }
.wiz .wz { flex: 1 1 0; min-width: 0; position: relative; }
.wiz .wz button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; color: var(--ink-2); text-align: left; font: inherit; }
.wiz .wz button:hover { background: var(--surface-2); }
.wiz .wz.cur button { background: var(--brand-soft); color: var(--brand-ink); }
.wz-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12.5px; font-weight: 700; border: 1.5px solid var(--line-2); color: var(--ink-2); background: var(--surface); font-variant-numeric: tabular-nums; }
.wz.cur .wz-n { background: var(--brand-btn); border-color: var(--brand-btn); color: var(--on-brand); }
.wz.done.st-ok .wz-n { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.wz.st-err:not(.cur) .wz-n { border-color: var(--bad-ink); color: var(--bad-ink); background: var(--bad-soft); }
.wz.st-warn:not(.cur) .wz-n { border-color: var(--warn-ink, #B7791F); }
.wz-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.wz-t b { font-size: 13px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz-t small { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wz.cur .wz-t small { color: inherit; opacity: .8; }
.wz-d { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--hl-line, #E0B400); }
/* dar alanda (tank formu) yalnız açık adımın adı yazılır */
.tform .wiz { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 10px; }
.tform .wiz .wz { flex: 0 0 auto; }
.tform .wiz .wz.cur { flex: 1 1 auto; }
.tform .wiz .wz:not(.cur) .wz-t { display: none; }
.tform .wiz .wz button { padding: 6px; gap: 8px; }
.wiz-iss { display: flex; flex-direction: column; gap: 4px; border-radius: 8px; padding: 8px 12px; background: var(--surface-2); border: 1px solid var(--line); }
.tform .wiz-iss { margin: 10px 14px 0; }
.wiz-iss p { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; }
.wiz-iss p .ic { flex: none; width: 15px; height: 15px; margin-top: 2px; }
.wiz-iss p.err { color: var(--bad-ink); font-weight: 600; }
.wiz-iss p.warn { color: var(--ink-2); }
.wiz-body { display: flex; flex-direction: column; gap: 14px; }
.wiz-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; flex-wrap: wrap; }
.tform .wiz-foot { padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 10px 10px; }
.wiz-pos { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.wiz-foot .arr { margin-left: 2px; }
.grph2 { display: flex; align-items: baseline; gap: 8px; font-size: 14px; font-weight: 650; margin: 0; }
.grph2 .sub2 { font-weight: 500; }
.tot1 { display: block; }

/* alt alta toplama (gider ve fiyat şeridi) */
.ledger { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-variant-numeric: tabular-nums; }
.lg-r { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto minmax(92px, auto); align-items: center; gap: 8px; padding: 7px 12px; border-top: 1px solid var(--line); min-height: 40px; }
.lg-r:first-child { border-top: 0; }
.lg-s { font-weight: 700; color: var(--ink-3); text-align: center; font-size: 15px; }
.lg-l { font-size: 13.5px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lg-l small, .lg-n { font-size: 11.5px; color: var(--ink-3); font-weight: 400; }
.lg-x input { margin-top: 4px; height: 30px; font-size: 13px; }
.lg-i { display: flex; gap: 6px; justify-content: flex-end; }
.lg-a { text-align: right; white-space: nowrap; font-weight: 500; }
.lg-r.sm { min-height: 34px; padding-top: 5px; padding-bottom: 5px; }
.lg-r.lg-t { background: var(--surface-2); border-top: 1.5px solid var(--line-2); }
.lg-r.lg-t .lg-l, .lg-r.lg-t .lg-a { font-weight: 700; }
.lg-r.lg-p { background: var(--brand-soft); border-top: 2px solid var(--brand); }
.lg-r.lg-p .lg-l, .lg-r.lg-p .lg-a, .lg-r.lg-p .lg-s { color: var(--brand-ink); font-weight: 750; font-size: 15px; }
.ledger.ro .lg-r { grid-template-columns: 0 minmax(0, 1fr) auto; }
.lg-a.hl { background: var(--hl); border-radius: 4px; padding: 0 4px; }
/* birimli giriş kutusu: birim kutunun içinde, sağda */
.sfx { position: relative; display: inline-flex; align-items: center; }
.sfx input { width: 108px; padding-right: 30px; text-align: right; font-variant-numeric: tabular-nums; }
.sfx i { position: absolute; right: 9px; font-style: normal; font-size: 12px; color: var(--ink-3); pointer-events: none; }
/* gözden geçir */
.rvw { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 8px; }
.rvw li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); }
.rvw li:first-child { border-top: 0; }
.rvw li .grow { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rvw-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.rvw-sum div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; }
.rvw-sum span { font-size: 11.5px; color: var(--ink-3); }
.rvw-sum b { font-size: 16px; font-variant-numeric: tabular-nums; }
.chip.bad { background: var(--bad-soft); color: var(--bad-ink); }

/* daha düzenli giriş alanları: sayı kutularında ok yok, tank formu daha geniş */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.tank { grid-template-columns: minmax(380px, 560px) minmax(0, 1fr); }
.grp .fgrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.grp { padding: 14px 16px; gap: 12px; }
@media (max-width: 640px) {
  .wiz .wz:not(.cur) .wz-t { display: none; }
  .wiz .wz { flex: 0 0 auto; } .wiz .wz.cur { flex: 1 1 auto; }
  .lg-r { grid-template-columns: 18px minmax(0, 1fr) minmax(80px, auto); }
  .lg-r .lg-i { grid-column: 2 / -1; justify-content: flex-start; }
  .lg-r .lg-i:empty { display: none; }
  .sfx input { width: 96px; }
  .wiz-foot .btn.pri { flex: 1 1 auto; justify-content: center; }
}
/* çizim altındaki bilgiler: 3 sütun, fiyat son satırda boşluğu doldurur */
.tdraw .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tdraw .facts .price { grid-column: span 1; }
@media (max-width: 640px) { .tdraw .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grph2 { text-transform: none; letter-spacing: 0; color: var(--ink); }
.grp .fgrid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grp .fgrid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .grp .fgrid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .lg-r .lg-s { grid-row: 1; grid-column: 1; } .lg-r .lg-l { grid-row: 1; grid-column: 2; } .lg-r .lg-a { grid-row: 1; grid-column: 3; }
  .lg-r .lg-i { grid-row: 2; }
  .tform .wiz .wz.cur .wz-t { display: none; }
  .tform .wiz .wz.cur { flex: 0 0 auto; }
  .tform .wiz ol { justify-content: space-between; min-width: 0; }
}
