/* AllofThem · Yönetici Panosu — tema belirteçleri (referans görseldeki dil) */
:root {
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --page-1: #ECEAE6;
  --page-2: #F6F5F2;
  --glow: rgba(255, 255, 255, 0.9);

  --card: #FFFFFF;
  --card-line: #ECEAE6;
  --pill: #FFFFFF;
  --inset: #F6F5F3;
  --track: #EFEEEB;
  --hatch-line: #DCDAD6;

  --ink: #161616;
  --ink-2: #6B6B6B;
  --ink-3: #9B9B9B;

  --orange: #E8582A;
  --orange-2: #F06C3A;
  --orange-deep: #E24E22;
  --orange-soft: #FDECE4;

  --contrast: #1D1D1D;
  --on-contrast: #FFFFFF;
  --dark-card: #1D1D1D;

  --green: #1F9D5A;
  --green-soft: #E6F6ED;
  --red: #E34A2F;
  --red-soft: #FCE9E6;
  --yellow-ink: #C99700;
  --yellow-soft: #FFF6D6;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.03), 0 10px 28px rgba(20, 20, 20, 0.05);
  --shadow-sm: 0 1px 2px rgba(20, 20, 20, 0.04);
}

[data-theme="dark"] {
  --page-1: #0F0F10;
  --page-2: #171718;
  --glow: rgba(255, 255, 255, 0.07);
  --card: #1B1B1D;
  --card-line: #2A2A2D;
  --pill: #1B1B1D;
  --inset: #232326;
  --track: #2B2B2F;
  --hatch-line: #3A3A3F;
  --ink: #F3F3F1;
  --ink-2: #A4A4A1;
  --ink-3: #6F6F6D;
  --contrast: #F3F3F1;
  --on-contrast: #111111;
  --dark-card: #27272A;
  --green-soft: rgba(31, 157, 90, 0.18);
  --red-soft: rgba(227, 74, 47, 0.18);
  --yellow-soft: rgba(201, 151, 0, 0.18);
  --orange-soft: rgba(232, 88, 42, 0.18);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 28px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 82% -8%, var(--glow) 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, var(--page-2) 0%, var(--page-1) 100%);
  overflow: hidden; /* masaüstünde belge kaymaz; yalnız ana alan kayar */
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  line-height: 1.35;
}
button { font: inherit; }
a { color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }

/* Kabuk: üst çubuk + (ray | ana alan); yükseklik görünüm alanına kilitli */
.shell {
  height: 100%;
  width: 100%;
  padding: 14px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pill {
  background: var(--pill);
  border: 1px solid var(--card-line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Üst çubuk: üç sütun, sekmeler sayfaya göre ortalı */
.topbar { flex: none; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; min-height: 52px; }
.brand {
  justify-self: start;
  display: flex; align-items: center; gap: 10px;
  height: 48px; padding: 6px 18px 6px 16px;
  text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: -0.01em;
}
.brand.static { padding: 0; height: auto; margin-bottom: 18px; }
.brand-logo { display: flex; align-items: center; height: 26px; flex: none; }
.brand-logo img { height: 26px; width: auto; display: block; }
.brand-logo .logo-light { display: none; }
[data-theme="dark"] .brand-logo .logo-dark { display: none; }
[data-theme="dark"] .brand-logo .logo-light { display: block; }
.brand-name { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.tabs { justify-self: center; display: flex; align-items: center; gap: 4px; padding: 5px; height: 48px; }
.tab {
  padding: 0 16px; height: 38px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s; white-space: nowrap;
}
/* Kalın etiket genişliği önceden ayrılır: etkin sekme değişince hiçbir şey kaymaz */
.tab::after { content: attr(data-label); font-weight: 600; height: 0; overflow: hidden; visibility: hidden; pointer-events: none; }
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--contrast); color: var(--on-contrast); font-weight: 600; }

.topbar-right { justify-self: end; display: flex; align-items: center; gap: 12px; }
.icon-group { display: flex; gap: 2px; padding: 5px; height: 48px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 999px; border: 0; background: transparent;
  display: grid; place-items: center; color: var(--ink); cursor: pointer; position: relative;
}
.icon-btn:hover { background: var(--track); }
.icon-btn.has-dot::after {
  content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--orange); border: 2px solid var(--pill);
}
.icon-btn.is-busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.user-chip { display: flex; align-items: center; gap: 10px; height: 48px; padding: 5px 14px 5px 5px; text-decoration: none; }
.user-chip:hover { background: var(--inset); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--dark-card); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none;
}
.user-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.user-text strong { font-size: 13px; font-weight: 600; white-space: nowrap; }
.user-text small { font-size: 11px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.chev { color: var(--ink-2); }

/* Gövde */
.body { flex: 1; min-height: 0; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; }
.rail { display: flex; flex-direction: column; gap: 14px; min-height: 0; }
.rail-group { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px 0; width: 48px; flex: none; }
.rail-nav { margin-top: 30px; padding: 8px 0; }
.rail-bottom { margin-top: auto; }
.rail-btn {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink-2); border: 0; background: transparent; cursor: pointer; text-decoration: none;
}
.rail-btn:hover { color: var(--ink); background: var(--track); }
.rail-btn.is-active { background: var(--contrast); color: var(--on-contrast); }
.theme-toggle .rail-btn.is-active { background: var(--track); color: var(--ink); }

