/* Felvini Servis Portalı — arayüz
   Marka: logo siyahı #231F20 + beyaz. Kırmızı yalnızca sorun/uyarı içindir. */

@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url(/fonts/onest-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 400; font-display: swap; src: url(/fonts/onest-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url(/fonts/onest-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 500; font-display: swap; src: url(/fonts/onest-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url(/fonts/onest-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 600; font-display: swap; src: url(/fonts/onest-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url(/fonts/onest-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-weight: 700; font-display: swap; src: url(/fonts/onest-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #231F20;          /* Felvini logo siyahı */
  --ink-2: #4A4647;
  --muted: #6E6A6B;
  --line: #DEDCDB;
  --line-2: #EBE9E8;
  --ground: #F0F0EE;       /* çelik gri zemin */
  --paper: #FFFFFF;
  --done: #157347;  --done-bg: #E5F2EA;
  --plan: #1D5FA6;  --plan-bg: #E6EEF8;
  --wait: #8A5A00;  --wait-bg: #FBF0D9;
  --bad: #C42B1C;   --bad-bg: #FBE7E4;
  --r-s: 4px; --r: 6px; --r-l: 10px;
  --side: 236px;
  --tab: 64px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font); font-size: 15px; line-height: 1.45; color: var(--ink);
  background: var(--ground); min-height: 100vh; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Kabuk ---------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side {
  background: var(--paper); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; padding: 22px 14px 16px; overflow-y: auto;
}
.side .logo { display: block; color: var(--ink); padding: 0 10px 4px; }
.side .logo svg { width: 132px; height: auto; display: block; }
.side .product { font-size: 12.5px; color: var(--muted); padding: 2px 10px 18px; }
.nav-group { margin-top: 14px; }
.nav-group > span { display: block; font-size: 12px; color: var(--muted); padding: 0 10px 6px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: var(--r);
  text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px;
}
.nav a:hover { background: var(--ground); color: var(--ink); }
.nav a.on { background: var(--ink); color: #fff; }
.nav a .n { margin-left: auto; font-size: 12px; font-weight: 600; background: var(--bad); color: #fff; border-radius: 10px; padding: 1px 7px; }
.nav a.on .n { background: #fff; color: var(--ink); }
.side .me { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ground); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who small { color: var(--muted); font-size: 12px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: var(--ground); position: sticky; top: 0; z-index: 30; }
.content { padding: 8px 28px 48px; max-width: 1180px; width: 100%; }

/* Mobil üst çubuk + alt sekmeler */
.mtop { display: none; }
.tabbar { display: none; }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { display: none; }
  .mtop {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30;
  }
  .mtop .logo svg { width: 112px; height: auto; display: block; }
  .content { padding: 16px 16px calc(var(--tab) + 32px); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--paper); border-top: 1px solid var(--line); height: calc(var(--tab) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11.5px; font-weight: 500; color: var(--muted); text-decoration: none; position: relative; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; background: var(--ink); border-radius: 0 0 3px 3px; }
  .tabbar a .n { position: absolute; top: 7px; left: 54%; font-size: 10.5px; font-weight: 700; background: var(--bad); color: #fff; border-radius: 9px; padding: 0 5px; }
}

/* ---------- Arama ---------- */
.search { position: relative; flex: 1; max-width: 560px; }
.search input {
  width: 100%; height: 44px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--r);
  padding: 0 14px 0 42px; font-size: 14.5px;
}
.search > svg { position: absolute; left: 13px; top: 12px; color: var(--muted); }
.search .results {
  position: absolute; top: 50px; left: 0; right: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l);
  box-shadow: 0 12px 32px rgba(35,31,32,.14); overflow: hidden; z-index: 50; max-height: 70vh; overflow-y: auto;
}
.search .results a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.search .results a:hover, .search .results a.sel { background: var(--ground); }
.search .results .t { font-size: 12px; color: var(--muted); width: 58px; flex: none; }
.search .results b { font-weight: 600; font-size: 14px; }
.search .results small { display: block; color: var(--muted); font-size: 12.5px; }
.search .results .none { padding: 14px; color: var(--muted); font-size: 14px; }

/* ---------- Tipografi ---------- */
h1 { font-size: 26px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.sub { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 12px 0 20px; }
.page-head .back { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 8px; }
.page-head .back:hover { color: var(--ink); }
@media (max-width: 860px) { h1 { font-size: 22px; } .page-head { margin-top: 0; } }

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: var(--r); border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 600; font-size: 14.5px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, transform .06s;
}
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn.line { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn.line:hover { border-color: var(--ink); background: var(--paper); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); padding: 0 10px; }
.btn.ghost:hover { background: rgba(35,31,32,.06); }
.btn.bad { background: var(--paper); color: var(--bad); border-color: #EBC2BC; }
.btn.bad:hover { border-color: var(--bad); }
.btn.big { min-height: 56px; font-size: 16.5px; padding: 0 22px; border-radius: var(--r-l); }
.btn.full { width: 100%; }
.btn.sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.btn[disabled], .btn.busy { opacity: .55; pointer-events: none; }
.btn.busy::after { content: ''; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ---------- Yüzeyler ---------- */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; margin-bottom: 16px; }
.panel.flush { padding: 0; overflow: hidden; }
.panel > h2 { display: flex; align-items: center; gap: 8px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.panel-head h2 { margin: 0; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 980px) { .cols, .cols-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .panel { padding: 16px; } .panel-head { padding: 14px 16px; } }

/* ---------- Ana sayfa kısayolları ---------- */
.quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 22px; }
.quick button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding: 16px; min-height: 104px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); cursor: pointer; text-align: left; font-weight: 600; font-size: 14.5px;
}
.quick button:hover { border-color: var(--ink); }
.quick button svg.i { width: 24px; height: 24px; }
.quick button.main-q { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 980px) { .quick { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .quick { grid-template-columns: 1fr 1fr; } .quick button { min-height: 86px; gap: 10px; } .quick button.main-q { grid-column: span 2; flex-direction: row; align-items: center; min-height: 60px; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--paper); margin-bottom: 16px; }
.stats > div { padding: 14px 18px; border-right: 1px solid var(--line-2); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stats span { font-size: 13px; color: var(--muted); }
.stats a { text-decoration: none; display: block; }
@media (max-width: 720px) { .stats { grid-template-columns: 1fr 1fr; } .stats > div:nth-child(2) { border-right: 0; } .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-2); } }

/* ---------- Listeler ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.item {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line-2);
  text-decoration: none; color: inherit; background: var(--paper); cursor: pointer; width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0;
}
.list > :last-child .item, .list > .item:last-child { border-bottom: 0; }
.item:hover { background: #FAFAF9; }
.item .body { flex: 1; min-width: 0; }
.item .title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .meta { display: block; color: var(--muted); font-size: 13.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .side-r { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; text-align: right; }
.item .when { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.item .chev { color: var(--line); }
@media (max-width: 860px) { .item { padding: 14px 16px; } }

.group-label { display: flex; align-items: center; gap: 8px; padding: 14px 20px 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--paper); }
.group-label .count { background: var(--ground); border-radius: 10px; padding: 0 8px; font-size: 12px; }

/* Durum etiketi */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; background: var(--ground); color: var(--ink-2); }
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.done { background: var(--done-bg); color: var(--done); }
.pill.plan { background: var(--plan-bg); color: var(--plan); }
.pill.wait { background: var(--wait-bg); color: var(--wait); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.ink { background: var(--ink); color: #fff; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-s); background: var(--ground); color: var(--ink-2); }
.tag.urgent { background: var(--bad); color: #fff; }

/* Filtre sekmeleri */
.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; scrollbar-width: none; }
.filters button {
  flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 20px; padding: 7px 14px; font-weight: 500; font-size: 14px; cursor: pointer;
}
.filters button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.filters button .c { opacity: .6; margin-left: 4px; }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .search { max-width: 360px; }
.toolbar .search input { height: 40px; }
.toolbar .search > svg { top: 10px; }

/* ---------- İlerleme çubuğu (işin imza öğesi) ---------- */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.rail .seg { height: 8px; background: var(--line); border-radius: 2px; }
.rail .seg.on { background: var(--ink); }
.rail .seg.now { background: repeating-linear-gradient(90deg, var(--ink) 0 6px, var(--ink-2) 6px 8px); }
.rail.bad .seg.on { background: var(--bad); }
.rail-labels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.rail-labels span.on { color: var(--ink); font-weight: 600; }
.mini-rail { display: grid; grid-template-columns: repeat(4, 10px); gap: 2px; }
.mini-rail i { height: 4px; background: var(--line); border-radius: 1px; }
.mini-rail i.on { background: var(--ink); }
.mini-rail.bad i.on { background: var(--bad); }

.job-hero { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-l); padding: 20px; margin-bottom: 16px; }
.job-hero .next { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.job-hero .next .btn.big { flex: 1 1 280px; }
.job-hero .hint { font-size: 14px; color: var(--ink-2); margin-top: 14px; padding: 12px 14px; background: var(--ground); border-radius: var(--r); }
.job-hero .hint.bad { background: var(--bad-bg); color: var(--bad); }
.job-hero .hint.done { background: var(--done-bg); color: var(--done); }

@media (max-width: 860px) {
  .sticky-action { position: fixed; left: 0; right: 0; bottom: calc(var(--tab) + env(safe-area-inset-bottom)); padding: 10px 16px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); z-index: 35; backdrop-filter: blur(6px); }
  .has-sticky .content { padding-bottom: calc(var(--tab) + 110px); }
  .job-hero .next > .btn { flex: 1 1 calc(50% - 5px); }
}

/* İletişim butonları */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.contact a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; font-size: 13px; font-weight: 500; }
.contact a:hover { border-color: var(--ink); }
.contact a.off { opacity: .4; pointer-events: none; }

/* Bilgi tablosu */
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.kv div { min-width: 0; }
.kv dt { font-size: 12.5px; color: var(--muted); }
.kv dd { margin: 2px 0 0; font-weight: 500; font-size: 14.5px; overflow-wrap: anywhere; }
.kv .wide { grid-column: 1 / -1; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr 1fr; gap: 12px; } }

/* Zaman çizelgesi */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 14px 20px; font-size: 14px; }
.timeline li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.timeline li::after { content: ''; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t { color: var(--muted); font-size: 12.5px; }

/* Foto ızgarası */
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.photos a { aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--ground); display: block; }
.photos img { width: 100%; height: 100%; object-fit: cover; }

/* Boş durum */
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg.i { width: 36px; height: 36px; color: var(--line); margin-bottom: 8px; }
.empty b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

/* ---------- Formlar ---------- */
.f { margin-bottom: 14px; }
.f > label, .f > .lbl { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.f > label .opt { font-weight: 400; color: var(--muted); }
.f .help { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.inp, .f input:not([type=checkbox]):not([type=radio]):not([type=file]), .f select, .f textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  padding: 10px 12px; font-size: 16px; /* 16px: iOS'ta otomatik yakınlaştırmayı önler */
}
.f textarea { min-height: 88px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(35,31,32,.1); }
.f.err input, .f.err select, .f.err textarea { border-color: var(--bad); }
.f .err-msg { color: var(--bad); font-size: 13px; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 12px; }
@media (max-width: 480px) { .row3 { grid-template-columns: 1fr 1fr; } }

details.more { border-top: 1px solid var(--line-2); margin: 6px 0 14px; }
details.more > summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+'; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 4px; display: grid; place-items: center; font-weight: 500; }
details.more[open] > summary::before { content: '–'; }

/* Segment seçici */
.seg-ctl { display: flex; border: 1px solid var(--line); border-radius: var(--r); padding: 3px; gap: 3px; background: var(--paper); }
.seg-ctl label { flex: 1; position: relative; }
.seg-ctl input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg-ctl span { display: flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 4px; font-weight: 500; font-size: 14.5px; text-align: center; padding: 0 8px; }
.seg-ctl input:checked + span { background: var(--ink); color: #fff; }
.seg-ctl input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Seçim çipleri */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 20px; font-size: 14px; font-weight: 500; background: var(--paper); }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Aç/kapa anahtarı */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.switch .txt b { display: block; font-size: 14.5px; font-weight: 600; }
.switch .txt small { color: var(--muted); font-size: 13px; }
.switch input { appearance: none; -webkit-appearance: none; width: 46px; height: 28px; border-radius: 14px; background: var(--line); position: relative; flex: none; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked { background: var(--ink); }
.switch input:checked::after { transform: translateX(18px); }

/* Dosya / foto yükleme */
.drop { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px dashed var(--line); border-radius: var(--r); cursor: pointer; background: var(--paper); position: relative; }
.drop:hover { border-color: var(--ink); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .ic { width: 42px; height: 42px; border-radius: var(--r); background: var(--ground); display: grid; place-items: center; flex: none; }
.drop b { display: block; font-size: 14.5px; font-weight: 600; }
.drop small { color: var(--muted); font-size: 13px; }
.drop.has { border-style: solid; border-color: var(--done); }
.drop.has .ic { background: var(--done-bg); color: var(--done); }

/* ---------- Kontrol listesi (sahada) ---------- */
.steps-nav { display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.steps-nav button { flex: 1 0 auto; border: 0; background: transparent; padding: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); border-bottom: 3px solid var(--line); cursor: pointer; text-align: left; }
.steps-nav button.on { color: var(--ink); font-weight: 600; border-color: var(--ink); }
.steps-nav button.ok { color: var(--done); border-color: var(--done); }
.check-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.check-head h3 { margin: 0; font-size: 17px; }
.yn-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.yn-row > span { font-size: 15px; }
.yn-row.warn > span { color: var(--bad); font-weight: 500; }
.yn { display: flex; gap: 4px; flex: none; }
.yn label { position: relative; }
.yn input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.yn span { display: grid; place-items: center; width: 64px; height: 40px; border: 1px solid var(--line); border-radius: var(--r); font-weight: 600; font-size: 14px; background: var(--paper); }
.yn input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.yn input.no-good:checked + span { background: var(--bad); border-color: var(--bad); }
.yn input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.all-ok { border: 1px solid var(--done); color: var(--done); background: var(--done-bg); }
.all-ok:hover { background: var(--done-bg); border-color: var(--done); }

.sig-wrap { position: relative; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 6px; }
.sig-wrap canvas { width: 100%; height: 150px; display: block; touch-action: none; }
.sig-wrap .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--line); font-size: 15px; pointer-events: none; }
.sig-wrap.signed .ph { display: none; }
.sig-wrap.signed { border-color: var(--ink); }
.sig-line { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* ---------- Çekmece / alt sayfa ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(35,31,32,.42); z-index: 100; animation: fade .15s ease-out; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--paper); z-index: 101;
  display: flex; flex-direction: column; animation: slide-in .2s cubic-bezier(.2,.8,.2,1); box-shadow: -12px 0 40px rgba(35,31,32,.18);
}
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.sheet-head h2 { margin: 0; font-size: 18px; }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px; overscroll-behavior: contain; }
.sheet-foot { padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); display: flex; gap: 8px; }
.sheet-foot .btn { flex: 1; }
.sheet-foot .btn.line { flex: 0 0 auto; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes slide-up { from { transform: translateY(40px); opacity: 0; } }
@media (max-width: 860px) {
  .sheet { top: auto; left: 0; width: 100%; max-height: 94vh; border-radius: 14px 14px 0 0; animation-name: slide-up; box-shadow: 0 -10px 40px rgba(35,31,32,.2); }
  .sheet::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 8px auto 0; }
  .sheet-head { padding: 10px 16px 12px; }
  .sheet-body { padding: 16px; }
  .sheet-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
}

/* Bildirim */
.toasts { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-l); font-size: 14.5px; font-weight: 500; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; gap: 10px; align-items: center; max-width: 92vw; animation: slide-up .2s; pointer-events: auto; }
.toast.bad { background: var(--bad); }

.notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin-bottom: 14px; background: var(--ground); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.done { background: var(--done-bg); color: var(--done); }
.notice.wait { background: var(--wait-bg); color: var(--wait); }
.notice svg.i { margin-top: 1px; }

/* Seri no sorgu sonucu */
.lookup { padding: 12px 14px; border-radius: var(--r); font-size: 14px; margin: -6px 0 14px; }
.lookup.found { background: var(--done-bg); color: var(--done); }
.lookup.notfound { background: var(--ground); color: var(--ink-2); }
.lookup b { color: var(--ink); }

/* Harita kutusu */
.map-box { height: 260px; border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; background: var(--ground); }
.map-box.tall { height: 420px; }
.loc-status { font-size: 13px; color: var(--muted); margin-top: 6px; display: flex; gap: 6px; align-items: center; }
.loc-status.ok { color: var(--done); }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login .brand-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login .brand-side .logo svg { width: 180px; color: #fff; }
.login .brand-side .mark-bg { position: absolute; right: -34%; top: 50%; transform: translateY(-58%); width: 110%; color: rgba(255,255,255,.05); pointer-events: none; }
.login .brand-side .mark-bg svg { width: 100%; height: auto; display: block; }
.login .brand-side h1 { font-size: 40px; max-width: 12ch; position: relative; }
.login .brand-side p { color: rgba(255,255,255,.66); max-width: 38ch; position: relative; margin: 14px 0 0; }
.login .form-side { display: grid; place-items: center; padding: 32px 20px; background: var(--paper); }
.login form { width: 100%; max-width: 360px; }
.login form h2 { font-size: 24px; margin-bottom: 4px; }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .login .brand-side { padding: 28px 20px 30px; min-height: 0; }
  .login .brand-side h1 { font-size: 26px; margin-top: 30px; }
  .login .brand-side .logo svg { width: 132px; }
  .login .form-side { place-items: start center; padding-top: 28px; }
}

/* ---------- Müşteri sayfası ---------- */
.public { max-width: 560px; margin: 0 auto; padding: 0 0 40px; background: var(--paper); min-height: 100vh; }
.public-top { background: var(--ink); color: #fff; padding: 22px 20px 26px; }
.public-top .logo svg { width: 120px; }
.public-top h1 { font-size: 24px; margin-top: 22px; }
.public-top p { color: rgba(255,255,255,.7); margin: 6px 0 0; font-size: 15px; }
.public section { padding: 20px; border-bottom: 1px solid var(--line-2); }
.req { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.req:last-child { border-bottom: 0; }
.req .ic { width: 40px; height: 40px; border-radius: var(--r); background: var(--ground); display: grid; place-items: center; flex: none; }
.req b { display: block; font-size: 15px; }
.req span { color: var(--ink-2); font-size: 14px; }

.spinner { display: grid; place-items: center; padding: 60px; color: var(--muted); }
.spinner::before { content: ''; width: 26px; height: 26px; border: 2.5px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line-2); }
.table td { padding: 12px 20px; border-bottom: 1px solid var(--line-2); }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 860px) { .table th, .table td { padding: 10px 16px; } }

.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--ground); border-radius: var(--r); padding: 12px; overflow-x: auto; white-space: pre-wrap; word-break: break-all; border: 1px solid var(--line); }
.hide-m { }
@media (max-width: 860px) { .hide-m { display: none !important; } }
.show-m { display: none !important; }
@media (max-width: 860px) { .show-m { display: inherit !important; } }

