/* BDB Saha · arayüz stilleri */
/* Yazı tipi: Work Sans (SIL OFL 1.1) — sunucumuzdan yüklenir, dış servise istek gitmez. Lisans: fonts/WorkSans-OFL.txt */
@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; }
:root {
  /* BDB renkleri: lacivert + sarı + beyaz (gözü yormayan açık zemin) */
  --ink: #13294B;
  --ink-2: #2C4466;
  --ink-3: #1D3E6E;
  --muted: #56677F;
  --faint: #7D8DA3;
  --ground: #F3F7FC;
  --card: #FFFFFF;
  --line: #DCE5F0;
  --line-2: #EDF2F8;
  --field: #FAFCFF;
  --field-line: #C6D4E5;
  --accent: #FFC21A;
  --accent-soft: #FFF5D1;
  --blue: #1F62B4;
  --blue-soft: #E5EFFB;
  --blue-line: #B8D0EE;
  --on-dark-2: #B9CAE0;
  --danger: #B3261E;
  --ok: #1E6B45;
  --radius: 14px;
  --shadow-1: 0 1px 2px rgba(19,41,75,.05), 0 4px 14px rgba(19,41,75,.06);
  --shadow-2: 0 10px 28px rgba(19,41,75,.14);
  --ease: cubic-bezier(.2,.7,.2,1);
  --display: 'BDB Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --body: 'BDB Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--ground); 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; }
a { color: var(--blue); }
h1, h2, h3 { margin: 0; }
#root { min-height: 100%; }

/* ---------- yerleşim */
.app { display: flex; min-height: 100vh; min-height: 100dvh; }
.sidebar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; padding: calc(12px + var(--safe-t)) 16px 12px; display: flex; align-items: center; gap: 10px; }
.topbar .title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar h1 { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .sub { font-size: 13px; color: var(--on-dark-2); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: none; background: transparent; color: inherit; border-radius: 10px; flex-shrink: 0; }
.icon-btn:hover { background: rgba(127,127,127,.12); }
.content { flex: 1; padding: 16px 16px calc(100px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1100px; margin: 0 auto; }
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); display: flex; padding-bottom: var(--safe-b); }
.bottomnav a { flex: 1; min-height: 62px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--faint); text-decoration: none; font-size: 12px; font-weight: 600; }
.bottomnav a.on { color: var(--ink); }
.fab { position: fixed; right: 16px; bottom: calc(78px + var(--safe-b)); z-index: 25; height: 52px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--ink); border: none; border-radius: 26px; font-weight: 600; font-size: 16px; box-shadow: 0 6px 16px rgba(19,41,75,.25); text-decoration: none; }
.actionbar { position: sticky; bottom: 0; z-index: 15; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + var(--safe-b)); display: flex; gap: 8px; margin: 0 -16px calc(-100px - var(--safe-b)); }

@media (min-width: 960px) {
  .sidebar { display: flex; flex-direction: column; gap: 4px; width: 232px; flex-shrink: 0; background: var(--ink); color: #fff; padding: 22px 14px; position: sticky; top: 0; height: 100vh; }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .08em; }
  .sidebar a { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 10px; color: var(--on-dark-2); text-decoration: none; font-size: 14px; font-weight: 500; }
  .sidebar a.on { background: var(--ink-3); color: #fff; font-weight: 600; }
  .sidebar .spacer { flex: 1; }
  .sidebar .me { display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--ink-3); margin-top: 8px; font-size: 13px; }
  .bottomnav { display: none; }
  .topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); padding: 14px 32px; }
  .topbar .sub { color: var(--muted); }
  .topbar .role-hide-desktop { display: none; }
  .content { padding: 24px 32px 48px; }
  .fab { position: static; box-shadow: none; height: 42px; font-size: 14px; border-radius: 10px; }
  .fab-wrap { display: flex; justify-content: flex-end; }
  .actionbar { position: static; margin: 8px 0 0; padding: 0; border: none; background: transparent; justify-content: flex-end; }
  .actionbar .btn { width: auto; min-width: 180px; }
  .grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
  .grid-cards, .stack.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}