/* Ana alan: tek kaydırıcı; kaydırma oluğu sabit, görünümler arasında genişlik değişmez */
.main {
  min-width: 0; min-height: 0;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: 4px 10px 14px 4px;
  margin: -4px -10px -14px -4px;
}

/* Görünümler */
.view { display: block; }
.view-overview { height: 100%; display: flex; flex-direction: column; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 2px 0 18px; }
.view-head h2 { font-size: 28px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.02em; }
.view-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.greeting { flex: none; margin-bottom: 4px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.greeting h1 { font-size: 28px; font-weight: 600; margin: 0 0 2px; letter-spacing: -0.02em; }
.greeting p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Genel bakış ızgarası: 3 eşit sütun; 1. satır kartları aynı yükseklikte, tablo sol alt bloğa hizalı */
.grid {
  flex: 1;
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto minmax(auto, 1fr);
  gap: 16px;
}
.balance { grid-area: 1 / 1 / 2 / 2; }
.stats { grid-area: 1 / 2 / 2 / 3; }
.chart { grid-area: 1 / 3 / 2 / 4; }
.col-bottom { grid-area: 2 / 1 / 3 / 2; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.activity { grid-area: 2 / 2 / 3 / 4; }

.card {
  background: var(--card); border: 1px solid var(--card-line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.card-head.col { flex-direction: column; align-items: flex-start; gap: 2px; margin-bottom: 12px; }
.title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.sub { font-size: 12px; color: var(--ink-2); }
.label { font-size: 14px; font-weight: 500; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.label small { color: var(--ink-2); font-weight: 400; font-size: 12px; }
.label-icon { width: 28px; height: 28px; border-radius: 8px; background: var(--inset); display: grid; place-items: center; color: var(--ink); }
.link { font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: none; }
.link:hover { text-decoration: underline; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px;
  border-radius: 999px; border: 1px solid var(--card-line); font-size: 12px; font-weight: 500; background: var(--card);
}
.chip-dot { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(135deg, #E30A17 0 50%, #FFFFFF 50% 100%); border: 1px solid var(--card-line); }

.big { font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin: 2px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.delta { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; min-height: 18px; }
.pct { padding: 2px 6px; border-radius: 999px; font-weight: 600; font-size: 11px; display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.pct.up { background: var(--green-soft); color: var(--green); }
.pct.down { background: var(--red-soft); color: var(--red); }
.pct.flat { background: var(--track); color: var(--ink-2); }

.actions { display: flex; gap: 10px; margin: 8px 0; }
.btn {
  flex: 1; height: 36px; border-radius: 12px; border: 0; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: filter .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: default; }
.btn.dark { background: var(--contrast); color: var(--on-contrast); }
.btn.light { background: var(--track); color: var(--ink); }
.btn.wide { width: 100%; }
.btn.slim { flex: none; height: 38px; padding: 0 16px; }

/* Projeler (cüzdanlar) */
.wallets { background: var(--inset); border-radius: 14px; padding: 8px; }
.wallets-head { font-size: 13px; display: flex; gap: 8px; margin-bottom: 10px; align-items: center; }
.wallets-head .sep { color: var(--ink-3); }
.wallets-head span:last-child { color: var(--ink-2); }
.wallet-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 86px; }
.wallet { background: var(--card); border-radius: 12px; padding: 7px 8px 7px; border: 1px solid var(--card-line); min-width: 0; }
.wallet-top { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; min-width: 0; }
.wallet-top .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-top .kebab { margin-left: auto; color: var(--ink-3); flex: none; }
.dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.dot.dark { background: var(--dark-card); }
.dot.orange { background: var(--orange); }
.dot.hatched { background: repeating-linear-gradient(135deg, var(--orange) 0 2px, #F7B59C 2px 4px); }
.wallet-amt { font-size: 13px; font-weight: 700; margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.wallet-sub { font-size: 9px; color: var(--ink-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wallet-status { font-size: 9px; font-weight: 600; margin-top: 4px; }
.wallet-status.ok { color: var(--green); }
.wallet-status.off { color: var(--ink-3); }
.wallet-status.demo { color: var(--yellow-ink); }
.wallet-status.err { color: var(--red); }

/* Aylık ilerleme */
.limit { flex: none; }
.limit .card-head { margin-bottom: 4px; }
.limit .card-head .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.limit .progress { margin: 8px 0 6px; }
.progress {
  height: 8px; border-radius: 999px; overflow: hidden; margin: 14px 0 10px;
  background: repeating-linear-gradient(135deg, var(--hatch-line) 0 2px, transparent 2px 6px);
}
.progress-fill { height: 100%; background: var(--orange); border-radius: 999px; width: 0; transition: width .7s ease; }
.progress-legend { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--ink-2); gap: 10px; }
.progress-legend strong { color: var(--ink); font-size: 12px; }

/* Proje kartları */
.cards { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.cards .card-head { margin-bottom: 6px; }
.card-strip {
  flex: 1; display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 2px;
  scrollbar-width: none; scroll-snap-type: x proximity; min-height: 104px;
}
.card-strip::-webkit-scrollbar { display: none; }
.pcard {
  flex: none; width: 214px; min-height: 100px; border-radius: 14px; padding: 10px 12px; position: relative;
  color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; scroll-snap-align: start;
}
.pcard.dark { background: var(--dark-card); }
.pcard.orange { background: linear-gradient(135deg, var(--orange-2), var(--orange-deep)); }
.pcard.hatched {
  background-color: var(--dark-card);
  background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 7px);
}
.pcard.hatched::before { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--orange); opacity: .9; }
.pcard-top { display: flex; align-items: center; gap: 8px; font-size: 10px; position: relative; }
.pcard-top .status { background: rgba(255, 255, 255, 0.18); padding: 3px 8px; border-radius: 999px; font-weight: 600; }
.pcard-top .status.off { background: rgba(255, 255, 255, 0.1); opacity: .8; }
.pcard-logo { position: absolute; right: 0; top: -2px; display: flex; }
.pcard-logo i { width: 18px; height: 18px; border-radius: 50%; display: block; }
.pcard-logo i + i { margin-left: -7px; }
.pcard-name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; position: relative; }
.pcard-bottom { display: flex; gap: 14px; font-size: 9px; opacity: .85; position: relative; }
.pcard-bottom b { display: block; font-size: 11px; opacity: 1; letter-spacing: -0.01em; }
.pcard.add {
  background: var(--inset); color: var(--ink-2); border: 1px dashed var(--hatch-line);
  justify-content: center; align-items: center; text-decoration: none; font-weight: 600; font-size: 13px; gap: 6px;
}

/* KPI kutuları: 2×2, satır yüksekliğini doldurur; değer kutu genişliğine göre ölçeklenir */
.stats { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-width: 0; }
.stat {
  container-type: inline-size;
  background: var(--card); border: 1px solid var(--card-line); box-shadow: var(--shadow);
  border-radius: var(--radius); padding: 13px 14px; min-height: 126px;
  display: flex; flex-direction: column; min-width: 0;
}
.stat.accent { border-color: transparent; }
.stat.accent { background: linear-gradient(135deg, var(--orange-2), var(--orange-deep)); color: #fff; }
.stat-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; gap: 6px; }
.stat-head small { font-weight: 400; opacity: .75; font-size: 11px; }
.stat-icon { width: 30px; height: 30px; border-radius: 50%; background: var(--inset); display: grid; place-items: center; color: var(--ink); flex: none; }
.accent .stat-icon { background: rgba(255, 255, 255, 0.22); color: #fff; }
.stat-value { font-size: clamp(18px, 16cqw, 26px); font-weight: 700; margin-top: auto; letter-spacing: -0.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-delta { font-size: 11px; margin-top: 8px; display: flex; gap: 6px; align-items: center; color: var(--ink-2); min-height: 18px; flex-wrap: wrap; }
.accent .stat-delta { color: rgba(255, 255, 255, 0.85); }
.accent .pct { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* Grafik */
.chart { display: flex; flex-direction: column; }
.chart-box { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--inset); border-radius: 14px; padding: 12px 12px 8px; }
.chart-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 500; margin-bottom: 6px; gap: 8px; flex: none; }
.legend { display: flex; gap: 12px; font-size: 11px; color: var(--ink-2); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.legend i.dark { background: var(--contrast); }
.legend i.orange { background: var(--orange); }
.legend i.hatched { background: repeating-linear-gradient(135deg, var(--orange) 0 1.5px, #F7B59C 1.5px 3px); }
.chart-svg { flex: 1; min-height: 150px; width: 100%; display: block; }
.chart-large .chart-box { min-height: 380px; }
.chart-svg text { font-family: var(--font); font-size: 10px; fill: var(--ink-2); }
.chart-svg .grid-line { stroke: var(--hatch-line); stroke-width: 1; stroke-dasharray: 3 3; }
.chart-svg .bar-dark { fill: var(--contrast); }
.chart-svg .bar-orange { fill: var(--orange); }
.chart-svg .bar-hatched { fill: url(#hatch); }
.chart-svg .bar { transition: opacity .15s; }
.chart-svg .bar:hover { opacity: .8; }

/* Son poliçeler */
.activity { min-height: 0; display: flex; flex-direction: column; }
.activity .card-head, .activity-full .card-head { flex: none; }
.tools { display: flex; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; width: 200px; color: var(--ink-2); }
.search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; min-width: 0; }
.search input::placeholder { color: var(--ink-3); }
.filter { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; color: var(--ink); font-weight: 500; position: relative; }
.filter select {
  appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-weight: 500;
  color: var(--ink); outline: 0; padding-right: 2px; cursor: pointer;
}
.table-wrap { overflow: auto; min-height: 0; }
.activity .table-wrap { flex: 1; min-height: 180px; }
.activity-full .table-wrap { max-height: calc(100vh - 330px); min-height: 320px; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--inset); color: var(--ink-2); font-weight: 500; text-align: left; padding: 11px 12px; font-size: 12px; white-space: nowrap;
}
.table thead th:first-child { border-radius: 10px 0 0 10px; }
.table thead th:last-child { border-radius: 0 10px 10px 0; }
.table td { padding: 11px 12px; border-bottom: 1px solid var(--card-line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-selected td { background: var(--inset); }
.table td.num { font-variant-numeric: tabular-nums; font-weight: 500; }
.table td.mono { font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: 0.01em; }
.table th.amount, .table td.amount { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.table td.muted { color: var(--ink-2); }
.table td.customer { max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
.table.monthly th.num, .table.monthly td.num { text-align: right; }
.table.monthly td.num { font-weight: 500; }
.table.monthly td.num small { color: var(--ink-3); font-weight: 400; margin-left: 4px; }
.table.monthly tr.total td { font-weight: 700; background: var(--inset); }
.col-check { width: 36px; }
.col-menu { width: 36px; }
.menu-btn { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; width: 26px; height: 26px; border-radius: 999px; display: grid; place-items: center; }
.menu-btn:hover { background: var(--track); color: var(--ink); }
input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--hatch-line); background: var(--card); display: grid; place-items: center; cursor: pointer; margin: 0;
}
input[type="checkbox"]:checked { background: var(--contrast); border-color: var(--contrast); }
input[type="checkbox"]:checked::after { content: ""; width: 4px; height: 8px; border: solid var(--on-contrast); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.glyph { width: 22px; height: 22px; border-radius: 6px; display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; margin-right: 8px; vertical-align: middle; flex: none; }
.glyph.dark { background: var(--dark-card); }
.glyph.orange { background: var(--orange); }
.glyph.hatched { background: repeating-linear-gradient(135deg, var(--orange) 0 2px, #F7B59C 2px 4px); }
.cell { display: inline-flex; align-items: center; min-width: 0; }
.cell .text { display: inline-flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cell .text small { color: var(--ink-2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 230px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { color: var(--green); }
.status.warn { color: var(--yellow-ink); }
.status.bad { color: var(--red); }
.empty { text-align: center; padding: 28px; color: var(--ink-2); font-size: 13px; }

/* Hareketler: KPI şeridi */
.kpi-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-sm); min-width: 0; container-type: inline-size; }
.kpi small { display: block; color: var(--ink-2); font-size: 11px; }
.kpi b { display: block; font-size: clamp(13px, 16cqw, 20px); letter-spacing: -0.015em; margin: 3px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { font-size: 11px; color: var(--ink-2); }
.kpi.inset { background: var(--inset); border-color: transparent; box-shadow: none; }

/* Projeler sayfası */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.project-card { display: flex; flex-direction: column; gap: 14px; }
.project-head { display: flex; align-items: center; gap: 10px; }
.project-head h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.project-head .kind { color: var(--ink-3); font-size: 12px; }
.status-chip { margin-left: auto; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.status-chip.ok { background: var(--green-soft); color: var(--green); }
.status-chip.off { background: var(--track); color: var(--ink-2); }
.status-chip.demo { background: var(--yellow-soft); color: var(--yellow-ink); }
.status-chip.err { background: var(--red-soft); color: var(--red); }
.kpi-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.spark-box { background: var(--inset); border-radius: 12px; padding: 10px 12px 6px; }
.spark-box .spark-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-2); margin-bottom: 4px; }
.spark { width: 100%; height: 64px; display: block; }
.project-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.note { font-size: 12px; color: var(--ink-2); margin: 0; }
.note code { background: var(--inset); border: 1px solid var(--card-line); padding: 1px 6px; border-radius: 6px; font-size: 11px; word-break: break-all; }

/* Raporlar + Ayarlar */
.reports-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.report { background: var(--inset); border-radius: 14px; padding: 12px 14px; }
.card .report { background: var(--inset); }
.report h3 { margin: 0 0 8px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.report h3 span { color: var(--ink-2); font-weight: 400; margin-left: auto; font-size: 12px; }
.bars { display: flex; flex-direction: column; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 104px; align-items: center; gap: 10px; font-size: 12px; }
.bar-row .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .track { display: block; height: 7px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar-row .fill { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.bar-row .fill.dark { background: var(--contrast); }
.bar-row .value { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }
.settings-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; font-size: 13px; }
.source { background: var(--card); border: 1px solid var(--card-line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-sm); }
.source h3 { margin: 0 0 6px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.source p { margin: 4px 0; color: var(--ink-2); font-size: 12px; line-height: 1.45; }
.source code { background: var(--inset); border: 1px solid var(--card-line); padding: 1px 6px; border-radius: 6px; font-size: 11px; word-break: break-all; }
.source .row { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.source .btn { flex: none; height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.foot { flex: none; font-size: 11px; color: var(--ink-3); display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; text-align: right; max-width: 50%; }

/* Bildirim */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--contrast); color: var(--on-contrast); padding: 10px 16px; border-radius: 12px; font-size: 13px;
  box-shadow: var(--shadow); transition: all .25s; max-width: min(90vw, 520px); text-align: center; z-index: 30;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Alt gezinme (yalnız dar ekran) */
.bottom-nav { display: none; }

/* Duyarlılık */
@media (max-width: 1180px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; }
  .balance { grid-area: 1 / 1 / 2 / 2; }
  .stats { grid-area: 1 / 2 / 2 / 3; }
  .chart { grid-area: 2 / 1 / 3 / 3; }
  .col-bottom { grid-area: 3 / 1 / 4 / 2; }
  .activity { grid-area: 3 / 2 / 4 / 3; }
  .chart-svg { min-height: 220px; }
  .kpi-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  html, body { height: auto; overflow: auto; }
  .shell { height: auto; min-height: 100vh; padding: 12px 16px 96px; gap: 16px; }
  .topbar { grid-template-columns: auto 1fr; }
  .tabs { display: none; }
  .topbar-right { grid-column: 2; }
  .body { display: block; }
  .rail { display: none; }
  .main { overflow: visible; padding: 0; margin: 0; }
  .view-overview { min-height: 0; }
  .grid { display: flex; flex-direction: column; }
  .activity .table-wrap { max-height: 460px; }
  .activity-full .table-wrap { max-height: none; }
  .bottom-nav {
    display: flex; position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
    gap: 4px; padding: 6px; z-index: 20;
  }
  .bottom-nav .rail-btn { width: 44px; height: 44px; }
}
@media (max-width: 640px) {
  .user-text { display: none; }
  .greeting h1, .view-head h2 { font-size: 26px; }
  .greeting { flex-direction: column; align-items: flex-start; }
  .foot { justify-content: flex-start; text-align: left; max-width: none; }
  .view-head { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .stat { min-height: 128px; }
  .wallet-list { grid-template-columns: 1fr 1fr; }
  .card-head { flex-wrap: wrap; }
  .tools { width: 100%; }
  .search { flex: 1; width: auto; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .kpi-row { grid-template-columns: 1fr; }
  .project-bars { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 80px 1fr 90px; }
  .icon-group { display: none; }
}


/* ---------- zengin kart bileşenleri ---------- */
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 6px; }
.mini-stats div { background: var(--inset); border-radius: 9px; padding: 4px 8px; min-width: 0; display: flex; flex-direction: column; }
.mini-stats small { font-size: 9.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.mini-stats b { font-size: 11.5px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }

.mini { height: 30px; margin-top: 8px; }
.mini-bars { width: 100%; height: 100%; display: block; }
.mini-bars rect { fill: var(--orange); opacity: .32; }
.mini-bars rect.last { opacity: 1; }
.mini-bars.dark rect { fill: var(--contrast); }
.accent .mini-bars rect { fill: #fff; opacity: .38; }
.accent .mini-bars rect.last { opacity: 1; }

.chart-foot { flex: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--hatch-line); }
.chart-foot small { display: block; font-size: 10px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-foot b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }

.limit-extra { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--ink-2); margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--hatch-line); }
.limit-extra b { color: var(--ink); font-weight: 600; }

.head-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.head-text .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-mini { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--track); color: var(--ink-2); white-space: nowrap; font-weight: 500; }
.chip-mini.ok { background: var(--green-soft); color: var(--green); }
.chip-mini.warn { background: var(--yellow-soft); color: var(--yellow-ink); }
.chip-mini.bad { background: var(--red-soft); color: var(--red); }

.row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.row-3 .card { display: flex; flex-direction: column; }
.row-3 .card .card-head { margin-bottom: 12px; }
.row-3 .card .cbody { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 0; }

.kpi { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 10px; align-items: end; }
.kpi.inset, .project-card .kpi { grid-template-columns: minmax(0, 1fr); }
.kpi .mini { height: 38px; margin: 0; }
.kpi .delta { margin-top: 4px; min-height: 0; }

.donut-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; }
.donut { flex: none; }
.donut-label { font-size: 14px; font-weight: 700; fill: var(--ink); font-family: var(--font); }
.donut-sub { font-size: 8.5px; fill: var(--ink-2); font-family: var(--font); }
.donut-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; font-size: 11px; }
.donut-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.donut-legend li .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.donut-legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.donut-legend .pct { color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }

.heat { display: flex; gap: 3px; margin: 6px 0 2px; }
.heat i { flex: 1; height: 16px; border-radius: 3px; background: var(--orange); display: block; min-width: 0; }
.heat i.dark { background: var(--contrast); }
.heat-row { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; }
.heat-row + .heat-row { margin-top: 6px; }
.heat-row .value { color: var(--ink-2); font-size: 11px; white-space: nowrap; }
.heat-axis { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-top: 6px; }

.labeled-bars { width: 100%; height: auto; display: block; }
.labeled-bars text { font-size: 9px; fill: var(--ink-2); font-family: var(--font); }
.labeled-bars rect { fill: var(--orange); }
.labeled-bars rect.dark { fill: var(--contrast); }
.labeled-bars rect.soft { opacity: .35; }

.producers { display: flex; flex-direction: column; gap: 8px; }
.producer { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 12px; }
.producer .rank { width: 20px; height: 20px; border-radius: 50%; background: var(--track); font-size: 10px; font-weight: 600; display: grid; place-items: center; color: var(--ink-2); }
.producer .rank.top { background: var(--orange); color: #fff; }
.producer .who { min-width: 0; }
.producer .who span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.producer .bar { height: 5px; background: var(--track); border-radius: 999px; margin-top: 4px; overflow: hidden; }
.producer .bar b { display: block; height: 100%; background: var(--orange); border-radius: 999px; }
.producer .bar b.dark { background: var(--contrast); }
.producer .val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.producer .val small { display: block; color: var(--ink-2); font-size: 10px; }

.pcard-spark { position: absolute; left: 0; right: 0; bottom: 26px; height: 36px; opacity: .45; pointer-events: none; }

.project-card .kpi-row + .kpi-row { margin-top: -4px; }
.project-card .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.project-card .report { background: var(--inset); }
.project-card .meta { display: flex; gap: 6px; flex-wrap: wrap; }

.report.block { background: var(--inset); border-radius: 14px; padding: 12px 14px; }
.card .report.block { background: var(--inset); }

@media (min-width: 1800px) {
  .shell { padding: 18px 32px 20px; }
  .grid, .row-3, .row-2, .projects-grid { gap: 20px; }
  .body { gap: 24px; }
}
@media (max-width: 1180px) {
  .row-3 { gap: 12px; }
  .row-3 .donut { width: 96px; height: 96px; }
}
/* Tek kalan son kart satırı tam genişliğe yayılır: sağda boşluk kalmaz */
.reports-grid > :last-child:nth-child(odd), .settings-body > :last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 960px) {
  .row-3 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .chart-foot { grid-template-columns: 1fr 1fr; }
  .project-card .two { grid-template-columns: 1fr; }
  .kpi { grid-template-columns: 1fr; }
  .kpi .mini { display: none; }
}


/* ---------- profesyonel grafik bileşenleri ---------- */
.row-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.row-2 .card { display: flex; flex-direction: column; }
.row-2 .card .card-head { margin-bottom: 12px; }
.row-2 .card .cbody { flex: 1; min-height: 0; }
.head-value { font-size: 13px; font-weight: 600; white-space: nowrap; }

.line-chart, .bar-line { width: 100%; height: auto; display: block; }
.line-chart text, .bar-line text { font-size: 8.5px; fill: var(--ink-2); font-family: var(--font); }
.line-chart .grid, .bar-line .grid { stroke: var(--hatch-line); stroke-dasharray: 3 3; stroke-width: 1; }
.bar-line rect { fill: var(--orange); }
.bar-line rect.soft { opacity: .45; }

.cum-box { margin-top: 6px; padding-top: 6px; border-top: 1px dashed var(--hatch-line); }
.chart-head.small { font-size: 11px; margin-bottom: 2px; color: var(--ink-2); }
.legend-inline { display: flex; gap: 10px; font-size: 10px; color: var(--ink-2); flex-wrap: wrap; }
.legend-inline i { width: 12px; height: 3px; display: inline-block; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.legend-inline i.orange { background: var(--orange); }
.legend-inline i.muted { background: var(--ink-3); }
.legend-inline i.dark { background: var(--contrast); }
.legend-inline i.dashed { background: repeating-linear-gradient(90deg, var(--orange) 0 3px, transparent 3px 5px); }

.bullets { display: flex; flex-direction: column; gap: 14px; }
.bullet { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 12px; }
.bullet .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.bullet .track { position: relative; height: 14px; background: var(--track); border-radius: 999px; }
.bullet .ghost { position: absolute; left: 0; top: 0; height: 100%; background: var(--hatch-line); border-radius: 999px; }
.bullet .bar { position: absolute; left: 0; top: 3px; height: 8px; border-radius: 999px; background: var(--orange); }
.bullet .bar.dark { background: var(--contrast); }
.bullet .bar.hatched { background: repeating-linear-gradient(135deg, var(--orange) 0 2px, #F7B59C 2px 4px); }
.bullet .marker { position: absolute; top: -3px; width: 2px; height: 20px; background: var(--contrast); border-radius: 1px; }
.bullet .val { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bullet .val small { display: block; color: var(--ink-2); font-size: 10px; }
.bullet-legend { display: flex; gap: 12px; font-size: 10px; color: var(--ink-2); margin-top: 12px; flex-wrap: wrap; }
.bullet-legend i { display: inline-block; width: 12px; height: 6px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.bullet-legend i.bar { background: var(--orange); }
.bullet-legend i.ghost { background: var(--hatch-line); height: 10px; }
.bullet-legend i.marker { width: 2px; height: 12px; background: var(--contrast); }

.table.matrix th.num, .table.matrix td.num { text-align: right; }
.table.matrix td.mx { position: relative; text-align: right; font-variant-numeric: tabular-nums; }
.table.matrix td.mx::before { content: ""; position: absolute; inset: 4px 6px; border-radius: 6px; background: var(--orange); opacity: var(--heat, 0); }
.table.matrix td.mx span { position: relative; z-index: 1; }
.table.matrix td.mx small { display: block; color: var(--ink-2); font-size: 10px; position: relative; z-index: 1; }
.table.matrix tr.total td { font-weight: 700; background: var(--inset); }
.table.matrix td.name { font-weight: 500; }
.table.matrix td.name .dot { display: inline-block; vertical-align: middle; margin-right: 6px; width: 10px; height: 10px; }

@media (max-width: 1180px) {
  .row-2 { grid-template-columns: 1fr; }
}


/* ---------- Toplam Üretim kartı ---------- */
.balance .card-head { margin-bottom: 4px; align-items: flex-start; }
.balance .big { margin: 0 0 2px; font-size: 27px; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.kpi-grid div { background: var(--inset); border-radius: 9px; padding: 5px 8px; min-width: 0; }
.kpi-grid small { display: block; font-size: 9.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.kpi-grid b { display: block; font-size: 12px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; font-variant-numeric: tabular-nums; }
.breakdown { margin-top: 7px; background: var(--inset); border-radius: 12px; padding: 7px 10px 3px; }
.breakdown-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: var(--ink-2); margin-bottom: 2px; }
.breakdown-head span:first-child { color: var(--ink); font-weight: 600; font-size: 12px; }
.brow { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 56px 34px; gap: 8px; align-items: center; padding: 4px 0; font-size: 11.5px; }
.brow + .brow { border-top: 1px solid var(--card-line); }
.brow .dot { width: 10px; height: 10px; }
.brow .who { min-width: 0; display: flex; flex-direction: column; line-height: 1.15; }
.brow .who .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.brow .who small { font-size: 9.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brow .who small .st { color: var(--yellow-ink); font-weight: 600; }
.brow .who small .st.err { color: var(--red); }
.brow .who small .st.off { color: var(--ink-3); }
.brow .mtd { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.brow .share { height: 5px; background: var(--track); border-radius: 999px; overflow: hidden; }
.brow .share b { display: block; height: 100%; border-radius: 999px; background: var(--orange); }
.brow .share b.dark { background: var(--contrast); }
.brow .share b.hatched { background: repeating-linear-gradient(135deg, var(--orange) 0 2px, #F7B59C 2px 4px); }
.brow .pct { font-size: 10.5px; color: var(--ink-2); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.balance .actions { margin: 6px 0 0; }
.balance .btn { height: 32px; font-size: 13px; border-radius: 10px; }


/* ---------- Giriş: ortadan ikiye bölünmüş ekran ---------- */
.login-body { height: 100%; overflow: auto; }
.login-split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-side {
  position: relative; overflow: hidden;
  background: radial-gradient(900px 500px at 20% -10%, rgba(232, 88, 42, 0.28) 0%, rgba(232, 88, 42, 0) 60%), linear-gradient(160deg, #1F1F21 0%, #141416 100%);
  color: #fff; padding: 40px 48px; display: flex; flex-direction: column; gap: 32px;
}
.login-side::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 88, 42, 0.22) 0%, rgba(232, 88, 42, 0) 70%); pointer-events: none; }
.login-side-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.login-logo { height: 30px; width: auto; display: block; }
.login-badge { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); border: 1px solid rgba(255, 255, 255, 0.18); padding: 6px 10px; border-radius: 999px; }
.login-side-body { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 520px; position: relative; }
.login-side-body h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 14px; font-weight: 600; }
.login-side-body p { margin: 0 0 22px; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.login-points { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.login-points li { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: rgba(255, 255, 255, 0.88); }
.pt-ico { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: #F2A684; flex: none; }
.login-art { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 18px; padding: 14px 16px 12px; }
.login-art-svg { width: 100%; height: auto; display: block; }
.login-art-legend { display: flex; gap: 14px; font-size: 11px; color: rgba(255, 255, 255, 0.65); margin-top: 8px; }
.login-art-legend span { display: inline-flex; align-items: center; gap: 6px; }
.login-art-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.login-art-legend i.hatch { background: repeating-linear-gradient(135deg, #E8582A 0 2px, #F7B59C 2px 4px); }
.login-side-foot { display: flex; justify-content: space-between; font-size: 12px; color: rgba(255, 255, 255, 0.45); position: relative; }

.login-main { position: relative; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 40px 24px 20px; overflow: hidden; background: linear-gradient(180deg, var(--page-2) 0%, var(--page-1) 100%); }
.login-main-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(520px 320px at 85% 8%, rgba(232, 88, 42, 0.16) 0%, rgba(232, 88, 42, 0) 70%),
    radial-gradient(420px 300px at 10% 95%, rgba(29, 29, 29, 0.08) 0%, rgba(29, 29, 29, 0) 70%),
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.025) 0 1px, transparent 1px 28px);
  mask-image: radial-gradient(900px 700px at 50% 45%, #000 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(900px 700px at 50% 45%, #000 20%, transparent 80%);
}
.login-card {
  position: relative; width: 100%; max-width: 440px; background: var(--card); border: 1px solid var(--card-line); border-radius: 26px;
  padding: 36px 36px 28px; box-shadow: 0 1px 2px rgba(20, 20, 20, 0.04), 0 24px 60px rgba(20, 20, 20, 0.10);
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.login-mark { width: 44px; height: 44px; border-radius: 13px; background: var(--inset); border: 1px solid var(--card-line); display: grid; place-items: center; flex: none; }
.login-mark img { display: block; }
.login-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.login-brand-text b { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.login-brand-text small { font-size: 11px; color: var(--ink-2); letter-spacing: 0.04em; text-transform: uppercase; font-weight: 600; }
.login-card-head { margin-bottom: 22px; }
.login-card-head h1 { font-size: 28px; margin: 0 0 6px; letter-spacing: -0.025em; font-weight: 700; }
.login-card-head p { margin: 0; color: var(--ink-2); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 14px; }
.field > span:first-child { font-weight: 600; color: var(--ink); }
.field input:not([type="checkbox"]), .field select {
  height: 46px; border-radius: 13px; border: 1px solid var(--card-line); background: var(--inset);
  padding: 0 14px; font: inherit; color: var(--ink); outline: 0; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input::placeholder { color: var(--ink-3); }
.field input:not([type="checkbox"]):focus, .field select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(232, 88, 42, 0.14); background: var(--card); }
.field .check { align-self: flex-start; }
.input-wrap { position: relative; display: block; }
.icon-field .field-ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.icon-field input { padding-left: 42px; }
.icon-field .input-wrap:focus-within .field-ico { color: var(--orange); }
.pw input { padding-right: 44px; }
.input-wrap input#password { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; }
.pw-toggle:hover { background: var(--track); color: var(--ink); }
.login-options { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 2px 0 14px; font-size: 12px; }
.login-options .check { background: transparent; padding: 0; font-weight: 500; font-size: 12.5px; }
.login-options .check small { color: var(--ink-3); font-weight: 400; }
.login-help { color: var(--ink-3); font-size: 11.5px; text-align: right; }
.error { color: var(--red); font-size: 12px; margin-bottom: 12px; background: var(--red-soft); padding: 8px 12px; border-radius: 10px; }
.hint { color: var(--ink-2); font-size: 12px; margin: 12px 0 0; background: var(--yellow-soft); padding: 8px 12px; border-radius: 10px; }
.login-btn { height: 48px; border-radius: 13px; font-size: 15px; gap: 10px; transition: transform .15s, box-shadow .15s, filter .15s; box-shadow: 0 10px 24px rgba(29, 29, 29, 0.18); }
.login-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(29, 29, 29, 0.22); }
.login-btn:active { transform: translateY(0); }
.login-secure { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--hatch-line); font-size: 11.5px; color: var(--ink-3); line-height: 1.4; }
.login-secure svg { flex: none; color: var(--green); }
.login-main-foot { font-size: 11.5px; color: var(--ink-3); position: relative; }
.login-note { display: none; }

@media (max-width: 900px) {
  .login-split { grid-template-columns: 1fr; }
  .login-side { padding: 24px 20px; gap: 20px; min-height: 0; }
  .login-side-body h2 br { display: none; }
  .login-art { display: none; }
  .login-side-foot { display: none; }
  .login-main { padding: 24px 16px 24px; }
  .login-card { padding: 28px 24px 22px; }
}


/* ---------- Kullanıcılar ---------- */
.users-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 16px; align-items: start; }
.users-form-card .field { margin-bottom: 12px; }
.users-form-card .field input:not([type="checkbox"]) { height: 40px; }
.field-hint { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink); background: var(--inset); padding: 8px 10px; border-radius: 10px; cursor: pointer; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.btn.tiny { flex: none; height: 28px; padding: 0 10px; font-size: 12px; border-radius: 8px; }
.btn.danger { background: var(--red-soft); color: var(--red); }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.col-actions { width: 150px; }
.tag { display: inline-block; font-size: 11px; background: var(--inset); border: 1px solid var(--card-line); padding: 2px 8px; border-radius: 999px; margin: 1px 4px 1px 0; white-space: nowrap; }
.tag.all { background: var(--green-soft); color: var(--green); border-color: transparent; }
.table.users td { white-space: normal; }
.account-form .field { margin-bottom: 10px; }
.account-form .btn { height: 36px; }
@media (max-width: 1180px) { .users-layout { grid-template-columns: 1fr; } }

/* ---------- Dönem seçici ---------- */
.date-pill { position: relative; height: 48px; display: flex; align-items: center; padding: 5px; }
.date-btn { height: 38px; border: 0; background: transparent; border-radius: 999px; padding: 0 12px 0 12px; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; white-space: nowrap; }
.date-btn:hover { background: var(--track); }
.date-btn .chev { color: var(--ink-2); }
.date-pop {
  position: absolute; top: 54px; right: 0; z-index: 40; width: 340px; background: var(--card); border: 1px solid var(--card-line);
  border-radius: 16px; box-shadow: var(--shadow); padding: 12px;
}
.date-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 10px; }
.date-presets button { height: 34px; border: 1px solid var(--card-line); background: var(--inset); border-radius: 10px; font: inherit; font-size: 12.5px; font-weight: 500; color: var(--ink); cursor: pointer; text-align: left; padding: 0 12px; }
.date-presets button:hover { border-color: var(--ink-3); }
.date-presets button.is-active { background: var(--contrast); color: var(--on-contrast); border-color: var(--contrast); }
.date-custom { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; padding-top: 10px; border-top: 1px dashed var(--hatch-line); }
.date-custom label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; color: var(--ink-2); font-weight: 500; }
.date-custom input { height: 34px; border-radius: 10px; border: 1px solid var(--card-line); background: var(--inset); padding: 0 8px; font: inherit; font-size: 12.5px; color: var(--ink); outline: 0; }
.date-custom input:focus { border-color: var(--orange); }
.date-custom .btn.tiny { height: 34px; }
.date-hint { font-size: 11px; color: var(--ink-3); margin-top: 8px; }
@media (max-width: 960px) {
  .date-pill { order: -1; }
  .date-pop { right: auto; left: 0; width: min(340px, calc(100vw - 32px)); }
}

/* yükleniyor: dönem pilinde ince ilerleme çizgisi, içerik hafif soluk */
body.is-loading .date-pill::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--orange), transparent); background-size: 200% 100%; animation: loadbar 1.1s linear infinite; }
@keyframes loadbar { from { background-position: 200% 0; } to { background-position: -200% 0; } }
body.is-loading .main { opacity: .72; transition: opacity .2s; }