/* Servis secici */
.sp-list { border: 1px solid var(--line); border-radius: var(--r); max-height: 320px; overflow-y: auto; background: var(--paper); }
.sp-group { position: sticky; top: 0; z-index: 1; background: var(--ground); font-size: 12.5px; font-weight: 600; color: var(--ink-2); padding: 7px 12px; }
.sp-group.warn { background: var(--wait-bg); color: var(--wait); }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; }
.sp-item:last-child { border-bottom: 0; }
.sp-item:hover { background: #FAFAF9; }
.sp-item input { position: absolute; opacity: 0; pointer-events: none; }
.sp-item .sp-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; flex: none; color: transparent; }
.sp-item .sp-dot svg.i { width: 14px; height: 14px; stroke-width: 2.6; }
.sp-item.on { background: #F6F6F5; }
.sp-item.on .sp-dot { background: var(--ink); border-color: var(--ink); color: #fff; }
.sp-item:focus-within { outline: 2px solid var(--ink); outline-offset: -2px; }
.sp-body { flex: 1; min-width: 0; }
.sp-body b { display: block; font-size: 14.5px; font-weight: 600; }
.sp-body small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--muted); flex: none; }
.sp-empty { padding: 16px 12px; color: var(--muted); font-size: 14px; }

/* felvini.com baglantisi */
.secret { position: relative; }
.f .secret input, .secret input[type] { padding-right: 112px; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .02em; }
.secret [data-eye] { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); background: var(--paper); }
.secret [data-eye]:hover { background: #F4F3F2; }
@media (max-width: 720px) { .woo-head { flex-direction: column; align-items: flex-start; } }
.howto { margin: 0 0 16px; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.howto li { margin-bottom: 8px; }
.thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: contain; background: #F4F3F2; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; color: var(--muted); }
.thumb svg { width: 20px; height: 20px; }
.tag.site { background: #EAF3EC; color: #2F6B3E; }
.woo-row { cursor: pointer; }
.woo-row > input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.panel-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--line-2); position: sticky; bottom: 0; background: var(--paper); }
@media (max-width: 720px) { .panel-foot { bottom: calc(var(--tab) + env(safe-area-inset-bottom)); } }
