@font-face { font-family: 'BDB Sans'; src: url('/fonts/pdf-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'BDB Sans'; src: url('/fonts/pdf-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
/* Müşteri servis talep formu */
:root { --ink: #13294B; --ink-2: #2C4466; --muted: #56677F; --ground: #F7FAFD; --card: #fff; --line: #DCE5F0; --field-line: #C6D4E5; --accent: #FFC21A; --danger: #B3261E; --ok: #1E6B45; --blue: #1F62B4; --blue-soft: #E5EFFB; --display: 'BDB Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; --body: 'BDB Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #E8EFF7; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
#root { min-height: 100%; }
.t-app { max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--ground); box-shadow: 0 0 0 1px var(--line); }
.t-head { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px; display: flex; align-items: center; gap: 12px; }
.t-logo { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.t-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.t-firm { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.t-firm-name { font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-sub { font-size: 12px; color: var(--muted); }
.t-call { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--field-line); display: flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; }
.t-progress { position: sticky; top: calc(65px + env(safe-area-inset-top, 0px)); z-index: 9; padding: 12px 18px 10px; background: #fff; border-bottom: 1px solid #EAF0F7; display: flex; flex-direction: column; gap: 8px; }
.t-progress-row { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.t-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.t-bars div { height: 5px; border-radius: 3px; background: var(--line); }
.t-bars div.on { background: var(--ink); }
.t-main { flex: 1; padding: 18px 18px 28px; display: flex; flex-direction: column; gap: 16px; }
.t-foot { position: sticky; bottom: 0; z-index: 10; background: #fff; border-top: 1px solid var(--line); padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px)); display: flex; gap: 8px; }
.t-h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1.1; }
.t-h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 24px; }
.t-lead { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.t-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.t-card.tight { padding: 12px 14px; border-radius: 12px; }
.t-stack6, .t-stack8, .t-stack10, .t-stack12, .t-stack14, .t-stack18 { display: flex; flex-direction: column; }
.t-stack6 { gap: 6px; } .t-stack8 { gap: 8px; } .t-stack10 { gap: 10px; } .t-stack12 { gap: 12px; } .t-stack14 { gap: 14px; } .t-stack18 { gap: 18px; }
.t-row8 { display: flex; gap: 8px; } .t-row12 { display: flex; gap: 12px; align-items: center; }
.t-row-between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.t-col { display: flex; flex-direction: column; }
.t-center { text-align: center; padding: 40px 0; }
.t-center-col { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.t-kicker { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.t-num { width: 30px; height: 30px; border-radius: 15px; background: #EEF4FA; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.t-strong { font-weight: 600; font-size: 15px; }
.t-small { font-size: 13px; } .t-xs { font-size: 12px; } .t-muted { color: var(--muted); }
.t-note { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); line-height: 1.45; }
.t-field { display: flex; flex-direction: column; gap: 6px; }
.t-label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.t-req { color: var(--danger); } .t-opt { font-weight: 400; color: var(--muted); }
.t-input { width: 100%; min-width: 0; height: 50px; border: 1px solid var(--field-line); border-radius: 10px; padding: 0 14px; font-size: 16px; background: #fff; }
.t-input.sm { height: 46px; font-size: 15px; padding: 0 12px; background: #F8FBFF; }
.t-input.area { min-height: 96px; height: auto; padding: 12px 14px; line-height: 1.4; resize: vertical; }
select.t-input { padding: 0 12px; }
.t-input[aria-invalid="true"] { border: 2px solid var(--danger); }
.t-prefix { height: 50px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 10px; background: #EEF4FA; display: flex; align-items: center; font-size: 16px; flex-shrink: 0; }
.t-check { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.t-check.top { align-items: flex-start; font-size: 13px; }
.t-check input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.t-err { font-size: 13px; font-weight: 600; color: var(--danger); }
.t-errbox { background: #FBE9E5; color: var(--danger); border: 1px solid #E8B4A8; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.t-seg { display: flex; background: #E3ECF6; border-radius: 12px; padding: 4px; gap: 4px; }
.t-seg button { flex: 1 1 0; height: 42px; border: none; border-radius: 9px; font-size: 14px; font-weight: 600; background: transparent; color: var(--ink-2); }
.t-seg button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(19,41,75,.15); }
.t-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.t-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.t-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.t-tile { height: 84px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border-radius: 12px; font-size: 13px; font-weight: 600; text-align: center; padding: 4px; background: #fff; border: 1px solid var(--field-line); }
.t-tile.bad { border: 2px solid var(--danger); }
.t-tile[aria-pressed="true"] { background: var(--ink); color: #fff; border: 2px solid var(--ink); }
.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-chip { min-height: 42px; padding: 0 14px; border-radius: 21px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--field-line); }
.t-chip.tight { padding: 0 6px; font-size: 13px; }
.t-chip.bad { border-color: var(--danger); }
.t-chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.t-warn { background: #FBE3A1; color: #5E4200; border: 1px solid #E5C25A; border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.t-loc { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; font-size: 15px; font-weight: 600; background: #fff; color: var(--ink); border: 1.5px dashed #A9BCD4; padding: 0 12px; }
.t-loc.on { background: #E3F1E8; color: var(--ok); border: 1.5px solid var(--ok); }
.t-photo { aspect-ratio: 1; border-radius: 10px; position: relative; overflow: hidden; background: #ddd; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.t-photo button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 14px; border: none; background: rgba(19,41,75,.8); color: #fff; font-size: 16px; line-height: 1; }
.t-addphoto { aspect-ratio: 1; border-radius: 10px; border: 2px dashed #A9BCD4; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 12px; font-weight: 600; }
.t-slotgrid { display: grid; grid-template-columns: 84px repeat(3, minmax(0, 1fr)); gap: 6px; align-items: center; }
.t-slothead { font-size: 11px; font-weight: 600; color: var(--muted); text-align: center; }
.t-slot { height: 44px; border-radius: 10px; font-size: 18px; font-weight: 700; background: #fff; color: var(--blue); border: 1px solid var(--field-line); }
.t-slot.bad { border: 1.5px solid var(--danger); }
.t-slot[aria-pressed="true"] { background: var(--blue-soft); border: 2px solid var(--blue); }
.t-line { font-size: 14px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.t-link { height: 36px; padding: 0 10px; border: none; background: transparent; color: var(--blue); font-size: 14px; font-weight: 600; }
.t-inline-link { border: none; background: none; padding: 0; color: var(--blue); text-decoration: underline; font-size: inherit; }
.t-btn { height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border-radius: 12px; font-size: 16px; font-weight: 600; text-decoration: none; border: none; }
.t-btn.grow { flex: 1; }
.t-btn.accent { background: var(--accent); color: var(--ink); width: 100%; }
.t-foot .t-btn.accent { width: auto; }
.t-btn.outline { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); width: 100%; }
.t-btn.back { width: auto; font-size: 15px; }
.t-okdot { width: 68px; height: 68px; border-radius: 34px; background: var(--ok); color: #fff; display: flex; align-items: center; justify-content: center; }
.t-greydot { width: 64px; height: 64px; border-radius: 32px; background: #E6EEF8; color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.t-tl { width: 14px; height: 14px; border-radius: 7px; margin-top: 3px; flex-shrink: 0; border: 2px solid #A9BCD4; }
.t-tl.done { background: var(--ok); border-color: var(--ok); }
.t-tl.next { border-color: var(--ink); }
.t-modal { position: fixed; inset: 0; z-index: 50; background: rgba(19,41,75,.45); display: flex; align-items: flex-end; justify-content: center; }
.t-sheet { background: #fff; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 12px; }
.t-notice { font-size: 14px; line-height: 1.55; white-space: pre-line; color: var(--ink-2); }
@media (min-width: 600px) { body { padding: 24px 0; } .t-app { min-height: calc(100vh - 48px); border-radius: 16px; overflow: clip; } .t-modal { align-items: center; } .t-sheet { border-radius: 18px; } }

.t-clear { align-self: flex-end; border: none; background: none; color: var(--blue); font-size: 13px; font-weight: 600; padding: 4px 2px; }
/* online teklif */
.t-box { background: #EEF4FA; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.t-item { border-bottom: 1px solid #EAF0F7; padding-bottom: 8px; display: flex; flex-direction: column; gap: 2px; }
.t-totals { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.t-totals div { display: flex; justify-content: space-between; }
.t-totals .grand { font-size: 18px; font-weight: 700; border-top: 2px solid var(--ink); padding-top: 6px; margin-top: 2px; }
.t-okcard { background: #E3F1E8; border: 1.5px solid var(--ok); color: var(--ok); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.t-okcard .t-small { color: var(--ink-2); }
.t-sigimg { max-width: 220px; background: #fff; border-radius: 8px; margin-top: 6px; }
.nowrap { white-space: nowrap; }
.sigpad { width: 100%; height: 180px; border: 2px dashed #A9BCD4; border-radius: 10px; background: #F8FBFF; touch-action: none; display: block; }
.t-chip.add { border-style: dashed; color: var(--blue); }
.t-addrow { display: flex; gap: 6px; align-items: center; width: 100%; }
.t-addrow .t-input { flex: 1; }
.t-btn.small { height: 46px; padding: 0 14px; font-size: 14px; width: auto; flex-shrink: 0; }

/* v0.5 teklif kararı: onay / değişiklik / red */
.t-decide { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 520px) { .t-decide { grid-template-columns: repeat(3, 1fr); } }
.t-choice { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 14px; border-radius: 12px; font-size: 15px; font-weight: 700; background: #fff; color: var(--ink); border: 1.5px solid var(--field-line); cursor: pointer; text-align: left; }
.t-choice .t-ci { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 15px; flex-shrink: 0; }
.t-choice.ok .t-ci { background: #E3F4EA; color: #1E7A45; }
.t-choice.mid .t-ci { background: #FFF3D6; color: #8A6100; }
.t-choice.no .t-ci { background: #FDE5E3; color: #B3261E; }
.t-choice.on { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink) inset; }
.t-choice.ok.on { background: #F2FAF5; } .t-choice.mid.on { background: #FFFAEE; } .t-choice.no.on { background: #FFF5F4; }

/* v0.11: etkileşim — yumuşak geçişler, dokununca hafif basılma */
.t-btn, .t-choice, .t-chip, .t-check, .t-card, .t-link { transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s, transform .08s; }
.t-btn:active, .t-choice:active, .t-chip:active { transform: scale(.98); }
@media (hover: hover) { .t-btn:hover { box-shadow: 0 4px 14px rgba(19,41,75,.12); } .t-choice:hover, .t-chip:hover { border-color: var(--blue); } }
.t-head { border-bottom: 3px solid var(--accent); }
@keyframes t-fade { from { opacity: 0; } to { opacity: 1; } }
.t-main { animation: t-fade .25s ease-out; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.t-fold > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 28px; }
.t-fold > summary::-webkit-details-marker { display: none; }
.t-fold > summary::after { content: '›'; font-size: 20px; line-height: 1; color: var(--blue); transform: rotate(90deg); transition: transform .2s; flex-shrink: 0; }
.t-fold[open] > summary::after { transform: rotate(-90deg); }
.t-fold > summary > :first-child { flex: 1; }
.t-ol { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--ink-2); }

/* v0.15: yazılı onay ("Onaylıyorum.") ve onaydan önce kopya koruması */
.t-onaytext { background: var(--ground, #F3F7FC); border: 1px solid var(--line, #DCE5F0); border-left: 4px solid var(--accent, #FFC21A); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.55; }
.t-onayinput { font-size: 18px; font-weight: 600; letter-spacing: .01em; }
.t-onayinput.ok { border-color: #2E7D4F; box-shadow: 0 0 0 3px rgba(46,125,79,.15); }
.t-approved { display: inline-block; margin-top: 4px; font-weight: 700; font-size: 16px; }
.t-lock { text-align: center; color: var(--muted, #5B6B80); background: var(--ground, #F3F7FC); border: 1px dashed var(--line, #DCE5F0); border-radius: 10px; padding: 10px 12px; }
.t-copynote { margin: 4px 0 0; font-size: 11px; line-height: 1.5; color: var(--muted, #5B6B80); text-align: center; }
.t-protect .t-main { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.t-protect .t-main input, .t-protect .t-main textarea { -webkit-user-select: text; user-select: text; }
.t-protect img { -webkit-user-drag: none; pointer-events: none; }
@media print {
  .t-protect .t-main, .t-protect .t-head { display: none !important; }
  .t-protect::after { content: "Bu belge onaylanmadan yazdırılamaz."; display: block; padding: 40px; font: 16px sans-serif; text-align: center; }
}
