/* Prisma ailesi kurumsal kimliği (Prisma Balance ile aynı tokenlar) */
:root {
  --bg: #f2f5fb;
  --panel: #ffffff;
  --panel-2: var(--panel-2);
  --hover: #f7f9fd;
  --text: #172033;
  --muted: #667085;
  --line: #e2e7f0;
  --line-strong: #c9d1df;
  --accent: #2357d9;
  --accent-dark: #1b45b3;
  --accent-soft: #e9efff;
  --accent-2: #0e9ac7;
  --on-accent: #ffffff;
  --navy: #1b2f7a;
  --brand-grad: linear-gradient(120deg, #1b2f7a 0%, #2357d9 52%, #0ea5c9 100%);
  --cta-grad: linear-gradient(90deg, #1b2f7a 0%, #2357d9 100%);
  --brand-orange: #f47a3e;
  --brand-teal: #0ea5c9;
  --tint: rgba(35, 87, 217, .10);
  --ok: #1a7f4b;
  --ok-soft: #e6f4ec;
  --warn: #b45309;
  --warn-soft: #fdf3e3;
  --bad: #b42318;
  --bad-soft: #fdecea;
  --cyan: #0b7fa3;
  --cyan-soft: #e2f4f9;
  --o-normal: #2a78d6;
  --o-yuksek: #eb6834;
  --o-dusuk: #9a9893;
  --input-bg: #ffffff;
  --calc-bg: #f4f6fb;
  --shadow: 0 1px 2px rgba(20, 34, 80, .06), 0 1px 1px rgba(20, 34, 80, .04);
  --shadow-card: 0 1px 2px rgba(20, 34, 80, .05);
  --shadow-pop: 0 12px 32px rgba(20, 34, 80, .16);
  --radius: 8px;
  --radius-lg: 16px;
  --top-h: calc(58px + env(safe-area-inset-top, 0px));
  --side-w: 256px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1320;
    --panel: #161d2c;
    --panel-2: #131a28;
    --hover: #1b2335;
    --text: #e6e9ee;
    --muted: #98a2b3;
    --line: #263046;
    --line-strong: #35415a;
    --accent: #7aa6ff;
    --accent-dark: #9bbcff;
    --accent-soft: #1a2747;
    --accent-2: #38c5e8;
    --on-accent: #0d1620;
    --navy: #c9d6ff;
    --brand-grad: linear-gradient(120deg, #111d4d 0%, #1e40af 55%, #0a6e8f 100%);
    --cta-grad: linear-gradient(90deg, #1e40af 0%, #3b6fe0 100%);
    --tint: rgba(122, 166, 255, .10);
    --ok: #4cc38a;
    --ok-soft: #173326;
    --warn: #f0a94b;
    --warn-soft: #362816;
    --bad: #f17066;
    --bad-soft: #3a1d1b;
    --cyan: #5cc8e6;
    --cyan-soft: #11303a;
    --o-normal: #3987e5;
    --o-yuksek: #d95926;
    --o-dusuk: #6f6e69;
    --input-bg: #111827;
    --calc-bg: #1b2335;
    --shadow: none;
    --shadow-card: none;
    --shadow-pop: 0 12px 32px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); color: var(--text); background: var(--bg); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
svg { flex-shrink: 0; }

/* ============================================================ kabuk */
.top {
  position: fixed; inset: 0 0 auto 0; height: var(--top-h); padding: env(safe-area-inset-top, 0px) 24px 0;
  background: var(--brand-grad); color: #fff; display: flex; align-items: center; gap: 14px; z-index: 30;
  box-shadow: 0 2px 12px rgba(27, 47, 122, .25);
}
.menu-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12);
  color: #fff; display: none; align-items: center; justify-content: center; cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; white-space: nowrap; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.brand-name { font-size: 17px; font-weight: 400; letter-spacing: -.01em; }
.brand-name b { font-weight: 800; }
.top-search { flex: 1; max-width: 448px; margin: 0 auto; position: relative; }
.top-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: rgba(255, 255, 255, .85); fill: none; stroke-width: 2; }
.top-search input {
  width: 100%; height: 34px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .15);
  color: #fff; padding: 6px 12px 6px 36px; outline: 0;
}
.top-search input::placeholder { color: rgba(255, 255, 255, .8); }
.top-search input:focus { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.user-pill {
  display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .12); color: #fff;
}
.user-pill .ava { width: 30px; height: 30px; font-size: 12px; }
.user-pill .nm { font-size: 13.5px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pill .car { font-size: 10px; opacity: .85; }
.ava {
  border-radius: 50%; background: linear-gradient(135deg, #f9a26c, var(--brand-orange)); color: #fff; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 255, 255, .7); flex-shrink: 0;
}
.user-menu {
  position: fixed; top: calc(var(--top-h) + 6px); right: 16px; width: 260px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-pop); padding: 8px; z-index: 40; color: var(--text);
}
.user-menu .um-head { display: flex; gap: 10px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu .um-head .ava { width: 38px; height: 38px; border-color: var(--panel); }
.user-menu a, .user-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 8px; border: 0; background: none;
  color: var(--text); cursor: pointer; text-align: left;
}
.user-menu a:hover, .user-menu button:hover { background: var(--calc-bg); }

.side {
  position: fixed; top: var(--top-h); bottom: 0; left: 0; width: var(--side-w); background: var(--panel); border-right: 1px solid var(--line);
  padding: 16px 10px 12px; display: flex; flex-direction: column; z-index: 25; overflow-y: auto;
}
.side-search { position: relative; margin-bottom: 14px; }
.side-search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: var(--muted); fill: none; stroke-width: 2; }
.side-search input { width: 100%; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: var(--calc-bg); padding: 6px 10px 6px 32px; outline: 0; }
.side-search input:focus { border-color: var(--accent); background: var(--panel); }
.nav-group { margin-bottom: 12px; }
.nav-group-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.nav-group-head .gi {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 12px;
}
.nav-group-head .gi.solid { background: var(--accent); color: var(--on-accent); }
.nav-group-head b { display: block; font-size: 13.5px; color: var(--navy); }
.nav-group-head small { display: block; font-size: 11px; color: var(--muted); }
.nav-items { margin-left: 20px; padding-left: 10px; border-left: 1px solid var(--line); }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px;
  position: relative; margin: 1px 0;
}
.nav-link svg { width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { background: var(--calc-bg); }
.nav-link.on { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.nav-link.on svg { stroke: var(--accent); }
.nav-link.on::before { content: ""; position: absolute; left: -12px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: var(--accent); }
.nav-count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.side-foot { margin-top: auto; padding: 10px 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.scrim { position: fixed; inset: var(--top-h) 0 0 0; background: rgba(16, 24, 40, .35); z-index: 24; }

.main { margin-left: var(--side-w); padding: calc(var(--top-h) + 14px) 32px 48px; min-height: 100vh; }
.main-inner { max-width: 1040px; }
.crumbs { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.crumbs b { color: var(--text); font-weight: 700; }
.crumbs a { color: var(--muted); }

@media (max-width: 1023px) {
  .menu-btn { display: inline-flex; }
  .top { padding: env(safe-area-inset-top, 0px) 16px 0; gap: 10px; }
  .brand-name { display: none; }
  .user-pill { padding: 3px; }
  .user-pill .nm, .user-pill .car { display: none; }
  .side { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 8px 0 24px rgba(20, 34, 80, .12); }
  .side.open { transform: none; }
  .main { margin-left: 0; padding: calc(var(--top-h) + 12px) 16px 40px; }
}
@media (min-width: 1024px) { .scrim { display: none; } }

/* ======================================================= sayfa başı */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 800; color: var(--text); }
.page-head .sub { color: var(--muted); margin-top: 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.back-link:hover { color: var(--accent); }

.hero {
  position: relative; overflow: hidden; background: var(--brand-grad); color: #fff; border-radius: 20px; padding: 28px 30px;
  margin-bottom: 18px; box-shadow: 0 10px 30px rgba(27, 47, 122, .18);
}
.hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -150px; bottom: -230px; background: rgba(255, 255, 255, .1); }
.hero > * { position: relative; z-index: 1; }
.hero .hi { opacity: .85; font-size: 14.5px; }
.hero h1 { font-size: 30px; font-weight: 800; margin: 4px 0 6px; }
.hero .meta { opacity: .85; margin-bottom: 16px; }
.hero .chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.hero .chip { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.hero .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .btn { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
.hero .btn:hover { background: rgba(255, 255, 255, .24); }
.hero .btn.light { background: #fff; color: #1b2f7a; border-color: #fff; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--calc-bg);
  font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap;
}
.chip b { font-weight: 800; }

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-card); }
.kpi span { color: var(--muted); font-size: 13.5px; }
.kpi b { display: block; font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: 12px; }
@media (max-width: 720px) { .kpis { grid-template-columns: 1fr 1fr; } .hero { padding: 22px 20px; } .hero h1 { font-size: 25px; } }

/* =========================================================== butonlar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 6px; padding: 8px 14px; font-weight: 600;
  border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .1); line-height: 1.3;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.block { width: 100%; padding: 11px 14px; font-size: 15px; border-radius: 8px; }
.btn.lg { padding: 11px 18px; font-size: 15px; border-radius: 8px; }
.btn.ghost, .btn.outline { background: var(--panel); color: var(--text); border-color: var(--line-strong); box-shadow: none; }
.btn.ghost:hover, .btn.outline:hover { background: var(--calc-bg); }
.btn.soft { background: var(--accent-soft); color: var(--accent); border-color: transparent; box-shadow: none; }
.btn.danger { background: var(--panel); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 35%, transparent); box-shadow: none; }
.btn.danger:hover { background: var(--bad-soft); }
.btn.success { background: var(--accent); border-color: var(--accent); }
.btn.cta { background: var(--cta-grad); border: 0; border-radius: 999px; padding: 9px 20px; box-shadow: 0 4px 12px rgba(35, 87, 217, .25); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; margin-top: 16px; justify-content: flex-end; flex-wrap: wrap; }
.btn-row.stretch > .btn { flex: 1; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 6px; border-radius: 8px; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--calc-bg); color: var(--text); }

/* ======================================================== kart, form */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; box-shadow: var(--shadow-card); margin-bottom: 16px; }
.card > h3, .card-title { font-size: 16px; font-weight: 700; margin: 0 0 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.card-title small { font-weight: 400; color: var(--muted); font-size: 13px; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: baseline; gap: 10px; }
.card-head h3 { font-size: 16px; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .layout-2 { grid-template-columns: 1fr; } }

.field { margin-bottom: 14px; }
.field:last-child { margin-bottom: 0; }
.field label, .lbl { display: block; font-size: 13px; color: var(--text); margin-bottom: 6px; font-weight: 500; }
.req::after { content: " *"; color: var(--bad); }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: var(--panel); outline: 0;
  box-shadow: var(--shadow); min-height: 42px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field input[readonly], .field .ro { background: var(--calc-bg); color: var(--muted); box-shadow: none; border-color: var(--line); }
.field textarea { min-height: 84px; resize: vertical; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid2 .field { margin-bottom: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 18px; }
@media (max-width: 720px) { .kv { grid-template-columns: 1fr 1fr; } }
.kv div span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 2px; }
.kv div b { font-weight: 600; word-break: break-word; }
.kv .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.checks { display: flex; flex-wrap: wrap; gap: 4px 22px; }

.line-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 12px; background: var(--panel-2); }
.line-card .line-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 700; font-size: 13px; color: var(--muted); }
.line-card .try { font-size: 12.5px; color: var(--muted); margin-top: 8px; text-align: right; }

.files { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.files .bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--calc-bg); flex-wrap: wrap; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.file-row:last-child { border-bottom: 0; }
.file-row .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.file-row a { cursor: pointer; font-weight: 600; }

.total-box { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 0; gap: 10px; }
.total-box b { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.total-box.minor b { font-size: 15px; font-weight: 700; }
.total-box.neg b { color: var(--bad); }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { background: var(--calc-bg); color: var(--muted); font-weight: 600; font-size: 12.5px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }

.alert { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; line-height: 1.5; border: 1px solid transparent; }
.alert.err { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert.err ul { margin: 6px 0 0; padding-left: 18px; }
.alert.warn { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 25%, transparent); }
.alert.info { background: var(--accent-soft); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 25%, transparent); }
#err, [data-err], #act-err { scroll-margin-top: 80px; }

/* ================================================ sekmeler ve listeler */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button {
  border: 0; background: none; padding: 11px 14px; color: var(--muted); font-size: 15px; cursor: pointer; white-space: nowrap;
  border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; align-items: center; gap: 8px;
}
.tabs button:hover { color: var(--text); }
.tabs button.active { color: var(--accent); font-weight: 600; background: var(--panel); border-bottom-color: var(--accent); }
.tabs .cnt { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--calc-bg); color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tabs button.active .cnt { background: var(--accent-soft); color: var(--accent); }

.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; stroke: var(--muted); fill: none; stroke-width: 2; }
.search-box input { width: 100%; height: 40px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 12px 8px 36px; background: var(--panel); outline: 0; box-shadow: var(--shadow); }
.search-box input:focus { border-color: var(--accent); }