@media (min-width: 1300px) { .grid-cards, .stack.grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- bileşenler */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.card.pad-s { padding: 12px 14px; }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.section-title { font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.strong { font-weight: 600; }
.display { font-family: var(--display); font-weight: 700; }
.big { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.1; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; font-size: 14px; }
.list-btn { display: flex; gap: 14px; text-align: left; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; color: inherit; text-decoration: none; }
.list-btn:hover { border-color: #A9BCD4; }
.list-btn .time { width: 52px; flex-shrink: 0; font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.1; }

.btn { height: 48px; padding: 0 18px; border-radius: 12px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { border: 1px solid var(--field-line); background: var(--ground); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.dashed { border: 2px dashed #A9BCD4; background: #fff; }
.btn.small { height: 38px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.st-waiting { background: #E6EEF8; color: #1E3A5F; }
.st-onroad { background: var(--blue-soft); color: var(--blue); }
.st-onsite { background: #FBE3A1; color: #5E4200; }
.st-parts { background: #F6D2BC; color: #7F3208; }
.st-done { background: #1E5A3A; color: #fff; }
.st-cancelled { background: #EAF0F7; color: #5B5E66; text-decoration: line-through; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; background: var(--ink); color: #fff; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 38px; padding: 0 14px; border-radius: 19px; font-size: 14px; font-weight: 600; background: #fff; color: var(--ink); border: 1px solid var(--field-line); white-space: nowrap; }
.chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg { display: flex; background: #E3ECF6; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { flex: 1; min-width: 0; white-space: nowrap; padding: 0 4px; height: 40px; border: none; border-radius: 9px; font-size: 13px; font-weight: 600; background: transparent; color: var(--ink-2); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(19,41,75,.15); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .field > .label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; height: 48px; border: 1px solid var(--field-line); border-radius: 10px; padding: 0 12px; font-size: 16px; background: #fff; }
.textarea { height: auto; min-height: 96px; padding: 12px; line-height: 1.4; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.input.sm { height: 40px; font-size: 15px; background: var(--field); }
.hint { font-size: 12px; color: var(--muted); }
.err { font-size: 13px; font-weight: 600; color: var(--danger); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.stat .v { font-family: var(--display); font-weight: 700; font-size: 22px; }
.stat .l { font-size: 12px; color: var(--muted); }

.line-item { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.line-item:last-child { border-bottom: none; }

.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 960px) { .photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.photo { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #DCE6F2; border: none; padding: 0; display: flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 12px; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo.add { background: #fff; border: 2px dashed #A9BCD4; font-size: 14px; font-weight: 600; flex-direction: column; gap: 4px; }

/* ---------- alt pencere (sheet) */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(19,41,75,.45); display: flex; flex-direction: column; justify-content: flex-end; }
.sheet { background: #fff; border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); display: flex; flex-direction: column; gap: 12px; max-height: 88vh; max-height: 88dvh; }
.sheet .sheet-body { overflow-y: auto; min-height: 0; display: flex; flex-direction: column; }
.sheet h2 { font-family: var(--display); font-weight: 700; font-size: 22px; }
@media (min-width: 960px) {
  .overlay { justify-content: center; align-items: center; }
  .sheet { width: 560px; border-radius: 18px; max-height: 80vh; }
}
.viewer { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.92); display: flex; flex-direction: column; }
.viewer img { flex: 1; min-height: 0; object-fit: contain; width: 100%; }
.viewer .bar { display: flex; gap: 8px; padding: 12px 16px calc(12px + var(--safe-b)); justify-content: space-between; }

.toast { position: fixed; left: 16px; right: 16px; bottom: calc(92px + var(--safe-b)); z-index: 70; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 14px; box-shadow: 0 8px 20px rgba(19,41,75,.3); max-width: 520px; margin: 0 auto; }
@media (min-width: 960px) { .toast { left: auto; right: 32px; bottom: 32px; } }

.banner { background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.banner.warn { background: #FBE3A1; color: #5E4200; border-color: #E5C25A; }
.syncdot { width: 8px; height: 8px; border-radius: 4px; display: inline-block; }
.sync-chip { height: 32px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 16px; font-size: 12px; font-weight: 600; border: 1px solid #3B5C8A; background: #1A3660; color: #fff; }
@media (min-width: 960px) { .sync-chip { background: #fff; color: var(--ink); border-color: var(--field-line); } }

/* ---------- servis formu (A4) */
.doc-wrap { display: flex; justify-content: center; }
.doc { background: #fff; width: 100%; max-width: 794px; padding: 28px; border: 1px solid var(--line); box-shadow: 0 4px 16px rgba(19,41,75,.08); font-size: 13px; line-height: 1.45; display: flex; flex-direction: column; gap: 16px; }
.doc .head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; }
.doc .doc-meta { text-align: right; flex-shrink: 0; }
.doc .head > .row { min-width: 0; flex: 1 1 260px; }
.doc .logo { width: 56px; height: 56px; border-radius: 8px; object-fit: contain; }
.doc .logo-ph { width: 56px; height: 56px; border-radius: 8px; background: var(--ink); display: flex; align-items: center; justify-content: center; }
.doc .firm { font-family: var(--display); font-weight: 700; font-size: 20px; }
.doc .k { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th { text-align: left; background: var(--ink); color: #fff; font-weight: 600; padding: 7px 10px; font-size: 12px; }
.doc td { padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc .num { text-align: right; white-space: nowrap; }
.doc .boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.doc .box { background: var(--ground); border-radius: 8px; padding: 12px 14px; }
.doc .sig { height: 120px; border: 1px solid var(--field-line); border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--field); }
.doc .sig img { max-height: 110px; max-width: 100%; }
.doc .doc-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.doc .doc-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 4px; }
@media (max-width: 600px) { .doc .doc-meta { text-align: left; } .doc { padding: 16px; font-size: 12px; } .doc .boxes { grid-template-columns: 1fr; } .doc .firm { font-size: 17px; } }
.sigpad { width: 100%; height: 180px; border: 2px dashed #A9BCD4; border-radius: 10px; background: var(--field); touch-action: none; display: block; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .no-print, .sidebar, .bottomnav, .topbar, .actionbar, .fab, .toast { display: none !important; }
  .content { padding: 0; max-width: none; }
  .doc { border: none; box-shadow: none; padding: 0; max-width: none; font-size: 11pt; }
  .doc th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc .box, .doc .logo-ph, .pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.row > .field { flex: 1; min-width: 0; }

/* ================= v0.2 ================= */
.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; }
.link-plain { color: inherit; text-decoration: none; }
.pos { color: var(--ok); }
.neg { color: var(--danger); }
.pos-l { color: #7FE0A6; }
.neg-l { color: #FF9E87; }
.cb { width: 20px; height: 20px; margin: 0; flex-shrink: 0; accent-color: var(--ink); }
.bg-white { background: #fff !important; }
.mobile-only { }
.hide-mobile { }
@media (max-width: 959px) { .hide-mobile { display: none !important; } }
@media (min-width: 960px) { .mobile-only { display: none !important; } }
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 20px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 16px; }
.avatar.lg { width: 52px; height: 52px; border-radius: 26px; font-size: 20px; background: var(--accent); color: var(--ink); }
.sidebar .avatar { width: 36px; height: 36px; background: var(--accent); color: var(--ink); font-size: 14px; }
.sidebar .me { color: #fff; text-decoration: none; }
.menu-ico, .cat-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--ground); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.side-search { display: flex; align-items: center; gap: 8px; background: var(--ink-3); border-radius: 10px; padding: 0 10px; height: 38px; margin: 0 0 10px; color: var(--on-dark-2); }
.side-search input { flex: 1; min-width: 0; background: transparent; border: none; outline: none; color: #fff; font-size: 13px; }
.side-search input::placeholder { color: #8FA3BF; }

.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }
.btn.danger-fill { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.small-mobile { padding: 0 14px; }
@media (max-width: 420px) { .hide-xs { display: none; } }
.update-banner { position: fixed; top: calc(8px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 8px 8px 14px; display: flex; align-items: center; gap: 12px; font-size: 14px; box-shadow: 0 8px 20px rgba(19,41,75,.3); }
.banner.ok { background: #E3F1E8; color: var(--ok); border-color: #9CCBAE; }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 28px 16px; }
.empty-ico { width: 52px; height: 52px; border-radius: 26px; background: var(--ground); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.skel { height: 86px; border-radius: var(--radius); background: linear-gradient(90deg, #E8EFF7 25%, #F4F8FC 37%, #E8EFF7 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; }
@keyframes skel { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

.stat { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.stat.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.chip.sm { height: 34px; font-size: 13px; padding: 0 12px; }
.chip-select { height: 34px; width: auto; padding: 0 10px; font-size: 13px; border-radius: 17px; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.status-grid .btn:last-child:nth-child(odd) { grid-column: span 2; }
.btn.is-on { border-width: 2px; }
.money-row { display: flex; gap: 10px; flex-wrap: wrap; }
.money-row > div { flex: 1; min-width: 110px; background: var(--ground); border-radius: 10px; padding: 8px 12px; display: flex; flex-direction: column; gap: 2px; }
.card.money-row > div { background: var(--ground); }
.money-row strong { font-family: var(--display); font-size: 20px; }
.big-input { font-size: 22px; font-weight: 600; height: 54px; }
.mini { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--ground); color: var(--ink-2); white-space: nowrap; }
.mini.ok { background: #E3F1E8; color: var(--ok); }
.mini.info { background: var(--blue-soft); color: var(--blue); }
.tag.accent { background: var(--accent); color: var(--ink); }
fieldset.plain { border: none; margin: 0; padding: 0; min-width: 0; }
.search-row { padding: 0 8px 0 12px; height: 50px; gap: 8px; }
.search-row input { flex: 1; min-width: 0; border: none; outline: none; height: 46px; font-size: 16px; background: transparent; }

/* finans */
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi strong { font-family: var(--display); font-weight: 700; font-size: 24px; line-height: 1.15; overflow-wrap: anywhere; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted); }
.kpi.wide { grid-column: span 2; }
.kpi.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi.dark span, .kpi.dark em { color: var(--on-dark-2); }
.kpi.dark strong { font-size: 32px; }
@media (min-width: 960px) { .kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .kpi.wide { grid-column: auto; } }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; flex-direction: column; gap: 4px; }
.bar-track { height: 8px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--ink); border-radius: 4px; }

/* arşiv */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 960px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.cat-tile { min-height: 96px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 4px; padding: 12px 16px; border-radius: var(--radius); text-align: left; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.cat-tile.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 6px; }
.kpi-row div { display: flex; flex-direction: column; }
.kpi-row strong { font-family: var(--display); font-size: 20px; }
.kpi-row span { font-size: 11px; color: var(--on-dark-2); }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: flex; gap: 12px; color: inherit; text-decoration: none; }
.tl-date { width: 52px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; padding-top: 12px; }
.tl-date .display { font-size: 18px; }
.meas-inline { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--ink-2); }

/* teklif */
.content.wide { max-width: 1400px; }
.quote-layout { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 960px) {
  .quote-layout { display: grid; grid-template-columns: minmax(380px, 1fr) minmax(0, 1.15fr); align-items: start; }
  .quote-preview { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; }
}
.item-grid { display: grid; grid-template-columns: 62px 72px minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.item-grid .input { padding: 0 8px; }
.line-total { text-align: right; font-weight: 600; font-size: 14px; }
.quote-doc { font-size: 12px; }
.quote-doc .totals { align-self: flex-end; width: min(280px, 100%); display: flex; flex-direction: column; gap: 4px; }
.quote-doc .totals > div { display: flex; justify-content: space-between; }
.quote-doc .totals .grand { font-weight: 700; font-size: 15px; border-top: 2px solid var(--ink); padding-top: 6px; }
.sign-line { width: 130px; text-align: center; border-top: 1px solid var(--ink); padding-top: 4px; font-size: 11px; }
@media print { .quote-edit, .seg { display: none !important; } .quote-preview { position: static; max-height: none; overflow: visible; } }

.scaled-page { width: 100%; overflow: hidden; }
.scaled-page .doc { max-width: none; width: 794px; min-height: 1123px; padding: 48px 52px; font-size: 12.5px; }
.scaled-page .doc .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scaled-page .doc .doc-meta { text-align: right; }
@media print { .scaled-page { height: auto !important; } .scaled-page > div { transform: none !important; } .scaled-page .doc { min-height: 0; padding: 0; } }

/* ---------- v0.3 müşteri talepleri */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kicker { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.badge.ok { background: var(--ok); color: #fff; }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.sand { background: #E6EEF8; color: #1E3A5F; }
.badge.grey { background: #EAF0F7; color: var(--muted); }
.mini.warn { background: #FBE3A1; color: #5E4200; }
.mini.dark { background: var(--ink); color: #fff; }
.wa-bubble { background: #E7F6DE; border-radius: 12px 12px 4px 12px; padding: 12px 14px; font-size: 14px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; align-self: flex-end; max-width: 94%; }
.wa-bubble.in { border-radius: 12px 12px 12px 4px; align-self: stretch; max-width: none; }
.linkbox { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: 13px; background: var(--card); border: 1px dashed var(--field-line); border-radius: 10px; padding: 10px 12px; overflow-wrap: anywhere; user-select: all; }
.send-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 8px; }
.send-grid .btn { padding: 0 8px; }
.req-grid { display: grid; gap: 12px; }
@media (min-width: 960px) { .req-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.slot-btn { min-height: 46px; text-align: left; padding: 0 14px; border-radius: 10px; font-size: 14px; font-weight: 600; background: #fff; border: 1px solid var(--field-line); }
.slot-btn.on { background: var(--blue-soft); color: var(--blue); border: 2px solid var(--blue); }
.reason-btn { min-height: 46px; padding: 8px 14px; border-radius: 10px; font-size: 14px; font-weight: 600; text-align: left; background: #fff; border: 1px solid var(--field-line); }
.reason-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.req-banner { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); background: #FFF6D6; border: 1.5px solid var(--accent); border-radius: 12px; padding: 12px 14px; font-weight: 600; }
.req-banner.ok { background: #E3F1E8; border-color: var(--ok); color: var(--ok); }
.textarea.wa-edit { background: #E7F6DE; border-color: #CDE6BF; font-size: 14px; line-height: 1.45; min-height: 200px; }
.actionbar.wrap3 { flex-wrap: wrap; }
.actionbar.wrap3 .btn { flex: 1 1 auto; }
@media (max-width: 420px) { .actionbar.wrap3 .btn.primary { flex-basis: 100%; order: -1; } }
.sign-img { display: block; max-width: 120px; max-height: 50px; margin: 0 auto 2px; }
.cat-tile.add { border-style: dashed; color: var(--blue); background: transparent; }
/* v0.5 servis formu: uygulayıcı + müşteri imzası yan yana */
.doc .sig-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .doc .sig-grid { grid-template-columns: 1fr 1fr; } }
@media print { .doc .sig-grid { grid-template-columns: 1fr 1fr; } }
.mv-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; flex-shrink: 0; }
.mv-dot.in { background: #E3F4EA; color: #1E7A45; }
.mv-dot.out { background: #FDE5E3; color: #B3261E; }

/* ---------- v0.8: bildirim, kilit, tarihsiz işler, mobil menü */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats.four .stat { padding: 8px 10px; }
.stat.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.list-btn.is-done { background: #F4F8FC; }
.list-btn.is-done .time { color: var(--ok); }
.list-btn.is-quote { border-style: dashed; border-color: #A9BCD4; }
.list-btn.is-quote .time { font-size: 16px; color: var(--muted); }
.bell { position: relative; }
.badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-family: var(--body); }
.bn-ico { position: relative; display: inline-flex; }
.bn-ico .badge { top: -6px; right: -14px; }
.bottomnav a { min-width: 0; font-size: 11.5px; white-space: nowrap; }
.notif-list { padding: 0; overflow: hidden; }
.notif { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-top: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.notif:first-child { border-top: none; }
.notif:hover { background: #F8FBFF; }
.notif.unread { background: #FFFBEA; }
.notif .ni { width: 34px; height: 34px; border-radius: 10px; background: var(--ground); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notif.t-ok .ni { background: #E3F1E8; color: var(--ok); }
.notif.t-warn .ni { background: #FBE3A1; color: #5E4200; }
.notif.t-act .ni { background: var(--accent); color: var(--ink); }
.income-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 10px 0; border-top: 1px solid var(--line-2); color: inherit; text-decoration: none; }
.income-row:first-child { border-top: none; }
.income-row .nums { display: flex; gap: 14px; justify-content: flex-end; font-size: 13px; }
.kpi-link { cursor: pointer; text-align: left; font: inherit; color: inherit; background: none; border: none; padding: 0; }
.kpi-link:hover strong { text-decoration: underline; }
@media (min-width: 640px) and (max-width: 959px) {
  .grid-cards, .stack.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .content { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 380px) { .stats.four .stat .v { font-size: 19px; } .stats.four .stat .l { font-size: 11px; } }
.kpi-btn { text-align: left; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.kpi-btn:hover { border-color: #A9BCD4; }
.kpi-btn em { color: var(--blue); }
.kpi-btn.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.doc .sig.sig-wait { border-style: dashed; color: var(--muted); font-size: 13px; background: #FFFBEA; }
@media (max-width: 959px) { .topbar .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.input[readonly], .textarea[readonly] { background: var(--ground); color: var(--ink-2); border-style: dashed; }

/* ---------- v0.10: İşler panosu, iş akışı, zaman çizelgesi */
.mini.bad { background: #F6D5CD; color: var(--danger); }
.section-title.t-warn { color: var(--danger); }
.jobs-layout { display: block; }
.jobs-detail { display: none; }
@media (min-width: 960px) {
  .jobs-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 16px; align-items: start; }
  .jobs-detail { display: block; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; }
}
.jobrow { display: flex; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: inherit; font: inherit; cursor: pointer; }
.jobrow:hover { border-color: #A9BCD4; }
.jobrow.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.jobrow.late { border-left: 4px solid var(--danger); }
.jobrow.is-quote { border-style: dashed; }
.jobrow.is-done { background: #F4F8FC; }
.jr-when { width: 54px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--display); }
.jr-when strong { font-size: 17px; line-height: 1.1; }
.jr-when .xs { font-family: var(--body); color: var(--muted); }
.jobrow.late .jr-when strong { color: var(--danger); }
.jr-cust { font-size: 15px; overflow-wrap: anywhere; }
.jr-title { font-size: 14px; color: var(--ink-2); }
.jr-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.jr-badges .mini { white-space: normal; height: auto; min-height: 22px; padding: 2px 8px; }
.flow { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.flow li { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.flow li + li::before { content: ''; width: 10px; height: 2px; background: var(--line); margin-right: 2px; }
.flow .fs-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.flow .fs-done { color: var(--ok); }
.flow .fs-done .fs-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.flow .fs-current { color: var(--ink); font-weight: 600; }
.flow .fs-current .fs-dot { border-color: var(--accent); background: #FFF3C4; }
.flow .fs-warn { color: #8A5A00; font-weight: 600; }
.flow .fs-warn .fs-dot { border-color: #E5A700; background: #FBE3A1; }
.flow .fs-bad { color: var(--danger); font-weight: 600; }
.flow .fs-bad .fs-dot { background: var(--danger); border-color: var(--danger); color: #fff; }
.flow.compact li { font-size: 11px; gap: 3px; }
.flow.compact .fs-dot { width: 12px; height: 12px; border-width: 1.5px; }
.flow.compact li + li::before { width: 6px; }
.overview { border-color: var(--ink); }
.ov-block { display: flex; flex-direction: column; gap: 6px; border-top: 1px solid var(--line-2); padding-top: 10px; }
.ov-line { padding: 4px 0; border-bottom: 1px dashed var(--line-2); gap: 8px; }
.ov-line:last-child { border-bottom: none; }
.tl ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl-i { display: flex; gap: 10px; padding: 6px 0; position: relative; }
.tl-i::before { content: ''; position: absolute; left: 11px; top: 30px; bottom: -6px; width: 2px; background: var(--line-2); }
.tl-i:last-child::before { display: none; }
.tl-ic { width: 24px; height: 24px; border-radius: 50%; background: var(--ground); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--ink-2); z-index: 1; }
.tl-i.t-ok .tl-ic { background: #E3F1E8; color: var(--ok); }
.tl-i.t-warn .tl-ic { background: #FBE3A1; color: #5E4200; }
.tl-i.t-bad .tl-ic { background: #F6D5CD; color: var(--danger); }
.tl-i.plan { opacity: .75; }
.tl-i.plan .tl-ic { background: #FFF3C4; border: 1.5px dashed var(--accent); }

/* v0.11: büyük işler için teklif (Excel şablonu düzeni) */
.seg.small { padding: 3px; border-radius: 10px; flex: 0 0 auto; }
.seg.small button { height: 32px; padding: 0 12px; flex: 0 0 auto; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 600px) { .grid3 { grid-template-columns: 1fr; } }
.select.sm { height: 40px; font-size: 15px; padding: 0 4px; background: var(--field); }
.item-grid.q { grid-template-columns: 56px 74px minmax(0, 1fr) 68px auto; }
@media (max-width: 420px) { .item-grid.q { grid-template-columns: 52px 68px minmax(0, 1fr) 64px; } .item-grid.q .line-total { grid-column: 1 / -1; } }
.textarea.auto { min-height: 0; padding: 9px 12px; font-size: 15px; }
.qx { gap: 12px; }
.qx .qx-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.qx .qx-title { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.2; letter-spacing: .01em; }
.qx .qx-meta { display: flex; flex-direction: column; gap: 2px; min-width: 190px; font-size: 12px; }
.qx .qx-meta > div { display: flex; justify-content: space-between; gap: 12px; }
.qx .qx-meta > div > span:first-child { color: var(--muted); font-size: 11px; }
.qx .box { display: flex; flex-direction: column; gap: 2px; }
.qx .qx-kv { display: flex; gap: 8px; font-size: 11.5px; }
.qx .qx-kv > span:first-child { color: var(--muted); min-width: 80px; flex-shrink: 0; }
.qx .qx-band { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 6px; }
.qx .qx-band.dark { background: var(--ink); color: #fff; border: 0; padding: 7px 10px; border-radius: 4px; display: flex; justify-content: space-between; gap: 8px; }
.qx .qx-table th { font-size: 10.5px; padding: 6px; }
.qx .qx-table td { padding: 5px 6px; font-size: 11.5px; }
.qx .qx-ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; font-size: 11.5px; }
.qx .qx-survey { font-size: 12.5px; }
.qx .qx-annex { border-top: 2px dashed var(--line); padding-top: 14px; margin-top: 8px; display: flex; flex-direction: column; gap: 10px; }
.list-ed .icon-btn { margin-top: 2px; }

/* v0.11: lacivert-sarı-beyaz tema ve etkileşim (sadece CSS; ek dosya / veri yükü yok) */
.topbar { box-shadow: inset 0 -3px 0 var(--accent); }
@media (min-width: 960px) { .topbar { box-shadow: none; } .sidebar a:hover { background: rgba(255,255,255,.07); color: #fff; } .sidebar a.on { box-shadow: inset 3px 0 0 var(--accent); } }
.bottomnav a { position: relative; transition: color .15s; }
.bottomnav a.on { color: var(--blue); }
.bottomnav a.on::before { content: ''; position: absolute; top: 0; left: 26%; right: 26%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
.btn, .chip, .icon-btn, .seg button, .list-btn, .jobrow, .kpi-btn, .notif, .cat-tile, .fab, .reason-btn, .slot-btn, .sidebar a {
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .2s var(--ease), transform .08s;
}
.btn:active, .chip:active, .fab:active, .list-btn:active, .jobrow:active, .cat-tile:active, .icon-btn:active { transform: scale(.98); }
@media (hover: hover) {
  .btn:hover { background: var(--blue-soft); }
  .btn.primary:hover { background: #FFCB3D; }
  .btn.dark:hover { background: var(--ink-3); }
  .btn.danger:hover { background: #FDECEA; }
  .btn.danger-fill:hover { background: #9C1F18; }
  .chip:hover { border-color: var(--blue); }
  .chip.on:hover { background: var(--blue); }
  .list-btn:hover, .jobrow:hover, .kpi-btn:hover { border-color: var(--blue-line); box-shadow: var(--shadow-1); }
  .fab:hover { box-shadow: var(--shadow-2); }
}
.chip.on { background: var(--blue); border-color: var(--blue); }
.seg button.on { color: var(--blue); }
.card.dark, .kpi.dark { background: linear-gradient(160deg, var(--ink) 0%, var(--ink-3) 100%); }
.btn:focus-visible, .chip:focus-visible, .icon-btn:focus-visible, .list-btn:focus-visible, .seg button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
@keyframes bdb-fade { from { opacity: 0; } to { opacity: 1; } }
/* fill-mode yok: animasyon bitince yığın bağlamı (stacking context) kalmasın, alt pencereler menünün üstünde açılsın */
.content { animation: bdb-fade .22s ease-out; }
/* katlanır bölüm: ekranda gereksiz kalabalık olmasın, dokununca açılsın */
.fold { border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.fold.open { border-color: var(--blue-line); box-shadow: var(--shadow-1); }
.fold-h { width: 100%; min-height: 52px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: none; border: 0; text-align: left; border-radius: 12px; }
@media (hover: hover) { .fold-h:hover { background: var(--blue-soft); } }
.fold-t { font-weight: 700; font-size: 14px; flex-shrink: 0; }
.fold-s { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: right; }
.fold-c { width: 24px; height: 24px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--blue-soft); color: var(--blue); transition: transform .2s var(--ease); flex-shrink: 0; }
.fold.open .fold-c { transform: rotate(180deg); background: var(--accent); color: var(--ink); }
.fold-b { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; animation: bdb-fade .18s ease-out; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* v0.13: ana sayfa — telefon ana ekranı gibi uygulama kutuları */
.home { gap: 16px; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-radius: 18px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(255,194,26,.28) 0%, rgba(255,194,26,0) 45%), linear-gradient(150deg, var(--ink) 0%, var(--ink-3) 100%); box-shadow: var(--shadow-1); }
.home-greet { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; }
.home-day { font-size: 13px; color: var(--on-dark-2); }
.home-today { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 92px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.1); color: #fff; text-decoration: none; transition: background-color .15s; }
.home-today:hover { background: rgba(255,255,255,.18); }
.ht-num { font-family: var(--display); font-weight: 700; font-size: 30px; line-height: 1; color: var(--accent); }
.ht-lbl { font-size: 11.5px; color: var(--on-dark-2); text-align: center; margin-top: 4px; }
.home-next { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 14px; color: inherit; text-decoration: none; transition: box-shadow .2s, border-color .15s; }
.home-next:hover { box-shadow: var(--shadow-1); border-color: var(--blue-line); border-left-color: var(--accent); }
.hn-time { font-family: var(--display); font-weight: 700; font-size: 20px; min-width: 56px; color: var(--ink); }
.home-empty { padding: 4px 2px; }
.home-todo { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; font-size: 13px; font-weight: 600; text-decoration: none; background: var(--blue-soft); color: var(--blue); border: 1px solid var(--blue-line); transition: transform .08s, box-shadow .15s; }
.ht-chip.t-warn { background: var(--accent-soft); color: #6B4E00; border-color: #F2D27A; }
.ht-chip.t-bad { background: #FDECEA; color: var(--danger); border-color: #F3C2BC; }
.ht-chip:active { transform: scale(.97); }
.home-quick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.home-quick::-webkit-scrollbar { display: none; }
.hq-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 6px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .08s; }
.hq-btn:hover { border-color: var(--blue-line); box-shadow: var(--shadow-1); }
.hq-btn:active { transform: scale(.97); }
.hq-ico { width: 32px; height: 32px; border-radius: 16px; background: var(--accent); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.home-apps-head { margin-top: 4px; }
.home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; }
@media (min-width: 600px) { .home-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 22px 12px; } }
.app-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.app-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; text-decoration: none; color: var(--ink); background: none; border: 0; padding: 0; width: 100%; cursor: pointer; }
.app-ico { position: relative; width: 64px; height: 64px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 3px 10px rgba(19,41,75,.16), inset 0 1px 0 rgba(255,255,255,.18); transition: transform .12s var(--ease), box-shadow .2s; }
@media (min-width: 600px) { .app-ico { width: 72px; height: 72px; border-radius: 20px; } }
@media (hover: hover) { .app-tile:hover .app-ico { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(19,41,75,.2); } }
.app-tile:active .app-ico { transform: scale(.94); }
.app-lbl { font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-ico.t-navy { background: linear-gradient(150deg, #1D3E6E, #13294B); }
.app-ico.t-blue { background: linear-gradient(150deg, #3C82D6, #1F62B4); }
.app-ico.t-sky { background: linear-gradient(150deg, #5BA8EE, #2E7BD0); }
.app-ico.t-yellow { background: linear-gradient(150deg, #FFD34D, #F5B000); color: var(--ink); }
.app-ico.t-orange { background: linear-gradient(150deg, #FFB547, #F08A00); color: var(--ink); }
.app-ico.t-teal { background: linear-gradient(150deg, #3BB3B0, #1C8A88); }
.app-ico.t-green { background: linear-gradient(150deg, #39A86E, #1E7A4C); }
.app-ico.t-slate { background: linear-gradient(150deg, #6F8099, #4A5A72); }
.app-ico.t-light { background: linear-gradient(150deg, #FFFFFF, #E6EEF8); color: var(--blue); box-shadow: 0 3px 10px rgba(19,41,75,.1), inset 0 0 0 1px var(--line); }
.app-badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 700; line-height: 22px; text-align: center; box-shadow: 0 0 0 2px var(--ground); }
.app-badge.warn { background: var(--danger); color: #fff; }
@keyframes bdb-wiggle { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
.home-grid.editing .app-ico { animation: bdb-wiggle .28s ease-in-out infinite; }
.app-edit { display: flex; gap: 4px; }
.app-edit button { width: 28px; height: 28px; border-radius: 14px; border: 1px solid var(--field-line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.app-edit button:disabled { opacity: .35; }
.app-edit button:nth-child(2) { color: var(--danger); }
.app-edit button:nth-child(3) svg { transform: none; }
.app-tile.ghosted { opacity: .55; }
.app-tile.ghosted:hover { opacity: .9; }

/* v0.15: yazılı onay */
.approval-typed { font-weight: 700; font-size: 16px; color: var(--success, #2E7D4F); }
.approval-text, .approval-text-box { line-height: 1.5; }
.approval-text-box { background: var(--ground); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 12px; }
.approval-input { font-size: 17px; font-weight: 600; }
.approval-input.ok { border-color: var(--success, #2E7D4F); box-shadow: 0 0 0 3px rgba(46,125,79,.15); }