.is-list { display: grid; gap: 12px; }
.is-kart {
  background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 14px 16px 12px 18px; box-shadow: var(--shadow-card); color: var(--text); display: block;
}
.is-kart:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px rgba(20, 34, 80, .08); }
.is-kart.k-onay { border-left-color: var(--o-normal); }
.is-kart.k-devam { border-left-color: var(--o-yuksek); }
.is-kart.k-odemeb { border-left-color: var(--ok); }
.is-kart.k-odendi, .is-kart.k-tamam { border-left-color: var(--brand-teal); }
.is-kart.k-iptal { border-left-color: var(--o-dusuk); }
.is-kart .r1 { display: flex; align-items: center; gap: 10px; }
.is-kart .no { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--calc-bg); padding: 2px 8px; border-radius: 6px; }
.is-kart .ttl { font-size: 16px; font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.is-kart .amount { font-size: 17px; font-weight: 800; white-space: nowrap; }
.is-kart .chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 8px; }
.is-kart .who { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; }
.is-kart .who .ava { width: 24px; height: 24px; font-size: 10px; border-width: 0; background: #2f9e7a; }
.is-kart .foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 10px; }
.is-kart .foot .muted { font-size: 13px; }
.is-kart .type-ic { width: 30px; height: 30px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.is-kart .type-ic.trv { background: var(--cyan-soft); color: var(--cyan); }
.empty { text-align: center; color: var(--muted); padding: 36px 16px; background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.empty.plain { background: none; border: 0; padding: 18px; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--calc-bg); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.s-onay { color: var(--o-normal); background: color-mix(in srgb, var(--o-normal) 13%, transparent); }
.badge.s-devam { color: var(--o-yuksek); background: color-mix(in srgb, var(--o-yuksek) 13%, transparent); }
.badge.s-odemeb { color: var(--ok); background: var(--ok-soft); }
.badge.s-odendi, .badge.s-tamam { color: var(--cyan); background: var(--cyan-soft); }
.badge.s-iptal { color: var(--o-dusuk); background: color-mix(in srgb, var(--o-dusuk) 15%, transparent); }
.badge.task { background: var(--accent-soft); color: var(--accent); }
.badge.plain::before { display: none; }

.list { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--hover); }
.item .r1, .item .r3 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.item .r2 { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; margin-top: 2px; }
.item .title { font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: var(--panel); border: 2px solid var(--accent); }
.timeline li.sys::before { border-color: var(--line-strong); }
.timeline .t1 { font-weight: 700; }
.timeline .t2 { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.timeline .t3 { font-size: 13.5px; margin-top: 6px; background: var(--calc-bg); border-radius: 8px; padding: 8px 10px; }

/* =========================================================== raporlar */
.charts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.charts .wide { grid-column: 1 / -1; }
@media (max-width: 860px) { .charts { grid-template-columns: 1fr; } }
.legend { display: grid; gap: 6px; margin-bottom: 10px; font-size: 13.5px; }
.legend div { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.legend i { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.donut-wrap { position: relative; display: flex; justify-content: center; }
.donut-wrap svg { width: 230px; height: 230px; }
.donut-wrap path { cursor: pointer; transition: opacity .15s; }
.donut-tip { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; font-size: 12.5px; color: var(--muted); }
.donut-tip b { display: block; font-size: 17px; color: var(--text); }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 160px 1fr 120px; gap: 12px; align-items: center; font-size: 13.5px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 100px 1fr; } .bar-row .bv { grid-column: 2; margin-top: -6px; } }
.bar-row .bl { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { height: 12px; background: var(--accent-soft); border-radius: 6px; overflow: hidden; }
.bar-row .fill { display: block; height: 100%; background: var(--brand-grad); border-radius: 6px; }
.bar-row .bv { color: var(--muted); text-align: right; white-space: nowrap; }

/* ======================================================= panel / modal */
.overlay { position: fixed; inset: 0; background: rgba(16, 24, 40, .45); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; animation: fade .15s; }
.sheet { width: 100%; max-width: 520px; background: var(--panel); border-radius: 16px; padding: 22px; max-height: 90vh; overflow-y: auto; box-shadow: 0 20px 50px rgba(16, 24, 40, .25); animation: up .18s; }
.sheet h3 { font-size: 18px; font-weight: 800; margin: 0 0 14px; }
.sheet-option { display: flex; align-items: center; gap: 14px; width: 100%; border: 1px solid var(--line); background: var(--panel); border-radius: 14px; padding: 14px; margin-bottom: 10px; cursor: pointer; text-align: left; }
.sheet-option:hover { border-color: var(--accent); background: var(--hover); }
.sheet-option .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.sheet-option b { display: block; }
.sheet-option span { font-size: 13px; color: var(--muted); }
@keyframes up { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px); background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 10px; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; max-width: 90vw; box-shadow: 0 8px 24px rgba(16, 24, 40, .25); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.err { background: var(--bad); }

.mail { padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.mail:last-child { border-bottom: 0; }
.mail:hover { background: var(--hover); }
.mail .subj { font-weight: 700; }
.mail .meta { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; margin-top: 2px; }
.mail pre { white-space: pre-wrap; font-family: inherit; margin: 10px 0 0; background: var(--calc-bg); padding: 12px; border-radius: 8px; }

/* ============================================================= giriş */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-top { display: none; }
.auth-hero {
  position: relative; overflow: hidden; background: var(--brand-grad); color: #fff; padding: 64px 64px; display: flex; flex-direction: column; justify-content: center;
}
.auth-hero::after { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; right: -220px; bottom: -260px; background: rgba(255, 255, 255, .1); }
.auth-hero > * { position: relative; z-index: 1; }
.auth-logo { display: flex; align-items: center; gap: 20px; margin-bottom: 44px; }
.auth-logo img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 8px 22px rgba(0, 0, 0, .2); }
.auth-logo .nm { font-size: 46px; font-weight: 400; letter-spacing: -.02em; line-height: 1; }
.auth-logo .nm b { font-weight: 800; }
.auth-logo .tag { font-size: 14px; font-weight: 700; letter-spacing: .12em; opacity: .85; margin-top: 10px; }
.auth-hero h2 { font-size: 34px; font-weight: 800; margin-bottom: 18px; letter-spacing: -.02em; }
.auth-hero h2 em { font-style: normal; background: linear-gradient(90deg, #ffd3b8, var(--brand-orange)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero .quote { position: relative; min-height: 28px; border-left: 3px solid var(--brand-orange); padding-left: 16px; font-size: 18px; font-weight: 600; margin-bottom: 18px; }
.auth-hero .quote span { display: block; animation: sloganIn .45s ease; }
@keyframes sloganIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.auth-hero p { font-size: 17px; opacity: .92; margin: 0; max-width: 460px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 34px 32px; box-shadow: 0 6px 24px rgba(20, 34, 80, .06); }
.auth-card h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-wrap button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--muted); cursor: pointer; padding: 6px 8px; }
.auth-links { display: flex; justify-content: space-between; align-items: center; margin: -2px 0 18px; }
.auth-links a { font-size: 14px; font-weight: 500; cursor: pointer; }
.auth-note { text-align: center; color: var(--muted); margin: 18px 0 0; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); margin: 18px 0; font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.demo-btn {
  width: 100%; padding: 12px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); cursor: pointer; font-weight: 700; font-size: 15px; color: var(--accent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-orange) 9%, var(--panel)) 0%, var(--accent-soft) 100%);
}
.demo-btn:hover { border-color: var(--accent); }
.demo-users { display: grid; gap: 8px; }
.demo-users button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; text-align: left; }
.demo-users button:hover { border-color: var(--accent); background: var(--hover); }
.demo-users small { color: var(--muted); }

@media (max-width: 900px) {
  .auth { grid-template-columns: 1fr; background: var(--bg); }
  .auth-top { display: flex; height: 58px; align-items: center; padding: 0 20px; background: var(--brand-grad); box-shadow: 0 2px 12px rgba(27, 47, 122, .25); }
  .auth-top img { width: 34px; height: 34px; border-radius: 9px; }
  .auth-hero { margin: 16px 16px 0; border-radius: 22px; padding: 30px 26px; }
  .auth-logo { gap: 14px; margin-bottom: 26px; }
  .auth-logo img { width: 64px; height: 64px; border-radius: 15px; }
  .auth-logo .nm { font-size: 34px; }
  .auth-logo .tag { font-size: 12px; }
  .auth-hero h2 { font-size: 26px; }
  .auth-hero .quote { font-size: 16px; }
  .auth-hero p { font-size: 15px; }
  .auth-form { padding: 16px; align-items: flex-start; }
  .auth-card { max-width: none; padding: 26px 22px; }
}

.loading { text-align: center; color: var(--muted); padding: 60px 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.spacer { height: 8px; }
.hidden { display: none !important; }

.page-body { display: block; }
.narrow { max-width: 860px; }
.no-tag { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--panel); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; }
.user-menu svg { width: 17px; height: 17px; stroke: var(--muted); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.back-link svg { width: 16px; height: 16px; }
.type-ic svg { width: 16px; height: 16px; }
.nav-group-head .gi svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.is-list { grid-template-columns: minmax(0, 1fr); }
.is-kart, .main-inner, .card { min-width: 0; }
@media (max-width: 480px) {
  .is-kart .r1 { flex-wrap: wrap; }
  .is-kart .ttl { flex-basis: calc(100% - 120px); }
  .is-kart .amount { width: 100%; font-size: 16px; }
  .page-head h1 { font-size: 21px; }
}

/* ============================================ mobil tarayıcı arayüzü */
.m-back, .m-title, .m-tabs, .m-lines, .m-cam { display: none; }

@media (max-width: 768px) {
  body { font-size: 15px; -webkit-tap-highlight-color: transparent; }
  .field input, .field select, .field textarea, .search-box input { font-size: 16px; } /* iOS'ta odakta yakınlaştırmayı önler */

  /* üst bar: geri oku + ortada sayfa başlığı + avatar */
  .top { gap: 8px; padding: env(safe-area-inset-top, 0px) 12px 0; }
  .menu-btn, .top-search, .user-pill .nm, .user-pill .car { display: none !important; }
  .top { justify-content: space-between; }
  .m-title {
    display: block; position: absolute; left: 64px; right: 64px; bottom: 0; height: 58px; line-height: 58px; pointer-events: none;
    font-size: 17px; font-weight: 700; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .top.m-home .m-title { display: none; }
  .top.m-home .brand { flex: 1; }
  .top.m-home .brand-name { display: inline; font-size: 18px; }
  .top:not(.m-home) .brand { display: none; }
  .m-back {
    display: none; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .14); color: #fff;
    align-items: center; justify-content: center; cursor: pointer;
  }
  .m-back svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
  body.m-page .m-back { display: inline-flex; }
  body.m-page .user-pill { visibility: hidden; }
  .top:not(.m-home) .user-pill { margin-left: auto; }
  .side, .scrim { display: none !important; }

  /* içerik */
  .main { padding: calc(var(--top-h) + 14px) 14px calc(96px + env(safe-area-inset-bottom, 0px)); }
  body.m-page .main { padding-bottom: 24px; }
  .crumbs, .back-link, .page-head h1 { display: none; }
  .page-head { margin-bottom: 12px; }
  .page-head:not(:has(.sub)):not(:has(.actions)) { display: none; }
  .page-head .sub { margin-top: 0; font-size: 13.5px; }
  .card { padding: 16px; border-radius: 14px; margin-bottom: 12px; }
  .card > h3 { font-size: 15.5px; }
  .kv { grid-template-columns: 1fr 1fr; gap: 12px; }
  .hero { padding: 20px 18px; border-radius: 18px; margin-bottom: 14px; }
  .hero h1 { font-size: 24px; }
  .hero .meta { margin-bottom: 12px; font-size: 13.5px; }
  .hero .chips { margin-bottom: 14px; }
  .hero .btns { display: grid; grid-template-columns: 1fr 1fr; }
  .hero .btns .light { grid-column: 1 / -1; }
  .kpis { gap: 10px; margin-bottom: 14px; }
  .kpi { padding: 13px 14px; border-radius: 14px; }
  .kpi b { font-size: 21px; }
  .tabs { margin: 0 -14px 12px; padding: 0 14px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { font-size: 14.5px; padding: 10px 12px; }
  .is-kart { padding: 13px 14px 11px 15px; border-radius: 14px; }

  /* masraf kalemleri: tablo yerine kart listesi */
  .d-table { display: none; }
  .m-lines { display: grid; gap: 8px; }
  .m-line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2); }
  .m-line span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
  .m-line .r { text-align: right; white-space: nowrap; }
  .m-cam { display: inline-flex; }
  .m-cam svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

  /* gönder / onay butonları ekranın altına yapışır */
  .form-bar {
    position: sticky; bottom: 0; z-index: 20; margin: 8px -14px 0; padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--panel) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  }
  .act-bar.btn-row {
    position: sticky; bottom: 0; z-index: 20; margin: 16px -16px -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--panel) 96%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-top: 1px solid var(--line);
    border-radius: 0 0 14px 14px;
  }
  .act-bar.btn-row > .btn { flex: 1; padding: 12px; font-size: 15px; border-radius: 10px; }
  .btn.block.act-bar { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 20; box-shadow: 0 6px 18px rgba(35, 87, 217, .3); }
  .btn.block { padding: 13px 14px; border-radius: 10px; }

  /* alt sekme çubuğu */
  .m-tabs {
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(64px + env(safe-area-inset-bottom, 0px)); padding: 0 6px env(safe-area-inset-bottom, 0px);
    background: color-mix(in srgb, var(--panel) 96%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  }
  body.m-page .m-tabs { display: none; }
  .m-tabs a, .m-tabs > button:not(.m-fab) {
    position: relative; height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    color: var(--muted); font-size: 11px; font-weight: 600; background: none; border: 0; cursor: pointer;
  }
  .m-tabs svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .m-tabs .on { color: var(--accent); }
  .m-tabs .on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .m-fab {
    justify-self: center; align-self: start; margin-top: -20px; width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--bg);
    background: var(--brand-grad); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer;
    box-shadow: 0 8px 20px rgba(35, 87, 217, .35);
  }
  .m-fab svg { width: 26px; height: 26px; stroke: #fff; stroke-width: 2.6; }
  .m-badge {
    position: absolute; top: 7px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
    background: #e34948; color: #fff; font-size: 10.5px; font-style: normal; font-weight: 800; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--panel);
  }

  /* alttan açılan paneller */
  .overlay { align-items: flex-end; padding: 0; }
  .sheet { max-width: none; border-radius: 22px 22px 0 0; padding: 10px 18px calc(22px + env(safe-area-inset-bottom, 0px)); max-height: 88vh; animation: sheetup .22s ease; }
  .sheet::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 0 auto 14px; }
  @keyframes sheetup { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  body.m-page .toast { bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .user-menu { display: none; }
}

/* mobil menü paneli */
.m-menu-user { display: flex; gap: 12px; align-items: center; padding: 4px 2px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.m-menu-user .ava { width: 46px; height: 46px; font-size: 15px; border-color: var(--panel); }
.m-menu-group { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 4px 6px; }
.m-menu-link {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 6px; border: 0; border-bottom: 1px solid var(--line);
  background: none; color: var(--text); font-size: 15.5px; cursor: pointer; text-align: left;
}
.m-menu-link svg { width: 21px; height: 21px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.m-menu-link span:first-of-type { flex: 1; }
.m-menu-link .chev { color: var(--line-strong); font-size: 20px; flex: 0; }
.m-menu-link.danger { color: var(--bad); border-bottom: 0; margin-top: 6px; }
.m-menu-link.danger svg { stroke: var(--bad); }
.btn.cta, .btn.cta:hover { color: #fff; }

/* ======================================== fişten otomatik doldurma */
.scan-card {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: center; margin-bottom: 16px; padding: 18px 20px;
  border-radius: var(--radius-lg); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  background: linear-gradient(110deg, color-mix(in srgb, var(--brand-orange) 8%, var(--panel)) 0%, var(--accent-soft) 100%);
}
.scan-ic {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-orange); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand-orange) 35%, transparent);
}
.scan-ic svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.scan-txt b { display: block; font-size: 16px; }
.scan-txt span { color: var(--muted); font-size: 13.5px; }
.scan-btns { grid-column: 2; display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.scan-btns .btn svg, .btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.scan-btns label.btn { cursor: pointer; }
.scan-status { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--accent); margin-top: 6px; }
.spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--accent-soft); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.line-card.ocr { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--panel)); }
.line-head .badge svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }
.ocr-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.sheet-option.scan { border-color: color-mix(in srgb, var(--brand-orange) 45%, transparent); background: color-mix(in srgb, var(--brand-orange) 6%, var(--panel)); }
.sheet-option.scan .ic { background: var(--brand-orange); color: #fff; }
.sheet-option .ic svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hero .btn.scan-hero { background: var(--brand-orange); border-color: var(--brand-orange); cursor: pointer; }
.hero .btn.scan-hero:hover { background: #e2692d; }
.m-cam-only { display: none !important; }
@media (max-width: 768px) {
  .m-cam-only { display: inline-flex !important; }
  .scan-card { grid-template-columns: auto 1fr; padding: 16px; }
  .scan-btns { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; }
  .scan-btns .btn { padding: 12px; font-size: 15px; }
  .hero .btns .scan-hero { grid-column: 1 / -1; }
}
.field .needs-check { border-color: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 18%, transparent); }
.ocr-note .sug-head { font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ocr-note .sug-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.ocr-note .sug {
  border: 1px dashed color-mix(in srgb, var(--warn) 60%, transparent); background: var(--warn-soft); color: var(--text);
  border-radius: 999px; padding: 5px 11px; font-size: 13px; cursor: pointer;
}
.ocr-note .sug:hover { border-style: solid; }
.ocr-note .tip { display: inline-block; margin-top: 4px; color: var(--muted); font-style: italic; }

/* ============================================ platform ve hesap ekranları */
.demo-org { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 8px; }
.demo-org:first-of-type { margin-top: 0; }
.profile-card { display: flex; gap: 16px; align-items: center; }
.ava.big { width: 64px; height: 64px; font-size: 22px; border-color: var(--panel); }
.cred { display: grid; gap: 10px; background: var(--calc-bg); border-radius: 12px; padding: 14px; }
.cred span { display: block; font-size: 12.5px; color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .03em; }
.co-cell { display: inline-flex; align-items: center; gap: 10px; }
.co-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--brand-grad); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.admin-row .ava { width: 38px; height: 38px; font-size: 13px; border-color: var(--panel); }
.admin-row .grow { flex: 1; min-width: 0; }
.card h3 small { font-weight: 400; color: var(--muted); font-size: 13px; }
.seg-mini { display: inline-flex; background: var(--calc-bg); border-radius: 10px; padding: 3px; gap: 2px; }
.seg-mini button { border: 0; background: none; padding: 7px 12px; border-radius: 8px; color: var(--muted); font-weight: 600; cursor: pointer; }
.seg-mini button.on { background: var(--panel); color: var(--accent); box-shadow: var(--shadow); }

/* ===================================================== rapor dashboard'u */
/* Tek seri grafik rengi; dataviz doğrulayıcısından geçti (açık #2357d9 / koyu #5b8def, yüzeye göre ≥3:1) */
:root { --chart: #2357d9; --chart-track: #e9efff; --chart-grid: #e2e7f0; }
@media (prefers-color-scheme: dark) { :root { --chart: #5b8def; --chart-track: #1d2840; --chart-grid: #263046; } }

.dash-filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 16px; }
.date-in { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.date-in input { border: 1px solid var(--line-strong); border-radius: 8px; padding: 6px 8px; background: var(--input-bg); color: var(--text); }
#dash { transition: opacity .15s; }
#dash.refreshing { opacity: .55; }
.dash-top { display: grid; grid-template-columns: minmax(240px, 1fr) 2.2fr; gap: 14px; margin-bottom: 16px; }
.hero-stat { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 0; }
.hero-num { font-size: clamp(32px, 3.3vw, 48px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; }
.kpi-label { color: var(--muted); font-size: 13.5px; }
.kpi-delta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.dash-kpis { grid-template-columns: repeat(3, 1fr); margin: 0; }
.dash-kpis .kpi b { font-size: 22px; }
.dash-grid .dash-card { margin: 0; }
.dash-grid { gap: 14px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.dash-head h3 { font-size: 15.5px; margin: 0; }

.col-chart { display: grid; grid-template-columns: auto 1fr; gap: 8px; height: 240px; }
.col-axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 11.5px; color: var(--muted); text-align: right; padding-bottom: 22px; margin-top: -7px; }
.col-plot { display: grid; grid-template-rows: 1fr 22px; min-width: 0; }
.col-area { position: relative; }
.col-area .grid { position: absolute; left: 0; right: 0; height: 1px; background: var(--chart-grid); }
.cols { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 2px; }
.col { flex: 1; height: 100%; position: relative; display: flex; justify-content: center; align-items: flex-end; outline: none; }
.col .bar-v { width: min(24px, 70%); background: var(--chart); border-radius: 4px 4px 0 0; transition: opacity .12s; }
.col:hover .bar-v, .col:focus-visible .bar-v { opacity: .78; }
.col:focus-visible { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--chart) 40%, transparent); border-radius: 6px; }
.col-val { position: absolute; margin-bottom: 4px; font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; }
.col-labels { display: flex; gap: 2px; }
.col-labels em { flex: 1; text-align: center; font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; padding-top: 6px; }
@media (max-width: 560px) { .col-labels em { font-size: 10px; } .col-labels em:nth-child(even) { visibility: hidden; } }

.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; outline: none; border-radius: 6px; }
.hbar:focus-visible { box-shadow: 0 0 0 2px color-mix(in srgb, var(--chart) 40%, transparent); }
.hb-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { height: 14px; display: block; }
.hb-fill { display: block; height: 100%; background: var(--chart); border-radius: 0 4px 4px 0; transition: opacity .12s; }
.hbar:hover .hb-fill, .hbar:focus-visible .hb-fill { opacity: .78; }
.hb-v { color: var(--text); font-weight: 600; white-space: nowrap; min-width: 56px; text-align: right; }

.meter { display: inline-block; width: 80px; height: 8px; border-radius: 4px; background: var(--chart-track); vertical-align: middle; margin-right: 8px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--chart); border-radius: 4px; }
.meter-col { white-space: nowrap; }

.chart-tip { position: fixed; z-index: 70; pointer-events: none; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; box-shadow: var(--shadow-pop); opacity: 0; transition: opacity .1s; display: grid; gap: 2px; max-width: 260px; }
.chart-tip.on { opacity: 1; }
.chart-tip b { font-size: 14.5px; }
.chart-tip span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) { .dash-top { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .dash-kpis { grid-template-columns: 1fr 1fr; } .hero-num { font-size: 38px; } .hbar { grid-template-columns: 96px 1fr auto; } }

/* ============================================================ paketler */
.pkg-badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--calc-bg); color: var(--muted); }
.pkg-badge.pro { background: var(--accent-soft); color: var(--accent); }
.pkg-badge.enterprise { background: var(--brand-grad); color: #fff; }
.pkg-current { display: flex; align-items: center; gap: 12px; }
.pkg-current .pkg-badge { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.usage { margin-top: 14px; }
.usage-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; margin-bottom: 6px; }
.meter.wide { width: 100%; height: 10px; margin: 0; }
.usage.warn .meter > span { background: var(--warn); }
.usage.crit .meter > span { background: var(--bad); }
.usage-note { display: block; font-size: 12.5px; margin-top: 4px; color: var(--warn); font-weight: 600; }
.usage.crit .usage-note { color: var(--bad); }
.pkg-notes { margin: 0; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; font-size: 13.5px; }
.section-title { font-size: 17px; margin: 22px 0 12px; }
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 12px; }
.pkg { position: relative; display: flex; flex-direction: column; margin: 0; }
.pkg.current { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.pkg h3 { font-size: 19px; margin: 0 0 4px; }
.pkg p { margin: 0 0 12px; }
.pkg-ribbon { position: absolute; top: 14px; right: 14px; font-size: 11.5px; font-weight: 700; color: var(--brand-orange); background: color-mix(in srgb, var(--brand-orange) 12%, transparent); padding: 3px 9px; border-radius: 999px; }
.pkg-price { margin: 4px 0 14px; }
.pkg-price b { font-size: 28px; letter-spacing: -.02em; }
.pkg-price span { color: var(--muted); font-size: 13px; margin-left: 4px; }
.pkg-feats { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; flex: 1; }
.pkg-feats li { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.pkg-feats li span { color: var(--muted); }
.req-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.req-actions input { border: 1px solid var(--line-strong); border-radius: 8px; padding: 4px 6px; background: var(--input-bg); color: var(--text); }
.tbl td.wrap { white-space: normal; min-width: 160px; max-width: 280px; }
.req-card { margin-bottom: 16px; }
@media (max-width: 900px) { .pkg-grid { grid-template-columns: 1fr; } }
/* Dar ekranda grafik ızgarası içeriğe göre genişlemesin */
.charts.dash-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-top { grid-template-columns: minmax(240px, 1fr) minmax(0, 2.2fr); }
.col-labels em { min-width: 0; overflow: hidden; }
@media (max-width: 900px) { .dash-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) { .charts.dash-grid { grid-template-columns: minmax(0, 1fr); } }
.col-chart { grid-template-columns: auto minmax(0, 1fr); }
.col-plot { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 560px) { .col-labels .yr { display: none; } }
.pkg-cost { margin-left: auto; text-align: right; display: grid; }
.pkg-cost b { font-size: 22px; letter-spacing: -.02em; }
